1import{BZ as re,Ba as V,CP as te,DP as S,FX as v,KE as K,Nd as L,P0 as ge,RG as Z,SX as ae,W0 as y,Wb as j,Wg as G,X0 as de,XQ as ie,ZQ as oe,bb as q,ca as B,fb as he,hG as Q,iG as W,ja as l,jf as z,lP as P,lo as O,mo as X,po as J,qh as Y,t1 as le,uT as ne,vT as se,xM as ee}from"./chunk-DQVPEXLR.js";import{Bc as p,Cc as c,Dc as u,Ec as m,Ia as R,Ma as M,Mb as h,Mc as _,Na as r,Qd as w,Ta as $,Ua as A,Uc as D,Wc as C,Za as T,ac as x,f as fe,gb as F,hb as U,id as I,jd as N,uc as E,wc as H,yd as k}from"./chunk-LL4UPCF5.js";var ce=fe(he());var me="agent",b=(()=>{class n{constructor(t){this.componentsConfigurationHelper=t,this.loyaltyResetPasswordConfiguration=new y,this.siteHeaderConfiguration=new P,this.siteFooterConfiguration=new v,this.federatedLoginEnabled=!1,this.preventUserExistenceNotFound=!1,this.successRedirectUrl=""}loadConfigSettingsAndI18nMessages(t,e,o,s){let g=new L(s,t,"config"),a=new L(s,e,"i18n"),i="agent.resetPassword";g.setProperties(this,[["boolean","federatedLoginEnabled","agentLogin.federatedLogin.enabled"],["boolean","preventUserExistenceNotFound","agentLogin.federatedLogin.forgotPassword.checkUserExistence"]]),a.setString(this,"successRedirectUrl",`${i}.successRedirectUrl`),this.siteHeaderConfiguration=new P,this.siteHeaderConfiguration.loadSiteHeaderConfiguration(t,e,null,"loginPage",s,o,me),a.setProperties(this.siteHeaderConfiguration,[["string","homeUrl","application.home.url"],["string","logoImageUrl","home.airlineLogo.url"],["string","logoTitle","application.title"],["string","compactLogoImageUrl","home.airlineLogo.compact.url"]]),this.siteFooterConfiguration=new v,this.componentsConfigurationHelper.loadSiteFooterConfiguration(t,e,this.siteFooterConfiguration,!0),this.loyaltyResetPasswordConfiguration=new y,this.loyaltyResetPasswordConfiguration.newPassword.loadConfigSettingsAndI18nMessages(i,t,e,s),a.setProperties(this.loyaltyResetPasswordConfiguration,[["string","modalTitleLabel",`${i}.modalTitleLabel`],["string","welcomeMessage",`${i}.welcomeMessage`],["string","invalidUsernameMessage",`${i}.invalidUsernameMessage`],["string","continueButtonText",`${i}.continueButtonText`],["string","returnToLoginButtonText",`${i}.returnToLoginButtonText`],["string","changePasswordButtonText",`${i}.changePasswordButtonText`],["string","linkToLoginText",`${i}.linkToLoginText`],["string","resendNewVerificationCodeMessage",`${i}.resendNewVerificationCodeMessage`],["string","verificationCodeSentMessage",`${i}.verificationCodeSentMessage`],["string","createYourPasswordTitle",`${i}.createYourPasswordTitle`],["string","passwordRulesHtml",`${i}.passwordRules.html`],["string","changePasswordFailureMessage",`${i}.changePasswordFailureMessage`],["string","changePasswordSuccessfulMessage",`${i}.changePasswordSuccessfulMessage`],["string","invalidVerificationCodeMessage",`${i}.invalidVerificationCodeMessage`],["string","agentResetPasswordTitle",`${i}.agentResetPasswordTitle`]]),[{controlConfig:this.loyaltyResetPasswordConfiguration.username,prefix:"username"},{controlConfig:this.loyaltyResetPasswordConfiguration.verificationCode,prefix:"verificationCode"}].forEach(({controlConfig:f,prefix:d})=>{a.setProperties(f,[["string","label",`${i}.${d}.label`],["string","placeholder",`${i}.${d}.placeholder`]]),a.setProperties(f.validation,[["string","requiredMessage",`${i}.${d}.validation.requiredMessage`],["string","patternMessage",`${i}.${d}.validation.patternMessage`]]),g.setProperties(f,[["boolean","enabled",`${i}.${d}.enabled`]]),g.setProperties(f.validation,[["boolean","required",`${i}.${d}.validation.required`],["string","pattern",`${i}.${d}.validation.pattern`]])}),this.componentsConfigurationHelper.loadCaptchaConfiguration(g,a,this.loyaltyResetPasswordConfiguration.captcha,i),this.componentsConfigurationHelper.loadCaptchaConfiguration(g,a,this.loyaltyResetPasswordConfiguration.verifyCaptcha,`${i}.verify`)}static{this.\u0275fac=function(e){return new(e||n)(M(z))}}static{this.\u0275prov=R({token:n,factory:n.\u0275fac})}}return n})();function we(n,ue){n&1&&(c(0,"nav",1)(1,"span",2),N(2,"Loading..."),u()(),c(3,"div",3)(4,"div",4)(5,"div",5),m(6,"app-ias-loading-placeholder"),u()()())}function Ce(n,ue){if(n&1){let t=_();c(0,"div",6)(1,"app-site-header",7),D("onChange",function(o){$(t);let s=C();return A(s.uiLanguageChanged(o))}),u()(),c(2,"section",8),m(3,"app-site-footer",9),u()}if(n&2){let t=C();h(),p("configuration",t.configuration.siteHeaderConfiguration)("activeLanguage",t.activeLanguage())("isAgentSite",!0),h(2),I("page-footer container-fluid"),p("configuration",t.configuration.siteFooterConfiguration)}}var qe=(()=>{class n{constructor(){this.store=r(Y),this.modalService=r(V),this.router=r(B),this.log=r(q),this.urlHelper=r(j),this.destroyRef=r(T),this.configuration=r(b),this.forgotPasswordModalState$=this.store.select(te),this.forgotPasswordModalLoading$=this.store.select(S),this.configSettingsLoading=this.store.selectSignal(ie),this.i18nLoading=this.store.selectSignal(oe),this.uiLanguagesLoading=this.store.selectSignal(W),this.configSettings=this.store.selectSignal(se),this.i18nMessages=this.store.selectSignal(ne),this.uiLanguages=this.store.selectSignal(Q),this.initialDataLoading=w(()=>this.configSettingsLoading()||this.i18nLoading()||this.uiLanguagesLoading()),this.dataLoading=this.store.selectSignal(S),this.isLoading=w(()=>this.configSettingsLoading()||this.i18nLoading()||this.uiLanguagesLoading()||this.dataLoading()),this.activeLanguage=this.store.selectSignal(Z),this.dataReady=w(()=>this.configSettings()!==null&&!(0,ce.isEmpty)(this.i18nMessages())&&(this.uiLanguages()?.length??0)>0),this.initialized=!1,F(()=>{!this.initialized&&this.dataReady()&&(this.initialized=!0,U(()=>{this.configuration.loadConfigSettingsAndI18nMessages(this.configSettings(),this.i18nMessages(),this.uiLanguages(),this.log),this.openResetPasswordModal()}))});let t=e=>{e.persisted&&window.location.reload()};window.addEventListener("pageshow",t),this.destroyRef.onDestroy(()=>window.removeEventListener("pageshow",t))}uiLanguageChanged(t){this.store.dispatch(new K(t.next))}openResetPasswordModal(){this.store.dispatch(new O);let t=this.modalService.open(re,{centered:!0,size:"lg",beforeDismiss:()=>!1}),e=t.componentInstance;e.configuration=this.configuration.loyaltyResetPasswordConfiguration,e.username="",e.isAgentSite=!0,e.cannotCloseLogin=!0,e.showLinkToLogin=!1,e.state$=this.forgotPasswordModalState$,e.loading$=this.forgotPasswordModalLoading$,this.configuration.federatedLoginEnabled&&(e.isCognitoForgotPassword=!0),e.modalClosed.pipe(l(this.destroyRef)).subscribe(o=>{t.close(o),this.navigateAfterSuccess()}),e.modalDismissed.pipe(l(this.destroyRef)).subscribe(o=>{t.dismiss(o)}),e.usernameChanged.pipe(l(this.destroyRef)).subscribe(o=>{e.username=o}),e.requestForgotPassword.pipe(l(this.destroyRef)).subscribe(({username:o,captchaResponse:s})=>{this.store.dispatch(new X(o,this.configuration.federatedLoginEnabled,this.configuration.preventUserExistenceNotFound,void 0,s))}),e.changePassword.pipe(l(this.destroyRef)).subscribe(({verificationCode:o,newPassword:s,username:g,captchaResponse:a})=>{this.store.dispatch(new J(o,g,s,this.configuration.federatedLoginEnabled,a))})}navigateAfterSuccess(){let t=this.configuration.successRedirectUrl;t&&this.urlHelper.isAbsoluteUrl(t)?window.location.href=t:this.router.navigateByUrl(`/${G}`)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=x({type:n,selectors:[["app-agent-reset-password"]],features:[
1k([b])],decls:3,vars:2,consts:[[3,"showSpinner"],[1,"navbar","navbar-expand-lg","navbar-primary","bg-primary"],[1,"invisible"],[1,"container","mt-5"],[1,"row"],[1,"col"],[1,"site-header","sticky-top"],[1,"page-header","navbar","navbar-expand-sm","navbar-dark","bg-light",3,"onChange","configuration","activeLanguage","isAgentSite"],["aria-label","site footer",1,"site-footer"],[3,"configuration"]],template:function(e,o){e&1&&(m(0,"app-loading-spinner",0),E(1,we,7,0)(2,Ce,4,6)),e&2&&(p("showSpinner",o.dataLoading()||o.initialDataLoading()),h(),H(o.isLoading()?1:2))},dependencies:[le,ee,ge,de,ae],encapsulation:2,changeDetection:0})}}return n})();export{qe as AgentResetPasswordComponent};
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.