1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5817],{31256:(V,P,s)=>{s.d(P,{f:()=>r});var h=s(36895),d=s(55062);let r=(()=>{var E;class m{}return(E=m).\u0275fac=function(S){return new(S||E)},E.\u0275mod=d.oAB({type:E}),E.\u0275inj=d.cJS({imports:[h.ez]}),m})()},1472:(V,P,s)=>{s.d(P,{D:()=>m});var h=s(36895),d=s(930),r=s(49512),E=s(55062);let m=(()=>{var C;class S{}return(C=S).\u0275fac=function(Q){return new(Q||C)},C.\u0275mod=E.oAB({type:C}),C.\u0275inj=E.cJS({imports:[h.ez,r.m,d.V]}),S})()},64798:(V,P,s)=>{s.d(P,{p:()=>U});var h=s(4317),d=s(3384),r=s(55062),E=s(36690),m=s(36895),C=s(14663),S=s(87650),D=s(88392);function Q(u,b){1&u&&(r.TgZ(0,"div",4),r.Hsn(1),r.qZA())}function R(u,b){1&u&&(r.TgZ(0,"div",5),r.Hsn(1,1),r.qZA())}function L(u,b){if(1&u&&(r.TgZ(0,"nve-ion-content"),r._UZ(1,"page-content",6),r.qZA()),2&u){const A=r.oxw();r.xp6(1),r.Q6J("path",A.aemPath)}}function Z(u,b){1&u&&(r.TgZ(0,"div",7),r._UZ(1,"nve-error-404"),r.qZA())}const F=["*",[["","disabled",""]]],x=["*","[disabled]"];let U=(()=>{var u;class b{constructor(v,O){this.appConfig=v,this.router=O,this.display404onDisabled=!0,this.isPageForFutureActivation=!1,this.show404=!1}ngOnInit(){var v;if(this.isFeatureFlagEnabled=!(null===(v=this.appConfig.config.features[this.flag])||void 0===v||!v.enabled),!this.isFeatureFlagEnabled&&this.content===d.o.page&&this.offMode===d.D.defaultToAEM)return this.aemPath=this.router.url,void(this.display404onDisabled=!1);this.show404=!this.isFeatureFlagEnabled&&this.display404onDisabled}}return(u=b).\u0275fac=function(v){return new(v||u)(r.Y36(h._),r.Y36(E.F0))},u.\u0275cmp=r.Xpm({type:u,selectors:[["feature-flag-content"]],inputs:{flag:"flag",content:"content",offMode:"offMode",display404onDisabled:"display404onDisabled"},ngContentSelectors:x,decls:4,vars:4,consts:[["id","featureFlagContent",4,"ngIf"],["id","defaultContent",4,"ngIf"],[4,"ngIf"],["class","page-content",4,"ngIf"],["id","featureFlagContent"],["id","defaultContent"],[1,"aem-content-wrapper",3,"path"],[1,"page-content"]],template:function(v,O){1&v&&(r.F$t(F),r.YNc(0,Q,2,0,"div",0),r.YNc(1,R,2,0,"div",1),r.YNc(2,L,2,1,"nve-ion-content",2),r.YNc(3,Z,2,0,"div",3)),2&v&&(r.Q6J("ngIf",O.isFeatureFlagEnabled&&!O.aemPath),r.xp6(1),r.Q6J("ngIf",!O.isFeatureFlagEnabled&&!O.show404&&!O.aemPath),r.xp6(1),r.Q6J("ngIf",O.aemPath),r.xp6(1),r.Q6J("ngIf",O.show404))},dependencies:[m.O5,C.B,S.S,D.Y],encapsulation:2}),b})()},55817:(V,P,s)=>{s.r(P),s.d(P,{EsapPageModule:()=>vt});var h=s(36895),d=s(24006),r=s(89383),E=s(94700),m=s(90603),C=s(36690),S=s(29821),D=s(17914),Q=s(89454),R=s(34590),L=s(60039),Z=s(57323),F=s(93765),x=(()=>{return(n=x||(x={})).initial="",n.disadvBusOrNonProfitOrg="Disadvantaged Business or Non-Profit Organization",n.lowIncomeEligible="Low-Income Eligible",n.eligiblePremiseCustomer="Eligible Premise Customer",x;var n})();class U{constructor(){this.rooftopSolar="No",this.xSubDocType="",this.newOrRecertification="",this.businessName="",this.firstName="",this.lastName="",this.accountNumber="",this.address="",this.city="",this.zipcode="",this.homePhone="",this.cellPhone="",this.businessPhone="",this.preferredContact="",this.xOptField12="",this.mailingAddress="",this.mailingCity="",this.mailingStat="",this.mailingZipcode=""}}var Y,u=s(64134),b=s(4980),A=s(35399),v=s(50132),O=s(1912),e=s(55062);class X extends Z.y{constructor(i,t,a,o,l,c){super(i,null,t),this.wizardService=i,this.translate=t,this.alertService=a,this.fb=o,this.accountListService=l,this.cdr=c,this.SELECTIONS={YES:"yes",NO:"no"},this.selection="",this.esapFormData=new U,this.alert=new b.h,this.esapString="esap-application",this.ngOnInit=()=>{},this.sectionActivatedHandler=p=>!0,this.select=p=>{try{return this.selection=p.detail.value,this.selection===this.SELECTIONS.YES?(this.alertService.emitNewAlertEvent(this.alert),!0):(this.alertService.emitDeleteIdSpecificAlerts([this.alert.id]),!0)}catch(f){return!1}},this.submit=()=>{try{const p=new F.w;return p._currentSectionID=u.Ii,p._goToSectionID=u.dj,p._eventData={formdata:this.esapFormData},this.goToNextSection(p),!0}catch(p){return!1}},this.assignIneligibleAlertData=()=>{this.alert.message=String(this.translate.instant("COMPONENTS.ESAP.ESAPINELIGIBLE.ALERTMSG")),this.alert.id=A.J.ESAP001.id,this.alert.title=A.J.ESAP001.title,this.alert.type=A.J.ESAP001.type,Object.freeze(this.alert)},this.createWizardEnterSubscription=()=>this.wizardService.wizardViewWillEnterEvent().subscribe(()=>{const p=window.location.toString().includes(this.esapString);this.selection===this.SELECTIONS.YES&&p&&this.alertService.emitNewAlertEvent(this.alert)}),this.createWizardLeaveSubscription=()=>this.wizardService.wizardViewWillLeaveEvent().subscribe(()=>{this.alertService.emitDeleteIdSpecificAlerts([this.alert.id])}),this.createSectionSwitchedSubscription=()=>this.wizardService.sectionSwtichedEventEmitter.subscribe(p=>this.sectionActivatedHandler(p)),this.createAccountListSubscription=()=>this.accountListService.accountSwitchedEventEmitter.subscribe(()=>{this.esapForm.reset(),this.cdr.detectChanges()}),this.createFormGroup=()=>this.fb.group({rooftopSolar:[this.rooftopSolar,d.kI.nullValidator]}),this.freezeSubscriptionObjects=()=>{const p=Object.freeze;p(this.sectionSwitchedSubscription),p(this.willEnterWizard),p(this.willLeaveWizard),p(this.accountListSubscription)},this.ngOnDestroy=()=>{super.ngOnDestroy(),this.willEnterWizard.unsubscribe(),this.willLeaveWizard.unsubscribe(),this.accountListSubscription.unsubscribe()},this.assignIneligibleAlertData(),this.esapForm=this.createFormGroup(),this.sectionSwitchedSubscription=this.createSectionSwitchedSubscription(),this.willEnterWizard=this.createWizardEnterSubscription(),this.willLeaveWizard=this.createWizardLeaveSubscription(),this.accountListSubscription=this.createAccountListSubscription(),this.freezeSubscriptionObjects()}}(Y=X).breadCrumbModel=new L.$(u.Ii,"COMPONENTS.BREADCRUMB.ESAP.PREQUALIFICATION",!0),Y.\u0275fac=function(i){return new(i||Y)(e.Y36(R.a),e.Y36(r.sK),e.Y36(v.c),e.Y36(d.QS),e.Y36(O.x),e.Y36(e.sBO))},Y.\u0275cmp=e.Xpm({type:Y,selectors:[["esap-step-one"]],features:[e.qOj],decls:26,vars:17,consts:[[1,"clearfix","pad-top-20-mobile"],["id","esapEligibility"],["tabindex","0",1,"col-sm-12"],[1,"pad-left-5"],[1,"pad-bot-5"],["radio-group","",3,"formGroup"],["formControlName","rooftopSolar",3,"ionChange"],["name","solarExisting","mode","md","value","yes","aria-label","Existing Solar System Yes","nve-title","Existing Solar System Yes"],[1,"label","label-md","inline-radio-label"],["name","solarNotExisting","mode","md","value","no","aria-label","Existing Solar System No","nve-title","Existing Solar System No"],[1,"clearfix","margin-top-15"],[1,"col-xs-12"],[1,"bottom-nav"],[1,"nv-btn","nv-btn-blue","nv-btn-go",3,"disabled","click"]],template:function(i,t){1&i&&(e.TgZ(0,"div",0)(1,"form",1)(2,"div",2)(3,"div",3)(4,"label",4),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"ion-list",5)(8,"ion-radio-group",6),e.NdJ("ionChange",function(o){return t.select(o)}),e.TgZ(9,"div",4),e._UZ(10,"ion-radio",7),e.TgZ(11,"ion-label",8),e._uU(12),e.ALo(13,"translate"),e.qZA()(),e.TgZ(14,"div"),e._UZ(15,"ion-radio",9),e.TgZ(16,"ion-label",8),e._uU(17),e.ALo(18,"translate"),e.qZA()()()()()()()(),e.TgZ(19,"div",10)(20,"div",11)(21,"div",12)(22,"button",13),e.NdJ("click",function(){return t.submit()}),e.ALo(23,"translate"),e._uU(24),e.ALo(25,"translate"),e.qZA()()()()),2&i&&(e.xp6(5),e.Oqu(e.l
1cZ(6,7,"COMPONENTS.FORMS.ESAPSPECIFIC.FIELD.EXISTINGSOLAR.LABEL")),e.xp6(2),e.Q6J("formGroup",t.esapForm),e.xp6(5),e.Oqu(e.lcZ(13,9,"COMPONENTS.EQUALPAYMENTPLAN.MODALS.CANCELCUSTOMERFEEDBACK.YES")),e.xp6(5),e.Oqu(e.lcZ(18,11,"COMPONENTS.EQUALPAYMENTPLAN.MODALS.CANCELCUSTOMERFEEDBACK.NO")),e.xp6(5),e.Q6J("disabled",t.selection!==t.SELECTIONS.NO),e.uIk("aria-label",e.lcZ(23,13,"COMPONENTS.FORMS.BUTTON.CONTINUE")),e.xp6(2),e.hij(" ",e.lcZ(25,15,"COMPONENTS.FORMS.BUTTON.CONTINUE")," "))},dependencies:[d._Y,d.JJ,d.JL,d.F,d.sg,d.u,m.Q$,m.q_,m.B7,m.se,m.U5,m.QI,r.X$],styles:[".inline-radio-label[_ngcontent-%COMP%]{display:inline;vertical-align:top}.pad-left-5[_ngcontent-%COMP%]{padding-left:5px}.pad-bot-5[_ngcontent-%COMP%]{padding-bottom:5px}@media (max-width: 1024px){.pad-top-20-mobile[_ngcontent-%COMP%]{padding-top:20px}}"]});var J,I=s(15861),he=s(46158),Ee=s(80104),oe=s(99975),ee=s(66539),Oe=s(38229),W=s(61213),y=s(58616),j=s(33441),Ce=s(11481),se=s(6766),fe=s(15083),re=s(64798);const ve=["fileUploader"];function Te(n,i){if(1&n&&(e.TgZ(0,"div")(1,"p"),e._uU(2),e.qZA()()),2&n){const t=e.oxw();e.xp6(2),e.AsE("",t.userData.firstName," ",t.userData.lastName,"")}}function Se(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",30)(1,"input",31),e.NdJ("blur",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.onBlur(o))}),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"input",32),e.NdJ("blur",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.onBlur(o))}),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"input",33),e.NdJ("blur",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.onBlur(o))}),e.ALo(6,"translate"),e.qZA()()}if(2&n){const t=e.oxw();e.xp6(1),e.ekj("error",t.showBusinessNameError),e.MGl("placeholder"," ",e.lcZ(2,9,"COMPONENTS.FORMS.ESAPSPECIFIC.BUSINESSNAME")," "),e.xp6(2),e.ekj("error",t.showFirstNameError),e.MGl("placeholder"," ",e.lcZ(4,11,"COMPONENTS.FORMS.ESAPSPECIFIC.ACCOUNTHOLDERCOAPPFIRSTNAME")," "),e.xp6(2),e.ekj("error",t.showLastNameError),e.MGl("placeholder"," ",e.lcZ(6,13,"COMPONENTS.FORMS.ESAPSPECIFIC.ACCOUNTHOLDERCOAPPLASTNAME")," ")}}
1function Ae(n,i){if(1&n&&(e.TgZ(0,"div",15),e._UZ(1,"ion-radio",34),e.TgZ(2,"ion-label",17),e._uU(3),e.ALo(4,"translate"),e.qZA()()),2&n){const t=e.oxw();e.xp6(1),e.s9C("value",t.esapType.lowIncomeEligible),e.xp6(2),e.Oqu(e.lcZ(4,2,"COMPONENTS.FORMS.ESAPSPECIFIC.LOWINCOMEAPPLICATION"))}}function Ne(n,i){1&n&&e._UZ(0,"nve-spinner")}function Me(n,i){if(1&n&&e._UZ(0,"div",35),2&n){const t=e.oxw();e.Q6J("innerHTML",t.allAemContent.uploadInstructions.lowIncome,e.oJD)}}class te extends Z.y{constructor(i,t,a,o,l,c,p,f,M,z,w,K,B){super(i,null,M),this.wizardService=i,this.modalCtrl=t,this.navUtil=a,this.platform=o,this.appVersionUtility=l,this.userService=c,this.fb=p,this.logger=f,this.translate=M,this.accountListService=z,this.cdr=w,this.pageContentService=K,this.domSanitizer=B,this.isFileUploadSupported=!1,this.esapFormData=new U,this.isEligibilitySelected=!1,this.recertification="Recertification",this.newApplication="New",this.esapRecertificationFlag="esapRecertification",this.user=this.userService.getUser(),this.allAemContent={uploadInstructions:{lowIncome:void 0,eligiblePremise:void 0,business:void 0}},this.initComponent=()=>{this.setAccountType(),this.checkIfBusiness(),this.getAemContent(),this.initFormControls(),this.subscribeToFormChanges(),this.userData=this.initUserData()},this.initUserData=()=>({firstName:"",lastName:"",accountNumber:"",streetAddress:"",city:"",zipCode:""}),this.returnUserData=()=>{const g=this.user.getCurrentAccount();return{firstName:g.customerFirstName,lastName:g.customerLastName,accountNumber:g.accountNumber,streetAddress:g.streetAddressLong,city:g.city,zipCode:g.zipCode}},this.checkIfBusiness=()=>{this.isBusiness=this.accountType.toLowerCase()===y.Qm.commercial},this.populateFormPayload=()=>{this.esapFormData.accountNumber=this.userData.accountNumber,this.esapFormData.address=this.userData.streetAddress,this.esapFormData.city=this.userData.city,this.esapFormData.zipcode=this.userData.zipCode,this.esapFormData.businessName=this.getFormValue("businessName"),this.esapFormData.firstName=this.getFormValue("firstName"),this.esapFormData.lastName=this.getFormValue("lastName"),this.esapFormData.newOrRecertification=this.getFormValue("newOrRecertification"),this.esapFormData.xSubDocType=this.getFormValue("xSubDocType")},this.initForm=()=>{this.isBusiness&&""===this.userData.firstName?this.setFormValue("businessName",this.userData.lastName):(this.setFormValue("firstName",this.userData.firstName),this.setFormValue("lastName",this.userData.lastName)),this.isBusiness&&this.setFormValue("xSubDocType",this.esapType.disadvBusOrNonProfitOrg)},this.getFormValue=g=>{try{var T;return(null===(T=this.esapStepTwoForm.get(g))||void 0===T?void 0:T.value)||""}catch(q){this.logger.error("Failed to get form value",q)}},this.setFormValue=(g,T)=>{try{this.esapStepTwoForm.get(g).setValue(T)}catch(q){this.logger.error("Failed to set form value",q)}},this.getFormControl=g=>{try{return this.esapStepTwoForm.get(g)}catch(T){this.logger.error("Failed to get form control object")}},this.initFormControls=()=>{if(this.esapStepTwoForm=this.fb.group({xSubDocType:[this.esapType.lowIncomeEligible,d.kI.required],newOrRecertification:[this.newApplication,d.kI.required],firstName:[this.firstName],lastName:[this.lastName]}),this.isBusiness){const g=this.esapStepTwoForm.get("firstName"),T=this.esapStepTwoForm.get("lastName");g.setValidators([d.kI.required]),T.setValidators([d.kI.required]),this.addBusinessNameFld(),this.esapFormData.xSubDocType=this.esapType.disadvBusOrNonProfitOrg}},this.subscribeToFormChanges=()=>{this.esapStepTwoForm.statusChanges.subscribe(g=>{this.isContinueDisabled=!this.esapStepTwoForm.valid,this.isBusiness||(this.lowIncomeApplicationRadio=this.getFormValue("xSubDocType")===this.esapType.lowIncomeEligible),this.checkIfEligibilitySelected()})},this.onBlur=g=>{switch(g.target.id){case"businessNameInput":this.showBusinessNameError=this.getFormControl("businessName").invalid;break;case"firstNameInput":this.showFirstNameError=this.getFormControl("firstName").invalid;break;case"lastNameInput":this.showLastNameError=this.getFormControl("lastName").invalid;break;default:this.logger.warn("default case for onBlur esap-step-two.component.ts")}},this.resetErrorFlags=()=>
1{this.showBusinessNameError=!1,this.showFirstNameError=!1,this.showLastNameError=!1},this.initComponent(),this.wizardService.sectionSwtichedEventEmitter.subscribe(g=>this.sectionActivatedHandler(g)),this.checkFileUploadSupport(),this.wizardService.subscribeSwitchedEvent(this.sectionActivatedHandler),this.accountListService.accountSwitchedEventEmitter.subscribe(()=>{this.fileUploader.uploader.queue=[],this.esapStepTwoForm.reset(),this.resetErrorFlags(),this.initComponent(),this.userData=this.returnUserData(),this.initForm(),this.cdr.detectChanges()}),this.checkIfEligibilitySelected()}ngOnInit(){this.lowIncomeApplicationRadio=!0,this.isEligibilitySelected=!0,this.isContinueDisabled=!0}ngAfterViewInit(){this.userData=this.returnUserData(),this.initForm()}sectionActivatedHandler(i){var t,a;i._goToSectionID===u.dj&&null!==(t=i._eventData)&&void 0!==t&&t.formdata&&(this.esapFormData=null===(a=i._eventData)||void 0===a?void 0:a.formdata)}checkFileUploadSupport(){this.platform.is("ios")&&this.platform.is("capacitor")?this.appVersionUtility.isLatestVersion(he.i).then(i=>{this.isFileUploadSupported=i}):this.isFileUploadSupported=!0}get esapType(){return x}submit(){this.uploadedFileList=this.fileUploader?this.fileUploader.uploader.queue:[];const i=new F.w;this.populateFormPayload(),i._currentSectionID=u.dj,i._goToSectionID=u.Ft,i._eventData={formdata:this.esapFormData,formFiles:this.uploadedFileList},this.goToNextSection(i)}back(){const i=new F.w;i._goToSectionID=u.Ii,this.goToPrevSection(i)}cancel(){var i=this;this.modalCtrl.create({component:ee.x}).then(t=>t.present().then((0,I.Z)(function*(){(yield t.onDidDismiss()).data.isConflictAccepted&&i.navUtil.pop()})))}setAccountType(){try{this.accountType=this.userService.isLoggedIn()?this.user.currentAccount.accountType===y._8.residential?y.Qm.residential:y.Qm.commercial:y.Qm.residential}catch(i){this.logger.debug(i),this.accountType=y.Qm.residential}}checkIfEligibilitySelected(){this.isEligibilitySelected=this.lowIncomeApplicationRadio}addBusinessNameFld(){this.esapStepTwoForm.addControl("businessName",new d.NI("",d.kI.required))}getAemContent(){var i=this;return(0,I.Z)(function*(){let t=[];if(!i.isAemContentLoaded){i.isBusiness||(t=["/partials/my-account/esap-application/low-income-upload-instructions"]);const a=[];t.forEach(l=>{a.push(i.pageContentService.getContent(l))});const o=yield Promise.all(a);i.isBusiness||(i.allAemContent.uploadInstructions.lowIncome=i.domSanitizer.bypassSecurityTrustHtml(o[0].html)),i.isAemContentLoaded=!0}})()}}(J=te).breadCrumbModel=new L.$(u.dj,"COMPONENTS.BREADCRUMB.ESAP.APPLICATION",!0),J.\u0275fac=function(i){return new(i||J)(e.Y36(R.a),e.Y36(m.IN),e.Y36(D.H),e.Y36(m.t4),e.Y36(Ee.x),e.Y36(W.K),e.Y36(d.QS),e.Y36(j.Y),e.Y36(r.sK),e.Y36(O.x),e.Y36(e.sBO),e.Y36(Oe.Z),e.Y36(Ce.H7))},J.\u0275cmp=e.Xpm({type:J,selectors:[["esap-step-two"]],viewQuery:function(i,t){if(1&i&&e.Gf(ve,5),2&i){let a;e.iGM(a=e.CRH())&&(t.fileUploader=a.first)}},features:[e.qOj],decls:69,vars:52,consts:[[1,"clearfix"],[3,"formGroup"],[1,"col-xs-12"],[1,"row"],[1,"col-sm-6","container"],[1,"clearfix","margin-top-20","paragraph-list"],[4,"ngIf"],["class","clearfix margin-top-25",4,"ngIf"],[1,"row","margin-top-15"],[1,"col-sm-6"],[1,"ion-no-padding","ion-padding-bottom"],["formControlName","xSubDocType",1,"radioSelectListBlock"],["class","field",4,"ngIf"],["type","ToolTipModalComponent","path","/tooltips/esap-new-or-recertification.html",3,"isToolTip"],["formControlName","newOrRecertification",1,"radioSelectListBlock"],[1,"field"],["mode","md","attr.aria-label","New Application","attr.title","New Application",3,"value"],[2,"margin-left","0.7em"],[1,"field","margin-top-5"],[3,"flag","display404onDisabled"],["mode","md","attr.aria-label","Recertification","attr.title","Recertification",3,"value"],[2,"position","relative"],[3,"innerHTML",4,"ngIf"],["configureFor","esapFileUpload"],["fileUploader",""],[1,"clearfix","margin-top-30","margin-bottom-30"],[1,"bottom-nav"],[1,"nv-btn","nv-btn-blue","nv-btn-go",3,"disabled","click"],[1,"nv-btn","nv-btn-white","nv-btn-cancel",3,"click"],[1,"nv-btn","nv-btn-white","nv-btn-back",3,"click"],[1,"clearfix","margin-top-25"],["id","businessNameInput","formControlName","businessName",1,"form-control",3,"placeholder","blur"],["id","firstNameInput","formControlName","firstName",1,"form-control",3,"placeholder","blur"],["id","lastNameInput","formControlName","lastName",1,"form-control",3,"placeholder","blur"],["mode","md","attr.aria-label","Low Income Application","attr.title","Low Income Application",3,"value"],[3,"innerHTML"]],template:function(i,t){if(1&i&&(e.TgZ(0,"div",0)(1,"form",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h5"),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"div",5),e.YNc(9,Te,3,2,"div",6),e.TgZ(10,"p"),e._uU(11),e.qZA(),e.TgZ(12,"p"),e._uU(13),e.qZA(),e.TgZ(14,"p"),e._uU(15),e.qZA()(),e.YNc(16,Se,7,15,"div",7),e.TgZ(17,"div")(18,"div",8)(19,"div",9)(20,"h5"),e._uU(21),e.ALo(22,"translate"),e.qZA(),e.TgZ(23,"ion-list",10)(24,"ion-radio-group",11),e.YNc(25,Ae,5,4,"div",12),e.qZA()()(),e.TgZ(26,"div",9)(27,"h5"),e._uU(28),e.ALo(29,"translate"),e._UZ(30,"nve-tool-tip",13),e.qZA(),e.TgZ(31,"ion-list",10)(32,"ion-radio-group",14)(33,"div",15),e._UZ(34,"ion-radio",16),e.TgZ(35,"i
1on-label",17),e._uU(36),e.ALo(37,"translate"),e.qZA()(),e.TgZ(38,"div",18)(39,"feature-flag-content",19)(40,"div"),e._UZ(41,"ion-radio",20),e.TgZ(42,"ion-label",17),e._uU(43),e.ALo(44,"translate"),e.qZA()()()()()()()()()(),e.TgZ(45,"div",9)(46,"h5"),e._uU(47),e.ALo(48,"translate"),e.qZA(),e.TgZ(49,"div",21),e.YNc(50,Ne,1,0,"nve-spinner",6),e.YNc(51,Me,1,1,"div",22),e.qZA(),e._UZ(52,"nve-file-upload",23,24),e.qZA()()()()(),e.TgZ(54,"div",25)(55,"div",2)(56,"div",26)(57,"button",27),e.NdJ("click",function(){return t.submit()}),e.ALo(58,"translate"),e._uU(59),e.ALo(60,"translate"),e.qZA(),e.TgZ(61,"button",28),e.NdJ("click",function(){return t.cancel()}),e.ALo(62,"translate"),e._uU(63),e.ALo(64,"translate"),e.qZA(),e.TgZ(65,"button",29),e.NdJ("click",function(){return t.back()}),e.ALo(66,"translate"),e._uU(67),e.ALo(68,"translate"),e.qZA()()()()),2&i){const a=e.MAs(53);e.xp6(1),e.Q6J("formGroup",t.esapStepTwoForm),e.xp6(5),e.Oqu(e.lcZ(7,28,"COMPONENTS.FORMS.ESAPSPECIFIC.ACCOUNTINFORMATION")),e.xp6(3),e.Q6J("ngIf",!t.isBusiness),e.xp6(2),e.Oqu(t.userData.accountNumber),e.xp6(2),e.Oqu(t.userData.streetAddress),e.xp6(2),e.AsE("",t.userData.city,", NV ",t.userData.zipCode,""),e.xp6(1),e.Q6J("ngIf",t.isBusiness),e.xp6(5),e.hij(" ",e.lcZ(22,30,"COMPONENTS.FORMS.ESAPSPECIFIC.ELIGIBILITY")," "),e.xp6(4),e.Q6J("ngIf",!t.isBusiness),e.xp6(3),e.hij(" ",e.lcZ(29,32,"COMPONENTS.FORMS.ESAPSPECIFIC.APPLICATIONTYPE")," "),e.xp6(2),e.Q6J("isToolTip",!0),e.xp6(4),e.s9C("value",t.newApplication),e.xp6(2),e.Oqu(e.lcZ(37,34,"COMPONENTS.FORMS.ESAPSPECIFIC.NEWAPPLICATION")),e.xp6(3),e.Q6J("flag",t.esapRecertificationFlag)("display404onDisabled",!1),e.xp6(2),e.s9C("value",t.recertification),e.xp6(2),e.Oqu(e.lcZ(44,36,"COMPONENTS.FORMS.ESAPSPECIFIC.RECERTIFICATION")),e.xp6(4),e.Oqu(e.lcZ(48,38,"COMPONENTS.FORMS.ESAPSPECIFIC.UPLOADELIGIBILITYDOCUMENT")),e.xp6(3),e.Q6J("ngIf",!t.isAemContentLoaded),e.xp6(1),e.Q6J("ngIf",t.lowIncomeApplicationRadio),e.xp6(6),e.Q6J("disabled",t.isContinueDisabled||0===(null==a||null==a.uploader||null==a.uploader.queue?null:a.uploader.queue.length)),e.uIk("aria-label",e.lcZ(58,40,"COMPONENTS.FORMS.BUTTON.CONTINUE")),e.xp6(2),e.hij(" ",e.lcZ(60,42,"COMPONENTS.FORMS.BUTTON.CONTINUE")," "),e.xp6(2),e.uIk("aria-label",e.lcZ(62,44,"COMPONENTS.FORMS.BUTTON.CANCEL")),e.xp6(2),e.hij(" ",e.lcZ(64,46,"COMPONENTS.FORMS.BUTTON.CANCEL")," "),e.xp6(2),e.uIk("aria-label",e.lcZ(66,48,"COMPONENTS.FORMS.BUTTON.BACK")),e.xp6(2),e.hij(" ",e.lcZ(68,50,"COMPONENTS.FORMS.BUTTON.BACK")," ")}},dependencies:[h.O5,d._Y,d.Fj,d.JJ,d.JL,d.sg,d.u,m.Q$,m.q_,m.B7,m.se,m.U5,m.QI,se.$,fe.I,re.p,oe.Y,r.X$],styles:[".nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-checked[_ngcontent-%COMP%]{border-color:#d2c9c7}.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-inner[_ngcontent-%COMP%]{top:3px;left:3px;width:12px;height:12px}.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%]{border-color:#d2c9c7;background:#ffffff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-checked[_ngcontent-%COMP%]{border-color:#d2c9c7;background-color:#fff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-icon[_ngcontent-%COMP%]{width:20px;height:20px;border-width:1px;border-style:solid;border-radius:1px;border-color:#d2c9c7;background-color:#fff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-checked[_ngcontent-%COMP%] .checkbox-inner[_ngcontent-%COMP%]{top:0;left:7px;width:5px;height:14px}.nve[_ngcontent-%COMP%] .checkbox-md.checkbox-disabled[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-checkbox-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:.6;pointer-events:none;background:#ccc}.nve[_ngcontent-%COMP%] .radio-md.radio-disabled[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-radio-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.nve[_ngcontent-%COMP%] .radio-md.radio-disabled[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-radio-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%]{background:#cccccc}.nve[_ngcontent-%COMP%] ion-radio.radio-disabled[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.nve[_ngcontent-%COMP%] ion-radio.radio-disabled[_ngcontent-%COMP%]::part(container){background:#cccccc}.nve[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:1em;font-weight:400;color:#000}.radio-item[_ngcontent-%COMP%]{display:flex;margin-bottom:2px}@media (max-width: 344px){ion-radio-group[formControlName=xSubDocType][_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{width:75%}}@media (min-width: 768px) and (max-width: 1240px){ion-radio-group[formControlName=xSubDocType][_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{width:75%}} .page-content{min-height:unset!important;padding-bottom:0!important}"]});
1var H,le=s(61328),Pe=s(53320),N=s(59163),_e=s(67987),Fe=s(71855),be=s(73387);function Ie(n,i){1&n&&(e.TgZ(0,"div",27),e._UZ(1,"nve-spinner"),e.qZA())}const De=function(){return{required:!0,ctrlName:"businessPhone",type:"phone number"}};function Re(n,i){if(1&n&&e._UZ(0,"app-text-field",28),2&n){const t=e.oxw();e.Q6J("formRef",t.esapForm)("fieldOptParam",e.DdM(2,De))}}const Le=function(){return{required:!0,ctrlName:"preferredContact"}},Ue=function(){return["COMPONENTS.FORMS.FIELD.CONTACT.PREFERREDCONTACTMETHOD.SELECT.EMAIL","COMPONENTS.FORMS.FIELD.CONTACT.PREFERREDCONTACTMETHOD.SELECT.STANDARD_MAIL"]},ce=function(){return{display:"block"}},pe=function(){return{display:"none"}},ye=function(n){return{required:!0,ctrlName:"xOptField12",type:"email",conditionalRequiredFn:n}},we=function(n){return{required:!0,ctrlName:"mailingAddress",conditionalRequiredFn:n}},Be=function(n){return{required:!0,ctrlName:"mailingCity",conditionalRequiredFn:n}},qe=function(n){return{required:!0,ctrlName:"mailingStat",conditionalRequiredFn:n}},Ye=function(n){return{required:!0,ctrlName:"mailingZipcode",type:"service ZIP",conditionalRequiredFn:n}},Je=function(){return{required:!0,ctrlName:"homePhone",type:"phone number"}},He=function(){return{required:!0,ctrlName:"cellPhone",type:"phone number"}};class ie extends Z.y{constructor(i,t,a,o,l,c,p){super(i),this.wizardService=i,this.modalCtrl=t,this.navUtil=a,this.cdr=o,this.userService=l,this.accountListService=c,this.logger=p,this.esapFormData=new U,this.showEmailAddressField=!1,this.showMailAddressFields=!1,this.isMailingAddressRetrieved=!1,this.prefills={email:"",street:"",unit:"",city:"",state:"",zipcode:0},this.wizardService.subscribeSwitchedEvent(this.sectionActivatedHandler),this.accountListService.accountSwitchedEventEmitter.subscribe(()=>{this.isMailingAddressRetrieved=!1;const f=this.esapForm.get("preferredContact").value;this.esapForm.reset(),this.esapForm.get("preferredContact").setValue(f),this.retrieveMailingAddress(),this.cdr.detectChanges()}),this.retrieveMailingAddress()}ngOnInit(){this.esapForm=new d.nJ({})}sectionActivatedHandler(i){var t;i._goToSectionID===u.Ft&&(this.esapFormData=i._eventData.formdata,this.uploadedFileList=i._eventData.formFiles,null===(t=this.cdr)||void 0===t||t.detectChanges())}selectionUpdated(i){i===N.s.extractValue("COMPONENTS.FORMS.FIELD.CONTACT.PREFERREDCONTACTMETHOD.SELECT.EMAIL")?(this.showEmailAddressField=!0,this.showMailAddressFields=!1):(this.showEmailAddressField=!1,this.showMailAddressFields=!0),["xOptField12","mailingAddress","mailingCity","mailingStat","mailingZipcode"].forEach(a=>{var o;null===(o=this.esapForm.get(a))||void 0===o||o.updateValueAndValidity()}),this.cdr.detectChanges()}emailRequiredCheck(i){return i.get("preferredContact").value===N.s.extractValue("COMPONENTS.FORMS.FIELD.CONTACT.PREFERREDCONTACTMETHOD.SELECT.EMAIL")}mailRequiredCheck(i){return i.get("preferredContact").value===N.s.extractValue("COMPONENTS.FORMS.FIELD.CONTACT.PREFERREDCONTACTMETHOD.SELECT.STANDARD_MAIL")}retrieveMailingAddress(){var i=this;return(0,I.Z)(function*(){var t;if(null!==(t=i.userService.getUser())&&void 0!==t&&t.getCurrentAccount()){const a={billType:i.userService.getUser().getCurrentAccount().billType,userAccountNumber:i.userService.getUser().getCurrentAccount().accountNumber};try{const o=yield i.accountListService.retrieveMailingAddress(a,!1);i.mapToPrefills(o),i.isMailingAddressRetrieved=!0}catch(o){i.isMailingAddressRetrieved=!0,i.logger.error("Cannot retrieve mail address for ESAP application",o)}}})()}mapToPrefills(i){this.esapForm.patchValue({xOptField12:this.userService.getUser().getEmail().emailAddress,mailingAddress:_e.L.phraseCombine([i.streetNumber,i.streetPreDirection,i.streetName,i.streetSuffix,i.streetPostDirection,i.unitType,i.unitNumber]),mailingCity:i.city,mailingStat:i.state,mailingZipcode:Number(i.zipCode.substring(0,5))})}showAddressModal(){var i=this;this.modalCtrl.create({component:Pe.s}).then(t=>t.present().then((0,I.Z)(function*(){const a=yield t.onDidDismiss(),o=N.s.onAddressAutoCompleteDismiss(a.data);i.esapForm.get("mailingAddress").setValue(o.streetLong),i.esapForm.get("mailingCity").setValue(o.city),i.esapForm.get("mailingStat").setValue(o.state),i.esapForm.get("mailingZipcode").setValue(Number(o.zipCode))})))}submit(){const i=new F.w;i._currentSectionID=u.Ft,i._goToSectionID=u.Bh,this.esapFormData=(0,le.Z)((0,le.Z)({},this.esapFormData),this.esapForm.value),i._eventData={formdata:this.esapFormData,formFiles:this.uploadedFileList},this.goToNextSection(i)}back(){const i=new F.w;i._goToSectionID=u.dj,this.goToPrevSection(i)}cancel(){var i=this;this.modalCtrl.create({component:ee.x}).then(t=>t.present().then((0,I.Z)(function*(){(yield t.onDidDismiss()).data.isConflictAccepted&&i.navUtil.pop()})))}}
1(H=ie).breadCrumbModel=new L.$(u.Ft,"COMPONENTS.BREADCRUMB.ESAP.CONTACTMETHOD",!0),H.\u0275fac=function(i){return new(i||H)(e.Y36(R.a),e.Y36(m.IN),e.Y36(D.H),e.Y36(e.sBO),e.Y36(W.K),e.Y36(O.x),e.Y36(j.Y))},H.\u0275cmp=e.Xpm({type:H,selectors:[["esap-step-three"]],features:[e.qOj],decls:47,vars:68,consts:[["novalidate","",3,"formGroup"],[1,"clearfix"],[1,"col-lg-5","col-md-6","col-xs-12"],["class","margin-top-30",4,"ngIf"],["fieldLabel","",3,"formRef","fieldOptParam","selectData","selectionUpdated"],[3,"ngStyle"],[1,"margin-top-15"],["fieldLabel","COMPONENTS.FORMS.FIELD.CONTACT.EMAIL.PLACEHOLDER",3,"formRef","fieldOptParam"],[1,"margin-top-15","margin-bottom-5"],[3,"click"],["fieldLabel","COMPONENTS.FORMS.FIELD.ADDRESS.STREET.PLACEHOLDER",3,"formRef","fieldOptParam"],["fieldLabel","COMPONENTS.FORMS.FIELD.ADDRESS.CITY.PLACEHOLDER",3,"formRef","fieldOptParam"],[1,"clearfix",2,"margin","0 -15px"],[1,"col-sm-8","col-xs-12","small-padding-right"],["fieldLabel","COMPONENTS.FORMS.FIELD.ADDRESS.STATE.PLACEHOLDER",3,"formRef","fieldOptParam"],[1,"col-sm-4","col-xs-12","small-padding-left"],["fieldLabel","COMPONENTS.FORMS.FIELD.ADDRESS.ZIP.PLACEHOLDER",3,"formRef","fieldOptParam"],[1,"col-lg-1"],["fieldLabel","COMPONENTS.FORMS.FIELD.CONTACT.BUSINESSPHONE.PLACEHOLDER",3,"formRef","fieldOptParam",4,"ngIf"],["fieldLabel","COMPONENTS.FORMS.FIELD.CONTACT.HOMEPHONE.PLACEHOLDER",3,"formRef","fieldOptParam"],["fieldLabel","COMPONENTS.FORMS.FIELD.CONTACT.CELLPHONE.PLACEHOLDER",3,"formRef","fieldOptParam"],[1,"clearfix","margin-top-30","margin-bottom-30"],[1,"col-xs-12"],[1,"bottom-nav"],["id","continue-button",1,"nv-btn","nv-btn-blue","nv-btn-go",3,"disabled","click"],[1,"nv-btn","nv-btn-white","nv-btn-cancel",3,"click"],[1,"nv-btn","nv-btn-white","nv-btn-back",3,"click"],[1,"margin-top-30"],["fieldLabel","COMPONENTS.FORMS.FIELD.CONTACT.BUSINESSPHONE.PLACEHOLDER",3,"formRef","fieldOptParam"]],template:function(i,t){1&i&&(e.TgZ(0,"form",0)(1,"div",1)(2,"div",2),e.YNc(3,Ie,2,0,"div",3),e.TgZ(4,"h5"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"app-question-list",4),e.NdJ("selectionUpdated",function(o){return t.selectionUpdated(o)}),e.qZA(),e.TgZ(8,"div",5)(9,"div",6),e._UZ(10,"app-text-field",7),e.qZA()(),e.TgZ(11,"div",5)(12,"div")(13,"p",8)(14,"a",9),e.NdJ("click",function(){return t.showAddressModal()}),e._uU(15),e.ALo(16,"translate"),e.qZA()(),e._UZ(17,"app-text-field",10)(18,"app-text-field",11),e.TgZ(19,"div",12)(20,"div",13),e._UZ(21,"app-text-field",14),e.qZA(),e.TgZ(22,"div",15),e._UZ(23,"app-text-field",16),e.qZA()()()()(),e._UZ(24,"div",17),e.TgZ(25,"div",2)(26,"h5"),e._uU(27),e.ALo(28,"translate"),e.qZA(),e.YNc(29,Re,1,3,"app-text-field",18),e._UZ(30,"app-text-field",19)(31,"app-text-field",20),e.qZA()()(),e.TgZ(32,"div",21)(33,"div",22)(34,"div",23)(35,"button",24),e.NdJ("click",function(){return t.submit()}),e.ALo(36,"translate"),e._uU(37),e.ALo(38,"translate"),e.qZA(),e.TgZ(39,"button",25),e.NdJ("click",function(){return t.cancel()}),e.ALo(40,"translate"),e._uU(41),e.ALo(42,"translate"),e.qZA(),e.TgZ(43,"button",26),e.NdJ("click",function(){return t.back()}),e.ALo(44,"translate"),e._uU(45),e.ALo(46,"translate"),e.qZA()()()()),2&i&&(e.Q6J("formGroup",t.esapForm),e.xp6(3),e.Q6J("ngIf",!t.isMailingAddressRetrieved),e.xp6(2),e.hij("* ",e.lcZ(6,32,"COMPONENTS.FORMS.FIELD.CONTACT.PREFERREDCONTACTMETHOD.LABEL"),":"),e.xp6(2),e.Q6J("formRef",t.esapForm)("fieldOptParam",e.DdM(50,Le))("selectData",e.DdM(51,Ue)),e.xp6(1),e.Q6J("ngStyle",t.showEmailAddressField&&t.isMailingAddressRetrieved?e.DdM(52,ce):e.DdM(53,pe)),e.xp6(2),e.Q6J("formRef",t.esapForm)("fieldOptParam",e.VKq(54,ye,t.emailRequiredCheck)),e.xp6(1),e.Q6J("ngStyle",t.showMailAddressFields&&t.isMailingAddressRetrieved?e.DdM(56,ce):e.DdM(57,pe)),e.xp6(4),e.hij(" ",e.lcZ(16,34,"COMPONENTS.FORMS.FIELD.ADDRESS.ADDRESSPICKERTEXT")," "),e.xp6(2),e.Q6J("formRef",t.esapForm)("fieldOptParam",e.VKq(58,we,t.mailRequiredCheck)),e.xp6(1),e.Q6J("formRef",t.esapForm)("fieldOptParam",e.VKq(60,Be,t.mailRequiredCheck)),e.xp6(3),e.Q6J("formRef",t.esapForm)("fieldOptParam",e.VKq(62,qe,t.mailRequiredCheck)),e.xp6(2),e.Q6J("formRef",t.esapForm)("fieldOptParam",e.VKq(64,Ye,t.mailRequiredCheck)),e.xp6(4),e.hij("",e.lcZ(28,36,"COMPONENTS.FORMS.ESAPSPECIFIC.FIELD.GROUP.CONTACTPHONENUMBERS"),":"),e.xp6(2),e.Q6J("ngIf",(null==t.esapFormData.businessName?null:t.esapFormData.businessName.length)>0),e.xp6(1),e.Q6J("formRef",t.esapForm)("fieldOptParam",e.DdM(66,Je)),e.xp6(1),e.Q6J("formRef",t.esapForm)("fieldOptParam",e.DdM(67,He)),e.xp6(4),e.Q6J("disabled",!t.esapForm.valid),e.uIk("aria-label",e.lcZ(36,38,"COMPONENTS.FORMS.BUTTON.CONTINUE")),e.xp6(2),e.hij(" ",e.lcZ(38,40,"COMPONENTS.FORMS.BUTTON.CONTINUE")," "),e.xp6(2),e.uIk("aria-label",e.lcZ(40,42,"COMPONENTS.FORMS.BUTTON.CANCEL")),e.xp6(2),e.hij(" ",e.lcZ(42,44,"COMPONENTS.FORMS.BUTTON.CANCEL")," "),e.xp6(2),e.uIk("aria-label",e.lcZ(44,46,"COMPONENTS.FORMS.BUTTON.BACK")),e.xp6(2),e.hij(" ",e.lcZ(46,48,"COMPONENTS.FORMS.BUTTON.BACK")," "))},dependencies:[h.O5,h.PC,d._Y,d.JL,d.sg,se.$,Fe.a,be.y,r.X$]});var G,$=s(4317),Ge=s(29337),ke=s(90063),ze=s(75834),de=s(79744);function Qe(n,i){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e._UZ(2,"br"),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij(" ",t.esapFormData.businessName,"")}}function je(n,i){1&n&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.Oqu(e.l
1cZ(2,1,"DOCUMENT")))}function Ke(n,i){1&n&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DOCUMENTS")))}function Ve(n,i){if(1&n&&(e.TgZ(0,"div")(1,"p")(2,"strong"),e._uU(3),e.qZA()(),e.TgZ(4,"p"),e._uU(5),e.ALo(6,"translate"),e.qZA()()),2&n){const t=e.oxw();e.xp6(3),e.Oqu(t.esapFormData.businessName),e.xp6(2),e.Oqu(e.lcZ(6,2,"COMPONENTS.FORMS.FIELD.NAME.BUSINESS.PLACEHOLDER"))}}function We(n,i){if(1&n&&(e.TgZ(0,"p")(1,"strong"),e._uU(2),e.qZA()()),2&n){const t=e.oxw();e.xp6(2),e.Oqu(t.esapFormData.xOptField12)}}function $e(n,i){if(1&n&&(e.TgZ(0,"p")(1,"strong"),e._uU(2),e._UZ(3,"br"),e._uU(4),e.qZA()()),2&n){const t=e.oxw();e.xp6(2),e.hij(" ",t.esapFormData.mailingAddress,""),e.xp6(2),e.lnq(" ",t.esapFormData.mailingCity," ",t.esapFormData.mailingStat," ",t.esapFormData.mailingZipcode," ")}}function Xe(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMPONENTS.FORMS.FIELD.CONTACT.EMAIL.PLACEHOLDER")," "))}function et(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&n&&(e.xp6(1),e.AsE(" ",e.lcZ(2,2,"COMPONENTS.FORMS.FIELD.CONTACT.PREFERREDCONTACTMETHOD.SELECT.STANDARD_MAIL")," ",e.lcZ(3,4,"COMPONENTS.FORMS.FIELD.ADDRESS.ADDRESS.PLACEHOLDER")," "))}function tt(n,i){if(1&n&&(e.TgZ(0,"div",5)(1,"div",6)(2,"p")(3,"strong"),e._uU(4),e.qZA()(),e.TgZ(5,"p"),e._uU(6),e.ALo(7,"translate"),e.qZA()(),e._UZ(8,"div",7),e.qZA()),2&n){const t=e.oxw();e.xp6(4),e.Oqu(t.esapFormData.businessPhone),e.xp6(2),e.Oqu(e.lcZ(7,2,"COMPONENTS.FORMS.FIELD.CONTACT.BUSINESSPHONE.PLACEHOLDER"))}}function it(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"re-captcha",17,18),e.NdJ("resolved",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.submit(o))}),e.qZA()}if(2&n){const t=e.oxw();e.s9C("siteKey",t.siteKey)}}class ne extends Z.y{constructor(i,t,a,o,l,c,p,f,M,z,w,K){super(i),this.wizardService=i,this.modalCtrl=t,this.navUtil=a,this.formsService=o,this.platform=l,this.globalServiceErrorHandler=p,this.esapService=f,this.loader=M,this.logger=z,this.userService=w,this.translateService=K,this.esapFormData=new U,this.isMobileApp=!1,this.siteKey=c.config.google.recaptcha.key,this.formsService.getRecaptchaDisabledFlag("EsapApplication").then(B=>{this.recaptchaDisabled=!B.isRecaptchaEnabled}),this.isMobileApp=l.is("capacitor"),this.wizardService.sectionSwtichedEventEmitter.subscribe(B=>this.sectionActivatedHandler(B))}ngOnInit(){}sectionActivatedHandler(i){var t;i._goToSectionID===u.Bh&&(this.esapFormData=i._eventData.formdata,this.contactMethodAnswerKey=N.s.transformToKey(this.esapFormData.preferredContact,"COMPONENTS.FORMS.FIELD.CONTACT.PREFERREDCONTACTMETHOD.SELECT."),this.eligibilityAnswerKey=N.s.transformToKey(this.esapFormData.xSubDocType,""),this.newOrRecertificationAnswerKey=N.s.transformToKey(this.esapFormData.newOrRecertification,""),this.isEmailSelected=this.esapFormData.preferredContact===N.s.extractValue("COMPONENTS.FORMS.FIELD.CONTACT.PREFERREDCONTACTMETHOD.SELECT.EMAIL"),this.formatEsapPhoneNumbers(),this.uploadedFileList=i._eventData.formFiles,this.isBusinessApplication=(null===(t=this.userService.getUser().getCurrentAccount())||void 0===t?void 0:t.accountType)!==y._8.residential)}get esapType(){return x}submit(i,t){if(null!==i||void 0===i&&t){this.prepareEsapSubmitData();let a=Object.assign({},this.esapFormData);a=N.s.encodeStringValues(a),this.recaptcha&&this.recaptcha.reset(),this.loader.show(),this.esapService.submitEsapApplication(a,this.uploadedFileList).then(()=>{a.xOptField12.length&&(a=this.prepareEsapEmailData(a),this.formsService.sendEmail("ESAP_CUSTOMER",a.xOptField12,a).then(()=>{}).catch(l=>{this.logger.error("error sending customer email confirmation for ESAP application",l)}));const o=new F.w;o._currentSectionID=u.Bh,o._goToSectionID=u.Ou,o._eventData={},this.goToNextSection(o)}).catch(o=>{this.processPostError(o)}).finally(()=>{this.loader.hide()})}}processPostError(i){var t,a;let o;(o||(o={})).conflictDuplicate="CONFLICT";let l="COMPONENTS.FORMS.ERROR.POSTING";(null==i||null===(t=i.error)||void 0===t||null===(a=t.error)||void 0===a?void 0:a.status)===o.conflictDuplicate&&(l="COMPONENTS.FORMS.ESAPSPECIFIC.ERROR.DUPLICATE"),this.globalServiceErrorHandler.showToast(String(this.translateService.instant(l))),this.logger.error("Unable to post ESAP application",i)}prepareEsapSubmitData(){this.esapFormData.preferredContact===N.s.extractValue("COMPONENTS.FORMS.FIELD.CONTACT.PREFERREDCONTACTMETHOD.SELECT.EMAIL")?["mailingAddress","mailingCity","mailingStat","mailingZipcode"].forEach(t=>{this.esapFormData[t]=""}):this.esapFormData.xOptField12="",this.esapFormData.xSubDocType!==this.esapType.disadvBusOrNonProfitOrg&&(this.esapFormData.businessPhone="")}prepareEsapEmailData(i){var t;return i.documentCount=null===(t=this.uploadedFileList)||void 0===t?void 0:t.length,i}back(){const i=new F.w;i._eventData={formdata:this.esapFormData,formFiles:this.uploadedFileList},i._goToSectionID=u.Ft,this.goToPrevSection(i)}cancel(){var i=this;this.modalCtrl.create({component:ee.x}).then(t=>t.present().then((0,I.Z)(function*(){(yield t.onDidDismiss()).data.isConflictAccepted&&i.navUtil.pop()})))}executeRecaptcha(){this.isMobileApp||this.recaptchaDisabled?this.submit(""):this.recaptcha.execute()}formatEsapPhoneNumbers(){["businessPhone","homePhone","cellPhone"].map(t=>{this.esapFormData[t]=Ge.w.formatPhoneNumber(this.esapFormData[t])})}}(G=ne).breadCrumbModel=new L.$(u.Bh,"COMPONENTS.BREADCRUMB.GLOBAL.REVIEW",!0),G.\u0275fac=function(i){return new(i||G)(e.Y36(R.a),e.Y36(m.IN),e.Y36(D.H),e.Y36(N.s),e.Y36(m.t4),e.Y36($._),e.Y36(ze.o),e.Y36(ke.a),e.Y36(de.D),e.Y36(j.Y),e.Y36(W.K),e.Y36(r.sK))},G.\u0275cmp=e.Xpm({type:G,selectors:[["esap-review"]],viewQuery:function(i,t){if(1&i&&e.Gf(E.wT,5),2&i){let a;e.iGM(a=e.CRH())&&(t.recaptcha=a.first)}},features:[e.qOj],decls:140,vars:94,consts:[[1,"paragraph-list","forms-review"],[1,"clearfix"],[1,"col-xs-12"],[1,"margin-top-30","margin-bottom-30"],[1,"clearfix","margin-top-30","margin-bottom-10"],[1,"clearfix","margin-top-15","nve-div-table-wrapper"],[1,"col-sm-3","col-xs-12","margin-top-mob-15","nve-div-table-cell","align-bottom"],[1,"col-sm-9","col-xs-12","nve-div-table-cell"],[4,"ngIf"],[1,"col-sm-6","col-xs-12","margin-top-mob-15","nve-div-table-cell","align-bottom"],["class","clearfix margin-top-15 nve-div-table-wrapper",4,"ngIf"],["size","invisible",3,"siteKey","resolved",4,"ngIf"],[1,"clearfix","margin-top-30","margin-bottom-30"],[1,"bottom-nav"],[1,"nv-btn","nv-btn-blue","nv-btn-go",3,"click"],[1,"nv-btn","nv-btn-white","nv-btn-cancel",3,"click"],[1,"nv-btn","nv-btn-white","nv-btn-back",3,"click"],["size","invisible",3,"siteKey","resolved"],["captchaRef","reCaptcha"]],template:function(i,t){1&i&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"p"),e._uU(4),e.ALo(5,"translate"),e.qZA()()(),e._UZ(6,"hr",3),e.TgZ(7,"div",4)(8,"div",2)(9,"h5"),e._uU(10),e.ALo(11,"translate"),e.qZA()()(),e.TgZ(12,"div",5)(13,"div",6)(14,"p")(15,"strong"),e._uU(16),e.ALo(17,"translate"),e.qZA()(),e.TgZ(18,"p"),e._uU(19),e.ALo(20,"translate"),e.qZA()(),e._UZ(21,"div",7),e.qZA(),e._UZ(22,"hr",3),e.TgZ(23,"div",4)(24,"div",2)(25,"h5"),e._uU(26),e.ALo(27,"translate"),e.qZA()()(),e.TgZ(28,"div",5)(29,"div",6)(30,"p")(31,"strong"),e.YNc(32,Qe,3,1,"span",8),e._uU(33),e.qZA()(),e.TgZ(34,"p"),e._uU(35),e.ALo(36,"translate"),e.qZA()(),e.TgZ(37,"div",6)(38,"p")(39,"strong"),e._uU(40),e.qZA()(),e.TgZ(41,"p"),e._uU(42),e.ALo(43,"translate"),e.qZA()(),e.TgZ(44,"div",9)(45,"p")(46,"strong"),e._uU(47),e.qZA()(),e.TgZ(48,"p")(49,"strong"),e._uU(50),e.qZA()(),e.TgZ(51,"p"),e._uU(52),e.ALo(53,"translate"),e.qZA()()(),e._UZ(54,"hr",3),e.TgZ(55,"div",4)(56,"div",2)(57,"h5"),e._uU(58),e.ALo(59,"translate"),e.qZA()()(),e.TgZ(60,"div",5)(61,"div",6)(62,"p")(63,"strong"),e._uU(64),e.ALo(65,"translate"),e.qZA()(),e.TgZ(66,"p"),e._uU(67),e.ALo(68,"translate"),e.qZA()(),e.TgZ(69,"div",6)(70,"p")(71,"strong"),e._uU(72),e.ALo(73,"translate"),e.qZA()(),e.TgZ(74,"p"),e._uU(75),e.ALo(76,"translate"),e.qZA()(),e.TgZ(77,"div",6)(78,"p")(79,"strong"),e._uU(80),e.YNc(81,je,3,3,"span",8),e.YNc(82,Ke,3,3,"span",8),e.qZA()(),e.TgZ(83,"p"),e._uU(84),e.ALo(85,"translate"),e.qZA()(),e.TgZ(86,"div",6),e.YNc(87,Ve,7,4,"div",8),e.qZA()(),e._UZ(88,"hr",3),e.TgZ(89,"div",4)(90,"div",2)(91,"h5"),e._uU(92),e.ALo(93,"translate"),e.qZA()()(),e.TgZ(94,"div",5)(95,"div",6)(96,"p")(97,"strong"),e._uU(98),e.ALo(99,"translate"),e.qZA()(),e.TgZ(100,"p"),e._uU(101),e.ALo(102,"translate"),e.qZA()(),e.TgZ(103,"div",6),e.YNc(104,We,3,1,"p",8),e.YNc(105,$e,5,4,"p",8),e.YNc(106,Xe,3,3,"p",8),e.YNc(107,et,4,6,"p",8),e.qZA(),e.TgZ(108,"div",6)(109,"p")(110,"strong"),e._uU(111),e.qZA()(),e.TgZ(112,"p"),e._uU(113),e.ALo(114,"translate"),e.qZA()(),e.TgZ(115,"div",6)(116,"p")(117,"strong"),e._uU(118),e.qZA()(),e.TgZ(119,"p"),e._uU(120),e.ALo(121,"translate"),e.qZA()()(),e.YNc(122,tt,9,4,"div",10),e.YNc(123,it,2,1,"re-captcha",11),e.qZA(),e._UZ(124,"hr",3),e.TgZ(125,"div",12)(126,"div",2)(127,"div",13)(128,"button",14),e.NdJ("click",function(){return t.executeRecaptcha()}),e.ALo(129,"translate"),e._uU(130),e.ALo(131,"translate"),e.qZA(),e.TgZ(132,"button",15),e.NdJ("click",function(){return t.cancel()}),e.ALo(133,"translate"),e._uU(134),e.ALo(135,"translate"),e.qZA(),e.TgZ(136,"button",16),e.NdJ("click",function(){return t.back()}),e.ALo(137,"translate"),e._uU(138),e.ALo(139,"translate"),e.qZA()()()()),2&i&&(e.xp6(4),e.Oqu(e.l
1cZ(5,44,"COMPONENTS.FORMS.REVIEW")),e.xp6(6),e.Oqu(e.lcZ(11,46,"COMPONENTS.BREADCRUMB.ESAP.PREQUALIFICATION")),e.xp6(6),e.Oqu(e.lcZ(17,48,"COMPONENTS.MOVESERVICE.MOVESERVICEREVIEW.NO")),e.xp6(3),e.Oqu(e.lcZ(20,50,"COMPONENTS.FORMS.ESAPSPECIFIC.FIELD.EXISTINGSOLAR.REVIEWLABEL")),e.xp6(7),e.Oqu(e.lcZ(27,52,"COMPONENTS.FORMS.ESAPSPECIFIC.ACCOUNTINFORMATION")),e.xp6(6),e.Q6J("ngIf",t.isBusinessApplication),e.xp6(1),e.AsE(" ",t.esapFormData.firstName," ",t.esapFormData.lastName," "),e.xp6(2),e.Oqu(e.lcZ(36,54,"COMPONENTS.FORMS.ESAPSPECIFIC.NAME")),e.xp6(5),e.Oqu(t.esapFormData.accountNumber),e.xp6(2),e.Oqu(e.lcZ(43,56,"COMPONENTS.FORMS.ESAPSPECIFIC.ACCOUNTNUMBER")),e.xp6(5),e.Oqu(t.esapFormData.address),e.xp6(3),e.AsE(" ",t.esapFormData.city,", NV ",t.esapFormData.zipcode," "),e.xp6(2),e.Oqu(e.lcZ(53,58,"COMPONENTS.FORMS.ESAPSPECIFIC.SERVICEADDRESS")),e.xp6(6),e.hij("",e.lcZ(59,60,"COMPONENTS.FORMS.FIELD.GROUP.APPLICATION"),":"),e.xp6(6),e.hij(" ",e.lcZ(65,62,t.eligibilityAnswerKey)," "),e.xp6(3),e.Oqu(e.lcZ(68,64,"COMPONENTS.FORMS.ESAPSPECIFIC.ELIGIBILITY")),e.xp6(5),e.Oqu(e.l
1cZ(73,66,t.newOrRecertificationAnswerKey)),e.xp6(3),e.Oqu(e.lcZ(76,68,"COMPONENTS.FORMS.ESAPSPECIFIC.NEWORRECERTIFICATION")),e.xp6(5),e.hij(" ",null==t.uploadedFileList?null:t.uploadedFileList.length," "),e.xp6(1),e.Q6J("ngIf",1===(null==t.uploadedFileList?null:t.uploadedFileList.length)),e.xp6(1),e.Q6J("ngIf",(null==t.uploadedFileList?null:t.uploadedFileList.length)>1),e.xp6(2),e.Oqu(e.lcZ(85,70,"COMPONENTS.FORMS.ESAPSPECIFIC.ELIGIBILITYDOCUMENTS")),e.xp6(3),e.Q6J("ngIf",!t.isBusinessApplication&&t.esapFormData.businessName),e.xp6(5),e.hij("",e.lcZ(93,72,"COMPONENTS.FORMS.FIELD.GROUP.CONTACTINFO"),":"),e.xp6(6),e.hij(" ",e.lcZ(99,74,t.contactMethodAnswerKey)," "),e.xp6(3),e.Oqu(e.lcZ(102,76,"COMPONENTS.FORMS.FIELD.CONTACT.PREFERREDCONTACTMETHOD.LABEL")),e.xp6(3),e.Q6J("ngIf",t.isEmailSelected),e.xp6(1),e.Q6J("ngIf",!t.isEmailSelected),e.xp6(1),e.Q6J("ngIf",t.isEmailSelected),e.xp6(1),e.Q6J("ngIf",!t.isEmailSelected),e.xp6(4),e.Oqu(t.esapFormData.homePhone),e.xp6(2),e.Oqu(e.lcZ(114,78,"COMPONENTS.FORMS.FIELD.CONTACT.HOMEPHONE.PLACEHOLDER")),e.xp6(5),e.Oqu(t.esapFormData.cellPhone),e.xp6(2),e.Oqu(e.lcZ(121,80,"COMPONENTS.FORMS.FIELD.CONTACT.CELLPHONE.PLACEHOLDER")),e.xp6(2),e.Q6J("ngIf",(null==t.esapFormData.businessPhone?null:t.esapFormData.businessPhone.length)&&t.esapFormData.xSubDocType===t.esapType.disadvBusOrNonProfitOrg),e.xp6(1),e.Q6J("ngIf",!(t.isMobileApp||t.recaptchaDisabled)),e.xp6(
15),e.uIk("aria-label",e.lcZ(129,82,"COMPONENTS.FORMS.BUTTON.SUBMIT")),e.xp6(2),e.hij(" ",e.lcZ(131,84,"COMPONENTS.FORMS.BUTTON.SUBMIT")," "),e.xp6(2),e.uIk("aria-label",e.lcZ(133,86,"COMPONENTS.FORMS.BUTTON.CANCEL")),e.xp6(2),e.hij(" ",e.lcZ(135,88,"COMPONENTS.FORMS.BUTTON.CANCEL")," "),e.xp6(2),e.uIk("aria-label",e.lcZ(137,90,"COMPONENTS.FORMS.BUTTON.BACK")),e.xp6(2),e.hij(" ",e.lcZ(139,92,"COMPONENTS.FORMS.BUTTON.BACK")," "))},dependencies:[h.O5,E.wT,r.X$]});var k,nt=s(97670);class ae extends Z.y{constructor(i){super(i),this.wizardService=i,this.esapFormData=new U,this.wizardService.sectionSwtichedEventEmitter.subscribe(t=>this.sectionActivatedHandler(t))}ngOnInit(){}sectionActivatedHandler(i){i._goToSectionID===u.Ou&&(this.esapFormData=i._eventData.formdata)}}(k=ae).breadCrumbModel=new L.$(u.Ou,"COMPONENTS.BREADCRUMB.GLOBAL.CONFIRMATION",!0),k.\u0275fac=function(i){return new(i||k)(e.Y36(R.a))},k.\u0275cmp=e.Xpm({type:k,selectors:[["esap-confirm"]],features:[e.qOj],decls:9,vars:8,consts:[[1,"clearfix"],[1,"col-xs-12"],[1,"bottom-nav"],[1,"nv-btn","nv-btn-blue","nv-btn-go",3,"moveToPage","setPageToRoot"]],template:function(i,t){1&i&&(e.TgZ(0,"div",0)(1,"div",1)(2,"p"),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"div",2)(6,"button",3),e._uU(7),e.ALo(8,"translate"),e.qZA()()()()),2&i&&(e.xp6(3),e.Oqu(e.lcZ(4,4,"COMPONENTS.FORMS.ESAPSPECIFIC.CONTENT.CONFIRMATION")),e.xp6(3),e.Q6J("moveToPage","/cleanenergy/solar/expanded-solar-access-program")("setPageToRoot",!0),e.xp6(1),e.hij(" ",e.lcZ(8,6,"COMPONENTS.FORMS.BUTTON.DONE")," "))},dependencies:[nt.a,r.X$]});class me{}me.value=new Q.W("PAGES.ESAP.HEADING",[X.breadCrumbModel,te.breadCrumbModel,ie.breadCrumbModel,ne.breadCrumbModel,ae.breadCrumbModel]);var at=s(58783),ge=s(3384),ot=s(42150);let st=(()=>{var n;class i extends at.P{constructor(a,o,l){super(me.value,l,void 0,a),this.translateService=a,this.navUtil=o,this.wizardService=l,this.featureFlag="esapApplication",this.featureFlagContent=ge.o.page,this.featureFlagOffMode=ge.D.defaultToAEM,this.navUtil.setWizardFlow(!0)}ngOnInit(){}}return(n=i).\u0275fac=function(a){return new(a||n)(e.Y36(r.sK),e.Y36(D.H),e.Y36(R.a))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-esap"]],features:[e.qOj],decls:12,vars:18,consts:[[3,"flag","content","offMode"],["padding-left","","padding-right","",1,"page-sidebar","picture-background","contentWidth15"],["tabindex","0"],[1,"pageWrapper"],[3,"pageTitle","activeSection","breadCrumbData"],[3,"nextSectionEvent","prevSectionEvent"]],template:function(a,o){1&a&&(e.TgZ(0,"feature-flag-content",0)(1,"div",1)(2,"h1",2),e._uU(3),e.ALo(4,"translate"),e.qZA()(),e.TgZ(5,"div",3)(6,"nve-wizard",4)(7,"esap-step-one",5),e.NdJ("nextSectionEvent",function(c){return o.goToNextPage(c)})("prevSectionEvent",function(c){return o.goToPrevPage(c)}),e.qZA(),e.TgZ(8,"esap-step-two",5),e.NdJ("nextSectionEvent",function(c){return o.goToNextPage(c)})("prevSectionEvent",function(c){return o.goToPrevPage(c)}),e.qZA(),e.TgZ(9,"esap-step-three",5),e.NdJ("nextSectionEvent",function(c){return o.goToNextPage(c)})("prevSectionEvent",function(c){return o.goToPrevPage(c)}),e.qZA(),e.TgZ(10,"esap-review",5),e.NdJ("nextSectionEvent",function(c){return o.goToNextPage(c)})("prevSectionEvent",function(c){return o.goToPrevPage(c)}),e.qZA(),e.TgZ(11,"esap-confirm",5),e.NdJ("nextSectionEvent",function(c){return o.goToNextPage(c)})("prevSectionEvent",function(c){return o.goToPrevPage(c)}),e.qZA()()()()),2&a&&(e.Q6J("flag",o.featureFlag)("content",o.featureFlagContent)("offMode",o.featureFlagOffMode),e.xp6(3),e.Oqu(e.lcZ(4,16,"PAGES.ESAP.HEADING")),e.xp6(3),e.Q6J("activeSection",o.wizardPageModel.activeSection)("breadCrumbData",o.wizardPageModel.breadCrumbArray),e.xp6(1),e.ekj("hide","esap-step1"!==o.wizardPageModel.activeSection),e.xp6(1),e.ekj("hide","esap-step2"!==o.wizardPageModel.activeSection),e.xp6(1),e.ekj("hide","esap-step3"!==o.wizardPageModel.activeSection),e.xp6(1),e.ekj("hide","esap-review"!==o.wizardPageModel.activeSection),e.xp6(1),e.ekj("hide","esap-confirm"!==o.wizardPageModel.activeSection))}
1,dependencies:[ot.P,re.p,X,te,ie,ne,ae,r.X$],styles:[".nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-checked[_ngcontent-%COMP%]{border-color:#d2c9c7}.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-inner[_ngcontent-%COMP%]{top:3px;left:3px;width:12px;height:12px}.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%]{border-color:#d2c9c7;background:#ffffff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-checked[_ngcontent-%COMP%]{border-color:#d2c9c7;background-color:#fff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-icon[_ngcontent-%COMP%]{width:20px;height:20px;border-width:1px;border-style:solid;border-radius:1px;border-color:#d2c9c7;background-color:#fff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-checked[_ngcontent-%COMP%] .checkbox-inner[_ngcontent-%COMP%]{top:0;left:7px;width:5px;height:14px}.nve[_ngcontent-%COMP%] .checkbox-md.checkbox-disabled[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-checkbox-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:.6;pointer-events:none;background:#ccc}.nve[_ngcontent-%COMP%] .radio-md.radio-disabled[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-radio-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.nve[_ngcontent-%COMP%] .radio-md.radio-disabled[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-radio-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%]{background:#cccccc}.nve[_ngcontent-%COMP%] ion-radio.radio-disabled[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.nve[_ngcontent-%COMP%] ion-radio.radio-disabled[_ngcontent-%COMP%]::part(container){background:#cccccc}.nve[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:1em;font-weight:400;color:#000}feature-flag-content[_ngcontent-%COMP%]{min-height:calc(100vh - 226px)}"]}),i})();var rt=s(87933),lt=s(33792);let ct=(()=>{var n;class i{constructor(){this.viewUsageService=(0,e.f3M)(lt.q),this.appConfig=(0,e.f3M)($._),this.logger=(0,e.f3M)(j.Y)}isEligible(a){var o=this;return(0,I.Z)(function*(){var l,c,p;const f=null===(l=o.appConfig.config.features[a])||void 0===l||null===(c=l.rateCodeGuard)||void 0===c?void 0:c.allow;if(!f)return!0;let M;const z="Error evaluating rate eligbility";try{M=yield o.viewUsageService.getMeterList()}catch(_){return o.logger.error(z,_),Promise.reject(_)}if(null!==(p=M)&&void 0!==p&&p.errorCode)return o.logger.error(z,M),Promise.reject(M);const w=f.charAt(f.length-1),K=Object.keys(M),B=w+f;return K.map(_=>M[_].rateClass).map(_=>B.includes(w+_+w)).reduce((_,Tt)=>_||Tt)})()}}return(n=i).\u0275fac=function(a){return new(a||n)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),i})(),pt=(()=>{var n;class i{constructor(){this.loader=(0,e.f3M)(de.D),this.rateCodeGuardService=(0,e.f3M)(ct),this.translate=(0,e.f3M)(r.sK),this.logger=(0,e.f3M)(j.Y),this.appConfig=(0,e.f3M)($._),this.userService=(0,e.f3M)(W.K)}validateRate(a){var o=this;return(0,I.Z)(function*(){o.loader.show();try{if(!(yield o.rateCodeGuardService.isEligible(a)))return o.getIneligibleMsg(a)}catch(p){var l,c;if(o.logger.error("Error evaluating rate eligbility for route",p),null===(l=o.appConfig.config.features[a])||void 0===l||null===(c=l.rateCodeGuard)||void 0===c||!c.allowOnError)return o.translate.instant("ALERTS.ACCOUNTGUARD.DISALLOWERROR")}finally{o.loader.hide()}return""})()}validateAccountType(a){var o,l;const c=null===(o=this.appConfig.config.features[a])||void 0===o||null===(l=o.accountTypeGuard)||void 0===l?void 0:l.deny;return c&&this.userService.user.currentAccount.accountType===c?this.getIneligibleMsg(a):""}validateBillType(a){var o,l;const c=null===(o=this.appConfig.config.features[a])||void 0===o||null===(l=o.billTypeGuard)||void 0===l?void 0:l.deny,p=this.userService.user.currentAccount.billType;if(c){if(c.includes("M")&&"M"===p&&!c.includes("D"))return this.getSelectDetailMsg(a);if(c.includes(p))return this.getIneligibleMsg(a)}return""}getIneligibleMsg(a){let o="";switch(a){case S.t.evccrApplication:o="COMPONENTS.FORMS.EVCCRSPECIFIC.CONTENT.INELIGIBLE.GENERAL";break;case S.t.esapApplication:o="COMPONENTS.ESAP.BUSINESSINELIGIBLE.ALERTMSG"}return this.translate.instant(o)+this.addSelectAcctMsgWhenMultiAccount()}addSelectAcctMsgWhenMultiAccount(){return this.userService.getUser().getAccountList().length>1?" "+this.translate.instant("ALERTS.ACCOUNTGUARD.SELECTANOTHERACCOUNT"):""}getSelectDetailMsg(a){if(a===S.t.evccrApplication)return this.translate.instant("COMPONENTS.FORMS.EVCCRSPECIFIC.CONTENT.INELIGIBLE.SELECTDETAIL")}}return(n=i).\u0275fac=function(a){return new(a||n)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),i})();const dt=[{path:"",component:st,canActivate:[(n=S.t.esapApplication,(0,I.Z)(function*(){var i;const t=(0,e.f3M)(pt),a=(0,e.f3M)(v.c),o=(0,e.f3M)(C.F0),c=null===(i=(0,e.f3M)($._).config.features)||void 0===i?void 0:i[n];if(null==c||!c.enabled)return!0;let p="";if(c.accountTypeGuard&&(p=t.validateAccountType(n)),""===p&&c.billTypeGuard&&(p=t.validateBillType(n)),""===p&&c.rateCodeGuard&&(p=yield t.validateRate(n)),p.length){const f=new b.h(A.J.ROUTEGUARD001.type,String(p),A.J.ROUTEGUARD001.title,A.J.ROUTEGUARD001.id);return a.setPendingGuardAlert(f),o.createUrlTree(["/",rt.yZ])}return!0}))]}];var n;let ut=(()=>{var n;class i{}return(n=i).\u0275fac=function(a){return new(a||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[C.Bz.forChild(dt),C.Bz]}),i})();var mt=s(37257),gt=s(29026),ht=s(49512),Et=s(1898),Ot=s(24039),Ct=s(31256),ft=s(1472);let vt=(()=>{var n;class i{}return(n=i).\u0275fac=function(a){return new(a||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[h.ez,d.u5,d.UX,r.aw,m.Pc,ut,mt.o,gt.D,ht.m,Et.w,Ot.F,E.a,ft.D,Ct.f,oe.Y]}),i})()},3384:(V,P,s)=>{s.d(P,{D:()=>d,o:()=>h});var h=(()=>{return(r=h||(h={}))[r.section=0]="section",r[r.page=1]="page",h;var r})(),d=(()=>{return(r=d||(d={}))[r.toggleDisplay=0]="toggleDisplay",r[r.defaultToAEM=1]="defaultToAEM",d;var r})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.