1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3789],{3789:(_t,v,s)=>{s.r(v),s.d(v,{creditValidationModule:()=>mt});var d=s(177),C=s(9417),l=s(8143),u=s(33),p=s(467),t=s(4438),f=s(338),h=s(3251),_=s(4111),g=s(5377),S=s(735),b=s(9871),V=s(1047);function G(a,r){if(1&a){const o=t.RV6();t.j41(0,"ion-col",2)(1,"app-personal-information",9),t.bIt("onSaveState",function(e){t.eBV(o);const i=t.XpG();return t.Njj(i.saveState(e))})("onForm",function(e){t.eBV(o);const i=t.XpG();return t.Njj(i.form=e)}),t.k0s()()}if(2&a){const o=t.XpG();t.R7$(),t.Y8G("onSave",o.onSave)}}function x(a,r){if(1&a){const o=t.RV6();t.j41(0,"ion-col",2)(1,"app-id",9),t.bIt("onSaveState",function(e){t.eBV(o);const i=t.XpG();return t.Njj(i.saveState(e))})("onForm",function(e){t.eBV(o);const i=t.XpG();return t.Njj(i.form=e)}),t.k0s()()}if(2&a){const o=t.XpG();t.R7$(),t.Y8G("onSave",o.onSave)}}function T(a,r){if(1&a){const o=t.RV6();t.j41(0,"ion-col",2)(1,"app-address",9),t.bIt("onSaveState",function(e){t.eBV(o);const i=t.XpG();return t.Njj(i.saveState(e))})("onForm",function(e){t.eBV(o);const i=t.XpG();return t.Njj(i.form=e)}),t.k0s()()}if(2&a){const o=t.XpG();t.R7$(),t.Y8G("onSave",o.onSave)}}function j(a,r){if(1&a){const o=t.RV6();t.j41(0,"ion-col",2)(1,"app-commitment",10),t.bIt("onAcceptTerms",function(e){t.eBV(o);const i=t.XpG();return t.Njj(i.acceptTerms(e))})("onSaveState",function(e){t.eBV(o);const i=t.XpG();return t.Njj(i.saveState(e))}),t.k0s()()}if(2&a){const o=t.XpG();t.R7$(),t.Y8G("onSave",o.onSave)}}function N(a,r){if(1&a){const o=t.RV6();t.j41(0,"ion-col",2)(1,"app-security-questions",11),t.bIt("onSaveState",function(e){t.eBV(o);const i=t.XpG();return t.Njj(i.saveState(e))}),t.k0s()()}if(2&a){const o=t.XpG();t.R7$(),t.Y8G("onSave",o.onSave)("questions",o.questions)}}function y(a,r){if(1&a){const o=t.RV6();t.j41(0,"ion-col",2)(1,"app-equifax-validation",12),t.bIt("onSaveState",function(e){t.eBV(o);const i=t.XpG();return t.Njj(i.saveState(e))}),t.k0s()()}if(2&a){const o=t.XpG();t.R7$(),t.Y8G("onSave",o.onSave)}}function R(a,r){if(1&a){const o=t.RV6();t.j41(0,"ion-col",7)(1,"ion-button",13),t.bIt("click",function(){t.eBV(o);const e=t.XpG();return t.Njj(e.next())}),t.EFF(2," Continuar "),t.k0s()()}if(2&a){const o=t.XpG();t.R7$(),t.Y8G("color",o.form.valid?"primary":"medium")("disabled",o.form.invalid)}}let M=(()=>{var a;class r{constructor(){this.screens=[],this.state=0,this.onContinue=new t.bkB,this.onBack=new t.bkB,this.onSaveState=new t.bkB,this.onAcceptTerms=new t.bkB}ngOnInit(){}next(){this.onContinue.next(this.state)}back(){this.onBack.next(this.state)}saveState(n){this.onSaveState.next(n)}acceptTerms(n){this.onAcceptTerms.emit(n)}}return(a=r).\u0275fac=function(n){return new(n||a)},a.\u0275cmp=t.VBU({type:a,selectors:[["app-credit-validation-movil"]],inputs:{screens:"screens",state:"state",questions:"questions",flowLoad:"flowLoad",onSave:"onSave",source:"source"},outputs:{onContinue:"onContinue",onBack:"onBack",onSaveState:"onSaveState",onAcceptTerms:"onAcceptTerms"},decls:17,vars:9,consts:[[1,"content-scroll"],[1,"credit-validation"],[1,"ion-no-padding"],[3,"state","items"],["class","ion-no-padding",4,"ngIf"],[1,"end-section"],["class","ion-no-padding","size-xs","12",4,"ngIf"],["size-xs","12",1,"ion-no-padding"],["color","secondary","fill","clear",1,"btn",3,"click"],[3,"onSaveState","onForm","onSave"],[3,"onAcceptTerms","onSaveState","onSave"],[3,"onSaveState","onSave","questions"],[3,"onSaveState","onSave"],["color","primary","id","open-custom-dialog","fill","outline",1,"btn",3,"click","color","disabled"]],template:function(n,e){1&n&&(t.j41(0,"div",0)(1,"ion-grid",1)(2,"ion-row")(3,"ion-col",2),t.nrm(4,"app-status-bar",3),t.k0s()(),t.j41(5,"ion-row"),t.DNE(6,G,2,1,"ion-col",4)(7,x,2,1,"ion-col",4)(8,T,2,1,"ion-col",4)(9,j,2,1,"ion-col",4)(10,N,2,2,"ion-col",4)(11,y,2,1,"ion-col",4),t.k0s(),t.j41(12,"ion-row",5),t.DNE(13,R,3,2,"ion-col",6),t.j41(14,"ion-col",7)(15,"ion-button",8),t.bIt("click",function(){return e.back()}),t.EFF(16," Regresar "),t.k0s()()()()()),2&n&&(t.R7$(4),t.Y8G("state",e.state)("items",e.screens),t.R7$(2),t.Y8G("ngIf","app-personal-information"===e.screens[e.state].component),t.R7$(),t.Y8G("ngIf","app-id"===e.screens[e.state].component),t.R7$(),t.Y8G("ngIf","app-address"===e.screens[e.state].component),t.R7$(),t.Y8G("ngIf","app-commitment"===e.screens[e.state].component),t.R7$(),t.Y8G("ngIf","app-security-questions"===e.screens[e.state].component),t.R7$(),t.Y8G("ngIf","app-equifax-validation"==e.screens[e.state].component),t.R7$(2),t.Y8G("ngIf",null!=e.form))},dependencies:[d.bT,l.Jm,l.hU,l.lO,l.ln,f.Q,h._,_.Z,g.J,S.p,b.z,V.e],styles:[".credit-validation[_ngcontent-%COMP%]{max-width:50rem;margin:0 auto 25px;padding:20px 20px 40px}.section[_ngcontent-%COMP%]{border-top:2px solid var(--ion-color-light)}.end-section[_ngcontent-%COMP%]{text-align:center;margin-top:.5rem;padding-top:.5rem}.btn[_ngcontent-%COMP%]{max-width:20rem;height:2.5rem;font-weight:700;font-size:16px}"]}),r})();var k=s(4408);const P=a=>({"btn-off":a});function B(a,r){if(1&a){const o=t.RV6();t.j41(0,"div",5)(1,"app-personal-information",9),t.bIt("onSaveState",function(e){t.eBV(o);const i=t.XpG();return t.Njj(i.saveState(e))})("onForm",function(e){t.eBV(o);const i=t.XpG();return t.Njj(i.form=e)}),t.k0s()()}if(2&a){const o=t.XpG();t.R7$(),t.Y8G("source",o.source)("onSave",o.onSave)}}function X(a,r){if(1&a){const o=t.RV6();t.j41(0,"div",5)(1,"app-id",10),t.bIt("onSaveState",function(e){t.eBV(o);const i=t.XpG();return t.Njj(i.saveState(e))})("onForm",function(e){t.eBV(o);const i=t.XpG();return t.Njj(i.form=e)}),t.k0s()()}if(2&a){const o=t.XpG();t.R7$(),t.Y8G("onSave",o.onSave)}}function A(a,r){if(1&a){const o=t.RV6();t.j41(0,"div",5)(1,"app-address",9),t.bIt("onSaveState",function(e){t.eBV(o);const i=t.XpG();return t.Njj(i.saveState(e))})("onForm",function(e){t.eBV(o);const i=t.XpG();return t.Njj(i.form=e)}),t.k0s()()}if(2&a){const o=t.XpG();t.R7$(),t.Y8G("source",o.source)("onSave",o.onSave)}}function E(a,r){if(1&a){const o=t.RV6();t.j41(0,"div",5)(1,"app-commitment",11),t.bIt("onAcceptTerms",function(e){t.eBV(o);const i=t.XpG();return t.Njj(i.acceptTerms(e))})("onSaveState",function(e){t.eBV(o);const i=t.XpG();return t.Njj(i.saveState(e))}),t.k0s()()}if(2&a){const o=t.XpG();t.R7$(),t.Y8G("onSave",o.onSave)}}function Y(a,r){if(1&a){const o=t.RV6();t.j41(0,"div",5)(1,"app-security-questions",12),t.bIt("onSaveState",function(e){t.eBV(o);const i=t.XpG();return t.Njj(i.saveState(e))}),t.k0s()()}if(2&a){const o=t.XpG();t.R7$(),t.Y8G("onSave",o.onSave)("questions",o.questions)}}function F(a,r){if(1&a){const o=t.RV6();t.j41(0,"div",5)(1,"app-equifax-validation",13),t.bIt("onSaveState",function(e){t.eBV(o);const i=t.XpG();return t.Njj(i.saveState(e))}),t.k0s()()}if(2&a){const o=t.XpG();t.R7$(),t.Y8G("onSave",o.onSave)}}function $(a,r){if(1&a){const o=t.RV6();t.j41(0,"button",17),t.bIt("click",function(){t.eBV(o);const e=t.XpG(2);return t.Njj(e.back())}),t.EFF(1,"Regresar"),t.k0s()}}function w(a,r){if(1&a){const o=t.RV6();t.j41(0,"div",14)(1,"button",15),t.bIt("click",function(){t.eBV(o);const e=t.XpG();return t.Njj(e.next())}),t.EFF(2," Continuar "),t.k0s(),t.DNE(3,$,2,0,"button",16),t.k0s()}if(2&a){const o=t.XpG();
1t.R7$(),t.Y8G("ngClass",t.eq3(3,P,o.form.invalid))("disabled",o.form.invalid),t.R7$(2),t.Y8G("ngIf","app-equifax-validation"!==o.screens[o.state]&&("movil"==o.flowLoad&&o.state>0||"movil"!=o.flowLoad))}}function L(a,r){1&a&&(t.j41(0,"div"),t.nrm(1,"app-footer"),t.k0s())}let W=(()=>{var a;class r{constructor(){this.onContinue=new t.bkB,this.onBack=new t.bkB,this.onSaveState=new t.bkB,this.onAcceptTerms=new t.bkB,this.screens=[],this.state=0,this.flowLoad="",this.isSelfService=!1}ngOnInit(){this.isSelfService="true"===sessionStorage.getItem("self-service")}next(){this.onContinue.next(this.state)}back(){this.onBack.next(this.state)}saveState(n){this.onSaveState.next(n)}acceptTerms(n){this.onAcceptTerms.emit(n)}}return(a=r).\u0275fac=function(n){return new(n||a)},a.\u0275cmp=t.VBU({type:a,selectors:[["app-credit-validation-web"]],inputs:{screens:"screens",state:"state",questions:"questions",onSave:"onSave",source:"source",flowLoad:"flowLoad"},outputs:{onContinue:"onContinue",onBack:"onBack",onSaveState:"onSaveState",onAcceptTerms:"onAcceptTerms"},decls:14,vars:11,consts:[[3,"ngClass"],[1,"container"],[1,""],[3,"state","items"],["class","item",4,"ngIf"],[1,"item"],["class","content-btn",4,"ngIf"],[1,"final-patch"],[4,"ngIf"],[3,"onSaveState","onForm","source","onSave"],[3,"onSaveState","onForm","onSave"],[3,"onAcceptTerms","onSaveState","onSave"],[3,"onSaveState","onSave","questions"],[3,"onSaveState","onSave"],[1,"content-btn"],[1,"btn",3,"click","ngClass","disabled"],["class","btn back",3,"click",4,"ngIf"],[1,"btn","back",3,"click"]],template:function(n,e){1&n&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2),t.nrm(3,"app-status-bar",3),t.k0s(),t.DNE(4,B,2,2,"div",4)(5,X,2,1,"div",4)(6,A,2,2,"div",4)(7,E,2,1,"div",4)(8,Y,2,2,"div",4)(9,F,2,1,"div",4),t.j41(10,"div",5),t.DNE(11,w,4,5,"div",6),t.k0s(),t.nrm(12,"div",7),t.k0s(),t.DNE(13,L,2,0,"div",8),t.k0s()),2&n&&(t.Y8G("ngClass","movil"==e.flowLoad?"content-scroll-QR":"content-scroll"),t.R7$(3),t.Y8G("state",e.state)("items",e.screens),t.R7$(),t.Y8G("ngIf","app-personal-information"===e.screens[e.state].component),t.R7$(),t.Y8G("ngIf","app-id"===e.screens[e.state].component),t.R7$(),t.Y8G("ngIf","app-address"===e.screens[e.state].component),t.R7$(),t.Y8G("ngIf","app-commitment"===e.screens[e.state].component),t.R7$(),t.Y8G("ngIf","app-security-questions"===e.screens[e.state].component),t.R7$(),t.Y8G("ngIf","app-equifax-validation"===e.screens[e.state].component),t.R7$(2),t.Y8G("ngIf",null!=e.form),t.R7$(2),t.Y8G("ngIf","web"==e.flowLoad&&!e.isSelfService))},dependencies:[d.YU,d.bT,f.Q,h._,_.Z,g.J,S.p,b.z,V.e,k.z],styles:[".content-scroll[_ngcontent-%COMP%]{height:calc(100vh - 84px)}.content-scroll-QR[_ngcontent-%COMP%]{height:84vh}.container[_ngcontent-%COMP%]{margin:0 auto;max-width:50rem;min-height:570px;padding:20px 20px 0}.container[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding:0}.content-btn[_ngcontent-%COMP%]{display:grid;grid-gap:10px;margin-top:30px;place-items:center;padding:30px 0;border-top:var(--border-simple)}.btn[_ngcontent-%COMP%]{width:100%;padding:14px 0;color:#ef3828;font-size:16px;max-width:320px;font-weight:700;background:#fff;border-radius:30px;border:1px solid #ef3828}.btn[_ngcontent-%COMP%]:active{transform:scale(.95)}.btn-off[_ngcontent-%COMP%]{color:#e1e1e1;border:var(--border-simple)}.back[_ngcontent-%COMP%]{border:none;color:#1f97ae}@media (min-width: 1080px){.container[_ngcontent-%COMP%]{min-height:570px}}@media (max-width: 600px){.btn[_ngcontent-%COMP%]{max-width:100%}}"]}),r})();var I=s(1985),O=s(1667),q=s(2125),D=s(7705),z=s(9095),U=s(6995),Q=s(115),J=s(2804),K=s(1855);const Z=["dynamicCreditValidation"],H=[{path:"",component:(()=>{var a;class r{constructor(n,e,i,c,m,ut,vt,ft,ht){this.Global=n,this.route=e,this.Account=i,this.Credit=c,this.StatusBar=m,this.Id=ut,this.Address=vt,this.Order=ft,this.Nav=ht,this.flowLoad="",this.screens=[],this.state=0,this.questions=[],this.response=[],this.result={},this.countError=0,this.activeSocket=!1,this.acceptTerms=!1,this.screens=[{title:"Datos personales",component:"app-personal-information"},{title:"Direcci\xf3n postal",component:"app-address"},{title:"Verificaci\xf3n de cr\xe9dito",component:"app-commitment"},{title:"Preguntas de seguridad",component:"app-security-questions"},{title:"Confirmaci\xf3n",component:"app-equifax-validation"}]}ngOnInit(){this.flowLoad=this.Global.flowLoad}ngAfterViewInit(){var n=this;this.route.paramMap.subscribe(function(){var e=(0,p.A)(function*(i){"movil"==n.Global.flowLoad&&(yield n.Global.startSocket(),n.activeSocket=yield n.Global.sendRequestSocket("loading")),n.load()});return function(i){return e.apply(this,arguments)}}())}load(){var n=this;return(0,p.A)(function*(){yield n.Global.load(n.dynamicCreditValidation,W,M).subscribe(e=>{n.component=n.dynamicCreditValidation.createComponent(e),n.component.instance.onContinue.subscribe(i=>{n.continue()}),n.component.instance.onBack.subscribe(i=>{n.back()}),n.component.instance.onSaveState.subscribe(i=>{n.saveState(i)}),n.component.instance.onAcceptTerms.subscribe(i=>{n.acceptTerms=i}),n.onEvents=n.Global.connectionSocket.onEvents.subscribe(function(){var i=(0,p.A)(function*(c){"processRemoteRegister"==(c=JSON.parse(c)).event&&n.Global.setToken(c.token)});return function(c){return i.apply(this,arguments)}}()),n.component.instance.flowLoad=n.Global.flowLoad,n.component.instance.screens=n.screens,n.component.instance.state=n.state,n.component.instance.source=n.Nav.getSource()})})()}getPostRegister(){return{flowId:this.Nav.getBackendId().toString(),frontFlowId:this.Nav.getId().toString(),frontFlowName:this.Nav.getName()}}convert(n){let e="[";
1return Object.values(n).forEach((i,c)=>{c>0&&(e+=","),e+='{"questionId":"'+String(i.questionId)+'", "answerId": "'+String(i.answerId)+'"}'}),e+="]",e}authorized(n,e){this.Global.eventsSocket(n,"authorized",e),this.Global.sendRequestSocketData("close-credit-validation",e),this.Nav.goTo("notifications","success")}saveState(n){this.component.instance.onSave=!1,1==n.state&&(this.state+1==this.screens.length?(this.Nav.temporaryUnlock(),this.Nav.goTo()):3==this.state?this.securityQuestions(this.convert(n.data)):2==this.state?1==this.acceptTerms?this.validateEquifax():this.Global.getAlert("warning","Debe aceptar los terminos para poder continuar."):(this.state++,this.component.instance.state=this.state))}back(){0==this.state?this.Nav.comeBack():(this.state--,this.component.instance.state=this.state)}continue(){this.component.instance.onSave=!0}validateEquifax(n=2){let e=this.Id.getLastname();""!=this.Id.getSecondLastname()&&(e=e+" "+this.Id.getSecondLastname());var i=new FormData;i.append("portalId",n.toString()),i.append("firstName",this.Id.getName()),i.append("lastName",e),i.append("ssn",this.Id.getSsn()),i.append("birthDate",this.Id.getBirthdate()),i.append("email",this.Id.getEmail()),i.append("phoneNumber",this.Id.getPhone()),i.append("addressLine",this.Address.getAddress1()),i.append("city",this.Address.getCity()),i.append("state",this.Address.getState()),i.append("zipcode",this.Address.getZipCode()),this.Credit.validateEquifax(i).subscribe(c=>{0==c.hasError?(this.quizId=c.quizId,this.transactionKey=c.transactionKey,this.questions=c.questionList,this.state++,this.component.instance.state=this.state,this.component.instance.questions=this.questions):"movil"==this.Global.flowLoad&&(this.state=0,this.component.instance.state=this.state,this.countError=0,1==this.activeSocket&&"web"==this.Global.chargingSystem?this.Nav.goTo("notifications","decline"):this.Nav.goTo("flows"))})}securityQuestions(n){let e={};e.titles=this.Id.getTitle(),e.firstName=this.Id.getName(),e.secondName=this.Id.getSecondName(),e.lastName=this.Id.getLastname(),e.email=this.Id.getEmail(),e.phone=this.Id.getPhone(),e.zipcode=this.Address.getZipCode(),e.city=this.Address.getCity(),e.country=this.Address.getCountry(),e.state=this.Address.getState(),e.txtStreetNumber=this.Address.getAddress1(),e.txtStreetName="",e.id=this.Id.getId(),e.expirationDateId=this.Id.getExpirationDateId(),e.ssn=this.Id.getSsn(),e.birthdate=this.Id.getBirthdate(),e.transactionKey=this.transactionKey,e.quizId=this.quizId,e.quizAnswerList=n,this.Credit.securityQuestions(e).subscribe(i=>{0==i.hasError?i.questionList.length>0?(this.questions=i.questionList,this.component.instance.questions=this.questions):(this.Account.setAccountId(i.ban),this.result.ban=i.ban,this.result.addressId=i.addressId,this.result.userId=i.userId,this.result.orderId=i.orderId,this.result.email=this.Id.getEmail(),this.storeIdentity().subscribe(c=>{0==c.hasError&&(this.result.mCreditSequenceNumber=c.mCreditSequenceNumber,null==c.mCreditClass||""==c.mCreditClass?this.checkStatuses().subscribe(m=>{0==m.hasError&&(this.result.mCreditClass=m.mCreditClass,this.setEquifax(this.result))}):(this.state++,this.component.instance.state=this.state,this.result.mCreditClass=c.mCreditClass,this.setEquifax(this.result)))})):(this.countError++,"movil"==this.Global.flowLoad&&(this.countError>1||0==i.response.questionList.length)&&(this.state=0,this.component.instance.state=this.state,this.countError=0,this.Nav.goTo("flows")))})}setEquifax(n){var e=this;return(0,p.A)(function*(){yield e.Credit.setEquifax(e.result),"movil"==e.Global.flowLoad&&1==e.activeSocket&&"web"==e.Global.chargingSystem&&e.authorized(e.Global.hubId,e.result)})()}storeIdentity(){return new I.c(e=>{var i=new FormData;i.append("ban",this.Account.getAccountId()),i.append("ssn",this.Id.getSsn()),i.append("titles",this.Id.getTitle()),i.append("firstName",this.Id.getName()),i.append("lastName",this.Id.getLastname()),this.Credit.storeIdentity(i).subscribe(c=>{0==c.hasError&&e.next(c)})})}checkStatuses(){return new I.c(e=>{var i=new FormData;i.append("ssn",this.Id.getSsn()),this.Credit.checkStatuses(i).subscribe(c=>{0==c.hasError&&e.next(c)})})}ngOnDestroy(){this.onEvents&&this.onEvents.unsubscribe()}}return(a=r).\u0275fac=function(n){return new(n||a)(t.rXU(O.v),t.rXU(u.nX),t.rXU(q.D),t.rXU(D.E),t.rXU(z.n),t.rXU(U.v),t.rXU(Q.E),t.rXU(J.A),t.rXU(K.F))}
1,a.\u0275cmp=t.VBU({type:a,selectors:[["app-credit-validation"]],viewQuery:function(n,e){if(1&n&&t.GBs(Z,5,t.c1b),2&n){let i;t.mGM(i=t.lsd())&&(e.dynamicCreditValidation=i.first)}},decls:2,vars:0,consts:[["dynamicCreditValidation",""]],template:function(n,e){1&n&&t.eu8(0,null,0)},encapsulation:2}),r})()}];let tt=(()=>{var a;class r{}return(a=r).\u0275fac=function(n){return new(n||a)},a.\u0275mod=t.$C({type:a}),a.\u0275inj=t.G2t({imports:[u.iI.forChild(H),u.iI]}),r})();var et=s(2113),nt=s(101),it=s(7764),ot=s(3825),at=s(940),st=s(7592),rt=s(9353),ct=s(7647),lt=s(9501),dt=s(8834),pt=s(138);let mt=(()=>{var a;class r{}return(a=r).\u0275fac=function(n){return new(n||a)},a.\u0275mod=t.$C({type:a}),a.\u0275inj=t.G2t({imports:[d.MD,C.YN,l.bv,tt,nt.D,et.N,it.W,ot.k,at.digitalSignatureModule,st.k,ct.C,dt.Hl,rt.q,lt.B,pt.O]}),r})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.