PageSourceSearch

https://www.myfortiva.com/my-account/chunk-5OVSMDQR.js

js myfortiva.com collected 2026-09-24 10:35:17 UTC 40,823 bytes, 1 lines download raw bytes

1import{a as ut}from"./chunk-KXO7LBTI.js";import{a as st}from"./chunk-I3QYCWGS.js";import{a as gt}from"./chunk-7ZT7JVPV.js";import{E as ct,J as ht,f as it,q as nt,s as rt}from"./chunk-F3BBXADL.js";import"./chunk-3Y5D26UE.js";import{a as $}from"./chunk-H4T6JEQA.js";import{P as ot,U as at,V as lt,e as O}from"./chunk-JOWPALQN.js";import{A as vt,D as et,c as z,g as J,j as W,l as q,m as Y,n as Q,p as D,s as Z,u as tt,v as S}from"./chunk-QCJKNMAG.js";import{I as N,Sb as U,cc as B,dc as K,fc as _,gc as M,ld as F,md as V,od as G,pa as b,qd as X,ta as R,ua as k,vc as H,xc as j}from"./chunk-YHDM4NZS.js";import"./chunk-3J7GGTVR.js";import"./chunk-V7KNVW2Q.js";import"./chunk-QLVBR6TS.js";import"./chunk-QUJFQN2Y.js";import"./chunk-ZANDLJJW.js";import"./chunk-LW5OJQPW.js";import"./chunk-ABCYO3JI.js";import"./chunk-NVB7VKJF.js";import"./chunk-YATWPXT7.js";import"./chunk-LIG2ILL7.js";import"./chunk-V55WNOC4.js";import"./chunk-2C3RAOSR.js";import"./chunk-TCJKFEBR.js";import"./chunk-5OAYE4GF.js";import"./chunk-4FZWNOHI.js";import"./chunk-FOP4VADR.js";import"./chunk-LBMIQEU6.js";import"./chunk-WI5MSH4N.js";import"./chunk-5K4GO3IK.js";import"./chunk-CKP3SGE2.js";import"./chunk-D46NII3J.js";import{h as Pt,p as h}from"./chunk-VYVKEP6M.js";var dt=Pt(vt());var At=[{path:"",component:st},{path:"forgot-password",component:gt},{path:"",component:ot},{path:"",component:O}],pt=(()=>{let p=class p{constructor(t,e,o,s,i,n,a,r,g,c,d,u,v,C,I,x,bt,Ct){this.profile=t,this.alertCtrl=e,this.modalCtrl=o,this.promo=s,this.msg=i,this.pageCtrl=n,this.api=a,this.loadingCtrl=r,this.lookup=g,this.auth=c,this.navCtrl=d,this.router=u,this.storage=v,this.route=C,this.events=I,this.translate=x,this.sanitizer=bt,this.platform=Ct,this.selectedTabIndex=0,this.selectedAccountIndex=0,this.promotionsToggled=!0,this.authStateCode="",this.authUserName="",this.authToken="",this.authLanguage="",this.authPageMessage="",this.publicPages=["forgot-password","account-lookup"],this.isShowLightBox=!0,this.routes=At,this.welcome=!1,this.mobileVersion=!1,this.pinEnabled=!1,this.biometricType=null,this.showFooter=!0,this.cardControlOptions="ACTIVATE:REQNEWCARD:REPLSTOLEN:REOPENPI:CLOSEPI:ADDAUTHUSR:AAUTHBLOCK:RAUTHBLOCK:LOCK1:PINREQNEW:ADDOVERLIMIT:STOPOVERLIMIT:CLOSEACCT:REOPENACCT:RTNMAIL:RH:DISASTER:ACTWALLET:CEASEDESIS:UNLOCK:",this.collectionsInvoked=!1,console.log("testing base @@@"),this.route.queryParams.subscribe(l=>{var m,f,y,T;if(console.log("base route params@@@:"+l),(m=this.router.getCurrentNavigation().extras)!=null&&m.state){this.customer=(f=this.router.getCurrentNavigation().extras.state)==null?void 0:f.customer,this.welcome=(y=this.router.getCurrentNavigation().extras.state)==null?void 0:y.welcome;let w=(T=this.router.getCurrentNavigation().extras.state)==null?void 0:T.destinationPathUrl;w&&(this.destinationPathUrl=w),console.log("base route welcome=",this.welcome+" destinationPathUrl="+this.destinationPathUrl),this.welcome&&(this.isShowLightBox=!0,this.loadAccountPages(),this.clearWelcome())}}),this.events.unsubscribe("logout:base"),this.events.subscribe("logout:base",l=>{console.log("base logout logging out"),this.accountPages=[],this.accountKeys=[],l&&l.resetAuthCode&&(this.authStateCode="",this.authUserName="",this.authToken="",this.authPageMessage="",this.authLanguage=""),l.fromHeader?(console.log("logout from header"),this.logout(1)):this.logout()}),this.events.unsubscribe("deeplink:active"),this.events.subscribe("deeplink:active",l=>{console.log("deeplink in base@@@",l),this.destinationPathUrl=this.platform.isApp()?l:null,this.destinationPathUrl&&this.platform.isApp()&&this.isAuthenticated()&&this.events.publish("account:refreshdestination",this.destinationPathUrl)});let A=dt.parse(location.search.replace("?",""),{allowDots:!0});if(console.log(A.fortiva,"query params:",A),this.authStateCode="",this.authUserName="",this.authToken="",this.authPageMessage="",this.firstName="",this.authLanguage="",A&&A.fortiva){this.authStateCode=A.fortiva.authStateCode,this.authUserName=A.fortiva.authUserName,this.authToken=A.fortiva.token,this.authPageMessage=A.fortiva.pageMessage;let l=A.fortiva.existsForceActivationInd,m=A.fortiva.existsRegularAccountInd;if(this.storage.set(`token${this.authUserName}`,A.fortiva.token),this.authStateCode=="GOOD"){let y={username:this.authUserName,wel
1comeEmailInd:"N",existsForceActivationInd:l,existsRegularAccountInd:m};console.log("base widget credentials=",y),this.auth.restoreFromStorage("",y)}let f=A.fortiva.lang;f||(f="en"),this.pageCtrl.platform.trans.setDefaultLang(f),this.authLanguage=f}this.events.unsubscribe("profile:load"),this.events.subscribe("profile:load",l=>{this.customer=l,this.firstName=l.firstName,this.isShowLightBox=!0,this.loadAccountPages(!0)}),this.events.unsubscribe("messages:ready:base"),this.events.subscribe("messages:ready:base",()=>{this.processBaseNavigate()}),this.events.unsubscribe("base:myreload"),this.events.subscribe("base:myreload",l=>{if(this.accountPages&&this.accountPages.length>0){let m={accountPages:JSON.stringify(this.accountPages),selectedtab:l};console.log("base going to account page with myparams=",m),this.events.publish("account:setselectedtab",m)}}),this.events.unsubscribe("base:gocashadvancetransfer"),this.events.subscribe("base:gocashadvancetransfer",()=>{this.goToCashAdvanceTransfer()}),this.events.unsubscribe("autopay:remove"),this.events.subscribe("autopay:remove",()=>{this.accountPages[this.selectedAccountIndex].hasAutoDeduct="N"}),this.events.unsubscribe("autopay:setup"),this.events.subscribe("autopay:setup",l=>{console.log("base setting hasAutoDeduct for selectedAccountIndex="+this.selectedAccountIndex),this.accountPages[this.selectedAccountIndex].hasAutoDeduct="Y"}),this.events.unsubscribe("profile:welcome"),this.events.subscribe("profile:welcome",(l,m,f)=>{this.welcome=l,this.customer=m,f!=null&&(this.destinationPathUrl=f),console.log("base profile welcome destinationPathUrl="+this.destinationPathUrl+" welcome="+this.welcome),this.welcome&&(this.isShowLightBox=!0,this.loadAccountPages())}),this.events.unsubscribe("desktop:tabs:select"),this.events.subscribe("desktop:tabs:select",(l,m,f)=>{var y,T;if(console.log("index="+l+" title="+m+" opt="+f+" welcome=",this.welcome),this.selectedTabIndex=l,this.selectedTabTitle=m,f==-1?(console.log("going to first account"),this.openAccountPage(this.accountPages[0],0)):f==-2&&this.openAccountPage(this.accountPages[this.selectedAccountIndex],0),m=="Bill Pay"&&(console.log("base bill pay load"),this.pageCtrl.events.publish("billpay:load",(y=this.accountPages[this.selectedAccountIndex])==null?void 0:y.account)),this.welcome&&!m&&(m=this.getTabTitle(l)),this.pageCtrl.platform.is("mobile")){let w=m=="Summary"||m=="Resumen"?"Account Summary":m;l==6&&(w="Cash Advance Transfer"),console.log("base updating mobile cashdvance title="+w),this.events.publish("mobileheader:display",w)}else this.events.publish("pageheader:display",m,(T=this.accountPages[this.selectedAccountIndex])==null?void 0:T.account)}),this.events.unsubscribe("navigate"),this.events.subscribe("navigate",l=>{this.navigateTo(l.path,l.params)}),this.events.subscribe("lookupCodes:homeurl",l=>{this.creditProtectionImage="https://"+l+"/i/images/banners/creditprotection_mobile_s.png",console.log("home url="+l+" creditProtectionImage="+this.creditProtectionImage)}),this.events.unsubscribe("promotion:extlaunch"),this.events.subscribe("promotion:extlaunch",(l,m,f)=>{this.confirmPromoLaunchModal(l,m,f)}),this.events.unsubscribe("promotion:reload"),this.events.subscribe("promotion:reload",()=>{console.log("base reloading promotions"),this.isShowLightBox=!1,this.loadPromotions(this.isShowLightBox)}),this.events.unsubscribe("paperless:refresh"),this.events.subscribe("paperless:refresh",()=>{this.goToPaperless()}),this.events.unsubscribe("cardcontrol:refresh"),this.events.subscribe("cardcontrol:refresh",l=>{this.goToCardControl(l)}),this.events.unsubscribe("changepassword:refresh"),this.events.subscribe("changepassword:refresh",l=>{this.goToChangePassword()}),this.events.subscribe("statements:refresh",(l,m,f,y)=>{var T;if(this.selectedTabIndex=l,this.selectedTabTitle=m,this.customer=y,this.accountPages){let w=0,E=0;(T=this.accountPages)==null||T.forEach(L=>{(L==null?void 0:L.progsol)==f&&(w=E),E++}),console.log("refresh statements for index="+w),this.openAccountPage(this.accountPages[w],w)}}),this.events.unsubscribe("cliff:result"),this.events.subscribe("cliff:result",(l,m,f,y)=>{console.log("base cliff result mycode="+l),this.navCtrl.navigateForward(["/cliff-offer",{mycode:l,promo:m,lang:f,fromPromo:y}])}),this.events.unsubscribe("base:setselectedaccountindex"),this.events.subscribe("base:setselectedaccountindex",l=>{this.selectedAccountIndex=l}),this.events.unsubscribe("fromAuthToBase"),this.events.subscribe("fromAuthToBase",l=>{this.onAuthSuccess(l)}),this.events.unsubscribe("base:setaccount"),this.events.subscribe("base:setaccount",l=>{this.selectedAccount=l==null?void 0:l.account,this.accountPages[this.selectedAccountIndex].account=l,console.log("base setting account=",l)}),this.initializeApp()}ngOnInit(){}initializeApp(){console.log("base initializeApp"),this.collectionsInvoked=!1,this.pageCtrl.platform.ready().then(()=>h(this,null,function*(){if(this.pageCtrl.platform.isApp()&&(yield $.hide()),this.getPath()=="")console.log("base got blank path opening page=",this.pages),this.openPage(this.pages[0]);
1else if(this.isAuthenticated()){if(this.isAuthenticated()&&(this.firstName=this.customer?this.customer.firstName:"",this.lastLoginDate=this.customer?this.customer.lastLoginDate:"",console.log("base authenticated firstName="+this.firstName),this.lastLoginDate&&(this.hhmm=this.lastLoginDate.substr(11,5),this.hhmm&&this.hhmm.length>0))){let t=parseInt(this.hhmm.substr(0,2));this.hhmm+=t>12?" PM":" AM"}}else{let t=window.location.href;console.log("base init path="+t),t=="forgot-password"||t=="forgot-username"||t=="create-account"||t=="ecp"||t=="fcccliff"||t=="acccliff"||t=="upload"||(t.length>0&&t.indexOf("fortiva.lang=es")>=0&&(this.pageCtrl.platform.trans.setDefaultLang("es"),this.authLanguage="es",console.log("init setting lang to es")),console.log("going to login page"),this.goToLogin())}}),t=>{console.log(t)})}isAuthenticated(){return this.auth&&this.auth.authenticated()}loadAccountPages(t){return h(this,null,function*(){try{this.accountPages=[],this.accountKeys=[];let e=0,o=yield this.profile.accounts();if(o==null||o.forEach(s=>{var i,n,a,r,g,c,d,u,v;this.accountPages.push({title:((i=s==null?void 0:s.account)==null?void 0:i.logo)=="thd"?"Home Improver Card":(n=s==null?void 0:s.account)==null?void 0:n.brandDescription,theme:"primary",account:s,name:((a=s==null?void 0:s.account)==null?void 0:a.logo)=="thd"?"The Home Depot":(r=s==null?void 0:s.account)==null?void 0:r.cardName,component:ut,logo:(g=s==null?void 0:s.account)==null?void 0:g.logo,chaturl:(c=s==null?void 0:s.account)==null?void 0:c.chatUrl,color:(d=s==null?void 0:s.account)==null?void 0:d.brandColor,progsol:(u=s==null?void 0:s.accountKey)==null?void 0:u.progSolNumber,params:{account:s}}),this.accountPages[e].hasAutoDeduct=(v=s==null?void 0:s.account)==null?void 0:v.hasAutoDeduct,this.accountKeys[e]=s==null?void 0:s.accountKey,e++}),console.log("base accountKeys length="+this.accountKeys.length),this.accountPages.length>0&&(this.selectedPage=this.accountPages[0].title,this.selectedPageProgSol=this.accountPages[0].progsol),console.log("loading promotions from loading accounts"),yield this.loadPromotions(this.isShowLightBox),yield this.processBaseNavigate(),this.events.publish("messages:ready:header"),t){if(this.lastLoginDate=this.customer.lastLoginDateTime,this.lastLoginDate&&(this.hhmm=this.lastLoginDate.substr(11,5),this.hhmm&&this.hhmm.length>0)){let s=parseInt(this.hhmm.substr(0,2));this.hhmm+=s>12?" PM":" AM"}console.log("base loadAccountPages customer=",this.customer),this.events.publish("account:setcustomer",this.customer)}}catch(e){console.log("loading failed too early err=",e),this.api.postOnDemandError(e)}})}loadPromotions(t){return h(this,null,function*(){var o,s,i,n;try{if(console.log("base loading promotions isShowLightBox="+t),this.promotions=yield this.profile.getPromotions({locationCode:"MENUPROMO"}),this.mainPromotions=yield this.profile.getPromotions({locationCode:"MENUMAIN"}),this.colpromotions=yield this.profile.getPromotions({locationCode:"MENUCOLLECTION"}),(o=this.promotions)==null||o.forEach(a=>{a.cardName=a.logo=="thd"?"The Home Depot":a.cardName}),t){let a=yield this.profile.getPromotions({locationCode:"LIGHTBOX_ALERT"});if(a&&a.length>0){let r=a[0];console.log("promosLBAlert0=",r),r&&r.destinationUrl=="apprating"?this.ratingAlert(r):r&&r.destinationUrl&&(console.log("try to launch dialog="+r.destinationUrl),this.confirmAlert(r.destinationUrl,r))}else{let r=yield this.profile.getPromotions({locationCode:"LIGHTBOX_MODAL"});console.log("base LIGHTBOX_MODAL promotions length=",r.length);let g=r.filter(c=>(c==null?void 0:c.holdoutInd)=="H");var e=0;if(g==null||g.forEach(c=>{e++,!(e>3)&&(console.log("logging viewPromotion for LIGHTBOX_MODAL Promo with holdoutInd H=",c),this.promo.logView(c))}),this.lboxModalPromos=r.filter(c=>(c==null?void 0:c.holdoutInd)=="N"),this.lboxModalPromos&&this.lboxModalPromos.length>0){console.log("base LIGHTBOX_MODAL promotions with lboxModalPromos=",this.lboxModalPromos),e=0,(s=this.lboxModalPromos)==null||s.forEach(C=>{if(e++,e>3){this.lboxModalPromos=this.lboxModalPromos.slice(0,e-1);return}console.log("logging viewPromotion for LIGHTBOX_MODAL Promo with holdoutInd N=",C),this.promo.logView(C)});let c=0,d=this.lboxModalPromos[0].accountKey.progSolNumber,u=0,v=!1;
1(i=this.accountPages)==null||i.forEach(C=>{console.log("account=",C),(C==null?void 0:C.progsol)==d&&!v&&(c=u,v=!0),u++}),this.selectedAccountIndex=c,console.log("base LIGHTBOX_MODAL lboxModalPromos0 initial index="+this.selectedAccountIndex)}else{console.log("base LIGHTBOX promotions"),this.promos=yield this.profile.getPromotions({locationCode:"LIGHTBOX"});let c=this.promos.filter(u=>(u==null?void 0:u.holdoutInd)=="Y");c==null||c.forEach(u=>{console.log("logging viewPromotion lightboxPromo with holdout Y =",u),this.promo.logView(u)});let d=this.promos.filter(u=>(u==null?void 0:u.holdoutInd)!="Y");if(d&&d[0]){console.log("logging viewPromotion lightboxPromo with holdout N =",d[0]),this.promo.logView(d[0]);let u=0,v=d[0].accountKey.progSolNumber,C=0,I=!1;(n=this.accountPages)==null||n.forEach(x=>{console.log("account=",x),(x==null?void 0:x.progsol)==v&&!I&&(u=C,I=!0),C++}),this.selectedAccountIndex=u,console.log("base lightbox promoN0 initial index="+this.selectedAccountIndex)}}}}else console.log("base updating account promotions"),this.events.publish("account:updatepromos",this.promotions,this.mainPromotions,this.colpromotions)}catch(a){console.log("loading promotion failed"),console.log(a)}})}openAccountPage(t,e,o){return h(this,null,function*(){if(t&&console.log("base openAccount Page title="+t.title+" idx="+e+" selectedAccount=",this.selectedAccount),this.isAuthenticated()){this.selectedPage=t.title,this.selectedPageProgSol=t.progsol,o||(this.selectedAccount=t),this.selectedAccountIndex=e;let s=this.accountPages[this.selectedAccountIndex].hasAutoDeduct;this.selectedTheme=t.theme;let i=t.account;this.selectedTabComponent&&(t.component=this.selectedTabComponent,i=this.selectedAccount);let n=yield this.loadingCtrl.create();yield n.present(),Object.assign(t.params,{selected:this.selectedTabIndex,mytitle:this.selectedTabTitle,hasAutoDeduct:s}),console.log("base page account=",t.account+" selectedProgSolNumber="+this.selectedPageProgSol),this.events.publish("account:home",t.account,this.selectedTabTitle,this.selectedTabIndex,this.selectedPageProgSol),yield n.dismiss()}})}openPage(t){this.isAuthenticated()?(this.navCtrl.navigateRoot([t.component,{account:this.selectedAccount,theme:this.selectedTheme}]),this.selectedPage=t.title,this.selectedPageProgSol=t.progsol):this.logout()}onAuthSuccess(t){return h(this,null,function*(){if(t)try{this.auth.setLastLogin("1"),this.navCtrl.navigateRoot(["/loading"])}catch(e){console.log(e)}else{let e=this.auth.unauthenticatedHandler();console.log(e),e&&this.navCtrl.navigateRoot(["/login",{errorMessage:this.pageCtrl.platform.translate("base_auth.wrong_credentials.message")}])}})}baseLogin(t){return h(this,null,function*(){this.auth.login(t,"fromBase")})}handleAuthStateCode(){return h(this,null,function*(){if(this.authStateCode=="NEEDAUTH"){let t={state:{username:this.authUserName,authOnlyToken:this.authToken,password:"",message:""}};console.log("base needauth enter-auth-code method navigationExtras: "+t),this.router.navigate(["/enter-auth-code"],t)}else if(this.authStateCode=="FORCEPWD"){let t={state:{username:this.authUserName,changeOnlyToken:this.authToken,passwordOld:"",successCallback:"1"}};console.log("base forcepwd change-password method navigationExtras: "+t),this.router.navigate(["/change-password"],t)}else if(this.authStateCode=="LOCKED"||this.authStateCode=="REGENTMPPWD"||this.authStateCode=="OLSUSER"||this.authStateCode=="STAYLOGIN"||this.authStateCode=="PROMPTOTP")if(console.log("testing staylogin, ",this.authStateCode,this.authPageMessage),this.authLanguage=="es"){let t={state:{errorMessage:this.authPageMessage,mylang:"es",username:this.authUserName,authStateCode:this.authStateCode,authToken:this.authToken,authPageMessage:this.authPageMessage}};this.navCtrl.navigateRoot(["/login"],t)}else{let t={state:{errorMessage:this.authPageMessage,username:this.authUserName,authStateCode:this.authStateCode,authToken:this.authToken,authPageMessage:this.authPageMessage}};this.navCtrl.navigateRoot(["/login"],t)}else if(this.authStateCode=="ERRORCODE"){let t=null,e=null;this.authLanguage=="es"?(t="No hay coincidencia para este nombre de usuario y contrase\xF1a. Vuelva a ingresarlos o haga clic en Olvid\xF3 su nombre de usuario o contrase\xF1a para restablecer su informaci\xF3n. Las contrase\xF1as son sensibles a las may\xFAsculas.",e="es"):t="There's no match for this User Name and Password. Please re-enter or click Forgot User Name or Password to reset your information.  Passwords are case sensitive.";let o={state:{errorMessage:t,authStateCode:this.authStateCode,mylang:e}};this.router.navigate(["/login"],o)}})}goToLogin(){return h(this,null,function*(){if(console.log("inside base gotologin"),this.pageCtrl.platform.isApp())this.router.navigate(["/login"]),console.log("testing isApp in base111");else if(this.authStateCode&&this.authStateCode.length>0)console.log("testing authstatecode loginwidget",this.authStateCode),this.handleAuthStateCode();else if(console.log("testing auth state code from login widget222"),this.authLanguage=="es"||window.location.href.indexOf("/?lang=es")>=0)this.navCtrl.navigateRoot(["/login",{mylang:"es"}]);else{(yield this.modalCtrl.getTop())&&(yield this.modalCtrl.dismiss());let t=window.location.href;if(this.pageCtrl.platform.getACCode()==="FXC"&&t.indexOf("lang=es")>=0&&(t=t.replace("lang=es","lang=en"),console.log("base replace lang es to en")),console.log("base url="+t),t.indexOf("loc=")>=0){let o="&cid=";t.indexOf("upload")>=0&&(o="&id=");let s=this.parseLocation(t,o),i=s.url,n="";if(i=="/forgot-username"||i=="/create-account"||i=="/ecp"||i=="/fcccliff"||i=="/acccliff"){i="/account-lookup",n=s.url.substring(1)+o+s.param,console.log("going to myurl="+i+" mytype="+n);let a={state:{type:s.url.substring(1)}};this.router.navigate([i],a)}else if(i=="/upload"){let a={state:{refNumber:s.param}};this.router.navigate([i],a)}else i=="/forgot-password"?this.router.navigate([i]):(console.log("base defaulting to login unknown myurl="+i),this.router.navigate(["/login"]))}else this.router.navigate(["/login"])}})}logout(t){return h(this,null,function*(){(yield this.modalCtrl.getTop())&&(yield this.modalCtrl.dismiss()),t==1&&(this.authStateCode="",this.authUserName="",this.authToken="",this.authLanguage="");let e=this.getPath(),o=e||"app";if(this.accountPages=[],this.accountKeys=[],this.promotions=null,this.mainPromotions=null,this.promos=null,this.colpromotions=null,this.firstName="",this.selectedAccountIndex=0,this.selectedTabIndex=0,this.destinationPathUrl="",console.log("base calling account cleanup"),this.events.publish("account:cleanup"),this.isAuthenticated()&&(yield this.auth.logout(t)),!this.isPublicPage(o))if(this.pageCtrl.platform.isApp())console.log("testing logout on click navigate to login with replace true"),this.router.navigate(["/login"],{replaceUrl:!0});else{let s=window.location.href.indexOf("/?lang=es");if(s>=0&&this.pageCtrl.platform.trans.getDefaultLang()=="en"){let i=window.location.href.substring(0,s);window.location.href=i}console.log("testing logout on click111"),this.goToLogin()}})}goToSettings(t){t&&(this.events.publish("account:setpage","Settings & Notifications"),this.selectedPage="Settings & Notifications")}getPath(){let t=window.location.href.split(/\//);return t[t.length-1]}isPublicPage(t){let e=!1;for(let o of this.publicPages)if(t.indexOf(o)>-1)return!0;return e}navigateTo(t,e){var o,s,i,n;if(console.log("base path="+t),t)if(console.log("navigating to "+t),t=="gopaperless")this.goToPaperless(e);else if(t=="cardcontrol")this.goToCardControl(!1,e);else if(t=="creditprotection"||t=="creditprotectionunenroll")this.goToCreditProtection(e);else if(t=="goCashAdvance")this.goToCashOffer(e);else if(t=="gosweepstakes")this.goToSweepStakes(e);else if(t=="idtheftenroll"||t=="idtheftunenroll")this.goToIdTheftEnroll(e);
1else if(t=="goshoppingpass")this.launchShoppingPass(e);else if(t=="statementbundle")this.goToStatementBundlePage(e);else if(t=="deposit")this.goToDeposit(e);else if(t=="transferfunds")this.goToTransferFunds(e);else if(this.pageCtrl.util.isPathInCollection(t))this.goToColSpecialRiskPrograms(e,t);else if(t=="cliff"){let a=e.promotion,r="acc";(a.logo=="thd"||a.logo=="frc"||a.logo=="fcc"||a.logo=="kcc"||a.logo=="iac")&&(r="fcc");let g=this.pageCtrl.platform.trans.getDefaultLang();this.selectedPage=a.subject,a&&a.accountKey&&(this.selectedPage+=a.accountKey.progSolNumber),this.selectedPageProgSol="",console.log("base params=",e),a.returnStatusCode=="Y"||a.returnStatusCode=="N"?this.events.publish("account:creditlimit",a,r,g,this.pageCtrl.platform.getACCode()):this.events.publish("account:creditresult",a,r,g)}else t=="vantage"||t=="creditprotection"?(e&&(this.selectedPage=(o=e==null?void 0:e.promotion)==null?void 0:o.subject,t=="creditprotection"&&e.promotion&&((s=e==null?void 0:e.promotion)!=null&&s.accountKey)&&(this.selectedPage+=(n=(i=e==null?void 0:e.promotion)==null?void 0:i.accountKey)==null?void 0:n.progSolNumber),this.selectedPageProgSol=""),console.log("base params=",e),this.events.publish("account:vantage",e.promotion)):t=="settings"?this.goToSettings(!0):this.checkCardControl(t)?this.goToCardControl(!1,e,t):console.log("base ignoring path="+t);else this.pageCtrl.platform.is("mobile")?this.openPage(this.accountPages[0]):this.accountPages&&this.accountPages.length>0&&(this.selectedAccount=this.accountPages[0],this.selectedTheme=this.accountPages[0].theme)}togglePromotions(){this.promotionsToggled=!this.promotionsToggled}hasUnread(){return this.msg.hasUnread()}getExtLogoImage(t,e){let o=this.pageCtrl.platform.getACCode(),s="https://"+this.lookup.getAccCode("homeURL")+"/m/images/UX/"+o+"_logo.png",i=this.pageCtrl.platform.translate("base_auth.extlaunch.title")+" "+t;return(e==null?void 0:e.length)>0&&(i=e),"<img alt='Fortiva' id='fortiva-menu-logo' src='"+s+"'><br/><b class='global-font-22'>"+i+"</b>"}confirmPromoCallback(t){t&&D.open({url:this.promoUrl,windowName:"_system"})}getExtBody(t,e){let o=t,s=this.pageCtrl.platform.translate("base_auth.extlaunch.message3",{accountcentername:this.lookup.accountCenterName});return(e==null?void 0:e.length)>0?(s="",o=""):e||(o=""),this.sanitizer.bypassSecurityTrustHtml(this.getExtLogoImage(t,e)+"<br/><br/>"+o+s)}confirmPromoLaunchModal(t,e,o){return h(this,null,function*(){this.promoUrl=e,yield(yield this.modalCtrl.create({component:S,cssClass:this.pageCtrl.platform.is("mobile")?"generic-mobile-alert":"generic-desktop-alert",backdropDismiss:!1,componentProps:{showCheckmark:!0,isPromoAlert:!0,alertCallback:this.confirmPromoCallback.bind(this),header:t,editControlMessage:this.getExtBody(t,o),button1:this.pageCtrl.platform.translate("base_auth.extlaunch.continue"),button2:this.pageCtrl.platform.translate("base.alert.close")}})).present()})}confirmBadAddress(){return h(this,null,function*(){let t=[];t.push({text:this.pageCtrl.platform.translate("base_auth.extlaunch.continue"),cssClass:this.pageCtrl.styleUtil.getButtonPrimary(),handler:o=>{this.events.publish("account:setpage","Settings & Notifications")}}),yield(yield this.alertCtrl.create({header:"",message:this.getBadAddressLogoImage()+"<br/><br/>"+this.getBadAddressAlertMsg(),backdropDismiss:!1,buttons:t,cssClass:"alertCustomCss"})).present()})}confirmAlert(t,e){return h(this,null,function*(){if(t=="collections"){this.collectionsInvoked||(console.log("prompting collection type"),this.promptCollectionType(e),this.collectionsInvoked=!0);return}if(t=="rtnmail"){this.confirmBadAddress();return}yield(yield this.modalCtrl.create({component:S,cssClass:this.pageCtrl.platform.is("mobile")?"generic-mobile-alert":"generic-desktop-alert",backdropDismiss:!1,componentProps:{showCheckmark:!0,fromVerifyContact:!0,alertCallback:this.goToSettings.bind(this),header:this.pageCtrl.platform.translate("base_auth.alert.title"),message:this.getAlertMsg()}})).present()})}getAlertMsg(){let t=this.pageCtrl.platform.getACCode(),e=this.pageCtrl.platform.translate("global.title."+t),o=this.pageCtrl.platform.translate("base_auth.alert.message1"),s=this.pageCtrl.platform.translate("base_auth.alert.message2");return o+e+s}getBadAddressAlertMsg(){let t=this.pageCtrl.platform.translate("base_auth.alert.badtitle1"),e=this.pageCtrl.platform.translate("base_auth.alert.badtitle2");return t+"<br/><br/>"+e}getBadAddressLogoImage(){let t=this.pageCtrl.platform.getACCode(),e="https://"+this.lookup.getAccCode("homeURL")+"/m/images/UX/"+t+"_logo.png";return"<img alt='"+this.pageCtrl.util.accountCenterName()+"' id='fortiva-menu-logo-promo' src='"+e+"'><br/><br/><b class='global-font-22'>"+this.pageCtrl.platform.translate("base_auth.alert.mailtitle")+"</b>"}launchShoppingPass(t){return h(this,null,function*(){console.log("launching shopping pass");let e=this.pageCtrl.platform.trans.getDefaultLang();(yield this.modalCtrl.create({component:O,backdropDismiss:!1,componentProps:{account:t.account,theme:this.selectedTheme,lang:e,shoppingpass:!0}})).present().then(s=>this.pageCtrl.modalOptions)})}goToChangePassword(){return h(this,null,function*(){this.selectedPage="Change Password",this.selectedPageProgSol="";let t=yield this.modalCtrl.create({component:rt,componentProps:{f
1illContainer:!1},backdropDismiss:!1,cssClass:"mymodal-right model-dark-background"});return t.onDidDismiss().then(e=>{console.log("dialog retrived data="+e.data)}),yield t.present()})}onAlertCallback(t){t&&this.events.publish("account:setpage","Settings & Notifications")}goToPaperless(t){return h(this,null,function*(){var i,n,a;this.selectedPage="Go Paperless",this.selectedPageProgSol="";let e=[],o=yield this.loadingCtrl.create();yield o.present();let s=yield this.api.post("/ols/s/customer/getCustomerVerified",{});if(yield o.dismiss(),s&&s.customerVerified=="S")if(t&&t.promotion){let r=(i=t==null?void 0:t.promotion)!=null&&i.accountKey?(a=(n=t==null?void 0:t.promotion)==null?void 0:n.accountKey)==null?void 0:a.progSolNumber:-1;this.events.publish("account:gopaperless",r,!1,t==null?void 0:t.promotion)}else this.events.publish("account:gopaperless");else s&&s.customerVerified=="FENC"?yield(yield this.modalCtrl.create({component:S,cssClass:this.pageCtrl.platform.is("mobile")?"generic-mobile-alert":"generic-desktop-alert",backdropDismiss:!1,componentProps:{isCustomAlert:!0,alertCallback:this.onAlertCallback.bind(this),header:this.pageCtrl.platform.translate("global.contact.verification.title"),message:s.pageMessage,button1:this.pageCtrl.platform.translate("global.button.continue")}})).present():s&&s.customerVerified=="FNE"?yield(yield this.modalCtrl.create({component:S,cssClass:this.pageCtrl.platform.is("mobile")?"generic-mobile-alert":"generic-desktop-alert",backdropDismiss:!1,componentProps:{isSuccessAlert:!0,message:s.pageMessage}})).present():yield(yield this.modalCtrl.create({component:S,cssClass:this.pageCtrl.platform.is("mobile")?"generic-mobile-alert":"generic-desktop-alert",backdropDismiss:!1,componentProps:{isOopsAlert:!0,message:s.pageMessage}})).present()})}goToDeposit(t){return h(this,null,function*(){console.log("deposit params:",t),this.events.publish("account:deposit",{account:t.account})})}goToTransferFunds(t){return h(this,null,function*(){console.log("transfer funds params:",t),this.events.publish("dtaccount:tabselected",1,"Transfer Funds")})}goToCashAdvanceTransfer(){return h(this,null,function*(){console.log("base going to cashadvance transfer"),this.events.publish("dtaccount:tabselected",4,"Cash Advance Transfer")})}goToCashOffer(t){return h(this,null,function*(){var o,s,i,n;console.log("base goToCashOffer params promotion=",t.promotion);let e=0;if(this.accountPages&&this.accountPages.length>1&&this.accountPages&&t.promotion){let a=(s=(o=t==null?void 0:t.promotion)==null?void 0:o.accountKey)==null?void 0:s.progSolNumber,r=0,g=!1;(i=this.accountPages)==null||i.forEach(c=>{console.log("account=",c),(c==null?void 0:c.progsol)==a&&!g&&(e=r,g=!0),r++})}this.selectedAccountIndex=e,this.selectedTabTitle="Account Summary",console.log("cashAdvance new selected Index="+this.selectedAccountIndex),this.events.publish("account:home",this.accountPages[this.selectedAccountIndex]),this.accountPages&&this.accountPages.length>1?(console.log("base reloading account for idx="+this.selectedAccountIndex),this.pageCtrl.events.publish("account:setacctpage",this.accountPages[this.selectedAccountIndex],this.selectedAccountIndex)):this.events.publish("pageheader:display",this.selectedTabTitle,(n=this.accountPages[this.selectedAccountIndex])==null?void 0:n.account),this.events.publish("account:cashadvance",{account:this.accountPages[e],promotion:t.promotion})})}goToCreditProtection(t){return h(this,null,function*(){console.log("credit protection params:",t),this.events.publish("account:creditprotection",{account:t.account,promotion:t.promotion})})}goToSweepStakes(t){return h(this,null,function*(){this.events.publish("account:sweepstakes",{account:t.account,promotion:t.promotion})})}goToIdTheftEnroll(t){return h(this,null,function*(){console.log("id theft enroll params:",t),this.events.publish("account:idtheftenroll",{account:t.account,promotion:t.promotion})})}goToColSpecialRiskPrograms(t,e){return h(this,null,function*(){var n,a,r,g,c;console.log("col eligibleSRP params promotion=",t.promotion);let o=0;if(this.accountPages&&this.accountPages.length>1&&this.accountPages&&t.promotion){let d=(a=(n=t==null?void 0:t.promotion)==null?void 0:n.accountKey)==null?void 0:a.progSolNumber,u=0,v=!1;(r=this.accountPages)==null||r.forEach(C=>{console.log("account=",C),(C==null?void 0:C.progsol)==d&&!v&&(o=u,v=!0),u++})}this.selectedAccountIndex=o,this.selectedTabTitle="Account Summary",console.log("SRP new selected Index="+this.selectedAccountIndex),this.events.publish("account:home",this.accountPages[this.selectedAccountIndex]),this.accountPages&&this.accountPages.length>1?this.pageCtrl.events.publish("account:setacctpage",this.accountPages[this.selectedAccountIndex],this.selectedAccountIndex):this.events.publish("pageheader:display",this.selectedTabTitle,(g=this.accountPages[this.selectedAccountIndex])==null?void 0:g.account);let s=this.accountPages[this.selectedAccountIndex].account,i=yield this.modalCtrl.create({component:ct,backdropDismiss:!1,cssClass:"mymodal-right",componentProps:{account:s,customer:this.customer,currentBalance:(c=s==null?void 0:s.account)==null?void 0:c.currentBalance,mobileHeader:!0,programType:e,promotion:t.promotion,colpromotions:this.colpromotions,theme:"primary"}});return i.onDidDismiss().then(d=>{console.log("dlg retdata="+d.data)}),yield i.present()})}goToCardControl(t,e,o){return h(this,null,function*(){console.log("base card control customer=",this.customer+" path=",o);
1let s="/ols/s/customer/getCardControlAccounts";this.selectedPage="Card Control",this.selectedPageProgSol="";let i=yield this.loadingCtrl.create();yield i.present();let n=yield this.api.post(s,{accountKeys:this.accountKeys,doNotCallTsys:t||!1});if(yield i.dismiss(),n&&n.outcome=="SUCCESS"){let a=n.cardControlAccounts;console.log("base cardaccounts=",a),!a||a.length==0?yield(yield this.modalCtrl.create({component:S,cssClass:this.pageCtrl.platform.is("mobile")?"generic-mobile-alert":"generic-desktop-alert",backdropDismiss:!1,componentProps:{isOopsAlert:!0,message:this.pageCtrl.platform.translate("cardcontrol.page.noactionmsg")}})).present():this.events.publish("account:cardcontrol",a,this.accountKeys,{account:e==null?void 0:e.account,promotion:e==null?void 0:e.promotion,path:o})}else yield(yield this.modalCtrl.create({component:S,cssClass:this.pageCtrl.platform.is("mobile")?"generic-mobile-alert":"generic-desktop-alert",backdropDismiss:!1,componentProps:{isOopsAlert:!0,message:n.pageMessage}})).present()})}saveRatingInput(t){console.log("final opted value",t)}onRemindLaterCallback(t){t&&this.saveRatingInput("remindLater")}remindMeLaterAlert(){return h(this,null,function*(){yield(yield this.modalCtrl.create({component:S,cssClass:this.pageCtrl.platform.is("mobile")?"generic-mobile-alert":"generic-desktop-alert",backdropDismiss:!1,componentProps:{isSuccessAlert:!0,alertCallback:this.onRemindLaterCallback.bind(this),message:this.pageCtrl.platform.translate("base.rating_alert.remind_later.message")}})).present()})}postRating(t,e){return h(this,null,function*(){let o="/ols/s/program/optOutAppRating";e&&(o="/ols/s/program/optInAppRating");let s=yield this.loadingCtrl.create();yield s.present();let i=yield this.api.post(o,{program:t.program});if(yield s.dismiss(),e){let n=null;this.pageCtrl.platform.is("ios")?n=this.lookup.getAccCode("appStoreURL"):n=this.lookup.getAccCode("playStoreURL"),console.log("ratingUrl="+n),D.open({url:n,windowName:"_system"})}})}ignoreRatingCallback(t,e){t?this.postRating(e,!0):(this.postRating(e,!1),this.saveRatingInput("ingoreRating"))}ignoreRating(t){return h(this,null,function*(){yield(yield this.modalCtrl.create({component:S,cssClass:this.pageCtrl.platform.is("mobile")?"generic-mobile-alert":"generic-desktop-alert",backdropDismiss:!1,componentProps:{isCustomAlert:!0,alertCallback:this.ignoreRatingCallback.bind(this,t),header:this.pageCtrl.platform.translate("text.areyousure"),message:this.pageCtrl.platform.translate("base.rating_alert.ignore_rating.message"),button1:this.pageCtrl.platform.translate("base.rating_alert.rating.button"),button2:this.pageCtrl.platform.translate("base.rating_alert.ignore_rating.button")}})).present()})}ratingAlertCallback(t,e){t=="FROM_BUTTON1"?this.postRating(e,!0):t=="FROM_BUTTON2"?this.remindMeLaterAlert():this.ignoreRating(e)}ratingAlert(t){return h(this,null,function*(){yield(yield this.modalCtrl.create({component:S,cssClass:this.pageCtrl.platform.is("mobile")?"generic-mobile-alert":"generic-desktop-alert",backdropDismiss:!1,componentProps:{isSpecialAlert:!0,alertCallback:this.ratingAlertCallback.bind(this,t),header:this.pageCtrl.platform.translate("base.rating_alert.title"),message:this.pageCtrl.platform.translate("base.rating_alert.message1"),button1:this.pageCtrl.platform.translate("base.rating_alert.rating.button"),button2:this.pageCtrl.platform.translate("base.rating_alert.button2"),button3:this.pageCtrl.platform.translate("base.rating_alert.button3")}})).present()})}goToStatementBundlePage(t){return h(this,null,function*(){var o,s,i;let e=0;if(this.accountPages&&(t!=null&&t.promotion)){let n=(s=(o=t==null?void 0:t.promotion)==null?void 0:o.accountKey)==null?void 0:s.progSolNumber,a=0,r=!1;(i=this.accountPages)==null||i.forEach(g=>{console.log("account=",g),(g==null?void 0:g.progsol)==n&&!r&&(e=a,r=!0),a++})}this.selectedAccountIndex=e,console.log("launching statementbundle page params=",t+" idx="+e+" account=",this.accountPages[e].account),this.events.publish("account:statementbundle",{params:t,account:this.accountPages[e].account})})}makePayment(t){return h(this,null,function*(){this.modalCtrl.dismiss();let e=yield this.modalCtrl.create({component:it,componentProps:{account:t,theme:"primary",mobileHeader:!0},backdropDismiss:!1,cssClass:"mymodal-right"});
1return e.onDidDismiss().then(o=>{console.log("dialog retrived data="+o.data)}),yield e.present()})}promptCollectionType(t){return h(this,null,function*(){var i,n,a,r;let e=0;if(this.accountPages&&t.program&&t.program.documentKey&&t.program.documentKey.programDocumentKey){let g=t.program.documentKey.programDocumentKey.progSolNumber,c=0,d=!1;(i=this.accountPages)==null||i.forEach(u=>{console.log("account=",u),(u==null?void 0:u.progsol)==g&&!d&&(e=c,d=!0),c++})}this.selectedAccountIndex=e;let o=this.accountPages[e].account;console.log("base collection idx="+e+" account=",o);let s=((n=o==null?void 0:o.account)==null?void 0:n.canMakePaymentInd)=="NM";if(console.log("dt launchAlertMsg="+s),s){let g=this.pageCtrl.platform.trans.getDefaultLang(),c=(a=o==null?void 0:o.accountKey)==null?void 0:a.csPhoneNumber,d="";g=="es"?d="Comun\xEDquese con el Servicio al cliente al "+c+" para obtener ayuda con su cuenta.":d="Please contact Customer Service at "+c+" for assistance with your account.",this.pageCtrl.util.confirm({title:this.pageCtrl.platform.translate("Error"),message:d,button:this.pageCtrl.platform.translate("button.ok")})}else if(((r=o==null?void 0:o.account)==null?void 0:r.amountPastDue)>0){let g=yield this.modalCtrl.create({component:nt,backdropDismiss:!1,cssClass:this.pageCtrl.platform.is("mobile")?"":"mycollection-selector",componentProps:{theme:"primary",account:o}});g.onDidDismiss().then(c=>{}),g.present().then(c=>this.pageCtrl.modalOptions)}})}parseLocation(t,e){let o=t,s="",i="en",n=t.indexOf("loc=");if(n>=0){o="/"+t.substring(n+4);let r=o.indexOf(e);if(r>=0){let c=e.length;s=o.substring(r+c),o="/"+t.substring(n+4,n+4+r-1)}let g=o.indexOf("&lang=");g>=0&&(i=o.substring(g+6),o=o.substring(0,g),this.profile.config.setLanguage(i))}return{url:o,param:s,lang:i}}checkCardControl(t){let e=t+":";return this.cardControlOptions.indexOf(e)>=0}processBaseNavigate(){return h(this,null,function*(){if(console.log("base processing base and navigating to account"),this.hasUnread(),this.msgCount=this.msg.unreadCount(),console.log("base msgCount="+this.msgCount+" authStateCode="+this.authStateCode+" selectedAccountIndex=",this.selectedAccountIndex),(this.authStateCode=="GOOD"||this.authStateCode=="BADCONTACT"||this.authStateCode=="BADADDRESS")&&this.accountPages&&this.accountPages.length>0&&(this.openAccountPage(this.accountPages[this.selectedAccountIndex],0),this.authStateCode=""),this.accountPages&&this.accountPages.length>0){let t={state:{account:this.accountPages[this.selectedAccountIndex].account,accountPages:JSON.stringify(this.accountPages),mainPromotions:JSON.stringify(this.mainPromotions),promotions:JSON.stringify(this.promotions),promos:JSON.stringify(this.promos),lboxModalPromos:JSON.stringify(this.lboxModalPromos),colpromotions:JSON.stringify(this.colpromotions),selectedacct:this.selectedAccountIndex,selectedtab:0,destinationPathUrl:this.destinationPathUrl,customer:this.customer,welcome:this.welcome}};console.log("base first account=",this.accountPages[this.selectedAccountIndex].account),this.router.navigate(["/account"],t),this.events.publish("account:setcount",this.msgCount)}this.events.publish("messages:setcount",this.msgCount)})}getTabTitle(t){let e="Summary";return t==1?e="Payments":t==2?e="Support":t==3&&(e="Statements"),e}clearWelcome(){return h(this,null,function*(){let t=yield this.storage.get("username");yield this.storage.remove(`welcome${t}`),console.log("base removing welcome from storage for username=",t)})}};p.\u0275fac=function(e){return new(e||p)(b(Z),b(F),b(G),b(at),b(lt),b(tt),b(Y),b(V),b(Q),b(et),b(j),b(_),b(W),b(K),b(q),b(z),b(B),b(J))},p.\u0275cmp=R({type:p,selectors:[["app-base"]],standalone:!1,decls:0,vars:0,template:function(e,o){},encapsulation:2});let P=p;return P})();var yt=[{path:"",component:pt,children:[{path:"login",loadChildren:()=>import("./chunk-DLFWSH6R.js").then(P=>P.LoginPageModule)},{path:"",redirectTo:"login",pathMatch:"full"}]}],ft=(()=>{let p=class p{};p.\u0275fac=function(e){return new(e||p)},p.\u0275mod=k({type:p}),p.\u0275inj=N({imports:[M.forChild(yt),M]});let P=p;return P})();var Ie=(()=>{let p=class p{};p.\u0275fac=function(e){return new(e||p)},p.\u0275mod=k({type:p}),p.\u0275inj=N({imports:[U,H,X,ht,ft]});let P=p;return P})();export{Ie as BasePageModule};

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.