1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[9502],{42150:(X,y,u)=>{u.d(y,{P:()=>T});var a=u(55062),d=u(9129),N=u(17914),x=u(8085),b=u(89383),U=u(36895);const J=function(m){return{"display-inline-block":m}};function B(m,O){if(1&m&&(a.TgZ(0,"h1",10),a._uU(1),a.qZA()),2&m){const i=a.oxw();a.Q6J("ngClass",a.VKq(3,J,null!=i.linkName&&i._activeSection==i.linkShowTab)),a.uIk("aria-label",i.pageTitle),a.xp6(1),a.hij(" ",i.pageTitle," ")}}function v(m,O){if(1&m){const i=a.EpF();a.TgZ(0,"a",11),a.NdJ("click",function(){a.CHM(i);const c=a.oxw();return a.KtG(c.navigate())}),a._uU(1),a.qZA()}if(2&m){const i=a.oxw();a.xp6(1),a.Oqu(i.linkName)}}function e(m,O){if(1&m&&(a.TgZ(0,"li",12),a.ALo(1,"translate"),a.TgZ(2,"span"),a._uU(3),a.ALo(4,"translate"),a.qZA()()),2&m){const i=O.$implicit,o=a.oxw();a.ekj("hide",!i.displayBreadCrumb)("active",i.sectionID==o.activeSection||i.isSectionComplete),a.uIk("aria-label",a.lcZ(1,6,i.sectionTitle)),a.xp6(3),a.Oqu(a.lcZ(4,8,i.sectionTitle))}}function F(m,O){if(1&m&&(a.TgZ(0,"h1",14),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&m){const i=a.oxw().$implicit;a.xp6(1),a.hij(" ",a.lcZ(2,1,i.sectionTitle)," ")}}function _(m,O){if(1&m&&(a.TgZ(0,"div"),a.YNc(1,F,3,3,"h1",13),a.qZA()),2&m){const i=O.$implicit,o=a.oxw();a.xp6(1),a.Q6J("ngIf",i.sectionID==o.activeSection)}}let R=(()=>{var m;class O{constructor(o,c,E){this.loginService=o,this.navUtility=c,this._translateService=E,this.displayBreadCrumb=!0}set activeSection(o){if(this.breadCrumbData&&this.breadCrumbData.length>0)for(let c of this.breadCrumbData)if(c.getSectionID()===o){this.displayBreadCrumb=!!c.getDisplayBreadCrumb();break}this._activeSection=o}get activeSection(){return this._activeSection}navigate(){"startService"===this.fromPage?(this.loginService.genericLoginModalRedirectionName=this.linkDestination,this.navUtility.navigate(x.$.login,!0)):"registration"===this.fromPage&&this.navUtility.navigate(this.linkDestination,!1)}}return(m=O).\u0275fac=function(o){return new(o||m)(a.Y36(d.r),a.Y36(N.H),a.Y36(b.sK))},m.\u0275cmp=a.Xpm({type:m,selectors:[["nve-breadcrumb"]],inputs:{pageTitle:"pageTitle",breadCrumbData:"breadCrumbData",linkName:"linkName",linkDestination:"linkDestination",linkShowTab:"linkShowTab",fromPage:"fromPage",activeSection:"activeSection"},decls:12,vars:6,consts:[[1,"clearfix"],[1,"col-xs-12","only-mobile","margin-bottom-15"],["class","heading","tabindex","0",3,"ngClass",4,"ngIf"],[3,"click",4,"ngIf"],[1,"col-sm-12"],[1,"step-by-step"],[1,"stepContainer","statusBar"],["class","step contentWidth33","tabindex","0",3,"hide","active",4,"ngFor","ngForOf"],[1,"col-xs-12"],[4,"ngFor","ngForOf"],["tabindex","0",1,"heading",3,"ngClass"],[3,"click"],["tabindex","0",1,"step","contentWidth33"],["class","h3 visible-xs visible-sm only-mobile margin-left-15",4,"ngIf"],[1,"h3","visible-xs","visible-sm","only-mobile","margin-left-15"]],template:function(o,c){1&o&&(a.TgZ(0,"div",0)(1,"div",1),a.YNc(2,B,2,5,"h1",2),a.YNc(3,v,2,1,"a",3),a.qZA()(),a.TgZ(4,"div",0)(5,"div",4)(6,"div",5)(7,"ul",6),a.YNc(8,e,5,10,"li",7),a.qZA()()()(),a.TgZ(9,"div",0)(10,"div",8),a.YNc(11,_,2,1,"div",9),a.qZA()()),2&o&&(a.xp6(2),a.Q6J("ngIf",void 0!==c.pageTitle&&""!==c.pageTitle),a.xp6(1),a.Q6J("ngIf",null!=c.linkName&&c._activeSection==c.linkShowTab),a.xp6(4),a.ekj("hide",!c.displayBreadCrumb),a.xp6(1),a.Q6J("ngForOf",c.breadCrumbData),a.xp6(3),a.Q6J("ngForOf",c.breadCrumbData))},dependencies:[U.mk,U.sg,U.O5,b.X$],encapsulation:2}),O})();const P=["*"];let T=(()=>{var m;class O{}return(m=O).\u0275fac=function(o){return new(o||m)},m.\u0275cmp=a.Xpm({type:m,selectors:[["nve-wizard"]],inputs:{pageTitle:"pageTitle",breadCrumbData:"breadCrumbData",activeSection:"activeSection",linkName:"linkName",linkDestination:"linkDestination",linkShowTab:"linkShowTab",fromPage:"fromPage"},ngContentSelectors:P,decls:4,vars:7,consts:[[1,"status-bar-step","no-padding-row-mobile",3,"breadCrumbData","activeSection","pageTitle","linkName","linkDestination","linkShowTab","fromPage"],[1,"page-content"],[1,"content-wrapper"]],template:function(o,c){1&o&&(a.F$t(),a._UZ(0,"nve-breadcrumb",0),a.TgZ(1,"div",1)(2,"div",2),a.Hsn(3),a.qZA()()),2&o&&a.Q6J("breadCrumbData",c.breadCrumbData)("activeSection",c.activeSection)("pageTitle",c.pageTitle)("linkName",c.linkName)("linkDestination",c.linkDestination)("linkShowTab",c.linkShowTab)("fromPage",c.fromPage)},dependencies:[R],encapsulation:2}),O})()},49502:(X,y,u)=>{u.r(y),u.d(y,{SecurityCheckPageModule:()=>Je});var a=u(36895),d=u(24006),N=u(90603),x=u(36690),b=u(94700),U=u(58783),J=u(4317),B=u(59163),v=u(17914),e=u(55062),F=u(66988),_=u(34590),R=u(60039),P=u(93765),T=u(57323);var O=u(61213),i=u(9129),o=u(53132),c=u(8085);const E="ResetPassword",g="ResetPasswordConfirmation",h="ChangeUsername",M="ActivationCode",Q="checkuseremail";var A,w=u(75834),C=u(89383);function j(s,t){if(1&s&&(e.TgZ(0,"span",12),e._uU(1),e.qZA()),2&s){const n=e.oxw();e.xp6(1),e.hij(" ",n.invalidUsernameMessage,"")}}function se(s,t){1&s&&(e.TgZ(0,"span",12),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMPONENTS.MIGRATEUSERS.SECURITYUPGRADE.USERNOTAVAILABLE"),""))}class Z extends T.y{constructor(t,n,r,l,S,p,D,I,f){super(p),this.formBuilder=t,this.activationCodeService=n,this.userService=l,this.globalServiceErrorHandler=S,this.navUtil=D,this.loginService=I,this.translateService=f,this.invalidUsernameMessage="",this.userExistFlag=!1,this.usernameValidFlag=!1,this.userExist=!1,this.isDisabled=!1,this.isMobileApp=!1,this.recaptchaEventEmitter=new e.vpe,this.isMobileApp=r.is("hybrid")}set recaptchaResponse(t){t&&this.continue(t)}ngOnInit(){this.securityUpgradeForm=this.formBuilder.group({username:[this.userName,[d.kI.required,d.kI.pattern(o.i.userName)]]})}checkUserExist(t){0!==t.length?o.i.userName.test(this.newUsername)?(this.newUsername.length<8||this.newUsername.length>30)&&(this.usernameValidFlag=!1,this.invalidUsernameMessage=String(this.translateService.instant("COMPONENTS.MIGRATEUSERS.SECURITYUPGRADE.USERCHARACTERS"))):(this.usernameValidFlag=!1,this.userExistFlag=!1,this.invalidUsernameMessage=String(this.translateService.instant(this.newUsername.length<8||this.newUsername.length>30?"COMPONENTS.MIGRATEUSERS.SECURITYUPGRADE.USERLENGHT":"COMPONENTS.MIGRATEUSERS.SECURITYUPGRADE.ALPHANUMERIC"))):(this.usernameValidFlag=!1,this.userExistFlag=!1,this.invalidUsernameMessage=String(this.translateService.instant("COMPONENTS.REGISTRATION.CREATEMYACCOUNTSTEP.SIGNININFO.USERNAME.USERNAMEREQUIRED")))}onFocusUsername(){this.invalidUsernameMessage="",this.userExist=!1}continue(t){null!=t&&(this.isDisabled=!0,this.loginService.checkUserExist(this.newUsername).then(n=>{this.userExist=!!n.isUserFound,n.isUserFound||this.loginService.submitNewUsername(this.oldUsername,this.newUsername,this.companyCode).then(r=>{this.isDisabled=!1,this.nextStep()}).catch(()=>{this.isDisabled=!1,this.globalServiceErrorHandler.showToast()})}).catch(()=>{this.globalServiceErrorHandler.showToast()}))}sectionActivatedHandler(t){t._goToSectionID===h&&(Z.breadCrumbModel.displayBreadCrumb=!0,this.userID=t._eventData.userID,this.userEmail=t._eventData.userEmail,this.userName=t._eventData.userName,this.oldUsername=t._eventData.userName,this.userAccountNumber=t._eventData.userAccountNumber,this.userType=t._eventData.userType,this.companyCode=t._eventData.companyCode)}nextStep(){this.userService.user.principal.domainId=this.userName;const t=new P.w;t._goToSectionID=E,t._eventData={userID:this.userID,userName:this.oldUsername,newUsername:this.newUsername,userEmail:this.userEmail,userAccountNumber:this.userAccountNumber,userType:"BANNER",companyCode:this.companyCode},this.goToPage(t)}cancel(){this.navUtil.navigate(c.$.root,!0)}executeRecaptcha(){this.isMobileApp||this.recaptchaDisabled?this.continue(""):this.recaptchaEventEmitter.emit("step4")}ngOnDestroy(){Z.breadCrumbModel=new R.$(h,"COMPONENTS.BREADCRUMB.BANNER_MIGRATION.CHA
1NGE_USERNAME",!0)}}(A=Z).breadCrumbModel=new R.$(h,"COMPONENTS.BREADCRUMB.FORGOTPASSWORD.CHANGE_USERNAME",!1),A.\u0275fac=function(t){return new(t||A)(e.Y36(d.QS),e.Y36(F.x),e.Y36(N.t4),e.Y36(O.K),e.Y36(w.o),e.Y36(_.a),e.Y36(v.H),e.Y36(i.r),e.Y36(C.sK))},A.\u0275cmp=e.Xpm({type:A,selectors:[["nve-change-username"]],inputs:{recaptchaDisabled:"recaptchaDisabled",recaptchaResponse:"recaptchaResponse"},outputs:{nextSectionEvent:"nextSectionEvent",prevSectionEvent:"prevSectionEvent",recaptchaEventEmitter:"recaptchaEventEmitter"},features:[e.qOj],decls:24,vars:20,consts:[[1,"col-xs-12","margin-bottom-10"],["novalidate","",3,"formGroup"],[1,"clearfix","margin-top-10"],[1,"col-sm-5","col-md-4"],["type","text","formControlName","username",1,"form-control",3,"placeholder","ngModel","focus","ngModelChange","blur"],[1,"clearfix","margin-top-15"],["class","col-xs-12 validation-form-error","tabindex","0",4,"ngIf"],[1,"clearfix"],[1,"col-xs-12","margin-top-30"],[1,"bottom-nav"],["tabindex","0","aria-label","Continue",1,"nv-btn","nv-btn-blue","nv-btn-go",3,"disabled","click"],[1,"nv-btn","nv-btn-white","nv-btn-cancel",3,"click"],["tabindex","0",1,"col-xs-12","validation-form-error"]],template:function(t,n){1&t&&(e.TgZ(0,"div")(1,"div",0)(2,"p"),e._uU(3),e.ALo(4,"translate"),e.TgZ(5,"b"),e._uU(6),e.qZA()()(),e.TgZ(7,"form",1)(8,"div",2)(9,"div",3)(10,"input",4),e.NdJ("focus",function(){return n.onFocusUsername()})("ngModelChange",function(l){return n.newUsername=l})("blur",function(l){return n.checkUserExist(l.target.value)}),e.ALo(11,"translate"),e.qZA()()(),e.TgZ(12,"div",5),e.YNc(13,j,2,1,"span",6),e.YNc(14,se,3,3,"span",6),e.qZA(),e.TgZ(15,"div",7)(16,"div",8)(17,"div",9)(18,"button",10),e.NdJ("click",function(){return n.executeRecaptcha()}),e._uU(19),e.ALo(20,"translate"),e.qZA(),e.TgZ(21,"button",11),e.NdJ("click",function(){return n.cancel()}),e._uU(22),e.ALo(23,"translate"),e.qZA()()()()()()),2&t&&(e.xp6(3),e.hij(" ",e.lcZ(4,12,"COMPONENTS.MIGRATEUSERS.SECURITYUPGRADE.NEWUSERNAME")," "),e.xp6(3),e.Oqu(n.oldUsername),e.xp6(1),e.Q6J("formGroup",n.securityUpgradeForm),e.xp6(3),e.ekj("error",""!=n.invalidUsernameMessage&&!n.securityUpgradeForm.get("username").valid&&n.securityUpgradeForm.get("username").touched),e.s9C("placeholder",e.lcZ(11,14,"COMPONENTS.MIGRATEUSERS.SECURITYUPGRADE.USERNAMEPLACEHOLDER")),e.Q6J("ngModel",n.newUsername),e.xp6(3),e.Q6J("ngIf",n.securityUpgradeForm.get("username").dirty&&""!=n.invalidUsernameMessage&&!n.usernameValidFlag),e.xp6(1),e.Q6J("ngIf",n.userExist),e.xp6(4),e.Q6J("disabled",!n.securityUpgradeForm.valid||n.usernameValidFlag||n.securityUpgradeForm.get("username").dirty&&""!=n.invalidUsernameMessage&&!n.usernameValidFlag),e.xp6(1),e.hij(" ",e.lcZ(20,16,"COMPONENTS.MIGRATEUSERS.SECURITYUPGRADE.CONTINUE")," "),e.xp6(3),e.hij(" ",e.lcZ(23,18,"COMPONENTS.FORGOTPASSWORD.CANCEL")," "))},dependencies:[a.O5,d._Y,d.Fj,d.JJ,d.JL,d.sg,d.u,C.X$],encapsulation:2});var G,V=u(1675);const ae=["activationCodeInput"];function ie(s,t){1&s&&(e.TgZ(0,"span",16),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMPONENTS.FORGOTPASSWORD.ACTIVATIONCODE.ACTIVATIONCODEERROR"),""))}class L extends T.y{constructor(t,n,r,l,S,p,D,I,f,$){super(D),this.formBuilder=t,this.activationCodeService=n,this.userService=l,this.translateService=S,this.globalServiceErrorHandler=p,this.navUtil=I,this.forgotPasswordService=f,this.zone=$,this.activationCodeError=!1,this.numberOfattempts=0,this.isMobileApp=!1,this.recaptchaEventEmitter=new e.vpe,this.isMobileApp=r.is("hybrid")}set recaptchaResponse(t){t&&this.submitActivationCode(t)}ngOnInit(){this.activationCodeForm=this.formBuilder.group({activationCode:["",[d.kI.required,d.kI.minLength(6),d.kI.minLength(6),d.kI.pattern(o.i.emailActivationCode)]]})}ngAfterViewInit(){this.activationCodeInput.nativeElement.addEventListener("input",()=>{this.zone.run(()=>{this.activationCodeForm.get("activationCode")})})}submitActivationCode(t){null!=t&&this.activationCodeService.validateActivationCode("SECURITY_UPGRADE",encodeURI(this.activationCode),this.userName,this.userID,t).then(n=>{"success"===n.status?this.nextStep():(this.activationCodeError=!0,this.numberOfattempts++),this.numberOfattempts>=3&&this.resendActivationCode()}).catch(n=>{this.globalServiceErrorHandler.showToast()})}sectionActivatedHandler(t){t._goToSectionID===M&&(this.userID=t._eventData.userID,this.userEmail=t._eventData.userEmail,this.userName=t._eventData.userName,this.userAccountNumber=t._eventData.userAccountNumber,this.userType=t._eventData.userType,this.companyCode=t._eventData.companyCode)}nextStep(){if("OKTA"===this.userType||"BANNER"===this.userType){this.userService.user.principal.domainId=this.userName;const t=new P.w;t._goToSectionID=E,t._eventData={userID:this.userID,userName:this.userName,newUsername:this.userName,userEmail:this.userEmail,userAccountNumber:this.userAccountNumber,userType:this.userType,companyCode:this.companyCode},this.goToPage(t)}else"BANNER_SAME_USERNAME"===this.userType&&this.forgotPasswordService.checkSameUser(this.userName).then(t=>{const n=new P.w;this.userService.user.principal.domainId=this.userName,n._eventData={userID:this.userID,userName:this.userName,newUsername:this.userName,userEmail:this.userEmail,userAccountNumber:this.userAccountNumber,userType:this.userType,companyCode:this.companyCode},t&&t.isSameUser?n._goToSectionID=E:(Z.breadCrumbModel.setDisplayBreadCrumb(!0),n._goToSectionID=h),this.goToPage(n)}).catch(()=>{})}resendActivationCode(){this.activationCodeService.sendActivationCode(this.userName,this.userAccountNumber,"SECURITY_UPGRADE",this.userEmail).then(t=>{"success"===t.status?(this.numberOfattempts=0,this.globalServiceErrorHandler.showPopup(String(this.translateService.instant("COMPONENTS.FORGOTPASSWORD.VERIFICATION_CODE.PASSCODE_RESENT")))):this.globalServiceErrorHandler.showToast(String(this.translateService.instant("COMPONENTS.FORGOTPASSWORD.VERIFICATION_CODE.ERROR_SENDING_ACTIVATION_CODE")))}).catch(t=>{this.globalServiceErrorHandler.showToast()})}cancel(){this.navUtil.navigate(c.$.root,!0)}executeRecaptcha(){this.isMobileApp||this.recaptchaDisabled?this.submitActivationCode(""):this.recaptchaEventEmitter.emit("step2")}ngOnDestroy(){L.breadCrumbModel=new R.$(M,"COMPONENTS.BREADCRUMB.FORGOTPASSWORD.ACTIVECODE",!1)}}(G=L).breadCrumbModel=new R.$(M,"COMPONENTS.BREADCRUMB.FORGOTPASSWORD.ACTIVECODE",!0),G.\u0275fac=function(t){return new(t||G)(e.Y36(d.QS),e.Y36(F.x),e.Y36(N.t4),e.Y36(O.K),e.Y36(C.sK),e.Y36(w.o),e.Y36(_.a),e.Y36(v.H),e.Y36(V.g),e.Y36(e.R0b))},G.\u0275cmp=e.Xpm({type:G,selectors:[["nve-activation-code"]],viewQuery:function(t,n){if(1&t&&e.Gf(ae,5),2&t){let r;e.iGM(r=e.CRH())&&(n.activationCodeInput=r.first)}},inputs:{recaptchaDisabled:"recaptchaDisabled",recaptchaResponse:"recaptchaResponse"},outputs:{nextSectionEvent:"nextSectionEvent",prevSectionEvent:"prevSectionEvent",recaptchaEventEmitter:"recaptchaEventEmitter"},features:[e.qOj],decls:42,vars:32,consts:[["id","forgotPasswordAccountIdentificationSection"],[1,"col-xs-12"],[1,"col-xs-12","margin-bottom-10"],["novalidate","",3,"formGroup","ngSubmit"],[1,"clearfix","margin-top-10"],[1,"col-sm-5","col-md-4"],["tabindex","0","aria-label","Please Enter the activation Code","role","form","type","text","formControlName","activationCode",1,"form-control",3,"placeholder","ngModel","ngModelChange"],["activationCodeInput",""],[1,"clearfix","margin-top-15"],[3,"click"],["class","col-xs-12 validation-form-error","tabindex","0",4,"ngIf"],[1,"clearfix"],[1,"col-xs-12","margin-top-30"],[1,"bottom-nav"],["id","nve-continuesubmit",1,"nv-btn","nv-btn-blue","nv-btn-go",3,"disabled","click"],[1,"nv-btn","nv-btn-white","nv-btn-cancel",3,"click"],["tabindex","0",1,"col-xs-12","validation-form-error"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"h2"),e._uU(3),e.ALo(4,"translate"),e.qZA()(),e.TgZ(5,"div",1)(6,"p"),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.TgZ(9,"div",1)(10,"p"),e._uU(11),e.qZA()(),e.TgZ(12,"div",1)(13,"p"),e._uU(14),e.ALo(15,"translate"),e.qZA()(),e.TgZ(16,"div",2)(17,"strong"),e._uU(18),e.ALo(19,"translate"),e.qZA()(),e.TgZ(20,"form",3),e.NdJ("ngSubmit",function(){return n.executeRecaptcha()}),e.TgZ(21,"div",4)(22,"div",5)(23,"input",6,7),e.NdJ("ngModelChange",function(l){return n.activationCode=l}),e.ALo(25,"translate"),e.qZA()()(),e.TgZ(26,"div",8)(27,"div",5)(28,"
1span")(29,"a",9),e.NdJ("click",function(){return n.resendActivationCode()}),e._uU(30),e.ALo(31,"translate"),e.qZA()(),e.YNc(32,ie,3,3,"span",10),e.qZA()(),e.TgZ(33,"div",11)(34,"div",12)(35,"div",13)(36,"button",14),e.NdJ("click",function(){return n.executeRecaptcha()}),e._uU(37),e.ALo(38,"translate"),e.qZA(),e.TgZ(39,"button",15),e.NdJ("click",function(){return n.cancel()})("click",function(){return n.cancel()}),e._uU(40),e.ALo(41,"translate"),e.qZA()()()()()()),2&t&&(e.xp6(3),e.Oqu(e.lcZ(4,16,"COMPONENTS.FORGOTPASSWORD.ACTIVATIONCODE.TITLE")),e.xp6(4),e.AsE("",e.lcZ(8,18,"COMPONENTS.FORGOTPASSWORD.ACTIVATIONCODE.WAITSTATUS")," ",n.userName,""),e.xp6(4),e.Oqu(n.userEmail),e.xp6(3),e.Oqu(e.lcZ(15,20,"COMPONENTS.FORGOTPASSWORD.ACTIVATIONCODE.INFORMATION")),e.xp6(4),e.Oqu(e.lcZ(19,22,"COMPONENTS.FORGOTPASSWORD.ACTIVATIONCODE.ACTIVATIONCODE")),e.xp6(2),e.Q6J("formGroup",n.activationCodeForm),e.xp6(3),e.ekj("error",n.activationCodeError),e.s9C("placeholder",e.lcZ(25,24,"COMPONENTS.FORGOTPASSWORD.ACTIVATIONCODE.ACTIVATIONCODE")),e.Q6J("ngModel",n.activationCode),e.xp6(7),e.Oqu(e.l
1cZ(31,26,"COMPONENTS.FORGOTPASSWORD.ACTIVATIONCODE.RESENDACTIVATIONCODE")),e.xp6(2),e.Q6J("ngIf",n.activationCodeError),e.xp6(4),e.Q6J("disabled",!n.activationCodeForm.get("activationCode").valid),e.xp6(1),e.hij(" ",e.lcZ(38,28,"COMPONENTS.FORGOTPASSWORD.CONTINUE")," "),e.xp6(3),e.hij(" ",e.lcZ(41,30,"COMPONENTS.FORGOTPASSWORD.WIZARD.CANCEL")," "))},dependencies:[a.O5,d._Y,d.Fj,d.JJ,d.JL,d.sg,d.u,C.X$],encapsulation:2});var k,ee=u(639);const re=["emailInput"];function oe(s,t){1&s&&(e.TgZ(0,"span",14),e.ALo(1,"translate"),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&s&&(e.uIk("aria-label",e.lcZ(1,2,"COMPONENTS.FORGOTPASSWORD.GENERICERROR")),e.xp6(2),e.hij(" ",e.lcZ(3,4,"COMPONENTS.FORGOTPASSWORD.INVALIDEMAIL"),""))}function ce(s,t){1&s&&(e.TgZ(0,"span",14),e.ALo(1,"translate"),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&s&&(e.uIk("aria-label",e.lcZ(1,2,"COMPONENTS.FORGOTPASSWORD.DIFFERENT_USER_SAME_MAIL_MESSAGE")),e.xp6(2),e.hij(" ",e.lcZ(3,4,"COMPONENTS.FORGOTPASSWORD.DIFFERENT_USER_SAME_MAIL_MESSAGE"),""))}class H extends T.y{constructor(t,n,r,l,S,p,D,I,f){super(S),this.activationCodeService=t,this.formBuilder=n,this.forgotPasswordService=r,this.globalServiceErrorHandler=l,this.navUtil=p,this.translateService=D,this.zone=I,this.formInvalidErrorMessage=!1,this.isEmailValid=!1,this.isDifferenrUserSameMail=!1,f&&f.data.transient&&(this.username=f.data.transient.username,this.userType=f.data.transient.userType,this.companyID=f.data.transient.companyID,this.userID=f.data.transient.userID,L.breadCrumbModel.displayBreadCrumb=!0)}set pageTitle(t){var n,r;(null===(n=history)||void 0===n||null===(r=n.state)||void 0===r||!r.username)&&"Security Upgrade"===t&&this.navUtil.navigate(c.$.myAccount,!0)}ngOnInit(){this.checkUserEmailForm=this.formBuilder.group({email:["",[d.kI.required,d.kI.minLength(5),this.validateEmail(o.i.email)]]})}ngAfterViewInit(){this.emailInput.nativeElement.addEventListener("input",()=>{this.zone.run(()=>{this.isEmailValid=this.checkUserEmailForm.get("email").valid})})}validateEmail(t){return n=>{const r=n.value?n.value:"";return!t.test(r)||r.length<5?{emailErr:!0}:null}}sectionActivatedHandler(t){t._goToSectionID==Q&&(this.username=t._eventData.userName,this.userType=t._eventData.userType)}checkUserEmail(){this.zone.run(()=>{this.formInvalidErrorMessage=!1;const t={email:this.userEmail,username:this.username,companyID:this.companyID,userType:this.userType};console.log("Forgot Password Data",t),this.forgotPasswordService.checkUserEmail(t).then(n=>{n.isSuccess&&n.ResponseBody?(this.accountNumber=n.ResponseBody.accountNumber,this.companyID=String(this.accountNumber).substring(0,2),this.formInvalidErrorMessage=!1,this.activationCodeService.sendActivationCode(this.username,"","SECURITY_UPGRADE",this.userEmail,!0).then(r=>{this.next()}).catch(()=>{this.globalServiceErrorHandler.showToast(String(this.translateService.instant("INTERNALSERVERERRORMESSAGE")))})):"500"===n.ResponseBody.errorCode?this.globalServiceErrorHandler.showToast(String(this.translateService.instant("INTERNALSERVERERRORMESSAGE"))):!n.isSuccess&&n.ResponseBody&&n.ResponseBody.isDifferenrUserSameMail?this.isDifferenrUserSameMail=!0:this.formInvalidErrorMessage=!0})})}next(){if(!this.formInvalidErrorMessage){const t=new P.w;t._goToSectionID=M,t._eventData={userID:this.userID,userEmail:this.userEmail,userName:this.username,userType:this.userType,userAccountNumber:this.accountNumber,companyCode:this.companyID},this.zone.run(()=>{this.goToPage(t)})}}cancel(){this.navUtil.navigate(c.$.root,!0)}cancelEvent(t){(13===t.keyCode||32===t.keyCode)&&this.cancel()}}(k=H).breadCrumbModel=new R.$(Q,"COMPONENTS.BREADCRUMB.FORGOTPASSWORD.ACCOUNTINFO",!0),k.\u0275fac=function(t){return new(t||k)(e.Y36(F.x),e.Y36(d.QS),e.Y36(V.g),e.Y36(w.o),e.Y36(_.a),e.Y36(v.H),e.Y36(C.sK),e.Y36(e.R0b),e.Y36(ee.j))},k.\u0275cmp=e.Xpm({type:k,selectors:[["nve-check-user-email-component"]],viewQuery:function(t,n){if(1&t&&e.Gf(re,5),2&t){let r;e.iGM(r=e.CRH())&&(n.emailInput=r.first)}},inputs:{pageTitle:"pageTitle"},outputs:{nextSectionEvent:"nextSectionEvent",prevSectionEvent:"prevSectionEvent"},features:[e.qOj],decls:24,vars:22,consts:[["id","forgotPasswordAccountIdentificationSection"],[1,"col-xs-12","margin-bottom-10"],[1,"clearfix","margin-top-15"],["class","col-xs-12 validation-form-error","tabindex","0",4,"ngIf"],[3,"formGroup"],[1,"clearfix","margin-top-10"],[1,"col-sm-5","col-md-4"],["type","email","formControlName","email",1,"form-control",3,"placeholder","ngModel","ngModelChange"],["emailInput",""],[1,"clearfix"],[1,"col-xs-12","margin-top-30"],[1,"bottom-nav"],["id","nve-continuesubmit",1,"nv-btn","nv-btn-blue","nv-btn-go",3,"disabled","click"],[1,"nv-btn","nv-btn-white","nv-btn-cancel",3,"click","keypress"],["tabindex","0",1,"col-xs-12","validation-form-error"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"strong"),e._uU(3),e.ALo(4,"translate"),e.qZA()(),e.TgZ(5,"div",2),e.YNc(6,oe,4,6,"span",3),e.YNc(7,ce,4,6,"span",3),e.qZA(),e.TgZ(8,"form",4)(9,"div",5)(10,"div",6)(11,"input",7,8),e.NdJ("ngModelChange",function(l){return n.userEmail=l}),e.ALo(13,"translate"),e.ALo(14,"translate"),e.qZA()()(),e.TgZ(15,"div",9)(16,"div",10)(17,"div",11)(18,"button",12),e.NdJ("click",function(){return n.checkUserEmail()}),e._uU(19),e.ALo(20,"translate"),e.qZA(),e.TgZ(21,"button",13),e.NdJ("click",function(){return n.cancel()})("keypress",function(l){return n.cancelEvent(l)}),e._uU(22),e.ALo(23,"translate"),e.qZA()()()()()()),2&t&&(e.xp6(3),e.Oqu(e.l
1cZ(4,12,"COMPONENTS.FORGOTPASSWORD.ENTEREMAIL")),e.xp6(3),e.Q6J("ngIf",n.formInvalidErrorMessage),e.xp6(1),e.Q6J("ngIf",n.isDifferenrUserSameMail),e.xp6(1),e.Q6J("formGroup",n.checkUserEmailForm),e.xp6(3),e.ekj("error",n.checkUserEmailForm.get("email").hasError("emailErr")&&n.checkUserEmailForm.get("email").touched),e.s9C("placeholder",e.lcZ(13,14,"COMPONENTS.FORGOTPASSWORD.EMAIL")),e.Q6J("ngModel",n.userEmail),e.uIk("aria-label",e.lcZ(14,16,"COMPONENTS.FORGOTPASSWORD.EMAIL")),e.xp6(7),e.Q6J("disabled",!n.isEmailValid),e.xp6(1),e.hij(" ",e.lcZ(20,18,"COMPONENTS.FORGOTPASSWORD.CONTINUE")," "),e.xp6(3),e.hij(" ",e.lcZ(23,20,"COMPONENTS.FORGOTPASSWORD.CANCEL")," "))},dependencies:[a.O5,d._Y,d.Fj,d.JJ,d.JL,d.sg,d.u,C.X$],encapsulation:2});var W,q=u(15861),le=u(1912),ue=u(25426),de=u(29337);function pe(s,t){if(1&s){const n=e.EpF();e.TgZ(0,"button",9),e.NdJ("click",function(){e.CHM(n);const l=e.oxw();return e.KtG(l.continue())}),e.ALo(1,"translate"),e._uU(2),e.ALo(3,"translate"),e.qZA()}2&s&&(e.uIk("aria-label",e.lcZ(1,2,"COMPONENTS.FORGOTPASSWORD.MYDASHBOARD")),e.xp6(2),e.hij(" ",e.lcZ(3,4,"COMPONENTS.FORGOTPASSWORD.MYDASHBOARD")," "))}function me(s,t){if(1&s){const n=e.EpF();e.TgZ(0,"button",9),e.NdJ("click",function(){e.CHM(n);const l=e.oxw();return e.KtG(l.continue())}),e.ALo(1,"translate"),e._uU(2),e.ALo(3,"translate"),e.qZA()}2&s&&(e.uIk("aria-label",e.lcZ(1,2,"COMPONENTS.FORGOTPASSWORD.SIGNIN")),e.xp6(2),e.hij(" ",e.lcZ(3,4,"COMPONENTS.FORGOTPASSWORD.SIGNIN")," "))}class z extends T.y{constructor(t,n,r,l,S,p){super(t),this.navUtil=n,this.login=r,this.userService=l,this.accountListService=S,this.storage=p,this.isUserEnrolledInMFA=!1}sectionActivatedHandler(t){t._goToSectionID===g&&(this.userName=t._eventData.userName,this.userEmail=t._eventData.userEmail,this.userType=t._eventData.userType,this.password=t._eventData.password,this.maskedEmail=de.w.maskEmail(t._eventData.userEmail),this.isUserEnrolledInMFA=t._eventData.isUserEnrolledInMFA,this.navUtil.resetWizardNav())}continue(){var t=this;return(0,q.Z)(function*(){let n=yield t.storage.getFingerPrintEnabledUser();n&&(n=n.toLowerCase()),t.userName.toLowerCase()===n?t.login.handleUnauthorizedFingerPrintUser().then(()=>{t.navigateToDashboard()}).catch(()=>{t.navigateToDashboard()}):t.isUserEnrolledInMFA?t.login.authAndGetToken({username:t.userName,password:t.password}).then(()=>{t.password=void 0,t.navigateToDashboard()}):t.navUtil.navigate(c.$.myAccount,!0).then(()=>{})})()}navigateToDashboard(){var t=this;return(0,q.Z)(function*(){if(t.userService.user.isLoggedIn&&void 0===t.userService.user.currentAccount){const n=t.accountListService.accountReadyEmitter.subscribe(()=>{t.navUtil.navigate(c.$.myAccount,!0),n.unsubscribe()})}})()}}(W=z).breadCrumbModel=new R.$(g,"",!1),W.\u0275fac=function(t){return new(t||W)(e.Y36(_.a),e.Y36(v.H),e.Y36(i.r),e.Y36(O.K),e.Y36(le.x),e.Y36(ue.Ux))},W.\u0275cmp=e.Xpm({type:W,selectors:[["nve-reset-password-confirmatiom-component"]],outputs:{nextSectionEvent:"nextSectionEvent",prevSectionEvent:"prevSectionEvent"},features:[e.qOj],decls:22,vars:30,consts:[["id","forgotPasswordResetPasswordConfirmation"],[1,"container"],["tabindex","0",1,"heading"],["tabindex","0"],[3,"innerHTML"],[1,"clearfix"],[1,"col-xs-12"],[1,"bottom-nav","text-right"],["class","nv-btn nv-btn-blue","tabindex","0",3,"click",4,"ngIf"],["tabindex","0",1,"nv-btn","nv-btn-blue",3,"click"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"h1",2),e.ALo(3,"translate"),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.TgZ(6,"p",3),e.ALo(7,"translate"),e.ALo(8,"translate"),e._uU(9),e.ALo(10,"translate"),e.ALo(11,"translate"),e._UZ(12,"strong",4),e.qZA(),e.TgZ(13,"p",3),e.ALo(14,"translate"),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"div",5)(18,"div",6)(19,"div",7),e.YNc(20,pe,4,6,"button",8),e.YNc(21,me,4,6,"button",8),e.qZA()()()()()),2&t&&(e.xp6(2),e.uIk("aria-label",e.lcZ(3,14,"COMPONENTS.FORGOTPASSWORD.PASSWORDRESETTED")),e.xp6(2),e.hij(" ",e.lcZ(5,16,"COMPONENTS.FORGOTPASSWORD.PASSWORDRESETTED")," "),e.xp6(2),e.pe$("aria-label","",e.lcZ(7,18,"COMPONENTS.FORGOTPASSWORD.PASSWORDRESETCONFIRMATION1")," ",n.userName,"",e.lcZ(8,20,"COMPONENTS.FORGOTPASSWORD.PASSWORDRESETCONFIRMATION2"),", ",n.userEmail,""),e.xp6(3),e.lnq(" ",e.lcZ(10,22,"COMPONENTS.FORGOTPASSWORD.PASSWORDRESETCONFIRMATION1")," ",n.userName," ",e.lcZ(11,24,"COMPONENTS.FORGOTPASSWORD.PASSWORDRESETCONFIRMATION2"),""),e.xp6(3),e.Q6J("innerHTML",n.maskedEmail,e.oJD),e.xp6(1),e.uIk("aria-label",e.lcZ(14,26,"COMPONENTS.FORGOTPASSWORD.LOGGEDIN")),e.xp6(2),e.hij(" ",e.lcZ(16,28,"COMPONENTS.FORGOTPASSWORD.LOGGEDIN")," "),e.xp6(5),e.Q6J("ngIf",!n.isUserEnrolledInMFA),e.xp6(1),e.Q6J("ngIf",n.isUserEnrolledInMFA))},dependencies:[a.O5,C.X$],encapsulation:2});var Y,he=u(86147),Se=u(97670),Ee=u(15083);const Oe=["passwordInput"],ve=["confirmPasswordInput"];function ge(s,t){1&s&&(e.TgZ(0,"div",25)(1,"p",26),e.ALo(2,"translate"),e._uU(3),e.ALo(4,"translate"),e.TgZ(5,"a",27),e.ALo(6,"translate"),e.TgZ(7,"b"),e._uU(8),e.ALo(9,"translate"),e.qZA()()()()),2&s&&(e.xp6(1),e.uIk("aria-label",e.lcZ(2,6,"COMPONENTS.FORGOTPASSWORD.SESSIONEXPIRED")),e.xp6(2),e.hij(" ",e.lcZ(4,8,"COMPONENTS.FORGOTPASSWORD.SESSIONEXPIRED")," "),e.xp6(2),e.Q6J("moveToPage","/my-account/forgot-password")("setPageToRoot",!0),e.uIk("aria-label",e.lcZ(6,10,"COMPONENTS.FORGOTPASSWORD.SESSIONEXPIREDLINK")),e.xp6(3),e.Oqu(e.l
1cZ(9,12,"COMPONENTS.FORGOTPASSWORD.SESSIONEXPIREDLINK")))}function Te(s,t){1&s&&(e.TgZ(0,"p",28),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMPONENTS.REGISTRATION.CREATEMYACCOUNTSTEP.SIGNININFO.PASSWORD.PASSWORDMATCHESPASSWORD")," "))}function Ce(s,t){if(1&s&&(e.TgZ(0,"p",28),e._uU(1),e.qZA()),2&s){const n=t.$implicit;e.xp6(1),e.hij(" ",n.reason," ")}}function Ae(s,t){if(1&s&&(e.ynx(0),e.YNc(1,Ce,2,1,"p",29),e.BQk()),2&s){const n=e.oxw();e.xp6(1),e.Q6J("ngForOf",n.resetPasswordForm.get("password").errors.error)}}function fe(s,t){1&s&&(e.TgZ(0,"span"),e.ALo(1,"translate"),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&s&&(e.uIk("aria-label",e.lcZ(1,2,"COMPONENTS.FORGOTPASSWORD.SHOWPASSWORD")),e.xp6(2),e.hij("",e.lcZ(3,4,"COMPONENTS.FORGOTPASSWORD.SHOWPASSWORD")," "))}function Re(s,t){1&s&&(e.TgZ(0,"span"),e.ALo(1,"translate"),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&s&&(e.uIk("aria-label",e.lcZ(1,2,"COMPONENTS.FORGOTPASSWORD.HIDEPASSWORD")),e.xp6(2),e.Oqu(e.lcZ(3,4,"COMPONENTS.FORGOTPASSWORD.HIDEPASSWORD")))}function Ne(s,t){1&s&&(e.TgZ(0,"p",26),e.ALo(1,"translate"),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&s&&(e.uIk("aria-label",e.lcZ(1,2,"COMPONENTS.FORGOTPASSWORD.PASSWORDMISMATCH")),e.xp6(2),e.hij(" ",e.lcZ(3,4,"COMPONENTS.FORGOTPASSWORD.PASSWORDMISMATCH")," "))}function _e(s,t){1&s&&(e.TgZ(0,"div")(1,"p",26),e.ALo(2,"translate"),e._uU(3),e.ALo(4,"translate"),e.qZA()()),2&s&&(e.xp6(1),e.uIk("aria-label",e.lcZ(2,2,"COMPONENTS.FORGOTPASSWORD.INVALIDPASSWORD")),e.xp6(2),e.hij(" ",e.lcZ(4,4,"COMPONENTS.FORGOTPASSWORD.INVALIDPASSWORD")," "))}function Pe(s,t){1&s&&(e.TgZ(0,"p",30),e.ALo(1,"translate"),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&s&&(e.uIk("aria-label",e.lcZ(1,2,"COMPONENTS.FORGOTPASSWORD.VERYWEAKPASSWORD")),e.xp6(2),e.hij(" ",e.lcZ(3,4,"COMPONENTS.FORGOTPASSWORD.VERYWEAKPASSWORD")," "))}function De(s,t){1&s&&(e.TgZ(0,"p",30),e.ALo(1,"translate"),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&s&&(e.uIk("aria-label",e.lcZ(1,2,"COMPONENTS.FORGOTPASSWORD.WEAKPASSWORD")),e.xp6(2),e.hij(" ",e.lcZ(3,4,"COMPONENTS.FORGOTPASSWORD.WEAKPASSWORD")," "))}function Ie(s,t){1&s&&(e.TgZ(0,"p",31),e.ALo(1,"translate"),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&s&&(e.uIk("aria-label",e.lcZ(1,2,"COMPONENTS.FORGOTPASSWORD.GOODPASSWORD")),e.xp6(2),e.hij(" ",e.lcZ(3,4,"COMPONENTS.FORGOTPASSWORD.GOODPASSWORD")," "))}function be(s,t){1&s&&(e.TgZ(0,"p",31),e.ALo(1,"translate"),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&s&&(e.uIk("aria-label",e.lcZ(1,2,"COMPONENTS.FORGOTPASSWORD.STRONGPASSWORD")),e.xp6(2),e.hij(" ",e.lcZ(3,4,"COMPONENTS.FORGOTPASSWORD.STRONGPASSWORD")," "))}function Me(s,t){1&s&&(e.TgZ(0,"p",31),e.ALo(1,"translate"),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&s&&(e.uIk("aria-label",e.lcZ(1,2,"COMPONENTS.FORGOTPASSWORD.VERYSTRONGPASSWORD")),e.xp6(2),e.hij(" ",e.lcZ(3,4,"COMPONENTS.FORGOTPASSWORD.VERYSTRONGPASSWORD")," "))}class K extends T.y{constructor(t,n,r,l,S,p,D,I,f,$,Be){super(r),this.formBuilder=t,this.forgotPasswordService=n,this.globalServiceErrorHandler=l,this.navUtil=p,this.translateService=D,this.formValidatorUtility=I,this.userService=f,this.loginService=$,this.zone=Be,this.passwordRelated={passwordStrengthScore:void 0,isPasswordShow:!1,usernameInPassword:!1,passwordEqualsPassword:!1,passwordContainSpecialCharacters:!1,passwordLength:!1},this.isMobileApp=!1,this.recaptchaEventEmitter=new e.vpe,this.resetPasswordFormInvalidErrorMessage=!1,this.passwordStrengthScore=100,this.userName="",this.newUsername="",this.userNameDisplay="",this.showPasswordInvalidMessage=!1,this.show=!0,this.passwordInputType="password",this.isUserEnrolledInMFA=!1,this.isFlagSessionExpired=!1,this.isMobileApp=S.is("hybrid")}set recaptchaResponse(t){t&&this.resetpassword(t)}ngOnInit(){this.resetPasswordForm=this.formBuilder.group({password:["",[],this.formValidatorUtility.validatePassword()],confirmPassword:["",d.kI.required]},{validator:this.matchingPasswords("password","confirmPassword")}),this.resetPasswordForm.valueChanges.subscribe(t=>{this.resetPasswordFormInvalidErrorMessage=!1})}ngAfterViewInit(){this.passwordInput.nativeElement.addEventListener("input",()=>{this.zone.run(()=>{this.passwordRelated.usernameInPassword=this.passwordRelated.usernameInPassword})}),this.confirmPasswordInput.nativeElement.addEventListener("input",()=>{this.zone.run(()=>{this.passwordRelated.usernameInPassword=this.passwordRelated.usernameInPassword})})}togglePasswordDisplay(){this.passwordInputType=this.show?"text":"password",this.show=!this.show}matchingPasswords(t,n){return r=>{if(r.controls[t].value!==r.controls[n].value)return{mismatchedPasswords:!0}}}passwordStrength(t){void 0===t?this.passwordStrengthScore=100:(t+="",this.passwordStrengthScore=zxcvbn(t).score)}resetpassword(t){var n=this;if(null!=t){const r={_userId:this.userID,_password:String(encodeURI(this.password)),_username:this.userName,newUsername:this.newUsername,_email:this.userEmail,_accountNumber:this.accountNumber,isMobileApp:this.isMobileApp,recaptchaResponse:t,_userType:this.userType,companyID:this.companyCode};this.showPasswordInvalidMessage=!1,this.forgotPasswordService.resetPassword(r).then(function(){var S=(0,q.Z)(function*(p){p&&"success"===p.status?(p.email&&(n.userEmail=p.email),p.isEnrolledInMfa&&(n.isUserEnrolledInMFA=p.isEnrolledInMfa),"OKTA"===n.userType&&n.isUserEnrolledInMFA||n.loginService.authAndGetToken({username:n.userNameDisplay,password:n.password}).then(()=>{}).catch(()=>{}),n.next()):n.isFlagSessionExpired=!0});return function(p){return S.apply(this,arguments)}}()).catch(S=>{this.globalServiceErrorHandler.showToast(String(this.translateService.instant("COMPONENTS.FORGOTPASSWORD.ERRORMESSAGE")))})}}sectionActivatedHandler(t){t._goToSectionID===E&&(this.userID=t._eventData.userID,this.userEmail=t._eventData.userEmail,this.userName=t._eventData.userName,this.newUsername=t._eventData.newUsername,this.userNameDisplay=String(this.newUsername?this.newUsername:this.userName),this.companyCode=t._eventData.companyCode,this.accountNumber=t._eventData.userAccountNumber,this.userType=t._eventData.userType,this.userService.user.userAccountNumber=this.accountNumber)}next(){const t=new P.w;t._goToSectionID=g,t._eventData={userID:this.userID,userName:this.userNameDisplay,userEmail:this.userEmail,userType:this.userType,password:this.password,isUserEnrolledInMFA:this.isUserEnrolledInMFA},this.goToPage(t)}cancel(){this.navUtil.navigate(c.$.root,!0)}executeRecaptcha(){this.isMobileApp||this.recaptchaDisabled?this.resetpassword(""):this.recaptchaEventEmitter.emit("step3")}}(Y=K).breadCrumbModel=new R.$(E,"COMPONENTS.BREADCRUMB.FORGOTPASSWORD.RESETPWD",!0),Y.\u0275fac=function(t){return new(t||Y)(e.Y36(d.QS),e.Y36(V.g),e.Y36(_.a),e.Y36(w.o),e.Y36(N.t4),e.Y36(v.H),e.Y36(C.sK),e.Y36(he.u),e.Y36(O.K),e.Y36(i.r),e.Y36(e.R0b))},Y.\u0275cmp=e.Xpm({type:Y,selectors:[["nve-reset-password-component"]],viewQuery:function(t,n){if(1&t&&(e.Gf(Oe,5),e.Gf(ve,5)),2&t){let r;e.iGM(r=e.CRH())&&(n.passwordInput=r.first),e.iGM(r=e.CRH())&&(n.confirmPasswordInput=r.first)}},inputs:{recaptchaDisabled:"recaptchaDisabled",recaptchaResponse:"recaptchaResponse"},outputs:{nextSectionEvent:"nextSectionEvent",prevSectionEvent:"prevSectionEvent",recaptchaEventEmitter:"recaptchaEventEmitter"},features:[e.qOj],decls:55,vars:59,consts:[["id","forgotPasswordResetPasswordSection"],[1,"clearfix","margin-top-15"],[1,"col-xs-12"],["class","clearfix",4,"ngIf"],["tabindex","0"],[3,"formGroup"],[1,"row"],[1,"col-md-4"],["tabindex","0","aria-label","Please Enter a New Password","role","form","formControlName","password",1,"form-control",3,"type","placeholder","ngModel","ngModelChange"],["passwordInput",""],["class","validation-form-error",4,"ngIf"],[4,"ngIf"],[1,"col-md-2"],[3,"click"],["tabindex","0","aria-label","Please Re-Enter your New Password","role","form","formControlName","confirmPassword",1,"form-control",3,"type","placeholder","ngModel","ngModelChange"],["confirmPasswordInput",""],["class","validation-form-error","tabindex","0",4,"ngIf"],["tabindex","0",1,"col-md-4"],["type","ToolTipModalComponent","path","/tooltips/create-password.html",3,"isToolTip"],[3,"ngSwitch"],["class","weak-password","tabindex","0",4,"ngSwitchCase"],["class","strong-password","tabindex","0",4,"ngSwitchCase"],[1,"bottom-nav"],["id","nve-reset-continuesubmit",1,"nv-btn","nv-btn-blue","nv-btn-go",3,"disabled","click"],["tabindex","0",1,"nv-btn","nv-btn-white","nv-btn-cancel",3,"click"],[1,"clearfix"],["tabindex","0",1,"validation-form-error"],[3,"moveToPage","setPageToRoot"],[1,"validation-form-error"],["class","validation-form-error",4,"ngFor","ngForOf"],["tabindex","0",1,"weak-password"],["tabindex","0",1,"strong-password"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e.YNc(3,ge,10,14,"div",3),e.TgZ(4,"h2",4),e.ALo(5,"translate"),e._uU(6),e.ALo(7,"translate"),e.qZA(),e._uU(8),e.TgZ(9,"p",4),e.ALo(10,"translate"),e._uU(11),e.ALo(12,"translate"),e.qZA(),e.TgZ(13,"form",5)(14,"div",6)(15,"div",7)(16,"input",8,9),e.NdJ("ngModelChange",function(l){return n.password=l})("ngModelChange",function(l){return n.passwordStrength(l)}),e.ALo(18,"translate"),e.qZA(),e.YNc(19,Te,3,3,"p",10),e.YNc(20,Ae,2,1,"ng-container",11),e.qZA(),e.TgZ(21,"div",12)(22,"a",13),e.NdJ("click",function(){return n.togglePasswordDisplay()}),e.YNc(23,fe,4,6,"span",11),e.YNc(24,Re,4,6,"span",11),e.qZA()()(),e.TgZ(25,"div",6)(26,"div",7)(27,"input",14,15),e.NdJ("ngModelChange",function(l){return n.confirmPassword=l}),e.ALo(29,"translate"),e.qZA(),e.YNc(30,Ne,4,6,"p",16),e.qZA()(),e.TgZ(31,"div",6)(32,"div",17),e.ALo(33,"translate"),e.TgZ(34,"i"),e._uU(35),e.ALo(36,"translate"),e.qZA(),e._UZ(37,"nve-tool-tip",18),e.qZA()(),e.YNc(38,_e,5,6,"div",11),e.TgZ(39,"div",19),e.YNc(40,Pe,4,6,"p",20),e.YNc(41,De,4,6,"p",20),e.YNc(42,Ie,4,6,"p",21),e.YNc(43,be,4,6,"p",21),e.YNc(44,Me,4,6,"p",21),e.qZA()()()()(),e.TgZ(45,"div",1)(46,"div",2)(47,"div",22)(48,"button",23),e.NdJ("click",function(){return n.executeRecaptcha()}),e._uU(49),e.ALo(50,"translate"),e.qZA(),e.TgZ(51,"button",24),e.NdJ("click",function(){return n.cancel()}),e.ALo(52,"translate"),e._uU(53),e.ALo(54,"translate"),e.qZA()()()()),2&t&&(e.xp6(3),e.Q6J("ngIf",n.isFlagSessionExpired),e.xp6(1),e.zWS("aria-label","",e.lcZ(5,37,"COMPONENTS.FORGOTPASSWORD.PASSWORDINSTRUCTION"),", ",n.userNameDisplay," "),e.xp6(2),e.hij(" ",e.lcZ(7,39,"COMPONENTS.FORGOTPASSWORD.PASSWORDINSTRUCTION")," "),e.xp6(2),e.hij(" ",n.userNameDisplay," "),e.xp6(1),e.uIk("aria-label",e.lcZ(10,41,"COMPONENTS.FORGOTPASSWORD.USERNAME")),e.xp6(2),e.hij(" ",e.lcZ(12,43,"COMPONENTS.FORGOTPASSWORD.USERNAME")," "),e.xp6(2),e.Q6J("formGroup",n.resetPasswordForm),e.xp6(3),e.ekj("error",!(n.resetPasswordForm.get("password").valid||n.resetPasswordForm.get("password").pristine)),e.s9C("type",n.passwordInputType),e.s9C("placeholder",e.lcZ(18,45,"COMPONENTS.FORGOTPASSWORD.USERNAMEPLACEHOLDER")),e.Q6J("ngModel",n.password),e.xp6(3),e.Q6J("ngIf",n.passwordRelated.passwordEqualsPassword),e.xp6(1),e.Q6J("ngIf",!(n.resetPasswordForm.get("password").valid||n.resetPasswordForm.get("password").pristine)&&n.resetPasswordForm.get("password").errors&&n.resetPasswordForm.get("password").errors.error&&n.resetPasswordForm.get("password").errors.error.length>0),e.xp6(3),e.Q6J("ngIf",n.show),e.xp6(1),e.Q6J("ngIf",!n.show),e.xp6(3),e.ekj("error",n.resetPasswordForm.hasError("mismatchedPasswords")&&!(""===n.confirmPassword||null==n.confirmPassword)),e.s9C("type",n.passwordInputType),e.s9C("placeholder",e.lcZ(29,47,"COMPONENTS.FORGOTPASSWORD.CONFIRMPASSWORD")),e.Q6J("ngModel",n.confirmPassword),e.xp6(3),e.Q6J("ngIf",n.resetPasswordForm.hasError("mismatchedPasswords")&&!(""===n.confirmPassword||null==n.confirmPassword)),e.xp6(2),e.uIk("aria-label",e.lcZ(33,49,"COMPONENTS.FORGOTPASSWORD.RESETPASSWORDMESSAGE")),e.xp6(3),e.Oqu(e.l
1cZ(36,51,"COMPONENTS.FORGOTPASSWORD.RESETPASSWORDMESSAGE")),e.xp6(2),e.Q6J("isToolTip",!0),e.xp6(1),e.Q6J("ngIf",n.showPasswordInvalidMessage),e.xp6(1),e.Q6J("ngSwitch",n.passwordStrengthScore),e.xp6(1),e.Q6J("ngSwitchCase",0),e.xp6(1),e.Q6J("ngSwitchCase",1),e.xp6(1),e.Q6J("ngSwitchCase",2),e.xp6(1),e.Q6J("ngSwitchCase",3),e.xp6(1),e.Q6J("ngSwitchCase",4),e.xp6(4),e.Q6J("disabled",!n.resetPasswordForm.valid||n.passwordRelated.usernameInPassword||n.isFlagSessionExpired),e.xp6(1),e.hij(" ",e.lcZ(50,53,"COMPONENTS.FORGOTPASSWORD.WIZARD.SUBMIT")," "),e.xp6(2),e.uIk("aria-label",e.lcZ(52,55,"COMPONENTS.FORGOTPASSWORD.CANCEL")),e.xp6(2),e.hij(" ",e.lcZ(54,57,"COMPONENTS.FORGOTPASSWORD.CANCEL")," "))},dependencies:[a.sg,a.O5,a.RF,a.n9,d._Y,d.Fj,d.JJ,d.JL,d.sg,d.u,Se.a,Ee.I,C.X$],encapsulation:2});var we=u(89454);class ne{}ne.value=new we.W("PAGES.SECURITYUPGRADE.HEADING",[H.breadCrumbModel,L.breadCrumbModel,Z.breadCrumbModel,K.breadCrumbModel,z.breadCrumbModel]);var Ue=u(79024),Fe=u(42150);function Ze(s,t){if(1&s){const n=e.EpF();e.TgZ(0,"re-captcha",8,9),e.NdJ("resolved",function(l){e.CHM(n);const S=e.oxw();return e.KtG(S.captchaResponse(l))}),e.qZA()}if(2&s){const n=e.oxw();e.s9C("siteKey",n.siteKey)}}const ye=[{path:"",component:(()=>{var s;class t extends U.P{constructor(r,l,S,p,D,I){super(ne.value,void 0,void 0,S),this.platform=r,this.navUtil=l,this.translateService=S,this.formsService=p,this.isMobileView=!1,this.isMobileApp=!1,this.currentStep="",this.step2RecaptchaResponse="",this.step3RecaptchaResponse="",this.step4RecaptchaResponse="",this.showRecaptcha=!1,this.siteKey=I.config.google.recaptcha.key,console.log("Security Check Data",D.data),this.formsService.getRecaptchaDisabledFlag("ForgotPassword").then(f=>{this.recaptchaDisabled=!f.isRecaptchaEnabled}),setTimeout(()=>this.showRecaptcha=!0,500),this.platform.is("mobile")&&(this.isMobileView=!0),this.isMobileApp=r.is("cordova"),this.navUtil.setWizardFlow(!0)}executeRecaptcha(r){this.currentStep=r,this.captcha.execute()}captchaResponse(r){r&&(this.captcha.reset(),"step2"===this.currentStep?this.step2RecaptchaResponse=r:"step3"===this.currentStep?this.step3RecaptchaResponse=r:"step4"===this.currentStep&&(this.step4RecaptchaResponse=r))}}return(s=t).\u0275fac=function(r){return new(r||s)(e.Y36(Ue.m),e.Y36(v.H),e.Y36(C.sK),e.Y36(B.s),e.Y36(ee.j),e.Y36(J._))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-security-check"]],viewQuery:function(r,l){if(1&r&&e.Gf(b.wT,5),2&r){let S;e.iGM(S=e.CRH())&&(l.captcha=S.first)}},features:[e.qOj],decls:13,vars:23,consts:[[1,"page-sidebar","picture-background","contentWidth15","ion-padding-horizontal"],["tabindex","0"],["data-swiftype-name","body","data-swiftype-type","text",1,"pageWrapper"],[3,"activeSection","breadCrumbData"],[3,"pageTitle","nextSectionEvent","prevSectionEvent"],[3,"recaptchaDisabled","recaptchaResponse","recaptchaEventEmitter","nextSectionEvent","prevSectionEvent"],[3,"nextSectionEvent","prevSectionEvent"],["size","invisible",3,"siteKey","resolved",4,"ngIf"],["size","invisible",3,"siteKey","resolved"],["captchaRef","reCaptcha"]],template:function(r,l){1&r&&(e.TgZ(0,"div")(1,"div",0)(2,"h1",1),e._uU(3),e.ALo(4,"translate"),e.qZA()(),e.TgZ(5,"div",2)(6,"nve-wizard",3)(7,"nve-check-user-email-component",4),e.NdJ("nextSectionEvent",function(p){return l.goToNextPage(p)})("prevSectionEvent",function(p){return l.goToPrevPage(p)}),e.qZA(),e.TgZ(8,"nve-activation-code",5),e.NdJ("recaptchaEventEmitter",function(){return l.executeRecaptcha("step2")})("nextSectionEvent",function(p){return l.goToNextPage(p)})("prevSectionEvent",function(p){return l.goToPrevPage(p)}),e.qZA(),e.TgZ(9,"nve-change-username",5),e.NdJ("recaptchaEventEmitter",function(){return l.executeRecaptcha("step4")})("nextSectionEvent",function(p){return l.goToNextPage(p)})("prevSectionEvent",function(p){return l.goToPrevPage(p)}),e.qZA(),e.TgZ(10,"nve-reset-password-component",5),e.NdJ("recaptchaEventEmitter",function(){return l.executeRecaptcha("step3")})("nextSectionEvent",function(p){return l.goToNextPage(p)})("prevSectionEvent",function(p){return l.goToPrevPage(p)}),e.qZA(),e.TgZ(11,"nve-reset-password-confirmatiom-component",6),e.NdJ("nextSectionEvent",function(p){return l.goToNextPage(p)})("prevSectionEvent",function(p){return l.goToPrevPage(p)}),e.qZA(),e.YNc(12,Ze,2,1,"re-captcha",7),e.qZA()()()),2&r&&(e.xp6(3),e.Oqu(e.l
1cZ(4,21,"PAGES.SECURITYUPGRADE.HEADING")),e.xp6(3),e.Q6J("activeSection",l.wizardPageModel.activeSection)("breadCrumbData",l.wizardPageModel.breadCrumbArray),e.xp6(1),e.ekj("hide","checkuseremail"!==l.wizardPageModel.activeSection),e.Q6J("pageTitle",l.wizardPageModel.pageTitle),e.xp6(1),e.ekj("hide","ActivationCode"!==l.wizardPageModel.activeSection),e.Q6J("recaptchaDisabled",l.recaptchaDisabled)("recaptchaResponse",l.step2RecaptchaResponse),e.xp6(1),e.ekj("hide","ChangeUsername"!==l.wizardPageModel.activeSection),e.Q6J("recaptchaDisabled",l.recaptchaDisabled)("recaptchaResponse",l.step2RecaptchaResponse),e.xp6(1),e.ekj("hide","ResetPassword"!==l.wizardPageModel.activeSection),e.Q6J("recaptchaDisabled",l.recaptchaDisabled)("recaptchaResponse",l.step3RecaptchaResponse),e.xp6(1),e.ekj("hide","ResetPasswordConfirmation"!==l.wizardPageModel.activeSection),e.xp6(1),e.Q6J("ngIf",!(l.recaptchaDisabled||l.isMobileApp)&&l.showRecaptcha))},dependencies:[a.O5,Z,K,z,H,L,b.wT,Fe.P,C.X$]}),t})()}];let xe=(()=>{var s;class t{}return(s=t).\u0275fac=function(r){return new(r||s)},s.\u0275mod=e.oAB({type:s}),s.\u0275inj=e.cJS({imports:[x.Bz.forChild(ye),x.Bz]}),t})();var Ge=u(49512),Le=u(29026),ke=u(37257),We=u(1898),Ye=u(24039);let Je=(()=>{var s;class t{}return(s=t).\u0275fac=function(r){return new(r||s)},s.\u0275mod=e.oAB({type:s}),s.\u0275inj=e.cJS({imports:[a.ez,d.u5,N.Pc,xe,Ge.m,b.a,C.aw,Le.D,ke.o,We.w,Ye.F]}),t})()},59163:(X,y,u)=>{u.d(y,{s:()=>P});var a=u(15861),d=u(24006),N=u(89976),x=u(30100),b=u(61213),U=u(5592),J=u(42311),B=u(36895),v=u(55062),e=u(90603),F=u(53093),_=u(33441),R=u(89383);let P=(()=>{var T;class m{constructor(i,o,c,E,g,h,M){this.http=i,this.modalCtrl=o,this.window=c,this.userService=E,this.logger=g,this.locale=h,this.translateService=M,this.formsEmailURL="/forms/sendEmail",this.recaptchaDisabledFlagURL="/forms/get-recaptcha-flag/"}static regExpValidator(i,o){return c=>{const E=c.value;return E&&E.length>0?i.test(E)?null:{[o]:!0}:null}}static oneCheckRequired(i){let o=!1;return Object.keys(i.controls).forEach(c=>{o=!!i.get(c).value||o}),o?null:{oneCheckRequired:{}}}static transformToKey(i,o){let c="--";if(i&&i.length>0)switch(i.toUpperCase()){case"YES":c="COMPONENTS.AMP.PAYMENTDUE.YES";break;case"NO":c="COMPONENTS.AMP.PAYMENTDUE.NO";break;case"NONE":c="GENERAL.NONE";break;case"UNSURE":c="GENERAL.UNSURE";break;case"OTHER":c="GENERAL.OTHER";break;case"$3":c="GENERAL.AMOUNT.$3";break;case"$5":c="GENERAL.AMOUNT.$5";break;case"$10":c="GENERAL.AMOUNT.$10";break;case"$20":c="GENERAL.AMOUNT.$20";break;case"$30":c="GENERAL.AMOUNT.$30";break;case"LOW-INCOME ELIGIBLE":c="COMPONENTS.FORMS.ESAPSPECIFIC.LOWINCOMEELIGIBLE";break;case"ELIGIBLE PREMISE CUSTOMER":c="COMPONENTS.FORMS.ESAPSPECIFIC.ELIGIBLEPREMISECUSTOMER";break;case"DISADVANTAGED BUSINESS OR NON-PROFIT ORGANIZATION":c="COMPONENTS.FORMS.ESAPSPECIFIC.DISADVANTAGEDBUSINESSORNONPROFIT";break;case"NEW":c="COMPONENTS.FORMS.ESAPSPECIFIC.NEW";break;case"RECERTIFICATION":c="COMPONENTS.FORMS.ESAPSPECIFIC.RECERTIFICATION";break;default:c=o+i.replace(/ /g,"_").toUpperCase()}return c}static getAnswerKeys(i,o,c){for(const E in i)o[E]&&(i[E]=m.transformToKey(o[E],c));return i}static extractValue(i){return(new B.rS).transform(i.split(".").pop().replace(/_/g," "))}static onAddressAutoCompleteDismiss(i){const o=new U.lX;if(null!=i){const c=[];if(i.description&&void 0!==i.detail){c.push(i.detail);const E=i.description.split(",");o.addressLong=i.description,o.streetLong=E[0],o.city=E[1],o.state=E[2]||"NV",o.zipCode=this.getAddressComponent(c,"postal_code"),o.country=E[3],o.streetNumber=this.getAddressComponent(c,"street_number")||i.description.split(" ")[0],o.overrideCode="",o.addressLine1="",o.addressLine2="",o.addressLine3="",o.unitNumber=""}}return o}static getAddressComponent(i,o){if(void 0!==i&&i.length>0&&null!==i[0]){const c=i[0].address_components.find(E=>void 0!==E.types.find(g=>g===o));return void 0!==c?"administrative_area_level_1"===o||"route"===o?c.short_name.toString():c.long_name.toString():""}return""}static encodeStringValues(i){for(const o in i)"string"==typeof i[o]&&(i[o]=encodeURI(i[o].trim()));return i}buildgenerateCtrlName(i,o){return i.ctrlName&&i.ctrlName.length>0?i.ctrlName:o.toLowerCase().split(" ").join("")}rebuildLabelIfRequired(i,o){return o.required?"* "+i:i}buildvalidators(i){let o=[];return i.required&&null==i.conditionalRequiredFn&&o.push(d.kI.required),o=o.concat(i.customValidators),o}postSubmission(i,o,c,E,g){const h=Object.assign({},i);
1switch(h.cmxType=o,h.recaptchaResponse=c,h.isMobileApp=E,h.cmxSubType="",h.cmxDocEffectiveDate="",h.cmxDocExpirationDate="",h.cmxFileOriginalName="",h.cmxFileMimeType="",h.cmxFileData="",o){case"TOUEVRApplicationResidential":case"TOUEVRApplicationBusiness":case"GreenEnergyChoiceSignup":h.cmxFullName=h.cmxLastName&&h.cmxFirstName?h.cmxLastName+",%20"+h.cmxFirstName:(h.cmxLastName||"")+(h.cmxFirstName||"");break;default:h.cmxFullName=((h.cmxFirstName||"")+" "+(h.cmxLastName||"")).trim()}h.cmxFirstName=h.cmxLastName="";const M=this.userService.getUser();let w;h.cmxAuthenticatedUsername=M.getUserID()||"",h.cmxOrigin=this.window.nativeWindow.location.href,["cmxComments","cmxFullName","cmxFirstName","cmxLastName","cmxPrimaryPhone","cmxPrimaryPhoneExtension","cmxEmailAddress","cmxAccountNumber"].forEach(A=>{h.hasOwnProperty(A)||(h[A]="")});const C=this.locale.locale.formsApiUrl+o;return w=g&&g.length>0?this.extractFormData(g,h):{resource:h},this.http.sendExternalRequest(N.a.POST,C,w,!0).then(A=>{const j=A||null;return j&&j.isSuccess?Promise.resolve(j):(this.logger.error("Internal Server Error occurred while posting to Forms API"),Promise.reject(""))}).catch(A=>(this.logger.error("Error occurred while while posting to Forms API",A),Promise.reject("")))}extractFormData(i,o){const c=new FormData;return c.append("cmxFormData",JSON.stringify({resource:o})),i.forEach(E=>{c.append("cmxFileData",E._file)}),c}sendEmail(i,o,c){return this.http.sendRequest(N.a.POST,this.formsEmailURL,JSON.stringify({emailTemplate:i,emailRecipient:o,emailVariableList:c}),null,!0).then(g=>g.isSuccess?Promise.resolve(g.ResponseBody):Promise.reject("")).catch(g=>(this.logger.error("Error occured while fetching response for formsservice.sendEmail from server.",g),Promise.reject("")))}getRecaptchaDisabledFlag(i){var o=this;return(0,a.Z)(function*(){return yield o.http.sendAnonymousRequest(N.a.GET,o.recaptchaDisabledFlagURL+i)})()}}return(T=m).\u0275fac=function(i){return new(i||T)(v.LFG(x.r),v.LFG(e.IN),v.LFG(F.X),v.LFG(b.K),v.LFG(_.Y),v.LFG(J.O),v.LFG(R.sK))},T.\u0275prov=v.Yz7({token:T,factory:T.\u0275fac,providedIn:"root"}),m})()}}]);
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.