KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
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:/ProgramData/NVIDIA Corporation/Downloader/latest/NvApp/www/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : C:/ProgramData/NVIDIA Corporation/Downloader/latest/NvApp/www/450.e65136a073bb9eeb.js
"use strict";(self.webpackChunknvapp=self.webpackChunknvapp||[]).push([[450],{30450:(Ra,re,g)=>{g.r(re),g.d(re,{Manage3dSettingsModule:()=>Ga});var c=g(61142),oe=g(51006),f=g(3816),le=g(99049),J=g(85161),Ne=g(35146),I=g(36466),ee=g(1242),ge=g(26772),e=g(58527),p=g(26537),Be=g(3960),j=g(56068),C=g(86667),Ue=g(78812),ke=g(37159),$e=g(15294),ze=g(59859),G=g(43848),M=g(91384),m=g(72147),W=g(10174),ce=g(14714),d=g(63407),ue=g(30627),de=g(31315),l=g(98207),Ye=g(74541),te=g(96277),pe=g(93818);let N=(()=>{var i;class r extends Ye._{constructor(t,n,s,o){super(t,n,s,o),this.logger=t.getLogger("nvapp/ProgramSettingsService"),this.initProgramSettingsListener(),this.isGlobalContext=!1}initProgramSettingsListener(){this.getSettingsSubscription&&this.getSettingsSubscription.unsubscribe(),this.getSettingsSubscription=this.manage3dSettingsUtilService.getGlobalSettings().pipe((0,m.n)(t=>(0,de.zV)([(0,G.of)(t),this.manage3dSettingsUtilService.getProfileSettings()]))).subscribe(([t,n])=>{const s=this.updateDefaultGlobalValue(n),o=this.updateGlobalValue(t,s);this.clearAndNotify(o)},t=>{this.logger.error("Error fetching Program settings:",t),this.profileSettingsInfoSubject.error(t)})}refreshProgramSettings(t,n,s=!0){if(t?.profileName)this.selectedProfileInfo=t;else if(!this.selectedProfileInfo?.profileName){const o="DRS Profile name is blank, settings will not be loaded";return this.logger.error(o),this.manage3dSettingsTelemetryService.send3DSettingsLoadErrorTelemetry(!1,o,this.selectedProfileInfo,n),(0,G.of)(null)}return this.manage3dSettingsUtilService.refreshProfileSettings(this.selectedProfileInfo,s)}updateDefaultGlobalValue(t){return t.forEach(n=>{const s=n.settingName+d.lz;switch(n.settingName){case l.JsonTypeSettings.BatteryBoost:case l.JsonTypeSettings.WhisperMode:n.settingValue[s]=l.DefaultGlobalEnum.UseGlobalValue;break;default:""===n.settingValue[s]&&(n.settingValue[s]=l.DefaultGlobalEnum.UseGlobalValue)}}),t}updateGlobalValue(t,n){return n.forEach(s=>{const o=t.find(u=>u.settingName===s.settingName);o?(s.settingValue.settingGlobalValue=o.settingValue,this.handleExceptionalSettingsCase(o,s)):this.logger.error("No corresponding global value found for ",s.settingName)}),n}handleExceptionalSettingsCase(t,n){if(t.settingName===l.JsonTypeSettings.DSRFactor){const s=n.settingName+d.lz;n.settingValue[s]=t.settingValue[s]}}getVisibleProfileSettings(t){return t.filter(n=>!(n.settingName in l.CuratedProgramSettings))}ngOnDestroy(){this.getSettingsSubscription&&this.getSettingsSubscription.unsubscribe(),this.refreshSettingsSub&&this.refreshSettingsSub.unsubscribe()}}return(i=r).\u0275fac=function(t){return new(t||i)(e.KVO(f.J6),e.KVO(te.F),e.KVO(C.f),e.KVO(pe._))},i.\u0275prov=e.jDH({token:i,factory:i.\u0275fac,providedIn:"root"}),r})();var Ke=g(65224);let me=(()=>{var i;class r{constructor(t,n,s,o,u,_){this.loggingService=t,this.program3dSettingsService=n,this.global3dSettingsService=s,this.bridgeService=o,this.manage3dSettingsAPIService=u,this.displaysService=_,this.logger=this.loggingService.getLogger("nvapp/OutsideGraphicsUpdateService")}refresh3dSettingListenerOnDisplayChanges(){return this.bridgeService.executeCommand(d.NE,{}).pipe((0,M.M)(t=>{this.manage3dSettingsAPIService.baseProfileSettingsInfoCache=[],this.logger.info("Received display change notification",t," refreshing graphics settings")}),(0,m.n)(()=>this.global3dSettingsService.refreshGlobalSettings()),(0,m.n)(()=>this.program3dSettingsService.refreshProgramSettings()),(0,M.M)(t=>this.logger.info("Refreshed graphics settings after display changes")),(0,W.u)(!0),(0,ce.W)(t=>(this.logger.error("Some error while refreshing graphics settings after display changes",t),(0,ze.$)(t))))}getDisableStateAfterGsyncUpdate(){return this.displaysService.getGlobalGsyncInfo().pipe((0,m.n)(t=>(this.logger.info("Graphics settings refreshed after Gsync update"),(0,G.of)(!(t.globalGsyncState===ue.nX.Off||t.globalGsyncState===ue.nX.NotAvailable)))),(0,ce.W)(t=>(this.logger.error("Some error occured in graphics settings refresh after Gsync update",t),(0,G.of)(!1))))}}return(i=r).\u0275fac=function(t){return new(t||i)(e.KVO(f.J6),e.KVO(N),e.KVO(j.R),e.KVO(f.NZ),e.KVO(te.F),e.KVO(Ke.R))},i.\u0275prov=e.jDH({token:i,factory:i.\u0275fac,providedIn:"root"}),r})();var D=g(29370),Y=g(68477),x=g(28139),H=g(65726),P=g(83128),h=g(65240),Z=g(96306),ne=g(37898),w=g(47973),A=g(99204),b=g(26875),X=g(8619),Xe=g(83915),Le=g(53461),qe=g(40482),T=g(44296),E=g(54504),Q=g(80583),ie=g(36877),R=g(4208),Je=g(44264);let U=(()=>{var i;class r{constructor(t,n,s,o,u){this.element=t,this.loggingService=n,this.viewContainerRef=s,this.renderer=o,this.settingInfoModalService=u,this.showIcon=!0,this.destroy$=new Q.B7,this.logger=this.loggingService.getLogger("nvapp/SettingInfoIconDirective")}ngOnInit(){this.appendInfoIcon()}appendInfoIcon(){if(!this.showIcon)return;this.viewContainerRef.clear(),this.matIcon=this.viewContainerRef.createComponent(D.An),this.matIcon.instance.svgIcon="info",this.renderer.addClass(this.matIcon.location.nativeElement,"setting-info-icon");const t=this.element?.nativeElement?.querySelector(".setting-info-icon-container");t?(this.attachClickListenerToInfoIcon(),this.attachMouseEventOnDirectiveElement(),this.renderer.appendChild(t,this.matIcon.location.nativeElement)):this.logger.error("setting info icon container not found to inject info icon")}attachClickListenerToInfoIcon(){(0,ie.R)(this.matIcon.location.nativeElement,"click").pipe((0,R.Q)(this.destroy$)).subscribe(t=>{t.stopImmediatePropagation(),this.logger.info("setting info icon clicked for settings details",this.settingDetails),this.settingInfoModalService.open(this.settingDetails)})}attachMouseEventOnDirectiveElement(){this.element?(this.renderer.addClass(this.element.nativeElement,"setting-info-icon-parent-container"),(0,ie.R)(this.element.nativeElement,"mouseover").pipe((0,R.Q)(this.destroy$)).subscribe(t=>{t.stopImmediatePropagation(),this.matIcon&&this.renderer.addClass(this.matIcon.location.nativeElement,"show")}),(0,ie.R)(this.element.nativeElement,"mouseout").pipe((0,R.Q)(this.destroy$)).subscribe(t=>{t.stopImmediatePropagation(),this.matIcon&&this.renderer.removeClass(this.matIcon.location.nativeElement,"show")})):this.logger.error("setting Info icon parent ref not found for setting",this.settingDetails)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return(i=r).\u0275fac=function(t){return new(t||i)(e.rXU(e.aKT),e.rXU(f.J6),e.rXU(e.c1b),e.rXU(e.sFG),e.rXU(Je.P))},i.\u0275dir=e.FsC({type:i,selectors:[["","nvAppSettingInfoIcon",""]],inputs:{settingDetails:"settingDetails",showIcon:"showIcon"}}),r})();var he=g(54676),L=g(49678);function We(i,r){if(1&i){const a=e.RV6();e.j41(0,"button",3),e.bIt("click",function(){const n=e.eBV(a).$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&i){const a=r.$implicit;e.R7$(2),e.Y8G("ngClass",null!=a&&a.selected?"selected":""),e.R7$(),e.SpI(" ",a.displayValue," ")}}function He(i,r){if(1&i&&(e.qex(0),e.DNE(1,We,4,2,"button",2),e.bVm()),2&i){const a=e.XpG();e.R7$(),e.Y8G("ngForOf",a.featureDisplayOptions)}}function Ze(i,r){if(1&i){const a=e.RV6();e.j41(0,"mat-radio-button",8),e.bIt("change",function(){const n=e.eBV(a).$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&i){const a=r.$implicit;e.FS9("value",null==a?null:a.displayValue),e.Y8G("checked",null==a?null:a.selected),e.R7$(2),e.Y8G("ngClass",null!=a&&a.selected?"selected":""),e.R7$(),e.SpI(" ",a.displayValue," ")}}function Qe(i,r){if(1&i&&(e.qex(0),e.j41(1,"mat-radio-group",6),e.DNE(2,Ze,4,4,"mat-radio-button",7),e.k0s(),e.bVm()),2&i){const a=e.XpG();e.R7$(2),e.Y8G("ngForOf",a.featureDisplayOptions)}}let k=(()=>{var i;class r{constructor(t,n,s){this.loggingService=t,this.translateService=n,this.manage3dSettingsUtilService=s,this.featureDynamic=!1,this.settingData={},this.selectValue=new e.bkB,this.featureDisplayOptions=[],this.keyUnlocalizedPattern=new RegExp(d.M5),this.logger=this.loggingService.getLogger("nvapp/FeatureRadioGroupComponent")}ngOnInit(){this.initSelection()}ngOnChanges(t){this.featureDynamic?this.initSelection():this.selectedFeatureKey=t.selectedFeatureKey?.currentValue}initSelection(){let t;this.featureDisplayOptions=[],this.settingData?.featureEnumKeys.forEach(n=>{let s="";s=this.keyUnlocalizedPattern.test(n)?this.settingData?.featureEnum[n]:n===l.DefaultGlobalEnum.UseGlobalKey?this.translateService.instant("manage3dSettings.useProfile"):this.manage3dSettingsUtilService.getSettingTranslatedText(this.settingData.featureName,n),!this.settingData?.isGlobalContext&&n===l.DefaultGlobalEnum.UseGlobalKey&&(t=this.manage3dSettingsUtilService.resolveUseGlobalValue(this.featureDynamic,this.settingData?.featureEnum,this.settingData?.featureGlobalValue,this.settingData?.featureName,this.underLyingGlobalValue),s=`${s} - ${t}`),n===this.settingData?.settingDefaultKey&&(s=`${s} (${this.translateService.instant("common.default")})`),this.featureDisplayOptions.push({enumKey:n,displayValue:s,selected:this.selectedFeatureKey===n})})}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(n=>{n.selected=this.selectedFeatureKey===n.enumKey})}}return(i=r).\u0275fac=function(t){return new(t||i)(e.rXU(f.J6),e.rXU(h.c$),e.rXU(C.f))},i.\u0275cmp=e.VBU({type:i,selectors:[["nv-app-feature-radio-group"]],inputs:{featureDynamic:"featureDynamic",settingData:"settingData",underLyingGlobalValue:"underLyingGlobalValue",selectedFeatureKey:"selectedFeatureKey",isRadioButton:"isRadioButton"},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",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",1,"option-content-container",3,"click"],[1,"option-content"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"font-body2","option-text",3,"ngClass"],["aria-label","Select an option"],["class","option-content-container",3,"value","checked","change",4,"ngFor","ngForOf"],[1,"option-content-container",3,"change","value","checked"]],template:function(t,n){1&t&&(e.j41(0,"div",0),e.DNE(1,He,2,1,"ng-container",1),e.k0s(),e.DNE(2,Qe,3,1,"ng-container",1)),2&t&&(e.R7$(),e.Y8G("ngIf",!n.isRadioButton),e.R7$(),e.Y8G("ngIf",n.isRadioButton))},dependencies:[c.YU,c.Sq,c.bT,T.gy,he.tG,E.a,L.VT,L._g,x.PW],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))}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - 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:#393939;max-width:280px;min-width:112px;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:#76b900}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}"]}),r})(),et=(()=>{var i;class r{constructor(t,n){this.loggingService=t,this.manage3dSettingsUtilService=n,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 n={selectedKeyOrValue:t.selectedKeyOrValue,displayValue:t.displayValue};this.logger.info("Selected value is",n),this.finalIntegerVal.emit(n)}getFeatureCurrentValue(){switch(this.settingData?.featureName){case l.JsonTypeSettings.BatteryBoost:return this.manage3dSettingsUtilService.getCurrentValueForJsonTypeSetting(this.settingData,l.BatteryBoostValue.On,l.BatteryBoostValue.Off);case l.JsonTypeSettings.WhisperMode:return this.manage3dSettingsUtilService.getCurrentValueForJsonTypeSetting(this.settingData,l.WhisperModeValue.On,l.WhisperModeValue.Off);case l.JsonTypeSettings.AIDVC:return this.manage3dSettingsUtilService.getCurrentValueForJsonTypeSetting(this.settingData,l.AIDVCValue.On,l.AIDVCValue.Off);case l.JsonTypeSettings.AIHDR:return this.manage3dSettingsUtilService.getCurrentValueForJsonTypeSetting(this.settingData,l.AIHDRValue.On,l.AIHDRValue.Off);default:return this.settingData?.featureCurrentValue}}}return(i=r).\u0275fac=function(t){return new(t||i)(e.rXU(f.J6),e.rXU(C.f))},i.\u0275cmp=e.VBU({type:i,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(t,n){1&t&&(e.j41(0,"nv-app-feature-radio-group",0),e.bIt("selectValue",function(o){return n.updateSelectedValue(o)}),e.k0s()),2&t&&e.Y8G("settingData",n.settingData)("featureDynamic",!0)("selectedFeatureKey",n.selectedFeatureKey)},dependencies:[k],encapsulation:2}),r})();function tt(i,r){if(1&i){const a=e.RV6();e.qex(0),e.j41(1,"nv-app-feature-dynamic-setting-radio-ui",2),e.bIt("finalIntegerVal",function(n){e.eBV(a);const s=e.XpG();return e.Njj(s.emitFinalValue(n))}),e.k0s(),e.bVm()}if(2&i){const a=e.XpG();e.R7$(),e.Y8G("settingData",a.settingData)}}let nt=(()=>{var i;class r{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)}}return(i=r).\u0275fac=function(t){return new(t||i)(e.rXU(f.J6))},i.\u0275cmp=e.VBU({type:i,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(t,n){1&t&&(e.qex(0,0),e.DNE(1,tt,2,1,"ng-container",1),e.bVm()),2&t&&e.Y8G("ngSwitch",null==n.settingData?null:n.settingData.featureName)},dependencies:[c.ux,c.fG,et]}),r})(),it=(()=>{var i;class r{constructor(t){this.loggingService=t,this.settingData={},this.selectFeatureKey=new e.bkB,this.logger=this.loggingService.getLogger("nvapp/FeatureStaticUIComponent")}ngOnInit(){this.initSelection()}initSelection(){this.selectedFeatureKey=Object.keys(this.settingData?.featureEnum).find(t=>this.settingData?.featureEnum[t]===this.settingData?.featureCurrentValue)}updateSelectedValue(t){this.selectedFeatureKey=t.selectedFeatureKey;const n={selectedKeyOrValue:t.selectedKeyOrValue,displayValue:t.displayValue};this.logger.info(n),this.selectFeatureKey.emit(n)}}return(i=r).\u0275fac=function(t){return new(t||i)(e.rXU(f.J6))},i.\u0275cmp=e.VBU({type:i,selectors:[["nv-app-feature-static-ui"]],inputs:{settingData:"settingData"},outputs:{selectFeatureKey:"selectFeatureKey"},decls:1,vars:2,consts:[[3,"selectValue","settingData","selectedFeatureKey"]],template:function(t,n){1&t&&(e.j41(0,"nv-app-feature-radio-group",0),e.bIt("selectValue",function(o){return n.updateSelectedValue(o)}),e.k0s()),2&t&&e.Y8G("settingData",n.settingData)("selectedFeatureKey",n.selectedFeatureKey)},dependencies:[k],encapsulation:2}),r})();const at=["menuTrigger"],st=(i,r)=>({nvidiaSettingName:i,errors:r}),fe=(i,r)=>({"font-sub2":i,"color-unset":r});function rt(i,r){1&i&&e.nrm(0,"mat-progress-spinner",17),2&i&&e.Y8G("diameter",20)}function ot(i,r){if(1&i&&(e.j41(0,"span",18),e.EFF(1),e.k0s()),2&i){const a=e.XpG();e.Y8G("ngClass",e.l_i(2,fe,a.profileValueBold,a.isDisabled)),e.R7$(),e.SpI(""," - "+a.globalTransVal," ")}}function lt(i,r){if(1&i&&e.nrm(0,"mat-icon",19),2&i){const a=e.XpG();e.Y8G("svgIcon",a.icon)}}function gt(i,r){if(1&i){const a=e.RV6();e.j41(0,"nv-app-feature-static-ui",20),e.bIt("selectFeatureKey",function(n){e.eBV(a);const s=e.XpG();return e.Njj(s.selectFeatureKey(n))}),e.k0s()}if(2&i){const a=e.XpG();e.Y8G("settingData",a.settingData)}}function ct(i,r){if(1&i){const a=e.RV6();e.j41(0,"nv-app-feature-dynamic-ui",20),e.bIt("selectFeatureKey",function(n){e.eBV(a);const s=e.XpG();return e.Njj(s.selectFeatureKey(n))}),e.k0s()}if(2&i){const a=e.XpG();e.Y8G("settingData",a.settingData)}}let ut=(()=>{var i;class r{constructor(t,n,s,o,u,_,S){this.loggingService=t,this.manage3dSettingsUtilService=n,this.program3dSettingsService=s,this.global3dSettingsService=o,this.errorHandlerService=u,this.ngZone=_,this.outsideGraphicsUpdateService=S,this.settingData={},this.isFeatureDisabled=!1,this.isDependentSettingToDisable=!1,this.icon="carrot_down",this.profileValueBold=!1,this.currentValueBold=!1,this.isDisabled=!1,this.uiControlBusy=!1,this.showUiControlBusy=!1,this.showErrorToast=F=>{this.errorHandlerService.showToastMessage({text:"manage3dSettings.anErrorOccurred",placeholders:{errorText:F.message??""},translated:!1}).subscribe(),this.logger.error(F),this.ngOnDestroy(),this.ngOnInit(),this.ngAfterViewInit()},this.logger=this.loggingService.getLogger("nvapp/FeatureExpansionPanelComponent")}ngOnInit(){this.featureCurrentOriginalValue=this.settingData?.featureCurrentValue,this.initFeatureKeys(),this.checkIconType(),this.updateBoldEffectForSetting(),this.updateDisabled()}updateDisabled(){this.isDisabled=this.isFeatureDisabled||this.isDependentSettingToDisable||this.settingData?.isGreyedOut,this.settingData?.featureName===l.DependentSettingsList.StereoEnable&&this.settingData?.isGlobalContext&&(this.disableAfterGsyncSub=this.outsideGraphicsUpdateService.getDisableStateAfterGsyncUpdate().subscribe(t=>{this.isDisabled=this.isDisabled||t}))}ngAfterViewInit(){this.listenForDisableCheck(),this.listenForEscapeKey()}listenForDisableCheck(){this.dependencyCheckSub=this.manage3dSettingsUtilService.getSettingsDisableNotification().pipe((0,X.p)(t=>t.disableNotification.some(n=>n.settingName===this.settingData.featureName)&&this.settingData.isGlobalContext===t.isGlobalContext),(0,Xe.T)(t=>t.disableNotification.find(n=>n.settingName===this.settingData.featureName).isDisabled),(0,Le.F)(),(0,X.p)(t=>this.isDependentSettingToDisable!==t),(0,M.M)(t=>{this.isDependentSettingToDisable=t,this.updateDisabled()})).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)}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),n=this.getCurrentValue();let s=t.find(o=>this.settingData?.featureEnum[o]===n);s||(this.logger.info(`There is no key found for ${this.settingData?.featureName} for current value ${n} in ${JSON.stringify(this.settingData?.featureEnum)}`),this.logger.info("Defaulting to first value"),s=t[0]),this.selectedFeatureDisplayValue=this.manage3dSettingsUtilService.getSettingDisplayText(this.settingData.featureName,this.settingData.featureCurrentValue,s,this.settingData.featureEnum),!this.settingData?.isGlobalContext&&s===l.DefaultGlobalEnum.UseGlobalKey&&(this.logger.info(`Checking the global text value for feature ${this.settingData?.featureName}`),this.globalTransVal=this.manage3dSettingsUtilService.resolveUseGlobalValue(this.settingData?.isDynamic,this.settingData?.featureEnum,this.settingData?.featureGlobalValue,this.settingData?.featureName),this.logger.info(`Found global text value for feature ${this.settingData?.featureName} to be = ${this.globalTransVal}`),this.updateBoldForProfile(),this.selectedFeatureDisplayValue=`${this.selectedFeatureDisplayValue}`,this.logger.info(`Display text ${this.selectedFeatureDisplayValue}`))}selectFeatureKey(t){this.selectedFeatureValue=(0,b.isNil)(this.settingData?.featureEnum[t.selectedKeyOrValue])?t.selectedKeyOrValue:this.settingData?.featureEnum[t.selectedKeyOrValue],this.selectedFeatureDisplayValue=t.displayValue,this.applySetting()}openMenuOrModal(){this.uiControlBusy?(this.showUiControlBusy=!0,this.menuTrigger.closeMenu()):(this.uiControlBusy=!0,this.expandSettingOptionsSub?.unsubscribe(),this.expandSettingOptionsSub=this.manage3dSettingsUtilService.expandSettingOptions(this.settingData,this.menuTrigger,this.globalTransVal).subscribe(t=>{t?(this.selectFeatureKey(t),this.updateUiControlState(d.uf)):this.updateUiControlState(0)},t=>{this.logger.error(t)},()=>{this.updateUiControlState(d.uf)}))}dropDownMenuClosed(t){this.updateUiControlState(t?d.uf:0)}listenForEscapeKey(){this.ngZone.runOutsideAngular(()=>{const t=(0,qe.qU)(document,"keydown","Escape");this.escapeSub=t.subscribe(n=>{this.menuTrigger.closeMenu(),n.stopPropagation()})})}updateUiControlState(t){this.uiControlBusy=!0,setTimeout(()=>{this.uiControlBusy=!1,this.showUiControlBusy=!1},t)}applySetting(){this.setSelectedFeature(),this.checkForSettingDisable(),this.settingData?.isGlobalContext?this.global3dSettingsService.applySingleSetting(this.currentSelectedValue).pipe((0,M.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,m.n)(()=>this.refreshComponent()),(0,m.n)(()=>this.global3dSettingsService.refreshGlobalSettings()),(0,m.n)(()=>this.program3dSettingsService.refreshProgramSettings())).subscribe(I.l,this.showErrorToast):this.program3dSettingsService.applySingleSetting(this.currentSelectedValue).pipe((0,m.n)(()=>this.refreshComponent()),(0,m.n)(()=>this.program3dSettingsService.refreshProgramSettings())).subscribe(I.l,this.showErrorToast)}refreshComponent(){let t;return t=this.settingData.isGlobalContext?this.global3dSettingsService.refreshSingleSetting(this.settingData.enumId):this.program3dSettingsService.refreshSingleSetting(this.settingData.enumId),t.pipe((0,M.M)(n=>{this.reInitComponent(n)}),(0,W.u)(!0))}reInitComponent(t){t&&(this.settingData.featureCurrentValue=this.manage3dSettingsUtilService.getFeatureValue(this.settingData.settingType,t),this.ngOnInit())}getCurrentValue(){let t;switch(this.settingData?.featureName){case l.JsonTypeSettings.BatteryBoost:t=this.manage3dSettingsUtilService.getCurrentValueForJsonTypeSetting(this.settingData,l.BatteryBoostValue.On,l.BatteryBoostValue.Off),this.settingData.isUserModified=t!==l.BatteryBoostValue.On,this.isFeatureDisabled=!this.settingData?.isGlobalContext;break;case l.JsonTypeSettings.WhisperMode:t=this.manage3dSettingsUtilService.getCurrentValueForJsonTypeSetting(this.settingData,l.WhisperModeValue.On,l.WhisperModeValue.Off),this.settingData.isUserModified=t!==l.WhisperModeValue.Off,this.isFeatureDisabled=!this.settingData?.isGlobalContext;break;case l.JsonTypeSettings.ImageScaling:t=this.manage3dSettingsUtilService.getCurrentValueForJsonTypeSetting(this.settingData,l.ImageScalingValue.On,l.ImageScalingValue.Off),this.settingData.isUserModified=t!==l.ImageScalingValue.Off;break;case l.JsonTypeSettings.AIHDR:t=this.manage3dSettingsUtilService.getCurrentValueForJsonTypeSetting(this.settingData,l.AIHDRValue.On,l.AIHDRValue.Off);break;case l.JsonTypeSettings.AIDVC:t=this.manage3dSettingsUtilService.getCurrentValueForJsonTypeSetting(this.settingData,l.AIDVCValue.On,l.AIDVCValue.Off),this.settingData.isUserModified=t!==l.AIDVCValue.Off;break;default:t=this.settingData?.featureCurrentValue}return t}setCurrentFeature(t){this.currentSelectedValue={settingName:this.settingData?.featureName,isDirty:t,selectedFeatureValue:this.selectedFeatureValue}}setSelectedFeature(){this.globalTransVal=null;let t=!1;const n=1==+this.selectedFeatureValue;switch(this.settingData?.featureName){case l.JsonTypeSettings.BatteryBoost:const s=JSON.parse(this.featureCurrentOriginalValue?.toString()??null),o={...s,enabled:n};t=this.isFeatureValueChanged(s,o);break;case l.JsonTypeSettings.WhisperMode:const u=JSON.parse(this.featureCurrentOriginalValue?.toString()??null),_={...u,enabled:n};t=this.isFeatureValueChanged(u,_);break;case l.JsonTypeSettings.AIHDR:t=this.isHDRValueChanged(n);break;case l.JsonTypeSettings.AIDVC:const S=JSON.parse(this.featureCurrentOriginalValue?.toString()??null),F={...S,enabled:n};t=this.isFeatureValueChanged(S,F);break;default:t=this.selectedFeatureValue!==this.featureCurrentOriginalValue}this.setCurrentFeature(t)}isHDRValueChanged(t){let s={};if(+this.selectedFeatureValue===l.DefaultGlobalEnum.UseGlobalValue)s={useGlobal:!0};else{const u=JSON.parse(this.settingData?.settingDefaultValue?.toString());s.enabled=t,s.peakBrightness=u?.peakBrightnessMax,s.middleGrey=u?.middleGrey,s.contrast=u?.contrast,s.saturation=u?.saturation}const o=JSON.parse(this.featureCurrentOriginalValue?.toString()??null);return this.selectedFeatureValue=JSON.stringify(s),!(0,b.isEqual)(s,o)}isFeatureValueChanged(t,n){let s=!1;const o=1==+this.selectedFeatureValue;return(0,b.isNil)(t)||(s=!(0,b.isEqual)(o,t?.enabled),this.selectedFeatureValue=JSON.stringify(n)),s}checkIconType(){const t="edit_settings",n="carrot_down";switch(this.settingData?.featureName){case l.DynamicSettings.CudaGpus:this.icon=t;break;case l.DynamicSettings.DSRFactor:this.icon=t,this.isFeatureDisabled=!this.settingData.isGlobalContext;break;case l.JsonTypeSettings.BatteryBoost:const s=JSON.parse(this.settingData?.featureCurrentValue.toString());this.icon=s.version===l.BatteryBoostVersionEnum.V1?t:n;break;case l.JsonTypeSettings.WhisperMode:const o=JSON.parse(this.settingData?.featureCurrentValue.toString());this.icon=o.version===l.WhisperModeVersionEnum.V2?t:n}}updateBoldEffectForSetting(){this.currentValueBold=this.manage3dSettingsUtilService.updateBoldEffectForSetting(this.settingData,this.selectedFeatureValue)}updateBoldForProfile(){this.profileValueBold=this.manage3dSettingsUtilService.updateBoldForProfile(this.settingData)}ngOnDestroy(){this.dependencyCheckSub?.unsubscribe(),this.allSettingsLoadedSub?.unsubscribe(),this.expandSettingOptionsSub?.unsubscribe(),this.escapeSub?.unsubscribe(),this.disableAfterGsyncSub?.unsubscribe()}}return(i=r).\u0275fac=function(t){return new(t||i)(e.rXU(f.J6),e.rXU(C.f),e.rXU(N),e.rXU(j.R),e.rXU(Z.c),e.rXU(e.SKi),e.rXU(me))},i.\u0275cmp=e.VBU({type:i,selectors:[["nv-app-feature-expansion-panel"]],viewQuery:function(t,n){if(1&t&&e.GBs(at,5),2&t){let s;e.mGM(s=e.lsd())&&(n.menuTrigger=s.first)}},inputs:{settingData:"settingData"},decls:21,vars:20,consts:[["menuTrigger","matMenuTrigger"],["settingMenu","matMenu"],["dynamicUI",""],["nvAppSettingInfoIcon","",1,"feature-expansion-panel-container","feature-expansion-panel-border",3,"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","","aria-label","Action Menu for select settings",1,"font-body2","setting-drop-down",3,"click","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",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(t,n){if(1&t){const s=e.RV6();e.j41(0,"div",3)(1,"div",4)(2,"div",5)(3,"label",6),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"div",7),e.DNE(7,rt,1,1,"mat-progress-spinner",8),e.j41(8,"button",9,0),e.bIt("click",function(){return e.eBV(s),e.Njj(n.openMenuOrModal())}),e.j41(10,"div",10),e.EFF(11),e.DNE(12,ot,2,5,"span",11),e.k0s(),e.DNE(13,lt,1,1,"mat-icon",12),e.k0s()()(),e.j41(14,"mat-menu",13,1),e.bIt("closed",function(u){return e.eBV(s),e.Njj(n.dropDownMenuClosed(u))}),e.j41(16,"div",14)(17,"div",15),e.DNE(18,gt,1,1,"nv-app-feature-static-ui",16)(19,ct,1,1,"ng-template",null,2,e.C5r),e.k0s()()()()}if(2&t){const s=e.sdS(15),o=e.sdS(20);e.FS9("id",null==n.settingData?null:n.settingData.featureName),e.Y8G("settingDetails",e.l_i(14,st,null==n.settingData?null:n.settingData.featureName,null==n.settingData?null:n.settingData.errorMessages)),e.R7$(4),e.SpI(" ",e.bMT(5,12,"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(17,fe,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:[c.YU,c.bT,w.iV,D.An,T.pI,T.fS,A.LG,E.a,x.PW,U,nt,it,h.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))}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - 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:#191919;padding:0 16px}.feature-expansion-panel-container[_ngcontent-%COMP%]   .mat-menu-header[_ngcontent-%COMP%]:hover{background-color:#ffffff0a}.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:#636363}.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}"]}),r})();function dt(i,r){if(1&i&&e.nrm(0,"nv-app-feature-expansion-panel",1),2&i){const a=e.XpG();e.Y8G("settingData",a.settingDataObjectForChildComponent)}}let _e=(()=>{var i;class r{constructor(t){this.loggingService=t,this.logger=this.loggingService.getLogger("nvapp/Manage3dSettingFeatureComponent")}ngOnInit(){this.featureSettingKey=this.featureName+d.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,enumId:this.featureSettingObject.SettingInfo.enumId,settingType:this.featureSettingObject.SettingInfo.SettingType}}ngOnDestroy(){this.featureEnumSub&&this.featureEnumSub.unsubscribe()}}return(i=r).\u0275fac=function(t){return new(t||i)(e.rXU(f.J6))},i.\u0275cmp=e.VBU({type:i,selectors:[["nv-app-manage-3d-setting-feature"]],inputs:{featureName:"featureName",featureSettingObject:"featureSettingObject",isGlobalContext:"isGlobalContext"},decls:1,vars:1,consts:[[3,"settingData",4,"ngIf"],[3,"settingData"]],template:function(t,n){1&t&&e.DNE(0,dt,1,1,"nv-app-feature-expansion-panel",0),2&t&&e.Y8G("ngIf",!!n.settingDataObjectForChildComponent)},dependencies:[c.bT,ut]}),r})();var V=g(65706),K=g(5428),$=g(97888);let pt=(()=>{var i;class r{constructor(t,n,s,o,u,_,S){this.loggingService=t,this.translateService=n,this.dialogData=s,this.dialogRef=o,this.global3dSettingsService=u,this.program3dSettingsService=_,this.manage3dSettingsUtilService=S,this.settingData={},this.minValue=d.Sl.minValue,this.maxValue=d.Sl.maxValue,this.stepValue=d.Sl.stepValue,this.defaultFpsValue="",this.isDirty=!1,this.isRadioButton=!1,this.isDisabled=!0,this.sliderDefaultValue=d.Sl.defaultValue,this.sliderValue=this.sliderDefaultValue,this.showErrorToast=F=>{this.dialogRef.close({applyInProgress:!1,needRefresh:!0}),this.manage3dSettingsUtilService.showApplyErrorToastMessage(F),this.logger.error(F),this.ngOnInit()},this.logger=this.loggingService.getLogger("nvapp/FeatureMaxFrameRateModalComponent"),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}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")}updateSelectedValue(t){this.selectedFeatureKey=t.selectedFeatureKey;const n=this.selectedFeatureKey===l.MaxFrameRateValueDisplayEnum.Off||this.selectedFeatureKey===l.DefaultGlobalEnum.UseGlobalKey;if(this.isDisabled=n,n){let s;this.selectedFeatureKey===l.DefaultGlobalEnum.UseGlobalKey?(this.selectedFeatureDisplayValue=this.getUseGlobalText(),s=l.DefaultGlobalEnum.UseGlobalValue):(this.selectedFeatureDisplayValue=this.getDisabledText(),s=l.MaxFrameRateValue.Off),this.updateDirtyState(s)}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,m.n)(()=>this.global3dSettingsService.refreshGlobalSettings()),(0,m.n)(()=>this.program3dSettingsService.refreshProgramSettings())):this.program3dSettingsService.applySingleSetting(this.selectedFeature).pipe((0,m.n)(()=>this.program3dSettingsService.refreshProgramSettings())),t.subscribe(I.l,this.showErrorToast)}}return(i=r).\u0275fac=function(t){return new(t||i)(e.rXU(f.J6),e.rXU(h.c$),e.rXU(p.Vh),e.rXU(p.CP),e.rXU(j.R),e.rXU(N),e.rXU(C.f))},i.\u0275cmp=e.VBU({type:i,selectors:[["nv-app-feature-max-frame-rate-modal"]],decls:19,vars:22,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"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"font-body2","default-fps",3,"ngClass"],["align","end",1,"actions"],["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(t,n){1&t&&(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.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(10,"span",8),e.EFF(11),e.k0s()()()()(),e.j41(12,"mat-dialog-actions",9)(13,"button",10),e.bIt("click",function(){return n.onCancelClick()}),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"button",11),e.bIt("click",function(){return n.onApplyClick()}),e.EFF(17),e.nI1(18,"translate"),e.k0s()()()),2&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,16,"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),e.R7$(),e.Y8G("ngClass",n.isDisabled?"disabled-opacity":""),e.R7$(),e.JRh(n.defaultFpsValue),e.R7$(3),e.SpI(" ",e.bMT(15,18,"save.cancel")," "),e.R7$(2),e.Y8G("disabled",!n.isDirty),e.R7$(),e.SpI(" ",e.bMT(18,20,"save.apply")," "))},dependencies:[c.YU,w.iV,p.BI,p.Yi,p.E7,K.t,$.Aq,E.a,x.PW,k,h.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))}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - 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:#191919;padding:0 16px}.feature-expansion-panel-container[_ngcontent-%COMP%]   .mat-menu-header[_ngcontent-%COMP%]:hover{background-color:#ffffff0a}.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:#636363}.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}"]}),r})();const mt=i=>({nvidiaSettingName:i}),Se=i=>({"font-sub2":i});function ht(i,r){1&i&&e.nrm(0,"mat-progress-spinner",10),2&i&&e.Y8G("diameter",20)}function ft(i,r){if(1&i&&(e.j41(0,"span",11),e.EFF(1),e.k0s()),2&i){const a=e.XpG();e.Y8G("ngClass",e.eq3(2,Se,a.profileValueBold)),e.R7$(),e.SpI(""," - "+a.globalTransVal," ")}}function _t(i,r){1&i&&e.nrm(0,"mat-icon",12)}let be=(()=>{var i;class r{constructor(t,n,s,o){this.loggingService=t,this.translateService=n,this.manage3dSettingsUtilService=s,this.matDialog=o,this.sliderDefaultValue=d.Sl.defaultValue,this.sliderValue=this.sliderDefaultValue,this.featurePanelOpenState=!1,this.maxFrameRateDisabled=!0,this.currentValueBold=!1,this.profileValueBold=!1,this.uiControlBusy=!1,this.showUiControlBusy=!1,this.logger=this.loggingService.getLogger("nvapp/FeatureMaxFrameRateComponent")}ngOnInit(){this.setFeatureEnumKeys(),this.initSelection()}ngAfterViewInit(){this.savePreviousAppliedValues()}setFeatureEnumKeys(){this.featureSettingKey=this.featureName+d.lz,this.featureCurrentValue=this.featureSettingObject[this.featureSettingKey],this.maxFrameRateFPSSettingKey=l.CuratedGlobalSettings.MaxFrameRateFPS+d.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.sliderValue=this.maxFrameRateFPSCurrentValue&&this.maxFrameRateFPSCurrentValue!==l.DefaultGlobalEnum.UseGlobalValue?this.maxFrameRateFPSCurrentValue||this.sliderValue:this.sliderDefaultValue,!this.isGlobalContext&&this.featureCurrentValue===l.DefaultGlobalEnum.UseGlobalValue)return this.globalTransVal=this.getProfileTranslatedValue(),this.selectedFeatureDisplayValue=`${this.getUseGlobalText()}`,this.updateBoldForProfile(),this.selectedFeatureKey=l.DefaultGlobalEnum.UseGlobalKey,this.maxFrameRateDisabled=!0,this.sliderValue=this.sliderDefaultValue,void(this.selectedFeatureGlobalDisplayValue=this.globalTransVal);this.isGlobalContext||(this.selectedFeatureGlobalDisplayValue=this.getProfileTranslatedValue());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(){let t=this.manage3dSettingsUtilService.resolveUseGlobalValue(!1,this.settingDataObjectForChildComponent.featureEnum,this.settingDataObjectForChildComponent.featureGlobalValue,this.featureName);return 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.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(pt,t),this.settingDialogRef.afterClosed().pipe((0,V.s)(1)).subscribe(n=>{n?.applyInProgress?(this.savePreviousAppliedValues(),this.featureSettingObject[this.featureSettingKey]=n.featureCurrentValue,this.maxFrameRateFPSObject[this.maxFrameRateFPSSettingKey]=n.maxFrameRateFPSCurrentValue,this.ngOnInit()):n?.needRefresh&&(this.getFromPreviousAppliedValues(),this.ngOnInit()),this.updateUiControlState(n?.applyInProgress||n?.needRefresh?d.uf:0)},n=>{this.logger.error(n)},()=>{this.updateUiControlState(d.uf)})}updateUiControlState(t){setTimeout(()=>{this.uiControlBusy=!1,this.showUiControlBusy=!1},t)}savePreviousAppliedValues(){this.featureSettingObjectOriginal=(0,b.cloneDeep)(this.featureSettingObject),this.maxFrameRateFPSObjectOriginal=(0,b.cloneDeep)(this.maxFrameRateFPSObject)}getFromPreviousAppliedValues(){this.featureSettingObject=(0,b.cloneDeep)(this.featureSettingObjectOriginal),this.maxFrameRateFPSObject=(0,b.cloneDeep)(this.maxFrameRateFPSObjectOriginal)}updateBoldEffectForSetting(){this.currentValueBold=this.manage3dSettingsUtilService.updateBoldEffectForSetting(this.settingDataObjectForChildComponent,this.featureCurrentValue)}updateBoldForProfile(){this.profileValueBold=this.manage3dSettingsUtilService.updateBoldForProfile(this.settingDataObjectForChildComponent)}}return(i=r).\u0275fac=function(t){return new(t||i)(e.rXU(f.J6),e.rXU(h.c$),e.rXU(C.f),e.rXU(p.bZ))},i.\u0275cmp=e.VBU({type:i,selectors:[["nv-app-feature-max-frame-rate"]],inputs:{featureName:"featureName",featureSettingObject:"featureSettingObject",maxFrameRateFPSObject:"maxFrameRateFPSObject",isGlobalContext:"isGlobalContext"},decls:13,vars:15,consts:[["nvAppSettingInfoIcon","",1,"feature-expansion-panel-container","feature-expansion-panel-border",3,"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","","aria-label","Action Menu for select settings",1,"font-body2","setting-drop-down",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(t,n){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"label",3),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"div",4),e.DNE(7,ht,1,1,"mat-progress-spinner",5),e.j41(8,"button",6),e.bIt("click",function(){return n.openSettingsModal()}),e.j41(9,"div",7),e.EFF(10),e.DNE(11,ft,2,4,"span",8),e.k0s(),e.DNE(12,_t,1,0,"mat-icon",9),e.k0s()()()()),2&t&&(e.FS9("id",n.featureName),e.Y8G("settingDetails",e.eq3(11,mt,n.featureName)),e.R7$(4),e.JRh(e.bMT(5,9,"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(13,Se,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:[c.YU,c.bT,w.iV,D.An,A.LG,E.a,x.PW,U,h.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))}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - 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:#191919;padding:0 16px}.feature-expansion-panel-container[_ngcontent-%COMP%]   .mat-menu-header[_ngcontent-%COMP%]:hover{background-color:#ffffff0a}.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:#636363}.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}"]}),r})();var z=g(79539);const St=()=>({sharpenValue:""}),bt=()=>({ignoreFilmGrainValue:""});let vt=(()=>{var i;class r{constructor(t,n,s,o,u,_){this.loggingService=t,this.dialogData=n,this.global3dSettingsService=s,this.program3dSettingsService=o,this.dialogRef=u,this.manage3dSettingsUtilService=_,this.settingData={},this.minValue=d.Vo.minValue,this.maxValue=d.Vo.maxValue,this.stepValue=d.Vo.stepValue,this.sharpenSliderValue=d.Vo.sharpen,this.ignoreFilmGrainSliderValue=d.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*d.Vo.sharpen},this.selectedNoiseGrainFeature={settingName:l.StaticSliderSettings.ImageSharpeningNoiseGrain,selectedFeatureValue:100*d.Vo.noiseGrain},this.isRadioButton=!1,this.showErrorToast=S=>{this.dialogRef.close({applyInProgress:!1,needRefresh:!0,featureCurrentValue:this.selectedToggleFeature.selectedFeatureValue}),this.manage3dSettingsUtilService.showApplyErrorToastMessage(S),this.logger.error(S)},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.featureDefaultValue,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.subscribe(I.l,this.showErrorToast)}getProgramSettingApplyObs(){return this.selectedFeatureKey===l.ImageSharpeningAllowValueDisplayEnum.NVCPLAPI_VALUE_SHARPENING_ALLOW_DISABLED?this.program3dSettingsService.applySingleSetting(this.selectedAllowFeature).pipe((0,z.H)(t=>this.program3dSettingsService.applySingleSetting(this.selectedToggleFeature)),(0,m.n)(()=>this.program3dSettingsService.refreshProgramSettings())):this.selectedFeatureKey===l.DefaultGlobalEnum.UseGlobalKey?this.program3dSettingsService.applySingleSetting(this.selectedAllowFeature).pipe((0,m.n)(()=>this.program3dSettingsService.refreshProgramSettings())):this.program3dSettingsService.applySingleSetting(this.selectedAllowFeature).pipe((0,z.H)(t=>this.program3dSettingsService.applySingleSetting(this.selectedToggleFeature)),(0,z.H)(t=>this.program3dSettingsService.applySingleSetting(this.selectedSharpeningFeature)),(0,z.H)(t=>this.program3dSettingsService.applySingleSetting(this.selectedNoiseGrainFeature)),(0,m.n)(()=>this.program3dSettingsService.refreshProgramSettings()))}getGlobalSettingApplyObs(){return this.selectedFeatureKey===l.ImageSharpeningToggleValueDisplayEnum.NVCPLAPI_VALUE_SHARPENING_TOGGLE_DISABLED?this.global3dSettingsService.applySingleSetting(this.selectedToggleFeature).pipe((0,m.n)(()=>this.global3dSettingsService.refreshGlobalSettings()),(0,m.n)(()=>this.program3dSettingsService.refreshProgramSettings())):this.global3dSettingsService.applySingleSetting(this.selectedToggleFeature).pipe((0,z.H)(t=>this.global3dSettingsService.applySingleSetting(this.selectedSharpeningFeature)),(0,z.H)(t=>this.global3dSettingsService.applySingleSetting(this.selectedNoiseGrainFeature)),(0,m.n)(()=>this.global3dSettingsService.refreshGlobalSettings()),(0,m.n)(()=>this.program3dSettingsService.refreshProgramSettings()))}}return(i=r).\u0275fac=function(t){return new(t||i)(e.rXU(f.J6),e.rXU(p.Vh),e.rXU(j.R),e.rXU(N),e.rXU(p.CP),e.rXU(C.f))},i.\u0275cmp=e.VBU({type:i,selectors:[["nv-app-feature-image-sharpening-modal"]],decls:24,vars:35,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"],["align","end",1,"actions"],["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(t,n){1&t&&(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.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(12,"div",5)(13,"div",6),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"nv-hig-slider",7),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(17,"mat-dialog-actions",8)(18,"button",9),e.bIt("click",function(){return n.onCancelClick()}),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"button",10),e.bIt("click",function(){return n.onApplyClick()}),e.EFF(22),e.nI1(23,"translate"),e.k0s()()()),2&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,21,"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,23,"manage3dSettings.ImageSharpening.name",e.lJ4(33,St))," "),e.R7$(2),e.R50("value",n.sharpenSliderValue),e.Y8G("min",n.minValue)("max",n.maxValue)("step",n.stepValue)("disabled",n.isSlidersDisabled),e.R7$(3),e.SpI(" ",e.i5U(15,26,"manage3dSettings.ImageSharpeningNoiseGrain.name",e.lJ4(34,bt))," "),e.R7$(2),e.R50("value",n.ignoreFilmGrainSliderValue),e.Y8G("min",n.minValue)("max",n.maxValue)("step",n.stepValue)("disabled",n.isSlidersDisabled),e.R7$(3),e.SpI(" ",e.bMT(20,29,"save.cancel")," "),e.R7$(2),e.Y8G("disabled",n.isApplyButtonDisabled),e.R7$(),e.SpI(" ",e.bMT(23,31,"save.apply")," "))},dependencies:[c.YU,w.iV,p.BI,p.Yi,p.E7,K.t,$.Aq,x.PW,k,h.D9],encapsulation:2}),r})();const Ct=i=>({nvidiaSettingName:i}),ve=i=>({"font-sub2":i});function xt(i,r){1&i&&e.nrm(0,"mat-progress-spinner",10),2&i&&e.Y8G("diameter",20)}function yt(i,r){if(1&i&&(e.j41(0,"span",11),e.EFF(1),e.k0s()),2&i){const a=e.XpG();e.Y8G("ngClass",e.eq3(2,ve,a.profileValueBold)),e.R7$(),e.SpI(""," - "+a.globalTransVal," ")}}function Ot(i,r){1&i&&e.nrm(0,"mat-icon",12)}let Ce=(()=>{var i;class r{constructor(t,n,s,o){this.loggingService=t,this.translateService=n,this.manage3dSettingsUtilService=s,this.matDialog=o,this.setDirtyFeatureEnum=new e.bkB,this.clearDirtyFeatureEnum=new e.bkB,this.sharpenSliderValue=d.Vo.sharpen,this.ignoreFilmGrainSliderValue=d.Vo.noiseGrain,this.sharpenText="",this.ignoreFilmGrainText="",this.currentValueBold=!1,this.profileValueBold=!1,this.uiControlBusy=!1,this.showUiControlBusy=!1,this.logger=this.loggingService.getLogger("nvapp/FeatureImageSharpeningComponent")}ngOnInit(){this.setFeatureEnumKeys(),this.initSelection(),this.updateBoldEffectForSetting()}ngAfterViewInit(){this.savePreviousAppliedValues()}setFeatureEnumKeys(){this.featureSettingKey=this.featureName+d.lz,this.featureCurrentValue=this.featureSettingObject[this.featureSettingKey],this.sharpenFeatureSettingKey=l.CuratedGlobalSettings.ImageSharpening+d.lz;const t=this.sharpenSettingObject[this.sharpenFeatureSettingKey];this.sharpenCurrentValue=this.isGlobalContext||t!==l.DefaultGlobalEnum.UseGlobalValue?t/100:d.Vo.sharpen,this.noiseGrainFeatureSettingKey=l.CuratedGlobalSettings.ImageSharpeningNoiseGrain+d.lz;const n=this.noiseGrainSettingObject[this.noiseGrainFeatureSettingKey];this.ignoreFilmGrainCurrentValue=this.isGlobalContext||n!==l.DefaultGlobalEnum.UseGlobalValue?n/100:d.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(){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.globalTransVal=this.manage3dSettingsUtilService.resolveUseGlobalValue(!1,this.settingDataObjectForChildComponent.featureEnum,this.featureSettingObject.settingGlobalValue,this.featureName),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&&1===this.featureSettingObject.settingGlobalValue[this.featureSettingKey]){const n=this.noiseGrainSettingObject.settingGlobalValue[l.StaticSliderSettings.ImageSharpeningNoiseGrain+d.lz];this.selectedFeatureGlobalDisplayValue=this.translateService.instant("manage3dSettings.ImageSharpening.name",{sharpenValue:this.sharpenSettingObject.settingGlobalValue[l.StaticSliderSettings.ImageSharpening+d.lz]/100})+", "+this.translateService.instant("manage3dSettings.ImageSharpeningNoiseGrain.name",{ignoreFilmGrainValue:n/100}),this.updateBoldForProfile()}}openSettingsModal(){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(vt,t),this.settingDialogRefCloseSub?.unsubscribe(),this.settingDialogRefCloseSub=this.settingDialogRef.afterClosed().subscribe(n=>{n?.applyInProgress?(this.savePreviousAppliedValues(),this.featureSettingObject[this.featureSettingKey]=n.featureCurrentValue,this.sharpenSettingObject[this.sharpenFeatureSettingKey]=n.sharpenCurrentValue,this.noiseGrainSettingObject[this.noiseGrainFeatureSettingKey]=n.ignoreFilmGrainCurrentValue,this.ngOnInit()):n?.needRefresh&&(this.getFromPreviousAppliedValues(),this.ngOnInit()),this.updateUiControlState(n?.applyInProgress||n?.needRefresh?2*d.uf:0)},n=>{this.logger.error(n)},()=>{this.updateUiControlState(2*d.uf)})}updateUiControlState(t){setTimeout(()=>{this.uiControlBusy=!1,this.showUiControlBusy=!1},t)}savePreviousAppliedValues(){this.featureSettingObjectOriginal=(0,b.cloneDeep)(this.featureSettingObject),this.sharpenSettingObjectOriginal=(0,b.cloneDeep)(this.sharpenSettingObject),this.noiseGrainSettingObjectOriginal=(0,b.cloneDeep)(this.noiseGrainSettingObject)}getFromPreviousAppliedValues(){this.featureSettingObject=(0,b.cloneDeep)(this.featureSettingObjectOriginal),this.sharpenSettingObject=(0,b.cloneDeep)(this.sharpenSettingObjectOriginal),this.noiseGrainSettingObject=(0,b.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()}}return(i=r).\u0275fac=function(t){return new(t||i)(e.rXU(f.J6),e.rXU(h.c$),e.rXU(C.f),e.rXU(p.bZ))},i.\u0275cmp=e.VBU({type:i,selectors:[["nv-app-feature-image-sharpening"]],inputs:{featureName:"featureName",featureSettingObject:"featureSettingObject",sharpenSettingObject:"sharpenSettingObject",noiseGrainSettingObject:"noiseGrainSettingObject",isGlobalContext:"isGlobalContext"},outputs:{setDirtyFeatureEnum:"setDirtyFeatureEnum",clearDirtyFeatureEnum:"clearDirtyFeatureEnum"},decls:13,vars:15,consts:[["nvAppSettingInfoIcon","",1,"feature-expansion-panel-container","feature-expansion-panel-border",3,"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","","aria-label","Action Menu for select settings",1,"font-body2","setting-drop-down",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(t,n){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"label",3),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"div",4),e.DNE(7,xt,1,1,"mat-progress-spinner",5),e.j41(8,"button",6),e.bIt("click",function(){return n.openSettingsModal()}),e.j41(9,"div",7),e.EFF(10),e.DNE(11,yt,2,4,"span",8),e.k0s(),e.DNE(12,Ot,1,0,"mat-icon",9),e.k0s()()()()),2&t&&(e.FS9("id",n.featureName),e.Y8G("settingDetails",e.eq3(11,Ct,n.featureName)),e.R7$(4),e.SpI(" ",e.bMT(5,9,"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(13,ve,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:[c.YU,c.bT,w.iV,D.An,A.LG,E.a,x.PW,U,h.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))}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - 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:#191919;padding:0 16px}.feature-expansion-panel-container[_ngcontent-%COMP%]   .mat-menu-header[_ngcontent-%COMP%]:hover{background-color:#ffffff0a}.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:#636363}.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}"]}),r})();var y=g(6953);let Pt=(()=>{var i;class r{constructor(t,n,s,o,u,_){this.loggingService=t,this.dialogData=n,this.dialogRef=s,this.global3dSettingsService=o,this.translateService=u,this.manage3dSettingsUtilService=_,this.settingData={},this.minValue=y.GA.minValue,this.maxValue=y.GA.maxValue,this.stepValue=y.GA.stepValue,this.isDirty=!1,this.applyOps=!1,this.showErrorToast=S=>{this.closeDialog(!1,!0),this.manage3dSettingsUtilService.showApplyErrorToastMessage(S),this.logger.error(S),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,m.n)(()=>this.global3dSettingsService.refreshGlobalSettings()),(0,M.M)(()=>{this.applyOps&&this.manage3dSettingsUtilService.handleToggleChangedForJsonSettings(this.updatedFeature.settingName,this.selectedFeatureKey===l.WhisperModeValueDisplayEnum.On)}),(0,V.s)(1)).subscribe(I.l,this.showErrorToast)}closeDialog(t,n){this.dialogRef.close({applyInProgress:t,needRefresh:n,featureCurrentValue:this.updatedFeature?.selectedFeatureValue})}updateFeatureState(){const t=this.dialogData.whisperModeCurrentValue,n={...t};n.enabled=this.selectedFeatureKey===l.WhisperModeValueDisplayEnum.On,n.frameRate=this.frameRate,n.fanVolume=this.fanVolume,this.minFrameRateText=this.getFpsText(n.frameRate),this.isDirty=!(0,b.isEqual)(n,t),this.applyOps=t.enabled!==n.enabled,this.updatedFeature={settingName:this.settingData?.featureName,isDirty:this.isDirty,selectedFeatureValue:JSON.stringify(n),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 d.vR.QUIETER:this.frameRate=30;break;case d.vR.QUIET:this.frameRate=40;break;case d.vR.BALANCED:this.frameRate=60}}}return(i=r).\u0275fac=function(t){return new(t||i)(e.rXU(f.J6),e.rXU(p.Vh),e.rXU(p.CP),e.rXU(j.R),e.rXU(h.c$),e.rXU(C.f))},i.\u0275cmp=e.VBU({type:i,selectors:[["nv-app-feature-whisper-mode-modal"]],decls:29,vars:33,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"],["align","end",1,"actions"],["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(t,n){1&t&&(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.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(22,"mat-dialog-actions",9)(23,"button",10),e.bIt("click",function(){return n.onCancelClick()}),e.EFF(24),e.nI1(25,"translate"),e.k0s(),e.j41(26,"button",11),e.bIt("click",function(){return n.onApplyClick()}),e.EFF(27),e.nI1(28,"translate"),e.k0s()()()),2&t&&(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),e.R7$(),e.Y8G("ngClass",n.isDisabled?"disabled":""),e.R7$(2),e.Lme(" ",e.bMT(9,21,"manage3dSettings."+(null==n.settingData?null:n.settingData.featureName)+".minimumFrameRate"),": ",n.minFrameRateText," "),e.R7$(3),e.SpI(" ",e.bMT(12,23,"manage3dSettings."+(null==n.settingData?null:n.settingData.featureName)+".adjustFanVolume")," "),e.R7$(4),e.JRh(e.bMT(16,25,"manage3dSettings."+(null==n.settingData?null:n.settingData.featureName)+".quieter")),e.R7$(3),e.JRh(e.bMT(19,27,"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),e.R7$(3),e.SpI(" ",e.bMT(25,29,"save.cancel")," "),e.R7$(2),e.Y8G("disabled",!n.isDirty),e.R7$(),e.SpI(" ",e.bMT(28,31,"save.apply")," "))},dependencies:[c.YU,w.iV,p.BI,p.Yi,p.E7,K.t,$.Aq,x.PW,k,h.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))}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - 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:#191919;padding:0 16px}.feature-expansion-panel-container[_ngcontent-%COMP%]   .mat-menu-header[_ngcontent-%COMP%]:hover{background-color:#ffffff0a}.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:#636363}.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}",".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:#ffffffbf}.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:#76b900}.battery-boost-slider[_ngcontent-%COMP%]   .disabled[_ngcontent-%COMP%]{background:#76b90061}"]}),r})();const wt=(i,r)=>({nvidiaSettingName:i,errors:r}),It=i=>({"font-sub2":i});function Mt(i,r){1&i&&e.nrm(0,"mat-progress-spinner",9),2&i&&e.Y8G("diameter",20)}let Vt=(()=>{var i;class r{constructor(t,n,s,o){this.loggingService=t,this.translateService=n,this.matDialog=s,this.manage3dSettingsUtilService=o,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+d.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(Pt,t),this.whisperModeDialogRef.afterClosed().pipe((0,V.s)(1)).subscribe(n=>{n?.applyInProgress?(this.savePreviousAppliedValues(),this.whisperModeSetting[this.featureSettingKey]=n.featureCurrentValue,this.ngOnInit()):n?.needRefresh&&(this.getFromPreviousAppliedValues(),this.ngOnInit()),this.updateUiControlState(n?.applyInProgress||n?.needRefresh?d.uf:0)},n=>{this.logger.error(n)},()=>{this.updateUiControlState(d.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,b.cloneDeep)(this.whisperModeSetting)}getFromPreviousAppliedValues(){this.whisperModeSetting=(0,b.cloneDeep)(this.whisperModeSettingOriginal)}}return(i=r).\u0275fac=function(t){return new(t||i)(e.rXU(f.J6),e.rXU(h.c$),e.rXU(p.bZ),e.rXU(C.f))},i.\u0275cmp=e.VBU({type:i,selectors:[["nv-app-feature-whisper-mode"]],inputs:{featureName:"featureName",whisperModeSetting:"whisperModeSetting",isGlobalContext:"isGlobalContext"},decls:12,vars:14,consts:[["nvAppSettingInfoIcon","",1,"feature-expansion-panel-container","feature-expansion-panel-border",3,"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","","aria-label","Action Menu for select settings",1,"font-body2","setting-drop-down",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(t,n){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"label",3),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"div",4),e.DNE(7,Mt,1,1,"mat-progress-spinner",5),e.j41(8,"button",6),e.bIt("click",function(){return n.openSettingsModal()}),e.j41(9,"div",7),e.EFF(10),e.k0s(),e.nrm(11,"mat-icon",8),e.k0s()()()()),2&t&&(e.FS9("id",n.featureName),e.Y8G("settingDetails",e.l_i(9,wt,n.featureName,null==n.whisperModeSetting?null:n.whisperModeSetting.errorMessages)),e.R7$(4),e.SpI(" ",e.bMT(5,7,"manage3dSettings."+n.featureName+".name")," "),e.R7$(3),e.Y8G("ngIf",n.showUiControlBusy),e.R7$(),e.Y8G("disabled",n.whisperModeSetting.isGreyedOut),e.R7$(),e.Y8G("ngClass",e.eq3(12,It,null==n.whisperModeSetting?null:n.whisperModeSetting.isUserModified)),e.R7$(),e.SpI(" ",n.displayValue," "))},dependencies:[c.YU,c.bT,w.iV,D.An,A.LG,E.a,x.PW,U,h.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))}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - 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:#191919;padding:0 16px}.feature-expansion-panel-container[_ngcontent-%COMP%]   .mat-menu-header[_ngcontent-%COMP%]:hover{background-color:#ffffff0a}.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:#636363}.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}"]}),r})();const Dt=i=>({disabled:i});let Ft=(()=>{var i;class r{constructor(t,n,s,o,u,_){this.loggingService=t,this.dialogData=n,this.dialogRef=s,this.global3dSettingsService=o,this.translateService=u,this.manage3dSettingsUtilService=_,this.settingData={},this.minValue=y.ZC.minValue,this.maxValue=y.ZC.maxValue,this.stepValue=y.ZC.stepValue,this.isDirty=!1,this.recommendedFrameRate=30,this.applyOps=!1,this.showErrorToast=S=>{this.closeDialog(!1,!0),this.manage3dSettingsUtilService.showApplyErrorToastMessage(S),this.logger.error(S),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,m.n)(()=>this.global3dSettingsService.refreshGlobalSettings()),(0,M.M)(()=>{this.applyOps&&this.manage3dSettingsUtilService.handleToggleChangedForJsonSettings(this.updatedFeature.settingName,this.selectedFeatureKey===l.BatteryBoostValueDisplayEnum.On)}),(0,V.s)(1)).subscribe(I.l,this.showErrorToast)}closeDialog(t,n){this.dialogRef.close({applyInProgress:t,needRefresh:n,featureCurrentValue:this.updatedFeature?.selectedFeatureValue})}updateFeatureState(){const t=this.dialogData.batteryBoostCurrentValue,n={...t};n.enabled=this.selectedFeatureKey===l.BatteryBoostValueDisplayEnum.On,n.frameRate=this.sliderValue,this.isDirty=!(0,b.isEqual)(n,t),this.applyOps=t.enabled!==n.enabled,this.updatedFeature={settingName:this.settingData.featureName,isDirty:this.isDirty,selectedFeatureValue:JSON.stringify(n),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}}return(i=r).\u0275fac=function(t){return new(t||i)(e.rXU(f.J6),e.rXU(p.Vh),e.rXU(p.CP),e.rXU(j.R),e.rXU(h.c$),e.rXU(C.f))},i.\u0275cmp=e.VBU({type:i,selectors:[["nv-app-feature-battery-boost-modal"]],decls:34,vars:36,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"],["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","","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(t,n){1&t&&(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.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(21,"mat-icon",11),e.j41(22,"div",12),e.nrm(23,"div",13),e.j41(24,"span",14),e.EFF(25),e.nI1(26,"translate"),e.k0s()()()()()(),e.j41(27,"mat-dialog-actions",15)(28,"button",16),e.bIt("click",function(){return n.onCancelClick()}),e.EFF(29),e.nI1(30,"translate"),e.k0s(),e.j41(31,"button",17),e.bIt("click",function(){return n.onApplyClick()}),e.EFF(32),e.nI1(33,"translate"),e.k0s()()()),2&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,20,"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,22,"manage3dSettings."+(null==n.settingData?null:n.settingData.featureName)+".maximumFrameRate"),": ",n.maxFrameRateText," "),e.R7$(5),e.JRh(e.bMT(14,24,"ops.battery")),e.R7$(3),e.JRh(e.bMT(17,26,"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),e.R7$(3),e.Y8G("ngClass",e.eq3(34,Dt,n.isDisabled)),e.R7$(2),e.JRh(e.bMT(26,28,"ops.optimalSetting")),e.R7$(4),e.SpI(" ",e.bMT(30,30,"save.cancel")," "),e.R7$(2),e.Y8G("disabled",!n.isDirty),e.R7$(),e.SpI(" ",e.bMT(33,32,"save.apply")," "))},dependencies:[c.YU,w.iV,D.An,p.BI,p.Yi,p.E7,K.t,$.Aq,x.PW,k,h.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:#ffffffbf}.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:#76b900}.battery-boost-slider[_ngcontent-%COMP%]   .disabled[_ngcontent-%COMP%]{background:#76b90061}","[_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))}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - 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:#191919;padding:0 16px}.feature-expansion-panel-container[_ngcontent-%COMP%]   .mat-menu-header[_ngcontent-%COMP%]:hover{background-color:#ffffff0a}.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:#636363}.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}"]}),r})();const Gt=i=>({nvidiaSettingName:i}),Tt=i=>({"font-sub2":i});function Et(i,r){1&i&&e.nrm(0,"mat-progress-spinner",9),2&i&&e.Y8G("diameter",20)}let Rt=(()=>{var i;class r{constructor(t,n,s,o){this.loggingService=t,this.translateService=n,this.matDialog=s,this.manage3dSettingsUtilService=o,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+d.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(Ft,t),this.batteryBoostDialogRef.afterClosed().pipe((0,V.s)(1)).subscribe(n=>{n?.applyInProgress?(this.savePreviousAppliedValues(),this.batteryBoostSetting[this.featureSettingKey]=n.featureCurrentValue,this.ngOnInit()):n?.needRefresh&&(this.getFromPreviousAppliedValues(),this.ngOnInit()),this.updateUiControlState(n?.applyInProgress||n?.needRefresh?d.uf:0)},n=>{this.logger.error(n)},()=>{this.updateUiControlState(d.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,b.cloneDeep)(this.batteryBoostSetting)}getFromPreviousAppliedValues(){this.batteryBoostSetting=(0,b.cloneDeep)(this.batteryBoostSettingOriginal)}}return(i=r).\u0275fac=function(t){return new(t||i)(e.rXU(f.J6),e.rXU(h.c$),e.rXU(p.bZ),e.rXU(C.f))},i.\u0275cmp=e.VBU({type:i,selectors:[["nv-app-battery-boost"]],inputs:{featureName:"featureName",batteryBoostSetting:"batteryBoostSetting",isGlobalContext:"isGlobalContext"},decls:12,vars:12,consts:[["nvAppSettingInfoIcon","",1,"feature-expansion-panel-container","feature-expansion-panel-border",3,"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","","aria-label","Action Menu for select settings",1,"font-body2","setting-drop-down",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(t,n){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"label",3),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"div",4),e.DNE(7,Et,1,1,"mat-progress-spinner",5),e.j41(8,"button",6),e.bIt("click",function(){return n.openSettingsModal()}),e.j41(9,"div",7),e.EFF(10),e.k0s(),e.nrm(11,"mat-icon",8),e.k0s()()()()),2&t&&(e.FS9("id",n.featureName),e.Y8G("settingDetails",e.eq3(8,Gt,n.featureName)),e.R7$(4),e.SpI(" ",e.bMT(5,6,"manage3dSettings."+n.featureName+".name")," "),e.R7$(3),e.Y8G("ngIf",n.showUiControlBusy),e.R7$(2),e.Y8G("ngClass",e.eq3(10,Tt,null==n.batteryBoostSetting?null:n.batteryBoostSetting.isUserModified)),e.R7$(),e.SpI(" ",n.displayValue," "))},dependencies:[c.YU,c.bT,w.iV,D.An,A.LG,E.a,x.PW,U,h.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))}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - 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:#191919;padding:0 16px}.feature-expansion-panel-container[_ngcontent-%COMP%]   .mat-menu-header[_ngcontent-%COMP%]:hover{background-color:#ffffff0a}.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:#636363}.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}"]}),r})();const At=i=>({"selected-resolution":i});function jt(i,r){if(1&i&&(e.j41(0,"span",7),e.EFF(1),e.k0s()),2&i){const a=e.XpG();e.R7$(),e.Lme("",null==a.selectedResolution?null:a.selectedResolution.percent,"% (",null==a.selectedResolution?null:a.selectedResolution.resolution,")")}}function Nt(i,r){if(1&i){const a=e.RV6();e.j41(0,"button",24),e.bIt("click",function(){const n=e.eBV(a).index,s=e.XpG();return e.Njj(s.onResolutionChanged(n))}),e.EFF(1),e.k0s()}if(2&i){const a=r.$implicit,t=e.XpG();e.Y8G("ngClass",e.eq3(3,At,(null==t.selectedResolution?null:t.selectedResolution.resolution)===(null==a?null:a.resolution))),e.R7$(),e.Lme(" ",null==a?null:a.percent,"% ",null==a?null:a.resolution," ")}}let Bt=(()=>{var i;class r{constructor(t,n,s,o,u,_){this.loggingService=t,this.dialogData=n,this.dialogRef=s,this.global3dSettingsService=o,this.program3dSettingsService=u,this.manage3dSettingsUtilService=_,this.settingData={},this.minValue=y.hB.minValue,this.maxValue=y.hB.maxValue,this.stepValue=y.hB.stepValue,this.sharpen=y.hB.sharpen,this.resolutions=[],this.isRadioButton=!1,this.isDirty=!1,this.applyOps=!1,this.showErrorToast=S=>{this.closeDialog(!1,!0),this.manage3dSettingsUtilService.showApplyErrorToastMessage(S),this.logger.error(S),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)}onSharpenChanged(t){this.updateFeatureState(t,this.resolutionIndex)}onResolutionChanged(t){this.selectedResolution=this.resolutions[t],this.resolutionIndex=t,this.updateFeatureState(this.sliderValue,t)}onCancelClick(){this.closeDialog(!1,!1)}onApplyClick(){this.closeDialog(!0,!0),this.dialogData.isGlobalContext?this.global3dSettingsService.applySingleSetting(this.updatedFeature).pipe((0,m.n)(()=>this.global3dSettingsService.refreshGlobalSettings()),(0,m.n)(()=>this.program3dSettingsService.refreshProgramSettings()),(0,M.M)(t=>{this.updateShowRTXHdrToastMessage(t)}),(0,X.p)(t=>this.applyOps),(0,M.M)(()=>{this.manage3dSettingsUtilService.handleToggleChangedForJsonSettings(this.updatedFeature.settingName,this.selectedFeatureKey===l.ImageScalingValueDisplayEnum.On,this.dialogData?.isGlobalContext)}),(0,V.s)(1)).subscribe(I.l,this.showErrorToast):this.program3dSettingsService.applySingleSetting(this.updatedFeature).pipe((0,m.n)(()=>this.global3dSettingsService.refreshGlobalSettings()),(0,m.n)(()=>this.program3dSettingsService.refreshProgramSettings()),(0,M.M)(t=>{this.updateShowRTXHdrToastMessage(t)}),(0,X.p)(t=>this.applyOps),(0,M.M)(t=>this.applyPerProgramOPS()),(0,V.s)(1)).subscribe(I.l,this.showErrorToast)}updateShowRTXHdrToastMessage(t){const n=t.filter(S=>S?.settingName===l.JsonTypeSettings.ImageScaling)?.[0],s=this.dialogData?.featureName+d.lz,o=JSON.parse(n?.settingValue[s]),_=t.filter(S=>S?.settingName===l.JsonTypeSettings.AIHDR)?.[0]?.settingValue?.SettingInfo?.isSupported&&this.dialogData?.hyperSamplingResolutionCreated!==o?.hyperSamplingResolutionCreated;this.manage3dSettingsUtilService.setShowRTXHdrToast(_)}applyPerProgramOPS(){const t=this.dialogData?.featureName+d.lz,n=JSON.parse(this.dialogData?.imageScalingSetting?.settingGlobalValue?.[t]);let s=!1;s=this.selectedFeatureKey===l.DefaultGlobalEnum.UseGlobalKey?n?.enabled:this.selectedFeatureKey===l.ImageScalingValueDisplayEnum.On,this.manage3dSettingsUtilService.handleToggleChangedForJsonSettings(this.updatedFeature.settingName,s,this.dialogData?.isGlobalContext,this.dialogData?.localId)}closeDialog(t,n){this.dialogRef.close({applyInProgress:t,needRefresh:n,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.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.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,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=n,o.resolutions=this.resolutions),this.isDirty=!(0,b.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}}}return(i=r).\u0275fac=function(t){return new(t||i)(e.rXU(f.J6),e.rXU(p.Vh),e.rXU(p.CP),e.rXU(j.R),e.rXU(N),e.rXU(C.f))},i.\u0275cmp=e.VBU({type:i,selectors:[["nv-app-feature-image-scaling-modal"]],decls:37,vars:34,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",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"],[1,"resolution-enabled-message"],["svgIcon","info",1,"font-color-secondary"],[1,"resolution-msg","font-body2"],["align","end",1,"actions"],["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"],["mat-menu-item","",3,"click","ngClass"]],template:function(t,n){if(1&t){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(u){return e.eBV(s),e.Njj(n.updateSelectedValue(u))}),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,jt,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,Nt,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.mxI("valueChange",function(u){return e.eBV(s),e.DH7(n.sliderValue,u)||(n.sliderValue=u),e.Njj(u)}),e.bIt("valueChange",function(u){return e.eBV(s),e.Njj(n.onSharpenChanged(u))}),e.k0s()(),e.j41(25,"div",18),e.nrm(26,"mat-icon",19),e.j41(27,"label",20),e.EFF(28),e.nI1(29,"translate"),e.k0s()()()(),e.j41(30,"mat-dialog-actions",21)(31,"button",22),e.bIt("click",function(){return e.eBV(s),e.Njj(n.onCancelClick())}),e.EFF(32),e.nI1(33,"translate"),e.k0s(),e.j41(34,"button",23),e.bIt("click",function(){return e.eBV(s),e.Njj(n.onApplyClick())}),e.EFF(35),e.nI1(36,"translate"),e.k0s()()()}if(2&t){const s=e.sdS(17);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)("underLyingGlobalValue",n.underlyingGlobalValueText),e.R7$(),e.Y8G("ngClass",n.isDisabled?"disabled":""),e.R7$(3),e.JRh(e.bMT(10,24,"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,26,"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),e.R7$(4),e.SpI(" ",e.bMT(29,28,n.scalingResolutionInfoMsg),""),e.R7$(4),e.SpI(" ",e.bMT(33,30,"save.cancel")," "),e.R7$(2),e.Y8G("disabled",!n.isDirty),e.R7$(),e.SpI(" ",e.bMT(36,32,"save.apply")," ")}},dependencies:[c.YU,c.Sq,c.bT,w.iV,D.An,T.pI,T.gy,T.fS,p.BI,p.Yi,p.E7,K.t,$.Aq,x.PW,k,h.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)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-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:#76b900}.resolution-enabled-message[_ngcontent-%COMP%]{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:8px}.opacity-disabled[_ngcontent-%COMP%]{opacity:.38}.setting-drop-down[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{vertical-align:middle}","[_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))}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - 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:#191919;padding:0 16px}.feature-expansion-panel-container[_ngcontent-%COMP%]   .mat-menu-header[_ngcontent-%COMP%]:hover{background-color:#ffffff0a}.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:#636363}.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}"]}),r})();const Ut=i=>({nvidiaSettingName:i}),xe=i=>({"font-sub2":i});function kt(i,r){1&i&&e.nrm(0,"mat-progress-spinner",10),2&i&&e.Y8G("diameter",20)}function $t(i,r){if(1&i&&(e.j41(0,"span",11),e.EFF(1),e.k0s()),2&i){const a=e.XpG();e.Y8G("ngClass",e.eq3(2,xe,a.profileValueBold)),e.R7$(),e.SpI(""," - "+a.imageScalingGlobalValueText," ")}}let ye=(()=>{var i;class r{constructor(t,n,s,o){this.loggingService=t,this.translateService=n,this.matDialog=s,this.manage3dSettingsUtilService=o,this.sharpen=y.hB.sharpen,this.resolutionIndex=0,this.isDisabled=!1,this.uiControlBusy=!1,this.showUiControlBusy=!1,this.currentValueBold=!1,this.profileValueBold=!1,this.logger=this.loggingService.getLogger("nvapp/FeatureImageScalingComponent")}ngOnInit(){this.imageScalingGlobalValueText=null,this.setImageScalingEnum(),this.initSelectedValues()}ngAfterViewInit(){this.savePreviousAppliedValues()}setImageScalingEnum(){this.featureSettingKey=this.featureName+d.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(){this.sharpen=this.imageScalingCurrentValue?.sharpen,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.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,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(Bt,t),this.imageScalingDialogRef.afterClosed().pipe((0,V.s)(1)).subscribe(n=>{n?.applyInProgress?(this.savePreviousAppliedValues(),this.imageScalingSetting[this.featureSettingKey]=n.featureCurrentValue,this.ngOnInit()):n?.needRefresh&&(this.getFromPreviousAppliedValues(),this.ngOnInit()),this.updateUiControlState(n?.applyInProgress||n?.needRefresh?d.uf:0)},n=>{this.logger.error(n)},()=>{this.updateUiControlState(d.uf)})}updateUiControlState(t){setTimeout(()=>{this.uiControlBusy=!1,this.showUiControlBusy=!1},t)}setGlobalValueText(){this.logger.info("Setting the global value for Image Scaling"),this.imageScalingGlobalValueText=this.manage3dSettingsUtilService.resolveUseGlobalValue(!1,this.imageScalingSetting.featureEnum,this.imageScalingSetting.settingGlobalValue,this.featureName),this.imageScalingGlobalValue=JSON.parse(this.imageScalingSetting?.settingGlobalValue?.[this.featureSettingKey]),this.sharpen=this.imageScalingGlobalValue?.sharpen,this.resolutions=this.imageScalingGlobalValue?.resolutions,this.resolutionIndex=this.imageScalingGlobalValue?.selectedResolutionIndex,this.profileValueBold=!1!==this.imageScalingGlobalValue?.enabled,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,b.cloneDeep)(this.imageScalingSetting)}getFromPreviousAppliedValues(){this.imageScalingSetting=(0,b.cloneDeep)(this.imageScalingSettingOriginal)}updateBoldEffectForSetting(){this.currentValueBold=this.isGlobalContext?!1!==this.imageScalingCurrentValue?.enabled:!0!==this.imageScalingCurrentValue?.useGlobal}}return(i=r).\u0275fac=function(t){return new(t||i)(e.rXU(f.J6),e.rXU(h.c$),e.rXU(p.bZ),e.rXU(C.f))},i.\u0275cmp=e.VBU({type:i,selectors:[["nv-app-feature-image-scaling"]],inputs:{featureName:"featureName",imageScalingSetting:"imageScalingSetting",isGlobalContext:"isGlobalContext",localId:"localId"},decls:13,vars:13,consts:[["nvAppSettingInfoIcon","",1,"feature-expansion-panel-container","feature-expansion-panel-border",3,"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","","aria-label","Action Menu for select settings",1,"font-body2","setting-drop-down",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(t,n){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"label",3),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"div",4),e.DNE(7,kt,1,1,"mat-progress-spinner",5),e.j41(8,"button",6),e.bIt("click",function(){return n.openSettingsModal()}),e.j41(9,"div",7),e.EFF(10),e.DNE(11,$t,2,4,"span",8),e.k0s(),e.nrm(12,"mat-icon",9),e.k0s()()()()),2&t&&(e.FS9("id",n.featureName),e.Y8G("settingDetails",e.eq3(9,Ut,n.featureName)),e.R7$(4),e.SpI(" ",e.bMT(5,7,"manage3dSettings."+n.featureName+".name")," "),e.R7$(3),e.Y8G("ngIf",n.showUiControlBusy),e.R7$(2),e.Y8G("ngClass",e.eq3(11,xe,n.currentValueBold)),e.R7$(),e.SpI(" ",n.displayValue," "),e.R7$(),e.Y8G("ngIf",n.imageScalingGlobalValueText))},dependencies:[c.YU,c.bT,w.iV,D.An,A.LG,E.a,x.PW,U,h.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))}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - 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:#191919;padding:0 16px}.feature-expansion-panel-container[_ngcontent-%COMP%]   .mat-menu-header[_ngcontent-%COMP%]:hover{background-color:#ffffff0a}.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:#636363}.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}"]}),r})();function zt(i,r){1&i&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&i&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"ops.unableToRetrieveSettings")," "))}function Yt(i,r){if(1&i&&(e.j41(0,"div",5),e.nrm(1,"mat-icon",6),e.DNE(2,zt,3,3,"span",7),e.k0s()),2&i){const a=e.XpG();e.R7$(2),e.Y8G("ngIf",a.pageErrorIndicator.isNvcplError&&!a.pageErrorIndicator.isLocalGameError)}}function Kt(i,r){1&i&&(e.j41(0,"div",10),e.nrm(1,"mat-progress-spinner",11),e.k0s()),2&i&&(e.R7$(),e.Y8G("diameter",24))}function Xt(i,r){if(1&i&&e.nrm(0,"nv-app-feature-image-sharpening",21),2&i){const a=e.XpG(2).$implicit,t=e.XpG(3);e.Y8G("featureName",a.settingName)("featureSettingObject",a.settingValue)("sharpenSettingObject",t.sharpenSetting.settingValue)("noiseGrainSettingObject",t.noiseGrainSetting.settingValue)("isGlobalContext",!0)}}function Lt(i,r){if(1&i&&(e.qex(0),e.DNE(1,Xt,1,5,"nv-app-feature-image-sharpening",20),e.bVm()),2&i){const a=e.XpG().$implicit;e.R7$(),e.Y8G("ngIf",null==a.settingValue||null==a.settingValue.SettingInfo?null:a.settingValue.SettingInfo.isSupported)}}function qt(i,r){if(1&i&&e.nrm(0,"nv-app-feature-max-frame-rate",23),2&i){const a=e.XpG(2).$implicit,t=e.XpG(3);e.Y8G("featureName",a.settingName)("featureSettingObject",a.settingValue)("isGlobalContext",!0)("maxFrameRateFPSObject",t.maxFrameRateFPSSetting.settingValue)}}function Jt(i,r){if(1&i&&(e.qex(0),e.DNE(1,qt,1,4,"nv-app-feature-max-frame-rate",22),e.bVm()),2&i){const a=e.XpG().$implicit;e.R7$(),e.Y8G("ngIf",null==a.settingValue||null==a.settingValue.SettingInfo?null:a.settingValue.SettingInfo.isSupported)}}function Wt(i,r){if(1&i&&(e.qex(0),e.nrm(1,"nv-app-battery-boost",25),e.bVm()),2&i){const a=e.XpG(3).$implicit;e.R7$(),e.Y8G("featureName",a.settingName)("batteryBoostSetting",a.settingValue)("isGlobalContext",!0)}}function Ht(i,r){if(1&i&&e.nrm(0,"nv-app-manage-3d-setting-feature",26),2&i){const a=e.XpG(3).$implicit;e.Y8G("featureName",a.settingName)("featureSettingObject",a.settingValue)("isGlobalContext",!0)}}function Zt(i,r){if(1&i&&(e.qex(0),e.DNE(1,Wt,2,3,"ng-container",24)(2,Ht,1,3,"ng-template",null,0,e.C5r),e.bVm()),2&i){const a=e.sdS(3),t=e.XpG(5);e.R7$(),e.Y8G("ngIf",t.isBatteryBoostV1)("ngIfElse",a)}}function Qt(i,r){if(1&i&&(e.qex(0),e.DNE(1,Zt,4,2,"ng-container",7),e.bVm()),2&i){const a=e.XpG().$implicit;e.R7$(),e.Y8G("ngIf",null==a.settingValue||null==a.settingValue.SettingInfo?null:a.settingValue.SettingInfo.isSupported)}}function en(i,r){if(1&i&&(e.qex(0),e.nrm(1,"nv-app-manage-3d-setting-feature",26),e.bVm()),2&i){const a=e.XpG(3).$implicit;e.R7$(),e.Y8G("featureName",a.settingName)("featureSettingObject",a.settingValue)("isGlobalContext",!0)}}function tn(i,r){if(1&i&&e.nrm(0,"nv-app-feature-whisper-mode",27),2&i){const a=e.XpG(3).$implicit;e.Y8G("featureName",a.settingName)("whisperModeSetting",a.settingValue)("isGlobalContext",!0)}}function nn(i,r){if(1&i&&(e.qex(0),e.DNE(1,en,2,3,"ng-container",24)(2,tn,1,3,"ng-template",null,1,e.C5r),e.bVm()),2&i){const a=e.sdS(3),t=e.XpG(5);e.R7$(),e.Y8G("ngIf",t.isWhisperModeV1)("ngIfElse",a)}}function an(i,r){if(1&i&&(e.qex(0),e.DNE(1,nn,4,2,"ng-container",7),e.bVm()),2&i){const a=e.XpG().$implicit;e.R7$(),e.Y8G("ngIf",null==a.settingValue||null==a.settingValue.SettingInfo?null:a.settingValue.SettingInfo.isSupported)}}function sn(i,r){if(1&i&&e.nrm(0,"nv-app-feature-image-scaling",29),2&i){const a=e.XpG(2).$implicit;e.Y8G("featureName",a.settingName)("imageScalingSetting",a.settingValue)("isGlobalContext",!0)}}function rn(i,r){if(1&i&&(e.qex(0),e.DNE(1,sn,1,3,"nv-app-feature-image-scaling",28),e.bVm()),2&i){const a=e.XpG().$implicit;e.R7$(),e.Y8G("ngIf",null==a.settingValue||null==a.settingValue.SettingInfo?null:a.settingValue.SettingInfo.isSupported)}}function on(i,r){if(1&i&&e.nrm(0,"nv-app-manage-3d-setting-feature",26),2&i){const a=e.XpG(2).$implicit;e.Y8G("featureName",a.settingName)("featureSettingObject",a.settingValue)("isGlobalContext",!0)}}function ln(i,r){if(1&i&&(e.qex(0),e.DNE(1,on,1,3,"nv-app-manage-3d-setting-feature",30),e.bVm()),2&i){const a=e.XpG().$implicit;e.R7$(),e.Y8G("ngIf",null==a.settingValue||null==a.settingValue.SettingInfo?null:a.settingValue.SettingInfo.isSupported)}}function gn(i,r){if(1&i&&(e.j41(0,"div"),e.qex(1,17),e.DNE(2,Lt,2,1,"ng-container",18)(3,Jt,2,1,"ng-container",18)(4,Qt,2,1,"ng-container",18)(5,an,2,1,"ng-container",18)(6,rn,2,1,"ng-container",18)(7,ln,2,1,"ng-container",19),e.bVm(),e.k0s()),2&i){const a=r.$implicit,t=e.XpG(3);e.R7$(),e.Y8G("ngSwitch",a.settingName),e.R7$(),e.Y8G("ngSwitchCase",t.staticSliderSettings.ImageSharpeningToggle),e.R7$(),e.Y8G("ngSwitchCase",t.staticSliderSettings.MaxFrameRate),e.R7$(),e.Y8G("ngSwitchCase",t.jsonTypeSettings.BatteryBoost),e.R7$(),e.Y8G("ngSwitchCase",t.jsonTypeSettings.WhisperMode),e.R7$(),e.Y8G("ngSwitchCase",t.jsonTypeSettings.ImageScaling)}}function cn(i,r){if(1&i){const a=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(a);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,gn,8,6,"div",16),e.k0s(),e.bVm()}if(2&i){const a=e.XpG(2);e.R7$(3),e.SpI(" ",e.bMT(4,4,"manage3dSettings.subTitle")," "),e.R7$(2),e.Y8G("disabled",a.isLoading||e.bMT(6,6,a.applyInProgressObs)),e.R7$(2),e.SpI(" ",e.bMT(8,8,"manage3dSettings.restoreParentProfile.single.buttonText")," "),e.R7$(3),e.Y8G("ngForOf",a.profileSettingsInfoArray)}}function un(i,r){if(1&i&&(e.j41(0,"div",8),e.DNE(1,Kt,2,1,"div",9)(2,cn,11,10,"ng-container",7),e.k0s()),2&i){const a=e.XpG();e.R7$(),e.Y8G("ngIf",a.isLoading),e.R7$(),e.Y8G("ngIf",(null==a.profileSettingsInfoArray?null:a.profileSettingsInfoArray.length)>0)}}let dn=(()=>{var i;class r{constructor(t,n,s,o,u,_,S){this.loggingService=t,this.global3dSettingsService=n,this.translateService=s,this.manage3dSettingsUtilService=o,this.program3dSettingsService=u,this.errorHandlerService=_,this.performanceMeasureService=S,this.profileSettingsInfoArray=[],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.profilesList=["Base Profile"],this.logger=this.loggingService.getLogger("nvapp/GlobalSettingsComponent")}ngOnInit(){this.registerSettingsUpdatesListener(),this.updateProfileDescription(),this.listenApplyInProgress()}registerSettingsUpdatesListener(){this.refesh3dGlobalSettingsSubscription=this.global3dSettingsService.getProfileSettingsInfo().pipe((0,H.c)(0)).subscribe(t=>{this.filterCuratedSettings(t);const n=this.global3dSettingsService.getVisibleProfileSettings(t);this.profileSettingsInfoArray=this.global3dSettingsService.selectiveSettingUpdate(this.profileSettingsInfoArray,n);const s=this.global3dSettingsService.getBatteryBoostValue(this.profileSettingsInfoArray);this.isBatteryBoostV1=s?.version===l.BatteryBoostVersionEnum.V1;const o=this.global3dSettingsService.getWhisperModeValue(this.profileSettingsInfoArray);this.isWhisperModeV1=o?.version===l.WhisperModeVersionEnum.V1,this.isLoading=!1,this.global3dSettingsService.scrollSettingIntoView(),this.performanceMeasureService.markNvAppPerformanceMarkers([P.mM.NvAppGlobalSettingDataFetchEnd],P.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.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`)}restoreProfile(t){t||(this.profilesList=[this.selectedProfile.name]),this.restoreProfileSub&&this.restoreProfileSub.unsubscribe(),this.restoreProfileSub=this.manage3dSettingsUtilService.confirmAndRestoreProfiles(t,this.profilesList,!0).pipe((0,m.n)(n=>n?this.global3dSettingsService.restoreJsonTypeSettings():(0,G.of)(null)),(0,m.n)(n=>n?this.global3dSettingsService.refreshGlobalSettings():(0,G.of)(null)),(0,m.n)(n=>n?this.program3dSettingsService.refreshProgramSettings():(0,G.of)(null))).subscribe(n=>{this.manage3dSettingsUtilService.closeRestoreDialog(),n&&this.errorHandlerService.showToastMessage({text:`manage3dSettings.${t?"restoreParentProfile.all":"restoreParentProfile.single"}.successText`,placeholders:{program:this.selectedProfile.name},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()})}ngOnChanges(t){this.pageErrorIndicator=t.pageErrorIndicator.currentValue,(this.pageErrorIndicator.isLocalGameError||this.pageErrorIndicator.isNvcplError)&&(this.isLoading=!1)}ngOnDestroy(){this.restoreProfileSub&&this.restoreProfileSub.unsubscribe(),this.refesh3dGlobalSettingsSubscription&&this.refesh3dGlobalSettingsSubscription.unsubscribe()}}return(i=r).\u0275fac=function(t){return new(t||i)(e.rXU(f.J6),e.rXU(j.R),e.rXU(h.c$),e.rXU(C.f),e.rXU(N),e.rXU(Z.c),e.rXU(ne.M))},i.\u0275cmp=e.VBU({type:i,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"],[1,"font-sub1","settings-header-title"],["mat-button","",1,"font-button2","menu-item",3,"click","disabled"],[1,"profile-settings-list","feature-global-layout"],[4,"ngFor","ngForOf"],[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"]],template:function(t,n){1&t&&(e.j41(0,"div",2),e.DNE(1,Yt,3,1,"div",3)(2,un,3,2,"div",4),e.k0s()),2&t&&(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:[c.Sq,c.bT,c.ux,c.e1,c.fG,w.iV,D.An,A.LG,_e,be,Ce,Vt,Rt,ye,c.Jj,h.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))}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - 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:overlay;padding:16px var(--rwd-container-side-spacing) 24px;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}"]}),r})();var Oe=g(47847),q=g(60213),Pe=g(44272),we=g(13102),Ie=g(51917),Me=g(44224),pn=g(16229),mn=g(12532),hn=g(19392),fn=g(93702),_n=g(95212),v=g(125);const Sn=[{criteria:v.dj.FilterByAll,label:"manage3dSettings.filterByAll"},{criteria:v.dj.FilterByGames,label:"manage3dSettings.filterByGames"},{criteria:v.dj.FilterByApps,label:"manage3dSettings.filterByApps"},{criteria:v.dj.FilterByOptimized,label:"manage3dSettings.filterByOptimized"},{criteria:v.dj.FilterByUnOptimized,label:"manage3dSettings.filterByUnOptimized"},{criteria:v.dj.FilterByPhotoMode,label:"manage3dSettings.filterByPhotoMode"},{criteria:v.dj.FilterByGameFilter,label:"manage3dSettings.filterByGameFilter"},{criteria:v.dj.FilterByHidden,label:"manage3dSettings.filterByHidden"}],bn=[{criteria:v.NO.SortByRecentLaunch,label:"common.recent"},{criteria:v.NO.SortByNameAscending,label:"common.programsAtoZ"},{criteria:v.NO.SortByNameDescending,label:"common.programsZtoA"}];var Ve=g(3457);function vn(i,r){if(1&i){const a=e.RV6();e.j41(0,"mat-radio-button",12),e.bIt("change",function(){const n=e.eBV(a).$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&i){const a=r.$implicit,t=e.XpG();e.Y8G("value",null==a?null:a.criteria)("checked",t.sortBy===(null==a?null:a.criteria))("disableRipple",!0),e.R7$(),e.SpI(" ",e.bMT(2,4,null==a?null:a.label)," ")}}function Cn(i,r){if(1&i){const a=e.RV6();e.j41(0,"mat-radio-button",12),e.bIt("change",function(){const n=e.eBV(a).$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&i){const a=r.$implicit,t=r.index,n=e.XpG();e.Y8G("value",null==a?null:a.criteria)("checked",n.filterBy===(null==a?null:a.criteria))("disableRipple",!0),e.R7$(),e.Lme(" ",e.bMT(2,5,null==a?null:a.label)," (",n.filterByCount[t],") ")}}let xn=(()=>{var i;class r{constructor(t,n,s){this.dialogData=t,this.dialogRef=n,this.loggingService=s,this.filterList=Sn,this.sortList=bn,this.sortOrFilterUpdated=new e.bkB,this.logger=this.loggingService.getLogger("nvapp/SortFilterProgramsModalComponent")}ngOnInit(){this.filterBy=this.dialogData?.filterBy??v.dj.FilterByAll,this.filterByCount=this.dialogData?.filterByCount??[0],this.sortBy=this.dialogData?.sortBy??v.NO.SortByRecentLaunch}filterChanged(t){this.logger.info("filter changed to",v.dj[t]),this.filterBy=t,this.emitSortOrFilterUpdatedEvent()}sortChanged(t){this.logger.info("sorting changed to",v.NO[t]),this.sortBy=t,this.emitSortOrFilterUpdatedEvent()}close(){this.dialogRef.close()}resetAllSelection(){this.logger.info("filter & sort reset"),this.filterBy=v.dj.FilterByAll,this.sortBy=v.NO.SortByRecentLaunch,this.emitSortOrFilterUpdatedEvent()}emitSortOrFilterUpdatedEvent(){this.sortOrFilterUpdated.emit({filterBy:this.filterBy,sortBy:this.sortBy})}}return(i=r).\u0275fac=function(t){return new(t||i)(e.rXU(p.Vh),e.rXU(p.CP,8),e.rXU(f.J6))},i.\u0275cmp=e.VBU({type:i,selectors:[["nv-app-sort-filter-programs-modal"]],outputs:{sortOrFilterUpdated:"sortOrFilterUpdated"},features:[e.Jv_([{provide:L.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(t,n){1&t&&(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,vn,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,Cn,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&t&&(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:[c.Sq,w.iV,Me.q,p.BI,p.Yi,p.E7,he.tG,L.VT,L._g,Ve.DJ,Ve.sA,h.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%]   .title[_ngcontent-%COMP%]{padding:18px 24px 14px}.common-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{padding:0 24px;overflow:hidden;overflow-y:overlay}.divider[_ngcontent-%COMP%]{margin:16px 0}.radio-group-title[_ngcontent-%COMP%]{padding:12px 0;display:block}"]}),r})();var yn=g(51728),On=g(43341),Pn=g(44186),wn=g(60990),In=g(40514);const Mn=(i,r)=>({"flex-height":i,"no-apps-actions":r});function Vn(i,r){1&i&&(e.qex(0),e.EFF(1),e.nI1(2,"translate"),e.bVm()),2&i&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"manage3dSettings.scan.gamesAndAppsScanning")," "))}function Dn(i,r){if(1&i&&(e.EFF(0),e.nI1(1,"translate")),2&i){let a;const t=e.XpG();e.E5c(" ",null!==(a=t.visibleAppCount)&&void 0!==a?a:0,"/",null==t.localGamesAndApps?null:t.localGamesAndApps.length," ",e.bMT(1,3,"manage3dSettings.scan.gamesAndApps")," ")}}function Fn(i,r){1&i&&e.nrm(0,"mat-icon",21)}function Gn(i,r){1&i&&e.nrm(0,"mat-progress-spinner",22),2&i&&e.Y8G("diameter",24)}function Tn(i,r){if(1&i){const a=e.RV6();e.j41(0,"button",18),e.nI1(1,"translate"),e.bIt("click",function(){e.eBV(a);const n=e.XpG();return e.Njj(n.optimizeAll())}),e.DNE(2,Fn,1,0,"mat-icon",19)(3,Gn,1,1,"mat-progress-spinner",20),e.k0s()}if(2&i){const a=e.XpG();e.FS9("matTooltip",e.bMT(1,4,"ops.optimizeAll")),e.Y8G("disabled",0===(null==a.localGamesAndApps?null:a.localGamesAndApps.length)||a.optimizeAllInProgress),e.R7$(2),e.Y8G("ngIf",!a.optimizeAllInProgress),e.R7$(),e.Y8G("ngIf",a.optimizeAllInProgress)}}function En(i,r){1&i&&e.nrm(0,"div",23)}function Rn(i,r){if(1&i){const a=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(a);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(a);const n=e.XpG();return e.Njj(n.addProgram())}),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.bVm()}if(2&i){const a=e.XpG();e.R7$(2),e.JRh(e.bMT(3,4,"manage3dSettings.scan.noAppsFound")),e.R7$(2),e.Y8G("disabled",a.appsLoading||(null==a.pageErrorIndicator?null:a.pageErrorIndicator.isLocalGameError)),e.R7$(),e.SpI(" ",e.bMT(6,6,"common.refresh")," "),e.R7$(3),e.SpI(" ",e.bMT(9,8,"manage3dSettings.addProgram")," ")}}function An(i,r){1&i&&(e.nrm(0,"div",27),e.nI1(1,"translate")),2&i&&e.Y8G("innerHTML",e.bMT(1,1,"manage3dSettings.scan.zeroAppsOnFilter"),e.npT)}function jn(i,r){1&i&&e.nrm(0,"mat-icon",38)}function Nn(i,r){if(1&i&&e.nrm(0,"img",39),2&i){const a=e.XpG(2).$implicit;e.Y8G("src",null==a||null==a.images?null:a.images.GAME_ICON,e.B4B)}}function Bn(i,r){if(1&i&&e.nrm(0,"mat-icon",40),2&i){const a=e.XpG(2).$implicit;e.Y8G("ngClass",null==a?null:a.optimizationStatusIcon)("svgIcon",null==a?null:a.optimizationStatusIcon)}}function Un(i,r){if(1&i){const a=e.RV6();e.j41(0,"button",31),e.bIt("click",function(){e.eBV(a);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,jn,1,0,"mat-icon",34)(4,Nn,1,1,"img",35)(5,Bn,1,2,"mat-icon",36),e.k0s(),e.j41(6,"div",37),e.EFF(7),e.k0s()()()}if(2&i){const a=e.XpG(),t=a.$implicit,n=a.index,s=e.XpG(2);e.Y8G("ngClass",s.highlightSelectedIndex===n?"selected-program":"deselect-program"),e.R7$(3),e.Y8G("ngIf",!(null!=t&&null!=t.images&&t.images.GAME_ICON)),e.R7$(),e.Y8G("ngIf",null==t||null==t.images?null:t.images.GAME_ICON),e.R7$(),e.Y8G("ngIf",s.opsSupported&&(null==t?null:t.optimizationStatusIcon)),e.R7$(2),e.SpI(" ",null==t?null:t.displayName," ")}}function kn(i,r){if(1&i&&(e.qex(0),e.DNE(1,Un,8,5,"button",30),e.bVm()),2&i){const a=r.$implicit;e.R7$(),e.Y8G("ngIf",a.isVisible)}}function $n(i,r){if(1&i&&(e.qex(0),e.j41(1,"div",28),e.DNE(2,kn,2,1,"ng-container",29),e.k0s(),e.bVm()),2&i){const a=e.XpG();e.R7$(2),e.Y8G("ngForOf",a.localGamesAndApps)("ngForTrackBy",a.trackById)}}let zn=(()=>{var i;class r{constructor(t,n,s,o,u,_,S,F,B,ae,se,Ta,Ea){this.loggingService=t,this.appListService=n,this.gamesScanLocationService=s,this.appsSortAndFilterService=o,this.opsService=u,this.manage3dSettingsUtilService=_,this.scanApisService=S,this.matDialog=F,this.errorHandlerService=B,this.program3dSettingsService=ae,this.programsService=se,this.activatedRoute=Ta,this.manage3dSettingsAPIService=Ea,this.selectedProgramEmitter=new e.bkB,this.restoreAllProgramsEmitter=new e.bkB,this.localGamesAndApps=[],this.appsLoading=!1,this.filterByCount=[0],this.sortByRecentLaunchEnum=v.NO.SortByRecentLaunch,this.filterByAllEnum=v.dj.FilterByAll,this.optimizeAllInProgress=!1,this.destroy$=new Q.B7,this.highlightSelectedIndex=0,this.isProgramSelectedFromHome=!1,this.addAppInProgress=!1,this.firstVisibleAppIndex=0,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(),this.getScanStatus())}selectProgram(t){const n=this.localGamesAndApps?.[t];(this.selectedDrsProfileName!==n?.drsProfileName||this.selectedProgram?.localId!==n?.localId)&&(this.setPreviousSelectedProgram(),this.selectedProgram=n,this.updateSelected(t))}scanLocationAdd(){this.gamesScanLocationService.searchPathsAdd().pipe((0,V.s)(1)).subscribe(()=>{this.refreshApps()},t=>{this.logger.error("Error while adding scan location",t)})}trackById(t,n){return n.id}openSortAndFilterDialog(){const t=this.matDialog.open(xn,{panelClass:["dialogPaddingRemove","common-dialog"],restoreFocus:!1,autoFocus:!1,data:{filterBy:this.filterBy,filterByCount:this.filterByCount,sortBy:this.sortBy}});t.componentInstance.sortOrFilterUpdated.pipe((0,M.M)(n=>{this.applySortAndFilterBy(n)}),(0,R.Q)(t.afterClosed())).subscribe(I.l,n=>{this.logger.error("Sort & filter update failed with error",n)})}setDefaultSortAndFilterOptions(){this.sortBy=this.appsSortAndFilterService.sortBy,this.appsSortAndFilterService.filterBy=this.filterBy??v.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.filterProgramsAndEmitSelected())}listenForHideStatusChangesToApp(){this.getAppHideStatusSub=this.manage3dSettingsUtilService.getAppHideStatus().subscribe(t=>{this.sortPrograms(),this.updateFilterAndSelectedProgram(t.isManuallyAdded,!1)},t=>this.logger.error(t))}sortPrograms(){this.appsSortAndFilterService.sortApps(this.localGamesAndApps),this.emitFirstVisibleProgram(!1)}getFirstVisibleProgramIndex(){const t=this.isProgramSelectedFromHome?null:+this.activatedRoute?.snapshot?.params?.localId;return this.logger.info("preSelectedAppLocalId",t),this.isProgramSelectedFromHome=!0,this.localGamesAndApps.findIndex(t?s=>s.localId===t:s=>s.isVisible)}filterProgramsAndEmitSelected(t){this.localGamesAndApps=this.appsSortAndFilterService.filterPrograms(this.localGamesAndApps),this.emitFirstVisibleProgram(t)}emitFirstVisibleProgram(t){if(this.selectedProgram=null,this.firstVisibleAppIndex=this.getFirstVisibleProgramIndex(),this.visibleAppCount=this.localGamesAndApps.filter(n=>n.isVisible).length,this.firstVisibleAppIndex<0)return this.selectedDrsProfileName=null,void this.emitProgram(null);this.setPreviousSelectedProgram(),t?this.selectedProgram=this.localGamesAndApps[this.firstVisibleAppIndex]:((this.selectedDrsProfileName||this.selectedProgram?.localId)&&(this.selectedProgram=this.localGamesAndApps.find(n=>n.drsProfileName===this.selectedDrsProfileName)),this.selectedProgram&&this.selectedProgram.isVisible||(this.selectedProgram=this.localGamesAndApps[this.firstVisibleAppIndex])),!this.selectedProgram||this.selectedDrsProfileName&&this.selectedDrsProfileName===this.selectedProgram?.drsProfileName?!this.selectedProgram&&this.selectedDrsProfileName&&this.emitProgram(null):this.logger.info("current visible app updated",this.selectedProgram),this.updateSelected(this.firstVisibleAppIndex)}updateSelected(t){this.highlightSelectedIndex=t,this.fetchDrsProfileAndEmit(this.localGamesAndApps[t])}fetchDrsProfileAndEmit(t){this.getDrsProfileNameSub?.unsubscribe(),this.getDrsProfileNameSub=this.programsService.getDrsProfileName(t).subscribe(n=>{(this.selectedDrsProfileName!==n||this.selectedProgram?.localId!==this.previousSelectedProgram?.localId)&&(this.selectedDrsProfileName=n,t.drsProfileName=n,this.emitProgram(t))},n=>{this.logger.error("Error while fetching DRS profile ",n),this.emitProgram(t)})}optimizeAll(){const t=this.prepareOptimizeAllDialogConfig(),n=this.matDialog.open(_n.ur,t),s=n.componentInstance.primaryButtonClick.pipe((0,V.s)(1),(0,W.u)(!0)),o=n.componentInstance.secondaryButtonClick.pipe((0,V.s)(1),(0,W.u)(!1));this.optimizeAllSub?.unsubscribe(),this.optimizeAllSub=(0,pn.h)(s,o).pipe((0,M.M)(u=>{u&&this.opsService.confirmAndOptimizeAll(this.localGamesAndApps),n.close()})).subscribe(I.l,u=>{this.logger.error("Error while executing optimize all",u)})}addProgram(){this.addProgramSub?.unsubscribe(),this.addProgramSub=this.manage3dSettingsAPIService.openFile().pipe((0,m.n)(t=>(t.split("\\").pop(),(0,G.of)(t))),(0,m.n)(t=>"isCancelled"===t?mn.w:(0,de.zV)([(0,G.of)(t),this.appListService.checkMetaDataExists(t)])),(0,M.M)(([t,n])=>{this.addAppInProgress=!0,this.appListService.setLastManualAddedApp(n)}),(0,m.n)(([t,n])=>n&&n.regularOpsSupported&&0!==n.cmsId&&n.chromaAppId?this.scanApisService.initLocalApps():this.programsService.addProgramToLocalGamesCache(t).pipe((0,m.n)(s=>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,R.Q)(this.destroy$)).subscribe(()=>{this.updateFilterAndSelectedProgram(!1,!0)})}opsSupportedListener(){this.opsService.getOpsCompatibility().pipe((0,R.Q)(this.destroy$)).subscribe(t=>{this.opsSupported=t})}loadPrograms(){this.loadLocalAppsSub=this.programsService.getAllPrograms().subscribe(t=>{let n=!1;if(this.addAppInProgress&&(n=this.appListService.isAppAlreadyExisting(t,this.localGamesAndApps),this.addAppInProgress=!1),!n){const s=this.programsService.getIsLastAddedProgramManually();this.localGamesAndApps=t.slice(),this.appsSortAndFilterService.sortApps(this.localGamesAndApps),this.updateFilterAndSelectedProgram(s)}},t=>{this.logger.error("Error occurred while loading local games and apps - ",t),this.appsLoading=!1,this.addAppInProgress=!1})}emitProgram(t){(0,G.of)(null).pipe((0,H.c)(0),(0,V.s)(1)).subscribe(()=>{this.selectedProgramEmitter.emit(t)})}updateFilterAndSelectedProgram(t,n){if(0===this.localGamesAndApps.length)return this.visibleAppCount=0,void this.emitProgram(null);this.filterByCount=this.appsSortAndFilterService.getInitialCountOfFilters(this.localGamesAndApps),n?[v.dj.FilterByOptimized,v.dj.FilterByUnOptimized].includes(this.filterBy)&&this.filterProgramsAndEmitSelected(t):this.filterProgramsAndEmitSelected(t)}getScanStatus(){this.subGetScanStatus?.unsubscribe(),this.subGetScanStatus=this.appListService.getScanStatus().subscribe(t=>{this.appsLoading=t},t=>this.logger.error(t))}prepareOptimizeAllDialogConfig(){return{panelClass:["dialogPaddingRemove","common-dialog"],disableClose:!0,restoreFocus:!1,autoFocus:!1,data:{showSpinner:!1,headerText:{text:"ops.optimizeAllDialogTitle"},bodyText:{text:"ops.optimizeAllDialogBody"},primaryButton:{text:"ops.optimize",accentColor:!0},secondaryButton:{text:"common.cancel"},autoFocusOnPrimaryButton:!1}}}listenForOptimizeAllInProgress(){this.opsService.getOptimizeAllInProgress().pipe((0,M.M)(t=>this.optimizeAllInProgress=t),(0,R.Q)(this.destroy$)).subscribe(I.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,hn.H)(this.localGamesAndApps).pipe((0,z.H)(n=>this.programsService.getDrsProfileName(n)),(0,M.M)(n=>{t.push(n)}),(0,fn.o)(1)).subscribe(()=>{this.restoreAllProgramsEmitter.emit(t)},n=>{this.logger.error("Some error occurred during fetch drs profiles for restore",n)})}setPreviousSelectedProgram(){this.previousSelectedProgram=(0,b.cloneDeep)(this.selectedProgram)}ngOnDestroy(){this.loadLocalAppsSub?.unsubscribe(),this.subGetScanStatus?.unsubscribe(),this.addProgramSub?.unsubscribe(),this.getDrsProfileNameSub?.unsubscribe(),this.getAppHideStatusSub?.unsubscribe(),this.optimizeAllSub?.unsubscribe(),this.restoreSub?.unsubscribe(),this.destroy$?.next(),this.destroy$.complete()}}return(i=r).\u0275fac=function(t){return new(t||i)(e.rXU(f.J6),e.rXU(Pe.n),e.rXU(yn.o),e.rXU(On.H),e.rXU(q.s),e.rXU(C.f),e.rXU(we.I),e.rXU(p.bZ),e.rXU(Z.c),e.rXU(N),e.rXU(Ie.Z),e.rXU(J.nX),e.rXU(te.F))},i.\u0275cmp=e.VBU({type:i,selectors:[["nv-app-program-profiles"]],inputs:{pageErrorIndicator:"pageErrorIndicator"},outputs:{selectedProgramEmitter:"selectedProgramEmitter",restoreAllProgramsEmitter:"restoreAllProgramsEmitter"},decls:35,vars:34,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","","aria-label","Action Menu for all program actions",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",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",3,"ngClass","click",4,"ngIf"],["mat-button","",1,"font-body2","program-list-button",3,"click","ngClass"],[1,"program-text"],[1,"program-icon-container"],["class","material-icons program-icon","svgIcon","game_controller",4,"ngIf"],["class","material-icons program-icon",3,"src",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"],[1,"material-icons","optimization-status-icon",3,"ngClass","svgIcon"]],template:function(t,n){if(1&t){const s=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"div",4),e.DNE(3,Vn,3,3,"ng-container",5)(4,Dn,2,5,"ng-template",null,0,e.C5r),e.k0s(),e.j41(6,"div",6),e.DNE(7,Tn,4,6,"button",7),e.j41(8,"button",8),e.nI1(9,"translate"),e.bIt("click",function(){return e.eBV(s),e.Njj(n.openSortAndFilterDialog())}),e.j41(10,"mat-icon",9),e.EFF(11,"filter_list"),e.k0s(),e.DNE(12,En,1,0,"div",10),e.k0s(),e.j41(13,"button",11)(14,"mat-icon",9),e.EFF(15,"more_vert"),e.k0s()()(),e.j41(16,"mat-menu",12,1)(18,"button",13),e.bIt("click",function(){return e.eBV(s),e.Njj(n.refreshApps())}),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"button",14),e.bIt("click",function(){return e.eBV(s),e.Njj(n.addProgram())}),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.j41(24,"button",13),e.bIt("click",function(){return e.eBV(s),e.Njj(n.scanLocationAdd())}),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.j41(27,"button",13),e.nI1(28,"async"),e.bIt("click",function(){return e.eBV(s),e.Njj(n.restoreAllPrograms())}),e.EFF(29),e.nI1(30,"translate"),e.k0s()()(),e.j41(31,"div",15),e.DNE(32,Rn,10,10,"ng-container",16)(33,An,2,3,"div",17),e.k0s(),e.DNE(34,$n,3,2,"ng-container",16),e.k0s()}if(2&t){const s=e.sdS(5),o=e.sdS(17);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,19,"common.sortAndFilter")),e.Y8G("disabled",0===(null==n.localGamesAndApps?null:n.localGamesAndApps.length)),e.R7$(4),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(20,21,"common.refresh")," "),e.R7$(3),e.SpI(" ",e.bMT(23,23,"manage3dSettings.addProgram")," "),e.R7$(2),e.Y8G("disabled",null==n.pageErrorIndicator?null:n.pageErrorIndicator.isLocalGameError),e.R7$(),e.SpI(" ",e.bMT(26,25,"manage3dSettings.addScanLocation")," "),e.R7$(2),e.Y8G("disabled",e.bMT(28,27,n.applyInProgressObs)||0===(null==n.localGamesAndApps?null:n.localGamesAndApps.length)||(null==n.pageErrorIndicator?null:n.pageErrorIndicator.isNvcplError)),e.R7$(2),e.SpI(" ",e.bMT(30,29,"manage3dSettings.restoreProgram.all.buttonText")," "),e.R7$(2),e.Y8G("ngClass",e.l_i(31,Mn,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:[c.YU,c.Sq,c.bT,w.iV,D.An,Pn.oV,T.pI,T.gy,T.fS,A.LG,wn.r,In.e,E.a,x.PW,c.Jj,h.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))}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - 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(#191919 55%,transparent 65%,transparent 85%,transparent 90%,transparent 100%);border-radius:50%;filter:drop-shadow(0px 0px 4px #000000)}.program-text[_ngcontent-%COMP%]   .optimization-status-icon.check_circle[_ngcontent-%COMP%]{color:#76b900}.selected-program[_ngcontent-%COMP%]{background-color:#ffffff14;color:#fff}.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:#76b900;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 rgba(255,255,255,.08)}.apps-filter.border-invisible[_ngcontent-%COMP%]{border-bottom:1px solid rgba(255,255,255,0)}.appList-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.selected-filter[_ngcontent-%COMP%]{color:#76b900}"]}),r})();var O=g(6538),De=g(53139);const Yn=i=>({"dsr-setting":i}),Fe=(i,r)=>({"font-sub2 font-color-primary":i,"font-body2 font-color-secondary":r});function Kn(i,r){1&i&&(e.qex(0),e.j41(1,"span"),e.EFF(2),e.nI1(3,"translate"),e.nI1(4,"translate"),e.k0s(),e.bVm()),2&i&&(e.R7$(2),e.Lme("",e.bMT(3,2,"ops.inApp")," ",e.bMT(4,4,"ops.setting"),""))}function Xn(i,r){1&i&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"translate"),e.k0s()),2&i&&(e.R7$(),e.Lme("",e.bMT(2,2,"ops.inGame")," ",e.bMT(3,4,"ops.setting"),""))}function Ln(i,r){if(1&i&&(e.j41(0,"div",8)(1,"span",10),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&i){const a=e.XpG(3);e.R7$(2),e.JRh(e.i5U(3,1,"ops.preview",a.previewValueTranslateParam))}}function qn(i,r){if(1&i&&(e.j41(0,"div",4)(1,"div",5)(2,"div",6),e.DNE(3,Kn,5,6,"ng-container",7)(4,Xn,4,6,"ng-template",null,0,e.C5r),e.k0s(),e.j41(6,"div",8),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.DNE(9,Ln,4,4,"div",9),e.k0s()()),2&i){const a=e.sdS(5),t=e.XpG(2);e.R7$(3),e.Y8G("ngIf",t.selectedProgram.isCreativeApp)("ngIfElse",a),e.R7$(4),e.SpI(" ",e.bMT(8,4,t.currentSettingHeader)," "),e.R7$(2),e.Y8G("ngIf",!t.isOptimizedOrCustomized||t.isStateInTransit)}}function Jn(i,r){1&i&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&i&&(e.R7$(),e.SpI("\xa0",e.bMT(2,1,"ops.dsr"),""))}function Wn(i,r){1&i&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&i&&(e.R7$(),e.SpI("\xa0",e.bMT(2,1,"ops.dsr"),""))}function Hn(i,r){if(1&i&&(e.j41(0,"div",16)(1,"span",10),e.EFF(2),e.DNE(3,Wn,3,3,"span",1),e.k0s()()),2&i){const a=e.XpG().$implicit,t=e.XpG(2);e.Y8G("ngClass",e.l_i(3,Fe,a.value!==a.optimalValue,a.value===a.optimalValue||t.unableToRetrieveSettings)),e.R7$(2),e.SpI("",a.optimalValue," "),e.R7$(),e.Y8G("ngIf",a.isOptimalValueDSR)}}function Zn(i,r){if(1&i&&(e.qex(0),e.j41(1,"div",11)(2,"div",5)(3,"div",12)(4,"label",13),e.EFF(5),e.k0s()(),e.j41(6,"div",14)(7,"span",10),e.EFF(8),e.DNE(9,Jn,3,3,"span",1),e.k0s()(),e.DNE(10,Hn,4,6,"div",15),e.k0s()(),e.bVm()),2&i){let a;const t=r.$implicit,n=e.XpG(2);e.R7$(),e.Y8G("showIcon",t.isOptimalValueDSR||t.isCurrentValueDSR)("settingDetails",t.settingInfoData),e.R7$(3),e.Y8G("ngClass",e.eq3(8,Yn,t.isOptimalValueDSR||t.isCurrentValueDSR)),e.R7$(),e.SpI("",null!==(a=t.nameTranslation)&&void 0!==a?a:t.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(10,Fe,t.value!==t.optimalValue,t.value===t.optimalValue||n.unableToRetrieveSettings)),e.R7$(2),e.SpI("",t.value," "),e.R7$(),e.Y8G("ngIf",t.isCurrentValueDSR),e.R7$(),e.Y8G("ngIf",!n.isOptimizedOrCustomized||n.isStateInTransit)}}function Qn(i,r){if(1&i&&(e.qex(0),e.DNE(1,qn,10,6,"div",2)(2,Zn,11,13,"ng-container",3),e.bVm()),2&i){const a=e.XpG();e.R7$(),e.Y8G("ngIf",(null==a.uiSettings?null:a.uiSettings.length)&&a.selectedProgram),e.R7$(),e.Y8G("ngForOf",a.uiSettings)}}let ei=(()=>{var i;class r{constructor(t,n,s,o,u){this.appConfig=t,this.loggingService=n,this.opsService=s,this.opsUtilsService=o,this.translateService=u,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.unsubscribe$=new Q.B7,this.opsEnabled=t.featureEnablement.ops?.enabled,this.logger=this.loggingService.getLogger("nvapp/OPSSettingsComponent")}ngOnInit(){this.listenToOpsState(),this.opsService.getOpsCompatibility().pipe((0,M.M)(t=>{this.showOps=t&&this.opsEnabled,this.logger.info(`Show ops ${this.showOps}`)}),(0,R.Q)(this.unsubscribe$)).subscribe()}setFeatureOverflow(t){this.isSettingOverflow=t}listenToOpsState(){this.opsService.getSelectedProgramOpsState().pipe((0,R.Q)(this.unsubscribe$)).subscribe(t=>{if(!t)return this.uiSettings=[],void this.logger.error("No state found");this.selectedProgram=t.selectedProgram,this.uiSettings=t?.uiSettings||[];const n=this.opsUtilsService.isDCSettingSelected(t)?O.bF.DC:O.bF.AC;this.isOptimizedOrCustomized=this.opsUtilsService.isOptimizedOrCustomized(t,n),this.unableToRetrieveSettings=this.opsUtilsService.unableToRetrieveSettings(t.opsTabState),this.isStateInTransit=t.stateInTransit;const s=this.translateService.instant(t.isRecommendedSelected?"ops.optimalSetting":"common.custom");this.previewValueTranslateParam={status:s},this.updateCurrentSettingHeader(t),this.uiSettings.length&&this.selectedProgram.isCreativeApp&&(this.uiSettings=this.uiSettings.filter(o=>!(o.name===O.jY.DisplayMode||o.name===O.jY.Resolution)))},t=>{this.logger.error(`Error while refreshing settings space for localId ${this.selectedProgram?.shortName}`,t)})}updateCurrentSettingHeader(t){const n=t.currentPowerMode;this.logger.info("Current Power Mode is",n);const s=t.currentSettingType;n&&(this.currentSettingHeader=s===O.bF.DC&&n===O.$7.AC?"ops.whenOnBattery":s===O.bF.AC&&n===O.$7.DC?"ops.whenPluggedIn":"ops.current")}ngOnDestroy(){this.unsubscribe$.next(!0),this.unsubscribe$.complete()}}return(i=r).\u0275fac=function(t){return new(t||i)(e.rXU(Oe.Vk),e.rXU(f.J6),e.rXU(q.s),e.rXU(De.H),e.rXU(h.c$))},i.\u0275cmp=e.VBU({type:i,selectors:[["nv-app-ops-settings"]],decls:1,vars:1,consts:[["inGame",""],[4,"ngIf"],["class","in-game-header-container",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"in-game-header-container"],[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"],["aria-label","Action Menu for Current setting",1,"setting-align",3,"ngClass"],["class","font-body2 setting-align","aria-label","Action Menu for Optimal settings",3,"ngClass",4,"ngIf"],["aria-label","Action Menu for Optimal settings",1,"font-body2","setting-align",3,"ngClass"]],template:function(t,n){1&t&&e.DNE(0,Qn,3,2,"ng-container",1),2&t&&e.Y8G("ngIf",n.showOps)},dependencies:[c.YU,c.Sq,c.bT,E.a,x.PW,U,h.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))}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.in-game-header-container[_ngcontent-%COMP%]{background:#222;padding:14px 0}.in-game-header-container[_ngcontent-%COMP%]   .mat-menu-header[_ngcontent-%COMP%]{padding:0 16px}.in-game-header-container[_ngcontent-%COMP%]   .in-game-header-text[_ngcontent-%COMP%]{position:relative;padding:0}.in-game-header-container[_ngcontent-%COMP%]   .in-game-header-text[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:absolute}.in-game-header-container[_ngcontent-%COMP%]   .in-game-header-text[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .in-game-header-container[_ngcontent-%COMP%]   .setting-align[_ngcontent-%COMP%]{font-size:16px;line-height:24px}.feature-expansion-panel-container[_ngcontent-%COMP%]   .mat-menu-header[_ngcontent-%COMP%]{background-color:#191919;padding:14px 16px}.feature-expansion-panel-container[_ngcontent-%COMP%]   .mat-menu-header[_ngcontent-%COMP%]:hover{background-color:#ffffff0a}.setting-align[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0 8px}.setting-value[_ngcontent-%COMP%]{white-space:nowrap;width:auto}"]}),r})();var Ge=g(12949),Te=g(56106),Ee=g(51635),Re=g(26945),ti=g(92626),ni=g(13186);const ii=i=>({"optimized-slider":i});function ai(i,r){1&i&&(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&i&&(e.R7$(3),e.JRh(e.bMT(4,1,"ops.optimalSetting")))}function si(i,r){if(1&i){const a=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.bIt("change",function(n){e.eBV(a);const s=e.XpG();return e.Njj(s.onSliderChange(n))}),e.k0s(),e.DNE(12,ai,5,3,"div",7),e.k0s(),e.nrm(13,"mat-icon",8),e.k0s()()}if(2&i){const a=e.XpG();e.Y8G("ngClass",e.eq3(15,ii,a.isOptimized)),e.R7$(3),e.JRh(e.bMT(4,11,a.isDcMode?"ops.battery":"ops.performance")),e.R7$(3),e.JRh(e.bMT(7,13,"ops.quality")),e.R7$(3),e.Y8G("svgIcon",a.isDcMode?"battery_boost":"guage"),e.R7$(2),e.Y8G("max",null==a.customOpsSetting?null:a.customOpsSetting.maxIndex)("min",0)("step",1)("tickInterval",1)("value",a.customOpsSetting.currentSliderIndex)("disabled",a.disabled||!(null!=a.customOpsSetting&&a.customOpsSetting.maxIndex)),e.R7$(),e.Y8G("ngIf",!(null==(null==a.customOpsSetting?null:a.customOpsSetting.optimalIndex))&&(null==a.customOpsSetting?null:a.customOpsSetting.maxIndex))}}let ri=(()=>{var i;class r{constructor(t,n){this.loggingService=t,this.opsService=n,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)}}return(i=r).\u0275fac=function(t){return new(t||i)(e.rXU(f.J6),e.rXU(q.s))},i.\u0275cmp=e.VBU({type:i,selectors:[["nv-app-custom-ops-slider"]],inputs:{customOpsSetting:"customOpsSetting",disabled:"disabled",isDcMode:"isDcMode",isOptimized:"isOptimized"},decls:1,vars:1,consts:[["class","slider-setting-container",3,"ngClass",4,"ngIf"],[1,"slider-setting-container",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(t,n){1&t&&e.DNE(0,si,14,17,"div",0),2&t&&e.Y8G("ngIf",(null==n.customOpsSetting?null:n.customOpsSetting.maxIndex)>0)},dependencies:[c.YU,c.bT,D.An,ni.N$,x.PW,h.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:#222}.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:#ffffffbf;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:#76b900}"],changeDetection:0}),r})();const oi=["onBatteryTabGroup"],li=i=>({"ops-expansion-panel-disabled":i}),Ae=i=>({value:i});function gi(i,r){if(1&i&&(e.j41(0,"span",12),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&i){const a=e.XpG(3);e.Y8G("ngClass",0===a.selectedTabIndex?"font-color-primary":"font-color-secondary"),e.R7$(),e.JRh(e.bMT(2,2,"ops.pluggedIn"))}}function ci(i,r){if(1&i&&(e.j41(0,"span",12),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&i){const a=e.XpG(3);e.Y8G("ngClass",1===a.selectedTabIndex?"font-color-primary":"font-color-secondary"),e.R7$(),e.JRh(e.bMT(2,2,"ops.onBattery"))}}function ui(i,r){if(1&i){const a=e.RV6();e.qex(0),e.j41(1,"mat-tab-group",8,1),e.bIt("selectedTabChange",function(n){e.eBV(a);const s=e.XpG(2);return e.Njj(s.tabChanged(n))}),e.j41(3,"mat-tab"),e.DNE(4,gi,3,4,"ng-template",9),e.j41(5,"div",10),e.eu8(6,11),e.k0s()(),e.j41(7,"mat-tab"),e.DNE(8,ci,3,4,"ng-template",9),e.j41(9,"div",10),e.eu8(10,11),e.k0s()()(),e.bVm()}if(2&i){const a=e.XpG(2),t=e.sdS(2);e.R7$(),e.Y8G("@.disabled",!0)("selectedIndex",a.selectedTabIndex),e.R7$(5),e.Y8G("ngTemplateOutlet",t),e.R7$(4),e.Y8G("ngTemplateOutlet",t)}}function di(i,r){if(1&i&&(e.j41(0,"div",6),e.DNE(1,ui,11,4,"ng-container",7),e.k0s()),2&i){const a=e.XpG(),t=e.sdS(2);e.R7$(),e.Y8G("ngIf",a.bbSupportedAndEnabled)("ngIfElse",t)}}function pi(i,r){1&i&&e.nrm(0,"mat-progress-spinner",25),2&i&&e.Y8G("diameter",24)}function mi(i,r){1&i&&e.nrm(0,"mat-icon",26)}function hi(i,r){if(1&i&&(e.qex(0),e.DNE(1,pi,1,1,"mat-progress-spinner",24)(2,mi,1,0,"ng-template",null,3,e.C5r),e.bVm()),2&i){const a=e.sdS(3),t=e.XpG(3);e.R7$(),e.Y8G("ngIf",t.opsLoadingState.includes(t.opsTabState))("ngIfElse",a)}}function fi(i,r){1&i&&e.nrm(0,"mat-icon",29)}function _i(i,r){1&i&&e.nrm(0,"mat-icon",30)}function Si(i,r){if(1&i&&e.DNE(0,fi,1,0,"mat-icon",27)(1,_i,1,0,"mat-icon",28),2&i){const a=e.XpG(3);e.Y8G("ngIf",a.unOptimizationStates.includes(a.opsTabState)),e.R7$(),e.Y8G("ngIf",a.optimizationStates.includes(a.opsTabState))}}function bi(i,r){if(1&i){const a=e.RV6();e.j41(0,"button",31),e.bIt("click",function(n){e.eBV(a);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&i){const a=e.XpG(3);e.Y8G("disabled",a.disableControls),e.R7$(),e.SpI(" ",e.bMT(3,4,e.bMT(2,2,"common.cancel"))," ")}}function vi(i,r){if(1&i){const a=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(a);const s=e.XpG(3);return e.Njj(s.optimizeSettings(n))}),e.k0s()}if(2&i){const a=e.XpG(3);e.Y8G("showSpinner",e.bMT(1,3,a.loadingSpinner$))("disabled",a.disableControls)("buttonText",e.bMT(3,7,e.bMT(2,5,"layout.apps.update")))}}function Ci(i,r){if(1&i){const a=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(a);const s=e.XpG(3);return e.Njj(s.optimizeSettings(n))}),e.k0s()}if(2&i){const a=e.XpG(3);e.Y8G("showSpinner",e.bMT(1,3,a.loadingSpinner$))("disabled",a.disableControls)("buttonText",e.bMT(3,7,e.bMT(2,5,"ops.optimize")))}}function xi(i,r){if(1&i){const a=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(a);const s=e.XpG(3);return e.Njj(s.revertSettings(n))}),e.k0s()}if(2&i){const a=e.XpG(3);e.Y8G("showSpinner",e.bMT(1,3,a.loadingSpinner$))("disabled",a.disableControls)("buttonText",e.bMT(3,7,e.bMT(2,5,"ops.revert")))}}function yi(i,r){if(1&i&&(e.j41(0,"mat-icon",34),e.EFF(1,"chevron_up"),e.k0s()),2&i){const a=e.XpG(3);e.Y8G("svgIcon",a.panelOpenState?"chevron_up":"chevron_down")}}function Oi(i,r){if(1&i&&(e.j41(0,"mat-option",44),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&i){const a=e.XpG().$implicit;e.Y8G("value",a),e.R7$(),e.SpI(" ",e.i5U(2,2,"ops.recommendedSetting",e.eq3(5,Ae,a))," ")}}function Pi(i,r){if(1&i&&(e.j41(0,"mat-option",44),e.EFF(1),e.k0s()),2&i){const a=e.XpG().$implicit;e.Y8G("value",a),e.R7$(),e.SpI(" ",a," ")}}function wi(i,r){if(1&i&&(e.qex(0),e.DNE(1,Oi,3,7,"mat-option",43)(2,Pi,2,2,"ng-template",null,4,e.C5r),e.bVm()),2&i){const a=r.$implicit,t=e.sdS(3),n=e.XpG(6);e.R7$(),e.Y8G("ngIf",n.customOpsSetting.resolution.optimal===a)("ngIfElse",t)}}function Ii(i,r){if(1&i&&(e.j41(0,"mat-optgroup",41),e.nI1(1,"translate"),e.DNE(2,wi,4,2,"ng-container",42),e.k0s()),2&i){const a=r.$implicit;e.Y8G("label",e.bMT(1,2,a.key)),e.R7$(2),e.Y8G("ngForOf",null==a?null:a.value)}}function Mi(i,r){if(1&i){const a=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.mxI("ngModelChange",function(n){e.eBV(a);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(a);const n=e.XpG(4);return e.Njj(n.resolutionOrDisplayModeChanged())}),e.DNE(5,Ii,3,4,"mat-optgroup",40),e.nI1(6,"keyvalue"),e.k0s()()}if(2&i){const a=e.XpG(4);e.R7$(2),e.SpI(" ",e.bMT(3,4,"ops.resolution")," "),e.R7$(2),e.R50("ngModel",a.customOpsSetting.selectedTweak.resolutionValue),e.Y8G("disabled",null==a.customOpsSetting||null==a.customOpsSetting.resolution?null:a.customOpsSetting.resolution.isDisabled),e.R7$(),e.Y8G("ngForOf",e.bMT(6,6,null==a.customOpsSetting||null==a.customOpsSetting.resolution?null:a.customOpsSetting.resolution.values))}}function Vi(i,r){if(1&i&&(e.j41(0,"mat-option",44),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&i){const a=e.XpG().$implicit;e.Y8G("value",a.valueName),e.R7$(),e.SpI(" ",e.i5U(2,2,"ops.recommendedSetting",e.eq3(5,Ae,null==a?null:a.valueTranslation))," ")}}function Di(i,r){if(1&i&&(e.j41(0,"mat-option",44),e.EFF(1),e.k0s()),2&i){const a=e.XpG().$implicit;e.Y8G("value",a.valueName),e.R7$(),e.SpI(" ",null==a?null:a.valueTranslation," ")}}function Fi(i,r){if(1&i&&(e.qex(0),e.DNE(1,Vi,3,7,"mat-option",43)(2,Di,2,2,"ng-template",null,4,e.C5r),e.bVm()),2&i){const a=r.$implicit,t=e.sdS(3),n=e.XpG(5);e.R7$(),e.Y8G("ngIf",n.customOpsSetting.displayMode.optimal===(null==a?null:a.valueName))("ngIfElse",t)}}function Gi(i,r){if(1&i){const a=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.mxI("ngModelChange",function(n){e.eBV(a);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(a);const n=e.XpG(4);return e.Njj(n.resolutionOrDisplayModeChanged())}),e.DNE(5,Fi,4,2,"ng-container",42),e.k0s()()}if(2&i){const a=e.XpG(4);e.R7$(2),e.SpI(" ",e.bMT(3,4,"ops.displayMode")," "),e.R7$(2),e.R50("ngModel",a.customOpsSetting.selectedTweak.displayModeValue),e.Y8G("disabled",null==a.customOpsSetting||null==a.customOpsSetting.displayMode?null:a.customOpsSetting.displayMode.isDisabled),e.R7$(),e.Y8G("ngForOf",a.customOpsSetting.displayMode.values)}}function Ti(i,r){if(1&i&&(e.j41(0,"div",35),e.DNE(1,Mi,7,8,"div",36)(2,Gi,6,6,"div",36),e.k0s()),2&i){const a=e.XpG(3);e.R7$(),e.Y8G("ngIf",(null==a.customOpsSetting||null==a.customOpsSetting.resolution||null==a.customOpsSetting.resolution.values?null:a.customOpsSetting.resolution.values.size)>0),e.R7$(),e.Y8G("ngIf",(null==a.customOpsSetting||null==a.customOpsSetting.displayMode?null:a.customOpsSetting.displayMode.values.length)>0)}}function Ei(i,r){if(1&i){const a=e.RV6();e.j41(0,"mat-expansion-panel",15),e.bIt("opened",function(){e.eBV(a);const n=e.XpG(2);return e.Njj(n.togglePanelState(!0))})("closed",function(){e.eBV(a);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,hi,4,2,"ng-container",7)(4,Si,2,2,"ng-template",null,2,e.C5r),e.j41(6,"div",18),e.EFF(7),e.k0s(),e.DNE(8,bi,4,6,"button",19)(9,vi,4,9,"button",20)(10,Ci,4,9,"button",20)(11,xi,4,9,"button",21)(12,yi,2,1,"mat-icon",22),e.k0s()(),e.DNE(13,Ti,3,2,"div",23),e.k0s()}if(2&i){const a=e.sdS(5),t=e.XpG(2);e.Y8G("disabled",null==t.customOpsSetting?null:t.customOpsSetting.hideCustomOps)("ngClass",e.eq3(12,li,null==t.customOpsSetting?null:t.customOpsSetting.hideCustomOps)),e.R7$(3),e.Y8G("ngIf",t.showWarningIcon)("ngIfElse",a),e.R7$(3),e.Y8G("isMultiLineEllipsis",!0),e.R7$(),e.SpI(" ",t.optimizationMessage," "),e.R7$(),e.Y8G("ngIf",t.stateInTransit),e.R7$(),e.Y8G("ngIf",t.stateInTransit&&t.optimizationStates.includes(t.opsTabState)),e.R7$(),e.Y8G("ngIf",null==t.customOpsSetting?null:t.customOpsSetting.showOptimize),e.R7$(),e.Y8G("ngIf",(null==t.customOpsSetting?null:t.customOpsSetting.showRevert)&&!t.stateInTransit),e.R7$(),e.Y8G("ngIf",!(null!=t.customOpsSetting&&t.customOpsSetting.hideCustomOps)),e.R7$(),e.Y8G("ngIf",!(null!=t.customOpsSetting&&t.customOpsSetting.hideCustomOps))}}function Ri(i,r){if(1&i&&e.nrm(0,"nv-app-custom-ops-slider",46),2&i){const a=e.XpG(2);e.Y8G("customOpsSetting",a.customOpsSetting)("disabled",a.disableControls)("isDcMode",a.isDcSettingSelected)("isOptimized",a.optimizationStates.includes(a.opsTabState))}}function Ai(i,r){if(1&i&&e.DNE(0,Ei,14,14,"mat-expansion-panel",13)(1,Ri,1,4,"nv-app-custom-ops-slider",14),2&i){const a=e.XpG();e.Y8G("ngIf",a.optimizationMessage&&a.customOpsSetting&&a.opsTabState),e.R7$(),e.Y8G("ngIf",!(null!=a.customOpsSetting&&a.customOpsSetting.hideCustomOps))}}let ji=(()=>{var i;class r{constructor(t,n,s,o,u,_){this.loggingService=t,this.opsService=n,this.opsUtilsService=s,this.renderer=o,this.changeDetector=u,this.performanceMeasureService=_,this.optimizationStates=[O.lq.OPTIMIZED,O.lq.CUSTOMIZED],this.unOptimizationStates=[O.lq.UNOPTIMIZED],this.opsLoadingState=[O.eg.RecommendationsLoading],this.disableControls=!0,this.showOps=!1,this.selectedTabIndex=0,this.bbSupportedAndEnabled=!1,this.showWarningIcon=!1,this.isOpsStatusOverflow=!1,this.panelOpenState=!1,this.unsubscribe$=new Q.B7,this.restoreOptimalSliderPosition=!1,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.loadingSpinner.triggerLoadingIndicator(!0),t.stopImmediatePropagation(),this.updateDisableControlState(!0),this.opsService.optimize(this.opsState,this.selectedProgram,this.opsState.currentSettingType,this.customOpsSetting.selectedTweak,this.customOpsSetting.currentSliderIndex).pipe((0,V.s)(1)).subscribe(()=>{this.opsService.updateStateInTransit(!1),this.logger.info(`optimize ${this.opsState.currentSettingType} success for program`,this.selectedProgram.shortName)},n=>{this.updateDisableControlState(!1),this.logger.error("Error while optimizeAC",n),this.loadingSpinner.triggerLoadingIndicator(!1),this.opsService.showToastMessage("ops.unableToUpdateGameSettings")})}revertSettings(t){this.loadingSpinner.triggerLoadingIndicator(!0),t.stopImmediatePropagation(),this.updateDisableControlState(!0),this.opsService.revert(this.selectedProgram,this.opsState.currentSettingType).pipe((0,V.s)(1)).subscribe(()=>{this.opsService.updateStateInTransit(!1),this.logger.info(`revert ${this.opsState.currentSettingType} success for program`,this.selectedProgram.shortName)},n=>{this.updateDisableControlState(!1),this.logger.error("Error while revert",n),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){t?.stopImmediatePropagation(),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,R.Q)(this.unsubscribe$)).subscribe(t=>t?(this.opsTabState=t.opsTabState,this.opsTabState?(this.performanceMeasureService.markNvAppPerformanceMarkers([P.mM.NvAppOpsDataFetchEnd,P.mM.NvAppOpsViewRenderStart],P.fR.Graphics),this.handleStateChanges(t),void this.performanceMeasureService.markNvAppPerformanceMarkers([P.mM.NvAppOpsViewRenderEnd],P.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([P.mM.NvAppOpsDataFetchEnd,P.mM.NvAppOpsViewRenderStart,P.mM.NvAppOpsViewRenderEnd],P.fR.Graphics),this.logger.error(`Error while getting optimization message for localId ${this.selectedProgram?.shortName}`,t)})}listenFor3dSettingsTabChange(){this.opsService.getGraphicsSettingsTabChange().pipe((0,R.Q)(this.unsubscribe$)).subscribe(()=>{this.stateInTransit&&this.cancelInTransitState()})}isWarningIcon(){return this.opsUtilsService.isWarningIcon(this.opsState)}checkIfStateInTransit(){const{resolutionValue:t,displayModeValue:n}=this.customOpsSetting?.optimizedTweaks??{},{resolutionValue:s,displayModeValue:o}=this.customOpsSetting?.selectedTweak??{};return t!==s||n!==o||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 n=(this.isDcSettingSelected?this.opsState?.profileDC:this.opsState?.profileAC)?.sliderSettings,s=[...n?.resolutions??[]],o=this.opsUtilsService.getResolutionMap(s);return{values:o,optimal:s[n?.resolutionRecommendation]?.value,isDisabled:this.getResolutionDisabled(o)}}getResolutionDisabled(t){return t||(t=this.customOpsSetting?.resolution?.values),t?.size<=1&&Array.from(t?.values())?.[0]?.length<=1||this.disableControls}getDisplayModeSetting(){const n=(this.isDcSettingSelected?this.opsState?.profileDC:this.opsState?.profileAC)?.sliderSettings,s=this.opsService.getTranslationDataForCurrentLocale(this.opsState),o=this.opsUtilsService.getDisplayModeValues(s,n);return{values:o??[],optimal:o?.[n?.displayModeRecommendation]?.valueName??null,isDisabled:this.getDisplayModeDisabled(o)}}updateButtonStates(){const t=this.opsUtilsService.isDCSettingSelected(this.opsState)?O.bF.DC:O.bF.AC,n=this.opsUtilsService.isOptimizedOrCustomized(this.opsState,t),s=this.opsUtilsService.unableToRetrieveSettings(this.opsTabState),o=this.opsUtilsService.unableToShowOps(this.opsTabState);return{showOptimize:!n&&!s&&!o,showRevert:n&&!s&&!o,hideCustomOps:s||this.selectedProgram.isCreativeApp||o}}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,n=t?.targetPosition;let s=this.opsState?.stateInTransit?this.customOpsSetting?.selectedTweak:n?.tweak;return s||(this.logger.info("default slider settings applied since targetPosition not found"),s=this.opsUtilsService.getRecommendedDisplayModeResolution(t?.sliderSettings)),this.logger.info("custom setting updated with selected tweaks",s),{selectedTweak:{...s??{}},optimizedTweaks:this.opsState.stateInTransit?this.customOpsSetting?.optimizedTweaks:s,...this.updateSettingIndex(n?.settingsIndex)}}updateSettingIndex(t){const n={maxIndex:null,currentSliderIndex:this.opsState?.stateInTransit?this.customOpsSetting?.currentSliderIndex:null,optimalIndex:null,optimizedIndex:this.opsState?.stateInTransit?this.customOpsSetting?.optimizedIndex:null},s=this.opsUtilsService.prepareSettingsSpace(this.opsState),o=this.isDcSettingSelected?s?.recommendationDC:s?.recommendationAC;return n.maxIndex=s?.settingsSets?.length-1,n.optimalIndex=o?.recommendedIndex??null,this.opsState.stateInTransit?n.currentSliderIndex>n.maxIndex?n.currentSliderIndex=0:this.restoreOptimalSliderPosition&&(this.restoreOptimalSliderPosition=!1,null!==n.optimalIndex&&(n.currentSliderIndex=n.optimalIndex)):(n.currentSliderIndex=null===n.optimalIndex?0:n.optimalIndex,n.currentSliderIndex=t??n.currentSliderIndex),n.optimizedIndex=n.optimizedIndex??n.currentSliderIndex,this.logger.info("custom setting updated with indexes",n),n}applyOptimalThumbCss(){const t=document.querySelector(".slider-setting"),n=this.customOpsSetting?.optimalIndex,s=this.customOpsSetting?.maxIndex;t&&null!=s&&this.renderer.setProperty(t,"style",`--transform-translate-x-axis: ${(0===s?0:100/s)+"%"};\n                --recommended-transform-translate-x-axis: ${100*((0===s?0:(n??this.customOpsSetting?.currentSliderIndex)/s)-1)+"%"}`)}updateDisableControlState(t){this.disableControls=t,this.customOpsSetting.resolution.isDisabled=this.getResolutionDisabled(),this.customOpsSetting.displayMode.isDisabled=this.getDisplayModeDisabled()}listenForDriverSettingSupportStates(){this.opsService.getDriverSettingsSupportState().pipe((0,R.Q)(this.unsubscribe$)).subscribe(t=>{this.updateBatteryBoostSupportStates(t)})}updateBatteryBoostSupportStates(t){const n=t?.BatteryBoost.isSupported,s=t?.BatteryBoost.isEnabled;this.logger.info(`bbSupported ${n} bbEnabled ${s}`),this.bbSupportedAndEnabled=this.opsState&&n&&s&&!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===O.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.setDefaultCustomSetting(),this.opsTabState!==O.eg.RecommendationsLoading&&this.opsTabState!==O.eg.UnInitialized&&this.opsTabState!==O.Rw.SystemUnsupported&&this.opsTabState!==O.Rw.ProgramUnsupported?this.refreshCustomSettings():this.customOpsSetting={...this.defaultCustomOpsSetting||{},...this.updateButtonStates()},this.showOps=!0}ngOnDestroy(){this.unsubscribe$.next(!0),this.unsubscribe$.complete()}}return(i=r).\u0275fac=function(t){return new(t||i)(e.rXU(f.J6),e.rXU(q.s),e.rXU(De.H),e.rXU(e.sFG),e.rXU(e.gRc),e.rXU(ne.M))},i.\u0275cmp=e.VBU({type:i,selectors:[["nv-app-ops-optimize-control"]],viewQuery:function(t,n){if(1&t&&e.GBs(oi,5),2&t){let s;e.mGM(s=e.lsd())&&(n.tabGroup=s.first)}},features:[e.Jv_([{provide:Ge.JO,useValue:{overlayPanelClass:"ops-setting-select-panel-overlay"}}])],decls:3,vars:1,consts:[["customOpsExpansionPanel",""],["onBatteryTabGroup",""],["optimizeStatusIcon",""],["alertIcon",""],["noRecommended",""],["class","optimization-container",4,"ngIf"],[1,"optimization-container"],[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",4,"ngIf"],["mat-raised-button","","class","optimize-button mat-accent","nvAppTextButtonSpinner","",3,"showSpinner","disabled","buttonText","click",4,"ngIf"],["mat-button","","class","font-color-primary revert-icon","nvAppTextButtonSpinner","",3,"showSpinner","disabled","buttonText","click",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","disabled"],["mat-raised-button","","nvAppTextButtonSpinner","",1,"optimize-button","mat-accent",3,"click","showSpinner","disabled","buttonText"],["mat-button","","nvAppTextButtonSpinner","",1,"font-color-primary","revert-icon",3,"click","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(t,n){1&t&&e.DNE(0,di,2,2,"div",5)(1,Ai,2,2,"ng-template",null,0,e.C5r),2&t&&e.Y8G("ngIf",n.showOps)},dependencies:[c.YU,c.Sq,c.bT,c.T3,Te.BC,Te.vS,w.iV,D.An,A.LG,Ge.VO,Ee.wT,Ee.D7,Re.GK,Re.Z2,Y.ES,Y.mq,Y.T8,$.Aq,E.a,x.PW,ti.u,ri,c.Jj,c.Pc,c.lG,h.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))}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - 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:#76b900}.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:#ffffffbf;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%]{display:flex;width:100%;background:#222;flex-direction:column;box-shadow:none;border-radius:0}.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:#ffffffb3;margin-right:-6px;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}"]}),r})(),Ni=(()=>{var i;class r{constructor(t,n,s,o,u){this.loggingService=t,this.dialogData=n,this.dialogRef=s,this.program3dSettingsService=o,this.manage3dSettingsUtilService=u,this.settingData={},this.minIntensityValue=y.el.minValue,this.maxIntensityValue=y.el.maxValue,this.intensityStepValue=y.el.stepValue,this.minSaturationValue=y.l3.minValue,this.maxSaturationValue=y.l3.maxValue,this.saturationStepValue=y.el.stepValue,this.isRadioButton=!1,this.isDirty=!1,this.showErrorToast=_=>{this.closeDialog(!1,!0),this.manage3dSettingsUtilService.showApplyErrorToastMessage(_),this.logger.error(_),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}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,m.n)(()=>this.program3dSettingsService.refreshProgramSettings())).subscribe(I.l,this.showErrorToast)}closeDialog(t,n){this.dialogRef.close({applyInProgress:t,needRefresh:n,featureCurrentValue:this.updatedFeature?.selectedFeatureValue})}updateFeatureState(t,n){const s=this.dialogData.aiDvcCurrentValue;let o={};this.selectedFeatureKey===l.DefaultGlobalEnum.UseGlobalKey?o={useGlobal:!0}:(o.enabled=this.selectedFeatureKey===l.AIDVCValueDisplayEnum.On,o.intensity=t,o.saturation=n),this.isDirty=!(0,b.isEqual)(o,s),this.updatedFeature={settingName:this.settingData.featureName,isDirty:this.isDirty,selectedFeatureValue:JSON.stringify(o),isAutoTrigger:!1}}}return(i=r).\u0275fac=function(t){return new(t||i)(e.rXU(f.J6),e.rXU(p.Vh),e.rXU(p.CP),e.rXU(N),e.rXU(C.f))},i.\u0275cmp=e.VBU({type:i,selectors:[["nv-app-feature-ai-dvc-modal"]],decls:24,vars:31,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"],["align","end",1,"actions"],["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(t,n){1&t&&(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.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(12,"div",5)(13,"div",6),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"nv-hig-slider",7),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(17,"mat-dialog-actions",8)(18,"button",9),e.bIt("click",function(){return n.onCancelClick()}),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"button",10),e.bIt("click",function(){return n.onApplyClick()}),e.EFF(22),e.nI1(23,"translate"),e.k0s()()()),2&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,21,"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,23,"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),e.R7$(3),e.SpI(" ",e.bMT(15,25,"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),e.R7$(3),e.SpI(" ",e.bMT(20,27,"save.cancel")," "),e.R7$(2),e.Y8G("disabled",!n.isDirty),e.R7$(),e.SpI(" ",e.bMT(23,29,"save.apply")," "))},dependencies:[c.YU,w.iV,p.BI,p.Yi,p.E7,K.t,$.Aq,x.PW,k,h.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))}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - 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:#191919;padding:0 16px}.feature-expansion-panel-container[_ngcontent-%COMP%]   .mat-menu-header[_ngcontent-%COMP%]:hover{background-color:#ffffff0a}.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:#636363}.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}"]}),r})();const Bi=(i,r)=>({nvidiaSettingName:i,errors:r}),je=i=>({"font-sub2":i});function Ui(i,r){1&i&&e.nrm(0,"mat-progress-spinner",10),2&i&&e.Y8G("diameter",20)}function ki(i,r){if(1&i&&(e.j41(0,"span",11),e.EFF(1),e.k0s()),2&i){const a=e.XpG();e.Y8G("ngClass",e.eq3(2,je,a.profileValueBold)),e.R7$(),e.SpI(""," - "+a.aiDvcGlobalValueText," ")}}let $i=(()=>{var i;class r{constructor(t,n,s,o){this.loggingService=t,this.translateService=n,this.matDialog=s,this.manage3dSettingsUtilService=o,this.intensity=y.el.defaultIntensity,this.saturation=y.l3.defaultSaturation,this.isFeatureOverflow=!1,this.isDisabled=!1,this.uiControlBusy=!1,this.showUiControlBusy=!1,this.currentValueBold=!1,this.profileValueBold=!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+d.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(){this.intensity=this.aiDvcCurrentValue?.intensity,this.saturation=this.aiDvcCurrentValue?.saturation;const t=!this.aiDvcCurrentValue?.enabled;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.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(Ni,t),this.aiDvcDialogRef.afterClosed().pipe((0,V.s)(1)).subscribe(n=>{n?.applyInProgress?(this.savePreviousAppliedValues(),this.aiDvcSetting[this.featureSettingKey]=n.featureCurrentValue,this.ngOnInit()):n?.needRefresh&&(this.getFromPreviousAppliedValues(),this.ngOnInit()),this.updateUiControlState(n?.applyInProgress||n?.needRefresh?d.uf:0)},n=>{this.logger.error(n)},()=>{this.updateUiControlState(d.uf)})}updateUiControlState(t){setTimeout(()=>{this.uiControlBusy=!1,this.showUiControlBusy=!1},t)}setGlobalValueText(){this.logger.info("Setting the global value for AIDVC"),this.aiDvcGlobalValueText=this.manage3dSettingsUtilService.resolveUseGlobalValue(!1,this.aiDvcSetting.featureEnum,this.aiDvcSetting.settingGlobalValue,this.featureName);const t=JSON.parse(this.aiDvcSetting?.settingGlobalValue?.[this.featureSettingKey]);this.intensity=t?.intensity,this.saturation=t?.saturation,this.profileValueBold=!1!==t?.enabled,this.aiDvcGlobalValueText=t?.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,b.cloneDeep)(this.aiDvcSetting)}getFromPreviousAppliedValues(){this.aiDvcSetting=(0,b.cloneDeep)(this.aiDvcSettingOriginal)}updateBoldEffectForSetting(){this.currentValueBold=!0!==this.aiDvcCurrentValue?.useGlobal}}return(i=r).\u0275fac=function(t){return new(t||i)(e.rXU(f.J6),e.rXU(h.c$),e.rXU(p.bZ),e.rXU(C.f))},i.\u0275cmp=e.VBU({type:i,selectors:[["nv-app-feature-ai-dvc"]],inputs:{featureName:"featureName",aiDvcSetting:"aiDvcSetting",isGlobalContext:"isGlobalContext"},decls:13,vars:15,consts:[["nvAppSettingInfoIcon","",1,"feature-expansion-panel-container","feature-expansion-panel-border",3,"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","","aria-label","Action Menu for select settings",1,"font-body2","setting-drop-down",3,"click","disabled"],["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(t,n){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"label",3),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"div",4),e.DNE(7,Ui,1,1,"mat-progress-spinner",5),e.j41(8,"button",6),e.bIt("click",function(){return n.openSettingsModal()}),e.j41(9,"div",7),e.EFF(10),e.DNE(11,ki,2,4,"span",8),e.k0s(),e.nrm(12,"mat-icon",9),e.k0s()()()()),2&t&&(e.FS9("id",n.featureName),e.Y8G("settingDetails",e.l_i(10,Bi,n.featureName,null==n.aiDvcSetting?null:n.aiDvcSetting.errorMessages)),e.R7$(4),e.SpI(" ",e.bMT(5,8,"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.eq3(13,je,n.currentValueBold)),e.R7$(),e.SpI(" ",n.displayValue," "),e.R7$(),e.Y8G("ngIf",n.aiDvcGlobalValueText))},dependencies:[c.YU,c.bT,w.iV,D.An,A.LG,E.a,x.PW,U,h.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))}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - 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:#191919;padding:0 16px}.feature-expansion-panel-container[_ngcontent-%COMP%]   .mat-menu-header[_ngcontent-%COMP%]:hover{background-color:#ffffff0a}.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:#636363}.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}"]}),r})();const zi=["appSettings"],Yi=i=>({"fill-left-column":i});function Ki(i,r){if(1&i){const a=e.RV6();e.j41(0,"div",12)(1,"nv-app-program-profiles",13),e.bIt("selectedProgramEmitter",function(n){e.eBV(a);const s=e.XpG();return e.Njj(s.getSelectedProgram(n))})("restoreAllProgramsEmitter",function(n){e.eBV(a);const s=e.XpG();return e.Njj(s.restoreProgram(!0,n))}),e.k0s(),e.nrm(2,"mat-divider",14),e.k0s()}if(2&i){const a=e.XpG();e.R7$(),e.Y8G("pageErrorIndicator",a.pageErrorIndicator),e.R7$(),e.Y8G("vertical",!0)}}function Xi(i,r){1&i&&e.nrm(0,"mat-icon",28)}function Li(i,r){if(1&i){const a=e.RV6();e.j41(0,"img",29),e.bIt("error",function(){e.eBV(a);const n=e.XpG(2);return e.Njj(n.selectedProgram.images.GAME_ICON=null)}),e.k0s()}if(2&i){const a=e.XpG(2);e.Y8G("src",null==a.selectedProgram||null==a.selectedProgram.images?null:a.selectedProgram.images.GAME_ICON,e.B4B)}}function qi(i,r){if(1&i){const a=e.RV6();e.j41(0,"button",31),e.bIt("click",function(){e.eBV(a);const n=e.XpG(3);return e.Njj(n.launchApp())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&i&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"common.play")," "))}function Ji(i,r){if(1&i){const a=e.RV6();e.j41(0,"button",32),e.bIt("click",function(){e.eBV(a);const n=e.XpG(3);return e.Njj(n.launchApp())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&i&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"common.launch")," "))}function Wi(i,r){if(1&i&&(e.qex(0),e.DNE(1,qi,3,3,"button",30)(2,Ji,3,3,"ng-template",null,2,e.C5r),e.bVm()),2&i){const a=e.sdS(3),t=e.XpG(2);e.R7$(),e.Y8G("ngIf",!(null!=t.selectedProgram&&t.selectedProgram.isCreativeApp))("ngIfElse",a)}}function Hi(i,r){if(1&i){const a=e.RV6();e.j41(0,"button",33),e.bIt("click",function(){e.eBV(a);const n=e.XpG(2);return e.Njj(n.hideProgram(!0))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&i&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"manage3dSettings.hide")," "))}function Zi(i,r){if(1&i){const a=e.RV6();e.j41(0,"button",33),e.bIt("click",function(){e.eBV(a);const n=e.XpG(2);return e.Njj(n.hideProgram(!1))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&i&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"manage3dSettings.unhide")," "))}function Qi(i,r){if(1&i){const a=e.RV6();e.j41(0,"button",33),e.bIt("click",function(){e.eBV(a);const n=e.XpG(2);return e.Njj(n.removeProgram())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&i&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"manage3dSettings.remove")," "))}function ea(i,r){if(1&i){const a=e.RV6();e.j41(0,"div",15)(1,"div",16)(2,"div",17)(3,"div",18),e.DNE(4,Xi,1,0,"mat-icon",19)(5,Li,1,1,"img",20),e.k0s(),e.j41(6,"div",21)(7,"div",22),e.EFF(8),e.k0s()()(),e.j41(9,"button",23)(10,"mat-icon",24),e.EFF(11,"more_vert"),e.k0s()(),e.j41(12,"mat-menu",25,1),e.DNE(14,Wi,4,2,"ng-container",11),e.j41(15,"button",26),e.bIt("click",function(){e.eBV(a);const n=e.XpG();return e.Njj(n.openFileLocation())}),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.DNE(18,Hi,3,3,"button",27)(19,Zi,3,3,"button",27)(20,Qi,3,3,"button",27),e.k0s()()()}if(2&i){const a=e.sdS(13),t=e.XpG();e.R7$(4),e.Y8G("ngIf",!(null!=t.selectedProgram&&null!=t.selectedProgram.images&&t.selectedProgram.images.GAME_ICON)),e.R7$(),e.Y8G("ngIf",null==t.selectedProgram||null==t.selectedProgram.images?null:t.selectedProgram.images.GAME_ICON),e.R7$(3),e.JRh(null==t.selectedProgram?null:t.selectedProgram.displayName),e.R7$(),e.Y8G("matMenuTriggerFor",a),e.R7$(5),e.Y8G("ngIf",!(null!=t.selectedProgram&&t.selectedProgram.isManuallyAdded)),e.R7$(2),e.SpI(" ",e.bMT(17,9,"common.openFolder")," "),e.R7$(2),e.Y8G("ngIf",!(null!=t.selectedProgram&&t.selectedProgram.isHidden)&&t.showHideProgramButton),e.R7$(),e.Y8G("ngIf",(null==t.selectedProgram?null:t.selectedProgram.isHidden)&&t.showHideProgramButton),e.R7$(),e.Y8G("ngIf",null==t.selectedProgram?null:t.selectedProgram.isManuallyAdded)}}function ta(i,r){1&i&&(e.j41(0,"div",34),e.nrm(1,"nv-app-ops-optimize-control"),e.k0s())}function na(i,r){1&i&&(e.j41(0,"div",35),e.nrm(1,"mat-progress-spinner",36),e.k0s()),2&i&&(e.R7$(),e.Y8G("diameter",24))}function ia(i,r){1&i&&e.nrm(0,"nv-app-ops-settings")}function aa(i,r){if(1&i){const a=e.RV6();e.j41(0,"div",40)(1,"div",41),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"button",42),e.nI1(5,"async"),e.bIt("click",function(){e.eBV(a);const n=e.XpG(2);return e.Njj(n.restoreProgram(!1))}),e.EFF(6),e.nI1(7,"translate"),e.k0s()()}if(2&i){const a=e.XpG(2);e.R7$(2),e.SpI(" ",e.bMT(3,3,"manage3dSettings.subTitle")," "),e.R7$(2),e.Y8G("disabled",e.bMT(5,5,a.applyInProgressObs)),e.R7$(2),e.SpI(" ",e.bMT(7,7,"manage3dSettings.restoreProgram.buttonText")," ")}}function sa(i,r){1&i&&e.nrm(0,"mat-icon",45)}function ra(i,r){if(1&i&&(e.qex(0),e.DNE(1,sa,1,0,"mat-icon",44),e.j41(2,"span"),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.bVm()),2&i){const a=e.XpG(3);e.R7$(),e.Y8G("ngIf",null==a.pageErrorIndicator?null:a.pageErrorIndicator.isLocalGameError),e.R7$(2),e.SpI(" ",e.bMT(4,2,"ops.unableToRetrieveSettings")," ")}}function oa(i,r){1&i&&(e.qex(0),e.nrm(1,"mat-icon",46),e.j41(2,"span",47),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.bVm()),2&i&&(e.R7$(3),e.SpI(" ",e.bMT(4,1,"manage3dSettings.zeroSettingsOnFilter")," "))}function la(i,r){if(1&i&&(e.j41(0,"div",43),e.DNE(1,ra,5,4,"ng-container",11)(2,oa,5,3,"ng-container",11),e.k0s()),2&i){const a=e.XpG(2);e.Y8G("ngClass",null==a.pageErrorIndicator||!a.pageErrorIndicator.isNvcplError||null!=a.pageErrorIndicator&&a.pageErrorIndicator.isLocalGameError?"font-sub1":"settings-load-error font-body2"),e.R7$(),e.Y8G("ngIf",(null==a.pageErrorIndicator?null:a.pageErrorIndicator.isNvcplError)||(null==a.pageErrorIndicator?null:a.pageErrorIndicator.isLocalGameError)),e.R7$(),e.Y8G("ngIf",!(null!=a.pageErrorIndicator&&a.pageErrorIndicator.isLocalGameError)&&!(null!=a.pageErrorIndicator&&a.pageErrorIndicator.isNvcplError)&&a.showConfigureMessage)}}function ga(i,r){if(1&i&&e.nrm(0,"nv-app-feature-image-sharpening",52),2&i){const a=e.XpG(2).$implicit,t=e.XpG(2);e.Y8G("featureName",a.settingName)("featureSettingObject",a.settingValue)("sharpenSettingObject",t.sharpenSetting.settingValue)("noiseGrainSettingObject",t.noiseGrainSetting.settingValue)("isGlobalContext",!1)}}function ca(i,r){if(1&i&&(e.qex(0),e.DNE(1,ga,1,5,"nv-app-feature-image-sharpening",51),e.bVm()),2&i){const a=e.XpG().$implicit;e.R7$(),e.Y8G("ngIf",null==a.settingValue||null==a.settingValue.SettingInfo?null:a.settingValue.SettingInfo.isSupported)}}function ua(i,r){if(1&i&&e.nrm(0,"nv-app-feature-max-frame-rate",54),2&i){const a=e.XpG(2).$implicit,t=e.XpG(2);e.Y8G("featureName",a.settingName)("featureSettingObject",a.settingValue)("isGlobalContext",!1)("maxFrameRateFPSObject",t.maxFrameRateFPSSetting.settingValue)}}function da(i,r){if(1&i&&(e.qex(0),e.DNE(1,ua,1,4,"nv-app-feature-max-frame-rate",53),e.bVm()),2&i){const a=e.XpG().$implicit;e.R7$(),e.Y8G("ngIf",null==a.settingValue||null==a.settingValue.SettingInfo?null:a.settingValue.SettingInfo.isSupported)}}function pa(i,r){1&i&&e.eu8(0)}function ma(i,r){if(1&i&&e.nrm(0,"nv-app-feature-ai-dvc",56),2&i){const a=e.XpG(2).$implicit;e.Y8G("featureName",a.settingName)("aiDvcSetting",a.settingValue)("isGlobalContext",!1)}}function ha(i,r){if(1&i&&(e.qex(0),e.DNE(1,ma,1,3,"nv-app-feature-ai-dvc",55),e.bVm()),2&i){const a=e.XpG().$implicit;e.R7$(),e.Y8G("ngIf",null==a.settingValue||null==a.settingValue.SettingInfo?null:a.settingValue.SettingInfo.isSupported)}}function fa(i,r){if(1&i&&e.nrm(0,"nv-app-feature-image-scaling",58),2&i){const a=e.XpG(2).$implicit,t=e.XpG(2);e.Y8G("featureName",a.settingName)("imageScalingSetting",a.settingValue)("localId",null==t.selectedProgram?null:t.selectedProgram.localId)("isGlobalContext",!1)}}function _a(i,r){if(1&i&&(e.qex(0),e.DNE(1,fa,1,4,"nv-app-feature-image-scaling",57),e.bVm()),2&i){const a=e.XpG().$implicit;e.R7$(),e.Y8G("ngIf",(null==a.settingValue||null==a.settingValue.SettingInfo?null:a.settingValue.SettingInfo.isSupported)&&!(null!=a.settingValue&&a.settingValue.isGreyedOut))}}function Sa(i,r){if(1&i&&e.nrm(0,"nv-app-manage-3d-setting-feature",60),2&i){const a=e.XpG(2).$implicit;e.Y8G("featureName",a.settingName)("featureSettingObject",a.settingValue)("isGlobalContext",!1)}}function ba(i,r){if(1&i&&(e.qex(0),e.DNE(1,Sa,1,3,"nv-app-manage-3d-setting-feature",59),e.bVm()),2&i){const a=e.XpG().$implicit;e.R7$(),e.Y8G("ngIf",null==a.settingValue||null==a.settingValue.SettingInfo?null:a.settingValue.SettingInfo.isSupported)}}function va(i,r){if(1&i&&(e.j41(0,"div"),e.qex(1,48),e.DNE(2,ca,2,1,"ng-container",49)(3,da,2,1,"ng-container",49)(4,pa,1,0,"ng-container",49)(5,ha,2,1,"ng-container",49)(6,_a,2,1,"ng-container",49)(7,ba,2,1,"ng-container",50),e.bVm(),e.k0s()),2&i){const a=r.$implicit,t=e.XpG(2);e.R7$(),e.Y8G("ngSwitch",a.settingName),e.R7$(),e.Y8G("ngSwitchCase",t.staticSliderSettings.ImageSharpeningToggle),e.R7$(),e.Y8G("ngSwitchCase",t.staticSliderSettings.MaxFrameRate),e.R7$(),e.Y8G("ngSwitchCase",t.staticSliderSettings.WhisperModeProgram),e.R7$(),e.Y8G("ngSwitchCase",t.jsonTypeSettings.AIDVC),e.R7$(),e.Y8G("ngSwitchCase",t.jsonTypeSettings.ImageScaling)}}function Ca(i,r){if(1&i&&(e.qex(0),e.DNE(1,ia,1,0,"nv-app-ops-settings",11)(2,aa,8,9,"div",37)(3,la,3,3,"div",38)(4,va,8,6,"div",39),e.bVm()),2&i){const a=e.XpG();e.R7$(),e.Y8G("ngIf",a.selectedProgram&&a.opsEnabled),e.R7$(),e.Y8G("ngIf",a.profileSettingsInfoArray.length>0),e.R7$(),e.Y8G("ngIf",0===a.profileSettingsInfoArray.length&&!a.isLoading),e.R7$(),e.Y8G("ngForOf",a.profileSettingsInfoArray)}}let xa=(()=>{var i;class r{constructor(t,n,s,o,u,_,S,F,B,ae,se){this.loggingService=t,this.program3dSettingsService=n,this.appConfig=s,this.opsService=o,this.manage3dSettingsUtilService=u,this.appListService=_,this.errorHandlerService=S,this.scanApiService=F,this.performanceMeasureService=B,this.manage3dSettingsTelemetryService=ae,this.fingerPrintAndDRSProgramsService=se,this.profileSettingsInfoArray=[],this.isLoading=!0,this.isOpsLoading=!0,this.settingsDirty=!1,this.staticSliderSettings=l.StaticSliderSettings,this.dynamicSettings=l.DynamicSettings,this.opsEnabled=!1,this.jsonTypeSettings=l.JsonTypeSettings,this.selectedProfileInfo={},this.showHideProgramButton=!0,this.showConfigureMessage=!1,this.opsEnabled=s.featureEnablement.ops?.enabled,this.logger=this.loggingService.getLogger("nvapp/ProgramSettingsComponent"),this.opsService.setOpsLoading(!0)}ngOnInit(){this.updatePerfMarker(!0),this.registerScanInitiatedListener(),this.selectedProfileInfo.applicationId=0,this.registerSettingsUpdatesListener(),this.registerOpsSettingsLoadingListener(),this.updatedSettingsFromCache(),this.listenApplyInProgress()}updatePerfMarker(t,n){this.performanceMeasureService.markNvAppPerformanceMarkers(t?[P.mM.NvAppGraphicsRouteNavigationEnd,P.mM.NvAppGraphicsDataFetchStart]:n?[P.mM.NvAppProgramSettingDataFetchEnd]:[P.mM.NvAppProgramSettingDataFetchEnd,P.mM.NvAppOpsViewRenderEnd],P.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]]=t,this.isLoading=!1):this.isLoading=!0}registerOpsSettingsLoadingListener(){this.getOpsSettingLoadingSubscription?.unsubscribe(),this.getOpsSettingLoadingSubscription=this.opsService.getOpsLoading().subscribe(t=>{this.isOpsLoading=t},()=>{this.isOpsLoading=!0})}filterAndCurateSettings(t){this.filterCuratedSettings(t);const n=this.program3dSettingsService.getVisibleProfileSettings(t);this.profileSettingsInfoArray=this.program3dSettingsService.selectiveSettingUpdate(this.profileSettingsInfoArray,n)}registerSettingsUpdatesListener(){this.getProfileSettingsUpdatesSubscription=this.program3dSettingsService.getProfileSettingsInfo().pipe((0,X.p)(t=>t.length>0),(0,H.c)(0)).subscribe(t=>{this.filterAndCurateSettings(t),this.selectedProgram?.drsProfileName&&this.program3dSettingsService.updateCachedSettings(this.selectedProgram.drsProfileName,this.profileSettingsInfoArray,[this.sharpenSetting,this.noiseGrainSetting,this.maxFrameRateFPSSetting]),t.length>0&&(this.isLoading=!1),this.program3dSettingsService.scrollSettingIntoView(),this.updatePerfMarker(!1,!!this.selectedProgram)},t=>{this.logger.error("Error refreshing 3d program settings:",t),this.isLoading=!1,this.updatePerfMarker(!1,!!this.selectedProgram)})}registerScanInitiatedListener(){this.scanInitiatedSub=this.scanApiService.getScanInitiated().subscribe(t=>{null!==t&&(this.isScanInitiated=t,this.isLoading=this.isScanInitiated)})}getSelectedProgram(t){if(this.refreshProgramSettingSub?.unsubscribe(),!t)return this.profileSettingsInfoArray=[],this.isScanInitiated||(this.isLoading=!1),this.selectedProgram=null,void this.updatePerfMarker(!1,!!t);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.updatedSettingsFromCache(),this.refreshProgramSettingSub=this.program3dSettingsService.refreshProgramSettings(this.selectedProfileInfo,t.drsAppSubPath,!1).subscribe(n=>{n||(this.isLoading=!1)},n=>{this.logger.error(`Some error occured while loading settings for the selected profile ${t.drsProfileName} - `,n?.message),this.isLoading=!1,this.manage3dSettingsTelemetryService.send3DSettingsLoadErrorTelemetry(!1,n,this.selectedProfileInfo,t.drsAppSubPath)})):(this.profileSettingsInfoArray=[],this.isLoading=!1),this.opsService.setSelectedProgram(this.selectedProgram)}filterCuratedSettings(t){[this.sharpenSetting,this.noiseGrainSetting,this.maxFrameRateFPSSetting]=this.program3dSettingsService.filterCuratedSettings(t)}restoreProgram(t,n){this.restoreProgramSub&&this.restoreProgramSub.unsubscribe(),this.restoreProgramSub=this.manage3dSettingsUtilService.confirmAndRestoreProfiles(t,n=n??[this.selectedProgram?.drsProfileName],!1).pipe((0,m.n)(s=>s?this.program3dSettingsService.restoreJsonTypeSettings(!1):(0,G.of)(null)),(0,m.n)(s=>s?this.program3dSettingsService.refreshProgramSettings():(0,G.of)(null))).subscribe(s=>{this.manage3dSettingsUtilService.closeRestoreDialog(),s&&this.errorHandlerService.showToastMessage({text:t?"manage3dSettings.restoreProgram.all.successText":"manage3dSettings.restoreProgram.successText",placeholders:{program:this.selectedProgram?.drsProfileName},translated:!1}).subscribe()},s=>{this.manage3dSettingsUtilService.closeRestoreDialog(),this.logger.error("Some error occured during restore ",s),this.errorHandlerService.showToastMessage({text:"manage3dSettings.anErrorOccurredDuringRestore",placeholders:{errorText:s?.message??s},translated:!1}).subscribe()})}launchApp(){this.appListService.launchApp(this.selectedProgram.localId).pipe((0,V.s)(1)).subscribe(I.l,I.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},n=>{this.showHideProgramButton=!0,this.selectedProgram.isHidden=!t,this.logger.error("Some error occured during program hide/unhide",n?.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,G.of)(null).pipe((0,H.c)(0),(0,V.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)}ngOnDestroy(){this.manage3dSettingsUtilService.clearProgramSettingsBuffer(),this.getProfileSettingsUpdatesSubscription&&this.getProfileSettingsUpdatesSubscription.unsubscribe(),this.restoreProgramSub&&this.restoreProgramSub.unsubscribe(),this.scanInitiatedSub?.unsubscribe(),this.refreshProgramSettingSub?.unsubscribe(),this.notifySettingsLoadedSub?.unsubscribe()}}return(i=r).\u0275fac=function(t){return new(t||i)(e.rXU(f.J6),e.rXU(N),e.rXU(Oe.Vk),e.rXU(q.s),e.rXU(C.f),e.rXU(Pe.n),e.rXU(Z.c),e.rXU(we.I),e.rXU(ne.M),e.rXU(pe._),e.rXU(Ie.Z))},i.\u0275cmp=e.VBU({type:i,selectors:[["nv-app-program-settings"]],viewQuery:function(t,n){if(1&t&&e.GBs(zi,5),2&t){let s;e.mGM(s=e.lsd())&&(n.appSettingsContainer=s.first)}},inputs:{pageErrorIndicator:"pageErrorIndicator"},features:[e.OA$],decls:10,vars:8,consts:[["appSettings",""],["moreMenu","matMenu"],["launchButton",""],[1,"apps-grid-container"],[1,"apps-grid"],["class","apps-list",4,"ngIf"],[1,"app-settings",3,"ngClass"],["class","app-preview",4,"ngIf"],["class","app-optimize-control",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"],[1,"program-text"],[1,"program-title"],[1,"program-icon"],["class","material-icons","svgIcon","game_controller",4,"ngIf"],["class","material-icons",3,"src","error",4,"ngIf"],[1,"program-path"],[1,"font-sub1"],["mat-button","","aria-label","Action Menu for restore program",1,"more-icon-button",3,"matMenuTriggerFor"],[1,"material-icons"],[1,"more-menu"],["mat-menu-item","","aria-label","Open file location",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","src"],["mat-menu-item","","class","menu-item","aria-label","Play",3,"click",4,"ngIf","ngIfElse"],["mat-menu-item","","aria-label","Play",1,"menu-item",3,"click"],["mat-menu-item","","aria-label","Launch",1,"menu-item",3,"click"],["mat-menu-item","",1,"menu-item",3,"click"],[1,"app-optimize-control"],[1,"loading-indicator-container"],["mode","indeterminate",1,"mat-accent",3,"diameter"],["class","settings-list-header",4,"ngIf"],["class","empty-state",3,"ngClass",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"settings-list-header"],[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",4,"ngIf"],["svgIcon","alert_circle",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,"featureName","featureSettingObject","isGlobalContext",4,"ngIf"],[3,"featureName","featureSettingObject","isGlobalContext"]],template:function(t,n){1&t&&(e.j41(0,"div",3)(1,"div",4),e.DNE(2,Ki,3,2,"div",5),e.j41(3,"div",6,0),e.DNE(5,ea,21,11,"div",7)(6,ta,2,0,"div",8)(7,na,2,1,"div",9),e.j41(8,"div",10),e.DNE(9,Ca,5,4,"ng-container",11),e.k0s()()()()),2&t&&(e.R7$(2),e.Y8G("ngIf",!(null!=n.pageErrorIndicator&&n.pageErrorIndicator.isLocalGameError)),e.R7$(),e.Y8G("ngClass",e.eq3(6,Yi,null==n.pageErrorIndicator?null:n.pageErrorIndicator.isLocalGameError)),e.R7$(2),e.Y8G("ngIf",n.selectedProgram),e.R7$(),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:[c.YU,c.Sq,c.bT,c.ux,c.e1,c.fG,w.iV,D.An,Me.q,T.pI,T.gy,T.fS,A.LG,x.PW,_e,be,Ce,zn,ei,ji,ye,$i,c.Jj,h.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((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - 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((100vw - 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((100vw - 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((100vw - 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))}.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;overflow-y:overlay;padding:16px var(--rwd-container-side-spacing) 16px 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}.app-preview[_ngcontent-%COMP%]{grid-row:1;grid-column:1;background-color:#222}.app-optimize-control[_ngcontent-%COMP%]{grid-row:2;grid-column:1;margin-top:1px}.loading-indicator-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;grid-row:1/-1;grid-column:1/-1}.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%}.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:#393939}.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)}}"]}),r})();function ya(i,r){if(1&i&&(e.j41(0,"span",5),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&i){const a=e.XpG();e.Y8G("ngClass",0===a.selectedTabIndex?"font-color-primary":"font-color-secondary"),e.R7$(),e.JRh(e.bMT(2,2,"manage3dSettings.programSettings"))}}function Oa(i,r){if(1&i&&(e.j41(0,"div",6),e.nrm(1,"nv-app-program-settings",7),e.k0s()),2&i){const a=e.XpG();e.R7$(),e.Y8G("pageErrorIndicator",a.errorIndicator)}}function Pa(i,r){if(1&i&&(e.j41(0,"span",5),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&i){const a=e.XpG();e.Y8G("ngClass",1===a.selectedTabIndex?"font-color-primary":"font-color-secondary"),e.R7$(),e.JRh(e.bMT(2,2,"manage3dSettings.globalSettings"))}}function wa(i,r){if(1&i&&(e.j41(0,"div",6),e.nrm(1,"nv-app-global-settings",7),e.k0s()),2&i){const a=e.XpG();e.R7$(),e.Y8G("pageErrorIndicator",a.errorIndicator)}}function Ia(i,r){1&i&&(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&i&&(e.R7$(3),e.SpI(" ",e.bMT(4,1,"common.somethingWentWrong")," "))}const Ma=[{path:"",component:(()=>{var i;class r{constructor(t,n,s,o,u,_,S,F,B){this.loggingService=t,this.dialog=n,this.appBarService=s,this.global3dSettingsService=o,this.manage3dSettingsUtilService=u,this.telemetryService=_,this.pluginNotificationService=S,this.pageVisitTelemetryService=F,this.graphicsOutsideUpdateService=B,this.saveVisible=!1,this.disableTabAnimation=!0,this.selectedTabIndex=0,this.errorIndicator={isLocalGameError:!1,isNvcplError:!1},this.logger=this.loggingService.getLogger("nvapp/Manage3dSettingsComponent"),this.appBarService.setTitle("layout.features.manage3dsettings.title"),this.telemetryService.setScreen(ee.f3.Graphics)}ngOnInit(){this.refreshGlobalSettings(),this.listenForPageLevelErrors(),this.sendPageEventTelemetry(),this.refresh3dSettingListenerOnDisplayChanges()}listenForPageLevelErrors(){this.tabLevelErrorSub=(0,Ne.yU)(this.pluginNotificationService.isPluginLoaded(ge.dz),this.pluginNotificationService.isPluginLoaded(ge.WP)).subscribe(([t,n])=>{this.errorIndicator={isLocalGameError:!t,isNvcplError:!n}})}refreshGlobalSettings(){this.global3dSettingsService.refreshGlobalSettings(!1).subscribe(I.l,t=>this.logger.error(t))}tabChanged(t){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 ee.d3.Graphics_ProgramSettings;case 1:return ee.d3.Graphics_GlobalSettings}}refresh3dSettingListenerOnDisplayChanges(){this.refreshGraphicsSettingSub=this.graphicsOutsideUpdateService.refresh3dSettingListenerOnDisplayChanges().subscribe(I.l,I.l)}ngOnDestroy(){this.tabLevelErrorSub?.unsubscribe(),this.refreshGraphicsSettingSub?.unsubscribe()}}return(i=r).\u0275fac=function(t){return new(t||i)(e.rXU(f.J6),e.rXU(p.bZ),e.rXU(Be.g),e.rXU(j.R),e.rXU(C.f),e.rXU(Ue.H0),e.rXU(ke.m),e.rXU($e.V),e.rXU(me))},i.\u0275cmp=e.VBU({type:i,selectors:[["nv-app-manage-3d-settings"]],decls:10,vars:5,consts:[["pageLevelError",""],[1,"font-sub1","header-tabs-3d-setting","common-tabs"],["mat-stretch-tabs","false",1,"graphics-page-tabs",3,"selectedTabChange"],["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(t,n){if(1&t){const s=e.RV6();e.j41(0,"div",1)(1,"mat-tab-group",2),e.bIt("selectedTabChange",function(u){return e.eBV(s),e.Njj(n.tabChanged(u))}),e.j41(2,"mat-tab"),e.DNE(3,ya,3,4,"ng-template",3)(4,Oa,2,1,"div",4),e.k0s(),e.j41(5,"mat-tab"),e.DNE(6,Pa,3,4,"ng-template",3)(7,wa,2,1,"div",4),e.k0s()(),e.DNE(8,Ia,5,3,"ng-template",null,0,e.C5r),e.k0s()}if(2&t){const s=e.sdS(9);e.R7$(),e.Y8G("@.disabled",n.disableTabAnimation),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:[c.YU,c.bT,D.An,Y.ES,Y.mq,Y.T8,x.PW,dn,xa,h.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%}"]}),r})()}];let Va=(()=>{var i;class r{}return(i=r).\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.$C({type:i}),i.\u0275inj=e.G2t({imports:[J.iI.forChild(Ma),J.iI]}),r})(),Da=(()=>{var i;class r{}return(i=r).\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.$C({type:i}),i.\u0275inj=e.G2t({imports:[c.MD,oe.YF,le.i,(0,f.BU)(),J.iI]}),r})();var Fa=g(15824);let Ga=(()=>{var i;class r{}return(i=r).\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.$C({type:i}),i.\u0275inj=e.G2t({imports:[c.MD,Va,le.i,oe.YF,Da,(0,f.BU)(),Fa.G]}),r})()}}]);
// SIG // Begin signature block
// SIG // MIImNgYJKoZIhvcNAQcCoIImJzCCJiMCAQExDzANBglg
// SIG // hkgBZQMEAgEFADB3BgorBgEEAYI3AgEEoGkwZzAyBgor
// SIG // BgEEAYI3AgEeMCQCAQEEEBDgyQbOONQRoqMAEEvTUJAC
// SIG // AQACAQACAQACAQACAQAwMTANBglghkgBZQMEAgEFAAQg
// SIG // VMPuUc7jxLnZNLqzQORtxnhwEV/mj4scFebFMrT+yKGg
// 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 // eBMWDQ5e0t8ADV8KGzGCF9owghfWAgEBMH0waTELMAkG
// SIG // A1UEBhMCVVMxFzAVBgNVBAoTDkRpZ2lDZXJ0LCBJbmMu
// SIG // MUEwPwYDVQQDEzhEaWdpQ2VydCBUcnVzdGVkIEc0IENv
// SIG // ZGUgU2lnbmluZyBSU0E0MDk2IFNIQTM4NCAyMDIxIENB
// SIG // MQIQCZfFbKpZBVOU2anNuL7rVjANBglghkgBZQMEAgEF
// SIG // AKB8MBAGCisGAQQBgjcCAQwxAjAAMBkGCSqGSIb3DQEJ
// SIG // AzEMBgorBgEEAYI3AgEEMBwGCisGAQQBgjcCAQsxDjAM
// SIG // BgorBgEEAYI3AgEVMC8GCSqGSIb3DQEJBDEiBCAFdJG5
// SIG // qNxTKly7bLFHDyPb5QYrjZJ0YSLi63sr6frzbDANBgkq
// SIG // hkiG9w0BAQEFAASCAYBdp3GJp1n7AnsuDyj0mj9lon28
// SIG // t9YnplKmWluoxAGSOPN1b5Q0Yxd4yylKlLE3jhcfyHdp
// SIG // 3kkRYf8XX3TgzWEJh9mUOiesWjzxdWj3BtYU9ruTMihg
// SIG // rckqv26P0ljjVY1xnmiP99s4v4EGFt+0wWHKIRyqHOAg
// SIG // avkKqJRCzwYETjS8doZ9bBUKGmMQauGSfrcL7L7aP7lP
// SIG // CIUwuTSb57H/vXcg1NlC1Jk/y8CwrhiTqi9E15TeKZP3
// SIG // IQaC3ydz163oWoXXmS+jD5rB7sfyBNVTGza3qm93UI+o
// SIG // kBUewBbX4qXs4SFINeznym9Zkr0ug3zhdkrwnGoMz07W
// SIG // AKX1vsXNvGTKAaoyZCJ6nB4HiYn/c5ZTtTKJOdgVorfD
// SIG // GGb37rdbrIjKnbI93kw2YyXrCLVcw0V0hXtltmWhtGzF
// SIG // OMsmK6Z6+FNpHFd9PsXekkvlDsW7dTH/hV7fZWHfsYl2
// SIG // zCOoPzbRX3I0EyzVmg1wW9yDEfDAx2GEMo/KzY1g65RQ
// SIG // +6WhghUwMIIVLAYKKwYBBAGCNwMDATGCFRwwghUYBgkq
// SIG // hkiG9w0BBwKgghUJMIIVBQIBAzENMAsGCWCGSAFlAwQC
// SIG // ATCB9AYLKoZIhvcNAQkQAQSggeQEgeEwgd4CAQEGCmCG
// SIG // SAGG+mwKAwUwMTANBglghkgBZQMEAgEFAAQgxWde1rIs
// SIG // oiIIBZ0koVk0isEwdT7pjfs0/iRqw0dyG3sCCQDWY70z
// SIG // ExezLxgPMjAyNDExMDgwMDI3MzJaMAMCAQGgeaR3MHUx
// SIG // CzAJBgNVBAYTAkNBMRAwDgYDVQQIEwdPbnRhcmlvMQ8w
// SIG // DQYDVQQHEwZPdHRhd2ExFjAUBgNVBAoTDUVudHJ1c3Qs
// SIG // IEluYy4xKzApBgNVBAMTIkVudHJ1c3QgVGltZXN0YW1w
// SIG // IEF1dGhvcml0eSAtIFRTQTGggg9YMIIEKjCCAxKgAwIB
// SIG // AgIEOGPe+DANBgkqhkiG9w0BAQUFADCBtDEUMBIGA1UE
// SIG // ChMLRW50cnVzdC5uZXQxQDA+BgNVBAsUN3d3dy5lbnRy
// SIG // dXN0Lm5ldC9DUFNfMjA0OCBpbmNvcnAuIGJ5IHJlZi4g
// SIG // KGxpbWl0cyBsaWFiLikxJTAjBgNVBAsTHChjKSAxOTk5
// SIG // IEVudHJ1c3QubmV0IExpbWl0ZWQxMzAxBgNVBAMTKkVu
// SIG // dHJ1c3QubmV0IENlcnRpZmljYXRpb24gQXV0aG9yaXR5
// SIG // ICgyMDQ4KTAeFw05OTEyMjQxNzUwNTFaFw0yOTA3MjQx
// SIG // NDE1MTJaMIG0MRQwEgYDVQQKEwtFbnRydXN0Lm5ldDFA
// SIG // MD4GA1UECxQ3d3d3LmVudHJ1c3QubmV0L0NQU18yMDQ4
// SIG // IGluY29ycC4gYnkgcmVmLiAobGltaXRzIGxpYWIuKTEl
// SIG // MCMGA1UECxMcKGMpIDE5OTkgRW50cnVzdC5uZXQgTGlt
// SIG // aXRlZDEzMDEGA1UEAxMqRW50cnVzdC5uZXQgQ2VydGlm
// SIG // aWNhdGlvbiBBdXRob3JpdHkgKDIwNDgpMIIBIjANBgkq
// SIG // hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArU1LqRKGsuqj
// SIG // IAcVFmQqK0vRvwtKTY7tgHalZ7d4QMBzQshowNtTK91e
// SIG // uHaYNZOLGp18EzoOH1u3Hs/lJBQesYGpjX24zGtLA/EC
// SIG // DNyrpUAkAH90lKGdCCmziAv1h3edVc3kw37XamSrhRSG
// SIG // lVuXMlBvPci6Zgzj/L24ScF2iUkZ/cCovYmjZy/Gn7xx
// SIG // GWC4LeksyZB2ZnuU4q941mVTXTzWnLLPKQP5L6RQstRI
// SIG // zgUyVYr9smRMDuSYB3Xbf9+5CFVghTAp+XtIpGmG4zU/
// SIG // HoZdenoVve8AjhUiVBcAkCaTvA5JaJG/+EfTnZVCwQ5N
// SIG // 328mz8MYIWJmQ3DW1cAH4QIDAQABo0IwQDAOBgNVHQ8B
// SIG // Af8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4E
// SIG // FgQUVeSB0RGAvtiJuQijMfmhJAkWuXAwDQYJKoZIhvcN
// SIG // AQEFBQADggEBADubj1abMOdTmXx6eadNl9cZlZD7Bh/K
// SIG // M3xGY4+WZiT6QBshJ8rmcnPyT/4xmf3IDExoU8aAghOY
// SIG // +rat2l098c5u9hURlIIM7j+VrxGrD9cv3h8Dj1csHsm7
// SIG // mhpElesYT6YfzX1XEC+bBAlahLVu2B064dae0Wx5Xnkc
// SIG // FMXj0EyTO2U87d89vqbllRrDtRnDvV5bu/8j72gZyxKT
// SIG // J1wDLW8w0B62GqzeWvfRqqgnpv55gcR5mTNXuhKwqeBC
// SIG // bJPKVt7+bYQLCIt+jerXmCHG8+c8eS9enNFMFY3h7CI3
// SIG // zJpDC5fcgJCNs2ebb0gIFVbPv/ErfF6adulZkMV8gzUR
// SIG // ZVEwggUTMIID+6ADAgECAgxY2hP/AAAAAFHODfcwDQYJ
// SIG // KoZIhvcNAQELBQAwgbQxFDASBgNVBAoTC0VudHJ1c3Qu
// SIG // bmV0MUAwPgYDVQQLFDd3d3cuZW50cnVzdC5uZXQvQ1BT
// SIG // XzIwNDggaW5jb3JwLiBieSByZWYuIChsaW1pdHMgbGlh
// SIG // Yi4pMSUwIwYDVQQLExwoYykgMTk5OSBFbnRydXN0Lm5l
// SIG // dCBMaW1pdGVkMTMwMQYDVQQDEypFbnRydXN0Lm5ldCBD
// SIG // ZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAoMjA0OCkwHhcN
// SIG // MTUwNzIyMTkwMjU0WhcNMjkwNjIyMTkzMjU0WjCBsjEL
// SIG // MAkGA1UEBhMCVVMxFjAUBgNVBAoTDUVudHJ1c3QsIElu
// SIG // Yy4xKDAmBgNVBAsTH1NlZSB3d3cuZW50cnVzdC5uZXQv
// SIG // bGVnYWwtdGVybXMxOTA3BgNVBAsTMChjKSAyMDE1IEVu
// SIG // dHJ1c3QsIEluYy4gLSBmb3IgYXV0aG9yaXplZCB1c2Ug
// SIG // b25seTEmMCQGA1UEAxMdRW50cnVzdCBUaW1lc3RhbXBp
// SIG // bmcgQ0EgLSBUUzEwggEiMA0GCSqGSIb3DQEBAQUAA4IB
// SIG // DwAwggEKAoIBAQDZI+YUpOh8S4VxWPv4geZyi11Gw4gA
// SIG // HzjQiuHWblYw5a/aZFB9whM5+71mtNqE+4PQKB/Lduhg
// SIG // UGmb885PE+LBPsHfEssyo/heRCIOzDrpjUm5YHTI3lQ9
// SIG // QV5DXyhGqaa3yhArIrxbTVuMF2UShv0sd9XFoIzKwoPg
// SIG // R1d853CuYkUnMRgK1MCkGFVS92DGBEuz3WgybhAfNBG4
// SIG // Enhk8e6p4PfjsSKPNFply4r04UVQdN+Tl6Y05tBMO583
// SIG // SVKnU06fLmdc7Zb8pb90UYjjqo692bEvX1AwFvRRYCJr
// SIG // mcv/4VQ7uftEOKUIOSObaUf6PMTQ56rfRrLs8ooZrCmy
// SIG // OJV1AgMBAAGjggEjMIIBHzASBgNVHRMBAf8ECDAGAQH/
// SIG // AgEAMA4GA1UdDwEB/wQEAwIBBjA7BgNVHSAENDAyMDAG
// SIG // BFUdIAAwKDAmBggrBgEFBQcCARYaaHR0cDovL3d3dy5l
// SIG // bnRydXN0Lm5ldC9ycGEwMwYIKwYBBQUHAQEEJzAlMCMG
// SIG // CCsGAQUFBzABhhdodHRwOi8vb2NzcC5lbnRydXN0Lm5l
// SIG // dDAyBgNVHR8EKzApMCegJaAjhiFodHRwOi8vY3JsLmVu
// SIG // dHJ1c3QubmV0LzIwNDhjYS5jcmwwEwYDVR0lBAwwCgYI
// SIG // KwYBBQUHAwgwHQYDVR0OBBYEFMPCcdJ712gFrjs5mzQl
// SIG // DGIDx1doMB8GA1UdIwQYMBaAFFXkgdERgL7YibkIozH5
// SIG // oSQJFrlwMA0GCSqGSIb3DQEBCwUAA4IBAQAdJOeadFuq
// SIG // cPyxDjFF1ywAf2Y6K6CaNKqsY22J+Z/fDXf9JCP8T5y3
// SIG // b4/z9B+2wf3WHMSMiGbBY426V3fTuBoeyFGtzGA2Godq
// SIG // KOoRZd7MPCyMdLfoUEPTzCjoFWwRKp8UlSnJBVe1Zzbo
// SIG // PKmD70HBIRbTfvctEUdmdmCCEmmMdlVzD98vS13pbCP4
// SIG // B/a1fdZpRZxYfWEu/HhLQ06JkUZELKBTqEWh9hZYu5ET
// SIG // 8kvF3wvA564per1Fs+dwMOc0jut69tO10d5rE5lGs4vS
// SIG // TZN1tfFvv9wAKMIlv7zno2U07D8NHZeM+qqIIqQYNdsF
// SIG // jnbjEMgpj2PQrqwY2drEn1ESMIIGDzCCBPegAwIBAgIQ
// SIG // B9cTU9olYbRh6ZBHikzOBDANBgkqhkiG9w0BAQsFADCB
// SIG // sjELMAkGA1UEBhMCVVMxFjAUBgNVBAoTDUVudHJ1c3Qs
// SIG // IEluYy4xKDAmBgNVBAsTH1NlZSB3d3cuZW50cnVzdC5u
// SIG // ZXQvbGVnYWwtdGVybXMxOTA3BgNVBAsTMChjKSAyMDE1
// SIG // IEVudHJ1c3QsIEluYy4gLSBmb3IgYXV0aG9yaXplZCB1
// SIG // c2Ugb25seTEmMCQGA1UEAxMdRW50cnVzdCBUaW1lc3Rh
// SIG // bXBpbmcgQ0EgLSBUUzEwHhcNMjQwMTE5MTY0NjI4WhcN
// SIG // MjkwNjAxMDAwMDAwWjB1MQswCQYDVQQGEwJDQTEQMA4G
// SIG // A1UECBMHT250YXJpbzEPMA0GA1UEBxMGT3R0YXdhMRYw
// SIG // FAYDVQQKEw1FbnRydXN0LCBJbmMuMSswKQYDVQQDEyJF
// SIG // bnRydXN0IFRpbWVzdGFtcCBBdXRob3JpdHkgLSBUU0Ex
// SIG // MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA
// SIG // x5I4QTn/oD9fTU2KlzHjm4fDeAVpNgtSs6qDXbDSvX6+
// SIG // g6BfXp6X89s1F6n52xVifMr2xck0FeIRpZKxLuBpVF0O
// SIG // K75VxgGMhWOySS01X+VOQ8RxC6S0HjRN/0XI/k/hMOjp
// SIG // ZWxrZdO+1Cxo0K0Em2q50FT7NQCQMcbYaGpdr+p+0Pmd
// SIG // E+/OnWNkQnIHhfsGMYvjnQum1TLbUqVODDzBwJrRfwJ3
// SIG // YxPN8z08HgJLNobgBLR4d+SbL+GJKt6CXevkGtyNunuk
// SIG // n4+ObHXrA+CABL+xCRz6YXqzm4G3C8kTCnjtCPbMpl9C
// SIG // RxI6R3h2/rzamT9k6zdeKt9S4pmw/e+EypE6orCnsbZW
// SIG // HD9E+H6R73imJP7eKR749fdRf7Z4LYe0vQC5xh7g6OET
// SIG // 7u5f117upHx1YM6hNZBYwqu1SEN76cd3iYmLxqGMaZfP
// SIG // bnpD/vRf+2PlJOrf4BCQpxKQzButCIrRjYUgom6hixYn
// SIG // lTHTz24DKZ9EwicIrLf0iU035CWJWlMsUw2CFHPG7MWw
// SIG // 2YfYmxLuJjpfly9wyTB4oVpKbdJISg9Van72W+KHX9oR
// SIG // G3e+Gl73SAqYcQx9riqBfbKekWAO0dlqMBKK5Jrspktv
// SIG // hQZJEA6FSD8u5hTPWuNPOCqv1zEAvCyWlZKtc896HFHL
// SIG // /i3pwC5YDgoVZcuIezIbYA0CAwEAAaOCAVswggFXMAwG
// SIG // A1UdEwEB/wQCMAAwHQYDVR0OBBYEFENoH2+fItD4Xwn3
// SIG // /LjlI8aOB0KSMB8GA1UdIwQYMBaAFMPCcdJ712gFrjs5
// SIG // mzQlDGIDx1doMGgGCCsGAQUFBwEBBFwwWjAjBggrBgEF
// SIG // BQcwAYYXaHR0cDovL29jc3AuZW50cnVzdC5uZXQwMwYI
// SIG // KwYBBQUHMAKGJ2h0dHA6Ly9haWEuZW50cnVzdC5uZXQv
// SIG // dHMxLWNoYWluMjU2LmNlcjAxBgNVHR8EKjAoMCagJKAi
// SIG // hiBodHRwOi8vY3JsLmVudHJ1c3QubmV0L3RzMWNhLmNy
// SIG // bDAOBgNVHQ8BAf8EBAMCB4AwFgYDVR0lAQH/BAwwCgYI
// SIG // KwYBBQUHAwgwQgYDVR0gBDswOTA3BgpghkgBhvpsCgEH
// SIG // MCkwJwYIKwYBBQUHAgEWG2h0dHBzOi8vd3d3LmVudHJ1
// SIG // c3QubmV0L3JwYTANBgkqhkiG9w0BAQsFAAOCAQEAvrDc
// SIG // /bz6Zqf8Ix3z2Vdi9CTfHS/5WMvKzAx9z26H9W6CWive
// SIG // 41/GzhrkCK+OBAEe/wL4BVO4qGKFe5mrRXvZqrEXg9Ep
// SIG // fpMh6DaIQiE4+/sNgcnDiozKKl5mr/mc9I18Evt6bTqK
// SIG // sAD3O3ClD7u1U6nhxikm6twSSi9dWgS4quOHC33Ingb+
// SIG // aWZLjqf0vjDJpeKQoaiBDT5HIZJQXTLk8lbPqZQhuzDC
// SIG // dxgRmiau8eI+L/w/iTM3XZTn3RrF5cxmbPoAzpbigO34
// SIG // LKfFaBNpfARErQjV+avJrRdm1S8LV/Cbz1weqw0nRmn+
// SIG // qLcFJY7gshUzSl+6nIvQKAk8tYWy4TGCBJwwggSYAgEB
// SIG // MIHHMIGyMQswCQYDVQQGEwJVUzEWMBQGA1UEChMNRW50
// SIG // cnVzdCwgSW5jLjEoMCYGA1UECxMfU2VlIHd3dy5lbnRy
// SIG // dXN0Lm5ldC9sZWdhbC10ZXJtczE5MDcGA1UECxMwKGMp
// SIG // IDIwMTUgRW50cnVzdCwgSW5jLiAtIGZvciBhdXRob3Jp
// SIG // emVkIHVzZSBvbmx5MSYwJAYDVQQDEx1FbnRydXN0IFRp
// SIG // bWVzdGFtcGluZyBDQSAtIFRTMQIQB9cTU9olYbRh6ZBH
// SIG // ikzOBDALBglghkgBZQMEAgGgggGnMBoGCSqGSIb3DQEJ
// SIG // AzENBgsqhkiG9w0BCRABBDAcBgkqhkiG9w0BCQUxDxcN
// SIG // MjQxMTA4MDAyNzMyWjArBgkqhkiG9w0BCTQxHjAcMAsG
// SIG // CWCGSAFlAwQCAaENBgkqhkiG9w0BAQsFADAvBgkqhkiG
// SIG // 9w0BCQQxIgQgm+UMNidVExHsxJUj442OB42BC9nLbBwY
// SIG // BECSffaB/8IwggELBgsqhkiG9w0BCRACLzGB+zCB+DCB
// SIG // 9TCB8gQgKEn3MRjXQUUFYXPNPuzLvVNLXg7w+gYWjbDi
// SIG // c0kD7o8wgc0wgbikgbUwgbIxCzAJBgNVBAYTAlVTMRYw
// SIG // FAYDVQQKEw1FbnRydXN0LCBJbmMuMSgwJgYDVQQLEx9T
// SIG // ZWUgd3d3LmVudHJ1c3QubmV0L2xlZ2FsLXRlcm1zMTkw
// SIG // NwYDVQQLEzAoYykgMjAxNSBFbnRydXN0LCBJbmMuIC0g
// SIG // Zm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxJjAkBgNVBAMT
// SIG // HUVudHJ1c3QgVGltZXN0YW1waW5nIENBIC0gVFMxAhAH
// SIG // 1xNT2iVhtGHpkEeKTM4EMA0GCSqGSIb3DQEBCwUABIIC
// SIG // ABquGtPVeNVq+AnHs8zLfRm95bMUbZTjFtGc2De1NnN/
// SIG // Z7siSoK/LSF1TP6E+l/a/YntOE2AQjMs68kdEGaCV8o1
// SIG // Ei3ChUTJTlcN++1lypWR0NHQRnKelbX1q4PJKUkdfj9e
// SIG // rRtTDLyrDy2Czxl3TP6pSGWvaZ6Nd7wryabIX1Fq9vaP
// SIG // bCpuT6ka4woZxgBUUrAziY5liqe1Nyb3duP5EIBzcKo8
// SIG // BF+Lm79QIEyRR1Tf0DRsYwHU09AWAy4ijQ+5c8JE/U//
// SIG // Fr3HaoFhYQ/lt3dIiwrAJM4Bl/MOpjxqSONS5mW2bOoZ
// SIG // 9vOGGEmWI3yqb+gmt3pm38g5i7/tkwgbHsN/gBoDMCqd
// SIG // Khh9aaxJ0tJj19CyGFv51bXtILSvakftXIa6jc8Uk00W
// SIG // HX76JyBFOGODmJXusT8pWHDRj4S7Sxl0V6+OTbp5Q+OM
// SIG // wKDvUh7vegUcbOfJVugI0REO0+o6DS3HvgeGwhuAxclV
// SIG // Q8DLRfQH+YaWfWEuQUJIUuWpeh1fLr8T50zN/eeK3lyl
// SIG // rSiztFwOkN3a2vb1ZNur/Tq+gM8Kx8DU/iSNKwBummy6
// SIG // 6slvp4n5jmSVU6QOXMZBUBm0RIc1gT7PQi3c1WgCwCG+
// SIG // YuMOGfE6wuppy2m/2j31E7gs8k4MAO9N+RfWciw1cI7S
// SIG // AkmhrmaDljpM3TMja9rnwevk
// SIG // End signature block

Anon7 - 2021