(window.webpackJsonp=window.webpackJsonp||[]).push([[282],{Kkim:function(e,t,n){"use strict";n.r(t),n.d(t,"CommonSettingsModule",(function(){return x}));var i=n("ofXK"),s=n("tk/3"),o=n("3Pt+"),c=n("tyNb"),a=n("dPl2"),r=n("arFO"),l=n("jIHw"),d=n("7kUa"),p=n("Ji6n"),u=n("xlun"),g=n("jLSX"),m=n("Ks7X"),h=n("c+7h"),S=n("fXoL"),v=n("P4I5"),b=n("9Rqc"),f=n("hpMP"),I=n("6oX4");function w(e,t){if(1&e){const e=S["\u0275\u0275getCurrentView"]();S["\u0275\u0275elementStart"](0,"button",10),S["\u0275\u0275listener"]("click",(function(){return S["\u0275\u0275restoreView"](e),S["\u0275\u0275nextContext"](2).saveScenarioSettings()})),S["\u0275\u0275element"](1,"i",11),S["\u0275\u0275elementEnd"]()}}function C(e,t){if(1&e){const e=S["\u0275\u0275getCurrentView"]();S["\u0275\u0275elementStart"](0,"div",6),S["\u0275\u0275template"](1,w,2,0,"button",7),S["\u0275\u0275elementStart"](2,"button",8),S["\u0275\u0275listener"]("click",(function(){return S["\u0275\u0275restoreView"](e),S["\u0275\u0275nextContext"]().closeScenarioSettings()})),S["\u0275\u0275element"](3,"i",9),S["\u0275\u0275elementEnd"](),S["\u0275\u0275elementEnd"]()}if(2&e){const e=S["\u0275\u0275nextContext"]();S["\u0275\u0275advance"](1),S["\u0275\u0275property"]("ngIf",1!=e.scenUtils.ScenMode)}}const k=[{path:"",component:(()=>{class e{constructor(e,t,n,i,s){this.router=e,this.schScheduleData=t,this.scenUtils=n,this.keywordDefintion=i,this.scenarioHttpService=s,this.schScheduleData.loadingScen=!1,this.settingItems=[{label:"GROUP SETTINGS",command:()=>{this.router.navigate(["/scenario/basicScenario/design/scenDesign/settings/groupBasedSettings"])}},{label:"ADDITIONAL SETTINGS",command:()=>{this.router.navigate(["/scenario/basicScenario/design/scenDesign/settings/additionalSettings"])}}],this.activeItem=this.settingItems[0]}handleChange(e){this.router.navigate(0==e.index?["/scenario/basicScenario/design/scenDesign/settings/groupBasedSettings"]:["/scenario/basicScenario/design/scenDesign/settings/additionalSettings"])}onTabClick(e){this.activeItem=e.activeItem}ngOnInit(){}saveScenarioSettings(){this.scenUtils._saveGroupbasedSetting.next()}closeScenarioSettings(){this.router.navigate(["/scenario/basicScenario/design/scenDesign"]),setTimeout(()=>{this.scenUtils.isGrpBasedCompValidated&&(this.scenUtils.isGroupBased=!1,this.scenUtils.advSidebar=!1)},500)}}return e.\u0275fac=function(t){return new(t||e)(S["\u0275\u0275directiveInject"](c.i),S["\u0275\u0275directiveInject"](v.a),S["\u0275\u0275directiveInject"](b.a),S["\u0275\u0275directiveInject"](f.a),S["\u0275\u0275directiveInject"](I.a))},e.\u0275cmp=S["\u0275\u0275defineComponent"]({type:e,selectors:[["app-common-settings"]],decls:7,vars:3,consts:[[1,"heightDiv"],[1,"w-100-p","px-6","pt-10"],["class","closeSaveButton",4,"ngIf"],[1,"w-100-p"],[3,"model","activeItem","click"],["tab",""],[1,"closeSaveButton"],["type","button","pTooltip","Save Changes","tooltipZIndex","12000","class","btn-icon font-16 mr-15 ",3,"click",4,"ngIf"],["type","button","tooltipPosition","left","pTooltip","Close and Back. To save your changes you need to click on save button in this screen or in the parent window.","tooltipZIndex","12000",1,"btn-icon","font-16",3,"click"],[1,"icons8","icons8-delete"],["type","button","pTooltip","Save Changes","tooltipZIndex","12000",1,"btn-icon","font-16","mr-15",3,"click"],[1,"las-save-solid","mt-3"]],template:function(e,t){if(1&e){const e=S["\u0275\u0275getCurrentView"]();S["\u0275\u0275elementStart"](0,"div",0),S["\u0275\u0275elementStart"](1,"div",1),S["\u0275\u0275template"](2,C,4,1,"div",2),S["\u0275\u0275elementStart"](3,"div",3),S["\u0275\u0275elementStart"](4,"p-tabMenu",4,5),S["\u0275\u0275listener"]("click",(function(){S["\u0275\u0275restoreView"](e);const n=S["\u0275\u0275reference"](5);return t.onTabClick(n)})),S["\u0275\u0275elementEnd"](),S["\u0275\u0275element"](6,"router-outlet"),S["\u0275\u0275elementEnd"](),S["\u0275\u0275elementEnd"](),S["\u0275\u0275elementEnd"]()}2&e&&(S["\u0275\u0275advance"](2),S["\u0275\u0275property"]("ngIf",3!=t.scenUtils.ScenMode),S["\u0275\u0275advance"](2),S["\u0275\u0275property"]("model",t.settingItems)("activeItem",t.activeItem))},directives:[i.t,h.a,c.n,u.a],styles:["app-common-settings .closeSaveButton{position:absolute;right:30px;top:5px;z-index:1}"],encapsulation:2}),e})(),children:[{path:"",redirectTo:"groupBasedSettings"},{path:"groupBasedSettings",loadChildren:()=>Promise.all([n.e(0),n.e(171)]).then(n.bind(null,"730x")).then(e=>e.GroupBasedSettingsMainModule)},{path:"additionalSettings",loadChildren:()=>Promise.all([n.e(0),n.e(61)]).then(n.bind(null,"Wvhu")).then(e=>e.AdditionalSettingsMainModule)}]}];let x=(()=>{class e{}return e.\u0275mod=S["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=S["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},imports:[[i.c,o.p,a.c,s.d,r.b,l.c,d.b,p.b,u.b,g.b,m.b,h.b,c.m.forChild(k)]]}),e})()}}]);