|
Server : Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12 System : Windows NT SERVER-PC 10.0 build 26200 (Windows 11) AMD64 User : ServerPC ( 0) PHP Version : 8.2.12 Disable Function : NONE Directory : C:/Program Files/NVIDIA Corporation/NVIDIA app/www/ |
Upload File : |
"use strict";(self.webpackChunknvapp=self.webpackChunknvapp||[]).push([[600],{39600:(uo,Pe,d)=>{d.r(Pe),d.d(Pe,{Manage3dSettingsModule:()=>lo});var p=d(61142),De=d(51006),y=d(92602),Ve=d(17076),ae=d(14354),e=d(58527),D=d(45768),rt=d(35146),N=d(36466),he=d(1242),Ge=d(26772),h=d(26537),lt=d(3960),Y=d(56068),F=d(26990),gt=d(78812),ct=d(21172),dt=d(15294),V=d(43848),C=d(72147),R=d(91384),fe=d(10174),Se=d(14714),O=d(65706),_e=d(83915),g=d(63407),Ie=d(30627),$=d(54569),Fe=d(96277),ut=d(59584),pt=d(92616),mt=d(3306);let Te=(()=>{class a{constructor(t,i,n,s,o,c,u,f){this.loggingService=t,this.program3dSettingsService=i,this.global3dSettingsService=n,this.bridgeService=s,this.manage3dSettingsAPIService=o,this.displaysService=c,this.manageDisplayModeService=u,this.displayUtilService=f,this.logger=this.loggingService.getLogger("nvapp/OutsideGraphicsUpdateService"),this.refresh3dSettingListenerOnScalingChange()}refreshGraphicsSettings(t){return this.global3dSettingsService.refreshGlobalSettings(!0,!0).pipe((0,C.n)(()=>this.program3dSettingsService.refreshProgramSettings()),(0,R.M)(s=>this.logger.info(`Refreshed graphics settings after ${t}`)),(0,fe.u)(!0),(0,Se.W)(s=>(this.logger.error(`Some error while refreshing graphics settings after ${t}`,s),(0,V.of)(s))))}clearCacheAndLog(t,i){this.manage3dSettingsAPIService.baseProfileSettingsInfoCache=null,this.logger.info(t,i)}refresh3dSettingListenerOnScalingChange(){this.displayUtilService.scalingChange$.pipe((0,R.M)(t=>this.clearCacheAndLog("Received scaling change notification refreshing graphics settings",t)),(0,C.n)(()=>this.refreshGraphicsSettings("scaling change"))).subscribe(N.l,N.l)}refresh3dSettingListenerOnDisplayChanges(){return this.bridgeService.executeCommand(g.NE,{}).pipe((0,R.M)(t=>this.clearCacheAndLog("Received display change notification refreshing graphics settings",t)),(0,C.n)(()=>this.refreshGraphicsSettings("display changes")))}getDisableStateAfterGsyncUpdate(){return this.displaysService.getGlobalGsyncInfo().pipe((0,C.n)(t=>(this.logger.info("Graphics settings refreshed after Gsync update"),(0,V.of)(!(t.globalGsyncState===Ie.nX.Off||t.globalGsyncState===Ie.nX.NotAvailable)))),(0,Se.W)(t=>(this.logger.error("Some error occurred in graphics settings refresh after Gsync update",t),(0,V.of)(!1))))}getDisableStateAfterDisplayModeUpdate(){return this.manageDisplayModeService.getDdsState().pipe((0,O.s)(1),(0,_e.T)(t=>(this.logger.info("DDS State ",t),!t?.bIsAutomatic)),(0,Se.W)(t=>(this.logger.error("Some error occurred in graphics settings refresh after dds update",t),(0,V.of)(!1))))}static{this.\u0275fac=function(i){return new(i||a)(e.KVO(y.J6),e.KVO($.g),e.KVO(Y.R),e.KVO(y.NZ),e.KVO(Fe.F),e.KVO(ut.R),e.KVO(pt.S),e.KVO(mt.Q))}}static{this.\u0275prov=e.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var j=d(29370),ee=d(68477),G=d(28139),ge=d(65726),l=d(98207),A=d(83128),Re=d(31627),v=d(96542),ce=d(96306),be=d(37898),I=d(47973),z=d(99204),ht=d(58590);const ft=["*"],St=()=>[p.bT,I.iV,j.An,v.D9];function _t(a,r){1&a&&e.SdG(0,0,["*ngIf","isExpanded && isFullyCollapsible"])}function bt(a,r){1&a&&e.nrm(0,"mat-icon",9)}function vt(a,r){1&a&&e.nrm(0,"mat-icon",10)}function Ct(a,r){if(1&a){const t=e.RV6();e.j41(0,"div",1)(1,"div",2),e.DNE(2,_t,1,0,"ng-content",3),e.k0s(),e.j41(3,"div",4)(4,"button",5),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.togglePanel())}),e.j41(5,"span",6),e.EFF(6),e.nI1(7,"translate"),e.nI1(8,"translate"),e.DNE(9,bt,1,0,"mat-icon",7)(10,vt,1,0,"mat-icon",8),e.k0s()()()()}if(2&a){const t=e.XpG(2);e.R7$(2),e.Y8G("ngIf",t.isExpanded&&t.isFullyCollapsible),e.R7$(4),e.Lme(" ",e.bMT(7,5,t.isExpanded?"common.hide":"common.show")," ",e.bMT(8,7,t.title)," "),e.R7$(3),e.Y8G("ngIf",!t.isExpanded),e.R7$(),e.Y8G("ngIf",t.isExpanded)}}function yt(a,r){if(1&a&&e.DNE(0,Ct,11,9,"div",0),2&a){const t=e.XpG();e.Y8G("ngIf",t.itemsToDisplay.length>0)}}function wt(a,r){1&a&&(e.j41(0,"div",11),e.nrm(1,"mat-spinner"),e.k0s())}let Ee=(()=>{class a{constructor(t,i){this.manage3dSettingsUtilService=t,this.destroyRef=i,this.manage3dSettingsUtilService.getLegacySettingsExpanded().pipe((0,D.pQ)(this.destroyRef)).subscribe(n=>{this.isExpanded=n})}togglePanel(){this.isExpanded=!this.isExpanded,this.manage3dSettingsUtilService.setLegacySettingsExpanded(this.isExpanded)}static{this.\u0275fac=function(i){return new(i||a)(e.rXU(F.f),e.rXU(e.abz))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["nv-downward-expansion-panel"]],inputs:{title:"title",isFullyCollapsible:"isFullyCollapsible",itemsToDisplay:"itemsToDisplay",isExpanded:"isExpanded"},ngContentSelectors:ft,decls:4,vars:0,consts:[["class","downward-expansion-panel-container",4,"ngIf"],[1,"downward-expansion-panel-container"],[1,"projected-content-container"],[4,"ngIf"],[1,"downward-expansion-panel-container-footer"],["mat-button","",1,"toggle-button",3,"click"],[1,"font-body3"],["svgIcon","chevron_down",4,"ngIf"],["svgIcon","chevron_up",4,"ngIf"],["svgIcon","chevron_down"],["svgIcon","chevron_up"],[1,"downward-expansion-panel-container-placeholder"]],template:function(i,n){1&i&&(e.NAR(),e.DNE(0,yt,1,1)(1,wt,2,0),e.nv$(2,0,St,null,1),e.g25())},dependencies:[z.LG],styles:["[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.downward-expansion-panel-container[_ngcontent-%COMP%] .projected-content-container[_ngcontent-%COMP%]{border-top:1px solid var(--feature-expansion-panel-container-border-bottom-color);border-bottom:1px solid var(--feature-expansion-panel-container-border-bottom-color)}.downward-expansion-panel-container[_ngcontent-%COMP%]:has(button.toggle-button:hover) .projected-content-container[_ngcontent-%COMP%], .downward-expansion-panel-container[_ngcontent-%COMP%]:has(button.toggle-button:focus-visible) .projected-content-container[_ngcontent-%COMP%]{border-top-color:var(--legacy-setting-expansion-panel-border-color);border-bottom-color:var(--legacy-setting-expansion-panel-border-color)}.downward-expansion-panel-container[_ngcontent-%COMP%] .downward-expansion-panel-container-footer[_ngcontent-%COMP%]{display:flex;justify-content:center}.downward-expansion-panel-container[_ngcontent-%COMP%] .downward-expansion-panel-container-footer[_ngcontent-%COMP%] .toggle-button[_ngcontent-%COMP%]{padding:5px 10px;height:34px;line-height:20px;border-top-right-radius:0!important;border-top-left-radius:0!important;background-color:var(--feature-expansion-panel-container-border-bottom-color)}.downward-expansion-panel-container[_ngcontent-%COMP%] .downward-expansion-panel-container-footer[_ngcontent-%COMP%] .toggle-button[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .downward-expansion-panel-container[_ngcontent-%COMP%] .downward-expansion-panel-container-footer[_ngcontent-%COMP%] .toggle-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{vertical-align:middle;text-align:center;font-size:14px}"]})}}return a})();var w=d(26875),se=d(8619),Ne=d(53461),ve=d(43615),Mt=d(71152),S=d(28220),oe=d(52238),ke=d(88502),xt=d(26513);let Ce=(()=>{class a{constructor(t){this.loggingService=t,this.currentBusySettings=new Set,this.busyStateSubject=new xt.t(!1),this.logger=this.loggingService.getLogger("nvapp/DlssSpinnerService")}setBusy(t,i){const n=this.currentBusySettings.size;i?this.currentBusySettings.add(t):this.currentBusySettings.delete(t);const s=this.currentBusySettings.size;n!==s&&this.busyStateSubject.next(s>0)}isAnyDlssSettingBusy(){return this.busyStateSubject.pipe((0,Ne.F)())}static{this.\u0275fac=function(i){return new(i||a)(e.KVO(y.J6))}}static{this.\u0275prov=e.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var L=d(44296),te=d(98504),U=d(54504),q=d(73842),de=d(54676),Z=d(49678),ye=d(62302);function Ot(a,r){if(1&a){const t=e.RV6();e.j41(0,"button",3),e.bIt("click",function(){const n=e.eBV(t).$implicit,s=e.XpG(2);return e.Njj(s.onSelectionChange(n))}),e.j41(1,"div",4)(2,"div",5),e.EFF(3),e.k0s()()()}if(2&a){const t=r.$implicit;e.Y8G("tabindex",0===r.index?0:-1),e.R7$(2),e.Y8G("ngClass",null!=t&&t.selected?"selected":""),e.R7$(),e.SpI(" ",t.displayValue," ")}}function Pt(a,r){if(1&a&&(e.qex(0),e.DNE(1,Ot,4,3,"button",2),e.bVm()),2&a){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.featureDisplayOptions)}}function Dt(a,r){if(1&a){const t=e.RV6();e.j41(0,"mat-radio-button",7),e.bIt("change",function(){const n=e.eBV(t).$implicit,s=e.XpG(2);return e.Njj(s.onSelectionChange(n))}),e.j41(1,"div",4)(2,"div",8),e.EFF(3),e.k0s()()()}if(2&a){const t=r.$implicit,i=r.index;e.FS9("value",null==t?null:t.displayValue),e.Y8G("checked",null==t?null:t.selected)("tabindex",0===i?0:-1),e.R7$(3),e.SpI(" ",t.displayValue," ")}}function Vt(a,r){if(1&a&&(e.qex(0),e.j41(1,"mat-radio-group"),e.DNE(2,Dt,4,4,"mat-radio-button",6),e.k0s(),e.bVm()),2&a){const t=e.XpG();e.R7$(2),e.Y8G("ngForOf",t.featureDisplayOptions)}}let W=(()=>{class a{constructor(t,i,n){this.loggingService=t,this.translateService=i,this.manage3dSettingsUtilService=n,this.featureDynamic=!1,this.settingData={},this.selectValue=new e.bkB,this.reverseDisplayOrder=!1,this.featureDisplayOptions=[],this.keyUnlocalizedPattern=new RegExp(g.M5),this.isGlobalValueMissing=!1,this.logger=this.loggingService.getLogger("nvapp/FeatureRadioGroupComponent")}ngOnInit(){this.initSelection()}ngOnChanges(t){this.isGlobalValueMissing=this.manage3dSettingsUtilService.isGlobalValueMissing(this.settingData.featureGlobalValue,this.settingData.featureName),this.featureDynamic?this.initSelection():this.selectedFeatureKey=t.selectedFeatureKey?.currentValue}initSelection(){let t;this.featureDisplayOptions=[],this.settingData?.featureEnumKeys?this.settingData?.featureEnumKeys.forEach(i=>{let n="";if(this.keyUnlocalizedPattern.test(i)?n=this.settingData?.featureEnum[i]:i===l.DefaultGlobalEnum.UseGlobalKey?n=this.translateService.instant("manage3dSettings.useProfile"):(this.transValueSub?.unsubscribe(),this.transValueSub=this.manage3dSettingsUtilService.getSettingTranslatedText(this.settingData.featureName,i).pipe((0,O.s)(1)).subscribe(s=>{n=s})),!this.settingData?.isGlobalContext&&this.isGlobalValueMissing)return this.logger.info(`Global value is missing for feature ${this.settingData?.featureName}`),n=this.manage3dSettingsUtilService.getMissingGlobalValueDisplay(),void this.updateFeatureDisplayOptions(i,n);this.settingData?.isGlobalContext||i!==l.DefaultGlobalEnum.UseGlobalKey?this.updateFeatureDisplayOptions(i,n):(this.transProgramValueSub?.unsubscribe(),this.transProgramValueSub=this.manage3dSettingsUtilService.resolveUseGlobalValue(this.featureDynamic,this.settingData?.featureEnum,this.settingData?.featureGlobalValue,this.settingData?.featureName,this.underLyingGlobalValue).pipe((0,O.s)(1)).subscribe(s=>{t=s,n=`${n} - ${t}`,this.updateFeatureDisplayOptions(i,n)}))}):this.logger.info("settingData.featureEnumKeys is not defined")}updateFeatureDisplayOptions(t,i){t!==this.settingData?.settingDefaultKey&&this.settingData?.featureEnum[t]!==this.settingData?.settingDefaultValue||(i=`${i} (${this.translateService.instant("common.default")})`),this.featureDisplayOptions.push({enumKey:t,displayValue:i,selected:this.selectedFeatureKey===t}),this.reverseDisplayOrder&&this.featureDisplayOptions?.reverse()}onSelectionChange(t){t.selected||(this.setSelectedDisplayOption(t),this.selectValue.emit({selectedFeatureKey:this.selectedFeatureKey,selectedKeyOrValue:t.enumKey,displayValue:t.displayValue}))}setSelectedDisplayOption(t){this.selectedFeatureKey=t.enumKey,this.featureDisplayOptions.forEach(i=>{i.selected=this.selectedFeatureKey===i.enumKey})}ngOnDestroy(){this.transValueSub?.unsubscribe(),this.transProgramValueSub?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||a)(e.rXU(y.J6),e.rXU(v.c$),e.rXU(F.f))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["nv-app-feature-radio-group"]],inputs:{featureDynamic:"featureDynamic",settingData:"settingData",underLyingGlobalValue:"underLyingGlobalValue",selectedFeatureKey:"selectedFeatureKey",isRadioButton:"isRadioButton",reverseDisplayOrder:"reverseDisplayOrder"},outputs:{selectValue:"selectValue"},features:[e.OA$],decls:3,vars:2,consts:[[1,"mat-menu-item-container"],[4,"ngIf"],["mat-menu-item","","class","option-content-container","nvAppListKeyboardNav","vertical",3,"tabindex","click",4,"ngFor","ngForOf"],["mat-menu-item","","nvAppListKeyboardNav","vertical",1,"option-content-container",3,"click","tabindex"],[1,"option-content"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"font-body2","option-text",3,"ngClass"],["class","option-content-container","nvAppListKeyboardNav","vertical",3,"value","checked","tabindex","change",4,"ngFor","ngForOf"],["nvAppListKeyboardNav","vertical",1,"option-content-container",3,"change","value","checked","tabindex"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"font-body2","option-text"]],template:function(i,n){1&i&&(e.j41(0,"div",0),e.DNE(1,Pt,2,1,"ng-container",1),e.k0s(),e.DNE(2,Vt,3,1,"ng-container",1)),2&i&&(e.R7$(),e.Y8G("ngIf",!n.isRadioButton),e.R7$(),e.Y8G("ngIf",n.isRadioButton))},dependencies:[p.YU,p.Sq,p.bT,L.gy,de.tG,U.a,Z.VT,Z._g,G.PW,ye._],styles:["[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%], .option-text[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.mat-menu-item-container[_ngcontent-%COMP%]{background-color:var(--primary-700);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;overflow:hidden}.option-content-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start;width:100%}.option-content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start;max-width:490px;overflow:hidden}mat-radio-button[_ngcontent-%COMP%] .option-content[_ngcontent-%COMP%]{padding-left:12px}.option-text[_ngcontent-%COMP%]{white-space:nowrap;width:100%;text-transform:none;text-align:start;cursor:pointer}.selected[_ngcontent-%COMP%]{color:var(--accent-500)}mat-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 16px}mat-radio-group[_ngcontent-%COMP%] mat-radio-button[_ngcontent-%COMP%]{height:48px}"]})}}return a})(),Gt=(()=>{class a{constructor(t,i){this.loggingService=t,this.jsonSettingsUtilService=i,this.settingData={},this.finalIntegerVal=new e.bkB,this.featureDisplayOptions=[],this.logger=this.loggingService.getLogger("nvapp/FeatureDynamicSettingIntegerUIComponent")}ngOnInit(){this.initSelection()}initSelection(){this.selectedFeatureKey=Object.keys(this.settingData?.featureEnum).find(t=>this.settingData?.featureEnum[t]===this.getFeatureCurrentValue())}updateSelectedValue(t){this.selectedFeatureKey=t.selectedFeatureKey;const i={selectedKeyOrValue:t.selectedKeyOrValue,displayValue:t.displayValue};this.logger.info("Selected value is",i),this.finalIntegerVal.emit(i)}getFeatureCurrentValue(){return this.jsonSettingsUtilService.getFeatureCurrentValue(this.settingData?.featureName,this.settingData)}static{this.\u0275fac=function(i){return new(i||a)(e.rXU(y.J6),e.rXU(ke.v))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["nv-app-feature-dynamic-setting-radio-ui"]],inputs:{settingData:"settingData"},outputs:{finalIntegerVal:"finalIntegerVal"},decls:1,vars:3,consts:[[3,"selectValue","settingData","featureDynamic","selectedFeatureKey"]],template:function(i,n){1&i&&(e.j41(0,"nv-app-feature-radio-group",0),e.bIt("selectValue",function(o){return n.updateSelectedValue(o)}),e.k0s()),2&i&&e.Y8G("settingData",n.settingData)("featureDynamic",!0)("selectedFeatureKey",n.selectedFeatureKey)},dependencies:[W],encapsulation:2})}}return a})();function It(a,r){if(1&a){const t=e.RV6();e.qex(0),e.j41(1,"nv-app-feature-dynamic-setting-radio-ui",2),e.bIt("finalIntegerVal",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.emitFinalValue(n))}),e.k0s(),e.bVm()}if(2&a){const t=e.XpG();e.R7$(),e.Y8G("settingData",t.settingData)}}let Ft=(()=>{class a{constructor(t){this.loggingService=t,this.settingData={},this.selectFeatureKey=new e.bkB,this.dynamicSettings=l.DynamicSettings,this.logger=this.loggingService.getLogger("nvapp/FeatureDynamicUIComponent")}ngOnInit(){this.logger.info("FeatureDynamicUIComponent reached")}emitFinalValue(t){this.selectFeatureKey.emit(t)}static{this.\u0275fac=function(i){return new(i||a)(e.rXU(y.J6))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["nv-app-feature-dynamic-ui"]],inputs:{settingData:"settingData"},outputs:{selectFeatureKey:"selectFeatureKey"},decls:2,vars:1,consts:[[3,"ngSwitch"],[4,"ngSwitchDefault"],[3,"finalIntegerVal","settingData"]],template:function(i,n){1&i&&(e.qex(0,0),e.DNE(1,It,2,1,"ng-container",1),e.bVm()),2&i&&e.Y8G("ngSwitch",null==n.settingData?null:n.settingData.featureName)},dependencies:[p.ux,p.fG,Gt]})}}return a})(),Tt=(()=>{class a{constructor(t){this.loggingService=t,this.settingData={},this.selectFeatureKey=new e.bkB,this.logger=this.loggingService.getLogger("nvapp/FeatureStaticUIComponent")}ngOnInit(){this.initSelection()}initSelection(){this.settingData?.featureEnum?this.selectedFeatureKey=Object.keys(this.settingData?.featureEnum).find(t=>this.settingData?.featureEnum[t]===this.settingData?.featureCurrentValue):this.logger.info("this.settingData.featureEnum value is not valid")}updateSelectedValue(t){this.selectedFeatureKey=t.selectedFeatureKey;const i={selectedKeyOrValue:t.selectedKeyOrValue,displayValue:t.displayValue};this.logger.info(i),this.selectFeatureKey.emit(i)}static{this.\u0275fac=function(i){return new(i||a)(e.rXU(y.J6))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["nv-app-feature-static-ui"]],inputs:{settingData:"settingData"},outputs:{selectFeatureKey:"selectFeatureKey"},decls:1,vars:2,consts:[[3,"selectValue","settingData","selectedFeatureKey"]],template:function(i,n){1&i&&(e.j41(0,"nv-app-feature-radio-group",0),e.bIt("selectValue",function(o){return n.updateSelectedValue(o)}),e.k0s()),2&i&&e.Y8G("settingData",n.settingData)("selectedFeatureKey",n.selectedFeatureKey)},dependencies:[W],encapsulation:2})}}return a})();const Rt=["menuTrigger"],Et=["settingMenu"],Nt=(a,r,t,i)=>({nvidiaSettingName:a,errors:r,notes:t,importantInfo:i}),je=(a,r)=>({"font-sub2":a,"color-unset":r});function kt(a,r){1&a&&e.nrm(0,"mat-progress-spinner",17),2&a&&e.Y8G("diameter",20)}function jt(a,r){if(1&a&&(e.j41(0,"span",18),e.EFF(1),e.k0s()),2&a){const t=e.XpG();e.Y8G("ngClass",e.l_i(2,je,t.profileValueBold,t.isDisabled)),e.R7$(),e.SpI(""," - "+t.globalTransVal," ")}}function At(a,r){if(1&a&&e.nrm(0,"mat-icon",19),2&a){const t=e.XpG();e.Y8G("svgIcon",t.icon)}}function Ut(a,r){if(1&a){const t=e.RV6();e.j41(0,"nv-app-feature-static-ui",20),e.bIt("selectFeatureKey",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.selectFeatureKey(n))}),e.k0s()}if(2&a){const t=e.XpG();e.Y8G("settingData",t.settingData)}}function Bt(a,r){if(1&a){const t=e.RV6();e.j41(0,"nv-app-feature-dynamic-ui",20),e.bIt("selectFeatureKey",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.selectFeatureKey(n))}),e.k0s()}if(2&a){const t=e.XpG();e.Y8G("settingData",t.settingData)}}let $t=(()=>{class a{constructor(t,i,n,s,o,c,u,f,m,_){this.loggingService=t,this.manage3dSettingsUtilService=i,this.program3dSettingsService=n,this.global3dSettingsService=s,this.errorHandlerService=o,this.dlssSettingsUtilService=c,this.jsonSettingsUtilService=u,this.ngZone=f,this.outsideGraphicsUpdateService=m,this.dlssSpinnerService=_,this.settingData={},this.isFeatureDisabled=!1,this.isDependentSettingToDisable=!1,this.icon=l.SettingsIcon.ArrowDropDown,this.profileValueBold=!1,this.currentValueBold=!1,this.isDisabled=!1,this.uiControlBusy=!1,this.anyDlssSettingBusy=!1,this.showUiControlBusy=!1,this.destroyRef=(0,e.WQX)(e.abz),this.isGlobalValueMissing=!1,this.showErrorToast=P=>{this.errorHandlerService.showToastMessage({text:"manage3dSettings.anErrorOccurred",placeholders:{errorText:P.message??""},translated:!1}).pipe((0,D.pQ)(this.destroyRef)).subscribe(),this.logger.error(P),this.ngOnDestroy(),this.ngOnInit(),this.ngAfterViewInit()},this.logger=this.loggingService.getLogger("nvapp/FeatureExpansionPanelComponent")}ngOnInit(){this.featureCurrentOriginalValue=this.settingData?.featureCurrentValue,this.isGlobalValueMissing=this.manage3dSettingsUtilService.isGlobalValueMissing(this.settingData?.featureGlobalValue,this.settingData?.featureName),this.initFeatureKeys(),this.checkIconType(),this.updateBoldEffectForSetting(),this.updateDisabled(),this.checkForImportantInfo()}checkForImportantInfo(){const t=this.settingData?.featureName;if(l.GlobalOnlyFeatures.includes(t)&&!this.settingData?.isGlobalContext){const i={text:"manage3dSettings.importantInfoForGlobalOnlyFeatures",doTranslate:!0};this.settingData.importantInfo=this.settingData?.importantInfo?.length>0?[i,...this.settingData.importantInfo]:[i]}}updateDisabled(){this.isDisabled=this.isFeatureDisabled||this.isDependentSettingToDisable||this.settingData?.isGreyedOut,this.settingData?.featureName===l.DependentSettingsList.StereoEnable&&this.settingData?.isGlobalContext&&(this.disableAfterGsyncSub?.unsubscribe(),this.disableAfterGsyncSub=this.outsideGraphicsUpdateService.getDisableStateAfterGsyncUpdate().subscribe(t=>{this.isDisabled=this.isDisabled||t})),this.settingData?.featureName===l.DependentSettingsList.AutoDisplaySwitching&&(this.disableDisplayModeSub?.unsubscribe(),this.disableDisplayModeSub=this.outsideGraphicsUpdateService.getDisableStateAfterDisplayModeUpdate().subscribe(t=>{this.isDisabled=this.isDisabled||t,this.isDisabled&&(this.settingData.importantInfo=[{text:"system.display.advanceOptimus.importantInfoForDisable",doTranslate:!0}])}))}ngAfterViewInit(){this.listenForDisableCheck(),this.listenForEscapeKey(),this.listenForDLSSSpinner()}listenForDLSSSpinner(){this.dlssSettingsUtilService.isDLSSSetting(this.settingData.featureName)&&this.dlssSpinnerService.isAnyDlssSettingBusy().pipe((0,D.pQ)(this.destroyRef)).subscribe(t=>{this.anyDlssSettingBusy=t},t=>{this.logger.error("Error in listenForDLSSSpinner",t)})}listenForDisableCheck(){this.manage3dSettingsUtilService.getSettingsDisableNotification().pipe((0,se.p)(t=>t.disableNotification.some(i=>i.settingName===this.settingData.featureName)&&this.settingData.isGlobalContext===t.isGlobalContext),(0,_e.T)(t=>t.disableNotification.find(i=>i.settingName===this.settingData.featureName).isDisabled),(0,Ne.F)(),(0,se.p)(t=>this.isDependentSettingToDisable!==t),(0,R.M)(t=>{this.isDependentSettingToDisable=t,this.updateDisabled()}),(0,D.pQ)(this.destroyRef)).subscribe(()=>{this.manage3dSettingsUtilService.showToastForDependentSetting()},t=>{this.logger.error(`Some error occured while checking disable state of setting ${this.settingData.featureName}`,t)})}checkForSettingDisable(){this.manage3dSettingsUtilService.checkForSettingDisable(this.currentSelectedValue,this.settingData.isGlobalContext,this.settingData.featureCurrentValue)}initFeatureKeys(){this.selectedFeatureValue=this.settingData?.featureCurrentValue,this.isDependentSettingToDisable=this.settingData?.isDisableDueToDependent,this.logger.info("Checking for feature ",this.settingData?.featureName," with current value ",this.settingData?.featureCurrentValue);const t=Object.keys(this.settingData?.featureEnum),i=this.getCurrentValue();let n=t.find(s=>this.settingData?.featureEnum[s]===i);n||(this.logger.info(`There is no key found for ${this.settingData?.featureName} for current value ${i} in ${JSON.stringify(this.settingData?.featureEnum)}`),this.logger.info("Defaulting to first value"),n=t[0]),this.transValueSub?.unsubscribe(),this.transValueSub=this.manage3dSettingsUtilService.getSettingDisplayText(this.settingData.featureName,this.settingData.featureCurrentValue,n,this.settingData.featureEnum,this.settingData?.constraints,this.settingData?.localApplication,this.settingData?.isGlobalContext).pipe((0,O.s)(1)).subscribe(s=>{this.selectedFeatureDisplayValue=s,this.updateProgramSettingsDisplayValue(n)})}updateProgramSettingsDisplayValue(t){if(!this.settingData?.isGlobalContext&&this.isGlobalValueMissing)return this.logger.info(`Global value is missing for feature ${this.settingData?.featureName}, setting display to '-'`),this.selectedFeatureDisplayValue=this.manage3dSettingsUtilService.getMissingGlobalValueDisplay(),void(this.globalTransVal=null);!this.settingData?.isGlobalContext&&t===l.DefaultGlobalEnum.UseGlobalKey&&(this.dlssSettingsUtilService.shouldSetGlobalTransValToNull(this.settingData.constraints,this.settingData?.featureName,this.selectedFeatureValue,this.settingData?.localApplication,this.settingData?.isGlobalContext)?this.globalTransVal=null:(this.transProgramValueSub?.unsubscribe(),this.transProgramValueSub=this.manage3dSettingsUtilService.resolveUseGlobalValue(this.settingData?.isDynamic,this.settingData?.featureEnum,this.settingData?.featureGlobalValue,this.settingData?.featureName,void 0).pipe((0,O.s)(1)).subscribe(n=>{this.globalTransVal=n,this.logger.info(`Found global text value for feature ${this.settingData?.featureName} to be = ${this.globalTransVal}`)})),this.updateGlobalSettingDisplayValue())}updateGlobalSettingDisplayValue(){this.updateBoldForProfile(),this.selectedFeatureDisplayValue=`${this.selectedFeatureDisplayValue}`,this.logger.info(`Display text ${this.selectedFeatureDisplayValue}`)}selectFeatureKey(t){this.selectedFeatureValue=(0,w.isNil)(this.settingData?.featureEnum[t.selectedKeyOrValue])?t.selectedKeyOrValue:this.settingData?.featureEnum[t.selectedKeyOrValue],this.selectedFeatureDisplayValue=t.displayValue,this.applySetting()}handleEnterKeyPress(t){this.isDisabled||(t.preventDefault(),t.stopImmediatePropagation(),this.originalMenuTrigger=t.target,this.menuTrigger&&!this.isDialogExpected(this.settingData.featureName)?(this.menuTrigger.focus(),this.menuTrigger.openMenu(),setTimeout(()=>{const i=document.querySelector(".cdk-overlay-container");if(i){const n=i.querySelector("button.mat-menu-item");n&&n.focus()}},0)):setTimeout(()=>{const i=document.querySelector(".mat-mdc-dialog-container");if(i){const n=i.querySelector("button.mat-button");n&&n.focus()}},1),this.openMenuOrModal())}isDialogExpected(t){return new Set([l.JsonTypeSettings.DLSSSR,l.DynamicSettings.CudaGpus,l.DynamicSettings.DSRFactor,l.DynamicSettings.PhysX]).has(t)}openMenuOrModal(){if(!this.settingData?.isGlobalContext&&this.isGlobalValueMissing)return this.manage3dSettingsUtilService.showMissingGlobalValueDialog(this.settingData?.featureName,this.program3dSettingsService.getSelectedProfileInfo()),void this.menuTrigger.closeMenu();const t=this.dlssSettingsUtilService.isDLSSSetting(this.settingData.featureName)&&this.anyDlssSettingBusy;this.uiControlBusy||t?(this.showUiControlBusy=!0,this.menuTrigger.closeMenu()):(this.uiControlBusy=!0,this.expandSettingOptionsSub?.unsubscribe(),this.expandSettingOptionsSub=this.manage3dSettingsUtilService.expandSettingOptions(this.settingData,this.menuTrigger,this.globalTransVal).subscribe(i=>{i?(this.selectFeatureKey(i),this.updateUiControlState(g.uf)):this.updateUiControlState(0)},i=>{this.logger.error(i)},()=>{this.updateUiControlState(g.uf)}))}dropDownMenuClosed(t){this.settingData.featureName!==l.JsonTypeSettings.DLSSSR?(this.updateUiControlState(t?g.uf:0),this.isDialogExpected(this.settingData.featureName)||setTimeout(()=>{this.originalMenuTrigger?.focus()},0)):this.logger.info("Dropdown event need not be handled for setting",this.settingData.featureName)}listenForEscapeKey(){this.ngZone.runOutsideAngular(()=>{(0,Mt.qU)(document,"keydown","Escape").pipe((0,D.pQ)(this.destroyRef)).subscribe(i=>{this.menuTrigger.closeMenu(),i.stopPropagation()})})}updateUiControlState(t){this.uiControlBusy=!0,setTimeout(()=>{this.uiControlBusy=!1,this.showUiControlBusy=!1},t)}applySetting(){this.setSpinnerForDLSSSetting(!0),this.setSelectedFeature(),this.checkForSettingDisable(),this.settingData?.isGlobalContext?this.global3dSettingsService.applySingleSetting(this.currentSelectedValue).pipe((0,R.M)(()=>{if(this.settingData?.featureName===l.JsonTypeSettings.BatteryBoost.toString()){const t=JSON.parse(this.currentSelectedValue?.selectedFeatureValue);this.manage3dSettingsUtilService.handleToggleChangedForJsonSettings(this.settingData?.featureName,t?.enabled)}if(this.settingData?.featureName===l.JsonTypeSettings.WhisperMode.toString()){const t=JSON.parse(this.currentSelectedValue?.selectedFeatureValue);this.manage3dSettingsUtilService.handleToggleChangedForJsonSettings(this.settingData?.featureName,t?.enabled)}}),(0,C.n)(()=>this.handleDLSSSetting()),(0,C.n)(()=>this.refreshComponent()),(0,C.n)(()=>this.global3dSettingsService.refreshGlobalSettings()),(0,C.n)(()=>this.program3dSettingsService.refreshProgramSettings()),(0,ve.j)(()=>{this.setSpinnerForDLSSSetting(!1)}),(0,D.pQ)(this.destroyRef)).subscribe(N.l,this.showErrorToast):this.program3dSettingsService.applySingleSetting(this.currentSelectedValue).pipe((0,C.n)(()=>this.handleDLSSSetting()),(0,C.n)(()=>this.refreshComponent()),(0,C.n)(()=>this.program3dSettingsService.refreshProgramSettings()),(0,ve.j)(()=>{this.setSpinnerForDLSSSetting(!1)}),(0,D.pQ)(this.destroyRef)).subscribe(N.l,this.showErrorToast)}setSpinnerForDLSSSetting(t){this.dlssSettingsUtilService.isDLSSSetting(this.settingData.featureName)&&this.dlssSpinnerService.setBusy(this.settingData.featureName,t)}handleDLSSSetting(){if(this.currentSelectedValue.settingName===l.JsonTypeSettings.DLSSSR)return this.applyDLSSRROverride().pipe((0,C.n)(()=>{const i=JSON.parse(this.currentSelectedValue.selectedFeatureValue).useGlobal;return this.applyPresetProfileOverride(i)}),(0,R.M)(()=>{const t=this.settingData.constraints.some(i=>i===S.uF.SRModelDenyListed);this.dlssSettingsUtilService.showToastForSRSetting(this.featureCurrentOriginalValue,this.currentSelectedValue.selectedFeatureValue,t,this.settingData.isGlobalContext)}));if(this.currentSelectedValue.settingName===l.JsonTypeSettings.DLSSFG){const i=JSON.parse(this.currentSelectedValue.selectedFeatureValue).useGlobal;return this.applyPresetProfileOverride(i).pipe((0,R.M)(()=>{this.dlssSettingsUtilService.showToastForFGSetting(this.featureCurrentOriginalValue,this.currentSelectedValue.selectedFeatureValue,this.settingData.isGlobalContext)}),(0,fe.u)(!0))}return(0,V.of)(!0)}applyDLSSRROverride(){const i=(this.settingData?.isGlobalContext?this.global3dSettingsService.profileSettingsInfoArray:this.program3dSettingsService.profileSettingsInfoArray).find(u=>u.settingName===l.JsonTypeSettings.DLSSRR.toString())?.settingValue;if(i.isGreyedOut)return this.logger.info("Skipping Override for RR as its not supported"),(0,V.of)(!0);const n=l.JsonTypeSettings.DLSSRR+g.lz,s=i?.[n],o=i.constraints.some(u=>u===S.uF.RRModelDenyListed);if(o)return this.logger.info("Skipping Override for RR as its deny listed"),(0,V.of)(!0);const c=this.dlssSettingsUtilService.applyRROnSROverride(this.currentSelectedValue?.selectedFeatureValue,s,o);return this.logger.info("Updating Performance Mode override for DLSSRR with value",c),this.settingData?.isGlobalContext?this.global3dSettingsService.applySingleSetting(c):this.program3dSettingsService.applySingleSetting(c)}applyPresetProfileOverride(t){if(!this.dlssSettingsUtilService.getIsDLSSSupportedGlobally())return this.logger.info("Skipping Preset Profile override as DLSS is not supported globally",this.settingData.localApplication?.localId),(0,V.of)(!0);const n=(this.settingData?.isGlobalContext?this.global3dSettingsService.profileSettingsInfoArray:this.program3dSettingsService.profileSettingsInfoArray).find(_=>_.settingName===l.JsonTypeSettings.DLSSModelPresetProfile.toString())?.settingValue;if(!n)return this.logger.info("DLSSModelPresetProfileValue not found in profile settings info array for localId",this.settingData.localApplication?.localId),(0,V.of)(!1);const s=l.JsonTypeSettings.DLSSModelPresetProfile+g.lz,o=n?.[s],c=JSON.parse(o),u=c.profileType;if(!c.useGlobal){if(u===S.h4.Custom)return this.logger.info("Skipping Preset Profile as it is already custom"),(0,V.of)(!0);if(!t&&u===S.h4.Latest)return this.logger.info("Skipping Preset Profile as it is latest and dependent setting is not use global"),(0,V.of)(!0)}c.profileType=S.h4.Custom,this.settingData?.isGlobalContext?delete c.useGlobal:c.useGlobal=!1;const m={settingName:l.JsonTypeSettings.DLSSModelPresetProfile,isDirty:!0,selectedFeatureValue:JSON.stringify(c)};return this.logger.info("Updating Preset Profile override for DLSSModelPresetProfile with value",m),this.settingData?.isGlobalContext?this.global3dSettingsService.applySingleSetting(m):this.program3dSettingsService.applySingleSetting(m)}refreshComponent(){let t;const i=this.settingData?.featureName===l.JsonTypeSettings.DLSSMF?S.IF.DLSSFG:this.settingData.enumId;return t=this.settingData.isGlobalContext?this.global3dSettingsService.refreshSingleSetting(i):this.program3dSettingsService.refreshSingleSetting(i),t.pipe((0,R.M)(n=>{this.reInitComponent(n)}),(0,fe.u)(!0))}reInitComponent(t){t&&(this.settingData.featureCurrentValue=this.manage3dSettingsUtilService.getFeatureValue(this.settingData.settingType,t),this.ngOnInit())}getCurrentValue(){let t=this.jsonSettingsUtilService.getFeatureCurrentValue(this.settingData?.featureName,this.settingData);switch(this.settingData?.featureName){case l.JsonTypeSettings.BatteryBoost:this.settingData.isUserModified=t!==l.BatteryBoostValue.On,this.isFeatureDisabled=!this.settingData?.isGlobalContext;break;case l.JsonTypeSettings.WhisperMode:this.settingData.isUserModified=t!==l.WhisperModeValue.Off,this.isFeatureDisabled=!this.settingData?.isGlobalContext;break;case l.JsonTypeSettings.ImageScaling:this.settingData.isUserModified=t!==l.ImageScalingValue.Off;break;case l.JsonTypeSettings.AIDVC:this.settingData.isUserModified=t!==l.AIDVCValue.Off;break;case l.JsonTypeSettings.DLSSSR:this.settingData.isUserModified=t!==l.DLSSSRValue.Off;break;case l.JsonTypeSettings.DLSSRR:this.settingData.isUserModified=t!==l.DLSSRRValue.Off;break;case l.JsonTypeSettings.DLSSFG:this.settingData.isUserModified=t!==l.DLSSFGValue.NVAPPAPI_VALUE_FRAME_GENERATION_OFF;break;case l.JsonTypeSettings.DLSSMF:this.settingData.isUserModified=t!==l.DLSSMFValue.OFF;break;case l.JsonTypeSettings.FGX:case l.JsonTypeSettings.AIHDR:case l.JsonTypeSettings.PhysX:break;default:t=this.settingData?.featureCurrentValue}return t}setCurrentFeature(t){this.currentSelectedValue={settingName:this.settingData?.featureName===l.JsonTypeSettings.DLSSMF?l.JsonTypeSettings.DLSSFG:this.settingData?.featureName,isDirty:t,selectedFeatureValue:this.selectedFeatureValue}}setSelectedFeature(){this.globalTransVal=null;let t=!1;const i=1==+this.selectedFeatureValue;switch(this.settingData?.featureName){case l.JsonTypeSettings.BatteryBoost:const n=JSON.parse(this.featureCurrentOriginalValue?.toString()??null),s={...n,enabled:i};t=this.isFeatureValueChanged(n,s);break;case l.JsonTypeSettings.WhisperMode:const o=JSON.parse(this.featureCurrentOriginalValue?.toString()??null),c={...o,enabled:i};t=this.isFeatureValueChanged(o,c);break;case l.JsonTypeSettings.AIHDR:t=this.isHDRValueChanged(i);break;case l.JsonTypeSettings.AIDVC:const u=JSON.parse(this.featureCurrentOriginalValue?.toString()??null),f={...u,enabled:i};t=this.isFeatureValueChanged(u,f);break;case l.JsonTypeSettings.DLSSMF:const _=(this.settingData?.isGlobalContext?this.global3dSettingsService.profileSettingsInfoArray:this.program3dSettingsService.profileSettingsInfoArray).find(X=>X.settingName===l.JsonTypeSettings.DLSSFG.toString())?.settingValue,P=l.JsonTypeSettings.DLSSFG+g.lz,M=_?.[P];[t,this.selectedFeatureValue]=this.dlssSettingsUtilService.isFrameGenerationValueChanged(M,l.DLSSFGValue.NVAPPAPI_VALUE_FRAME_GENERATION_ON.toString(),this.selectedFeatureValue,this.settingData?.isGlobalContext);break;case l.JsonTypeSettings.DLSSSR:const x=this.settingData.constraints.some(X=>X===S.uF.SRModelDenyListed);[t,this.selectedFeatureValue]=this.dlssSettingsUtilService.isOverrideValueChanged(this.featureCurrentOriginalValue,this.selectedFeatureValue,l.JsonTypeSettings.DLSSSR,x);break;case l.JsonTypeSettings.FGX:const E=this.global3dSettingsService.profileSettingsInfoArray.find(X=>X.settingName===l.JsonTypeSettings.FGX.toString())?.settingValue,H=l.JsonTypeSettings.FGX+g.lz,Q=E?.[H];[t,this.selectedFeatureValue]=this.dlssSettingsUtilService.isFGXValueChanged(this.featureCurrentOriginalValue,this.selectedFeatureValue,Q);break;default:t=this.selectedFeatureValue!==this.featureCurrentOriginalValue}this.setCurrentFeature(t)}isHDRValueChanged(t){let n={};if(+this.selectedFeatureValue===l.DefaultGlobalEnum.UseGlobalValue)n={useGlobal:!0};else{const o=JSON.parse(this.settingData?.settingDefaultValue?.toString());n.enabled=t,n.peakBrightness=o?.peakBrightnessMax,n.middleGrey=o?.middleGrey,n.contrast=o?.contrast,n.saturation=o?.saturation}const s=JSON.parse(this.featureCurrentOriginalValue?.toString()??null);return this.selectedFeatureValue=JSON.stringify(n),!(0,w.isEqual)(n,s)}isFeatureValueChanged(t,i){let n=!1;const s=1==+this.selectedFeatureValue;return(0,w.isNil)(t)||(n=!(0,w.isEqual)(s,t?.enabled),this.selectedFeatureValue=JSON.stringify(i)),n}checkIconType(){const t=l.SettingsIcon.Edit,i=l.SettingsIcon.ArrowDropDown;switch(this.settingData?.featureName){case l.DynamicSettings.CudaGpus:case l.JsonTypeSettings.DLSSSR:this.icon=t;break;case l.DynamicSettings.DSRFactor:case l.DynamicSettings.PhysX:this.icon=t,this.isFeatureDisabled=!this.settingData.isGlobalContext;break;case l.JsonTypeSettings.BatteryBoost:const n=JSON.parse(this.settingData?.featureCurrentValue.toString());this.icon=n.version===l.BatteryBoostVersionEnum.V1?t:i;break;case l.JsonTypeSettings.WhisperMode:const s=JSON.parse(this.settingData?.featureCurrentValue.toString());this.icon=s.version===l.WhisperModeVersionEnum.V2?t:i}}updateBoldEffectForSetting(){this.currentValueBold=this.manage3dSettingsUtilService.updateBoldEffectForSetting(this.settingData,this.selectedFeatureValue)}updateBoldForProfile(){this.profileValueBold=this.manage3dSettingsUtilService.updateBoldForProfile(this.settingData)}ngOnDestroy(){this.setSpinnerForDLSSSetting(!1),this.expandSettingOptionsSub?.unsubscribe(),this.disableAfterGsyncSub?.unsubscribe(),this.disableDisplayModeSub?.unsubscribe(),this.transValueSub?.unsubscribe(),this.transProgramValueSub?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||a)(e.rXU(y.J6),e.rXU(F.f),e.rXU($.g),e.rXU(Y.R),e.rXU(ce.c),e.rXU(oe.$),e.rXU(ke.v),e.rXU(e.SKi),e.rXU(Te),e.rXU(Ce))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["nv-app-feature-expansion-panel"]],viewQuery:function(i,n){if(1&i&&(e.GBs(Rt,5),e.GBs(Et,5,e.aKT)),2&i){let s;e.mGM(s=e.lsd())&&(n.menuTrigger=s.first),e.mGM(s=e.lsd())&&(n.settingMenuElement=s.first)}},inputs:{settingData:"settingData"},decls:22,vars:27,consts:[["menuTrigger","matMenuTrigger"],["settingMenu","matMenu"],["dynamicUI",""],["nvAppSettingInfoIcon","","tabindex","0","role","button",1,"feature-expansion-panel-container","feature-expansion-panel-border",3,"keydown.enter","id","settingDetails"],[1,"mat-menu-header"],[1,"header-title-text-container","setting-info-icon-container"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"font-body2","header-title-text"],[1,"loading-indicator-container"],["class","mat-accent","mode","indeterminate",3,"diameter",4,"ngIf"],["mat-button","","tabindex","-1",1,"font-body2","setting-drop-down","geometry-rounded-none-imp",3,"click","keydown.enter","matMenuTriggerFor","disabled"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"setting-value",3,"ngClass"],[3,"ngClass",4,"ngIf"],["class","material-icons",3,"svgIcon",4,"ngIf"],["xPosition","before","overlapTrigger","false",1,"settings-menu",3,"closed"],[1,"panel-container","feature-expansion-panel-border"],[1,"expansion-panel-item-list"],[3,"settingData","selectFeatureKey",4,"ngIf","ngIfElse"],["mode","indeterminate",1,"mat-accent",3,"diameter"],[3,"ngClass"],[1,"material-icons",3,"svgIcon"],[3,"selectFeatureKey","settingData"]],template:function(i,n){if(1&i){const s=e.RV6();e.j41(0,"div",3),e.nI1(1,"translate"),e.bIt("keydown.enter",function(c){return e.eBV(s),e.Njj(n.handleEnterKeyPress(c))}),e.j41(2,"div",4)(3,"div",5)(4,"label",6),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"div",7),e.DNE(8,kt,1,1,"mat-progress-spinner",8),e.j41(9,"button",9,0),e.bIt("click",function(){return e.eBV(s),e.Njj(n.openMenuOrModal())})("keydown.enter",function(c){return e.eBV(s),e.Njj(n.handleEnterKeyPress(c))}),e.j41(11,"div",10),e.EFF(12),e.DNE(13,jt,2,5,"span",11),e.k0s(),e.DNE(14,At,1,1,"mat-icon",12),e.k0s()()(),e.j41(15,"mat-menu",13,1),e.bIt("closed",function(c){return e.eBV(s),e.Njj(n.dropDownMenuClosed(c))}),e.j41(17,"div",14)(18,"div",15),e.DNE(19,Ut,1,1,"nv-app-feature-static-ui",16)(20,Bt,1,1,"ng-template",null,2,e.C5r),e.k0s()()()()}if(2&i){const s=e.sdS(16),o=e.sdS(21);e.qtP("aria-label","",e.bMT(1,15,"manage3dSettings."+(null==n.settingData?null:n.settingData.featureName)+".name")," ",n.selectedFeatureDisplayValue+(n.globalTransVal?" - "+n.globalTransVal:""),""),e.FS9("id",null==n.settingData?null:n.settingData.featureName),e.Y8G("settingDetails",e.ziG(19,Nt,null==n.settingData?null:n.settingData.featureName,null==n.settingData?null:n.settingData.errorMessages,null==n.settingData?null:n.settingData.notes,null==n.settingData?null:n.settingData.importantInfo)),e.R7$(5),e.SpI(" ",e.bMT(6,17,"manage3dSettings."+(null==n.settingData?null:n.settingData.featureName)+".name")," "),e.R7$(3),e.Y8G("ngIf",n.showUiControlBusy),e.R7$(),e.Y8G("matMenuTriggerFor",s)("disabled",n.isDisabled),e.R7$(2),e.Y8G("ngClass",e.l_i(24,je,n.currentValueBold,n.isDisabled)),e.R7$(),e.SpI(" ",n.selectedFeatureDisplayValue," "),e.R7$(),e.Y8G("ngIf",!!n.globalTransVal),e.R7$(),e.Y8G("ngIf",!n.isDisabled),e.R7$(5),e.Y8G("ngIf",!(null!=n.settingData&&n.settingData.isDynamic))("ngIfElse",o)}},dependencies:[p.YU,p.bT,I.iV,j.An,L.pI,L.fS,z.LG,te.tH,U.a,G.PW,q.H,Ft,Tt,v.D9],styles:["[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]{height:48px;background-color:var(--primary-900);padding:0 16px}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]:hover{background-color:var(--feature-expansion-panel-menu-header-hover-bg-color)}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-drop-down[_ngcontent-%COMP%]{display:flex;align-items:center;height:inherit;flex:1;padding:0 8px}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%]{white-space:nowrap;width:100%;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value.is-loading[_ngcontent-%COMP%]{color:var(--primary-500)}.feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{white-space:nowrap;width:auto;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:inherit;position:relative}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%] mat-progress-spinner[_ngcontent-%COMP%]{position:absolute}.feature-expansion-panel-container[_ngcontent-%COMP%] .color-unset[_ngcontent-%COMP%]{color:unset}.feature-expansion-panel-container[_ngcontent-%COMP%]:focus{outline-offset:-2px}"]})}}return a})();function Lt(a,r){if(1&a&&e.nrm(0,"nv-app-feature-expansion-panel",1),2&a){const t=e.XpG();e.Y8G("settingData",t.settingDataObjectForChildComponent)}}let Ae=(()=>{class a{constructor(t){this.loggingService=t,this.logger=this.loggingService.getLogger("nvapp/Manage3dSettingFeatureComponent")}ngOnInit(){this.featureSettingKey=this.featureName+g.lz,this.setFeatureEnumKeys()}setFeatureEnumKeys(){this.settingDataObjectForChildComponent={featureCurrentValue:this.featureSettingObject[this.featureSettingKey],settingDefaultKey:this.featureSettingObject.settingDefaultKey,settingDefaultValue:this.featureSettingObject.settingDefaultValue,featureEnum:this.featureSettingObject.featureEnum,featureEnumKeys:this.featureSettingObject.featureEnumKeys,featureGlobalValue:this.featureSettingObject.settingGlobalValue,featureName:this.featureName,isDynamic:this.featureSettingObject?.SettingInfo?.isDynamic,isGlobalContext:this.isGlobalContext,isUserModified:this.featureSettingObject.isUserModified,isDisableDueToDependent:this.featureSettingObject.isDisableDueToDependent,isGreyedOut:this.featureSettingObject.isGreyedOut,errorMessages:this.featureSettingObject.errorMessages,notes:this.featureSettingObject.notes,importantInfo:this.featureSettingObject.importantInfo,enumId:this.featureSettingObject.SettingInfo.enumId,settingType:this.featureSettingObject.SettingInfo.SettingType,isDisabled:this.featureSettingObject.isDisabled,constraints:this.featureSettingObject.constraints,localApplication:this.localApplication}}ngOnDestroy(){this.featureEnumSub&&this.featureEnumSub.unsubscribe()}static{this.\u0275fac=function(i){return new(i||a)(e.rXU(y.J6))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["nv-app-manage-3d-setting-feature"]],inputs:{featureName:"featureName",featureSettingObject:"featureSettingObject",isGlobalContext:"isGlobalContext",localApplication:"localApplication"},decls:1,vars:1,consts:[[3,"settingData",4,"ngIf"],[3,"settingData"]],template:function(i,n){1&i&&e.DNE(0,Lt,1,1,"nv-app-feature-expansion-panel",0),2&i&&e.Y8G("ngIf",!!n.settingDataObjectForChildComponent)},dependencies:[p.bT,$t]})}}return a})();var ne=d(5428),J=d(97888),ie=d(75723);let zt=(()=>{class a{constructor(t,i,n,s,o,c,u){this.loggingService=t,this.translateService=i,this.dialogData=n,this.dialogRef=s,this.global3dSettingsService=o,this.program3dSettingsService=c,this.manage3dSettingsUtilService=u,this.settingData={},this.defaultFpsValue="",this.isDirty=!1,this.isRadioButton=!1,this.isDisabled=!0,this.showErrorToast=f=>{this.dialogRef.close({applyInProgress:!1,needRefresh:!0}),this.manage3dSettingsUtilService.showApplyErrorToastMessage(f),this.logger.error(f),this.ngOnInit()},this.setDefaultValues(),this.settingData.isGlobalContext=this.dialogData.isGlobalContext,this.settingData.featureName=this.dialogData.featureName,this.featureSettingObject=this.dialogData.featureSettingObject,this.settingData.featureEnum=this.dialogData.featureEnum,this.settingData.featureEnumKeys=this.dialogData.featureEnumKeys,this.selectedFeatureKey=this.dialogData.selectedFeatureKey,this.settingData.settingDefaultKey=this.dialogData.featureDefaultValue,this.settingData.featureGlobalValue=this.dialogData.featureGlobalValue,this.isRadioButton=this.dialogData.isRadioButton,this.featureCurrentValue=this.dialogData.featureCurrentValue,this.sliderValue=this.dialogData.sliderValue,this.isDisabled=this.dialogData.isDisabled,this.selectedFeatureGlobalDisplayValue=this.dialogData.selectedFeatureGlobalDisplayValue,this.settingData.settingDefaultKey=this.dialogData.featureSettingObject.settingDefaultKey}get isBackgroundAppMaxFrameRate(){return this.dialogData.featureName===l.StaticSliderSettings.BackgroundAppMaxFrameRate}ngOnInit(){this.defaultFpsValue=this.getEnabledText(""),this.settingData.featureGlobalValue=this.featureSettingObject.settingGlobalValue}getUseGlobalText(){return this.translateService.instant("manage3dSettings."+this.settingData.featureName+".values.UseGlobal")}getEnabledText(t){return this.translateService.instant("manage3dSettings.FPS",{fps:t})}getDisabledText(){return this.translateService.instant("manage3dSettings."+this.settingData.featureName+".values.Off")}setDefaultValues(){const t=this.isBackgroundAppMaxFrameRate?g.i1:g.Sl;this.minValue=t.minValue,this.maxValue=t.maxValue,this.stepValue=t.stepValue,this.sliderDefaultValue=t.defaultValue,this.sliderValue=this.sliderDefaultValue,this.logger=this.loggingService.getLogger(this.isBackgroundAppMaxFrameRate?"nvapp/FeatureBackgroundAppMaxFrameRateModalComponent":"nvapp/FeatureMaxFrameRateModalComponent")}updateSelectedValue(t){this.selectedFeatureKey=t.selectedFeatureKey;const i=this.selectedFeatureKey===l.MaxFrameRateValueDisplayEnum.Off||this.selectedFeatureKey===l.DefaultGlobalEnum.UseGlobalKey;if(this.isDisabled=i,i){let n;this.selectedFeatureKey===l.DefaultGlobalEnum.UseGlobalKey?(this.selectedFeatureDisplayValue=this.getUseGlobalText(),n=l.DefaultGlobalEnum.UseGlobalValue):(this.selectedFeatureDisplayValue=this.getDisabledText(),n=l.MaxFrameRateValue.Off),this.updateDirtyState(n)}else this.onSliderValueChanged(this.sliderValue)}updateDirtyState(t){this.isDirty=this.isModified(t),this.selectedFeature={settingName:this.settingData.featureName,isDirty:this.isDirty,selectedFeatureValue:t,isAutoTrigger:!1}}isModified(t){if(this.featureCurrentValue===t){if(!(this.featureCurrentValue>0&&this.featureCurrentValue!==l.DefaultGlobalEnum.UseGlobalValue))return!1;if(this.maxFrameRateFPSCurrentValue===this.sliderValue)return!1}return!0}onSliderValueChanged(t){this.selectedFeatureDisplayValue=this.getEnabledText(t),this.updateDirtyState(t)}onCancelClick(){this.dialogRef.close({applyInProgress:!1,needRefresh:!1})}onApplyClick(){let t;this.dialogRef.close({applyInProgress:!0,needRefresh:!0,featureCurrentValue:this.selectedFeature.selectedFeatureValue,maxFrameRateFPSCurrentValue:this.sliderValue}),t=this.settingData.isGlobalContext?this.global3dSettingsService.applySingleSetting(this.selectedFeature).pipe((0,C.n)(()=>this.global3dSettingsService.refreshGlobalSettings()),(0,C.n)(()=>this.program3dSettingsService.refreshProgramSettings())):this.program3dSettingsService.applySingleSetting(this.selectedFeature).pipe((0,C.n)(()=>this.program3dSettingsService.refreshProgramSettings())),t.pipe((0,O.s)(1)).subscribe(N.l,this.showErrorToast)}static{this.\u0275fac=function(i){return new(i||a)(e.rXU(y.J6),e.rXU(v.c$),e.rXU(h.Vh),e.rXU(h.CP),e.rXU(Y.R),e.rXU($.g),e.rXU(F.f))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["nv-app-feature-max-frame-rate-modal"]],decls:20,vars:27,consts:[[1,"common-modal"],["mat-dialog-title","",1,"font-header6","title"],[1,"content"],[3,"selectValue","settingData","selectedFeatureKey","isRadioButton","underLyingGlobalValue"],[1,"content-details",3,"ngClass"],[1,"slider-content"],[1,"max-frame-rate-slider"],["formatTextAs","Integer","valueEntry","true",1,"common-slider",3,"valueChange","value","min","max","step","disabled","nvAppAnnouncer","associatedMessage"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"font-body2","default-fps",3,"ngClass"],["align","end",1,"actions"],["mat-button","",1,"cancel-button","font-button2",3,"click"],["mat-raised-button","",1,"apply-button","font-button2","mat-accent",3,"click","disabled"]],template:function(i,n){1&i&&(e.j41(0,"div",0)(1,"p",1),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"mat-dialog-content",2)(5,"nv-app-feature-radio-group",3),e.bIt("selectValue",function(o){return n.updateSelectedValue(o)}),e.k0s(),e.j41(6,"div",4)(7,"div",5)(8,"div",6)(9,"nv-hig-slider",7),e.nI1(10,"translate"),e.mxI("valueChange",function(o){return e.DH7(n.sliderValue,o)||(n.sliderValue=o),o}),e.bIt("valueChange",function(o){return n.onSliderValueChanged(o)}),e.k0s(),e.j41(11,"span",8),e.EFF(12),e.k0s()()()()(),e.j41(13,"mat-dialog-actions",9)(14,"button",10),e.bIt("click",function(){return n.onCancelClick()}),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.j41(17,"button",11),e.bIt("click",function(){return n.onApplyClick()}),e.EFF(18),e.nI1(19,"translate"),e.k0s()()()),2&i&&(e.R7$(2),e.SpI(" ",e.bMT(3,19,"manage3dSettings."+(null==n.settingData?null:n.settingData.featureName)+".name")," "),e.R7$(3),e.Y8G("settingData",n.settingData)("selectedFeatureKey",n.selectedFeatureKey)("isRadioButton",!0)("underLyingGlobalValue",n.selectedFeatureGlobalDisplayValue),e.R7$(),e.Y8G("ngClass",n.isDisabled?"disabled":""),e.R7$(3),e.R50("value",n.sliderValue),e.Y8G("min",n.minValue)("max",n.maxValue)("step",n.stepValue)("disabled",n.isDisabled)("nvAppAnnouncer",n.sliderValue)("associatedMessage","manage3dSettings."+(null==n.settingData?null:n.settingData.featureName)+".name"),e.BMQ("aria-label",e.bMT(10,21,"manage3dSettings."+(null==n.settingData?null:n.settingData.featureName)+".name")),e.R7$(2),e.Y8G("ngClass",n.isDisabled?"disabled-opacity":""),e.R7$(),e.JRh(n.defaultFpsValue),e.R7$(3),e.SpI(" ",e.bMT(16,23,"save.cancel")," "),e.R7$(2),e.Y8G("disabled",!n.isDirty),e.R7$(),e.SpI(" ",e.bMT(19,25,"save.apply")," "))},dependencies:[p.YU,I.iV,h.BI,h.Yi,h.E7,ne.t,J.Aq,U.a,G.PW,ie.L,W,v.D9],styles:[".slider-indicators[_ngcontent-%COMP%] .max-value[_ngcontent-%COMP%]{margin-right:80px}.max-frame-rate-slider[_ngcontent-%COMP%]{display:flex}.default-fps[_ngcontent-%COMP%]{min-width:36px;display:block;text-align:right}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}","[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]{height:48px;background-color:var(--primary-900);padding:0 16px}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]:hover{background-color:var(--feature-expansion-panel-menu-header-hover-bg-color)}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-drop-down[_ngcontent-%COMP%]{display:flex;align-items:center;height:inherit;flex:1;padding:0 8px}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%]{white-space:nowrap;width:100%;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value.is-loading[_ngcontent-%COMP%]{color:var(--primary-500)}.feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{white-space:nowrap;width:auto;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:inherit;position:relative}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%] mat-progress-spinner[_ngcontent-%COMP%]{position:absolute}.feature-expansion-panel-container[_ngcontent-%COMP%] .color-unset[_ngcontent-%COMP%]{color:unset}.feature-expansion-panel-container[_ngcontent-%COMP%]:focus{outline-offset:-2px}"]})}}return a})();const Xt=a=>({nvidiaSettingName:a}),Ue=a=>({"font-sub2":a});function Yt(a,r){1&a&&e.nrm(0,"mat-progress-spinner",10),2&a&&e.Y8G("diameter",20)}function Kt(a,r){if(1&a&&(e.j41(0,"span",11),e.EFF(1),e.k0s()),2&a){const t=e.XpG();e.Y8G("ngClass",e.eq3(2,Ue,t.profileValueBold)),e.R7$(),e.SpI(""," - "+t.globalTransVal," ")}}function qt(a,r){1&a&&e.nrm(0,"mat-icon",12)}let Be=(()=>{class a{constructor(t,i,n,s,o){this.loggingService=t,this.translateService=i,this.manage3dSettingsUtilService=n,this.matDialog=s,this.program3dSettingsService=o,this.featurePanelOpenState=!1,this.maxFrameRateDisabled=!0,this.currentValueBold=!1,this.profileValueBold=!1,this.uiControlBusy=!1,this.showUiControlBusy=!1,this.isGlobalValueMissing=!1,this.isBackgroundAppMaxFrameRate=!1}ngOnInit(){this.logger=this.loggingService.getLogger(this.isBackgroundAppMaxFrameRate?"nvapp/BackgroundAppMaxFrameRateComponent":"nvapp/FeatureMaxFrameRateComponent"),this.isGlobalValueMissing=this.manage3dSettingsUtilService.isGlobalValueMissing(this.featureSettingObject.settingGlobalValue,this.featureName),this.sliderDefaultValue=this.isBackgroundAppMaxFrameRate?g.i1.defaultValue:g.Sl.defaultValue,this.sliderValue=this.sliderDefaultValue,this.setFeatureEnumKeys(),this.initSelection()}ngAfterViewInit(){this.savePreviousAppliedValues()}setFeatureEnumKeys(){this.featureSettingKey=this.featureName+g.lz,this.featureCurrentValue=this.featureSettingObject[this.featureSettingKey],this.maxFrameRateFPSSettingKey=(this.isBackgroundAppMaxFrameRate?l.CuratedGlobalSettings.BackgroundAppMaxFrameRateFPS:l.CuratedGlobalSettings.MaxFrameRateFPS)+g.lz,this.maxFrameRateFPSCurrentValue=this.maxFrameRateFPSObject[this.maxFrameRateFPSSettingKey],this.settingDataObjectForChildComponent={featureCurrentValue:this.featureSettingObject[this.featureSettingKey],settingDefaultKey:this.featureSettingObject.settingDefaultKey,settingDefaultValue:this.featureSettingObject.settingDefaultValue,featureEnum:this.featureSettingObject.featureEnum,featureEnumKeys:this.featureSettingObject.featureEnumKeys,featureGlobalValue:this.featureSettingObject.settingGlobalValue,featureName:this.featureName,isDynamic:this.featureSettingObject?.SettingInfo?.isDynamic,isGlobalContext:this.isGlobalContext,isUserModified:this.featureSettingObject.isUserModified,isGreyedOut:this.featureSettingObject.isGreyedOut,enumId:this.featureSettingObject.SettingInfo.enumId,settingType:this.featureSettingObject.SettingInfo.SettingType}}initSelection(){if(this.globalTransVal=null,!this.isGlobalContext&&this.isGlobalValueMissing)return this.logger.info(`Global value is missing for feature ${this.featureName}, setting fallback display`),this.selectedFeatureDisplayValue=this.manage3dSettingsUtilService.getMissingGlobalValueDisplay(),void(this.globalTransVal=null);if(this.sliderValue=this.maxFrameRateFPSCurrentValue&&this.maxFrameRateFPSCurrentValue!==l.DefaultGlobalEnum.UseGlobalValue?this.maxFrameRateFPSCurrentValue||this.sliderValue:this.sliderDefaultValue,this.isGlobalContext||this.featureCurrentValue!==l.DefaultGlobalEnum.UseGlobalValue)this.isGlobalContext||(this.transValueSub?.unsubscribe(),this.transValueSub=this.getProfileTranslatedValue().pipe((0,O.s)(1)).subscribe(i=>{this.selectedFeatureGlobalDisplayValue=i}));else if(this.featureSettingObject.settingDefaultKey=l.DefaultGlobalEnum.UseGlobalKey,this.featureCurrentValue===l.DefaultGlobalEnum.UseGlobalValue)return this.transValueSub?.unsubscribe(),void(this.transValueSub=this.getProfileTranslatedValue().pipe((0,O.s)(1)).subscribe(i=>{this.globalTransVal=i,this.selectedFeatureDisplayValue=`${this.getUseGlobalText()}`,this.updateBoldForProfile(),this.selectedFeatureKey=l.DefaultGlobalEnum.UseGlobalKey,this.maxFrameRateDisabled=!0,this.sliderValue=this.sliderDefaultValue,this.selectedFeatureGlobalDisplayValue=this.globalTransVal}));const t=0===this.featureCurrentValue;t?(this.selectedFeatureKey=l.MaxFrameRateValueDisplayEnum.Off,this.selectedFeatureDisplayValue=this.getDisabledText()):(this.selectedFeatureKey=l.MaxFrameRateValueDisplayEnum.On,this.selectedFeatureDisplayValue=this.getEnabledText(this.maxFrameRateFPSCurrentValue)),this.maxFrameRateDisabled=t,this.updateBoldEffectForSetting()}getProfileTranslatedValue(){return this.manage3dSettingsUtilService.resolveUseGlobalValue(!1,this.settingDataObjectForChildComponent.featureEnum,this.settingDataObjectForChildComponent.featureGlobalValue,this.featureName).pipe((0,O.s)(1),(0,_e.T)(t=>(isNaN(Number(t))||(t=this.getEnabledText(t)),t)))}getUseGlobalText(){return this.translateService.instant("manage3dSettings."+this.featureName+".values.UseGlobal")}getEnabledText(t){return this.translateService.instant("manage3dSettings.FPS",{fps:t})}getDisabledText(){return this.translateService.instant("manage3dSettings."+this.featureName+".values.Off")}openSettingsModal(){if(!this.isGlobalContext&&this.isGlobalValueMissing)return void this.manage3dSettingsUtilService.showMissingGlobalValueDialog(this.featureName,this.program3dSettingsService.getSelectedProfileInfo());if(this.uiControlBusy)return void(this.showUiControlBusy=!0);this.uiControlBusy=!0;const t=this.manage3dSettingsUtilService.getCommonDialogConfig();t.data={featureName:this.featureName,featureSettingObject:this.featureSettingObject,isGlobalContext:this.isGlobalContext,featureEnum:this.settingDataObjectForChildComponent.featureEnum,featureEnumKeys:this.settingDataObjectForChildComponent.featureEnumKeys,selectedFeatureKey:this.selectedFeatureKey,featureDefaultValue:this.settingDataObjectForChildComponent.settingDefaultValue,featureGlobalValue:this.settingDataObjectForChildComponent.featureGlobalValue,isRadioButton:!0,featureCurrentValue:this.featureCurrentValue,sliderValue:this.sliderValue,isDisabled:this.maxFrameRateDisabled,selectedFeatureGlobalDisplayValue:this.selectedFeatureGlobalDisplayValue},this.settingDialogRef=this.matDialog.open(zt,t),this.settingDialogRef.afterClosed().pipe((0,O.s)(1)).subscribe(i=>{i?.applyInProgress?(this.savePreviousAppliedValues(),this.featureSettingObject[this.featureSettingKey]=i.featureCurrentValue,this.maxFrameRateFPSObject[this.maxFrameRateFPSSettingKey]=i.maxFrameRateFPSCurrentValue,this.ngOnInit()):i?.needRefresh&&(this.getFromPreviousAppliedValues(),this.ngOnInit()),this.updateUiControlState(i?.applyInProgress||i?.needRefresh?g.uf:0)},i=>{this.logger.error(i)},()=>{this.updateUiControlState(g.uf)})}updateUiControlState(t){setTimeout(()=>{this.uiControlBusy=!1,this.showUiControlBusy=!1},t)}savePreviousAppliedValues(){this.featureSettingObjectOriginal=(0,w.cloneDeep)(this.featureSettingObject),this.maxFrameRateFPSObjectOriginal=(0,w.cloneDeep)(this.maxFrameRateFPSObject)}getFromPreviousAppliedValues(){this.featureSettingObject=(0,w.cloneDeep)(this.featureSettingObjectOriginal),this.maxFrameRateFPSObject=(0,w.cloneDeep)(this.maxFrameRateFPSObjectOriginal)}updateBoldEffectForSetting(){this.currentValueBold=this.manage3dSettingsUtilService.updateBoldEffectForSetting(this.settingDataObjectForChildComponent,this.featureCurrentValue)}updateBoldForProfile(){this.profileValueBold=this.manage3dSettingsUtilService.updateBoldForProfile(this.settingDataObjectForChildComponent)}ngOnDestroy(){this.transValueSub?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||a)(e.rXU(y.J6),e.rXU(v.c$),e.rXU(F.f),e.rXU(h.bZ),e.rXU($.g))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["nv-app-feature-max-frame-rate"]],inputs:{featureName:"featureName",featureSettingObject:"featureSettingObject",maxFrameRateFPSObject:"maxFrameRateFPSObject",isGlobalContext:"isGlobalContext",isBackgroundAppMaxFrameRate:"isBackgroundAppMaxFrameRate"},decls:14,vars:20,consts:[["nvAppSettingInfoIcon","","tabindex","0","role","button",1,"feature-expansion-panel-container","feature-expansion-panel-border",3,"keydown.enter","id","settingDetails"],[1,"mat-menu-header"],[1,"header-title-text-container","setting-info-icon-container"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"font-body2","header-title-text"],[1,"loading-indicator-container"],["class","mat-accent","mode","indeterminate",3,"diameter",4,"ngIf"],["mat-button","","tabindex","-1",1,"font-body2","setting-drop-down","geometry-rounded-none-imp",3,"click","disabled"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"setting-value",3,"ngClass"],[3,"ngClass",4,"ngIf"],["class","material-icons","svgIcon","edit_settings",4,"ngIf"],["mode","indeterminate",1,"mat-accent",3,"diameter"],[3,"ngClass"],["svgIcon","edit_settings",1,"material-icons"]],template:function(i,n){1&i&&(e.j41(0,"div",0),e.nI1(1,"translate"),e.bIt("keydown.enter",function(){return n.openSettingsModal()}),e.j41(2,"div",1)(3,"div",2)(4,"label",3),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"div",4),e.DNE(8,Yt,1,1,"mat-progress-spinner",5),e.j41(9,"button",6),e.bIt("click",function(){return n.openSettingsModal()}),e.j41(10,"div",7),e.EFF(11),e.DNE(12,Kt,2,4,"span",8),e.k0s(),e.DNE(13,qt,1,0,"mat-icon",9),e.k0s()()()()),2&i&&(e.qtP("aria-label","",e.bMT(1,12,"manage3dSettings."+n.featureName+".name")," ",n.selectedFeatureDisplayValue+(n.globalTransVal?" - "+n.globalTransVal:""),""),e.FS9("id",n.featureName),e.Y8G("settingDetails",e.eq3(16,Xt,n.featureName)),e.R7$(5),e.JRh(e.bMT(6,14,"manage3dSettings."+n.featureName+".name")),e.R7$(3),e.Y8G("ngIf",n.showUiControlBusy),e.R7$(),e.Y8G("disabled",null==n.settingDataObjectForChildComponent?null:n.settingDataObjectForChildComponent.isGreyedOut),e.R7$(),e.Y8G("ngClass",e.eq3(18,Ue,n.currentValueBold)),e.R7$(),e.SpI(" ",n.selectedFeatureDisplayValue," "),e.R7$(),e.Y8G("ngIf",!!n.globalTransVal),e.R7$(),e.Y8G("ngIf",!(null!=n.settingDataObjectForChildComponent&&n.settingDataObjectForChildComponent.isGreyedOut)))},dependencies:[p.YU,p.bT,I.iV,j.An,z.LG,U.a,G.PW,q.H,v.D9],styles:[".max-frame-rate-container[_ngcontent-%COMP%]{padding-left:35px;width:351px}.max-frame-rate-container[_ngcontent-%COMP%] mat-divider[_ngcontent-%COMP%]{margin-top:24px;padding-bottom:24px}.max-frame-rate-container[_ngcontent-%COMP%] mat-slider[_ngcontent-%COMP%]{max-width:251px}.slider-values[_ngcontent-%COMP%]{max-width:251px;margin-bottom:5px}","[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]{height:48px;background-color:var(--primary-900);padding:0 16px}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]:hover{background-color:var(--feature-expansion-panel-menu-header-hover-bg-color)}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-drop-down[_ngcontent-%COMP%]{display:flex;align-items:center;height:inherit;flex:1;padding:0 8px}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%]{white-space:nowrap;width:100%;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value.is-loading[_ngcontent-%COMP%]{color:var(--primary-500)}.feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{white-space:nowrap;width:auto;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:inherit;position:relative}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%] mat-progress-spinner[_ngcontent-%COMP%]{position:absolute}.feature-expansion-panel-container[_ngcontent-%COMP%] .color-unset[_ngcontent-%COMP%]{color:unset}.feature-expansion-panel-container[_ngcontent-%COMP%]:focus{outline-offset:-2px}"]})}}return a})();var K=d(79539);const we=()=>({sharpenValue:""}),Me=()=>({ignoreFilmGrainValue:""});let Jt=(()=>{class a{constructor(t,i,n,s,o,c){this.loggingService=t,this.dialogData=i,this.global3dSettingsService=n,this.program3dSettingsService=s,this.dialogRef=o,this.manage3dSettingsUtilService=c,this.settingData={},this.minValue=g.Vo.minValue,this.maxValue=g.Vo.maxValue,this.stepValue=g.Vo.stepValue,this.sharpenSliderValue=g.Vo.sharpen,this.ignoreFilmGrainSliderValue=g.Vo.noiseGrain,this.sharpenText="",this.ignoreFilmGrainText="",this.isSlidersDisabled=!0,this.isApplyButtonDisabled=!0,this.isDirty=!1,this.selectedToggleFeature={settingName:l.StaticSliderSettings.ImageSharpeningToggle},this.selectedAllowFeature={settingName:l.StaticSliderSettings.ImageSharpeningAllow},this.selectedSharpeningFeature={settingName:l.StaticSliderSettings.ImageSharpening,selectedFeatureValue:100*g.Vo.sharpen},this.selectedNoiseGrainFeature={settingName:l.StaticSliderSettings.ImageSharpeningNoiseGrain,selectedFeatureValue:100*g.Vo.noiseGrain},this.isRadioButton=!1,this.showErrorToast=u=>{this.dialogRef.close({applyInProgress:!1,needRefresh:!0,featureCurrentValue:this.selectedToggleFeature.selectedFeatureValue}),this.manage3dSettingsUtilService.showApplyErrorToastMessage(u),this.logger.error(u)},this.logger=this.loggingService.getLogger("nvapp/FeatureImageSharpeningModalComponent"),this.settingData.isGlobalContext=this.dialogData.isGlobalContext,this.settingData.featureName=this.dialogData.featureName,this.featureSettingObject=this.dialogData.featureSettingObject,this.noiseGrainSettingObject=this.dialogData.noiseGrainSettingObject,this.settingData.featureEnum=this.dialogData.featureEnum,this.settingData.featureEnumKeys=this.dialogData.featureEnumKeys,this.selectedFeatureKey=this.dialogData.selectedFeatureKey,this.settingData.settingDefaultKey=this.dialogData.featureSettingObject.settingDefaultKey,this.settingData.featureGlobalValue=this.dialogData.featureGlobalValue,this.isRadioButton=this.dialogData.isRadioButton,this.featureCurrentValue=this.dialogData.featureCurrentValue,this.sharpenInitialValue=this.dialogData.sharpenCurrentValue,this.ignoreFilmGrainInitialValue=this.dialogData.ignoreFilmGrainCurrentValue,this.sharpenSettingObject=this.dialogData.sharpenSettingObject,this.selectedFeatureGlobalDisplayValue=this.dialogData.selectedFeatureGlobalDisplayValue}ngOnInit(){this.selectedToggleFeature.selectedFeatureValue=this.settingData.featureEnum[this.selectedFeatureKey],this.selectedAllowFeature.selectedFeatureValue=this.settingData.featureEnum[this.selectedFeatureKey],this.ignoreFilmGrainSliderValue=this.ignoreFilmGrainInitialValue??this.ignoreFilmGrainSliderValue,this.sharpenSliderValue=this.sharpenInitialValue??this.sharpenSliderValue,this.selectedSharpeningFeature.selectedFeatureValue=Math.trunc(100*this.sharpenSliderValue),this.selectedNoiseGrainFeature.selectedFeatureValue=Math.trunc(100*this.ignoreFilmGrainSliderValue),this.updateSettingDisabledState()}updateSelectedValue(t){this.selectedFeatureKey=t.selectedFeatureKey,this.settingData.isGlobalContext||(this.selectedAllowFeature.selectedFeatureValue=this.settingData.featureEnum[this.selectedFeatureKey]),this.selectedToggleFeature.selectedFeatureValue=this.settingData.featureEnum[this.selectedFeatureKey],this.updateSettingDisabledState()}updateSettingDisabledState(){this.isApplyButtonDisabled=this.settingData.isGlobalContext?this.selectedToggleFeature.selectedFeatureValue===this.featureCurrentValue:this.selectedAllowFeature.selectedFeatureValue===this.featureCurrentValue,this.isSlidersDisabled=this.selectedFeatureKey===l.ImageSharpeningToggleValueDisplayEnum.NVCPLAPI_VALUE_SHARPENING_TOGGLE_DISABLED||this.selectedFeatureKey===l.ImageSharpeningAllowValueDisplayEnum.NVCPLAPI_VALUE_SHARPENING_ALLOW_DISABLED||this.selectedFeatureKey===l.DefaultGlobalEnum.UseGlobalKey,(this.selectedFeatureKey===l.ImageSharpeningToggleValueDisplayEnum.NVCPLAPI_VALUE_SHARPENING_TOGGLE_ENABLED||this.selectedFeatureKey===l.ImageSharpeningAllowValueDisplayEnum.NVCPLAPI_VALUE_SHARPENING_ALLOW_ENABLED)&&(this.isApplyButtonDisabled=this.isApplyButtonDisabled&&this.ignoreFilmGrainInitialValue===this.ignoreFilmGrainSliderValue&&this.sharpenInitialValue===this.sharpenSliderValue)}onSharpenSliderValueChanged(t){this.sharpenSliderValue=+t.toFixed(2),this.selectedSharpeningFeature.selectedFeatureValue=Math.trunc(100*this.sharpenSliderValue),this.updateSettingDisabledState()}onIgnoreFilmGrainValueChanged(t){this.ignoreFilmGrainSliderValue=+t.toFixed(2),this.selectedNoiseGrainFeature.selectedFeatureValue=Math.trunc(100*this.ignoreFilmGrainSliderValue),this.logger.info(this.selectedNoiseGrainFeature.selectedFeatureValue),this.updateSettingDisabledState()}onCancelClick(){this.dialogRef.close({applyInProgress:!1,needRefresh:!1})}onApplyClick(){let t;this.dialogRef.close({applyInProgress:!0,needRefresh:!0,featureCurrentValue:this.selectedToggleFeature.selectedFeatureValue,ignoreFilmGrainCurrentValue:this.selectedNoiseGrainFeature.selectedFeatureValue,sharpenCurrentValue:this.selectedSharpeningFeature.selectedFeatureValue}),t=this.settingData.isGlobalContext?this.getGlobalSettingApplyObs():this.getProgramSettingApplyObs(),t.pipe((0,O.s)(1)).subscribe(N.l,this.showErrorToast)}getProgramSettingApplyObs(){return this.selectedFeatureKey===l.ImageSharpeningAllowValueDisplayEnum.NVCPLAPI_VALUE_SHARPENING_ALLOW_DISABLED?this.program3dSettingsService.applySingleSetting(this.selectedAllowFeature).pipe((0,K.H)(t=>this.program3dSettingsService.applySingleSetting(this.selectedToggleFeature)),(0,C.n)(()=>this.program3dSettingsService.refreshProgramSettings())):this.selectedFeatureKey===l.DefaultGlobalEnum.UseGlobalKey?this.program3dSettingsService.applySingleSetting(this.selectedAllowFeature).pipe((0,C.n)(()=>this.program3dSettingsService.refreshProgramSettings())):this.program3dSettingsService.applySingleSetting(this.selectedAllowFeature).pipe((0,K.H)(t=>this.program3dSettingsService.applySingleSetting(this.selectedToggleFeature)),(0,K.H)(t=>this.program3dSettingsService.applySingleSetting(this.selectedSharpeningFeature)),(0,K.H)(t=>this.program3dSettingsService.applySingleSetting(this.selectedNoiseGrainFeature)),(0,C.n)(()=>this.program3dSettingsService.refreshProgramSettings()))}getGlobalSettingApplyObs(){return this.selectedFeatureKey===l.ImageSharpeningToggleValueDisplayEnum.NVCPLAPI_VALUE_SHARPENING_TOGGLE_DISABLED?this.global3dSettingsService.applySingleSetting(this.selectedToggleFeature).pipe((0,C.n)(()=>this.global3dSettingsService.refreshGlobalSettings()),(0,C.n)(()=>this.program3dSettingsService.refreshProgramSettings())):this.global3dSettingsService.applySingleSetting(this.selectedToggleFeature).pipe((0,K.H)(t=>this.global3dSettingsService.applySingleSetting(this.selectedSharpeningFeature)),(0,K.H)(t=>this.global3dSettingsService.applySingleSetting(this.selectedNoiseGrainFeature)),(0,C.n)(()=>this.global3dSettingsService.refreshGlobalSettings()),(0,C.n)(()=>this.program3dSettingsService.refreshProgramSettings()))}static{this.\u0275fac=function(i){return new(i||a)(e.rXU(y.J6),e.rXU(h.Vh),e.rXU(Y.R),e.rXU($.g),e.rXU(h.CP),e.rXU(F.f))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["nv-app-feature-image-sharpening-modal"]],decls:26,vars:53,consts:[[1,"common-modal"],["mat-dialog-title","",1,"font-header6","title"],[1,"content"],[3,"selectValue","settingData","selectedFeatureKey","isRadioButton","underLyingGlobalValue"],[1,"content-details",3,"ngClass"],[1,"slider-content"],[1,"font-body2","slider-title"],["formatTextAs","Decimal","valueEntry","true",3,"valueChange","value","min","max","step","disabled","nvAppAnnouncer","associatedMessage","associatedMessageParams"],["align","end",1,"actions"],["mat-button","",1,"cancel-button","font-button2",3,"click"],["mat-raised-button","",1,"apply-button","font-button2","mat-accent",3,"click","disabled"]],template:function(i,n){1&i&&(e.j41(0,"div",0)(1,"p",1),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"mat-dialog-content",2)(5,"nv-app-feature-radio-group",3),e.bIt("selectValue",function(o){return n.updateSelectedValue(o)}),e.k0s(),e.j41(6,"div",4)(7,"div",5)(8,"div",6),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"nv-hig-slider",7),e.nI1(12,"translate"),e.mxI("valueChange",function(o){return e.DH7(n.sharpenSliderValue,o)||(n.sharpenSliderValue=o),o}),e.bIt("valueChange",function(o){return n.onSharpenSliderValueChanged(o)}),e.k0s()(),e.j41(13,"div",5)(14,"div",6),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.j41(17,"nv-hig-slider",7),e.nI1(18,"translate"),e.mxI("valueChange",function(o){return e.DH7(n.ignoreFilmGrainSliderValue,o)||(n.ignoreFilmGrainSliderValue=o),o}),e.bIt("valueChange",function(o){return n.onIgnoreFilmGrainValueChanged(o)}),e.k0s()()()(),e.j41(19,"mat-dialog-actions",8)(20,"button",9),e.bIt("click",function(){return n.onCancelClick()}),e.EFF(21),e.nI1(22,"translate"),e.k0s(),e.j41(23,"button",10),e.bIt("click",function(){return n.onApplyClick()}),e.EFF(24),e.nI1(25,"translate"),e.k0s()()()),2&i&&(e.R7$(2),e.SpI(" ",e.bMT(3,29,"manage3dSettings."+(null==n.settingData?null:n.settingData.featureName)+".name")," "),e.R7$(3),e.Y8G("settingData",n.settingData)("selectedFeatureKey",n.selectedFeatureKey)("isRadioButton",!0)("underLyingGlobalValue",n.selectedFeatureGlobalDisplayValue),e.R7$(),e.Y8G("ngClass",n.isSlidersDisabled?"disabled":""),e.R7$(3),e.SpI(" ",e.i5U(10,31,"manage3dSettings.ImageSharpening.name",e.lJ4(47,we))," "),e.R7$(2),e.R50("value",n.sharpenSliderValue),e.Y8G("min",n.minValue)("max",n.maxValue)("step",n.stepValue)("disabled",n.isSlidersDisabled)("nvAppAnnouncer",n.sharpenSliderValue)("associatedMessage","manage3dSettings.ImageSharpening.name")("associatedMessageParams",e.lJ4(48,we)),e.BMQ("aria-label",e.i5U(12,34,"manage3dSettings.ImageSharpening.name",e.lJ4(49,we))),e.R7$(4),e.SpI(" ",e.i5U(16,37,"manage3dSettings.ImageSharpeningNoiseGrain.name",e.lJ4(50,Me))," "),e.R7$(2),e.R50("value",n.ignoreFilmGrainSliderValue),e.Y8G("min",n.minValue)("max",n.maxValue)("step",n.stepValue)("disabled",n.isSlidersDisabled)("nvAppAnnouncer",n.ignoreFilmGrainSliderValue)("associatedMessage","manage3dSettings.ImageSharpeningNoiseGrain.name")("associatedMessageParams",e.lJ4(51,Me)),e.BMQ("aria-label",e.i5U(18,40,"manage3dSettings.ImageSharpeningNoiseGrain.name",e.lJ4(52,Me))),e.R7$(4),e.SpI(" ",e.bMT(22,43,"save.cancel")," "),e.R7$(2),e.Y8G("disabled",n.isApplyButtonDisabled),e.R7$(),e.SpI(" ",e.bMT(25,45,"save.apply")," "))},dependencies:[p.YU,I.iV,h.BI,h.Yi,h.E7,ne.t,J.Aq,G.PW,ie.L,W,v.D9],encapsulation:2})}}return a})();const Ht=a=>({nvidiaSettingName:a}),$e=a=>({"font-sub2":a});function Wt(a,r){1&a&&e.nrm(0,"mat-progress-spinner",10),2&a&&e.Y8G("diameter",20)}function Qt(a,r){if(1&a&&(e.j41(0,"span",11),e.EFF(1),e.k0s()),2&a){const t=e.XpG();e.Y8G("ngClass",e.eq3(2,$e,t.profileValueBold)),e.R7$(),e.SpI(""," - "+t.globalTransVal," ")}}function Zt(a,r){1&a&&e.nrm(0,"mat-icon",12)}let Le=(()=>{class a{constructor(t,i,n,s,o){this.loggingService=t,this.translateService=i,this.manage3dSettingsUtilService=n,this.matDialog=s,this.program3dSettingsService=o,this.setDirtyFeatureEnum=new e.bkB,this.clearDirtyFeatureEnum=new e.bkB,this.sharpenSliderValue=g.Vo.sharpen,this.ignoreFilmGrainSliderValue=g.Vo.noiseGrain,this.sharpenText="",this.ignoreFilmGrainText="",this.currentValueBold=!1,this.profileValueBold=!1,this.uiControlBusy=!1,this.showUiControlBusy=!1,this.isGlobalValueMissing=!1,this.logger=this.loggingService.getLogger("nvapp/FeatureImageSharpeningComponent")}ngOnInit(){this.isGlobalValueMissing=this.manage3dSettingsUtilService.isGlobalValueMissing(this.featureSettingObject.settingGlobalValue,l.StaticSliderSettings.ImageSharpeningToggle),this.setFeatureEnumKeys(),this.initSelection(),this.updateBoldEffectForSetting()}ngAfterViewInit(){this.savePreviousAppliedValues()}setFeatureEnumKeys(){this.featureSettingKey=this.featureName+g.lz,this.featureCurrentValue=this.featureSettingObject[this.featureSettingKey],this.sharpenFeatureSettingKey=l.CuratedGlobalSettings.ImageSharpening+g.lz;const t=this.sharpenSettingObject[this.sharpenFeatureSettingKey];this.sharpenCurrentValue=this.isGlobalContext||t!==l.DefaultGlobalEnum.UseGlobalValue?t/100:g.Vo.sharpen,this.noiseGrainFeatureSettingKey=l.CuratedGlobalSettings.ImageSharpeningNoiseGrain+g.lz;const i=this.noiseGrainSettingObject[this.noiseGrainFeatureSettingKey];this.ignoreFilmGrainCurrentValue=this.isGlobalContext||i!==l.DefaultGlobalEnum.UseGlobalValue?i/100:g.Vo.noiseGrain,this.settingDataObjectForChildComponent={featureCurrentValue:this.featureCurrentValue,settingDefaultKey:this.featureSettingObject.settingDefaultKey,settingDefaultValue:this.featureSettingObject.settingDefaultValue,featureEnum:this.featureSettingObject.featureEnum,featureEnumKeys:this.featureSettingObject.featureEnumKeys,featureGlobalValue:this.featureSettingObject.settingGlobalValue,featureName:this.featureName,isDynamic:this.featureSettingObject?.SettingInfo?.isDynamic,isGlobalContext:this.isGlobalContext,isUserModified:this.featureSettingObject.isUserModified,isGreyedOut:this.featureSettingObject.isGreyedOut,enumId:this.featureSettingObject.SettingInfo.enumId,settingType:this.featureSettingObject.SettingInfo.SettingType}}initSelection(){if(!this.isGlobalContext&&this.isGlobalValueMissing)return this.logger.info(`Global value is missing for feature ${this.featureName}, setting fallback display`),this.selectedFeatureDisplayValue=this.manage3dSettingsUtilService.getMissingGlobalValueDisplay(),void(this.globalTransVal=null);this.sharpenSliderValue=this.sharpenCurrentValue,this.ignoreFilmGrainSliderValue=this.ignoreFilmGrainCurrentValue,this.selectedFeatureKey=this.isGlobalContext?this.settingDataObjectForChildComponent.featureEnum[this.featureCurrentValue]:this.featureCurrentValue===l.DefaultGlobalEnum.UseGlobalValue?l.DefaultGlobalEnum.UseGlobalKey:this.settingDataObjectForChildComponent.featureEnum[this.featureCurrentValue],this.setGlobalValueText(),this.setFeatureText()}setFeatureText(){switch(this.globalTransVal=null,this.featureCurrentValue){case l.DefaultGlobalEnum.UseGlobalValue:this.transValueSub?.unsubscribe(),this.transValueSub=this.manage3dSettingsUtilService.resolveUseGlobalValue(!1,this.settingDataObjectForChildComponent.featureEnum,this.featureSettingObject.settingGlobalValue,this.featureName).pipe((0,O.s)(1)).subscribe(t=>{this.globalTransVal=t,this.selectedFeatureDisplayValue=this.translateService.instant("manage3dSettings."+this.featureName+".values."+this.selectedFeatureKey),this.globalTransVal=this.selectedFeatureGlobalDisplayValue??this.globalTransVal});break;case 0:this.selectedFeatureDisplayValue=this.translateService.instant("manage3dSettings."+this.featureName+".values."+this.selectedFeatureKey);break;case 1:this.selectedFeatureDisplayValue=this.translateService.instant("manage3dSettings.ImageSharpening.name",{sharpenValue:this.sharpenSliderValue})+", "+this.translateService.instant("manage3dSettings.ImageSharpeningNoiseGrain.name",{ignoreFilmGrainValue:this.ignoreFilmGrainSliderValue});break;default:this.selectedFeatureDisplayValue="None"}}setGlobalValueText(){if(this.isGlobalContext||(this.featureSettingObject.settingDefaultKey=l.DefaultGlobalEnum.UseGlobalKey),!this.isGlobalContext&&1===this.featureSettingObject.settingGlobalValue[this.featureSettingKey]){const i=this.noiseGrainSettingObject.settingGlobalValue[l.StaticSliderSettings.ImageSharpeningNoiseGrain+g.lz];this.selectedFeatureGlobalDisplayValue=this.translateService.instant("manage3dSettings.ImageSharpening.name",{sharpenValue:this.sharpenSettingObject.settingGlobalValue[l.StaticSliderSettings.ImageSharpening+g.lz]/100})+", "+this.translateService.instant("manage3dSettings.ImageSharpeningNoiseGrain.name",{ignoreFilmGrainValue:i/100}),this.updateBoldForProfile()}}openSettingsModal(){if(!this.isGlobalContext&&this.isGlobalValueMissing)return void this.manage3dSettingsUtilService.showMissingGlobalValueDialog(this.featureName,this.program3dSettingsService.getSelectedProfileInfo());if(this.uiControlBusy)return void(this.showUiControlBusy=!0);this.uiControlBusy=!0;const t=this.manage3dSettingsUtilService.getCommonDialogConfig();t.data={featureName:this.featureName,featureSettingObject:this.featureSettingObject,noiseGrainSettingObject:this.noiseGrainSettingObject,sharpenSettingObject:this.sharpenSettingObject,isGlobalContext:this.isGlobalContext,featureEnum:this.settingDataObjectForChildComponent.featureEnum,featureEnumKeys:this.settingDataObjectForChildComponent.featureEnumKeys,selectedFeatureKey:this.selectedFeatureKey,featureDefaultValue:this.featureSettingObject.settingDefaultValue,featureGlobalValue:this.featureSettingObject.settingGlobalValue,isRadioButton:!0,featureCurrentValue:this.featureCurrentValue,sharpenCurrentValue:this.sharpenCurrentValue,ignoreFilmGrainCurrentValue:this.ignoreFilmGrainCurrentValue,selectedFeatureGlobalDisplayValue:this.selectedFeatureGlobalDisplayValue},this.settingDialogRef=this.matDialog.open(Jt,t),this.settingDialogRefCloseSub?.unsubscribe(),this.settingDialogRefCloseSub=this.settingDialogRef.afterClosed().subscribe(i=>{i?.applyInProgress?(this.savePreviousAppliedValues(),this.featureSettingObject[this.featureSettingKey]=i.featureCurrentValue,this.sharpenSettingObject[this.sharpenFeatureSettingKey]=i.sharpenCurrentValue,this.noiseGrainSettingObject[this.noiseGrainFeatureSettingKey]=i.ignoreFilmGrainCurrentValue,this.ngOnInit()):i?.needRefresh&&(this.getFromPreviousAppliedValues(),this.ngOnInit()),this.updateUiControlState(i?.applyInProgress||i?.needRefresh?2*g.uf:0)},i=>{this.logger.error(i)},()=>{this.updateUiControlState(2*g.uf)})}updateUiControlState(t){setTimeout(()=>{this.uiControlBusy=!1,this.showUiControlBusy=!1},t)}savePreviousAppliedValues(){this.featureSettingObjectOriginal=(0,w.cloneDeep)(this.featureSettingObject),this.sharpenSettingObjectOriginal=(0,w.cloneDeep)(this.sharpenSettingObject),this.noiseGrainSettingObjectOriginal=(0,w.cloneDeep)(this.noiseGrainSettingObject)}getFromPreviousAppliedValues(){this.featureSettingObject=(0,w.cloneDeep)(this.featureSettingObjectOriginal),this.sharpenSettingObject=(0,w.cloneDeep)(this.sharpenSettingObjectOriginal),this.noiseGrainSettingObject=(0,w.cloneDeep)(this.noiseGrainSettingObjectOriginal)}updateBoldEffectForSetting(){this.currentValueBold=this.manage3dSettingsUtilService.updateBoldEffectForSetting(this.settingDataObjectForChildComponent,this.featureCurrentValue)}updateBoldForProfile(){this.profileValueBold=this.manage3dSettingsUtilService.updateBoldForProfile(this.settingDataObjectForChildComponent)}ngOnDestroy(){this.settingDialogRefCloseSub?.unsubscribe(),this.transValueSub?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||a)(e.rXU(y.J6),e.rXU(v.c$),e.rXU(F.f),e.rXU(h.bZ),e.rXU($.g))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["nv-app-feature-image-sharpening"]],inputs:{featureName:"featureName",featureSettingObject:"featureSettingObject",sharpenSettingObject:"sharpenSettingObject",noiseGrainSettingObject:"noiseGrainSettingObject",isGlobalContext:"isGlobalContext"},outputs:{setDirtyFeatureEnum:"setDirtyFeatureEnum",clearDirtyFeatureEnum:"clearDirtyFeatureEnum"},decls:15,vars:25,consts:[["nvAppSettingInfoIcon","","tabindex","0","role","button",1,"feature-expansion-panel-container","feature-expansion-panel-border",3,"keydown.enter","id","settingDetails"],[1,"mat-menu-header"],[1,"header-title-text-container","setting-info-icon-container"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"font-body2","header-title-text"],[1,"loading-indicator-container"],["class","mat-accent","mode","indeterminate",3,"diameter",4,"ngIf"],["mat-button","","tabindex","-1",1,"font-body2","setting-drop-down","geometry-rounded-none-imp",3,"click","disabled"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"setting-value",3,"ngClass"],[3,"ngClass",4,"ngIf"],["class","material-icons","svgIcon","edit_settings",4,"ngIf"],["mode","indeterminate",1,"mat-accent",3,"diameter"],[3,"ngClass"],["svgIcon","edit_settings",1,"material-icons"]],template:function(i,n){1&i&&(e.j41(0,"div",0),e.nI1(1,"translate"),e.bIt("keydown.enter",function(){return n.openSettingsModal()}),e.j41(2,"div",1)(3,"div",2)(4,"label",3),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"div",4),e.DNE(8,Wt,1,1,"mat-progress-spinner",5),e.j41(9,"button",6),e.nI1(10,"translate"),e.bIt("click",function(){return n.openSettingsModal()}),e.j41(11,"div",7),e.EFF(12),e.DNE(13,Qt,2,4,"span",8),e.k0s(),e.DNE(14,Zt,1,0,"mat-icon",9),e.k0s()()()()),2&i&&(e.qtP("aria-label","",e.bMT(1,15,"manage3dSettings."+n.featureName+".name")," ",n.selectedFeatureDisplayValue+(n.globalTransVal?" - "+n.globalTransVal:""),""),e.FS9("id",n.featureName),e.Y8G("settingDetails",e.eq3(21,Ht,n.featureName)),e.R7$(5),e.SpI(" ",e.bMT(6,17,"manage3dSettings."+n.featureName+".name")," "),e.R7$(3),e.Y8G("ngIf",n.showUiControlBusy),e.R7$(),e.qtP("aria-label","",e.bMT(10,19,"manage3dSettings."+n.featureName+".name")," ",n.selectedFeatureDisplayValue+" "+(n.globalTransVal?" - "+n.globalTransVal:""),""),e.Y8G("disabled",null==n.settingDataObjectForChildComponent?null:n.settingDataObjectForChildComponent.isGreyedOut),e.R7$(2),e.Y8G("ngClass",e.eq3(23,$e,n.currentValueBold)),e.R7$(),e.SpI(" ",n.selectedFeatureDisplayValue," "),e.R7$(),e.Y8G("ngIf",!!n.globalTransVal),e.R7$(),e.Y8G("ngIf",!(null!=n.settingDataObjectForChildComponent&&n.settingDataObjectForChildComponent.isGreyedOut)))},dependencies:[p.YU,p.bT,I.iV,j.An,z.LG,U.a,G.PW,q.H,v.D9],styles:["[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]{height:48px;background-color:var(--primary-900);padding:0 16px}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]:hover{background-color:var(--feature-expansion-panel-menu-header-hover-bg-color)}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-drop-down[_ngcontent-%COMP%]{display:flex;align-items:center;height:inherit;flex:1;padding:0 8px}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%]{white-space:nowrap;width:100%;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value.is-loading[_ngcontent-%COMP%]{color:var(--primary-500)}.feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{white-space:nowrap;width:auto;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:inherit;position:relative}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%] mat-progress-spinner[_ngcontent-%COMP%]{position:absolute}.feature-expansion-panel-container[_ngcontent-%COMP%] .color-unset[_ngcontent-%COMP%]{color:unset}.feature-expansion-panel-container[_ngcontent-%COMP%]:focus{outline-offset:-2px}"]})}}return a})();var k=d(6953);let en=(()=>{class a{constructor(t,i,n,s,o,c){this.loggingService=t,this.dialogData=i,this.dialogRef=n,this.global3dSettingsService=s,this.translateService=o,this.manage3dSettingsUtilService=c,this.settingData={},this.minValue=k.GA.minValue,this.maxValue=k.GA.maxValue,this.stepValue=k.GA.stepValue,this.isDirty=!1,this.applyOps=!1,this.showErrorToast=u=>{this.closeDialog(!1,!0),this.manage3dSettingsUtilService.showApplyErrorToastMessage(u),this.logger.error(u),this.ngOnInit()},this.logger=this.loggingService.getLogger("nvapp/FeatureWhisperModeModalComponent")}ngOnInit(){this.initializeWhisperModeValues()}updateSelectedValue(t){this.selectedFeatureKey=t.selectedFeatureKey,this.isDisabled=this.selectedFeatureKey===l.WhisperModeValueDisplayEnum.Off,this.updateFeatureState()}onFanVolumeChanged(t){this.fanVolumeSlider=t,this.setWhisperModeValues(),this.updateFeatureState()}onCancelClick(){this.closeDialog(!1,!1)}onApplyClick(){this.closeDialog(!0,!0),this.global3dSettingsService.applySingleSetting(this.updatedFeature).pipe((0,C.n)(()=>this.global3dSettingsService.refreshGlobalSettings()),(0,R.M)(()=>{this.applyOps&&this.manage3dSettingsUtilService.handleToggleChangedForJsonSettings(this.updatedFeature.settingName,this.selectedFeatureKey===l.WhisperModeValueDisplayEnum.On)}),(0,O.s)(1)).subscribe(N.l,this.showErrorToast)}closeDialog(t,i){this.dialogRef.close({applyInProgress:t,needRefresh:i,featureCurrentValue:this.updatedFeature?.selectedFeatureValue})}updateFeatureState(){const t=this.dialogData.whisperModeCurrentValue,i={...t};i.enabled=this.selectedFeatureKey===l.WhisperModeValueDisplayEnum.On,i.frameRate=this.frameRate,i.fanVolume=this.fanVolume,this.minFrameRateText=this.getFpsText(i.frameRate),this.isDirty=!(0,w.isEqual)(i,t),this.applyOps=t.enabled!==i.enabled,this.updatedFeature={settingName:this.settingData?.featureName,isDirty:this.isDirty,selectedFeatureValue:JSON.stringify(i),isAutoTrigger:!1}}getFpsText(t){return this.translateService.instant("manage3dSettings.FPS",{fps:t})}initializeWhisperModeValues(){this.selectedFeatureKey=this.dialogData.enabledKey,this.isDisabled=this.dialogData.isDisabled,this.fanVolume=this.dialogData?.whisperModeCurrentValue?.fanVolume,this.frameRate=this.dialogData?.whisperModeCurrentValue?.frameRate,this.minFrameRateText=this.getFpsText(this.frameRate),this.fanVolumeSlider=this.fanVolume,this.settingData.isGlobalContext=this.dialogData.isGlobalContext,this.settingData.featureName=this.dialogData.featureName,this.settingData.featureEnum=this.dialogData.whisperModeEnum,this.settingData.featureEnumKeys=this.dialogData.whisperModeEnumKeys,this.settingData.settingDefaultKey=this.dialogData.defaultEnabled}setWhisperModeValues(){switch(this.fanVolume=this.fanVolumeSlider,this.fanVolume){case g.vR.QUIETER:this.frameRate=30;break;case g.vR.QUIET:this.frameRate=40;break;case g.vR.BALANCED:this.frameRate=60}}static{this.\u0275fac=function(i){return new(i||a)(e.rXU(y.J6),e.rXU(h.Vh),e.rXU(h.CP),e.rXU(Y.R),e.rXU(v.c$),e.rXU(F.f))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["nv-app-feature-whisper-mode-modal"]],decls:30,vars:38,consts:[[1,"common-modal"],["mat-dialog-title","",1,"font-header6","title"],[1,"content"],[3,"selectValue","settingData","selectedFeatureKey","isRadioButton"],[1,"content-details",3,"ngClass"],[1,"font-body2"],[1,"slider-indicators","font-body3"],[1,"slider-content"],[1,"common-slider",3,"valueChange","value","min","max","step","disabled","tickInterval","nvAppAnnouncer","associatedMessage"],["align","end",1,"actions"],["mat-button","",1,"cancel-button","font-button2",3,"click"],["mat-raised-button","",1,"apply-button","font-button2","mat-accent",3,"click","disabled"]],template:function(i,n){1&i&&(e.j41(0,"div",0)(1,"p",1),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"mat-dialog-content",2)(5,"nv-app-feature-radio-group",3),e.bIt("selectValue",function(o){return n.updateSelectedValue(o)}),e.k0s(),e.j41(6,"div",4)(7,"p",5),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"p",5),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"div",6)(14,"span"),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.j41(17,"span"),e.EFF(18),e.nI1(19,"translate"),e.k0s()(),e.j41(20,"div",7)(21,"nv-hig-slider",8),e.nI1(22,"translate"),e.mxI("valueChange",function(o){return e.DH7(n.fanVolumeSlider,o)||(n.fanVolumeSlider=o),o}),e.bIt("valueChange",function(o){return n.onFanVolumeChanged(o)}),e.k0s()()()(),e.j41(23,"mat-dialog-actions",9)(24,"button",10),e.bIt("click",function(){return n.onCancelClick()}),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.j41(27,"button",11),e.bIt("click",function(){return n.onApplyClick()}),e.EFF(28),e.nI1(29,"translate"),e.k0s()()()),2&i&&(e.R7$(2),e.SpI(" ",e.bMT(3,22,"manage3dSettings."+(null==n.settingData?null:n.settingData.featureName)+".name")," "),e.R7$(3),e.Y8G("settingData",n.settingData)("selectedFeatureKey",n.selectedFeatureKey)("isRadioButton",!0),e.R7$(),e.Y8G("ngClass",n.isDisabled?"disabled":""),e.R7$(2),e.Lme(" ",e.bMT(9,24,"manage3dSettings."+(null==n.settingData?null:n.settingData.featureName)+".minimumFrameRate"),": ",n.minFrameRateText," "),e.R7$(3),e.SpI(" ",e.bMT(12,26,"manage3dSettings."+(null==n.settingData?null:n.settingData.featureName)+".adjustFanVolume")," "),e.R7$(4),e.JRh(e.bMT(16,28,"manage3dSettings."+(null==n.settingData?null:n.settingData.featureName)+".quieter")),e.R7$(3),e.JRh(e.bMT(19,30,"manage3dSettings."+(null==n.settingData?null:n.settingData.featureName)+".balanced")),e.R7$(3),e.R50("value",n.fanVolumeSlider),e.Y8G("min",n.minValue)("max",n.maxValue)("step",n.stepValue)("disabled",n.isDisabled)("tickInterval",1)("nvAppAnnouncer",n.fanVolumeSlider)("associatedMessage","manage3dSettings."+(null==n.settingData?null:n.settingData.featureName)+".adjustFanVolume"),e.BMQ("aria-label",e.bMT(22,32,"manage3dSettings."+(null==n.settingData?null:n.settingData.featureName)+".adjustFanVolume")),e.R7$(4),e.SpI(" ",e.bMT(26,34,"save.cancel")," "),e.R7$(2),e.Y8G("disabled",!n.isDirty),e.R7$(),e.SpI(" ",e.bMT(29,36,"save.apply")," "))},dependencies:[p.YU,I.iV,h.BI,h.Yi,h.E7,ne.t,J.Aq,G.PW,ie.L,W,v.D9],styles:["[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]{height:48px;background-color:var(--primary-900);padding:0 16px}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]:hover{background-color:var(--feature-expansion-panel-menu-header-hover-bg-color)}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-drop-down[_ngcontent-%COMP%]{display:flex;align-items:center;height:inherit;flex:1;padding:0 8px}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%]{white-space:nowrap;width:100%;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value.is-loading[_ngcontent-%COMP%]{color:var(--primary-500)}.feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{white-space:nowrap;width:auto;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:inherit;position:relative}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%] mat-progress-spinner[_ngcontent-%COMP%]{position:absolute}.feature-expansion-panel-container[_ngcontent-%COMP%] .color-unset[_ngcontent-%COMP%]{color:unset}.feature-expansion-panel-container[_ngcontent-%COMP%]:focus{outline-offset:-2px}",".content-details[_ngcontent-%COMP%]{padding-right:32px}.slider-content[_ngcontent-%COMP%] .slider-indicators[_ngcontent-%COMP%]{margin-bottom:18px}.battery-boost-slider[_ngcontent-%COMP%]{display:flex;position:relative}.battery-boost-slider[_ngcontent-%COMP%] .battery-boost-icon[_ngcontent-%COMP%]{transform:rotate(90deg);margin-right:26px}.battery-boost-slider[_ngcontent-%COMP%] .guage-icon[_ngcontent-%COMP%]{margin-left:26px}.battery-boost-slider[_ngcontent-%COMP%] .mat-slider-thumb-container-fixed[_ngcontent-%COMP%]{position:absolute;z-index:0;top:18px;left:3px;display:flex;flex-direction:column;align-items:center}.battery-boost-slider[_ngcontent-%COMP%] .mat-slider-thumb-fixed-label[_ngcontent-%COMP%]{color:var(--primary-contrast-750)}.battery-boost-slider[_ngcontent-%COMP%] .mat-slider-thumb-fixed[_ngcontent-%COMP%]{box-sizing:border-box;width:11px;height:8px;clip-path:polygon(50% 0,100% 100%,0 100%);transform:scale(.7);background:var(--accent-500)}.battery-boost-slider[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]{background:var(--accent-380)}"]})}}return a})();const tn=(a,r)=>({nvidiaSettingName:a,errors:r}),nn=a=>({"font-sub2":a});function an(a,r){1&a&&e.nrm(0,"mat-progress-spinner",9),2&a&&e.Y8G("diameter",20)}let sn=(()=>{class a{constructor(t,i,n,s){this.loggingService=t,this.translateService=i,this.matDialog=n,this.manage3dSettingsUtilService=s,this.isDisabled=!1,this.uiControlBusy=!1,this.showUiControlBusy=!1,this.logger=this.loggingService.getLogger("nvapp/FeatureWhisperModeComponent")}ngOnInit(){this.setWhisperModeEnum(),this.initSelectedValues()}ngAfterViewInit(){this.savePreviousAppliedValues()}setWhisperModeEnum(){this.featureSettingKey=this.featureName+g.lz,this.whisperModeCurrentValue=JSON.parse(this.whisperModeSetting[this.featureSettingKey]),this.whisperModeEnum=this.whisperModeSetting?.featureEnum,this.whisperModeEnumKeys=this.whisperModeSetting?.featureEnumKeys,this.defaultEnabled=this.whisperModeSetting?.settingDefaultKey.toString()}initSelectedValues(){const t=!this.whisperModeCurrentValue?.enabled;this.whisperModeSetting.isUserModified=!1!==this.whisperModeCurrentValue?.enabled,t?(this.enabledKey=l.WhisperModeValueDisplayEnum.Off,this.displayValue=this.getDisabledText()):(this.enabledKey=l.WhisperModeValueDisplayEnum.On,this.displayValue=this.getEnabledText(this.whisperModeCurrentValue?.frameRate)),this.isDisabled=t}openSettingsModal(){if(this.uiControlBusy)return void(this.showUiControlBusy=!0);this.uiControlBusy=!0;const t=this.manage3dSettingsUtilService.getCommonDialogConfig();t.data={isGlobalContext:this.isGlobalContext,featureName:this.featureName,whisperModeSetting:this.whisperModeSetting,whisperModeEnum:this.whisperModeEnum,whisperModeEnumKeys:this.whisperModeEnumKeys,enabledKey:this.enabledKey,defaultEnabled:this.defaultEnabled,whisperModeCurrentValue:this.whisperModeCurrentValue,isDisabled:this.isDisabled},this.whisperModeDialogRef=this.matDialog.open(en,t),this.whisperModeDialogRef.afterClosed().pipe((0,O.s)(1)).subscribe(i=>{i?.applyInProgress?(this.savePreviousAppliedValues(),this.whisperModeSetting[this.featureSettingKey]=i.featureCurrentValue,this.ngOnInit()):i?.needRefresh&&(this.getFromPreviousAppliedValues(),this.ngOnInit()),this.updateUiControlState(i?.applyInProgress||i?.needRefresh?g.uf:0)},i=>{this.logger.error(i)},()=>{this.updateUiControlState(g.uf)})}updateUiControlState(t){setTimeout(()=>{this.uiControlBusy=!1,this.showUiControlBusy=!1},t)}getEnabledText(t){return this.translateService.instant("manage3dSettings.FPS",{fps:t})}getDisabledText(){return this.translateService.instant("manage3dSettings."+this.featureName+".values.Off")}savePreviousAppliedValues(){this.whisperModeSettingOriginal=(0,w.cloneDeep)(this.whisperModeSetting)}getFromPreviousAppliedValues(){this.whisperModeSetting=(0,w.cloneDeep)(this.whisperModeSettingOriginal)}static{this.\u0275fac=function(i){return new(i||a)(e.rXU(y.J6),e.rXU(v.c$),e.rXU(h.bZ),e.rXU(F.f))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["nv-app-feature-whisper-mode"]],inputs:{featureName:"featureName",whisperModeSetting:"whisperModeSetting",isGlobalContext:"isGlobalContext"},decls:14,vars:24,consts:[["nvAppSettingInfoIcon","","tabindex","0","role","button",1,"feature-expansion-panel-container","feature-expansion-panel-border",3,"keydown.enter","id","settingDetails"],[1,"mat-menu-header"],[1,"font-body2","header-title-text-container","setting-info-icon-container"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"font-body2","header-title-text"],[1,"loading-indicator-container"],["class","mat-accent","mode","indeterminate",3,"diameter",4,"ngIf"],["mat-button","","tabindex","-1",1,"font-body2","setting-drop-down","geometry-rounded-none-imp",3,"click","disabled"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"setting-value",3,"ngClass"],["svgIcon","edit_settings",1,"material-icons"],["mode","indeterminate",1,"mat-accent",3,"diameter"]],template:function(i,n){1&i&&(e.j41(0,"div",0),e.nI1(1,"translate"),e.bIt("keydown.enter",function(){return n.openSettingsModal()}),e.j41(2,"div",1)(3,"div",2)(4,"label",3),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"div",4),e.DNE(8,an,1,1,"mat-progress-spinner",5),e.j41(9,"button",6),e.nI1(10,"translate"),e.bIt("click",function(){return n.openSettingsModal()}),e.j41(11,"div",7),e.EFF(12),e.k0s(),e.nrm(13,"mat-icon",8),e.k0s()()()()),2&i&&(e.qtP("aria-label","",e.bMT(1,13,"manage3dSettings."+n.featureName+".name")," ",n.displayValue,""),e.FS9("id",n.featureName),e.Y8G("settingDetails",e.l_i(19,tn,n.featureName,null==n.whisperModeSetting?null:n.whisperModeSetting.errorMessages)),e.R7$(5),e.SpI(" ",e.bMT(6,15,"manage3dSettings."+n.featureName+".name")," "),e.R7$(3),e.Y8G("ngIf",n.showUiControlBusy),e.R7$(),e.qtP("aria-label","",e.bMT(10,17,"manage3dSettings."+n.featureName+".name")," ",n.displayValue,""),e.Y8G("disabled",n.whisperModeSetting.isGreyedOut),e.R7$(2),e.Y8G("ngClass",e.eq3(22,nn,null==n.whisperModeSetting?null:n.whisperModeSetting.isUserModified)),e.R7$(),e.SpI(" ",n.displayValue," "))},dependencies:[p.YU,p.bT,I.iV,j.An,z.LG,U.a,G.PW,q.H,v.D9],styles:["[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]{height:48px;background-color:var(--primary-900);padding:0 16px}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]:hover{background-color:var(--feature-expansion-panel-menu-header-hover-bg-color)}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-drop-down[_ngcontent-%COMP%]{display:flex;align-items:center;height:inherit;flex:1;padding:0 8px}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%]{white-space:nowrap;width:100%;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value.is-loading[_ngcontent-%COMP%]{color:var(--primary-500)}.feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{white-space:nowrap;width:auto;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:inherit;position:relative}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%] mat-progress-spinner[_ngcontent-%COMP%]{position:absolute}.feature-expansion-panel-container[_ngcontent-%COMP%] .color-unset[_ngcontent-%COMP%]{color:unset}.feature-expansion-panel-container[_ngcontent-%COMP%]:focus{outline-offset:-2px}"]})}}return a})();const on=a=>({disabled:a});let rn=(()=>{class a{constructor(t,i,n,s,o,c){this.loggingService=t,this.dialogData=i,this.dialogRef=n,this.global3dSettingsService=s,this.translateService=o,this.manage3dSettingsUtilService=c,this.settingData={},this.minValue=k.ZC.minValue,this.maxValue=k.ZC.maxValue,this.stepValue=k.ZC.stepValue,this.isDirty=!1,this.recommendedFrameRate=30,this.applyOps=!1,this.showErrorToast=u=>{this.closeDialog(!1,!0),this.manage3dSettingsUtilService.showApplyErrorToastMessage(u),this.logger.error(u),this.ngOnInit()},this.logger=this.loggingService.getLogger("nvapp/FeatureBatteryBoostModalComponent")}ngOnInit(){this.initializeBatteryBoostState()}updateSelectedValue(t){this.selectedFeatureKey=t.selectedFeatureKey,this.isDisabled=this.selectedFeatureKey===l.BatteryBoostValueDisplayEnum.Off,this.updateFeatureState()}onFrameRateChanged(t){this.sliderValue=t,this.maxFrameRateText=this.getFpsText(this.sliderValue),this.updateFeatureState()}onCancelClick(){this.closeDialog(!1,!1)}onApplyClick(){this.closeDialog(!0,!0),this.global3dSettingsService.applySingleSetting(this.updatedFeature).pipe((0,C.n)(()=>this.global3dSettingsService.refreshGlobalSettings()),(0,R.M)(()=>{this.applyOps&&this.manage3dSettingsUtilService.handleToggleChangedForJsonSettings(this.updatedFeature.settingName,this.selectedFeatureKey===l.BatteryBoostValueDisplayEnum.On)}),(0,O.s)(1)).subscribe(N.l,this.showErrorToast)}closeDialog(t,i){this.dialogRef.close({applyInProgress:t,needRefresh:i,featureCurrentValue:this.updatedFeature?.selectedFeatureValue})}updateFeatureState(){const t=this.dialogData.batteryBoostCurrentValue,i={...t};i.enabled=this.selectedFeatureKey===l.BatteryBoostValueDisplayEnum.On,i.frameRate=this.sliderValue,this.isDirty=!(0,w.isEqual)(i,t),this.applyOps=t.enabled!==i.enabled,this.updatedFeature={settingName:this.settingData.featureName,isDirty:this.isDirty,selectedFeatureValue:JSON.stringify(i),isAutoTrigger:!1}}getFpsText(t){return this.translateService.instant("manage3dSettings.FPS",{fps:t})}initializeBatteryBoostState(){this.selectedFeatureKey=this.dialogData.enabledKey,this.isDisabled=this.dialogData.isDisabled,this.sliderValue=this.dialogData.batteryBoostCurrentValue.frameRate,this.maxFrameRateText=this.getFpsText(this.sliderValue),this.fpsText=this.getFpsText(""),this.settingData.isGlobalContext=this.dialogData.isGlobalContext,this.settingData.featureName=this.dialogData.featureName,this.settingData.featureEnum=this.dialogData.batteryBoostEnum,this.settingData.featureEnumKeys=this.dialogData.batteryBoostEnumKeys,this.selectedFeatureKey=this.dialogData.enabledKey,this.settingData.settingDefaultKey=this.dialogData.defaultEnabled,this.settingData.featureGlobalValue=this.dialogData.batteryBoostSetting.settingGlobalValue}static{this.\u0275fac=function(i){return new(i||a)(e.rXU(y.J6),e.rXU(h.Vh),e.rXU(h.CP),e.rXU(Y.R),e.rXU(v.c$),e.rXU(F.f))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["nv-app-feature-battery-boost-modal"]],decls:35,vars:41,consts:[[1,"common-modal"],["mat-dialog-title","",1,"font-header6","title"],[1,"content"],[3,"selectValue","settingData","selectedFeatureKey","isRadioButton"],[1,"content-details",3,"ngClass"],[1,"font-body2","frame-rate-text"],[1,"slider-content"],[1,"font-body3","slider-indicators"],[1,"battery-boost-slider"],["svgIcon","battery_charging",1,"material-icons","battery-boost-icon"],[1,"common-slider",3,"valueChange","value","min","max","step","disabled","tickInterval","nvAppAnnouncer","associatedMessage"],["svgIcon","guage",1,"material-icons","guage-icon"],[1,"mat-slider-thumb-container-fixed"],[1,"mat-slider-thumb-fixed",3,"ngClass"],[1,"mat-slider-thumb-fixed-label","font-body3"],["align","end",1,"actions"],["mat-button","",1,"cancel-button","font-button2",3,"click"],["mat-raised-button","",1,"apply-button","font-button2","mat-accent",3,"click","disabled"]],template:function(i,n){1&i&&(e.j41(0,"div",0)(1,"p",1),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"mat-dialog-content",2)(5,"nv-app-feature-radio-group",3),e.bIt("selectValue",function(o){return n.updateSelectedValue(o)}),e.k0s(),e.j41(6,"div",4)(7,"p",5),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"div",6)(11,"div",7)(12,"span"),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"span"),e.EFF(16),e.nI1(17,"translate"),e.k0s()(),e.j41(18,"div",8),e.nrm(19,"mat-icon",9),e.j41(20,"nv-hig-slider",10),e.nI1(21,"translate"),e.mxI("valueChange",function(o){return e.DH7(n.sliderValue,o)||(n.sliderValue=o),o}),e.bIt("valueChange",function(o){return n.onFrameRateChanged(o)}),e.k0s(),e.nrm(22,"mat-icon",11),e.j41(23,"div",12),e.nrm(24,"div",13),e.j41(25,"span",14),e.EFF(26),e.nI1(27,"translate"),e.k0s()()()()()(),e.j41(28,"mat-dialog-actions",15)(29,"button",16),e.bIt("click",function(){return n.onCancelClick()}),e.EFF(30),e.nI1(31,"translate"),e.k0s(),e.j41(32,"button",17),e.bIt("click",function(){return n.onApplyClick()}),e.EFF(33),e.nI1(34,"translate"),e.k0s()()()),2&i&&(e.R7$(2),e.SpI(" ",e.bMT(3,23,"manage3dSettings."+(null==n.settingData?null:n.settingData.featureName)+".name")," "),e.R7$(3),e.Y8G("settingData",n.settingData)("selectedFeatureKey",n.selectedFeatureKey)("isRadioButton",!0),e.R7$(),e.Y8G("ngClass",n.isDisabled?"disabled":""),e.R7$(2),e.Lme(" ",e.bMT(9,25,"manage3dSettings."+(null==n.settingData?null:n.settingData.featureName)+".maximumFrameRate"),": ",n.maxFrameRateText," "),e.R7$(5),e.JRh(e.bMT(14,27,"ops.battery")),e.R7$(3),e.JRh(e.bMT(17,29,"ops.performance")),e.R7$(4),e.R50("value",n.sliderValue),e.Y8G("min",n.minValue)("max",n.maxValue)("step",n.stepValue)("disabled",n.isDisabled)("tickInterval",1)("nvAppAnnouncer",n.sliderValue)("associatedMessage","manage3dSettings."+(null==n.settingData?null:n.settingData.featureName)+".maximumFrameRate"),e.BMQ("aria-label",e.bMT(21,31,"manage3dSettings."+(null==n.settingData?null:n.settingData.featureName)+".maximumFrameRate")),e.R7$(4),e.Y8G("ngClass",e.eq3(39,on,n.isDisabled)),e.R7$(2),e.JRh(e.bMT(27,33,"ops.optimalSetting")),e.R7$(4),e.SpI(" ",e.bMT(31,35,"save.cancel")," "),e.R7$(2),e.Y8G("disabled",!n.isDirty),e.R7$(),e.SpI(" ",e.bMT(34,37,"save.apply")," "))},dependencies:[p.YU,I.iV,j.An,h.BI,h.Yi,h.E7,ne.t,J.Aq,G.PW,ie.L,W,v.D9],styles:[".content-details[_ngcontent-%COMP%]{padding-right:32px}.slider-content[_ngcontent-%COMP%] .slider-indicators[_ngcontent-%COMP%]{margin-bottom:18px}.battery-boost-slider[_ngcontent-%COMP%]{display:flex;position:relative}.battery-boost-slider[_ngcontent-%COMP%] .battery-boost-icon[_ngcontent-%COMP%]{transform:rotate(90deg);margin-right:26px}.battery-boost-slider[_ngcontent-%COMP%] .guage-icon[_ngcontent-%COMP%]{margin-left:26px}.battery-boost-slider[_ngcontent-%COMP%] .mat-slider-thumb-container-fixed[_ngcontent-%COMP%]{position:absolute;z-index:0;top:18px;left:3px;display:flex;flex-direction:column;align-items:center}.battery-boost-slider[_ngcontent-%COMP%] .mat-slider-thumb-fixed-label[_ngcontent-%COMP%]{color:var(--primary-contrast-750)}.battery-boost-slider[_ngcontent-%COMP%] .mat-slider-thumb-fixed[_ngcontent-%COMP%]{box-sizing:border-box;width:11px;height:8px;clip-path:polygon(50% 0,100% 100%,0 100%);transform:scale(.7);background:var(--accent-500)}.battery-boost-slider[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]{background:var(--accent-380)}","[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]{height:48px;background-color:var(--primary-900);padding:0 16px}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]:hover{background-color:var(--feature-expansion-panel-menu-header-hover-bg-color)}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-drop-down[_ngcontent-%COMP%]{display:flex;align-items:center;height:inherit;flex:1;padding:0 8px}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%]{white-space:nowrap;width:100%;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value.is-loading[_ngcontent-%COMP%]{color:var(--primary-500)}.feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{white-space:nowrap;width:auto;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:inherit;position:relative}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%] mat-progress-spinner[_ngcontent-%COMP%]{position:absolute}.feature-expansion-panel-container[_ngcontent-%COMP%] .color-unset[_ngcontent-%COMP%]{color:unset}.feature-expansion-panel-container[_ngcontent-%COMP%]:focus{outline-offset:-2px}"]})}}return a})();const ln=a=>({nvidiaSettingName:a}),gn=a=>({"font-sub2":a});function cn(a,r){1&a&&e.nrm(0,"mat-progress-spinner",9),2&a&&e.Y8G("diameter",20)}let dn=(()=>{class a{constructor(t,i,n,s){this.loggingService=t,this.translateService=i,this.matDialog=n,this.manage3dSettingsUtilService=s,this.isDisabled=!1,this.uiControlBusy=!1,this.showUiControlBusy=!1,this.logger=this.loggingService.getLogger("nvapp/FeatureBatteryBoostComponent")}ngOnInit(){this.setBatteryBoostEnum(),this.initSelectedValues()}ngAfterViewInit(){this.savePreviousAppliedValues()}setBatteryBoostEnum(){this.featureSettingKey=this.featureName+g.lz,this.batteryBoostCurrentValue=JSON.parse(this.batteryBoostSetting[this.featureSettingKey]),this.batteryBoostEnum=this.batteryBoostSetting?.featureEnum,this.batteryBoostEnumKeys=this.batteryBoostSetting?.featureEnumKeys,this.defaultEnabled=this.batteryBoostSetting?.settingDefaultKey.toString()}initSelectedValues(){const t=!this.batteryBoostCurrentValue?.enabled;this.batteryBoostSetting.isUserModified=!0!==this.batteryBoostCurrentValue?.enabled,t?(this.enabledKey=l.BatteryBoostValueDisplayEnum.Off,this.displayValue=this.getDisabledText()):(this.enabledKey=l.BatteryBoostValueDisplayEnum.On,this.displayValue=this.getEnabledText(this.batteryBoostCurrentValue?.frameRate)),this.isDisabled=t}openSettingsModal(){if(this.uiControlBusy)return void(this.showUiControlBusy=!0);this.uiControlBusy=!0;const t=this.manage3dSettingsUtilService.getCommonDialogConfig();t.data={isGlobalContext:this.isGlobalContext,featureName:this.featureName,batteryBoostSetting:this.batteryBoostSetting,batteryBoostEnum:this.batteryBoostEnum,batteryBoostEnumKeys:this.batteryBoostEnumKeys,enabledKey:this.enabledKey,defaultEnabled:this.defaultEnabled,batteryBoostCurrentValue:this.batteryBoostCurrentValue,isDisabled:this.isDisabled},this.batteryBoostDialogRef=this.matDialog.open(rn,t),this.batteryBoostDialogRef.afterClosed().pipe((0,O.s)(1)).subscribe(i=>{i?.applyInProgress?(this.savePreviousAppliedValues(),this.batteryBoostSetting[this.featureSettingKey]=i.featureCurrentValue,this.ngOnInit()):i?.needRefresh&&(this.getFromPreviousAppliedValues(),this.ngOnInit()),this.updateUiControlState(i?.applyInProgress||i?.needRefresh?g.uf:0)},i=>{this.logger.error(i)},()=>{this.updateUiControlState(g.uf)})}updateUiControlState(t){setTimeout(()=>{this.uiControlBusy=!1,this.showUiControlBusy=!1},t)}getEnabledText(t){return this.translateService.instant("manage3dSettings.FPS",{fps:t})}getDisabledText(){return this.translateService.instant("manage3dSettings."+this.featureName+".values.Off")}savePreviousAppliedValues(){this.batteryBoostSettingOriginal=(0,w.cloneDeep)(this.batteryBoostSetting)}getFromPreviousAppliedValues(){this.batteryBoostSetting=(0,w.cloneDeep)(this.batteryBoostSettingOriginal)}static{this.\u0275fac=function(i){return new(i||a)(e.rXU(y.J6),e.rXU(v.c$),e.rXU(h.bZ),e.rXU(F.f))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["nv-app-battery-boost"]],inputs:{featureName:"featureName",batteryBoostSetting:"batteryBoostSetting",isGlobalContext:"isGlobalContext"},decls:14,vars:22,consts:[["nvAppSettingInfoIcon","","tabindex","0","role","button",1,"feature-expansion-panel-container","feature-expansion-panel-border",3,"keydown.enter","id","settingDetails"],[1,"mat-menu-header"],[1,"font-body2","header-title-text-container","setting-info-icon-container"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"font-body2","header-title-text"],[1,"loading-indicator-container"],["class","mat-accent","mode","indeterminate",3,"diameter",4,"ngIf"],["mat-button","","tabindex","-1",1,"font-body2","setting-drop-down","geometry-rounded-none-imp",3,"click"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"setting-value",3,"ngClass"],["svgIcon","edit_settings",1,"material-icons"],["mode","indeterminate",1,"mat-accent",3,"diameter"]],template:function(i,n){1&i&&(e.j41(0,"div",0),e.nI1(1,"translate"),e.bIt("keydown.enter",function(){return n.openSettingsModal()}),e.j41(2,"div",1)(3,"div",2)(4,"label",3),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"div",4),e.DNE(8,cn,1,1,"mat-progress-spinner",5),e.j41(9,"button",6),e.nI1(10,"translate"),e.bIt("click",function(){return n.openSettingsModal()}),e.j41(11,"div",7),e.EFF(12),e.k0s(),e.nrm(13,"mat-icon",8),e.k0s()()()()),2&i&&(e.qtP("aria-label","",e.bMT(1,12,"manage3dSettings."+n.featureName+".name")," ",n.displayValue,""),e.FS9("id",n.featureName),e.Y8G("settingDetails",e.eq3(18,ln,n.featureName)),e.R7$(5),e.SpI(" ",e.bMT(6,14,"manage3dSettings."+n.featureName+".name")," "),e.R7$(3),e.Y8G("ngIf",n.showUiControlBusy),e.R7$(),e.qtP("aria-label","",e.bMT(10,16,"manage3dSettings."+n.featureName+".name")," ",n.displayValue,""),e.R7$(2),e.Y8G("ngClass",e.eq3(20,gn,null==n.batteryBoostSetting?null:n.batteryBoostSetting.isUserModified)),e.R7$(),e.SpI(" ",n.displayValue," "))},dependencies:[p.YU,p.bT,I.iV,j.An,z.LG,U.a,G.PW,q.H,v.D9],styles:["[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]{height:48px;background-color:var(--primary-900);padding:0 16px}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]:hover{background-color:var(--feature-expansion-panel-menu-header-hover-bg-color)}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-drop-down[_ngcontent-%COMP%]{display:flex;align-items:center;height:inherit;flex:1;padding:0 8px}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%]{white-space:nowrap;width:100%;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value.is-loading[_ngcontent-%COMP%]{color:var(--primary-500)}.feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{white-space:nowrap;width:auto;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:inherit;position:relative}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%] mat-progress-spinner[_ngcontent-%COMP%]{position:absolute}.feature-expansion-panel-container[_ngcontent-%COMP%] .color-unset[_ngcontent-%COMP%]{color:unset}.feature-expansion-panel-container[_ngcontent-%COMP%]:focus{outline-offset:-2px}"]})}}return a})();var re=d(44224),un=d(4418);const pn=a=>({"selected-resolution":a});function mn(a,r){if(1&a&&(e.j41(0,"span",7),e.EFF(1),e.k0s()),2&a){const t=e.XpG();e.R7$(),e.Lme("",null==t.selectedResolution?null:t.selectedResolution.percent,"% (",null==t.selectedResolution?null:t.selectedResolution.resolution,")")}}function hn(a,r){if(1&a){const t=e.RV6();e.j41(0,"button",27),e.bIt("click",function(){const n=e.eBV(t).index,s=e.XpG();return e.Njj(s.onResolutionChanged(n))}),e.EFF(1),e.k0s()}if(2&a){const t=r.$implicit,i=e.XpG();e.Y8G("ngClass",e.eq3(3,pn,(null==i.selectedResolution?null:i.selectedResolution.resolution)===(null==t?null:t.resolution))),e.R7$(),e.Lme(" ",null==t?null:t.percent,"% ",null==t?null:t.resolution," ")}}let fn=(()=>{class a{constructor(t,i,n,s,o,c){this.loggingService=t,this.dialogData=i,this.dialogRef=n,this.global3dSettingsService=s,this.program3dSettingsService=o,this.manage3dSettingsUtilService=c,this.settingData={},this.minValue=k.hB.minValue,this.maxValue=k.hB.maxValue,this.stepValue=k.hB.stepValue,this.sharpen=k.hB.sharpen,this.resolutions=[],this.isRadioButton=!1,this.isDirty=!1,this.applyOps=!1,this.showErrorToast=u=>{this.closeDialog(!1,!0),this.manage3dSettingsUtilService.showApplyErrorToastMessage(u),this.logger.error(u),this.ngOnInit()},this.logger=this.loggingService.getLogger("nvapp/FeatureImageScalingModalComponent")}ngOnInit(){this.initializeImageScalingState()}updateSelectedValue(t){this.selectedFeatureKey=t.selectedFeatureKey,this.isDisabled=this.selectedFeatureKey===l.ImageScalingValueDisplayEnum.Off||this.selectedFeatureKey===l.DefaultGlobalEnum.UseGlobalKey,this.updateScalingResolutionInfoMsg(),this.updateFeatureState(this.sliderValue,this.resolutionIndex,this.imageScalingIndicator)}onSharpenChanged(t){this.updateFeatureState(t,this.resolutionIndex,this.imageScalingIndicator)}onImageScalingIndicatorChanged(t){this.updateFeatureState(this.sliderValue,this.resolutionIndex,t)}onResolutionChanged(t){this.selectedResolution=this.resolutions[t],this.resolutionIndex=t,this.updateFeatureState(this.sliderValue,t,this.imageScalingIndicator)}onCancelClick(){this.closeDialog(!1,!1)}onApplyClick(){this.closeDialog(!0,!0);let t=[];this.dialogData.isGlobalContext?this.global3dSettingsService.applySingleSetting(this.updatedFeature).pipe((0,C.n)(()=>this.global3dSettingsService.refreshGlobalSettings()),(0,R.M)(i=>t=i),(0,C.n)(()=>this.program3dSettingsService.refreshProgramSettings()),(0,R.M)(i=>{this.updateShowRTXHdrToastMessage(t)}),(0,se.p)(i=>this.applyOps),(0,R.M)(()=>{this.manage3dSettingsUtilService.handleToggleChangedForJsonSettings(this.updatedFeature.settingName,this.selectedFeatureKey===l.ImageScalingValueDisplayEnum.On,this.dialogData?.isGlobalContext)}),(0,O.s)(1)).subscribe(N.l,this.showErrorToast):this.program3dSettingsService.applySingleSetting(this.updatedFeature).pipe((0,C.n)(()=>this.global3dSettingsService.refreshGlobalSettings()),(0,C.n)(()=>this.program3dSettingsService.refreshProgramSettings()),(0,R.M)(i=>{t=i,this.updateShowRTXHdrToastMessage(t)}),(0,se.p)(i=>this.applyOps),(0,R.M)(i=>this.applyPerProgramOPS()),(0,O.s)(1)).subscribe(N.l,this.showErrorToast)}updateShowRTXHdrToastMessage(t){const i=t?.filter(u=>u?.settingName===l.JsonTypeSettings.ImageScaling)?.[0],n=this.dialogData?.featureName+g.lz,s=i?JSON.parse(i?.settingValue[n]):void 0,c=t?.filter(u=>u?.settingName===l.JsonTypeSettings.AIHDR)?.[0]?.settingValue?.SettingInfo?.isSupported&&this.dialogData?.hyperSamplingResolutionCreated!==s?.hyperSamplingResolutionCreated;this.manage3dSettingsUtilService.setShowRTXHdrToast(c)}applyPerProgramOPS(){const t=this.dialogData?.featureName+g.lz,i=JSON.parse(this.dialogData?.imageScalingSetting?.settingGlobalValue?.[t]);let n=!1;n=this.selectedFeatureKey===l.DefaultGlobalEnum.UseGlobalKey?i?.enabled:this.selectedFeatureKey===l.ImageScalingValueDisplayEnum.On,this.manage3dSettingsUtilService.handleToggleChangedForJsonSettings(this.updatedFeature.settingName,n,this.dialogData?.isGlobalContext,this.dialogData?.localId)}closeDialog(t,i){this.dialogRef.close({applyInProgress:t,needRefresh:i,featureCurrentValue:this.updatedFeature?.selectedFeatureValue})}initializeImageScalingState(){this.settingData.isGlobalContext=this.dialogData?.isGlobalContext,this.settingData.featureName=this.dialogData?.featureName,this.featureSettingObject=this.dialogData?.imageScalingSetting,this.settingData.featureEnum=this.dialogData?.imageScalingEnum,this.settingData.featureEnumKeys=this.dialogData?.imageScalingEnumKeys,this.selectedFeatureKey=this.dialogData?.enabledKey,this.sliderValue=this.dialogData?.sharpen,this.imageScalingIndicator=this.dialogData?.imageScalingIndicator,this.isDisabled=this.dialogData?.isDisabled,this.resolutions=this.dialogData?.resolutions,this.resolutionIndex=this.dialogData?.resolutionIndex,this.selectedResolution=this.resolutions[this.resolutionIndex],this.settingData.featureGlobalValue=this.dialogData?.imageScalingSetting?.settingGlobalValue,this.underlyingGlobalValueText=this.dialogData?.imageScalingGlobalValueText,this.settingData.settingDefaultKey=this.dialogData?.imageScalingSetting?.settingDefaultKey,this.updateScalingResolutionInfoMsg()}updateScalingResolutionInfoMsg(){let t=!1;t=this.selectedFeatureKey===l.DefaultGlobalEnum.UseGlobalKey?this.dialogData?.imageScalingGlobalValue?.enabled:this.selectedFeatureKey===l.ImageScalingValueDisplayEnum.On,this.scalingResolutionInfoMsg=this.dialogData?.hyperSamplingResolutionCreated?"manage3dSettings.ImageScaling.resolutionsEnabled":t?"manage3dSettings.ImageScaling.resolutionsCanBeEnabled":"manage3dSettings.ImageScaling.resolutionsDisabled",this.logger.info("scaling resolution info message ",this.scalingResolutionInfoMsg)}updateFeatureState(t,i,n){const s=this.dialogData.imageScalingCurrentValue;let o={};this.selectedFeatureKey===l.DefaultGlobalEnum.UseGlobalKey?o={useGlobal:!0}:(o.enabled=this.selectedFeatureKey===l.ImageScalingValueDisplayEnum.On,o.sharpen=t,o.selectedResolutionIndex=i,o.resolutions=this.resolutions,o.indicatorValue=n),this.isDirty=!(0,w.isEqual)(o,s),this.applyOps=s.enabled!==o.enabled||s.selectedResolutionIndex!==o.selectedResolutionIndex,this.updatedFeature={settingName:this.settingData.featureName,isDirty:this.isDirty,selectedFeatureValue:JSON.stringify(o),isAutoTrigger:!1}}static{this.\u0275fac=function(i){return new(i||a)(e.rXU(y.J6),e.rXU(h.Vh),e.rXU(h.CP),e.rXU(Y.R),e.rXU($.g),e.rXU(F.f))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["nv-app-feature-image-scaling-modal"]],decls:46,vars:49,consts:[["resolutionMenu","matMenu"],[1,"common-modal"],["mat-dialog-title","",1,"font-header6","title"],[1,"content"],[3,"selectValue","settingData","selectedFeatureKey","isRadioButton","underLyingGlobalValue"],[1,"content-details",3,"ngClass"],[1,"resolution-menu"],[1,"font-body2"],["mat-button","","matTooltipClass","mat-tooltip-font-body3",1,"font-body2","setting-drop-down","resolution-menu-dropdown","geometry-rounded-none-imp",3,"matMenuTriggerFor","disabled"],[3,"ngClass"],["class","font-body2",4,"ngIf"],[1,"material-icons","color-medium-gray-hue-1"],["xPosition","before",1,"settings-menu"],[1,"panel-container","feature-expansion-panel-border"],["mat-menu-item","",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"slider-content"],[1,"font-body2","slider-title"],["formatTextAs","Integer","valueEntry","true",1,"common-slider",3,"valueChange","value","min","max","step","disabled","nvAppAnnouncer","associatedMessage"],[1,"divider"],[1,"indicator-checkbox"],[3,"change","checked","nvAppAnnouncer","associatedMessage","disabled"],[1,"resolution-enabled-message"],["svgIcon","info",1,"font-color-secondary"],[1,"resolution-msg","font-body2"],["align","end",1,"actions"],["mat-button","",1,"cancel-button","font-button2",3,"click"],["mat-raised-button","",1,"apply-button","font-button2","mat-accent",3,"click","disabled"],["mat-menu-item","",3,"click","ngClass"]],template:function(i,n){if(1&i){const s=e.RV6();e.j41(0,"div",1)(1,"p",2),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"mat-dialog-content",3)(5,"nv-app-feature-radio-group",4),e.bIt("selectValue",function(c){return e.eBV(s),e.Njj(n.updateSelectedValue(c))}),e.k0s(),e.j41(6,"div",5)(7,"div",6)(8,"span",7),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"button",8)(12,"div",9),e.DNE(13,mn,2,2,"span",10),e.j41(14,"mat-icon",11),e.EFF(15,"arrow_drop_down"),e.k0s()()(),e.j41(16,"mat-menu",12,0)(18,"div",13),e.DNE(19,hn,2,5,"button",14),e.k0s()()(),e.j41(20,"div",15)(21,"div",16),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.j41(24,"nv-hig-slider",17),e.nI1(25,"translate"),e.mxI("valueChange",function(c){return e.eBV(s),e.DH7(n.sliderValue,c)||(n.sliderValue=c),e.Njj(c)}),e.bIt("valueChange",function(c){return e.eBV(s),e.Njj(n.onSharpenChanged(c))}),e.k0s()()(),e.nrm(26,"mat-divider",18),e.j41(27,"div",19)(28,"mat-checkbox",20),e.nI1(29,"translate"),e.bIt("change",function(c){return e.eBV(s),e.Njj(n.onImageScalingIndicatorChanged(c.checked))}),e.j41(30,"span",7),e.EFF(31),e.nI1(32,"translate"),e.k0s()()(),e.nrm(33,"mat-divider",18),e.j41(34,"div",21),e.nrm(35,"mat-icon",22),e.j41(36,"label",23),e.EFF(37),e.nI1(38,"translate"),e.k0s()()(),e.j41(39,"mat-dialog-actions",24)(40,"button",25),e.bIt("click",function(){return e.eBV(s),e.Njj(n.onCancelClick())}),e.EFF(41),e.nI1(42,"translate"),e.k0s(),e.j41(43,"button",26),e.bIt("click",function(){return e.eBV(s),e.Njj(n.onApplyClick())}),e.EFF(44),e.nI1(45,"translate"),e.k0s()()()}if(2&i){const s=e.sdS(17);e.R7$(2),e.SpI(" ",e.bMT(3,31,"manage3dSettings."+(null==n.settingData?null:n.settingData.featureName)+".name")," "),e.R7$(3),e.Y8G("settingData",n.settingData)("selectedFeatureKey",n.selectedFeatureKey)("isRadioButton",!0)("underLyingGlobalValue",n.underlyingGlobalValueText),e.R7$(),e.Y8G("ngClass",n.isDisabled?"disabled":""),e.R7$(3),e.JRh(e.bMT(10,33,"manage3dSettings."+(null==n.settingData?null:n.settingData.featureName)+".renderResolution")),e.R7$(2),e.Y8G("matMenuTriggerFor",s)("disabled",n.isDisabled),e.R7$(),e.Y8G("ngClass",n.isDisabled?"opacity-disabled":""),e.R7$(),e.Y8G("ngIf",n.selectedResolution),e.R7$(6),e.Y8G("ngForOf",n.resolutions),e.R7$(3),e.SpI(" ",e.bMT(23,35,"manage3dSettings."+n.dialogData.featureName+".sharpen")," "),e.R7$(2),e.R50("value",n.sliderValue),e.Y8G("min",n.minValue)("max",n.maxValue)("step",n.stepValue)("disabled",n.isDisabled)("nvAppAnnouncer",n.sliderValue)("associatedMessage","manage3dSettings."+n.dialogData.featureName+".sharpen"),e.BMQ("aria-label",e.bMT(25,37,"manage3dSettings."+n.dialogData.featureName+".sharpen")),e.R7$(4),e.Y8G("checked",n.imageScalingIndicator)("nvAppAnnouncer",n.imageScalingIndicator)("associatedMessage","common.showIndicator")("disabled",n.isDisabled),e.BMQ("aria-label",e.bMT(29,39,"common.showIndicator")),e.R7$(3),e.SpI(" ",e.bMT(32,41,"common.showIndicator")," "),e.R7$(6),e.SpI(" ",e.bMT(38,43,n.scalingResolutionInfoMsg),""),e.R7$(4),e.SpI(" ",e.bMT(42,45,"save.cancel")," "),e.R7$(2),e.Y8G("disabled",!n.isDirty),e.R7$(),e.SpI(" ",e.bMT(45,47,"save.apply")," ")}},dependencies:[p.YU,p.Sq,p.bT,I.iV,j.An,L.pI,L.gy,L.fS,re.q,un.So,h.BI,h.Yi,h.E7,ne.t,J.Aq,de.tG,te.nM,te.tH,G.PW,ie.L,W,v.D9],styles:[".isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}.resolution-menu[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;height:48px;margin-bottom:16px}.selected-resolution[_ngcontent-%COMP%]{color:var(--accent-500)}.resolution-enabled-message[_ngcontent-%COMP%]{padding:0 24px 0 20px;margin-top:16px;display:flex;align-items:center}.resolution-enabled-message[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .resolution-enabled-message[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:20px;height:20px;width:20px}.resolution-enabled-message[_ngcontent-%COMP%] .resolution-msg[_ngcontent-%COMP%]{margin-left:12px}.opacity-disabled[_ngcontent-%COMP%]{opacity:.38}.setting-drop-down[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{vertical-align:middle}.indicator-checkbox[_ngcontent-%COMP%]{margin-top:16px;display:flex;align-items:center;padding:0 24px 0 8px}.divider[_ngcontent-%COMP%]{margin:16px 24px 16px 16px}","[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]{height:48px;background-color:var(--primary-900);padding:0 16px}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]:hover{background-color:var(--feature-expansion-panel-menu-header-hover-bg-color)}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-drop-down[_ngcontent-%COMP%]{display:flex;align-items:center;height:inherit;flex:1;padding:0 8px}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%]{white-space:nowrap;width:100%;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value.is-loading[_ngcontent-%COMP%]{color:var(--primary-500)}.feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{white-space:nowrap;width:auto;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:inherit;position:relative}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%] mat-progress-spinner[_ngcontent-%COMP%]{position:absolute}.feature-expansion-panel-container[_ngcontent-%COMP%] .color-unset[_ngcontent-%COMP%]{color:unset}.feature-expansion-panel-container[_ngcontent-%COMP%]:focus{outline-offset:-2px}"]})}}return a})();const Sn=a=>({nvidiaSettingName:a}),ze=a=>({"font-sub2":a});function _n(a,r){1&a&&e.nrm(0,"mat-progress-spinner",10),2&a&&e.Y8G("diameter",20)}function bn(a,r){if(1&a&&(e.j41(0,"span",11),e.EFF(1),e.k0s()),2&a){const t=e.XpG();e.Y8G("ngClass",e.eq3(2,ze,t.profileValueBold)),e.R7$(),e.SpI(""," - "+t.imageScalingGlobalValueText," ")}}let Xe=(()=>{class a{constructor(t,i,n,s,o){this.loggingService=t,this.translateService=i,this.matDialog=n,this.manage3dSettingsUtilService=s,this.program3dSettingsService=o,this.sharpen=k.hB.sharpen,this.resolutionIndex=0,this.isDisabled=!1,this.uiControlBusy=!1,this.showUiControlBusy=!1,this.currentValueBold=!1,this.profileValueBold=!1,this.isGlobalValueMissing=!1,this.logger=this.loggingService.getLogger("nvapp/FeatureImageScalingComponent")}ngOnInit(){this.imageScalingGlobalValueText=null,this.setImageScalingEnum(),this.initSelectedValues()}ngAfterViewInit(){this.savePreviousAppliedValues()}setImageScalingEnum(){this.featureSettingKey=this.featureName+g.lz,this.imageScalingCurrentValue=JSON.parse(this.imageScalingSetting[this.featureSettingKey]),this.imageScalingEnum=this.imageScalingSetting?.featureEnum,this.imageScalingEnumKeys=this.imageScalingSetting?.featureEnumKeys,this.defaultEnabled=this.imageScalingSetting?.settingDefaultKey?.toString()}initSelectedValues(){if(this.isGlobalValueMissing=this.manage3dSettingsUtilService.isGlobalValueMissing(this.imageScalingSetting.settingGlobalValue,this.featureName),!this.isGlobalContext&&this.isGlobalValueMissing)return this.logger.info(`Global value is missing for feature ${this.featureName}`),void(this.displayValue=this.manage3dSettingsUtilService.getMissingGlobalValueDisplay());this.sharpen=this.imageScalingCurrentValue?.sharpen,this.imageScalingIndicator=this.imageScalingCurrentValue?.indicatorValue,this.resolutions=this.imageScalingCurrentValue?.resolutions,this.resolutionIndex=this.imageScalingCurrentValue?.selectedResolutionIndex;const t=!this.imageScalingCurrentValue?.enabled;this.imageScalingSetting.isUserModified=this.isGlobalContext?!1!==this.imageScalingCurrentValue?.enabled:!this.imageScalingCurrentValue?.useGlobal,this.imageScalingCurrentValue?.useGlobal?(this.enabledKey=l.DefaultGlobalEnum.UseGlobalKey,this.displayValue=this.translateService.instant("manage3dSettings."+this.featureName+".values.UseGlobal"),this.setGlobalValueText()):t?(this.enabledKey=l.ImageScalingValueDisplayEnum.Off,this.displayValue=this.getDisabledText()):(this.enabledKey=l.ImageScalingValueDisplayEnum.On,this.displayValue=this.getEnabledText()),this.isDisabled=t,this.updateBoldEffectForSetting()}openSettingsModal(){if(!this.isGlobalContext&&this.isGlobalValueMissing)return void this.manage3dSettingsUtilService.showMissingGlobalValueDialog(this.featureName,this.program3dSettingsService.getSelectedProfileInfo());if(this.uiControlBusy)return void(this.showUiControlBusy=!0);this.uiControlBusy=!0;const t=this.manage3dSettingsUtilService.getCommonDialogConfig();t.data={isGlobalContext:this.isGlobalContext,featureName:this.featureName,imageScalingSetting:this.imageScalingSetting,imageScalingEnum:this.imageScalingEnum,imageScalingEnumKeys:this.imageScalingEnumKeys,enabledKey:this.enabledKey,defaultEnabled:this.defaultEnabled,imageScalingCurrentValue:this.imageScalingCurrentValue,sharpen:this.sharpen,imageScalingIndicator:this.imageScalingIndicator,isDisabled:this.isDisabled,resolutionIndex:this.resolutionIndex,localId:this.localId,resolutions:this.resolutions,imageScalingGlobalValueText:this.imageScalingGlobalValueText,hyperSamplingResolutionCreated:this.imageScalingCurrentValue?.hyperSamplingResolutionCreated,imageScalingGlobalValue:this.imageScalingGlobalValue},this.imageScalingDialogRef=this.matDialog.open(fn,t),this.imageScalingDialogRef.afterClosed().pipe((0,O.s)(1)).subscribe(i=>{i?.applyInProgress?(this.savePreviousAppliedValues(),this.imageScalingSetting[this.featureSettingKey]=i.featureCurrentValue,this.ngOnInit()):i?.needRefresh&&(this.getFromPreviousAppliedValues(),this.ngOnInit()),this.updateUiControlState(i?.applyInProgress||i?.needRefresh?g.uf:0)},i=>{this.logger.error(i)},()=>{this.updateUiControlState(g.uf)})}updateUiControlState(t){setTimeout(()=>{this.uiControlBusy=!1,this.showUiControlBusy=!1},t)}setGlobalValueText(){this.logger.info("Setting the global value for Image Scaling"),this.transValueSub?.unsubscribe(),this.transValueSub=this.manage3dSettingsUtilService.resolveUseGlobalValue(!1,this.imageScalingSetting.featureEnum,this.imageScalingSetting.settingGlobalValue,this.featureName).pipe((0,O.s)(1)).subscribe(t=>{this.imageScalingGlobalValueText=t,this.imageScalingGlobalValue=JSON.parse(this.imageScalingSetting?.settingGlobalValue?.[this.featureSettingKey]),this.sharpen=this.imageScalingGlobalValue?.sharpen,this.imageScalingIndicator=this.imageScalingGlobalValue?.indicatorValue,this.resolutions=this.imageScalingGlobalValue?.resolutions,this.resolutionIndex=this.imageScalingGlobalValue?.selectedResolutionIndex,this.profileValueBold=!1!==this.imageScalingGlobalValue?.enabled,this.isGlobalContext||(this.imageScalingSetting.settingDefaultKey=l.DefaultGlobalEnum.UseGlobalKey),this.imageScalingGlobalValueText=this.imageScalingGlobalValue?.enabled?this.getEnabledText():this.getDisabledText()})}getEnabledText(){const t=`${this.resolutions?.[this.resolutionIndex]?.percent}% (${this.resolutions?.[this.resolutionIndex]?.resolution})`;return this.translateService.instant("manage3dSettings.ImageSharpening.name",{sharpenValue:this.sharpen})+", "+this.translateService.instant("manage3dSettings."+this.featureName+".resolutionValue",{value:t})}getDisabledText(){return this.translateService.instant("manage3dSettings."+this.featureName+".values.Off")}savePreviousAppliedValues(){this.imageScalingSettingOriginal=(0,w.cloneDeep)(this.imageScalingSetting)}getFromPreviousAppliedValues(){this.imageScalingSetting=(0,w.cloneDeep)(this.imageScalingSettingOriginal)}updateBoldEffectForSetting(){this.currentValueBold=this.isGlobalContext?!1!==this.imageScalingCurrentValue?.enabled:!0!==this.imageScalingCurrentValue?.useGlobal}ngOnDestroy(){this.transValueSub?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||a)(e.rXU(y.J6),e.rXU(v.c$),e.rXU(h.bZ),e.rXU(F.f),e.rXU($.g))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["nv-app-feature-image-scaling"]],inputs:{featureName:"featureName",imageScalingSetting:"imageScalingSetting",isGlobalContext:"isGlobalContext",localId:"localId"},decls:14,vars:18,consts:[["nvAppSettingInfoIcon","","tabindex","0","role","button",1,"feature-expansion-panel-container","feature-expansion-panel-border",3,"keydown.enter","id","settingDetails"],[1,"mat-menu-header"],[1,"font-body2","header-title-text-container","setting-info-icon-container"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"font-body2","header-title-text"],[1,"loading-indicator-container"],["class","mat-accent","mode","indeterminate",3,"diameter",4,"ngIf"],["mat-button","","tabindex","-1",1,"font-body2","setting-drop-down","geometry-rounded-none-imp",3,"click"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"setting-value",3,"ngClass"],[3,"ngClass",4,"ngIf"],["svgIcon","edit_settings",1,"material-icons"],["mode","indeterminate",1,"mat-accent",3,"diameter"],[3,"ngClass"]],template:function(i,n){1&i&&(e.j41(0,"div",0),e.nI1(1,"translate"),e.bIt("keydown.enter",function(){return n.openSettingsModal()}),e.j41(2,"div",1)(3,"div",2)(4,"label",3),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"div",4),e.DNE(8,_n,1,1,"mat-progress-spinner",5),e.j41(9,"button",6),e.bIt("click",function(){return n.openSettingsModal()}),e.j41(10,"div",7),e.EFF(11),e.DNE(12,bn,2,4,"span",8),e.k0s(),e.nrm(13,"mat-icon",9),e.k0s()()()()),2&i&&(e.qtP("aria-label","",e.bMT(1,10,"manage3dSettings."+n.featureName+".name")," ",n.displayValue+(n.imageScalingGlobalValueText?" - "+n.imageScalingGlobalValueText:""),""),e.FS9("id",n.featureName),e.Y8G("settingDetails",e.eq3(14,Sn,n.featureName)),e.R7$(5),e.SpI(" ",e.bMT(6,12,"manage3dSettings."+n.featureName+".name")," "),e.R7$(3),e.Y8G("ngIf",n.showUiControlBusy),e.R7$(2),e.Y8G("ngClass",e.eq3(16,ze,n.currentValueBold)),e.R7$(),e.SpI(" ",n.displayValue," "),e.R7$(),e.Y8G("ngIf",n.imageScalingGlobalValueText))},dependencies:[p.YU,p.bT,I.iV,j.An,z.LG,U.a,G.PW,q.H,v.D9],styles:["[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]{height:48px;background-color:var(--primary-900);padding:0 16px}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]:hover{background-color:var(--feature-expansion-panel-menu-header-hover-bg-color)}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-drop-down[_ngcontent-%COMP%]{display:flex;align-items:center;height:inherit;flex:1;padding:0 8px}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%]{white-space:nowrap;width:100%;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value.is-loading[_ngcontent-%COMP%]{color:var(--primary-500)}.feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{white-space:nowrap;width:auto;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:inherit;position:relative}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%] mat-progress-spinner[_ngcontent-%COMP%]{position:absolute}.feature-expansion-panel-container[_ngcontent-%COMP%] .color-unset[_ngcontent-%COMP%]{color:unset}.feature-expansion-panel-container[_ngcontent-%COMP%]:focus{outline-offset:-2px}"]})}}return a})();var b=d(72639);let Ye=(()=>{class a{constructor(t,i,n,s,o){this.loggingService=t,this.program3dSettingsService=i,this.global3dSettingsService=n,this.dlssSettingsUtilService=s,this.dlssSpinnerService=o,this.logger=this.loggingService.getLogger("nvapp/DLSSApplyService")}getSelectedFeature(t,i,n){return{settingName:t,isDirty:n,selectedFeatureValue:i,isAutoTrigger:!1}}getSRJSONValue(t,i,n,s,o,c){const f=(i?this.global3dSettingsService.profileSettingsInfoArray:this.program3dSettingsService.profileSettingsInfoArray).find(X=>X.settingName===l.JsonTypeSettings.DLSSSR.toString())?.settingValue,m=l.JsonTypeSettings.DLSSSR+g.lz,_=f?.[m],P=JSON.parse(_),M=t===l.DefaultGlobalEnum.UseGlobalValue?g.LM.Default:t,x=M!==g.LM.Default,E=c.isRRDirty&&o===l.DefaultGlobalEnum.UseGlobalValue,H=c.isSRDirty&&t===l.DefaultGlobalEnum.UseGlobalValue,Q={...P,enabled:x,modelOverride:M,performanceModeOverride:x?P.performanceModeOverride:g.VJ.Default,scaling:x?P.scaling:0,useGlobal:n===l.DefaultGlobalEnum.UseGlobalValue||E||H};return(i||!s)&&delete Q.useGlobal,JSON.stringify(Q)}getRRJSONValue(t,i,n,s,o,c){const f=(i?this.global3dSettingsService.profileSettingsInfoArray:this.program3dSettingsService.profileSettingsInfoArray).find(me=>me.settingName===l.JsonTypeSettings.DLSSRR.toString())?.settingValue,m=l.JsonTypeSettings.DLSSRR+g.lz,_=f?.[m],P=JSON.parse(_),M=t===l.DefaultGlobalEnum.UseGlobalValue?g.LM.Default:t,x=M!==g.LM.Default,E=o===l.DefaultGlobalEnum.UseGlobalValue?g.LM.Default:o,H=c.isSRDirty&&o===l.DefaultGlobalEnum.UseGlobalValue,Q=c.isRRDirty&&t===l.DefaultGlobalEnum.UseGlobalValue,X={...P,enabled:x,modelOverride:M,performanceModeOverride:x&&E!==g.LM.Default?P.performanceModeOverride:g.VJ.Default,scaling:x&&E!==g.LM.Default?P.scaling:0,useGlobal:n===l.DefaultGlobalEnum.UseGlobalValue||H||Q};return(i||!s)&&delete X.useGlobal,JSON.stringify(X)}getFGJSONValue(t,i,n,s){const c=(i?this.global3dSettingsService.profileSettingsInfoArray:this.program3dSettingsService.profileSettingsInfoArray).find(x=>x.settingName===l.JsonTypeSettings.DLSSFG.toString())?.settingValue,u=l.JsonTypeSettings.DLSSFG+g.lz,f=c?.[u],m=JSON.parse(f),P=(t===l.DefaultGlobalEnum.UseGlobalValue?g.LM.Default:t)!==g.LM.Default,M={...m,enabled:P,multiFrameCount:m.multiFrameCount!==l.MultiFrameEnum.OFF&&P?m.multiFrameCount:l.MultiFrameEnum.REMOVE,useGlobal:n===l.DefaultGlobalEnum.UseGlobalValue||t===l.DefaultGlobalEnum.UseGlobalValue};return(i||!s)&&delete M.useGlobal,JSON.stringify(M)}getDLSSModelPresetProfileJSONValue(t,i){const n=t===l.DefaultGlobalEnum.UseGlobalValue,s={profileType:n?S.h4.Default:t};return i||(s.useGlobal=n),JSON.stringify(s)}showDependentSettingMessage(t,i,n,s,o,c,u){this.dlssSettingsUtilService.showToastForAIModels(n,s,t.selectedFeatureValue,i.selectedFeatureValue,o,c,u)}applyDLSSSettings(t,i,n,s,o,c,u,f){const m=o?this.global3dSettingsService:this.program3dSettingsService,_=s.srDisabled?(0,V.of)(!0):m.applySingleSetting(t),P=s.rrDisabled?(0,V.of)(!0):m.applySingleSetting(i),M=s.fgDisabled?(0,V.of)(!0):m.applySingleSetting(n);let x=_.pipe((0,K.H)(E=>P),(0,K.H)(E=>M));if(f&&u){const E=m.applySingleSetting(u);x=x.pipe((0,K.H)(H=>E))}return x.pipe((0,C.n)(()=>o?this.global3dSettingsService.refreshGlobalSettings():this.program3dSettingsService.refreshProgramSettings()))}handleDLSSModelsApply(t){const{srModelValue:i,rrModelValue:n,fgModelValue:s,isDirty:o,modelDirtyState:c,dialogData:u,disableState:f,modelConfiguration:m,selectedProfileType:_,errorCallback:P}=t,M=this.dlssSettingsUtilService.getIsDLSSSupportedGlobally(),x=this.getSRJSONValue(i,u.isGlobalContext,_,M,n,c),E=this.getSelectedFeature(l.JsonTypeSettings.DLSSSR,x,o),H=this.getRRJSONValue(n,u.isGlobalContext,_,M,i,c),Q=this.getSelectedFeature(l.JsonTypeSettings.DLSSRR,H,o),X=this.getFGJSONValue(s,u.isGlobalContext,_,M),me=this.getSelectedFeature(l.JsonTypeSettings.DLSSFG,X,o);let ot;if(void 0!==_&&M){const Oe=this.getDLSSModelPresetProfileJSONValue(_,u.isGlobalContext);ot=this.getSelectedFeature(l.JsonTypeSettings.DLSSModelPresetProfile,Oe,o)}const go={applyInProgress:!0,needRefresh:!0,superResolutionCurrentValue:f.srDisabled?JSON.stringify(u.superResolutionCurrentValue):x,rayReconstructionCurrentValue:f.rrDisabled?JSON.stringify(u.rayReconstructionCurrentValue):H,frameGenerationCurrentValue:f.fgDisabled?JSON.stringify(u.frameGenerationCurrentValue):X,...void 0!==m&&{modelConfiguration:m},...void 0!==_&&M&&{dlssModelPresetProfileCurrentValue:JSON.stringify({profileType:_,useGlobal:_===l.DefaultGlobalEnum.UseGlobalValue})}};return this.dlssSpinnerService.setBusy(l.JsonTypeSettings.DLSSModelPresetProfile,!0),this.applyDLSSSettings(E,Q,me,f,u.isGlobalContext,c,ot,M).pipe((0,R.M)(()=>{const Oe=JSON.stringify(u.frameGenerationCurrentValue),co=JSON.stringify(u.superResolutionCurrentValue);this.showDependentSettingMessage(me,E,Oe,co,f,u.isGlobalContext,_)}),(0,ve.j)(()=>{this.dlssSpinnerService.setBusy(l.JsonTypeSettings.DLSSModelPresetProfile,!1)})).pipe((0,O.s)(1)).subscribe(N.l,P),go}static{this.\u0275fac=function(i){return new(i||a)(e.KVO(y.J6),e.KVO($.g),e.KVO(Y.R),e.KVO(oe.$),e.KVO(Ce))}}static{this.\u0275prov=e.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var Ke=d(46906);function vn(a,r){if(1&a){const t=e.RV6();e.j41(0,"button",11),e.bIt("click",function(){const n=e.eBV(t).$implicit,s=e.XpG(2);return e.Njj(s.onSelectionChange(n[0]))}),e.j41(1,"div",12)(2,"div",13),e.EFF(3),e.nI1(4,"translate"),e.k0s()()()}if(2&a){const t=r.$implicit,i=r.index,n=e.XpG(2);e.Y8G("tabindex",0===i?0:-1)("disabled",n.isDisabled),e.R7$(2),e.Y8G("ngClass",t[0]===n.selectedValueKey?"selected":""),e.R7$(),e.SpI(" ",e.bMT(4,4,t[1])," ")}}function Cn(a,r){if(1&a){const t=e.RV6();e.qex(0),e.j41(1,"button",5,1),e.bIt("keydown.enter",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.handleEnterKeyPress(n))}),e.j41(3,"div",6),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.nrm(6,"mat-icon",7),e.k0s(),e.j41(7,"mat-menu",8,2)(9,"div",9),e.DNE(10,vn,5,6,"button",10),e.k0s()(),e.bVm()}if(2&a){const t=e.sdS(8),i=e.XpG();e.R7$(),e.Y8G("matMenuTriggerFor",t),e.R7$(3),e.SpI(" ",e.bMT(5,3,i.selectedValue)," "),e.R7$(6),e.Y8G("ngForOf",i.modelOverridesArray)}}function yn(a,r){if(1&a&&(e.j41(0,"div",14),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&a){const t=e.XpG();e.R7$(),e.SpI(" ",e.bMT(2,1,t.isDisabled?"common.unsupported":t.selectedValue)," ")}}let wn=(()=>{class a{constructor(t){this.loggingService=t,this.modelSelectedValueChange=new e.bkB,this.logger=this.loggingService.getLogger("nvapp/FeatureDLSSModelsExpansionRowComponent")}ngOnInit(){this.updateSelectedValue(this.selectedModelValue)}ngOnChanges(t){(t.selectedModelValue&&!t.selectedModelValue.firstChange||t.allowSelection&&!t.allowSelection.firstChange)&&this.updateSelectedValue(this.selectedModelValue)}onSelectionChange(t){this.updateSelectedValue(t),this.modelSelectedValueChange.emit(t)}updateSelectedValue(t){this.modelOverridesArray=Array.from(this.modelPresetOptions.entries()),this.selectedValue=this.modelPresetOptions.get(t),this.selectedValueKey=t}handleEnterKeyPress(t){}static{this.\u0275fac=function(i){return new(i||a)(e.rXU(y.J6))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["nv-app-feature-dlss-models-expansion-row"]],inputs:{modelPresetOptions:"modelPresetOptions",selectedModelValue:"selectedModelValue",allowSelection:"allowSelection",isDisabled:"isDisabled"},outputs:{modelSelectedValueChange:"modelSelectedValueChange"},features:[e.OA$],decls:4,vars:2,consts:[["defaultText",""],["menuTrigger","matMenuTrigger"],["settingMenu","matMenu"],[1,"dlss-models-expansion-row-container"],[4,"ngIf","ngIfElse"],["mat-button","","tabindex","-1",1,"font-body2","setting-drop-down","geometry-rounded-none-imp",3,"keydown.enter","matMenuTriggerFor"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"font-body2"],["svgIcon","carrot_down","iconPositionEnd","",1,"material-icons"],["xPosition","before","overlapTrigger","false",1,"settings-menu","dlss-models-menu"],[1,"mat-menu-item-container"],["mat-menu-item","","class","option-content-container","nvAppListKeyboardNav","vertical",3,"tabindex","disabled","click",4,"ngFor","ngForOf"],["mat-menu-item","","nvAppListKeyboardNav","vertical",1,"option-content-container",3,"click","tabindex","disabled"],[1,"option-content"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"font-body2","option-text",3,"ngClass"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"default-text-width","font-body2"]],template:function(i,n){if(1&i&&(e.j41(0,"div",3),e.DNE(1,Cn,11,5,"ng-container",4)(2,yn,3,3,"ng-template",null,0,e.C5r),e.k0s()),2&i){const s=e.sdS(3);e.R7$(),e.Y8G("ngIf",n.allowSelection&&!n.isDisabled)("ngIfElse",s)}},dependencies:[p.YU,p.Sq,p.bT,I.iV,j.An,L.pI,L.gy,L.fS,te.tH,U.a,G.PW,ye._,v.D9],styles:[".default-text-width[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0 0 0 16px;height:48px}.dlss-models-expansion-row-container[_ngcontent-%COMP%]{display:flex;align-items:center;flex:1}.dlss-models-expansion-row-container[_ngcontent-%COMP%] .setting-drop-down[_ngcontent-%COMP%]{display:flex;align-items:center;flex:1;height:48px}","[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%], .option-text[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.mat-menu-item-container[_ngcontent-%COMP%]{background-color:var(--primary-700);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;overflow:hidden}.option-content-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start;width:100%}.option-content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start;max-width:490px;overflow:hidden}mat-radio-button[_ngcontent-%COMP%] .option-content[_ngcontent-%COMP%]{padding-left:12px}.option-text[_ngcontent-%COMP%]{white-space:nowrap;width:100%;text-transform:none;text-align:start;cursor:pointer}.selected[_ngcontent-%COMP%]{color:var(--accent-500)}mat-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 16px}mat-radio-group[_ngcontent-%COMP%] mat-radio-button[_ngcontent-%COMP%]{height:48px}"]})}}return a})();function Mn(a,r){if(1&a){const t=e.RV6();e.qex(0),e.j41(1,"mat-chip",13),e.bIt("click",function(){const n=e.eBV(t).$implicit,s=e.XpG();return e.Njj(s.setProfileType(n[0]))})("keyup.enter",function(){const n=e.eBV(t).$implicit,s=e.XpG();return e.Njj(s.setProfileType(n[0]))}),e.j41(2,"span",14),e.EFF(3),e.nI1(4,"translate"),e.k0s()(),e.bVm()}if(2&a){const t=r.$implicit,i=e.XpG();e.R7$(),e.Y8G("selected",i.selectedProfileType==t[0]),e.R7$(2),e.JRh(e.bMT(4,2,t[1]))}}function xn(a,r){if(1&a){const t=e.RV6();e.j41(0,"button",15),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.onCancelClick())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&a&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"save.cancel")," "))}function On(a,r){if(1&a){const t=e.RV6();e.j41(0,"button",16),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.onApplyClick())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&a){const t=e.XpG();e.Y8G("disabled",!t.isDirty),e.R7$(),e.SpI(" ",e.bMT(2,2,"save.apply")," ")}}let Pn=(()=>{class a{constructor(t,i,n,s,o,c,u){this.loggingService=t,this.dialogData=i,this.dialogRef=n,this.manage3dSettingsUtilService=s,this.dlssApplyService=o,this.translateService=c,this.dlssSettingsUtilService=u,this.isDirty=!1,this.modelDirtyState={isSRDirty:!1,isRRDirty:!1,isFGDirty:!1},this.selectedModelByTech={srModel:g.LM.Default,rrModel:g.LM.Default,fgModel:g.LM.Default},this.allowSelection=!1,this.showErrorToast=f=>{const m=this.getTransitionData(!1,!0);this.dialogRef.close(m),this.manage3dSettingsUtilService.showApplyErrorToastMessage(f),this.logger.error(f)},this.logger=this.loggingService.getLogger("nvapp/FeatureDLSSModelsDialogUpdatedUiComponent")}ngOnInit(){this.initialize(),setTimeout(()=>{this.showBtn=!0},0)}initialize(){const t=this.dialogData.isGlobalContext;this.srModelOverrides=new Map(b.Hm),this.rrModelOverrides=new Map(b.l4),this.fgModelOverrides=new Map(b.l4);const i=this.dialogData.dlssModelPresetProfileCurrentValue?.useGlobal;this.selectedProfileType=i?l.DefaultGlobalEnum.UseGlobalValue:this.dialogData.dlssModelPresetProfileCurrentValue?.profileType,void 0===this.selectedProfileType&&(this.selectedProfileType=this.dialogData.isGlobalContext?S.h4.Default:l.DefaultGlobalEnum.UseGlobalValue),this.processModelOverrides(t),this.preFillSelectedValues(),this.disableState=this.dialogData.disableState,this.profileTypesMap=this.filterProfileTypes(t),this.profileTypes=Array.from(this.profileTypesMap.entries()),this.setAllowSelection(this.selectedProfileType),this.updateDirtyState()}filterProfileTypes(t){return this.profileTypesMap=new Map(b.Uj),this.profileTypesMap.forEach((i,n)=>{const s=+n;if(s===l.DefaultGlobalEnum.UseGlobalValue)if(this.dlssSettingsUtilService.shouldRemoveUseGlobalOption(t))this.profileTypesMap.delete(s);else{const o=this.translateService.instant("manage3dSettings.useProfile"),c=this.translateService.instant("common.default");this.profileTypesMap.set(s,`${o} (${c})`)}t&&this.dlssSettingsUtilService.isDefaultKeyForModelPresetProfile(s)&&this.handleDefaultProfileTypeOption(s)}),this.profileTypesMap}processModelOverrides(t){this.updateModelOverridesForGlobalValue(this.srModelOverrides,this.dialogData.superResolutionCurrentGlobalValue?.modelOverride,t),this.updateModelOverridesForGlobalValue(this.rrModelOverrides,this.dialogData.rayReconstructionCurrentGlobalValue?.modelOverride,t),this.updateModelOverridesForGlobalValue(this.fgModelOverrides,this.dialogData.frameGenerationCurrentGlobalValue?.enabled?g.LM.Latest:g.LM.Default,t)}updateModelOverridesForGlobalValue(t,i,n){for(const[s,o]of t)this.dlssSettingsUtilService.isUseGlobalKey(s)?this.handleUseGlobalModelOption(s,t,i,n):this.dlssSettingsUtilService.isDefaultKeyForModel(s)&&this.handleDefaultModelOption(s,t,n)}handleUseGlobalModelOption(t,i,n,s){if(this.dlssSettingsUtilService.shouldRemoveUseGlobalOption(s))i.delete(t);else if(this.dlssSettingsUtilService.shouldShowUseGlobalWithDetails(s)){const o=this.dlssSettingsUtilService.formatUseGlobalModelDisplayText(i,n);i.set(t,o)}}handleDefaultProfileTypeOption(t){const i=this.dlssSettingsUtilService.formatDefaultDisplayText();this.profileTypesMap.set(t,i)}handleDefaultModelOption(t,i,n){if(this.dlssSettingsUtilService.shouldShowDefaultWithSpecialText(n)&&this.selectedProfileType===S.h4.Custom){const s=this.dlssSettingsUtilService.formatDefaultDisplayText();i.set(t,s)}else i.set(t,`${this.translateService.instant(b.v9)}`)}onFGModelSelectedValueChange(t){this.selectedProfileWithModelsMap.set(this.selectedProfileType,{srModel:this.selectedModelByTech.srModel,rrModel:this.selectedModelByTech.rrModel,fgModel:t}),this.updateSelectedModelByTech(),this.updateDirtyState()}onRRModelSelectedValueChange(t){this.selectedProfileWithModelsMap.set(this.selectedProfileType,{srModel:this.selectedModelByTech.srModel,rrModel:t,fgModel:this.selectedModelByTech.fgModel}),this.updateSelectedModelByTech(),this.updateDirtyState()}onSRModelSelectedValueChange(t){this.selectedProfileWithModelsMap.set(this.selectedProfileType,{srModel:t,rrModel:this.selectedModelByTech.rrModel,fgModel:this.selectedModelByTech.fgModel}),this.updateSelectedModelByTech(),this.updateDirtyState()}onCancelClick(){this.dialogRef.close(!1)}setProfileType(t){this.selectedProfileType=+t,this.processModelOverrides(this.dialogData.isGlobalContext),this.setAllowSelection(this.selectedProfileType),this.selectedModelByTech=this.selectedProfileWithModelsMap.get(this.selectedProfileType),this.updateDirtyState()}onApplyClick(){const t=this.dlssApplyService.handleDLSSModelsApply({srModelValue:this.disableState.srDisabled?this.dialogData.superResolutionCurrentValue.modelOverride:this.selectedModelByTech.srModel,rrModelValue:this.disableState.rrDisabled?this.dialogData.rayReconstructionCurrentValue.modelOverride:this.selectedModelByTech.rrModel,fgModelValue:this.disableState.fgDisabled?g.LM.Default:this.selectedModelByTech.fgModel,isDirty:this.isDirty,modelDirtyState:this.modelDirtyState,dialogData:this.dialogData,disableState:this.disableState,selectedProfileType:this.selectedProfileType,isGlobalContext:this.dialogData.isGlobalContext,errorCallback:this.showErrorToast});this.dialogRef.close(t)}getTransitionData(t,i){return{applyInProgress:t,needRefresh:i,superResolutionCurrentValue:JSON.stringify(this.dialogData.superResolutionCurrentValue),rayReconstructionCurrentValue:JSON.stringify(this.dialogData.rayReconstructionCurrentValue),frameGenerationCurrentValue:JSON.stringify(this.dialogData.frameGenerationCurrentValue),dlssModelPresetProfileCurrentValue:JSON.stringify(this.dialogData.dlssModelPresetProfileCurrentValue)}}preFillSelectedValues(){const t=this.dialogData.superResolutionCurrentValue.enabled?this.dialogData.superResolutionCurrentValue.modelOverride:g.LM.Default,i=this.dialogData.rayReconstructionCurrentValue.enabled?this.dialogData.rayReconstructionCurrentValue.modelOverride:g.LM.Default,n=this.dialogData.frameGenerationCurrentValue.enabled?g.LM.Latest:g.LM.Default;if(this.selectedProfileWithModelsMap=new Map,this.selectedProfileWithModelsMap.set(S.h4.Default,{srModel:g.LM.Default,rrModel:g.LM.Default,fgModel:g.LM.Default}),this.selectedProfileWithModelsMap.set(S.h4.Latest,{srModel:g.LM.Latest,rrModel:g.LM.Latest,fgModel:g.LM.Latest}),this.selectedProfileWithModelsMap.set(S.h4.Custom,{srModel:this.dialogData.superResolutionCurrentValue.useGlobal?l.DefaultGlobalEnum.UseGlobalValue:t,rrModel:this.dialogData.rayReconstructionCurrentValue.useGlobal?l.DefaultGlobalEnum.UseGlobalValue:i,fgModel:this.dialogData.frameGenerationCurrentValue.useGlobal?l.DefaultGlobalEnum.UseGlobalValue:n}),!this.dialogData.isGlobalContext){const s=this.dialogData.superResolutionCurrentGlobalValue?.modelOverride,o=this.dialogData.rayReconstructionCurrentGlobalValue?.modelOverride;this.selectedProfileWithModelsMap.set(l.DefaultGlobalEnum.UseGlobalValue,{srModel:s,rrModel:o,fgModel:this.dialogData.frameGenerationCurrentGlobalValue?.enabled?g.LM.Latest:g.LM.Default})}this.updateSelectedModelByTech()}setAllowSelection(t){this.allowSelection=this.isCustomProfileType(t)}isCustomProfileType(t){return t===S.h4.Custom}updateDirtyState(){let t=!1,i=!1,n=!1,s=!1;if(t=!this.disableState.srDisabled&&this.selectedModelByTech.srModel!==(this.dialogData.superResolutionCurrentValue.useGlobal?l.DefaultGlobalEnum.UseGlobalValue:this.dialogData.superResolutionCurrentValue.modelOverride),i=!this.disableState.rrDisabled&&this.selectedModelByTech.rrModel!==(this.dialogData.rayReconstructionCurrentValue.useGlobal?l.DefaultGlobalEnum.UseGlobalValue:this.dialogData.rayReconstructionCurrentValue.modelOverride),n=!this.disableState.fgDisabled&&this.selectedModelByTech.fgModel!==(this.dialogData.frameGenerationCurrentValue.useGlobal?l.DefaultGlobalEnum.UseGlobalValue:this.dialogData.frameGenerationCurrentValue.enabled?g.LM.Latest:g.LM.Default),s=this.selectedProfileType!==(this.dialogData.dlssModelPresetProfileCurrentValue?.useGlobal?l.DefaultGlobalEnum.UseGlobalValue:this.dialogData.dlssModelPresetProfileCurrentValue?.profileType),!s)return this.selectedProfileType===S.h4.Custom?(this.isDirty=t||i||n,this.logger.info("Dirty state if profile is custom",t,i,n),void this.updateModelDirtyState(t,i,n)):(this.isDirty=!1,this.logger.info("Dirty state if profile not dirty",this.isDirty),void this.updateModelDirtyState(t,i,n));this.isDirty=s,this.logger.info("Dirty state",t,i,n,s),this.updateModelDirtyState(t,i,n)}updateModelDirtyState(t,i,n){this.modelDirtyState={isSRDirty:t,isRRDirty:i,isFGDirty:n}}updateSelectedModelByTech(){this.selectedModelByTech=this.selectedProfileWithModelsMap.get(this.selectedProfileType)}static{this.\u0275fac=function(i){return new(i||a)(e.rXU(y.J6),e.rXU(h.Vh),e.rXU(h.CP),e.rXU(F.f),e.rXU(Ye),e.rXU(v.c$),e.rXU(oe.$))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["nv-app-feature-dlss-models-dialog-updated-ui"]],decls:34,vars:27,consts:[[1,"common-modal"],["mat-dialog-title","",1,"font-header6","title"],[1,"content"],[1,"model-profile-container"],[4,"ngFor","ngForOf"],[1,"model-preset-list"],[1,"model-preset-item"],[1,"model-preset-item-label"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"font-body2","font-color-primary","setting-label"],[3,"modelSelectedValueChange","modelPresetOptions","selectedModelValue","allowSelection","isDisabled"],["align","end",1,"actions"],["mat-button","","class","cancel-button font-button2","aria-label","Cancel",3,"click",4,"ngIf"],["mat-raised-button","","class","apply-button font-button2 mat-accent","aria-label","Apply",3,"disabled","click",4,"ngIf"],["selectable","",1,"model-profile-chip",3,"click","keyup.enter","selected"],[1,"font-body2","font-color-secondary"],["mat-button","","aria-label","Cancel",1,"cancel-button","font-button2",3,"click"],["mat-raised-button","","aria-label","Apply",1,"apply-button","font-button2","mat-accent",3,"click","disabled"]],template:function(i,n){1&i&&(e.j41(0,"div",0)(1,"p",1),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"mat-dialog-content",2)(5,"div",3)(6,"mat-chip-list"),e.DNE(7,Mn,5,4,"ng-container",4),e.k0s()(),e.j41(8,"div",5),e.nrm(9,"mat-divider"),e.j41(10,"div",6)(11,"div",7)(12,"label",8),e.EFF(13),e.nI1(14,"translate"),e.k0s()(),e.j41(15,"nv-app-feature-dlss-models-expansion-row",9),e.bIt("modelSelectedValueChange",function(o){return n.onFGModelSelectedValueChange(o)}),e.k0s()(),e.nrm(16,"mat-divider"),e.j41(17,"div",6)(18,"div",7)(19,"label",8),e.EFF(20),e.nI1(21,"translate"),e.k0s()(),e.j41(22,"nv-app-feature-dlss-models-expansion-row",9),e.bIt("modelSelectedValueChange",function(o){return n.onRRModelSelectedValueChange(o)}),e.k0s()(),e.nrm(23,"mat-divider"),e.j41(24,"div",6)(25,"div",7)(26,"label",8),e.EFF(27),e.nI1(28,"translate"),e.k0s()(),e.j41(29,"nv-app-feature-dlss-models-expansion-row",9),e.bIt("modelSelectedValueChange",function(o){return n.onSRModelSelectedValueChange(o)}),e.k0s()(),e.nrm(30,"mat-divider"),e.k0s()(),e.j41(31,"mat-dialog-actions",10),e.DNE(32,xn,3,3,"button",11)(33,On,3,4,"button",12),e.k0s()()),2&i&&(e.R7$(2),e.SpI(" ",e.bMT(3,19,"manage3dSettings."+(null==n.dialogData?null:n.dialogData.featureName)+".name")," "),e.R7$(5),e.Y8G("ngForOf",n.profileTypes),e.R7$(6),e.JRh(e.bMT(14,21,"dlssOverrides.tech.DLSSFG")),e.R7$(2),e.Y8G("modelPresetOptions",n.fgModelOverrides)("selectedModelValue",n.selectedModelByTech.fgModel)("allowSelection",n.allowSelection)("isDisabled",n.disableState.fgDisabled),e.R7$(5),e.JRh(e.bMT(21,23,"dlssOverrides.tech.DLSSRR")),e.R7$(2),e.Y8G("modelPresetOptions",n.rrModelOverrides)("selectedModelValue",n.selectedModelByTech.rrModel)("allowSelection",n.allowSelection)("isDisabled",n.disableState.rrDisabled),e.R7$(5),e.JRh(e.bMT(28,25,"dlssOverrides.tech.DLSSSR")),e.R7$(2),e.Y8G("modelPresetOptions",n.srModelOverrides)("selectedModelValue",n.selectedModelByTech.srModel)("allowSelection",n.allowSelection)("isDisabled",n.disableState.srDisabled),e.R7$(3),e.Y8G("ngIf",n.showBtn),e.R7$(),e.Y8G("ngIf",n.showBtn))},dependencies:[p.Sq,p.bT,I.iV,re.q,h.BI,h.Yi,h.E7,J.Aq,U.a,Ke.O_,Ke.Id,wn,v.D9],styles:["[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.model-preset-list[_ngcontent-%COMP%]{margin-left:16px;margin-right:24px}.model-preset-list[_ngcontent-%COMP%] .model-preset-item[_ngcontent-%COMP%]{display:flex;gap:50px;padding-left:16px}.model-preset-list[_ngcontent-%COMP%] .model-preset-item[_ngcontent-%COMP%]:hover{background-color:var(--feature-expansion-panel-menu-header-hover-bg-color)}.model-preset-list[_ngcontent-%COMP%] .model-preset-item-label[_ngcontent-%COMP%]{display:flex;align-items:center;flex:0 0 237px;min-width:0}.model-preset-list[_ngcontent-%COMP%] nv-app-feature-dlss-models-expansion-row[_ngcontent-%COMP%]{display:flex;flex:1}.model-profile-container[_ngcontent-%COMP%]{padding:0 16px;display:flex;margin-bottom:24px}","[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]{height:48px;background-color:var(--primary-900);padding:0 16px}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]:hover{background-color:var(--feature-expansion-panel-menu-header-hover-bg-color)}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-drop-down[_ngcontent-%COMP%]{display:flex;align-items:center;height:inherit;flex:1;padding:0 8px}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%]{white-space:nowrap;width:100%;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value.is-loading[_ngcontent-%COMP%]{color:var(--primary-500)}.feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{white-space:nowrap;width:auto;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:inherit;position:relative}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%] mat-progress-spinner[_ngcontent-%COMP%]{position:absolute}.feature-expansion-panel-container[_ngcontent-%COMP%] .color-unset[_ngcontent-%COMP%]{color:unset}.feature-expansion-panel-container[_ngcontent-%COMP%]:focus{outline-offset:-2px}"]})}}return a})();var ue=d(56106),pe=d(12949),xe=d(51635);function Dn(a,r){if(1&a&&(e.qex(0),e.j41(1,"mat-option",18),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.bVm()),2&a){const t=r.$implicit;e.R7$(),e.Y8G("value",t.key),e.R7$(),e.SpI(" ",e.bMT(3,2,t.value)," ")}}function Vn(a,r){if(1&a&&(e.qex(0),e.j41(1,"mat-option",18),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.bVm()),2&a){const t=r.$implicit;e.R7$(),e.Y8G("value",t.key),e.R7$(),e.SpI(" ",e.bMT(3,2,t.value)," ")}}function Gn(a,r){if(1&a&&(e.qex(0),e.j41(1,"mat-option",18),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.bVm()),2&a){const t=r.$implicit;e.R7$(),e.Y8G("value",t.key),e.R7$(),e.SpI(" ",e.bMT(3,2,t.value)," ")}}function In(a,r){1&a&&(e.qex(0),e.nrm(1,"mat-divider"),e.bVm())}function Fn(a,r){if(1&a&&(e.qex(0),e.j41(1,"mat-option",18),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.DNE(4,In,2,0,"ng-container",19),e.bVm()),2&a){const t=r.$implicit,i=e.XpG();e.R7$(),e.Y8G("value",t.key),e.R7$(),e.SpI(" ",e.bMT(3,3,t.value)," "),e.R7$(2),e.Y8G("ngIf",t.key===i.latestModelOverride)}}function Tn(a,r){if(1&a){const t=e.RV6();e.j41(0,"button",20),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.onCancelClick())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&a&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"save.cancel")," "))}function Rn(a,r){if(1&a){const t=e.RV6();e.j41(0,"button",21),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.onApplyClick())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&a){const t=e.XpG();e.Y8G("disabled",!t.isDirty),e.R7$(),e.SpI(" ",e.bMT(2,2,"save.apply")," ")}}let En=(()=>{class a{constructor(t,i,n,s,o,c){this.loggingService=t,this.dialogData=i,this.dialogRef=n,this.manage3dSettingsUtilService=s,this.dlssApplyService=o,this.dlssSettingsUtilService=c,this.settingData={},this.isDirty=!1,this.sameSelectConfiguration={checked:!0,disabled:!1,possibleValue:`manage3dSettings.${this.dialogData?.featureName}.values.same`,possibleKey:S.D3.Same},this.customSelectConfiguration={checked:!1,disabled:!1,possibleValue:`manage3dSettings.${this.dialogData?.featureName}.values.custom`,possibleKey:S.D3.Custom},this.modelConfigurationSelected=S.D3.Same,this.sameModelOverrides=b.j2,this.srModelOverrides=b.iN,this.rrModelOverrides=b.DV,this.fgModelOverrides=b.i_,this.techModelOverrides=b.j2,this.isSameModelConfigurationSelected=!1,this.latestModelOverride=g.LM.Latest,this.modelDirtyState={isSRDirty:!1,isRRDirty:!1,isFGDirty:!1},this.showErrorToast=u=>{const f=this.getTransitionData(!1,!0);this.dialogRef.close(f),this.manage3dSettingsUtilService.showApplyErrorToastMessage(u),this.logger.error(u)},this.logger=this.loggingService.getLogger("nvapp/FeatureDLSSModelsDialogComponent")}ngOnInit(){this.srModelOverrides=this.removeUseGlobalOptionFromMap(this.srModelOverrides),this.rrModelOverrides=this.removeUseGlobalOptionFromMap(this.rrModelOverrides),this.fgModelOverrides=this.removeUseGlobalOptionFromMap(this.fgModelOverrides),this.formatDefaultOptionInMaps(),this.initialize(),setTimeout(()=>{this.showBtn=!0},0)}initialize(){this.settingData.featureName=this.dialogData?.featureName,this.disableState=this.dialogData.disableState,this.modelConfigurationSelected=this.dialogData.modelConfiguration,this.isSameModelConfigurationSelected=this.modelConfigurationSelected===S.D3.Same;const t=this.dialogData.superResolutionCurrentValue.modelOverride,i=this.dialogData.rayReconstructionCurrentValue.modelOverride,n=this.dialogData.frameGenerationCurrentValue.enabled?g.LM.Latest:g.LM.Default,s=t,o=i,c=n;this.sameModelCurrentValue={srModel:s,rrModel:o,fgModel:c},this.sameModelValue={srModel:this.isSameModelConfigurationSelected?s:g.LM.Default,rrModel:this.isSameModelConfigurationSelected?o:g.LM.Default,fgModel:this.isSameModelConfigurationSelected?c:g.LM.Default};const u=t,f=i,m=n;this.customModelCurrentValue={srModel:u,rrModel:f,fgModel:m},this.customModelValue={srModel:this.isSameModelConfigurationSelected?g.LM.Default:u,rrModel:this.isSameModelConfigurationSelected?g.LM.Default:f,fgModel:this.isSameModelConfigurationSelected?g.LM.Default:m},this.updateSelectedValues(),this.updateState()}removeUseGlobalOptionFromMap(t){return new Map(Array.from(t).filter(([i])=>!this.dlssSettingsUtilService.isUseGlobalKey(i)))}formatDefaultOptionInMaps(){const t=g.LM.Default,i=this.dlssSettingsUtilService.formatDefaultDisplayText();this.sameModelOverrides.has(t)&&this.sameModelOverrides.set(t,i),this.srModelOverrides.has(t)&&this.srModelOverrides.set(t,i),this.rrModelOverrides.has(t)&&this.rrModelOverrides.set(t,i),this.fgModelOverrides.has(t)&&this.fgModelOverrides.set(t,i),this.techModelOverrides.has(t)&&this.techModelOverrides.set(t,i)}naturalOrder(){return 0}onModelConfigurationSelection(t){this.modelConfigurationSelected=t,this.isSameModelConfigurationSelected=this.modelConfigurationSelected===S.D3.Same,this.updateSameModelValue(),this.updateState()}modelChanged(){this.updateSelectedValues(),this.updateSameModelValue(),this.updateState()}updateSelectedValues(){this.sameModelSelectedValue=this.sameModelOverrides.get(this.sameModelValue.srModel),this.srModelSelectedValue=this.srModelOverrides.get(this.customModelValue.srModel),this.rrModelSelectedValue=this.rrModelOverrides.get(this.customModelValue.rrModel),this.fgModelSelectedValue=this.fgModelOverrides.get(this.customModelValue.fgModel)}updateSameModelValue(){this.isSameModelConfigurationSelected&&(this.sameModelValue.rrModel=this.sameModelValue.srModel,this.sameModelValue.fgModel=this.sameModelValue.srModel)}onApplyClick(){let t,i,n;this.isSameModelConfigurationSelected?(t=this.sameModelValue.srModel,i=this.sameModelValue.rrModel,n=this.sameModelValue.fgModel):(t=this.customModelValue.srModel,i=this.customModelValue.rrModel,n=this.customModelValue.fgModel);const s=this.dlssApplyService.handleDLSSModelsApply({srModelValue:t,rrModelValue:i,fgModelValue:n,isDirty:this.isDirty,modelDirtyState:this.modelDirtyState,dialogData:this.dialogData,disableState:this.disableState,modelConfiguration:this.modelConfigurationSelected,errorCallback:this.showErrorToast});this.dialogRef.close(s)}updateState(){this.isSameModelConfigurationSelected=this.modelConfigurationSelected===S.D3.Same,this.isSameModelConfigurationSelected?(this.sameSelectConfiguration.checked=!0,this.customSelectConfiguration.checked=!1):(this.sameSelectConfiguration.checked=!1,this.customSelectConfiguration.checked=!0),this.updateDirtyState()}updateDirtyState(){let t=!1,i=!1,n=!1;this.modelConfigurationSelected===S.D3.Same?(t=!this.disableState.srDisabled&&this.sameModelValue.srModel!==this.sameModelCurrentValue.srModel,i=!this.disableState.rrDisabled&&this.sameModelValue.rrModel!==this.sameModelCurrentValue.rrModel,n=!this.disableState.fgDisabled&&this.sameModelValue.fgModel!==this.sameModelCurrentValue.fgModel):(t=!this.disableState.srDisabled&&this.customModelValue.srModel!==this.customModelCurrentValue.srModel,i=!this.disableState.rrDisabled&&this.customModelValue.rrModel!==this.customModelCurrentValue.rrModel,n=!this.disableState.fgDisabled&&this.customModelValue.fgModel!==this.customModelCurrentValue.fgModel),this.logger.info("Dirty state",t,i,n),this.isDirty=t||i||n,this.modelDirtyState={isSRDirty:t,isRRDirty:i,isFGDirty:n}}onCancelClick(){const t=this.getTransitionData(!1,!1);this.dialogRef.close(t),this.dialogRef.close(!1)}getTransitionData(t,i){return{applyInProgress:t,needRefresh:i,superResolutionCurrentValue:JSON.stringify(this.dialogData.superResolutionCurrentValue),rayReconstructionCurrentValue:JSON.stringify(this.dialogData.rayReconstructionCurrentValue),frameGenerationCurrentValue:JSON.stringify(this.dialogData.frameGenerationCurrentValue),modelConfiguration:this.modelConfigurationSelected}}static{this.\u0275fac=function(i){return new(i||a)(e.rXU(y.J6),e.rXU(h.Vh),e.rXU(h.CP),e.rXU(F.f),e.rXU(Ye),e.rXU(oe.$))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["nv-app-feature-dlss-models-dialog"]],decls:59,vars:64,consts:[[1,"common-modal"],["mat-dialog-title","",1,"font-header6","title"],[1,"content"],[1,"models-container"],[1,"models-select-radio-group"],[1,"option-content-container",3,"change","checked","value"],[1,"font-body1","font-color-primary","model-radio-option",3,"ngClass"],[1,"common-model-overrides","same-model-overrides-select-container"],["panelClass","mat-select-font-body2","disableOptionCentering","true",1,"model-select","mat-mdc-select-dark-background","mat-select-font-body2",3,"ngModelChange","selectionChange","ngClass","ngModel","disabled"],[1,"dropdown-trigger"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3"],[4,"ngFor","ngForOf"],[1,"font-body2","model-title"],[1,"common-model-overrides","custom-model-overrides-select-container"],[1,"font-body2","model-title","rr-title"],["align","end",1,"actions"],["mat-button","","class","cancel-button font-button2",3,"click",4,"ngIf"],["mat-raised-button","","class","apply-button font-button2 mat-accent",3,"disabled","click",4,"ngIf"],[1,"nvapp-mat-select-option","model-select-option",3,"value"],[4,"ngIf"],["mat-button","",1,"cancel-button","font-button2",3,"click"],["mat-raised-button","",1,"apply-button","font-button2","mat-accent",3,"click","disabled"]],template:function(i,n){1&i&&(e.j41(0,"div",0)(1,"p",1),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"mat-dialog-content",2)(5,"div",3)(6,"mat-radio-group",4)(7,"mat-radio-button",5),e.bIt("change",function(){return n.onModelConfigurationSelection(n.sameSelectConfiguration.possibleKey)}),e.j41(8,"div",6),e.EFF(9),e.nI1(10,"translate"),e.k0s()(),e.j41(11,"div",7)(12,"mat-select",8),e.mxI("ngModelChange",function(o){return e.DH7(n.sameModelValue.srModel,o)||(n.sameModelValue.srModel=o),o}),e.bIt("selectionChange",function(){return n.modelChanged()}),e.j41(13,"mat-select-trigger",9)(14,"div",10),e.EFF(15),e.nI1(16,"translate"),e.k0s()(),e.DNE(17,Dn,4,4,"ng-container",11),e.nI1(18,"keyvalue"),e.k0s()(),e.j41(19,"mat-radio-button",5),e.bIt("change",function(){return n.onModelConfigurationSelection(n.customSelectConfiguration.possibleKey)}),e.j41(20,"div",6),e.EFF(21),e.nI1(22,"translate"),e.k0s()(),e.j41(23,"span",12),e.EFF(24),e.nI1(25,"translate"),e.k0s(),e.j41(26,"div",13)(27,"mat-select",8),e.mxI("ngModelChange",function(o){return e.DH7(n.customModelValue.fgModel,o)||(n.customModelValue.fgModel=o),o}),e.bIt("selectionChange",function(){return n.modelChanged()}),e.j41(28,"mat-select-trigger",9)(29,"div",10),e.EFF(30),e.nI1(31,"translate"),e.k0s()(),e.DNE(32,Vn,4,4,"ng-container",11),e.nI1(33,"keyvalue"),e.k0s()(),e.j41(34,"span",14),e.EFF(35),e.nI1(36,"translate"),e.k0s(),e.j41(37,"div",13)(38,"mat-select",8),e.mxI("ngModelChange",function(o){return e.DH7(n.customModelValue.rrModel,o)||(n.customModelValue.rrModel=o),o}),e.bIt("selectionChange",function(){return n.modelChanged()}),e.j41(39,"mat-select-trigger",9)(40,"div",10),e.EFF(41),e.nI1(42,"translate"),e.k0s()(),e.DNE(43,Gn,4,4,"ng-container",11),e.nI1(44,"keyvalue"),e.k0s()(),e.j41(45,"span",12),e.EFF(46),e.nI1(47,"translate"),e.k0s(),e.j41(48,"div",13)(49,"mat-select",8),e.mxI("ngModelChange",function(o){return e.DH7(n.customModelValue.srModel,o)||(n.customModelValue.srModel=o),o}),e.bIt("selectionChange",function(){return n.modelChanged()}),e.j41(50,"mat-select-trigger",9)(51,"div",10),e.EFF(52),e.nI1(53,"translate"),e.k0s()(),e.DNE(54,Fn,5,5,"ng-container",11),e.nI1(55,"keyvalue"),e.k0s()()()()(),e.j41(56,"mat-dialog-actions",15),e.DNE(57,Tn,3,3,"button",16)(58,Rn,3,4,"button",17),e.k0s()()),2&i&&(e.R7$(2),e.SpI(" ",e.bMT(3,34,"manage3dSettings."+(null==n.settingData?null:n.settingData.featureName)+".name")," "),e.R7$(5),e.FS9("value",n.sameSelectConfiguration.possibleKey),e.Y8G("checked",null==n.sameSelectConfiguration?null:n.sameSelectConfiguration.checked),e.R7$(),e.Y8G("ngClass",null!=n.sameSelectConfiguration&&n.sameSelectConfiguration.checked?"selected":""),e.R7$(),e.SpI(" ",e.bMT(10,36,n.sameSelectConfiguration.possibleValue)," "),e.R7$(3),e.Y8G("ngClass",n.isSameModelConfigurationSelected?"":"opacity-disabled"),e.R50("ngModel",n.sameModelValue.srModel),e.Y8G("disabled",!n.isSameModelConfigurationSelected),e.R7$(3),e.SpI(" ",e.bMT(16,38,n.sameModelSelectedValue)," "),e.R7$(2),e.Y8G("ngForOf",e.bMT(18,40,n.sameModelOverrides)),e.R7$(2),e.FS9("value",n.customSelectConfiguration.possibleKey),e.Y8G("checked",null==n.customSelectConfiguration?null:n.customSelectConfiguration.checked),e.R7$(),e.Y8G("ngClass",null!=n.customSelectConfiguration&&n.customSelectConfiguration.checked?"selected":""),e.R7$(),e.SpI(" ",e.bMT(22,42,n.customSelectConfiguration.possibleValue)," "),e.R7$(3),e.SpI(" ",e.bMT(25,44,"dlssOverrides.tech.DLSSFG"),": "),e.R7$(3),e.Y8G("ngClass",n.isSameModelConfigurationSelected||n.disableState.fgDisabled?"opacity-disabled":""),e.R50("ngModel",n.customModelValue.fgModel),e.Y8G("disabled",n.isSameModelConfigurationSelected||n.disableState.fgDisabled),e.R7$(3),e.SpI(" ",e.bMT(31,46,n.fgModelSelectedValue)," "),e.R7$(2),e.Y8G("ngForOf",e.bMT(33,48,n.fgModelOverrides)),e.R7$(3),e.SpI(" ",e.bMT(36,50,"dlssOverrides.tech.DLSSRR"),": "),e.R7$(3),e.Y8G("ngClass",n.isSameModelConfigurationSelected||n.disableState.rrDisabled?"opacity-disabled":""),e.R50("ngModel",n.customModelValue.rrModel),e.Y8G("disabled",n.isSameModelConfigurationSelected||n.disableState.rrDisabled),e.R7$(3),e.SpI(" ",e.bMT(42,52,n.rrModelSelectedValue)," "),e.R7$(2),e.Y8G("ngForOf",e.i5U(44,54,n.rrModelOverrides,n.naturalOrder)),e.R7$(3),e.SpI(" ",e.bMT(47,57,"dlssOverrides.tech.DLSSSR"),": "),e.R7$(3),e.Y8G("ngClass",n.isSameModelConfigurationSelected||n.disableState.srDisabled?"opacity-disabled":""),e.R50("ngModel",n.customModelValue.srModel),e.Y8G("disabled",n.isSameModelConfigurationSelected||n.disableState.srDisabled),e.R7$(3),e.SpI(" ",e.bMT(53,59,n.srModelSelectedValue)," "),e.R7$(2),e.Y8G("ngForOf",e.i5U(55,61,n.srModelOverrides,n.naturalOrder)),e.R7$(3),e.Y8G("ngIf",n.showBtn),e.R7$(),e.Y8G("ngIf",n.showBtn))},dependencies:[p.YU,p.Sq,p.bT,ue.BC,ue.vS,I.iV,re.q,pe.VO,pe.$2,xe.wT,h.BI,h.Yi,h.E7,J.Aq,de.tG,U.a,Z.VT,Z._g,G.PW,p.lG,v.D9],styles:["[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.models-container[_ngcontent-%COMP%]{padding:0 16px}.models-container[_ngcontent-%COMP%] .models-select-radio-group[_ngcontent-%COMP%]{display:block;margin-right:16px}.models-container[_ngcontent-%COMP%] .model-radio-option[_ngcontent-%COMP%]{margin:12px 16px 12px 12px}.models-container[_ngcontent-%COMP%] .model-select[_ngcontent-%COMP%]{width:293px}.models-container[_ngcontent-%COMP%] .model-select[_ngcontent-%COMP%], .models-container[_ngcontent-%COMP%] .model-select-option[_ngcontent-%COMP%]{background:var(--primary-600)}.models-container[_ngcontent-%COMP%] .model-title[_ngcontent-%COMP%]{display:block;margin-left:36px;margin-bottom:16px}.models-container[_ngcontent-%COMP%] .common-model-overrides[_ngcontent-%COMP%]{margin-left:36px;margin-top:16px}.models-container[_ngcontent-%COMP%] .same-model-overrides-select-container[_ngcontent-%COMP%]{margin-bottom:24px}.models-container[_ngcontent-%COMP%] .custom-model-overrides-select-container[_ngcontent-%COMP%]:not(:last-of-type){margin-bottom:16px}.models-container[_ngcontent-%COMP%] .rr-title[_ngcontent-%COMP%]{margin-top:16px}.models-container[_ngcontent-%COMP%] .opacity-disabled[_ngcontent-%COMP%]{opacity:.38}.models-container[_ngcontent-%COMP%] .mat-mdc-select.cdk-keyboard-focused[_ngcontent-%COMP%]{background-color:#ffffff3d}.models-container[_ngcontent-%COMP%] .mat-mdc-select[_ngcontent-%COMP%]:hover{background-color:#ffffff14}.models-container[_ngcontent-%COMP%] .mat-mdc-select[_ngcontent-%COMP%]:active{background-color:#ffffff52}.models-container[_ngcontent-%COMP%] .mat-mdc-select[_ngcontent-%COMP%]:focus{background-color:#ffffff3d}body.light-theme[_ngcontent-%COMP%] .models-container[_ngcontent-%COMP%] .mat-mdc-select.cdk-keyboard-focused[_ngcontent-%COMP%]{background-color:#0000003d}body.light-theme[_ngcontent-%COMP%] .models-container[_ngcontent-%COMP%] .mat-mdc-select[_ngcontent-%COMP%]:hover{background-color:#00000014}body.light-theme[_ngcontent-%COMP%] .models-container[_ngcontent-%COMP%] .mat-mdc-select[_ngcontent-%COMP%]:active{background-color:#00000052}body.light-theme[_ngcontent-%COMP%] .models-container[_ngcontent-%COMP%] .mat-mdc-select[_ngcontent-%COMP%]:focus{background-color:#0000003d}","[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]{height:48px;background-color:var(--primary-900);padding:0 16px}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]:hover{background-color:var(--feature-expansion-panel-menu-header-hover-bg-color)}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-drop-down[_ngcontent-%COMP%]{display:flex;align-items:center;height:inherit;flex:1;padding:0 8px}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%]{white-space:nowrap;width:100%;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value.is-loading[_ngcontent-%COMP%]{color:var(--primary-500)}.feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{white-space:nowrap;width:auto;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:inherit;position:relative}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%] mat-progress-spinner[_ngcontent-%COMP%]{position:absolute}.feature-expansion-panel-container[_ngcontent-%COMP%] .color-unset[_ngcontent-%COMP%]{color:unset}.feature-expansion-panel-container[_ngcontent-%COMP%]:focus{outline-offset:-2px}"]})}}return a})();const Nn=(a,r,t)=>({nvidiaSettingName:a,notes:r,importantInfo:t}),kn=(a,r,t)=>({"font-sub2":a,"color-unset":r,"font-body2":t}),jn=(a,r)=>({"font-sub2":a,"color-unset":r});function An(a,r){1&a&&e.nrm(0,"mat-progress-spinner",10),2&a&&e.Y8G("diameter",20)}function Un(a,r){if(1&a&&(e.j41(0,"span",11),e.EFF(1),e.k0s()),2&a){const t=e.XpG();e.Y8G("ngClass",e.l_i(2,jn,t.profileValueBold,t.isDisabled)),e.R7$(),e.SpI(""," - "+t.globalValueText," ")}}function Bn(a,r){1&a&&e.nrm(0,"mat-icon",12)}let qe=(()=>{class a{constructor(t,i,n,s,o,c,u){this.loggingService=t,this.translateService=i,this.matDialog=n,this.manage3dSettingsUtilService=s,this.dlssSettingsUtilService=o,this.dlssSpinnerService=c,this.program3dSettingsService=u,this.featureName=b.FY,this.isDisabled=!1,this.superResolutionSettingKey=`${l.JsonTypeSettings.DLSSSR}${g.lz}`,this.rayReconstructionSettingKey=`${l.JsonTypeSettings.DLSSRR}${g.lz}`,this.frameGenerationSettingKey=`${l.JsonTypeSettings.DLSSFG}${g.lz}`,this.dlssModelPresetProfileSettingKey=`${l.JsonTypeSettings.DLSSModelPresetProfile}${g.lz}`,this.uiControlBusy=!1,this.isAnyDlssSettingBusy=!1,this.allLatest=!1,this.allDefault=!1,this.isSRLatest=!1,this.isRRLatest=!1,this.isFGLatest=!1,this.allDenyListed=!1,this.allUseGlobal=!1,this.allUseGlobalDefault=!1,this.destroyRef=(0,e.WQX)(e.abz),this.isGlobalValueMissing=!1,this.notes=[],this.showUiControlBusy=!1,this.currentValueBold=!1,this.profileValueBold=!1,this.importantInfo=[],this.isDLSSSupportedGlobally=!1,this.isDLSSModelPresetProfileSupportedGlobally=!1,this.logger=this.loggingService.getLogger("nvapp/FeatureDLSSModelsComponent")}ngOnInit(){this.initialize(),this.initSpinner()}ngOnChanges(t){t&&t.superResolutionSetting&&t.superResolutionSetting?.isFirstChange()||!t.superResolutionSetting||!t.dlssModelPresetProfileSetting||(this.superResolutionSetting=t.superResolutionSetting?.currentValue,this.frameGenerationSetting=t.frameGenerationSetting?.currentValue,this.dlssModelPresetProfileSetting=t.dlssModelPresetProfileSetting?.currentValue,this.initialize())}initialize(){this.initSelectedValues(),this.setDLSSModelsText(),this.updateBoldEffectForModels()}initSpinner(){this.dlssSpinnerService.isAnyDlssSettingBusy().pipe((0,D.pQ)(this.destroyRef)).subscribe(t=>{this.isAnyDlssSettingBusy=t})}ngAfterViewInit(){this.savePreviousAppliedValues()}initSelectedValues(){this.superResolutionCurrentValue=JSON.parse(this.superResolutionSetting[this.superResolutionSettingKey]),this.rayReconstructionCurrentValue=JSON.parse(this.rayReconstructionSetting[this.rayReconstructionSettingKey]),this.frameGenerationCurrentValue=JSON.parse(this.frameGenerationSetting[this.frameGenerationSettingKey]),this.dlssModelPresetProfileSetting&&this.dlssModelPresetProfileSetting?.[this.dlssModelPresetProfileSettingKey]&&(this.dlssModelPresetProfileCurrentValue=JSON.parse(this.dlssModelPresetProfileSetting[this.dlssModelPresetProfileSettingKey])),this.isDLSSSupportedGlobally=this.dlssSettingsUtilService.getIsDLSSSupportedGlobally(),this.isDLSSModelPresetProfileSupportedGlobally=this.dlssSettingsUtilService.getIsDLSSModelPresetProfileSupportedGlobally(),this.isDLSSSupportedGlobally&&!this.isGlobalContext&&(this.isGlobalValueMissing=!this.superResolutionSetting.settingGlobalValue?.[this.superResolutionSettingKey]||!this.rayReconstructionSetting.settingGlobalValue?.[this.rayReconstructionSettingKey]||!this.frameGenerationSetting.settingGlobalValue?.[this.frameGenerationSettingKey],this.isGlobalValueMissing||(this.superResolutionCurrentGlobalValue=JSON.parse(this.superResolutionSetting.settingGlobalValue?.[this.superResolutionSettingKey]),this.rayReconstructionCurrentGlobalValue=JSON.parse(this.rayReconstructionSetting.settingGlobalValue?.[this.rayReconstructionSettingKey]),this.frameGenerationCurrentGlobalValue=JSON.parse(this.frameGenerationSetting.settingGlobalValue?.[this.frameGenerationSettingKey]),this.dlssModelPresetProfileSetting&&(this.dlssModelPresetProfileCurrentGlobalValue=JSON.parse(this.dlssModelPresetProfileSetting?.settingGlobalValue?.[this.dlssModelPresetProfileSettingKey])))),this.isSRLatest=this.superResolutionCurrentValue.enabled&&this.superResolutionCurrentValue.modelOverride===g.LM.Latest;const n=(this.isSRModelConstraint()||!this.superResolutionCurrentValue.enabled)&&!this.superResolutionCurrentValue.useGlobal,s=!this.superResolutionCurrentGlobalValue?.enabled;this.isRRLatest=this.rayReconstructionCurrentValue.enabled&&this.rayReconstructionCurrentValue.modelOverride===g.LM.Latest;const u=(this.isRRModelConstraint()||!this.rayReconstructionCurrentValue.enabled)&&!this.rayReconstructionCurrentValue.useGlobal,f=!this.rayReconstructionCurrentGlobalValue?.enabled;this.isFGLatest=this.frameGenerationCurrentValue.enabled;const _=!this.frameGenerationCurrentValue.enabled&&!this.frameGenerationCurrentValue.useGlobal,P=!this.frameGenerationCurrentGlobalValue?.enabled;this.allLatest=this.isSRLatest&&this.isRRLatest&&this.isFGLatest,this.allDefault=n&&u&&_,this.allUseGlobalDefault=s&&f&&P,this.modelConfiguration=this.allLatest||this.allDefault?S.D3.Same:S.D3.Custom,this.updateDisabledState(),this.allUseGlobal=!!this.isDLSSModelPresetProfileSupportedGlobally&&this.dlssModelPresetProfileCurrentValue?.useGlobal}openSettingsModal(){if(this.isGlobalValueMissing)return void this.manage3dSettingsUtilService.showMissingGlobalValueDialog(this.featureName,this.program3dSettingsService.getSelectedProfileInfo());if(this.uiControlBusy||this.isAnyDlssSettingBusy)return void(this.showUiControlBusy=!0);this.uiControlBusy=!0;const t=this.manage3dSettingsUtilService.getCommonDialogConfig();t.autoFocus=!1,t.data={featureName:this.featureName,localId:this.localApplication?.localId,superResolutionCurrentValue:this.superResolutionCurrentValue,rayReconstructionCurrentValue:this.rayReconstructionCurrentValue,frameGenerationCurrentValue:this.frameGenerationCurrentValue,dlssModelPresetProfileCurrentValue:this.dlssModelPresetProfileCurrentValue,modelConfiguration:this.modelConfiguration,disableState:this.disableState,isGlobalContext:this.isGlobalContext,superResolutionCurrentGlobalValue:this.superResolutionCurrentGlobalValue,rayReconstructionCurrentGlobalValue:this.rayReconstructionCurrentGlobalValue,frameGenerationCurrentGlobalValue:this.frameGenerationCurrentGlobalValue,dlssModelPresetProfileCurrentGlobalValue:this.dlssModelPresetProfileCurrentGlobalValue},this.isDLSSModelPresetProfileSupportedGlobally?(t.panelClass=["dlss-setting-modal-container","common-dialog"],this.dlssModelsDialogRef=this.matDialog.open(Pn,t)):this.dlssModelsDialogRef=this.matDialog.open(En,t),this.dlssModelsDialogRef.afterClosed().pipe((0,O.s)(1)).subscribe(i=>{i?.applyInProgress?(this.savePreviousAppliedValues(),this.superResolutionSetting[this.superResolutionSettingKey]=i.superResolutionCurrentValue,this.rayReconstructionSetting[this.rayReconstructionSettingKey]=i.rayReconstructionCurrentValue,this.frameGenerationSetting[this.frameGenerationSettingKey]=i.frameGenerationCurrentValue,this.modelConfiguration=i.modelConfiguration,i.dlssModelPresetProfileCurrentValue&&(this.dlssModelPresetProfileSetting[this.dlssModelPresetProfileSettingKey]=i.dlssModelPresetProfileCurrentValue),this.initialize()):i?.needRefresh&&(this.getFromPreviousAppliedValues(),this.initialize()),this.updateUiControlState(i?.applyInProgress||i?.needRefresh?g.uf:0)},i=>{this.logger.error(i)},()=>{this.updateUiControlState(g.uf)})}updateUiControlState(t){setTimeout(()=>{this.uiControlBusy=!1,this.showUiControlBusy=!1},t)}setDLSSModelsText(){const t=this.getErrorMessageForAIModels(),{importantInfo:i,notes:n,scanSupport:s}=t;if(this.allDenyListed)return this.displayValue=this.translateService.instant(b.$k),this.importantInfo=i,void(this.notes=n);const o=this.isDLSSModelPresetProfileSupportedGlobally?!this.dlssModelPresetProfileCurrentValue?.useGlobal:this.superResolutionCurrentValue?.enabled,c=this.isDLSSModelPresetProfileSupportedGlobally?!this.dlssModelPresetProfileCurrentValue?.useGlobal:this.rayReconstructionCurrentValue?.enabled,u=this.isDLSSModelPresetProfileSupportedGlobally?!this.dlssModelPresetProfileCurrentValue?.useGlobal:this.frameGenerationCurrentValue?.enabled;return s!==S.TI.ScanDetectUnknown||o||c||u||this.isGlobalContext?s!==S.TI.ScanDetectNotTested||o||c||u||this.isGlobalContext?void this.setDisplayText(i,n):(this.displayValue=this.translateService.instant(b.Ow),this.importantInfo=i,void(this.notes=n)):(this.displayValue=this.translateService.instant(b.aR),this.importantInfo=i,void(this.notes=n))}setDisplayText(t,i){this.isDLSSModelPresetProfileSupportedGlobally?this.setPresetProfileText():this.setAutoSelectedFeatureText(),this.importantInfo=t,this.notes=i}setAutoSelectedFeatureText(){if(this.modelConfiguration===S.D3.Same||this.isDisabled){const i=this.translateService.instant(b.j2.get(this.allLatest?g.LM.Latest:g.LM.Default));this.displayValue=this.translateService.instant(this.allLatest?i:b.v9)}else this.displayValue=this.translateService.instant(b.dy)}setPresetProfileText(){if(!this.isGlobalContext&&this.isGlobalValueMissing)return this.logger.info(`Global value is missing for feature ${this.featureName}`),void(this.displayValue=this.manage3dSettingsUtilService.getMissingGlobalValueDisplay());this.globalValueText="";const t=this.dlssModelPresetProfileCurrentValue?.profileType||S.h4.Default;if(this.allUseGlobal){this.displayValue=`${this.translateService.instant("common.UseGlobal")}`;const i=this.dlssModelPresetProfileCurrentGlobalValue?.profileType||S.h4.Default;if(i===S.h4.Default)this.globalValueText=this.translateService.instant(b.v9);else if(i===S.h4.Latest)this.globalValueText=this.translateService.instant(b.D9);else{const n=this.translateService.instant(b.$k),s=b.iN.get(this.superResolutionCurrentGlobalValue.modelOverride),o=s?this.translateService.instant(s):"",c=b.j2.get(this.rayReconstructionCurrentGlobalValue.modelOverride),u=c?this.translateService.instant(c):"",f=b.j2.get(this.frameGenerationCurrentGlobalValue.enabled?g.LM.Latest:g.LM.Default),m=f?this.translateService.instant(f):"",_=this.translateService.instant(b.mS,{srOverrideStatus:this.disableState.srDisabled?n:o,rrOverrideStatus:this.disableState.rrDisabled?n:u,fgOverrideStatus:this.disableState.fgDisabled?n:m});this.globalValueText=`${_}`}}else if(t===S.h4.Default)this.displayValue=this.translateService.instant(b.v9);else if(t===S.h4.Latest)this.displayValue=this.translateService.instant(b.D9);else{const i=this.translateService.instant(b.$k);let n;const s=this.translateService.instant("common.UseGlobal");if(this.superResolutionCurrentValue.useGlobal){const m=b.iN.get(this.superResolutionCurrentGlobalValue.modelOverride);n=m?`${s} - ${this.translateService.instant(m)}`:""}else{const m=b.iN.get(this.superResolutionCurrentValue.modelOverride);n=m?this.translateService.instant(m):""}let o,c;if(this.rayReconstructionCurrentValue.useGlobal){const m=b.j2.get(this.rayReconstructionCurrentGlobalValue.modelOverride);o=m?`${s} - ${this.translateService.instant(m)}`:""}else{const m=b.j2.get(this.rayReconstructionCurrentValue.modelOverride);o=m?this.translateService.instant(m):""}if(this.frameGenerationCurrentValue.useGlobal){const m=b.j2.get(this.frameGenerationCurrentGlobalValue.enabled?g.LM.Latest:g.LM.Default);c=m?`${s} - ${this.translateService.instant(m)}`:""}else{const m=b.j2.get(this.frameGenerationCurrentValue.enabled?g.LM.Latest:g.LM.Default);c=m?this.translateService.instant(m):""}const u=this.translateService.instant(b.mS,{srOverrideStatus:this.disableState.srDisabled?i:n,rrOverrideStatus:this.disableState.rrDisabled?i:o,fgOverrideStatus:this.disableState.fgDisabled?i:c});this.displayValue=this.dlssModelPresetProfileCurrentValue.profileType===S.h4.Custom?`${this.translateService.instant("common.custom")} - ${this.translateService.instant(`${u}`)}`:`${this.translateService.instant(`${u}`)}`}}savePreviousAppliedValues(){this.superResolutionSettingOriginal=(0,w.cloneDeep)(this.superResolutionSetting),this.rayReconstructionSettingOriginal=(0,w.cloneDeep)(this.rayReconstructionSetting),this.frameGenerationSettingOriginal=(0,w.cloneDeep)(this.frameGenerationSetting),this.dlssModelPresetProfileSettingOriginal=(0,w.cloneDeep)(this.dlssModelPresetProfileSetting)}getFromPreviousAppliedValues(){this.superResolutionSetting=(0,w.cloneDeep)(this.superResolutionSettingOriginal),this.rayReconstructionSetting=(0,w.cloneDeep)(this.rayReconstructionSettingOriginal),this.frameGenerationSetting=(0,w.cloneDeep)(this.frameGenerationSettingOriginal),this.dlssModelPresetProfileSetting=(0,w.cloneDeep)(this.dlssModelPresetProfileSettingOriginal)}updateBoldEffectForModels(){this.isGlobalContext?this.currentValueBold=!this.allDefault||this.dlssModelPresetProfileCurrentValue?.profileType===S.h4.Custom:this.isDLSSSupportedGlobally?(this.currentValueBold=!this.allUseGlobal&&!this.allDenyListed&&!this.isDisabled,!this.allUseGlobal||this.allDenyListed||this.isDisabled||(this.profileValueBold=!this.allUseGlobalDefault||this.dlssModelPresetProfileCurrentGlobalValue?.profileType===S.h4.Custom,this.currentValueBold=!1)):this.currentValueBold=!this.allDefault&&!this.allDenyListed&&!this.isDisabled}updateDisabledState(){this.disableState={srDisabled:this.superResolutionSetting.isGreyedOut,rrDisabled:this.rayReconstructionSetting.isGreyedOut,fgDisabled:this.frameGenerationSetting.isGreyedOut},this.updateIsDisabled()}updateIsDisabled(){this.isDisabled=this.disableState.srDisabled&&this.disableState.rrDisabled&&this.disableState.fgDisabled}getErrorMessageForAIModels(){let t=[],i=S.TI.ScanDetectNotNeeded,n=[];const[s,o]=this.prepareDenyListedErrorMessage();if(s&&(n.push(s),this.allDenyListed))return this.isDisabled=!0,{importantInfo:n,notes:t,scanSupport:i};const[c,u]=this.prepareGpuErrorMessage();if(c.length&&(n=n.concat(c)),this.findConstraint(this.frameGenerationSetting.constraints,S.uF.DriverUnsupported))return n.push({text:b.IR[S.uF.DriverUnsupported],doTranslate:!0}),this.isDisabled=!0,{importantInfo:n,notes:t,scanSupport:i};if((o.includes(l.JsonTypeSettings.DLSSSR)||u.includes(l.JsonTypeSettings.DLSSSR))&&(o.includes(l.JsonTypeSettings.DLSSRR)||u.includes(l.JsonTypeSettings.DLSSRR))&&(o.includes(l.JsonTypeSettings.DLSSFG)||u.includes(l.JsonTypeSettings.DLSSFG)))return this.isDisabled=!0,{importantInfo:n,notes:t,scanSupport:i};const _=this.dlssSettingsUtilService.isScanSupportUnknown(l.JsonTypeSettings.DLSSSR,this.superResolutionSetting[this.superResolutionSettingKey]),P=this.dlssSettingsUtilService.isScanSupportUnknown(l.JsonTypeSettings.DLSSRR,this.rayReconstructionSetting[this.rayReconstructionSettingKey]),M=this.dlssSettingsUtilService.isScanSupportUnknown(l.JsonTypeSettings.DLSSFG,this.frameGenerationSetting[this.frameGenerationSettingKey]);let x="";return _&&P&&M&&!this.isGlobalContext&&!this.localApplication?.isFingerprintDetected?(x=this.dlssSettingsUtilService.getScanSupportErrorMessage(g.$Y.ScanDetectUnknown),i=S.TI.ScanDetectUnknown,n.push({text:x,doTranslate:!0})):(x=this.dlssSettingsUtilService.getScanSupportErrorMessage(g.$Y.ScanDetectSupported),n.push({text:x,doTranslate:!0}),n.push({text:b.G8,doTranslate:!0}),t=[b.Lo,b.Ar],i=!this.isGlobalContext&&this.localApplication?.isManuallyAdded?S.TI.ScanDetectNotTested:S.TI.ScanDetectSupported),{importantInfo:n,notes:t,scanSupport:i}}prepareGpuErrorMessage(){const t=S.uF.GpuUnsupported,n=this.rayReconstructionSetting.constraints,s=this.frameGenerationSetting.constraints,o=[],c=this.findConstraint(this.superResolutionSetting.constraints,t),u=this.isSRModelConstraint(),f=this.findConstraint(n,t),m=this.isRRModelConstraint(),_=[],P=b._i;switch(c&&!u&&(this.disableState.srDisabled=!0,_.push(l.JsonTypeSettings.DLSSSR)),f&&!m&&(this.disableState.rrDisabled=!0,_.push(l.JsonTypeSettings.DLSSRR)),this.logger.info(`GPU Constraints found for profile ${this.profileName}`,_),_.length){case 0:break;case 1:const E=this.translateService.instant(`dlssOverrides.tech.${_[0]}`);o.push({text:this.translateService.instant(P,{tech:E}),doTranslate:!1});break;case 2:o.push({text:b.bd,doTranslate:!0})}const M=this.findConstraint(s,t),x=this.findConstraint(s,S.uF.DenyListed);return M&&!x?(this.disableState.fgDisabled=!0,_.push(l.JsonTypeSettings.DLSSFG),o.push({text:b.ai,doTranslate:!0})):x||(this.logger.info("FG Models not supported for profile",this.profileName),this.disableState.fgDisabled=!1),this.updateIsDisabled(),[o,_]}isSRModelConstraint(){return this.findConstraint(this.superResolutionSetting.constraints,S.uF.SRModelDenyListed)}isRRModelConstraint(){return this.findConstraint(this.rayReconstructionSetting.constraints,S.uF.RRModelDenyListed)}prepareDenyListedErrorMessage(){const t=S.uF.DenyListed,i=b.L4,n=b.Tw,s=this.frameGenerationSetting.constraints,o=[];let m;switch(this.isSRModelConstraint()?(this.disableState.srDisabled=!0,o.push(l.JsonTypeSettings.DLSSSR)):this.disableState.srDisabled=!1,this.isRRModelConstraint()?(this.disableState.rrDisabled=!0,o.push(l.JsonTypeSettings.DLSSRR)):this.disableState.rrDisabled=!1,this.updateIsDisabled(),this.findConstraint(s,t)&&o.push(l.JsonTypeSettings.DLSSFG),this.logger.info(`Deny list Constraints found for profile ${this.profileName}`,o),o.length){case 0:break;case 1:const _=this.translateService.instant(`dlssOverrides.tech.${o[0]}`);m={text:this.translateService.instant(i,{program:this.profileName,tech:_}),doTranslate:!1},this.allDenyListed=!1;break;case 2:const P=this.translateService.instant(`dlssOverrides.tech.${o[0]}`),M=this.translateService.instant(`dlssOverrides.tech.${o[1]}`);m={text:this.translateService.instant(n,{program:this.profileName,tech1:P,tech2:M}),doTranslate:!1},this.allDenyListed=!1;break;case 3:m={text:this.translateService.instant(b.IR[t],{program:this.profileName}),doTranslate:!1},this.allDenyListed=!0}return[m,o]}findConstraint(t,i){return!!t.find(s=>i===s)}ngOnDestroy(){this.dlssSpinnerService.setBusy(l.JsonTypeSettings.DLSSModelPresetProfile,!1)}static{this.\u0275fac=function(i){return new(i||a)(e.rXU(y.J6),e.rXU(v.c$),e.rXU(h.bZ),e.rXU(F.f),e.rXU(oe.$),e.rXU(Ce),e.rXU($.g))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["nv-app-feature-dlss-models"]],inputs:{superResolutionSetting:"superResolutionSetting",rayReconstructionSetting:"rayReconstructionSetting",frameGenerationSetting:"frameGenerationSetting",dlssModelPresetProfileSetting:"dlssModelPresetProfileSetting",isGlobalContext:"isGlobalContext",localApplication:"localApplication",profileName:"profileName"},features:[e.OA$],decls:14,vars:24,consts:[["nvAppSettingInfoIcon","","tabindex","0","role","button",1,"feature-expansion-panel-container","feature-expansion-panel-border",3,"keydown.enter","id","settingDetails"],[1,"mat-menu-header"],[1,"font-body2","header-title-text-container","setting-info-icon-container"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"font-body2","header-title-text"],[1,"loading-indicator-container"],["class","mat-accent","mode","indeterminate",3,"diameter",4,"ngIf"],["mat-button","","tabindex","-1",1,"font-body2","setting-drop-down","geometry-rounded-none-imp",3,"click","disabled"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"setting-value",3,"ngClass"],[3,"ngClass",4,"ngIf"],["class","material-icons","svgIcon","edit_settings",4,"ngIf"],["mode","indeterminate",1,"mat-accent",3,"diameter"],[3,"ngClass"],["svgIcon","edit_settings",1,"material-icons"]],template:function(i,n){1&i&&(e.j41(0,"div",0),e.nI1(1,"translate"),e.bIt("keydown.enter",function(){return n.openSettingsModal()}),e.j41(2,"div",1)(3,"div",2)(4,"label",3),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"div",4),e.DNE(8,An,1,1,"mat-progress-spinner",5),e.j41(9,"button",6),e.bIt("click",function(){return n.openSettingsModal()}),e.j41(10,"div",7),e.EFF(11),e.DNE(12,Un,2,5,"span",8),e.k0s(),e.DNE(13,Bn,1,0,"mat-icon",9),e.k0s()()()()),2&i&&(e.qtP("aria-label","",e.bMT(1,12,"manage3dSettings."+n.featureName+".name")," ",n.displayValue,""),e.FS9("id",n.featureName),e.Y8G("settingDetails",e.sMw(16,Nn,n.featureName,n.notes,n.importantInfo)),e.R7$(5),e.SpI(" ",e.bMT(6,14,"manage3dSettings."+n.featureName+".name")," "),e.R7$(3),e.Y8G("ngIf",n.showUiControlBusy),e.R7$(),e.Y8G("disabled",n.isDisabled),e.R7$(),e.Y8G("ngClass",e.sMw(20,kn,n.currentValueBold,n.isDisabled,!n.currentValueBold)),e.R7$(),e.SpI(" ",n.displayValue," "),e.R7$(),e.Y8G("ngIf",n.globalValueText),e.R7$(),e.Y8G("ngIf",!n.isDisabled))},dependencies:[p.YU,p.bT,I.iV,j.An,z.LG,U.a,G.PW,q.H,v.D9],styles:["[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]{height:48px;background-color:var(--primary-900);padding:0 16px}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]:hover{background-color:var(--feature-expansion-panel-menu-header-hover-bg-color)}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-drop-down[_ngcontent-%COMP%]{display:flex;align-items:center;height:inherit;flex:1;padding:0 8px}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%]{white-space:nowrap;width:100%;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value.is-loading[_ngcontent-%COMP%]{color:var(--primary-500)}.feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{white-space:nowrap;width:auto;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:inherit;position:relative}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%] mat-progress-spinner[_ngcontent-%COMP%]{position:absolute}.feature-expansion-panel-container[_ngcontent-%COMP%] .color-unset[_ngcontent-%COMP%]{color:unset}.feature-expansion-panel-container[_ngcontent-%COMP%]:focus{outline-offset:-2px}"]})}}return a})();const $n=(a,r)=>({enabled:a,section:r});function Ln(a,r){1&a&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&a&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"ops.unableToRetrieveSettings")," "))}function zn(a,r){if(1&a&&(e.j41(0,"div",5),e.nrm(1,"mat-icon",6),e.DNE(2,Ln,3,3,"span",7),e.k0s()),2&a){const t=e.XpG();e.R7$(2),e.Y8G("ngIf",t.pageErrorIndicator.isNvcplError&&!t.pageErrorIndicator.isLocalGameError)}}function Xn(a,r){1&a&&(e.j41(0,"div",10),e.nrm(1,"mat-progress-spinner",11),e.k0s()),2&a&&(e.R7$(),e.Y8G("diameter",24))}function Yn(a,r){if(1&a&&e.nrm(0,"nv-app-feature-image-sharpening",22),2&a){const t=e.XpG(2).$implicit,i=e.XpG(3);e.Y8G("featureName",null==t?null:t.settingName)("featureSettingObject",null==t?null:t.settingValue)("sharpenSettingObject",null==i.sharpenSetting?null:i.sharpenSetting.settingValue)("noiseGrainSettingObject",null==i.noiseGrainSetting?null:i.noiseGrainSetting.settingValue)("isGlobalContext",!0)}}function Kn(a,r){if(1&a&&(e.qex(0),e.DNE(1,Yn,1,5,"nv-app-feature-image-sharpening",21),e.bVm()),2&a){const t=e.XpG().$implicit;e.R7$(),e.Y8G("ngIf",null==t||null==t.settingValue||null==t.settingValue.SettingInfo?null:t.settingValue.SettingInfo.isSupported)}}function qn(a,r){if(1&a&&e.nrm(0,"nv-app-feature-max-frame-rate",24),2&a){const t=e.XpG(2).$implicit,i=e.XpG(3);e.Y8G("featureName",null==t?null:t.settingName)("featureSettingObject",null==t?null:t.settingValue)("isGlobalContext",!0)("maxFrameRateFPSObject",null==i.maxFrameRateFPSSetting?null:i.maxFrameRateFPSSetting.settingValue)}}function Jn(a,r){if(1&a&&(e.qex(0),e.DNE(1,qn,1,4,"nv-app-feature-max-frame-rate",23),e.bVm()),2&a){const t=e.XpG().$implicit;e.R7$(),e.Y8G("ngIf",null==t||null==t.settingValue||null==t.settingValue.SettingInfo?null:t.settingValue.SettingInfo.isSupported)}}function Hn(a,r){if(1&a&&(e.qex(0),e.nrm(1,"nv-app-battery-boost",26),e.bVm()),2&a){const t=e.XpG(3).$implicit;e.R7$(),e.Y8G("featureName",null==t?null:t.settingName)("batteryBoostSetting",null==t?null:t.settingValue)("isGlobalContext",!0)}}function Wn(a,r){if(1&a&&e.nrm(0,"nv-app-manage-3d-setting-feature",27),2&a){const t=e.XpG(3).$implicit;e.Y8G("featureName",null==t?null:t.settingName)("featureSettingObject",null==t?null:t.settingValue)("isGlobalContext",!0)}}function Qn(a,r){if(1&a&&(e.qex(0),e.DNE(1,Hn,2,3,"ng-container",25)(2,Wn,1,3,"ng-template",null,0,e.C5r),e.bVm()),2&a){const t=e.sdS(3),i=e.XpG(5);e.R7$(),e.Y8G("ngIf",i.isBatteryBoostV1)("ngIfElse",t)}}function Zn(a,r){if(1&a&&(e.qex(0),e.DNE(1,Qn,4,2,"ng-container",7),e.bVm()),2&a){const t=e.XpG().$implicit;e.R7$(),e.Y8G("ngIf",null==t||null==t.settingValue||null==t.settingValue.SettingInfo?null:t.settingValue.SettingInfo.isSupported)}}function ei(a,r){if(1&a&&(e.qex(0),e.nrm(1,"nv-app-manage-3d-setting-feature",27),e.bVm()),2&a){const t=e.XpG(3).$implicit;e.R7$(),e.Y8G("featureName",null==t?null:t.settingName)("featureSettingObject",null==t?null:t.settingValue)("isGlobalContext",!0)}}function ti(a,r){if(1&a&&e.nrm(0,"nv-app-feature-whisper-mode",28),2&a){const t=e.XpG(3).$implicit;e.Y8G("featureName",null==t?null:t.settingName)("whisperModeSetting",null==t?null:t.settingValue)("isGlobalContext",!0)}}function ni(a,r){if(1&a&&(e.qex(0),e.DNE(1,ei,2,3,"ng-container",25)(2,ti,1,3,"ng-template",null,1,e.C5r),e.bVm()),2&a){const t=e.sdS(3),i=e.XpG(5);e.R7$(),e.Y8G("ngIf",i.isWhisperModeV1)("ngIfElse",t)}}function ii(a,r){if(1&a&&(e.qex(0),e.DNE(1,ni,4,2,"ng-container",7),e.bVm()),2&a){const t=e.XpG().$implicit;e.R7$(),e.Y8G("ngIf",null==t||null==t.settingValue||null==t.settingValue.SettingInfo?null:t.settingValue.SettingInfo.isSupported)}}function ai(a,r){if(1&a&&e.nrm(0,"nv-app-feature-image-scaling",30),2&a){const t=e.XpG(2).$implicit;e.Y8G("featureName",null==t?null:t.settingName)("imageScalingSetting",null==t?null:t.settingValue)("isGlobalContext",!0)}}function si(a,r){if(1&a&&(e.qex(0),e.DNE(1,ai,1,3,"nv-app-feature-image-scaling",29),e.bVm()),2&a){const t=e.XpG().$implicit;e.R7$(),e.Y8G("ngIf",null==t||null==t.settingValue||null==t.settingValue.SettingInfo?null:t.settingValue.SettingInfo.isSupported)}}function oi(a,r){if(1&a&&e.nrm(0,"nv-app-manage-3d-setting-feature",27),2&a){const t=e.XpG(2).$implicit;e.Y8G("featureName",null==t?null:t.settingName)("featureSettingObject",null==t?null:t.settingValue)("isGlobalContext",!0)}}function ri(a,r){if(1&a&&e.nrm(0,"nv-app-manage-3d-setting-feature",27),2&a){const t=e.XpG(5);e.Y8G("featureName",null==t.lowLatencyModeSetting?null:t.lowLatencyModeSetting.settingName)("featureSettingObject",null==t.lowLatencyModeSetting?null:t.lowLatencyModeSetting.settingValue)("isGlobalContext",!0)}}function li(a,r){if(1&a&&(e.qex(0),e.DNE(1,oi,1,3,"nv-app-manage-3d-setting-feature",31)(2,ri,1,3,"nv-app-manage-3d-setting-feature",31),e.bVm()),2&a){const t=e.XpG().$implicit,i=e.XpG(3);e.R7$(),e.Y8G("ngIf",i.isFgxSettingsAvailable&&(null==t||null==t.settingValue||null==t.settingValue.SettingInfo?null:t.settingValue.SettingInfo.isSupported)),e.R7$(),e.Y8G("ngIf",null==i.lowLatencyModeSetting||null==i.lowLatencyModeSetting.settingValue||null==i.lowLatencyModeSetting.settingValue.SettingInfo?null:i.lowLatencyModeSetting.settingValue.SettingInfo.isSupported)}}function gi(a,r){1&a&&e.eu8(0)}function ci(a,r){1&a&&e.eu8(0)}function di(a,r){if(1&a&&e.nrm(0,"nv-app-feature-dlss-models",33),2&a){const t=e.XpG(5);e.Y8G("superResolutionSetting",null==t.superResolutionSetting?null:t.superResolutionSetting.settingValue)("rayReconstructionSetting",null==t.rayReconstructionSetting?null:t.rayReconstructionSetting.settingValue)("frameGenerationSetting",null==t.frameGenerationSetting?null:t.frameGenerationSetting.settingValue)("dlssModelPresetProfileSetting",null==t.dlssModelPresetProfileSetting?null:t.dlssModelPresetProfileSetting.settingValue)("dlssModelPresetProfileSetting",null==t.dlssModelPresetProfileSetting?null:t.dlssModelPresetProfileSetting.settingValue)("isGlobalContext",!0)}}function ui(a,r){if(1&a&&e.nrm(0,"nv-app-manage-3d-setting-feature",27),2&a){const t=e.XpG(2).$implicit;e.Y8G("featureName",null==t?null:t.settingName)("featureSettingObject",null==t?null:t.settingValue)("isGlobalContext",!0)}}function pi(a,r){if(1&a&&(e.qex(0),e.DNE(1,di,1,6,"nv-app-feature-dlss-models",32)(2,ui,1,3,"nv-app-manage-3d-setting-feature",31),e.bVm()),2&a){const t=e.XpG().$implicit,i=e.XpG(3);e.R7$(),e.Y8G("ngIf",i.isDlssSettingsAvailable),e.R7$(),e.Y8G("ngIf",i.isDlssSettingsAvailable&&(null==t||null==t.settingValue||null==t.settingValue.SettingInfo?null:t.settingValue.SettingInfo.isSupported))}}function mi(a,r){if(1&a&&e.nrm(0,"nv-app-manage-3d-setting-feature",27),2&a){const t=e.XpG(2).$implicit;e.Y8G("featureName",null==t?null:t.settingName)("featureSettingObject",null==t?null:t.settingValue)("isGlobalContext",!0)}}function hi(a,r){if(1&a&&(e.qex(0),e.DNE(1,mi,1,3,"nv-app-manage-3d-setting-feature",31),e.bVm()),2&a){const t=e.XpG().$implicit,i=e.XpG(3);e.R7$(),e.Y8G("ngIf",(null==t||null==t.settingValue||null==t.settingValue.SettingInfo?null:t.settingValue.SettingInfo.isSupported)&&!i.legacyProfileSettings.has(null==t?null:t.settingName))}}function fi(a,r){if(1&a&&(e.j41(0,"div"),e.qex(1,18),e.DNE(2,Kn,2,1,"ng-container",19)(3,Jn,2,1,"ng-container",19)(4,Zn,2,1,"ng-container",19)(5,ii,2,1,"ng-container",19)(6,si,2,1,"ng-container",19)(7,li,3,2,"ng-container",19)(8,gi,1,0,"ng-container",19)(9,ci,1,0,"ng-container",19)(10,pi,3,2,"ng-container",19)(11,hi,2,1,"ng-container",20),e.bVm(),e.k0s()),2&a){const t=r.$implicit,i=e.XpG(3);e.R7$(),e.Y8G("ngSwitch",null==t?null:t.settingName),e.R7$(),e.Y8G("ngSwitchCase",i.staticSliderSettings.ImageSharpeningToggle),e.R7$(),e.Y8G("ngSwitchCase",i.staticSliderSettings.MaxFrameRate),e.R7$(),e.Y8G("ngSwitchCase",i.jsonTypeSettings.BatteryBoost),e.R7$(),e.Y8G("ngSwitchCase",i.jsonTypeSettings.WhisperMode),e.R7$(),e.Y8G("ngSwitchCase",i.jsonTypeSettings.ImageScaling),e.R7$(),e.Y8G("ngSwitchCase",i.jsonTypeSettings.FGX),e.R7$(),e.Y8G("ngSwitchCase",null==i.dynamicSettings?null:i.dynamicSettings.LowLatencyMode),e.R7$(),e.Y8G("ngSwitchCase",i.hiddenGlobalSettings.includes(null==t?null:t.settingName)?null==t?null:t.settingName:""),e.R7$(),e.Y8G("ngSwitchCase",i.jsonTypeSettings.DLSSMF)}}function Si(a,r){if(1&a&&e.nrm(0,"nv-app-feature-max-frame-rate",35),2&a){const t=e.XpG(2).$implicit,i=e.XpG(3);e.Y8G("featureName",null==t?null:t.settingName)("featureSettingObject",null==t?null:t.settingValue)("isGlobalContext",!0)("maxFrameRateFPSObject",null==i.backgroundAppMaxFrameRateFPSSetting?null:i.backgroundAppMaxFrameRateFPSSetting.settingValue)("isBackgroundAppMaxFrameRate",!0)}}function _i(a,r){if(1&a&&(e.qex(0),e.DNE(1,Si,1,5,"nv-app-feature-max-frame-rate",34),e.bVm()),2&a){const t=e.XpG().$implicit;e.R7$(),e.Y8G("ngIf",null==t||null==t.settingValue||null==t.settingValue.SettingInfo?null:t.settingValue.SettingInfo.isSupported)}}function bi(a,r){if(1&a&&e.nrm(0,"nv-app-manage-3d-setting-feature",27),2&a){const t=e.XpG(2).$implicit;e.Y8G("featureName",null==t?null:t.settingName)("featureSettingObject",null==t?null:t.settingValue)("isGlobalContext",!0)}}function vi(a,r){if(1&a&&(e.qex(0),e.DNE(1,bi,1,3,"nv-app-manage-3d-setting-feature",31),e.bVm()),2&a){const t=e.XpG().$implicit;e.R7$(),e.Y8G("ngIf",null==t||null==t.settingValue||null==t.settingValue.SettingInfo?null:t.settingValue.SettingInfo.isSupported)}}function Ci(a,r){if(1&a&&(e.qex(0)(1,18),e.DNE(2,_i,2,1,"ng-container",19)(3,vi,2,1,"ng-container",20),e.bVm()()),2&a){const t=r.$implicit,i=e.XpG(3);e.R7$(),e.Y8G("ngSwitch",null==t?null:t.settingName),e.R7$(),e.Y8G("ngSwitchCase",i.staticSliderSettings.BackgroundAppMaxFrameRate)}}function yi(a,r){if(1&a){const t=e.RV6();e.qex(0),e.j41(1,"div",12)(2,"div",13),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"button",14),e.nI1(6,"async"),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.restoreProfile(!1))}),e.EFF(7),e.nI1(8,"translate"),e.k0s()(),e.j41(9,"div",15),e.DNE(10,fi,12,10,"div",16),e.j41(11,"nv-downward-expansion-panel",17),e.nI1(12,"async"),e.DNE(13,Ci,4,2,"ng-container",16),e.k0s()(),e.bVm()}if(2&a){const t=e.XpG(2);e.R7$(3),e.SpI(" ",e.bMT(4,10,"manage3dSettings.subTitle")," "),e.R7$(2),e.Y8G("disabled",t.isLoading||e.bMT(6,12,t.applyInProgressObs)),e.R7$(2),e.SpI(" ",e.bMT(8,14,"manage3dSettings.restoreParentProfile.single.buttonText")," "),e.R7$(2),e.Y8G("nvappScrollHighlight",e.l_i(18,$n,(null==t.profileSettingsInfoArray?null:t.profileSettingsInfoArray.length)>0&&!t.isLoading,t.pageHighlightSection)),e.R7$(),e.Y8G("ngForOf",t.profileSettingsInfoArray),e.R7$(),e.Y8G("title","manage3dSettings.legacySettings")("isFullyCollapsible",!0)("itemsToDisplay",t.legacyProfileSettingsInfoArray)("isExpanded",e.bMT(12,16,t.isLegacySettingsExpanded$)),e.R7$(2),e.Y8G("ngForOf",t.legacyProfileSettingsInfoArray)}}function wi(a,r){if(1&a&&(e.j41(0,"div",8),e.DNE(1,Xn,2,1,"div",9)(2,yi,14,21,"ng-container",7),e.k0s()),2&a){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.isLoading),e.R7$(),e.Y8G("ngIf",(null==t.profileSettingsInfoArray?null:t.profileSettingsInfoArray.length)>0)}}let Mi=(()=>{class a{constructor(t,i,n,s,o,c,u){this.loggingService=t,this.global3dSettingsService=i,this.translateService=n,this.manage3dSettingsUtilService=s,this.program3dSettingsService=o,this.errorHandlerService=c,this.performanceMeasureService=u,this.profileSettingsInfoArray=[],this.pageHighlightSection=Re.kA.Global,this.legacyProfileSettings=new Set(Object.values(l.LegacySettings)),this.legacyProfileSettingsInfoArray=[],this.settingsDirty=!1,this.preferredProcessorVisible=!1,this.overlayVisible=!1,this.staticSliderSettings=l.StaticSliderSettings,this.dynamicSettings=l.DynamicSettings,this.isLoading=!0,this.jsonTypeSettings=l.JsonTypeSettings,this.isBatteryBoostV1=!1,this.isWhisperModeV1=!1,this.selectedProfile={name:"Base Profile",displayName:"",description:""},this.hiddenGlobalSettings=[this.jsonTypeSettings.DLSSFG,this.jsonTypeSettings.DLSSRR,this.jsonTypeSettings.DLSSModelPresetProfile],this.isDlssSettingsAvailable=!1,this.isFgxSettingsAvailable=!1,this.profilesList=["Base Profile"],this.destroyRef=(0,e.WQX)(e.abz),this.superResolutionSettingKey=`${l.JsonTypeSettings.DLSSSR}${g.lz}`,this.rayReconstructionSettingKey=`${l.JsonTypeSettings.DLSSRR}${g.lz}`,this.frameGenerationSettingKey=`${l.JsonTypeSettings.DLSSFG}${g.lz}`,this.fgxSettingKey=`${l.JsonTypeSettings.FGX}${g.lz}`,this.dlssModelPresetProfileSettingKey=`${l.JsonTypeSettings.DLSSModelPresetProfile}${g.lz}`,this.logger=this.loggingService.getLogger("nvapp/GlobalSettingsComponent"),this.isLegacySettingsExpanded$=this.manage3dSettingsUtilService.getLegacySettingsExpanded()}ngOnInit(){this.registerSettingsUpdatesListener(),this.updateProfileDescription(),this.listenApplyInProgress()}registerSettingsUpdatesListener(){this.global3dSettingsService.getProfileSettingsInfo().pipe((0,ge.c)(0),(0,D.pQ)(this.destroyRef)).subscribe(t=>{this.filterCuratedSettings(t),this.isDlssSettingsAvailable=this.checkDlssSettingsAvailable(),this.isFgxSettingsAvailable=this.checkFgxSettingsAvailable();const i=this.global3dSettingsService.getVisibleProfileSettings(t);this.profileSettingsInfoArray=this.global3dSettingsService.selectiveSettingUpdate(this.profileSettingsInfoArray,i),this.legacyProfileSettingsInfoArray=this.program3dSettingsService.getLegacySettings(this.profileSettingsInfoArray);const n=this.global3dSettingsService.getBatteryBoostValue(this.profileSettingsInfoArray);this.isBatteryBoostV1=n?.version===l.BatteryBoostVersionEnum.V1;const s=this.global3dSettingsService.getWhisperModeValue(this.profileSettingsInfoArray);this.isWhisperModeV1=s?.version===l.WhisperModeVersionEnum.V1,this.isLoading=!1,this.global3dSettingsService.scrollSettingIntoView(),this.performanceMeasureService.markNvAppPerformanceMarkers([A.mM.NvAppGlobalSettingDataFetchEnd],A.fR.Graphics)},t=>{this.logger.error("Error refreshing 3d settings:",t),this.isLoading=!1})}listenApplyInProgress(){this.applyInProgressObs=this.global3dSettingsService.getApplyInProgress()}filterCuratedSettings(t){[this.sharpenSetting,this.noiseGrainSetting,this.maxFrameRateFPSSetting,this.backgroundAppMaxFrameRateFPSSetting,this.lowLatencyModeSetting,this.superResolutionSetting,this.rayReconstructionSetting,this.frameGenerationSetting,this.fgxSetting,this.dlssModelPresetProfileSetting]=this.global3dSettingsService.filterCuratedSettings(t)}updateProfileDescription(){const t=this.selectedProfile.name.replace(/ +/g,"");this.selectedProfile.displayName=this.translateService.instant(`manage3dSettings.profileDescriptions.${t}.displayName`),this.selectedProfile.description=this.translateService.instant(`manage3dSettings.profileDescriptions.${t}.description`)}checkDlssSettingsAvailable(){return!!(this.superResolutionSetting?.settingValue[this.superResolutionSettingKey]&&this.rayReconstructionSetting?.settingValue[this.rayReconstructionSettingKey]&&this.frameGenerationSetting?.settingValue[this.frameGenerationSettingKey])}restoreProfile(t){t||(this.profilesList=[this.selectedProfile.name]),this.restoreProfileSub&&this.restoreProfileSub.unsubscribe(),this.restoreProfileSub=this.manage3dSettingsUtilService.confirmAndRestoreProfiles(t,this.profilesList,!0).pipe((0,C.n)(i=>i?this.global3dSettingsService.restoreJsonTypeSettings():(0,V.of)(null)),(0,C.n)(i=>i?this.global3dSettingsService.refreshGlobalSettings():(0,V.of)(null)),(0,C.n)(i=>i?this.program3dSettingsService.refreshProgramSettings():(0,V.of)(null))).subscribe(i=>{this.manage3dSettingsUtilService.closeRestoreDialog(),i&&this.errorHandlerService.showToastMessage({text:`manage3dSettings.${t?"restoreParentProfile.all":"restoreParentProfile.single"}.successText`,placeholders:{program:this.selectedProfile.name},translated:!1}).subscribe()},i=>{this.manage3dSettingsUtilService.closeRestoreDialog(),this.logger.error("Some error occured during restore ",i),this.errorHandlerService.showToastMessage({text:"manage3dSettings.anErrorOccurredDuringRestore",placeholders:{errorText:i?.message??i},translated:!1}).subscribe()})}checkFgxSettingsAvailable(){return!!this.fgxSetting?.settingValue?.[this.fgxSettingKey]}ngOnChanges(t){this.pageErrorIndicator=t.pageErrorIndicator.currentValue,(this.pageErrorIndicator.isLocalGameError||this.pageErrorIndicator.isNvcplError)&&(this.isLoading=!1)}ngOnDestroy(){this.restoreProfileSub&&this.restoreProfileSub.unsubscribe()}static{this.\u0275fac=function(i){return new(i||a)(e.rXU(y.J6),e.rXU(Y.R),e.rXU(v.c$),e.rXU(F.f),e.rXU($.g),e.rXU(ce.c),e.rXU(be.M))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["nv-app-global-settings"]],inputs:{pageErrorIndicator:"pageErrorIndicator"},features:[e.OA$],decls:3,vars:2,consts:[["batteryBoostV2",""],["whisperModeV2",""],[1,"profiles-grid-container"],["class","font-sub1 empty-state",4,"ngIf"],["class","profiles-grid",4,"ngIf"],[1,"font-sub1","empty-state"],["svgIcon","alert_circle",1,"material-icons"],[4,"ngIf"],[1,"profiles-grid"],["class","loading-indicator-container",4,"ngIf"],[1,"loading-indicator-container"],["mode","indeterminate",1,"mat-accent",3,"diameter"],[1,"settings-list-header","geometry-top-rounded-lg"],[1,"font-sub1","settings-header-title"],["mat-button","",1,"font-button2","menu-item",3,"click","disabled"],[1,"profile-settings-list","feature-global-layout",3,"nvappScrollHighlight"],[4,"ngFor","ngForOf"],[3,"title","isFullyCollapsible","itemsToDisplay","isExpanded"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"featureName","featureSettingObject","sharpenSettingObject","noiseGrainSettingObject","isGlobalContext",4,"ngIf"],[3,"featureName","featureSettingObject","sharpenSettingObject","noiseGrainSettingObject","isGlobalContext"],[3,"featureName","featureSettingObject","isGlobalContext","maxFrameRateFPSObject",4,"ngIf"],[3,"featureName","featureSettingObject","isGlobalContext","maxFrameRateFPSObject"],[4,"ngIf","ngIfElse"],[3,"featureName","batteryBoostSetting","isGlobalContext"],[3,"featureName","featureSettingObject","isGlobalContext"],[3,"featureName","whisperModeSetting","isGlobalContext"],[3,"featureName","imageScalingSetting","isGlobalContext",4,"ngIf"],[3,"featureName","imageScalingSetting","isGlobalContext"],[3,"featureName","featureSettingObject","isGlobalContext",4,"ngIf"],[3,"superResolutionSetting","rayReconstructionSetting","frameGenerationSetting","dlssModelPresetProfileSetting","isGlobalContext",4,"ngIf"],[3,"superResolutionSetting","rayReconstructionSetting","frameGenerationSetting","dlssModelPresetProfileSetting","isGlobalContext"],[3,"featureName","featureSettingObject","isGlobalContext","maxFrameRateFPSObject","isBackgroundAppMaxFrameRate",4,"ngIf"],[3,"featureName","featureSettingObject","isGlobalContext","maxFrameRateFPSObject","isBackgroundAppMaxFrameRate"]],template:function(i,n){1&i&&(e.j41(0,"div",2),e.DNE(1,zn,3,1,"div",3)(2,wi,3,2,"div",4),e.k0s()),2&i&&(e.R7$(),e.Y8G("ngIf",0===(null==n.profileSettingsInfoArray?null:n.profileSettingsInfoArray.length)&&!n.isLoading),e.R7$(),e.Y8G("ngIf",!(null!=n.pageErrorIndicator&&n.pageErrorIndicator.isNvcplError)))},dependencies:[p.Sq,p.bT,p.ux,p.e1,p.fG,I.iV,j.An,z.LG,ht.p,Ee,Ae,Be,Le,sn,dn,Xe,qe,p.Jj,v.D9],styles:["[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.profiles-grid-container[_ngcontent-%COMP%]{height:calc(100vh - 105px - var(--banner-height));overflow:hidden;overflow-y:auto;padding:16px calc(var(--rwd-container-side-spacing) - var(--scrollbar-width)) 24px var(--rwd-container-side-spacing);box-sizing:border-box}.profiles-grid[_ngcontent-%COMP%]{display:grid;grid-template-rows:53px 1fr;grid-template-columns:minmax(606px,1872px) 1fr;justify-content:flex-start;height:100%;width:100%}.profiles-grid[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;grid-row:2/-1;grid-column:1/-1}.settings-list-header[_ngcontent-%COMP%]{grid-row:1/1;grid-column:1/-1;align-self:center;padding:0 16px;display:flex;justify-content:space-between;align-items:center;margin-top:0;box-sizing:border-box;height:53px}.settings-list-header[_ngcontent-%COMP%] .menu-item[_ngcontent-%COMP%]{width:unset}.profile-settings-list[_ngcontent-%COMP%]{grid-row:2/-1;grid-column:1/-1;padding-bottom:16px}.more-icon-button[_ngcontent-%COMP%]{padding:0;min-width:24px;height:24px;margin-right:16px}.material-icons[_ngcontent-%COMP%]{width:40px;text-align:center;margin:auto}"]})}}return a})();var Je=d(47847),le=d(60213),He=d(44272),We=d(13102),xi=d(93818),Qe=d(51917),Oi=d(58474),Pi=d(44118),Di=d(12532),Vi=d(31315),Gi=d(19392),Ii=d(4208),Fi=d(93702),B=d(125),Ze=d(89610),et=d(3457);function Ti(a,r){if(1&a){const t=e.RV6();e.j41(0,"mat-radio-button",12),e.bIt("change",function(){const n=e.eBV(t).$implicit,s=e.XpG();return e.Njj(s.sortChanged(null==n?null:n.criteria))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&a){const t=r.$implicit,i=e.XpG();e.Y8G("value",null==t?null:t.criteria)("checked",i.sortBy===(null==t?null:t.criteria))("disableRipple",!0),e.R7$(),e.SpI(" ",e.bMT(2,4,null==t?null:t.label)," ")}}function Ri(a,r){if(1&a){const t=e.RV6();e.j41(0,"mat-radio-button",12),e.bIt("change",function(){const n=e.eBV(t).$implicit,s=e.XpG();return e.Njj(s.filterChanged(null==n?null:n.criteria))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&a){const t=r.$implicit,i=r.index,n=e.XpG();e.Y8G("value",null==t?null:t.criteria)("checked",n.filterBy===(null==t?null:t.criteria))("disableRipple",!0),e.R7$(),e.Lme(" ",e.bMT(2,5,null==t?null:t.label)," (",n.filterByCount[i],") ")}}let Ei=(()=>{class a{constructor(t,i,n){this.dialogData=t,this.dialogRef=i,this.loggingService=n,this.filterList=Ze.UD,this.sortList=Ze.Ll,this.sortOrFilterUpdated=new e.bkB,this.logger=this.loggingService.getLogger("nvapp/SortFilterProgramsModalComponent")}ngOnInit(){this.filterBy=this.dialogData?.filterBy??B.dj.FilterByAll,this.filterByCount=this.dialogData?.filterByCount??[0],this.sortBy=this.dialogData?.sortBy??B.NO.SortByRecentLaunch}filterChanged(t){this.logger.info("filter changed to",B.dj[t]),this.filterBy=t,this.emitSortOrFilterUpdatedEvent()}sortChanged(t){this.logger.info("sorting changed to",B.NO[t]),this.sortBy=t,this.emitSortOrFilterUpdatedEvent()}close(){this.dialogRef.close()}resetAllSelection(){this.logger.info("filter & sort reset"),this.filterBy=B.dj.FilterByAll,this.sortBy=B.NO.SortByRecentLaunch,this.emitSortOrFilterUpdatedEvent()}emitSortOrFilterUpdatedEvent(){this.sortOrFilterUpdated.emit({filterBy:this.filterBy,sortBy:this.sortBy})}static{this.\u0275fac=function(i){return new(i||a)(e.rXU(h.Vh),e.rXU(h.CP,8),e.rXU(y.J6))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["nv-app-sort-filter-programs-modal"]],outputs:{sortOrFilterUpdated:"sortOrFilterUpdated"},features:[e.Jv_([{provide:Z.KZ,useValue:{color:"accent"}}])],decls:25,vars:17,consts:[[1,"common-modal"],["for","dialog-title","mat-dialog-title","",1,"title","font-header6"],[1,"content"],[1,"sort-container"],["for","filters-radio-options-list",1,"radio-group-title","font-sub1"],["name","sort-group",1,"sort-radio-group","font-body1","font-color-primary"],["class","hig-radio-container",3,"value","checked","disableRipple","change",4,"ngFor","ngForOf"],[1,"divider"],[1,"filters-container"],["name","filter-group",1,"filters-radio-group","font-body1","font-color-primary"],["fxLayout","row","fxLayoutAlign","end center","mat-dialog-actions","",1,"modal-actions","actions"],["mat-button","",1,"hig-button","font-button2","modal-close-action",3,"click"],[1,"hig-radio-container",3,"change","value","checked","disableRipple"]],template:function(i,n){1&i&&(e.j41(0,"div",0)(1,"label",1),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"mat-dialog-content",2)(5,"div",3)(6,"label",4),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"mat-radio-group",5),e.DNE(10,Ti,3,6,"mat-radio-button",6),e.k0s()(),e.nrm(11,"mat-divider",7),e.j41(12,"div",8)(13,"label",4),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"mat-radio-group",9),e.DNE(17,Ri,3,7,"mat-radio-button",6),e.k0s()()(),e.j41(18,"div",10)(19,"button",11),e.bIt("click",function(){return n.resetAllSelection()}),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.j41(22,"button",11),e.bIt("click",function(){return n.close()}),e.EFF(23),e.nI1(24,"translate"),e.k0s()()()),2&i&&(e.R7$(2),e.JRh(e.bMT(3,7,"common.sortAndFilter")),e.R7$(5),e.JRh(e.bMT(8,9,"common.sort")),e.R7$(3),e.Y8G("ngForOf",n.sortList),e.R7$(4),e.JRh(e.bMT(15,11,"common.filter")),e.R7$(3),e.Y8G("ngForOf",n.filterList),e.R7$(3),e.SpI(" ",e.bMT(21,13,"manage3dSettings.resetAll")," "),e.R7$(3),e.SpI(" ",e.bMT(24,15,"save.done")," "))},dependencies:[p.Sq,I.iV,re.q,h.BI,h.Yi,h.E7,de.tG,Z.VT,Z._g,et.DJ,et.sA,v.D9],styles:[".filters-radio-group[_ngcontent-%COMP%], .sort-radio-group[_ngcontent-%COMP%], .filters-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.common-modal[_ngcontent-%COMP%]{width:560px;padding:0}.common-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:0 calc(var(--rwd-container-side-spacing) - var(--scrollbar-width)) 0 24px;overflow:hidden;overflow-y:auto}.divider[_ngcontent-%COMP%]{margin:16px 0}.radio-group-title[_ngcontent-%COMP%]{padding:12px 0;display:block}"]})}}return a})();var T=d(6538),Ni=d(51728),ki=d(43341),ji=d(62313),Ai=d(44186),Ui=d(60990),Bi=d(40514);const $i=(a,r)=>({"flex-height":a,"no-apps-actions":r});function Li(a,r){1&a&&(e.qex(0),e.EFF(1),e.nI1(2,"translate"),e.bVm()),2&a&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"manage3dSettings.scan.gamesAndAppsScanning")," "))}function zi(a,r){if(1&a&&(e.EFF(0),e.nI1(1,"translate")),2&a){let t;const i=e.XpG();e.E5c(" ",null!==(t=i.visibleAppCount)&&void 0!==t?t:0,"/",null==i.localGamesAndApps?null:i.localGamesAndApps.length," ",e.bMT(1,3,"manage3dSettings.scan.gamesAndApps")," ")}}function Xi(a,r){1&a&&e.nrm(0,"mat-icon",21)}function Yi(a,r){1&a&&e.nrm(0,"mat-progress-spinner",22),2&a&&e.Y8G("diameter",24)}function Ki(a,r){if(1&a){const t=e.RV6();e.j41(0,"button",18),e.nI1(1,"translate"),e.nI1(2,"translate"),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.optimizeAll())}),e.DNE(3,Xi,1,0,"mat-icon",19)(4,Yi,1,1,"mat-progress-spinner",20),e.k0s()}if(2&a){const t=e.XpG();e.FS9("matTooltip",e.bMT(1,5,"ops.optimizeAll")),e.Y8G("disabled",0===(null==t.localGamesAndApps?null:t.localGamesAndApps.length)||t.optimizeAllInProgress),e.BMQ("aria-label",e.bMT(2,7,"ops.optimizeAll")),e.R7$(3),e.Y8G("ngIf",!t.optimizeAllInProgress),e.R7$(),e.Y8G("ngIf",t.optimizeAllInProgress)}}function qi(a,r){1&a&&e.nrm(0,"div",23)}function Ji(a,r){if(1&a){const t=e.RV6();e.qex(0),e.j41(1,"span",24),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"button",25),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.refreshApps())}),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"button",26),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.addProgram())}),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.bVm()}if(2&a){const t=e.XpG();e.R7$(2),e.JRh(e.bMT(3,4,"manage3dSettings.scan.noAppsFound")),e.R7$(2),e.Y8G("disabled",t.appsLoading||(null==t.pageErrorIndicator?null:t.pageErrorIndicator.isLocalGameError)),e.R7$(),e.SpI(" ",e.bMT(6,6,"common.refresh")," "),e.R7$(3),e.SpI(" ",e.bMT(9,8,"manage3dSettings.addProgram")," ")}}function Hi(a,r){1&a&&(e.nrm(0,"div",27),e.nI1(1,"translate")),2&a&&e.Y8G("innerHTML",e.bMT(1,1,"manage3dSettings.scan.zeroAppsOnFilter"),e.npT)}function Wi(a,r){1&a&&e.nrm(0,"mat-icon",38)}function Qi(a,r){if(1&a&&e.nrm(0,"img",39),2&a){const t=e.XpG(2).$implicit;e.Y8G("src",null==t||null==t.images?null:t.images.GAME_ICON,e.B4B)("alt",null==t?null:t.displayName)}}function Zi(a,r){if(1&a&&e.nrm(0,"mat-icon",40),2&a){const t=e.XpG(2).$implicit;e.Y8G("ngClass",null==t?null:t.optimizationStatusIcon)("svgIcon",null==t?null:t.optimizationStatusIcon)}}function ea(a,r){if(1&a){const t=e.RV6();e.j41(0,"button",31),e.bIt("click",function(){e.eBV(t);const n=e.XpG().index,s=e.XpG(2);return e.Njj(s.selectProgram(n))})("keyup.enter",function(){e.eBV(t);const n=e.XpG().index,s=e.XpG(2);return e.Njj(s.selectProgram(n))}),e.j41(1,"div",32)(2,"div",33),e.DNE(3,Wi,1,0,"mat-icon",34)(4,Qi,1,2,"img",35)(5,Zi,1,2,"mat-icon",36),e.k0s(),e.j41(6,"div",37),e.EFF(7),e.k0s()()()}if(2&a){const t=e.XpG(),i=t.$implicit,n=t.index,s=e.XpG(2);e.Y8G("ngClass",s.highlightSelectedIndex===n?"selected-program":"deselect-program")("tabindex",0===n?0:-1),e.R7$(3),e.Y8G("ngIf",!(null!=i&&null!=i.images&&i.images.GAME_ICON)),e.R7$(),e.Y8G("ngIf",null==i||null==i.images?null:i.images.GAME_ICON),e.R7$(),e.Y8G("ngIf",s.opsSupported&&(null==i?null:i.optimizationStatusIcon)!==s.optimizationUnknownEnum),e.R7$(2),e.SpI(" ",null==i?null:i.displayName," ")}}function ta(a,r){if(1&a&&(e.qex(0),e.DNE(1,ea,8,6,"button",30),e.bVm()),2&a){const t=r.$implicit;e.R7$(),e.Y8G("ngIf",t.isVisible)}}function na(a,r){if(1&a&&(e.qex(0),e.j41(1,"div",28),e.DNE(2,ta,2,1,"ng-container",29),e.k0s(),e.bVm()),2&a){const t=e.XpG();e.R7$(2),e.Y8G("ngForOf",t.localGamesAndApps)("ngForTrackBy",t.trackById)}}let ia=(()=>{class a{constructor(t,i,n,s,o,c,u,f,m,_,P,M,x,E){this.loggingService=t,this.appListService=i,this.gamesScanLocationService=n,this.appsSortAndFilterService=s,this.opsService=o,this.manage3dSettingsUtilService=c,this.scanApisService=u,this.matDialog=f,this.errorHandlerService=m,this.program3dSettingsService=_,this.programsService=P,this.activatedRoute=M,this.manage3dSettingsAPIService=x,this.opsEventService=E,this.selectedProgramEmitter=new e.bkB,this.restoreAllProgramsEmitter=new e.bkB,this.localGamesAndApps=[],this.appsLoading=!1,this.filterByCount=[0],this.sortByRecentLaunchEnum=B.NO.SortByRecentLaunch,this.filterByAllEnum=B.dj.FilterByAll,this.optimizeAllInProgress=!1,this.optimizationUnknownEnum=T.p7.Unknown,this.highlightSelectedIndex=-1,this.isProgramSelectedFromHome=!1,this.addAppInProgress=!1,this.firstVisibleAppIndex=0,this.destroyRef=(0,e.WQX)(e.abz),this.logger=this.loggingService.getLogger("nvapp/ProgramProfilesComponent")}ngOnInit(){this.updatePreselectedFilter(),this.setDefaultSortAndFilterOptions(),this.loadPrograms(),this.getScanStatus(),this.getUpdateOpsFiltersListener(),this.opsSupportedListener(),this.listenForHideStatusChangesToApp(),this.listenForOptimizeAllInProgress(),this.listenApplyInProgress()}listenApplyInProgress(){this.applyInProgressObs=this.program3dSettingsService.getApplyInProgress()}refreshApps(){this.appsLoading||(this.appsLoading=!0,this.appListService.initiateScan(!0),this.getScanStatus())}selectProgram(t){const i=this.localGamesAndApps?.[t];(this.selectedDrsProfileName!==i?.drsProfileName||this.selectedProgram?.localId!==i?.localId)&&(this.setPreviousSelectedProgram(),this.selectedProgram=i,this.updateSelected(t))}scanLocationAdd(){this.gamesScanLocationService.searchPathsAdd().pipe((0,O.s)(1)).subscribe(()=>{this.refreshApps()},t=>{this.logger.error("Error while adding scan location",t)})}trackById(t,i){return i.id}openSortAndFilterDialog(){const t=this.matDialog.open(Ei,{panelClass:["dialogPaddingRemove","common-dialog"],restoreFocus:!1,autoFocus:!1,data:{filterBy:this.filterBy,filterByCount:this.filterByCount,sortBy:this.sortBy}});t.componentInstance.sortOrFilterUpdated.pipe((0,R.M)(i=>{this.applySortAndFilterBy(i)}),(0,Ii.Q)(t.afterClosed())).subscribe(N.l,i=>{this.logger.error("Sort & filter update failed with error",i)})}setDefaultSortAndFilterOptions(){this.sortBy=this.appsSortAndFilterService.sortBy,this.appsSortAndFilterService.filterBy=this.filterBy??B.dj.FilterByAll,this.filterBy=this.appsSortAndFilterService.filterBy}applySortAndFilterBy(t){this.appsSortAndFilterService.sortBy!==t?.sortBy&&(this.appsSortAndFilterService.sortBy=t?.sortBy,this.sortBy=this.appsSortAndFilterService.sortBy,this.sortPrograms()),this.filterBy!==t?.filterBy&&(this.appsSortAndFilterService.filterBy=t?.filterBy,this.filterBy=this.appsSortAndFilterService.filterBy,this.updateFilterAndSelectedProgram(B.jN.OnLoad))}listenForHideStatusChangesToApp(){this.manage3dSettingsUtilService.getAppHideStatus().pipe((0,D.pQ)(this.destroyRef)).subscribe(t=>{this.sortPrograms(),this.updateFilterAndSelectedProgram(B.jN.OnHideClick,t)},t=>this.logger.error(t))}sortPrograms(){this.appsSortAndFilterService.sortApps(this.localGamesAndApps),this.updateFilterAndSelectedProgram(B.jN.OnLoad)}getFirstVisibleProgramIndex(){const t=this.isProgramSelectedFromHome?null:+this.activatedRoute?.snapshot?.params?.localId;return this.logger.info("preSelectedAppLocalId",t),this.isProgramSelectedFromHome=!0,this.localGamesAndApps.findIndex(t?n=>n.localId===t:n=>n.isVisible)}updateSelected(t){this.highlightSelectedIndex=t,this.fetchDrsProfileAndEmit(this.localGamesAndApps[t])}fetchDrsProfileAndEmit(t){this.getDrsProfileNameSub?.unsubscribe(),this.getDrsProfileNameSub=this.programsService.getDrsProfileName(t).subscribe(i=>{(this.selectedDrsProfileName!==i||this.selectedProgram?.localId!==this.previousSelectedProgram?.localId)&&(this.selectedDrsProfileName=i,t.drsProfileName=i,this.emitProgram(t))},i=>{this.logger.error("Error while fetching DRS profile ",i),this.emitProgram(t)})}optimizeAll(){this.opsEventService.triggerOptimizeAll(this.localGamesAndApps)}addProgram(){this.addProgramSub?.unsubscribe(),this.addProgramSub=this.manage3dSettingsAPIService.openFile().pipe((0,C.n)(t=>(t.split("\\").pop(),(0,V.of)(t))),(0,C.n)(t=>"isCancelled"===t?Di.w:(0,Vi.zV)([(0,V.of)(t),this.appListService.checkMetaDataExists(t)])),(0,R.M)(([t,i])=>{this.addAppInProgress=!0,this.appListService.setLastManualAddedApp(i)}),(0,C.n)(([t,i])=>i&&i.regularOpsSupported&&0!==i.cmsId&&i.chromaAppId?this.scanApisService.initLocalApps():this.programsService.addProgramToLocalGamesCache(t).pipe((0,C.n)(n=>this.scanApisService.initLocalApps())))).subscribe(t=>{this.logger.info("Program added successfully")},t=>{this.addAppInProgress=!1,this.logger.error("Some error occurred while manual addition of a program: ",t),this.errorHandlerService.showToastMessage({text:t,translated:!0}).subscribe()})}getUpdateOpsFiltersListener(){this.opsService.getLocalAppsWithOpsStatusUpdatedListener().pipe((0,D.pQ)(this.destroyRef)).subscribe(()=>{this.updateFilterAndSelectedProgram(B.jN.OnLoad)})}opsSupportedListener(){this.opsService.getOpsCompatibility().pipe((0,D.pQ)(this.destroyRef)).subscribe(t=>{this.opsSupported=t})}loadPrograms(){this.programsService.getAllPrograms().pipe((0,D.pQ)(this.destroyRef)).subscribe(t=>{let i=!1;this.addAppInProgress&&(i=this.appListService.isAppAlreadyExisting(t,this.localGamesAndApps),this.addAppInProgress=!1),i||(this.highlightSelectedIndex=-1,this.localGamesAndApps=t.slice(),this.appsSortAndFilterService.sortApps(this.localGamesAndApps),this.updateFilterAndSelectedProgram(B.jN.OnLoad))},t=>{this.logger.error("Error occurred while loading local games and apps - ",t),this.appsLoading=!1,this.addAppInProgress=!1})}emitProgram(t){(0,V.of)(null).pipe((0,ge.c)(0),(0,O.s)(1)).subscribe(()=>{this.selectedProgramEmitter.emit(t)})}updateFilterAndSelectedProgram(t,i){if(0===this.localGamesAndApps.length)return this.visibleAppCount=0,void this.resetSelectedProgram();this.filterByCount=this.appsSortAndFilterService.getInitialCountOfFilters(this.localGamesAndApps),this.localGamesAndApps=this.appsSortAndFilterService.filterPrograms(this.localGamesAndApps,this.filterBy);const n=this.getFirstVisibleProgramIndex();if(this.visibleAppCount=this.localGamesAndApps.filter(o=>o.isVisible).length,n<0)return void this.resetSelectedProgram();let s=n;if(this.selectedProgram){if(s=this.getSelectedIndex(t,s,i),s>=0)return void(this.highlightSelectedIndex=s);s=n}this.selectedProgram=this.localGamesAndApps[s],this.setPreviousSelectedProgram(),this.updateSelected(s)}resetSelectedProgram(){this.selectedDrsProfileName=null,this.selectedProgram=null,this.emitProgram(null)}getSelectedIndex(t,i,n){switch(t){case B.jN.OnLoad:i=this.localGamesAndApps.findIndex(s=>s.localId===this.selectedProgram.localId&&s.isVisible);break;case B.jN.OnHideClick:i=this.localGamesAndApps.findIndex(s=>s.localId===this.selectedProgram.localId&&(n.isHidden?!s.isHidden:s.isHidden))}return i}getScanStatus(){this.subGetScanStatus?.unsubscribe(),this.subGetScanStatus=this.appListService.getScanStatus().subscribe(t=>{this.appsLoading=t},t=>this.logger.error(t))}listenForOptimizeAllInProgress(){this.opsService.getOptimizeAllInProgress().pipe((0,R.M)(t=>this.optimizeAllInProgress=t),(0,D.pQ)(this.destroyRef)).subscribe(N.l,t=>this.logger.error("Error while listening for optimize all",t))}updatePreselectedFilter(){const t=this.activatedRoute?.snapshot?.params.filter;t&&(this.filterBy=+t,this.appsSortAndFilterService.filterBy=this.filterBy,this.logger.info("Pre selected filter",this.filterBy))}restoreAllPrograms(){this.restoreSub?.unsubscribe();const t=[];this.restoreSub=(0,Gi.H)(this.localGamesAndApps).pipe((0,K.H)(i=>this.programsService.getDrsProfileName(i)),(0,R.M)(i=>{t.push(i)}),(0,Fi.o)(1)).subscribe(()=>{this.restoreAllProgramsEmitter.emit(t)},i=>{this.logger.error("Some error occurred during fetch drs profiles for restore",i)})}setPreviousSelectedProgram(){this.previousSelectedProgram=(0,w.cloneDeep)(this.selectedProgram)}ngOnDestroy(){this.subGetScanStatus?.unsubscribe(),this.addProgramSub?.unsubscribe(),this.getDrsProfileNameSub?.unsubscribe(),this.optimizeAllSub?.unsubscribe(),this.restoreSub?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||a)(e.rXU(y.J6),e.rXU(He.n),e.rXU(Ni.o),e.rXU(ki.H),e.rXU(le.s),e.rXU(F.f),e.rXU(We.I),e.rXU(h.bZ),e.rXU(ce.c),e.rXU($.g),e.rXU(Qe.Z),e.rXU(ae.nX),e.rXU(Fe.F),e.rXU(ji.C))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["nv-app-program-profiles"]],inputs:{pageErrorIndicator:"pageErrorIndicator"},outputs:{selectedProgramEmitter:"selectedProgramEmitter",restoreAllProgramsEmitter:"restoreAllProgramsEmitter"},decls:36,vars:37,consts:[["filteredCountTempl",""],["moreMenu","matMenu"],[1,"appList-container"],[1,"apps-filter",3,"ngClass"],[1,"font-sub1"],[4,"ngIf","ngIfElse"],[1,"program-update-controls"],["mat-button","","class","font-body2","matTooltipClass","mat-tooltip-font-body3",3,"matTooltip","disabled","click",4,"ngIf"],["mat-button","","matTooltipClass","mat-tooltip-font-body3",1,"font-body2","sort-and-filter-button",3,"click","matTooltip","disabled"],[1,"material-icons"],["class","filter-applied-indicator",4,"ngIf"],["mat-button","",1,"more-icon-button","font-body2",3,"matMenuTriggerFor"],[1,"more-menu"],["mat-menu-item","",3,"click","disabled"],["mat-menu-item","",3,"click"],[1,"program-container","align-fallback","geometry-bottom-rounded-lg",3,"ngClass"],[4,"ngIf"],["class","font-body2",3,"innerHTML",4,"ngIf"],["mat-button","","matTooltipClass","mat-tooltip-font-body3",1,"font-body2",3,"click","matTooltip","disabled"],["svgIcon","optimize_all",4,"ngIf"],["class","mat-accent","mode","indeterminate",3,"diameter",4,"ngIf"],["svgIcon","optimize_all"],["mode","indeterminate",1,"mat-accent",3,"diameter"],[1,"filter-applied-indicator"],[1,"font-body2","no-apps-text"],["mat-button","",1,"font-button2","refresh-apps",3,"click","disabled"],["mat-button","",1,"font-button2",3,"click"],[1,"font-body2",3,"innerHTML"],[1,"program-container","program-rows"],[4,"ngFor","ngForOf","ngForTrackBy"],["mat-button","","class","font-body2 program-list-button geometry-rounded-none-imp","nvAppListKeyboardNav","vertical",3,"ngClass","tabindex","click","keyup.enter",4,"ngIf"],["mat-button","","nvAppListKeyboardNav","vertical",1,"font-body2","program-list-button","geometry-rounded-none-imp",3,"click","keyup.enter","ngClass","tabindex"],[1,"program-text"],[1,"program-icon-container"],["class","material-icons program-icon","svgIcon","game_controller",4,"ngIf"],["class","material-icons program-icon",3,"src","alt",4,"ngIf"],["class","material-icons optimization-status-icon",3,"ngClass","svgIcon",4,"ngIf"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"program-name"],["svgIcon","game_controller",1,"material-icons","program-icon"],[1,"material-icons","program-icon",3,"src","alt"],[1,"material-icons","optimization-status-icon",3,"ngClass","svgIcon"]],template:function(i,n){if(1&i){const s=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"div",4),e.DNE(3,Li,3,3,"ng-container",5)(4,zi,2,5,"ng-template",null,0,e.C5r),e.k0s(),e.j41(6,"div",6),e.DNE(7,Ki,5,9,"button",7),e.j41(8,"button",8),e.nI1(9,"translate"),e.nI1(10,"translate"),e.bIt("click",function(){return e.eBV(s),e.Njj(n.openSortAndFilterDialog())}),e.j41(11,"mat-icon",9),e.EFF(12,"filter_list"),e.k0s(),e.DNE(13,qi,1,0,"div",10),e.k0s(),e.j41(14,"button",11)(15,"mat-icon",9),e.EFF(16,"more_vert"),e.k0s()()(),e.j41(17,"mat-menu",12,1)(19,"button",13),e.bIt("click",function(){return e.eBV(s),e.Njj(n.refreshApps())}),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.j41(22,"button",14),e.bIt("click",function(){return e.eBV(s),e.Njj(n.addProgram())}),e.EFF(23),e.nI1(24,"translate"),e.k0s(),e.j41(25,"button",13),e.bIt("click",function(){return e.eBV(s),e.Njj(n.scanLocationAdd())}),e.EFF(26),e.nI1(27,"translate"),e.k0s(),e.j41(28,"button",13),e.nI1(29,"async"),e.bIt("click",function(){return e.eBV(s),e.Njj(n.restoreAllPrograms())}),e.EFF(30),e.nI1(31,"translate"),e.k0s()()(),e.j41(32,"div",15),e.DNE(33,Ji,10,10,"ng-container",16)(34,Hi,2,3,"div",17),e.k0s(),e.DNE(35,na,3,2,"ng-container",16),e.k0s()}if(2&i){const s=e.sdS(5),o=e.sdS(18);e.R7$(),e.Y8G("ngClass",n.highlightSelectedIndex!==n.firstVisibleAppIndex?"border-visible":"border-invisible"),e.R7$(2),e.Y8G("ngIf",n.appsLoading)("ngIfElse",s),e.R7$(4),e.Y8G("ngIf",n.opsSupported),e.R7$(),e.FS9("matTooltip",e.bMT(9,20,"common.sortAndFilter")),e.Y8G("disabled",0===(null==n.localGamesAndApps?null:n.localGamesAndApps.length)),e.BMQ("aria-label",e.bMT(10,22,"common.sortAndFilter")),e.R7$(5),e.Y8G("ngIf",n.filterBy!==n.filterByAllEnum||n.sortBy!==n.sortByRecentLaunchEnum),e.R7$(),e.Y8G("matMenuTriggerFor",o),e.R7$(5),e.Y8G("disabled",n.appsLoading||(null==n.pageErrorIndicator?null:n.pageErrorIndicator.isLocalGameError)),e.R7$(),e.SpI(" ",e.bMT(21,24,"common.refresh")," "),e.R7$(3),e.SpI(" ",e.bMT(24,26,"manage3dSettings.addProgram")," "),e.R7$(2),e.Y8G("disabled",null==n.pageErrorIndicator?null:n.pageErrorIndicator.isLocalGameError),e.R7$(),e.SpI(" ",e.bMT(27,28,"manage3dSettings.addScanLocation")," "),e.R7$(2),e.Y8G("disabled",e.bMT(29,30,n.applyInProgressObs)||0===(null==n.localGamesAndApps?null:n.localGamesAndApps.length)||(null==n.pageErrorIndicator?null:n.pageErrorIndicator.isNvcplError)),e.R7$(2),e.SpI(" ",e.bMT(31,32,"manage3dSettings.restoreProgram.all.buttonText")," "),e.R7$(2),e.Y8G("ngClass",e.l_i(34,$i,0===n.visibleAppCount,0===(null==n.localGamesAndApps?null:n.localGamesAndApps.length))),e.R7$(),e.Y8G("ngIf",0===(null==n.localGamesAndApps?null:n.localGamesAndApps.length)&&0===n.visibleAppCount),e.R7$(),e.Y8G("ngIf",(null==n.localGamesAndApps?null:n.localGamesAndApps.length)>0&&0===n.visibleAppCount),e.R7$(),e.Y8G("ngIf",(null==n.localGamesAndApps?null:n.localGamesAndApps.length)&&n.visibleAppCount>0)}},dependencies:[p.YU,p.Sq,p.bT,I.iV,j.An,Ai.oV,L.pI,L.gy,L.fS,z.LG,Ui.r,te.tH,Bi.e,U.a,G.PW,ye._,p.Jj,v.D9],styles:["[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%], .program-name[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.program-container[_ngcontent-%COMP%]{overflow-x:hidden;overflow-y:auto}.program-container.flex-height[_ngcontent-%COMP%]{flex:1}.program-container[_ngcontent-%COMP%] .no-apps-text[_ngcontent-%COMP%]{margin-bottom:24px}.program-container[_ngcontent-%COMP%] .refresh-apps[_ngcontent-%COMP%]{margin-bottom:16px}.program-container[_ngcontent-%COMP%] .program-list-button[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;box-sizing:border-box;height:56px;padding:0 8px;width:100%}.no-apps-actions[_ngcontent-%COMP%]{height:100%}.program-container.align-fallback[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}.program-container.align-fallback[_ngcontent-%COMP%] .font-body2[_ngcontent-%COMP%]{padding:0 16px}.program-rows[_ngcontent-%COMP%]{flex:1}.program-name[_ngcontent-%COMP%]{white-space:nowrap;width:100%;margin-left:16px;text-transform:none;text-align:start}.program-text[_ngcontent-%COMP%]{display:flex;align-items:center}.program-text[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%]{display:flex}.program-text[_ngcontent-%COMP%] .program-icon-container[_ngcontent-%COMP%]{width:40px;height:40px;position:relative}.program-text[_ngcontent-%COMP%] .program-icon[_ngcontent-%COMP%], .program-text[_ngcontent-%COMP%] .program-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:40px;height:40px}.program-text[_ngcontent-%COMP%] .optimization-status-icon[_ngcontent-%COMP%]{width:15px;height:15px;line-height:15px;font-size:15px;position:absolute;top:-5px;right:-6px;z-index:1;background-image:radial-gradient(var(--primary-900) 55%,transparent 65%,transparent 85%,transparent 90%,transparent 100%);border-radius:50%;filter:var(--program-profiles-text-optimization-status-filter)}.program-text[_ngcontent-%COMP%] .optimization-status-icon.check_circle[_ngcontent-%COMP%]{color:var(--accent-500)}.selected-program[_ngcontent-%COMP%]{background-color:var(--program-profiles-selected-program-bg-color);color:var(--primary-contrast-1000);font-weight:500}.deselect-program[_ngcontent-%COMP%]{background-color:unset}.apps-filter[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;min-height:56px;padding:0 8px;box-sizing:border-box}.apps-filter[_ngcontent-%COMP%] .mat-button[_ngcontent-%COMP%], .apps-filter[_ngcontent-%COMP%] mat-progress-spinner[_ngcontent-%COMP%]{padding:0;min-width:auto;line-height:initial;margin-right:10px}.apps-filter[_ngcontent-%COMP%] .mat-button[_ngcontent-%COMP%]:last-of-type, .apps-filter[_ngcontent-%COMP%] mat-progress-spinner[_ngcontent-%COMP%]:last-of-type{margin-right:0}.apps-filter[_ngcontent-%COMP%] .filter-applied-indicator[_ngcontent-%COMP%]{height:7px;width:7px;background-color:var(--accent-500);border-radius:50%;position:absolute;top:-3px;right:-3px}.apps-filter[_ngcontent-%COMP%] .program-update-controls[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.apps-filter[_ngcontent-%COMP%] .program-update-controls[_ngcontent-%COMP%] .sort-and-filter-button[_ngcontent-%COMP%]{overflow:visible}.apps-filter.border-visible[_ngcontent-%COMP%]{border-bottom:1px solid var(--primary-contrast-80)}.apps-filter.border-invisible[_ngcontent-%COMP%]{border-bottom:1px solid transparent}.appList-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.selected-filter[_ngcontent-%COMP%]{color:var(--accent-500)}"]})}}return a})();var tt=d(75520);const aa=a=>({"dsr-setting":a}),nt=(a,r)=>({"font-sub2 font-color-primary":a,"font-body2 font-color-secondary":r});function sa(a,r){1&a&&(e.qex(0),e.j41(1,"span"),e.EFF(2),e.nI1(3,"translate"),e.nI1(4,"translate"),e.k0s(),e.bVm()),2&a&&(e.R7$(2),e.Lme("",e.bMT(3,2,"ops.inApp")," ",e.bMT(4,4,"ops.setting"),""))}function oa(a,r){1&a&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"translate"),e.k0s()),2&a&&(e.R7$(),e.Lme("",e.bMT(2,2,"ops.inGame")," ",e.bMT(3,4,"ops.setting"),""))}function ra(a,r){if(1&a&&(e.j41(0,"div",9)(1,"span",11),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&a){const t=e.XpG(3);e.R7$(2),e.JRh(e.i5U(3,1,"ops.preview",t.previewValueTranslateParam))}}function la(a,r){if(1&a&&(e.j41(0,"div",5)(1,"div",6)(2,"div",7),e.DNE(3,sa,5,6,"ng-container",8)(4,oa,4,6,"ng-template",null,0,e.C5r),e.k0s(),e.j41(6,"div",9),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.DNE(9,ra,4,4,"div",10),e.k0s()()),2&a){const t=e.sdS(5),i=e.XpG(2);e.R7$(3),e.Y8G("ngIf",i.selectedProgram.isCreativeApp)("ngIfElse",t),e.R7$(4),e.SpI(" ",e.bMT(8,4,i.currentSettingHeader)," "),e.R7$(2),e.Y8G("ngIf",!i.isOptimizedOrCustomized||i.isStateInTransit)}}function ga(a,r){1&a&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&a&&(e.R7$(),e.SpI("\xa0",e.bMT(2,1,"ops.dsr"),""))}function ca(a,r){1&a&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&a&&(e.R7$(),e.SpI("\xa0",e.bMT(2,1,"ops.dsr"),""))}function da(a,r){if(1&a&&(e.j41(0,"div",18)(1,"span",11),e.EFF(2),e.DNE(3,ca,3,3,"span",16),e.k0s()()),2&a){const t=e.XpG().$implicit,i=e.XpG(2);e.Y8G("ngClass",e.l_i(3,nt,t.value!==t.optimalValue,t.value===t.optimalValue||i.unableToRetrieveSettings)),e.R7$(2),e.SpI("",t.optimalValue," "),e.R7$(),e.Y8G("ngIf",t.isOptimalValueDSR)}}function ua(a,r){if(1&a&&(e.qex(0),e.j41(1,"div",12)(2,"div",6)(3,"div",13)(4,"label",14),e.EFF(5),e.k0s()(),e.j41(6,"div",15)(7,"span",11),e.EFF(8),e.DNE(9,ga,3,3,"span",16),e.k0s()(),e.DNE(10,da,4,6,"div",17),e.k0s()(),e.bVm()),2&a){let t;const i=r.$implicit,n=e.XpG(2);e.R7$(),e.Y8G("showIcon",i.isOptimalValueDSR||i.isCurrentValueDSR)("settingDetails",i.settingInfoData),e.R7$(3),e.Y8G("ngClass",e.eq3(8,aa,i.isOptimalValueDSR||i.isCurrentValueDSR)),e.R7$(),e.SpI("",null!==(t=i.nameTranslation)&&void 0!==t?t:i.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(10,nt,i.value!==i.optimalValue,i.value===i.optimalValue||n.unableToRetrieveSettings)),e.R7$(2),e.SpI("",i.value," "),e.R7$(),e.Y8G("ngIf",i.isCurrentValueDSR),e.R7$(),e.Y8G("ngIf",!n.isOptimizedOrCustomized||n.isStateInTransit)}}function pa(a,r){if(1&a&&(e.j41(0,"div",2),e.DNE(1,la,10,6,"div",3)(2,ua,11,13,"ng-container",4),e.k0s()),2&a){const t=e.XpG();e.R7$(),e.Y8G("ngIf",(null==t.uiSettings?null:t.uiSettings.length)&&t.selectedProgram),e.R7$(),e.Y8G("ngForOf",t.uiSettings)}}let ma=(()=>{class a{constructor(t,i,n,s,o){this.appConfig=t,this.loggingService=i,this.opsService=n,this.opsUtilsService=s,this.translateService=o,this.uiSettings=[],this.isOptimizedOrCustomized=!1,this.isStateInTransit=!1,this.showOps=!1,this.opsEnabled=!1,this.isLoading=!0,this.previewValueTranslateParam={},this.unableToRetrieveSettings=!1,this.isSettingOverflow=!1,this.destroyRef=(0,e.WQX)(e.abz),this.opsEnabled=t.featureEnablement.ops?.enabled,this.logger=this.loggingService.getLogger("nvapp/OPSSettingsComponent")}ngOnInit(){this.listenToOpsState(),this.opsService.getOpsCompatibility().pipe((0,R.M)(t=>{this.showOps=t&&this.opsEnabled,this.logger.info(`Show ops ${this.showOps}`)}),(0,D.pQ)(this.destroyRef)).subscribe()}setFeatureOverflow(t){this.isSettingOverflow=t}listenToOpsState(){this.opsService.getSelectedProgramOpsState().pipe((0,D.pQ)(this.destroyRef)).subscribe(t=>{if(!t)return this.uiSettings=[],void this.logger.error("No state found");this.selectedProgram=t.selectedProgram,this.uiSettings=t?.uiSettings||[];const i=this.opsUtilsService.isDCSettingSelected(t)?T.bF.DC:T.bF.AC;this.isOptimizedOrCustomized=this.opsUtilsService.isOptimizedOrCustomized(t,i),this.unableToRetrieveSettings=this.opsUtilsService.unableToRetrieveSettings(t.opsTabState),this.isStateInTransit=t.stateInTransit;const n=this.translateService.instant(t.isRecommendedSelected?"ops.optimalSetting":"common.custom");this.previewValueTranslateParam={status:n},this.updateCurrentSettingHeader(t),this.uiSettings.length&&this.selectedProgram.isCreativeApp&&(this.uiSettings=this.uiSettings.filter(s=>!(s.name===T.jY.DisplayMode||s.name===T.jY.Resolution)))},t=>{this.logger.error(`Error while refreshing settings space for localId ${this.selectedProgram?.shortName}`,t)})}updateCurrentSettingHeader(t){const i=t.currentPowerMode;this.logger.info("Current Power Mode is",i);const n=t.currentSettingType;i&&(this.currentSettingHeader=n===T.bF.DC&&i===T.$7.AC?"ops.whenOnBattery":n===T.bF.AC&&i===T.$7.DC?"ops.whenPluggedIn":"ops.current")}static{this.\u0275fac=function(i){return new(i||a)(e.rXU(Je.Vk),e.rXU(y.J6),e.rXU(le.s),e.rXU(tt.H),e.rXU(v.c$))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["nv-app-ops-settings"]],decls:1,vars:1,consts:[["inGame",""],["tabindex","0","class","in-game-container",4,"ngIf"],["tabindex","0",1,"in-game-container"],["class","in-game-header-container geometry-top-rounded-lg",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"in-game-header-container","geometry-top-rounded-lg"],[1,"mat-menu-header"],[1,"font-sub1","setting-align","in-game-header-text"],[4,"ngIf","ngIfElse"],[1,"font-sub1","setting-align"],["class","font-sub1 setting-align",4,"ngIf"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"setting-value"],["nvAppSettingInfoIcon","",1,"feature-expansion-panel-container","in-game-feature-expansion-panel-container","feature-expansion-panel-border",3,"showIcon","settingDetails"],[1,"setting-info-icon-container","font-body2","font-color-secondary"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"setting-value",3,"ngClass"],[1,"setting-align",3,"ngClass"],[4,"ngIf"],["class","font-body2 setting-align",3,"ngClass",4,"ngIf"],[1,"font-body2","setting-align",3,"ngClass"]],template:function(i,n){1&i&&e.DNE(0,pa,3,2,"div",1),2&i&&e.Y8G("ngIf",n.showOps)},dependencies:[p.YU,p.Sq,p.bT,U.a,G.PW,q.H,v.D9],styles:["[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%], .in-game-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.in-game-container[_ngcontent-%COMP%] .in-game-header-container[_ngcontent-%COMP%]{background:var(--primary-850);padding:14px 0}.in-game-container[_ngcontent-%COMP%] .in-game-header-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]{padding:0 16px}.in-game-container[_ngcontent-%COMP%] .in-game-header-container[_ngcontent-%COMP%] .in-game-header-text[_ngcontent-%COMP%]{position:relative;padding:0}.in-game-container[_ngcontent-%COMP%] .in-game-header-container[_ngcontent-%COMP%] .in-game-header-text[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:absolute}.in-game-container[_ngcontent-%COMP%] .in-game-header-container[_ngcontent-%COMP%] .in-game-header-text[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .in-game-container[_ngcontent-%COMP%] .in-game-header-container[_ngcontent-%COMP%] .setting-align[_ngcontent-%COMP%]{font-size:16px;line-height:24px}.in-game-container[_ngcontent-%COMP%] .feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]{background-color:var(--primary-900);padding:14px 16px}.in-game-container[_ngcontent-%COMP%] .feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]:hover{background-color:var(--feature-expansion-panel-hover-bg-color)}.in-game-container[_ngcontent-%COMP%] .setting-align[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0 8px}.in-game-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%]{white-space:nowrap;width:auto}.in-game-container[_ngcontent-%COMP%]:focus{outline-offset:-2px}"]})}}return a})();var ha=d(26986),it=d(26945),fa=d(92626),Sa=d(13186);const _a=a=>({"optimized-slider":a});function ba(a,r){1&a&&(e.j41(0,"div",9),e.nrm(1,"div",10),e.j41(2,"span",11),e.EFF(3),e.nI1(4,"translate"),e.k0s()()),2&a&&(e.R7$(3),e.JRh(e.bMT(4,1,"ops.optimalSetting")))}function va(a,r){if(1&a){const t=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"span"),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"span"),e.EFF(6),e.nI1(7,"translate"),e.k0s()(),e.j41(8,"div",3),e.nrm(9,"mat-icon",4),e.j41(10,"div",5)(11,"mat-slider",6),e.nI1(12,"translate"),e.bIt("change",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.onSliderChange(n))}),e.k0s(),e.DNE(13,ba,5,3,"div",7),e.k0s(),e.nrm(14,"mat-icon",8),e.k0s()()}if(2&a){const t=e.XpG();e.Y8G("ngClass",e.eq3(18,_a,t.isOptimized)),e.R7$(3),e.JRh(e.bMT(4,12,t.isDcMode?"ops.battery":"ops.performance")),e.R7$(3),e.JRh(e.bMT(7,14,"ops.quality")),e.R7$(3),e.Y8G("svgIcon",t.isDcMode?"battery_boost":"guage"),e.R7$(2),e.Y8G("max",null==t.customOpsSetting?null:t.customOpsSetting.maxIndex)("min",0)("step",1)("tickInterval",1)("value",t.customOpsSetting.currentSliderIndex)("disabled",t.disabled||!(null!=t.customOpsSetting&&t.customOpsSetting.maxIndex)),e.BMQ("aria-label",e.bMT(12,16,t.isDcMode?"ops.battery":"ops.performance")),e.R7$(2),e.Y8G("ngIf",!(null==(null==t.customOpsSetting?null:t.customOpsSetting.optimalIndex))&&(null==t.customOpsSetting?null:t.customOpsSetting.maxIndex))}}let Ca=(()=>{class a{constructor(t,i){this.loggingService=t,this.opsService=i,this.logger=this.loggingService.getLogger("nvapp/CustomOpsSliderComponent")}onSliderChange(t){this.customOpsSetting.currentSliderIndex=t.value,this.logger.info("slider changed with the index",this.customOpsSetting?.currentSliderIndex),this.opsService.sliderChanged(this.customOpsSetting?.selectedTweak,this.customOpsSetting?.currentSliderIndex)}static{this.\u0275fac=function(i){return new(i||a)(e.rXU(y.J6),e.rXU(le.s))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["nv-app-custom-ops-slider"]],inputs:{customOpsSetting:"customOpsSetting",disabled:"disabled",isDcMode:"isDcMode",isOptimized:"isOptimized"},decls:1,vars:1,consts:[["class","slider-setting-container geometry-bottom-rounded-lg",3,"ngClass",4,"ngIf"],[1,"slider-setting-container","geometry-bottom-rounded-lg",3,"ngClass"],[1,"slider-setting-indicator-marker","font-body3"],[1,"slider-setting"],[1,"material-icons",3,"svgIcon"],[1,"fixed-thumb-slider"],[1,"custom-ops-slider",3,"change","max","min","step","tickInterval","value","disabled"],["class","mat-slider-thumb-container-fixed",4,"ngIf"],["svgIcon","quality_high",1,"material-icons"],[1,"mat-slider-thumb-container-fixed"],[1,"mat-slider-thumb-fixed"],[1,"mat-slider-thumb-fixed-label","font-body3"]],template:function(i,n){1&i&&e.DNE(0,va,15,20,"div",0),2&i&&e.Y8G("ngIf",(null==n.customOpsSetting?null:n.customOpsSetting.maxIndex)>0)},dependencies:[p.YU,p.bT,j.An,Sa.N$,G.PW,v.D9],styles:[".slider-setting-container[_ngcontent-%COMP%]{--transform-translate-x-axis: 0%;--recommended-transform-translate-x-axis: 0%;display:flex;width:calc(100% - 32px);justify-content:space-between;align-items:center;flex-direction:column;padding:16px 16px 40px;gap:18px;background-color:var(--primary-850)}.slider-setting-container[_ngcontent-%COMP%] .slider-setting[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:34px;align-items:center;width:100%}.slider-setting-container[_ngcontent-%COMP%] .custom-ops-slider[_ngcontent-%COMP%]{width:100%}.slider-setting-container[_ngcontent-%COMP%] .custom-ops-slider[_ngcontent-%COMP%]:not(.mat-slider-disabled){cursor:pointer}.slider-setting-container[_ngcontent-%COMP%] .slider-setting-indicator-marker[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%}.slider-setting-container[_ngcontent-%COMP%] .fixed-thumb-slider[_ngcontent-%COMP%]{flex:1 0 auto;position:relative}.slider-setting-container[_ngcontent-%COMP%] .mat-slider-thumb-container-fixed[_ngcontent-%COMP%]{position:absolute;z-index:0;width:100%;height:0;top:50%;transform:translate(var(--recommended-transform-translate-x-axis));pointer-events:none}.slider-setting-container[_ngcontent-%COMP%] .mat-slider-thumb-fixed-label[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;position:absolute;width:120px;right:-60px;color:var(--primary-contrast-750);margin-top:18px}.slider-setting-container[_ngcontent-%COMP%] .mat-slider-thumb-fixed[_ngcontent-%COMP%]{position:absolute;box-sizing:border-box;right:-6px;width:11px;height:8px;top:10px;clip-path:polygon(50% 0,100% 100%,0 100%);transform:scale(1);background:var(--accent-500)}"],changeDetection:0})}}return a})();const ya=["onBatteryTabGroup"],wa=a=>({"ops-expansion-panel-disabled":a}),at=a=>({value:a});function Ma(a,r){if(1&a&&(e.j41(0,"span",12),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&a){const t=e.XpG(3);e.Y8G("ngClass",0===t.selectedTabIndex?"font-color-primary":"font-color-secondary"),e.R7$(),e.JRh(e.bMT(2,2,"ops.pluggedIn"))}}function xa(a,r){if(1&a&&(e.j41(0,"span",12),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&a){const t=e.XpG(3);e.Y8G("ngClass",1===t.selectedTabIndex?"font-color-primary":"font-color-secondary"),e.R7$(),e.JRh(e.bMT(2,2,"ops.onBattery"))}}function Oa(a,r){if(1&a){const t=e.RV6();e.qex(0),e.j41(1,"mat-tab-group",8,1),e.bIt("selectedTabChange",function(n){e.eBV(t);const s=e.XpG(2);return e.Njj(s.tabChanged(n))}),e.j41(3,"mat-tab"),e.DNE(4,Ma,3,4,"ng-template",9),e.j41(5,"div",10),e.eu8(6,11),e.k0s()(),e.j41(7,"mat-tab"),e.DNE(8,xa,3,4,"ng-template",9),e.j41(9,"div",10),e.eu8(10,11),e.k0s()()(),e.bVm()}if(2&a){const t=e.XpG(2),i=e.sdS(2);e.R7$(),e.Y8G("@.disabled",!0)("selectedIndex",t.selectedTabIndex),e.R7$(5),e.Y8G("ngTemplateOutlet",i),e.R7$(4),e.Y8G("ngTemplateOutlet",i)}}function Pa(a,r){if(1&a&&(e.j41(0,"div",6),e.DNE(1,Oa,11,4,"ng-container",7),e.k0s()),2&a){const t=e.XpG(),i=e.sdS(2);e.R7$(),e.Y8G("ngIf",t.bbSupportedAndEnabled)("ngIfElse",i)}}function Da(a,r){1&a&&e.nrm(0,"mat-progress-spinner",25),2&a&&e.Y8G("diameter",24)}function Va(a,r){1&a&&e.nrm(0,"mat-icon",26)}function Ga(a,r){if(1&a&&(e.qex(0),e.DNE(1,Da,1,1,"mat-progress-spinner",24)(2,Va,1,0,"ng-template",null,3,e.C5r),e.bVm()),2&a){const t=e.sdS(3),i=e.XpG(3);e.R7$(),e.Y8G("ngIf",i.opsLoadingState.includes(i.opsTabState))("ngIfElse",t)}}function Ia(a,r){1&a&&e.nrm(0,"mat-icon",29)}function Fa(a,r){1&a&&e.nrm(0,"mat-icon",30)}function Ta(a,r){if(1&a&&e.DNE(0,Ia,1,0,"mat-icon",27)(1,Fa,1,0,"mat-icon",28),2&a){const t=e.XpG(3);e.Y8G("ngIf",t.unOptimizationStates.includes(t.opsTabState)),e.R7$(),e.Y8G("ngIf",t.optimizationStates.includes(t.opsTabState))}}function Ra(a,r){if(1&a){const t=e.RV6();e.j41(0,"button",31),e.bIt("click",function(n){e.eBV(t);const s=e.XpG(3);return e.Njj(s.cancelInTransitState(n))})("keydown",function(n){e.eBV(t);const s=e.XpG(3);return e.Njj(s.cancelInTransitState(n))}),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"uppercase"),e.k0s()}if(2&a){const t=e.XpG(3);e.Y8G("disabled",t.disableControls),e.R7$(),e.SpI(" ",e.bMT(3,4,e.bMT(2,2,"common.cancel"))," ")}}function Ea(a,r){if(1&a){const t=e.RV6();e.j41(0,"button",32),e.nI1(1,"async"),e.nI1(2,"translate"),e.nI1(3,"uppercase"),e.bIt("click",function(n){e.eBV(t);const s=e.XpG(3);return e.Njj(s.optimizeSettings(n))})("keydown",function(n){e.eBV(t);const s=e.XpG(3);return e.Njj(s.optimizeSettings(n))}),e.k0s()}if(2&a){const t=e.XpG(3);e.Y8G("showSpinner",e.bMT(1,3,t.loadingSpinner$))("disabled",t.disableControls)("buttonText",e.bMT(3,7,e.bMT(2,5,"layout.apps.update")))}}function Na(a,r){if(1&a){const t=e.RV6();e.j41(0,"button",32),e.nI1(1,"async"),e.nI1(2,"translate"),e.nI1(3,"uppercase"),e.bIt("click",function(n){e.eBV(t);const s=e.XpG(3);return e.Njj(s.optimizeSettings(n))})("keydown",function(n){e.eBV(t);const s=e.XpG(3);return e.Njj(s.optimizeSettings(n))}),e.k0s()}if(2&a){const t=e.XpG(3);e.Y8G("showSpinner",e.bMT(1,3,t.loadingSpinner$))("disabled",t.disableControls)("buttonText",e.bMT(3,7,e.bMT(2,5,"ops.optimize")))}}function ka(a,r){if(1&a){const t=e.RV6();e.j41(0,"button",33),e.nI1(1,"async"),e.nI1(2,"translate"),e.nI1(3,"uppercase"),e.bIt("click",function(n){e.eBV(t);const s=e.XpG(3);return e.Njj(s.revertSettings(n))})("keydown",function(n){e.eBV(t);const s=e.XpG(3);return e.Njj(s.revertSettings(n))}),e.k0s()}if(2&a){const t=e.XpG(3);e.Y8G("showSpinner",e.bMT(1,3,t.loadingSpinner$))("disabled",t.disableControls)("buttonText",e.bMT(3,7,e.bMT(2,5,"ops.revert")))}}function ja(a,r){if(1&a&&(e.j41(0,"mat-icon",34),e.EFF(1,"chevron_up"),e.k0s()),2&a){const t=e.XpG(3);e.Y8G("svgIcon",t.panelOpenState?"chevron_up":"chevron_down")}}function Aa(a,r){if(1&a&&(e.j41(0,"mat-option",44),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&a){const t=e.XpG().$implicit;e.Y8G("value",t),e.R7$(),e.SpI(" ",e.i5U(2,2,"ops.recommendedSetting",e.eq3(5,at,t))," ")}}function Ua(a,r){if(1&a&&(e.j41(0,"mat-option",44),e.EFF(1),e.k0s()),2&a){const t=e.XpG().$implicit;e.Y8G("value",t),e.R7$(),e.SpI(" ",t," ")}}function Ba(a,r){if(1&a&&(e.qex(0),e.DNE(1,Aa,3,7,"mat-option",43)(2,Ua,2,2,"ng-template",null,4,e.C5r),e.bVm()),2&a){const t=r.$implicit,i=e.sdS(3),n=e.XpG(6);e.R7$(),e.Y8G("ngIf",n.customOpsSetting.resolution.optimal===t)("ngIfElse",i)}}function $a(a,r){if(1&a&&(e.j41(0,"mat-optgroup",41),e.nI1(1,"translate"),e.DNE(2,Ba,4,2,"ng-container",42),e.k0s()),2&a){const t=r.$implicit;e.Y8G("label",e.bMT(1,2,t.key)),e.R7$(2),e.Y8G("ngForOf",null==t?null:t.value)}}function La(a,r){if(1&a){const t=e.RV6();e.j41(0,"div",37)(1,"span",38),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"mat-select",39),e.nI1(5,"translate"),e.mxI("ngModelChange",function(n){e.eBV(t);const s=e.XpG(4);return e.DH7(s.customOpsSetting.selectedTweak.resolutionValue,n)||(s.customOpsSetting.selectedTweak.resolutionValue=n),e.Njj(n)}),e.bIt("selectionChange",function(){e.eBV(t);const n=e.XpG(4);return e.Njj(n.resolutionOrDisplayModeChanged())}),e.DNE(6,$a,3,4,"mat-optgroup",40),e.nI1(7,"keyvalue"),e.k0s()()}if(2&a){const t=e.XpG(4);e.R7$(2),e.SpI(" ",e.bMT(3,5,"ops.resolution")," "),e.R7$(2),e.R50("ngModel",t.customOpsSetting.selectedTweak.resolutionValue),e.Y8G("disabled",null==t.customOpsSetting||null==t.customOpsSetting.resolution?null:t.customOpsSetting.resolution.isDisabled),e.BMQ("aria-label",e.bMT(5,7,"ops.resolution")),e.R7$(2),e.Y8G("ngForOf",e.bMT(7,9,null==t.customOpsSetting||null==t.customOpsSetting.resolution?null:t.customOpsSetting.resolution.values))}}function za(a,r){if(1&a&&(e.j41(0,"mat-option",44),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&a){const t=e.XpG().$implicit;e.Y8G("value",t.valueName),e.R7$(),e.SpI(" ",e.i5U(2,2,"ops.recommendedSetting",e.eq3(5,at,null==t?null:t.valueTranslation))," ")}}function Xa(a,r){if(1&a&&(e.j41(0,"mat-option",44),e.EFF(1),e.k0s()),2&a){const t=e.XpG().$implicit;e.Y8G("value",t.valueName),e.R7$(),e.SpI(" ",null==t?null:t.valueTranslation," ")}}function Ya(a,r){if(1&a&&(e.qex(0),e.DNE(1,za,3,7,"mat-option",43)(2,Xa,2,2,"ng-template",null,4,e.C5r),e.bVm()),2&a){const t=r.$implicit,i=e.sdS(3),n=e.XpG(5);e.R7$(),e.Y8G("ngIf",n.customOpsSetting.displayMode.optimal===(null==t?null:t.valueName))("ngIfElse",i)}}function Ka(a,r){if(1&a){const t=e.RV6();e.j41(0,"div",37)(1,"span",38),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"mat-select",45),e.nI1(5,"translate"),e.mxI("ngModelChange",function(n){e.eBV(t);const s=e.XpG(4);return e.DH7(s.customOpsSetting.selectedTweak.displayModeValue,n)||(s.customOpsSetting.selectedTweak.displayModeValue=n),e.Njj(n)}),e.bIt("selectionChange",function(){e.eBV(t);const n=e.XpG(4);return e.Njj(n.resolutionOrDisplayModeChanged())}),e.DNE(6,Ya,4,2,"ng-container",42),e.k0s()()}if(2&a){const t=e.XpG(4);e.R7$(2),e.SpI(" ",e.bMT(3,5,"ops.displayMode")," "),e.R7$(2),e.R50("ngModel",t.customOpsSetting.selectedTweak.displayModeValue),e.Y8G("disabled",null==t.customOpsSetting||null==t.customOpsSetting.displayMode?null:t.customOpsSetting.displayMode.isDisabled),e.BMQ("aria-label",e.bMT(5,7,"ops.displayMode")),e.R7$(2),e.Y8G("ngForOf",t.customOpsSetting.displayMode.values)}}function qa(a,r){if(1&a&&(e.j41(0,"div",35),e.DNE(1,La,8,11,"div",36)(2,Ka,7,9,"div",36),e.k0s()),2&a){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",(null==t.customOpsSetting||null==t.customOpsSetting.resolution||null==t.customOpsSetting.resolution.values?null:t.customOpsSetting.resolution.values.size)>0),e.R7$(),e.Y8G("ngIf",(null==t.customOpsSetting||null==t.customOpsSetting.displayMode?null:t.customOpsSetting.displayMode.values.length)>0)}}function Ja(a,r){if(1&a){const t=e.RV6();e.j41(0,"mat-expansion-panel",15),e.bIt("opened",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.togglePanelState(!0))})("closed",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.togglePanelState(!1))}),e.j41(1,"mat-expansion-panel-header",16)(2,"div",17),e.DNE(3,Ga,4,2,"ng-container",7)(4,Ta,2,2,"ng-template",null,2,e.C5r),e.j41(6,"div",18),e.EFF(7),e.k0s(),e.DNE(8,Ra,4,6,"button",19)(9,Ea,4,9,"button",20)(10,Na,4,9,"button",20)(11,ka,4,9,"button",21)(12,ja,2,1,"mat-icon",22),e.k0s()(),e.DNE(13,qa,3,2,"div",23),e.k0s()}if(2&a){const t=e.sdS(5),i=e.XpG(2);e.Y8G("disabled",null==i.customOpsSetting?null:i.customOpsSetting.hideCustomOps)("ngClass",e.eq3(12,wa,null==i.customOpsSetting?null:i.customOpsSetting.hideCustomOps)),e.R7$(3),e.Y8G("ngIf",i.showWarningIcon)("ngIfElse",t),e.R7$(3),e.Y8G("isMultiLineEllipsis",!0),e.R7$(),e.SpI(" ",i.optimizationMessage," "),e.R7$(),e.Y8G("ngIf",i.stateInTransit),e.R7$(),e.Y8G("ngIf",i.stateInTransit&&i.optimizationStates.includes(i.opsTabState)),e.R7$(),e.Y8G("ngIf",null==i.customOpsSetting?null:i.customOpsSetting.showOptimize),e.R7$(),e.Y8G("ngIf",(null==i.customOpsSetting?null:i.customOpsSetting.showRevert)&&!i.stateInTransit),e.R7$(),e.Y8G("ngIf",!(null!=i.customOpsSetting&&i.customOpsSetting.hideCustomOps)),e.R7$(),e.Y8G("ngIf",!(null!=i.customOpsSetting&&i.customOpsSetting.hideCustomOps))}}function Ha(a,r){if(1&a&&e.nrm(0,"nv-app-custom-ops-slider",46),2&a){const t=e.XpG(2);e.Y8G("customOpsSetting",t.customOpsSetting)("disabled",t.disableControls)("isDcMode",t.isDcSettingSelected)("isOptimized",t.optimizationStates.includes(t.opsTabState))}}function Wa(a,r){if(1&a&&e.DNE(0,Ja,14,14,"mat-expansion-panel",13)(1,Ha,1,4,"nv-app-custom-ops-slider",14),2&a){const t=e.XpG();e.Y8G("ngIf",t.showOptimizationMessage&&t.customOpsSetting&&t.opsTabState),e.R7$(),e.Y8G("ngIf",!(null!=t.customOpsSetting&&t.customOpsSetting.hideCustomOps))}}let Qa=(()=>{class a{constructor(t,i,n,s,o,c,u){this.loggingService=t,this.opsService=i,this.opsUtilsService=n,this.renderer=s,this.changeDetector=o,this.performanceMeasureService=c,this.keyboardMappingService=u,this.optimizationStates=[T.lq.OPTIMIZED,T.lq.CUSTOMIZED],this.unOptimizationStates=[T.lq.UNOPTIMIZED],this.opsLoadingState=[T.eg.RecommendationsLoading],this.disableControls=!0,this.showOps=!1,this.selectedTabIndex=0,this.bbSupportedAndEnabled=!1,this.showWarningIcon=!1,this.isOpsStatusOverflow=!1,this.panelOpenState=!1,this.showOptimizationMessage=!1,this.restoreOptimalSliderPosition=!1,this.destroyRef=(0,e.WQX)(e.abz),this.logger=this.loggingService.getLogger("nvapp/OPSOptimizeControlComponent"),this.loadingSpinner=this.opsService.loadingSpinner}ngOnInit(){this.setDefaultCustomSetting(),this.listenToOpsState(),this.loadingSpinner$=this.loadingSpinner.getLoadingSpinner(),this.listenForDriverSettingSupportStates(),this.listenFor3dSettingsTabChange()}ngAfterContentChecked(){this.tabGroup?.realignInkBar(),this.applyOptimalThumbCss()}togglePanelState(t){this.panelOpenState=t}optimizeSettings(t){this.keyboardMappingService.isMouseOrKeyboardSpaceOrEnterEvent(t)&&(this.loadingSpinner.triggerLoadingIndicator(!0),t.stopImmediatePropagation(),t.preventDefault(),this.updateDisableControlState(!0),this.opsService.optimize(this.opsState,this.selectedProgram,this.opsState.currentSettingType,this.customOpsSetting.selectedTweak,this.customOpsSetting.currentSliderIndex).pipe((0,O.s)(1)).subscribe(()=>{this.opsService.updateStateInTransit(!1),this.logger.info(`optimize ${this.opsState.currentSettingType} success for program`,this.selectedProgram.shortName)},i=>{this.updateDisableControlState(!1),this.logger.error("Error while optimizeAC",i),this.loadingSpinner.triggerLoadingIndicator(!1),this.opsService.showToastMessage("ops.unableToUpdateGameSettings")}))}revertSettings(t){this.keyboardMappingService.isMouseOrKeyboardSpaceOrEnterEvent(t)&&(this.loadingSpinner.triggerLoadingIndicator(!0),t.stopImmediatePropagation(),t.preventDefault(),this.updateDisableControlState(!0),this.opsService.revert(this.selectedProgram,this.opsState.currentSettingType).pipe((0,O.s)(1)).subscribe(()=>{this.opsService.updateStateInTransit(!1),this.logger.info(`revert ${this.opsState.currentSettingType} success for program`,this.selectedProgram.shortName)},i=>{this.updateDisableControlState(!1),this.logger.error("Error while revert",i),this.loadingSpinner.triggerLoadingIndicator(!1),this.opsService.showToastMessage("ops.unableToUpdateGameSettings")}))}resolutionOrDisplayModeChanged(){this.updateDisableControlState(!0),this.restoreOptimalSliderPosition=this.customOpsSetting.currentSliderIndex===this.customOpsSetting.optimalIndex,this.opsService.resolutionOrDisplayModeChanged(this.customOpsSetting.selectedTweak,this.customOpsSetting.currentSliderIndex,!0)}cancelInTransitState(t){this.keyboardMappingService.isMouseOrKeyboardSpaceOrEnterEvent(t)&&(t?.stopImmediatePropagation(),t?.preventDefault(),this.updateDisableControlState(!0),this.opsState.stateInTransit=!1,this.opsService.updateStateInTransit(this.opsState.stateInTransit),this.stateInTransit=!1,this.customOpsSetting={...this.customOpsSetting,...this.updateSettingTweaksAndIndexes()},this.opsService.resolutionOrDisplayModeChanged(this.customOpsSetting.selectedTweak,this.customOpsSetting.currentSliderIndex,!1))}tabChanged(t){this.selectedTabIndex!==t.index?(this.selectedTabIndex=t.index,this.opsService.powerModeTabChanged(this.selectedTabIndex,this.selectedProgram)):this.logger.info(`${t.index} already selected for ${this.selectedProgram.shortName}`)}setOpsStatusOverflow(t){this.isOpsStatusOverflow=t}setDefaultCustomSetting(){this.defaultCustomOpsSetting={resolution:{values:new Map},displayMode:{values:[]},selectedTweak:this.opsState?.stateInTransit?this.customOpsSetting?.selectedTweak:null,showOptimize:!1,showRevert:!1,hideCustomOps:!0,currentSliderIndex:this.opsState?.stateInTransit?this.customOpsSetting?.currentSliderIndex:null}}listenToOpsState(){this.opsService.getSelectedProgramOpsState().pipe((0,D.pQ)(this.destroyRef)).subscribe(t=>t?(this.opsTabState=t.opsTabState,this.opsTabState?(this.performanceMeasureService.markNvAppPerformanceMarkers([A.mM.NvAppOpsDataFetchEnd,A.mM.NvAppOpsViewRenderStart],A.fR.Graphics),this.handleStateChanges(t),void this.performanceMeasureService.markNvAppPerformanceMarkers([A.mM.NvAppOpsViewRenderEnd],A.fR.Graphics)):(this.showOps=!1,void this.logger.info("No ops tab state found found"))):(this.showOps=!1,void this.logger.info("No state found")),t=>{this.performanceMeasureService.markNvAppPerformanceMarkers([A.mM.NvAppOpsDataFetchEnd,A.mM.NvAppOpsViewRenderStart,A.mM.NvAppOpsViewRenderEnd],A.fR.Graphics),this.logger.error(`Error while getting optimization message for localId ${this.selectedProgram?.shortName}`,t)})}listenFor3dSettingsTabChange(){this.opsService.getGraphicsSettingsTabChange().pipe((0,D.pQ)(this.destroyRef)).subscribe(()=>{this.stateInTransit&&this.cancelInTransitState()})}isWarningIcon(){return this.opsUtilsService.isWarningIcon(this.opsState)}checkIfStateInTransit(){const{resolutionValue:t,displayModeValue:i}=this.customOpsSetting?.optimizedTweaks??{},{resolutionValue:n,displayModeValue:s}=this.customOpsSetting?.selectedTweak??{};return t!==n||i!==s||this.customOpsSetting?.currentSliderIndex!==this.customOpsSetting?.optimizedIndex}refreshCustomSettings(){this.logger.info("refresh custom settings for game ",this.selectedProgram?.shortName),(this.isDcSettingSelected?this.opsState?.profileDC:this.opsState?.profileAC)?(this.customOpsSetting={...this.defaultCustomOpsSetting||{},resolution:this.getResolutionSetting(),displayMode:this.getDisplayModeSetting(),...this.updateButtonStates(),...this.updateSettingTweaksAndIndexes()},setTimeout(()=>{this.applyOptimalThumbCss()},0),this.updateDisableControlState(!1),this.changeDetector.detectChanges()):this.logger.error("getSliderSettings empty for game id "+this.selectedProgram.id)}getResolutionSetting(){const i=(this.isDcSettingSelected?this.opsState?.profileDC:this.opsState?.profileAC)?.sliderSettings,n=[...i?.resolutions??[]],s=this.opsUtilsService.getResolutionMap(n);return{values:s,optimal:n[i?.resolutionRecommendation]?.value,isDisabled:this.getResolutionDisabled(s)}}getResolutionDisabled(t){return t||(t=this.customOpsSetting?.resolution?.values),t?.size<=1&&Array.from(t?.values())?.[0]?.length<=1||this.disableControls}getDisplayModeSetting(){const i=(this.isDcSettingSelected?this.opsState?.profileDC:this.opsState?.profileAC)?.sliderSettings,n=this.opsService.getTranslationDataForCurrentLocale(this.opsState),s=this.opsUtilsService.getDisplayModeValues(n,i);return{values:s??[],optimal:s?.[i?.displayModeRecommendation]?.valueName??null,isDisabled:this.getDisplayModeDisabled(s)}}updateButtonStates(){const t=this.opsUtilsService.isDCSettingSelected(this.opsState)?T.bF.DC:T.bF.AC,i=this.opsUtilsService.isOptimizedOrCustomized(this.opsState,t),n=this.opsUtilsService.unableToRetrieveSettings(this.opsTabState),s=this.opsUtilsService.unableToShowOps(this.opsTabState);return{showOptimize:!i&&!n&&!s,showRevert:i&&!n&&!s,hideCustomOps:n||this.selectedProgram.isCreativeApp||s}}getDisplayModeDisabled(t){return t||(t=this.customOpsSetting?.displayMode?.values),t?.length<=1||this.disableControls}updateSettingTweaksAndIndexes(){const t=this.isDcSettingSelected?this.opsState?.profileDC:this.opsState?.profileAC,i=t?.targetPosition;let n=this.opsState?.stateInTransit?this.customOpsSetting?.selectedTweak:i?.tweak;return n||(this.logger.info("default slider settings applied since targetPosition not found"),n=this.opsUtilsService.getRecommendedDisplayModeResolution(t?.sliderSettings)),this.logger.info("custom setting updated with selected tweaks",n),{selectedTweak:{...n??{}},optimizedTweaks:this.opsState.stateInTransit?this.customOpsSetting?.optimizedTweaks:n,...this.updateSettingIndex(i?.settingsIndex)}}updateSettingIndex(t){const i={maxIndex:null,currentSliderIndex:this.opsState?.stateInTransit?this.customOpsSetting?.currentSliderIndex:null,optimalIndex:null,optimizedIndex:this.opsState?.stateInTransit?this.customOpsSetting?.optimizedIndex:null},n=this.opsUtilsService.prepareSettingsSpace(this.opsState),s=this.isDcSettingSelected?n?.recommendationDC:n?.recommendationAC;return i.maxIndex=n?.settingsSets?.length-1,i.optimalIndex=s?.recommendedIndex??null,this.opsState.stateInTransit?i.currentSliderIndex>i.maxIndex?i.currentSliderIndex=0:this.restoreOptimalSliderPosition&&(this.restoreOptimalSliderPosition=!1,null!==i.optimalIndex&&(i.currentSliderIndex=i.optimalIndex)):(i.currentSliderIndex=null===i.optimalIndex?0:i.optimalIndex,i.currentSliderIndex=t??i.currentSliderIndex),i.optimizedIndex=i.optimizedIndex??i.currentSliderIndex,this.logger.info("custom setting updated with indexes",i),i}applyOptimalThumbCss(){const t=document.querySelector(".slider-setting"),i=this.customOpsSetting?.optimalIndex,n=this.customOpsSetting?.maxIndex;t&&null!=n&&this.renderer.setProperty(t,"style",`--transform-translate-x-axis: ${(0===n?0:100/n)+"%"};\n --recommended-transform-translate-x-axis: ${100*((0===n?0:(i??this.customOpsSetting?.currentSliderIndex)/n)-1)+"%"}`)}updateDisableControlState(t){this.disableControls=t,this.customOpsSetting.resolution.isDisabled=this.getResolutionDisabled(),this.customOpsSetting.displayMode.isDisabled=this.getDisplayModeDisabled()}listenForDriverSettingSupportStates(){this.opsService.getDriverSettingsSupportState().pipe((0,D.pQ)(this.destroyRef)).subscribe(t=>{this.updateBatteryBoostSupportStates(t)})}updateBatteryBoostSupportStates(t){const i=t?.BatteryBoost.isSupported,n=t?.BatteryBoost.isEnabled;this.logger.info(`bbSupported ${i} bbEnabled ${n}`),this.bbSupportedAndEnabled=this.opsState&&i&&n&&!this.opsUtilsService.isDCDisabled(this.opsState)&&this.opsState.profileDC?.targetSettings?.length>0}handleStateChanges(t){this.opsState=t,this.opsState.stateInTransit=this.opsState.stateInTransit?this.checkIfStateInTransit():this.opsState.stateInTransit,this.opsService.updateStateInTransit(this.opsState.stateInTransit),this.stateInTransit=this.opsState.stateInTransit,this.selectedProgram=this.opsState.selectedProgram,this.selectedTabIndex=this.opsState.currentSettingType===T.bF.AC?0:1,this.isDcSettingSelected=this.opsUtilsService.isDCSettingSelected(this.opsState),this.showWarningIcon=this.isWarningIcon(),this.updateBatteryBoostSupportStates(this.opsService.supportStates),this.logger.info(`Optimization Tab State for ${this.selectedProgram?.shortName}`,this.opsTabState),this.optimizationMessage=this.opsService.getOptimizationMessage(this.opsState,this.opsTabState),this.logger.info(`Optimization Message for ${this.selectedProgram?.shortName}`,this.optimizationMessage),this.showOptimizationMessage=this.opsTabState!==T.Rw.DlssOverrideSupportedOpsNotSupported,this.setDefaultCustomSetting(),this.opsTabState!==T.eg.RecommendationsLoading&&this.opsTabState!==T.eg.UnInitialized&&this.opsTabState!==T.Rw.SystemUnsupported&&this.opsTabState!==T.Rw.ProgramUnsupported&&this.opsTabState!==T.Rw.DlssOverrideSupportedOpsNotSupported?this.refreshCustomSettings():this.customOpsSetting={...this.defaultCustomOpsSetting||{},...this.updateButtonStates()},this.showOps=!0}static{this.\u0275fac=function(i){return new(i||a)(e.rXU(y.J6),e.rXU(le.s),e.rXU(tt.H),e.rXU(e.sFG),e.rXU(e.gRc),e.rXU(be.M),e.rXU(ha.j))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["nv-app-ops-optimize-control"]],viewQuery:function(i,n){if(1&i&&e.GBs(ya,5),2&i){let s;e.mGM(s=e.lsd())&&(n.tabGroup=s.first)}},features:[e.Jv_([{provide:pe.JO,useValue:{overlayPanelClass:"ops-setting-select-panel-overlay"}}])],decls:3,vars:1,consts:[["customOpsExpansionPanel",""],["onBatteryTabGroup",""],["optimizeStatusIcon",""],["alertIcon",""],["noRecommended",""],["class","optimization-container geometry-bottom-rounded-lg",4,"ngIf"],[1,"optimization-container","geometry-bottom-rounded-lg"],[4,"ngIf","ngIfElse"],["mat-stretch-tabs","false",1,"ops-battery-ops-tabs",3,"selectedTabChange","selectedIndex"],["mat-tab-label",""],[1,"tab-content"],[3,"ngTemplateOutlet"],[1,"font-sub2",3,"ngClass"],["expanded","false","hideToggle","true","class","ops-expansion-panel",3,"disabled","ngClass","opened","closed",4,"ngIf"],[3,"customOpsSetting","disabled","isDcMode","isOptimized",4,"ngIf"],["expanded","false","hideToggle","true",1,"ops-expansion-panel",3,"opened","closed","disabled","ngClass"],[1,"expansion-panel-header","hig-button-overlay"],[1,"ops-header"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"font-body2","optimization-status","font-color-primary",3,"isMultiLineEllipsis"],["mat-button","","class","cancel-button",3,"disabled","click","keydown",4,"ngIf"],["mat-raised-button","","class","optimize-button mat-accent","nvAppTextButtonSpinner","",3,"showSpinner","disabled","buttonText","click","keydown",4,"ngIf"],["mat-button","","class","font-button2 revert-icon","nvAppTextButtonSpinner","",3,"showSpinner","disabled","buttonText","click","keydown",4,"ngIf"],["class","material-icons panel-header-chevron",3,"svgIcon",4,"ngIf"],["class","ops-setting-container",4,"ngIf"],["class","mat-accent","mode","indeterminate",3,"diameter",4,"ngIf","ngIfElse"],["mode","indeterminate",1,"mat-accent",3,"diameter"],["svgIcon","alert_circle",1,"font-color-secondary","custom-ops-status-icon"],["svgIcon","remove_circle","class","font-color-secondary custom-ops-status-icon",4,"ngIf"],["svgIcon","check_circle","class","optimized-icon custom-ops-status-icon",4,"ngIf"],["svgIcon","remove_circle",1,"font-color-secondary","custom-ops-status-icon"],["svgIcon","check_circle",1,"optimized-icon","custom-ops-status-icon"],["mat-button","",1,"cancel-button",3,"click","keydown","disabled"],["mat-raised-button","","nvAppTextButtonSpinner","",1,"optimize-button","mat-accent",3,"click","keydown","showSpinner","disabled","buttonText"],["mat-button","","nvAppTextButtonSpinner","",1,"font-button2","revert-icon",3,"click","keydown","showSpinner","disabled","buttonText"],[1,"material-icons","panel-header-chevron",3,"svgIcon"],[1,"ops-setting-container"],["class","ops-setting",4,"ngIf"],[1,"ops-setting"],[1,"ops-setting-header","font-body2"],["panelClass","mat-select-font-body2 mat-opt-group-font-sub2","disableOptionCentering","true",1,"mat-select-font-body2","mat-mdc-select-dark-background",3,"ngModelChange","selectionChange","ngModel","disabled"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],[4,"ngFor","ngForOf"],["class","ops-mat-select-option",3,"value",4,"ngIf","ngIfElse"],[1,"ops-mat-select-option",3,"value"],["panelClass","mat-select-font-body2",1,"mat-mdc-select-dark-background","mat-select-font-body2",3,"ngModelChange","selectionChange","ngModel","disabled"],[3,"customOpsSetting","disabled","isDcMode","isOptimized"]],template:function(i,n){1&i&&e.DNE(0,Pa,2,2,"div",5)(1,Wa,2,2,"ng-template",null,0,e.C5r),2&i&&e.Y8G("ngIf",n.showOps)},dependencies:[p.YU,p.Sq,p.bT,p.T3,ue.BC,ue.vS,I.iV,j.An,z.LG,pe.VO,xe.wT,xe.D7,it.GK,it.Z2,ee.ES,ee.mq,ee.T8,J.Aq,U.a,G.PW,fa.u,Ca,p.Jj,p.Pc,p.lG,v.D9],styles:["[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%], .optimization-container[_ngcontent-%COMP%] .optimization-status[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.optimization-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.optimization-container[_ngcontent-%COMP%] .optimization-status[_ngcontent-%COMP%]{margin-left:10px;flex:1 1 auto;margin-right:16px;-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box}.optimization-container[_ngcontent-%COMP%] .optimized-icon[_ngcontent-%COMP%]{color:var(--accent-500)}.optimization-container[_ngcontent-%COMP%] .ops-header[_ngcontent-%COMP%]{display:flex;align-items:center;flex:1 1 100%}.optimization-container[_ngcontent-%COMP%] .custom-ops-status-icon[_ngcontent-%COMP%]{flex-shrink:0}.optimization-container[_ngcontent-%COMP%] .optimize-button[_ngcontent-%COMP%], .optimization-container[_ngcontent-%COMP%] .revert-icon[_ngcontent-%COMP%], .optimization-container[_ngcontent-%COMP%] .cancel-button[_ngcontent-%COMP%]{margin-right:10px;cursor:pointer;min-width:-moz-fit-content;min-width:fit-content;height:36px;display:flex;align-items:center}.optimization-container[_ngcontent-%COMP%] .ops-setting-header[_ngcontent-%COMP%]{color:var(--primary-contrast-750);margin-bottom:6px}.optimization-container[_ngcontent-%COMP%] .ops-setting-container[_ngcontent-%COMP%]{display:flex;width:100%;gap:24px;padding-top:16px;margin-bottom:16px}.optimization-container[_ngcontent-%COMP%] .ops-setting[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column;width:100%}.optimization-container[_ngcontent-%COMP%] .ops-expansion-panel[_ngcontent-%COMP%]{border-radius:0;display:flex;width:100%;background:var(--primary-850);flex-direction:column;box-shadow:var(--ops-expansion-panel-box-shadow)}.optimization-container[_ngcontent-%COMP%] .ops-expansion-panel-disabled[_ngcontent-%COMP%]{border-radius:0 0 var(--geometry-border-radius-lg) var(--geometry-border-radius-lg)}.optimization-container[_ngcontent-%COMP%] .cancel-button[_ngcontent-%COMP%]{margin-right:8px}.expansion-panel-header[_ngcontent-%COMP%]{--mat-expansion-header-expanded-state-height: 52px;--mat-expansion-header-collapsed-state-height: 52px}.expansion-panel-header[_ngcontent-%COMP%] .panel-header-chevron[_ngcontent-%COMP%]{color:var(--primary-contrast-700);margin-right:0;flex:0 0 auto}.ops-expansion-panel-disabled[_ngcontent-%COMP%] .optimize-button[_ngcontent-%COMP%], .ops-expansion-panel-disabled[_ngcontent-%COMP%] .revert-icon[_ngcontent-%COMP%]{margin:0}"]})}}return a})(),Za=(()=>{class a{constructor(t,i,n,s,o){this.loggingService=t,this.dialogData=i,this.dialogRef=n,this.program3dSettingsService=s,this.manage3dSettingsUtilService=o,this.settingData={},this.minIntensityValue=k.el.minValue,this.maxIntensityValue=k.el.maxValue,this.intensityStepValue=k.el.stepValue,this.minSaturationValue=k.l3.minValue,this.maxSaturationValue=k.l3.maxValue,this.saturationStepValue=k.el.stepValue,this.isRadioButton=!1,this.isDirty=!1,this.showErrorToast=c=>{this.closeDialog(!1,!0),this.manage3dSettingsUtilService.showApplyErrorToastMessage(c),this.logger.error(c),this.ngOnInit()},this.logger=this.loggingService.getLogger("nvapp/FeatureAIDVCModalComponent")}ngOnInit(){this.settingData.isGlobalContext=this.dialogData?.isGlobalContext,this.settingData.featureName=this.dialogData?.featureName,this.selectedFeatureKey=this.dialogData?.enabledKey,this.intensitySliderValue=this.dialogData?.intensity,this.saturationSliderValue=this.dialogData?.saturation,this.isDisabled=this.dialogData?.isDisabled,this.settingData.featureEnum=this.dialogData?.aiDvcEnum,this.settingData.featureEnumKeys=this.dialogData?.aiDvcEnumKeys,this.settingData.featureGlobalValue=this.dialogData?.aiDvcSetting?.settingGlobalValue,this.underlyingGlobalValueText=this.dialogData?.aiDvcGlobalValueText,this.settingData.settingDefaultKey=this.dialogData?.aiDvcSetting?.settingDefaultKey}updateSelectedValue(t){this.selectedFeatureKey=t.selectedFeatureKey,this.isDisabled=this.selectedFeatureKey===l.AIDVCValueDisplayEnum.Off||this.selectedFeatureKey===l.DefaultGlobalEnum.UseGlobalKey,this.updateFeatureState(this.intensitySliderValue,this.saturationSliderValue)}onIntensityChanged(t){this.updateFeatureState(t,this.saturationSliderValue)}onSaturationChanged(t){this.updateFeatureState(this.intensitySliderValue,t)}onCancelClick(){this.closeDialog(!1,!1)}onApplyClick(){this.closeDialog(!0,!0),this.program3dSettingsService.applySingleSetting(this.updatedFeature).pipe((0,C.n)(()=>this.program3dSettingsService.refreshProgramSettings()),(0,O.s)(1)).subscribe(N.l,this.showErrorToast)}closeDialog(t,i){this.dialogRef.close({applyInProgress:t,needRefresh:i,featureCurrentValue:this.updatedFeature?.selectedFeatureValue})}updateFeatureState(t,i){const n=this.dialogData.aiDvcCurrentValue;let s={};this.selectedFeatureKey===l.DefaultGlobalEnum.UseGlobalKey?s={useGlobal:!0}:(s.enabled=this.selectedFeatureKey===l.AIDVCValueDisplayEnum.On,s.intensity=t,s.saturation=i),this.isDirty=!(0,w.isEqual)(s,n),this.updatedFeature={settingName:this.settingData.featureName,isDirty:this.isDirty,selectedFeatureValue:JSON.stringify(s),isAutoTrigger:!1}}static{this.\u0275fac=function(i){return new(i||a)(e.rXU(y.J6),e.rXU(h.Vh),e.rXU(h.CP),e.rXU($.g),e.rXU(F.f))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["nv-app-feature-ai-dvc-modal"]],decls:26,vars:41,consts:[[1,"common-modal"],["mat-dialog-title","",1,"font-header6","title"],[1,"content"],[3,"selectValue","settingData","selectedFeatureKey","isRadioButton","underLyingGlobalValue"],[1,"content-details",3,"ngClass"],[1,"slider-content"],[1,"font-body2","slider-title"],["formatTextAs","Integer","valueEntry","true",1,"common-slider",3,"valueChange","value","min","max","step","disabled","nvAppAnnouncer","associatedMessage"],["align","end",1,"actions"],["mat-button","",1,"cancel-button","font-button2",3,"click"],["mat-raised-button","",1,"apply-button","font-button2","mat-accent",3,"click","disabled"]],template:function(i,n){1&i&&(e.j41(0,"div",0)(1,"p",1),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"mat-dialog-content",2)(5,"nv-app-feature-radio-group",3),e.bIt("selectValue",function(o){return n.updateSelectedValue(o)}),e.k0s(),e.j41(6,"div",4)(7,"div",5)(8,"div",6),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"nv-hig-slider",7),e.nI1(12,"translate"),e.mxI("valueChange",function(o){return e.DH7(n.intensitySliderValue,o)||(n.intensitySliderValue=o),o}),e.bIt("valueChange",function(o){return n.onIntensityChanged(o)}),e.k0s()(),e.j41(13,"div",5)(14,"div",6),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.j41(17,"nv-hig-slider",7),e.nI1(18,"translate"),e.mxI("valueChange",function(o){return e.DH7(n.saturationSliderValue,o)||(n.saturationSliderValue=o),o}),e.bIt("valueChange",function(o){return n.onSaturationChanged(o)}),e.k0s()()()(),e.j41(19,"mat-dialog-actions",8)(20,"button",9),e.bIt("click",function(){return n.onCancelClick()}),e.EFF(21),e.nI1(22,"translate"),e.k0s(),e.j41(23,"button",10),e.bIt("click",function(){return n.onApplyClick()}),e.EFF(24),e.nI1(25,"translate"),e.k0s()()()),2&i&&(e.R7$(2),e.SpI(" ",e.bMT(3,27,"manage3dSettings."+(null==n.settingData?null:n.settingData.featureName)+".name")," "),e.R7$(3),e.Y8G("settingData",n.settingData)("selectedFeatureKey",n.selectedFeatureKey)("isRadioButton",!0)("underLyingGlobalValue",n.underlyingGlobalValueText),e.R7$(),e.Y8G("ngClass",n.isDisabled?"disabled":""),e.R7$(3),e.SpI(" ",e.bMT(10,29,"manage3dSettings."+(null==n.settingData?null:n.settingData.featureName)+".intensity")," "),e.R7$(2),e.R50("value",n.intensitySliderValue),e.Y8G("min",n.minIntensityValue)("max",n.maxIntensityValue)("step",n.intensityStepValue)("disabled",n.isDisabled)("nvAppAnnouncer",n.intensitySliderValue)("associatedMessage","manage3dSettings."+(null==n.settingData?null:n.settingData.featureName)+".intensity"),e.BMQ("aria-label",e.bMT(12,31,"manage3dSettings."+(null==n.settingData?null:n.settingData.featureName)+".intensity")),e.R7$(4),e.SpI(" ",e.bMT(16,33,"manage3dSettings."+(null==n.settingData?null:n.settingData.featureName)+".saturationBoost")," "),e.R7$(2),e.R50("value",n.saturationSliderValue),e.Y8G("min",n.minSaturationValue)("max",n.maxSaturationValue)("step",n.saturationStepValue)("disabled",n.isDisabled)("nvAppAnnouncer",n.saturationSliderValue)("associatedMessage","manage3dSettings."+(null==n.settingData?null:n.settingData.featureName)+".saturationBoost"),e.BMQ("aria-label",e.bMT(18,35,"manage3dSettings."+(null==n.settingData?null:n.settingData.featureName)+".saturationBoost")),e.R7$(4),e.SpI(" ",e.bMT(22,37,"save.cancel")," "),e.R7$(2),e.Y8G("disabled",!n.isDirty),e.R7$(),e.SpI(" ",e.bMT(25,39,"save.apply")," "))},dependencies:[p.YU,I.iV,h.BI,h.Yi,h.E7,ne.t,J.Aq,G.PW,ie.L,W,v.D9],styles:["[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]{height:48px;background-color:var(--primary-900);padding:0 16px}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]:hover{background-color:var(--feature-expansion-panel-menu-header-hover-bg-color)}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-drop-down[_ngcontent-%COMP%]{display:flex;align-items:center;height:inherit;flex:1;padding:0 8px}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%]{white-space:nowrap;width:100%;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value.is-loading[_ngcontent-%COMP%]{color:var(--primary-500)}.feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{white-space:nowrap;width:auto;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:inherit;position:relative}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%] mat-progress-spinner[_ngcontent-%COMP%]{position:absolute}.feature-expansion-panel-container[_ngcontent-%COMP%] .color-unset[_ngcontent-%COMP%]{color:unset}.feature-expansion-panel-container[_ngcontent-%COMP%]:focus{outline-offset:-2px}"]})}}return a})();const es=(a,r)=>({nvidiaSettingName:a,errors:r}),st=(a,r)=>({"font-sub2":a,"color-unset":r});function ts(a,r){1&a&&e.nrm(0,"mat-progress-spinner",10),2&a&&e.Y8G("diameter",20)}function ns(a,r){if(1&a&&(e.j41(0,"span",11),e.EFF(1),e.k0s()),2&a){const t=e.XpG();e.Y8G("ngClass",e.l_i(2,st,t.profileValueBold,t.aiDvcSetting.isGreyedOut)),e.R7$(),e.SpI(""," - "+t.aiDvcGlobalValueText," ")}}function is(a,r){1&a&&e.nrm(0,"mat-icon",12)}let as=(()=>{class a{constructor(t,i,n,s,o){this.loggingService=t,this.translateService=i,this.matDialog=n,this.manage3dSettingsUtilService=s,this.program3dSettingsService=o,this.intensity=k.el.defaultIntensity,this.saturation=k.l3.defaultSaturation,this.isFeatureOverflow=!1,this.isDisabled=!1,this.uiControlBusy=!1,this.showUiControlBusy=!1,this.currentValueBold=!1,this.profileValueBold=!1,this.isGlobalValueMissing=!1,this.logger=this.loggingService.getLogger("nvapp/FeatureAIDVCComponent")}ngOnInit(){this.aiDvcGlobalValueText=null,this.setAiDvcEnum(),this.initSelectedValues()}ngAfterViewInit(){this.savePreviousAppliedValues()}setFeatureOverflow(t){this.isFeatureOverflow=t}setAiDvcEnum(){this.featureSettingKey=this.featureName+g.lz,this.aiDvcCurrentValue=JSON.parse(this.aiDvcSetting?.[this.featureSettingKey]),this.aiDvcEnum=this.aiDvcSetting?.featureEnum,this.aiDvcEnumKeys=this.aiDvcSetting?.featureEnumKeys,this.defaultEnabled=this.aiDvcSetting?.settingDefaultKey.toString()}initSelectedValues(){if(this.isGlobalValueMissing=this.manage3dSettingsUtilService.isGlobalValueMissing(this.aiDvcSetting.settingGlobalValue,this.featureName),this.isGlobalValueMissing)return this.logger.info(`Global value is missing for feature ${this.featureName}`),void(this.displayValue=this.manage3dSettingsUtilService.getMissingGlobalValueDisplay());this.intensity=this.aiDvcCurrentValue?.intensity,this.saturation=this.aiDvcCurrentValue?.saturation;const t=!this.aiDvcCurrentValue?.enabled;this.isGlobalContext||(this.aiDvcSetting.settingDefaultKey=l.DefaultGlobalEnum.UseGlobalKey),this.aiDvcSetting.isUserModified=this.isGlobalContext?!1!==this.aiDvcCurrentValue?.enabled:!this.aiDvcCurrentValue?.useGlobal,this.aiDvcCurrentValue?.useGlobal?(this.enabledKey=l.DefaultGlobalEnum.UseGlobalKey,this.displayValue=this.translateService.instant("manage3dSettings."+this.featureName+".values.UseGlobal"),this.setGlobalValueText()):t?(this.enabledKey=l.AIDVCValueDisplayEnum.Off,this.displayValue=this.getDisabledText()):(this.enabledKey=l.AIDVCValueDisplayEnum.On,this.displayValue=this.getEnabledText()),this.isDisabled=t,this.updateBoldEffectForSetting()}openSettingsModal(){if(this.isGlobalValueMissing)return void this.manage3dSettingsUtilService.showMissingGlobalValueDialog(this.featureName,this.program3dSettingsService.getSelectedProfileInfo());if(this.uiControlBusy)return void(this.showUiControlBusy=!0);this.uiControlBusy=!0;const t=this.manage3dSettingsUtilService.getCommonDialogConfig();t.data={isGlobalContext:this.isGlobalContext,featureName:this.featureName,aiDvcSetting:this.aiDvcSetting,aiDvcEnum:this.aiDvcEnum,aiDvcEnumKeys:this.aiDvcEnumKeys,enabledKey:this.enabledKey,defaultEnabled:this.defaultEnabled,aiDvcCurrentValue:this.aiDvcCurrentValue,isDisabled:this.isDisabled,intensity:this.intensity,saturation:this.saturation,aiDvcGlobalValueText:this.aiDvcGlobalValueText},this.aiDvcDialogRef=this.matDialog.open(Za,t),this.aiDvcDialogRef.afterClosed().pipe((0,O.s)(1)).subscribe(i=>{i?.applyInProgress?(this.savePreviousAppliedValues(),this.aiDvcSetting[this.featureSettingKey]=i.featureCurrentValue,this.ngOnInit()):i?.needRefresh&&(this.getFromPreviousAppliedValues(),this.ngOnInit()),this.updateUiControlState(i?.applyInProgress||i?.needRefresh?g.uf:0)},i=>{this.logger.error(i)},()=>{this.updateUiControlState(g.uf)})}updateUiControlState(t){setTimeout(()=>{this.uiControlBusy=!1,this.showUiControlBusy=!1},t)}setGlobalValueText(){this.logger.info("Setting the global value for AIDVC"),this.transValueSub?.unsubscribe(),this.transValueSub=this.manage3dSettingsUtilService.resolveUseGlobalValue(!1,this.aiDvcSetting.featureEnum,this.aiDvcSetting.settingGlobalValue,this.featureName).pipe((0,O.s)(1)).subscribe(t=>{this.aiDvcGlobalValueText=t;const i=JSON.parse(this.aiDvcSetting?.settingGlobalValue?.[this.featureSettingKey]);this.intensity=i?.intensity,this.saturation=i?.saturation,this.profileValueBold=!1!==i?.enabled,this.aiDvcGlobalValueText=i?.enabled?this.getEnabledText():this.getDisabledText()})}getEnabledText(){return this.translateService.instant("manage3dSettings."+this.featureName+".intensityValue",{value:this.intensity})+", "+this.translateService.instant("manage3dSettings."+this.featureName+".saturationBoostValue",{value:this.saturation})}getDisabledText(){return this.translateService.instant("manage3dSettings."+this.featureName+".values.Off")}savePreviousAppliedValues(){this.aiDvcSettingOriginal=(0,w.cloneDeep)(this.aiDvcSetting)}getFromPreviousAppliedValues(){this.aiDvcSetting=(0,w.cloneDeep)(this.aiDvcSettingOriginal)}updateBoldEffectForSetting(){this.currentValueBold=!0!==this.aiDvcCurrentValue?.useGlobal}ngOnDestroy(){this.transValueSub?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||a)(e.rXU(y.J6),e.rXU(v.c$),e.rXU(h.bZ),e.rXU(F.f),e.rXU($.g))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["nv-app-feature-ai-dvc"]],inputs:{featureName:"featureName",aiDvcSetting:"aiDvcSetting",isGlobalContext:"isGlobalContext"},decls:14,vars:22,consts:[["nvAppSettingInfoIcon","","tabindex","0","role","button",1,"feature-expansion-panel-container","feature-expansion-panel-border",3,"keydown.enter","id","settingDetails"],[1,"mat-menu-header"],[1,"font-body2","header-title-text-container","setting-info-icon-container"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"font-body2","header-title-text"],[1,"loading-indicator-container"],["class","mat-accent","mode","indeterminate",3,"diameter",4,"ngIf"],["mat-button","","tabindex","-1",1,"font-body2","setting-drop-down","geometry-rounded-none-imp",3,"click","disabled"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"setting-value",3,"ngClass"],[3,"ngClass",4,"ngIf"],["class","material-icons","svgIcon","edit_settings",4,"ngIf"],["mode","indeterminate",1,"mat-accent",3,"diameter"],[3,"ngClass"],["svgIcon","edit_settings",1,"material-icons"]],template:function(i,n){1&i&&(e.j41(0,"div",0),e.nI1(1,"translate"),e.bIt("keydown.enter",function(){return n.openSettingsModal()}),e.j41(2,"div",1)(3,"div",2)(4,"label",3),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"div",4),e.DNE(8,ts,1,1,"mat-progress-spinner",5),e.j41(9,"button",6),e.bIt("click",function(){return n.openSettingsModal()}),e.j41(10,"div",7),e.EFF(11),e.DNE(12,ns,2,5,"span",8),e.k0s(),e.DNE(13,is,1,0,"mat-icon",9),e.k0s()()()()),2&i&&(e.qtP("aria-label","",e.bMT(1,12,"manage3dSettings."+n.featureName+".name")," ",n.displayValue+(n.aiDvcGlobalValueText?" - "+n.aiDvcGlobalValueText:""),""),e.FS9("id",n.featureName),e.Y8G("settingDetails",e.l_i(16,es,n.featureName,null==n.aiDvcSetting?null:n.aiDvcSetting.errorMessages)),e.R7$(5),e.SpI(" ",e.bMT(6,14,"manage3dSettings."+n.featureName+".name")," "),e.R7$(3),e.Y8G("ngIf",n.showUiControlBusy),e.R7$(),e.Y8G("disabled",n.aiDvcSetting.isGreyedOut),e.R7$(),e.Y8G("ngClass",e.l_i(19,st,n.currentValueBold,n.aiDvcSetting.isGreyedOut)),e.R7$(),e.SpI(" ",n.displayValue," "),e.R7$(),e.Y8G("ngIf",n.aiDvcGlobalValueText),e.R7$(),e.Y8G("ngIf",!n.aiDvcSetting.isGreyedOut))},dependencies:[p.YU,p.bT,I.iV,j.An,z.LG,U.a,G.PW,q.H,v.D9],styles:["[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]{height:48px;background-color:var(--primary-900);padding:0 16px}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]:hover{background-color:var(--feature-expansion-panel-menu-header-hover-bg-color)}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-drop-down[_ngcontent-%COMP%]{display:flex;align-items:center;height:inherit;flex:1;padding:0 8px}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%]{white-space:nowrap;width:100%;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value.is-loading[_ngcontent-%COMP%]{color:var(--primary-500)}.feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{white-space:nowrap;width:auto;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:inherit;position:relative}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%] mat-progress-spinner[_ngcontent-%COMP%]{position:absolute}.feature-expansion-panel-container[_ngcontent-%COMP%] .color-unset[_ngcontent-%COMP%]{color:unset}.feature-expansion-panel-container[_ngcontent-%COMP%]:focus{outline-offset:-2px}"]})}}return a})();const ss=["appSettings"],os=["appPreview"],rs=["scrollContainer"],ls=a=>({"fill-left-column":a}),gs=a=>({"empty-state-container":a});function cs(a,r){if(1&a){const t=e.RV6();e.j41(0,"div",15)(1,"nv-app-program-profiles",16),e.bIt("selectedProgramEmitter",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.getSelectedProgram(n))})("restoreAllProgramsEmitter",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.restoreProgram(!0,n))}),e.k0s(),e.nrm(2,"mat-divider",17),e.k0s()}if(2&a){const t=e.XpG();e.R7$(),e.Y8G("pageErrorIndicator",t.pageErrorIndicator),e.R7$(),e.Y8G("vertical",!0)}}function ds(a,r){1&a&&e.nrm(0,"mat-icon",31)}function us(a,r){if(1&a){const t=e.RV6();e.j41(0,"img",32),e.bIt("error",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.selectedProgram.images.GAME_ICON=null)}),e.k0s()}if(2&a){const t=e.XpG(2);e.Y8G("alt",null==t.selectedProgram?null:t.selectedProgram.displayName)("src",null==t.selectedProgram||null==t.selectedProgram.images?null:t.selectedProgram.images.GAME_ICON,e.B4B)}}function ps(a,r){if(1&a){const t=e.RV6();e.j41(0,"button",34),e.bIt("click",function(){e.eBV(t);const n=e.XpG(3);return e.Njj(n.launchApp())}),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"uppercase"),e.k0s()}2&a&&(e.R7$(),e.SpI(" ",e.bMT(3,3,e.bMT(2,1,"common.play"))," "))}function ms(a,r){if(1&a){const t=e.RV6();e.j41(0,"button",34),e.bIt("click",function(){e.eBV(t);const n=e.XpG(3);return e.Njj(n.launchApp())}),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"uppercase"),e.k0s()}2&a&&(e.R7$(),e.SpI(" ",e.bMT(3,3,e.bMT(2,1,"common.launch"))," "))}function hs(a,r){if(1&a&&(e.qex(0),e.DNE(1,ps,4,5,"button",33)(2,ms,4,5,"ng-template",null,4,e.C5r),e.bVm()),2&a){const t=e.sdS(3),i=e.XpG(2);e.R7$(),e.Y8G("ngIf",!(null!=i.selectedProgram&&i.selectedProgram.isCreativeApp))("ngIfElse",t)}}function fs(a,r){if(1&a){const t=e.RV6();e.j41(0,"button",29),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.hideProgram(!0))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&a&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"manage3dSettings.hide")," "))}function Ss(a,r){if(1&a){const t=e.RV6();e.j41(0,"button",29),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.hideProgram(!1))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&a&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"manage3dSettings.unhide")," "))}function _s(a,r){if(1&a){const t=e.RV6();e.j41(0,"button",29),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.removeProgram())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&a&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"manage3dSettings.remove")," "))}function bs(a,r){if(1&a){const t=e.RV6();e.j41(0,"div",18,2)(2,"div",19)(3,"div",20)(4,"div",21),e.DNE(5,ds,1,0,"mat-icon",22)(6,us,1,2,"img",23),e.k0s(),e.j41(7,"div",24)(8,"div",25),e.EFF(9),e.k0s()()(),e.DNE(10,hs,4,2,"ng-container",14),e.j41(11,"button",26)(12,"mat-icon",27),e.EFF(13,"more_vert"),e.k0s()(),e.j41(14,"mat-menu",28,3)(16,"button",29),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.openFileLocation())}),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.DNE(19,fs,3,3,"button",30)(20,Ss,3,3,"button",30)(21,_s,3,3,"button",30),e.k0s()()()}if(2&a){const t=e.sdS(15),i=e.XpG();e.R7$(5),e.Y8G("ngIf",!(null!=i.selectedProgram&&null!=i.selectedProgram.images&&i.selectedProgram.images.GAME_ICON)),e.R7$(),e.Y8G("ngIf",null==i.selectedProgram||null==i.selectedProgram.images?null:i.selectedProgram.images.GAME_ICON),e.R7$(3),e.JRh(null==i.selectedProgram?null:i.selectedProgram.displayName),e.R7$(),e.Y8G("ngIf",!(null!=i.selectedProgram&&i.selectedProgram.isManuallyAdded)),e.R7$(),e.Y8G("matMenuTriggerFor",t),e.BMQ("aria-label",null==i.selectedProgram?null:i.selectedProgram.displayName),e.R7$(6),e.SpI(" ",e.bMT(18,10,"common.openFolder")," "),e.R7$(2),e.Y8G("ngIf",!(null!=i.selectedProgram&&i.selectedProgram.isHidden)&&i.showHideProgramButton),e.R7$(),e.Y8G("ngIf",(null==i.selectedProgram?null:i.selectedProgram.isHidden)&&i.showHideProgramButton),e.R7$(),e.Y8G("ngIf",null==i.selectedProgram?null:i.selectedProgram.isManuallyAdded)}}function vs(a,r){1&a&&(e.j41(0,"div",35),e.nrm(1,"nv-app-ops-optimize-control"),e.k0s())}function Cs(a,r){1&a&&(e.j41(0,"div",36),e.nrm(1,"mat-progress-spinner",37),e.k0s()),2&a&&(e.R7$(),e.Y8G("diameter",24))}function ys(a,r){1&a&&e.nrm(0,"nv-app-ops-settings")}function ws(a,r){if(1&a){const t=e.RV6();e.j41(0,"div",42)(1,"div",43),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"button",44),e.nI1(5,"translate"),e.nI1(6,"translate"),e.nI1(7,"async"),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.restoreProgram(!1))}),e.EFF(8),e.nI1(9,"translate"),e.k0s()()}if(2&a){const t=e.XpG(2);e.Y8G("ngClass",t.isOptimizationUnableToRetrieve?"ops-unavailable":""),e.R7$(2),e.SpI(" ",e.bMT(3,7,"manage3dSettings.subTitle")," "),e.R7$(2),e.qtP("aria-label","",e.bMT(5,9,"manage3dSettings.subTitle")," ",e.bMT(6,11,"manage3dSettings.restoreProgram.buttonText"),""),e.Y8G("disabled",e.bMT(7,13,t.applyInProgressObs)),e.R7$(4),e.SpI(" ",e.bMT(9,15,"manage3dSettings.restoreProgram.buttonText")," ")}}function Ms(a,r){1&a&&(e.nrm(0,"mat-icon",47),e.nI1(1,"translate")),2&a&&e.BMQ("aria-label",e.bMT(1,1,"ops.unableToRetrieveSettings"))}function xs(a,r){if(1&a&&(e.qex(0),e.DNE(1,Ms,2,3,"mat-icon",46),e.j41(2,"span"),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.bVm()),2&a){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",null==t.pageErrorIndicator?null:t.pageErrorIndicator.isLocalGameError),e.R7$(2),e.SpI(" ",e.bMT(4,2,"ops.unableToRetrieveSettings")," ")}}function Os(a,r){1&a&&(e.qex(0),e.nrm(1,"mat-icon",48),e.j41(2,"span",49),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.bVm()),2&a&&(e.R7$(3),e.SpI(" ",e.bMT(4,1,"manage3dSettings.zeroSettingsOnFilter")," "))}function Ps(a,r){if(1&a&&(e.j41(0,"div",45),e.DNE(1,xs,5,4,"ng-container",14)(2,Os,5,3,"ng-container",14),e.k0s()),2&a){const t=e.XpG(2);e.Y8G("ngClass",null==t.pageErrorIndicator||!t.pageErrorIndicator.isNvcplError||null!=t.pageErrorIndicator&&t.pageErrorIndicator.isLocalGameError?"font-sub1":"settings-load-error font-body2"),e.R7$(),e.Y8G("ngIf",(null==t.pageErrorIndicator?null:t.pageErrorIndicator.isNvcplError)||(null==t.pageErrorIndicator?null:t.pageErrorIndicator.isLocalGameError)),e.R7$(),e.Y8G("ngIf",!(null!=t.pageErrorIndicator&&t.pageErrorIndicator.isLocalGameError)&&!(null!=t.pageErrorIndicator&&t.pageErrorIndicator.isNvcplError)&&t.showConfigureMessage)}}function Ds(a,r){if(1&a&&e.nrm(0,"nv-app-feature-image-sharpening",54),2&a){const t=e.XpG(2).$implicit,i=e.XpG(2);e.Y8G("featureName",null==t?null:t.settingName)("featureSettingObject",null==t?null:t.settingValue)("sharpenSettingObject",null==i.sharpenSetting?null:i.sharpenSetting.settingValue)("noiseGrainSettingObject",null==i.noiseGrainSetting?null:i.noiseGrainSetting.settingValue)("isGlobalContext",!1)}}function Vs(a,r){if(1&a&&(e.qex(0),e.DNE(1,Ds,1,5,"nv-app-feature-image-sharpening",53),e.bVm()),2&a){const t=e.XpG().$implicit;e.R7$(),e.Y8G("ngIf",null==t||null==t.settingValue||null==t.settingValue.SettingInfo?null:t.settingValue.SettingInfo.isSupported)}}function Gs(a,r){if(1&a&&e.nrm(0,"nv-app-feature-max-frame-rate",56),2&a){const t=e.XpG(2).$implicit,i=e.XpG(2);e.Y8G("featureName",null==t?null:t.settingName)("featureSettingObject",null==t?null:t.settingValue)("isGlobalContext",!1)("maxFrameRateFPSObject",null==i.maxFrameRateFPSSetting?null:i.maxFrameRateFPSSetting.settingValue)}}function Is(a,r){if(1&a&&(e.qex(0),e.DNE(1,Gs,1,4,"nv-app-feature-max-frame-rate",55),e.bVm()),2&a){const t=e.XpG().$implicit;e.R7$(),e.Y8G("ngIf",null==t||null==t.settingValue||null==t.settingValue.SettingInfo?null:t.settingValue.SettingInfo.isSupported)}}function Fs(a,r){1&a&&e.eu8(0)}function Ts(a,r){if(1&a&&e.nrm(0,"nv-app-feature-ai-dvc",58),2&a){const t=e.XpG(2).$implicit;e.Y8G("featureName",null==t?null:t.settingName)("aiDvcSetting",null==t?null:t.settingValue)("isGlobalContext",!1)}}function Rs(a,r){if(1&a&&(e.qex(0),e.DNE(1,Ts,1,3,"nv-app-feature-ai-dvc",57),e.bVm()),2&a){const t=e.XpG().$implicit;e.R7$(),e.Y8G("ngIf",null==t||null==t.settingValue||null==t.settingValue.SettingInfo?null:t.settingValue.SettingInfo.isSupported)}}function Es(a,r){if(1&a&&e.nrm(0,"nv-app-feature-image-scaling",60),2&a){const t=e.XpG(2).$implicit,i=e.XpG(2);e.Y8G("featureName",null==t?null:t.settingName)("imageScalingSetting",null==t?null:t.settingValue)("localId",null==i.selectedProgram?null:i.selectedProgram.localId)("isGlobalContext",!1)}}function Ns(a,r){if(1&a&&(e.qex(0),e.DNE(1,Es,1,4,"nv-app-feature-image-scaling",59),e.bVm()),2&a){const t=e.XpG().$implicit;e.R7$(),e.Y8G("ngIf",(null==t||null==t.settingValue||null==t.settingValue.SettingInfo?null:t.settingValue.SettingInfo.isSupported)&&!(null!=t&&null!=t.settingValue&&t.settingValue.isGreyedOut))}}function ks(a,r){if(1&a&&e.nrm(0,"nv-app-feature-dlss-models",63),2&a){const t=e.XpG(4);e.Y8G("superResolutionSetting",null==t.superResolutionSetting?null:t.superResolutionSetting.settingValue)("rayReconstructionSetting",null==t.rayReconstructionSetting?null:t.rayReconstructionSetting.settingValue)("frameGenerationSetting",null==t.frameGenerationSetting?null:t.frameGenerationSetting.settingValue)("dlssModelPresetProfileSetting",null==t.dlssModelPresetProfileSetting?null:t.dlssModelPresetProfileSetting.settingValue)("localApplication",t.selectedProgram)("profileName",null==t.selectedProgram?null:t.selectedProgram.displayName)("isGlobalContext",!1)}}function js(a,r){if(1&a&&e.nrm(0,"nv-app-manage-3d-setting-feature",64),2&a){const t=e.XpG(2).$implicit,i=e.XpG(2);e.Y8G("featureName",null==t?null:t.settingName)("featureSettingObject",null==t?null:t.settingValue)("isGlobalContext",!1)("localApplication",i.selectedProgram)}}function As(a,r){if(1&a&&(e.qex(0),e.DNE(1,ks,1,7,"nv-app-feature-dlss-models",61)(2,js,1,4,"nv-app-manage-3d-setting-feature",62),e.bVm()),2&a){const t=e.XpG().$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngIf",i.isDlssSettingsAvailable&&i.selectedProgram),e.R7$(),e.Y8G("ngIf",i.isDlssSettingsAvailable&&(null==t||null==t.settingValue||null==t.settingValue.SettingInfo?null:t.settingValue.SettingInfo.isSupported))}}function Us(a,r){if(1&a&&e.nrm(0,"nv-app-manage-3d-setting-feature",64),2&a){const t=e.XpG(2).$implicit,i=e.XpG(2);e.Y8G("featureName",null==t?null:t.settingName)("featureSettingObject",null==t?null:t.settingValue)("isGlobalContext",!1)("localApplication",i.selectedProgram)}}function Bs(a,r){if(1&a&&e.nrm(0,"nv-app-manage-3d-setting-feature",64),2&a){const t=e.XpG(4);e.Y8G("featureName",null==t.lowLatencyModeSetting?null:t.lowLatencyModeSetting.settingName)("featureSettingObject",null==t.lowLatencyModeSetting?null:t.lowLatencyModeSetting.settingValue)("isGlobalContext",!1)("localApplication",t.selectedProgram)}}function $s(a,r){if(1&a&&(e.qex(0),e.DNE(1,Us,1,4,"nv-app-manage-3d-setting-feature",62)(2,Bs,1,4,"nv-app-manage-3d-setting-feature",62),e.bVm()),2&a){const t=e.XpG().$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngIf",(null==t||null==t.settingValue||null==t.settingValue.SettingInfo?null:t.settingValue.SettingInfo.isSupported)&&i.isFgxSettingsAvailable),e.R7$(),e.Y8G("ngIf",null==i.lowLatencyModeSetting||null==i.lowLatencyModeSetting.settingValue||null==i.lowLatencyModeSetting.settingValue.SettingInfo?null:i.lowLatencyModeSetting.settingValue.SettingInfo.isSupported)}}function Ls(a,r){if(1&a&&e.nrm(0,"nv-app-manage-3d-setting-feature",64),2&a){const t=e.XpG(2).$implicit,i=e.XpG(2);e.Y8G("featureName",null==t?null:t.settingName)("featureSettingObject",null==t?null:t.settingValue)("isGlobalContext",!1)("localApplication",i.selectedProgram)}}function zs(a,r){if(1&a&&(e.qex(0),e.DNE(1,Ls,1,4,"nv-app-manage-3d-setting-feature",62),e.bVm()),2&a){const t=e.XpG().$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngIf",(null==t||null==t.settingValue||null==t.settingValue.SettingInfo?null:t.settingValue.SettingInfo.isSupported)&&!i.legacyProfileSettings.has(null==t?null:t.settingName))}}function Xs(a,r){if(1&a&&(e.j41(0,"div"),e.qex(1,50),e.DNE(2,Vs,2,1,"ng-container",51)(3,Is,2,1,"ng-container",51)(4,Fs,1,0,"ng-container",51)(5,Rs,2,1,"ng-container",51)(6,Ns,2,1,"ng-container",51)(7,As,3,2,"ng-container",51)(8,$s,3,2,"ng-container",51)(9,zs,2,1,"ng-container",52),e.bVm(),e.k0s()),2&a){const t=r.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngSwitch",null==t?null:t.settingName),e.R7$(),e.Y8G("ngSwitchCase",i.staticSliderSettings.ImageSharpeningToggle),e.R7$(),e.Y8G("ngSwitchCase",i.staticSliderSettings.MaxFrameRate),e.R7$(),e.Y8G("ngSwitchCase",i.hiddenProgramSettings.includes(null==t?null:t.settingName)?null==t?null:t.settingName:""),e.R7$(),e.Y8G("ngSwitchCase",i.jsonTypeSettings.AIDVC),e.R7$(),e.Y8G("ngSwitchCase",i.jsonTypeSettings.ImageScaling),e.R7$(),e.Y8G("ngSwitchCase",i.jsonTypeSettings.DLSSMF),e.R7$(),e.Y8G("ngSwitchCase",i.jsonTypeSettings.FGX)}}function Ys(a,r){if(1&a&&e.nrm(0,"nv-app-feature-max-frame-rate",66),2&a){const t=e.XpG(2).$implicit,i=e.XpG(2);e.Y8G("featureName",null==t?null:t.settingName)("featureSettingObject",null==t?null:t.settingValue)("isGlobalContext",!1)("maxFrameRateFPSObject",null==i.backgroundAppMaxFrameRateFPSSetting?null:i.backgroundAppMaxFrameRateFPSSetting.settingValue)("isBackgroundAppMaxFrameRate",!0)}}function Ks(a,r){if(1&a&&(e.qex(0),e.DNE(1,Ys,1,5,"nv-app-feature-max-frame-rate",65),e.bVm()),2&a){const t=e.XpG().$implicit;e.R7$(),e.Y8G("ngIf",null==t||null==t.settingValue||null==t.settingValue.SettingInfo?null:t.settingValue.SettingInfo.isSupported)}}function qs(a,r){if(1&a&&e.nrm(0,"nv-app-manage-3d-setting-feature",64),2&a){const t=e.XpG(2).$implicit,i=e.XpG(2);e.Y8G("featureName",null==t?null:t.settingName)("featureSettingObject",null==t?null:t.settingValue)("isGlobalContext",!1)("localApplication",i.selectedProgram)}}function Js(a,r){if(1&a&&(e.qex(0),e.DNE(1,qs,1,4,"nv-app-manage-3d-setting-feature",62),e.bVm()),2&a){const t=e.XpG().$implicit;e.R7$(),e.Y8G("ngIf",null==t||null==t.settingValue||null==t.settingValue.SettingInfo?null:t.settingValue.SettingInfo.isSupported)}}function Hs(a,r){if(1&a&&(e.qex(0)(1,50),e.DNE(2,Ks,2,1,"ng-container",51)(3,Js,2,1,"ng-container",52),e.bVm()()),2&a){const t=r.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngSwitch",null==t?null:t.settingName),e.R7$(),e.Y8G("ngSwitchCase",i.staticSliderSettings.BackgroundAppMaxFrameRate)}}function Ws(a,r){if(1&a&&(e.qex(0),e.DNE(1,ys,1,0,"nv-app-ops-settings",14)(2,ws,10,17,"div",38)(3,Ps,3,3,"div",39)(4,Xs,10,8,"div",40),e.j41(5,"nv-downward-expansion-panel",41),e.nI1(6,"async"),e.DNE(7,Hs,4,2,"ng-container",40),e.k0s(),e.bVm()),2&a){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.selectedProgram&&t.opsEnabled),e.R7$(),e.Y8G("ngIf",t.profileSettingsInfoArray.length>0),e.R7$(),e.Y8G("ngIf",0===t.profileSettingsInfoArray.length&&!t.isLoading),e.R7$(),e.Y8G("ngForOf",t.profileSettingsInfoArray),e.R7$(),e.Y8G("title","manage3dSettings.legacySettings")("isFullyCollapsible",!0)("itemsToDisplay",t.legacyProfileSettingsInfoArray)("isExpanded",e.bMT(6,9,t.isLegacySettingsExpanded$)),e.R7$(2),e.Y8G("ngForOf",t.legacyProfileSettingsInfoArray)}}let Qs=(()=>{class a{constructor(t,i,n,s,o,c,u,f,m,_,P,M,x,E){this.loggingService=t,this.program3dSettingsService=i,this.appConfig=n,this.opsService=s,this.manage3dSettingsUtilService=o,this.appListService=c,this.errorHandlerService=u,this.scanApiService=f,this.performanceMeasureService=m,this.manage3dSettingsTelemetryService=_,this.fingerPrintAndDRSProgramsService=P,this.renderer=M,this.routerHandlerService=x,this.scrollHighlightService=E,this.profileSettingsInfoArray=[],this.isLoading=!0,this.isOpsLoading=!0,this.settingsDirty=!1,this.staticSliderSettings=l.StaticSliderSettings,this.legacyProfileSettings=new Set(Object.values(l.LegacySettings)),this.legacyProfileSettingsInfoArray=[],this.dynamicSettings=l.DynamicSettings,this.opsEnabled=!1,this.jsonTypeSettings=l.JsonTypeSettings,this.hiddenProgramSettings=[this.staticSliderSettings.WhisperModeProgram,this.jsonTypeSettings.DLSSFG,this.jsonTypeSettings.DLSSRR,this.dynamicSettings.LowLatencyMode,this.jsonTypeSettings.DLSSModelPresetProfile],this.isDlssSettingsAvailable=!1,this.pageHighlightSection=Re.kA.Program,this.isFgxSettingsAvailable=!1,this.selectedProfileInfo={},this.showHideProgramButton=!0,this.showConfigureMessage=!1,this.isOptimizationUnableToRetrieve=!1,this.destroyRef=(0,e.WQX)(e.abz),this.superResolutionSettingKey=`${l.JsonTypeSettings.DLSSSR}${g.lz}`,this.rayReconstructionSettingKey=`${l.JsonTypeSettings.DLSSRR}${g.lz}`,this.frameGenerationSettingKey=`${l.JsonTypeSettings.DLSSFG}${g.lz}`,this.dlssModelPresetProfileSettingKey=`${l.JsonTypeSettings.DLSSModelPresetProfile}${g.lz}`,this.fgxSettingKey=`${l.JsonTypeSettings.FGX}${g.lz}`,this.opsEnabled=n.featureEnablement.ops?.enabled,this.logger=this.loggingService.getLogger("nvapp/ProgramSettingsComponent"),this.opsService.setOpsLoading(!0),this.isLegacySettingsExpanded$=this.manage3dSettingsUtilService.getLegacySettingsExpanded()}ngOnInit(){this.updatePerfMarker(!0),this.registerScanInitiatedListener(),this.selectedProfileInfo.applicationId=0,this.registerSettingsUpdatesListener(),this.registerOpsSettingsLoadingListener(),this.updatedSettingsFromCache(),this.listenApplyInProgress()}ngAfterViewInit(){this.addScrollListener()}updatePerfMarker(t,i){this.performanceMeasureService.markNvAppPerformanceMarkers(t?[A.mM.NvAppGraphicsRouteNavigationEnd,A.mM.NvAppGraphicsDataFetchStart]:i?[A.mM.NvAppProgramSettingDataFetchEnd]:[A.mM.NvAppProgramSettingDataFetchEnd,A.mM.NvAppOpsViewRenderEnd],A.fR.Graphics)}listenApplyInProgress(){this.applyInProgressObs=this.program3dSettingsService.getApplyInProgress()}updatedSettingsFromCache(){const t=this.program3dSettingsService.getCachedSettings(this.selectedProgram?.drsProfileName);t?([this.profileSettingsInfoArray,[this.sharpenSetting,this.noiseGrainSetting,this.maxFrameRateFPSSetting,this.backgroundAppMaxFrameRateFPSSetting,this.lowLatencyModeSetting,this.superResolutionSetting,this.rayReconstructionSetting,this.frameGenerationSetting,this.fgxSetting,this.dlssModelPresetProfileSetting]]=t,this.isLoading=!1):this.isLoading=!0}registerOpsSettingsLoadingListener(){this.getOpsSettingLoadingSubscription?.unsubscribe(),this.getOpsSettingLoadingSubscription=this.opsService.getOpsLoading().subscribe(t=>{this.isOpsLoading=t,this.selectedProgram&&(this.isOptimizationUnableToRetrieve=this.selectedProgram?.dlssOverrideNoOps,this.logger.info(`dlssOverrideNoOps for ${this.selectedProgram.shortName}`,this.isOptimizationUnableToRetrieve,this.selectedProgram.opsTabState))},()=>{this.isOpsLoading=!0})}filterAndCurateSettings(t){this.filterCuratedSettings(t);const i=this.program3dSettingsService.getVisibleProfileSettings(t);this.profileSettingsInfoArray=this.program3dSettingsService.selectiveSettingUpdate(this.profileSettingsInfoArray,i),this.legacyProfileSettingsInfoArray=this.program3dSettingsService.getLegacySettings(this.profileSettingsInfoArray)}registerSettingsUpdatesListener(){this.program3dSettingsService.getProfileSettingsInfo().pipe((0,se.p)(t=>t.length>0),(0,ge.c)(0),(0,D.pQ)(this.destroyRef)).subscribe(t=>{this.filterAndCurateSettings(t),this.selectedProgram?.drsProfileName&&this.program3dSettingsService.updateCachedSettings(this.selectedProgram.drsProfileName,this.profileSettingsInfoArray,[this.sharpenSetting,this.noiseGrainSetting,this.maxFrameRateFPSSetting,this.backgroundAppMaxFrameRateFPSSetting,this.lowLatencyModeSetting,this.superResolutionSetting,this.rayReconstructionSetting,this.frameGenerationSetting,this.fgxSetting,this.dlssModelPresetProfileSetting]),t.length>0&&(this.isLoading=!1),this.routerHandlerService.didNavigateFromSearchResults()||this.program3dSettingsService.scrollSettingIntoView(),this.updatePerfMarker(!1,!!this.selectedProgram),this.selectedProgram&&!this.isLoading&&this.routerHandlerService.didNavigateFromSearchResults()&&setTimeout(()=>this.scrollHighlightService.performScrollHighlight(this.appSettingsContainer.nativeElement,this.pageHighlightSection,!1))},t=>{this.logger.error("Error refreshing 3d program settings:",t),this.isLoading=!1,this.updatePerfMarker(!1,!!this.selectedProgram)})}registerScanInitiatedListener(){this.scanApiService.getScanInitiated().pipe((0,D.pQ)(this.destroyRef)).subscribe(t=>{null!==t&&(this.isScanInitiated=t,this.isLoading=this.isScanInitiated)})}getSelectedProgram(t){if(this.refreshProgramSettingSub?.unsubscribe(),!t)return this.clearSettings(),this.isScanInitiated||(this.isLoading=!1),this.selectedProgram=null,void this.updatePerfMarker(!1,!!t);this.routerHandlerService.didNavigateFromSearchResults()||this.scrollToTop(),this.selectedProgram=t,this.opsService.setOpsLoading(!0),t?.drsProfileName?(this.logger.info(`Loading program settings for ${t.drsProfileName} ..`),this.selectedProfileInfo.profileName=t.drsProfileName,this.selectedProfileInfo.cmsId=t.cmsId,this.selectedProfileInfo.applicationId=t.localId,this.selectedProfileInfo.displayName=t.displayName,this.selectedProfileInfo.isFingerprintDetected=t.isFingerprintDetected,this.updatedSettingsFromCache(),this.isDlssSettingsAvailable=this.checkDlssSettingsAvailable(),this.isFgxSettingsAvailable=this.checkFgxSettingsAvailable(),this.refreshProgramSettingSub=this.program3dSettingsService.refreshProgramSettings(this.selectedProfileInfo,t.drsAppSubPath,!1).subscribe(i=>{i||(this.isLoading=!1)},i=>{this.logger.error(`Some error occured while loading settings for the selected profile ${t.drsProfileName} - `,i?.message),this.isLoading=!1,this.manage3dSettingsTelemetryService.send3DSettingsLoadErrorTelemetry(!1,i,this.selectedProfileInfo,t.drsAppSubPath)})):(this.clearSettings(),this.isLoading=!1),this.opsService.setSelectedProgram(this.selectedProgram),this.manage3dSettingsUtilService.setLegacySettingsExpanded(!1)}clearSettings(){this.profileSettingsInfoArray=[],this.legacyProfileSettingsInfoArray=[]}filterCuratedSettings(t){[this.sharpenSetting,this.noiseGrainSetting,this.maxFrameRateFPSSetting,this.backgroundAppMaxFrameRateFPSSetting,this.lowLatencyModeSetting,this.superResolutionSetting,this.rayReconstructionSetting,this.frameGenerationSetting,this.fgxSetting,this.dlssModelPresetProfileSetting]=this.program3dSettingsService.filterCuratedSettings(t),this.isDlssSettingsAvailable=this.checkDlssSettingsAvailable(),this.isFgxSettingsAvailable=this.checkFgxSettingsAvailable()}restoreProgram(t,i){this.restoreProgramSub&&this.restoreProgramSub.unsubscribe(),this.restoreProgramSub=this.manage3dSettingsUtilService.confirmAndRestoreProfiles(t,i=i??[this.selectedProgram?.drsProfileName],!1).pipe((0,C.n)(n=>n?this.program3dSettingsService.restoreJsonTypeSettings(!1):(0,V.of)(null)),(0,C.n)(n=>n?this.program3dSettingsService.refreshProgramSettings():(0,V.of)(null))).subscribe(n=>{this.manage3dSettingsUtilService.closeRestoreDialog(),n&&this.errorHandlerService.showToastMessage({text:t?"manage3dSettings.restoreProgram.all.successText":"manage3dSettings.restoreProgram.successText",placeholders:{program:this.selectedProgram?.drsProfileName},translated:!1}).subscribe()},n=>{this.manage3dSettingsUtilService.closeRestoreDialog(),this.logger.error("Some error occured during restore ",n),this.errorHandlerService.showToastMessage({text:"manage3dSettings.anErrorOccurredDuringRestore",placeholders:{errorText:n?.message??n},translated:!1}).subscribe()})}launchApp(){this.appListService.launchApp(this.selectedProgram.localId).pipe((0,O.s)(1)).subscribe(N.l,N.l)}scrollToTop(){this.appSettingsContainer?.nativeElement?.scroll({top:0,left:0})}hideProgram(t){this.showHideProgramButton=!1,setTimeout(()=>{this.selectedProgram.isHidden=t,this.appHideSub?.unsubscribe(),this.appHideSub=this.manage3dSettingsUtilService.saveHideStatusAndRefresh(this.selectedProgram).subscribe(()=>{this.showHideProgramButton=!0},i=>{this.showHideProgramButton=!0,this.selectedProgram.isHidden=!t,this.logger.error("Some error occured during program hide/unhide",i?.message)})},100)}openFileLocation(){const t=this.selectedProgram.isManuallyAdded?this.selectedProgram.installDirectory.substring(0,this.selectedProgram.installDirectory.lastIndexOf("\\")):this.selectedProgram.installDirectory;this.manage3dSettingsUtilService.openFolder(t)}ngOnChanges(t){this.pageErrorIndicator=t.pageErrorIndicator.currentValue,this.pageErrorIndicator.isLocalGameError||this.pageErrorIndicator.isNvcplError?(0,V.of)(null).pipe((0,ge.c)(0),(0,O.s)(1)).subscribe(()=>{this.isLoading=!1,this.showConfigureMessage=!1}):0===this.profileSettingsInfoArray.length&&(this.showConfigureMessage=!0)}removeProgram(){this.fingerPrintAndDRSProgramsService.removeManualAndDRSEntryFromDb(this.selectedProgram.localId,this.selectedProfileInfo.profileName)}checkDlssSettingsAvailable(){return!!(this.superResolutionSetting?.settingValue[this.superResolutionSettingKey]&&this.rayReconstructionSetting?.settingValue[this.rayReconstructionSettingKey]&&this.frameGenerationSetting?.settingValue[this.frameGenerationSettingKey])}addScrollListener(){this.scrollContainerElement?.nativeElement&&(this.scrollListener=this.renderer.listen(this.scrollContainerElement.nativeElement,"scroll",this.updateHeaderRounding.bind(this)),this.updateHeaderRounding())}updateHeaderRounding(){if(this.scrollContainerElement?.nativeElement&&this.appPreviewElement?.nativeElement){const i=this.appPreviewElement.nativeElement,n="geometry-rounded-lg",s="geometry-top-rounded-lg";this.scrollContainerElement.nativeElement.scrollTop>0?(this.renderer.removeClass(i,s),this.renderer.addClass(i,n)):(this.renderer.removeClass(i,n),this.renderer.addClass(i,s))}}checkFgxSettingsAvailable(){return!!this.fgxSetting?.settingValue?.[this.fgxSettingKey]&&this.fgxSetting?.settingValue?.settingGlobalValue?.[this.fgxSettingKey]}ngOnDestroy(){this.manage3dSettingsUtilService.clearProgramSettingsBuffer(),this.restoreProgramSub&&this.restoreProgramSub.unsubscribe(),this.getOpsSettingLoadingSubscription?.unsubscribe(),this.scrollListener&&this.scrollListener()}static{this.\u0275fac=function(i){return new(i||a)(e.rXU(y.J6),e.rXU($.g),e.rXU(Je.Vk),e.rXU(le.s),e.rXU(F.f),e.rXU(He.n),e.rXU(ce.c),e.rXU(We.I),e.rXU(be.M),e.rXU(xi._),e.rXU(Qe.Z),e.rXU(e.sFG),e.rXU(Oi.V),e.rXU(Pi.T))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["nv-app-program-settings"]],viewQuery:function(i,n){if(1&i&&(e.GBs(ss,5),e.GBs(os,5),e.GBs(rs,5)),2&i){let s;e.mGM(s=e.lsd())&&(n.appSettingsContainer=s.first),e.mGM(s=e.lsd())&&(n.appPreviewElement=s.first),e.mGM(s=e.lsd())&&(n.scrollContainerElement=s.first)}},inputs:{pageErrorIndicator:"pageErrorIndicator"},features:[e.OA$],decls:12,vars:11,consts:[["appSettings",""],["scrollContainer",""],["appPreview",""],["moreMenu","matMenu"],["launchButton",""],[1,"apps-grid-container"],[1,"apps-grid"],["class","apps-list",4,"ngIf"],[1,"app-settings",3,"ngClass"],["class","app-preview geometry-top-rounded-lg",4,"ngIf"],[1,"settings-scroll-container",3,"ngClass"],["class","app-optimize-control geometry-bottom-rounded-lg",4,"ngIf"],["class","loading-indicator-container",4,"ngIf"],[1,"app-settings-list"],[4,"ngIf"],[1,"apps-list"],[3,"selectedProgramEmitter","restoreAllProgramsEmitter","pageErrorIndicator"],[3,"vertical"],[1,"app-preview","geometry-top-rounded-lg"],[1,"program-text"],[1,"program-title","geometry-top-rounded-lg"],[1,"program-icon"],["class","material-icons","svgIcon","game_controller",4,"ngIf"],["class","material-icons",3,"alt","src","error",4,"ngIf"],[1,"program-path"],[1,"font-sub1"],["mat-button","",1,"more-icon-button",3,"matMenuTriggerFor"],[1,"material-icons"],[1,"more-menu"],["mat-menu-item","",1,"menu-item",3,"click"],["mat-menu-item","","class","menu-item",3,"click",4,"ngIf"],["svgIcon","game_controller",1,"material-icons"],[1,"material-icons",3,"error","alt","src"],["mat-button","","class","font-button2 play-button",3,"click",4,"ngIf","ngIfElse"],["mat-button","",1,"font-button2","play-button",3,"click"],[1,"app-optimize-control","geometry-bottom-rounded-lg"],[1,"loading-indicator-container"],["mode","indeterminate",1,"mat-accent",3,"diameter"],["class","settings-list-header geometry-top-rounded-lg",3,"ngClass",4,"ngIf"],["class","empty-state",3,"ngClass",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"title","isFullyCollapsible","itemsToDisplay","isExpanded"],[1,"settings-list-header","geometry-top-rounded-lg",3,"ngClass"],[1,"font-sub1","settings-header-title"],["mat-button","",1,"font-button2","menu-item",3,"click","disabled"],[1,"empty-state",3,"ngClass"],["class","material-icons","svgIcon","alert_circle","tabindex","0","role","img",4,"ngIf"],["svgIcon","alert_circle","tabindex","0","role","img",1,"material-icons"],["svgIcon","info",1,"material-icons","font-body2"],[1,"zero-settings-state","font-body2"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"featureName","featureSettingObject","sharpenSettingObject","noiseGrainSettingObject","isGlobalContext",4,"ngIf"],[3,"featureName","featureSettingObject","sharpenSettingObject","noiseGrainSettingObject","isGlobalContext"],[3,"featureName","featureSettingObject","isGlobalContext","maxFrameRateFPSObject",4,"ngIf"],[3,"featureName","featureSettingObject","isGlobalContext","maxFrameRateFPSObject"],[3,"featureName","aiDvcSetting","isGlobalContext",4,"ngIf"],[3,"featureName","aiDvcSetting","isGlobalContext"],[3,"featureName","imageScalingSetting","localId","isGlobalContext",4,"ngIf"],[3,"featureName","imageScalingSetting","localId","isGlobalContext"],[3,"superResolutionSetting","rayReconstructionSetting","frameGenerationSetting","dlssModelPresetProfileSetting","localApplication","profileName","isGlobalContext",4,"ngIf"],[3,"featureName","featureSettingObject","isGlobalContext","localApplication",4,"ngIf"],[3,"superResolutionSetting","rayReconstructionSetting","frameGenerationSetting","dlssModelPresetProfileSetting","localApplication","profileName","isGlobalContext"],[3,"featureName","featureSettingObject","isGlobalContext","localApplication"],[3,"featureName","featureSettingObject","isGlobalContext","maxFrameRateFPSObject","isBackgroundAppMaxFrameRate",4,"ngIf"],[3,"featureName","featureSettingObject","isGlobalContext","maxFrameRateFPSObject","isBackgroundAppMaxFrameRate"]],template:function(i,n){1&i&&(e.j41(0,"div",5)(1,"div",6),e.DNE(2,cs,3,2,"div",7),e.j41(3,"div",8,0),e.DNE(5,bs,22,12,"div",9),e.j41(6,"div",10,1),e.DNE(8,vs,2,0,"div",11)(9,Cs,2,1,"div",12),e.j41(10,"div",13),e.DNE(11,Ws,8,11,"ng-container",14),e.k0s()()()()()),2&i&&(e.R7$(2),e.Y8G("ngIf",!(null!=n.pageErrorIndicator&&n.pageErrorIndicator.isLocalGameError)),e.R7$(),e.Y8G("ngClass",e.eq3(7,ls,null==n.pageErrorIndicator?null:n.pageErrorIndicator.isLocalGameError)),e.R7$(2),e.Y8G("ngIf",n.selectedProgram),e.R7$(),e.Y8G("ngClass",e.eq3(9,gs,0===n.profileSettingsInfoArray.length&&!n.isLoading)),e.R7$(2),e.Y8G("ngIf",n.selectedProgram&&n.opsEnabled&&!(n.isLoading&&n.isOpsLoading)&&!(null!=n.pageErrorIndicator&&n.pageErrorIndicator.isLocalGameError)),e.R7$(),e.Y8G("ngIf",n.isLoading&&n.isOpsLoading),e.R7$(2),e.Y8G("ngIf",!(n.isLoading&&n.isOpsLoading)))},dependencies:[p.YU,p.Sq,p.bT,p.ux,p.e1,p.fG,I.iV,j.An,L.pI,L.gy,L.fS,z.LG,re.q,te.tH,G.PW,Ee,Ae,Be,Le,ia,ma,Qa,Xe,as,qe,p.Jj,p.Pc,v.D9],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}.ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.apps-grid-container[_ngcontent-%COMP%]{height:calc(100vh - 105px - var(--banner-height));width:100%}.apps-grid[_ngcontent-%COMP%]{display:grid;grid-template-rows:1fr;height:100%;width:100%;overflow:hidden;grid-template-columns:calc(2 * var(--rwd-column-size) + 1 * var(--rwd-gutter-size) + var(--rwd-container-side-spacing)) calc(6 * var(--rwd-column-size) + 5 * var(--rwd-gutter-size) + var(--rwd-container-side-spacing));grid-column-gap:var(--rwd-gutter-size)}.app-settings[_ngcontent-%COMP%]{grid-row:1/-1;grid-column:2/-1;overflow-x:hidden;padding:16px 0 0;grid-template-rows:52px auto 1fr;display:grid;grid-template-columns:minmax(0,1fr)}.app-settings.fill-left-column[_ngcontent-%COMP%]{grid-column:1/-1}.apps-list[_ngcontent-%COMP%]{grid-row:1/-1;grid-column:1/1;min-height:0;padding:16px 0;display:flex;justify-content:space-between;margin-left:24px}nv-app-program-profiles[_ngcontent-%COMP%]{flex:1;overflow:hidden}.settings-scroll-container.empty-state-container[_ngcontent-%COMP%]{grid-row:1/-1;place-content:center}.settings-scroll-container[_ngcontent-%COMP%]{grid-row:2/-1;grid-column:1;overflow-y:auto;min-height:0;padding:0 var(--rwd-container-side-spacing) 16px 0;scrollbar-gutter:stable;margin-top:1px}.app-preview[_ngcontent-%COMP%]{grid-row:1;grid-column:1;background-color:var(--primary-850);position:sticky;top:0;z-index:1;margin-right:calc(var(--rwd-container-side-spacing) + var(--scrollbar-width))}.app-optimize-control[_ngcontent-%COMP%]{grid-row:2;grid-column:1;margin-top:0}.loading-indicator-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:100%;padding:24px 0}.app-settings-list[_ngcontent-%COMP%]{grid-row:3/-1;grid-column:1}.program-text[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;height:100%}.material-icons[_ngcontent-%COMP%]{width:40px;text-align:center;margin:auto}.program-icon[_ngcontent-%COMP%]{position:relative;height:100%}.play-button[_ngcontent-%COMP%]{margin-left:auto;margin-right:10px;cursor:pointer;min-width:-moz-fit-content;min-width:fit-content;height:36px;display:flex;align-items:center}.more-icon-button[_ngcontent-%COMP%]{padding:0;min-width:24px;height:24px;margin-right:16px}.program-title[_ngcontent-%COMP%]{display:flex;align-items:center;overflow:hidden;height:100%}.program-title[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{margin:10px 16px;height:32px;width:32px}.settings-list-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:8px 16px}.settings-list-header[_ngcontent-%COMP%] .menu-item[_ngcontent-%COMP%]{width:unset}.program-path[_ngcontent-%COMP%]{width:min(50vw,100%)}mat-divider[_ngcontent-%COMP%]{height:100%}.empty-state.settings-load-error[_ngcontent-%COMP%]{display:flex;height:auto;flex-direction:row;align-items:center;justify-content:flex-start;line-height:56px;padding-left:8px;background-color:var(--primary-700)}.empty-state.settings-load-error[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:unset}.empty-state[_ngcontent-%COMP%] .zero-settings-state[_ngcontent-%COMP%]{margin-top:10px;width:300px}@media (min-width: 720px) and (max-width: 959px){.settings-list-header[_ngcontent-%COMP%]{padding-right:16px}}@media (min-width: 960px) and (max-width: 1439px){.apps-grid[_ngcontent-%COMP%]{grid-template-columns:calc(3 * var(--rwd-column-size) + 2 * var(--rwd-gutter-size) + var(--rwd-container-side-spacing)) calc(9 * var(--rwd-column-size) + 8 * var(--rwd-gutter-size) + var(--rwd-container-side-spacing));grid-column-gap:var(--rwd-gutter-size)}}@media (min-width: 1440px) and (max-width: 1919px),(min-width: 1920px){.apps-grid[_ngcontent-%COMP%]{grid-template-columns:calc(2 * var(--rwd-column-size) + 1 * var(--rwd-gutter-size) + var(--rwd-container-side-spacing)) calc(10 * var(--rwd-column-size) + 9 * var(--rwd-gutter-size) + var(--rwd-container-side-spacing));grid-column-gap:var(--rwd-gutter-size)}}"]})}}return a})();function Zs(a,r){if(1&a&&(e.j41(0,"span",5),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&a){const t=e.XpG();e.Y8G("ngClass",0===t.selectedTabIndex?"font-color-primary":"font-color-secondary"),e.R7$(),e.JRh(e.bMT(2,2,"manage3dSettings.programSettings"))}}function eo(a,r){if(1&a&&(e.j41(0,"div",6),e.nrm(1,"nv-app-program-settings",7),e.k0s()),2&a){const t=e.XpG();e.R7$(),e.Y8G("pageErrorIndicator",t.errorIndicator)}}function to(a,r){if(1&a&&(e.j41(0,"span",5),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&a){const t=e.XpG();e.Y8G("ngClass",1===t.selectedTabIndex?"font-color-primary":"font-color-secondary"),e.R7$(),e.JRh(e.bMT(2,2,"manage3dSettings.globalSettings"))}}function no(a,r){if(1&a&&(e.j41(0,"div",6),e.nrm(1,"nv-app-global-settings",7),e.k0s()),2&a){const t=e.XpG();e.R7$(),e.Y8G("pageErrorIndicator",t.errorIndicator)}}function io(a,r){1&a&&(e.j41(0,"div",8),e.nrm(1,"mat-icon",9),e.j41(2,"span",10),e.EFF(3),e.nI1(4,"translate"),e.k0s()()),2&a&&(e.R7$(3),e.SpI(" ",e.bMT(4,1,"common.somethingWentWrong")," "))}const ao=[{path:"",component:(()=>{class a{constructor(t,i,n,s,o,c,u,f,m,_){this.loggingService=t,this.dialog=i,this.appBarService=n,this.global3dSettingsService=s,this.manage3dSettingsUtilService=o,this.telemetryService=c,this.pluginsNotificationService=u,this.pageVisitTelemetryService=f,this.graphicsOutsideUpdateService=m,this.activatedRoute=_,this.hostClass="nv-app-component-wrapper",this.saveVisible=!1,this.disableTabAnimation=!0,this.selectedTabIndex=0,this.errorIndicator={isLocalGameError:!1,isNvcplError:!1},this.destroyRef=(0,e.WQX)(e.abz),this.logger=this.loggingService.getLogger("nvapp/Manage3dSettingsComponent"),this.appBarService.setTitle("layout.features.manage3dsettings.title"),this.telemetryService.setScreen(he.f3.Graphics)}ngOnInit(){this.updateActiveTabIndex(),this.refreshGlobalSettings(),this.listenForPageLevelErrors(),this.sendPageEventTelemetry(),this.refresh3dSettingListenerOnDisplayChanges()}listenForPageLevelErrors(){(0,rt.yU)(this.pluginsNotificationService.isPluginLoaded$(Ge.dz),this.pluginsNotificationService.isPluginLoaded$(Ge.WP)).pipe((0,D.pQ)(this.destroyRef)).subscribe(([t,i])=>{this.errorIndicator={isLocalGameError:!t,isNvcplError:!i}})}updateActiveTabIndex(){this.selectedTabIndex=this.activatedRoute?.snapshot?.params?.activeTabIndex?+this.activatedRoute?.snapshot?.params?.activeTabIndex:0}refreshGlobalSettings(){this.global3dSettingsService.refreshGlobalSettings(!1).pipe((0,D.pQ)(this.destroyRef)).subscribe(N.l,t=>this.logger.error(t))}tabChanged(t){this.manage3dSettingsUtilService.setLegacySettingsExpanded(!1),this.logger.info(t.index),this.selectedTabIndex=t.index,this.manage3dSettingsUtilService.emitGraphicsSettingsTabChanged(),this.sendPageEventTelemetry()}sendPageEventTelemetry(){const t=this.getActiveTabForPageEventTelemetry(this.selectedTabIndex);this.pageVisitTelemetryService.setTabChangedForPageEventTelemetry(t)}getActiveTabForPageEventTelemetry(t){switch(t){case 0:return he.d3.Graphics_ProgramSettings;case 1:return he.d3.Graphics_GlobalSettings}}refresh3dSettingListenerOnDisplayChanges(){this.graphicsOutsideUpdateService.refresh3dSettingListenerOnDisplayChanges().pipe((0,D.pQ)(this.destroyRef)).subscribe(N.l,N.l)}static{this.\u0275fac=function(i){return new(i||a)(e.rXU(y.J6),e.rXU(h.bZ),e.rXU(lt.g),e.rXU(Y.R),e.rXU(F.f),e.rXU(gt.H0),e.rXU(ct.P),e.rXU(dt.V),e.rXU(Te),e.rXU(ae.nX))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["nv-app-manage-3d-settings"]],hostVars:2,hostBindings:function(i,n){2&i&&e.HbH(n.hostClass)},decls:10,vars:6,consts:[["pageLevelError",""],[1,"font-sub1","header-tabs-3d-setting","common-tabs"],["mat-stretch-tabs","false",1,"graphics-page-tabs",3,"selectedTabChange","selectedIndex"],["mat-tab-label",""],["class","tab-content",4,"ngIf","ngIfElse"],[1,"font-sub2",3,"ngClass"],[1,"tab-content"],[3,"pageErrorIndicator"],[1,"page-level-error","font-sub1","empty-state"],["svgIcon","alert_circle",1,"material-icons"],[1,"settings-load-error"]],template:function(i,n){if(1&i){const s=e.RV6();e.j41(0,"div",1)(1,"mat-tab-group",2),e.bIt("selectedTabChange",function(c){return e.eBV(s),e.Njj(n.tabChanged(c))}),e.j41(2,"mat-tab"),e.DNE(3,Zs,3,4,"ng-template",3)(4,eo,2,1,"div",4),e.k0s(),e.j41(5,"mat-tab"),e.DNE(6,to,3,4,"ng-template",3)(7,no,2,1,"div",4),e.k0s()(),e.DNE(8,io,5,3,"ng-template",null,0,e.C5r),e.k0s()}if(2&i){const s=e.sdS(9);e.R7$(),e.Y8G("@.disabled",n.disableTabAnimation)("selectedIndex",n.selectedTabIndex),e.R7$(3),e.Y8G("ngIf",!(null!=n.errorIndicator&&n.errorIndicator.isLocalGameError&&null!=n.errorIndicator&&n.errorIndicator.isNvcplError))("ngIfElse",s),e.R7$(3),e.Y8G("ngIf",!(null!=n.errorIndicator&&n.errorIndicator.isLocalGameError&&null!=n.errorIndicator&&n.errorIndicator.isNvcplError))("ngIfElse",s)}},dependencies:[p.YU,p.bT,j.An,ee.ES,ee.mq,ee.T8,G.PW,Mi,Qs,v.D9],styles:[".header-3d-settings[_ngcontent-%COMP%]{line-height:28px;margin-bottom:13px}.header-tabs-3d-setting[_ngcontent-%COMP%]{display:grid;grid-template-rows:1fr;grid-template-columns:1fr;justify-content:flex-start;overflow:hidden;height:100%}.header-tabs-3d-setting[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{vertical-align:middle}mat-tab-group[_ngcontent-%COMP%]{grid-row:1/-1;grid-column:1/-1}.page-level-error[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:100%}"]})}}return a})()}];let so=(()=>{class a{static{this.\u0275fac=function(i){return new(i||a)}}static{this.\u0275mod=e.$C({type:a})}static{this.\u0275inj=e.G2t({imports:[ae.iI.forChild(ao),ae.iI]})}}return a})(),oo=(()=>{class a{static{this.\u0275fac=function(i){return new(i||a)}}static{this.\u0275mod=e.$C({type:a})}static{this.\u0275inj=e.G2t({imports:[p.MD,De.YF,Ve.i,(0,y.BU)(),ae.iI]})}}return a})();var ro=d(37202);let lo=(()=>{class a{static{this.\u0275fac=function(i){return new(i||a)}}static{this.\u0275mod=e.$C({type:a})}static{this.\u0275inj=e.G2t({imports:[p.MD,so,Ve.i,De.YF,oo,(0,y.BU)(),ro.G]})}}return a})()}}]);
// SIG // Begin signature block
// SIG // MIIofAYJKoZIhvcNAQcCoIIobTCCKGkCAQExDzANBglg
// SIG // hkgBZQMEAgEFADB3BgorBgEEAYI3AgEEoGkwZzAyBgor
// SIG // BgEEAYI3AgEeMCQCAQEEEBDgyQbOONQRoqMAEEvTUJAC
// SIG // AQACAQACAQACAQACAQAwMTANBglghkgBZQMEAgEFAAQg
// SIG // ConOdIN4QNK1+S8C58h64x4iW0L1yAVYoqnBIseLWPqg
// SIG // gg20MIIGsDCCBJigAwIBAgIQCK1AsmDSnEyfXs2pvZOu
// SIG // 2TANBgkqhkiG9w0BAQwFADBiMQswCQYDVQQGEwJVUzEV
// SIG // MBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
// SIG // d3cuZGlnaWNlcnQuY29tMSEwHwYDVQQDExhEaWdpQ2Vy
// SIG // dCBUcnVzdGVkIFJvb3QgRzQwHhcNMjEwNDI5MDAwMDAw
// SIG // WhcNMzYwNDI4MjM1OTU5WjBpMQswCQYDVQQGEwJVUzEX
// SIG // MBUGA1UEChMORGlnaUNlcnQsIEluYy4xQTA/BgNVBAMT
// SIG // OERpZ2lDZXJ0IFRydXN0ZWQgRzQgQ29kZSBTaWduaW5n
// SIG // IFJTQTQwOTYgU0hBMzg0IDIwMjEgQ0ExMIICIjANBgkq
// SIG // hkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA1bQvQtAorXi3
// SIG // XdU5WRuxiEL1M4zrPYGXcMW7xIUmMJ+kjmjYXPXrNCQH
// SIG // 4UtP03hD9BfXHtr50tVnGlJPDqFX/IiZwZHMgQM+TXAk
// SIG // ZLON4gh9NH1MgFcSa0OamfLFOx/y78tHWhOmTLMBICXz
// SIG // ENOLsvsI8IrgnQnAZaf6mIBJNYc9URnokCF4RS6hnyzh
// SIG // GMIazMXuk0lwQjKP+8bqHPNlaJGiTUyCEUhSaN4QvRRX
// SIG // XegYE2XFf7JPhSxIpFaENdb5LpyqABXRN/4aBpTCfMjq
// SIG // GzLmysL0p6MDDnSlrzm2q2AS4+jWufcx4dyt5Big2MEj
// SIG // R0ezoQ9uo6ttmAaDG7dqZy3SvUQakhCBj7A7CdfHmzJa
// SIG // wv9qYFSLScGT7eG0XOBv6yb5jNWy+TgQ5urOkfW+0/tv
// SIG // k2E0XLyTRSiDNipmKF+wc86LJiUGsoPUXPYVGUztYuBe
// SIG // M/Lo6OwKp7ADK5GyNnm+960IHnWmZcy740hQ83eRGv7b
// SIG // UKJGyGFYmPV8AhY8gyitOYbs1LcNU9D4R+Z1MI3sMJN2
// SIG // FKZbS110YU0/EpF23r9Yy3IQKUHw1cVtJnZoEUETWJrc
// SIG // JisB9IlNWdt4z4FKPkBHX8mBUHOFECMhWWCKZFTBzCEa
// SIG // 6DgZfGYczXg4RTCZT/9jT0y7qg0IU0F8WD1Hs/q27Iwy
// SIG // CQLMbDwMVhECAwEAAaOCAVkwggFVMBIGA1UdEwEB/wQI
// SIG // MAYBAf8CAQAwHQYDVR0OBBYEFGg34Ou2O/hfEYb7/mF7
// SIG // CIhl9E5CMB8GA1UdIwQYMBaAFOzX44LScV1kTN8uZz/n
// SIG // upiuHA9PMA4GA1UdDwEB/wQEAwIBhjATBgNVHSUEDDAK
// SIG // BggrBgEFBQcDAzB3BggrBgEFBQcBAQRrMGkwJAYIKwYB
// SIG // BQUHMAGGGGh0dHA6Ly9vY3NwLmRpZ2ljZXJ0LmNvbTBB
// SIG // BggrBgEFBQcwAoY1aHR0cDovL2NhY2VydHMuZGlnaWNl
// SIG // cnQuY29tL0RpZ2lDZXJ0VHJ1c3RlZFJvb3RHNC5jcnQw
// SIG // QwYDVR0fBDwwOjA4oDagNIYyaHR0cDovL2NybDMuZGln
// SIG // aWNlcnQuY29tL0RpZ2lDZXJ0VHJ1c3RlZFJvb3RHNC5j
// SIG // cmwwHAYDVR0gBBUwEzAHBgVngQwBAzAIBgZngQwBBAEw
// SIG // DQYJKoZIhvcNAQEMBQADggIBADojRD2NCHbuj7w6mdNW
// SIG // 4AIapfhINPMstuZ0ZveUcrEAyq9sMCcTEp6QRJ9L/Z6j
// SIG // fCbVN7w6XUhtldU/SfQnuxaBRVD9nL22heB2fjdxyyL3
// SIG // WqqQz/WTauPrINHVUHmImoqKwba9oUgYftzYgBoRGRjN
// SIG // YZmBVvbJ43bnxOQbX0P4PpT/djk9ntSZz0rdKOtfJqGV
// SIG // WEjVGv7XJz/9kNF2ht0csGBc8w2o7uCJob054ThO2m67
// SIG // Np375SFTWsPK6Wrxoj7bQ7gzyE84FJKZ9d3OVG3ZXQIU
// SIG // H0AzfAPilbLCIXVzUstG2MQ0HKKlS43Nb3Y3LIU/Gs4m
// SIG // 6Ri+kAewQ3+ViCCCcPDMyu/9KTVcH4k4Vfc3iosJocsL
// SIG // 6TEa/y4ZXDlx4b6cpwoG1iZnt5LmTl/eeqxJzy6kdJKt
// SIG // 2zyknIYf48FWGysj/4+16oh7cGvmoLr9Oj9FpsToFpFS
// SIG // i0HASIRLlk2rREDjjfAVKM7t8RhWByovEMQMCGQ8M4+u
// SIG // KIw8y4+ICw2/O/TOHnuO77Xry7fwdxPm5yg/rBKupS8i
// SIG // bEH5glwVZsxsDsrFhsP2JjMMB0ug0wcCampAMEhLNKhR
// SIG // ILutG4UI4lkNbcoFUCvqShyepf2gpx8GdOfy1lKQ/a+F
// SIG // SCH5Vzu0nAPthkX0tGFuv2jiJmCG6sivqf6UHedjGzqG
// SIG // VnhOMIIG/DCCBOSgAwIBAgIQCZfFbKpZBVOU2anNuL7r
// SIG // VjANBgkqhkiG9w0BAQsFADBpMQswCQYDVQQGEwJVUzEX
// SIG // MBUGA1UEChMORGlnaUNlcnQsIEluYy4xQTA/BgNVBAMT
// SIG // OERpZ2lDZXJ0IFRydXN0ZWQgRzQgQ29kZSBTaWduaW5n
// SIG // IFJTQTQwOTYgU0hBMzg0IDIwMjEgQ0ExMB4XDTIzMDEx
// SIG // MzAwMDAwMFoXDTI2MDExNjIzNTk1OVowgYAxCzAJBgNV
// SIG // BAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRQwEgYD
// SIG // VQQHEwtTYW50YSBDbGFyYTEbMBkGA1UEChMSTlZJRElB
// SIG // IENvcnBvcmF0aW9uMQwwCgYDVQQLEwMyLUoxGzAZBgNV
// SIG // BAMTEk5WSURJQSBDb3Jwb3JhdGlvbjCCAaIwDQYJKoZI
// SIG // hvcNAQEBBQADggGPADCCAYoCggGBAIiAXRBzCNRy05OZ
// SIG // NUtJguKdJ1R5HNatdvXtn+pWXHg9PfhU9A5ZboWwSPej
// SIG // iZxJn9clYWVpyjPbkkFvaTBLYeHArmzswavs7+bct4df
// SIG // BTBZG8Qmc9kusaaOxNnuUevseGAC5H61QsGOVATdRQfS
// SIG // kfaP7kTBF9wuIat7BXVglPAlZagQTZWA/BA4Vr8GeNVY
// SIG // 5jU2C6F907UM6orsfsVfkBI8HSowD1U/faTS1yMBu1Mx
// SIG // ePUKZosFn2tYE4dUWId/Vv6LKWk30e/63C5Ul9e3eY7x
// SIG // aZ4eC0TqxluMWb2XdvCcfw9dELeI+0suWliFIyCgSf3A
// SIG // Kuq9cXnoMOBoPEeBOr3XWfCCNLxf9RcGxyaNPd1KcTOO
// SIG // ErSJMFpOCnVi5kys2NrTrFMFVZiRC49BidetoT6cHt3Z
// SIG // f+VHR3rqdUbo4xSpuvsfNA4GRYcWI2KvY3T6hBlrgTlr
// SIG // ngfA3ztOn+38KGJavEa7iJ+k/kjjnD47t0qQoRiujBi+
// SIG // q+mv6Hgy/g0VeQIDAQABo4ICBjCCAgIwHwYDVR0jBBgw
// SIG // FoAUaDfg67Y7+F8Rhvv+YXsIiGX0TkIwHQYDVR0OBBYE
// SIG // FL5vQA7WEARmpu0ItwJOm7f48LbRMA4GA1UdDwEB/wQE
// SIG // AwIHgDATBgNVHSUEDDAKBggrBgEFBQcDAzCBtQYDVR0f
// SIG // BIGtMIGqMFOgUaBPhk1odHRwOi8vY3JsMy5kaWdpY2Vy
// SIG // dC5jb20vRGlnaUNlcnRUcnVzdGVkRzRDb2RlU2lnbmlu
// SIG // Z1JTQTQwOTZTSEEzODQyMDIxQ0ExLmNybDBToFGgT4ZN
// SIG // aHR0cDovL2NybDQuZGlnaWNlcnQuY29tL0RpZ2lDZXJ0
// SIG // VHJ1c3RlZEc0Q29kZVNpZ25pbmdSU0E0MDk2U0hBMzg0
// SIG // MjAyMUNBMS5jcmwwPgYDVR0gBDcwNTAzBgZngQwBBAEw
// SIG // KTAnBggrBgEFBQcCARYbaHR0cDovL3d3dy5kaWdpY2Vy
// SIG // dC5jb20vQ1BTMIGUBggrBgEFBQcBAQSBhzCBhDAkBggr
// SIG // BgEFBQcwAYYYaHR0cDovL29jc3AuZGlnaWNlcnQuY29t
// SIG // MFwGCCsGAQUFBzAChlBodHRwOi8vY2FjZXJ0cy5kaWdp
// SIG // Y2VydC5jb20vRGlnaUNlcnRUcnVzdGVkRzRDb2RlU2ln
// SIG // bmluZ1JTQTQwOTZTSEEzODQyMDIxQ0ExLmNydDAMBgNV
// SIG // HRMBAf8EAjAAMA0GCSqGSIb3DQEBCwUAA4ICAQBNa3En
// SIG // raaMqv58RZV1qn0K09tv83qxwHaM6/N40w2fMljnGOxS
// SIG // xR1g0+R26S7XtwpzG+b8LWmWmyJKiZIogVkcfZpchS6B
// SIG // x+9HcUSo7TBBJn4ylcpQzksLOCmT6/DSeIDYucyQiHo8
// SIG // Nq3XkLpkJaDETnCBDulYZ+9pavQT4lNpB6sffbjsDcQ7
// SIG // CZQdImdzyNwd81c56xZc05ufVkronW78r35vwhzuNd88
// SIG // YQXr26fClBEXf3cNvytVupOeHZTy0Od+tPnAPl5744un
// SIG // 0f1MDjiKRne5FqDoo2F4EoeJQuaS6tWcFQg55dOEmOwS
// SIG // E8mweLCWDTTWmZV6x0IGHwagde1S5rkkmxpvAZRUkaD/
// SIG // ZTyxDiHywNi981mFvCnS1gKGd8GpqDuChpKAet8ivgB3
// SIG // 8hVTE/jsstKwQL7HNGxlmk7hyFxkbUNXki2gwJ/CSGaQ
// SIG // qqS3ctjF5Vv8mbtH2f3pK3AFaXOW7wDfjeuqF+yh6UxT
// SIG // ockgH6Ggc4tj+rcrwWhnbgu+JljlBbSKtGiEXMjA9Ccg
// SIG // YsbOIS9T1/FRAOW4KzCaG2FaX5eIhnCqXl79Va2OV8ul
// SIG // IgIbn1XaQQk6RvNPIwZzM8TARUTR9d1edtiuOymxDYm6
// SIG // j16TmoLkXlWUGLj05+yKut6rkqmYCqCJHRHD0T7LXUmw
// SIG // eBMWDQ5e0t8ADV8KGzGCGiAwghocAgEBMH0waTELMAkG
// SIG // A1UEBhMCVVMxFzAVBgNVBAoTDkRpZ2lDZXJ0LCBJbmMu
// SIG // MUEwPwYDVQQDEzhEaWdpQ2VydCBUcnVzdGVkIEc0IENv
// SIG // ZGUgU2lnbmluZyBSU0E0MDk2IFNIQTM4NCAyMDIxIENB
// SIG // MQIQCZfFbKpZBVOU2anNuL7rVjANBglghkgBZQMEAgEF
// SIG // AKB8MBAGCisGAQQBgjcCAQwxAjAAMBkGCSqGSIb3DQEJ
// SIG // AzEMBgorBgEEAYI3AgEEMBwGCisGAQQBgjcCAQsxDjAM
// SIG // BgorBgEEAYI3AgEVMC8GCSqGSIb3DQEJBDEiBCCTWf0i
// SIG // XpvSSkt8BYWVNm5zJArwyVszOAqBuaXrqYN/wTANBgkq
// SIG // hkiG9w0BAQEFAASCAYBpMSL+RVXPWXGR6svBhIYvznB4
// SIG // /Op4m4V2A8p6sYb7Ubg9IJ6Fct9EYVA9T5YcG0E9N6Vi
// SIG // yJr/AEVv36mVehWRjTg18uZHdAYUB/qKlxbfKiNALLsN
// SIG // Vn2F1k+7rNx5B3wYn/06wfyaI0ZxkxxmAkqIZL5XKKNB
// SIG // PJ7TODRfejpdmRX0RQk5YVLQ7F3236Yx5+tm2sxQLyIQ
// SIG // /86P3OHzMLMAFxb/tQ7rzMrlB6jBDyCSfx+6Br5PgFKW
// SIG // 8ilgyFqFY17fHS0dv52vLTGiO02jgiIzF7obF64Zq1LC
// SIG // etJD2XnjjdavWIk7A764NS0Qvy+j26jWARR2dSwRdLvG
// SIG // baoe5rQSZqEOck9LvbW/4OJU/2yKgm1ag7DPKflOuOcn
// SIG // 7XlcV1JSMgDBxDq8tIsPgSSZlL9W5Sq5Qv5PDfIKwAVg
// SIG // /2LaxR5ySOmJEuDN3A9LQ3c3XfhYcl6J14XWxftJw/F5
// SIG // iL7H2bSFgxtJMC+AqSLzsI7LNh4ZBEo0/8xmR61MtBVz
// SIG // z8Khghd2MIIXcgYKKwYBBAGCNwMDATGCF2IwghdeBgkq
// SIG // hkiG9w0BBwKgghdPMIIXSwIBAzEPMA0GCWCGSAFlAwQC
// SIG // AQUAMHcGCyqGSIb3DQEJEAEEoGgEZjBkAgEBBglghkgB
// SIG // hv1sBwEwMTANBglghkgBZQMEAgEFAAQgtsF228xBHbIR
// SIG // GEunzUmKzUCaklE+e1Wqji33A5LQpkwCECgP24VLF6Ps
// SIG // Rn7FAAL3uVMYDzIwMjUxMDE1MjIyMTE0WqCCEzowggbt
// SIG // MIIE1aADAgECAhAKgO8YS43xBYLRxHanlXRoMA0GCSqG
// SIG // SIb3DQEBCwUAMGkxCzAJBgNVBAYTAlVTMRcwFQYDVQQK
// SIG // Ew5EaWdpQ2VydCwgSW5jLjFBMD8GA1UEAxM4RGlnaUNl
// SIG // cnQgVHJ1c3RlZCBHNCBUaW1lU3RhbXBpbmcgUlNBNDA5
// SIG // NiBTSEEyNTYgMjAyNSBDQTEwHhcNMjUwNjA0MDAwMDAw
// SIG // WhcNMzYwOTAzMjM1OTU5WjBjMQswCQYDVQQGEwJVUzEX
// SIG // MBUGA1UEChMORGlnaUNlcnQsIEluYy4xOzA5BgNVBAMT
// SIG // MkRpZ2lDZXJ0IFNIQTI1NiBSU0E0MDk2IFRpbWVzdGFt
// SIG // cCBSZXNwb25kZXIgMjAyNSAxMIICIjANBgkqhkiG9w0B
// SIG // AQEFAAOCAg8AMIICCgKCAgEA0EasLRLGntDqrmBWsytX
// SIG // um9R/4ZwCgHfyjfMGUIwYzKomd8U1nH7C8Dr0cVMF3Bs
// SIG // fAFI54um8+dnxk36+jx0Tb+k+87H9WPxNyFPJIDZHhAq
// SIG // lUPt281mHrBbZHqRK71Em3/hCGC5KyyneqiZ7syvFXJ9
// SIG // A72wzHpkBaMUNg7MOLxI6E9RaUueHTQKWXymOtRwJXcr
// SIG // cTTPPT2V1D/+cFllESviH8YjoPFvZSjKs3SKO1QNUdFd
// SIG // 2adw44wDcKgH+JRJE5Qg0NP3yiSyi5MxgU6cehGHr7zo
// SIG // u1znOM8odbkqoK+lJ25LCHBSai25CFyD23DZgPfDrJJJ
// SIG // K77epTwMP6eKA0kWa3osAe8fcpK40uhktzUd/Yk0xUvh
// SIG // DU6lvJukx7jphx40DQt82yepyekl4i0r8OEps/FNO4ah
// SIG // fvAk12hE5FVs9HVVWcO5J4dVmVzix4A77p3awLbr89A9
// SIG // 0/nWGjXMGn7FQhmSlIUDy9Z2hSgctaepZTd0ILIUbWuh
// SIG // KuAeNIeWrzHKYueMJtItnj2Q+aTyLLKLM0MheP/9w6Ct
// SIG // juuVHJOVoIJ/DtpJRE7Ce7vMRHoRon4CWIvuiNN1Lk9Y
// SIG // +xZ66lazs2kKFSTnnkrT3pXWETTJkhd76CIDBbTRofOs
// SIG // NyEhzZtCGmnQigpFHti58CSmvEyJcAlDVcKacJ+A9/z7
// SIG // eacCAwEAAaOCAZUwggGRMAwGA1UdEwEB/wQCMAAwHQYD
// SIG // VR0OBBYEFOQ7/PIx7f391/ORcWMZUEPPYYzoMB8GA1Ud
// SIG // IwQYMBaAFO9vU0rp5AZ8esrikFb2L9RJ7MtOMA4GA1Ud
// SIG // DwEB/wQEAwIHgDAWBgNVHSUBAf8EDDAKBggrBgEFBQcD
// SIG // CDCBlQYIKwYBBQUHAQEEgYgwgYUwJAYIKwYBBQUHMAGG
// SIG // GGh0dHA6Ly9vY3NwLmRpZ2ljZXJ0LmNvbTBdBggrBgEF
// SIG // BQcwAoZRaHR0cDovL2NhY2VydHMuZGlnaWNlcnQuY29t
// SIG // L0RpZ2lDZXJ0VHJ1c3RlZEc0VGltZVN0YW1waW5nUlNB
// SIG // NDA5NlNIQTI1NjIwMjVDQTEuY3J0MF8GA1UdHwRYMFYw
// SIG // VKBSoFCGTmh0dHA6Ly9jcmwzLmRpZ2ljZXJ0LmNvbS9E
// SIG // aWdpQ2VydFRydXN0ZWRHNFRpbWVTdGFtcGluZ1JTQTQw
// SIG // OTZTSEEyNTYyMDI1Q0ExLmNybDAgBgNVHSAEGTAXMAgG
// SIG // BmeBDAEEAjALBglghkgBhv1sBwEwDQYJKoZIhvcNAQEL
// SIG // BQADggIBAGUqrfEcJwS5rmBB7NEIRJ5jQHIh+OT2Ik/b
// SIG // NYulCrVvhREafBYF0RkP2AGr181o2YWPoSHz9iZEN/FP
// SIG // sLSTwVQWo2H62yGBvg7ouCODwrx6ULj6hYKqdT8wv2UV
// SIG // +Kbz/3ImZlJ7YXwBD9R0oU62PtgxOao872bOySCILdBg
// SIG // hQ/ZLcdC8cbUUO75ZSpbh1oipOhcUT8lD8QAGB9lctZT
// SIG // TOJM3pHfKBAEcxQFoHlt2s9sXoxFizTeHihsQyfFg5fx
// SIG // UFEp7W42fNBVN4ueLaceRf9Cq9ec1v5iQMWTFQa0xNqI
// SIG // tH3CPFTG7aEQJmmrJTV3Qhtfparz+BW60OiMEgV5GWoB
// SIG // y4RVPRwqxv7Mk0Sy4QHs7v9y69NBqycz0BZwhB9WOfOu
// SIG // /CIJnzkQTwtSSpGGhLdjnQ4eBpjtP+XB3pQCtv4E5UCS
// SIG // Dag6+iX8MmB10nfldPF9SVD7weCC3yXZi/uuhqdwkgVx
// SIG // uiMFzGVFwYbQsiGnoa9F5AaAyBjFBtXVLcKtapnMG3VH
// SIG // 3EmAp/jsJ3FVF3+d1SVDTmjFjLbNFZUWMXuZyvgLfgyP
// SIG // ehwJVxwC+UpX2MSey2ueIu9THFVkT+um1vshETaWyQo8
// SIG // gmBto/m3acaP9QsuLj3FNwFlTxq25+T4QwX9xa6ILs84
// SIG // ZPvmpovq90K8eWyG2N01c4IhSOxqt81nMIIGtDCCBJyg
// SIG // AwIBAgIQDcesVwX/IZkuQEMiDDpJhjANBgkqhkiG9w0B
// SIG // AQsFADBiMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGln
// SIG // aUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQu
// SIG // Y29tMSEwHwYDVQQDExhEaWdpQ2VydCBUcnVzdGVkIFJv
// SIG // b3QgRzQwHhcNMjUwNTA3MDAwMDAwWhcNMzgwMTE0MjM1
// SIG // OTU5WjBpMQswCQYDVQQGEwJVUzEXMBUGA1UEChMORGln
// SIG // aUNlcnQsIEluYy4xQTA/BgNVBAMTOERpZ2lDZXJ0IFRy
// SIG // dXN0ZWQgRzQgVGltZVN0YW1waW5nIFJTQTQwOTYgU0hB
// SIG // MjU2IDIwMjUgQ0ExMIICIjANBgkqhkiG9w0BAQEFAAOC
// SIG // Ag8AMIICCgKCAgEAtHgx0wqYQXK+PEbAHKx126NGaHS0
// SIG // URedTa2NDZS1mZaDLFTtQ2oRjzUXMmxCqvkbsDpz4aH+
// SIG // qbxeLho8I6jY3xL1IusLopuW2qftJYJaDNs1+JH7Z+Qd
// SIG // SKWM06qchUP+AbdJgMQB3h2DZ0Mal5kYp77jYMVQXSZH
// SIG // ++0trj6Ao+xh/AS7sQRuQL37QXbDhAktVJMQbzIBHYJB
// SIG // YgzWIjk8eDrYhXDEpKk7RdoX0M980EpLtlrNyHw0Xm+n
// SIG // t5pnYJU3Gmq6bNMI1I7Gb5IBZK4ivbVCiZv7PNBYqHEp
// SIG // NVWC2ZQ8BbfnFRQVESYOszFI2Wv82wnJRfN20VRS3hpL
// SIG // gIR4hjzL0hpoYGk81coWJ+KdPvMvaB0WkE/2qHxJ0ucS
// SIG // 638ZxqU14lDnki7CcoKCz6eum5A19WZQHkqUJfdkDjHk
// SIG // ccpL6uoG8pbF0LJAQQZxst7VvwDDjAmSFTUms+wV/FbW
// SIG // Bqi7fTJnjq3hj0XbQcd8hjj/q8d6ylgxCZSKi17yVp2N
// SIG // L+cnT6Toy+rN+nM8M7LnLqCrO2JP3oW//1sfuZDKiDEb
// SIG // 1AQ8es9Xr/u6bDTnYCTKIsDq1BtmXUqEG1NqzJKS4kOm
// SIG // xkYp2WyODi7vQTCBZtVFJfVZ3j7OgWmnhFr4yUozZtqg
// SIG // PrHRVHhGNKlYzyjlroPxul+bgIspzOwbtmsgY1MCAwEA
// SIG // AaOCAV0wggFZMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYD
// SIG // VR0OBBYEFO9vU0rp5AZ8esrikFb2L9RJ7MtOMB8GA1Ud
// SIG // IwQYMBaAFOzX44LScV1kTN8uZz/nupiuHA9PMA4GA1Ud
// SIG // DwEB/wQEAwIBhjATBgNVHSUEDDAKBggrBgEFBQcDCDB3
// SIG // BggrBgEFBQcBAQRrMGkwJAYIKwYBBQUHMAGGGGh0dHA6
// SIG // Ly9vY3NwLmRpZ2ljZXJ0LmNvbTBBBggrBgEFBQcwAoY1
// SIG // aHR0cDovL2NhY2VydHMuZGlnaWNlcnQuY29tL0RpZ2lD
// SIG // ZXJ0VHJ1c3RlZFJvb3RHNC5jcnQwQwYDVR0fBDwwOjA4
// SIG // oDagNIYyaHR0cDovL2NybDMuZGlnaWNlcnQuY29tL0Rp
// SIG // Z2lDZXJ0VHJ1c3RlZFJvb3RHNC5jcmwwIAYDVR0gBBkw
// SIG // FzAIBgZngQwBBAIwCwYJYIZIAYb9bAcBMA0GCSqGSIb3
// SIG // DQEBCwUAA4ICAQAXzvsWgBz+Bz0RdnEwvb4LyLU0pn/N
// SIG // 0IfFiBowf0/Dm1wGc/Do7oVMY2mhXZXjDNJQa8j00DNq
// SIG // hCT3t+s8G0iP5kvN2n7Jd2E4/iEIUBO41P5F448rSYJ5
// SIG // 9Ib61eoalhnd6ywFLerycvZTAz40y8S4F3/a+Z1jEMK/
// SIG // DMm/axFSgoR8n6c3nuZB9BfBwAQYK9FHaoq2e26MHvVY
// SIG // 9gCDA/JYsq7pGdogP8HRtrYfctSLANEBfHU16r3J05qX
// SIG // 3kId+ZOczgj5kjatVB+NdADVZKON/gnZruMvNYY2o1f4
// SIG // MXRJDMdTSlOLh0HCn2cQLwQCqjFbqrXuvTPSegOOzr4E
// SIG // Wj7PtspIHBldNE2K9i697cvaiIo2p61Ed2p8xMJb82Yo
// SIG // sn0z4y25xUbI7GIN/TpVfHIqQ6Ku/qjTY6hc3hsXMrS+
// SIG // U0yy+GWqAXam4ToWd2UQ1KYT70kZjE4YtL8Pbzg0c1ug
// SIG // MZyZZd/BdHLiRu7hAWE6bTEm4XYRkA6Tl4KSFLFk43es
// SIG // aUeqGkH/wyW4N7OigizwJWeukcyIPbAvjSabnf7+Pu0V
// SIG // rFgoiovRDiyx3zEdmcif/sYQsfch28bZeUz2rtY/9TCA
// SIG // 6TD8dC3JE3rYkrhLULy7Dc90G6e8BlqmyIjlgp2+VqsS
// SIG // 9/wQD7yFylIz0scmbKvFoW2jNrbM1pD2T7m3XDCCBY0w
// SIG // ggR1oAMCAQICEA6bGI750C3n79tQ4ghAGFowDQYJKoZI
// SIG // hvcNAQEMBQAwZTELMAkGA1UEBhMCVVMxFTATBgNVBAoT
// SIG // DERpZ2lDZXJ0IEluYzEZMBcGA1UECxMQd3d3LmRpZ2lj
// SIG // ZXJ0LmNvbTEkMCIGA1UEAxMbRGlnaUNlcnQgQXNzdXJl
// SIG // ZCBJRCBSb290IENBMB4XDTIyMDgwMTAwMDAwMFoXDTMx
// SIG // MTEwOTIzNTk1OVowYjELMAkGA1UEBhMCVVMxFTATBgNV
// SIG // BAoTDERpZ2lDZXJ0IEluYzEZMBcGA1UECxMQd3d3LmRp
// SIG // Z2ljZXJ0LmNvbTEhMB8GA1UEAxMYRGlnaUNlcnQgVHJ1
// SIG // c3RlZCBSb290IEc0MIICIjANBgkqhkiG9w0BAQEFAAOC
// SIG // Ag8AMIICCgKCAgEAv+aQc2jeu+RdSjwwIjBpM+zCpyUu
// SIG // ySE98orYWcLhKac9WKt2ms2uexuEDcQwH/MbpDgW61bG
// SIG // l20dq7J58soR0uRf1gU8Ug9SH8aeFaV+vp+pVxZZVXKv
// SIG // aJNwwrK6dZlqczKU0RBEEC7fgvMHhOZ0O21x4i0MG+4g
// SIG // 1ckgHWMpLc7sXk7Ik/ghYZs06wXGXuxbGrzryc/NrDRA
// SIG // X7F6Zu53yEioZldXn1RYjgwrt0+nMNlW7sp7XeOtyU9e
// SIG // 5TXnMcvak17cjo+A2raRmECQecN4x7axxLVqGDgDEI3Y
// SIG // 1DekLgV9iPWCPhCRcKtVgkEy19sEcypukQF8IUzUvK4b
// SIG // A3VdeGbZOjFEmjNAvwjXWkmkwuapoGfdpCe8oU85tRFY
// SIG // F/ckXEaPZPfBaYh2mHY9WV1CdoeJl2l6SPDgohIbZpp0
// SIG // yt5LHucOY67m1O+SkjqePdwA5EUlibaaRBkrfsCUtNJh
// SIG // besz2cXfSwQAzH0clcOP9yGyshG3u3/y1YxwLEFgqrFj
// SIG // GESVGnZifvaAsPvoZKYz0YkH4b235kOkGLimdwHhD5QM
// SIG // IR2yVCkliWzlDlJRR3S+Jqy2QXXeeqxfjT/JvNNBERJb
// SIG // 5RBQ6zHFynIWIgnffEx1P2PsIV/EIFFrb7GrhotPwtZF
// SIG // X50g/KEexcCPorF+CiaZ9eRpL5gdLfXZqbId5RsCAwEA
// SIG // AaOCATowggE2MA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0O
// SIG // BBYEFOzX44LScV1kTN8uZz/nupiuHA9PMB8GA1UdIwQY
// SIG // MBaAFEXroq/0ksuCMS1Ri6enIZ3zbcgPMA4GA1UdDwEB
// SIG // /wQEAwIBhjB5BggrBgEFBQcBAQRtMGswJAYIKwYBBQUH
// SIG // MAGGGGh0dHA6Ly9vY3NwLmRpZ2ljZXJ0LmNvbTBDBggr
// SIG // BgEFBQcwAoY3aHR0cDovL2NhY2VydHMuZGlnaWNlcnQu
// SIG // Y29tL0RpZ2lDZXJ0QXNzdXJlZElEUm9vdENBLmNydDBF
// SIG // BgNVHR8EPjA8MDqgOKA2hjRodHRwOi8vY3JsMy5kaWdp
// SIG // Y2VydC5jb20vRGlnaUNlcnRBc3N1cmVkSURSb290Q0Eu
// SIG // Y3JsMBEGA1UdIAQKMAgwBgYEVR0gADANBgkqhkiG9w0B
// SIG // AQwFAAOCAQEAcKC/Q1xV5zhfoKN0Gz22Ftf3v1cHvZqs
// SIG // oYcs7IVeqRq7IviHGmlUIu2kiHdtvRoU9BNKei8ttzjv
// SIG // 9P+Aufih9/Jy3iS8UgPITtAq3votVs/59PesMHqai7Je
// SIG // 1M/RQ0SbQyHrlnKhSLSZy51PpwYDE3cnRNTnf+hZqPC/
// SIG // Lwum6fI0POz3A8eHqNJMQBk1RmppVLC4oVaO7KTVPeix
// SIG // 3P0c2PR3WlxUjG/voVA9/HYJaISfb8rbII01YBwCA8sg
// SIG // sKxYoA5AY8WYIsGyWfVVa88nq2x2zm8jLfR+cWojayL/
// SIG // ErhULSd+2DrZ8LaHlv1b0VysGMNNn3O3AamfV6peKOK5
// SIG // lDGCA3wwggN4AgEBMH0waTELMAkGA1UEBhMCVVMxFzAV
// SIG // BgNVBAoTDkRpZ2lDZXJ0LCBJbmMuMUEwPwYDVQQDEzhE
// SIG // aWdpQ2VydCBUcnVzdGVkIEc0IFRpbWVTdGFtcGluZyBS
// SIG // U0E0MDk2IFNIQTI1NiAyMDI1IENBMQIQCoDvGEuN8QWC
// SIG // 0cR2p5V0aDANBglghkgBZQMEAgEFAKCB0TAaBgkqhkiG
// SIG // 9w0BCQMxDQYLKoZIhvcNAQkQAQQwHAYJKoZIhvcNAQkF
// SIG // MQ8XDTI1MTAxNTIyMjExNFowKwYLKoZIhvcNAQkQAgwx
// SIG // HDAaMBgwFgQU3WIwrIYKLTBr2jixaHlSMAf7QX4wLwYJ
// SIG // KoZIhvcNAQkEMSIEIIm4Oew+AI96m0OslOtGj/uK7VOs
// SIG // gngH9N2SfZJtNUq7MDcGCyqGSIb3DQEJEAIvMSgwJjAk
// SIG // MCIEIEqgP6Is11yExVyTj4KOZ2ucrsqzP+NtJpqjNPFG
// SIG // EQozMA0GCSqGSIb3DQEBAQUABIICAM5XjK8lHjiFnSbA
// SIG // bA1hC0oDQGkR8XeAJyt+05gaQklPnCRDPpFrUEG13sdi
// SIG // p8grgXCLa5H4t5U1ZkCCtKsc4DqnniXbBvSbaTOFRCar
// SIG // a/5/Jzn/vxpvYfbbhF8nSt1OeJRwYe1/+8kqH8ZIOM6x
// SIG // ag/ydryS+M+6CnMwGNZQVZGQ413MOPijMov+hX8VGlSp
// SIG // IazoCf9IjSBMXLmo9KxtbOCNf6NmX/DkkiPR2lNTSFEL
// SIG // 7Wq+NMotycfJ+zwzAUpmYVx+TbVQejSZzglczd5Q+799
// SIG // oW+ww7jmcfhdM4n/0cwSqeOQaKTH7BnM5j1O8fJXGvHB
// SIG // i4BojO15YjoOTQjnn+Of9Tuo5kLRAI883TlQzfZXShUK
// SIG // MXR/vpapqxu3iW2SyR+kPk/wTjl5I7+U+Sz0Ik8kC6cM
// SIG // 4a0S+f1ELauDXd9a4CvBsHlvM3n6t9sK1/noBgEy4tdH
// SIG // uX/u+5d4jiv8YqFDzNf1X5tjG+thj89OvYh4BHeSS7/g
// SIG // i3Q3JmLBlpBxvkpDbl66B4S+4SIpmdU5ilII7jXI+A05
// SIG // i7e+3hWX9wViah44KFkdNoi34Oiwqgt24YgGT1pQ56df
// SIG // wjz9YpmV7Fq9fXkCewZuO45xWt6HxggBYn6WSTKb/js0
// SIG // qiz94WlF3vdlbdeXqdhUBxrkSmN8B/27/yySt6w45Mrh
// SIG // 5S56wZLO
// SIG // End signature block