PageSourceSearch

https://www.financieraelcorteingles.es/es/solicitar-tarjeta/evolve-onboarding/88.0036e9f0635ddd11.js

js financieraelcorteingles.es collected 2026-10-02 06:03:04 UTC 587,769 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkevolve_onboarding=self.webpackChunkevolve_onboarding||[]).push([[88],{73716:(ut,tt,r)=>{r.d(tt,{_:()=>i});var h=r(11201),u=r(25662);let i=(()=>{class c{constructor(s){this.formsService=s}static{this.\u0275fac=function(k){return new(k||c)(h.KVO(u.f))}}static{this.\u0275prov=h.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})()},57360:(ut,tt,r)=>{r.d(tt,{s:()=>t});var h=r(98465),u=r(11201),i=r(3390),c=r(43982);let t=(()=>{class s{constructor(o,F,n){this.http=o,this._storageService=F,this.environmentService=n}ocrOwnershipRequest(o,F,n,a,e,E){const b={family_name:a,second_family_name:e,given_name:n,id_document:{number:this._storageService.getItem("document_number").toUpperCase()},bank_account:{iban:F}},O={request_id:this._storageService.getItem("request")},x={type:E},V=new FormData,G=new Blob([JSON.stringify(b)],{type:"application/json"}),K=new Blob([JSON.stringify(O)],{type:"application/json"}),B=new Blob([JSON.stringify(x)],{type:"application/json"});V.append("customer",G),V.append("action",K),V.append("documents",o),V.append("category",B);const j={headers:new h.Lr({exception:"true"}).set("Content-Type","multipart/form-data").set("eci-origin","8")};return this.http.post(this.environmentService.envVariables.api_url+this.environmentService.envVariables.api_auth_url+"/payments/ms-onboarding-ocr-ownership/v1/validate",V,j)}ocrOwnershipRequest2(o,F,n,a,e,E){const b={family_name:e,second_family_name:E,given_name:a,id_document:{number:this._storageService.getItem("document_number").toUpperCase()},bank_account:{iban:F}},O={request_id:this._storageService.getItem("request")},x=new FormData,V=new Blob([JSON.stringify(b)],{type:"application/json"}),G=new Blob([JSON.stringify(O)],{type:"application/json"});new Blob([JSON.stringify(n)],{type:"application/json"}),x.append("customer",V),x.append("action",G),x.append("document",o),x.append("inbox_id",n);const B={headers:new h.Lr({exception:"true"}).set("Content-Type","multipart/form-data")};return this.http.post(this.environmentService.envVariables.api_url+this.environmentService.envVariables.api_auth_url+"/payments/ms-onboarding-ocr-ownership/v1/documents/upload",x,B)}ocrGetUrlMitek(o){const F={...o,type:"O",channel:{identifier:"8"}};return this.http.post(this.environmentService.envVariables.api_url+this.environmentService.envVariables.api_auth_url+"/payments/ms-onboarding-ocr-identifier/v1/identity-verifications",F)}static{this.\u0275fac=function(F){return new(F||s)(u.KVO(h.Qq),u.KVO(i.n),u.KVO(c.v))}}static{this.\u0275prov=u.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})()},27188:(ut,tt,r)=>{r.d(tt,{s:()=>t});var h=r(11201),u=r(83336),i=r(3390),c=r(43982);let t=(()=>{class s{constructor(o,F,n){this.spinnerService=o,this._storageService=F,this.environmentService=n,this.app_pdf="application/pdf"}getDocumentINE(o,F){const n=this.environmentService.envVariables.api_url+this.environmentService.envVariables.api_auth_third_party+`/payments/ms-evolve-documents/v1/documents/${o}?type=${F}`;this.spinnerService.isLoading.next(!0),fetch(n,{headers:{username:this._storageService.getItem("document_number"),password:this._storageService.getItem("request")}}).then(a=>a.blob()).then(a=>{const e=new Blob([a],{type:this.app_pdf}),E=document.createElement("a");E.href=window.URL.createObjectURL(e),E.download="informaci\xf3n_normalizada_europea.pdf",E.click(),this.spinnerService.isLoading.next(!1)}).catch(a=>{this.spinnerService.isLoading.next(!1),console.error(a)})}getDocumentRequest(o,F){const n=this.environmentService.envVariables.api_url+this.environmentService.envVariables.api_auth_third_party+`/payments/ms-evolve-documents/v1/documents/${o}?type=${F}`;this.spinnerService.isLoading.next(!0),fetch(n,{headers:{username:this._storageService.getItem("document_number"),password:this._storageService.getItem("request")}}).then(a=>a.blob()).then(a=>{const e=new Blob([a],{type:this.app_pdf}),E=document.createElement("a");E.href=window.URL.createObjectURL(e),E.download="solicitud.pdf",E.click(),this.spinnerService.isLoading.next(!1)}).catch(a=>{this.spinnerService.isLoading.next(!1),console.error(a)})}getDocumentContract(o,F){const n=this.environmentService.envVariables.api_url+this.environmentService.envVariables.api_auth_third_party+`/payments/ms-evolve-documents/v1/documents/${o}?type=${F}`;this.spinnerService.isLoading.next(!0),fetch(n,{headers:{username:this._storageService.getItem("document_number"),password:this._storageService.getItem("request")}}).then(a=>a.blob()).then(a=>{const e=new Blob([a],{type:this.app_pdf}),E=document.createElement("a");E.href=window.URL.createObjectURL(e),E.download="contrato.pdf",E.click(),this.spinnerService.isLoading.next(!1)}).catch(a=>{this.spinnerService.isLoading.next(!1),console.error(a)})}getDocumentInsurance(o,F){const n=this.environmentService.envVariables.api_url+this.environmentService.envVariables.api_auth_third_party+`/payments/ms-evolve-documents/v1/documents/${o}?type=${F}`;this.spinnerService.isLoading.next(!0),fetch(n,{headers:{username:this._storageService.getItem("document_number"),password:this._storageService.getItem("request")}}).then(a=>a.blob()).then(a=>{const e=new Blob([a],{type:this.app_pdf}),E=document.createElement("a");E.href=window.URL.createObjectURL(e),E.download="03_documento_de_adhesion.pdf",E.click(),this.spinnerService.isLoading.next(!1)}).catch(a=>{this.spinnerService.isLoading.next(!1),console.error(a)})}static{this.\u0275fac=function(F){return new(F||s)(h.KVO(u.D),h.KVO(i.n),h.KVO(c.v))}}static{this.\u0275prov=h.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})()},63868:(ut,tt,r)=>{r.d(tt,{g:()=>o});const h=[{identifier:"E",amount:"200\u20ac",open_contract:{amount:"100"},close_contract:{amount:"100"}},{identifier:"E",amount:"300\u20ac",open_contract:{amount:"200"},close_contract:{amount:"100"}},{identifier:"X",amount:"400\u20ac",open_contract:{amount:"100"},close_contract:{amount:"300"}},{identifier:"D",amount:"600\u20ac",open_contract:{amount:"200"},close_contract:{amount:"400"}},{identifier:"F",amount:"1000\u20ac",open_contract:{amount:"800"},close_contract:{amount:"100"}}],u={product_id:"123",subproduct:"345"};var i=r(69146);const c={feeQuantity:7,firstExpirationDate:"2023-08-31",lastExpirationDate:"2023-08-31",lastFeeAmount:6.59,tae:19.22,tin:18,totalDeferAmount:366.59,totalInterestAmount:25.59};var t=r(11201),s=r(98465),k=r(43982);let o=(()=>{class F{constructor(a,e){this.http=a,this.environmentService=e}getQuantityValues(){return this.environmentService.envVariables.mock?(0,i.of)(h):this.http.get(this.environmentService.envVariables.api_url+this.environmentService.envVariables.api_auth_url+"/payments/ms-onboarding-core/v1/fees?financial_entity_identifier=0001&type=01&
1sub_type=05")}calculateAssignations(a){const e={process:"ONBOARDING",payment_method:a};return this.environmentService.envVariables.mock?(0,i.of)(u):this.http.post(this.environmentService.envVariables.api_url+this.environmentService.envVariables.api_auth_url+"/payments/ms-onboarding-core/v1/products/calculate-assignations",e)}getCRMValues(){return this.http.get("./assets/json/CRMvalues.json")}simulate(a){return this.environmentService.envVariables.mock?(0,i.of)(c):this.http.post(this.environmentService.envVariables.api_url+this.environmentService.envVariables.api_auth_url+"/payments/fwe-legacy-web/v1/public/onboarding/simulate-payment-method",a)}static{this.\u0275fac=function(e){return new(e||F)(t.KVO(s.Qq),t.KVO(k.v))}}static{this.\u0275prov=t.jDH({token:F,factory:F.\u0275fac,providedIn:"root"})}}return F})()},59684:(ut,tt,r)=>{r.r(tt),r.d(tt,{ErrorModule:()=>j});var h=r(19767),u=r(87514),i=r(88025),c=r(84692),t=r(11201),s=r(70150);let k=(()=>{class P{constructor(){this.states=[{step:"1",description:"Datos de contacto"},{step:"2",description:"Verifica tu identidad"},{step:"3",description:"Informaci\xf3n adicional"},{step:"4",description:"Configura tu Tarjeta"},{step:"5",description:"T\xe9rminos y condiciones"}]}static{this.\u0275fac=function(N){return new(N||P)}}static{this.\u0275cmp=t.VBU({type:P,selectors:[["app-error"]],decls:4,vars:1,consts:[[1,"container-wrap"],["status","6",3,"states"],[1,"main"]],template:function(N,$){1&N&&(t.j41(0,"div",0),t.nrm(1,"app-aside-menu",1),t.j41(2,"div",2),t.nrm(3,"router-outlet"),t.k0s()()),2&N&&(t.R7$(),t.Y8G("states",$.states))},dependencies:[s.d,i.n3],styles:[".e-button-var--primary{margin-bottom:2rem}"]})}}return P})();var o=r(3390),F=r(55902),n=r(53786);let a=(()=>{class P{constructor(H,N){this.router=H,this._storageService=N}goBack(){"authorized"==this._storageService.getItem("access")?this.router.navigate(["/dashboard/onboarding-authorized"]):"authorized-request"==this._storageService.getItem("access")?this.router.navigate(["/dashboard/onboarding-authorized-request"]):this.router.navigate(["/dashboard/onboarding"])}static{this.\u0275fac=function(N){return new(N||P)(t.rXU(i.Ix),t.rXU(o.n))}}static{this.\u0275cmp=t.VBU({type:P,selectors:[["app-error400"]],decls:20,vars:11,consts:[[1,"container","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],["src","./assets/icons/onboarding-card/warning.svg",1,"mc-image__medium-icon"],[1,"col","pl-3","pl-xl-0"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium"],[1,"row","spacer-top-high"],[1,"col-9","fixButton","pl-3","pl-md-0","d-flex","justify-content-center","justify-content-lg-start",3,"clicked","disabled","variant"]],template:function(N,$){1&N&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2),t.nrm(3,"img",3),t.k0s(),t.j41(4,"div",2)(5,"h1",4),t.EFF(6,"400"),t.k0s()(),t.j41(7,"div",2)(8,"h1",4),t.EFF(9),t.nI1(10,"translate"),t.k0s()(),t.j41(11,"div",2)(12,"div",5)(13,"span"),t.EFF(14),t.nI1(15,"translate"),t.k0s()()(),t.j41(16,"div",6)(17,"app-button",7),t.bIt("clicked",function(){return $.goBack()}),t.EFF(18),t.nI1(19,"translate"),t.k0s()()()()),2&N&&(t.R7$(9),t.SpI(" ",t.bMT(10,5,"ONBOARDING.ERROR_PAGE.ERROR_PAGE")," "),t.R7$(5),t.SpI(" ",t.bMT(15,7,"ONBOARDING.ERROR_PAGE.ERROR_PAGE_INFO")," "),t.R7$(3),t.Y8G("disabled",!1)("variant","primary"),t.R7$(),t.SpI(" ",t.bMT(19,9,"ONBOARDING.ERROR_PAGE.TRY_AGAIN")," "))},dependencies:[F.Qp,n.D9]})}}return P})(),e=(()=>{class P{constructor(H,N){this.router=H,this._storageService=N}goBack(){"authorized"==this._storageService.getItem("access")?this.router.navigate(["/dashboard/onboarding-authorized"]):"authorized-request"==this._storageService.getItem("access")?this.router.navigate(["/dashboard/onboarding-authorized-request"]):this.router.navigate(["/dashboard/onboarding"])}static{this.\u0275fac=function(N){return new(N||P)(t.rXU(i.Ix),t.rXU(o.n))}}static{this.\u0275cmp=t.VBU({type:P,selectors:[["app-error401"]],decls:20,vars:11,consts:[[1,"container","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],["src","./assets/icons/onboarding-card/warning.svg",1,"mc-image__medium-icon"],[1,"col","pl-3","pl-xl-0"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium"],[1,"row","spacer-top-high"],[1,"col-9","fixButton","pl-3","pl-md-0","d-flex","justify-content-center","justify-content-lg-start",3,"clicked","disabled","variant"]],template:function(N,$){1&N&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2),t.nrm(3,"img",3),t.k0s(),t.j41(4,"div",2)(5,"h1",4),t.EFF(6,"401"),t.k0s()(),t.j41(7,"div",2)(8,"h1",4),t.EFF(9),t.nI1(10,"translate"),t.k0s()(),t.j41(11,"div",2)(12,"div",5)(13,"span"),t.EFF(14),t.nI1(15,"translate"),t.k0s()()(),t.j41(16,"div",6)(17,"app-button",7),t.bIt("clicked",function(){return $.goBack()}),t.EFF(18),t.nI1(19,"translate"),t.k0s()()()()),2&N&&(t.R7$(9),t.SpI(" ",t.bMT(10,5,"ONBOARDING.ERROR_PAGE.ERROR_PAGE")," "),t.R7$(5),t.SpI(" ",t.bMT(15,7,"ONBOARDING.ERROR_PAGE.ERROR_PAGE_INFO")," "),t.R7$(3),t.Y8G("disabled",!1)("variant","primary"),t.R7$(),t.SpI(" ",t.bMT(19,9,"ONBOARDING.ERROR_PAGE.TRY_AGAIN")," "))},dependencies:[F.Qp,n.D9]})}}return P})(),E=(()=>{class P{constructor(H,N){this.router=H,this._storageService=N}goBack(){"authorized"==this._storageService.getItem("access")?this.router.navigate(["/dashboard/onboarding-authorized"]):"authorized-request"==this._storageService.getItem("access")?this.router.navigate(["/dashboard/onboarding-authorized-request"]):this.router.navigate(["/dashboard/onboarding"])}static{this.\u0275fac=function(N){return new(N||P)(t.rXU(i.Ix),t.rXU(o.n))}}static{this.\u0275cmp=t.VBU({type:P,selectors:[["app-error403"]],decls:20,vars:11,consts:[[1,"container","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],["src","./assets/icons/onboarding-card/warning.svg",1,"mc-image__medium-icon"],[1,"col","pl-3","pl-xl-0"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium"],[1,"row","spacer-top-high"],[1,"col-9","fixButton","pl-3","pl-md-0","d-flex","justify-content-center","justify-content-lg-start",3,"clicked","disabled","variant"]],template:function(N,$){1&N&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2),t.nrm(3,"img",3),t.k0s(),t.j41(4,"div",2)(5,"h1",4),t.EFF(6,"403"),t.k0s()(),t.j41(7,"div",2)(8,"h1",4),t.EFF(9),t.nI1(10,"translate"),t.k0s()(),t.j41(11,"div",2)(12,"div",5)(13,"span"),t.EFF(14),t.nI1(15,"translate"),t.k0s()()(),t.j41(16,"div",6)(17,"app-button",7),t.bIt("clicked",function(){return $.goBack()}),t.EFF(18),t.nI1(19,"translate"),t.k0s()()()()),2&N&&(t.R7$(9),t.SpI(" ",t.bMT(10,5,"ONBOARDING.ERROR_PAGE.ERROR_PAGE")," "),t.R7$(5),t.SpI(" ",t.bMT(15,7,"ONBOARDING.ERROR_PAGE.ERROR_PAGE_INFO")," "),t.R7$(3),t.Y8G("disabled",!1)("variant","primary"),t.R7$(),t.SpI(" ",t.bMT(19,9,"ONBOARDING.ERROR_PAGE.TRY_AGAIN")," "))},dependencies:[F.Qp,n.D9]})}}return P})(),b=(()=>{class P{constructor(H,N){this.router=H,this._storageService=N}goBack(){"authorized"==this._storageService.getItem("access")?this.router.navigate(["/dashboard/onboarding-authorized"]):"authorized-request"==this._storageService.getItem("access")?this.router.navigate(["/dashboard/onboarding-authorized-request"]):this.router.navigate(["/dashboard/onboarding"])}static{this.\u0275fac=function(N){return new(N||P)(t.rXU(i.Ix),t.rXU(o.n))}}static{this.\u0275cmp=t.VBU({type:P,selectors:[["app-error404"]],decls:20,vars:11,consts:[[1,"container","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],["src","./assets/icons/onboarding-card/warning.svg",1,"mc-image__medium-icon"],[1,"col","pl-3","pl-xl-0"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium"],[1,"row","spacer-top-high"],[1,"col-9","fixButton","pl-3","pl-md-0","d-flex","justify-content-center","justify-content-lg-start",3,"clicked","disabled","variant"]],template:function(N,$){1&N&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2),t.nrm(3,"img",3),t.k0s(),t.j41(4,"div",2)(5,"h1",4),t.EFF(6,"404"),t.k0s()(),t.j41(7,"div",2)(8,"h1",4),t.EFF(9),t.nI1(10,"translate"),t.k0s()(),t.j41(11,"div",2)(12,"div",5)(13,"span"),t.EFF(14),t.nI1(15,"translate"),t.k0s()()(),t.j41(16,"div",6)(17,"app-button",7),t.bIt("clicked",function(){return $.goBack()}),t.EFF(18),t.nI1(19,"translate"),t.k0s()()()()),2&N&&(t.R7$(9),t.SpI(" ",t.bMT(10,5,"ONBOARDING.ERROR_PAGE.ERROR_PAGE")," "),t.R7$(5),t.SpI(" ",t.bMT(15,7,"ONBOARDING.ERROR_PAGE.ERROR_PAGE_INFO")," "),t.R7$(3),t.Y8G("disabled",!1)("variant","primary"),t.R7$(),t.SpI(" ",t.bMT(19,9,"ONBOARDING.ERROR_PAGE.TRY_AGAIN")," "))},dependencies:[F.Qp,n.D9]})}}return P})(),O=(()=>{class P{constructor(H,N){this.router=H,this._storageService=N}goBack(){const H=this._storageService.getItem("access");return"authorized"===H?"/dashboard/onboarding-authorized":"authorized-request"===H?"/dashboard/onboarding-authorized-request":"/dashboard/onboarding"}static{this.\u0275fac=function(N){return new(N||P)(t.rXU(i.Ix),t.rXU(o.n))}}static{this.\u0275cmp=t.VBU({type:P,selectors:[["app-error500"]],decls:22,vars:13,consts:[[1,"container","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],["src","./assets/icons/onboarding-card/warning.svg",1,"mc-image__medium-icon"],[1,"col","pl-3","pl-xl-0"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium"],[1,"row","spacer-top-high"],["tabindex","0",1,"continueBtn","col","d-flex","justify-content-center","justify-content-lg-start",3,"routerLink"]],template:function(N,$){1&N&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2),t.nrm(3,"img",3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"div",2)(6,"h1",4),t.EFF(7),t.nI1(8,"translate"),t.k0s()(),t.j41(9,"div",2)(10,"h2",4),t.EFF(11,"500"),t.k0s()(),t.j41(12,"div",2)(13,"div",5)(14,"span"),t.EFF(15),t.nI1(16,"translate"),t.k0s()()(),t.j41(17,"div",6)(18,"a",7)(19,"span"),t.EFF(20),t.nI1(21,"translate"),t.k0s()()()()()),2&N&&(t.R7$(3),t.BMQ("alt",t.bMT(4,5,"ONBOARDING.ERROR_PAGE.WARNING_SIGNAL")),t.R7$(4),t.SpI(" ",t.bMT(8,7,"ONBOARDING.ERROR_PAGE.ERROR_PAGE")," "),t.R7$(8),t.SpI(" ",t.bMT(16,9,"ONBOARDING.ERROR_PAGE.ERROR_PAGE_INFO")," "),t.R7$(3),t.Y8G("routerLink",$.goBack()),t.R7$(2),t.SpI(" ",t.bMT(21,11,"ONBOARDING.ERROR_PAGE.TRY_AGAIN")," "))},dependencies:[i.Wk,n.D9],styles:[".continueBtn[_ngcontent-%COMP%]{align-items:center;background-color:#0a8250;border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;
1cursor:pointer;display:flex;font-size:var(--e-button-font-size);justify-content:space-between;line-height:1.2em;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;width:100%;text-decoration:none!important}.continueBtn[_ngcontent-%COMP%]:hover{background-color:#2b5033}.continueBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;flex-grow:1;text-align:center;line-height:25px;color:#fff!important;font-size:1rem}"]})}}return P})(),x=(()=>{class P{constructor(H,N){this.router=H,this._storageService=N}goBack(){"authorized"==this._storageService.getItem("access")?this.router.navigate(["/dashboard/onboarding-authorized"]):"authorized-request"==this._storageService.getItem("access")?this.router.navigate(["/dashboard/onboarding-authorized-request"]):this.router.navigate(["/dashboard/onboarding"])}static{this.\u0275fac=function(N){return new(N||P)(t.rXU(i.Ix),t.rXU(o.n))}}static{this.\u0275cmp=t.VBU({type:P,selectors:[["app-error503"]],decls:20,vars:11,consts:[[1,"container","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],["src","./assets/icons/onboarding-card/warning.svg",1,"mc-image__medium-icon"],[1,"col","pl-3","pl-xl-0"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium"],[1,"row","spacer-top-high"],[1,"col-9","fixButton","pl-3","pl-md-0","d-flex","justify-content-center","justify-content-lg-start",3,"clicked","disabled","variant"]],template:function(N,$){1&N&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2),t.nrm(3,"img",3),t.k0s(),t.j41(4,"div",2)(5,"h1",4),t.EFF(6,"503"),t.k0s()(),t.j41(7,"div",2)(8,"h1",4),t.EFF(9),t.nI1(10,"translate"),t.k0s()(),t.j41(11,"div",2)(12,"div",5)(13,"span"),t.EFF(14),t.nI1(15,"translate"),t.k0s()()(),t.j41(16,"div",6)(17,"app-button",7),t.bIt("clicked",function(){return $.goBack()}),t.EFF(18),t.nI1(19,"translate"),t.k0s()()()()),2&N&&(t.R7$(9),t.SpI(" ",t.bMT(10,5,"ONBOARDING.ERROR_PAGE.ERROR_PAGE")," "),t.R7$(5),t.SpI(" ",t.bMT(15,7,"ONBOARDING.ERROR_PAGE.ERROR_PAGE_INFO")," "),t.R7$(3),t.Y8G("disabled",!1)("variant","primary"),t.R7$(),t.SpI(" ",t.bMT(19,9,"ONBOARDING.ERROR_PAGE.TRY_AGAIN")," "))},dependencies:[F.Qp,n.D9]})}}return P})();var V=r(29394);const K=[{path:"",component:k,children:[{path:"400",component:a},{path:"401",component:e},{path:"403",component:E},{path:"404",component:b},{path:"500",component:O,title:"Error 500 - Onboarding Digital"},{path:"503",component:x},{path:"504",component:x},{path:"505",component:x},{path:"general",component:(()=>{class P{constructor(H,N,$){this.router=H,this._storageService=N,this.titleService=$,this.authorized=!!this._storageService.getItem("authorized"),this.request=this._storageService.getItem("request")}getBackRoute(){return"authorized"==this._storageService.getItem("access")?"/dashboard/onboarding-authorized":"authorized-request"==this._storageService.getItem("access")?"/dashboard/onboarding-authorized-request":"/dashboard/onboarding"}ngOnInit(){this.titleService.setTitleFromTranslation("PAGE_TITLES.ERROR")}static{this.\u0275fac=function(N){return new(N||P)(t.rXU(i.Ix),t.rXU(o.n),t.rXU(V.E))}}static{this.\u0275cmp=t.VBU({type:P,selectors:[["app-error-general"]],decls:16,vars:10,consts:[[1,"container","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],[1,"col","pl-3","pl-xl-0"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium"],[1,"row","spacer-top-high"],["tabindex","0",1,"returnBtn","mb-5","mb-lg-0",3,"routerLink"]],template:function(N,$){1&N&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.j41(6,"div",2)(7,"div",4)(8,"span"),t.EFF(9),t.nI1(10,"translate"),t.k0s()()(),t.j41(11,"div",5)(12,"a",6)(13,"span"),t.EFF(14),t.nI1(15,"translate"),t.k0s()()()()()),2&N&&(t.R7$(4),t.SpI(" ",t.bMT(5,4,"ONBOARDING.ERROR_PAGE.ERROR_PAGE")," "),t.R7$(5),t.SpI(" ",t.bMT(10,6,"ONBOARDING.ERROR_PAGE.ERROR_PAGE_INFO")," "),t.R7$(3),t.Y8G("routerLink",$.getBackRoute()),t.R7$(2),t.SpI(" ",t.bMT(15,8,"ONBOARDING.ERROR_PAGE.HOMEPAGE")," "))},dependencies:[i.Wk,n.D9],styles:[".returnBtn[_ngcontent-%COMP%]{align-items:center;background-color:#0a8250;border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;
1cursor:pointer;display:flex;font-size:var(--e-button-font-size);justify-content:space-between;line-height:1.2em;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;width:100%;text-decoration:none!important}.returnBtn[_ngcontent-%COMP%]:hover{background-color:#2b5033}.returnBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;flex-grow:1;text-align:center;line-height:25px;color:#fff!important;font-size:1rem}"]})}}return P})()}]}];let B=(()=>{class P{static{this.\u0275fac=function(N){return new(N||P)}}static{this.\u0275mod=t.$C({type:P})}static{this.\u0275inj=t.G2t({providers:[c.k],imports:[i.iI.forChild(K),i.iI]})}}return P})(),j=(()=>{class P{static{this.\u0275fac=function(N){return new(N||P)}}static{this.\u0275mod=t.$C({type:P})}static{this.\u0275inj=t.G2t({imports:[u.MD,h.G,B]})}}return P})()},43064:(ut,tt,r)=>{r.d(tt,{t:()=>V});var h=r(13054);function u(G){let K=G.get("formDigits").value,B=G.get("formDigitsRepeat").value;return K&&6!=K.length||B&&6!=B.length?{FORMAT_PASSWORD:!0}:K&&B?K===B?null:{NOT_SAME:!0}:{FORMAT_PASSWORD:!0}}var i=r(48678),c=r(11201),t=r(25662),s=r(2080),k=r(50876),o=r(88025),F=r(97230),n=r(43982),a=r(3390),e=r(58348),E=r(55902),b=r(53900),O=r(53786);function x(G,K){if(1&G&&c.nrm(0,"app-form-errors",7),2&G){const B=c.XpG();c.Y8G("form",B.localForm)}}let V=(()=>{class G{constructor(B,j,P,L,H,N,$,Z){this.formService=B,this.clientService=j,this.insuranceService=P,this.router=L,this.smartPinService=H,this.route=N,this.environmentService=$,this.storageService=Z,this.defaultPass=this.environmentService.envVariables.defaultValue,this.checkSituationUrl="/wizard/insurance/check-situation"}ngOnInit(){this.localForm=new h.J3({formDigits:new h.hs(null),formDigitsRepeat:new h.hs(null)},{validators:u}),this.route.data.subscribe(B=>{this.form=B.form,this.module=B.module,this.clientService.getIdClient().subscribe(j=>{this.idClient=j.id_customer,this.clientService.checkPassword(this.form.value).subscribe(P=>{P.is_customer_migrated?this.insuranceService.contractableCard(this.form.value.request_data.contract).subscribe(L=>this.checkRouteFunc(L,!0),L=>{this.checkRouteFunc(L,!1)}):this.clientService.createPassword(this.form.value,this.defaultPass,j.id_customer).subscribe({error:()=>{this.goToInsuranceCheck()}})},P=>{this.goToInsuranceCheck()})})})}resetSmartPin(){this.smartPinService.resetSmartPin(),this.localForm.reset()}deleterErrorMsg(){this.smartPinService.deleterErrorMsg()}checkRoute(){this.localForm.markAllAsTouched(),this.localForm.valid?this.clientService.modifyPassword(this.form.value,this.localForm.value.formDigits,this.idClient).subscribe(()=>{this.goToInsuranceCheck()}):(0,i.K)()}goToInsuranceCheck(){this.storageService.getItem("authorized")?this.insuranceService.contractableCard(this.form.value.request_data.contract).subscribe(j=>this.checkRouteFunc(j,!0),j=>{this.checkRouteFunc(j,!1)}):(this.form.value.request_data.pre_status="32",this.formService.updateCRM(this.form.value).subscribe(()=>{this.router.navigate([this.checkSituationUrl])}))}checkRouteFunc(B,j){this.form.value.request_data.pre_status=j&&B.is_contractable?"32":"12",this.formService.updateCRM(this.form.value).subscribe(()=>{this.router.navigate(j&&B.is_contractable?[this.checkSituationUrl]:"tceci"===this.module?["/wizard/tceci/take-card"]:["/wizard/hire/hiring-client-holder"])})}static{this.\u0275fac=function(j){return new(j||G)(c.rXU(t.f),c.rXU(s.X),c.rXU(k.Y),c.rXU(o.Ix),c.rXU(F.W),c.rXU(o.nX),c.rXU(n.v),c.rXU(a.n))}}static{this.\u0275cmp=c.VBU({type:G,selectors:[["app-hiring-client-authorized"]],decls:22,vars:17,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],[1,"col","pl-3","pl-xl-0"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium"],[1,"row","spacer-bottom-low"],["type","password",3,"form"],[1,"spacer-top-low",3,"form"],[1,"row","spacer-both-high","d-flex","justify-content-center","mb-5"],[1,"col-0","col-lg-auto","pl-3","pl-xl-0","d-lg-block",3,"clicked","variant"],[1,"col","d-flex","justify-content-center","justify-content-lg-start",3,"clicked","disabled","variant"]],template:function(j,P){1&j&&(c.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),c.EFF(4),c.nI1(5,"translate"),c.k0s()(),c.j41(6,"div",2)(7,"div",4)(8,"span"),c.EFF(9),c.nI1(10,"translate"),c.k0s()()(),c.j41(11,"div",5)(12,"div",3),c.nrm(13,"app-smart-pin",6),c.DNE(14,x,1,1,"app-form-errors",7),c.k0s()(),c.j41(15,"div",8)(16,"app-button",9),c.bIt("clicked",function(){return P.resetSmartPin(),P.deleterErrorMsg()}),c.EFF(17),c.nI1(18,"translate"),c.k0s(),c.j41(19,"app-button",10),c.bIt("clicked",function(){return P.checkRoute()}),c.EFF(20),c.nI1(21,"translate"),c.k0s()()()()),2&j&&(c.R7$(4),c.SpI(" ",c.bMT(5,9,"ONBOARDING.PERSONALIZE_PIN.PERSONALIZE_PIN_AUTHORIZED")," "),c.R7$(5),c.SpI(" ",c.bMT(10,11,"ONBOARDING.PERSONALIZE_PIN.MORE_INFORMATION_AUTHORIZED")," "),c.R7$(4),c.Y8G("form",P.localForm),c.R7$(),c.vxM(14,P.localForm?14:-1),c.R7$(2),c.Y8G("variant","secondary"),c.R7$(),c.SpI(" ",c.bMT(18,13,"ONBOARDING.COMMON.DELETE")," "),c.R7$(2),c.Y8G("disabled",!P.localForm.valid)("variant","primary"),c.R7$(),c.SpI(" ",c.bMT(21,15,"ONBOARDING.COMMON.CONFIRM")," "))},dependencies:[e.m,E.Qp,b.Z,O.D9],styles:["body[_ngcontent-%COMP%]{background-color:#f9f9f9!important}"]})}}return G})()},91748:(ut,tt,r)=>{r.d(tt,{c:()=>b});
1var h=r(95769),i=r(13054),c=r(11201),t=r(88025),s=r(3390),k=r(31084),o=r(54348),F=r(53786);const n=()=>["/wizard/insurance/full-insurance"],a=(O,x,V,G)=>({checkboxAccident:O,checkboxTeeth:x,checkboxTheft:V,checkboxLoseT:G});function e(O,x){1&O&&(c.j41(0,"div",6),c.nrm(1,"img",26),c.k0s())}function E(O,x){1&O&&(c.j41(0,"div",6),c.nrm(1,"img",27),c.k0s())}let b=(()=>{class O{constructor(V,G,K){this.router=V,this.route=G,this.storageService=K,this.checkboxAccident={name:"checkboxAccident",label:"checkbox",text:"",checked:!1},this.checkboxTeeth={name:"checkboxTeeth",label:"checkbox",text:"",checked:!1},this.checkboxTheft={name:"checkboxTheft",label:"checkbox",text:"",checked:!1},this.checkboxLoseT={name:"checkboxLoseT",label:"checkbox",text:"",checked:!1}}ngOnInit(){this.route.data.subscribe(V=>{this.module=V.module,this.tceci="5"===h.find(V.form.controls.additional_info.value,K=>"H-SUBTIPO"===K.property_id)?.value}),this.firstIn=this.storageService.getItem("isFirstReload"),this.localForm=new i.J3({checkboxAccident:new i.hs,checkboxTeeth:new i.hs,checkboxTheft:new i.hs,checkboxLoseT:new i.hs}),this.route.data.subscribe(V=>{this.form=V.form,this.module=V.module}),this.firstIn||(this.storageService.setItem("isFirstReload",!0),window.location.reload())}static{this.\u0275fac=function(G){return new(G||O)(c.rXU(t.Ix),c.rXU(t.nX),c.rXU(s.n))}}static{this.\u0275cmp=c.VBU({type:O,selectors:[["app-check-situation"]],decls:60,vars:57,consts:[[1,"body"],[1,"sr-only"],[1,"d-flex","mx-0","px-0","row","d-flex","justify-content-center"],[1,"col-12","col-lg-7","col-xl-9","pr-0"],[1,"row","d-flex","col-auto","align-items-center","justify-content-center","spacer-top-medium"],[1,"col-6","col-md-3"],[1,"row"],[1,"col-12","col-xl-8","pl-0","pl-xl-5","d-flex","align-items-center"],[1,"row","d-flex","justify-content-center","justify-content-xl-start"],[1,"col-12"],[1,"h3",3,"innerHTML"],[1,"h3"],[1,"container"],[1,"card","spacer-top-medium"],[1,"card-body"],[1,"card-title","h1"],[1,"card-checkbox"],[3,"data","form"],[3,"innerHTML"],[1,"spacer-top-medium"],[1,"spacer-top-high",3,"innerHTML"],[1,"card-buttons","spacer-top-low"],[1,"next",3,"routerLink","queryParams"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"],[1,"card-checktext"],[1,"light-gray"],["src","assets/img/onboarding-card/card/feci-tarjeta.png","alt","",1,"img"],["src","assets/img/onboarding-card/card/old_feci_tarjeta.png","alt","",1,"img"]],template:function(G,K){1&G&&(c.j41(0,"main")(1,"div",0)(2,"h1",1),c.EFF(3),c.nI1(4,"translate"),c.k0s(),c.j41(5,"div",2)(6,"div",3)(7,"div",4)(8,"div",5),c.DNE(9,e,2,0,"div",6)(10,E,2,0,"div",6),c.k0s(),c.j41(11,"div",7)(12,"div",8)(13,"div",9),c.nrm(14,"h2",10),c.nI1(15,"translate"),c.j41(16,"h2",11),c.EFF(17),c.nI1(18,"translate"),c.k0s()()()()()()(),c.j41(19,"div",12)(20,"div",13)(21,"div",14)(22,"h2",15),c.EFF(23),c.nI1(24,"translate"),c.k0s(),c.j41(25,"div",16)(26,"div")(27,"app-checkbox",17),c.nrm(28,"span",18),c.nI1(29,"translate"),c.k0s()(),c.j41(30,"div",19)(31,"app-checkbox",17),c.nrm(32,"span",20),c.nI1(33,"translate"),c.k0s()(),c.j41(34,"div",19)(35,"app-checkbox",17),c.nrm(36,"span",18),c.nI1(37,"translate"),c.k0s()(),c.j41(38,"div",19)(39,"app-checkbox",17),c.nrm(40,"span",18),c.nI1(41,"translate"),c.k0s()()(),c.j41(42,"div",21)(43,"a",22)(44,"span"),c.EFF(45),c.nI1(46,"translate"),c.k0s(),c.nrm(47,"app-icon",23),c.k0s()()()(),c.j41(48,"div",24)(49,"p"),c.EFF(50),c.nI1(51,"translate"),c.nrm(52,"span",18),c.nI1(53,"translate"),c.nrm(54,"span",18),c.nI1(55,"translate"),c.nrm(56,"br"),c.j41(57,"span",25),c.EFF(58),c.nI1(59,"translate"),c.k0s()()()()()()),2&G&&(c.R7$(3),c.SpI(" ",c.bMT(4,25,"ONBOARDING.INSURANCE.SUB_TITLE_CHECK_SITUATION")," "),c.R7$(6),c.vxM(9,K.tceci?-1:9),c.R7$(),c.vxM(10,K.tceci?10:-1),c.R7$(4),c.Y8G("innerHTML",c.bMT(15,27,"ONBOARDING.INSURANCE.COMPLETE_YOUR_NEW_CARD"),c.npT),c.R7$(3),c.SpI(" ",c.bMT(18,29,"ONBOARDING.INSURANCE.COMPLETE_YOUR_NEW_CARD2")," "),c.R7$(6),c.SpI(" ",c.bMT(24,31,"ONBOARDING.INSURANCE.SUB_TITLE_CHECK_SITUATION")," "),c.R7$(4),c.Y8G("data",K.checkboxAccident)("form",null==K.localForm?null:K.localForm.get("checkboxAccident")),c.R7$(),c.Y8G("innerHTML",c.bMT(29,33,"ONBOARDING.INSURANCE.SITUATION1_CHECKBOX"),c.npT),c.R7$(3),c.Y8G("data",K.checkboxTeeth)("form",null==K.localForm?null:K.localForm.get("checkboxTeeth")),c.R7$(),c.Y8G("innerHTML",c.bMT(33,35,"ONBOARDING.INSURANCE.SITUATION1_CHECKBOX2"),c.npT),c.R7$(3),c.Y8G("data",K.checkboxTheft)("form",null==K.localForm?null:K.localForm.get("checkboxTheft")),c.R7$(),c.Y8G("innerHTML",c.bMT(37,37,"ONBOARDING.INSURANCE.SITUATION1_CHECKBOX3"),c.npT),c.R7$(3),c.Y8G("data",K.checkboxLoseT)("form",null==K.localForm?null:K.localForm.get("checkboxLoseT")),c.R7$(),c.Y8G("innerHTML",c.bMT(41,39,"ONBOARDING.INSURANCE.SITUATION1_CHECKBOX4"),c.npT),c.R7$(3),c.Y8G("routerLink",c.lJ4(51,n))("queryParams",c.ziG(52,a,K.localForm.get("checkboxAccident").value,K.localForm.get("checkboxTeeth").value,K.localForm.get("checkboxTheft").value,K.localForm.get("checkboxLoseT").value)),c.R7$(2),c.SpI(" ",c.bMT(46,41,"ONBOARDING.COMMON.CONTINUE")," "),c.R7$(5),c.SpI(" ",c.bMT(51,43,"ONBOARDING.INSURANCE.INFORMATION_CHECKBOX_SITE")," "),c.R7$(2),c.Y8G("innerHTML",c.bMT(53,45,"ONBOARDING.INSURANCE.INSURANCE_YEARLY_FEE13"),c.npT),c.R7$(2),c.Y8G("innerHTML",c.bMT(55,47,"ONBOARDING.INSURANCE.INSURANCE_YEARLY_FEE14"),c.npT),c.R7$(4),c.SpI(" ",c.bMT(59,49,"ONBOARDING.INSURANCE.INSURANCE_YEARLY_FEE15")," "))},dependencies:[k.P,o.R,t.Wk,F.D9],styles:[".body[_ngcontent-%COMP%]{background-color:#f9f9f9;display:grid}span[_ngcontent-%COMP%]{font-size:18px}.img[_ngcontent-%COMP%]{max-width:65%;margin-left:25%}.card[_ngcontent-%COMP%]{border-radius:8px;border:1px solid #0a8250;margin-bottom:20px}.card-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-left:100px;padding-right:100px}.card-title[_ngcontent-%COMP%]{color:#0a8250;margin-top:20px;
1display:flex;justify-content:center;font-weight:700}.card-checkbox[_ngcontent-%COMP%]{margin-top:37px}.card-buttons[_ngcontent-%COMP%]{display:flex;justify-content:right;margin-bottom:10px;min-width:108%}.card-buttons[_ngcontent-%COMP%]   a.next[_ngcontent-%COMP%]{text-decoration:none!important;align-items:center;background-color:#0a8250;border-radius:var(--e-button-radius);border-width:0;color:#f9f9f9!important;cursor:pointer;display:flex;font-size:var(--e-button-font-size);justify-content:space-between;line-height:1.2em;min-height:var(--e-button-min-height);padding:0 1rem}.card-checktext[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#5e5e5e;font-size:14px;text-align:justify}.card-checktext[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px}@media (max-width: 360px){.card[_ngcontent-%COMP%]{border-radius:8px;border:1px solid #0a8250;margin-bottom:126px;margin-left:10px;width:340px!important}.body[_ngcontent-%COMP%]{background-color:#f9f9f9;display:grid;width:360px!important}.justify-content-center[_ngcontent-%COMP%]{justify-content:center!important;width:390px}.card-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-left:20px;padding-right:20px}}"]})}}return O})()},62264:(ut,tt,r)=>{r.d(tt,{D:()=>V});var h=r(95769),u=r(11201),i=r(50876),c=r(88025),t=r(25662),s=r(18162),k=r(43982),o=r(55902),F=r(7637),n=r(54348),a=r(53786);let e=(()=>{class G{constructor(){this.insurancePDFPromo="",this.close=new u.bkB,this.getPromo=new u.bkB}static{this.\u0275fac=function(j){return new(j||G)}}static{this.\u0275cmp=u.VBU({type:G,selectors:[["app-insurance-promo-modal"]],inputs:{insurancePDFPromo:"insurancePDFPromo"},outputs:{close:"close",getPromo:"getPromo"},decls:28,vars:28,consts:[["role","dialog","aria-modal","true","aria-labelledby","modalTitle",1,"insurance-promo"],[1,"sr-only"],["variant","plain","addClass","insurance-promo__close",3,"clicked","ariaLabel"],["src","assets/img/cross_white.svg","width","15","alt",""],[1,"insurance-promo__content"],["id","modalTitle",1,"insurance-promo__content__title"],[1,"insurance-promo__content__subtitle-green"],[1,"insurance-promo__content__subtitle"],["variant","plain","addClass","insurance-promo__content__button",3,"clicked"],["src","assets/img/arrow-right-continue-black.svg","width","15","alt",""],[1,"insurance-promo__content__conditions"],["target","_blank","download","condiciones promoci\xf3n",3,"href"]],template:function(j,P){1&j&&(u.j41(0,"div",0)(1,"h1",1),u.EFF(2),u.nI1(3,"translate"),u.k0s(),u.j41(4,"app-button",2),u.nI1(5,"translate"),u.bIt("clicked",function(){return P.close.emit(!0)}),u.nrm(6,"img",3),u.k0s(),u.j41(7,"div",4)(8,"h2",5),u.EFF(9),u.nI1(10,"translate"),u.k0s(),u.j41(11,"p",6),u.EFF(12),u.nI1(13,"translate"),u.k0s(),u.j41(14,"p",7),u.EFF(15),u.nI1(16,"translate"),u.k0s(),u.j41(17,"app-button",8),u.bIt("clicked",function(){return P.getPromo.emit(!0)}),u.EFF(18),u.nI1(19,"translate"),u.nrm(20,"img",9),u.k0s(),u.j41(21,"span",10),u.EFF(22),u.nI1(23,"translate"),u.j41(24,"a",11),u.nI1(25,"translate"),u.EFF(26),u.nI1(27,"translate"),u.k0s()()()()),2&j&&(u.R7$(2),u.SpI(" ",u.bMT(3,10,"ONBOARDING.INSURANCE-PROMO.TITLE")," "),u.R7$(2),u.Y8G("ariaLabel",u.bMT(5,12,"ONBOARDING.INSURANCE-PROMO.CLOSE_MODAL")),u.R7$(5),u.SpI(" ",u.bMT(10,14,"ONBOARDING.INSURANCE-PROMO.TITLE")," "),u.R7$(3),u.SpI(" ",u.bMT(13,16,"ONBOARDING.INSURANCE-PROMO.SUBTITLE_1")," "),u.R7$(3),u.SpI(" ",u.bMT(16,18,"ONBOARDING.INSURANCE-PROMO.SUBTITLE_2")," "),u.R7$(3),u.SpI(" ",u.bMT(19,20,"ONBOARDING.INSURANCE-PROMO.BUTTON")," "),u.R7$(4),u.SpI(" ",u.bMT(23,22,"ONBOARDING.INSURANCE-PROMO.CONDITIONS")," "),u.R7$(2),u.Y8G("href",P.insurancePDFPromo,u.B4B),u.BMQ("aria-label",u.bMT(25,24,"ONBOARDING.INSURANCE-PROMO.DOWNLOAD_PDF")),u.R7$(2),u.SpI(" ",u.bMT(27,26,"ONBOARDING.INSURANCE-PROMO.URL")," "))},dependencies:[o.Qp,a.D9],styles:[".insurance-promo[_ngcontent-%COMP%]{display:flex;width:565px;height:364px;background-image:url(modal-regalo.5ad149318af03f59.png);background-repeat:no-repeat;background-size:cover}.insurance-promo__img[_ngcontent-%COMP%]{width:inherit}.insurance-promo__content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-content:flex-start;width:100%;padding:30px 40px}.insurance-promo__content__title[_ngcontent-%COMP%]{color:#fff;font-size:2rem;font-weight:400;line-height:1.2;margin:0;width:19.4rem}.insurance-promo__content__subtitle-green[_ngcontent-%COMP%]{color:#72e08a;font-size:2rem;font-weight:700;margin-bottom:15px}.insurance-promo__content__subtitle[_ngcontent-%COMP%]{width:13rem;color:#fff;font-size:1.1rem;margin-top:0;line-height:1.5rem}.insurance-promo__content__conditions[_ngcontent-%COMP%]{color:#fff;font-size:.8rem;margin-top:20px}.insurance-promo__content__conditions[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff!important;text-decoration:underline;font-weight:300;font-size:.8rem}[_nghost-%COMP%]     .insurance-promo__close{position:absolute;cursor:pointer;top:15px;right:15px;color:#fff;background:no-repeat;border:none}[_nghost-%COMP%]     .insurance-promo__content__button{display:flex;justify-content:center;align-items:center;gap:10px;padding:.7rem 1.2rem;border-radius:30px;background-color:#72e08a;border:none;color:#000;align-self:flex-start;width:auto;font-size:.9rem}@media (max-width: 1490px){.insurance-promo[_ngcontent-%COMP%]{width:500px;height:320px}.insurance-promo__content[_ngcontent-%COMP%]{padding:20px 30px}.insurance-promo__content__title[_ngcontent-%COMP%]{width:14.5rem;font-size:1.5rem}.insurance-promo__content__subtitle-green[_ngcontent-%COMP%]{font-size:1.5rem;margin-bottom:15px}.insurance-promo__content__subtitle[_ngcontent-%COMP%]{width:10rem;font-size:.9rem}.insurance-promo__content__conditions[_ngcontent-%COMP%]{font-size:.9rem}.insurance-promo__content__conditions[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:.9rem;color:#fff!important}}@media (max-width: 600px){.insurance-promo[_ngcontent-%COMP%]{width:256px;height:164px}.insurance-promo__content[_ngcontent-%COMP%]{padding:10px 15px}.insurance-promo__content__title[_ngcontent-%COMP%]{width:8.7rem;font-size:.9rem}.insurance-promo__content__subtitle-green[_ngcontent-%COMP%]{font-size:.9rem;margin-top:0;margin-bottom:5px;line-height:1.2rem}.insurance-promo__content__subtitle[_ngcontent-%COMP%]{width:6rem;margin-top:5px;margin-bottom:10px;font-size:.5rem;line-height:.7rem}.insurance-promo__content__conditions[_ngcontent-%COMP%]{margin-top:0;font-size:.45rem}.insurance-promo__content__conditions[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:.45rem}[_nghost-%COMP%]     .insurance-promo__close{top:5px;right:5px}[_nghost-%COMP%]     .insurance-promo__close img{width:10px}[_nghost-%COMP%]     .insurance-promo__content__button{gap:5px;margin-top:0;padding:5px 8px;font-size:.5rem}[_nghost-%COMP%]     .insurance-promo__content__button img{width:8px}}"]})}}return G})();const E=G=>[G];function b(G,K){1&G&&(u.j41(0,"div",6),u.nrm(1,"img",34),u.k0s())}function O(G,K){1&G&&(u.j41(0,"div",6),u.nrm(1,"img",35),u.k0s())}function x(G,K){if(1&G&&(u.j41(0,"div",21),u.nrm(1,"h3",36),u.nI1(2,"translate"),u.j41(3,"div",37),u.nrm(4,"p",38),u.nI1(5,"translate"),u.k0s()()),2&G){const B=K.$implicit;u.R7$(),u.Y8G("innerHTML",u.bMT(2,2,"ONBOARDING.INSURANCE."+B.toUpperCase()),u.npT),u.R7$(3),u.Y8G("innerHTML",u.bMT(5,4,"ONBOARDING.INSURANCE.INFO_"+B.toUpperCase()),u.npT)}}let V=(()=>{class G{constructor(B,j,P,L,H,N,$){this.changeDetectorRef=B,this.insuranceService=j,this.route=P,this.formsService=L,this.modalService=H,this.router=N,this.environmentService=$,this._documentChecked=!0,this.url_insurance_info="/wizard/insurance/insurance-info",this.modalOpened=!1,this.totalCheckboxes=["checkboxAccident","checkboxTeeth","checkboxTheft","checkboxLoseT"],this.insurancePDFPromo=""}ngAfterViewChecked(){this.changeDetectorRef.detectChanges()}trackByFn(B){return B}ngOnInit(){this.route.data.subscribe(B=>{this.module=B.module,this.tceci="5"===h.find(B.form.controls.additional_info.value,P=>"H-SUBTIPO"===P.property_id)?.value}),this.route.queryParamMap.subscribe(B=>{if(this.checkboxesChecked=Object.values({...B.keys}),0===this.checkboxesChecked.length&&this.totalCheckboxes.forEac
1h(j=>this.checkboxesChecked.push(j)),1===this.checkboxesChecked.length){const j=this.totalCheckboxes.filter(P=>P!=this.checkboxesChecked[0]);j.pop(),this.checkboxesChecked=this.checkboxesChecked.concat(j)}if(2===this.checkboxesChecked.length){let j=this.totalCheckboxes.filter(P=>P!=this.checkboxesChecked[0]&&P!=this.checkboxesChecked[1]);j=j.slice(-1),this.checkboxesChecked=this.checkboxesChecked.concat(j)}}),this.route.data.subscribe(B=>{this.form=B.form,this.module=B.module}),this.environmentService.isEnvironmentLoaded$.subscribe(B=>{B&&(this.insurancePDFPromo=this.environmentService.envVariables.insurancePDFPromo,this.firstDatePromoCESS=this.environmentService.envVariables.firstDatePromoCESS,this.lastDatePromoCESS=this.environmentService.envVariables.lastDatePromoCESS,this.lastDatePromoDisplay=this.environmentService.envVariables.lastDatePromoDisplay,this.firstDatePromoDisplay=this.environmentService.envVariables.firstDatePromoDisplay,new Date(this.lastDatePromoDisplay)>new Date&&new Date(this.firstDatePromoDisplay)<new Date&&this.openModal("promoCESS"))})}openModal(B){this.modalService.openModal(B),this.modalOpened=!0}close(B){this.modalService.closeModal(B),this.modalOpened=!1}documentChecked(){this._documentChecked=!this._documentChecked}getFee(){this.insuranceService.getFee().subscribe(B=>this.fee=B)}updateStatus(B){this.form.value.request_data.pre_status=B,this.formsService.updateCRM(this.form.value).subscribe(()=>{33===B?this.router.navigate(["/wizard/insurance/yearly-fee"],{queryParams:{contract:!0}}):12===B&&("tceci"===this.module?this.router.navigate(["/wizard/tceci/take-card"]):this.router.navigate(["/wizard/hire/hiring-client-holder"],{queryParams:{contract:!1}}))})}setStyles(){return{"min-height":"35px"}}static{this.\u0275fac=function(j){return new(j||G)(u.rXU(u.gRc),u.rXU(i.Y),u.rXU(c.nX),u.rXU(t.f),u.rXU(s.B),u.rXU(c.Ix),u.rXU(k.v))}}static{this.\u0275cmp=u.VBU({type:G,selectors:[["app-full-insurance"]],decls:57,vars:44,consts:[[1,"fullInsuranceContainer"],[1,"sr-only"],[1,"body","d-flex","mx-0","px-0","row","d-flex","justify-content-center","flex-column-reverse","flex-lg-row"],[1,"col-12","col-lg-7","pr-0","spacer-bottom-medium"],[1,"row","d-flex","col-auto","align-items-center","justify-content-center","spacer-top-medium"],[1,"col-6","col-md-3"],[1,"row"],[1,"col-12","col-xl-8","pl-0","pl-xl-5","d-flex","align-items-center","container-3meses"],[1,"row","d-flex","justify-content-center","justify-content-xl-start"],[1,"col-12","container-flexmonths"],[1,"h3",3,"innerHTML"],["src","./assets/img/onboarding-card/card/3MESESGRATIS.png",1,"mesesgratis",3,"alt"],[1,"help","d-flex","align-items-start","justify-content-center","justify-content-lg-end"],["src","./assets/img/telefono-ayudaSeguros.png",3,"alt"],[1,"row","body","mx-0","d-flex","justify-content-center"],[1,"row","space"],["id","card",1,"text-center","mx-auto","container","mb-4"],[1,"card-body"],[1,"card-title","h1"],["id","info_insurance",1,"card-title-text"],[1,"row","d-flex","justify-content-center"],[1,"size"],[1,"border-left","buttonSize"],[3,"clicked","variant"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"],[1,"link"],["addClass","no-thanks-btn",3,"clicked","variant"],[1,"row","d-flex","justify-content-center","spacer-bottom-low"],[1,"col-12","h5"],[1,"more-info",3,"routerLink"],[1,"row","d-flex","w-100","justify-content-lg-end","justify-content-center","m-0","p-0","logo-seguros"],["src","./assets/img/logo-Seguros.png","alt",""],["id","promoCESS",3,"dismissible","showActions","displayPadding"],[3,"close","getPromo","insurancePDFPromo"],["src","assets/img/onboarding-card/card/feci-tarjeta.png","alt",""],["src","assets/img/onboarding-card/card/old_feci_tarjeta.png","alt",""],["id","menu-title",1,"h5",3,"innerHTML"],["id","menu-text"],[3,"innerHTML"]],template:function(j,P){1&j&&(u.j41(0,"main")(1,"div",0)(2,"h1",1),u.EFF(3),u.nI1(4,"translate"),u.k0s(),u.j41(5,"div",2)(6,"div",3)(7,"div",4)(8,"div",5),u.DNE(9,b,2,0,"div",6)(10,O,2,0,"div",6),u.k0s(),u.j41(11,"div",7)(12,"div",8)(13,"div",9),u.nrm(14,"h2",10),u.nI1(15,"translate"),u.nrm(16,"img",11),u.nI1(17,"translate"),u.k0s()()()()(),u.j41(18,"div",12),u.nrm(19,"img",13),u.nI1(20,"translate"),u.k0s()()(),u.j41(21,"div",14)(22,"div",15)(23,"div",16)(24,"div",17)(25,"h2",18),u.EFF(26),u.nI1(27,"translate"),u.k0s(),u.j41(28,"p",19),u.EFF(29),u.nI1(30,"translate"),u.k0s(),u.j41(31,"div",20),u.Z7z(32,x,6,6,"div",21,u.fX1),u.j41(34,"div",22)(35,"app-button",23),u.bIt("clicked",function(){return P.updateStatus(33)}),u.EFF(36),u.nI1(37,"translate"),u.nrm(38,"app-icon",24),u.k0s(),u.j41(39,"div",25)(40,"app-button",26),u.bIt("clicked",function(){return P.updateStatus(12)}),u.EFF(41),u.nI1(42,"translate"),u.k0s()()()()(),u.j41(43,"div",27)(44,"h3",28),u.EFF(45),u.nI1(46,"translate"),u.k0s(),u.j41(47,"div")(48,"a",29),u.nI1(49,"translate"),u.j41(50,"span"),u.EFF(51),u.nI1(52,"translate"),u.k0s()()()()(),u.j41(53,"div",30),u.nrm(54,"img",31),u.k0s()()()(),u.j41(55,"app-dialog",32)(56,"app-insurance-promo-modal",33),u.bIt("close",function(){return P.close("promoCESS")})("getPromo",function(){return P.updateStatus(33)}),u.k0s()()),2&j&&(u.R7$(3),u.SpI(" ",u.bMT(4,20,"ONBOARDING.INSURANCE.FULL_INSURANCE")," "),u.R7$(6),u.vxM(9,P.tceci?-1:9),u.R7$(),u.vxM(10,P.tceci?10:-1),u.R7$(4),u.Y8G("innerHTML",u.bMT(15,22,"ONBOARDING.INSURANCE.COMPLETE_YOUR_CARD"),u.npT),u.R7$(2),u.FS9("alt",u.bMT(17,24,"ONBOARDING.INSURANCE.FREE_MONTHS_OFFER")),u.R7$(3),u.FS9("alt",u.bMT(20,26,"ONBOARDING.INSURANCE.INSURANCE_HELP_PHONE")),u.R7$(7),u.SpI(" ",u.bMT(27,28,"ONBOARDING.INSURANCE.FULL_INSURANCE")," "),u.R7$(3),u.SpI(" ",u.bMT(30,30,"ONBOARDING.INSURANCE.FULL_INSURANCE_INFO")," "),u.R7$(3),u.Dyx(P.checkboxesChecked),u.R7$(3),u.Y8G("variant","primary"),u.R7$(),u.SpI(" ",u.bMT(37,32,"ONBOARDING.INSURANCE.TAKE_PRESENT")," "),u.R7$(4),u.Y8G("variant","plain"),u.R7$(),u.SpI(" ",u.bMT(42,34,"ONBOARDING.INSURANCE.NO_THANKS")," "),u.R7$(4),u.SpI(" ",u.bMT(46,36,"ONBOARDING.INSURANCE.MORE_INSURANCES")," "),u.R7$(3),u.Y8G("routerLink",u.eq3(42,E,P.url_insurance_info)),u.BMQ("aria-label",u.bMT(49,38,"ONBOARDING.INSURANCE.MORE_INFO")),u.R7$(3),u.SpI(" ",u.bMT(52,40,"ONBOARDING.INSURANCE.INFO")," "),u.R7$(4),u.Y8G("dismissible",!1)("showActions",!1)("displayPadding",!1),u.R7$(),u.Y8G("insurancePDFPromo",P.insurancePDFPromo))}
1,dependencies:[o.Qp,F.m,n.R,c.Wk,e,a.D9],styles:['[_ngcontent-%COMP%]:root{--e-button-font-size: .875rem;--e-button-min-height: 3.25rem;--e-button-size-m-min-height: 3.25rem;--e-button-radius: .375rem;--e-button-max-width: 100%;--e-modal-overlay-color: rgba(72, 72, 72, .78);--e-modal-error-title-color: #cf3030;--e-accordeon-toggle-icon-color: #0a8250}@media (min-width: 48em){[_ngcontent-%COMP%]:root{--e-button-max-width: 22.5rem}}@media (min-width: 90em){[_ngcontent-%COMP%]:root{--e-button-font-size: 1rem;--e-button-min-height: 4.375rem;--e-button-radius: .5rem}}@font-face{font-display:swap;font-family:Lato Light;font-style:normal;font-weight:300;src:url(lato-light.1696f12b06d7ba39.woff2) format("woff2"),url(lato-light.073fa7ce2815fe3b.woff) format("woff"),url(lato-light.8ca480383f578aa0.ttf) format("truetype")}@font-face{font-display:swap;font-family:Lato;font-style:normal;font-weight:400;src:url(lato-regular.a886948bc572282e.woff2) format("woff2"),url(lato-regular.e9701b72754df2a1.woff) format("woff"),url(lato-regular.eced59bb36710cee.ttf) format("truetype")}@font-face{font-display:swap;font-family:Lato Bold;font-style:normal;font-weight:700;src:url(lato-bold.a1ae228c0de290f6.woff2) format("woff2"),url(lato-bold.7c01491b4f128c09.woff) format("woff"),url(lato-bold.3b17b4ca48902ecb.ttf) format("truetype")}@font-face{font-family:Gotham;font-style:normal;font-weight:bolder;src:url(Gotham-Black.bdb1a4f884d063f7.otf) format("otf")}@font-face{font-family:Gotham;font-style:normal;font-weight:700;src:url(GothamBold.f6816b5a23573696.ttf) format("ttf")}@font-face{font-family:Gotham;font-style:normal;src:url(GothamBook.477f1222752d7d14.ttf) format("ttf")}@font-face{font-family:Gotham;font-style:normal;font-weight:lighter;font-weight:300;src:url(GothamLight.d4246eb97ff64688.ttf) format("ttf")}@font-face{font-family:Gotham;font-style:italic;src:url(GothamMediumItalic.5f4e6482961545f5.ttf) format("ttf")}body[_ngcontent-%COMP%]{color:#182433;font-family:Lato,sans-serif;font-size:1rem}a[_ngcontent-%COMP%]{color:#0a8250;text-decoration:none}a[_ngcontent-%COMP%]:hover{text-decoration:underline}.h2[_ngcontent-%COMP%]{font-size:.875rem;font-weight:400;line-height:1.6em;margin:0}@media (min-width: 48em){.h2[_ngcontent-%COMP%]{font-size:1rem;line-height:1.55em}}@media (min-width: 90em){.h2[_ngcontent-%COMP%]{font-size:1.125rem}}p[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.6em;margin:0 0 1em}@media (min-width: 48em){p[_ngcontent-%COMP%]{line-height:1.7em}}@media (min-width: 90em){p[_ngcontent-%COMP%]{font-size:1rem;line-height:1.75em}}p[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{font-family:Lato Bold,sans-serif;font-weight:400}.accessible-hide[_ngcontent-%COMP%]{clip:rect(.0625rem,.0625rem,.0625rem,.0625rem);height:.0625rem;margin:0!important;overflow:hidden;position:absolute}.hidden[_ngcontent-%COMP%]{display:none!important}@media (max-width: 47.9375em){.hidden-on-phones[_ngcontent-%COMP%]{display:none!important}}@media (min-width: 48em){.visible-only-on-phones[_ngcontent-%COMP%]{display:none!important}}#json-viewer[_ngcontent-%COMP%]{background-color:#f2f2f2;border:1px solid #0a8250;box-shadow:0 0 40px #0006;display:none;font-size:11px;height:80%;left:0;margin:20px auto;overflow:auto;padding:30px;position:fixed;right:0;top:0;width:1023px;z-index:9999}.body[_ngcontent-%COMP%]{background-color:#f9f9f9;display:grid}.space[_ngcontent-%COMP%]{margin-bottom:68px;width:81%}.size[_ngcontent-%COMP%]{max-width:30%;max-height:9em;padding-right:4%}.margen[_ngcontent-%COMP%]{padding-left:20px}a[_ngcontent-%COMP%]{color:#000!important}h5[_ngcontent-%COMP%], .checkbox-subtitle[_ngcontent-%COMP%]{color:#0a8250}.link[_ngcontent-%COMP%]{padding-top:15px}.buttonSize[_ngcontent-%COMP%]{max-width:245px;padding-left:20px}.card-title[_ngcontent-%COMP%]{color:#0a8250;margin-top:20px}.card-title-text[_ngcontent-%COMP%]{font-size:18px;text-align:center;padding-bottom:90px;max-width:670px;margin:0 auto}.help[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:70%}#menu-title[_ngcontent-%COMP%]{color:#0a8250}#menu-text[_ngcontent-%COMP%]{font-size:14px;margin:30px auto 0;height:160px;width:175px}#submenu-text[_ngcontent-%COMP%]{font-size:14px;display:flex;justify-content:center;height:140px}#card[_ngcontent-%COMP%]{background:#fff;border-radius:8px;max-width:100%!important;border:1px solid #0a8250;margin-bottom:126px}#card-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;align:center}#card-recommended[_ngcontent-%COMP%]{border:2px solid #0a8250}#card-other[_ngcontent-%COMP%]{border:1px solid #5e5e5e;margin-left:20px}h5[_ngcontent-%COMP%], .checkbox-subtitle[_ngcontent-%COMP%]{text-align:center;font-weight:700}  .checkbox-subtitle{display:block;font-size:.83em;margin:0 0 .5rem}.text[_ngcontent-%COMP%]{font-size:14px;line-height:initial}#flecha[_ngcontent-%COMP%]{height:10.5022850037px;width:12.0026779175px;margin-left:5px}.fullInsuranceContainer[_ngcontent-%COMP%]   .modal__panel[_ngcontent-%COMP%]{padding:0}.mesesgratis[_ngcontent-%COMP%]{width:250px}  .btn-regalo{min-height:35px}.container-3meses[_ngcontent-%COMP%]{padding-right:14px!important;padding-left:14px!important}.no-thanks-btn[_ngcontent-%COMP%]{background:none;border:none;color:#000;cursor:pointer;font-size:14px;padding:0}.logo-seguros[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:25%}a.more-info[_ngcontent-%COMP%]{width:auto;align-items:center;display:flex;font-size:var(--e-button-font-size);justify-content:space-between;line-height:1.2em;padding:.25rem 1.5625rem;border:1px solid #000;color:#000;background-color:#fff;box-sizing:border-box;border-radius:8px;min-height:2rem;text-decoration:none!important}a.more-info[_ngcontent-%COMP%]:hover{color:#000}a.more-info[disabled][_ngcontent-%COMP%]{pointer-events:none}@media (min-width: 48em){.fullInsuranceContainer[_ngcontent-%COMP%]   .modal__panel[_ngcontent-%COMP%]{padding:0}}@media (max-width: 1250px){.help[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:60%;margin-right:10%}}@media (max-width: 1490px){.size[_ngcontent-%COMP%]{max-width:80%;max-height:9em;padding-right:4%}}@media (max-width: 991px){.container-flexmonths[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:column}.help[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:30%;margin-right:0}.logo-seguros[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:50%}}@media (max-width: 415px){.col-6[_ngcontent-%COMP%]{flex:0 0 50%;max-width:100%}#menu-text[_ngcontent-%COMP%]{font-size:14px;margin:10px auto 0;height:100px;width:175px}}']})}}return G})()},57928:(ut,tt,r)=>{r.d(tt,{k:()=>n});var h=r(95769),i=r(11201),c=r(88025),t=r(25662),s=r(55902),k=r(53786);
1function o(a,e){1&a&&(i.j41(0,"div",4),i.nrm(1,"img",57),i.k0s())}function F(a,e){1&a&&(i.j41(0,"div",4),i.nrm(1,"img",58),i.k0s())}let n=(()=>{class a{constructor(E,b,O,x){this.changeDetectorRef=E,this.route=b,this.formsService=O,this.router=x,this._documentChecked=!0,this.show=!1,this.show2=!1,this.show3=!1,this.show4=!1,this.show5=!1,this.show6=!1,this.show7=!1,this.show8=!1,this.show9=!1,this.show10=!1,this.aName="+ Ver m\xe1s"}ngAfterViewInit(){this.route.data.subscribe(E=>{this.tceci="5"===h.find(E.form.controls.additional_info.value,O=>"H-SUBTIPO"===O.property_id)?.value}),window.location.href.includes("#extra-protection")&&window.scrollTo(0,99999)}ngAfterViewChecked(){this.changeDetectorRef.detectChanges(),this.route.data.subscribe(E=>{this.form=E.form})}documentChecked(){this._documentChecked=!this._documentChecked}updateStatus(){this.form.value.request_data.pre_status=33,this.formsService.updateCRM(this.form.value).subscribe(()=>{this.router.navigate(["/wizard/insurance/yearly-fee"])})}static{this.\u0275fac=function(b){return new(b||a)(i.rXU(i.gRc),i.rXU(c.nX),i.rXU(t.f),i.rXU(c.Ix))}}static{this.\u0275cmp=i.VBU({type:a,selectors:[["app-insurance-info"]],decls:317,vars:248,consts:[[1,"d-flex","body","mx-0","px-0","row","d-flex","justify-content-center"],[1,"col-12","col-lg-7","pr-0","spacer-bottom-medium"],[1,"row","d-flex","col-auto","align-items-center","justify-content-center","spacer-top-medium"],[1,"col-6","col-md-3"],[1,"row"],[1,"col-12","col-xl-8","pl-0","pl-xl-5","d-flex","align-items-center"],[1,"row","d-flex","justify-content-center","justify-content-xl-start"],[1,"col-auto","spacer-bottom-low"],["src","assets/img/LOGO_ECI_SEGUROS_1.png","alt",""],[1,"col-12"],[3,"innerHTML"],[1,"body"],["id","card",1,"card","text-center","mx-auto","container"],[1,"card-body"],["id","lifestyle",1,"card-title"],[1,"card-subtitle"],[1,"d-flex","flex-column","justify-content-center","mb-5"],["id","menu-title"],[1,"card-subtitle-img","url1"],["id","menu-text"],["id","listas",1,"col-sm-12"],[1,"list-item__content"],[1,"list-item__title"],["id","info",1,"col"],["id","interior"],["variant","plain","addClass","btn btn-lib more","dataToggle","collapse","dataTarget","#lifestyle-info-1","ariaControls","lifestyle-info-1",3,"clicked","ariaExpanded"],["id","lifestyle-info-1",1,"collapse"],["id","interior2"],["variant","plain","addClass","btn btn-lib more","dataToggle","collapse","dataTarget","#lifestyle-info-2","ariaControls","lifestyle-info-2",3,"clicked","ariaExpanded"],["id","lifestyle-info-2",1,"collapse"],["variant","plain","addClass","btn btn-lib more","dataToggle","collapse","dataTarget","#lifestyle-info-3","ariaControls","lifestyle-info-3",3,"clicked","ariaExpanded"],["id","lifestyle-info-3",1,"collapse"],["variant","plain","addClass","btn btn-lib more","dataToggle","collapse","dataTarget","#lifestyle-info-4","ariaControls","lifestyle-info-4",3,"clicked","ariaExpanded"],["id","lifestyle-info-4",1,"collapse"],["id","family-wellness",1,"card-subtitle"],[1,"card-subtitle-img","url2"],["variant","plain","addClass","btn btn-lib more","dataToggle","collapse","dataTarget","#family-wellness-info-1","ariaControls","family-wellness-info-1",3,"clicked","ariaExpanded"],["id","family-wellness-info-1",1,"collapse"],["variant","plain","addClass","btn btn-lib more","dataToggle","collapse","dataTarget","#family-wellness-info-2","ariaControls","family-wellness-info-2",3,"clicked","ariaExpanded"],["id","family-wellness-info-2",1,"collapse"],["variant","plain","addClass","btn btn-lib more","dataToggle","collapse","dataTarget","#family-wellness-info-3","ariaControls","family-wellness-info-3",3,"clicked","ariaExpanded"],["id","family-wellness-info-3",1,"collapse"],["id","extra-protection",1,"card-subtitle"],[1,"card-subtitle-img","url3"],["variant","plain","addClass","btn btn-lib more","dataToggle","collapse","dataTarget","#extra-protection-info-1","ariaControls","extra-protection-info-1",3,"clicked","ariaExpanded"],["id","extra-protection-info-1",1,"collapse"],["variant","plain","addClass","btn btn-lib more","dataToggle","collapse","dataTarget","#extra-protection-info-2","ariaControl
1s","extra-protection-info-2",3,"clicked","ariaExpanded"],["id","extra-protection-info-2",1,"collapse"],["variant","plain","addClass","btn btn-lib more","dataToggle","collapse","dataTarget","#extra-protection-info-3","ariaControls","extra-protection-info-3",3,"clicked","ariaExpanded"],["id","extra-protection-info-3",1,"collapse"],["id","interior3"],[1,"col","resumen-informativo"],[1,"botones","mt-5"],["tabindex","0",1,"mr-3","e-button","e-button-var--nothanks",3,"routerLink"],["src","assets/img/FlechaIzquierda.png","id","flecha2","alt",""],[3,"clicked","variant"],["src","assets/img/FlechaDerecha.png","id","flecha","alt",""],["src","assets/img/onboarding-card/card/feci-tarjeta.png","alt",""],["src","assets/img/onboarding-card/card/old_feci_tarjeta.png","alt",""]],template:function(b,O){1&b&&(i.j41(0,"main")(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3),i.DNE(5,o,2,0,"div",4)(6,F,2,0,"div",4),i.k0s(),i.j41(7,"div",5)(8,"div",6)(9,"div",7),i.nrm(10,"img",8),i.k0s(),i.j41(11,"div",9),i.nrm(12,"h1",10),i.nI1(13,"translate"),i.k0s()()()()()(),i.j41(14,"div",11)(15,"div",12)(16,"div",13)(17,"h2",14),i.EFF(18),i.nI1(19,"translate"),i.k0s(),i.j41(20,"div",15)(21,"div",16)(22,"span",17),i.nrm(23,"div",18),i.EFF(24),i.nI1(25,"translate"),i.k0s(),i.j41(26,"div",19),i.EFF(27),i.nI1(28,"translate"),i.k0s()()(),i.j41(29,"div",20)(30,"ul")(31,"li")(32,"div",21)(33,"h3",22),i.EFF(34),i.nI1(35,"translate"),i.k0s(),i.j41(36,"div",23)(37,"p",24),i.EFF(38),i.nI1(39,"translate"),i.k0s(),i.j41(40,"app-button",25),i.bIt("clicked",function(){return O.show=!O.show}),i.EFF(41),i.nI1(42,"translate"),i.k0s(),i.j41(43,"div",26)(44,"ol")(45,"li",27),i.nrm(46,"span",10),i.nI1(47,"translate"),i.k0s(),i.j41(48,"li",27),i.nrm(49,"span",10),i.nI1(50,"translate"),i.k0s(),i.j41(51,"li",27),i.EFF(52),i.nI1(53,"translate"),i.k0s()()()()()(),i.j41(54,"li")(55,"div",21)(56,"h3",22),i.EFF(57),i.nI1(58,"translate"),i.k0s(),i.j41(59,"div",23)(60,"p",24),i.EFF(61),i.nI1(62,"translate"),i.k0s(),i.j41(63,"app-button",28),i.bIt("clicked",function(){return O.show2=!O.show2}),i.EFF(64),i.nI1(65,"translate"),i.k0s(),i.j41(66,"div",29)(67,"ol")(68,"li",27),i.nrm(69,"span",10),i.nI1(70,"translate"),i.k0s(),i.j41(71,"li",27),i.nrm(72,"span",10),i.nI1(73,"translate"),i.k0s(),i.j41(74,"li",27),i.nrm(75,"span",10),i.nI1(76,"translate"),i.k0s(),i.j41(77,"li",27),i.EFF(78),i.nI1(79,"translate"),i.k0s()()()()()(),i.j41(80,"li")(81,"div",21)(82,"h3",22),i.EFF(83),i.nI1(84,"translate"),i.k0s(),i.j41(85,"div",23)(86,"p",24),i.EFF(87),i.nI1(88,"translate"),i.k0s(),i.j41(89,"app-button",30),i.bIt("clicked",function(){return O.show3=!O.show3}),i.EFF(90),i.nI1(91,"translate"),i.k0s(),i.j41(92,"div",31)(93,"ol")(94,"li",27),i.nrm(95,"span",10),i.nI1(96,"translate"),i.k0s(),i.j41(97,"li",27),i.nrm(98,"span",10),i.nI1(99,"translate"),i.k0s(),i.j41(100,"li",27),i.nrm(101,"span",10),i.nI1(102,"translate"),i.k0s(),i.j41(103,"li",27),i.nrm(104,"span",10),i.nI1(105,"translate"),i.k0s()()()()()(),i.j41(106,"li")(107,"div",21)(108,"h3",22),i.EFF(109),i.nI1(110,"translate"),i.k0s(),i.j41(111,"div",23)(112,"p",24),i.EFF(113),i.nI1(114,"translate"),i.k0s(),i.j41(115,"app-button",32),i.bIt("clicked",function(){return O.show4=!O.show4}),i.EFF(116),i.nI1(117,"translate"),i.k0s(),i.j41(118,"div",33)(119,"ol")(120,"li",27),i.nrm(121,"span",10),i.nI1(122,"translate"),i.k0s(),i.j41(123,"li",27),i.nrm(124,"span",10),i.nI1(125,"translate"),i.k0s(),i.j41(126,"li",27),i.nrm(127,"span",10),i.nI1(128,"translate"),i.k0s(),i.j41(129,"li",27),i.nrm(130,"span",10),i.nI1(131,"translate"),i.k0s(),i.j41(132,"li",27),i.nrm(133,"span",10),i.nI1(134,"translate"),i.k0s()()()()()()()(),i.j41(135,"div",34)(136,"div",16)(137,"span",17),i.nrm(138,"div",35),i.EFF(139),i.nI1(140,"translate"),i.k0s(),i.j41(141,"div",19),i.EFF(142),i.nI1(143,"translate"),i.k0s()()(),i.j41(144,"div",20)(145,"ul")(146,"li")(147,"div",21)(148,"h3",22),i.EFF(149),i.nI1(150,"translate"),i.k0s(),i.j41(151,"div",23)(152,"p",24),i.EFF(153),i.nI1(154,"translate"),i.k0s(),i.j41(155,"app-button",36),i.bIt("clicked",function(){return O.show5=!O.show5}),i.EFF(156),i.nI1(157,"translate"),i.k0s(),i.j41(158,"div",37)(159,"ol")(160,"li",27),i.nrm(161,"span",10),i.nI1(162,"translate"),i.k0s(),i.j41(163,"li",27),i.nrm(164,"span",10),i.nI1(165,"translate"),i.k0s(),i.j41(166,"li",27),i.nrm(167,"span",10),i.nI1(168,"translate"),i.k0s()()()()()(),i.j41(169,"li")(170,"div",21)(171,"h3",22),i.EFF(172),i.nI1(173,"translate"),i.k0s(),i.j41(174,"div",23)(175,"p",24),i.EFF(176),i.nI1(177,"translate"),i.k0s(),i.j41(178,"app-button",38),i.bIt("clicked",function(){return O.show6=!O.show6}),i.EFF(179),i.nI1(180,"translate"),i.k0s(),i.j41(181,"div",39)(182,"ol")(183,"li",27),i.nrm(184,"span",10),i.nI1(185,"translate"),i.k0s(),i.j41(186,"li",27),i.nrm(187,"span",10),i.nI1(188,"translate"),i.k0s(),i.j41(189,"li",27),i.nrm(190,"span",10),i.nI1(191,"translate"),i.k0s(),i.j41(192,"li",27),i.nrm(193,"span",10),i.nI1(194,"translate"),i.k0s()()()()()(),i.j41(195,"li")(196,"div",21)(197,"h3",22),i.EFF(198),i.nI1(199,"translate"),i.k0s(),i.j41(200,"div",23)(201,"p",24),i.EFF(202),i.nI1(203,"translate"),i.k0s(),i.j41(204,"app-button",40),i.bIt("clicked",function(){return O.show7=!O.show7}),i.EFF(205),i.nI1(206,"translate"),i.k0s(),i.j41(207,"div",41)(208,"ol")(209,"li",27),i.nrm(210,"span",10),i.nI1(211,"translate"),i.k0s(),i.j41(212,"li",27),i.nrm(213,"span",10),i.nI1(214,"translate"),i.k0s(),i.j41(215,"li",27),i.nrm(216,"span",10),i.nI1(217,"translate"),i.k0s()()()()()()()(),i.j41(218,"div",42)(219,"div",16)(220,"span",17),i.nrm(221,"div",43),i.EFF(222),i.nI1(223,"translate"),i.k0s(),i.j41(224,"div",19),i.EFF(225),i.nI1(226,"translate"),i.k0s()()(),i.j41(227,"div",20)(228,"ul")(229,"li")(230,"div",21)(231,"h3",22),i.EFF(232),i.nI1(233,"translate"),i.k0s(),i.j41(234,"div",23)(235,"p",24),i.EFF(236),i.nI1(237,"translate"),i.k0s(),i.j41(238,"app-button",44),i.bIt("clicked",function(){return O.show8=!O.show8}),i.EFF(239),i.nI1(240,"translate"),i.k0s(),i.j41(241,"div",45)(242,"ol")(243,"li",27),i.nrm(244,"span",10),i.nI1(245,"translate"),i.k0s(),i.j41(246,"li",27),i.nrm(247,"span",10),i.nI1(248,"translate"),i.k0s(),i.j41(249,"li",27),i.nrm(250,"span",10),i.nI1(251,"translate"),i.k0s(),i.j41(252,"li",27),i.nrm(253,"span",10),i.nI1(254,"translate"),i.k0s()()()()()(),i.j41(255,"li")(256,"div",21)(257,"h3",22),i.EFF(258),i.nI1(259,"translate"),i.k0s(),i.j41(260,"div",23)(261,"p",24),i.EFF(262),i.nI1(263,"translate"),i.k0s(),i.j41(264,"app-button",46),i.bIt("clicked",function(){return O.show9=!O.show9}),i.EFF(265),i.nI1(266,"translate"),i.k0s(),i.j41(267,"div",47)(268,"ol")(269,"li",27),i.nrm(270,"span",10),i.nI1(271,"translate"),i.k0s(),i.j41(272,"li",27),i.nrm(273,"span",10),i.nI1(274,"translate"),i.k0s(),i.j41(275,"li",27),i.nrm(276,"span",10),i.nI1(277,"translate"),i.k0s()()()()()(),i.j41(278,"li")(279,"div",21)(280,"h3",22),i.EFF(281),i.nI1(282,"translate"),i.k0s(),i.j41(283,"div",23)(284,"p",24),i.EFF(285),i.nI1(286,"translate"),i.k0s(),i.j41(287,"app-button",48),i.bIt("clicked",function(){return O.show10=!O.show10}),i.EFF(288),i.nI1(289,"translate"),i.k0s(),i.j41(290,"div",49)(291,"ol")(292,"span",50),i.nrm(293,"span",10),i.nI1(294,"translate"),i.k0s(),i.j41(295,"li",27),i.nrm(296,"span",10),i.nI1(297,"translate"),i.k0s(),i.j41(298,"li",27),i.nrm(299,"span",10),i.nI1(300,"translate"),i.k0s(),i.j41(301,"li",27),i.nrm(302,"span",10),i.nI1(303,"translate"),i.k0s()()()()()()()(),i.j41(304,"div",51),i.EFF(305),i.n
1I1(306,"translate"),i.k0s(),i.j41(307,"div",52)(308,"a",53),i.nrm(309,"img",54),i.j41(310,"b"),i.EFF(311),i.nI1(312,"translate"),i.k0s()(),i.j41(313,"app-button",55),i.bIt("clicked",function(){return O.updateStatus()}),i.EFF(314),i.nI1(315,"translate"),i.nrm(316,"img",56),i.k0s()()()()()()),2&b&&(i.R7$(5),i.vxM(5,O.tceci?-1:5),i.R7$(),i.vxM(6,O.tceci?6:-1),i.R7$(6),i.Y8G("innerHTML",i.bMT(13,92,"ONBOARDING.INSURANCE.COMPLETE_YOUR_CARD_POINT"),i.npT),i.R7$(6),i.SpI(" ",i.bMT(19,94,"ONBOARDING.INSURANCE.FULL_INSURANCE")," "),i.R7$(6),i.SpI(" ",i.bMT(25,96,"ONBOARDING.INSURANCE.LIFESTYLE")," "),i.R7$(3),i.SpI(" ",i.bMT(28,98,"ONBOARDING.INSURANCE.LIFESTYLE_INFO")," "),i.R7$(7),i.SpI(" ",i.bMT(35,100,"ONBOARDING.INSURANCE.LIFESTYLE_MENU")," "),i.R7$(4),i.SpI(" ",i.bMT(39,102,"ONBOARDING.INSURANCE.LIFESTYLE2_INFO1")," "),i.R7$(2),i.Y8G("ariaExpanded",O.show),i.R7$(),i.SpI(" ",i.bMT(42,104,O.show?"ONBOARDING.INSURANCE.SEE_LESS":"ONBOARDING.INSURANCE.SEE_MORE")," "),i.R7$(5),i.Y8G("innerHTML",i.bMT(47,106,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE1"),i.npT),i.R7$(3),i.Y8G("innerHTML",i.bMT(50,108,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE2"),i.npT),i.R7$(3),i.SpI(" ",i.bMT(53,110,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE3")," "),i.R7$(5),i.SpI(" ",i.bMT(58,112,"ONBOARDING.INSURANCE.LIFESTYLE_MENU2")," "),i.R7$(4),i.SpI(" ",i.bMT(62,114,"ONBOARDING.INSURANCE.LIFESTYLE2_INFO2")," "),i.R7$(2),i.Y8G("ariaExpanded",O.show2),i.R7$(),i.SpI(" ",i.bMT(65,116,O.show2?"ONBOARDING.INSURANCE.SEE_LESS":"ONBOARDING.INSURANCE.SEE_MORE")," "),i.R7$(5),i.Y8G("innerHTML",i.bMT(70,118,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE4"),i.npT),i.R7$(3),i.Y8G("innerHTML",i.bMT(73,120,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE5"),i.npT),i.R7$(3),i.Y8G("innerHTML",i.bMT(76,122,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE6"),i.npT),i.R7$(3),i.SpI(" ",i.bMT(79,124,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE7")," "),i.R7$(5),i.SpI(" ",i.bMT(84,126,"ONBOARDING.INSURANCE.LIFESTYLE_MENU3")," "),i.R7$(4),i.SpI(" ",i.bMT(88,128,"ONBOARDING.INSURANCE.LIFESTYLE2_INFO3")," "),i.R7$(2),i.Y8G("ariaExpanded",O.show3),i.R7$(),i.SpI(" ",i.bMT(91,130,O.show3?"ONBOARDING.INSURANCE.SEE_LESS":"ONBOARDING.INSURANCE.SEE_MORE")," "),i.R7$(5),i.Y8G("innerHTML",i.bMT(96,132,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE8"),i.npT),i.R7$(3),i.Y8G("innerHTML",i.bMT(99,134,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE9"),i.npT),i.R7$(3),i.Y8G("innerHTML",i.bMT(102,136,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE10"),i.npT),i.R7$(3),i.Y8G("innerHTML",i.bMT(105,138,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE11"),i.npT),i.R7$(5),i.SpI(" ",i.bMT(110,140,"ONBOARDING.INSURANCE.LIFESTYLE_MENU4")," "),i.R7$(4),i.SpI(" ",i.bMT(114,142,"ONBOARDING.INSURANCE.LIFESTYLE2_INFO4")," "),i.R7$(2),i.Y8G("ariaExpanded",O.show4),i.R7$(),i.SpI(" ",i.bMT(117,144,O.show4?"ONBOARDING.INSURANCE.SEE_LESS":"ONBOARDING.INSURANCE.SEE_MORE")," "),i.R7$(5),i.Y8G("innerHTML",i.bMT(122,146,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE12"),i.npT),i.R7$(3),i.Y8G("innerHTML",i.bMT(125,148,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE13"),i.npT),i.R7$(3),i.Y8G("innerHTML",i.bMT(128,150,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE14"),i.npT),i.R7$(3),i.Y8G("innerHTML",i.bMT(131,152,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE15"),i.npT),i.R7$(3),i.Y8G("innerHTML",i.bMT(134,154,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE16"),i.npT),i.R7$(6),i.SpI(" ",i.bMT(140,156,"ONBOARDING.INSURANCE.FAMILY_WELLNESS")," "),i.R7$(3),i.SpI(" ",i.bMT(143,158,"ONBOARDING.INSURANCE.FAMILY_WELLNESS2")," "),i.R7$(7),i.SpI(" ",i.bMT(150,160,"ONBOARDING.INSURANCE.FAMILY_WELLNESS_MENU")," "),i.R7$(4),i.SpI(" ",i.bMT(154,162,"ONBOARDING.INSURANCE.FAMILY_WELLNESS2_INFO1")," "),i.R7$(2),i.Y8G("ariaExpanded",O.show5),i.R7$(),i.SpI(" ",i.bMT(157,164,O.show5?"ONBOARDING.INSURANCE.SEE_LESS":"ONBOARDING.INSURANCE.SEE_MORE")," "),i.R7$(5),i.Y8G("innerHTML",i.bMT(162,166,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE17"),i.npT),i.R7$(3),i.Y8G("innerHTML",i.bMT(165,168,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE18"),i.npT),i.R7$(3),i.Y8G("innerHTML",i.bMT(168,170,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE19"),i.npT),i.R7$(5),i.SpI(" ",i.bMT(173,172,"ONBOARDING.INSURANCE.FAMILY_WELLNESS_MENU2")," "),i.R7$(4),i.SpI(" ",i.bMT(177,174,"ONBOARDING.INSURANCE.FAMILY_WELLNESS2_INFO2")," "),i.R7$(2),i.Y8G("ariaExpanded",O.show6),i.R7$(),i.SpI(" ",i.bMT(180,176,O.show6?"ONBOARDING.INSURANCE.SEE_LESS":"ONBOARDING.INSURANCE.SEE_MORE")," "),i.R7$(5),i.Y8G("innerHTML",i.bMT(185,178,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE20"),i.npT),i.R7$(3),i.Y8G("innerHTML",i.bMT(188,180,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE21"),i.npT),i.R7$(3),i.Y8G("innerHTML",i.bMT(191,182,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE22"),i.npT),i.R7$(3),i.Y8G("innerHTML",i.bMT(194,184,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE23"),i.npT),i.R7$(5),i.SpI(" ",i.bMT(199,186,"ONBOARDING.INSURANCE.FAMILY_WELLNESS_MENU3")," "),i.R7$(4),i.SpI(" ",i.bMT(203,188,"ONBOARDING.INSURANCE.FAMILY_WELLNESS2_INFO3")," "),i.R7$(2),i.Y8G("ariaExpanded",O.show7),i.R7$(),i.SpI(" ",i.bMT(206,190,O.show7?"ONBOARDING.INSURANCE.SEE_LESS":"ONBOARDING.INSURANCE.SEE_MORE")," "),i.R7$(5),i.Y8G("innerHTML",i.bMT(211,192,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE24"),i.npT),i.R7$(3),i.Y8G("innerHTML",i.bMT(214,194,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE25"),i.npT),i.R7$(3),i.Y8G("innerHTML",i.bMT(217,196,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE26"),i.npT),i.R7$(6),i.Sp
1I(" ",i.bMT(223,198,"ONBOARDING.INSURANCE.EXTRA_PROTECTION")," "),i.R7$(3),i.SpI(" ",i.bMT(226,200,"ONBOARDING.INSURANCE.EXTRA_PROTECTION2")," "),i.R7$(7),i.SpI(" ",i.bMT(233,202,"ONBOARDING.INSURANCE.EXTRA_PROTECTION_MENU")," "),i.R7$(4),i.SpI(" ",i.bMT(237,204,"ONBOARDING.INSURANCE.EXTRA_PROTECTION2_INFO1")," "),i.R7$(2),i.Y8G("ariaExpanded",O.show8),i.R7$(),i.SpI(" ",i.bMT(240,206,O.show8?"ONBOARDING.INSURANCE.SEE_LESS":"ONBOARDING.INSURANCE.SEE_MORE")," "),i.R7$(5),i.Y8G("innerHTML",i.bMT(245,208,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE27"),i.npT),i.R7$(3),i.Y8G("innerHTML",i.bMT(248,210,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE28"),i.npT),i.R7$(3),i.Y8G("innerHTML",i.bMT(251,212,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE29"),i.npT),i.R7$(3),i.Y8G("innerHTML",i.bMT(254,214,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE30"),i.npT),i.R7$(5),i.SpI(" ",i.bMT(259,216,"ONBOARDING.INSURANCE.EXTRA_PROTECTION_MENU2")," "),i.R7$(4),i.SpI(" ",i.bMT(263,218,"ONBOARDING.INSURANCE.EXTRA_PROTECTION2_INFO2")," "),i.R7$(2),i.Y8G("ariaExpanded",O.show9),i.R7$(),i.SpI(" ",i.bMT(266,220,O.show9?"ONBOARDING.INSURANCE.SEE_LESS":"ONBOARDING.INSURANCE.SEE_MORE")," "),i.R7$(5),i.Y8G("innerHTML",i.bMT(271,222,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE31"),i.npT),i.R7$(3),i.Y8G("innerHTML",i.bMT(274,224,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE32"),i.npT),i.R7$(3),i.Y8G("innerHTML",i.bMT(277,226,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE33"),i.npT),i.R7$(5),i.SpI(" ",i.bMT(282,228,"ONBOARDING.INSURANCE.EXTRA_PROTECTION_MENU3")," "),i.R7$(4),i.SpI(" ",i.bMT(286,230,"ONBOARDING.INSURANCE.EXTRA_PROTECTION2_INFO3")," "),i.R7$(2),i.Y8G("ariaExpanded",O.show10),i.R7$(),i.SpI(" ",i.bMT(289,232,O.show10?"ONBOARDING.INSURANCE.SEE_LESS":"ONBOARDING.INSURANCE.SEE_MORE")," "),i.R7$(5),i.Y8G("innerHTML",i.bMT(294,234,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE34"),i.npT),i.R7$(3),i.Y8G("innerHTML",i.bMT(297,236,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE35"),i.npT),i.R7$(3),i.Y8G("innerHTML",i.bMT(300,238,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE36"),i.npT),i.R7$(3),i.Y8G("innerHTML",i.bMT(303,240,"ONBOARDING.INSURANCE.SEE_MORE_LIFESTYLE37"),i.npT),i.R7$(3),i.SpI(" ",i.bMT(306,242,"ONBOARDING.INSURANCE.INFORMATIVE_SUMMARY")," "),i.R7$(3),i.Y8G("routerLink","/wizard/insurance/full-insurance"),i.R7$(3),i.JRh(i.bMT(312,244,"ONBOARDING.COMMON.BACK")),i.R7$(2),i.Y8G("variant","hire1step"),i.R7$(),i.SpI(" ",i.bMT(315,246,"ONBOARDING.INSURANCE.HIRE_IN_ONE_STEP")," "))},dependencies:[s.Qp,c.Wk,k.D9],styles:['.body[_ngcontent-%COMP%]{background-color:#f9f9f9;display:grid}ul[_ngcontent-%COMP%]{list-style:none}li[_ngcontent-%COMP%]{display:flex;align-items:left}.list-item__content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}h3.list-item__title[_ngcontent-%COMP%]{font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;text-align:left}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:before{content:url(Vector.d012c65307c79a0f.png);color:#0a8250;font-size:17px;width:1em;margin-left:-10px;padding-right:25px}ol[_ngcontent-%COMP%]{list-style:none}ol[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:before{content:"";height:6px;width:6px;left:333px;top:801px;display:inline-block;text-align:left;color:#0a8250;background-color:#0a8250;border-radius:50%;padding-right:6px;padding-top:6px;margin-top:9px;margin-right:32px}#interior2[_ngcontent-%COMP%]{color:#000!important;font-weight:400;text-align:left;margin-bottom:1em;margin-left:-34px;display:flex}#interior3[_ngcontent-%COMP%]{color:#000!important;font-weight:400;text-align:left;margin-bottom:1em;margin-left:-15px;display:flex}#iconos[_ngcontent-%COMP%]{width:59px;height:auto}.card-title[_ngcontent-%COMP%]{font-size:2rem;color:#0a8250;margin-top:20px;margin-bottom:70px}.card-title-text[_ngcontent-%COMP%]{font-size:18px;margin-bottom:30px;text-align:left}#info_insurance[_ngcontent-%COMP%]{margin:0 auto 90px}#menu-title[_ngcontent-%COMP%]{font-weight:700;font-size:24px;color:#0a8250;display:flex;margin-bottom:-20px}#menu-text[_ngcontent-%COMP%]{text-align:left;font-size:16px;line-height:19px;color:#000}#submenu-text[_ngcontent-%COMP%]{font-size:14px;margin:0 auto}#card[_ngcontent-%COMP%]{border-radius:8px;border:1px solid #0a8250}#card-body[_ngcontent-%COMP%]{display:flex;align-items:left}#card-recommended[_ngcontent-%COMP%]{border:2px solid #0a8250}#card-other[_ngcontent-%COMP%]{border:1px solid #5e5e5e;margin-left:20px}h5[_ngcontent-%COMP%]{text-align:center;font-weight:700}.text[_ngcontent-%COMP%]{font-size:14px;line-height:initial}.recommended[_ngcontent-%COMP%]{position:relative;top:-30px;left:-15px;font-size:14px}.imagen[_ngcontent-%COMP%]{height:161.892364502px;width:256px;border-radius:6px;margin-left:65px;margin-top:75px}.logo[_ngcontent-%COMP%]{background:url(LOGO_ECI_SEGUROS_1.a771165809f934bd.png);width:377px;height:45px;margin-top:86px;margin-left:89px}.subtitle[_ngcontent-%COMP%]{margin-left:89px;width:540px;margin-top:24px}#insures[_ngcontent-%COMP%]{color:#0a8250;font-size:35px;font-weight:700;margin-top:60px}#information[_ngcontent-%COMP%]{position:absolute;inset:6% 84% 94% 16.26%;font-style:normal;font-weight:400;font-size:32px;line-height:40px;
1display:flex;align-items:center}#margensuperior[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:70px}#condiciones[_ngcontent-%COMP%]{padding-left:200px}#flecha[_ngcontent-%COMP%]{height:10.5022850037px;width:12.0026779175px;margin-left:5px}#flecha2[_ngcontent-%COMP%]{inset:73.75% -25.03% -17.51% 75.02%;margin-right:10px}#margen[_ngcontent-%COMP%]{margin-left:-190px}.botones[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:105px}#listas[_ngcontent-%COMP%]{color:#0a8250;font-size:16px;font-weight:700}.container[_ngcontent-%COMP%]{margin-bottom:50px}a[_ngcontent-%COMP%]{color:#0a8250;text-align:left!important;display:flex;align-items:left;text-decoration-line:none;text-decoration:none;margin-left:-10px;margin-top:-10px}a[_ngcontent-%COMP%]:hover{color:#0a8250;text-align:left!important;display:flex;align-items:left;text-decoration:underline;margin-left:-10px;margin-top:-10px}  app-button .btn.btn-lib.more{background:none;border:none;color:#0a8250;display:flex;align-items:left;text-align:left!important;text-decoration:none;margin-left:-10px;margin-top:-10px;padding:0}  app-button .btn.btn-lib.more:hover{color:#0a8250;text-decoration:underline}#info[_ngcontent-%COMP%]{margin-bottom:2em}.card-subtitle[_ngcontent-%COMP%]{display:flex;margin-top:96px}.card-subtitle-img[_ngcontent-%COMP%]{width:56px;height:56px;margin-right:40px;margin-left:70px;background-size:contain!important}.url1[_ngcontent-%COMP%]{background:url(Group.1ec0208068337d75.png)}.url2[_ngcontent-%COMP%]{background:url(Group2.2ffb25d35eaaa68c.png)}.url3[_ngcontent-%COMP%]{background:url(Group3.cb4824b9ebf86944.png)}.card-subtitle-img[_ngcontent-%COMP%]{width:56px;height:56px;margin-left:-78px;margin-right:21px;background-size:contain!important}.card-subtitle[_ngcontent-%COMP%]{margin-top:96px;margin-left:70px;display:inherit!important}#interior[_ngcontent-%COMP%]{text-align:left;font-style:normal;font-weight:400;color:#000!important}.resumen-informativo[_ngcontent-%COMP%]{text-align:left!important;margin-top:3em;font-size:14px;margin-bottom:5em}@media (max-width: 700px){#interior[_ngcontent-%COMP%]{text-align:left;font-style:normal;font-weight:400;color:#000!important}.resumen-informativo[_ngcontent-%COMP%]{text-align:left!important;margin-top:3em;font-size:14px;margin-bottom:5em}.card-subtitle[_ngcontent-%COMP%]{margin-top:96px;margin-left:70px;display:inherit!important}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:before{content:url(Vector.d012c65307c79a0f.png);color:#0a8250;font-size:17px;width:1em;margin-left:-10px;padding-right:25px}a[_ngcontent-%COMP%]{color:#0a8250;text-align:left!important;display:flex;align-items:left;text-decoration-line:none;text-decoration:none;margin-left:-10px;margin-top:-10px}a[_ngcontent-%COMP%]:hover{color:#0a8250;text-align:left!important;display:flex;align-items:left;text-decoration:underline;margin-left:-10px;margin-top:-10px}ol[_ngcontent-%COMP%]{list-style:none}ol[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:before{content:"";height:6px;width:6px;left:333px;top:801px;display:inline-block;text-align:left;color:#0a8250;background-color:#0a8250;border-radius:50%;padding-right:6px;padding-top:6px;margin-top:9px;margin-right:32px}}a.e-button.e-button-var--nothanks[_ngcontent-%COMP%]{width:auto;align-items:center;display:flex;font-size:var(--e-button-font-size);justify-content:space-between;line-height:1.2em;padding:0 rem-calc(25);border:1px solid #000;color:#000;background-color:#fff;box-sizing:border-box;border-radius:24px}a.e-button.e-button-var--nothanks[_ngcontent-%COMP%]:hover{color:#000}a.e-button.e-button-var--nothanks[disabled][_ngcontent-%COMP%]{pointer-events:none}']})}}return a})()},34270:(ut,tt,r)=>{r.r(tt),r.d(tt,{InsuranceModule:()=>b});var h=r(19767),u=r(13054),i=r(84692),c=r(90220),t=r(88025),s=r(91748),k=r(62264),o=r(57928),F=r(11201);let n=(()=>{class O{constructor(V){this.changeDetectorRef=V,this._documentChecked=!0}ngAfterViewChecked(){this.changeDetectorRef.detectChanges()}documentChecked(){this._documentChecked=!this._documentChecked}static{this.\u0275fac=function(G){return new(G||O)(F.rXU(F.gRc))}}static{this.\u0275cmp=F.VBU({type:O,selectors:[["app-insurance"]],decls:1,vars:0,template:function(G,K){1&G&&F.nrm(0,"router-outlet")},dependencies:[t.n3]})}}return O})();var a=r(82744);const e=[{path:"",component:n,children:[{path:"result",component:c.B},{path:"check-situation",component:s.c,canActivate:[i.k]},{path:"full-insurance",component:k.D,canActivate:[i.k]},{path:"insurance-info",component:o.k,canActivate:[i.k]},{path:"yearly-fee",component:a.W,canActivate:[i.k]}]}];let E=(()=>{class O{static{this.\u0275fac=function(G){return new(G||O)}}static{this.\u0275mod=F.$C({type:O})}static{this.\u0275inj=F.G2t({imports:[t.iI.forChild(e),t.iI]})}}return O})(),b=(()=>{class O{static{this.\u0275fac=function(G){return new(G||O)}}static{this.\u0275mod=F.$C({type:O})}static{this.\u0275inj=F.G2t({imports:[h.G,E,h.G,u.YN,u.X1]})}}return O})()},82744:(ut,tt,r)=>{r.d(tt,{W:()=>B});
1var h=r(95769),u=r.n(h),i=r(13054),c=r(3832),t=r(48678),s=r(11201),k=r(50876),o=r(88025),F=r(25662),n=r(27188),a=r(18162),e=r(55902),E=r(31084),b=r(7637),O=r(54348),x=r(53786);function V(j,P){1&j&&(s.j41(0,"div",6),s.nrm(1,"img",45),s.k0s())}function G(j,P){1&j&&(s.j41(0,"div",6),s.nrm(1,"img",46),s.k0s())}function K(j,P){1&j&&(s.j41(0,"div",44)(1,"span"),s.EFF(2),s.nI1(3,"translate"),s.k0s()()),2&j&&(s.R7$(2),s.SpI(" ",s.bMT(3,1,"ONBOARDING.COMMON.TRY_AGAIN_LATER")," "))}let B=(()=>{class j{constructor(L,H,N,$,Z,pt){this.insuranceService=L,this.router=H,this.formService=N,this.route=$,this.pdfService=Z,this.modalService=pt,this.localForm=new i.hs(!1,[c.q]),this.localForm_information=new i.hs(!1,[c.q]),this.checkbox={name:"Checkbox",label:"checkbox",text:"",checked:!1},this.checkbox_information={name:"Checkbox_information",label:"checkbox",text:"",checked:!1}}ngOnInit(){this.getFee(),this.route.data.subscribe(L=>{this.form=L.form,this.module=L.module,this.tceci="5"===u().find(L.form.controls.additional_info.value,N=>"H-SUBTIPO"===N.property_id)?.value})}hire(){this.localForm.markAllAsTouched(),this.localForm_information.markAllAsTouched(),this.localForm.valid&&this.localForm_information.valid?this.formService.getCRMState().subscribe(L=>{L.additional_data.check_seg="S",L.additional_info.push({property_id:"ADIC-CHECK_ACEP_SEG",value:this.localForm.value}),L.additional_info.push({property_id:"ADIC-CHECK_INFO_SEG",value:this.localForm_information.value}),L.request_data.pre_status="30",this.formService.updateCRM(L).subscribe(()=>{"tceci"===this.module?this.router.navigate(["/wizard/tceci/take-card"],{queryParams:{insurance:!0}}):this.router.navigate(["/wizard/hire/hiring-client-holder"],{queryParams:{contract:!0}})})}):(0,t.K)()}updateStatus(L){this.form.value.request_data.pre_status=L,this.formService.updateCRM(this.form.value).subscribe(()=>{12===L&&("tceci"===this.module?this.router.navigate(["/wizard/tceci/take-card"]):this.router.navigate(["/wizard/hire/hiring-client-holder"],{queryParams:{contract:!1}}))})}back(){this.formService.getCRMState().subscribe(L=>{L.request_data.pre_status="32",this.formService.updateCRM(L).subscribe(()=>{this.router.navigate(["/wizard/insurance/full-insurance"])})})}modalResponse(L,H){this.modalService.closeModal(H)}closeModal(){this.modalService.closeModal("noOwnershipDialog")}openModal(L){this.modalService.openModal(L)}downloadDocument(L){if(L.preventDefault(),this.form){const H=u().find(this.form.value.additional_info,$=>"H-ENDOSO_SEG"===$.property_id),N=u().find(this.form.value.additional_info,$=>"H-TDOC_ENDSEG"===$.property_id);H?this.pdfService.getDocumentInsurance(H.value,N.value):(this.state="ERROR",this.openModal("noOwnershipDialog"))}else this.state="ERROR",this.openModal("noOwnershipDialog")}getFee(){this.insuranceService.getFee().subscribe(L=>this.fee=L)}static{this.\u0275fac=function(H){return new(H||j)(s.rXU(k.Y),s.rXU(o.Ix),s.rXU(F.f),s.rXU(o.nX),s.rXU(n.s),s.rXU(a.B))}}static{this.\u0275cmp=s.VBU({type:j,selectors:[["app-yearly-fee"]],decls:102,vars:100,consts:[[1,"body"],[1,"sr-only"],[1,"d-flex","mx-0","px-0","row","d-flex","justify-content-center","flex-column-reverse","flex-lg-row"],[1,"col-lg-5","pr-0","spacer-bottom-medium"],[1,"row","d-flex","col-auto","align-items-center","justify-content-center","spacer-top-medium"],[1,"col-6","col-md-3"],[1,"row"],[1,"col-12","col-xl-8","pl-0","pl-xl-5","d-flex","align-items-center","container-3meses"],[1,"row","d-flex","justify-content-center","justify-content-xl-start"],[1,"col-12","container-flexmonths"],[1,"h3",3,"innerHTML"],["src","./assets/img/onboarding-card/card/3MESESGRATIS.png",1,"mesesgratis",3,"alt"],[1,"help","d-flex","align-items-start","justify-content-center","justify-content-lg-end"],["src","./assets/img/telefono-ayudaSeguros.png",3,"alt"],[1,"card","container"],[1,"card-body"],[1,"card-title","h1"],["src","./assets/img/onboarding-card/card/ICONO_REGALO.png","alt","",1,"icono-regalo"],[1,"d-flex","align-items-start"],["src","./assets/icons/onboarding-card/ico-menu-check.svg","alt","",1,"check-icon"],[1,"card-menu-text",3,"innerHTML"],["
1id","additional-payment-info",1,"text-promocion"],["href","assets/pdfs/condiciones_promocion_3 meses_gratis_3.pdf","download",""],[1,"container","card-checkbox"],[3,"data","form"],[1,"card-checkbox--text"],[1,"card-checkbox--link",3,"innerHTML"],[1,"card-checkbox-information"],["href","assets\\pdfs\\01_Informacion_Legal_Previa.pdf","download","",1,"linkBlack"],["href","assets\\pdfs\\02_Extracto_Condiciones_Generales.pdf","download","",1,"linkBlack"],["addClass","linkBlack",3,"clicked","variant"],[1,"card-text"],[1,"text-prueba-gratuita",3,"innerHTML"],[1,"row","d-flex","justify-content-center","justify-content-lg-end","m-0","p-0","logo-seguros"],["src","./assets/img/logo-Seguros.png","alt",""],[1,"card-buttons","btn-trial-free"],[1,"d-none","col-lg-auto","pl-3","pl-xl-0","d-lg-block",3,"clicked","disabled","variant"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-left","width","24px","height","24px",1,"float-left"],[1,"card-buttons-free","align-items-center"],[3,"clicked","variant","disabled"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"],[1,"link"],["addClass","link-a",3,"clicked","variant"],["id","noOwnershipDialog",3,"cancel","outside","cancelLabel","headline","dismissible","error"],[1,"pl-1","col-12"],["src","assets/img/onboarding-card/card/feci-tarjeta.png","alt",""],["src","assets/img/onboarding-card/card/old_feci_tarjeta.png","alt",""]],template:function(H,N){1&H&&(s.j41(0,"main")(1,"div",0)(2,"h1",1),s.EFF(3),s.nI1(4,"translate"),s.k0s(),s.j41(5,"div",2)(6,"div",3)(7,"div",4)(8,"div",5),s.DNE(9,V,2,0,"div",6)(10,G,2,0,"div",6),s.k0s(),s.j41(11,"div",7)(12,"div",8)(13,"div",9),s.nrm(14,"h2",10),s.nI1(15,"translate"),s.nrm(16,"img",11),s.nI1(17,"translate"),s.k0s()()()()(),s.j41(18,"div",12),s.nrm(19,"img",13),s.nI1(20,"translate"),s.k0s()(),s.j41(21,"div",14)(22,"div",15)(23,"h2",16),s.EFF(24),s.nI1(25,"translate"),s.nrm(26,"img",17),s.k0s(),s.j41(27,"div",18),s.nrm(28,"img",19)(29,"div",20),s.nI1(30,"translate"),s.k0s(),s.j41(31,"div",18),s.nrm(32,"img",19)(33,"div",20),s.nI1(34,"translate"),s.k0s(),s.j41(35,"div",18),s.nrm(36,"img",19)(37,"div",20),s.nI1(38,"translate"),s.k0s(),s.j41(39,"p",21),s.EFF(40),s.nI1(41,"translate"),s.j41(42,"a",22),s.nI1(43,"translate"),s.EFF(44),s.nI1(45,"translate"),s.k0s()()()(),s.j41(46,"div",23)(47,"app-checkbox",24)(48,"div",25)(49,"div"),s.EFF(50),s.nI1(51,"translate"),s.k0s(),s.j41(52,"div"),s.EFF(53),s.nI1(54,"translate"),s.nrm(55,"span",26),s.nI1(56,"translate"),s.nrm(57,"span",26),s.nI1(58,"translate"),s.k0s()(),s.j41(59,"div",25),s.EFF(60),s.nI1(61,"translate"),s.k0s()(),s.j41(62,"app-checkbox",24)(63,"div",27),s.EFF(64),s.nI1(65,"translate"),s.j41(66,"a",28),s.EFF(67),s.nI1(68,"translate"),s.k0s(),s.EFF(69),s.nI1(70,"translate"),s.j41(71,"a",29),s.EFF(72),s.nI1(73,"translate"),s.k0s(),s.EFF(74),s.nI1(75,"translate"),s.j41(76,"app-button",30),s.bIt("clicked",function(Z){return N.downloadDocument(Z)}),s.EFF(77),s.nI1(78,"translate"),s.k0s()()(),s.j41(79,"div",31),s.nrm(80,"span",32),s.nI1(81,"translate"),s.k0s(),s.j41(82,"div",33),s.nrm(83,"img",34),s.k0s(),s.j41(84,"div",35)(85,"app-button",36),s.bIt("clicked",function(){return N.back()}),s.EFF(86),s.nI1(87,"translate"),s.nrm(88,"app-icon",37),s.k0s(),s.j41(89,"div",38)(90,"app-button",39),s.bIt("clicked",function(){return N.hire()}),s.EFF(91),s.nI1(92,"translate"),s.nrm(93,"app-icon",40),s.k0s(),s.j41(94,"div",41)(95,"app-button",42),s.bIt("clicked",function(){return N.updateStatus(12)}),s.EFF(96),s.nI1(97,"translate"),s.k0s()()()()()()(),s.j41(98,"app-dialog",43),s.nI1(99,"translate"),s.nI1(100,"translate"),s.bIt("cancel",function(Z){return N.modalResponse(Z,"noOwnershipDialog")})("outside",function(){return null}),s.DNE(101,K,4,3,"div",44),s.k0s()),2&H&&(s.R7$(3),s.SpI(" ",s.bMT(4,44,"ONBOARDING.INSURANCE.FULL_INSURANCE_REGALO")," "),s.R7$(6),s.vxM(9,N.tceci?-1:9),s.R7$(),s.vxM(10,N.tceci?10:-1),s.R7$(4),s.Y8G("innerHTML",s.bMT(15,46,"ONBOARDING.INSURANCE.COMPLETE_YOUR_CARD"),s.npT),s.R7$(2),s.FS9("alt",s.bMT(17,48,"ONBOARDING.INSURANCE.FREE_MONTHS_OFFER")),s.R7$(3),s.FS9("alt",s.bMT(20,50,"ONBOARDING.INSURANCE.INSURANCE_HELP_PHONE")),s.R7$(5),s.SpI(" ",s.bMT(25,52,"ONBOARDING.INSURANCE.FULL_INSURANCE_REGALO")," "),s.R7$(5),s.Y8G("innerHTML",s.bMT(30,54,"ONBOARDING.INSURANCE.CHECK_TEXT1"),s.npT),s.R7$(4),s.Y8G("innerHTML",s.bMT(34,56,"ONBOARDING.INSURANCE.CHECK_TEXT3"),s.npT),s.BMQ("aria-describedby","additional-payment-info"),s.R7$(4),s.Y8G("innerHTML",s.bMT(38,58,"ONBOARDING.INSURANCE.CHECK_TEXT2"),s.npT),s.R7$(3),s.SpI(" ",s.bMT(41,60,"ONBOARDING.INSURANCE.INSURANCE_YEARLY_FEE3")," "),s.R7$(2),s.BMQ("aria-label",s.bMT(43,62,"ONBOARDING.INSURANCE.INSURANCE_YEARLY_FEE3_LINK_LABEL")),s.R7$(2),s.JRh(s.bMT(45,64,"ONBOARDING.INSURANCE.INSURANCE_YEARLY_FEE3_LINK")),s.R7$(3),s.Y8G("data",N.checkbox)("form",N.localForm),s.R7$(3),s.SpI(" ",s.bMT(51,66,"ONBOARDING.INSURANCE.INSURANCE_YEARLY_FEE12_C1")," "),s.R7$(3),s.SpI(" ",s.bMT(54,68,"ONBOARDING.INSURANCE.INSURANCE_YEARLY_FEE12_C2")," "),s.R7$(2),s.Y8G("innerHTML",s.bMT(56,70,"ONBOARDING.INSURANCE.INSURANCE_YEARLY_FEE13"),s.npT),s.R7$(2),s.Y8G("innerHTML",s.bMT(58,72,"ONBOARDING.INSURANCE.INSURANCE_YEARLY_FEE14"),s.npT),s.R7$(3),s.SpI(" ",s.bMT(61,74,"ONBOARDING.INSURANCE.INSURANCE_YEARLY_FEE15")," "),s.R7$(2),s.Y8G("data",N.checkbox_information)("form",N.localForm_information),s.R7$(2),s.SpI(" ",s.bMT(65,76,"ONBOARDING.INSURANCE.INSURANCE_YEARLY_FEE5")," "),s.R7$(3),s.SpI("",s.bMT(68,78,"O
1NBOARDING.INSURANCE.INSURANCE_YEARLY_FEE6")," "),s.R7$(2),s.SpI(" ",s.bMT(70,80,"ONBOARDING.INSURANCE.INSURANCE_YEARLY_FEE8")," "),s.R7$(3),s.SpI("",s.bMT(73,82,"ONBOARDING.INSURANCE.INSURANCE_YEARLY_FEE9")," "),s.R7$(2),s.SpI(" ",s.bMT(75,84,"ONBOARDING.INSURANCE.INSURANCE_YEARLY_FEE10")," "),s.R7$(2),s.Y8G("variant","plain"),s.R7$(),s.SpI(" ",s.bMT(78,86,"ONBOARDING.INSURANCE.INSURANCE_YEARLY_FE11"),". "),s.R7$(3),s.Y8G("innerHTML",s.bMT(81,88,"ONBOARDING.INSURANCE.INSURANCE_YEARLY_FEE7"),s.npT),s.R7$(5),s.Y8G("disabled",!1)("variant","secondary"),s.R7$(),s.SpI(" ",s.bMT(87,90,"ONBOARDING.COMMON.BACK")," "),s.R7$(4),s.Y8G("variant","primary")("disabled",!N.localForm.valid&&!N.localForm_information.valid),s.R7$(),s.SpI(" ",s.bMT(92,92,"ONBOARDING.COMMON.CONTINUE_TASK_FREE")," "),s.R7$(4),s.Y8G("variant","plain"),s.R7$(),s.SpI(" ",s.bMT(97,94,"ONBOARDING.INSURANCE.NO_THANKS")," "),s.R7$(2),s.FS9("cancelLabel",s.bMT(99,96,"ONBOARDING.COMMON.CLOSE")),s.FS9("headline",s.bMT(100,98,"ONBOARDING.COMMON.NO_DOCUMENT")),s.Y8G("dismissible",!1)("error",!0),s.R7$(3),s.vxM(101,"ERROR"===N.state?101:-1))},dependencies:[e.Qp,E.P,b.m,O.R,x.D9],styles:['@charset "UTF-8";.body[_ngcontent-%COMP%]{background-color:#f9f9f9;display:grid}.link[_ngcontent-%COMP%]{justify-content:flex-end;padding-right:3%;padding-bottom:20px}.link-a[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse;justify-content:center;color:#5b6063!important;font-size:12px;margin-top:10px}  app-button .link-a{background:none;border:none;padding:0;color:#5b6063!important;font-size:12px;display:flex;flex-direction:row-reverse;justify-content:center;margin-top:10px;width:100%}  app-button .link-a .e-button__text{display:block;width:100%;font-size:inherit;line-height:inherit;text-align:center}ul[_ngcontent-%COMP%]{list-style:none}li[_ngcontent-%COMP%]{display:flex;align-items:center}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:before{content:url(Vector.d012c65307c79a0f.png);color:#0a8250;font-size:25px;width:1em;margin-left:100px}ol[_ngcontent-%COMP%]{list-style:none}ol[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:before{content:"\\2022";width:17px;color:#0a8250;font-size:16px;width:1em;margin-right:1em;display:static!important;align-items:normal!important}.imagen[_ngcontent-%COMP%]{height:161.892364502px;min-width:256px;border-radius:6px;margin-top:75px;margin-right:89px}.logo[_ngcontent-%COMP%]{background:url(LOGO_ECI_SEGUROS_1.a771165809f934bd.png);width:377px;height:45px;margin-top:86px}.subtitle[_ngcontent-%COMP%]{max-width:540px;margin-top:24px}.card[_ngcontent-%COMP%]{border-radius:25px;border:1px solid #0a8250;margin-bottom:30px}.card-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-left:100px;padding-right:100px}.card-body[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:22px}.card-body[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:24px}.card-body[_ngcontent-%COMP%]   .text-promocion[_ngcontent-%COMP%]{font-size:15px}.card-recommended[_ngcontent-%COMP%]{border:2px solid #0a8250}.card-other[_ngcontent-%COMP%]{border:1px solid #5e5e5e;margin-left:20px}.card-title[_ngcontent-%COMP%]{color:#0a8250;margin-top:20px;display:flex;justify-content:center;align-items:center;font-weight:700;font-size:48px}.card-title-text[_ngcontent-%COMP%]{font-size:18px;margin-bottom:30px;text-align:left}.card-subtitle[_ngcontent-%COMP%]{margin-top:75px;font-size:24px;line-height:40px;align-items:center;justify-content:flex-start}.card-subtitle[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-right:3px;font-size:24px;line-height:40px}.card-subtitle-small[_ngcontent-%COMP%]{display:flex}.card-subtitle-small-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.card-subtitle-small-column[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{display:flex;font-size:14px}.card-checkbox[_ngcontent-%COMP%]{display:flex;flex-direction:column;text-align:justify;gap:30px}.card-checkbox--link[_ngcontent-%COMP%]{font-size:14px}.card-checkbox--text[_ngcontent-%COMP%]{display:flex;gap:30px;color:#5e5e5e;font-size:14px}.card-checkbox--text-bold[_ngcontent-%COMP%]{margin-top:15px;
1display:flex;font-size:14px}.card-checkbox-information[_ngcontent-%COMP%]{color:#5e5e5e;font-size:14px}.card-buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:25px}.card-buttons-free[_ngcontent-%COMP%]{position:relative}h5[_ngcontent-%COMP%]{text-align:center;font-weight:700}.mesesgratis[_ngcontent-%COMP%]{width:250px}.icono-regalo[_ngcontent-%COMP%]{width:60px;margin-left:10px;margin-top:-16px}.check-icon[_ngcontent-%COMP%]{padding-right:10px;margin-top:8px}.container-3meses[_ngcontent-%COMP%]{padding-right:14px!important;padding-left:14px!important}a[_ngcontent-%COMP%]{color:#212529!important}.linkBlack[_ngcontent-%COMP%]{color:#5e5e5e!important;text-decoration:underline!important;cursor:pointer}  app-button .linkBlack{background:none;border:none;padding:0;color:#5e5e5e!important;text-decoration:underline!important;cursor:pointer}  app-button .linkBlack .e-button__text{display:inline;font-size:inherit;line-height:inherit;text-align:left}.card-menu-text[_ngcontent-%COMP%]{font-size:22px;margin-bottom:16px}.help[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:70%}.logo-seguros[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:25%}@media (max-width: 1250px){.help[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:60%;margin-right:10%}.card[_ngcontent-%COMP%]{max-width:85%!important}}@media (max-width: 991px){.card-buttons.btn-trial-free[_ngcontent-%COMP%]{display:initial;margin-bottom:25px;padding-right:10px;padding-left:10px}.card-body[_ngcontent-%COMP%]{padding-right:10px;padding-left:10px}.container-flexmonths[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:column}  .mc-checkbox__label{margin-right:2rem}.help[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:40%;margin-right:0}.logo-seguros[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:50%}}@media (max-width: 360px){.card[_ngcontent-%COMP%]{border-radius:16px;border:3px solid #0a8250;margin-top:100px;margin-bottom:126px;margin-left:10px;width:340px!important}.body[_ngcontent-%COMP%]{background-color:#f9f9f9;display:grid;width:360px!important}.justify-content-center[_ngcontent-%COMP%]{justify-content:center!important;width:390px}.card-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-left:20px;padding-right:20px}}']})}}return j})()},29154:(ut,tt,r)=>{r.r(tt),r.d(tt,{Step1Module:()=>it});var h=r(19767),u=r(90220),i=r(88025),c=r(84692),t=r(95769),s=r.n(t),k=r(13054),o=r(11201),F=r(25662),n=r(2080),a=r(3390),e=r(18162),E=r(43982),b=r(53786),O=r(2621),x=r(29394),V=r(55902),G=r(31084),K=r(8088),B=r(7637),j=r(54348),P=r(96647),L=r(6796);function H(C,lt){if(1&C){const v=o.RV6();o.j41(0,"div",13)(1,"div",3)(2,"app-combo",35),o.bIt("onChange",function(M){o.eBV(v);const W=o.XpG();return o.Njj(W.changeSituation(M))}),o.k0s()()()}if(2&C){const v=o.XpG();o.R7$(2),o.Y8G("form",v.formLocal)("data",v.kinship)}}function N(C,lt){if(1&C&&(o.j41(0,"a",20),o.nI1(1,"translate"),o.EFF(2),o.nI1(3,"translate"),o.k0s()),2&C){const v=o.XpG();o.Mz_("href","./assets/pdfs/Info._Bsica_clientes_Evolve_onboarding_",v.formLanguage.value,".pdf",o.B4B),o.BMQ("aria-label",o.bMT(1,4,"ONBOARDING.STEP1.CONTRACT_INFORMATION.PLUS18_2_BLANK")),o.R7$(2),o.JRh(o.bMT(3,6,"ONBOARDING.STEP1.CONTRACT_INFORMATION.PLUS18_2"))}}function $(C,lt){if(1&C&&(o.j41(0,"a",20),o.nI1(1,"translate"),o.EFF(2),o.nI1(3,"translate"),o.k0s()),2&C){const v=o.XpG();o.Mz_("href","./assets/pdfs/08_Documento_aceptacion_de_tratamiento_de_datos_EMPLEADOS_",v.formLanguage.value,".pdf",o.B4B),o.BMQ("aria-label",o.bMT(1,4,"ONBOARDING.STEP1.CONTRACT_INFORMATION.PLUS18_2_BLANK")),o.R7$(2),o.JRh(o.bMT(3,6,"ONBOARDING.STEP1.CONTRACT_INFORMATION.PLUS18_2"))}}let Z=(()=>{class C{constructor(v,S,M,W,ht,Et,_t,It,Nt){this.router=v,this.formsService=S,this.clientService=M,this._storageService=W,this.modalService=ht,this.environmentService=Et,this._translatePipe=_t,this.cookieSrv=It,this.titleService=Nt,this.formLocal=new k.hs(null,[k.k0.required]),this.url=this.environmentService.envVariables.coowner,this.lenguageCombo={id:"selectLanguage",name:"language",type:"text",options:[{label:this._translatePipe.transform("ONBOARDING.STEP1.CONTRACT_INFORMATION.CASTELLANO"),value:"ES"}]},this.nameForm={name:"nick_name",label:"ONBOARDING.STEP1.AD_AUTHORIZED_DATA.NAME",type:"text",value:"",maxlength:50},this.idForm={name:"document_number",label:"ONBOARDING.STEP1.AD_AUTHORIZED_DATA.ID",type:"text",value:"",maxlength:9},this.emailForm={name:"email",label:"ONBOARDING.STEP1.AD_AUTHORIZED_DATA.EMAIL",type:"email",value:"",maxlength:75,mailCompletion:!0},this.phoneForm={name:"phone",label:"ONBOARDING.STEP1.AD_AUTHORIZED_DATA.PHONE",type:"tel",value:"",maxlength:9},this.dataProcessingForm={name:"dataProcessing",label:"dataProcessing",text:"",checked:!1}
1,this.coOwnershipForm={name:"coOwnership",label:"coOwnership",text:"",checked:!1},this.professional=!!this._storageService.getItem("professional"),this.language=this._storageService.getItem("language"),this.formLanguage=new k.hs("ES",[k.k0.required]),this.environmentService.isEnvironmentLoaded$.subscribe(Wt=>{Wt&&this.environmentService.envVariables.showOtherLanguage&&this.lenguageCombo.options.push({label:this._translatePipe.transform("ONBOARDING.STEP1.CONTRACT_INFORMATION.CATALAN"),value:"CT"})})}ngOnInit(){this.titleService.setTitleFromTranslation("PAGE_TITLES.AUTHORIZED_DATA"),this.formsService.initPOSTFormAD().subscribe(v=>{this.form=v,this.professional||this.form.removeControl("relation")}),this.getKinship()}getKinship(){this.clientService.getKinship().subscribe(v=>{s().map(v,M=>(M.value=M.type,M.label=M.name,M));const S={title:"",name:"relation",label:"ONBOARDING.STEP1.AD_AUTHORIZED_DATA.RELATION",type:"text",value:null,required:!0,disabled:!1};S.options=v,this.kinship=S})}changeSituation(v){const S=this.form?.get("relation");S&&S.setValue(v.identifier)}markAllAsTouched(){this.form.get("nick_name").markAsTouched(),this.form.get("document_number").markAsTouched(),this.form.get("email").markAsTouched(),this.form.get("phone").markAsTouched(),this.form.get("check_pers").markAsTouched(),this.form.get("mastar_check").markAsTouched(),this.form.get("language").markAsTouched(),this.professional&&this.formLocal.markAsTouched()}checkValid(){let v=this.form.get("nick_name").valid&&this.form.get("document_number").valid&&this.form.get("email").valid&&this.form.get("phone").valid&&this.form.get("check_pers").valid&&this.form.get("mastar_check").valid;return this.professional&&(v=v&&this.formLocal.valid),v}createRequestService(){let v=this.form.get("language").value,S=1;switch(v){case"ES":default:S=1;break;case"CT":S=2}const M=s().cloneDeep(this.form.value);M.mastar_check=M.mastar_check?"S":"N",M.contract=this._storageService.getItem("id_contract"),M.request_holder=this._storageService.getItem("request"),M.document_number_holder=this._storageService.getItem("document_number"),this._storageService.setItem("language",this.formLanguage.value),this.formsService.createRequest(M).subscribe(W=>{W.error?"-206"==W.error.code?this.router.navigate(["/wizard/step1/request-info"],{queryParams:{authId:!0}}):this.modalService.openModal("eDialog1"):(this._storageService.setItem("token",W.token),this._storageService.setItem("request",W.request),this._storageService.setItem("request_uid",W.request_uid),this._storageService.setItem("nick_name",this.form.get("nick_name").value),this._storageService.setItem("document_number",this.form.get("document_number").value),this._storageService.setItem("language_code",S),this.cookieSrv.check("request_id")&&this.cookieSrv.delete("request_id"),this.cookieSrv.add("request_id",W.request),this.router.navigate(["wizard/step1/ad-requested-card"],{queryParams:{request:W.request}}))},W=>{W.details.description.includes("no permite nuevas contrataciones")?(W.code="-888",this.redirectErrorPage(W)):"-5"==W.code||"-4"==W.code?this.modalService.openModal("eDialog1"):400===W.status&&"-1"===W.code?this.router.navigate(["/wizard/step1/has-authorized"]):this.modalService.openModal("MS_CRM_ERROR_NO_CONTROLADO_500"===W.details.code?"uncontrolledError":"eDialog2")})}continue(){if(this.markAllAsTouched(),this.checkValid()){const v=s().cloneDeep(this.form.value);v.mastar_check=v.mastar_check?"S":"N",v.contract=this._storageService.getItem("id_contract"),v.request_holder=this._storageService.getItem("request"),v.document_number_holder=this._storageService.getItem("document_number");const S=this.form.get("email").value,M=this.getDomainOnly(S);this.clientService.validateEmailDomain(M).subscribe(W=>{W.is_reliable?this.createRequestService():this.form.controls.email.setErrors({INVALID_MAIL:!0})})}else this.focusFirstInvalidElement()}getDomainOnly(v){const S=v.indexOf("@");if(S<0)return"";const M=v.substring(S+1),W=M.lastIndexOf(".");return W>0?M.substring(0,W):M}openCoOwnershipModal(){this.modalService.openModal("coOwnershipModal")}redirectErrorPage(v){this.formsService.getFlowByStatus(v.code).subscribe(S=>{this._storageService.setItem("nick_name",this.form.get("nick_name").value),this._storageService.setItem("document_number",this.form.get("document_number").value),this._storageService.setPersistentItem("document_number",this.form?.get("document_number")?.value??""),this.router.navigate([S])})}focusFirstInvalidElement(){const v=document.querySelector("input.ng-invalid");if(v){v.focus();const S=v.scrollIntoView;"function"==typeof S&&S.call(v,{behavior:"smooth",block:"center"})}}static{this.\u0275fac=function(S){return new(S||C)(o.rXU(i.Ix),o.rXU(F.f),o.rXU(n.X),o.rXU(a.n),o.rXU(e.B),o.rXU(E.v),o.rXU(b.D9),o.rXU(O.T),o.rXU(x.E))}}static{this.\u0275cmp=o.VBU({type:C,selectors:[["app-ad-authorized-data"]],decls:119,vars:119,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"mc-language-combo"],[1,"row","mb-3","d-lg-none"],[1,"col","pl-3","pl-xl-0"],["routerLink","/wizard/step1/ad-welcome","tabindex","0",1,"btn-back","secondary"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","arrow-left","width","24px","height","24px",1,"float-left"],[3,"text"],[1,"language",3,"form","data"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium"],[1,"col","pl-3","pl-xl-0","right-align"],[1,"sr-only"],[1,"row","spacer-bottom-low"],["autocomplete","name",3,"form","data"],["autocomplete","document_number",3,"form","data"],["autocomplete","email",3,"form","data","emailAutocomplete"],["autocomplete","tel",3,"form","data"],[1,"col","pl-3","pl-xl-0","spacer-bottom-lowest"],[3,"data","form"],["target","_blank","tabindex","0",3,"href"],["aria-controls","coOwnershipModal",3,"clicked","variant","ariaHaspopup","styleClass"],[1,"row","spacer-both-high","d-flex","justify-content-center"],["tabindex","0","routerLink","/wizard/step1/ad-welcome",1,"returnBtn","d-none","d-lg-flex"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-left","width","24px","height","24px",1,"float-left"],[1,"continueBtn","col","d-flex","justify-content-center","justify-content-lg-start","p-0",3,"clicked"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"],["id","eDialog1",3,"outside","confirmLabel","dismissible"],[1,"pl-1","col-10"],[1,"modal__title-error","modal__title","red"],["id","eDialog2",3,"outside","confirmLabel","dismissible","error","headline"],["id","uncontrolledError",1,"uncontrolled-modal",3,"outside","confirmLabel","dismissible","error","headline"],[1,"w-100"],["id","coOwnershipModal",3,"headline","dismissible","error"],["target","_blank",3,"href"],[3,"onChange","form","data"]],template:function(S,M){1&S&&(o.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),o.nI1(5,"translate"),o.nrm(6,"app-icon",5),o.k0s()()(),o.nrm(7,"app-tooltip",6),o.nI1(8,"translate"),o.nrm(9,"app-combo",7),o.k0s(),o.j41(10,"div",8)(11,"form")(12,"div",9)(13,"h1",3),o.EFF(14),o.nI1(15,"translate"),o.k0s()(),o.j41(16,"div",9)(17,"div",10)(18,"span"),o.EFF(19),o.nI1(20,"translate"),o.k0s()()(),o.j41(21,"div",9)(22,"div",11)(23,"span"),o.EFF(24),o.nI1(25,"translate"),o.k0s()()(),o.j41(26,"fieldset")(27,"legend",12),o.EFF(28),o.nI1(29,"translate"),o.k0s(),o.j41(30,"div",13)(31,"div",3),o.nrm(32,"app-input",14),o.k0s()(),o.j41(33,"div",13)(34,"div",3),o.nrm(35,"app-input",15),o.k0s()(),o.j41(36,"div",13)(37,"div",3),o.nrm(38,"app-input",16),o.k0s()(),o.j41(39,"div",13)(40,"div",3),o.nrm(41,"app-input",17),o.k0s()(),o.DNE(42,H,3,2,"div",13),o.k0s(),o.j41(43,"fieldset")(44,"legend",12),o.EFF(45),o.nI1(46,"translate"),o.k0s(),o.j41(47,"div",9)(48,"div",18)(49,"app-checkbox",19)(50,"span"),o.EFF(51),o.nI1(52,"translate"),o.DNE(53,N,4,8,"a",20)(54,$,4,8,"a",20),o.EFF(55),o.nI1(56,"translate"),o.k0s()()()(),o.j41(57,"div",9)(58,"div",18)(59,"app-checkbox",19)(60,"span")(61,"app-button",21),o.bIt("clicked",function(){return M.openCoOwnershipModal(),!1}),o.EFF(62),o.nI1(63,"translate"),o.k0s(),o.EFF(64),o.nI1(65,"translate"),o.k0s()()()()(),o.j41(66,"div",22)(67,"a",23),o.nI1(68,"translate"),o.j41(69,"span"),o.EFF(70),o.nI1(71,"translate"),o.nrm(72,"app-icon",24),o.k0s()(),o.j41(73,"app-button",25),o.nI1(74,"translate"),o.bIt("clicked",function(){return M.continue()}),o.j41(75,"span"),o.EFF(76),o.nI1(77,"translate"),o.nrm(78,"app-icon",26),o.k0s()()()()()(),o.j41(79,"app-dialog",27),o.nI1(80,"translate"),o.bIt("outside",function(){return null}),o.j41(81,"div",28)(82,"h1",29),o.EFF(83),o.nI1(84,"translate"),o.k0s(),o.j41(85,"span"),o.EFF(86),o.nI1(87,"translate"),o.k0s()()(),o.j41(88,"app-dialog",3
10),o.nI1(89,"translate"),o.nI1(90,"translate"),o.bIt("outside",function(){return null}),o.j41(91,"div",28)(92,"span"),o.EFF(93),o.nI1(94,"translate"),o.k0s()()(),o.j41(95,"app-dialog",31),o.nI1(96,"translate"),o.nI1(97,"translate"),o.bIt("outside",function(){return null}),o.j41(98,"div",32)(99,"span"),o.EFF(100),o.nI1(101,"translate"),o.k0s()()(),o.j41(102,"app-dialog",33),o.nI1(103,"translate"),o.j41(104,"p"),o.EFF(105),o.nI1(106,"translate"),o.k0s(),o.j41(107,"p"),o.EFF(108),o.nI1(109,"translate"),o.k0s(),o.j41(110,"p"),o.EFF(111),o.nI1(112,"translate"),o.k0s(),o.j41(113,"p"),o.EFF(114),o.nI1(115,"translate"),o.j41(116,"a",34),o.nI1(117,"translate"),o.EFF(118,"https://www.financieraelcorteingles.es/es/corporativas/aviso-legal/tratamiento-de-datos-personales"),o.k0s()()()),2&S&&(o.R7$(4),o.BMQ("aria-label",o.bMT(5,59,"ONBOARDING.COMMON.BACK_LABEL")),o.R7$(3),o.FS9("text",o.bMT(8,61,"ONBOARDING.STEP1.CONTRACT_INFORMATION.LANGUAGE_TOOLTIP")),o.R7$(2),o.Y8G("form",M.formLanguage)("data",M.lenguageCombo),o.R7$(5),o.SpI(" ",o.bMT(15,63,"ONBOARDING.STEP1.AD_AUTHORIZED_DATA.HEAD")," "),o.R7$(5),o.SpI(" ",o.bMT(20,65,"ONBOARDING.STEP1.AD_AUTHORIZED_DATA.SUB")," "),o.R7$(5),o.SpI(" ",o.bMT(25,67,"ONBOARDING.ADDRESS.REQUIRED_FIELDS")," "),o.R7$(4),o.SpI(" ",o.bMT(29,69,"ONBOARDING.STEP1.AD_AUTHORIZED_DATA.HEAD")," "),o.R7$(4),o.Y8G("form",null==M.form?null:M.form.get("nick_name"))("data",M.nameForm),o.R7$(3),o.Y8G("form",null==M.form?null:M.form.get("document_number"))("data",M.idForm),o.R7$(3),o.Y8G("form",null==M.form?null:M.form.get("email"))("data",M.emailForm)("emailAutocomplete",!0),o.R7$(3),o.Y8G("form",null==M.form?null:M.form.get("phone"))("data",M.phoneForm),o.R7$(),o.vxM(42,M.professional?42:-1),o.R7$(3),o.SpI(" ",o.bMT(46,71,"ONBOARDING.STEP1.AD_AUTHORIZED_DATA.ACCEPT_TERMS")," "),o.R7$(4),o.Y8G("data",M.dataProcessingForm)("form",null==M.form?null:M.form.get("check_pers")),o.R7$(2),o.SpI(" ",o.bMT(52,73,"ONBOARDING.STEP1.AD_AUTHORIZED_DATA.DATA_PROCESSING_1")," "),o.R7$(2),o.vxM(53,M.professional?-1:53),o.R7$(),o.vxM(54,M.professional?54:-1),o.R7$(),o.SpI(" ",o.bMT(56,75,"ONBOARDING.STEP1.AD_AUTHORIZED_DATA.DATA_PROCESSING_3"),"*"),o.R7$(4),o.Y8G("data",M.coOwnershipForm)("form",null==M.form?null:M.form.get("mastar_check")),o.R7$(2),o.Y8G("variant","plain")("ariaHaspopup","dialog")("styleClass","text-decoration: underline; color: #0a8250"),o.R7$(),o.JRh(o.bMT(63,77,"ONBOARDING.STEP1.AD_AUTHORIZED_DATA.CO_OWNERSHIP_1")),o.R7$(2),o.SpI(" ",o.bMT(65,79,"ONBOARDING.STEP1.AD_AUTHORIZED_DATA.CO_OWNERSHIP_2"),"*"),o.R7$(3),o.BMQ("aria-label",o.bMT(68,81,"ONBOARDING.COMMON.BACK_LABEL")),o.R7$(3),o.SpI(" ",o.bMT(71,83,"ONBOARDING.COMMON.BACK")," "),o.R7$(3),o.BMQ("aria-label",o.bMT(74,85,"ONBOARDING.COMMON.CONTINUE_LABEL")),o.R7$(3),o.SpI(" ",o.bMT(77,87,"ONBOARDING.COMMON.CONTINUE")," "),o.R7$(3),o.FS9("confirmLabel",o.bMT(80,89,"ONBOARDING.COMMON.CLOSE")),o.Y8G("dismissible",!0),o.R7$(4),o.SpI(" ",o.bMT(84,91,"ONBOARDING.STEP1.AD_AUTHORIZED_DATA.MODAL_NOT_REQUESTED_CARD")," "),o.R7$(3),o.JRh(o.bMT(87,93,"ONBOARDING.STEP1.AD_AUTHORIZED_DATA.MODAL_NOT_REQUESTED_CARD2")),o.R7$(2),o.FS9("confirmLabel",o.bMT(89,95,"ONBOARDING.COMMON.ACEPT")),o.FS9("headline",o.bMT(90,97,"ONBOARDING.STEP1.AD_AUTHORIZED_DATA.MODAL_NOT_REQUESTED_PERSON")),o.Y8G("dismissible",!0)("error",!0),o.R7$(5),o.JRh(o.bMT(94,99,"ONBOARDING.STEP1.AD_AUTHORIZED_DATA.MODAL_NOT_REQUESTED_PERSON2")),o.R7$(2),o.FS9("confirmLabel",o.bMT(96,101,"ONBOARDING.COMMON.ACEPT")),o.FS9("headline",o.bMT(97,103,"ONBOARDING.ERROR_PAGE.ERROR_PAGE")),o.Y8G("dismissible",!0)("error",!0),o.R7$(5),o.JRh(o.bMT(101,105,"ONBOARDING.COMMON.ERROR")),o.R7$(2),o.FS9("headline",o.bMT(103,107,"ONBOARDING.STEP1.AD_AUTHORIZED_DATA.COOWNERSHIP_MODAL.HEAD")),o.Y8G("dismissible",!0)("error",!0),o.R7$(3),o.SpI(" ",o.bMT(106,109,"ONBOARDING.STEP1.AD_AUTHORIZED_DATA.COOWNERSHIP_MODAL.BODY.1")," "),o.R7$(3),o.SpI(" ",o.bMT(109,111,"ONBOARDING.STEP1.AD_AUTHORIZED_DATA.COOWNERSHIP_MODAL.BODY.2")," "),o.R7$(3),o.SpI(" ",o.bMT(112,113,"ONBOARDING.STEP1.AD_AUTHORIZED_DATA.COOWNERSHIP_MODAL.BODY.3")," "),o.R7$(3),o.SpI(" ",o.bMT(115,115,"ONBOARDING.STEP1.AD_AUTHORIZED_DATA.COOWNERSHIP_MODAL.BODY.4")," "),o.R7$(2),o.FS9("href",M.url,o.B4B),o.BMQ("aria-label",o.bMT(117,117,"ONBOARDING.STEP1.AD_AUTHORIZED_DATA.COOWNERSHIP_MODAL.LINK_BLANK")))},dependencies:[i.Wk,V.Qp,G.P,K.u,B.m,j.R,P.S,L.b,b.D9],styles:[".red[_ngcontent-%COMP%]{color:#d95959}.right-align[_ngcontent-%COMP%]{text-align:right;padding-bottom:1rem}  .language-tooltip .mdc-tooltip__surface{white-space:normal;max-width:90vw;font-size:1rem;line-height:1.4;padding:12px 16px;text-align:left;word-break:break-word}.mc-language-combo[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;
1gap:10px;position:fixed;top:30px;right:30px;z-index:1}@media (max-width: 991px){.mc-language-combo[_ngcontent-%COMP%]{position:relative;margin-bottom:30px;margin-left:auto}}  .uncontrolled-modal .modal__panel{padding:2rem 2rem 2rem 3rem!important}  .uncontrolled-modal .modal__title{margin-top:1rem;padding-right:4rem!important}.mc-language-combo__icon[_ngcontent-%COMP%]{border:none;background:none}.secondary[_ngcontent-%COMP%]{position:fixed;top:13px;left:15px;background-color:transparent;background-repeat:no-repeat;border:none;cursor:pointer;overflow:hidden;outline:none;z-index:100001}.secondary[_ngcontent-%COMP%]   app-icon[_ngcontent-%COMP%]{color:#000}.continueBtn[_ngcontent-%COMP%]{align-items:center;background-color:#0a8250;border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--e-button-font-size);justify-content:space-between;line-height:1.2em;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;width:100%;text-decoration:none!important}.continueBtn[_ngcontent-%COMP%]:hover{background-color:#2b5033}.continueBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;flex-grow:1;text-align:center;line-height:25px;color:#fff!important;font-size:1rem}.returnBtn[_ngcontent-%COMP%]{background-color:#fff;box-shadow:inset 0 0 0 .0625rem #0a8250;max-width:var(--e-button-max-width);border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;text-decoration:none!important;justify-content:center;align-items:center;display:flex;margin-right:1rem}.returnBtn[_ngcontent-%COMP%]:hover{background-color:#0a8250}.returnBtn[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%]{color:#fff}.returnBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#0a8250;font-size:var(--e-button-font-size)}"]})}}return C})();var pt=r(34699),rt=r(71230),at=r(35824),U=r(92853),X=r(30768),Y=r(35959),I=r(87514);function D(C,lt){1&C&&(o.j41(0,"span",11),o.EFF(1),o.nI1(2,"translate"),o.k0s()),2&C&&(o.R7$(),o.SpI(" ",o.bMT(2,1,"ONBOARDING.STEP1.AD_OTP_VERIFICATION.ERROR"),""))}function w(C,lt){1&C&&(o.j41(0,"span"),o.EFF(1),o.nI1(2,"translate"),o.k0s()),2&C&&(o.R7$(),o.SpI(" ",o.bMT(2,1,"ONBOARDING.STEP1.AD_OTP_VERIFICATION.TIME_EXPIRED")," "))}let J=(()=>{class C{constructor(v,S,M,W,ht){this.otpService=v,this.router=S,this._storageService=M,this._recaptchaV3Service=W,this.titleService=ht,this.inputData={name:"verificationCode",label:"ONBOARDING.COMMON.VERIFICATION_CODE",type:"number",value:"",required:!0,disabled:!1,maxlength:6},this.count=10,this.codeSMS="123456",this.repeats=0,this.MAX_REPEATS=3,this.resendButtonFocused=!1,this.error=!1,this.form=new k.hs("",[k.k0.required,k.k0.pattern(/[0-9]{6}/)])}refresh(){this._storageService.getItem("document_number")&&this._storageService.getItem("request")&&this.repeats<this.MAX_REPEATS?(++this.repeats,this.count=60,this._recaptchaV3Service.execute("onboardingRefreshCaptcha").subscribe(v=>{this.otpService.sendSMS(void 0,v,"onboardingRefreshCaptcha").subscribe(S=>{this.identifier=S.identifier},S=>console.error(S),()=>{this.counter$=(0,pt.O)(0,1e3).pipe((0,at.s)(this.count),(0,rt.map)(S=>this.count-1-S),(0,U.j)(()=>this.refresh()))})})):"authorized"==this._storageService.getItem("access")?this.router.navigate(["/dashboard/onboarding-authorized"]):"authorized-request"==this._storageService.getItem("access")?this.router.navigate(["/dashboard/onboarding-authorized-request"]):this.router.navigate(["/dashboard/onboarding"])}ngOnInit(){this.titleService.setTitleFromTranslation("PAGE_TITLES.VERIFICATION_CODE"),this.refresh()}markAllAsTouched(){this.form.markAsTouched(),this.form.valid?this.otpService.validateSMS(this.identifier,this.form.value).subscribe(v=>{v.tokenAuth?this.router.navigate(["/wizard/step1/ad-authorized-data"]):this.error=!0}):this.focusFirstInvalidElement()}focusFirstInvalidElement(){const v=document.querySelector("input.ng-invalid");if(v){v.focus();const S=v.scrollIntoView;"function"==typeof S&&S.call(v,{behavior:"smooth",block:"center"})}}static{this.\u0275fac=function(S){return new(S||C)(o.rXU(X.x),o.rXU(i.Ix),o.rXU(a.n),o.rXU(Y.ob),o.rXU(x.E))}}static{this.\u0275cmp=o.VBU({type:C,selectors:[["app-ad-otp-verification"]],decls:48,vars:41,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row","mb-3","d-lg-none"],[1,"col","pl-3","pl-xl-0"],["tabindex","0","routerLink","/wizard/step1/ad-welcome",1,"btn-back","secondary"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","arrow-left","width","24px","height","24px",1,"float-left"],[1,"row"],[1,"col","pl-3","pl-xl-0","spacer-bottom-low"],[1,"col","pl-3","pl-xl-0","spacer-bottom-low","right-align"],[1,"row","spacer-bottom-low"],[3,"form","autocomplete","data"],["id","error"],["aria-atomic","true","tabindex","0",1,"message",3,"focusin","focusout"],["aria-live","assertive","aria-atomic","true",1,"sr-only"],[1,"row","spacer-both-high","d-flex","justify-content-center"],["tabindex","0","routerLink","/wizard/step1/ad-welcome",1,"returnBtn","d-none","d-lg-flex"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-left","width","24px","height","24px",1,"float-left"],[1,"continueBtn","col","d-flex","justify-content-center","justify-content-lg-start","p-0",3,"clicked"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"]],template:function(S,M){1&S&&(o.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),o.nI1(5,"translate"),o.nrm(6,"app-icon",5),o.k0s()()(),o.j41(7,"div",6)(8,"h1",3),o.EFF(9),o.nI1(10,"translate"),o.k0s()(),o.j41(11,"div",6)(12,"div",7)(13,"span"),o.EFF(14),o.nI1(15,"translate"),o.k0s()()(),o.j41(16,"div",6)(17,"div",8)(18,"span"),o.EFF(19),o.nI1(20,"translate"),o.k0s()()(),o.j41(21,"form")(22,"div",9)(23,"div",3),o.nrm(24,"app-input",10),o.DNE(25,D,3,3,"span",11),o.nrm(26,"br"),o.j41(27,"span",12),o.bIt("focusin",function(){return M.resendButtonFocused=!0})("focusout",function(){return M.resendButtonFocused=!1}),o.EFF(28),o.nI1(29,"translate"),o.nI1(30,"async"),o.nI1(31,"translate"),o.k0s(),o.j41(32,"div",13),o.DNE(33,w,3,3,"span"),o.nI1(34,"async"),o.k0s()()(),o.j41(35,"div",14)(36,"a",15),o.nI1(37,"translate"),o.j41(38,"span"),o.EFF(39),o.nI1(40,"translate"),o.nrm(41,"app-icon",16),o.k0s()(),o.j41(42,"app-button",17),o.nI1(43,"translate"),o.bIt("clicked",function(){return M.markAllAsTouched()}),o.j41(44,"span"),o.EFF(45),o.nI1(46,"translate"),o.nrm(47,"app-icon",18),o.k0s()()()()()()),2&S&&(o.R7$(4),o.BMQ("aria-label",o.bMT(5,17,"ONBOARDING.COMMON.BACK_LABEL")),o.R7$(5),o.SpI(" ",o.bMT(10,19,"ONBOARDING.STEP1.AD_OTP_VERIFICATION.HEAD")," "),o.R7$(5),o.SpI(" ",o.bMT(15,21,"ONBOARDING.STEP1.AD_OTP_VERIFICATION.SUB")," "),o.R7$(5),o.SpI(" ",o.bMT(20,23,"ONBOARDING.ADDRESS.REQUIRED_FIELDS")," "),o.R7$(5),o.Y8G("form",M.form)("autocomplete","one-time-code")("data",M.inputData),o.R7$(),o.vxM(25,M.error?25:-1),o.R7$(2),o.BMQ("aria-l
1ive",M.resendButtonFocused?"polite":"off"),o.R7$(),o.E5c(" ",o.bMT(29,25,"ONBOARDING.STEP1.AD_OTP_VERIFICATION.COUNT_1")," ",o.bMT(30,27,M.counter$)," ",o.bMT(31,29,"ONBOARDING.STEP1.AD_OTP_VERIFICATION.COUNT_2")," "),o.R7$(5),o.vxM(33,1===o.bMT(34,31,M.counter$)?33:-1),o.R7$(3),o.BMQ("aria-label",o.bMT(37,33,"ONBOARDING.COMMON.BACK_LABEL")),o.R7$(3),o.SpI(" ",o.bMT(40,35,"ONBOARDING.COMMON.BACK")," "),o.R7$(3),o.BMQ("aria-label",o.bMT(43,37,"ONBOARDING.COMMON.CONTINUE_LABEL")),o.R7$(3),o.SpI(" ",o.bMT(46,39,"ONBOARDING.COMMON.CONTINUE")," "))},dependencies:[i.Wk,V.Qp,j.R,P.S,I.Jj,b.D9],styles:[".message[_ngcontent-%COMP%]{font-size:14px}#error[_ngcontent-%COMP%]{font-size:14px;color:#cf3030}.secondary[_ngcontent-%COMP%]{position:fixed;top:13px;left:15px;background-color:transparent;background-repeat:no-repeat;border:none;cursor:pointer;overflow:hidden;outline:none;z-index:100001}.secondary[_ngcontent-%COMP%]   app-icon[_ngcontent-%COMP%]{color:#000}.continueBtn[_ngcontent-%COMP%]{align-items:center;background-color:#0a8250;border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--e-button-font-size);justify-content:space-between;line-height:1.2em;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;width:100%;text-decoration:none!important}.continueBtn[_ngcontent-%COMP%]:hover{background-color:#2b5033}.continueBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;flex-grow:1;text-align:center;line-height:25px;color:#fff!important;font-size:1rem}.returnBtn[_ngcontent-%COMP%]{background-color:#fff;box-shadow:inset 0 0 0 .0625rem #0a8250;max-width:var(--e-button-max-width);border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;text-decoration:none!important;justify-content:center;align-items:center;display:flex;margin-right:1rem}.returnBtn[_ngcontent-%COMP%]:hover{background-color:#0a8250}.returnBtn[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%]{color:#fff}.returnBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#0a8250;font-size:var(--e-button-font-size)}.right-align[_ngcontent-%COMP%]{text-align:right}"]})}}return C})();function Q(C,lt){1&C&&(o.j41(0,"h1",3),o.EFF(1),o.nI1(2,"translate"),o.k0s()),2&C&&(o.R7$(),o.SpI(" ",o.bMT(2,1,"ONBOARDING.ADPREVIOUSREQUESTDENIED.ADPREVIOUSREQUESTDENIED")," "))}function dt(C,lt){1&C&&(o.j41(0,"h1",3),o.EFF(1),o.nI1(2,"translate"),o.k0s()),2&C&&(o.R7$(),o.SpI(" ",o.bMT(2,1,"ONBOARDING.ADPREVIOUSREQUESTDENIED.ADPREVIOUSREQUESTDENIED")," "))}let Ot=(()=>{class C{constructor(v,S,M,W){this._storageService=v,this._router=S,this.environmentService=M,this.cookieSrv=W,this.professional=!!this._storageService.getItem("professional")}finalize(){this._storageService.clear(),this.cookieSrv.check("request_id")&&this.cookieSrv.delete("request_id"),this.professional?window.location.href=this.environmentService.envVariables.nexo:"authorized"==this._storageService.getItem("access")?this._router.navigate(["/dashboard/onboarding-authorized"]):"authorized-request"==this._storageService.getItem("access")?this._router.navigate(["/dashboard/onboarding-authorized-request"]):this._router.navigate(["/dashboard/onboarding"])}static{this.\u0275fac=function(S){return new(S||C)(o.rXU(a.n),o.rXU(i.Ix),o.rXU(E.v),o.rXU(O.T))}}static{this.\u0275cmp=o.VBU({type:C,selectors:[["app-ad-previous-request-denied"]],decls:21,vars:13,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],[1,"col","pl-3","pl-xl-0"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium"],[1,"row","spacer-bottom-low"],[1,"col-auto","d-flex","align-items-center"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","info","width","48px","height","48px"],[1,"col"],[1,"mb-0"],[1,"row","spacer-top-high"],[1,"col-9","fixButton","pl-3","pl-md-0","d-flex","justify-content-center","justify-content-lg-start",3,"clicked","disabled","variant"]],template:function(S,M){1&S&&(o.j41(0,"div",0)(1,"div",1)(2,"div",2),o.DNE(3,Q,3,3,"h1",3)(4,dt,3,3,"h1",3),o.k0s(),o.j41(5,"div",2)(6,"div",4)(7,"span"),o.EFF(8),o.nI1(9,"translate"),o.k0s()()(),o.j41(10,"div",5)(11,"div",6),o.nrm(12,"app-icon",7),o.k0s(),o.j41(13,"div",8)(14,"p",9),o.EFF(1
15),o.nI1(16,"translate"),o.k0s()()(),o.j41(17,"div",10)(18,"app-button",11),o.bIt("clicked",function(){return M.finalize()}),o.EFF(19),o.nI1(20,"translate"),o.k0s()()()()),2&S&&(o.R7$(3),o.vxM(3,M.professional?-1:3),o.R7$(),o.vxM(4,M.professional?4:-1),o.R7$(4),o.SpI(" ",o.bMT(9,7,"ONBOARDING.ADPREVIOUSREQUESTDENIED.MORE_INFORMATION")," "),o.R7$(7),o.SpI(" ",o.bMT(16,9,"ONBOARDING.ADPREVIOUSREQUESTDENIED.INFORMATION")," "),o.R7$(3),o.Y8G("disabled",!1)("variant","primary"),o.R7$(),o.SpI(" ",o.bMT(20,11,"ONBOARDING.COMMON.FINALIZE")," "))},dependencies:[V.Qp,j.R,b.D9]})}}return C})(),bt=(()=>{class C{constructor(v,S,M,W,ht){this._storageService=v,this.route=S,this.router=M,this.cookieSrv=W,this.titleService=ht,this.professional=!!this._storageService.getItem("professional"),this.backRoute="/dashboard/onboarding"}ngOnInit(){this.titleService.setTitleFromTranslation("PAGE_TITLES.REQUEST_INITIATED"),this.route.queryParams.subscribe(v=>{v.request&&(this.requestCard=v.request)}),this.backRoute="authorized"==this._storageService.getItem("access")||"authorized-request"==this._storageService.getItem("access")?"/es/solicitar-tarjeta/evolve-onboarding/dashboard/onboarding-authorized-request":"/es/solicitar-tarjeta/evolve-onboarding/dashboard/onboarding"}goToWebfeci(){if(this.professional)this._storageService.clear(),this.cookieSrv.check("request_id")&&this.cookieSrv.delete("request_id"),window.location.href="https://nexo.elcorteingles.es";else{let v=this._storageService.getItem("access");this._storageService.clear(),this.cookieSrv.check("request_id")&&this.cookieSrv.delete("request_id"),this.router.navigate("authorized"==v?["/dashboard/onboarding-authorized"]:"authorized-request"==v?["/dashboard/onboarding-authorized-request"]:["/dashboard/onboarding"])}}static{this.\u0275fac=function(S){return new(S||C)(o.rXU(a.n),o.rXU(i.nX),o.rXU(i.Ix),o.rXU(O.T),o.rXU(x.E))}}static{this.\u0275cmp=o.VBU({type:C,selectors:[["app-ad-requested-card"]],decls:28,vars:17,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"spacer-bottom-low","d-flex","justify-content-center"],["src","./assets/img/onboarding-card/card/feci-tarjeta.png","alt","",1,"p-2"],[1,"row"],[1,"col","pl-3","pl-xl-0"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium"],[3,"href"],[1,"spacer-bottom-lowest"],[1,"row","spacer-top-high","spacer-bottom-high"],[1,"col","d-flex","justify-content-center","justify-content-lg-start",3,"clicked"]],template:function(S,M){1&S&&(o.j41(0,"div",0)(1,"div",1)(2,"div",2),o.nrm(3,"img",3),o.k0s(),o.j41(4,"div",4)(5,"h1",5),o.EFF(6),o.nI1(7,"translate"),o.k0s()(),o.j41(8,"div",4)(9,"div",6)(10,"span"),o.EFF(11),o.nI1(12,"translate"),o.j41(13,"a",7),o.EFF(14),o.nI1(15,"translate"),o.k0s()()()(),o.j41(16,"div",4)(17,"div",5)(18,"span",8),o.EFF(19),o.nI1(20,"translate"),o.k0s(),o.j41(21,"span"),o.EFF(22),o.k0s()()(),o.j41(23,"div",9)(24,"app-button",10),o.bIt("clicked",function(){return M.goToWebfeci()}),o.j41(25,"span"),o.EFF(26),o.nI1(27,"translate"),o.k0s()()()()()),2&S&&(o.R7$(6),o.SpI(" ",o.bMT(7,7,"ONBOARDING.ADREQUESTEDCARD.ADREQUESTEDCARD")," "),o.R7$(5),o.SpI(" ",o.bMT(12,9,"ONBOARDING.ADREQUESTEDCARD.MORE_INFORMATION"),""),o.R7$(2),o.Y8G("href",M.backRoute,o.B4B),o.R7$(),o.JRh(o.bMT(15,11,"ONBOARDING.STEP_1.AD_REQUESTED_CARD.REQUEST_CARD")),o.R7$(5),o.SpI(" ",o.bMT(20,13,"ONBOARDING.ADREQUESTEDCARD.REQUESTED_NUMBER")," "),o.R7$(3),o.JRh(M.requestCard),o.R7$(4),o.SpI(" ",o.bMT(27,15,"ONBOARDING.COMMON.FINALIZE")," "))},dependencies:[V.Qp,b.D9],styles:["[_nghost-%COMP%]   img[_ngcontent-%COMP%]{width:402px}a[_ngcontent-%COMP%]:not([href]):not([class]){color:#0a8250;text-decoration:underline;cursor:pointer}.p-2[_ngcontent-%COMP%]{filter:drop-shadow(0px 2px 4px rgba(0,0,0,.6))}  .radioWidth{width:180px}"]})}}return C})();var Tt=r(12992),Rt=r(69450);let Dt=(()=>{class C{constructor(v,S,M,W,ht,Et,_t,It,Nt,Wt){this.route=v,this.formsService=S,this.router=M,this.professionalService=W,this._storageService=ht,this.tokenService=Et,this.environmentService=_t,this.cookieSrv=It,this._recaptchaV3Service=Nt,this.titleService=Wt,this.professional=!1,this.nexoURL=this.environmentService.envVariables.nexo}ngOnInit(){this.titleService.setTitleFromTranslation("PAGE_TITLES.AD_WELCOME"),this.route.queryParams.pipe((0,at.s)(1)).subscribe(v=>{v.id&&v.contract?this.getDataContract(v):v.code&&v.professional?this.getDataProfessional(v):this.hasData()||this.getBack()})}getBack(){return"authorized"==this._storageService.getItem("access")?"/dashboard/onboarding-authorized":"authorized-request"==this._storageService.getItem("access")?"/dashboard/onboarding-authorized-request":"/dashboard/onboarding/additional-card"}hasData(){const v=this._storageService.getItem("document_number"),S=this._storageService.getItem("id_contract"),M=this._storageService.getItem("request");
1if(this._storageService.getItem("professional")){const W=this.tokenService.decodeToken().given_name.toLowerCase();this.user=W.charAt(0).toUpperCase()+W.slice(1)}return v&&S&&M}getDataProfessional(v){this.tokenService.generateTokenProfessional(v.code,this.environmentService.envVariables.adWelcomeProfesional).pipe((0,at.s)(1)).subscribe(M=>{this.professional=!!v.professional,this._storageService.setItem("professional",this.professional),sessionStorage.setItem("token_professional","Bearer "+M.id_token);const W=this.tokenService.decodeToken(),ht=this.tokenService.decodeToken().given_name.toLowerCase();this.user=ht.charAt(0).toUpperCase()+ht.slice(1),this.professionalService.getProfessionalData(W.sub).pipe((0,at.s)(1)).subscribe(Et=>{const _t=Et.id_document.number;this._storageService.setItem("document_number",_t),this._storageService.setPersistentItem("document_number",_t??""),this.formsService.getRequest(_t,!1).pipe((0,at.s)(1)).subscribe(It=>{this._storageService.setItem("request",It.request_data.request),this.cookieSrv.check("request_id")&&this.cookieSrv.delete("request_id"),this.cookieSrv.add("request_id",It.request_data.request),It.request_data.contract&&this._storageService.setItem("id_contract",It.request_data.contract)})})})}getDataContract(v){this._storageService.setItem("document_number",v.id.toUpperCase()),this._storageService.setPersistentItem("document_number",v?.id?.toUpperCase()??""),this._storageService.setItem("id_contract",v.contract);const S="GetDataByContract";this._recaptchaV3Service.execute(S).pipe((0,at.s)(1)).subscribe(M=>{this.formsService.getDataByContract(M,S).pipe((0,at.s)(1)).subscribe({next:W=>{this._storageService.setItem("language",W?.personal_data?.language_code),this._storageService.setItem("request",W.request_data.request),this.cookieSrv.check("request_id")&&this.cookieSrv.delete("request_id"),this.cookieSrv.add("request_id",W.request_data.request),this._storageService.setItem("id_contract",W.request_data.contract),this.user=W.personal_data?.name??"","0"!==W.request_data.request_type||v.superuser?(this._storageService.setItem("request",W.request_data.request),this.cookieSrv.check("request_id")&&this.cookieSrv.delete("request_id"),this.cookieSrv.add("request_id",W.request_data.request),this._storageService.setItem("id_contract",W.request_data.contract),this.user=W.personal_data?.name??""):this.router.navigate(["/dashboard/onboarding/error"],{queryParams:{type:"additional-card-credentials-tceci"}})},error:W=>{"authorized"==this._storageService.getItem("access")?this.router.navigate(["/dashboard/onboarding-authorized"],{queryParams:{notFound:"additional"}}):"authorized-request"==this._storageService.getItem("access")?this.router.navigate(["/dashboard/onboarding-authorized-request"],{queryParams:{notFound:"additional"}}):this.router.navigate(["/dashboard/onboarding/error"],{queryParams:{type:"additional-card-credentials",errorValidation:!0}})}})})}static{this.\u0275fac=function(S){return new(S||C)(o.rXU(i.nX),o.rXU(F.f),o.rXU(i.Ix),o.rXU(Tt.d),o.rXU(a.n),o.rXU(Rt.B),o.rXU(E.v),o.rXU(O.T),o.rXU(Y.ob),o.rXU(x.E))}}static{this.\u0275cmp=o.VBU({type:C,selectors:[["app-ad-welcome"]],decls:53,vars:40,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row","mb-3","d-lg-none"],[1,"col","pl-3","pl-xl-0"],["tabindex","0",1,"btn-back","secondary",3,"click","keypress.enter"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","arrow-left","width","24px","height","24px",1,"float-left"],[1,"row"],[1,"sr-only"],[1,"col","pl-3","pl-xl-0","h1"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium"],[1,"row","spacer-bottom-low"],[1,"col-auto","d-flex","align-items-center"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","phone","width","48px","height","48px"],[1,"col"],[1,"h5"],[1,"mb-0"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","id-card","width","48px","height","48px"],[1,"row","spacer-both-high","d-flex","justify-content-center"],[1,"returnBtn","d-none","d-lg-flex",3,"routerLink"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-left","width","24px","height","24px",1,"float-left"],["tabindex","0","routerLink","/wizard/step1/ad-otp-verification",1,"continueBtn","col","d-flex","justify-content-center","justify-content-lg-start"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"]],template:function(S,M){1&S&&(o.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),o.nI1(5,"translate"),o.bIt("click",function(){return M.getBack()})("keypress.enter",function(){return M.getBack()}),o.nrm(6,"app-icon",5),o.k0s()()(),o.j41(7,"div",6)(8,"h1",7),o.EFF(9),o.nI1(10,"translate"),o.k0s(),o.j41(11,"span",8),o.EFF(12),o.nI1(13,"translate"),o.nI1(14,"titlecase"),o.k0s()(),o.j41(15,"div",6)(16,"div",9)(17,"span"),o.EFF(18),o.nI1(19,"translate"),o.k0s()()(),o.j41(20,"div",10)(21,"div",11),o.nrm(22,"app-icon",12),o.k0s(),o.j41(23,"div",13)(24,"h2",14),o.EFF(25),o.nI1(26,"translate"),o.k0s(),o.j41(27,"p",15),o.EFF(28),o.nI1(29,"translate"),o.k0s()()(),o.j41(30,"div",10)(31,"div",11),o.nrm(32,"app-icon",16),o.k0s(),o.j41(33,"div",13)(34,"h2",14),o.EFF(35),o.nI1(36,"translate"),o.k0s(),o.j41(37,"p",15),o.EFF(38),o.nI1(39,"translate"),o.k0s()()(),o.j41(40,"div",17)(41,"a",18),o.nI1(42,"translate"),o.j41(43,"span"),o.EFF(44),o.nI1(45,"translate"),o.nrm(46,"app-icon",19),o.k0s()(),o.j41(47,"a",20),o.nI1(48,"translate"),o.j41(49,"span"),o.EFF(50),o.nI1(51,"translate"),o.nrm(52,"app-icon",21),o.k0s()()()()()),2&S&&(o.R7$(4),o.BMQ("aria-label",o.bMT(5,14,"ONBOARDING.COMMON.BACK_LABEL")),o.R7$(5),o.SpI(" ",o.bMT(10,16,"ONBOARDING.STEP1.AD_WELCOME.H1")," "),o.R7$(3),o.Lme(" ",o.bMT(13,18,"ONBOARDING.STEP1.AD_WELCOME.HEAD"),"",o.bMT(14,20,M.user)," "),o.R7$(6),o.SpI(" ",o.bMT(19,22,"ONBOARDING.STEP1.AD_WELCOME.SUB")," "),o.R7$(7),o.SpI(" ",o.bMT(26,24,"ONBOARDING.STEP1.AD_WELCOME.CODE1")," "),o.R7$(3),o.SpI(" ",o.bMT(29,26,"ONBOARDING.STEP1.AD_WELCOME.CODE2")," "),o.R7$(7),o.SpI(" ",o.bMT(36,28,"ONBOARDING.STEP1.AD_WELCOME.DATA1")," "),o.R7$(3),o.SpI(" ",o.bMT(39,30,"ONBOARDING.STEP1.AD_WELCOME.DATA2")," "),o.R7$(3),o.Y8G("routerLink",M.getBack()),o.BMQ("aria-label",o.bMT(42,32,"ONBOARDING.COMMON.BACK_LABEL")),o.R7$(3),o.SpI(" ",o.bMT(45,34,"ONBOARDING.COMMON.BACK")," "),o.R7$(3),o.BMQ("aria-label",o.bMT(48,36,"ONBOARDING.COMMON.CONTINUE_LABEL")),o.R7$(3),o.SpI(" ",o.bMT(51,38,"ONBOARDING.COMMON.CONTINUE")," "))},dependencies:[i.Wk,j.R,I.PV,b.D9],styles:[".text-width[_ngcontent-%COMP%]{width:85%}.icon-width[_ngcontent-%COMP%]{width:8%}.secondary[_ngcontent-%COMP%]{position:fixed;top:13px;left:15px;background-color:transparent;background-repeat:no-repeat;border:none;cursor:pointer;overflow:hidden;outline:none;z-index:100001}.secondary[_ngcontent-%COMP%]   app-icon[_ngcontent-%COMP%]{color:#000}.continueBtn[_ngcontent-%COMP%]{align-items:center;background-color:#0a8250;border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;
1cursor:pointer;display:flex;font-size:var(--e-button-font-size);justify-content:space-between;line-height:1.2em;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;width:100%;text-decoration:none!important}.continueBtn[_ngcontent-%COMP%]:hover{background-color:#2b5033}.continueBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;flex-grow:1;text-align:center;line-height:25px;color:#fff!important;font-size:1rem}.returnBtn[_ngcontent-%COMP%]{background-color:#fff;box-shadow:inset 0 0 0 .0625rem #0a8250;max-width:var(--e-button-max-width);border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;text-decoration:none!important;justify-content:center;align-items:center;display:flex;margin-right:1rem}.returnBtn[_ngcontent-%COMP%]:hover{background-color:#0a8250}.returnBtn[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%]{color:#fff}.returnBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#0a8250;font-size:var(--e-button-font-size)}.h5[_ngcontent-%COMP%]{font-size:1.25rem;margin-bottom:.5rem;font-weight:500;line-height:1.2}.h1[_ngcontent-%COMP%]{color:#000;font-size:2rem;line-height:2.5rem;font-weight:400;font-style:normal}"]})}}return C})();var Mt=r(48678),Bt=r(28962);function Gt(C,lt){if(1&C&&(o.j41(0,"a",15),o.nI1(1,"translate"),o.EFF(2),o.nI1(3,"translate"),o.k0s()),2&C){const v=o.XpG();o.Mz_("href","./assets/pdfs/Info._Bsica_clientes_Evolve_onboarding_",v.language,".pdf",o.B4B),o.BMQ("aria-label",o.bMT(1,4,"ONBOARDING.STEP1.CONTRACT_INFORMATION.PLUS18_2_BLANK")),o.R7$(2),o.JRh(o.bMT(3,6,"ONBOARDING.STEP1.CONTRACT_INFORMATION.PLUS18_2"))}}function Lt(C,lt){if(1&C&&(o.j41(0,"a",15),o.nI1(1,"translate"),o.EFF(2),o.nI1(3,"translate"),o.k0s()),2&C){const v=o.XpG();o.Mz_("href","./assets/pdfs/08_Documento_aceptacion_de_tratamiento_de_datos_EMPLEADOS_",v.language,".pdf",o.B4B),o.BMQ("aria-lable",o.bMT(1,4,"ONBOARDING.STEP1.CONTRACT_INFORMATION.PLUS18_2_BLANK")),o.R7$(2),o.JRh(o.bMT(3,6,"ONBOARDING.STEP1.CONTRACT_INFORMATION.PLUS18_2"))}}function vt(C,lt){if(1&C&&(o.j41(0,"a",15),o.nI1(1,"translate"),o.EFF(2),o.nI1(3,"translate"),o.k0s()),2&C){const v=o.XpG();o.Mz_("href","./assets/pdfs/AF_03_Producto_Onboarding_PERSONAL_2024_",v.language,".pdf",o.B4B),o.BMQ("aria-label",o.bMT(1,4,"ONBOARDING.STEP1.CONTRACT_INFORMATION.CHECK_2_BLANK")),o.R7$(2),o.JRh(o.bMT(3,6,"ONBOARDING.STEP1.CONTRACT_INFORMATION.CHECK_2"))}}function wt(C,lt){if(1&C&&(o.j41(0,"a",15),o.nI1(1,"translate"),o.EFF(2),o.nI1(3,"translate"),o.k0s()),2&C){const v=o.XpG();o.Mz_("href","./assets/pdfs/AF_03_Producto_Onboarding_CLIENTES_2024_",v.language,".pdf",o.B4B),o.BMQ("aria-label",o.bMT(1,4,"ONBOARDING.STEP1.CONTRACT_INFORMATION.CHECK_2_BLANK")),o.R7$(2),o.JRh(o.bMT(3,6,"ONBOARDING.STEP1.CONTRACT_INFORMATION.CHECK_2"))}}let nt=(()=>{class C{constructor(v,S,M,W,ht,Et,_t,It,Nt){this.formsService=v,this.changeDetectorRef=S,this.route=M,this.router=W,this.clientService=ht,this._storageService=Et,this._genesysService=_t,this._recaptchaV3Service=It,this.titleService=Nt,this.professional=!!this._storageService.getItem("professional"),this.language=this._storageService.getItem("language"),this.showFormErrors=!1,this.phoneError=0,this.phoneMessage="",this.phoneInput={name:"phone",label:"ONBOARDING.COMMON.PHONE_NUMBER_LABEL",title:"ONBOARDING.COMMON.PHONE_NUMBER",type:"tel",value:"",required:!0,disabled:!1,maxlength:9},this.mailError=0,this.mailMessage="",this.mailInput={name:"mail",label:"ONBOARDING.COMMON.EMAIL_LABEL",title:"ONBOARDING.COMMON.EMAIL",type:"email",value:"",required:!0,disabled:!1,maxlength:100},this.checkbox={name:"Checkbox",label:"checkbox",text:"",checked:!1,required:!0},this.checkbox2={name:"Checkbox2",label:"checkbox2",text:"",checked:!1,required:!0},this.checkboxFormControl=new k.hs(!1),this.formsService.resetForm()}ngAfterViewChecked(){this.changeDetectorRef.detectChanges()}ngOnInit(){this.titleService.setTitleFromTranslation("PAGE_TITLES.CONTACT_DATA"),this.formsService.initPOSTForm().subscribe(S=>{this.form=S,this.form.valueChanges.subscribe(()=>{this.form.get("phone")?.valid&&this.form.get("email")?.valid&&this.form.get("check_pers")?.valid&&this.form.get("ADIC-CHECKINE_GEN")?.valid&&this.form.get("language")?.valid&&this.show
1FormErrors&&(this.showFormErrors=!1)})});const v="true"===this.route.snapshot.queryParamMap.get("contract");console.log(v),this._storageService.getItem("request")&&this.router.navigate(["/dashboard/onboarding"])}phoneService(){this.clientService.validatePhone(this.form.get("phone").value).subscribe(v=>{"201"!==v.code?this.form.controls.phone.setErrors({INVALID_PHONE:!0}):this.router.navigate(["/wizard/step2/id-check"])},v=>{this.router.navigate(["/wizard/step2/id-check"])})}validateDomainEmail(){const v=this.form.get("email").value,S=v.substring(v.indexOf("@")+1),M=S.substring(0,S.lastIndexOf("."));this.clientService.validateEmailDomain(M).subscribe(W=>{W.is_reliable?this.phoneService():this.form.controls.email.setErrors({INVALID_MAIL:!0})},W=>{this.phoneService()})}markAllAsTouched(){if(this.form.get("phone").markAsTouched(),this.form.get("email").markAsTouched(),this.form.get("check_pers").markAsTouched(),this.form.get("ADIC-CHECKINE_GEN").markAsTouched(),!(this.form.get("phone")?.valid&&this.form.get("email")?.valid&&this.form.get("check_pers")?.valid&&this.form.get("ADIC-CHECKINE_GEN")?.valid&&this.form.get("language")?.valid))return this.showFormErrors=!0,void(0,Mt.K)();this.showFormErrors=!1;const S=this.form.get("email").value,M=S.substring(S.indexOf("@")+1),W=M.substring(0,M.lastIndexOf("."));if(this.form.get("phone").valid&&this.form.get("email").valid&&this.form.get("check_pers").valid&&this.form.get("ADIC-CHECKINE_GEN").valid){let ht={};this._recaptchaV3Service.execute("onboardingContactInformation").subscribe(Et=>{this.clientService.validateEmail(this.form.get("email").value,Et).subscribe(_t=>{ht.email=this.form.get("email").value,this.clientService.validateEmailDomain(W).subscribe(It=>{this.clientService.validatePhone(this.form.get("phone").value).subscribe(Nt=>{ht.mobile=this.form.get("phone").value,"201"!==Nt.code&&this.form.controls.phone.setErrors({INVALID_PHONE:!0}),("201"!==_t.code&&"211"!==_t.code&&"202"!==_t.code||!It.is_reliable)&&this.form.controls.email.setErrors({INVALID_MAIL:!0}),("201"===_t.code||"211"===_t.code||"202"===_t.code)&&"201"===Nt.code&&It.is_reliable&&(this._genesysService.updateData(ht),this.router.navigate(["/wizard/step2/id-check"]))},Nt=>{this._genesysService.updateData(ht),this.router.navigate(["/wizard/step2/id-check"])})})},_t=>{this.validateDomainEmail()})})}}hasFormErrors(){return!!this.form&&this.showFormErrors&&this.form.invalid}static{this.\u0275fac=function(S){return new(S||C)(o.rXU(F.f),o.rXU(o.gRc),o.rXU(i.nX),o.rXU(i.Ix),o.rXU(n.X),o.rXU(a.n),o.rXU(Bt.w),o.rXU(Y.ob),o.rXU(x.E))}}static{this.\u0275cmp=o.VBU({type:C,selectors:[["app-contact-information"]],decls:58,vars:49,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row","mb-3","d-lg-none"],[1,"col","pl-3","pl-xl-0"],["routerLink","/wizard/step1/welcome","tabindex","0",1,"btn-back","secondary"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","arrow-left","width","24px","height","24px",1,"float-left"],[1,"row"],[1,"col","pl-3","pl-xl-0","spacer-bottom-low"],[1,"col","pl-3","pl-xl-0","right-align"],[1,"row","spacer-bottom-low"],["autocomplete","tel",3,"form","data","required"],["autocomplete","email",3,"form","data","emailAutocomplete","required"],[1,"col-12","pl-3","pl-xl-0","spacer-bottom-lowest"],[3,"data","form"],[1,"col","pl-0"],["target","_blank",3,"href"],[1,"row","spacer-both-high","d-flex","justify-content-center"],["tabindex","0","routerLink","/wizard/step1/welcome",1,"returnBtn","d-none","d-lg-flex"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-left","width","24px","height","24px",1,"float-left"],[1,"col","d-flex","justify-content-center","justify-content-lg-start",3,"clicked","variant","ariaLabel"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"]],template:function(S,M){1&S&&(o.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),o.nI1(5,"translate"),o.nrm(6,"app-icon",5),o.k0s()()(),o.j41(7,"form")(8,"div",6)(9,"h1",3),o.EFF(10),o.nI1(11,"translate"),o.k0s()(),o.j41(12,"div",6)(13,"div",7)(14,"span"),o.EFF(1
15),o.nI1(16,"translate"),o.k0s()()(),o.j41(17,"div",6)(18,"div",8)(19,"span"),o.EFF(20),o.nI1(21,"translate"),o.k0s()()(),o.j41(22,"div",9)(23,"div",3),o.nrm(24,"app-input",10),o.k0s()(),o.j41(25,"div",9)(26,"div",3),o.nrm(27,"app-input",11),o.k0s()(),o.j41(28,"div",6)(29,"div",12)(30,"app-checkbox",13)(31,"p",14),o.EFF(32),o.nI1(33,"translate"),o.DNE(34,Gt,4,8,"a",15)(35,Lt,4,8,"a",15),o.EFF(36),o.nI1(37,"translate"),o.k0s()()(),o.j41(38,"div",12)(39,"app-checkbox",13)(40,"p",14),o.EFF(41),o.nI1(42,"translate"),o.DNE(43,vt,4,8,"a",15)(44,wt,4,8,"a",15),o.EFF(45," * "),o.k0s()()()(),o.j41(46,"div",16)(47,"a",17),o.nI1(48,"translate"),o.j41(49,"span"),o.EFF(50),o.nI1(51,"translate"),o.nrm(52,"app-icon",18),o.k0s()(),o.j41(53,"app-button",19),o.nI1(54,"translate"),o.bIt("clicked",function(){return M.markAllAsTouched()}),o.EFF(55),o.nI1(56,"translate"),o.nrm(57,"app-icon",20),o.k0s()()()()()),2&S&&(o.R7$(4),o.BMQ("aria-label",o.bMT(5,27,"ONBOARDING.COMMON.BACK_LABEL")),o.R7$(6),o.SpI(" ",o.bMT(11,29,"ONBOARDING.STEP1.CONTRACT_INFORMATION.DATA")," "),o.R7$(5),o.SpI(" ",o.bMT(16,31,"ONBOARDING.STEP1.CONTRACT_INFORMATION.DATA_INTRO")," "),o.R7$(5),o.SpI(" ",o.bMT(21,33,"ONBOARDING.ADDRESS.REQUIRED_FIELDS")," "),o.R7$(4),o.Y8G("form",null==M.form?null:M.form.get("phone"))("data",M.phoneInput)("required",!0),o.R7$(3),o.Y8G("form",null==M.form?null:M.form.get("email"))("data",M.mailInput)("emailAutocomplete",!0)("required",!0),o.R7$(3),o.Y8G("data",M.checkbox)("form",null==M.form?null:M.form.get("check_pers")),o.R7$(2),o.SpI(" ",o.bMT(33,35,"ONBOARDING.STEP1.CONTRACT_INFORMATION.PLUS18_1")," "),o.R7$(2),o.vxM(34,M.professional?-1:34),o.R7$(),o.vxM(35,M.professional?35:-1),o.R7$(),o.SpI(" ",o.bMT(37,37,"ONBOARDING.STEP1.CONTRACT_INFORMATION.PLUS18_3")," * "),o.R7$(3),o.Y8G("data",M.checkbox2)("form",null==M.form?null:M.form.get("ADIC-CHECKINE_GEN")),o.R7$(2),o.SpI(" ",o.bMT(42,39,"ONBOARDING.STEP1.CONTRACT_INFORMATION.CHECK_1")," "),o.R7$(2),o.vxM(43,M.professional?43:-1),o.R7$(),o.vxM(44,M.professional?-1:44),o.R7$(3),o.BMQ("aria-label",o.bMT(48,41,"ONBOARDING.COMMON.BACK_LABEL")),o.R7$(3),o.SpI(" ",o.bMT(51,43,"ONBOARDING.COMMON.BACK")," "),o.R7$(3),o.Y8G("variant","primary")("ariaLabel",o.bMT(54,45,"ONBOARDING.COMMON.CONTINUE_LABEL")),o.R7$(2),o.SpI(" ",o.bMT(56,47,"ONBOARDING.COMMON.CONTINUE")," "))},dependencies:[i.Wk,V.Qp,G.P,j.R,P.S,b.D9],styles:["fieldset[_ngcontent-%COMP%]   legend[_ngcontent-%COMP%]{margin-bottom:0}.btn-back[_ngcontent-%COMP%]{margin-bottom:1rem}.custom-error-message[_ngcontent-%COMP%]{display:flex;align-items:center;padding:.75rem 1rem;background-color:#fcdfdf;color:#b22;border-radius:4px;font-size:1rem;gap:.5rem}.custom-error-message[_ngcontent-%COMP%]   .error-icon[_ngcontent-%COMP%]{margin-right:.5rem;flex-shrink:0}.custom-error-message[_ngcontent-%COMP%]   .error-text[_ngcontent-%COMP%]{flex:1;line-height:1.4}.secondary[_ngcontent-%COMP%]{position:fixed;top:13px;left:15px;background-color:transparent;background-repeat:no-repeat;border:none;cursor:pointer;overflow:hidden;outline:none;z-index:100001}.secondary[_ngcontent-%COMP%]   app-icon[_ngcontent-%COMP%]{color:#000}.returnBtn[_ngcontent-%COMP%]{background-color:#fff;box-shadow:inset 0 0 0 .0625rem #0a8250;max-width:var(--e-button-max-width);border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;text-decoration:none!important;justify-content:center;align-items:center;display:flex;margin-right:1rem}.returnBtn[_ngcontent-%COMP%]:hover{background-color:#0a8250}.returnBtn[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%]{color:#fff}.returnBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#0a8250;font-size:var(--e-button-font-size)}.right-align[_ngcontent-%COMP%]{text-align:right}.right-align[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#333}"]})}}return C})();const At=["video"];let et=(()=>{class C{constructor(v){this.environmentService=v,this.route=this.environmentService.envVariables.url_financiera}ngAfterViewInit(){this.video.nativeElement.play()}static{this.\u0275fac=function(S){return new(S||C)(o.rXU(E.v))}}static{this.\u0275cmp=o.VBU({type:C,selectors:[["app-order-new-card"]],viewQuery:function(S,M){if(1&S&&o.GBs(At,5),2&S){let W;o.mGM(W=o.lsd())&&(M.video=W.first)}},decls:21,vars:11,consts:[["video",""],[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],[1,"col","pl-3","pl-xl-0"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium"],[1,"pl-1"],[1,"row","spacer-bottom-low"],[1,"col","pl-3","pl-xl-0","justify-content-center","d-flex"],["width","320","height","240","auto
1play","","playsinline","","loop","",3,"muted"],["src","./assets/video/Tramitando_Solicitud.mp4","type","video/mp4"],[1,"row","spacer-top-high","d-flex","justify-content-center"],[1,"col-md-10","col-12","d-flex","justify-content-center","justify-content-lg-start","mb-5","pl-3","pl-md-0","e-button","e-button-var--primary",3,"href"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"]],template:function(S,M){1&S&&(o.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"h1",4),o.EFF(4),o.nI1(5,"translate"),o.k0s()(),o.j41(6,"div",3)(7,"div",5)(8,"span",6),o.EFF(9),o.nI1(10,"translate"),o.k0s()()(),o.j41(11,"div",7)(12,"div",8)(13,"video",9,0),o.nrm(15,"source",10),o.k0s()()(),o.j41(16,"div",11)(17,"a",12),o.EFF(18),o.nI1(19,"translate"),o.nrm(20,"app-icon",13),o.k0s()()()()),2&S&&(o.R7$(4),o.SpI(" ",o.bMT(5,5,"ONBOARDING.STEP1.ORDER_CARD.HEAD")," "),o.R7$(5),o.SpI(" ",o.bMT(10,7,"ONBOARDING.STEP1.ORDER_CARD.SUB")," "),o.R7$(4),o.Y8G("muted",!0),o.R7$(4),o.Y8G("href",M.route,o.B4B),o.R7$(),o.SpI(" ",o.bMT(19,9,"ONBOARDING.STEP1.ORDER_CARD.BUTTON")," "))},dependencies:[j.R,b.D9],styles:["img[_ngcontent-%COMP%]{display:flex;width:60%;margin:0 auto}a.e-button-var--primary[_ngcontent-%COMP%]{color:#fff!important;text-decoration:none!important;justify-content:center!important;position:relative}a.e-button-var--primary[_ngcontent-%COMP%]   app-icon[_ngcontent-%COMP%]{position:absolute;right:16px}"]})}}return C})();var q=r(70150);function gt(C,lt){if(1&C&&(o.j41(0,"div",2),o.nrm(1,"app-tooltip",8),o.nI1(2,"translate"),o.nrm(3,"app-combo",9),o.k0s()),2&C){const v=o.XpG();o.R7$(),o.FS9("text",o.bMT(2,3,"ONBOARDING.STEP1.CONTRACT_INFORMATION.LANGUAGE_TOOLTIP")),o.R7$(2),o.Y8G("form",v.form)("data",v.lenguageCombo)}}function Ct(C,lt){if(1&C&&(o.j41(0,"span",5),o.EFF(1),o.nI1(2,"translate"),o.nI1(3,"titlecase"),o.k0s()),2&C){const v=o.XpG();o.R7$(),o.Lme(" ",o.bMT(2,2,"ONBOARDING.COMMON.WELCOME_NAME"),"",o.bMT(3,4,v.user)," ")}}function xt(C,lt){1&C&&(o.j41(0,"span",5),o.EFF(1),o.nI1(2,"translate"),o.k0s()),2&C&&(o.R7$(),o.SpI(" ",o.bMT(2,1,"ONBOARDING.COMMON.HELLO")," "))}function Pt(C,lt){1&C&&(o.j41(0,"span"),o.EFF(1),o.nI1(2,"translate"),o.k0s()),2&C&&(o.R7$(),o.SpI(" ",o.bMT(2,1,"ONBOARDING.STEP1.WELCOME.INTRO")," "))}function Ft(C,lt){1&C&&(o.j41(0,"span"),o.EFF(1),o.nI1(2,"translate"),o.k0s()),2&C&&(o.R7$(),o.SpI(" ",o.bMT(2,1,"ONBOARDING.STEP1.WELCOME.INTRO_QR")," "))}function St(C,lt){1&C&&(o.j41(0,"div",12)(1,"div",13),o.nrm(2,"app-icon",14),o.k0s(),o.j41(3,"div",15)(4,"h2"),o.EFF(5),o.nI1(6,"translate"),o.k0s(),o.j41(7,"p",16),o.EFF(8),o.nI1(9,"translate"),o.k0s()()(),o.j41(10,"div",3)(11,"div",13),o.nrm(12,"app-icon",17),o.k0s(),o.j41(13,"div",15)(14,"h2"),o.EFF(15),o.nI1(16,"translate"),o.k0s(),o.j41(17,"p",16),o.EFF(18),o.nI1(19,"translate"),o.k0s()()()),2&C&&(o.R7$(5),o.JRh(o.bMT(6,4,"ONBOARDING.STEP1.WELCOME.PHONE1")),o.R7$(3),o.SpI(" ",o.bMT(9,6,"ONBOARDING.STEP1.WELCOME.PHONE2")," "),o.R7$(7),o.JRh(o.bMT(16,8,"ONBOARDING.STEP1.WELCOME.ID1")),o.R7$(3),o.SpI(" ",o.bMT(19,10,"ONBOARDING.STEP1.WELCOME.ID2")," "))}function Xt(C,lt){1&C&&(o.j41(0,"div",12)(1,"div",13),o.nrm(2,"app-icon",17),o.k0s(),o.j41(3,"div",15)(4,"h2"),o.EFF(5),o.nI1(6,"translate"),o.k0s(),o.j41(7,"p",16),o.EFF(8),o.nI1(9,"translate"),o.k0s()()(),o.j41(10,"div",3)(11,"div",18),o.nrm(12,"app-icon",19),o.k0s(),o.j41(13,"div",20)(14,"h2"),o.EFF(15),o.nI1(16,"translate"),o.k0s(),o.j41(17,"p",16),o.EFF(18),o.nI1(19,"translate"),o.k0s()()(),o.j41(20,"div",21)(21,"div",13),o.nrm(22,"app-icon",14),o.k0s(),o.j41(23,"div",15)(24,"h2"),o.EFF(25),o.nI1(26,"translate"),o.k0s(),o.j41(27,"p",16),o.EFF(28),o.nI1(29,"translate"),o.k0s()()()),2&C&&(o.R7$(5),o.JRh(o.bMT(6,6,"ONBOARDING.STEP1.WELCOME.ID1")),o.R7$(3),o.SpI(" ",o.bMT(9,8,"ONBOARDING.STEP1.WELCOME.ID2")," "),o.R7$(7),o.SpI(" ",o.bMT(16,10,"ONBOARDING.STEP1.WELCOME.REQUIREMENTS")," "),o.R7$(3),o.SpI(" ",o.bMT(19,12,"ONBOARDING.STEP1.WELCOME.CAMERA")," "),o.R7$(7),o.JRh(o.bMT(26,14,"ONBOARDING.STEP1.WELCOME.PHONE1")),o.R7$(3),o.SpI(" ",o.bMT(29,16,"ONBOARDING.STEP1.WELCOME.PHONE2")," "))}function yt(C,lt){if(1&C){const v=o.RV6();o.DNE(0,St,20,12)(1,Xt,30,18),o.j41(2,"div",7)(3,"app-button",10),o.nI1(4,"translate"),o.bIt("clicked",function(){o.eBV(v);const M=o.XpG();return o.Njj(M.continue())}),o.j41(5,"span"),o.EFF(6),o.nI1(7,"translate"),o.nrm(8,"app-icon",11),o.k0s()()()}if(2&C){const v=o.XpG();o.vxM(0,v.mitekEnabled?1:0),o.R7$(3),o.Y8G("ariaLabel",o.bMT(4,3,"ONBOARDING.COMMON.CONTINUE_LABEL")),o.R7$(3),o.SpI(" ",o.bMT(7,5,"ONBOARDING.COMMON.CONTINUE")," ")}}function Ht(C,lt){if(1&C&&(o.j41(0,"div",22),o.nrm(1,"img",23),o.k0s()),2&C){const v=o.XpG();o.R7$(),o.Y8G("src","https://api.qrserver.com/v1/create-qr-code/?size=200x200&data="+v.urlFinanciera+"es/solicitar-tarjeta/evolve-onboarding/dashboard/onboarding/main",o.B4B)}}function jt(C,lt){1&C&&(o.j41(0,"div",2)(1,"div",6),o.nrm(2,"app-icon",7),o.j41(3,"p",8),o.EFF(4),o.nI1(5,"translate"),o.k0s()()()),2&C&&(o.R7$(4),o.SpI(" ",o.bMT(5,1,"ONBOARDING.STEP1.REQUEST_INFO.TEXT")," "))}function Yt(C,lt){1&C&&(o.j41(0,"div",4)(1,"div",6)(2,"p",9),o.EFF(3),o.nI1(4,"translate"),o.k0s()()()),2&C&&(o.R7$(3),o.SpI(" ",o.bMT(4,1,"ONBOARDING.STEP1.REQUEST_INFO.SUB_TEXT")," "))}function Vt(C,lt){1&C&&(o.j41(0,"div",4)(1,"div",6),o.nrm(2,"app-icon",7),o.j41(3,"p",9),o.EFF(4),o.nI1(5,"translate"),o.k0s()()()),2&C&&(o.R7$(4),o.SpI(" ",o.bMT(5,1,"ONBOARDING.STEP1.REQUEST_INFO.AUTH_TEXT")," "))}const Kt=["video"],A=[{path:"",component:(()=>{class C{constructor(){this.states=[{step:"1",description:"Datos de contacto"},{step:"2",description:"Verifica tu identidad"},{step:"3",description:"Informaci\xf3n adicional"},{step:"4",description:"Configura tu Tarjeta"},{step:"5",description:"T\xe9rminos y condiciones"}]}static{this.\u0275fac=function(S){return new(S||C)}}static{this.\u0275cmp=o.VBU({type:C,selectors:[["app-step1"]],decls:4,vars:1,consts:[[1,"container-wrap"],["status","1",3,"states"],[1,"main"]],template:function(S,M){1&S&&(o.j41(0,"div",0),o.nrm(1,"app-aside-menu",1),o.j41(2,"div",2),o.nrm(3,"router-outlet"),o.k0s()()),2&S&&(o.R7$(),o.Y8G("states",M.states))},dependencies:[i.n3,q.d],styles:[".container-wrap[_ngcontent-%COMP%]{overflow-x:hidden}"]})}}return C})(),children:[{path:"welcome",component:(()=>{class C{constructor(v,S,M,W,ht,Et,_t,It){this.route=v,this.router=S,this.tokenService=M,this._storageService=W,this.environmentService=ht,this._translatePipe=Et,this._genesysService=_t,this.titleService=It,this.authorized=!!this._storageService.getItem("authorized"),this.professional=!1,this.form=new k.hs("ES",[k.k0.required]),this.mitekEnabled=!0,this.desktopDisabled=!1,this.urlFinanciera=this.environmentService.envVariables.url_financiera,this.lenguageCombo={id:"selectLanguage",name:"Idioma",type:"text",options:[{label:"ONBOARDING.STEP1.CONTRACT_INFORMATION.CASTELLANO",value:"ES"}]},this.environmentService.isEnvironmentLoaded$.subscribe(Nt=>{Nt&&(this.environmentService.envVariables.showOtherLanguage&&this.lenguageCombo.options.push({label:"ONBOARDING.STEP1.CONTRACT_INFORMATION.CATALAN",value:"CT"}),this.mitekEnabled=this.environmentService.envVariables.mitekEnabled)})}ngOnInit(){this.titleService.setTitleFromTranslation("PAGE_TITLES.WELCOME"),this.route.queryParams.subscribe(v=>{v.utm_campaign&&sessionStorage.setItem("utm_campaign",v.utm_campaign),v.code&&v.professional&&this.tokenService.generateTokenProfessional(v.code,this.environmentService.envVariables.welcomeProfesional).subscribe(M=>{this.professional=!!v.professional,this._storageService.setItem("professional",this.professional),sessionStorage.setItem("token_professional","Bearer "+M.id_token);const W=this.tokenService.decodeToken().given_name.toLowerCase();this.user=W.charAt(0).toUpperCase()+W.slice(1)})}),this._storageService.getItem("request")&&!this.environmentService.envVariables.isQRWindowResume&&this.router.navigate(["/dashboard/onboarding"]),this._getWindowSize()&&this.environmentService.envVariables.desktopDisabled&&(this.desktopDisabled=!0)}continue(){this.form.markAllAsTouched(),this.form.valid?(this._storageService.setItem("language",this.form.value),this._genesysService.updateData({language:this.form.value}),this.authorized?this.router.navigate(this.mitekEnabled?["/wizard/step2/mitek-consent"]:["/wizard/step2/send-sms"]):this.professional?this.router.navigate(["/wizard/step1/contact-data"]):this.router.navigate(["/wizard/step1/contact-data"],{queryParams:{contract:!1}})):(0,Mt.K)()}onLanguageChanged(v){console.log(v)}_getWindowSize(){return!(window.innerWidth<=760||window.screen.width<=760)}static{this.\u0275fac=function(S){return new(S||C)(o.rXU(i.nX),o.rXU(i.Ix),o.rXU(Rt.B),o.rXU(a.n),o.rXU(E.v),o.rXU(b.D9),o.rXU(Bt.w),o.rXU(x.E))}}static{this.\u0275cmp=o.VBU({type:C,selectors:[["app-welcome"]],decls:15,vars:8,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"mc-language-combo"],[1,"row"],[1,"sr-only"],[1,"col","pl-3","pl-xl-0","h1"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium"],[1,"row","spacer-both-high"],[3,"text"],[1,"language",3,"form","data"],[3,"clicked","ariaLabel"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"],[1,"row","spacer-bottom-low"],[1,"col-auto","d-flex","align-items-center"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","phone","width","48px","height","48px","aria-hidden","true"],[1,"col"],[1,"mb-0"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","id-card","width","48px","height","48px","aria-hidden","true"],[1,"col-auto","d-flex","align-items-start","mt-4"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","wifi","width","48px","height","48px","aria-hidden","true"],[1,"col","spacer-bottom-low"],[1,"row","spacer-bottom-low","d-none","d-lg-flex"],[1,"d-flex","justify-content-center"],[3,"src"]],template:function(S,M){1&S&&(o.j41(0,"div",0)(1,"div",1),o.DNE(2,gt,4,5,"div",2),o.j41(3,"div",3)(4,"h1",4),o.EFF(5),o.nI1(6,"translate"),o.k0s(),o.DNE(7,Ct,4,6,"span",5)(8,xt,3,3,"span",5),o.k0s(),o.j41(9,"div",3)(10,"div",6),o.DNE(11,Pt,3,3,"span")(12,Ft,3,3),o.k0s()(),o.DNE(13,yt,9,7,"div",7)(14,Ht,2,1),o.k0s()()),2&S&&(o.R7$(2),o.vxM(2,M.desktopDisabled?-1:2),o.R7$(3),o.SpI(" ",o.bMT(6,6,"ONBOARDING.COMMON.WELCOME")," "),o.R7$(2),o.vxM(7,M.professional?7:-1),o.R7$(),o.vxM(8,M.professional?-1:8),o.R7$(3),o.vxM(11,M.desktopDisabled?12:11),o.R7$(2),o.vxM(13,M.desktopDisabled?14:13))},dependencies:[V.Qp,K.u,j.R,L.b,I.PV,b.D9],styles:['@charset "UTF-8";.mc-language-combo[_ngcontent-%COMP%]{z-index:100;display:flex;align-items:center;justify-content:flex-end;
1gap:10px;position:fixed;top:30px;right:30px}.mc-language-combo[_ngcontent-%COMP%]   .mc-language-combo__icon[_ngcontent-%COMP%]{width:1.375rem;height:1.375rem}.mc-language-combo[_ngcontent-%COMP%]   .mc-language-combo__icon--invisible-btn[_ngcontent-%COMP%]{background:none;border:none;padding:0;margin:0;outline-offset:2px;cursor:pointer;pointer-events:auto}.mc-language-combo[_ngcontent-%COMP%]   .mc-language-combo__icon--invisible-btn[_ngcontent-%COMP%]:hover{background:none}.mc-language-combo[_ngcontent-%COMP%]   .mc-language-combo__icon--invisible-btn[_ngcontent-%COMP%]:focus{outline-offset:2px}.mc-language-combo[_ngcontent-%COMP%]   .mc-language-combo__icon--invisible-btn[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{vertical-align:baseline;pointer-events:none}@media (max-width: 991px){.mc-language-combo[_ngcontent-%COMP%]{position:relative;margin-bottom:30px}}ul[_ngcontent-%COMP%]{list-style:none}li[_ngcontent-%COMP%]{display:flex;align-items:center}li[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:before{content:"\\2022";color:#0a8250;font-size:25px;width:1em;margin-left:-1.6em;padding-right:11px}h2[_ngcontent-%COMP%]{font-size:1.25rem!important;margin-bottom:.5rem!important}.continueBtn[_ngcontent-%COMP%]{align-items:center;background-color:#0a8250;border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--e-button-font-size);justify-content:space-between;line-height:1.2em;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;width:100%;text-decoration:none!important}.continueBtn[_ngcontent-%COMP%]:hover{background-color:#2b5033}.continueBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;flex-grow:1;text-align:center;line-height:25px;color:#fff!important;font-size:1rem}.h1[_ngcontent-%COMP%]{color:#000;font-size:2rem;line-height:2.5rem;font-weight:400;font-style:normal}']})}}return C})()},{path:"contact-data",component:nt},{path:"no-process",component:u.B,canActivate:[c.k],data:{content:{title:"ONBOARDING.COMMON.HELLO",subtitle:"ONBOARDING.STEP1.CONTRACT_FLOW",text:"ONBOARDING.STEP1.PREVIOUS_REQUEST_1",icon:"info",buttons:[{name:"ONBOARDING.COMMON.FINALIZE",action:"finalize",variant:"primary"}]}}},{path:"started-process",component:u.B,canActivate:[c.k],data:{"aside-menu":[{step:"1",description:"Datos de contacto"},{step:"2",description:"Verifica tu identidad"},{step:"3",description:"Informaci\xf3n adicional"},{step:"4",description:"Configura tu Tarjeta"},{step:"5",description:"T\xe9rminos y condiciones"}],"aside-menu-status":"0",content:{title:"ONBOARDING.COMMON.HELLO_NAME",subtitle:"ONBOARDING.COMMON.SKIP_START_SUBTITLE",text:"ONBOARDING.COMMON.SKIP_START_TEXT",icon:"phone",buttons:[{name:"ONBOARDING.COMMON.CONTINUE",action:"next",variant:"primary"}]}}},{path:"order-card",component:et,canActivate:[c.k],data:{"aside-menu":[],"aside-menu-status":null,content:{}}},{path:"request-info",component:(()=>{class C{constructor(v,S,M,W){this._storageService=v,this.router=S,this.environmentService=M,this.titleService=W,this.authorized=!!this._storageService.getItem("authorized"),this.professional=!1,this.route=this.environmentService.envVariables.url_financiera,this.authId=!1}ngOnInit(){this.titleService.setTitleFromTranslation("PAGE_TITLES.INFORMATION_REQUEST"),this.router.queryParams.subscribe(v=>{v.authId&&(this.authId=v.authId)})}finalize(){window.location.href=this.route}static{this.\u0275fac=function(S){return new(S||C)(o.rXU(a.n),o.rXU(i.nX),o.rXU(E.v),o.rXU(x.E))}}static{this.\u0275cmp=o.VBU({type:C,selectors:[["app-request-info"]],decls:14,vars:9,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],[1,"col","pl-3","pl-xl-0"],[1,"row","spacer-bottom-low"],["tabindex","0",1,"continueBtn","col","d-flex","justify-content-center","justify-content-lg-start",3,"click","keydown.enter"],[1,"col","d-flex","align-items-center"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","info","width","32px","height","32px"],[1,"mb-1","mt-1","ml-4"],[1,"mb-0","margin"]],template:function(S,M){1&S&&(o.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),o.EFF(4),o.nI1(5,"translate"),o.k0s()(),o.DNE(6,jt,6,3,"div",2)(7,Yt,5,3,"div",4)(8,Vt,6,3,"div",4),o.j41(9,"div",2)(10,"a",5),o.bIt("click",function(){return M.finalize()})("keydown.enter",function(){return M.finalize()}),o.j41(11,"span"),o.EFF(12),o.nI1(13,"translate"),o.k0s()()()()()),2&S&&(o.R7$(4),o.SpI(" ",o.bMT(5,5,"ONBOARDING.STEP1.REQUEST_INFO.TITLE")," "),o.R7$(2),o.vxM(6,M.authId?-1:6),o.R7$(),o.vxM(7,M.authId?-1:7),o.R7$(),o.vxM(8,M.authId?8:-1),o.R7$(4),o.SpI(" ",o.bMT(13,7,"ONBOARDING.COMMON.FINALIZE")," "))},dependencies:[j.R,b.D9],styles:[".margin[_ngcontent-%COMP%]{margin-left:56px}.continueBtn[_ngcontent-%COMP%]{align-items:center;background-color:#0a8250;border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;
1cursor:pointer;display:flex;font-size:var(--e-button-font-size);justify-content:space-between;line-height:1.2em;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;width:100%;text-decoration:none!important}.continueBtn[_ngcontent-%COMP%]:hover{background-color:#2b5033}.continueBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;flex-grow:1;text-align:center;line-height:25px;color:#fff!important;font-size:1rem}"]})}}return C})()},{path:"renew-card",component:(()=>{class C{constructor(v){this.environmentService=v,this.route=this.environmentService.envVariables.url_financiera}ngAfterViewInit(){this.video.nativeElement.play()}static{this.\u0275fac=function(S){return new(S||C)(o.rXU(E.v))}}static{this.\u0275cmp=o.VBU({type:C,selectors:[["app-renew-card"]],viewQuery:function(S,M){if(1&S&&o.GBs(Kt,5),2&S){let W;o.mGM(W=o.lsd())&&(M.video=W.first)}},decls:20,vars:11,consts:[["video",""],[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],[1,"col","pl-3","pl-xl-0"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium"],[1,"pl-1",3,"innerHTML"],[1,"row","spacer-bottom-low"],[1,"col","pl-3","pl-xl-0","justify-content-center","d-flex"],["width","320","height","240","autoplay","","playsinline","","loop","",3,"muted"],["src","./assets/video/Tramitando_Solicitud.mp4","type","video/mp4"],[1,"row","spacer-top-high","d-flex","justify-content-center"],[1,"col-md-10","col-12","d-flex","justify-content-center","justify-content-lg-start","mb-5","pl-3","pl-md-0","e-button","e-button-var--primary",3,"href"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"]],template:function(S,M){1&S&&(o.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"h1",4),o.EFF(4),o.nI1(5,"translate"),o.k0s()(),o.j41(6,"div",3)(7,"div",5),o.nrm(8,"span",6),o.nI1(9,"translate"),o.k0s()(),o.j41(10,"div",7)(11,"div",8)(12,"video",9,0),o.nrm(14,"source",10),o.k0s()()(),o.j41(15,"div",11)(16,"a",12),o.EFF(17),o.nI1(18,"translate"),o.nrm(19,"app-icon",13),o.k0s()()()()),2&S&&(o.R7$(4),o.SpI(" ",o.bMT(5,5,"ONBOARDING.STEP1.RENEW_CARD.TITLE")," "),o.R7$(4),o.Y8G("innerHTML",o.bMT(9,7,"ONBOARDING.STEP1.RENEW_CARD.TEXT"),o.npT),o.R7$(4),o.Y8G("muted",!0),o.R7$(4),o.Y8G("href",M.route,o.B4B),o.R7$(),o.SpI(" ",o.bMT(18,9,"ONBOARDING.STEP1.RENEW_CARD.BUTTON")," "))},dependencies:[j.R,b.D9],styles:["img[_ngcontent-%COMP%]{display:flex;width:60%;margin:0 auto}a.e-button-var--primary[_ngcontent-%COMP%]{color:#fff!important;text-decoration:none!important;justify-content:center!important;position:relative}a.e-button-var--primary[_ngcontent-%COMP%]   app-icon[_ngcontent-%COMP%]{position:absolute;right:16px}"]})}}return C})()},{path:"previous-request-pending",component:(()=>{class C{constructor(v,S){this._storageService=v,this.environmentService=S,this.authorized=!!this._storageService.getItem("authorized"),this.professional=!1,this.route=this.environmentService.envVariables.url_financiera}static{this.\u0275fac=function(S){return new(S||C)(o.rXU(a.n),o.rXU(E.v))}}static{this.\u0275cmp=o.VBU({type:C,selectors:[["app-previous-request-pending"]],decls:18,vars:13,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],[1,"col","pl-3","pl-xl-0"],[1,"row","spacer-bottom-medium"],[1,"col","d-flex","align-items-center"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","info","width","32px","height","32px"],[1,"mb-1","mt-1","ml-4","mr-4"],["tabindex","0",1,"returnBtn","d-none","d-lg-flex",3,"href"]],template:function(S,M){1&S&&(o.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),o.EFF(4),o.nI1(5,"translate"),o.k0s()(),o.j41(6,"div",4)(7,"div",5),o.nrm(8,"app-icon",6),o.j41(9,"p",7),o.EFF(10),o.nI1(11,"translate"),o.k0s()()(),o.j41(12,"div",2)(13,"a",8),o.nI1(14,"translate"),o.j41(15,"span"),o.EFF(16),o.nI1(17,"translate"),o.k0s()()()()()),2&S&&(o.R7$(4),o.SpI(" ",o.bMT(5,5,"ONBOARDING.STEP1.REQUEST_PENDING.TITLE")," "),o.R7$(6),o.SpI(" ",o.bMT(11,7,"ONBOARDING.STEP1.REQUEST_PENDING.TEXT")," "),o.R7$(3),o.Y8G("href",M.route,o.B4B),o.BMQ("aria-label",o.bMT(14,9,"ONBOARDING.COMMON.FINALIZE_LABEL")),o.R7$(3),o.SpI(" ",o.bMT(17,11,"ONBOARDING.COMMON.FINALIZE")," "))},dependencies:[j.R,b.D9],styles:[".margin[_ngcontent-%COMP%]{margin-left:56px}.returnBtn[_ngcontent-%COMP%]{background-color:#fff;box-shadow:inset 0 0 0 .0625rem #0a8250;max-width:var(--e-button-max-width);border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;text-decoration:none!important;justify-content:center;align-items:center;display:flex;margin-right:1rem;width:100%}.returnBtn[_ngcontent-%COMP%]:hover{background-color:#0a8250}.returnBtn[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%]{color:#fff}.returnBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#0a8250;font-size:var(--e-button-font-size)}"]})}}return C})()},{path:"has-authorized",component:(()=>{class C{constructor(v){this.environmentService=v,this.route=this.environmentService.envVariables.url_financiera}static{this.\u0275fac=function(S){return new(S||C)(o.rXU(E.v))}}static{this.\u0275cmp=o.VBU({type:C,selectors:[["app-has-authorized"]],decls:16,vars:10,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],[1,"col","pl-3","pl-xl-0"],[1,"row","spacer-bottom-medium"],[1,"col","d-flex","align-items-center"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","info","width","32px","height","32px"],[1,"mb-1","mt-1","ml-4","mr-5"],[1,"col-9","fixButton","pl-3","pl-md-0","d-flex","mb-5","justify-content-center","justify-content-lg-start","e-button","e-button-var--primary",3,"href"]],template:function(S,M){1&S&&(o.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),o.EFF(4),o.nI1(5,"translate"),o.k0s()(),o.j41(6,"div",4)(7,"div",5),o.nrm(8,"app-icon",6),o.j41(9,"p",7),o.EFF(10),o.nI1(11,"translate"),o.k0s()()(),o.j41(12,"div",2)(13,"a",8),o.EFF(14),o.nI1(15,"translate"),o.k0s()()()()),2&S&&(o.R7$(4),o.SpI(" ",o.bMT(5,4,"ONBOARDING.STEP1.HAS_AUTHORIZED.TITLE")," "),o.R7$(6),o.SpI(" ",o.bMT(11,6,"ONBOARDING.STEP1.HAS_AUTHORIZED.TEXT")," "),o.R7$(3),o.Y8G("href",M.route,o.B4B),o.R7$(),o.SpI(" ",o.bMT(15,8,"ONBOARDING.COMMON.FINALIZE")," "))},dependencies:[j.R,b.D9],styles:[".margin[_ngcontent-%COMP%]{margin-left:56px}a.e-button-var--primary[_ngcontent-%COMP%]{color:#fff!important;text-decoration:none!important;justify-content:center!important}"]})}}return C})()},{path:"ad-welcome",component:Dt},{path:"ad-otp-verification",component:J},{path:"ad-authorized-data",component:Z},{path:"ad-requested-card",component:bt},{path:"ad-previous-request-denied",component:Ot}]}];let R=(()=>{class C{static{this.\u0275fac=function(S){return new(S||C)}}static{this.\u0275mod=o.$C({type:C})}static{this.\u0275inj=o.G2t({providers:[c.k],imports:[i.iI.forChild(A),i.iI]})}}return C})(),it=(()=>{class C{static{this.\u0275fac=function(S){return new(S||C)}}static{this.\u0275mod=o.$C({type:C})}static{this.\u0275inj=o.G2t({imports:[R,h.G]})}}return C})()},76214:(ut,tt,r)=>{r.r(tt),r.d(tt,{Step2Module:()=>Kt});var h=r(19767),u=r(90220),i=r(88025),c=r(84692),t=r(11201),s=r(18162),k=r(55902),o=r(7637),F=r(54348),n=r(53786);let a=(()=>{class y{constructor(f){this.modalService=f}openModal(f){this.modalService.openModal(f)}modalResponse(f){}createRequest(){}static{this.\u0275fac=function(A){return new(A||y)(t.rXU(s.B))}}static{this.\u0275cmp=t.VBU({type:y,selectors:[["app-ad-id-verification"]],decls:77,vars:62,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],[1,"col","pl-3","pl-xl-0"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium"],[1,"col","pl-3","pl-xl-0","spacer-bottom-lowest"],[1,"row","spacer-bottom-low"],[1,"list"],[1,"col","pl-4","pl-xl-0"],[3,"clicked","variant","ariaHaspopup","addClass"],[1,"row","spacer-both-high","d-flex","justify-content-center"],["tabindex","0","href","",1,"returnBtn","d-none","d-lg-flex"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-left","width","24px","height","24px",1,"float-left"],[1,"col","d-flex","justify-content-center","justify-content-lg-start",3,"clicked","variant"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"],["id","eDialog",3,"confirm","cancel","outside","headline","confirmLabel","dismissible"],[1,"mt-4"],[1,"ml-4"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","callcenter","width","24px","height","24px",1,"mr-2"]],template:function(A,R){1&A&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.j41(6,"div",2)(7,"div",4)(8,"span"),t.EFF(9),t.nI1(10,"translate"),t.k0s()()(),t.j41(11,"div",2)(12,"div",5)(13,"span"),t.EFF(14),t.nI1(15,"translate"),t.k0s()()(),t.j41(16,"div",6)(17,"div",3)(18,"ul",7)(19,"li",7),t.EFF(20),t.nI1(21,"translate"),t.k0s(),t.j41(22,"li",7),t.EFF(23),t.nI1(24,"translate"),t.k0s()()()(),t.j41(25,"div",2)(26,"div",5)(27,"span"),t.EFF(28),t.nI1(29,"translate"),t.k0s()()(),t.j41(30,"div",6)(31,"div",8)(32,"ul")(33,"li"),t.EFF(34),t.nI1(35,"translate"),t.k0s(),t.j41(36,"li"),t.EFF(37),t.nI1(38,"translate"),t.k0s(),t.j41(39,"li"),t.EFF(40),t.nI1(41,"translate"),t.k0s()()()(),t.j41(42,"div",6)(43,"div",3)(44,"app-button",9),t.bIt("clicked",function(){return R.openModal("eDialog")}),t.EFF(45),t.nI1(46,"translate"),t.k0s()()(),t.j41(47,"div",10)(48,"a",11),t.nI1(49,"translate"),t.j41(50,"span"),t.EFF(51),t.nI1(52,"translate"),t.nrm(53,"app-icon",12),t.k0s()(),t.j41(54,"app-button",13),t.bIt("clicked",function(){return R.createRequest()}),t.EFF(55),t.nI1(56,"translate"),t.nrm(57,"app-icon",14),t.k0s()()()(),t.j41(58,"app-dialog",15),t.nI1(59,"translate"),t.nI1(60,"translate"),t.bIt("confirm",function(C){return R.modalResponse(C)})("cancel",function(C){return R.modalResponse(C)})("outside",function(){return null}),t.j41(61,"span"),t.EFF(62),t.nI1(63,"translate"),t.k0s(),t.j41(64,"ul",16)(65,"li")(66,"span"),t.EFF(67),t.nI1(68,"translate"),t.k0s()(),t.j41(69,"li"),t.EFF(70),t.nI1(71,"translate"),t.k0s()(),t.nrm(72,"br"),t.j41(73,"span",17),t.nrm(74,"app-icon",18),t.EFF(75),t.nI1(76,"translate"),t.k0s()()),2&A&&(t.R7$(4),t.SpI(" ",t.bMT(5,24,"ONBOARDING.STEP2.AD_ID_VERIFICATION.HEAD")," "),t.R7$(5),t.SpI(" ",t.bMT(10,26,"ONBOARDING.STEP2.AD_ID_VERIFICATION.SUB")," "),t.R7$(5),t.SpI(" ",t.bMT(15,28,"ONBOARDING.STEP2.AD_ID_VERIFICATION.SMS")," "),t.R7$(6),t.SpI(" ",t.bMT(21,30,"ONBOARDING.STEP2.AD_ID_VERIFICATION.PHOTO_ID")," "),t.R7$(3),t.SpI(" ",t.bMT(24,32,"ONBOARDING.STEP2.AD_ID_VERIFICATION.SELFIE")," "),t.R7$(5),t.JRh(t.bMT(29,34,"O
1NBOARDING.STEP2.AD_ID_VERIFICATION.ID_CHECK_DOCS")),t.R7$(6),t.SpI(" ",t.bMT(35,36,"ONBOARDING.STEP2.AD_ID_VERIFICATION.ID_CHECK_DOCS_1")," "),t.R7$(3),t.SpI(" ",t.bMT(38,38,"ONBOARDING.STEP2.AD_ID_VERIFICATION.ID_CHECK_DOCS_2")," "),t.R7$(3),t.SpI(" ",t.bMT(41,40,"ONBOARDING.STEP2.AD_ID_VERIFICATION.ID_CHECK_DOCS_3")," "),t.R7$(4),t.Y8G("variant","plain")("ariaHaspopup","eDialog")("addClass","link-text-plain e-button-width-auto ad-id-other-doc"),t.R7$(),t.SpI(" ",t.bMT(46,42,"ONBOARDING.STEP2.AD_ID_VERIFICATION.ID_CHECK_OTHER_DOC")," "),t.R7$(3),t.BMQ("aria-label",t.bMT(49,44,"ONBOARDING.COMMON.BACK_LABEL")),t.R7$(3),t.SpI(" ",t.bMT(52,46,"ONBOARDING.COMMON.BACK")," "),t.R7$(3),t.Y8G("variant","primary"),t.R7$(),t.SpI(" ",t.bMT(56,48,"ONBOARDING.COMMON.CONTINUE")," "),t.R7$(3),t.FS9("headline",t.bMT(59,50,"ONBOARDING.STEP2.AD_ID_VERIFICATION.ID_CHECK_OTHER_DOC_HEADER")),t.FS9("confirmLabel",t.bMT(60,52,"ONBOARDING.COMMON.CLOSE")),t.Y8G("dismissible",!1),t.R7$(4),t.JRh(t.bMT(63,54,"ONBOARDING.STEP2.AD_ID_VERIFICATION.ID_CHECK_OTHER_DOC_TEXT")),t.R7$(5),t.JRh(t.bMT(68,56,"ONBOARDING.STEP2.AD_ID_VERIFICATION.ID_CHECK_OTHER_DOC_LIST1")),t.R7$(3),t.SpI(" ",t.bMT(71,58,"ONBOARDING.STEP2.AD_ID_VERIFICATION.ID_CHECK_OTHER_DOC_LIST2")," "),t.R7$(5),t.SpI(" ",t.bMT(76,60,"ONBOARDING.STEP2.AD_ID_VERIFICATION.INFO_PHONE"),""))},dependencies:[k.Qp,o.m,F.R,n.D9],styles:[".returnBtn[_ngcontent-%COMP%]{background-color:#fff;box-shadow:inset 0 0 0 .0625rem #0a8250;max-width:var(--e-button-max-width);border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;text-decoration:none!important;justify-content:center;align-items:center;display:flex;margin-right:1rem}.returnBtn[_ngcontent-%COMP%]:hover{background-color:#0a8250}.returnBtn[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%]{color:#fff}.returnBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#0a8250;font-size:var(--e-button-font-size)}  .ad-id-other-doc.link-text-plain .e-button__text{font-size:16px!important}"]})}}return y})();var e=r(25662),E=r(3390),b=r(43982);function O(y,ft){1&y&&(t.j41(0,"div",2)(1,"div",5)(2,"span",16),t.EFF(3),t.nI1(4,"translate"),t.k0s()()()),2&y&&(t.R7$(3),t.SpI(" ",t.bMT(4,1,"FORM.ERRORS.DATA_ERROR_CONTINUE_MOBILE")," "))}function x(y,ft){if(1&y){const f=t.RV6();t.j41(0,"app-button",17),t.bIt("clicked",function(){t.eBV(f);const R=t.XpG();return t.Njj(R.changeState())}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}2&y&&(t.Y8G("disabled",!1)("variant","primary"),t.R7$(),t.SpI(" ",t.bMT(2,3,"ONBOARDING.COMMON.TEMPORAL_BUTTON_TEXT")," "))}let V=(()=>{class y{constructor(f,A,R,it,C,lt){this.formsService=f,this.router=A,this.route=R,this._storageService=it,this.environmentService=C,this.modalService=lt,this.professional=!!this._storageService.getItem("professional"),this.clickNext=!1,this.jumpButton=this.environmentService.envVariables.jump_button}ngOnInit(){this.route.data.subscribe(f=>{this.crmState=f.crmState,this.form=f.form}),this.environmentService.isEnvironmentLoaded$.subscribe(f=>{f&&this.environmentService.envVariables.mitekEnabled&&this.router.navigate(["/wizard/step2/mitek-consent"])})}checkState(){this.formsService.getCRMState().subscribe(f=>{this.crmState=f.request_data.pre_status,"02"==this.crmState?this.router.navigate(["/wizard/step3/address"]):this.clickNext=!0})}resendSMS(){this.formsService.getRequest().subscribe(f=>{this.router.navigate(["/wizard/step2/continue-mobile"])})}openModal(f){this.modalService.openModal(f)}changeState(){this.form.value.request_data.pre_status="02",this.formsService.updateCRM(this.form.value).subscribe(f=>{f&&(this.crmState="02")})}static{this.\u0275fac=function(A){return new(A||y)(t.rXU(e.f),t.rXU(i.Ix),t.rXU(i.nX),t.rXU(E.n),t.rXU(b.v),t.rXU(s.B))}}static{this.\u0275cmp=t.VBU({type:y,selectors:[["app-continue-mobile"]],decls:43,vars:46,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],[1,"col","pl-3","pl-xl-0"],[1,"col","pl-3","pl-xl-0","spacer-bottom-low"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium"],[3,"clicked","variant","addClass"],[1,"col","pl-3","pl-xl-0","spacer-bottom-lowest"],[3,"clicked","variant","ariaHaspopup","addClass"],[1,"row","spacer-both-high","d-flex","justify-content-center"],["tabindex","0","routerLink","/wizard/step2/send-sms",1,"returnBtn","d-none","d-lg-flex"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-left","width","24px","height","24px",1,"float-left"],[1,"col","d-flex","justify-content-center","justify-content-lg-start",3,"clicked","disabled","variant"],[1,"col-auto","position",3,"disabled","variant"],["id","any-doubts",3,"headline","confirmLabel","dismissible"],[1,"spacer-top-low",3,"innerHTML"],[1,"mc-field-box__note__error","pl-0"],[1,"col-auto","position",3,"clicked","disabled","variant"]],template:function(A,R){1&A&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.j41(6,"div",2)(7,"div",4)(8,"span"),t.EFF(9),t.nI1(10,"translate"),t.k0s()()(),t.j41(11,"div",2)(12,"div",5)(13,"span"),t.EFF(14),t.nI1(15,"translate"),t.j41(16,"app-button",6),t.bIt("clicked",function(){return R.resendSMS()}),t.EFF(17),t.nI1(18,"translate"),t.k0s(),t.EFF(19),t.nI1(20,"translate"),t.k0s()()(),t.j41(21,"div",2)(22,"div",7)(23,"app-button",8),t.bIt("clicked",function(){return R.openModal("any-doubts")}),t.EFF(24),t.nI1(25,"translate"),t.k0s()()(),t.DNE(26,O,5,3,"div",2),t.j41(27,"div",9)(28,"a",10),t.nI1(29,"translate"),t.j41(30,"span"),t.EFF(31),t.nI1(32,"translate"),t.nrm(33,"app-icon",11),t.k0s()(),t.j41(34,"app-button",12),t.bIt("clicked",function(){return R.checkState()}),t.EFF(35),t.nI1(36,"translate"),t.k0s(),t.DNE(37,x,3,5,"app-button",13),t.k0s()()(),t.j41(38,"app-dialog",14),t.nI1(39,"translate"),t.nI1(40,"translate"),t.nrm(41,"div",15),t.nI1(42,"translate"),t.k0s()),2&A&&(t.R7$(4),t.SpI(" ",t.bMT(5,22,"ONBOARDING.STEP2.CONTINUE_MOBILE.CONTINUE_MOBILE")," "),t.R7$(5),t.SpI(" ",t.bMT(10,24,"ONBOARDING.STEP2.CONTINUE_MOBILE.DATA_CONTINUE_MOBILE")," "),t.R7$(5),t.SpI(" ",t.bMT(15,26,"ONBOARDING.STEP2.CONTINUE_MOBILE.NO_MOBILE_SMS_SEND")," "),t.R7$(2),t.Y8G("variant","plain")("addClass","link-text-plain e-button-width-auto continue-mobile-here"),t.R7$(),t.SpI(" ",t.bMT(18,28,"ONBOARDING.STEP2.CONTINUE_MOBILE.HERE")," "),t.R7$(2),t.SpI(" ",t.bMT(20,30,"ONBOARDING.STEP2.CONTINUE_MOBILE.NO_MOBILE_SMS_SEND2")," "),t.R7$(4),t.Y8G("variant","plain")("ariaHaspopup","any-doubts")("addClass","link-text-plain e-button-width-auto continue-mobile-any-doubts"),t.R7$(),t.SpI(" ",t.bMT(25,32,"ONBOARDING.STEP2.ANY_DOUBTS.LINK")," "),t.R7$(2),t.vxM(26,R.crmState&&("03"==R.crmState||"01"==R.crmState)&&R.clickNext?26:-1),t.R7$(2),t.BMQ("aria-label",t.bMT(29,34,"O
1NBOARDING.COMMON.BACK_LABEL")),t.R7$(3),t.SpI(" ",t.bMT(32,36,"ONBOARDING.COMMON.BACK")," "),t.R7$(3),t.Y8G("disabled",!1)("variant","primary"),t.R7$(),t.SpI(" ",t.bMT(36,38,"ONBOARDING.COMMON.CONTINUE")," "),t.R7$(2),t.vxM(37,R.jumpButton?37:-1),t.R7$(),t.FS9("headline",t.bMT(39,40,"ONBOARDING.STEP2.ANY_DOUBTS.HEAD")),t.FS9("confirmLabel",t.bMT(40,42,"ONBOARDING.COMMON.CLOSE")),t.Y8G("dismissible",!1),t.R7$(3),t.Y8G("innerHTML",t.bMT(42,44,"ONBOARDING.STEP2.ANY_DOUBTS.CONTENT"),t.npT))},dependencies:[i.Wk,k.Qp,o.m,F.R,n.D9],styles:['@charset "UTF-8";ul[_ngcontent-%COMP%]{list-style:none}li[_ngcontent-%COMP%]{display:flex;align-items:center}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:before{content:"\\2022";color:#0a8250;font-size:25px;width:1em;margin-left:-1.6em}.position[_ngcontent-%COMP%]{position:absolute;top:-100px;left:0}.spacer[_ngcontent-%COMP%]{margin-top:15%!important}.returnBtn[_ngcontent-%COMP%]{background-color:#fff;box-shadow:inset 0 0 0 .0625rem #0a8250;max-width:var(--e-button-max-width);border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;text-decoration:none!important;justify-content:center;align-items:center;display:flex;margin-right:1rem}.returnBtn[_ngcontent-%COMP%]:hover{background-color:#0a8250}.returnBtn[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%]{color:#fff}.returnBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#0a8250;font-size:var(--e-button-font-size)}  .continue-mobile-here.link-text-plain .e-button__text{font-size:16px!important}  .continue-mobile-any-doubts.link-text-plain .e-button__text{font-size:16px!important}']})}}return y})();var G=r(57360),K=r(77052),B=r(87514),j=r(20410);let P=(()=>{class y{constructor(f){this.sanitizer=f}transform(f){return this.sanitizer.bypassSecurityTrustResourceUrl(f)}static{this.\u0275fac=function(A){return new(A||y)(t.rXU(j.up,16))}}static{this.\u0275pipe=t.EJ8({name:"safe",type:y,pure:!0})}}return y})();function L(y,ft){if(1&y&&(t.nrm(0,"iframe",3),t.nI1(1,"translate"),t.nI1(2,"safe")),2&y){const f=t.XpG();t.Y8G("title",t.bMT(1,2,"ONBOARDING_PAGE.MITEK_TITLE"))("src",t.bMT(2,4,f.urlMitek),t.f$h)}}let H=(()=>{class y{constructor(f,A,R,it,C){this.router=f,this.route=A,this.ocrService=R,this.windowRef=it,this._formsService=C,this.clickNext=!1,this.showSpinner=!1,this.spinnerResolved=!1,this.check=lt=>{if(lt.data.height&&lt.data.width)document.getElementById("mitek").style.height=lt.data.height;else if(lt.data.messageMitek){this.showSpinner=!0;const v=document.getElementById("mitek");v&&(v.style.height=""),this._interval=setInterval(()=>this.checkState(),5e3),this._timeout=setTimeout(()=>this._stopInterval(),12e4)}}}ngOnInit(){this.route.data.subscribe(f=>{this.crmState=f.crmState,this.form=f.form,this.initMitekIframe(this.form.value),this.windowRef.nativeWindow.addEventListener("message",this.check,!1)})}ngOnDestroy(){clearInterval(this._interval),clearTimeout(this._timeout),this._interval=null,this._timeout=null,this.windowRef.nativeWindow.removeEventListener("message",this.check)}_checkMessage(f){f.data.height&&f.data.width?document.getElementById("mitek").style.height=f.data.height:f.data.message&&(this._interval=setInterval(()=>this.checkState(),5e3),this._timeout=setTimeout(()=>this._stopInterval(),12e4))}initMitekIframe(f){this.ocrService.ocrGetUrlMitek({identifier:f.request_data.request,email:f.personal_data.email,telephone:f.personal_data.phone_number1,document_number:f.personal_data.document_number}).subscribe(R=>{this.urlMitek=R.url})}checkState(){this._formsService.getCRMState(null,!1).subscribe({next:f=>{this.crmState=f.request_data.pre_status,"44"===this.crmState||"55"===this.crmState||"56"===this.crmState||"43"===this.crmState||"03"===this.crmState?(this._stopPolling(),this.spinnerResolved=!0,this._notifyIframeResolved(),this._navigateByStatus(this.crmState)):"02"===this.crmState&&(this._stopPolling(),this.spinnerResolved=!0,this._notifyIframeResolved(),this.router.navigate(["/wizard/step3/address"]))},error:()=>{this.showSpinner=!1,this.router.navigate(["/wizard/step2/error-mitek-validation"])}})}_stopInterval(){this.showSpinner=!1,this.router.navigate(["/wizard/step2/error-mitek-validation"])}_stopPolling(){clearInterval(this._interval),clearTimeout(this._timeout),this._interval=null,this._timeout=null}_notifyIframeResolved(){const f=document.getElementById("mitek");f?.contentWindow&&f.contentWindow.postMessage({spinnerResolved:!0},"*")}_navigateByStatus(f){this._formsService.getFlowByStatus(f).subscribe(A=>{this.router.navigate([A])})}static{this.\u0275fac=function(A){return new(A||y)(t.rXU(i.Ix),t.rXU(i.nX),t.rXU(G.s),t.rXU(K.$),t.rXU(e.f))}}static{this.\u0275cmp=t.VBU({type:y,selectors:[["app-mitek-verification"]],decls:5,vars:4,consts:[[1,"sr-only"],["id","mitekContainer",1,"mitekContainer","d-flex","justify-content-center","align-self-start"],["id","mitek","allowusermedia","","class","mitek-container","allow","camera *; microphone *; compute-pressure *; geolocation *","sandbox","allow-scripts allow-forms allow-popups allow-same-origin","scrolling","no",3,"title","src",4,"ngIf"],["id","mitek","allowusermedia","","allow","camera *; microphone *; compute-pressure *; geolocation *","sandbox","allow-scripts allow-forms allow-popups allow-same-origin","scrolling","no",1,"mitek-container",3,"title","src"]],template:function(A,R){1&A&&(t.j41(0,"h1",0),t.EFF(1),t.nI1(2,"translate"),t.k0s(),t.j41(3,"div",1),t.DNE(4,L,3,6,"iframe",2),t.k0s()),2&A&&(t.R7$(),t.JRh(t.bMT(2,2,"ONBOARDING_PAGE.MITEK_H1")),t.R7$(3),t.Y8G("ngIf",R.urlMitek))},dependencies:[B.bT,n.D9,P],styles:['@charset "UTF-8";ul[_ngcontent-%COMP%]{list-style:none}li[_ngcontent-%COMP%]{display:flex;align-items:center}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:before{content:"\\2022";color:#0a8250;font-size:25px;width:1em;margin-left:-1.6em}.position[_ngcontent-%COMP%]{position:absolute;top:-100px;left:0}.spacer[_ngcontent-%COMP%]{margin-top:15%!important}.mitekContainer[_ngcontent-%COMP%]{margin:0 5rem;width:100%}@media (max-width: 992px){.mitekContainer[_ngcontent-%COMP%]{margin:0}}.mitek-container[_ngcontent-%COMP%]{display:block;width:100%;min-height:621px;border:0}@media (max-width: 768px){.mitek-container[_ngcontent-%COMP%]{min-height:calc(100vh - 70px)}}']})}}return y})();var N=r(35824),$=r(16918),Z=r(35773),pt=r(48678),rt=r(69450),at=r(12992),U=r(2621),X=r(35959),Y=r(28962),I=r(29394),D=r(96647),w=r(6796);function J(y,ft){if(1&y){const f=t.RV6();t.j41(0,"div",12)(1,"div",9)(2,"app-button",23),t.bIt("clicked",function(){t.eBV(f);const R=t.XpG(2);return t.Njj(R.openModal("eDialog"))}),t.EFF(3),t.nI1(4,"translate"),t.k0s()()()}2&y&&(t.R7$(2),t.Y8G("variant","plain")("styleClass","text-decoration: underline;
1 color: #0a8250")("ariaHaspopup","dialog")("ariaControls","eDialog"),t.R7$(),t.SpI(" ",t.bMT(4,5,"ONBOARDING.STEP2.ID_CHECK.ID_CHECK_OTHER_DOC")," "))}function Q(y,ft){1&y&&(t.j41(0,"div",17),t.nrm(1,"app-tooltip",24),t.nI1(2,"translate"),t.j41(3,"p",25),t.EFF(4),t.nI1(5,"translate"),t.k0s()()),2&y&&(t.R7$(),t.FS9("text",t.bMT(2,2,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.FIRST-TOOLTIP")),t.R7$(3),t.SpI(" ",t.bMT(5,4,"ONBOARDING.STEP2.ID_CHECK.MITEK_INFO")," "))}function dt(y,ft){if(1&y){const f=t.RV6();t.j41(0,"div",0)(1,"div",7)(2,"div",8)(3,"div",9)(4,"a",10),t.nI1(5,"translate"),t.bIt("click",function(){t.eBV(f);const R=t.XpG();return t.Njj(R.setErrorsNull())})("keydown.enter",function(){t.eBV(f);const R=t.XpG();return t.Njj(R.setErrorsNull())}),t.nrm(6,"app-icon",11),t.k0s()()(),t.j41(7,"div",12)(8,"h1",9),t.EFF(9),t.nI1(10,"translate"),t.k0s()(),t.j41(11,"div",12)(12,"div",13)(13,"span"),t.EFF(14),t.nI1(15,"translate"),t.k0s()()(),t.j41(16,"div",12)(17,"div",14)(18,"span"),t.EFF(19),t.nI1(20,"translate"),t.k0s()()(),t.j41(21,"div",15)(22,"div",9),t.nrm(23,"app-input",16),t.k0s()(),t.j41(24,"div",12)(25,"div",13)(26,"span"),t.EFF(27),t.nI1(28,"translate"),t.k0s(),t.j41(29,"ul",3)(30,"li",3),t.nrm(31,"span",4),t.EFF(32),t.nI1(33,"translate"),t.k0s(),t.j41(34,"li",3),t.nrm(35,"span",4),t.EFF(36),t.nI1(37,"translate"),t.k0s(),t.j41(38,"li",3),t.nrm(39,"span",4),t.EFF(40),t.nI1(41,"translate"),t.k0s()()()(),t.DNE(42,J,5,7,"div",12)(43,Q,6,6,"div",17),t.j41(44,"div",18)(45,"a",19),t.nI1(46,"translate"),t.bIt("click",function(){t.eBV(f);const R=t.XpG();return t.Njj(R.setErrorsNull())})("keydown.enter",function(){t.eBV(f);const R=t.XpG();return t.Njj(R.setErrorsNull())}),t.j41(47,"span"),t.EFF(48),t.nI1(49,"translate"),t.nrm(50,"app-icon",20),t.k0s()(),t.j41(51,"app-button",21),t.nI1(52,"translate"),t.bIt("clicked",function(){t.eBV(f);const R=t.XpG();return t.Njj(R.continue())}),t.j41(53,"span"),t.EFF(54),t.nI1(55,"translate"),t.nrm(56,"app-icon",22),t.k0s()()()()()}if(2&y){const f=t.XpG();t.R7$(4),t.BMQ("aria-label",t.bMT(5,17,"ONBOARDING.COMMON.BACK_LABEL")),t.R7$(5),t.SpI(" ",t.bMT(10,19,"ONBOARDING.STEP2.ID_CHECK.ID_CHECK")," "),t.R7$(5),t.SpI(" ",t.bMT(15,21,"ONBOARDING.STEP2.ID_CHECK.ID_CHECK_INTRO")," "),t.R7$(5),t.SpI(" ",t.bMT(20,23,"ONBOARDING.ADDRESS.REQUIRED_FIELDS")," "),t.R7$(4),t.Y8G("form",null==f.form?null:f.form.get("document_number"))("data",f.idInput)("required",!0),t.R7$(4),t.JRh(t.bMT(28,25,"ONBOARDING.STEP2.ID_CHECK.ID_CHECK_DOCS")),t.R7$(5),t.SpI(" ",t.bMT(33,27,"ONBOARDING.STEP2.ID_CHECK.ID_CHECK_DOCS_1")," "),t.R7$(4),t.SpI(" ",t.bMT(37,29,"ONBOARDING.STEP2.ID_CHECK.ID_CHECK_DOCS_2")," "),t.R7$(4),t.SpI(" ",t.bMT(41,31,"ONBOARDING.STEP2.ID_CHECK.ID_CHECK_DOCS_3")," "),t.R7$(2),t.vxM(42,f.professional?-1:42),t.R7$(),t.vxM(43,f.mitekEnabled?43:-1),t.R7$(2),t.BMQ("aria-label",t.bMT(46,33,"ONBOARDING.COMMON.BACK_LABEL")),t.R7$(3),t.SpI(" ",t.bMT(49,35,"ONBOARDING.COMMON.BACK")," "),t.R7$(3),t.Y8G("ariaLabel",t.bMT(52,37,"ONBOARDING.COMMON.CONTINUE_LABEL")),t.R7$(3),t.SpI(" ",t.bMT(55,39,"ONBOARDING.COMMON.CONTINUE")," ")}}function Ot(y,ft){1&y&&(t.j41(0,"div",6),t.EFF(1),t.nI1(2,"translate"),t.j41(3,"a",26),t.EFF(4),t.nI1(5,"translate"),t.k0s()()),2&y&&(t.R7$(),t.SpI(" ",t.bMT(2,2,"ONBOARDING.STEP2.ID_CHECK.ID_CHECK_PROFESSIONAL_TEXT")," "),t.R7$(3),t.SpI(" ",t.bMT(5,4,"ONBOARDING.STEP2.ID_CHECK.ID_CHECK_PROFESSIONAL_TEXT2")," "))}function bt(y,ft){1&y&&(t.j41(0,"div",6),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&y&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"ONBOARDING.STEP2.ID_CHECK.ID_CHECK_PROFESSIONAL_NOT_MATCH")," "))}let Tt=(()=>{class y{constructor(f,A,R,it,C,lt,v,S,M,W,ht){this.router=f,this.formsService=A,this.modalService=R,this.tokenService=it,this._professionalService=C,this._storageService=lt,this.environmentService=v,this.cookieSrv=S,this._recaptchaV3Service=M,this._genesysService=W,this.titleService=ht,this.professional=!!this._storageService.getItem("professional"),this.idError=0,this.idMessage="",this.environment=this.environmentService.envVariables,this.idInput={name:"id",label:"ONBOARDING.STEP2.ID_CHECK.ID_CHECK_ID_NUMBER_LABEL",type:"text",value:"",required:!0,disabled:!1,maxlength:9,title:"ONBOARDING.STEP2.ID_CHECK.ID_CHECK_ID_NUMBER"},this.id="",this.mitekConsentUrl="/wizard/step2/mitek-verification",this.mitekEnabled=this.environmentService.envVariables.mitekEnabled,this._destroySubject$=new Z.B7}ngOnInit(){this.titleService.setTitleFromTranslation("PAGE_TITLES.DNI_CHECK"),this.formsService.initPOSTForm().pipe((0,N.s)(1)).subscribe(f=>{this.form=f,(!this.form.get("phone").valid||!this.form.get("email").valid)&&this.router.navigate(["wizard/step1/contact-data"])}),this.environmentService.isEnvironmentLoaded$.pipe((0,$.Q)(this._destroySubject$)).subscribe(f=>{f&&(this.mitekEnabled||(this.mitekConsentUrl="/wizard/step2/send-sms"))})}ngOnDestroy(){this.closeModal(),this._destroySubject$.next(),this._destroySubject$.complete()}setErrorsNull(){this.form.controls.document_number.setErrors(null),this.form.get("document_number").reset(),this.closeModal(),this.router.navigate(["/wizard/step1/contact-data"])}continue(){let f={};if(sessionStorage.getItem("token_professional")&&this.form.get("document_number").valid){f.dni=this.form.get("document_number").value,this._genesysService.updateData(f);const A=this.tokenService.decodeToken();this._professionalService.getProfessionalData(A.sub).pipe((0,N.s)(1)).subscribe(R=>{const it=R.id_document.number;this.form.get("document_number").value.toUpperCase()===it?(this.setDNIStorage(),this._recaptchaV3Service.execute("captchaContinueRequestDNI").pipe((0,N.s)(1)).subscribe(C=>{this.formsService.getResponseCode(C).subscribe(lt=>{this.createDataRequest(R,lt)})})):(this.state="idNotMatch",this.openModal("professionalDialog"))})}else this.form.get("document_number").valid?(f.dni=this.form.get("document_number").value,this._genesysService.updateData(f),this.setDNIStorage(),this._recaptchaV3Service.execute("captchaContinueRequestDNI").pipe((0,N.s)(1)).subscribe(A=>
1{this.formsService.getResponseCode(A).pipe((0,N.s)(1)).subscribe(R=>{const it="ProfessionalValidation";this._recaptchaV3Service.execute(it).pipe((0,N.s)(1)).subscribe(C=>{this._professionalService.isProfessional(this.form.get("document_number").value?.toUpperCase(),void 0,C,it).pipe((0,N.s)(1)).subscribe(lt=>{lt.is_verified&&this.environmentService.envVariables.professionalVerification&&204!==R.status?(this.state="checkProfessional",this.router.navigate(["/wizard/step1/request-info"])):this.createDataRequest(null,R)})})})})):(this.form.get("document_number").markAsTouched(),(0,pt.K)())}setDNIStorage(){this._storageService.setItem("document_number",this.form.get("document_number").value?.toUpperCase())}openModal(f){const A=document.activeElement;this.modalService.openModal(f,A)}closeModal(f){f?this.modalService.closeModal(f):(this.modalService.closeModal("eDialog"),this.modalService.closeModal("professionalDialog"))}modalResponse(f){console.log(f?"Modal aceptado":"Modal rechazado")}createDataRequest(f=null,A){let R;if(A&&A.status&&(R=A),A&&A.body&&(R=A.body),204===A.status||"99"===A.body.response_code){const it=this._storageService.getItem("language");it&&(this.form.value.language=it),this.createRequest(f,R)}this.redirectSimple(R)}createRequest(f,A){this.formsService.createRequest(this.form.value).pipe((0,N.s)(1)).subscribe(R=>{R.error?(R.error.details.description.includes("no permite nuevas contrataciones")&&(R.error.code="10"),this.redirectErrorPage(R.error,f,!1)):(this._storageService.setItem("token",R.token),this._storageService.setItem("request",R.request),this.cookieSrv.check("request_id")&&this.cookieSrv.delete("request_id"),this.cookieSrv.add("request_id",R.request),this._storageService.setItem("request_uid",R.request_uid),this._storageService.setItem("nick_name",this.form.get("nick_name").value),this._storageService.setItem("document_number",this.form.get("document_number").value?.toUpperCase()),this.id=this.form.get("document_number").value?.toUpperCase(),(204===A.status||"99"===A.response_code)&&(f?this.setDataEmployee(f):this.router.navigate([this.mitekConsentUrl])))},R=>{if(409===R.status)if(this._storageService.setItem("document_number",this.form.get("document_number").value?.toUpperCase()),f)this.setDataEmployee(f);else{const it=this.form.get("document_number").value?.toUpperCase();this.router.navigate(["/dashboard/onboarding/request"],{queryParams:{documentId:it}})}else this.redirectErrorPage(R,f,!0)})}checkVerification(f){this._recaptchaV3Service.execute("captchaContinueRequestDNI").pipe((0,N.s)(1)).subscribe(A=>{this.formsService.getResponseCode(A).pipe((0,N.s)(1)).subscribe(R=>{let it;R&&R.status&&(it=R),R&&R.body&&(it=R.body),("99"===it.response_code||204===it.status)&&(f?this.setDataEmployee(f):this.router.navigate([this.mitekConsentUrl])),this.redirectSimple(it)})})}redirectSimple(f){"1"===f.response_code&&this.router.navigate(["/wizard/step1/request-info"]),"2"===f.response_code&&this.router.navigate(["/wizard/step1/renew-card"]),"3"===f.response_code&&this.router.navigate(["/wizard/step5/go-client-area"]),"4"===f.response_code&&this.router.navigate(["/wizard/tceci/take-new-card"]),"5"===f.response_code&&this.router.navigate(["/wizard/tceci/request-info-tceci"]),"6"===f.response_code&&this.router.navigate(["/wizard/step1/previous-request-pending"]),"9"===f.response_code&&this.router.navigate(["/wizard/tceci/request-info-parents-card"])}redirectErrorPage(f,A,R){this.formsService.getFlowByStatus(f.code).pipe((0,N.s)(1)).subscribe(it=>{this._storageService.setItem("nick_name",this.form.get("nick_name").value),this._storageService.setItem("document_number",this.form.get("document_number").value?.toUpperCase()),this._storageService.setPersistentItem("document_number",this.form.get("document_number").value?.toUpperCase()??""),R||this.checkVerification(A),this.router.navigate([it])})}setDataEmployee(f){let A="0";"01"===f.contract_type&&(A="1"),this.formsService.initPUTForm().pipe((0,N.s)(1)).subscribe(R=>{R.get("professional_data").get("contract_type").setValue(A),R.get("professional_data").get("position").setValue(f.job_position),R.get("professional_data").get("seniority").setValue(f.seniority),R.get("professional_data").get("situation").setValue("3"),R.get("professional_data").get("company_name").setValue(f.company.description),R.get("additional_info").value.push({property_id:"H-EMPLEADO",value:"X"});const it=this.tokenService.decodeToken();R.get("personal_data").get("nick_name").setValue(it.nick_name),R.get("personal_data").get("name").setValue(it.given_name),R.get("personal_data").get("first_surname").setValue(it.family_name.split(" ")[0]),R.get("personal_data").get("last_surname").setValue(it.family_name.split(" ")[1]),R.get("professional_data").get("incomes").setValue(parseInt(f.salary_range)),this.formsService.updateCRM(R.value).pipe((0,N.s)(1)).subscribe(()=>this.router.navigate([this.mitekConsentUrl]))})}static{this.\u0275fac=function(A){return new(A||y)(t.rXU(i.Ix),t.rXU(e.f),t.rXU(s.B),t.rXU(rt.B),t.rXU(at.d),t.rXU(E.n),t.rXU(b.v),t.rXU(U.T),t.rXU(X.ob),t.rXU(Y.w),t.rXU(I.E)
1)}}static{this.\u0275cmp=t.VBU({type:y,selectors:[["app-dni-check"]],decls:22,vars:26,consts:[[1,"container","row","d-flex","justify-content-center"],["id","eDialog",3,"confirm","cancel","outside","headline","confirmLabel","dismissible"],[1,"list","spacer-top-low"],[1,"list"],["aria-hidden","true"],["id","professionalDialog",3,"confirm","cancel","outside","headline","confirmLabel","dismissible"],[1,"spacer-top-low"],[1,"col-12","col-xl-6"],[1,"row","mb-3","d-lg-none"],[1,"col","pl-3","pl-xl-0"],["tabindex","0",1,"btn-back","secondary",3,"click","keydown.enter"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","arrow-left","width","24px","height","24px",1,"float-left"],[1,"row"],[1,"col","pl-3","pl-xl-0","spacer-bottom-low"],[1,"col","pl-3","pl-xl-0","right-align"],[1,"row","spacer-bottom-low"],["autocomplete","off",3,"form","data","required"],[1,"mitek-info","d-flex","justify-content-start","align-items-start"],[1,"row","spacer-both-high","d-flex","justify-content-center"],["tabindex","0","routerLink","/wizard/step1/welcome",1,"returnBtn","d-none","d-lg-flex",3,"click","keydown.enter"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-left","width","24px","height","24px",1,"float-left"],[3,"clicked","ariaLabel"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"],["id","otherDocButton",3,"clicked","variant","styleClass","ariaHaspopup","ariaControls"],["className","width: 30px; height: 30px",3,"text"],[1,"mitek-text"],["href",""]],template:function(A,R){1&A&&(t.DNE(0,dt,57,41,"div",0),t.j41(1,"app-dialog",1),t.nI1(2,"translate"),t.nI1(3,"translate"),t.bIt("confirm",function(){return R.closeModal("eDialog")})("cancel",function(){return R.closeModal("eDialog")})("outside",function(){return R.closeModal("eDialog")}),t.j41(4,"span"),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.j41(7,"ul",2)(8,"li",3),t.nrm(9,"span",4),t.j41(10,"span"),t.EFF(11),t.nI1(12,"translate"),t.k0s()(),t.j41(13,"li",3),t.nrm(14,"span",4),t.EFF(15),t.nI1(16,"translate"),t.k0s()()(),t.j41(17,"app-dialog",5),t.nI1(18,"translate"),t.nI1(19,"translate"),t.bIt("confirm",function(){return R.closeModal("professionalDialog")})("cancel",function(){return R.closeModal("professionalDialog")})("outside",function(){return R.closeModal("professionalDialog")}),t.DNE(20,Ot,6,6,"div",6)(21,bt,3,3,"div",6),t.k0s()),2&A&&(t.vxM(0,R.form?0:-1),t.R7$(),t.FS9("headline",t.bMT(2,12,"ONBOARDING.STEP2.ID_CHECK.ID_CHECK_OTHER_DOC_HEADER")),t.FS9("confirmLabel",t.bMT(3,14,"ONBOARDING.COMMON.CLOSE")),t.Y8G("dismissible",!1),t.R7$(4),t.JRh(t.bMT(6,16,"ONBOARDING.STEP2.ID_CHECK.ID_CHECK_OTHER_DOC_TEXT")),t.R7$(6),t.JRh(t.bMT(12,18,"ONBOARDING.STEP2.ID_CHECK.ID_CHECK_OTHER_DOC_LIST1")),t.R7$(4),t.SpI(" ",t.bMT(16,20,"ONBOARDING.STEP2.ID_CHECK.ID_CHECK_OTHER_DOC_LIST2")," "),t.R7$(2),t.FS9("headline",t.bMT(18,22,"ONBOARDING.STEP2.ID_CHECK.ID_CHECK_PROFESSIONAL_TITLE")),t.FS9("confirmLabel",t.bMT(19,24,"ONBOARDING.COMMON.CLOSE")),t.Y8G("dismissible",!1),t.R7$(3),t.vxM(20,"checkProfessional"===R.state?20:-1),t.R7$(),t.vxM(21,"idNotMatch"===R.state?21:-1))},dependencies:[i.Wk,k.Qp,o.m,F.R,D.S,w.b,n.D9],styles:[".mitek-info[_ngcontent-%COMP%]{gap:20px;margin-top:4rem}.mitek-info__icon[_ngcontent-%COMP%]{background:none;border:none;padding:0;cursor:pointer;pointer-events:auto;display:flex;align-items:center;justify-content:center;width:24px;height:24px;flex-shrink:0}.mitek-info__icon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:block;width:100%;height:100%;pointer-events:none}.spacer-both-high[_ngcontent-%COMP%]{margin-top:1rem!important}#otherDocButton[_ngcontent-%COMP%]{background:none;border:none;color:#0a8250!important;text-decoration:underline!important;cursor:pointer}.btn-back[_ngcontent-%COMP%]{margin-bottom:1rem}.secondary[_ngcontent-%COMP%]{position:fixed;top:13px;left:15px;background-color:transparent;background-repeat:no-repeat;border:none;cursor:pointer;overflow:hidden;outline:none;z-index:100001}.secondary[_ngcontent-%COMP%]   app-icon[_ngcontent-%COMP%]{color:#000}.continueBtn[_ngcontent-%COMP%]{align-items:center;background-color:#0a8250;border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;
1cursor:pointer;display:flex;font-size:var(--e-button-font-size);justify-content:space-between;line-height:1.2em;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;width:100%;text-decoration:none!important}.continueBtn[_ngcontent-%COMP%]:hover{background-color:#2b5033}.continueBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;flex-grow:1;text-align:center;line-height:25px;color:#fff!important;font-size:1rem}.returnBtn[_ngcontent-%COMP%]{background-color:#fff;box-shadow:inset 0 0 0 .0625rem #0a8250;max-width:var(--e-button-max-width);border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;text-decoration:none!important;justify-content:center;align-items:center;display:flex;margin-right:1rem}.returnBtn[_ngcontent-%COMP%]:hover{background-color:#0a8250}.returnBtn[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%]{color:#fff}.returnBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#0a8250;font-size:var(--e-button-font-size)}.right-align[_ngcontent-%COMP%]{text-align:right}.right-align[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#333}"]})}}return y})();function Rt(y,ft){1&y&&(t.j41(0,"span",25),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&y&&(t.R7$(),t.JRh(t.bMT(2,1,"ONBOARDING.STEP2.SEND_SMS.CONTINUE")))}function Dt(y,ft){1&y&&(t.j41(0,"span",25),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&y&&(t.R7$(),t.JRh(t.bMT(2,1,"ONBOARDING.STEP2.SEND_SMS.CONTINUE")))}let Mt=(()=>{class y{constructor(f,A,R,it,C){this.router=f,this.route=A,this.formsService=R,this.modalService=it,this._storageService=C,this.authorized=!!this._storageService.getItem("authorized"),this.professional=!!this._storageService.getItem("professional"),this.platform=this.getMobileOS()}ngOnInit(){this.route.data.subscribe(f=>{this.form=f.form})}openModal(f){this.modalService.openModal(f)}modalResponse(f){}back(){this.authorized||this.professional?this.router.navigate(["/wizard/step1/welcome"]):"authorized"==this._storageService.getItem("access")?this.router.navigate(["/dashboard/onboarding-authorized"]):"authorized-request"==this._storageService.getItem("access")?this.router.navigate(["/dashboard/onboarding-authorized-request"]):this.router.navigate(["/wizard/step2/id-check"])}changeState(){this.formsService.getRequest().subscribe(f=>{this.router.navigate(["/wizard/step2/continue-mobile"])})}getMobileOS(){const f=navigator.userAgent;return/android/i.test(f)?"Android":/iPad|iPhone|iPod/.test(f)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1?"iOS":"Other"}goToApp(){"Android"==this.platform?window.location.href="https://play.google.com/store/apps/details?id=com.feci.apps":"iOS"==this.platform&&(window.location.href="https://apps.apple.com/es/app/tarjeta-el-corte-ingl%C3%A9s/id1450279444")}static{this.\u0275fac=function(A){return new(A||y)(t.rXU(i.Ix),t.rXU(i.nX),t.rXU(e.f),t.rXU(s.B),t.rXU(E.n))}}static{this.\u0275cmp=t.VBU({type:y,selectors:[["app-send-sms"]],decls:72,vars:62,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],[1,"col","pl-3","pl-xl-0"],[1,"row","showDesktop"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium"],[1,"row","showMobile"],[1,"col","pl-3","pl-xl-0","mb-3"],[1,"col-12","d-flex","justify-content-center"],["src","assets/img/eci_card_logo.webp",1,"card_icon",3,"click"],[1,"col","pl-3","pl-xl-0","mt-3","spacer-bottom-lowest"],[1,"col","pl-3","pl-xl-0","spacer-bottom-low"],[1,"list"],[1,"showDesktop","list"],[1,"list","showDesktop"],[1,"list","showMobile"],[1,"showMobile","list"],[1,"col","pl-3","pl-xl-0","spacer-bottom-lowest"],[3,"clicked","variant","ariaHaspopup","addClass"],["id","eDialog",3,"confirm","cancel","outside","headline","confirmLabel","dismissible"],[1,"list","spacer-top-low"],["id","any-doubts",3,"headline","confirmLabel","dismissible"],[1,"spacer-top-low",3,"innerHTML"],[1,"row","spacer-top-high","spacer-bottom-high"],[1,"col","d-flex","justify-content-center","justify-content-lg-start",3,"clicked","variant"],[1,"white"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"]],template:function(A,R){1&A&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.j41(6,"div",4)(7,"div",5)(8,"span"),t.EFF(9),t.nI1(10,"translate"),t.k0s()()(),t.j41(11,"div",6)(12,"div",7)(13,"span"),t.EFF(14),t.nI1(15,"translate"),t.k0s()(),t.j41(16,"div",8)(17,"img",9),t.bIt("click",function(){return R.goToApp()}),t.k0s()()(),t.j41(18,"div",4)(19,"div",10)(20,"span"),t.EFF(21),t.nI1(22,"translate"),t.k0s()()(),t.j41(23,"div",6)(24,"div",10)(25,"span"),t.EFF(26),t.nI1(27,"translate"),t.k0s()()(),t.j41(28,"div",2)(29,"div",11)(30,"ul",12)(31,"li",13),t.EFF(32),t.nI1(33,"translate"),t.k0s(),t.j41(34,"li",14),t.EFF(35),t.nI1(36,"translate"),t.k0s(),t.j41(37,"li",15),t.EFF(38),t.nI1(39,"translate"),t.k0s(),t.j41(40,"li",16),t.EFF(41),t.nI1(42,"translate"),t.k0s()()()(),t.j41(43,"div",2)(44,"div",17)(45,"app-button",18),t.bIt("clicked",function(){return R.openModal("any-doubts")}),t.EFF(46),t.nI1(47,"translate"),t.k0s()()(),t.j41(48,"app-dialog",19),t.nI1(49,"translate"),t.nI1(50,"translate"),t.bIt("confirm",function(C){return R.modalResponse(C)})("cancel",function(C){return R.modalResponse(C)})("outside",function(){return null}),t.j41(51,"span"),t.EFF(52),t.nI1(53,"translate"),t.k0s(),t.j41(54,"ul",20)(55,"li",12)(56,"span"),t.EFF(57),t.nI1(58,"translate"),t.k0s()(),t.j41(59,"li",12),t.EFF(60),t.nI1(61,"translate"),t.k0s()()(),t.j41(62,"app-dialog",21),t.nI1(63,"translate"),t.nI1(64,"translate"),t.nrm(65,"div",22),t.nI1(66,"translate"),t.k0s(),t.j41(67,"div",23)(68,"app-button",24),t.bIt("clicked",function(){return R.changeState()}),t.DNE(69,Rt,3,3,"span",25)(70,Dt,3,3,"span",25),t.nrm(71,"app-icon",26),t.k0s()()()()),2&A&&(t.R7$(4),t.SpI(" ",t.bMT(5,26,"ONBOARDING.STEP2.CONTINUE_MOBILE.CONTINUE_APP")," "),t.R7$(5),t.SpI(" ",t.bMT(10,28,"ONBOARDING.STEP2.SEND_SMS.DATA_CONTINUE_MOBILE")," "),t.R7$(5),t.SpI(" ",t.bMT(15,30,"ONBOARDING.STEP2.SEND_SMS.APP_TEXT")," "),t.R7$(7),t.JRh(t.bMT(22,32,"ONBOARDING.STEP2.SEND_SMS.DATA_CLICK_BTN")),t.R7$(5),t.JRh(t.bMT(27,34,"ONBOARDING.STEP2.SEND_SMS.DATA_CLICK_BTN_MOBILE")),t.R7$(6),t.SpI(" ",t.bMT(33,36,"ONBOARDING.STEP2.SEND_SMS.ONCE_DOWNLOAD")," "),t.R7$(3),t.SpI(" ",t.bMT(36,38,"ONBOARDING.STEP2.SEND_SMS.ID_PHOTO_DATA")," "),t.R7$(3),t.SpI(" ",t.bMT(39,40,"ONBOARDING.STEP2.SEND_SMS.PHOTO_DATA")," "),t.R7$(3),t.SpI(" ",t.bMT(42,42,"ONBOARDING.STEP2.SEND_SMS.RECORD_VIDEOSELFIE_DATA")," "),t.R7$(4),t.Y8G("variant","plain")("ariaHaspopup","any-doubts")("addClass","link-text-plain e-button-width-auto send-sms-any-doubts"),t.R7$(),t.SpI(" ",t.bMT(47,44,"ONBOARDING.STEP2.ANY_DOUBTS.LINK")," "),t.R7$(2),t.FS9("headline",t.bMT(49,46,"ONBOARDING.STEP2.ID_CHECK.ID_CHECK_OTHER_DOC_HEADER")),t.FS9("confirmLabel",t.bMT(50,48,"ONBOARDING.COMMON.CLOSE")),t.Y8G("dismissible",!1),t.R7$(4),t.JRh(t.bMT(53,50,"ONBOARDING.STEP2.ID_CHECK.ID_CHECK_OTHER_DOC_TEXT")),t.R7$(5),t.JRh(t.bMT(58,52,"ONBOARDING.STEP2.ID_CHECK.ID_CHECK_OTHER_DOC_LIST1")),t.R7$(3),t.SpI(" ",t.bMT(61,54,"ONBOARDING.STEP2.ID_CHECK.ID_CHECK_OTHER_DOC_LIST2")," "),t.R7$(2),t.FS9("headline",t.bMT(63,56,"ONBOARDING.STEP2.ANY_DOUBTS.HEAD")),t.FS9("confirmLabel",t.bMT(64,58,"ONBOARDING.COMMON.CLOSE")),t.Y8G("dismissible",!1),t.R7$(3),t.Y8G("innerHTML",t.bMT(66,60,"ONBOARDING.STEP2.ANY_DOUBTS.CONTENT"),t.npT),t.R7$(3),t.Y8G("variant","primary"),t.R7$(),t.vxM(69,R.professional?69:-1),t.R7$(),t.vxM(70,R.professional?-1:70))},dependencies:[k.Qp,o.m,F.R,n.D9],styles:['@charset "UTF-8";ul[_ngcontent-%COMP%]{list-style:none}li[_ngcontent-%COMP%]{display:flex}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:before{content:"\\2022";color:#0a8250;font-size:25px;width:1em;margin-left:-1.6em;padding-right:11px}
1#pspace[_ngcontent-%COMP%]{margin-top:40px;margin-bottom:40px}.white[_ngcontent-%COMP%]{color:#fff}ul.secondary[_ngcontent-%COMP%]   li.secondary[_ngcontent-%COMP%]:before{content:"\\2022";color:#000;font-size:20px;width:1em;margin-left:-1.6em;position:relative}.secondary[_ngcontent-%COMP%]{font-size:16px}.card_icon[_ngcontent-%COMP%]{width:80px;border-radius:20%}.showMobile[_ngcontent-%COMP%]{display:none}.showDesktop[_ngcontent-%COMP%]{display:flex}  .send-sms-any-doubts.link-text-plain .e-button__text{font-size:16px!important}@media (max-width: 992px){h1[_ngcontent-%COMP%]{font-size:1.6rem!important}.showDesktop[_ngcontent-%COMP%]{display:none}.showMobile[_ngcontent-%COMP%]{display:flex}}']})}}return y})();var Bt=r(70150);function Gt(y,ft){if(1&y&&t.nrm(0,"app-aside-menu",1),2&y){const f=t.XpG();t.Y8G("states",f.states)}}let Lt=(()=>{class y{constructor(){this.checkStatusMitek=!1,this.states=[{step:"1",description:"Datos de contacto"},{step:"2",description:"Verifica tu identidad"},{step:"3",description:"Informaci\xf3n adicional"},{step:"4",description:"Configura tu Tarjeta"},{step:"5",description:"T\xe9rminos y condiciones"}]}ngOnInit(){window.location.href.includes("check-status-mitek")&&(this.checkStatusMitek=!0)}static{this.\u0275fac=function(A){return new(A||y)}}static{this.\u0275cmp=t.VBU({type:y,selectors:[["app-step2"]],decls:4,vars:3,consts:[[1,"container-wrap"],["status","2",3,"states"],[1,"main"]],template:function(A,R){1&A&&(t.j41(0,"div",0),t.DNE(1,Gt,1,1,"app-aside-menu",1),t.j41(2,"div",2),t.nrm(3,"router-outlet"),t.k0s()()),2&A&&(t.R7$(),t.vxM(1,R.checkStatusMitek?-1:1),t.R7$(),t.AVh("main--no-padding",R.checkStatusMitek))},dependencies:[i.n3,Bt.d],styles:[".main[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:last-child{align-items:flex-start}.main--no-padding[_ngcontent-%COMP%]{padding-top:0!important;min-height:100vh!important}"]})}}return y})();var vt=r(13054),wt=r(31084);function nt(y,ft){1&y&&(t.j41(0,"span",22),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&y&&(t.R7$(),t.JRh(t.bMT(2,1,"ONBOARDING.STEP2.MITEK_CONSENT.CONTINUE")))}function At(y,ft){1&y&&(t.j41(0,"span",22),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&y&&(t.R7$(),t.JRh(t.bMT(2,1,"ONBOARDING.STEP2.MITEK_CONSENT.CONTINUE")))}let et=(()=>{class y{constructor(f,A,R,it,C,lt){this.router=f,this.route=A,this.modalService=R,this._storageService=it,this.environmentService=C,this._titleService=lt,this.authorized=!!this._storageService.getItem("authorized"),this.professional=!!this._storageService.getItem("professional"),this.checkboxMitek={name:"checkboxMitek",label:"checkbox",text:"",checked:!1},this.formMitek=new vt.MJ("",vt.k0.requiredTrue)}ngOnInit(){this._titleService.setTitleFromTranslation("PAGE_TITLES.VERIFY_IDENTITY"),this.route.data.subscribe(f=>{this.form=f.form}),this.environmentService.isEnvironmentLoaded$.subscribe(f=>{f&&(this.environmentService.envVariables.mitekEnabled||this.router.navigate(["/wizard/step2/send-sms"]))})}openModal(f){this.modalService.openModal(f)}back(){return this.authorized||this.professional?["/wizard/step1/welcome"]:"authorized"==this._storageService.getItem("access")?["/dashboard/onboarding-authorized"]:"authorized-request"==this._storageService.getItem("access")?["/dashboard/onboarding-authorized-request"]:["/wizard/step2/id-check"]}static{this.\u0275fac=function(A){return new(A||y)(t.rXU(i.Ix),t.rXU(i.nX),t.rXU(s.B),t.rXU(E.n),t.rXU(b.v),t.rXU(I.E))}}static{this.\u0275cmp=t.VBU({type:y,selectors:[["app-mitek-consent"]],decls:62,vars:62,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],[1,"col","pl-3","pl-xl-0"],[1,"row","showDesktop"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium"],[1,"spacer-bottom-medium","required"],[1,"row","showMobile"],[1,"col","pl-3","pl-xl-0","mb-3"],[1,"col","pl-3","pl-xl-0","mt-3"],[1,"col","pl-3","pl-xl-0","spacer-bottom-low"],[1,"list"],[1,"row","col-12","pl-3","pl-xl-0","spacer-bottom-lowest"],[3,"data","form"],[1,"col","pl-0"],[3,"clicked","variant","styleClass","ariaHaspopup"],["id","mitek-consent",3,"headline","confirmLabel","dismissible"],[1,"spacer-top-low",3,"innerHTML"],[1,"row","spacer-top-high","spacer-bottom-high"],[1,"returnBtn","d-none","d-lg-flex",3,"routerLink"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-left","width","24px","height","24px",1,"float-left"],[1,"col","d-flex","justify-content-center","justify-content-lg-start","e-button","e-button-var--primary",3,"routerLink"],[1,"white"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"]],template:function(A,R){1&A&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.j41(6,"div",4)(7,"div",5)(8,"span"),t.EFF(9),t.nI1(10,"translate"),t.k0s()()(),t.j41(11,"p",6),t.EFF(12),t.nI1(13,"translate"),t.k0s(),t.j41(14,"div",7)(1
15,"div",8)(16,"span"),t.EFF(17),t.nI1(18,"translate"),t.k0s()()(),t.j41(19,"div",4)(20,"div",9)(21,"span"),t.EFF(22),t.nI1(23,"translate"),t.k0s()()(),t.j41(24,"div",2)(25,"div",10)(26,"ul",11)(27,"li",11),t.EFF(28),t.nI1(29,"translate"),t.k0s(),t.j41(30,"li",11),t.EFF(31),t.nI1(32,"translate"),t.k0s(),t.j41(33,"li",11),t.EFF(34),t.nI1(35,"translate"),t.k0s()()(),t.j41(36,"div",12)(37,"app-checkbox",13)(38,"p",14),t.EFF(39),t.nI1(40,"translate"),t.j41(41,"app-button",15),t.bIt("clicked",function(C){return C.preventDefault(),R.openModal("mitek-consent")}),t.EFF(42),t.nI1(43,"translate"),t.k0s(),t.EFF(44," * "),t.k0s()()()(),t.j41(45,"app-dialog",16),t.nI1(46,"translate"),t.nI1(47,"translate"),t.nrm(48,"div",17),t.nI1(49,"translate"),t.k0s(),t.j41(50,"div",18)(51,"a",19),t.nI1(52,"translate"),t.j41(53,"span"),t.EFF(54),t.nI1(55,"translate"),t.nrm(56,"app-icon",20),t.k0s()(),t.j41(57,"a",21),t.nI1(58,"translate"),t.DNE(59,nt,3,3,"span",22)(60,At,3,3,"span",22),t.nrm(61,"app-icon",23),t.k0s()()()()),2&A&&(t.R7$(4),t.SpI(" ",t.bMT(5,30,"ONBOARDING.STEP2.MITEK_CONSENT.VERIFY_ID")," "),t.R7$(5),t.SpI(" ",t.bMT(10,32,"ONBOARDING.STEP2.MITEK_CONSENT.STEPS")," "),t.R7$(3),t.SpI(" ",t.bMT(13,34,"ONBOARDING.ADDRESS.REQUIRED_FIELDS")," "),t.R7$(5),t.SpI(" ",t.bMT(18,36,"ONBOARDING.STEP2.MITEK_CONSENT.STEPS")," "),t.R7$(5),t.JRh(t.bMT(23,38,"ONBOARDING.STEP2.MITEK_CONSENT.DATA_CLICK_BTN")),t.R7$(6),t.SpI(" ",t.bMT(29,40,"ONBOARDING.STEP2.MITEK_CONSENT.ONCE_DOWNLOAD")," "),t.R7$(3),t.SpI(" ",t.bMT(32,42,"ONBOARDING.STEP2.MITEK_CONSENT.ID_PHOTO_DATA")," "),t.R7$(3),t.SpI(" ",t.bMT(35,44,"ONBOARDING.STEP2.MITEK_CONSENT.PHOTO_DATA")," "),t.R7$(3),t.Y8G("data",R.checkboxMitek)("form",R.formMitek),t.R7$(2),t.SpI(" ",t.bMT(40,46,"ONBOARDING.STEP2.MITEK_CONSENT.CHECKBOX_MITEK")," "),t.R7$(2),t.Y8G("variant","link")("styleClass","width: auto;display: inline-block; padding: 0; min-height:0")("ariaHaspopup","dialog"),t.R7$(),t.SpI(" ",t.bMT(43,48,"ONBOARDING.STEP2.MITEK_CONSENT.MITEK")," "),t.R7$(3),t.FS9("headline",t.bMT(46,50,"ONBOARDING.STEP2.WHY_MITEK.HEAD")),t.FS9("confirmLabel",t.bMT(47,52,"ONBOARDING.COMMON.CLOSE")),t.Y8G("dismissible",!1),t.R7$(3),t.Y8G("innerHTML",t.bMT(49,54,"ONBOARDING.STEP2.WHY_MITEK.CONTENT"),t.npT),t.R7$(3),t.Y8G("routerLink",R.back()),t.BMQ("aria-label",t.bMT(52,56,"ONBOARDING.COMMON.BACK_LABEL")),t.R7$(3),t.SpI(" ",t.bMT(55,58,"ONBOARDING.COMMON.BACK")," "),t.R7$(3),t.AVh("is_disabled",!R.formMitek.valid),t.Y8G("routerLink",R.formMitek.valid?"/wizard/step2/mitek-verification":null),t.BMQ("aria-label",t.bMT(58,60,"ONBOARDING.COMMON.CONTINUE_LABEL"))("aria-disabled",!R.formMitek.valid)("tabindex",R.formMitek.valid?0:-1),t.R7$(2),t.vxM(59,R.professional?59:-1),t.R7$(),t.vxM(60,R.professional?-1:60))},dependencies:[i.Wk,k.Qp,wt.P,o.m,F.R,n.D9],styles:['@charset "UTF-8";ul[_ngcontent-%COMP%]{list-style:none}li[_ngcontent-%COMP%]{display:flex}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:before{content:"\\2022";color:#0a8250;font-size:25px;width:1em;margin-left:-1.6em;padding-right:11px}#pspace[_ngcontent-%COMP%]{margin-top:40px;margin-bottom:40px}.white[_ngcontent-%COMP%]{color:#fff}.required[_ngcontent-%COMP%]{text-align:end}ul.secondary[_ngcontent-%COMP%]   li.secondary[_ngcontent-%COMP%]:before{content:"\\2022";color:#000;font-size:20px;width:1em;margin-left:-1.6em;position:relative}.secondary[_ngcontent-%COMP%]{font-size:16px}.card_icon[_ngcontent-%COMP%]{width:80px;border-radius:20%}.showMobile[_ngcontent-%COMP%]{display:none}.showDesktop[_ngcontent-%COMP%]{display:flex}.btn-link[_ngcontent-%COMP%]{background:none;border:none;color:#0a8250;text-decoration:underline}.returnBtn[_ngcontent-%COMP%]{background-color:#fff;box-shadow:inset 0 0 0 .0625rem #0a8250;max-width:var(--e-button-max-width);border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;text-decoration:none!important;justify-content:center;align-items:center;display:flex;margin-right:1rem}.returnBtn[_ngcontent-%COMP%]:hover{background-color:#0a8250}.returnBtn[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%]{color:#fff}.returnBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#0a8250;font-size:var(--e-button-font-size)}a.e-button-var--primary[_ngcontent-%COMP%]{color:#fff!important;text-decoration:none!important;justify-content:center!important;position:relative}a.e-button-var--primary[_ngcontent-%COMP%]   app-icon[_ngcontent-%COMP%]{position:absolute;right:16px}a.e-button.is_disabled[_ngcontent-%COMP%]{background-color:#5e5e5e!important;cursor:auto;pointer-events:none}@media (max-width: 992px){h1[_ngcontent-%COMP%]{font-size:1.6rem!important}.showDesktop[_ngcontent-%COMP%]{display:none}.showMobile[_ngcontent-%COMP%]{display:flex}}']})}}return y})();var q=r(58156);let st=(()=>{class y{constructor(f){this._router=f,this.loading=!0,this.spinnerResolved=!1,this.isParentDesktop=!1,this._inIframe=!1,this._onMessage=A=>{A.data?.spinnerResolved&&(this.spinnerResolved=!0)},this._onParentResize=()=>this._checkParentWidth()}ngOnInit(){this._inIframe=window.self!==window.top,this._inIframe?(window.addEventListener("message",this._onMessage,!1),parent.postMessage({messageMitek:!0},"*"),this._checkParentWidth(),parent.addEventListener("resize",this._onParentResize)):this._router.navigate(["/wizard/step2/continue-mobile-mitek"])}ngOnDestroy(){window.removeEventListener("message",this._onMessage),this._inIframe&&parent.removeEventListener("resize",this._onParentResize)}_checkParentWidth(){try{this.isParentDesktop=parent.innerWidth>=992}catch{this.isParentDesktop=!1}}static{this.\u0275fac=function(A){return new(A||y)(t.rXU(i.Ix))}}static{this.\u0275cmp=t.VBU({type:y,selectors:[["app-check-status-mitek"]],hostVars:2,hostBindings:function(A,R){2&A&&t.AVh("parent-desktop",R.isParentDesktop)},decls:1,vars:3,consts:[[3,"display","backdrop","resolved"]],template:function(A,R){1&A&&t.nrm(0,"app-spinner",0),2&A&&t.Y8G("display",R.loading)("backdrop",!1)("resolved",R.spinnerResolved)},dependencies:[q.t],styles:["app-check-status-mitek[_ngcontent-%COMP%]{display:flex;justify-content:start}[_nghost-%COMP%]     app-spinner{align-self:flex-start}.parent-desktop[_nghost-%COMP%]     app-spinner{align-self:center}"]})}}return y})();var gt=r(46628),Ct=r(20918),xt=r(34699),Pt=r(71230),Ft=r(92853),St=r(30768);function Xt(y,ft){if(1&y){const f=t.RV6();t.j41(0,"article",6)(1,"div",7)(2,"p",8)(3,"b"),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.j41(6,"p",9),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.j41(9,"span",10),t.EFF(10),t.nI1(11,"translate"),t.k0s(),t.j41(12,"div",11),t.nrm(13,"app-input",12),t.k0s(),t.j41(14,"div",13)(15,"app-button",14),t.nI1(16,"translate"),t.bIt("clicked",function(){t.eBV(f);const R=t.XpG();return t.Njj(R.startVerificationProces())}),t.EFF(17),t.nI1(18,"translate"),t.k0s()()()()}
1if(2&y){const f=t.XpG();t.R7$(4),t.SpI(" ",t.bMT(5,8,"ONBOARDING_PAGE.CHECK_REQUEST_MITEK")," "),t.R7$(3),t.SpI(" ",t.bMT(8,10,"ONBOARDING_PAGE.CHECK_REQUEST_MITEK_SUBTITLE")," "),t.R7$(3),t.SpI(" ",t.bMT(11,12,"ONBOARDING.ADDRESS.REQUIRED_FIELDS")," "),t.R7$(3),t.Y8G("form",null==f.formGroup?null:f.formGroup.get("id"))("data",f.idInput),t.R7$(2),t.Y8G("variant","black")("ariaLabel",t.bMT(16,14,"ONBOARDING.COMMON.DNI_ACCEPT")),t.R7$(2),t.SpI(" ",t.bMT(18,16,"ONBOARDING.COMMON.ACEPT")," ")}}function yt(y,ft){1&y&&(t.j41(0,"p",16),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&y&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"ONBOARDING_PAGE.WRONG_OTP")," "))}function Ht(y,ft){if(1&y&&(t.j41(0,"span",20),t.EFF(1),t.nI1(2,"translate"),t.nI1(3,"async"),t.nI1(4,"translate"),t.k0s()),2&y){const f=t.XpG(2);t.BMQ("aria-live",f.resendButtonFocused?"polite":"off"),t.R7$(),t.E5c(" (",t.bMT(2,4,"ONBOARDING.STEP1.AD_OTP_VERIFICATION.RESEND_CODE_LABEL1"),"",t.bMT(3,6,f.counter$),"",t.bMT(4,8,"ONBOARDING.STEP1.AD_OTP_VERIFICATION.RESEND_CODE_LABEL2"),") ")}}function $t(y,ft){if(1&y){const f=t.RV6();t.j41(0,"article",6)(1,"div",7)(2,"p",8)(3,"b"),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.j41(6,"span",10),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.j41(9,"div",11),t.nrm(10,"app-input",15),t.DNE(11,yt,3,3,"p",16),t.k0s(),t.j41(12,"div",13)(13,"app-button",14),t.nI1(14,"translate"),t.bIt("clicked",function(){t.eBV(f);const R=t.XpG();return t.Njj(R.markAllAsTouched())}),t.EFF(15),t.nI1(16,"translate"),t.k0s()(),t.j41(17,"div",17)(18,"div",18)(19,"app-button",19),t.bIt("clicked",function(){t.eBV(f);const R=t.XpG();return t.Njj(R.requestOTP())})("focusin",function(){t.eBV(f);const R=t.XpG();return t.Njj(R.resendButtonFocused=!0)})("focusout",function(){t.eBV(f);const R=t.XpG();return t.Njj(R.resendButtonFocused=!1)}),t.j41(20,"b")(21,"u"),t.EFF(22),t.nI1(23,"translate"),t.k0s()(),t.DNE(24,Ht,5,10,"span",20),t.k0s(),t.j41(25,"div"),t.EFF(26),t.nI1(27,"translate"),t.k0s()()()()()}if(2&y){const f=t.XpG();t.R7$(4),t.Lme(" ",t.bMT(5,14,"ONBOARDING_PAGE.WE_SENT_YOU_A_SECURITY_CODE")," ",f.partialPhoneNumber," "),t.R7$(3),t.SpI(" ",t.bMT(8,16,"ONBOARDING.ADDRESS.REQUIRED_FIELDS")," "),t.R7$(3),t.Y8G("form",f.verificationCodeFormControl)("data",f.verificationCodeInput),t.R7$(),t.vxM(11,f.wrongValidationCode?11:-1),t.R7$(2),t.Y8G("variant","black")("ariaLabel",t.bMT(14,18,"ONBOARDING.COMMON.OTP_ACCEPT")),t.R7$(2),t.SpI(" ",t.bMT(16,20,"ONBOARDING.COMMON.ACEPT")," "),t.R7$(5),t.HbH(f.requestOTPAllowed?"link-style":"link-style-disabled"),t.R7$(2),t.SpI(" ",t.bMT(23,22,"ONBOARDING.STEP1.AD_OTP_VERIFICATION.RESEND_CODE")," "),t.R7$(2),t.vxM(24,f.requestOTPAllowed?-1:24),t.R7$(2),t.SpI(" ",t.bMT(27,24,"ONBOARDING.STEP1.AD_OTP_VERIFICATION.CONTACT_IF_ERROR.1")," ")}}const Vt=[{path:"",component:Lt,children:[{path:"id-check",component:Tt},{path:"ad-id-check",component:a},{path:"send-sms",component:Mt,canActivate:[c.k]},{path:"continue-mobile",component:V,canActivate:[c.k]},{path:"mitek-consent",component:et,canActivate:[c.k]},{path:"check-status-mitek",component:st,canActivate:[c.k]},{path:"mitek-verification",component:H,canActivate:[c.k]},{path:"request-card",component:u.B,data:{content:{title:"ONBOARDING.STEP2.REQUEST_CARD_TEXT",subtitle:"ONBOARDING.STEP2.REQUEST_STATUS_CARD",input:{label:"ONBOARDING.STEP2.PLACEHOLDER_REQUEST_CONTRACT",maxlength:100,name:"213",type:"text"},buttons:[{name:"ONBOARDING.COMMON.BACK",action:"back",variant:"secondary"},{name:"ONBOARDING.COMMON.CONTINUE",action:"getDataByContract",variant:"primary"}],modal:{header:"ONBOARDING.STEP2.REQUEST_CARD.MODAL.HEADER",text:"ONBOARDING.STEP2.REQUEST_CARD.MODAL.TEXT"},validate:!0}}},{path:"continue-mobile-mitek",component:(()=>{class y{constructor(f,A,R,it,C,lt,v){this.formsService=f,this.router=A,this._storageService=R,this.otpService=it,this.cookieSrv=C,this._recaptchaV3Service=lt,this._genesysService=v,this.idInput={name:"id",type:"text",value:"",label:"ONBOARDING_PAGE.INTRODUCE_DNI_NIE",title:"ONBOARDING_PAGE.DNI_NIE_2",required:!0,disabled:!1,maxlength:9}
1,this.verificationCodeInput={name:"verificationCode",type:"number",value:"",label:"ONBOARDING.STEP1.AD_OTP_VERIFICATION.PLACEHOLDER",title:"ONBOARDING.STEP1.AD_OTP_VERIFICATION.HEAD_ALTERNATIVE",required:!0,disabled:!1,maxlength:6},this.documentId="",this.step=0,this.count=10,this.codeSMS="123456",this.repeats=0,this.MAX_REPEATS=3,this.partialPhoneNumber="",this.wrongValidationCode=!1,this.requestOTPAllowed=!0,this.resendButtonFocused=!1,this.formGroup=new vt.J3({id:new vt.hs("",[vt.k0.required,gt.G])}),this.verificationCodeFormControl=new vt.hs("",[vt.k0.required,Ct.Y,vt.k0.minLength(6),vt.k0.maxLength(6)])}startVerificationProces(){this.formGroup.markAllAsTouched(),this.formGroup.valid?(this.formGroup.valid&&this._storageService.setItem("document_number",this.formGroup.get("id").value.toUpperCase()),this._recaptchaV3Service.execute("captchaContinueRequest").pipe((0,N.s)(1)).subscribe(f=>{this.formsService.getResponseCode(f).pipe((0,N.s)(1)).subscribe(A=>{let R;A&&A.status&&(R=A),A&&A.body&&(R=A.body),("99"===R.response_code||204===R.status)&&this.requestOTP(),this.redirectSimple(R)})})):this.focusFirstInvalidField()}focusFirstInvalidField(){const f=Object.keys(this.formGroup.controls).find(A=>this.formGroup.get(A)?.invalid);f&&setTimeout(()=>{const A=document.querySelector(`[name="${f}"]`);A&&A.focus()},0)}redirectSimple(f){"1"===f.response_code&&this.router.navigate(["/wizard/step1/request-info"]),"2"===f.response_code&&this.router.navigate(["/wizard/step1/renew-card"]),"3"===f.response_code&&this.router.navigate(["/wizard/step5/go-client-area"]),"4"===f.response_code&&this.router.navigate(["/wizard/tceci/take-new-card"]),"5"===f.response_code&&this.router.navigate(["/wizard/tceci/request-info-tceci"]),"6"===f.response_code&&this.router.navigate(["/wizard/step1/previous-request-pending"]),"9"===f.response_code&&this.router.navigate(["/wizard/tceci/request-info-parents-card"])}requestOTP(){this._storageService.getItem("document_number")&&this.requestOTPAllowed?(this.prepareOtpRequestState(),this.requestLastRequest()):(0===this.step&&this.formGroup.markAllAsTouched(),1===this.step&&!this._storageService.getItem("document_number")&&(this.step=0))}prepareOtpRequestState(){this.count=60,this.verificationCodeFormControl.reset(),this.wrongValidationCode=!1}requestLastRequest(){const f="getLastRequest";this._recaptchaV3Service.execute(f).pipe((0,N.s)(1)).subscribe(A=>{this.formsService.getLastRequest(!0,A,f).pipe((0,N.s)(1)).subscribe(R=>this.handleLastRequestSuccess(R),()=>this.handleLastRequestError())})}handleLastRequestSuccess(f){this._storageService.setItem("request",f.request_data.request),this.cookieSrv.check("request_id")&&this.cookieSrv.delete("request_id"),this.cookieSrv.add("request_id",f.request_data.request),this._storageService.setItem("language",f.personal_data.language_code);const A="onboardingRequestOTPCaptchaMitek";this._recaptchaV3Service.execute(A).pipe((0,N.s)(1)).subscribe(R=>this.sendOtp(A,R))}sendOtp(f,A){this.otpService.sendSMS("crmIntegration",A,f).pipe((0,N.s)(1)).subscribe(R=>this.handleOtpSuccess(R),R=>this.handleOtpError(R),()=>this.startOtpCountdown())}handleOtpSuccess(f){this.identifier=f.identifier,this.partialPhoneNumber="*** *** "+f.recipient.telephone.number.slice(-3),this.step=1,this.requestOTPAllowed=!1}handleOtpError(f){console.error("ERROR: The SMS could NOT be sent:"+f)}startOtpCountdown(){this.counter$=(0,xt.O)(0,1e3).pipe((0,N.s)(this.count),(0,Pt.map)(()=>--this.count),(0,Ft.j)(()=>this.requestOTPAllowed=!0))}handleLastRequestError(){this._storageService.setItem("access","error-continue-request"),this.router.navigate(["/dashboard/onboarding/error"],{queryParams:{type:"continue-request"}})}markAllAsTouched(){this.verificationCodeFormControl.markAsTouched(),this.verificationCodeFormControl.valid?this.verificationCodeFormControl.valid&&this.otpService.validateSMS(this.identifier,this.verificationCodeFormControl.value).pipe((0,N.s)(1)).subscribe(f=>{if(f.tokenAuth){this.wrongValidationCode=!1;const A={dni:this._storageService.getItem("document_number").toUpperCase()};this._genesysService.updateData(A),this.router.navigate(["/dashboard/redirection"],{queryParams:{id:this._storageService.getItem("document_number").toUpperCase(),request:this._storageService.getItem("request"),auth:!0}})}else this.error=!0,this.wrongValidationCode=!0}):this.focusVerificationCodeField()}focusVerificationCodeField(){setTimeout(()=>{const f=document.querySelector(`[name="${this.verificationCodeInput.name}"]`);
1f&&f.focus()},0)}static{this.\u0275fac=function(A){return new(A||y)(t.rXU(e.f),t.rXU(i.Ix),t.rXU(E.n),t.rXU(St.x),t.rXU(U.T),t.rXU(X.ob),t.rXU(Y.w))}}static{this.\u0275cmp=t.VBU({type:y,selectors:[["app-continue-mobile-mitek"]],decls:12,vars:5,consts:[[1,"onboarding-card"],["id","main",1,"request-section"],[1,""],["data-ga-type","ga-page-onload","data-tag",'{"event":"custom_event","event_data":{"event_name":"redireccion_mitek_responsive","event_category":"redireccion_mitek_responsive","event_action":"onload_pagina","event_label":"pagina_redireccion_mitek_responsive"}}',1,"hidden"],["id","requestCardContent"],[1,"sr-only"],["id","requestTabContent"],[1,"request-content"],[1,"request-header"],[1,"request-subtitle"],[1,"required_fields"],[1,"form-group","form"],[3,"form","data"],[1,"align-center"],["id","submitRequestNumberForm",3,"clicked","variant","ariaLabel"],["autocomplete","one-time-code",3,"form","data"],["ngClass","mc-field-box__note__error",1,"mt-1"],[1,"align-center","otp-options"],[1,"otp-options-content"],["variant","plain",3,"clicked","focusin","focusout"],["aria-atomic","true"]],template:function(A,R){1&A&&(t.j41(0,"div",0)(1,"div")(2,"section",1)(3,"div",2),t.nrm(4,"span",3),t.j41(5,"div",4)(6,"section")(7,"h1",5),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.DNE(10,Xt,19,18,"article",6)(11,$t,28,26,"article",6),t.k0s()()()()()()),2&A&&(t.R7$(8),t.SpI(" ",t.bMT(9,3,"ONBOARDING_PAGE.CHECK_REQUEST_H1")," "),t.R7$(2),t.vxM(10,0===R.step?10:-1),t.R7$(),t.vxM(11,1===R.step?11:-1))},dependencies:[k.Qp,B.YU,D.S,B.Jj,n.D9],styles:[".request-header[_ngcontent-%COMP%]{font-size:1.125rem;line-height:1.6;margin:0}.required_fields[_ngcontent-%COMP%]{text-align:end;font-size:.85rem}.request-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:stretch;gap:25px}.align-center[_ngcontent-%COMP%]{text-align:center}.otp-options[_ngcontent-%COMP%]{margin-top:-16px;display:flex;justify-content:center}.otp-options-content[_ngcontent-%COMP%]{font-size:.875rem;display:flex;gap:16px;flex-direction:column}.otp-options-content[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:.875rem}.link-style[_ngcontent-%COMP%]:hover{cursor:pointer}.link-style-disabled[_ngcontent-%COMP%]{color:#333}.link-style-disabled[_ngcontent-%COMP%]:hover{cursor:default}@media (forced-colors: active){.link-style-disabled[_ngcontent-%COMP%]{color:#fafafa}}.link-style-count[_ngcontent-%COMP%]{color:#606060;text-decoration:underline}.onboarding-card[_ngcontent-%COMP%]{padding:53px 20% 20%}.request-subtitle[_ngcontent-%COMP%]{margin:0}@media only screen and (min-width: 768px){.onboarding-card[_ngcontent-%COMP%]{padding:53px 20% 20%}.request-section[_ngcontent-%COMP%]{margin:48px 19px 7px}.otp-options-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:.875rem}.otp-options-content[_ngcontent-%COMP%]:last-child{margin:0}.onboarding-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;margin:auto;padding:55px;gap:8px;width:638px;background:#fff;box-shadow:0 .5px 4px #0000001f,0 6px 13px #0000001f;border-radius:8px;position:relative}}@media (min-width: 1024px){.alternative-menu[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:8px;text-align:right}.client-attention[_ngcontent-%COMP%]{margin:0;float:right;padding-top:20px}.client-attention[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:block}.client-attention[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:last-of-type   a[_ngcontent-%COMP%]{color:#0a8250;font-size:18px;line-height:24px}.client-attention[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:first-of-type{color:#999;font-size:14px;line-height:18px}.form[_ngcontent-%COMP%]{border-radius:6px}.bold-underline[_ngcontent-%COMP%]{text-decoration:underline;font-weight:600;font-size:.875rem}}@media (min-width: 995px) and (max-width: 1040px){.onboarding-card[_ngcontent-%COMP%]{width:auto}}@media only screen and (min-width: 1440px){.form[_ngcontent-%COMP%]{border-radius:6px}}"]})}}return y})(),data:{title:"Continuar solicitud -  Onboarding Digital"}},{path:"error-mitek-validation",component:(()=>{class y{constructor(f,A,R){this._router=f,this._formsService=A,this.titleService=R,this.loading=!0,this.subtitle="ONBOARDING.ERROR_PAGE.NOT_VERIFY_IDENTITY_SUBTITLE"}ngOnInit(){this.titleService.setTitleFromTranslation("PAGE_TITLES.ERROR_DNI_VERIFICATION"),this._checkState()}
1goHome(){this._router.navigate(["/onboarding/main"])}_checkState(){this._formsService.getCRMState(null,!0).subscribe(f=>{const A=f.request_data.pre_status;A&&("43"===A||"55"===A||"56"===A)&&(this.subtitle="ONBOARDING.ERROR_PAGE.STATUS_"+f.request_data.pre_status)})}static{this.\u0275fac=function(A){return new(A||y)(t.rXU(i.Ix),t.rXU(e.f),t.rXU(I.E))}}static{this.\u0275cmp=t.VBU({type:y,selectors:[["app-error-mitek-validation"]],decls:18,vars:9,consts:[[1,"container","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-7"],[1,"row","d-flex","justify-content-center"],["src","./assets/icons/onboarding-card/warning-new-style.svg","alt","",1,"mc-image__medium-icon"],[1,"col","pl-3","pl-xl-0","text-center"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium","text-center"],[1,"row","d-flex","justify-content-center","spacer-top-high","spacer-bottom-high"],["tabindex","0","routerLink","/onboarding/main",1,"continueBtn","col","d-flex","justify-content-center","justify-content-lg-start","mb-lg-0","mb-3"]],template:function(A,R){1&A&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2),t.nrm(3,"img",3),t.k0s(),t.j41(4,"div",2)(5,"h1",4),t.EFF(6),t.nI1(7,"translate"),t.k0s()(),t.j41(8,"div",2)(9,"div",5)(10,"span"),t.EFF(11),t.nI1(12,"translate"),t.k0s()()(),t.j41(13,"div",6)(14,"a",7)(15,"span"),t.EFF(16),t.nI1(17,"translate"),t.k0s()()()()()),2&A&&(t.R7$(6),t.SpI(" ",t.bMT(7,3,"ONBOARDING.ERROR_PAGE.NOT_VERIFY_IDENTITY")," "),t.R7$(5),t.SpI(" ",t.bMT(12,5,R.subtitle)," "),t.R7$(5),t.SpI(" ",t.bMT(17,7,"ONBOARDING.ERROR_PAGE.START_AGAIN")," "))},dependencies:[i.Wk,n.D9],styles:[".secondary-button[_ngcontent-%COMP%]{visibility:visible!important}.continueBtn[_ngcontent-%COMP%]{align-items:center;background-color:#0a8250;border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--e-button-font-size);justify-content:space-between;line-height:1.2em;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;width:100%;text-decoration:none!important}.continueBtn[_ngcontent-%COMP%]:hover{background-color:#2b5033}.continueBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;flex-grow:1;text-align:center;line-height:25px;color:#fff!important;font-size:1rem}"]})}}return y})()}]}];let Ut=(()=>{class y{static{this.\u0275fac=function(A){return new(A||y)}}static{this.\u0275mod=t.$C({type:y})}static{this.\u0275inj=t.G2t({imports:[i.iI.forChild(Vt),i.iI]})}}return y})(),Kt=(()=>{class y{static{this.\u0275fac=function(A){return new(A||y)}}static{this.\u0275mod=t.$C({type:y})}static{this.\u0275inj=t.G2t({imports:[Ut,h.G]})}}return y})()},2099:(ut,tt,r)=>{r.d(tt,{c:()=>at});var h=r(95769),u=r.n(h),i=r(35773),c=r(13054),t=r(11201),s=r(88025),k=r(8160),o=r(57360),F=r(25662),n=r(18162),a=r(3390),e=r(73716),E=r(86574),b=r(29394),O=r(55902),x=r(7637),V=r(54348),G=r(84178),K=r(87514);const B=U=>({"d-none":U});let j=(()=>{class U{constructor(){this.endCapture=new t.bkB,this.processedImages={errorMessage:"",images:[]},this.images=[],this.loaded=!1,this.captureDocuments=new i.B7,this.language="ES",this.localizedStrings={languages:[]}}ngOnInit(){let Y="";this.captureDocuments.subscribe(J=>{this.startCapture()});const I=document.getElementsByTagName("script");let D=!1,w="";for(let J=0;J<I.length;J++){const Q=I[J];if(Q.src.includes("web-capture")){const dt=Q.src.split("/").slice(0,-1).join("/")+"/",Ot=new URL(dt);"/"!==Ot.pathname&&(w="/"+Ot.pathname.substring(1,Ot.pathname.length-1)),D=!0;break}}if(D){let J={};fetch(w+"/styles.json").then(Q=>Q.json()).then(Q=>{J=Q,fetch(w+"/localizedStrings.json").then(dt=>dt.json()).then(dt=>{this.localizedStrings=dt,ABBYY.WebCapture.init({licenseFilePath:"./MWC.ABBYY.License",wasmFilesPath:".",viewConfiguration:J}).then(()=>{}).catch(bt=>{Y="Error: "+bt.toString(),this.sendError(Y)})})})}else Y="No se encuentra el sdk de ABBYY, o los archivos de licencias, o los mensajes no est\xe1n en su ubicaci\xf3n correcta",this.sendError(Y)}startCapture(){const Y=this.localizedStrings.languages.find(D=>D.language.toLowerCase()===this.language.toLowerCase()),I={startPage:0,images:[],maxImagesCount:1,localizedStrings:Y?.messages};this.loaded=!0,this.processedImages.errorMessage="",ABBYY.WebCapture.capture(I).then(D=>{this.images=D,this.processedImages.images=D.map(w=>w.originalImage.split(",")[1]),this.sendEndCaptureEvent()}).catch(D=>{this.sendError("Error: "+D.toString())})}sendError(Y){this.processedImages.errorMessage=Y,this.processedImages.images=[],this.sendEndCaptureEvent()}sendEndCaptureEvent(){this.loaded=!1,this.endCapture.emit(this.processedImages)}static{this.\u0275fac=function(I){return new(I||U)}}static{this.\u0275cmp=t.VBU({type:U,selectors:[["capture-component"]],inputs:{captureDocuments:"captureDocuments",language:"language"},outputs:{endCapture:"endCapture"}
1,decls:2,vars:3,consts:[[1,"background",3,"ngClass"],["id","ABBYY_Capture_Module","display","none",1,"ABBYY_Capture_Module",2,"display","none"]],template:function(I,D){1&I&&(t.j41(0,"div",0),t.nrm(1,"div",1),t.k0s()),2&I&&t.Y8G("ngClass",t.eq3(1,B,!D.loaded))},dependencies:[K.YU],styles:[".background[_ngcontent-%COMP%]{position:fixed;top:0;left:0;height:100vh;width:100vw;background:white(0,0,0,.4);z-index:9;display:flex}  .ABBYY_Capture_Module{width:100%;height:100%;margin:auto}  .ABBYY_Capture_Module_BottomPanel_button{background-color:#0a8250!important;border-radius:8px!important}  .ABBYY_Capture_Module__ToolBar_button_img--retake,   .ABBYY_Capture_Module__ToolBar_button_img--rotate,   .ABBYY_Capture_Module__ToolBar_button_img--crop,   .ABBYY_Capture_Module__ToolBar_button_img--delete{background-color:#0a8250!important}  .ABBYY_Capture_Module__Message-Icon{background-color:#0a8250}  .ABBYY_Capture_Module__Message_Popup .ABBYY_Capture_Module__Message_Popup_Container{background-color:#fff}  .ABBYY_Capture_Module__Navbar_pager{display:none!important}  .ABBYY_Capture_Module .ABBYY_Capture_Module_CaptureView .ABBYY_Capture_Module__Message_Popup button{background-color:#0a8250!important}@media only screen and (min-width: 960px){  .ABBYY_Capture_Module{width:90%;height:90%;margin:auto}}"]})}}return U})();var P=r(53786);const L=["ocrDocument"];function H(U,X){1&U&&(t.j41(0,"small",14),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&U&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"FORM.ERRORS.REQUIRED")," "))}function N(U,X){1&U&&(t.j41(0,"small",19),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&U&&(t.R7$(),t.JRh(t.bMT(2,1,"ONBOARDING.SEND_DOCUMENTATION.SELECTION_MANDATORY")))}function $(U,X){1&U&&(t.nrm(0,"small",21),t.nI1(1,"translate")),2&U&&t.Y8G("innerHTML",t.bMT(1,1,"ONBOARDING.SEND_DOCUMENTATION.CHECK_1_DESCRIPTION"),t.npT)}function Z(U,X){1&U&&(t.nrm(0,"small",21),t.nI1(1,"translate")),2&U&&t.Y8G("innerHTML",t.bMT(1,1,"ONBOARDING.SEND_DOCUMENTATION.CHECK_2_DESCRIPTION"),t.npT)}function pt(U,X){1&U&&(t.nrm(0,"small",21),t.nI1(1,"translate")),2&U&&t.Y8G("innerHTML",t.bMT(1,1,"ONBOARDING.SEND_DOCUMENTATION.CHECK_3_DESCRIPTION"),t.npT)}function rt(U,X){if(1&U){const Y=t.RV6();t.j41(0,"div",22)(1,"div",44)(2,"img",45),t.nI1(3,"translate"),t.bIt("click",function(){t.eBV(Y);const D=t.XpG();return t.Njj(D.clearFile())})("keydown.enter",function(){t.eBV(Y);const D=t.XpG();return t.Njj(D.clearFile())}),t.k0s(),t.j41(4,"span",46),t.EFF(5),t.k0s()()()}if(2&U){const Y=t.XpG();t.R7$(2),t.Y8G("alt",t.bMT(3,2,"ONBOARDING.SEND_DOCUMENTATION.DELETE_DOCUMENTS")),t.R7$(3),t.JRh(null==Y.file?null:Y.file.name)}}let at=(()=>{class U{constructor(Y,I,D,w,J,Q,dt,Ot,bt,Tt){this.route=Y,this.microService=I,this.ocrService=D,this.formsService=w,this.modalService=J,this.router=Q,this._storageService=dt,this._documentationService=Ot,this.log=bt,this.titleService=Tt,this.professional=!!this._storageService.getItem("professional"),this._5MB=5242880,this._FORMATS=[".pdf",".jpg",".png"],this.formatError=!0,this.pdfDialog=!1,this.sizeError=!0,this.sizanotherFail=!1,this.intervalTime=5e3,this.maxNumOfRetries=5,this.statusOK="29",this.statusKO="35",this.holderRadio=[{value:"1",text:"ONBOARDING.SEND_DOCUMENTATION.CHECK_1"},{value:"2",text:"ONBOARDING.SEND_DOCUMENTATION.CHECK_2"},{value:"3",text:"ONBOARDING.SEND_DOCUMENTATION.CHECK_3"}],this.capture=new i.B7,this.language="ES",this.images={errorMessage:"",images:[]},this.errorMessage=!1,this.showHolderError=!1}ngOnInit(){this.titleService.setTitleFromTranslation("PAGE_TITLES.SEND_DOCUMENTATION"),this.route.data.subscribe(Y=>{this.form=Y.form,this.formsend=new c.J3({holder:new c.hs("1",[c.k0.required])})})}ngOnDestroy(){this.idInterval&&clearInterval(this.idInterval)}closeModal(Y){this.modalService.closeModal(Y)}onEndCapture(Y,I){this.file="webcapture"===I?this.dataURLtoFile("data:image/png;base64,"+Y.images[0],"captura.png"):this.input.nativeElement.files[0],this.isSupportedExtension()&&this.tooBigFile()}tooBigFile(){this.file.size>this._5MB?(this.sizeError=!0,this.formatError=!0,this.clearFile(),this.openModal("file")):this.sizeError=!1}isSupportedExtension(){return((I=this._FORMATS,D=this.file.name)=>{I.some(w=>D.endsWith(w))})?(this.formatError=!1,!0):(this.formatError=!0,this.sizeError=!0,this.clearFile(),this.openModal("file"),!1)}selectOption(){this.formsend.valid?this.input.nativeElement.click():(this.showHolderError=!this.formsend.get("holder").valid,this.errorMessage=!0)}onInputClick(Y){this.formsend.valid||(Y.preventDefault(),this.showHolderError=!this.formsend.get("holder").valid,this.errorMessage=!0)}onHolderSelect(){this.showHolderError=!1,this.errorMessage=!1}deleteFile(Y){u().remove(this.images.images,I=>I===Y)}clearFile(){this.file=null,this.input?.nativeElement&&(this.input.nativeElement.value="")}sendDocuments(){if(this.formsend.valid&&this.file&&!this.formatError&&!this.sizeError){const Y=u().cloneDeep(this.form.value);Y.additional_info.push({property_id:"BANK-BANK_AGR",value:"N"}),Y.additional_info.push({property_id:"BANK-DOCBANK",value:this.formsend.get("holder").value}),this.formsService.updateCRM(Y).subscribe(()=>{this.callOcrOwnership()},I=>{console.error(I)})}else this.showHolderError=!this.formsend.get("holder").valid,this.errorMessage=!0,this.focusFirstError()}focusFirstError(){setTimeout(()=>{if(this.formsend.get("holder").valid)this.file||this.input?.nativeElement&&this.input.nativeElement.focus();else{const Y=document.querySelector('input[name="holder"]');Y&&Y.focus()}},100)}callOcrOwnership(){const Y=this.form.get("bank_data").get("iban").value+this.form.get("bank_data").get("bank").value+this.form.get("bank_data").get("office").value+this.form.get("bank_data").get("control").value+this.form.get("bank_data").get("account").value;let I="",D="",w="";this.form.get("personal_data")&&this.form.get("personal_data").get("name")&&this.form.get("personal_data").get("name").value&&(I=this.form.get("personal_data").get("name").value),this.form.get("personal_data")&&this.form.get("personal_data").get("first_surname")&&this.form.get("personal_data").get("first_surname").value&&(D=this.form.get("personal_data").get("first_surname").value),this.form.get("personal_data")&&this.form.get("personal_data").get("last_surname")&&this.form.get("personal_data").get("last_surname").value&&(w=this.form.get("personal_data").get("last_surname").value);const J=this.formsend.get("holder").value;this.log.info("Document",`Image size: ${this.file.size}
1`),this.ocrService.ocrOwnershipRequest(this.file,Y,I,D,w,J).subscribe(Q=>{"OK"===Q.message&&this.nextStep()},Q=>{const dt=Q;dt.details?.description.endsWith("REST a la validaci\xf3n OCR")?this.openModal("anotherFail"):dt.details?.code.endsWith("_VALIDATE_EXTENSION")?this.openModal("file"):dt.details?.code.endsWith("_SENDOCRKAFKAMESSAGE")?this.openModal("anotherFail"):dt.details?.code.endsWith("_VALIDATE_KO")?this.openModal("holder"):dt.details?.code.endsWith("OWNERSHIP_OUTDATED_DOCUMENT")?this.openModal("date"):dt.message.endsWith("500 INTERNAL_SERVER_ERROR")?this.openModal("anotherFail"):dt.details?.code.endsWith("MS_POST_RQ_OCR_OWNERSHIP_IBAN_NO_VALIDO")?this.openModal("ibanFail"):dt.details?.code.endsWith("MS_POST_RQ_OCR_OWNERSHIP_TITULARIDAD_KO")?this.openModal("ownerKO"):this.openModal("anotherFail")},()=>{console.log("fin")})}openModal(Y){this.modalService.openModal(Y)}modalResponse(Y,I){this.modalService.closeModal(I);let D="./dashboard/onboarding";"authorized"==this._storageService.getItem("access")?D="./dashboard/onboarding-authorized":"authorized-request"==this._storageService.getItem("access")&&(D="./dashboard/onboarding-authorized-request"),Y||this.router.navigate([D])}nextStep(){this.router.navigate(["/wizard/step4/validating-documentation"])}dataURLtoFile(Y,I){const D=Y.split(","),w=D[0].match(/:(.*?);/)[1],J=atob(D[1]);let Q=J.length;const dt=new Uint8Array(Q);for(;Q--;)dt[Q]=J.charCodeAt(Q);return new File([dt],I,{type:w})}static{this.\u0275fac=function(I){return new(I||U)(t.rXU(s.nX),t.rXU(k.m),t.rXU(o.s),t.rXU(F.f),t.rXU(n.B),t.rXU(s.Ix),t.rXU(a.n),t.rXU(e._),t.rXU(E.g),t.rXU(b.E))}}static{this.\u0275cmp=t.VBU({type:U,selectors:[["app-send-documentation"]],viewQuery:function(I,D){if(1&I&&t.GBs(L,5),2&I){let w;t.mGM(w=t.lsd())&&(D.input=w.first)}},decls:111,vars:132,consts:[["ocrDocument",""],[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row","mb-3","d-lg-none"],[1,"col","pl-3","pl-xl-0"],["tabindex","0","routerLink","/wizard/step4/account-verification",1,"btn-back","secondary"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","arrow-left","width","24px","height","24px",1,"float-left"],[1,"row"],[1,"col","pl-3","pl-xl-0","spacer-bottom-low"],[1,"required"],[1,"row","col","pl-3","pl-xl-0","spacer-bottom-lowest"],[1,"row","spacer-bottom-low"],[1,"col","pl-3","pl-xl-0","no-padding-right"],["className","marginWidths","name","holder",3,"onClick","data","form"],["role","alert",1,"mt-2","mc-field-box__note__error"],[1,"spacer-bottom-low","col-10","w-100","mw-100","pr-0"],["onclick","this.value = null","id","input-file-id","multiple","","type","file","accept","application/pdf, image/png, image/jpeg, image/jpg, image/bmp",3,"change","click"],["for","input-file-id",1,"upload-doc"],["src","./assets/icons/onboarding-card/upload.svg","alt","",1,"files-box-img"],["id","file-error","role","alert",1,"mt-2","mc-field-box__note__error"],[1,"mt-3"],["role","alert",3,"innerHTML"],[1,"d-flex","mt-4"],[3,"endCapture","captureDocuments","language"],[1,"row","spacer-both-high","d-flex","justify-content-center"],["tabindex","0","routerLink","/wizard/step4/account-verification",1,"returnBtn","d-none","d-lg-flex"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-left","width","24px","height","24px",1,"float-left"],[1,"col","d-flex","justify-content-center","justify-content-lg-start",3,"clicked","ariaLabel"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"],["id","anotherFail",3,"confirm","cancel","outside","headline","confirmLabel","dismissible","error","ariaLive","ariaDescribedby"],["id","anotherFail-description"],["id","file",3,"confirm","cancel","outside","headline","confirmLabel","dismissible","error","ariaLive","ariaDescribedby"],["id","file-description"],["id","holder",3,"confirm","cancel","outside","headline","confirmLabel","dismissible","error","ariaLive","ariaDescribedby"],["id","holder-description"],["id","date",3,"cancel","outside","headline","dismissible","error","showActions","ariaLive","ariaDescribedby"],["id","date-description"],[1,"modal-error-info"],[1,"modal-error-info-text"],["variant","primary",3,"clicked"],["
1id","ibanFail",3,"cancel","outside","headline","dismissible","error","showActions","ariaLive","ariaDescribedby"],["id","ibanFail-description"],["id","ownerKO",3,"cancel","outside","headline","dismissible","error","showActions","ariaLive","ariaDescribedby"],["id","ownerKO-description"],[1,"files-box"],["role","button","src","./assets/icons/onboarding-card/aspa de cierre.svg","tabindex","0",1,"files-box-img",3,"click","keydown.enter","alt"],[1,"col-9","text-truncate","eci-text"]],template:function(I,D){if(1&I){const w=t.RV6();t.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"a",5),t.nI1(5,"translate"),t.nrm(6,"app-icon",6),t.k0s()()(),t.j41(7,"div",7)(8,"h1",4),t.EFF(9),t.nI1(10,"translate"),t.k0s()(),t.j41(11,"div",7)(12,"div",8)(13,"span"),t.EFF(14),t.nI1(15,"translate"),t.k0s()()(),t.j41(16,"span",9),t.EFF(17),t.nI1(18,"translate"),t.k0s(),t.j41(19,"form")(20,"fieldset")(21,"legend")(22,"span",10),t.EFF(23),t.nI1(24,"translate"),t.k0s()(),t.j41(25,"div",11)(26,"div",12)(27,"app-radio-button",13),t.bIt("onClick",function(){return t.eBV(w),t.Njj(D.onHolderSelect())}),t.k0s(),t.DNE(28,H,3,3,"small",14),t.k0s()(),t.j41(29,"div",15)(30,"input",16,0),t.bIt("change",function(Q){return t.eBV(w),t.Njj(D.onEndCapture(Q,"file"))})("click",function(Q){return t.eBV(w),t.Njj(D.onInputClick(Q))}),t.k0s(),t.j41(32,"label",17),t.nrm(33,"img",18),t.j41(34,"span"),t.EFF(35),t.nI1(36,"translate"),t.k0s()(),t.DNE(37,N,3,3,"small",19),t.j41(38,"div",20),t.DNE(39,$,2,3,"small",21)(40,Z,2,3,"small",21)(41,pt,2,3,"small",21),t.k0s(),t.DNE(42,rt,6,4,"div",22),t.j41(43,"capture-component",23),t.bIt("endCapture",function(Q){return t.eBV(w),t.Njj(D.onEndCapture(Q,"webcapture"))}),t.k0s()()()(),t.j41(44,"div",24)(45,"a",25),t.nI1(46,"translate"),t.j41(47,"span"),t.EFF(48),t.nI1(49,"translate"),t.nrm(50,"app-icon",26),t.k0s()(),t.j41(51,"app-button",27),t.nI1(52,"translate"),t.bIt("clicked",function(){return t.eBV(w),t.Njj(D.sendDocuments())}),t.j41(53,"span"),t.EFF(54),t.nI1(55,"translate"),t.nrm(56,"app-icon",28),t.k0s()()()()(),t.j41(57,"app-dialog",29),t.nI1(58,"translate"),t.nI1(59,"translate"),t.bIt("confirm",function(Q){return t.eBV(w),t.Njj(D.modalResponse(Q,"anotherFail"))})("cancel",function(Q){return t.eBV(w),t.Njj(D.modalResponse(Q,"anotherFail"))})("outside",function(Q){return t.eBV(w),t.Njj(D.modalResponse(Q,"anotherFail"))}),t.j41(60,"p",30),t.EFF(61),t.nI1(62,"translate"),t.k0s()(),t.j41(63,"app-dialog",31),t.nI1(64,"translate"),t.nI1(65,"translate"),t.bIt("confirm",function(Q){return t.eBV(w),t.Njj(D.modalResponse(Q,"anotherFail"))})("cancel",function(Q){return t.eBV(w),t.Njj(D.modalResponse(Q,"anotherFail"))})("outside",function(Q){return t.eBV(w),t.Njj(D.modalResponse(Q,"anotherFail"))}),t.j41(66,"p",32),t.EFF(67),t.nI1(68,"translate"),t.k0s()(),t.j41(69,"app-dialog",33),t.nI1(70,"translate"),t.nI1(71,"translate"),t.bIt("confirm",function(Q){return t.eBV(w),t.Njj(D.modalResponse(Q,"holder"))})("cancel",function(Q){return t.eBV(w),t.Njj(D.modalResponse(Q,"holder"))})("outside",function(Q){return t.eBV(w),t.Njj(D.modalResponse(Q,"holder"))}),t.j41(72,"p",34),t.EFF(73),t.nI1(74,"translate"),t.k0s()(),t.j41(75,"app-dialog",35),t.nI1(76,"translate"),t.bIt("cancel",function(Q){return t.eBV(w),t.Njj(D.modalResponse(Q,"date"))})("outside",function(Q){return t.eBV(w),t.Njj(D.modalResponse(Q,"date"))}),t.j41(77,"p",36),t.EFF(78),t.nI1(79,"translate"),t.k0s(),t.j41(80,"div",37)(81,"span",38),t.EFF(82),t.nI1(83,"translate"),t.k0s(),t.j41(84,"app-button",39),t.bIt("clicked",function(){return t.eBV(w),t.Njj(D.closeModal("date"))}),t.EFF(85),t.nI1(86,"translate"),t.k0s()()(),t.j41(87,"app-dialog",40),t.nI1(88,"translate"),t.bIt("cancel",function(Q){return t.eBV(w),t.Njj(D.modalResponse(Q,"date"))})("outside",function(Q){return t.eBV(w),t.Njj(D.modalResponse(Q,"date"))}),t.j41(89,"p",41),t.EFF(90),t.nI1(91,"translate"),t.k0s(),t.j41(92,"div",37)(93,"span",38),t.EFF(94),t.nI1(95,"translate"),t.k0s(),t.j41(96,"app-button",39),t.bIt("clicked",function(){return t.eBV(w),t.Njj(D.closeModal("ibanFail"))}),t.EFF(97),t.nI1(98,"translate"),t.k0s()()(),t.j41(99,"app-dialog",42),t.nI1(100,"translate"),t.bIt("cancel",function(Q){return t.eBV(w),t.Njj(D.modalResponse(Q,"date"))})("outside",function(Q){return t.eBV(w),t.Njj(D.modalResponse(Q,"date"))}),t.j41(101,"p",43),t.EFF(102),t.nI1(103,"translate"),t.k0s(),t.j41(104,"div",37)(105,"span",38),t.EFF(106),t.nI1(107,"translate"),t.k0s(),t.j41(108,"app-button",39),t.bIt("clicked",function(){return t.eBV(w),t.Njj(D.closeModal("ownerKO"))}),t.EFF(109),t.nI1(110,"translate"),t.k0s()()()}
12&I&&(t.R7$(4),t.BMQ("aria-label",t.bMT(5,70,"ONBOARDING.COMMON.BACK_LABEL")),t.R7$(5),t.SpI(" ",t.bMT(10,72,"ONBOARDING.SEND_DOCUMENTATION.SEND_DOCUMENTATION")," "),t.R7$(5),t.SpI(" ",t.bMT(15,74,"ONBOARDING.SEND_DOCUMENTATION.MORE_INFORMATION2")," "),t.R7$(3),t.JRh(t.bMT(18,76,"ONBOARDING.ADDRESS.REQUIRED_FIELDS")),t.R7$(6),t.SpI(" ",t.bMT(24,78,"ONBOARDING.SEND_DOCUMENTATION.ACCOUNT_HOLDER")," "),t.R7$(4),t.Y8G("data",D.holderRadio)("form",null==D.formsend?null:D.formsend.get("holder")),t.R7$(),t.vxM(28,D.showHolderError?28:-1),t.R7$(2),t.BMQ("aria-invalid",D.errorMessage&&!D.file?"true":"false")("aria-describedby",D.errorMessage&&!D.file?"file-error":null),t.R7$(5),t.SpI(" ",t.bMT(36,80,"ONBOARDING.SEND_DOCUMENTATION.ADD_DOCUMENT")," "),t.R7$(2),t.vxM(37,D.errorMessage&&!D.file?37:-1),t.R7$(2),t.vxM(39,1==(null==D.formsend?null:D.formsend.get("holder").value)?39:-1),t.R7$(),t.vxM(40,2==(null==D.formsend?null:D.formsend.get("holder").value)?40:-1),t.R7$(),t.vxM(41,3==(null==D.formsend?null:D.formsend.get("holder").value)?41:-1),t.R7$(),t.vxM(42,D.file?42:-1),t.R7$(),t.Y8G("captureDocuments",D.capture)("language",D.language),t.R7$(2),t.BMQ("aria-label",t.bMT(46,82,"ONBOARDING.COMMON.BACK_LABEL")),t.R7$(3),t.SpI(" ",t.bMT(49,84,"ONBOARDING.COMMON.BACK")," "),t.R7$(3),t.Y8G("ariaLabel",t.bMT(52,86,"ONBOARDING.COMMON.CONTINUE_LABEL")),t.R7$(3),t.SpI(" ",t.bMT(55,88,"ONBOARDING.COMMON.CONTINUE")," "),t.R7$(3),t.FS9("headline",t.bMT(58,90,"ONBOARDING.SEND_DOCUMENTATION.ERROR_OCR_VALIDATION")),t.FS9("confirmLabel",t.bMT(59,92,"ONBOARDING.COMMON.CLOSE")),t.Y8G("dismissible",!1)("error",!0)("ariaLive","assertive")("ariaDescribedby","anotherFail-description"),t.R7$(4),t.SpI(" ",t.bMT(62,94,"ONBOARDING.SEND_DOCUMENTATION.ERROR_OCR_VALIDATION")," "),t.R7$(2),t.FS9("headline",t.bMT(64,96,"ONBOARDING.STEP3.SEND_DOCUMENTATION.FILE_DIALOG.HEAD")),t.FS9("confirmLabel",t.bMT(65,98,"ONBOARDING.COMMON.CLOSE")),t.Y8G("dismissible",!0)("error",!0)("ariaLive","assertive")("ariaDescribedby","file-description"),t.R7$(4),t.SpI(" ",t.bMT(68,100,"ONBOARDING.STEP3.SEND_DOCUMENTATION.FILE_DIALOG.BODY")," "),t.R7$(2),t.FS9("headline",t.bMT(70,102,"ONBOARDING.STEP3.SEND_DOCUMENTATION.HOLDER_DIALOG.HEAD")),t.FS9("confirmLabel",t.bMT(71,104,"ONBOARDING.COMMON.CLOSE")),t.Y8G("dismissible",!0)("error",!0)("ariaLive","assertive")("ariaDescribedby","holder-description"),t.R7$(4),t.SpI(" ",t.bMT(74,106,"ONBOARDING.STEP3.SEND_DOCUMENTATION.HOLDER_DIALOG.BODY")," "),t.R7$(2),t.FS9("headline",t.bMT(76,108,"ONBOARDING.STEP3.SEND_DOCUMENTATION.DATE.HEAD")),t.Y8G("dismissible",!0)("error",!0)("showActions",!1)("ariaLive","assertive")("ariaDescribedby","date-description"),t.R7$(3),t.SpI(" ",t.bMT(79,110,"ONBOARDING.STEP3.SEND_DOCUMENTATION.DATE.BODY")," "),t.R7$(4),t.JRh(t.bMT(83,112,"ONBOARDING.STEP3.SEND_DOCUMENTATION.DATE.FOOTER")),t.R7$(3),t.SpI(" ",t.bMT(86,114,"ONBOARDING.COMMON.CLOSE")," "),t.R7$(2),t.FS9("headline",t.bMT(88,116,"ONBOARDING.STEP3.SEND_DOCUMENTATION.IBAN.HEAD")),t.Y8G("dismissible",!0)("error",!0)("showActions",!1)("ariaLive","assertive")("ariaDescribedby","ibanFail-description"),t.R7$(3),t.SpI(" ",t.bMT(91,118,"ONBOARDING.STEP3.SEND_DOCUMENTATION.IBAN.BODY")," "),t.R7$(4),t.JRh(t.bMT(95,120,"ONBOARDING.STEP3.SEND_DOCUMENTATION.IBAN.FOOTER")),t.R7$(3),t.SpI(" ",t.bMT(98,122,"ONBOARDING.COMMON.CLOSE")," "),t.R7$(2),t.FS9("headline",t.bMT(100,124,"ONBOARDING.STEP3.SEND_DOCUMENTATION.OWNER_KO.HEAD")),t.Y8G("dismissible",!0)("error",!0)("showActions",!1)("ariaLive","assertive")("ariaDescribedby","ownerKO-description"),t.R7$(3),t.SpI(" ",t.bMT(103,126,"ONBOARDING.STEP3.SEND_DOCUMENTATION.OWNER_KO.BODY")," "),t.R7$(4),t.JRh(t.bMT(107,128,"ONBOARDING.STEP3.SEND_DOCUMENTATION.OWNER_KO.FOOTER")),t.R7$(3),t.SpI(" ",t.bMT(110,130,"ONBOARDING.COMMON.CLOSE")," "))},dependencies:[s.Wk,O.Qp,x.m,V.R,G.d,j,c.qT,c.cb,c.cV,P.D9],styles:[".customCheckbox[_ngcontent-%COMP%]{top:19px;left:15px}.modal-error-info[_ngcontent-%COMP%]{display:flex;align-items:center;gap:30px;justify-content:space-between}.modal-error-info-text[_ngcontent-%COMP%]{font-size:13px;line-height:20px;color:#606060}a[_ngcontent-%COMP%]{color:#0a8250;text-decoration:underline}.radio[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:flex}  .marginWidths .radio{padding-bottom:10px}.files-box[_ngcontent-%COMP%]{position:relative;width:360px;height:70px;border:1px solid #0a8250;box-sizing:border-box;border-radius:6px;display:flex;justify-content:center;align-items:center;background:#fff}.files-box[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{color:#0a8250;margin:0;cursor:pointer}.files-box-img[_ngcontent-%COMP%]{position:absolute;
1left:20px;cursor:pointer}input[type=file][_ngcontent-%COMP%]{display:block;width:70%;height:var(--e-button-min-height);position:relative;bottom:calc(-1 * var(--e-button-min-height));z-index:0}.upload-doc[_ngcontent-%COMP%]{display:flex;gap:1rem;border:1px solid #0a8250;border-radius:var(--e-button-radius);align-items:center;min-height:var(--e-button-min-height);cursor:pointer;background-color:#fff;position:relative;justify-content:center;width:70%}.upload-doc[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{position:inherit;left:0}.upload-doc[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#0a8250;margin:0;cursor:pointer}.required[_ngcontent-%COMP%]{display:flex;margin-bottom:2rem;justify-content:flex-end}@media (max-width: 320px){.files-box[_ngcontent-%COMP%]{width:100%}}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer!important}.eci-text[_ngcontent-%COMP%]{color:#0a8250;margin-left:3rem}.secondary[_ngcontent-%COMP%]{position:fixed;top:13px;left:15px;background-color:transparent;background-repeat:no-repeat;border:none;cursor:pointer;overflow:hidden;outline:none;z-index:100001}.secondary[_ngcontent-%COMP%]   app-icon[_ngcontent-%COMP%]{color:#000}.continueBtn[_ngcontent-%COMP%]{align-items:center;background-color:#0a8250;border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--e-button-font-size);justify-content:space-between;line-height:1.2em;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;width:100%;text-decoration:none!important}.continueBtn[_ngcontent-%COMP%]:hover{background-color:#2b5033}.continueBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;flex-grow:1;text-align:center;line-height:25px;color:#fff!important;font-size:1rem}.returnBtn[_ngcontent-%COMP%]{background-color:#fff;box-shadow:inset 0 0 0 .0625rem #0a8250;max-width:var(--e-button-max-width);border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;text-decoration:none!important;justify-content:center;align-items:center;display:flex;margin-right:1rem}.returnBtn[_ngcontent-%COMP%]:hover{background-color:#0a8250}.returnBtn[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%]{color:#fff}.returnBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#0a8250;font-size:var(--e-button-font-size)}.right-align[_ngcontent-%COMP%]{text-align:right}.right-align[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#333}.no-padding-right[_ngcontent-%COMP%]{padding-right:0}"]})}}return U})()},10011:(ut,tt,r)=>{r.d(tt,{a:()=>$});var h=r(95769),u=r.n(h),i=r(35773),c=r(13054),t=r(11201),s=r(88025),k=r(8160),o=r(57360),F=r(25662),n=r(18162),a=r(3390),e=r(73716),E=r(86574),b=r(29394),O=r(55902),x=r(7637),V=r(54348),G=r(84178),K=r(53786);const B=["ocrDocument"];function j(Z,pt){1&Z&&(t.j41(0,"div",14)(1,"small",32),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&Z&&(t.R7$(2),t.JRh(t.bMT(3,1,"ONBOARDING.SEND_DOCUMENTATION.SELECTION_MANDATORY2")))}function P(Z,pt){1&Z&&(t.nrm(0,"small",16),t.nI1(1,"translate")),2&Z&&t.Y8G("innerHTML",t.bMT(1,1,"ONBOARDING.SEND_DOCUMENTATION.CHECK_4_DESCRIPTION"),t.npT)}function L(Z,pt){1&Z&&(t.nrm(0,"small",16),t.nI1(1,"translate")),2&Z&&t.Y8G("innerHTML",t.bMT(1,1,"ONBOARDING.SEND_DOCUMENTATION.CHECK_5_DESCRIPTION"),t.npT)}function H(Z,pt){1&Z&&(t.nrm(0,"small",16),t.nI1(1,"translate")),2&Z&&t.Y8G("innerHTML",t.bMT(1,1,"ONBOARDING.SEND_DOCUMENTATION.CHECK_6_DESCRIPTION"),t.npT)}function N(Z,pt){if(1&Z){const rt=t.RV6();t.j41(0,"div",17)(1,"div",33)(2,"img",34),t.nI1(3,"translate"),t.bIt("click",function(){t.eBV(rt);const U=t.XpG();return t.Njj(U.clearFile())})("keydown.enter",function(){t.eBV(rt);const U=t.XpG();return t.Njj(U.clearFile())}),t.k0s(),t.j41(4,"span",35),t.EFF(5),t.k0s()()()}if(2&Z){const rt=t.XpG();t.R7$(2),t.Y8G("alt",t.bMT(3,2,"ONBOARDING.SEND_DOCUMENTATION.DELETE_DOCUMENTS")),t.R7$(3),t.JRh(null==rt.file?null:rt.file.name)}}let $=(()=>{class Z{constructor(rt,at,U,X,Y,I,D,w,J,Q){this.route=rt,this.microService=at,this.ocrService=U,this.formsService=X,this.modalService=Y,this.router=I,this._storageService=D,this._documentationService=w,this.log=J,this.titleService=Q,this.files=[],this.professional=!!this._storageService.getItem("professional"),this._5MB=5242880,this._FORMATS=[".pdf",".jpg",".png"],this.formatError=!0,this.pdfDialog=!1,this.sizeError=!0,this.sizanotherFail=!1,this.intervalTime=5e3,this.maxNumOfRetries=5,this.statusOK="29",this.statusKO="35",this.holderRadio2=[{value:"1",text:"ONBOARDING.SEND_DOCUMENTATION.CHECK_4"},{value:"2",text:"ONBOARDING.SEND_DOCUMENTATION.CHECK_5"},{value:"3",text:"ONBOARDING.SEND_DOCUMENTATION.CHECK_6"}],this.capture=new i.B7,this.language="ES",this.images={errorMessage:"",images:[]},this.errorMessage=!1}ngOnInit(){this.titleService.setTitleFromTranslation("PAGE_TITLES.SEND_DOCUMENTATION"),this.route.data.subscribe(rt=>{this.form=rt.form,this.formsend=new c.J3({holder2:new c.hs("1",[c.k0.required])})})}ngOnDestroy(){this.idInterval&&clearInterval(this.idInterval)}
1onEndCapture(rt,at){this.files.length+this.input.nativeElement.files.length>1?this.openModal("error"):this.file=this.input.nativeElement.files[0],this.isSupportedExtension()&&this.tooBigFile()}tooBigFile(){this.file.size>this._5MB?(this.sizeError=!0,this.formatError=!0,this.clearFile(),this.openModal("file")):this.sizeError=!1}isSupportedExtension(){return((at=this._FORMATS,U=this.file.name)=>{at.some(X=>U.endsWith(X))})?(this.formatError=!1,!0):(this.formatError=!0,this.sizeError=!0,this.clearFile(),this.openModal("file"),!1)}selectOption2(){this.formsend.valid?this.input.nativeElement.click():this.errorMessage=!0}deleteFile(rt){const at=this.files.findIndex(U=>rt.name===U.name);this.files.splice(at,1),this.input?.nativeElement&&(this.input.nativeElement.value="")}clearFile(){this.file=null,this.input?.nativeElement&&(this.input.nativeElement.value="")}sendDocuments(){if(this.formsend.valid&&this.file&&!this.formatError&&!this.sizeError){const rt=u().cloneDeep(this.form.value);rt.additional_info.push({property_id:"BANK-DOCINGR",value:this.formsend.get("holder2").value}),this.formsService.updateCRM(rt).subscribe(()=>{this.callOcrOwnership()},at=>{console.error(at)})}else this.errorMessage=!0,this.focusFirstError()}callOcrOwnership(){const rt=this.form.get("bank_data").get("iban").value+this.form.get("bank_data").get("bank").value+this.form.get("bank_data").get("office").value+this.form.get("bank_data").get("control").value+this.form.get("bank_data").get("account").value;let at="",U="",X="";this.form.get("personal_data")&&this.form.get("personal_data").get("name")&&this.form.get("personal_data").get("name").value&&(at=this.form.get("personal_data").get("name").value),this.form.get("personal_data")&&this.form.get("personal_data").get("first_surname")&&this.form.get("personal_data").get("first_surname").value&&(U=this.form.get("personal_data").get("first_surname").value),this.form.get("personal_data")&&this.form.get("personal_data").get("last_surname")&&this.form.get("personal_data").get("last_surname").value&&(X=this.form.get("personal_data").get("last_surname").value);const Y=this.formsend.get("holder2").value;this.log.info("Document 2",`Image size 2: ${this.file.size}`),this.ocrService.ocrOwnershipRequest2(this.file,rt,Y,at,U,X).subscribe(I=>{I.is_validated?this.nextStep():this.openModal("anotherFail")},I=>{const D=I;D.details?.description.endsWith("REST a la validaci\xf3n OCR")?this.openModal("anotherFail"):D.details?.code.endsWith("_VALIDATE_EXTENSION")?this.openModal("file"):D.message.endsWith("500 INTERNAL_SERVER_ERROR")?this.openModal("anotherFail"):D.details?.code.endsWith("_VALIDATE_KO")?this.openModal("holder2"):D.details?.code.endsWith("OWNERSHIP_OUTDATED_DOCUMENT")?this.openModal("date"):this.openModal("anotherFail")})}openModal(rt){this.modalService.openModal(rt)}modalResponse(rt,at){this.modalService.closeModal(at);let U="./dashboard/onboarding";"authorized"==this._storageService.getItem("access")?U="./dashboard/onboarding-authorized":"authorized-request"==this._storageService.getItem("access")&&(U="./dashboard/onboarding-authorized-request"),rt||this.router.navigate([U])}nextStep(){this.router.navigate(["/wizard/step4/validating-documentation2"])}dataURLtoFile(rt,at){const U=rt.split(","),X=U[0].match(/:(.*?);/)[1],Y=atob(U[1]);let I=Y.length;const D=new Uint8Array(I);for(;I--;)D[I]=Y.charCodeAt(I);return new File([D],at,{type:X})}getBackUrl(){return this.form&&(u().find(this.form.value.additional_info,X=>"BANK-BANK_AGR"===X.property_id),u().find(this.form.value.additional_info,X=>"BANK-DOCBANK"===X.property_id)),"/wizard/step4/send-documentation"}focusFirstError(){setTimeout(()=>{if(this.formsend.get("holder2").valid)this.file||this.input?.nativeElement&&this.input.nativeElement.focus();else{const rt=document.querySelector('input[name="holder2"]');rt&&rt.focus()}},100)}static{this.\u0275fac=function(at){return new(at||Z)(t.rXU(s.nX),t.rXU(k.m),t.rXU(o.s),t.rXU(F.f),t.rXU(n.B),t.rXU(s.Ix),t.rXU(a.n),t.rXU(e._),t.rXU(E.g),t.rXU(b.E))}}static{this.\u0275cmp=t.VBU({type:Z,selectors:[["app-send-documentation2"]],viewQuery:function(at,U
1){if(1&at&&t.GBs(B,5),2&at){let X;t.mGM(X=t.lsd())&&(U.input=X.first)}},decls:81,vars:102,consts:[["ocrDocument",""],[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],[1,"col","pl-3","pl-xl-0"],[1,"col","pl-3","pl-xl-0","spacer-bottom-low"],[1,"required"],[1,"row","col","pl-3","pl-xl-0","spacer-bottom-lowest"],[1,"row","spacer-bottom-low"],["className","marginWidths","name","holder2",3,"onClick","data","form"],["onclick","this.value = null","id","input-file-id","multiple","","type","file","accept","application/pdf, image/png, image/jpeg, image/jpg, image/bmp",3,"change","click"],["for","input-file-id",1,"upload-doc"],["src","./assets/icons/onboarding-card/upload.svg","alt","",1,"files-box-img"],[1,"row","spacer-bottom-low","col-12"],[1,"d-flex","mt-2"],[1,"mt-3"],["role","alert",3,"innerHTML"],[1,"d-flex","mt-4"],[1,"row","spacer-both-high","d-flex","justify-content-center"],["tabindex","0",1,"returnBtn","d-none","d-lg-flex",3,"routerLink"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-left","width","24px","height","24px",1,"float-left"],[1,"col","d-flex","justify-content-center","justify-content-lg-start",3,"clicked","variant","ariaLabel"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"],["id","anotherFail",3,"confirm","cancel","outside","headline","confirmLabel","dismissible","error","ariaDescribedby"],["id","anotherFail-description"],["id","file",3,"confirm","cancel","outside","headline","confirmLabel","dismissible","error","ariaDescribedby"],["id","file-description"],["id","error",3,"confirm","cancel","outside","headline","confirmLabel","dismissible","error"],["id","holder2",3,"confirm","cancel","outside","headline","confirmLabel","dismissible","error","ariaDescribedby"],["id","holder-description"],["id","date",3,"cancel","outside","headline","confirmLabel","dismissible","error","ariaDescribedby"],["id","date-description"],["id","file-error","role","alert",1,"mt-2","mc-field-box__note__error"],[1,"files-box"],["role","button","src","./assets/icons/onboarding-card/aspa de cierre.svg","tabindex","0",1,"files-box-img",3,"click","keydown.enter","alt"],[1,"col-9","text-truncate","eci-text"]],template:function(at,U
1){if(1&at){const X=t.RV6();t.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"h1",4),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.j41(6,"div",3)(7,"div",5)(8,"span"),t.EFF(9),t.nI1(10,"translate"),t.k0s()()(),t.j41(11,"span",6),t.EFF(12),t.nI1(13,"translate"),t.k0s(),t.j41(14,"form")(15,"fieldset")(16,"legend")(17,"span",7),t.EFF(18),t.nI1(19,"translate"),t.k0s()(),t.j41(20,"div",8)(21,"div",4)(22,"app-radio-button",9),t.bIt("onClick",function(){return t.eBV(X),t.Njj(U.errorMessage=!1)}),t.k0s()()(),t.j41(23,"input",10,0),t.nI1(25,"translate"),t.nI1(26,"translate"),t.bIt("change",function(I){return t.eBV(X),t.Njj(U.onEndCapture(I,"file"))})("click",function(){return t.eBV(X),t.Njj(U.selectOption2())}),t.k0s(),t.j41(27,"label",11),t.nrm(28,"img",12),t.j41(29,"span"),t.EFF(30),t.nI1(31,"translate"),t.k0s()(),t.j41(32,"div",13),t.DNE(33,j,4,3,"div",14),t.j41(34,"div",15),t.DNE(35,P,2,3,"small",16)(36,L,2,3,"small",16)(37,H,2,3,"small",16),t.k0s(),t.DNE(38,N,6,4,"div",17),t.k0s()()(),t.j41(39,"div",18)(40,"a",19),t.nI1(41,"translate"),t.j41(42,"span"),t.EFF(43),t.nI1(44,"translate"),t.nrm(45,"app-icon",20),t.k0s()(),t.j41(46,"app-button",21),t.nI1(47,"translate"),t.bIt("clicked",function(){return t.eBV(X),t.Njj(U.sendDocuments())}),t.EFF(48),t.nI1(49,"translate"),t.nrm(50,"app-icon",22),t.k0s()()()(),t.j41(51,"app-dialog",23),t.nI1(52,"translate"),t.nI1(53,"translate"),t.bIt("confirm",function(I){return t.eBV(X),t.Njj(U.modalResponse(I,"anotherFail"))})("cancel",function(I){return t.eBV(X),t.Njj(U.modalResponse(I,"anotherFail"))})("outside",function(I){return t.eBV(X),t.Njj(U.modalResponse(I,"anotherFail"))}),t.j41(54,"p",24),t.EFF(55),t.nI1(56,"translate"),t.k0s()(),t.j41(57,"app-dialog",25),t.nI1(58,"translate"),t.nI1(59,"translate"),t.bIt("confirm",function(I){return t.eBV(X),t.Njj(U.modalResponse(I,"anotherFail"))})("cancel",function(I){return t.eBV(X),t.Njj(U.modalResponse(I,"anotherFail"))})("outside",function(I){return t.eBV(X),t.Njj(U.modalResponse(I,"anotherFail"))}),t.j41(60,"p",26),t.EFF(61),t.nI1(62,"translate"),t.k0s()(),t.j41(63,"app-dialog",27),t.nI1(64,"translate"),t.nI1(65,"translate"),t.bIt("confirm",function(I){return t.eBV(X),t.Njj(U.modalResponse(I,"anotherFail"))})("cancel",function(I){return t.eBV(X),t.Njj(U.modalResponse(I,"anotherFail"))})("outside",function(I){return t.eBV(X),t.Njj(U.modalResponse(I,"anotherFail"))}),t.j41(66,"p"),t.EFF(67),t.nI1(68,"translate"),t.k0s()(),t.j41(69,"app-dialog",28),t.nI1(70,"translate"),t.nI1(71,"translate"),t.bIt("confirm",function(I){return t.eBV(X),t.Njj(U.modalResponse(I,"holder2"))})("cancel",function(I){return t.eBV(X),t.Njj(U.modalResponse(I,"holder2"))})("outside",function(I){return t.eBV(X),t.Njj(U.modalResponse(I,"holder2"))}),t.j41(72,"p",29),t.EFF(73),t.nI1(74,"translate"),t.k0s()(),t.j41(75,"app-dialog",30),t.nI1(76,"translate"),t.nI1(77,"translate"),t.bIt("cancel",function(I){return t.eBV(X),t.Njj(U.modalResponse(I,"date"))})("outside",function(I){return t.eBV(X),t.Njj(U.modalResponse(I,"date"))}),t.j41(78,"p",31),t.EFF(79),t.nI1(80,"translate"),t.k0s()()}2&at&&(t.R7$(4),t.SpI(" ",t.bMT(5,50,"ONBOARDING.SEND_DOCUMENTATION.SEND_DOCUMENTATION")," "),t.R7$(5),t.SpI(" ",t.bMT(10,52,"ONBOARDING.SEND_DOCUMENTATION.MORE_INFORMATION2")," "),t.R7$(3),t.JRh(t.bMT(13,54,"ONBOARDING.ADDRESS.REQUIRED_FIELDS")),t.R7$(6),t.SpI(" ",t.bMT(19,56,"ONBOARDING.SEND_DOCUMENTATION.REVENUE")," "),t.R7$(4),t.Y8G("data",U.holderRadio2)("form",null==U.formsend?null:U.formsend.get("holder2")),t.R7$(),t.BMQ("aria-label",U.file?t.bMT(25,58,"ONBOARDING.SEND_DOCUMENTATION.ADD_DOCUMENT")+": "+U.file.name:t.bMT(26,60,"ONBOARDING.SEND_DOCUMENTATION.ADD_DOCUMENT"))("aria-invalid",U.errorMessage&&!U.file?"true":"false")("aria-describedby",U.errorMessage&&!U.file?"file-error":null),t.R7$(7),t.SpI(" ",t.bMT(31,62,"ONBOARDING.SEND_DOCUMENTATION.ADD_DOCUMENT")," "),t.R7$(3),t.vxM(33,U.errorMessage&&!U.file?33:-1),t.R7$(2),t.vxM(35,1==(null==U.formsend?null:U.formsend.get("holder2").value)?35:-1),t.R7$(),t.vxM(36,2==(null==U.formsend?null:U.formsend.get("holder2").value)?36:-1),t.R7$(),t.vxM(37,3==(null==U.formsend?null:U.formsend.get("holder2").value)?37:-1),t.R7$(),t.vxM(38,U.file?38:-1),t.R7$(2),t.Y8G("routerLink",U.getBackUrl()),t.BMQ("aria-label",t.bMT(41,64,"ONBOARDING.COMMON.BACK_LABEL")),t.R7$(3),t.SpI(" ",t.bMT(44,66,"ONBOARDING.COMMON.BACK")," "),t.R7$(3),t.Y8G("variant","primary")("ariaLabel",t.bMT(47,68,"ONBOARDING.COMMON.CONTINUE_LABEL")),t.R7$(2),t.SpI(" ",t.bMT(49,70,"ONBOARDING.COMMON.CONTINUE")," "),t.R7$(3),t.FS9("headline",t.bMT(52,72,"ONBOARDING.SEND_DOCUMENTATION.ERROR_OCR_VALIDATION")),t.FS9("confirmLabel",t.bMT(53,74,"ONBOARDING.COMMON.CLOSE")),t.Y8G("dismissible",!1)("error",!0)("ariaDescribedby","anotherFail-description"),t.R7$(4),t.SpI(" ",t.bMT(56,76,"ONBOARDING.SEND_DOCUMENTATION.ERROR_OCR_VALIDATION")," "),t.R7$(2),t.FS9("headline",t.bMT(58,78,"ONBOARDING.STEP3.SEND_DOCUMENTATION.FILE_DIALOG.HEAD")),t.FS9("confirmLabel",t.bMT(59,80,"ONBOARDING.COMMON.CLOSE")),t.Y8G("dismissible",!0)("error",!0)("ariaDescribedby","file-description"),t.R7$(4),t.SpI(" ",t.bMT(62,82,"ONBOARDING.STEP3.SEND_DOCUMENTATION.FILE_DIALOG.BODY")," "),t.R7$(2),t.FS9("headline",t.bMT(64,84,"ONBOARDING.STEP3.SEND_DOCUMENTATION.ERROR_DIALOG.HEAD")),t.FS9("confirmLabel",t.bMT(65,86,"ONBOARDING.COMMON.CLOSE")),t.Y8G("dismissible",!0)("error",!0),t.R7$(4),t.SpI(" ",t.bMT(68,88,"ONBOARDING.STEP3.SEND_DOCUMENTATION.ERROR_DIALOG.BODY")," "),t.R7$(2),t.FS9("headline",t.bMT(70,90,"ONBOARDING.STEP3.SEND_DOCUMENTATION.HOLDER_DIALOG.HEAD")),t.FS9("confirmLabel",t.bMT(71,92,"ONBOARDING.COMMON.CLOSE")),t.Y8G("dismissible",!0)("error",!0)("ariaDescribedby","holder2-description"),t.R7$(4),t.SpI(" ",t.bMT(74,94,"ONBOARDING.STEP3.SEND_DOCUMENTATION.HOLDER_DIALOG.BODY")," "),t.R7$(2),t.FS9("headline",t.bMT(76,96,"ONBOARDING.STEP3.SEND_DOCUMENTATION.DATE.HEAD")),t.FS9("confirmLabel",t.bMT(77,98,"ONBOARDING.COMMON.CLOSE")),t.Y8G("dismissible",!0)("error",!0)("ariaDescribedby","date-description"),t.R7$(4),t.SpI(" ",t.bMT(80,100,"ONBOARDING.STEP3.SEND_DOCUMENTATION.DATE.BODY")," "))},dependencies:[s.Wk,O.Qp,x.m,V.R,G.d,c.qT,c.cb,c.cV,K.D9],styles:[".customCheckbox[_ngcontent-%COMP%]{top:19px;left:15px}a[_ngcontent-%COMP%]{color:#0a8250;text-decoration:underline}.radio[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:flex}  .marginWidths .radio{padding-bottom:10px}.required[_ngcontent-%COMP%]{display:flex;margin-bottom:2rem;justify-content:flex-end}.files-box[_ngcontent-%COMP%]{position:relative;width:360px;height:70px;border:1px solid #0a8250;box-sizing:border-box;border-radius:6px;display:flex;justify-content:center;align-items:center;color:#0a8250;background:#fff}.files-box-img[_ngcontent-%COMP%]{position:absolute;
1left:20px;cursor:pointer}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer!important}.eci-text[_ngcontent-%COMP%]{color:#0a8250;margin-left:3rem}.returnBtn[_ngcontent-%COMP%]{background-color:#fff;box-shadow:inset 0 0 0 .0625rem #0a8250;max-width:var(--e-button-max-width);border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;text-decoration:none!important;justify-content:center;align-items:center;display:flex;margin-right:1rem}.returnBtn[_ngcontent-%COMP%]:hover{background-color:#0a8250}.returnBtn[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%]{color:#fff}.returnBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#0a8250;font-size:var(--e-button-font-size)}input[type=file][_ngcontent-%COMP%]{display:block;width:70%;height:var(--e-button-min-height);position:relative;bottom:calc(-1 * var(--e-button-min-height));z-index:0}.upload-doc[_ngcontent-%COMP%]{display:flex;gap:1rem;border:1px solid #0a8250;border-radius:var(--e-button-radius);align-items:center;min-height:var(--e-button-min-height);cursor:pointer;background-color:#fff;position:relative;justify-content:center;width:70%}.upload-doc[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{position:inherit;left:0}.upload-doc[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#0a8250;margin:0;cursor:pointer}@media screen and (min-width: 1200px){.col-12[_ngcontent-%COMP%]{margin-left:-30px}}"]})}}return Z})()},73462:(ut,tt,r)=>{r.r(tt),r.d(tt,{Step3Module:()=>Wt});var h=r(13054),u=r(19767),i=r(90220),c=r(88025),t=r(84692),s=r(95769),k=r.n(s),o=r(20918);
1function F(T){return!T.value||/^[a-zA-Z\xc0-\xff\u0100-\u017e\xd1\xf1\s]+$/.test(T.value)?null:{VALID_ONLYLETTERS:!0}}function n(T){return 0===(T.value||"").trim().length?{required:!0}:null}var a=r(48678),e=r(11201),E=r(29394),b=r(25662),O=r(79716),x=r(3390),V=r(43982),G=r(2621),K=r(28962),B=r(55902),j=r(8088),P=r(83336),L=r(87514),H=r(53900),N=r(54348),$=r(53786);const Z=["inputElm"],pt=(T,ct,l)=>({disabled:T,"has-options":ct,"search-input--error":l});function rt(T,ct){if(1&T&&(e.j41(0,"label",2),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&T){const l=e.XpG();e.R7$(),e.SpI(" ",e.bMT(2,1,l.label),"\n")}}function at(T,ct){if(1&T){const l=e.RV6();e.j41(0,"button",10,1),e.nI1(2,"translate"),e.bIt("click",function(){e.eBV(l);const p=e.XpG(),m=e.sdS(4);return e.Njj(p.handleClearClick(m))}),e.EFF(3," x "),e.k0s()}2&T&&e.BMQ("aria-label",e.bMT(2,1,"ONBOARDING.SEARCH_INPUT.CLEAR_BUTTON"))}function U(T,ct){if(1&T){const l=e.RV6();e.j41(0,"div",13),e.bIt("mousedown",function(p){return e.eBV(l),e.Njj(p.stopPropagation())})("click",function(){const p=e.eBV(l).$implicit,m=e.XpG(2);return e.Njj(m.selectOption(p))})("keydown.enter",function(){const p=e.eBV(l).$implicit,m=e.XpG(2);return e.Njj(m.selectOption(p))})("keydown",function(p){e.eBV(l);const m=e.XpG(2);return e.Njj(m.onKeyDown(p))})("focus",function(){const p=e.eBV(l).$index,m=e.XpG(2);return e.Njj(m.setActiveDescendant(p))}),e.j41(1,"div",14),e.EFF(2),e.k0s()()}if(2&T){const l=ct.$implicit,d=ct.$index,p=e.XpG(2);e.Y8G("id","option-"+d),e.BMQ("aria-selected",(null==p.value?null:p.value.id)===l.id)("aria-label",l.name),e.R7$(2),e.JRh(l.name)}}function X(T,ct){if(1&T){const l=e.RV6();e.j41(0,"div",11),e.nI1(1,"translate"),e.bIt("mousedown",function(p){return e.eBV(l),e.Njj(p.stopPropagation())}),e.Z7z(2,U,3,4,"div",12,e.fX1),e.k0s()}if(2&T){const l=e.XpG();e.BMQ("aria-label",e.bMT(1,1,"ONBOARDING.SEARCH_INPUT.OPTIONS_AVAILABLE")),e.R7$(2),e.Dyx(l.options)}}function Y(T,ct){if(1&T&&e.nrm(0,"app-form-errors",9),2&T){const l=e.XpG();e.Y8G("errorId",l.errorId)("form",l._form)}}let I=(()=>{class T{get options(){return this._options}set options(l){this._options=l,this.updateAriaLiveMessage()}get form(){return this._form}set form(l){l&&(this._form=l)}constructor(l,d){this.spinner=l,this._injector=d,this._options=[],this.showList=!1,this.selectedOption=0,this.minChars=3,this.loading=!1,this.id="id",this.onlyOneWord=!1,this.optionsDeleted=!0,this.placeholder="",this.name="",this.label="",this.subtitle="",this.value=void 0,this.styles="",this.paginatorEvent=new e.bkB,this.selectOptionEvent=new e.bkB,this.clickIconEvent=new e.bkB,this.keyUpEvent=new e.bkB,this.enterEvent=new e.bkB,this.isDisabled=!1,this.isLoading=!1,this.selectedOptionName="",this.activeDescendantId=null,this.ariaLiveMessage="",this._form=new h.hs,this.onChange=p=>{},this.onTouch=()=>{}}ngOnInit(){this.spinner.isLoading.subscribe(l=>this.isLoading=l),this.setNgControl(),this.errorId||this.generateErrorId()}setNgControl(){this.ngControl=this._injector.get(h.vO,null)}getSelected(l){return this.selectedOption===l.id}onEnter(l){this.enterEvent.emit(l)}selectOption(l){this.selectedOption=l.id,this.selectOptionEvent.emit(l),this.value=l,this.onTouch(),this.onChange(this.value),this.showList=!1,this.selectedOptionName=l.name,this.ngControl?.control?.setErrors(null),this.keyUpEvent.emit(l.id),this.onBlur()}showFullOptionsList(){this.isDisabled||(this.showList=!this.showList,this.clickIconEvent.emit())}handleClearClick(l){this.isDisabled||(this.selectOptionEvent.emit({name:"",id:""}),this.value={name:"",id:""},this.keyUpEvent.emit(""),this.showList=!1,document.getElementById("search-input").value="",l.blur())}onInput(l){this.showList=this.openListOptions(l),this.value={id:"",name:l},this.activeDescendantId=null,this.onTouch(),this.onChange(this.value)}updateAriaLiveMessage(){this.ariaLiveMessage=this.showList&&this.options.length>0?`${this.options.length} ${1===this.options.length?"opci\xf3n disponible":"opciones disponibles"}`:this.showList&&0===this.options.length?"No hay opciones disponibles":""}setActiveDescendant(l){this.activeDescendantId="option-"+l}onKeyDown(l){if("Tab"===l.code&&this.showList){const d=l.target,p=d.classList.contains("item")&&!l.shiftKey&&!d.nextElementSibling,m=d.classList.contains("item")&&l.shiftKey&&!d.previousElementSibling;(p||m||"search-input"===d.id&&l.shiftKey)&&(this.showList=!1)}}onKeyUp(l){"Space"===l.code&&this.onlyOneWord&&(this.value=this.value.trim()),this.showNoResults=!1,this.keyUpEvent.emit(this.value.name.toUpperCase()),this.value||this.selectOptionEvent.emit({
1name:"",id:""})}writeValue(l){this.value=l}registerOnChange(l){this.onChange=l}registerOnTouched(l){this.onTouch=l}openListOptions(l){return l.length>=this.minChars}onBlur(){this.showList=!1}generateErrorId(){this.errorId||(this.errorId=`${this.name||"search-input"}-error`)}clickOutside(l){"string"==typeof l.target.className&&!l.target.className?.includes("search-input")&&!l.target.className?.includes("list-item")&&!l.target.className?.includes("stop")&&!l.target.id?.includes("scroll")&&this.showList&&(this.showList=!1)}handleEscapeKey(l){"Escape"===l.code&&this.showList&&(this.showList=!1,l.preventDefault())}static{this.\u0275fac=function(d){return new(d||T)(e.rXU(P.D),e.rXU(e.zZn))}}static{this.\u0275cmp=e.VBU({type:T,selectors:[["app-search-input"]],viewQuery:function(d,p){if(1&d&&e.GBs(Z,5),2&d){let m;e.mGM(m=e.lsd())&&(p.inputElm=m.first)}},hostBindings:function(d,p){1&d&&e.bIt("mousedown",function(_){return p.clickOutside(_)},!1,e.EBC)("keydown",function(_){return p.handleEscapeKey(_)},!1,e.EBC)},inputs:{options:"options",showList:"showList",selectedOption:"selectedOption",minChars:"minChars",loading:"loading",id:"id",onlyOneWord:"onlyOneWord",optionsDeleted:"optionsDeleted",placeholder:"placeholder",name:"name",label:"label",subtitle:"subtitle",value:"value",styles:"styles",form:"form",isDisabled:"isDisabled"},outputs:{paginatorEvent:"paginatorEvent",selectOptionEvent:"selectOptionEvent",clickIconEvent:"clickIconEvent",keyUpEvent:"keyUpEvent",enterEvent:"enterEvent"},features:[e.Jv_([{provide:h.kq,useExisting:(0,e.Rfq)(()=>T),multi:!0}])],decls:13,vars:25,consts:[["inputSearch",""],["closeSearch",""],["for","search-input",1,"mc-field-box--title"],["id","input-wrapper",1,"input-wrapper",3,"ngClass"],["role","combobox","aria-autocomplete","list","aria-controls","options-listbox","type","text","id","search-input","autocomplete","off","maxlength","157",1,"search-input",3,"keydown.enter","keydown","input","keyup","click","name","disabled","placeholder","value","title"],["role","button","tabindex","0",1,"close-icon"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","combo-arrow","width","15px","height","15px",1,"chevron",3,"click"],["role","status","aria-live","polite","aria-atomic","true",1,"sr-only"],["id","options-listbox","role","listbox",1,"option"],[1,"error",3,"errorId","form"],["role","button","tabindex","0",1,"close-icon",3,"click"],["id","options-listbox","role","listbox",1,"option",3,"mousedown"],["role","option","tabindex","0",1,"item","d-flex",3,"id"],["role","option","tabindex","0",1,"item","d-flex",3,"mousedown","click","keydown.enter","keydown","focus","id"],[1,"p-2","stop"]],template:function(d,p){if(1&d){const m=e.RV6();e.DNE(0,rt,3,3,"label",2),e.j41(1,"div")(2,"div",3)(3,"input",4,0),e.nI1(5,"translate"),e.nI1(6,"translate"),e.bIt("keydown.enter",function(){return e.eBV(m),e.Njj(p.showFullOptionsList())})("keydown",function(g){return e.eBV(m),e.Njj(p.onKeyDown(g))})("input",function(g){return e.eBV(m),e.Njj(p.onInput(g.target.value))})("keyup",function(g){return e.eBV(m),e.Njj(p.onKeyUp(g))})("click",function(){return e.eBV(m),e.Njj(p.showFullOptionsList())}),e.k0s(),e.DNE(7,at,4,3,"button",5),e.j41(8,"app-icon",6),e.bIt("click",function(){return e.eBV(m),e.Njj(p.showFullOptionsList())}),e.k0s()(),e.j41(9,"div",7),e.EFF(10),e.k0s(),e.DNE(11,X,4,3,"div",8)(12,Y,1,2,"app-form-errors",9),e.k0s()}2&d&&(e.vxM(0,p.label?0:-1),e.R7$(2),e.Y8G("ngClass",e.sMw(21,pt,p.isDisabled,p.showList,(null==p.form?null:p.form.touched)&&(null==p.form?null:p.form.errors))),e.BMQ("style",p.styles,e.$dS),e.R7$(),e.Y8G("name",p.name)("disabled",p.isDisabled)("placeholder",p.placeholder)("value",p.value?null==p.value?null:p.value.name:"")("title",(null==p.value?null:p.value.name)||(p.label?e.bMT(5,17,p.label):"")),e.BMQ("aria-label",e.bMT(6,19,"ONBOARDING.SEARCH_INPUT.SEARCH"))("aria-expanded",p.showList)("aria-activedescendant",p.activeDescendantId)("aria-invalid",null!=p.form&&p.form.invalid&&(null!=p.form&&p.form.dirty||null!=p.form&&p.form.touched)?"true":null)("aria-describedby",null!=p.form&&p.form.invalid&&(null!=p.form&&p.form.dirty||null!=p.form&&p.form.touched)?p.errorId:null),e.R7$(4),e.vxM(7,p.value&&""!==p.value.id?7:-1),e.R7$(3),e.SpI(" ",p.ariaLiveMessage," "),e.R7$(),e.vxM(11,p.showList?11:-1),e.R7$(),e.vxM(12,p._form?12:-1))},dependencies:[L.YU,H.Z,N.R,$.D9],styles:[".label[_ngcontent-%COMP%]{display:inline-block;margin-bottom:5px}.input-wrapper[_ngcontent-%COMP%]{line-height:1.6em;margin:0;appearance:none;background-color:#fff;border-radius:.375rem;border-width:0;box-shadow:inset 0 0 0 .0625rem #000;box-sizing:border-box;line-height:1.2em;padding:15px;width:100%}.input-wrapper.disabled[_ngcontent-%COMP%]{border-color:#d3d3d3;background-color:#d3d3d3}.input-wrapper.disabled[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{cursor:default;background-color:#d3d3d3;pointer-events:none;color:#212529}.input-wrapper.disabled[_ngcontent-%COMP%]     app-base-icon{pointer-events:none}.input-wrapper.disabled[_ngcontent-%COMP%]     app-base-icon .feci{color:#d3d3d3}.input-wrapper.disabled[_ngcontent-%COMP%]     app-base-icon:hover{cursor:default}.input-wrapper.error[_ngcontent-%COMP%]{border-color:red;box-shadow:0 0 3px 3px red}.input-wrapper.error[_ngcontent-%COMP%]     app-base-icon .feci{color:red}.input-wrapper[_ngcontent-%COMP%]:focus-within{box-shadow:inset 0 0 0 .062rem #005fcc;border:2px solid #005fcc}input[_ngcontent-%COMP%]{border:none;background-color:transparent;outline:none;padding:0 10px;width:100%;max-width:calc(100% - 29px);font-size:.875rem;white-space:nowrap;text-overflow:ellipsis}input[_ngcontent-%COMP%]:hover{cursor:pointer}input[_ngcontent-%COMP%]::placeholder{color:#606060}input[_ngcontent-%COMP%]:focus{outline:none!important;border:none}@media (forced-colors: active){input[_ngcontent-%COMP%]::placeholder, .search-input[_ngcontent-%COMP%]::placeholder{color:#fff!important}input[_ngcontent-%COMP%], .search-input[_ngcontent-%COMP%]{border:none!important;outline:none!important}.input-wrapper[_ngcontent-%COMP%]{border:2px solid white!important;box-shadow:none!important}}input[type=text][_ngcontent-%COMP%]:focus + .input-wrapper[_ngcontent-%COMP%]{box-shadow:inset 0 0 #000!important}.icon-right[_ngcontent-%COMP%]{cursor:pointer}.icon-clear[_ngcontent-%COMP%]{margin-right:rem-calc(3);cursor:pointer}.hide[_ngcontent-%COMP%]{visibility:hidden}.search-input--error[_ngcontent-%COMP%]{box-shadow:inset 0 0 0 .0625rem #cf3030}.chevron[_ngcontent-%COMP%]{position:relative;bottom:2px;right:-8px;
1cursor:pointer}.close-icon[_ngcontent-%COMP%]{position:relative;color:#cf3030!important;text-decoration:none!important;cursor:pointer;top:-3px;right:5px;border:none;background-color:transparent;padding:0}.close-icon[_ngcontent-%COMP%]:hover{text-decoration:none!important}.option[_ngcontent-%COMP%]{background:#fff;border:1px solid #e5e5e5;overflow:auto;position:absolute;max-height:280px;box-shadow:0 7px 12px 3px #0006;width:100%;z-index:2;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.item[_ngcontent-%COMP%]{cursor:pointer;font-size:14px;font-weight:400;outline-offset:-3px}.item[_ngcontent-%COMP%]:hover{background-color:#e5e5e5}.selected[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;padding-right:18px}#scroll[_ngcontent-%COMP%]::-webkit-scrollbar-track{box-shadow:inset 0 0 20px #0a825033;border-radius:10px;background-color:#fff0}#scroll[_ngcontent-%COMP%]::-webkit-scrollbar{width:12px}#scroll[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:6px;background-color:#0a8250}.p-2[_ngcontent-%COMP%]{padding:.5rem}.stop[_ngcontent-%COMP%]{width:100%}.search-result-container[_ngcontent-%COMP%]{display:contents}.search-result-absolute[_ngcontent-%COMP%]{display:contents;border:0;box-shadow:none}.search-result-list[_ngcontent-%COMP%]{max-height:none;margin:0;padding-left:0;background:transparent}.list-item[_ngcontent-%COMP%]{border:0;padding:0;background:transparent}.no-result-item[_ngcontent-%COMP%]{border-radius:0}"]})}}return T})();var D=r(96647),w=r(84178);function J(T,ct){1&T&&(e.j41(0,"div",23),e.nrm(1,"app-icon",24)(2,"span",25),e.nI1(3,"translate"),e.k0s()),2&T&&(e.R7$(2),e.Y8G("innerHTML",e.bMT(3,1,"ONBOARDING.ADDRESS.NO_UPDATE_SELECTED"),e.npT))}function Q(T,ct){if(1&T&&(e.j41(0,"div",17)(1,"div",3)(2,"span"),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"div",2),e.DNE(6,J,4,3,"div",23),e.k0s()()()),2&T){const l=e.XpG();e.R7$(3),e.JRh(e.bMT(4,2,"ONBOARDING.ADDRESS.IMPORTANT")),e.R7$(3),e.vxM(6,l.showUpdateMessage?6:-1)}}function dt(T,ct){1&T&&(e.j41(0,"div",17)(1,"div",3),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&T&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"ONBOARDING.ADDRESS.HIRE_CARD")," "))}function Ot(T,ct){if(1&T){const l=e.RV6();e.j41(0,"app-button",29),e.bIt("clicked",function(){e.eBV(l);const p=e.XpG(2);return e.Njj(p.togglePredictive("S"))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&T&&(e.Y8G("ariaChecked",!1)("ariaRole","switch"),e.R7$(),e.SpI(" ",e.bMT(2,3,"ONBOARDING.ADDRESS.MANUAL_ADDRESS")," "))}function bt(T,ct){if(1&T){const l=e.RV6();e.j41(0,"app-button",30),e.bIt("clicked",function(){e.eBV(l);const p=e.XpG(2);return e.Njj(p.togglePredictive("N"))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&T&&(e.Y8G("ariaChecked",!0)("ariaControls","manualAddress")("ariaRole","switch"),e.R7$(),e.SpI(" ",e.bMT(2,4,"ONBOARDING.ADDRESS.PREDICTIVE_ADDRESS")," "))}function Tt(T,ct){if(1&T&&(e.j41(0,"div",18)(1,"div",26),e.DNE(2,Ot,3,5,"app-button",27)(3,bt,3,6,"app-button",28),e.k0s()()),2&T){const l=e.XpG();e.R7$(2),e.vxM(2,"N"===(null==l.formLocal?null:l.formLocal.get("manual").value)?2:-1),e.R7$(),e.vxM(3,"S"===(null==l.formLocal?null:l.formLocal.get("manual").value)?3:-1)}}function Rt(T,ct){if(1&T&&(e.j41(0,"div",31),e.nrm(1,"app-input",37),e.k0s()),2&T){const l=e.XpG(2);e.R7$(),e.Y8G("form",null==l.formLocal?null:l.formLocal.get("postalCode"))("data",l.postalCodeInput)("required",!0)}}function Dt(T,ct){if(1&T){const l=e.RV6();e.j41(0,"div",17),e.DNE(1,Rt,2,3,"div",31),e.j41(2,"div",32)(3,"label",33),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"app-search-input",34),e.nI1(7,"translate"),e.bIt("keyUpEvent",function(p){e.eBV(l);const m=e.XpG();return e.Njj(m.onAddressSearch(p))})("selectOptionEvent",function(p){e.eBV(l);const m=e.XpG();return e.Njj(m.onAddressSelect(p))}),e.k0s()(),e.j41(8,"div",35),e.nrm(9,"app-input",36),e.k0s()()}if(2&T){const l=e.XpG();e.R7$(),e.vxM(1,"N"===(null==l.formLocal?null:l.formLocal.get("manual").value)?1:-1),e.R7$(3),e.SpI(" ",e.bMT(5,13,"ONBOARDING.ADDRESS.SEARCH_DIRECTION")," "),e.R7$(2),e.Y8G("form",null==l.formLocal?null:l.formLocal.get("direction"))("placeholder",e.bMT(7,15,"ONBOARDING.ADDRESS.SEARCH_DIRECTION"))("options",l.addressOptions)("showList",l.showAddressList)("value",l.addressSearchValue)("isDisabled",l.addressInput.disabled)("name","address-search")("styles","height: 5rem;"),e.R7$(3),e.Y8G("form",null==l.formLocal?null:l.formLocal.get("streetNumber"))("data",l.numberPredictiveInput)("required",!0)}}function Mt(T,ct){1&T&&(e.j41(0,"div",17)(1,"div",3),e.nrm(2,"app-icon",38)(3,"span",39),e.nI1(4,"translate"),e.k0s()()),2&T&&(e.R7$(3),e.Y8G("innerHTML",e.bMT(4,1,"ONBOARDING.ADDRESS.SPAIN_LOCATION"),e.npT))}function Bt(T,ct){if(1&T&&(e.j41(0,"div",17)(1,"div",3),e.nrm(2,"app-combo",40),e.k0s()()),2&T){const l=e.XpG();e.R7$(2),e.Y8G("form",null==l.formLocal?null:l.formLocal.get("streetType"))("data",l.typestreetData)}}function Gt(T,ct){if(1&T&&(e.j41(0,"div",17)(1,"div",41),e.nrm(2,"app-input",42),e.k0s()(),e.j41(3,"div",17)(4,"div",41),e.nrm(5,"app-input",36),e.k0s()()),2&T){const l=e.XpG();e.R7$(2),e.Y8G("form",null==l.formLocal?null:l.formLocal.get("streetName"))("data",l.namestreetInput)("upperCase",!0)("required",!0),e.R7$(3),e.Y8G("form",null==l.formLocal?null:l.formLocal.get("streetNumber"))("data",l.numberInput)("required",!0)}}function Lt(T,ct){if(1&T&&(e.j41(0,"div",17)(1,"div",43),e.nrm(2,"app-input",44),e.k0s(),e.j41(3,"div",43),e.nrm(4,"app-input",40),e.k0s()()),2&T){const l=e.XpG(2);e.R7$(2),e.Y8G("form",null==l.formLocal?null:l.formLocal.get("building"))("data",l.buildingInput)("xSmallLabel",!0),e.R7$(2),e.Y8G("form",null==l.formLocal?null:l.formLocal.get("stair"))("data",l.stairInput)}}function vt(T,ct){if(1&T&&(e.j41(0,"div",17)(1,"div",43),e.nrm(2,"app-input",40),e.k0s(),e.j41(3,"div",43),e.nrm(4,"app-input",40),e.k0s()()),2&T){const l=e.XpG(2);e.R7$(2),e.Y8G("form",null==l.formLocal?null:l.formLocal.get("floorNumber"))("data",l.floorInput),e.R7$(2),e.Y8G("form",null==l.formLocal?null:l.formLocal.get("door"))("data",l.doorInput)}}function wt(T,ct){if(1&T&&(e.j41(0,"div",17)(1,"div",41),e.nrm(2,"app-input",45),e.k0s()()),2&T){const l=e.XpG(2);e.R7$(2),e.Y8G("form",null==l.formLocal?null:l.formLocal.get("addressAdditionalInfo"))("data",l.additionalInfoInput)("upperCase",!0)}}function nt(T,ct){if(1&T&&(e.j41(0,"div"),e.DNE(1,Lt,5,5,"div",17)(2,vt,5,4,"div",17)(3,wt,3,3,"div",17),e.k0s()),2&T){const l=e.XpG();e.R7$(),e.vxM(1,"S"==l.national?1:-1),e.R7$(),e.vxM(2,"S"==l.national?2:-1),e.R7$(),e.vxM(3,"S"==l.national?3:-1)}}function At(T,ct){if(1&T&&(e.j41(0,"div",17)(1,"div",46),e.nrm(2,"app-input",40),e.k0s(),e.j41(3,"div",47),e.nrm(4,"app-input",40),e.k0s(),e.j41(5,"div",47),e.nrm(6,"app-input",48),e.k0s(),e.j41(7,"div",46),e.nrm(8,"app-input",40),e.k0s()()),2&T){const l=e.XpG(2);e.R7$(2),e.Y8G("form",null==l.formLocal?null:l.formLocal.get("floorNumber"))("data",l.floorInput),e.R7$(2),e.Y8G("form",null==l.formLocal?null:l.formLocal.get("door"))("data",l.doorInput),e.R7$(2),e.Y8G("form",null==l.formLocal?null:l.formLocal.get("building"))("data",l.buildingInput)("xSmallLabel",!0),e.R7$(2),e.Y8G("form",null==l.formLocal?null:l.formLocal.get("stair"))("data",l.stairInput)}}function et(T,ct){if(1&T&&(e.j41(0,"div"),e.DNE(1,At,9,9,"div",17),e.k0s()),2&T){const l=e.XpG();e.R7$(),e.vxM(1,"S"==l.national?1:-1)}}function q(T,ct){if(1&T&&(e.j41(0,"div",17)(1,"div",43),e.nrm(2,"app-input",49),e.k0s(),e.j41(3,"div",43),e.nrm(4,"app-input",50),e.k0s()()),2&T){const l=e.XpG();e.R7$(2),e.Y8G("form",null==l.formLocal?null:l.formLocal.get("zipCode"))("data",l.postalcodeInput)("required",!0),e.R7$(2),e.Y8G("form",null==l.formLocal?null:l.formLocal.get("provinceName"))("data",l.provinceInput)("upperCase",!0)}}function st(T,ct){if(1&T&&(e.j41(0,"div",17)(1,"div",3),e.nrm(2,"app-input",51),e.k0s()()),2&T){const l=e.XpG();e.R7$(2),e.Y8G("form",null==l.formLocal?null:l.formLocal.get("location"))("data",l.localityInput)("upperCase",!0)("required",!0)}}function gt(T,ct){if(1&T){const l=e.RV6();e.j41(0,"a",52),e.nI1(1,"translate"),e.bIt("click",function(p){e.eBV(l);const m=e.XpG();return e.Njj(m.finalize(p))}),e.j41(2,"span"),e.EFF(3),e.nI1(4,"translate"),e.nrm(5,"app-icon",53),e.k0s()()}if(2&T){const l=e.XpG();e.BMQ("aria-label",e.bMT(1,3,"ONBOARDING.COMMON.FINALIZE_LABEL"))("href",l.finalizeHref,e.B4B),e.R7$(3),e.SpI(" ",e.bMT(4,5,"ONBOARDING.COMMON.FINALIZE")," ")}}function Ct(T,ct){if(1&T){const l=e.RV6();e.j41(0,"app-button",54),e.nI1(1,"translate"),e.bIt("clicked",function(){e.eBV(l);const p=e.XpG();return e.Njj(p.next())}),e.EFF(2),e.nI1(3,"translate"),e.nrm(4,"app-icon",53),e.k0s()}2&T&&(e.Y8G("variant","primary")("ariaLabel",e.bMT(1,3,"ONBOARDING.COMMON.CONTINUE_LABEL")),e.R7$(2),e.SpI(" ",e.bMT(3,5,"ONBOARDING.COMMON.CONTINUE")," "))}let xt=(()=>{class T{constructor(l,d,p,m,_,g,z,ot,mt){this.route=l,this.router=d,this.titleService=p,this.formsService=m,this.addressService=_,this._storageService=g,this.environmentService=z,this.cookieSrv=ot,this._genesysService=mt,this.show_address=!1,this.authorized=!!this._storageService.getItem("authorized"),this.professional=!!this._storageService.getItem("professional"),this.showAdditionalInfo=!1,this.showStreet
1NumberError=!1,this.addressOptions=[],this.showAddressList=!1,this.addressSearchValue=null,this.addressInput={name:"address",label:"ONBOARDING.ADDRESS.SEARCH_DIRECTION",type:"text",value:"",postalCode:"",disabled:!1,maxlength:200},this.showUpdateMessage=!1,this.postalCodeInput={name:"postalCode",label:"ONBOARDING.ADDRESS.POSTAL_CODE",type:"text",value:"",disabled:!1,maxlength:5},this.buildingInput={name:"building",label:"ONBOARDING.ADDRESS.BUILDING",type:"text",value:"",disabled:!1,maxlength:4},this.stairInput={name:"stair",label:"ONBOARDING.ADDRESS.STAIR",type:"text",value:"",disabled:!1,maxlength:4},this.floorInput={name:"floor",label:"ONBOARDING.ADDRESS.FLOOR",type:"text",value:"",disabled:!1,maxlength:4},this.additionalInfoInput={name:"additionalInfo",label:"ONBOARDING.ADDRESS.ADDITIONAL_INFO",type:"text",value:"",disabled:!1,maxlength:40},this.doorInput={name:"door",label:"ONBOARDING.ADDRESS.DOOR",type:"text",value:"",disabled:!1,maxlength:4},this.postalcodeInput={name:"postalcode",label:"ONBOARDING.ADDRESS.POSTALCODE",type:"text",value:"",disabled:!1,maxlength:5},this.provinceInput={name:"province",label:"ONBOARDING.ADDRESS.PROVINCE",type:"text",value:"",disabled:!0,maxlength:50},this.localityInput={name:"locality",label:"ONBOARDING.ADDRESS.LOCALITY",type:"text",value:"",disabled:!1,maxlength:50}
1,this.namestreetInput={name:"namestreet",label:"ONBOARDING.ADDRESS.NAME",type:"text",value:"",disabled:!1,maxlength:50},this.numberInput={name:"num",label:"ONBOARDING.ADDRESS.NUMBER",type:"text",value:"",disabled:!1,maxlength:50},this.numberPredictiveInput={name:"num",label:"ONBOARDING.ADDRESS.NUMBER",type:"text",value:"",disabled:!1,maxlength:50},this.clientName={name:"clientName",label:"ONBOARDING.ADDRESS.CLIENT_NAME",type:"text",value:"",disabled:!1,maxlength:50},this.clientSurname={name:"clientSurname",label:"ONBOARDING.ADDRESS.CLIENT_SURNAME",type:"text",value:"",disabled:!1,maxlength:50},this.clientSurname2={name:"clientSurname2",label:"ONBOARDING.ADDRESS.CLIENT_SURNAME2",type:"text",value:"",disabled:!1,maxlength:50},this.nationalRadioData=[{value:"S",text:"ONBOARDING.COMMON.YES",name:"national-radio-yes"},{value:"N",text:"ONBOARDING.COMMON.NO",name:"national-radio-no"}],this.nieRegExp=/^[yxzYXZ]\d{7}[a-zA-Z]$/,this.isNie=!1,this.directionErrorMsg=!1}ngOnInit(){this.titleService.setTitleFromTranslation("PAGE_TITLES.ADDRESS_CONFIRMATION"),this.route.data.subscribe(l=>{this.form=l.form,this.isNie=this.nieRegExp.test(this.form.get("personal_data").get("document_number").value);const d=this.form.get("personal_data"),p=this.form.get("ocr_data");p&&this.fillDataFromOcr(d,p),this.setFormLocal(),this.isNie&&this.formLocal.get("last_surname").clearValidators(),this.formLocal.get("postalCode").valueChanges.subscribe(m=>{this.formLocal.get("postalCode").markAsTouched(),this.formLocal.get("direction").setValue(""),this.addressOptions=[],this.addressSearchValue=null,this.showAddressList=!1,this.addressInput.disabled=!0,this.checkZipCode(m),this.formLocal.get("provinceCode")&&m.length>4&&this.formLocal.get("postalCode").valid&&(this.formLocal.get("provinceCode").setValue(m.slice(0,2)),this.setProvinceName())}),this.formLocal.get("zipCode").valueChanges.subscribe(m=>{m&&(this.formLocal.get("provinceCode").setValue(m.slice(0,2)),this.setProvinceName())}),this.getAdditionalDataValue(),this.getTypeStreetData(),this.checkZipCode(this.formLocal.get("postalCode").value)})}setFormLocal(){this.formLocal=new h.J3({national:new h.hs("S"),manual:new h.hs("N"),fullAddress:new h.hs(""),provinceName:new h.hs(null),direction:new h.hs(this.form?.get("personal_data").get("street_name").value,[h.k0.required,n]),number:new h.hs(this.form?.get("personal_data").get("street_number").value,[h.k0.required,n,o.Y,h.k0.maxLength(10)]),postalCode:new h.hs(this.form?.get("personal_data").get("zip_code").value,[h.k0.required,n,o.Y,h.k0.minLength(5)]),streetType:new h.hs(this.form?.get("personal_data").get("street_type").value,[h.k0.required,n]),streetName:new h.hs(this.form?.get("personal_data").get("street_name").value,[h.k0.required,n]),streetNumber:new h.hs(this.form?.get("personal_data").get("street_number").value,[h.k0.required,o.Y,h.k0.maxLength(10)]),building:new h.hs(this.form?.get("personal_data").get("building").value),stair:new h.hs(this.form?.get("personal_data").get("stair").value),floorNumber:new h.hs(this.form?.get("personal_data").get("floor_number").value),door:new h.hs(this.form?.get("personal_data").get("door").value),addressAdditionalInfo:new h.hs(this.form?.get("personal_data").get("address_additional_info").value),zipCode:new h.hs(this.form?.get("personal_data").get("zip_code").value,[h.k0.required,o.Y,h.k0.minLength(5)]),provinceCode:new h.hs(null),location:new h.hs(this.form?.get("personal_data").get("location").value,[h.k0.required,n]),name:new h.hs(this.form?.get("personal_data").get("name").value,[h.k0.required,n,F]),first_surname:new h.hs(this.form?.get("personal_data").get("first_surname").value,[h.k0.required,n,F]),last_surname:new h.hs(this.form?.get("personal_data").get("last_surname").value,[h.k0.required,n,F])})}getAdditionalDataValue(){this.formLocal.get("streetNumber").setValue(this.form.get("personal_data").get("street_number").value),this.formLocal.get("building").setValue(this.form.get("personal_data").get("building").value),this.formLocal.get("stair").setValue(this.form.get("personal_data").get("stair").value),this.formLocal.get("floorNumber").setValue(this.form.get("personal_data").get("floor_number").value),this.formLocal.get("door").setValue(this.form.get("personal_data").get("door").value),this.formLocal.get("addressAdditionalInfo").setValue(this.form.get("personal_data").get("address_additional_info").value)}addToPersonalData(l,d,p,m){if(!m.get(d))return;const _=m.get(d);p.value&&!p.value[l]&&_&&this.formsService.isNotEmpty(_.value)&&p.get(l).setValue(_.value)}fillDataFromOcr(l,d){this.addToPersonalData("first_surname","firstSurname",l,d),this.addToPersonalData("last_surname","last_surname",l,d);const p=d.get("zip_code")?.value;!l.zip_code&&this.formsService.isNotEmpty(p)&&(l.get("zip_code").setValue(p),d.get("zip_code").value.length>2&&l.get("province_code").setValue(p.slice(0,2))),this.addToPersonalData("province_code","province_code",l,d),this.addToPersonalData("birth_date","birth_date",l,d),this.addToPersonalData("location","location",l,d),this.addToPersonalData("nationality","nationality",l,d),this.addToPersonalData("name","name",l,d),this.addToPersonalData("street_number","street_number",l,d),this.addToPersonalData("street_name","street_name",l,d),this.addToPersonalData("country","country",l,d),this.addToPersonalData("gender","gender",l,d),this.addToPersonalData("street_type","street_type",l,d);const m={gender:l.get("gender").value};this._genesysService.updateData(m)}setProvinceName(){this.formLocal.get("provinceCode").value?this.addressService.getProvince(this.formLocal.get("provinceCode").value).subscribe(l=>{this.formLocal.get("provinceName").setValue(l[0]?.name)}
1):this.formLocal.get("provinceName").setValue(null)}getTypeStreetData(){this.addressService.roadTypes().subscribe(l=>{k().map(l,p=>{p.value=p.identifier,p.label=p.name});const d={name:"typestreet",label:"ONBOARDING.ADDRESS.TYPE_DIRECTION",type:"text"};d.options=l,this.typestreetData=d,""===this.formLocal?.get("zipCode").value||null===this.formLocal?.get("zipCode").value?this.formLocal.get("provinceCode").setValue(""):this.addressService.getProvince(this.form.get("personal_data").get("province_code").value).subscribe(p=>{this.formLocal.get("provinceName").setValue(p[0].name),this.setManualData()})})}checkZipCode(l){this.formLocal.get("postalCode").valid?(this.addressInput.postalCode=l,this.addressInput.disabled=!1):(this.formLocal.get("direction").setValue(""),this.addressInput.disabled=!0)}hasFormErrors(){return!(this.validPersonData()&&this.validPredictiveAddressForm()&&this.validManualAddressForm())}validPersonData(){return!!(!this.isNie&&""!=this.formLocal.get("name").valid&&""!=this.formLocal.get("first_surname").value&&""!=this.formLocal.get("last_surname").value&&null!=this.formLocal.get("name").valid&&null!=this.formLocal.get("first_surname").value&&null!=this.formLocal.get("last_surname").value||this.isNie&&""!=this.formLocal.get("name").valid&&""!=this.formLocal.get("first_surname").value&&null!=this.formLocal.get("name").value&&null!=this.formLocal.get("first_surname").value)}validPredictiveAddressForm(){return null!=this.formLocal.get("postalCode").value&&null!=this.formLocal.get("direction").value&&null!=this.formLocal.get("streetNumber").value&&null!=this.formLocal.get("streetType").value&&""!=this.formLocal.get("postalCode").value&&""!=this.formLocal.get("direction").value&&""!=this.formLocal.get("streetNumber").value&&""!=this.formLocal.get("zipCode").valid&&""!=this.formLocal.get("location").valid&&""!=this.formLocal.get("streetType").value}validManualAddressForm(){return!!(this.formLocal.get("zipCode").valid&&this.formLocal.get("streetType").valid&&this.formLocal.get("streetName").valid&&this.formLocal.get("streetNumber").valid&&this.formLocal.get("location").valid)}markAllAsTouched(){this.formLocal.get("postalCode").markAllAsTouched(),this.formLocal.get("direction").markAllAsTouched(),this.formLocal.get("zipCode").markAllAsTouched(),this.formLocal.get("streetType").markAllAsTouched(),this.formLocal.get("streetNumber").markAllAsTouched(),this.formLocal.get("streetName").markAllAsTouched(),this.formLocal.get("building").markAllAsTouched(),this.formLocal.get("stair").markAllAsTouched(),this.formLocal.get("floorNumber").markAllAsTouched(),this.formLocal.get("door").markAllAsTouched(),this.formLocal.get("addressAdditionalInfo").markAllAsTouched(),this.formLocal.get("name").markAllAsTouched(),this.formLocal.get("first_surname").markAllAsTouched(),this.formLocal.get("last_surname").markAllAsTouched(),this.formLocal.get("location").markAllAsTouched()}updateCRM(){this.formsService.updateCRM(this.form.value).subscribe(()=>{this.router.navigate(this.authorized?["/wizard/step3/other-data2"]:this.professional?["/wizard/step3/apartment"]:["/wizard/step3/employment-situation"])},l=>{console.error(l)})}next(){this.markAllAsTouched(),this.validPersonData()&&("N"===this.formLocal.get("manual").value&&this.validPredictiveAddressForm()&&null!=this.formLocal||"S"===this.formLocal.get("manual").value&&this.validManualAddressForm())?(this.setAddressData(),this.form.value.request_data.pre_status=this.authorized?"21":"04",this.updateCRM()):(this.directionErrorMsg=!0,this.focusFirstInvalidElement())}setAddressData(){this.form.get("personal_data").get("name").setValue(this.formLocal?.get("name").value),this.form.get("personal_data").get("first_surname").setValue(this.formLocal?.get("first_surname").value),this.form.get("personal_data").get("last_surname").setValue(this.formLocal?.get("last_surname").value),this.form.get("personal_data").get("street_number").setValue(this.formLocal?.get("streetNumber").value),this.form.get("personal_data").get("street_name").setValue(this.formLocal?.get("streetName").value),this.form.get("personal_data").get("street_type").setValue(this.formLocal?.get("streetType").value),this.form.get("personal_data").get("building").setValue(this.formLocal?.get("building").value),this.form.get("personal_data").get("stair").setValue(this.formLocal?.get("stair").value),this.form.get("personal_data").get("floor_number").setValue(this.formLocal?.get("floorNumber").value),this.form.get("personal_data").get("door").setValue(this.formLocal?.get("door").value),this.form.get("personal_data").get("zip_code").setValue(this.formLocal?.get("zipCode").value),this.formLocal.get("provinceCode").value&&""!=this.formLocal.get("provinceCode").value&&this.form.get("personal_data").get("province_code").setValue(this.formLocal?.get("provinceCode").value),this.formLocal.get("location").value&&""!=this.formLocal.get("location").value&&this.form.get("personal_data").get("location").setValue(this.formLocal?.get("location").value);const l={completeName:this.form.get("personal_data").get("name").value+this.form.get("personal_data").get("first_surname").value+this.form.get("personal_data").get("last_surname").value};this._genesysService.updateData(l)}onAddressSearch(l){if(!l||l.length<3||!this.formLocal.get("postalCode").valid)return this.addressOptions=[],void(this.showAddressList=!1);const d=this.formLocal.get("postalCode").value;let p="",m=l.trim().replace(/\s\s+/g," ");
1if(m.split(",").length>1&&(m=m.split(",")[0],p=m.split(",")[m.split(",").length-1]),1==m.split(",").length&&m.split(" ").length>1){const _=m.split(" ");p=_[_.length-1],m=isNaN(Number(p))?_.slice(0,_.length).join(" "):_.slice(0,_.length-1).join(" ")}isNaN(Number(p))&&(p=""),p=p.trim(),this.addressService.streetMap(d,m,p).subscribe(_=>{this.addressOptions=k().map(_,g=>(g.street_number=p,{id:g.street_code,name:g.street_type+" "+g.street_address+(""!==p?", "+p:"")+", "+g.address_municipality.name+", "+g.address_province.name+", "+d,originalData:g})),this.showAddressList=this.addressOptions.length>0})}onAddressSelect(l){if(!l||!l.originalData)return;const d=l.originalData;this.formLocal.get("provinceCode").setValue(d.address_province.identifier),this.formLocal.get("location").setValue(d.address_municipality.name),this.formLocal.get("streetType").setValue(d.street_code),this.formLocal.get("streetName").setValue(d.street_address),this.formLocal.get("direction").setValue(d.street_type+" "+d.street_address),this.typestreetData&&(this.typestreetData.value=k().cloneDeep(d.street_type+" "+d.street_address)),this.formLocal.get("zipCode").setValue(this.formLocal.get("postalCode").value),this.formLocal.get("streetType").value&&this.formLocal.get("streetName").value&&(this.directionErrorMsg=!1),this.showAddressList=!1}streetSelected(l){this.formLocal.get("provinceCode").setValue(l.address_province.identifier),this.formLocal.get("location").setValue(l.address_municipality.name),this.formLocal.get("streetType").setValue(l.street_code),this.formLocal.get("streetName").setValue(l.street_address),this.formLocal.get("direction").setValue(l.street_type+" "+l.street_address),this.typestreetData&&(this.typestreetData.value=k().cloneDeep(l.street_type+" "+l.street_address)),this.formLocal.get("zipCode").setValue(this.formLocal.get("postalCode").value),this.formLocal.get("streetType").value&&this.formLocal.get("streetName").value&&(this.directionErrorMsg=!1)}getOptionalAddressControls(){let l=[];if(this.formLocal?.controls){const{building:d,stair:p,floorNumber:m,door:_,addressAdditionalInfo:g}=this.formLocal.controls;l=[d,p,m,_,g]}return l}togglePredictive(l){this.formLocal?.get("manual").setValue(l),this.showAdditionalInfo=!("N"===l&&""===this.formLocal.get("direction").value),setTimeout(()=>{"S"===l?document.getElementById("predictiveButton")?.focus():document.getElementById("manualButton")?.focus()},100)}setManualData(){const l=k().find(this.typestreetData.options,mt=>mt.value===k().get(this.form.get("personal_data").get("street_type"),"value"))?.label,d=this.form.get("personal_data").get("street_name").value,p=this.form.get("personal_data").get("street_number").value,m=this.form.get("personal_data").get("location").value,_=this.formLocal.get("provinceName").value,g=this.form.get("personal_data").get("zip_code").value,z="Espa\xf1a",ot=[];l&&d&&(ot.push(l+" "+d),p&&ot.push(p),g&&ot.push("\n"+g),m&&ot.push(m),_&&ot.push(_),z&&ot.push("\n"+z),this.formLocal.get("fullAddress").setValue(ot.join(", ")),this.formLocal.get("postalCode").setValue(this.form?.get("personal_data.zip_code").value),this.formLocal.get("direction").setValue(this.form?.get("personal_data.street_name").value),this.formLocal.get("name").setValue(this.form?.get("personal_data.name").value),this.formLocal.get("first_surname").setValue(this.form?.get("personal_data.first_surname").value),this.formLocal.get("last_surname").setValue(this.form?.get("personal_data.last_surname").value))}get finalizeHref(){const l=this._storageService.getItem("access");return this.professional?this.environmentService.envVariables.nexo:"authorized"==l?"/dashboard/onboarding-authorized":"authorized-request"==l?"/dashboard/onboarding-authorized-request":"/dashboard/onboarding"}finalize(l){l&&l.preventDefault();const d=this._storageService.getItem("access");this._storageService.clear(),this.cookieSrv.check("request_id")&&this.cookieSrv.delete("request_id"),this.professional?window.location.href=this.environmentService.envVariables.nexo:this.router.navigate("authorized"==d?["/dashboard/onboarding-authorized"]:"authorized-request"==d?["/dashboard/onboarding-authorized-request"]:["/dashboard/onboarding"])}set national(l){this.formLocal.get("national").setValue(l)}get national(){return"S"!==this.formLocal?.get("national").value&&(this.directionErrorMsg=!1),this.formLocal?.get("national").value??null}focusFirstInvalidElement(){(0,a.K)()}static{this.\u0275fac=function(d){return new(d||T)(e.rXU(c.nX),e.rXU(c.Ix),e.rXU(E.E),e.rXU(b.f),e.rXU(O.E),e.rXU(x.n),e.rXU(V.v),e.rXU(G.T),e.rXU(K.w))}}static{this.\u0275cmp=e.VBU({type:T,selectors:[["app-address"]],decls:58,vars:48,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-9","col-xl-12"],[1,"row"],[1,"col","pl-3","pl-xl-0"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium"],[1,"col","pl-3","pl-xl-0","spacer-bottom-low"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium","right-align"],[1,"sr-only"],[1,"row","bottomSpace"],[1,"col-12","col-xl-6","pl-3","pl-xl-0","pb-2","pb-xl-0"],["autocomplete","name",3,"form","data","upperCase","required"],[1,"col-12","col-xl-6","pl-3","pl-xl-0"],["autocomplete","family-name",3,"form","data","upperCase","required"],[1,"col-12","col-xl-6","pl-3","pl-xl-0","spacer-bottom-medium"],["autocomplete","additional-name",3,"form","data","upperCase","required"],[1,"row","spacer-bottom-low","col","pl-3","pl-xl-0","radio-container"],["className","radio-inline","name","national",3,"form","data"],[1,"row","spacer-bottom-low"],[1,"col-12","pl-0"],["
1id","manualAddress"],[1,"row","spacer-both-high","d-flex","justify-content-center"],["tabindex","0",1,"continueBtn","col","col-9","d-flex","justify-content-center","justify-content-lg-start"],[1,"col","d-flex","justify-content-center","justify-content-lg-start",3,"variant","ariaLabel"],[1,"pt-2","d-flex","justify-content-start"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","info","width","24px","height","24px",1,"mr-2","space","red"],[1,"red",3,"innerHTML"],[1,"mb-4"],["id","manualButton","variant","link",3,"ariaChecked","ariaRole"],["id","predictiveButton","variant","link",3,"ariaChecked","ariaControls","ariaRole"],["id","manualButton","variant","link",3,"clicked","ariaChecked","ariaRole"],["id","predictiveButton","variant","link",3,"clicked","ariaChecked","ariaControls","ariaRole"],[1,"col-12","col-sm-12","col-xl-3","pl-xl-0","pb-2"],[1,"col-12","col-sm-12","col-xl-7","pl-3","pl-xl-0","pb-2"],["for","search-input",1,"sr-only"],[3,"keyUpEvent","selectOptionEvent","form","placeholder","options","showList","value","isDisabled","name","styles"],[1,"col-12","col-sm-12","col-xl-2","pl-3","pl-xl-0"],["autocomplete","address-line2",3,"form","data","required"],["autocomplete","postal-code",3,"form","data","required"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","info","width","24px","height","24px",1,"mr-2"],[3,"innerHTML"],[3,"form","data"],[1,"col-12","pl-3","pl-xl-0"],["autocomplete","address-line1",3,"form","data","upperCase","required"],[1,"col-6","pl-3","pl-xl-0"],["autocomplete","address-line3",3,"form","data","xSmallLabel"],[3,"form","data","upperCase"],[1,"col-6","col-xl-3","col-sm-6","pl-3","pl-xl-0"],[1,"col-6","col-xl-3","col-sm-6","pl-3","pl-xl-0","pb-1"],[3,"form","data","xSmallLabel"],[3,"form","data","required"],["autocomplete","address-level1",3,"form","data","upperCase"],["autocomplete","address-level2",3,"form","data","upperCase","required"],["tabindex","0",1,"continueBtn","col","col-9","d-flex","justify-content-center","justify-content-lg-start",3,"click"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"],[1,"col","d-flex","justify-content-center","justify-content-lg-start",3,"clicked","variant","ariaLabel"]],template:function(d,p){1&d&&(e.j41(0,"div",0)(1,"div",1)(2,"form")(3,"div",2)(4,"h1",3),e.
1EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"div",2)(8,"div",4)(9,"span"),e.EFF(10),e.nI1(11,"translate"),e.k0s()()(),e.j41(12,"div",2)(13,"div",5)(14,"span"),e.EFF(15),e.nI1(16,"translate"),e.k0s()()(),e.j41(17,"div",2)(18,"div",6)(19,"span"),e.EFF(20),e.nI1(21,"translate"),e.k0s()()(),e.j41(22,"fieldset")(23,"legend",7),e.EFF(24),e.nI1(25,"translate"),e.k0s(),e.j41(26,"div",8)(27,"div",9),e.nrm(28,"app-input",10),e.k0s(),e.j41(29,"div",11),e.nrm(30,"app-input",12),e.k0s()(),e.j41(31,"div",2)(32,"div",13),e.nrm(33,"app-input",14),e.k0s()()(),e.j41(34,"fieldset",15)(35,"legend")(36,"span"),e.EFF(37),e.nI1(38,"translate"),e.k0s()(),e.nrm(39,"app-radio-button",16),e.k0s(),e.DNE(40,Q,7,4,"div",17)(41,dt,4,3,"div",17)(42,Tt,4,2,"div",18),e.j41(43,"fieldset",19)(44,"legend",7),e.EFF(45),e.nI1(46,"translate"),e.k0s(),e.DNE(47,Dt,10,17,"div",17)(48,Mt,5,3,"div",17)(49,Bt,3,2,"div",17)(50,Gt,6,7)(51,nt,4,3,"div")(52,et,2,1,"div")(53,q,5,6,"div",17)(54,st,3,4,"div",17),e.k0s(),e.j41(55,"div",20),e.DNE(56,gt,6,7,"a",21)(57,Ct,5,7,"app-button",22),e.k0s()()()()),2&d&&(e.R7$(5),e.SpI(" ",e.bMT(6,34,"ONBOARDING.ADDRESS.CONFIRM_ADDRESS")," "),e.R7$(5),e.SpI(" ",e.bMT(11,36,"ONBOARDING.ADDRESS.SEND_NEWCARD")," "),e.R7$(5),e.SpI(" ",e.bMT(16,38,"ONBOARDING.ADDRESS.NAME_SURNAME_TEXT")," "),e.R7$(5),e.SpI(" ",e.bMT(21,40,"ONBOARDING.ADDRESS.REQUIRED_FIELDS")," "),e.R7$(4),e.SpI(" ",e.bMT(25,42,"ONBOARDING.ADDRESS.LEGEND_NAME")," "),e.R7$(4),e.Y8G("form",null==p.formLocal?null:p.formLocal.get("name"))("data",p.clientName)("upperCase",!0)("required",!0),e.R7$(2),e.Y8G("form",null==p.formLocal?null:p.formLocal.get("first_surname"))("data",p.clientSurname)("upperCase",!0)("required",!0),e.R7$(3),e.Y8G("form",null==p.formLocal?null:p.formLocal.get("last_surname"))("data",p.clientSurname2)("upperCase",!0)("required",!0),e.R7$(4),e.JRh(e.bMT(38,44,"ONBOARDING.ADDRESS.RESIDE_SPAIN")),e.R7$(2),e.Y8G("form",null==p.formLocal?null:p.formLocal.get("national"))("data",p.nationalRadioData),e.R7$(),e.vxM(40,"S"===p.national?40:-1),e.R7$(),e.vxM(41,"N"==p.national?41:-1),e.R7$(),e.vxM(42,"S"==p.national?42:-1),e.R7$(3),e.SpI(" ",e.bMT(46,46,"ONBOARDING.ADDRESS.ADDRESS_LEGEND")," "),e.R7$(2),e.vxM(47,"S"==p.national&&"N"===(null==p.formLocal?null:p.formLocal.get("manual").value)?47:-1),e.R7$(),e.vxM(48,"S"===(null==p.formLocal?null:p.formLocal.get("manual").value)&&"S"==p.national?48:-1),e.R7$(),e.vxM(49,"S"===(null==p.formLocal?null:p.formLocal.get("manual").value)&&"S"==p.national?49:-1),e.R7$(),e.vxM(50,"S"===(null==p.formLocal?null:p.formLocal.get("manual").value)&&"S"==p.national?50:-1),e.R7$(),e.vxM(51,"S"===(null==p.formLocal?null:p.formLocal.get("manual").value)?51:-1),e.R7$(),e.vxM(52,"N"===(null==p.formLocal?null:p.formLocal.get("manual").value)?52:-1),e.R7$(),e.vxM(53,"S"===(null==p.formLocal?null:p.formLocal.get("manual").value)&&"S"==p.national?53:-1),e.R7$(),e.vxM(54,"S"===(null==p.formLocal?null:p.formLocal.get("manual").value)&&"S"==p.national?54:-1),e.R7$(2),e.vxM(56,"N"==p.national?56:-1),e.R7$(),e.vxM(57,"S"==p.national?57:-1))},dependencies:[B.Qp,j.u,I,N.R,D.S,w.d,h.qT,h.cb,h.cV,$.D9],styles:[".red[_ngcontent-%COMP%]{color:#cf3030}.grey[_ngcontent-%COMP%]{color:#5e5e5e}.space[_ngcontent-%COMP%]{margin-top:2px}.bottomSpace[_ngcontent-%COMP%]{padding-bottom:10px}.radio-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.toggleAddress[_ngcontent-%COMP%]{color:#0a8250!important;text-decoration:underline!important;cursor:pointer;background:none;border:none}.right-align[_ngcontent-%COMP%]{text-align:right}.right-align[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#333}.custom-error-message[_ngcontent-%COMP%]{display:flex;align-items:center;padding:.75rem 1rem;background-color:#fcdfdf;color:#b22;border-radius:4px;font-size:1rem;gap:.5rem}.custom-error-message[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]:first-of-type{margin-top:1rem}.custom-error-message[_ngcontent-%COMP%]   .error-icon[_ngcontent-%COMP%]{margin-right:.5rem;flex-shrink:0}.custom-error-message[_ngcontent-%COMP%]   .error-text[_ngcontent-%COMP%]{flex:1;line-height:1.4}.continueBtn[_ngcontent-%COMP%]{align-items:center;background-color:#0a8250;border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;
1cursor:pointer;display:flex;font-size:var(--e-button-font-size);justify-content:space-between;line-height:1.2em;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;width:100%;text-decoration:none!important}.continueBtn[_ngcontent-%COMP%]:hover{background-color:#2b5033}.continueBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;flex-grow:1;text-align:center;line-height:25px;color:#fff!important;font-size:1rem}[_nghost-%COMP%]     .mc-input__field{height:5rem}[_nghost-%COMP%]     .mc-field-box__label, [_nghost-%COMP%]     .mc-input__label{padding-left:.5rem!important}"]})}}return T})();var Pt=r(7196);function Ft(T,ct){if(1&T){const l=e.RV6();e.j41(0,"div",12)(1,"fieldset")(2,"legend")(3,"span"),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"div",18)(7,"app-input",19),e.bIt("onChange",function(){e.eBV(l);const p=e.XpG();return e.Njj(p.disableButton())}),e.k0s()()()()}if(2&T){const l=e.XpG();e.R7$(4),e.JRh(e.bMT(5,3,"ONBOARDING.APARTMENT.YEARS")),e.R7$(3),e.Y8G("form",null==l.form?null:l.form.get("personal_data").get("anviv"))("data",l.anvivInput)}}let St=(()=>{class T{constructor(l,d,p,m,_,g){this.route=l,this.addressService=d,this.formsService=p,this.router=m,this._storageService=_,this.titleService=g,this.professional=!!this._storageService.getItem("professional"),this.rental=!1,this.family=!1,this.button=!0,this.anvivInput={name:"anviv",label:"ONBOARDING.APARTMENT.YEARS_APARTMENT",type:"text",value:"",required:!0,disabled:!1,maxlength:2},this.yearsInput={name:"years",label:"ONBOARDING.APARTMENT.YEARS_APARTMENT",type:"number",value:"",disabled:!1}}ngOnInit(){this.titleService.setTitleFromTranslation("PAGE_TITLES.APARTMENT"),this.route.data.subscribe(l=>{this.form=l.form;const d=this.form.get("personal_data").get("anviv").value;this.form.get("personal_data").get("anviv").setValue(d),this.disableButton()}),this.addressService.housing().subscribe(l=>{k().map(l,d=>(d.value=d.identifier.replace("0",""),d.text=d.name,d)),this.dataRadio=l}),this.changeApartmentType()}formValid(){return this.form.get("personal_data").get("anviv").valid&&this.form.get("personal_data").get("house_type").valid}markAllAsTouched(){this.form.get("personal_data").get("anviv").markAllAsTouched(),this.form.get("personal_data").get("house_type").markAllAsTouched()}next(){this.markAllAsTouched(),this.formValid()?(this.router.navigate(["/wizard/step3/other-data"]),this.formsService.updateCRM(this.form.value).subscribe(()=>{this.router.navigate(["/wizard/step3/other-data"])},l=>{console.error(l)})):this.focusFirstInvalidElement()}changeApartmentType(){this.disableButton()}disableButton(){const l=this.form.get("personal_data").get("house_type").value;this.family="4"===l,this.rental="2"===l,this.family?(this.button=!1,this.form.get("personal_data").get("anviv").clearValidators(),this.form.get("personal_data").get("anviv").updateValueAndValidity()):(this.form.get("personal_data").get("anviv").setValidators([h.k0.required,o.Y,h.k0.maxLength(2)]),this.form.get("personal_data").get("anviv").updateValueAndValidity(),this.button=!this.form.get("personal_data").get("anviv").valid||!this.form.get("personal_data").get("house_type").valid)}back(){if(this.professional)return"/wizard/step3/address";switch(this.form?.get("professional_data").get("situation").value){case"0":return"/wizard/step3/employment-situation-professional";case"1":return"/wizard/step3/employment-situation-freelance";default:return"/wizard/step3/employment-situation"}}focusFirstInvalidElement(){const l=document.querySelector("input.ng-invalid");l&&(l.focus(),l.scrollIntoView({behavior:"smooth",block:"center"}))}static{this.\u0275fac=function(d){return new(d||T)(e.rXU(c.nX),e.rXU(O.E),e.rXU(b.f),e.rXU(c.Ix),e.rXU(x.n),e.rXU(E.E))}}static{this.\u0275cmp=e.VBU({type:T,selectors:[["app-apartment"]],decls:43,vars:33,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-10","col-xl-7"],[1,"row","mb-3","d-lg-none"],[1,"col","pl-3","pl-xl-0"],["tabindex","0",1,"btn-back","secondary",3,"routerLink"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","arrow-left","width","24px","height","24px",1,"float-left"],[1,"row"],[1,"col","pl-3","pl-xl-0","spacer-bottom-low"],[1,"col","pl-3","pl-xl-0","right-align"],[1,"col","pl-3","pl-xl-0","row","spacer-bottom-lowest"],[1,"row","spacer-bottom-low"],["className","radio-group","name","apartment",3,"onChange","form","data"],[1,"row","spacer-bottom-lowest"],[1,"row","spacer-both-high","d-flex","justify-content-center","pl-lg-0"],["tabindex","0",1,"returnBtn","d-none","d-lg-flex",3,"routerLink"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-left","width","24px","height","24px",1,"float-left"],[1,"col","d-flex","justify-content-center","justify-content-lg-start",3,"clicked","variant","ariaLabel"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"],[1,"pl-3","pl-xl-0"],[3,"onChange","form","data"]],template:function(d,p){1&d&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),e.nI1(5,"translate"),e.nrm(6,"app-icon",5),e.k0s()()(),e.j41(7,"form")(8,"div",6)(9,"h1",3),e.
1EFF(10),e.nI1(11,"translate"),e.k0s()(),e.j41(12,"div",6)(13,"div",7)(14,"span"),e.EFF(15),e.nI1(16,"translate"),e.k0s()()(),e.j41(17,"div",6)(18,"div",8)(19,"span"),e.EFF(20),e.nI1(21,"translate"),e.k0s()()(),e.j41(22,"fieldset")(23,"legend",9)(24,"span"),e.EFF(25),e.nI1(26,"translate"),e.k0s()(),e.j41(27,"div",10)(28,"div",3)(29,"app-radio",11),e.bIt("onChange",function(){return p.changeApartmentType()}),e.k0s()()()(),e.DNE(30,Ft,8,5,"div",12),e.j41(31,"div",13)(32,"a",14),e.nI1(33,"translate"),e.j41(34,"span"),e.EFF(35),e.nI1(36,"translate"),e.nrm(37,"app-icon",15),e.k0s()(),e.j41(38,"app-button",16),e.nI1(39,"translate"),e.bIt("clicked",function(){return p.next()}),e.EFF(40),e.nI1(41,"translate"),e.nrm(42,"app-icon",17),e.k0s()()()()()),2&d&&(e.R7$(4),e.Y8G("routerLink",p.back()),e.BMQ("aria-label",e.bMT(5,15,"ONBOARDING.COMMON.BACK_LABEL")),e.R7$(6),e.SpI(" ",e.bMT(11,17,"ONBOARDING.APARTMENT.APARTMENT")," "),e.R7$(5),e.SpI(" ",e.bMT(16,19,"ONBOARDING.APARTMENT.MORE_INFORMATION")," "),e.R7$(5),e.SpI(" ",e.bMT(21,21,"ONBOARDING.ADDRESS.REQUIRED_FIELDS")," "),e.R7$(5),e.JRh(e.bMT(26,23,"ONBOARDING.APARTMENT.CATEGORY")),e.R7$(4),e.Y8G("form",null==p.form?null:p.form.get("personal_data").get("house_type"))("data",p.dataRadio),e.R7$(),e.vxM(30,p.family?-1:30),e.R7$(2),e.Y8G("routerLink",p.back()),e.BMQ("aria-label",e.bMT(33,25,"ONBOARDING.COMMON.BACK_LABEL")),e.R7$(3),e.SpI(" ",e.bMT(36,27,"ONBOARDING.COMMON.BACK")," "),e.R7$(3),e.Y8G("variant","primary")("ariaLabel",e.bMT(39,29,"ONBOARDING.COMMON.CONTINUE_LABEL")),e.R7$(2),e.SpI(" ",e.bMT(41,31,"ONBOARDING.COMMON.CONTINUE")," "))},dependencies:[c.Wk,B.Qp,N.R,D.S,Pt.v,h.qT,h.cb,h.cV,$.D9],styles:[".spacer[_ngcontent-%COMP%]{margin-top:5rem!important}.continueBtn[_ngcontent-%COMP%]{align-items:center;background-color:#0a8250;border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--e-button-font-size);justify-content:space-between;line-height:1.2em;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;width:100%;text-decoration:none!important}.continueBtn[_ngcontent-%COMP%]:hover{background-color:#2b5033}.continueBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;flex-grow:1;text-align:center;line-height:25px;color:#fff!important;font-size:1rem}.returnBtn[_ngcontent-%COMP%]{background-color:#fff;box-shadow:inset 0 0 0 .0625rem #0a8250;max-width:var(--e-button-max-width);border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;text-decoration:none!important;justify-content:center;align-items:center;display:flex;margin-right:1rem}.returnBtn[_ngcontent-%COMP%]:hover{background-color:#0a8250}.returnBtn[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%]{color:#fff}.returnBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#0a8250;font-size:var(--e-button-font-size)}.secondary[_ngcontent-%COMP%]{position:fixed;top:13px;left:15px;background-color:transparent;background-repeat:no-repeat;border:none;cursor:pointer;overflow:hidden;outline:none;z-index:100001}.secondary[_ngcontent-%COMP%]   app-icon[_ngcontent-%COMP%]{color:#000}.right-align[_ngcontent-%COMP%]{text-align:right}.right-align[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#333}"]})}}return T})();var Xt=r(98465);let yt=(()=>{class T{constructor(l,d,p){this.http=l,this._storageService=d,this.environmentService=p}employmentsSituation(){return this.http.get(this.environmentService.envVariables.api_url+this.environmentService.envVariables.api_auth_url+"/payments/ms-onboarding-core/v1/employment-situations")}getStudyLeves(){return this.http.get(this.environmentService.envVariables.api_url+this.environmentService.envVariables.api_auth_url+"/payments/ms-onboarding-core/v1/study-levels")}getMaritalStatus(){return this.http.get(this.environmentService.envVariables.api_url+this.environmentService.envVariables.api_auth_url+"/payments/ms-onboarding-core/v1/marital-statuses")}cnaes(l=!0){return this.http.get(this.environmentService.envVariables.api_url+this.environmentService.envVariables.api_auth_url+"/payments/ms-onboarding-core/v1/activity-sectors",{params:{is_associated:l}})}professions(l){return this.http.get(this.environmentService.envVariables.api_url+this.environmentService.envVariables.api_auth_url+"/payments/ms-onboarding-core/v1/professions",{params:{situation_id:l}})}permanentContract(){return this.http.get(this.environmentService.envVariables.api_url+this.environmentService.envVariables.api_auth_url+"/payments/ms-onboarding-core/v1/contract-types")}companyPosition(){return this.http.get(this.environmentService.envVariables.api_url+this.environmentService.envVariables.api_auth_url+"/payments/ms-onboarding-core/v1/company-positions")}static{this.\u0275fac=function(d){return new(d||T)(e.KVO(Xt.Qq),e.KVO(x.n),e.KVO(V.v))}}static{this.\u0275prov=e.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}}return T})();const Ht=()=>["/wizard/step3/employment-situation"];let $t=(()=>{class T{constructor(l,d,p,m,_){this.route=l,this.employmentService=d,this.formsService=p,this.router=m,this.titleService=_,this.sectorValue=""}ngOnInit(){this.titleService.setTitleFromTranslation("PAGE_TITLES.EMPLOYMENT_SITUATION_FREELANCE"),this.route.data.subscribe(l=>{this.form=l.form}),this.employmentService.professions(this.form.get("professional_data").get("situation").value).subscribe(l=>{k().map(l,p=>{p.value=p.identifier,p.label=p.name});const d={title:"ONBOARDING.EMPLOYMENT_SITUATION_FREELANCE.WHAT_PROFESSION",name:"profession",label:"ONBOARDING.EMPLOYMENT_SITUATION_FREELANCE.PROFESSION",type:"text",value:null,disabled:!1};d.options=l,this.professionData=d}),this.employmentService.cnaes(!1).subscribe(l=>{k().map(l,p=>{p.id=p.identifier,p.name=p.identifier+"-"+p.name});const d={title:"ONBOARDING.EMPLOYMENT_SITUATION_FREELANCE.WHAT_SECTOR",name:"sector",label:"ONBOARDING.EMPLOYMENT_SITUATION_FREELANCE.SECTOR",type:"text",value:null,disabled:!1};d.options=l,this.sectorData=d.options,this.sectorDataCopy=d.options,this.form.get("professional_data").get("sector").value&&this.searchCnae(this.form.get("professional_data").get("sector").value,!0)})}validForm(){return this.form.get("professional_data").get("profession").valid&&this.form.get("professional_data").get("sector").valid}next(){this.form.get("professional_data").markAllAsTouched(),this.validForm()?(this.form.value.request_data.pre_status="27",this.formsService.updateCRM(this.form.value).subscribe(()=>{this.router.navigate(["/wizard/step3/apartment"])},l=>{console.error(l)})):this.focusFirstInvalidElement()}searchCnae(l,d=!1){const p=("string"==typeof l?l:l?.toString()||"").toUpperCase();this.sectorData=p?this.sectorDataCopy.filter(m=>m.id.includes(p)||m.name.toUpperCase().includes(p)):this.sectorDataCopy,d&&this.sectorData?.length&&(this.sectorValue=this.sectorData[0])}selectOption(l){this.form?.get("professional_data")?.get("sector")?.setValue(l.id),this.sectorValue=l}focusFirstInvalidElement(){setTimeout(()=>{const l=document.querySelector('[aria-invalid="true"], input.ng-invalid, select.ng-invalid');l&&(l.focus(),l.scrollIntoView({behavior:"smooth",block:"center"}))},100)}static{this.\u0275fac=function(d){return new(d||T)(e.rXU(c.nX),e.rXU(yt),e.rXU(b.f),e.rXU(c.Ix),e.rXU(E.E))}}static{this.\u0275cmp=e.VBU({type:T,selectors:[["app-employment-situation-freelance"]],decls:40,vars:37,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-7"],[1,"row"],[1,"col","pl-3","pl-xl-0"],[1,"row","mb-3","d-lg-none"],["tabindex","0","routerLink","/wizard/step3/employment-situation",1,"btn-back","secondary"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","arrow-left","width","24px","height","24px",1,"float-left"],[1,"col","pl-3","pl-xl-0","spacer-bottom-low","right-align"],[1,"row","spacer-bottom-low"],[3,"form","data"],["subtitle","ONBOARDING.EMPLOYMENT_SITUATION.CNAE",3,"keyUpEvent","selectOptionEvent","form","options","minChars","value","label","placeholder"],[1,"row","spacer-both-high","d-flex","justify-content-center","p-3","pl-lg-0"],["tabindex","0",1,"returnBtn","d-none","d-lg-flex",3,"routerLink"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-left","width","24px","height","24px",1,"float-left"],[1,"col","d-flex","justify-content-center","justify-content-lg-start",3,"clicked","variant","ariaLabel"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"]],template:function(d,p){1&d&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),e.
1EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"div",4)(7,"div",3)(8,"a",5),e.nI1(9,"translate"),e.nrm(10,"app-icon",6),e.k0s()()(),e.j41(11,"div",2)(12,"div",3)(13,"span"),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"div",2)(17,"div",7)(18,"span"),e.EFF(19),e.nI1(20,"translate"),e.k0s()()(),e.j41(21,"div",8)(22,"div",3),e.nrm(23,"app-combo",9),e.k0s()(),e.j41(24,"div",8)(25,"div",3)(26,"app-search-input",10),e.nI1(27,"translate"),e.bIt("keyUpEvent",function(_){return p.searchCnae(_)})("selectOptionEvent",function(_){return p.selectOption(_)}),e.k0s()()(),e.j41(28,"div",11)(29,"a",12),e.nI1(30,"translate"),e.j41(31,"span"),e.EFF(32),e.nI1(33,"translate"),e.nrm(34,"app-icon",13),e.k0s()(),e.j41(35,"app-button",14),e.nI1(36,"translate"),e.bIt("clicked",function(){return p.next()}),e.EFF(37),e.nI1(38,"translate"),e.nrm(39,"app-icon",15),e.k0s()()()()),2&d&&(e.R7$(4),e.SpI(" ",e.bMT(5,18,"ONBOARDING.EMPLOYMENT_SITUATION.EMPLOYMENT_SITUATION")," "),e.R7$(4),e.BMQ("aria-label",e.bMT(9,20,"ONBOARDING.COMMON.BACK_LABEL")),e.R7$(6),e.SpI(" ",e.bMT(15,22,"ONBOARDING.EMPLOYMENT_SITUATION.MORE_INFORMATION")," "),e.R7$(5),e.SpI(" ",e.bMT(20,24,"ONBOARDING.ADDRESS.REQUIRED_FIELDS")," "),e.R7$(4),e.Y8G("form",null==p.form?null:p.form.get("professional_data").get("profession"))("data",p.professionData),e.R7$(3),e.Y8G("form",null==p.form?null:p.form.get("professional_data").get("sector"))("options",p.sectorData)("minChars",1)("value",p.sectorValue)("label","ONBOARDING.EMPLOYMENT_SITUATION.CNAE_ACTIVITY")("placeholder",e.bMT(27,26,"ONBOARDING.EMPLOYMENT_SITUATION.CNAE_ACTIVITY_SEARCH")),e.R7$(3),e.Y8G("routerLink",e.lJ4(36,Ht)),e.BMQ("aria-label",e.bMT(30,28,"ONBOARDING.COMMON.BACK_LABEL")),e.R7$(3),e.SpI(" ",e.bMT(33,30,"ONBOARDING.COMMON.BACK")," "),e.R7$(3),e.Y8G("variant","primary")("ariaLabel",e.bMT(36,32,"ONBOARDING.COMMON.CONTINUE_LABEL")),e.R7$(2),e.SpI(" ",e.bMT(38,34,"ONBOARDING.COMMON.CONTINUE")," "))},dependencies:[c.Wk,B.Qp,j.u,I,N.R,$.D9],styles:[".continueBtn[_ngcontent-%COMP%]{align-items:center;background-color:#0a8250;border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--e-button-font-size);justify-content:space-between;line-height:1.2em;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;width:100%;text-decoration:none!important}.continueBtn[_ngcontent-%COMP%]:hover{background-color:#2b5033}.continueBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;flex-grow:1;text-align:center;line-height:25px;color:#fff!important;font-size:1rem}.returnBtn[_ngcontent-%COMP%]{background-color:#fff;box-shadow:inset 0 0 0 .0625rem #0a8250;max-width:var(--e-button-max-width);border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;text-decoration:none!important;justify-content:center;align-items:center;display:flex;margin-right:1rem}.returnBtn[_ngcontent-%COMP%]:hover{background-color:#0a8250}.returnBtn[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%]{color:#fff}.returnBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#0a8250;font-size:var(--e-button-font-size)}.secondary[_ngcontent-%COMP%]{position:fixed;top:13px;left:15px;background-color:transparent;background-repeat:no-repeat;border:none;cursor:pointer;overflow:hidden;outline:none;z-index:100001}.secondary[_ngcontent-%COMP%]   app-icon[_ngcontent-%COMP%]{color:#000}.right-align[_ngcontent-%COMP%]{text-align:right}.right-align[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#333}"]})}}return T})();var jt=r(8160);const Yt=()=>["/wizard/step3/employment-situation"];let Vt=(()=>{class T{constructor(l,d,p,m,_,g){this.route=l,this.router=d,this.microService=p,this.employmentService=m,this.formsService=_,this.titleService=g,this.year=new Date,this.companyInput={title:"ONBOARDING.EMPLOYMENT_SITUATION_PROFESSIONAL.WHAT_COMPANY",name:"company",label:"ONBOARDING.EMPLOYMENT_SITUATION_PROFESSIONAL.COMPANY",type:"text",disabled:!1,maxlength:28,className:"width-12"},this.yearsInput={title:"ONBOARDING.EMPLOYMENT_SITUATION_PROFESSIONAL.WHAT_YEARS",name:"years",label:"ONBOARDING.EMPLOYMENT_SITUATION_PROFESSIONAL.YEARS",type:"text",disabled:!1,maxlength:"2",className:"width-12"}}ngOnInit(){this.titleService.setTitleFromTranslation("PAGE_TITLES.EMPLOYMENT_SITUATION_PROFESSIONAL"),this.route.data.subscribe(l=>{this.form=l.form,this.getProfessions()}),this.getPermanentContract(),this.getCompanyPosition()}getCompanyPosition(){this.employmentService.companyPosition().subscribe(l=>{k().map(l,p=>{p.value=p.identifier.replace("0",""),p.label=p.name});const d={title:"ONBOARDING.EMPLOYMENT_SITUATION_PROFESSIONAL.WHAT_POSITION",name:"position",label:"ONBOARDING.EMPLOYMENT_SITUATION_PROFESSIONAL.POSITION",type:"text",value:null,required:!0,disabled:!1,className:"width-12"};d.options=l,this.positionData=d})}getPermanentContract(){this.employmentService.permanentContract().subscribe(l=>{k().map(l,d=>{d.value=d.identifier,d.text=d.name}),this.dataRadio=l,this.form.get("professional_data").get("contract_type").setValue("0"===this.form.get("professional_data").get("contract_type").value?"1":this.form.get("professional_data").get("contract_type").value),
1console.log(this.form.get("professional_data").get("contract_type"))})}getProfessions(){this.employmentService.professions(this.form.get("professional_data").get("situation").value).subscribe(l=>{k().map(l,p=>{p.value=p.identifier,p.label=p.name});const d={title:"ONBOARDING.EMPLOYMENT_SITUATION_PROFESSIONAL.WHAT_PROFESSION",name:"profession",label:"ONBOARDING.EMPLOYMENT_SITUATION_PROFESSIONAL.PROFESSION",type:"text",value:null,required:!0,disabled:!1};d.options=l,this.professionData=d})}validForm(){return this.form.get("professional_data").get("contract_type").markAsTouched(),this.form.get("professional_data").get("company_name").markAsTouched(),this.form.get("professional_data").get("seniority").markAsTouched(),this.form.get("professional_data").get("profession").markAsTouched(),this.form?.get("professional_data").get("position").markAsTouched(),this.form.get("professional_data").get("contract_type").valid&&this.form.get("professional_data").get("company_name").valid&&this.form.get("professional_data").get("seniority").valid&&this.form.get("professional_data").get("profession").valid&&this.form?.get("professional_data").get("position").valid}next(){this.validForm()?(this.form.value.request_data.pre_status="27",this.formsService.updateCRM(this.form.value).subscribe(()=>{this.router.navigate(["/wizard/step3/apartment"])},l=>{console.error(l)})):(0,a.K)()}static{this.\u0275fac=function(d){return new(d||T)(e.rXU(c.nX),e.rXU(c.Ix),e.rXU(jt.m),e.rXU(yt),e.rXU(b.f),e.rXU(E.E))}}static{this.\u0275cmp=e.VBU({type:T,selectors:[["app-employment-situation-professional"]],decls:58,vars:44,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row","mb-3","d-lg-none"],[1,"col","pl-3","pl-xl-0"],["routerLink","/wizard/step3/employment-situation","tabindex","0",1,"btn-back","secondary"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","arrow-left","width","24px","height","24px",1,"float-left"],["novalidate","",3,"formGroup"],[1,"row"],[1,"col","pl-3","pl-xl-0","spacer-bottom-low"],[1,"col","pl-3","pl-xl-0","spacer-bottom-low","right-align"],[1,"row","spacer-bottom-low"],[3,"form","data"],[1,"sr-only"],["for","contract","aria-hidden","true"],["className","radio-group","name","contract",3,"form","data"],[1,"col","col-xl-6","pl-3","pl-xl-0"],[1,"row","spacer-both-high","d-flex","justify-content-center","p-3","pl-lg-0","gap-1"],["tabindex","0",1,"returnBtn","d-none","d-lg-flex",3,"routerLink"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-left","width","24px","height","24px",1,"float-left"],[1,"col","d-flex","justify-content-center","justify-content-lg-start",3,"clicked","variant","ariaLabel"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"]],template:function(d,p){1&d&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),e.nI1(5,"translate"),e.nrm(6,"app-icon",5),e.k0s()()(),e.j41(7,"form",6)(8,"div",7)(9,"h1",3),e.EFF(10),e.nI1(11,"translate"),e.k0s()(),e.j41(12,"div",7)(13,"div",8)(14,"span"),e.EFF(15),e.nI1(16,"translate"),e.k0s()()(),e.j41(17,"div",7)(18,"div",9)(19,"span"),e.EFF(20),e.nI1(21,"translate"),e.k0s()()(),e.j41(22,"div",10)(23,"div",3),e.nrm(24,"app-combo",11),e.k0s()(),e.j41(25,"fieldset")(26,"legend",12),e.EFF(27),e.nI1(28,"translate"),e.k0s(),e.j41(29,"div",7)(30,"div",3)(31,"p",13),e.EFF(32),e.nI1(33,"translate"),e.k0s()()(),e.j41(34,"div",10)(35,"div",3),e.nrm(36,"app-radio",14),e.k0s()()(),e.j41(37,"div",10)(38,"div",15),e.nrm(39,"app-input",11),e.k0s()(),e.j41(40,"div",10)(41,"div",15),e.nrm(42,"app-combo",11),e.k0s()(),e.j41(43,"div",10)(44,"div",15),e.nrm(45,"app-input",11),e.k0s()()(),e.j41(46,"div",16)(47,"a",17),e.nI1(48,"translate"),e.j41(49,"span"),e.EFF(50),e.nI1(51,"translate"),e.nrm(52,"app-icon",18),e.k0s()(),e.j41(53,"app-button",19),e.nI1(54,"translate"),e.bIt("clicked",function(){return p.next()}),e.EFF(55),e.nI1(56,"translate"),e.nrm(57,"app-icon",20),e.k0s()()()()),2&d&&(e.R7$(4),e.BMQ("aria-label",e.bMT(5,23,"ONBOARDING.COMMON.BACK_LABEL")),e.R7$(3),e.Y8G("formGroup",p.form),e.R7$(3),e.SpI(" ",e.bMT(11,25,"ONBOARDING.EMPLOYMENT_SITUATION.EMPLOYMENT_SITUATION")," "),e.R7$(5),e.SpI(" ",e.bMT(16,27,"ONBOARDING.EMPLOYMENT_SITUATION.MORE_INFORMATION")," "),e.R7$(5),e.SpI(" ",e.bMT(21,29,"ONBOARDING.ADDRESS.REQUIRED_FIELDS")," "),e.R7$(4),e.Y8G("form",null==p.form?null:p.form.get("professional_data").get("profession"))("data",p.professionData),e.R7$(3),e.SpI(" ",e.bMT(28,31,"ONBOARDING.EMPLOYMENT_SITUATION_PROFESSIONAL.WHAT_CONTRACT")," "),e.R7$(5),e.SpI(" ",e.bMT(33,33,"ONBOARDING.EMPLOYMENT_SITUATION_PROFESSIONAL.WHAT_CONTRACT")," "),e.R7$(4),e.Y8G("form",null==p.form?null:p.form.get("professional_data").get("contract_type"))("data",p.dataRadio),e.R7$(3),e.Y8G("form",null==p.form?null:p.form.get("professional_data").get("company_name"))("data",p.companyInput),e.R7$(3),e.Y8G("form",null==p.form?null:p.form.get("professional_data").get("position"))("data",p.positionData),e.R7$(3),e.Y8G("form",null==p.form?null:p.form.get("professional_data").get("seniority"))("data",p.yearsInput),e.R7$(2),e.Y8G("routerLink",e.lJ4(43,Yt)),e.BMQ("aria-label",e.bMT(48,35,"ONBOARDING.COMMON.BACK_LABEL")),e.R7$(3),e.SpI(" ",e.bMT(51,37,"ONBOARDING.COMMON.BACK")," "),e.R7$(3),e.Y8G("variant","primary")("ariaLabel",e.bMT(54,39,"ONBOARDING.COMMON.CONTINUE_LABEL")),e.R7$(2),e.SpI(" ",e.bMT(56,41,"ONBOARDING.COMMON.CONTINUE")," "))},dependencies:[c.Wk,B.Qp,j.u,N.R,D.S,Pt.v,h.qT,h.cb,h.j4,$.D9],styles:[".container[_ngcontent-%COMP%]{padding-top:100px;margin-bottom:20px}.spacer[_ngcontent-%COMP%]{margin-top:5rem!important;margin-bottom:5rem!important}.continueBtn[_ngcontent-%COMP%]{align-items:center;background-color:#0a8250;border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;
1cursor:pointer;display:flex;font-size:var(--e-button-font-size);justify-content:space-between;line-height:1.2em;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;width:100%;text-decoration:none!important}.continueBtn[_ngcontent-%COMP%]:hover{background-color:#2b5033}.continueBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;flex-grow:1;text-align:center;line-height:25px;color:#fff!important;font-size:1rem}.returnBtn[_ngcontent-%COMP%]{background-color:#fff;box-shadow:inset 0 0 0 .0625rem #0a8250;max-width:var(--e-button-max-width);border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;text-decoration:none!important;justify-content:center;align-items:center;display:flex;margin-right:1rem}.returnBtn[_ngcontent-%COMP%]:hover{background-color:#0a8250}.returnBtn[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%]{color:#fff}.returnBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#0a8250;font-size:var(--e-button-font-size)}.secondary[_ngcontent-%COMP%]{position:fixed;top:13px;left:15px;background-color:transparent;background-repeat:no-repeat;border:none;cursor:pointer;overflow:hidden;outline:none;z-index:100001}.secondary[_ngcontent-%COMP%]   app-icon[_ngcontent-%COMP%]{color:#000}.gap-1[_ngcontent-%COMP%]{gap:1rem}.right-align[_ngcontent-%COMP%]{text-align:right}.right-align[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#333}[_nghost-%COMP%]     .mc-field-box.width-12{width:12rem}"]})}}return T})();const Ut=()=>["/wizard/step3/address"];let Kt=(()=>{class T{constructor(l,d,p,m,_){this._router=l,this.route=d,this.titleService=p,this.formsService=m,this.employmentService=_,this.localForm=new h.hs(null)}ngOnInit(){this.titleService.setTitleFromTranslation("PAGE_TITLES.EMPLOYMENT_SITUATION"),this.route.data.subscribe(l=>{this.form=l.form;let d=this.form.get("professional_data").get("situation").value;const p=this.form.get("professional_data").get("profession").value;("701"===p||"702"===p||"703"===p||"127"===p)&&(d=p),this.localForm.setValue(d),this.employmentService.employmentsSituation().subscribe(m=>{if(k().map(m,_=>(_.text=_.name,_.value=_.identifier,_)),this.dataRadio=m,!d&&m.length>0){const _=m[0];this.form.get("professional_data").get("situation").setValue(_.identifier),this.situation=_,this.localForm.setValue(_.identifier)}else this.situation=k().find(m,_=>_.value===d)})})}changeDescription(l){this.situation=l,this.form.get("professional_data").get("situation").setValue(l.identifier),"701"===l.type||"702"===l.type||"703"===l.type||"127"===l.type?this.form.get("professional_data").get("profession").setValue(l.type):this.form.get("professional_data").get("profession").setValue("")}next(){this.form.get("professional_data").get("contract_type").setValue("0"),this.form.get("professional_data").get("situation").valid&&("0"!==this.situation.type&&"1"!==this.situation.type&&(this.form.value.request_data.pre_status="27"),this.formsService.updateCRM(this.form.value).subscribe(()=>{this._router.navigate("0"===this.situation.type?["/wizard/step3/employment-situation-professional"]:"1"===this.situation.type?["/wizard/step3/employment-situation-freelance"]:["/wizard/step3/apartment"])},l=>{console.error(l)}))}static{this.\u0275fac=function(d){return new(d||T)(e.rXU(c.Ix),e.rXU(c.nX),e.rXU(E.E),e.rXU(b.f),e.rXU(yt))}}static{this.\u0275cmp=e.VBU({type:T,selectors:[["app-employment-situation"]],decls:36,vars:30,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-10","col-xl-7"],[1,"row"],[1,"col","pl-3","pl-xl-0"],[1,"row","mb-3","d-lg-none"],["routerLink","/wizard/step3/address","tabindex","0",1,"btn-back","secondary"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","arrow-left","width","24px","height","24px",1,"float-left"],[1,"row","col","pl-3","pl-xl-0","spacer-bottom-lowest"],[1,"row","spacer-bottom-low"],[1,"col","pl-3","pl-xl-0","d-flex","justify-content-center"],["className","col pl-3 pl-xl-0 radio-group d-flex flex-wrap justify-content-start","name","situation",3,"onChange","form","data","ariaDescribedby"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium"],["id","employment-description","aria-live","polite","aria-atomic","true"],[1,"row","spacer-both-high","d-flex","justify-content-center","pl-lg-0"],["tabindex","0",1,"returnBtn","d-none","d-lg-flex",3,"routerLink"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-left","width","24px","height","24px",1,"float-left"],[1,"col","d-flex","justify-content-center","justify-content-lg-start",3,"clicked","variant","ariaLabel"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"]],template:function(d,p){1&d&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),e.
1EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"div",4)(7,"div",3)(8,"a",5),e.nI1(9,"translate"),e.nrm(10,"app-icon",6),e.k0s()()(),e.j41(11,"fieldset")(12,"legend")(13,"span",7),e.EFF(14),e.nI1(15,"translate"),e.k0s()(),e.j41(16,"div",8)(17,"div",9)(18,"app-radio",10),e.bIt("onChange",function(_){return p.changeDescription(_)}),e.k0s()()()(),e.j41(19,"div",2)(20,"div",11)(21,"span",12),e.EFF(22),e.nI1(23,"translate"),e.k0s()()(),e.j41(24,"div",13)(25,"a",14),e.nI1(26,"translate"),e.j41(27,"span"),e.EFF(28),e.nI1(29,"translate"),e.nrm(30,"app-icon",15),e.k0s()(),e.j41(31,"app-button",16),e.nI1(32,"translate"),e.bIt("clicked",function(){return p.next()}),e.EFF(33),e.nI1(34,"translate"),e.nrm(35,"app-icon",17),e.k0s()()()()),2&d&&(e.R7$(4),e.SpI(" ",e.bMT(5,13,"ONBOARDING.EMPLOYMENT_SITUATION.EMPLOYMENT_SITUATION")," "),e.R7$(4),e.BMQ("aria-label",e.bMT(9,15,"ONBOARDING.COMMON.BACK_LABEL")),e.R7$(6),e.SpI(" ",e.bMT(15,17,"ONBOARDING.EMPLOYMENT_SITUATION.MORE_INFORMATION")," "),e.R7$(4),e.Y8G("form",p.form.get("professional_data").get("situation"))("data",p.dataRadio)("ariaDescribedby","employment-description"),e.R7$(4),e.SpI(" ",e.bMT(23,19,null==p.situation?null:p.situation.description)," "),e.R7$(3),e.Y8G("routerLink",e.lJ4(29,Ut)),e.BMQ("aria-label",e.bMT(26,21,"ONBOARDING.COMMON.BACK_LABEL")),e.R7$(3),e.SpI(" ",e.bMT(29,23,"ONBOARDING.COMMON.BACK")," "),e.R7$(3),e.Y8G("variant","primary")("ariaLabel",e.bMT(32,25,"ONBOARDING.COMMON.CONTINUE_LABEL")),e.R7$(2),e.SpI(" ",e.bMT(34,27,"ONBOARDING.COMMON.CONTINUE")," "))},dependencies:[c.Wk,B.Qp,N.R,Pt.v,$.D9],styles:[".spacer[_ngcontent-%COMP%]{margin-top:6rem!important}.continueBtn[_ngcontent-%COMP%]{align-items:center;background-color:#0a8250;border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--e-button-font-size);justify-content:space-between;line-height:1.2em;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;width:100%;text-decoration:none!important}.continueBtn[_ngcontent-%COMP%]:hover{background-color:#2b5033}.continueBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;flex-grow:1;text-align:center;line-height:25px;color:#fff!important;font-size:1rem}.returnBtn[_ngcontent-%COMP%]{background-color:#fff;box-shadow:inset 0 0 0 .0625rem #0a8250;max-width:var(--e-button-max-width);border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;text-decoration:none!important;justify-content:center;align-items:center;display:flex;margin-right:1rem}.returnBtn[_ngcontent-%COMP%]:hover{background-color:#0a8250}.returnBtn[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%]{color:#fff}.returnBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#0a8250;font-size:var(--e-button-font-size)}legend[_ngcontent-%COMP%]{color:#000;font-size:1rem;line-height:1.875rem;font-weight:400;font-style:normal}.secondary[_ngcontent-%COMP%]{position:fixed;top:13px;left:15px;background-color:transparent;background-repeat:no-repeat;border:none;cursor:pointer;overflow:hidden;outline:none;z-index:100001}.secondary[_ngcontent-%COMP%]   app-icon[_ngcontent-%COMP%]{color:#000}"]})}}return T})(),y=(()=>{class T{constructor(l,d,p,m,_,g){this.router=l,this.formsService=d,this.route=p,this._storageService=m,this.employmentService=_,this.titleService=g,this.professional=!!this._storageService.getItem("professional"),this.idError=0,this.idMessage="",this.shouldNavigate=!1}ngOnInit(){this.titleService.setTitleFromTranslation("PAGE_TITLES.OTHER_DATA"),this.route.data.subscribe(l=>{this.form=l.form}),this.setMaritalStatus(),this.setStudyLevels(),navigator.userAgent.match(/(mac)|(ipod)|(ipad)|(iphone)/i)&&(this.form.get("personal_data").get("studies").reset(),this.form.get("personal_data").get("marital_status").reset())}setStudyLevels(){this.employmentService.getStudyLeves().subscribe(l=>{k().map(l,p=>(p.label=p.name,p.value=p.identifier,p));const d={title:"ONBOARDING.STEP3.OTHER_DATA.STUDIES_TEXT",name:"studies",label:"ONBOARDING.STEP3.OTHER_DATA.STUDIES_DATA",type:"text",value:null,required:!0,disabled:!1};d.options=l,this.studies=d})}setMaritalStatus(){this.employmentService.getMaritalStatus().subscribe(l=>{k().map(l,p=>(p.label=p.name,p.value=p.identifier,p));const d={title:"ONBOARDING.STEP3.OTHER_DATA.MARITAL_STATUS_DATA_TITLE",name:"maritalStatus",label:"ONBOARDING.STEP3.OTHER_DATA.MARITAL_STATUS_DATA_LABEL",type:"text",value:null,required:!0,disabled:!1};d.options=l,this.maritalStatus=d})}markAllAsTouched(){this.form.get("personal_data").get("marital_status").markAsTouched(),this.form.get("personal_data").get("studies").markAsTouched()}formValid(){return this.form.get("personal_data").get("marital_status").valid&&this.form.get("personal_data").get("studies").valid}next(){this.shouldNavigate?this.shouldNavigate=!1:(this.markAllAsTouched(),this.formValid()?(this.form.value.request_data.pre_status="21",this.formsService.updateCRM(this.form.value).subscribe(()=>{this.shouldNavigate=!0,this.router.navigate(["/wizard/step3/other-data2"])},l=>{console.error(l)})):(0,a.K)())}static{this.\u0275fac=function(d){return new(d||T)(e.rXU(c.Ix),e.rXU(b.f),e.rXU(c.nX),e.rXU(x.n),e.rXU(yt),e.rXU(E.E))}}static{this.\u0275cmp=e.VBU({type:T,selectors:[["app-other-data"]],decls:39,vars:31,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-xl-7"],[1,"row","mb-3","d-lg-none"],[1,"col","pl-3","pl-xl-0"],["routerLink","/wizard/step3/employment-situation","tabindex","0",1,"btn-back","secondary"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","arrow-left","width","24px","height","24px",1,"float-left"],[1,"row"],[1,"row","col","pl-3","pl-xl-0"],[1,"col","pl-3","pl-xl-0","spacer-bottom-low","right-align"],[1,"row","spacer-bottom-low"],[3,"required","data","form"],[1,"row","spacer-both-high","d-flex","justify-content-center","p-3","pl-lg-0"],["tabindex","0","routerLink","/wizard/step3/apartment",1,"returnBtn","d-none","d-lg-flex"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-left","width","24px","height","24px",1,"float-left"],[1,"col","d-flex","justify-content-center","justify-content-lg-start",3,"clicked","variant","ariaLabel"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"]],template:function(d,p){1&d&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),e.nI1(5,"translate"),e.nrm(6,"app-icon",5),e.k0s()()(),e.j41(7,"div",6)(8,"h1",3),e.
1EFF(9),e.nI1(10,"translate"),e.k0s()(),e.j41(11,"fieldset")(12,"legend")(13,"span",7),e.EFF(14),e.nI1(15,"translate"),e.k0s()(),e.j41(16,"div",6)(17,"div",8)(18,"span"),e.EFF(19),e.nI1(20,"translate"),e.k0s()()(),e.j41(21,"div",9)(22,"div",3),e.nrm(23,"app-combo",10),e.k0s()(),e.j41(24,"div",9)(25,"div",3),e.nrm(26,"app-combo",10),e.k0s()()(),e.j41(27,"div",11)(28,"a",12),e.nI1(29,"translate"),e.j41(30,"span"),e.EFF(31),e.nI1(32,"translate"),e.nrm(33,"app-icon",13),e.k0s()(),e.j41(34,"app-button",14),e.nI1(35,"translate"),e.bIt("clicked",function(){return p.next()}),e.EFF(36),e.nI1(37,"translate"),e.nrm(38,"app-icon",15),e.k0s()()()()),2&d&&(e.R7$(4),e.BMQ("aria-label",e.bMT(5,15,"ONBOARDING.COMMON.BACK_LABEL")),e.R7$(5),e.SpI(" ",e.bMT(10,17,"ONBOARDING.STEP3.OTHER_DATA.OTHER_DATA")," "),e.R7$(5),e.SpI(" ",e.bMT(15,19,"ONBOARDING.STEP3.OTHER_DATA.OTHER_DATA_INTRO")," "),e.R7$(5),e.SpI(" ",e.bMT(20,21,"ONBOARDING.ADDRESS.REQUIRED_FIELDS")," "),e.R7$(4),e.Y8G("required",!0)("data",p.maritalStatus)("form",null==p.form?null:p.form.get("personal_data").get("marital_status")),e.R7$(3),e.Y8G("required",!0)("data",p.studies)("form",null==p.form?null:p.form.get("personal_data").get("studies")),e.R7$(2),e.BMQ("aria-label",e.bMT(29,23,"ONBOARDING.COMMON.BACK_LABEL")),e.R7$(3),e.SpI(" ",e.bMT(32,25,"ONBOARDING.COMMON.BACK")," "),e.R7$(3),e.Y8G("variant","primary")("ariaLabel",e.bMT(35,27,"ONBOARDING.COMMON.CONTINUE_LABEL")),e.R7$(2),e.SpI(" ",e.bMT(37,29,"ONBOARDING.COMMON.CONTINUE")," "))},dependencies:[c.Wk,B.Qp,j.u,N.R,$.D9],styles:[".secondary[_ngcontent-%COMP%]{position:fixed;top:13px;left:15px;background-color:transparent;background-repeat:no-repeat;border:none;cursor:pointer;overflow:hidden;outline:none;z-index:100001}.secondary[_ngcontent-%COMP%]   app-icon[_ngcontent-%COMP%]{color:#000}.continueBtn[_ngcontent-%COMP%]{align-items:center;background-color:#0a8250;border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--e-button-font-size);justify-content:space-between;line-height:1.2em;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;width:100%;text-decoration:none!important}.continueBtn[_ngcontent-%COMP%]:hover{background-color:#2b5033}.continueBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;flex-grow:1;text-align:center;line-height:25px;color:#fff!important;font-size:1rem}.returnBtn[_ngcontent-%COMP%]{background-color:#fff;box-shadow:inset 0 0 0 .0625rem #0a8250;max-width:var(--e-button-max-width);border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;text-decoration:none!important;justify-content:center;align-items:center;display:flex;margin-right:1rem}.returnBtn[_ngcontent-%COMP%]:hover{background-color:#0a8250}.returnBtn[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%]{color:#fff}.returnBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#0a8250;font-size:var(--e-button-font-size)}.right-align[_ngcontent-%COMP%]{text-align:right}.right-align[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#333}"]})}}return T})();function ft(T){return/^([0-9]+)$/.test(T.value)&&0!=T.value?null:{VALID_INCOMES:!0}}var f=r(18162),A=r(7637);function R(T,ct){1&T&&(e.j41(0,"div")(1,"div",2)(2,"div",3)(3,"span"),e.EFF(4),e.nI1(5,"translate"),e.k0s()()()()),2&T&&(e.R7$(4),e.JRh(e.bMT(5,1,"ONBOARDING.STEP3.OTHER_DATA2.MONTHLY_INCOME")))}function it(T,ct){1&T&&(e.j41(0,"div")(1,"p",25),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&T&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"ONBOARDING.STEP3.OTHER_DATA2.ALERT_MONEY")," "))}function C(T,ct){if(1&T){const l=e.RV6();e.j41(0,"div",2)(1,"div",23)(2,"app-input",24),e.bIt("change",function(){e.eBV(l);const p=e.XpG();return e.Njj(p.alert())})("keypress",function(){e.eBV(l);const p=e.XpG();return e.Njj(p.incomesTouched())}),e.k0s(),e.DNE(3,it,4,3,"div"),e.k0s()()}if(2&T){const l=e.XpG();e.R7$(2),e.Y8G("form",null==l.formotherdata2?null:l.formotherdata2.get("incomes"))("data",l.incomeInput),e.R7$(),e.vxM(3,!l.authorized&&l.alertmoney?3:-1)}}let lt=(()=>{class T{constructor(l,d,p,m,_,g){this.router=l,this.formsService=d,this.modalService=p,this.route=m,this._storageService=_,this.titleService=g,this.incomeInput={name:"income",label:"ONBOARDING.STEP3.OTHER_DATA2.INCOME",type:"text",minlength:2,maxlength:5,currency:!0},this.professional=!!this._storageService.getItem("professional"),this.authorized=!!this._storageService.getItem("authorized"),this.alertmoney=!1,this.hasBureauFlag=!1}ngOnInit(){this.titleService.setTitleFromTranslation("PAGE_TITLES.OTHER_DATA"),this.route.data.subscribe(l=>{this.formotherdata2=l.form.get("professional_data"),this.form=l.form,this.formotherdata2.get("special_position").valueChanges.subscribe(d=>{this.formotherdata2.get("position_sotros").setValue(d)})}),(!this.professional||!this.authorized)&&this.formotherdata2.get("incomes").setValidators([h.k0.required,h.k0.maxLength(6),ft]),this.formsService.getCRMState().subscribe(l=>{this.hasBureauFlag=(l.additional_info??[]).some(d=>("H-ZSOL_EQUI_LIST"===d.property_id||"H-ZSOL_EXPE_LIST"===d.property_id)&&"X"===d.value)})}ngOnDestroy(){this.closeModal()}closeModal(){this.modalService.closeModal("eDialog"),this.modalService.closeModal("eDialog2")}openModal(l){this.modalService.openModal(l)}markAllAsTouched(){this.formotherdata2.get("incomes").markAsTouched(),this.formotherdata2.get("special_position").markAsTouched(),this.formotherdata2.get("position_sotros").markAsTouched(),this.form.get("additional_data").get("third_parties_check").markAsTouched()}incomesTouched(){this.formotherdata2.get("incomes").markAsTouched()}alert(){this.formotherdata2.get("incomes").value.length<5&&(this.alertmoney=!1),this.formotherdata2.get("incomes").value.length>4&&(this.alertmoney=!0)}formValid(){return this.formotherdata2.get("incomes").valid&&this.formotherdata2.get("special_position").valid&&this.formotherdata2.get("position_sotros").valid&&this.form.get("additional_data").get("third_parties_check").valid}back(){return this.authorized?"/wizard/step3/address":"/wizard/step3/other-data"}next(){this.markAllAsTouched(),this.formValid()?(this.form.value.request_data.pre_status=this.authorized?"22":this.hasBureauFlag?"29":"05",this.formsService.updateCRM(this.form.value).subscribe(()=>{this.router.navigate(this.authorized?["/wizard/step5/preferences"]:this.hasBureauFlag?["/wizard/step4/way-to-pay-options"]:["/wizard/step4/bank-data"])},l=>{console.error(l)})):(0,a.K)()}static{this.\u0275fac=function(d){return new(d||T)(e.rXU(c.Ix),e.rXU(b.f),e.rXU(f.B),e.rXU(c.nX),e.rXU(x.n),e.rXU(E.E))}}static{this.\u0275cmp=e.VBU({type:T,selectors:[["app-other-data2"]],decls:92,vars:86,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],[1,"col","pl-3","pl-xl-0"],[1,"row","mb-3","d-lg-none"],["tabindex","0",1,"btn-back","secondary",3,"routerLink"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","arrow-left","width","24px","height","24px",1,"float-left"],[1,"col","pl-3","pl-xl-0","spacer-bottom-low"],[1,"col","pl-3","pl-xl-0","right-align"],[1,"bold","col","pl-3","pl-xl-0","spacer-top-low"],[1,"col","pl-3","pl-xl-0","spacer-bottom-lowest"],[1,"row","spacer-bottom-lowest"],["className","radioWidth radio-inline","name","special_position",3,"form"],[1,"dialog-button",3,"clicked","variant","styleClass","ariaHaspopup","ariaControl
1s"],[1,"bold","col","pl-3","pl-xl-0"],["className","radioWidth radio-inline","name","third_parties_check",3,"form"],[1,"row","spacer-both-high","d-flex","justify-content-center"],["tabindex","0",1,"returnBtn","d-none","d-lg-flex",3,"routerLink"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-left","width","24px","height","24px",1,"float-left"],[1,"col","d-flex","justify-content-center","justify-content-lg-start",3,"clicked","variant","ariaLabel"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"],["id","eDialog",3,"confirm","cancel","outside","headline","confirmLabel","dismissible"],["id","eDialog2",3,"confirm","cancel","outside","headline","confirmLabel","dismissible"],[1,"col-auto","col-xl-6","pl-3","pl-xl-0"],[3,"change","keypress","form","data"],["id","alertmoney"]],template:function(d,p){1&d&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"div",4)(7,"div",3)(8,"a",5),e.nI1(9,"translate"),e.nrm(10,"app-icon",6),e.k0s()()(),e.j41(11,"div",2)(12,"div",7)(13,"span"),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"div",2)(17,"div",8)(18,"span"),e.EFF(19),e.nI1(20,"translate"),e.k0s()()(),e.DNE(21,R,6,3,"div")(22,C,4,3,"div",2),e.j41(23,"fieldset")(24,"legend",2)(25,"span",9),e.EFF(26),e.nI1(27,"translate"),e.k0s()(),e.j41(28,"div",2)(29,"div",10)(30,"span"),e.EFF(31),e.nI1(32,"translate"),e.k0s()()(),e.j41(33,"div",11)(34,"div",3),e.nrm(35,"app-radio-button",12),e.k0s()()(),e.j41(36,"div",2)(37,"div",7)(38,"app-button",13),e.bIt("clicked",function(){return p.openModal("eDialog")}),e.EFF(39),e.nI1(40,"translate"),e.k0s()()(),e.j41(41,"fieldset")(42,"legend",2)(43,"span",14),e.EFF(44),e.nI1(45,"translate"),e.k0s()(),e.j41(46,"div",2)(47,"div",10)(48,"span"),e.EFF(49),e.nI1(50,"translate"),e.k0s()()(),e.j41(51,"div",11)(52,"div",3),e.nrm(53,"app-radio-button",15),e.k0s()()(),e.j41(54,"div",2)(55,"div",7)(56,"app-button",13),e.bIt("clicked",function(){return p.openModal("eDialog2")}),e.EFF(57),e.nI1(58,"translate"),e.k0s()()(),e.j41(59,"div",16)(60,"a",17),e.nI1(61,"translate"),e.j41(62,"span"),e.EFF(63),e.nI1(64,"translate"),e.nrm(65,"app-icon",18),e.k0s()(),e.j41(66,"app-button",19),e.nI1(67,"translate"),e.bIt("clicked",function(){return p.next()}),e.EFF(68),e.nI1(69,"translate"),e.nrm(70,"app-icon",20),e.k0s()()()(),e.j41(71,"app-dialog",21),e.nI1(72,"translate"),e.nI1(73,"translate"),e.bIt("confirm",function(){return p.closeModal()})("cancel",function(){return p.closeModal()})("outside",function(){return null}),e.j41(74,"p"),e.EFF(75),e.nI1(76,"translate"),e.k0s(),e.j41(77,"p"),e.EFF(78),e.nI1(79,"translate"),e.k0s(),e.j41(80,"p"),e.EFF(81),e.nI1(82,"translate"),e.k0s()(),e.j41(83,"app-dialog",22),e.nI1(84,"translate"),e.nI1(85,"translate"),e.bIt("confirm",function(){return p.closeModal()})("cancel",function(){return p.closeModal()})("outside",function(){return null}),e.j41(86,"p"),e.EFF(87),e.nI1(88,"translate"),e.k0s(),e.j41(89,"p"),e.EFF(90),e.nI1(91,"translate"),e.k0s()()),2&d&&(e.R7$(4),e.SpI(" ",e.bMT(5,40,"ONBOARDING.STEP3.OTHER_DATA.OTHER_DATA")," "),e.R7$(4),e.Y8G("routerLink",p.back()),e.BMQ("aria-label",e.bMT(9,42,"ONBOARDING.COMMON.BACK_LABEL")),e.R7$(6),e.SpI(" ",e.bMT(15,44,"ONBOARDING.STEP3.OTHER_DATA.OTHER_DATA_INTRO")," "),e.R7$(5),e.SpI(" ",e.bMT(20,46,"ONBOARDING.ADDRESS.REQUIRED_FIELDS")," "),e.R7$(2),e.vxM(21,p.authorized||p.professional?-1:21),e.R7$(),e.vxM(22,p.authorized||p.professional?-1:22),e.R7$(4),e.SpI(" ",e.bMT(27,48,"ONBOARDING.STEP3.OTHER_DATA2.PUBLIC_CHARGES"),""),e.R7$(5),e.SpI(" ",e.bMT(32,50,"ONBOARDING.STEP3.OTHER_DATA2.PUBLIC_CHARGES_INFO")," "),e.R7$(4),e.Y8G("form",null==p.formotherdata2?null:p.formotherdata2.get("special_position")),e.R7$(3),e.Y8G("variant","plain")("styleClass","text-decoration: underline; color: #0a8250")("ariaHaspopup","dialog")("ariaControls","eDialog"),e.R7$(),e.SpI(" ",e.bMT(40,52,"ONBOARDING.STEP3.OTHER_DATA2.PUBLIC_CHARGES_LINK")," "),e.R7$(5),e.JRh(e.bMT(45,54,"ONBOARDING.STEP3.OTHER_DATA2.THIRD_ACCOUNT")),e.R7$(5),e.SpI(" ",e.bMT(50,56,"ONBOARDING.STEP3.OTHER_DATA2.THIRD_ACCOUNT_INFO")," "),e.R7$(4),e.Y8G("form",null==p.form?null:p.form.get("additional_data").get("third_parties_check")),e.R7$(3),e.Y8G("variant","plain")("styleClass","text-decoration: underline;
1 color: #0a8250")("ariaHaspopup","dialog")("ariaControls","eDialog2"),e.R7$(),e.SpI(" ",e.bMT(58,58,"ONBOARDING.STEP3.OTHER_DATA2.THIRD_ACCOUNT_LINK")," "),e.R7$(3),e.Y8G("routerLink",p.back()),e.BMQ("aria-label",e.bMT(61,60,"ONBOARDING.COMMON.BACK_LABEL")),e.R7$(3),e.SpI(" ",e.bMT(64,62,"ONBOARDING.COMMON.BACK")," "),e.R7$(3),e.Y8G("variant","primary")("ariaLabel",e.bMT(67,64,"ONBOARDING.COMMON.CONTINUE_LABEL")),e.R7$(2),e.SpI(" ",e.bMT(69,66,"ONBOARDING.COMMON.CONTINUE")," "),e.R7$(3),e.FS9("headline",e.bMT(72,68,"ONBOARDING.STEP3.OTHER_DATA2.PUBLIC_CHARGES_MODAL_HEADER")),e.FS9("confirmLabel",e.bMT(73,70,"ONBOARDING.COMMON.CLOSE")),e.Y8G("dismissible",!0),e.R7$(4),e.SpI(" ",e.bMT(76,72,"ONBOARDING.STEP3.OTHER_DATA2.PUBLIC_CHARGES_MODAL_BODY1")," "),e.R7$(3),e.SpI(" ",e.bMT(79,74,"ONBOARDING.STEP3.OTHER_DATA2.PUBLIC_CHARGES_MODAL_BODY2")," "),e.R7$(3),e.SpI(" ",e.bMT(82,76,"ONBOARDING.STEP3.OTHER_DATA2.PUBLIC_CHARGES_MODAL_BODY3")," "),e.R7$(2),e.FS9("headline",e.bMT(84,78,"ONBOARDING.STEP3.OTHER_DATA2.THIRD_ACCOUNT")),e.FS9("confirmLabel",e.bMT(85,80,"ONBOARDING.COMMON.CLOSE")),e.Y8G("dismissible",!0),e.R7$(4),e.SpI(" ",e.bMT(88,82,"ONBOARDING.STEP3.OTHER_DATA2.THIRD_ACCOUNT_MODAL_BODY1")," "),e.R7$(3),e.SpI(" ",e.bMT(91,84,"ONBOARDING.STEP3.OTHER_DATA2.THIRD_ACCOUNT_MODAL_BODY2")," "))},dependencies:[c.Wk,B.Qp,A.m,N.R,D.S,w.d,$.D9],styles:["#simbolos[_ngcontent-%COMP%]{font-size:18px}#alertmoney[_ngcontent-%COMP%]{font-size:14px}.secondary[_ngcontent-%COMP%]{position:fixed;top:13px;left:15px;background-color:transparent;background-repeat:no-repeat;border:none;cursor:pointer;overflow:hidden;outline:none;z-index:100001}.secondary[_ngcontent-%COMP%]   app-icon[_ngcontent-%COMP%]{color:#000}.continueBtn[_ngcontent-%COMP%]{align-items:center;background-color:#0a8250;border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--e-button-font-size);justify-content:space-between;line-height:1.2em;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;width:100%;text-decoration:none!important}.continueBtn[_ngcontent-%COMP%]:hover{background-color:#2b5033}.continueBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;flex-grow:1;text-align:center;line-height:25px;color:#fff!important;font-size:1rem}.returnBtn[_ngcontent-%COMP%]{background-color:#fff;box-shadow:inset 0 0 0 .0625rem #0a8250;max-width:var(--e-button-max-width);border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;text-decoration:none!important;justify-content:center;align-items:center;display:flex;margin-right:1rem}.returnBtn[_ngcontent-%COMP%]:hover{background-color:#0a8250}.returnBtn[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%]{color:#fff}.returnBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#0a8250;font-size:var(--e-button-font-size)}.right-align[_ngcontent-%COMP%]{text-align:right}.right-align[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#333}.dialog-button[_ngcontent-%COMP%]{color:#0a8250!important;text-decoration:underline!important;border:none;background:none}"]})}}return T})();var v=r(2099),S=r(70150);let M=(()=>{class T{constructor(){this.states=[{step:"1",description:"Datos de contacto"},{step:"2",description:"Verifica tu identidad"},{step:"3",description:"Informaci\xf3n adicional"},{step:"4",description:"Configura tu Tarjeta"},{step:"5",description:"T\xe9rminos y condiciones"}]}static{this.\u0275fac=function(d){return new(d||T)}}static{this.\u0275cmp=e.VBU({type:T,selectors:[["app-step3"]],decls:4,vars:1,consts:[[1,"container-wrap"],["status","3",3,"states"],[1,"main"]],template:function(d,p){1&d&&(e.j41(0,"div",0),e.nrm(1,"app-aside-menu",1),e.j41(2,"div",2),e.nrm(3,"router-outlet"),e.k0s()()),2&d&&(e.R7$(),e.Y8G("states",p.states))},dependencies:[c.n3,S.d]})}}return T})();var W=r(9304),ht=r(22813),Et=r(10011),_t=r(63367);const It=[{path:"",component:M,children:[{path:"other-data",component:y,canActivate:[t.k]},{path:"other-data2",component:lt,canActivate:[t.k]},{path:"address",component:xt,canActivate:[t.k]},{path:"employment-situation",component:Kt,canActivate:[t.k]},{path:"employment-situation-professional",component:Vt,canActivate:[t.k]},{path:"employment-situation-freelance",component:$t,canActivate:[t.k]},{path:"apartment",component:St,canActivate:[t.k]},{path:"send-documentation",component:v.c,canActivate:[t.k]},{path:"validating-documentation",component:W.r,canActivate:[t.k]},{path:"send-documentation2",component:Et.a,canActivate:[t.k]},{path:"validating-documentation2",component:_t.H,canActivate:[t.k]},{path:"process-started",component:i.B,canActivate:[t.k],data:{content:{title:"ONBOARDING.COMMON.HELLO_NAME",subtitle:"ONBOARDING.COMMON.SKIP_START_SUBTITLE",text:"ONBOARDING.COMMON.SKIP_START_TEXT",icon:"reload",buttons:[{name:"ONBOARDING.COMMON.CONTINUE",action:"loadNextState",variant:"primary"}]}}},{path:"process-started-professional",component:i.B,canActivate:[t.k],data:{content:{title:"ONBOARDING.COMMON.HELLO_NAME",subtitle:"ONBOARDING.COMMON.SKIP_START_SUBTITLE",text:"ONBOARDING.COMMON.SKIP_START_TEXT",icon:"reload",buttons:[{name:"ONBOARDING.COMMON.CONTINUE",action:"loadNextState",variant:"primary"}],professional:!0}}},{path:"ad-process-started",component:i.B,data:{}},{path:"way-to-pay",component:ht.q,canActivate:[t.k]}]}];let Nt=(()=>{class T{static{this.\u0275fac=function(d){return new(d||T)}}static{this.\u0275mod=e.$C({type:T})}static{this.\u0275inj=e.G2t({imports:[c.iI.forChild(It),c.iI]})}}return T})(),Wt=(()=>{class T{static{this.\u0275fac=function(d){return new(d||T)}}static{this.\u0275mod=e.$C({type:T})}static{this.\u0275inj=e.G2t({imports:[Nt,u.G,h.YN,h.X1]})}}return T})()},9304:(ut,tt,r)=>{r.d(tt,{r:()=>b});var h=r(86615),u=r(11431),i=r(7009);
1function t(O){const{subscriber:x,counter:V,period:G}=O;x.next(V),this.schedule({subscriber:x,counter:V+1,period:G},G)}var s=r(35824),k=r(11201),o=r(88025),F=r(25662),n=r(18162),a=r(7637),e=r(54348),E=r(53786);let b=(()=>{class O{constructor(V,G,K,B){this.router=V,this.formsService=G,this.route=K,this.modalService=B,this._CHECKS=5,this._TIME=1e4,this.check=0}ngOnInit(){this.modalService.closeModal("error"),this.route.data.subscribe(V=>{this.form=V.form}),this.isOk(),this.subscription=function c(O=0,x=u.b){return(!(0,i.k)(O)||O<0)&&(O=0),(!x||"function"!=typeof x.schedule)&&(x=u.b),new h.c(V=>(V.add(x.schedule(t,O,{subscriber:V,counter:0,period:O})),V))}(this._TIME).pipe((0,s.s)(this._CHECKS)).subscribe(()=>this.isOk())}ngOnDestroy(){this.subscription.unsubscribe()}isOk(){this.check++,this.formsService.getCRMState().subscribe(V=>{"35"===V.request_data.pre_status&&(this.check--,this.next())},V=>{this.router.navigate([`/wizard/error/${V.status}`])}),this.check===this._CHECKS&&this.router.navigate(["/wizard/error/500"])}exit(V){this.router.navigate(["/wizard/step4/way-to-pay-options"])}next(){this.router.navigate(["/wizard/step4/send-documentation2"])}static{this.\u0275fac=function(G){return new(G||O)(k.rXU(o.Ix),k.rXU(F.f),k.rXU(o.nX),k.rXU(n.B))}}static{this.\u0275cmp=k.VBU({type:O,selectors:[["app-validating-documentation"]],decls:24,vars:20,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],[1,"col","pl-3","pl-xl-0"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium"],[1,"row","spacer-bottom-medium"],[1,"col-auto","d-flex","align-items-center"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","sandglass","width","24px","height","24px"],[1,"col","d-flex","align-items-center"],[1,"mb-0"],["id","error",3,"outside","cancel","confirm","headline","confirmLabel","dismissible","error"]],template:function(G,K){1&G&&(k.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),k.EFF(4),k.nI1(5,"translate"),k.k0s()(),k.j41(6,"div",2)(7,"div",4)(8,"span"),k.EFF(9),k.nI1(10,"translate"),k.k0s()()(),k.j41(11,"div",5)(12,"div",6),k.nrm(13,"app-icon",7),k.k0s(),k.j41(14,"div",8)(15,"p",9),k.EFF(16),k.nI1(17,"translate"),k.k0s()()()()(),k.j41(18,"app-dialog",10),k.nI1(19,"translate"),k.nI1(20,"translate"),k.bIt("outside",function(j){return K.exit(j)})("cancel",function(j){return K.exit(j)})("confirm",function(j){return K.exit(j)}),k.j41(21,"p"),k.EFF(22),k.nI1(23,"translate"),k.k0s()()),2&G&&(k.R7$(4),k.SpI(" ",k.bMT(5,8,"ONBOARDING.STEP3.VALIDATING_DOCUMENTATION.HEAD")," "),k.R7$(5),k.SpI(" ",k.bMT(10,10,"ONBOARDING.STEP3.VALIDATING_DOCUMENTATION.SUB")," "),k.R7$(7),k.SpI(" ",k.bMT(17,12,"ONBOARDING.STEP3.VALIDATING_DOCUMENTATION.MSG")," "),k.R7$(2),k.FS9("headline",k.bMT(19,14,"ONBOARDING.STEP3.VALIDATING_DOCUMENTATION.DIALOG.HEAD")),k.FS9("confirmLabel",k.bMT(20,16,"ONBOARDING.COMMON.CLOSE")),k.Y8G("dismissible",!1)("error",!0),k.R7$(4),k.SpI(" ",k.bMT(23,18,"ONBOARDING.STEP3.VALIDATING_DOCUMENTATION.DIALOG.BODY")," "))},dependencies:[a.m,e.R,E.D9],styles:[".tmp-button[_ngcontent-%COMP%]{position:fixed;top:30px}"]})}}return O})()},63367:(ut,tt,r)=>{r.d(tt,{H:()=>o});var h=r(11201),u=r(88025),i=r(25662),c=r(18162),t=r(7637),s=r(54348),k=r(53786);let o=(()=>{class F{constructor(a,e,E,b){this.router=a,this.formsService=e,this.route=E,this.modalService=b,this._CHECKS=5,this._TIME=1e4,this.check=0}ngOnInit(){this.modalService.closeModal("error"),this.route.data.subscribe(a=>{this.form=a.form}),this.isOk()}isOk(){const a=this.form.value;a.request_data.pre_status="29",setTimeout(()=>{this.formsService.updateCRM(a).subscribe(e=>{e&&this.next()},e=>{this.router.navigate([`/wizard/error/${e.status}`])})},1e4)}exit(a){this.router.navigate(["/wizard/step4/way-to-pay-options"])}next(){this.router.navigate(["/wizard/step4/way-to-pay-options"])}static{this.\u0275fac=function(e){return new(e||F)(h.rXU(u.Ix),h.rXU(i.f),h.rXU(u.nX),h.rXU(c.B))}}static{this.\u0275cmp=h.VBU({type:F,selectors:[["app-validating-documentation2"]],decls:24,vars:20,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],[1,"col","pl-3","pl-xl-0"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium"],[1,"row","spacer-bottom-medium"],[1,"col-auto","d-flex","align-items-center"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","sandglass","width","24px","height","24px"],[1,"col","d-flex","align-items-center"],[1,"mb-0"],["
1id","error",3,"outside","cancel","confirm","headline","confirmLabel","dismissible","error"]],template:function(e,E){1&e&&(h.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),h.EFF(4),h.nI1(5,"translate"),h.k0s()(),h.j41(6,"div",2)(7,"div",4)(8,"span"),h.EFF(9),h.nI1(10,"translate"),h.k0s()()(),h.j41(11,"div",5)(12,"div",6),h.nrm(13,"app-icon",7),h.k0s(),h.j41(14,"div",8)(15,"p",9),h.EFF(16),h.nI1(17,"translate"),h.k0s()()()()(),h.j41(18,"app-dialog",10),h.nI1(19,"translate"),h.nI1(20,"translate"),h.bIt("outside",function(O){return E.exit(O)})("cancel",function(O){return E.exit(O)})("confirm",function(O){return E.exit(O)}),h.j41(21,"p"),h.EFF(22),h.nI1(23,"translate"),h.k0s()()),2&e&&(h.R7$(4),h.SpI(" ",h.bMT(5,8,"ONBOARDING.STEP3.VALIDATING_DOCUMENTATION.HEAD")," "),h.R7$(5),h.SpI(" ",h.bMT(10,10,"ONBOARDING.STEP3.VALIDATING_DOCUMENTATION.SUB")," "),h.R7$(7),h.SpI(" ",h.bMT(17,12,"ONBOARDING.STEP3.VALIDATING_DOCUMENTATION.MSG")," "),h.R7$(2),h.FS9("headline",h.bMT(19,14,"ONBOARDING.STEP3.VALIDATING_DOCUMENTATION.DIALOG.HEAD")),h.FS9("confirmLabel",h.bMT(20,16,"ONBOARDING.COMMON.CLOSE")),h.Y8G("dismissible",!1)("error",!0),h.R7$(4),h.SpI(" ",h.bMT(23,18,"ONBOARDING.STEP3.VALIDATING_DOCUMENTATION.DIALOG.BODY")," "))},dependencies:[t.m,s.R,k.D9],styles:[".tmp-button[_ngcontent-%COMP%]{position:fixed;top:30px}"]})}}return F})()},22813:(ut,tt,r)=>{r.d(tt,{q:()=>a});var h=r(95769),u=r.n(h),i=r(11201),c=r(88025),t=r(25662),s=r(3390),k=r(63868),o=r(55902),F=r(54348),n=r(53786);let a=(()=>{class e{constructor(b,O,x,V,G){this.route=b,this.formsService=O,this.router=x,this._storageService=V,this.wayToPayService=G,this.hasBureauFlag=!1,this.professional=!!this._storageService.getItem("professional")}ngOnInit(){this.route.data.subscribe(b=>{this.form=b.form}),this.formsService.getCRMState().subscribe(b=>{this.hasBureauFlag=(b.additional_info??[]).some(O=>("H-ZSOL_EQUI_LIST"===O.property_id||"H-ZSOL_EXPE_LIST"===O.property_id)&&"X"===O.value)}),this.getProductAndSubproduct()}getProductAndSubproduct(){this.wayToPayService.calculateAssignations("END_OF_MONTH").subscribe(b=>{this.product=b.product_id,this.subproduct=b.subproduct})}next(){this.form.get("bank_data").get("payment_method").setValue("1"),this.form.value.request_data.pre_status=this.hasBureauFlag?"07":"22";const b=u().cloneDeep(this.form.value);this.changePropertyValue(b.additional_info,"BANK-TIPOPAGO2","1"),this.changePropertyValue(b.additional_info,"BANK-CANTIDAD2",""),this.changePropertyValue(b.additional_info,"H-ZSOL_PRODUCTO_C","01"),this.changePropertyValue(b.additional_info,"H-ZSOL_PRODUCTO_O",this.product),this.changePropertyValue(b.additional_info,"H-ZSOL_SUBPROD_C",this.subproduct),this.changePropertyValue(b.additional_info,"H-ZSOL_SUBPROD_O",this.subproduct),b.bank_data.amount="",this.formsService.updateCRM(b).subscribe(()=>{this.router.navigate(this.hasBureauFlag?["/wizard/step5/request-in-process"]:["/wizard/step5/preferences"])},O=>{console.error(O)})}changePropertyValue(b,O,x){b.find(V=>V.property_id==O)?b.map(function(V){V.property_id==O&&(V.value=x)}):b.push({property_id:O,value:x})}static{this.\u0275fac=function(O){return new(O||e)(i.rXU(c.nX),i.rXU(t.f),i.rXU(c.Ix),i.rXU(s.n),i.rXU(k.g))}}static{this.\u0275cmp=i.VBU({type:e,selectors:[["app-way-to-pay"]],decls:58,vars:33,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-9","col-xl-6"],[1,"row","mb-3","d-lg-none"],[1,"col","pl-3","pl-xl-0"],["routerLink","/wizard/step4/way-to-pay-options","tabindex","0",1,"btn-back","secondary"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","arrow-left","width","24px","height","24px",1,"float-left"],[1,"row"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium"],[1,"col","card"],[1,"col-6","d-flex","justify-content-start"],[1,"col-6","d-flex","justify-content-end"],[1,"col-12"],[1,"row","mb-item"],[1,"col-11","d-flex","justify-content-start","center-align"],["src","./assets/icons/onboarding-card/ECI.svg","alt","","role","presentation"],[1,"col-1"],["src","./assets/icons/onboarding-card/World.svg","alt","","role","presentation"],[1,"row","spacer-both-high","d-flex","justify-content-center"],["tabindex","0","routerLink","/wizard/step4/way-to-pay-options",1,"returnBtn","d-none","d-lg-flex"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-left","width","24px","height","24px",1,"float-left"],[3,"clicked","ariaLabel"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"],[1,"col-4","float-right","mt-2"],[1,"float-right","amount"]],template:function(O,x){1&O&&(i.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),i.nI1(5,"translate"),i.nrm(6,"app-icon",5),i.k0s()()(),i.j41(7,"div",6)(8,"h1",3),i.EFF(9),i.nI1(10,"translate"),i.k0s()(),i.j41(11,"div",6)(12,"div",7)(13,"span"),i.EFF(14),i.nI1(15,"translate"),i.k0s()()(),i.j41(16,"div",8)(17,"div",6)(18,"div",9)(19,"h2"),i.EFF(20),i.nI1(21,"translate"),i.k0s()(),i.j41(22,"div",10)(23,"h2"),i.EFF(24),i.nI1(25,"translate"),i.k0s()()(),i.j41(26,"div",6)(27,"div",11),i.nrm(28,"hr"),i.k0s()(),i.j41(29,"div",12)(30,"span",13),i.nrm(31,"img",14),i.EFF(32),i.nI1(33,"translate"),i.k0s(),i.j41(34,"span",15),i.EFF(35,"-"),i.k0s()(),i.j41(36,"div",12)(37,"span",13),i.nrm(38,"img",16),i.EFF(39),i.nI1(40,"translate"),i.k0s(),i.j41(4
11,"span",15),i.EFF(42,"-"),i.k0s()()(),i.j41(43,"div",17)(44,"a",18),i.nI1(45,"translate"),i.j41(46,"span"),i.EFF(47),i.nI1(48,"translate"),i.nrm(49,"app-icon",19),i.k0s()(),i.j41(50,"app-button",20),i.nI1(51,"translate"),i.bIt("clicked",function(){return x.next()}),i.j41(52,"span"),i.EFF(53),i.nI1(54,"translate"),i.nrm(55,"app-icon",21),i.k0s()()(),i.j41(56,"div",22),i.nrm(57,"span",23),i.k0s()()()),2&O&&(i.R7$(4),i.BMQ("aria-label",i.bMT(5,11,"ONBOARDING.COMMON.BACK_LABEL")),i.R7$(5),i.SpI(" ",i.bMT(10,13,"ONBOARDING.STEP3.WAY_TO_PAY.HEAD")," "),i.R7$(5),i.SpI("",i.bMT(15,15,"ONBOARDING.STEP3.WAY_TO_PAY.SUB")," "),i.R7$(6),i.SpI(" ",i.bMT(21,17,"ONBOARDING.STEP3.WAY_TO_PAY.WAY_TO_PAY")," "),i.R7$(4),i.SpI(" ",i.bMT(25,19,"ONBOARDING.STEP3.WAY_TO_PAY.END_MONTH")," "),i.R7$(8),i.SpI(" ",i.bMT(33,21,"ONBOARDING.TCECI.CREDIT_LIMITS.ECI_LIMIT")," "),i.R7$(7),i.SpI(" ",i.bMT(40,23,"ONBOARDING.TCECI.CREDIT_LIMITS.OTHERS_LIMIT")," "),i.R7$(5),i.BMQ("aria-label",i.bMT(45,25,"ONBOARDING.COMMON.BACK_LABEL")),i.R7$(3),i.SpI(" ",i.bMT(48,27,"ONBOARDING.COMMON.BACK")," "),i.R7$(3),i.Y8G("ariaLabel",i.bMT(51,29,"ONBOARDING.COMMON.CONTINUE_LABEL")),i.R7$(3),i.SpI(" ",i.bMT(54,31,"ONBOARDING.COMMON.CONTINUE")," "))},dependencies:[c.Wk,o.Qp,F.R,n.D9],styles:["[_nghost-%COMP%]   h1[_ngcontent-%COMP%]{margin-bottom:0}[_nghost-%COMP%]   h2[_ngcontent-%COMP%], [_nghost-%COMP%]   p[_ngcontent-%COMP%]{margin-bottom:0}[_nghost-%COMP%]   .mb-item[_ngcontent-%COMP%]{margin-bottom:40px}[_nghost-%COMP%]   .card[_ngcontent-%COMP%]{max-width:566px;padding:35px 56px 6px 40px;border-radius:10px;border-color:#182433;margin-bottom:60px}[_nghost-%COMP%]   hr[_ngcontent-%COMP%]{margin-top:35px;margin-bottom:35px;width:100%;border-top:1px solid #606060}@media screen and (max-width: 992px){[_nghost-%COMP%]   .card[_ngcontent-%COMP%]{padding:35px 20px 6px}[_nghost-%COMP%]   .card[_ngcontent-%COMP%]   .ml-4[_ngcontent-%COMP%]{margin-left:0!important}}.infoMsg[_ngcontent-%COMP%]{top:14px;line-height:20px}.limits[_ngcontent-%COMP%]{font-size:14px;display:flex}.amount[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-end;align-content:center}app-icon[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center}.spacer[_ngcontent-%COMP%]{margin-top:4rem!important}.secondary[_ngcontent-%COMP%]{position:fixed;top:13px;left:15px;background-color:transparent;background-repeat:no-repeat;border:none;cursor:pointer;overflow:hidden;outline:none;z-index:100001}.secondary[_ngcontent-%COMP%]   app-icon[_ngcontent-%COMP%]{color:#000}.continueBtn[_ngcontent-%COMP%]{align-items:center;background-color:#0a8250;border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--e-button-font-size);justify-content:space-between;line-height:1.2em;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;width:100%;text-decoration:none!important}.continueBtn[_ngcontent-%COMP%]:hover{background-color:#2b5033}.continueBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;flex-grow:1;text-align:center;line-height:25px;color:#fff!important;font-size:1rem}.returnBtn[_ngcontent-%COMP%]{background-color:#fff;box-shadow:inset 0 0 0 .0625rem #0a8250;max-width:var(--e-button-max-width);border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;text-decoration:none!important;justify-content:center;align-items:center;display:flex;margin-right:1rem}.returnBtn[_ngcontent-%COMP%]:hover{background-color:#0a8250}.returnBtn[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%]{color:#fff}.returnBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#0a8250;font-size:var(--e-button-font-size)}.right-align[_ngcontent-%COMP%]{text-align:right}.right-align[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#333}.center-align[_ngcontent-%COMP%]{align-items:center}img[_ngcontent-%COMP%]{width:24px;height:24px;vertical-align:middle;margin-right:8px}"]})}}return e})()},35068:(ut,tt,r)=>{r.r(tt),r.d(tt,{Step4Module:()=>l});var h=r(19767),u=r(87514),i=r(88856),c=r(88025),t=r(84692),s=r(2099),k=r(9304),o=r
1(22813),F=r(13054),n=r(11201),a=r(25662),e=r(3390),E=r(29394),b=r(55902),O=r(54348),x=r(53786);const V=d=>({active:d}),G=d=>({selected:d});function K(d,p){1&d&&(n.j41(0,"p",18),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&d&&(n.R7$(),n.SpI(" ",n.bMT(2,1,"FORM.ERRORS.REQUIRED")," "))}function B(d,p){1&d&&(n.j41(0,"p",27),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&d&&(n.R7$(),n.SpI(" ",n.bMT(2,1,"ONBOARDING.STEP4.WAY-TO-PAY-OPTIONS.REMINDER")," "))}function j(d,p){1&d&&(n.j41(0,"p",28),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&d&&(n.R7$(),n.SpI(" ",n.bMT(2,1,"ONBOARDING.STEP4.WAY-TO-PAY-OPTIONS.REMINDER_2")," "))}function P(d,p){if(1&d&&(n.j41(0,"div",19),n.DNE(1,B,3,3,"p",27)(2,j,3,3),n.k0s()),2&d){const m=n.XpG();n.R7$(),n.vxM(1,"REVOLVING"==m.optionSelected?1:2)}}let L=(()=>{class d{constructor(m,_,g,z,ot){this.route=m,this.router=_,this.formsService=g,this._storageService=z,this.titleService=ot,this.formControl=new F.hs,this.optionSelected="REVOLVING",this.showError=!1,this.revolving=[{value:"REVOLVING",text:"ONBOARDING.STEP4.WAY-TO-PAY-OPTIONS.FIRST_OPTION"}],this.notRevolving=[{value:"NOT_REVOLVING",text:"ONBOARDING.STEP4.WAY-TO-PAY-OPTIONS.SECOND_OPTION"}],this.hasBureauFlag=!1}ngOnInit(){this.titleService.setTitleFromTranslation("PAGE_TITLES.WAY_TO_PAY_OPTIONS"),this.route.data.subscribe(m=>{this.form=m.form}),this.formsService.getCRMState().subscribe(m=>{this.hasBureauFlag=(m.additional_info??[]).some(_=>("H-ZSOL_EQUI_LIST"===_.property_id||"H-ZSOL_EXPE_LIST"===_.property_id)&&"X"===_.value)})}optionsChanged(m){this.optionSelected=m,this.formControl.setValue(m),this.showError=!1}focusNextOption(m){m.preventDefault();const _=this.optionSelected;"REVOLVING"!==_&&_?"NOT_REVOLVING"===_&&(this.optionsChanged("REVOLVING"),this.focusElement(".radio__option__revolving")):(this.optionsChanged("NOT_REVOLVING"),this.focusElement(".radio__option-not_revolving"))}focusPreviousOption(m){m.preventDefault();const _=this.optionSelected;"NOT_REVOLVING"!==_&&_?"REVOLVING"===_&&(this.optionsChanged("NOT_REVOLVING"),this.focusElement(".radio__option-not_revolving")):(this.optionsChanged("REVOLVING"),this.focusElement(".radio__option__revolving"))}focusElement(m){setTimeout(()=>{const _=document.querySelector(m);_&&_.focus()},0)}continue(){this.optionSelected?"REVOLVING"==this.optionSelected?this.router.navigate(["/wizard/step4/way-to-pay-due-option"]):"NOT_REVOLVING"==this.optionSelected&&this.router.navigate(["/wizard/step4/way-to-pay"]):this.showError=!0}back(){return this.hasBureauFlag?["/wizard/step3/other-data2"]:["/wizard/step4/account-verification"]}static{this.\u0275fac=function(_){return new(_||d)(n.rXU(c.nX),n.rXU(c.Ix),n.rXU(a.f),n.rXU(e.n),n.rXU(E.E))}}static{this.\u0275cmp=n.VBU({type:d,selectors:[["app-way-to-pay-options"]],decls:53,vars:54,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-9","col-xl-6"],[1,"row","mb-3","d-lg-none"],[1,"col","pl-3","pl-xl-0"],["routerLink","/wizard/step1/welcome","tabindex","0",1,"btn-back","secondary"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","arrow-left","width","24px","height","24px",1,"float-left"],[1,"row"],["role","radiogroup","aria-labelledby","radio-group-label",1,"radio","d-flex","flex-column"],["id","radio-group-label",1,"sr-only"],["role","radio",1,"card","radio__option__revolving","col-12",3,"keydown.enter","keydown.space","keydown.arrowdown","keydown.arrowup","click","ngClass","tabindex"],[1,"radio-option-content"],[1,"d-flex","align-items-center","mb-2"],[1,"radio-indicator","mr-2",3,"ngClass"],[1,"option-title","font-weight-bold"],[1,"d-flex","flex-column","text-options"],["role","radio",1,"card","radio__option-not_revolving","mt-3","col-12",3,"keydown.enter","keydown.space","keydown.arrowdown","keydown.arrowup","click","ngClass","tabindex"],[1,"d-flex","align-items-center"],[1,"option-title","option-title--normal"],["role","alert",1,"mt-1","error-required"],[1,"reminder"],[1,"my-lg-5","spacer-both-high","d-flex","justify-content-center"],["tabindex","0",1,"returnBtn","d-none","d-lg-flex",3,"click","routerLink"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-left","width","24px","height","24px",1,"float-left"],[1,"continueBtn","col","d-flex","justify-content-center","justify-content-lg-start",3,"clicked"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"],[1,"col-4","float-right","mt-2"],[1,"float-right","amount"],["id","reminderRevolving","aria-live","polite"],["id","reminderNotRevolving","aria-live","polite"]],template:function(_,g){1&_&&(n.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),n.nI1(5,"translate"),n.nrm(6,"app-icon",5),n.k0s()()(),n.j41(7,"div",6)(8,"h1",3),n.EFF(9),n.nI1(10,"translate"),n.k0s()(),n.j41(11,"div",7)(12,"div",8),n.EFF(13),n.nI1(14,"translate"),n.k0s(),n.j41(15,"div",9),n.bIt("keydown.enter",function(){return g.optionsChanged("REVOLVING")})("keydown.space",function(ot){return g.optionsChanged("REVOLVING"),ot.preventDefault()})("keydown.arrowdown",function(ot){return g.focusNextOption(ot)})("keydown.arrowup",function(ot){return g.focusPreviousOption(ot)})("click",function(){return g.optionsChanged("REVOLVING")}),n.j41(16,"div",10)(17,"div",11),n.nrm(18,"div",12),n.j41(19,"span",13),n.EFF(20),n.nI1(21,"translate"),n.k0s()(),n.j41(22,"div",14)(23,"span"),n.EFF(24),n.nI1(25,"translate"),n.k0s(),n.j41(26,"span"),n.EFF(27),n.n
1I1(28,"translate"),n.k0s()()()(),n.j41(29,"div",15),n.bIt("keydown.enter",function(){return g.optionsChanged("NOT_REVOLVING")})("keydown.space",function(ot){return g.optionsChanged("NOT_REVOLVING"),ot.preventDefault()})("keydown.arrowdown",function(ot){return g.focusNextOption(ot)})("keydown.arrowup",function(ot){return g.focusPreviousOption(ot)})("click",function(){return g.optionsChanged("NOT_REVOLVING")}),n.j41(30,"div",10)(31,"div",16),n.nrm(32,"div",12),n.j41(33,"span",17),n.EFF(34),n.nI1(35,"translate"),n.k0s()()()()(),n.DNE(36,K,3,3,"p",18)(37,P,3,1,"div",19),n.j41(38,"div",20)(39,"a",21),n.nI1(40,"translate"),n.bIt("click",function(){return g.back()}),n.j41(41,"span"),n.EFF(42),n.nI1(43,"translate"),n.nrm(44,"app-icon",22),n.k0s()(),n.j41(45,"app-button",23),n.nI1(46,"translate"),n.bIt("clicked",function(){return g.continue()}),n.j41(47,"span"),n.EFF(48),n.nI1(49,"translate"),n.nrm(50,"app-icon",24),n.k0s()()(),n.j41(51,"div",25),n.nrm(52,"span",26),n.k0s()()()),2&_&&(n.R7$(4),n.BMQ("aria-label",n.bMT(5,24,"ONBOARDING.COMMON.BACK_LABEL")),n.R7$(5),n.SpI(" ",n.bMT(10,26,"ONBOARDING.STEP4.WAY-TO-PAY-OPTIONS.HEAD")," "),n.R7$(4),n.SpI(" ",n.bMT(14,28,"ONBOARDING.STEP4.WAY-TO-PAY-OPTIONS.HEAD")," "),n.R7$(2),n.Y8G("ngClass",n.eq3(46,V,"REVOLVING"==g.optionSelected))("tabindex","REVOLVING"!=g.optionSelected&&g.optionSelected?-1:0),n.BMQ("aria-checked","REVOLVING"==g.optionSelected)("aria-describedby","REVOLVING"==g.optionSelected?"reminderRevolving":null),n.R7$(3),n.Y8G("ngClass",n.eq3(48,G,"REVOLVING"==g.optionSelected)),n.R7$(2),n.SpI(" ",n.bMT(21,30,"ONBOARDING.STEP4.WAY-TO-PAY-OPTIONS.FIRST_OPTION")," "),n.R7$(4),n.SpI(" ",n.bMT(25,32,"ONBOARDING.STEP4.WAY-TO-PAY-OPTIONS.FIRST_OPTION_FIRST_TEXT")," "),n.R7$(3),n.SpI(" ",n.bMT(28,34,"ONBOARDING.STEP4.WAY-TO-PAY-OPTIONS.FIRST_OPTION_SECOND_TEXT")," "),n.R7$(2),n.Y8G("ngClass",n.eq3(50,V,"NOT_REVOLVING"==g.optionSelected))("tabindex","NOT_REVOLVING"==g.optionSelected?0:-1),n.BMQ("aria-checked","NOT_REVOLVING"==g.optionSelected)("aria-describedby","NOT_REVOLVING"==g.optionSelected?"reminderNotRevolving":null),n.R7$(3),n.Y8G("ngClass",n.eq3(52,G,"NOT_REVOLVING"==g.optionSelected)),n.R7$(2),n.SpI(" ",n.bMT(35,36,"ONBOARDING.STEP4.WAY-TO-PAY-OPTIONS.SECOND_OPTION")," "),n.R7$(2),n.vxM(36,g.showError?36:-1),n.R7$(),n.vxM(37,g.optionSelected?37:-1),n.R7$(2),n.Y8G("routerLink",g.back()),n.BMQ("aria-label",n.bMT(40,38,"ONBOARDING.COMMON.BACK_LABEL")),n.R7$(3),n.SpI(" ",n.bMT(43,40,"ONBOARDING.COMMON.BACK")," "),n.R7$(3),n.BMQ("aria-label",n.bMT(46,42,"ONBOARDING.COMMON.CONTINUE_LABEL")),n.R7$(3),n.SpI(" ",n.bMT(49,44,"ONBOARDING.COMMON.CONTINUE")," "))},dependencies:[u.YU,c.Wk,b.Qp,O.R,x.D9],styles:['.container[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{margin-left:15px;margin-bottom:20px}.container[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]{padding:20px;cursor:pointer;border:1px solid black}.container[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]:focus{outline:2px solid #0066cc;outline-offset:2px}.container[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .text-options[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-left:2.5rem}.container[_ngcontent-%COMP%]   .dues[_ngcontent-%COMP%]{margin-bottom:20px}.container[_ngcontent-%COMP%]   .reminder[_ngcontent-%COMP%]{margin:10px 10px 10px 5px}.active[_ngcontent-%COMP%]{background-color:#f0f8ee;border:1px solid #0a8250}.radio-indicator[_ngcontent-%COMP%]{appearance:none;cursor:pointer;background-color:#fff;margin:0;font:inherit;color:#000;width:.938rem;height:.938rem;border:1px solid black;border-radius:50%;display:grid;place-content:center;transition:border-color .12s;position:relative}.radio-indicator[_ngcontent-%COMP%]:before{content:"";width:.938rem;height:.938rem;border-radius:50%;transform:scale(0);transition:.12s transform ease-in-out;box-shadow:inset 1em 1em #000;background-color:#000}.radio-indicator.selected[_ngcontent-%COMP%]{border-color:#000}.radio-indicator.selected[_ngcontent-%COMP%]:before{transform:scale(.5)}@media (forced-colors: active){.radio-indicator[_ngcontent-%COMP%]{border:2px solid ButtonText;background-color:Field}.radio-indicator.selected[_ngcontent-%COMP%]:before{box-shadow:none;background-color:ButtonText;forced-color-adjust:none}}
1.card[role=radio][_ngcontent-%COMP%]:focus{outline:2px solid #0066cc;outline-offset:2px}.sr-only[_ngcontent-%COMP%]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.card[role=radio][_ngcontent-%COMP%]{cursor:pointer}.option-title[_ngcontent-%COMP%]{font-weight:700;font-size:large;margin-left:.5rem}.option-title--normal[_ngcontent-%COMP%]{font-weight:400;font-size:1rem}.card.active[_ngcontent-%COMP%]{background-color:#f0f9f5;border:1px solid black}  .radio label>span{margin-left:10px}  .radio .radio__option__revolving label>span{font-weight:700;font-size:large!important}  .radio .radio__option-not_revolving label>span{font-size:1rem!important}.secondary[_ngcontent-%COMP%]{position:fixed;top:13px;left:15px;background-color:transparent;background-repeat:no-repeat;border:none;cursor:pointer;overflow:hidden;outline:none;z-index:100001}.secondary[_ngcontent-%COMP%]   app-icon[_ngcontent-%COMP%]{color:#000}.continueBtn[_ngcontent-%COMP%]{align-items:center;background-color:#0a8250;border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--e-button-font-size);justify-content:space-between;line-height:1.2em;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;width:100%;text-decoration:none!important;padding:0}.continueBtn[_ngcontent-%COMP%]:hover{background-color:#2b5033}.continueBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;flex-grow:1;text-align:center;line-height:25px;color:#fff!important;font-size:1rem}.returnBtn[_ngcontent-%COMP%]{background-color:#fff;box-shadow:inset 0 0 0 .0625rem #0a8250;max-width:var(--e-button-max-width);border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;text-decoration:none!important;justify-content:center;align-items:center;display:flex;margin-right:1rem}.returnBtn[_ngcontent-%COMP%]:hover{background-color:#0a8250}.returnBtn[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%]{color:#fff}.returnBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#0a8250;font-size:var(--e-button-font-size)}.error-required[_ngcontent-%COMP%]{color:#cf3030}']})}}return d})();var H=r(95769),N=r.n(H),$=r(63868),Z=r(8088),pt=r(85673),rt=r(96735),at=r(78185),U=r(48419);const X=[[["","close-tab",""]],[["","open-tab",""]],"*","*","*","*"],Y=["[close-tab]","[open-tab]","*","*","*","*"],I=d=>({activeGreen:d}),D=d=>({activeOrange:d});function w(d,p){1&d&&n.SdG(0)}function J(d,p){1&d&&n.SdG(0,1)}function Q(d,p){if(1&d&&(n.j41(0,"span",6),n.nrm(1,"img",7),n.EFF(2),n.nI1(3,"translate"),n.k0s()),2&d){const m=n.XpG(2);n.Y8G("ngClass",n.eq3(4,I,m.isEciActive)),n.R7$(2),n.SpI(" ",n.bMT(3,2,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.TECI")," ")}}function dt(d,p){1&d&&n.SdG(0,2,["*ngTemplateOutlet","closeTabTpl"])}function Ot(d,p){if(1&d&&(n.j41(0,"div",8),n.DNE(1,dt,1,0,"ng-content",9),n.k0s()),2&d){n.XpG(2);const m=n.sdS(1);n.BMQ("aria-labelledby","tab-0"),n.R7$(),n.Y8G("ngTemplateOutlet",m)}}function bt(d,p){if(1&d&&(n.j41(0,"span",10),n.nrm(1,"img",11),n.EFF(2),n.nI1(3,"translate"),n.k0s()),2&d){const m=n.XpG(2);n.Y8G("ngClass",n.eq3(4,D,!m.isEciActive)),n.R7$(2),n.SpI(" ",n.bMT(3,2,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.EVOLVE")," ")}}function Tt(d,p){1&d&&n.SdG(0,3,["*ngTemplateOutlet","openTabTpl"])}function Rt(d,p){if(1&d&&(n.j41(0,"div",12),n.DNE(1,Tt,1,0,"ng-content",9),n.k0s()),2&d){n.XpG(2);const m=n.sdS(3);n.BMQ("aria-labelledby","tab-1"),n.R7$(),n.Y8G("ngTemplateOutlet",m)}}function Dt(d,p){if(1&d){const m=n.RV6();n.j41(0,"mat-tab-group",3),n.bIt("selectedTabChange",function(g){n.eBV(m);const z=n.XpG();return n.Njj(z.ontabChange(g))}),n.j41(1,"mat-tab"),n.DNE(2,Q,4,6,"ng-template",4)(3,Ot,2,2,"ng-template",5),n.k0s(),n.j41(4,"mat-tab"),n.DNE(5,bt,4,6,"ng-template",4)(6,Rt,2,2,"ng-template",5),n.k0s()()}if(2&d){const m=n.XpG();n.Y8G("selectedIndex",m.isEciActive?0:1)("disablePagination",!0)("disableRipple",!0)}}function Mt(d,p){1&d&&(n.nrm(0,"img",19),n.j41(1,"span",22),n.EFF(2),n.nI1(3,"translate"),n.k0s()),2&d&&(n.R7$(2),n.SpI(" ",n.bMT(3,1,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.TECI")," "))}function Bt(d,p){1&d&&(n.nrm(0,"img",20),n.j41(1,"span",22),n.EFF(2),n.nI1(3,"translate"),n.k0s()),2&d&&(n.R7$(2),n.SpI(" ",n.bMT(3,1,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.EVOLVE")," "))}function Gt(d,p){1&d&&n.SdG(0,4,["*ngTemplateOutlet","closeTabTpl"])}function Lt(d,p){if(1&d&&n.DNE(0,Gt,1,0,"ng-content",9),2&d){n.XpG(2);const m=n.sdS(1);n.Y8G("ngTemplateOutlet",m)}}function vt(d,p){1&d&&n.SdG(0,5,["*ngTemplateOutlet","openTabTpl"])}function wt(d,p){if(1&d&&n.DNE(0,vt,1,0,"ng-content",9),2&d){n.XpG(2);const m=n.sdS(3);n.Y8G("ngTemplateOutlet",m)}}
1function nt(d,p){if(1&d){const m=n.RV6();n.j41(0,"div",13),n.nI1(1,"translate"),n.j41(2,"label",14),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.j41(5,"mat-form-field",15)(6,"mat-select",16),n.bIt("selectionChange",function(g){n.eBV(m);const z=n.XpG();return n.Njj(z.onSelectChange(g))}),n.j41(7,"mat-select-trigger")(8,"div",17),n.DNE(9,Mt,4,3)(10,Bt,4,3),n.k0s()(),n.j41(11,"mat-option",18)(12,"div",17),n.nrm(13,"img",19),n.EFF(14),n.nI1(15,"translate"),n.k0s()(),n.j41(16,"mat-option",18)(17,"div",17),n.nrm(18,"img",20),n.EFF(19),n.nI1(20,"translate"),n.k0s()()()()(),n.j41(21,"div",21),n.DNE(22,Lt,1,1,"ng-content")(23,wt,1,1),n.k0s()}if(2&d){const m=n.XpG();n.BMQ("aria-label",n.bMT(1,9,m.isEciActive?"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.TECI":"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.EVOLVE")),n.R7$(3),n.JRh(n.bMT(4,11,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.COMBO_LABEL")),n.R7$(3),n.Y8G("value",m.isEciActive?"tab1":"tab2"),n.R7$(3),n.vxM(9,m.isEciActive?9:10),n.R7$(2),n.Y8G("value","tab1"),n.R7$(3),n.SpI(" ",n.bMT(15,13,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.TECI")," "),n.R7$(2),n.Y8G("value","tab2"),n.R7$(3),n.SpI(" ",n.bMT(20,15,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.EVOLVE")," "),n.R7$(3),n.vxM(22,m.isEciActive?22:23)}}let At=(()=>{class d{constructor(m,_){this.renderer=m,this.cdr=_,this.isEciActive=!0,this.tabEmitter=new n.bkB,this.isMobile=!1}onKeyDown(m){if(this.isTabFocused())switch(m.key){case"ArrowLeft":m.preventDefault(),this.navigateTab("previous");break;case"ArrowRight":m.preventDefault(),this.navigateTab("next")}}onResize(){this.checkScreenSize(),this.cdr.detectChanges()}ngOnInit(){this.checkScreenSize()}ngOnDestroy(){this._setEciLook()}checkScreenSize(){this.isMobile=window.innerWidth<760}ontabChange(m){this.isEciActive=!m.index,this.tabEmitter.emit(this.isEciActive),this.changeLook(m.index);const _=document.getElementById("mat-tab-label-0-0"),g=document.getElementById("mat-tab-label-0-1");_&&(_.tabIndex=0===m.index?0:-1),g&&(g.tabIndex=1===m.index?0:-1)}selectTab(m){this.tabGroup&&this.tabGroup.selectedIndex!==m&&(this.tabGroup.selectedIndex=m)}onSelectChange(m){this.isEciActive="tab1"===m.value,this.tabEmitter.emit(this.isEciActive)}navigateTab(m){if(!this.tabGroup)return;const _=this.tabGroup.selectedIndex||0;let z;z="next"===m?(_+1)%2:0===_?1:_-1,this.selectTab(z)}isTabFocused(){const m=document.activeElement;return m?.closest("mat-tab-group")===document.querySelector("mat-tab-group")||m?.classList.contains("mat-tab-label")||null!==m?.closest(".mat-tab-label")}changeLook(m){m?this._setOthersLook():this._setEciLook()}_setEciLook(){this.renderer.addClass(document.body,"eci-look"),this.renderer.removeClass(document.body,"others-look")}_setOthersLook(){this.renderer.addClass(document.body,"others-look"),this.renderer.removeClass(document.body,"eci-look")}static{this.\u0275fac=function(_){return new(_||d)(n.rXU(n.sFG),n.rXU(n.gRc))}}static{this.\u0275cmp=n.VBU({type:d,selectors:[["app-open-close-tabs"]],viewQuery:function(_,g){if(1&_&&n.GBs(pt.T8,5),2&_){let z;n.mGM(z=n.lsd())&&(g.tabGroup=z.first)}},hostBindings:function(_,g){1&_&&n.bIt("keydown",function(ot){return g.onKeyDown(ot)})("resize",function(ot){return g.onResize(ot)},!1,n.tSv)},inputs:{isEciActive:"isEciActive"},outputs:{tabEmitter:"tabEmitter"},ngContentSelectors:Y,decls:6,vars:1,consts:[["closeTabTpl",""],["openTabTpl",""],["mat-stretch-tabs","","animationDuration","0ms",1,"tabs",3,"selectedIndex","disablePagination","disableRipple"],["mat-stretch-tabs","","animationDuration","0ms",1,"tabs",3,"selectedTabChange","selectedIndex","disablePagination","disableRipple"],["mat-tab-label",""],["matTabContent",""],[1,"tabs__buttons","tabs__buttons--eci","d-flex","align-items-center",3,"ngClass"],["src","./assets/icons/onboarding-card/ECI.svg","alt","","role","presentation"],["id","tab-panel-0","role","tabpanel"],[4,"ngTemplateOutlet"],[1,"tabs__buttons","tabs__buttons--others","d-flex","align-items-center",3,"ngClass"],["src","./assets/icons/onboarding-card/World.svg","alt","","role","presentation"],["id","tab-panel-1","role","tabpanel"],[1,"combo-container"],["for","combo-evolve",1,"combo-container__label"],["appearance","outline"],["aria-labelledby","combo-evolve",3,"selectionChange","value"],[1,"combo-container__option"],[3,"value"],["src","./assets/icons/onboarding-card/ECI.svg","alt",""],["src","./assets/icons/onboarding-card/World.svg","alt",""],[1,"combo-content"],["aria-hidden","true"]],template:function(_,g){1&_&&(n.NAR(X),n.DNE(0,w,1,0,"ng-template",null,0,n.C5r)(2,J,1,0,"ng-template",null,1,n.C5r)(4,Dt,7,3,"mat-tab-group",2)(5,nt,24,17)),2&_&&(n.R7$(4),n.vxM(4,g.isMobile?5:4))},dependencies:[u.YU,u.T3,pt.$L,pt.ES,pt.mq,pt.T8,rt.wT,at.VO,U.rl,at.$2,x.D9],styles:['.tabs .mat-mdc-tab:not(.mat-mdc-tab-disabled) .mdc-tab-indicator__content--underline,.tabs .mat-mdc-tab-link:not(.mat-mdc-tab-disabled) .mdc-tab-indicator__content--underline{border-bottom:4px solid;border-color:#0a8250}.tabs .mdc-tab.mat-mdc-tab:last-of-type .mdc-tab-indicator__content--underline{border-color:#9e4700}.tabs .mat-mdc-tab-header{margin-bottom:12px}.tabs .tabs{box-shadow:0 3px 20px #00000014;padding:0 20px 20px;background:#fff}.tabs .tabs__buttons{flex:50%;letter-spacing:normal;border-bottom:none;font-size:14px!important;word-break:break-word;overflow-wrap:break-word;hyphens:auto;white-space:normal;max-width:100%;line-height:1.2;justify-content:center}.tabs .tabs__buttons img{width:30px;margin-right:8px;flex-shrink:0}.tabs .tabs__buttons.activeGreen{font-weight:700;color:#0a8250;cursor:default}.tabs .tabs__buttons.activeOrange{font-weight:700;color:#9e4700;cursor:default}.tabs .tabs__buttons--eci:hover{font-weight:700;color:#0a8250}.tabs .tabs__buttons--others:hover{font-weight:700;color:#9e4700}.tabs .mdc-tab{padding:0!important;outline-offset:-3px;min-width:0!important;flex:1 1 50%!important}.tabs .mdc-tab__content{word-break:break-word;overflow-wrap:break-word;width:100%}@media only screen and (max-width: 768px){.combo-container{display:flex;flex-direction:column;align-items:flex-start;margin:1rem}.combo-container__label{color:#606060;margin:.5rem 0}
1.combo-container mat-form-field{display:inline-block;width:100%;min-width:0;margin:0}.combo-container mat-form-field img{width:24px;height:24px;vertical-align:middle}.combo-container__option{color:#000;display:flex;align-items:center;gap:10px}.combo-container__option img{width:24px;height:24px;vertical-align:middle}.combo-container__option span{font-size:.9rem}.combo-container .mat-mdc-select-arrow{display:none}.combo-container .mat-mdc-select-arrow-wrapper:after{content:"";display:block;width:12px;height:12px;background:url(arrow_black_down.14855a70e9e55122.svg) no-repeat center center;background-size:contain;position:absolute;top:50%;right:8px;transform:translateY(-50%)}.combo-container [aria-expanded=true] .mat-mdc-select-arrow-wrapper:after{content:"";display:block;width:12px;height:12px;background:url(arrow_black_up.eb80b6eb819c89ab.svg) no-repeat center center;background-size:contain;position:absolute;top:50%;right:8px;transform:translateY(-50%)}.combo-container .mat-select-open .mat-mdc-select-arrow-wrapper:after{content:"";display:block;width:12px;height:12px;background:url(arrow_black_up.eb80b6eb819c89ab.svg) no-repeat center center;background-size:contain;position:absolute;top:50%;right:8px;transform:translateY(-50%)}.combo-container .mat-mdc-text-field-wrapper:focus-within{box-shadow:none!important}.combo-content{margin-top:1rem}.mat-mdc-option.mat-mdc-option-active.mdc-list-item{border:3px solid #005fcc!important}.mat-pseudo-checkbox{display:none!important}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:10px!important;padding-bottom:10px!important;align-content:end}}@media (max-width: 345px){.combo-container__option{font-size:13px;text-wrap:auto}}\n'],encapsulation:2})}}return d})();const et=["bubble"],q=(d,p)=>({min:d,max:p}),st=d=>({isDisabled:d}),gt=d=>({minmax:d});function Ct(d,p){if(1&d&&(n.j41(0,"legend")(1,"label",11),n.EFF(2),n.nI1(3,"translate"),n.k0s()()),2&d){const m=n.XpG();n.R7$(2),n.SpI(" ",n.bMT(3,1,m.title)," ")}}let xt=(()=>{class d{set max(m){this._max=m,this.minmax=this._max===this.min}get max(){return this._max}set min(m){this._min=m}get min(){return this._min}constructor(m){this._currencyPipe=m,this._min=0,this._max=0,this.minmax=!1,this.sliderModel=300,this.disabled=!1,this.sliderModelChange=new n.bkB}ngAfterViewInit(){this.setBubble()}setBubble(){const m=Number(100*(this.sliderModel-this.min)/(this.max-this.min));this.bubble.nativeElement.innerHTML=this._currencyPipe.transform(Number(this.sliderModel),"EUR","symbol","1.0-0"),this.bubble.nativeElement.style.left=`calc(${m}% + (${8-.15*m}px))`;const _=document.querySelector("#amount_limit_min"),g=document.querySelector("#amount_limit_max");this.sliderModel<370&&_.classList.add("invisible"),this.sliderModel>1350&&g.classList.add("invisible"),370<=this.sliderModel&&this.sliderModel<=1350&&(_.classList.remove("invisible"),g.classList.remove("invisible"))}filterSlider(){const m=(this.sliderModel-this.min)/(this.max-this.min)*100;return{background:`linear-gradient(90deg, #00843dff ${m}%, #949494 ${m}% )`}}changeValue(m){if(isNaN(m)||(console.log(m),this.setSliderModel(m)),m?.target){const _=m?.target?.value;this.setSliderModel(_<this.min?this.min:_>this.max?this.max:_)}}setSliderModel(m){this.sliderModel=Math.floor(m),this.setBubble(),this.sliderModelChange.emit(this.sliderModel)}static{this.\u0275fac=function(_){return new(_||d)(n.rXU(u.oe))}}static{this.\u0275cmp=n.VBU({type:d,selectors:[["app-slider"]],viewQuery:function(_,g){if(1&_&&n.GBs(et,5),2&_){let z;n.mGM(z=n.lsd())&&(g.bubble=z.first)}},inputs:{max:"max",min:"min",sliderModel:"sliderModel",disabled:"disabled",title:"title"},outputs:{sliderModelChange:"sliderModelChange"},decls:18,vars:29,consts:[["bubble",""],[1,"app-slider","align-items-baseline"],["id","sliderDescription",1,"sr-only"],[1,"app-slider__row"],["type","number","id","input","aria-labelledby","sliderLabel",1,"mc-field-box__field","mc-input__field",3,"change","ngModelChange","ngModel"],["id","slider",1,"slidecontainer","flex-column",3,"ngClass"],["aria-live","polite",1,"bubble"],["type","range","step","1","id","sliderImporte","aria-labelledby","sliderLabel",1,"slider",3,"ngModelChange","min","max","value","disabled","ngModel","ngStyle","ngClass"],[1,"d-flex","justify-content-between"],["id","amount_limit_min",1,"amount_limit"],["id","amount_limit_max",1,"amount_limit"],["id","sliderLabel","for","sliderImporte"]],template:function(_,g){if(1&_){const z=n.RV6();n.j41(0,"fieldset",1),n.DNE(1,Ct,4,3,"legend"),n.j41(2,"span",2),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.j41(5,"div",3)(6,"input",4),n.bIt("change",function(mt){return n.eBV(z),n.Njj(g.changeValue(mt))}),n.mxI("ngModelChange",function(mt){return n.eBV(z),n.DH7(g.sliderModel,mt)||(g.sliderModel=mt),n.Njj(mt)}),n.k0s(),n.j41(7,"div",5),n.nrm(8,"output",6,0),n.j41(10,"input",7),n.bIt("ngModelChange",function(mt){return n.eBV(z),g.sliderModel=mt,n.Njj(g.changeValue(mt))}),n.k0s(),n.j41(11,"div",8)(12,"span",9),n.EFF(13),n.nI1(14,"translate"),n.k0s(),n.j41(15,"span",10),n.EFF(16),n.nI1(17,"translate"),n.k0s()()()()()}2&_&&(n.R7$(),n.vxM(1,g.title?1:-1),n.R7$(2),n.SpI(" ",n.i5U(4,15,"ONBOARDING.COMMON.SLIDER_MIN_MAX_DESCRIPTION",n.l_i(22,q,g.min,g.max))," "),n.R7$(3),n.R50("ngModel",g.sliderModel),n.BMQ("aria-describedby","sliderDescription"),n.R7$(),n.Y8G("ngClass",n.eq3(25,st,g.disabled)),n.R7$(3),n.FS9("min",g.min),n.FS9("max",g.max),n.FS9("value",g.sliderModel),n.Y8G("disabled",g.disabled)("ngModel",g.sliderModel)("ngStyle",g.filterSlider())("ngClass",n.eq3(27,gt,g.minmax)),n.BMQ("aria-describedby","sliderDescription"),n.R7$(3),n.JRh(n.bMT(14,18,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.MIN")),n.R7$(3),n.JRh(n.bMT(17,20,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.MAX")))},dependencies:[u.YU,u.B3,F.me,F.Q0,F.MR,F.BC,F.vS,x.D9],styles:[".app-slider[_ngcontent-%COMP%]{display:flex;flex-direction:column;text-wrap:nowrap;gap:1rem;width:100%}.app-slider__row[_ngcontent-%COMP%]{width:100%}.slidecontainer[_ngcontent-%COMP%]{width:100%;position:relative}
1.slidecontainer[_ngcontent-%COMP%]   #sliderImporte[_ngcontent-%COMP%]{-webkit-appearance:none;outline:none;height:16px;border-radius:20px;border:none;width:100%;position:relative;padding:0}.slidecontainer[_ngcontent-%COMP%]   #sliderImporte[_ngcontent-%COMP%]::-webkit-slider-thumb{-webkit-appearance:none;height:20px;width:20px;border-radius:20px;background:#fff;cursor:pointer;border:3px solid black}.slidecontainer[_ngcontent-%COMP%]   #sliderImporte[_ngcontent-%COMP%]::-moz-range-thumb{-webkit-appearance:none;-moz-appearance:none;height:15px;width:15px;border-radius:20px;background:#eee;cursor:pointer;border:3px solid #dddddd}.slidecontainer[_ngcontent-%COMP%]   #sliderImporte.minmax[_ngcontent-%COMP%]{background:#333!important;transform:rotate(180deg)}.isDisabled[_ngcontent-%COMP%]{width:100%}.isDisabled[_ngcontent-%COMP%]   #sliderImporte[_ngcontent-%COMP%]{-webkit-appearance:none;outline:none;height:16px;background:#eee;border-radius:20px;border:none;width:100%;padding:0}.isDisabled[_ngcontent-%COMP%]   #sliderImporte[_ngcontent-%COMP%]::-webkit-slider-thumb{height:18px;width:23px;border-radius:20px;background:#ddd;-webkit-appearance:none;cursor:not-allowed;border:3px solid #dddddd}.bubble[_ngcontent-%COMP%]{background:#fff0;color:#000;position:absolute;top:31px;border-radius:4px;transform:translate(-50%);font-size:15px;font-weight:700}.amount_limit[_ngcontent-%COMP%]{font-size:12px;color:#000;padding-top:9px}.mc-input__field[_ngcontent-%COMP%]{padding:1rem 1.5rem;text-align:center;width:200px;margin-bottom:1rem}@media only screen and (min-width: 768px){.app-slider[_ngcontent-%COMP%]{flex-direction:row}}@media (max-width: 993px){.bubble[_ngcontent-%COMP%]{left:50px!important}}"]})}}return d})();var Pt=r(6796);const Ft=d=>({open:d}),St=d=>({"due--disabled":d});let Xt=(()=>{class d{constructor(m,_,g,z,ot,mt,kt){this.route=m,this.router=_,this.wayToPayService=g,this.currencyPipe=z,this.formsService=ot,this._storageService=mt,this.titleService=kt,this.eciTabIsActive=!0,this.amountCombo={name:"Amount",type:"text",value:{value:60,label:"60 \u20ac"},required:!0,disabled:!1,options:[]},this.selection=300,this.minSlider=300,this.maxSlider=1500,this.amountSelect=60,this.closeAmount=30,this.openAmount=30,this.hasBureauFlag=!1}ngOnInit(){this.titleService.setTitleFromTranslation("PAGE_TITLES.WAY_TO_PAY_DUE_OPTIONS"),this.route.data.subscribe(m=>{this.form=m.form}),this.getProductAndSubproduct(),this.getQuantitySelect(),this.formsService.getCRMState().subscribe(m=>{this.hasBureauFlag=(m.additional_info??[]).some(_=>("H-ZSOL_EQUI_LIST"===_.property_id||"H-ZSOL_EXPE_LIST"===_.property_id)&&"X"===_.value)}),this.wayToPayService.getCRMValues().subscribe(m=>{this.CRMfixedFeeValues=m.fixedAmount,this.CRMfixedFeeValues.forEach(_=>{_.label=_.label.split(" ")[0]})})}getQuantitySelect(){this.wayToPayService.getQuantityValues().subscribe(m=>{N().map(m,_=>{_.value=_.amount,_.label=this.currencyPipe.transform(Number(_.amount),"EUR","symbol","1.0-0")}),m=(0,H.sortBy)(m,_=>Number(_.amount)),this.amountCombo.options=m})}getProductAndSubproduct(){this.wayToPayService.calculateAssignations("FIXED_FEE").subscribe(m=>{this.product=m.product_id,this.subproduct=m.subproduct,this.simulate()})}amountSelected(m){this.closeAmount=Number(m.close_contract.amount),this.openAmount=Number(m.open_contract.amount),this.amountSelect=Number(m.amount),this.simulate()}sliderSelected(m){this.selection=m,this.simulate()}simulate(){let m={product:this.product,subproduct:this.subproduct,chosenPaymentMethod:"2",chosenPaymentQuantity:Math.trunc(this.amountSelect).toString(),amount:Math.trunc(this.selection).toString()};this.eciTabIsActive?(m.chosenPaymentQuantity=Math.trunc(this.closeAmount).toString(),m.product="01"):m.chosenPaymentQuantity=Math.trunc(this.openAmount).toString(),this.wayToPayService.simulate(m).subscribe(_=>{this.simulateResults=_})}setTab(m){this.eciTabIsActive=m,this.simulate()}next(){this.form.value.request_data.pre_status=this.hasBureauFlag?"29":"22";const m=N().cloneDeep(this.form.value);this.CRMfixedFeeValues.forEach(_=>{_.label==Math.trunc(this.openAmount).toString()&&this.changePropertyValue(m.additional_info,"BANK-CANTIDAD2",_.value)}
1),this.CRMfixedFeeValues.forEach(_=>{_.label==Math.trunc(this.closeAmount).toString()&&(m.bank_data.amount=_.value)}),this.changePropertyValue(m.additional_info,"BANK-TIPOPAGO2","2"),this.changePropertyValue(m.additional_info,"H-ZSOL_PRODUCTO_C","01"),this.changePropertyValue(m.additional_info,"H-ZSOL_PRODUCTO_O",this.product),this.changePropertyValue(m.additional_info,"H-ZSOL_SUBPROD_C",this.subproduct),this.changePropertyValue(m.additional_info,"H-ZSOL_SUBPROD_O",this.subproduct),m.bank_data.payment_method="2",this.formsService.updateCRM(m).subscribe(()=>{this.router.navigate(this.hasBureauFlag?["/wizard/step4/way-to-pay"]:["/wizard/step5/preferences"])},_=>{console.error(_)})}changePropertyValue(m,_,g){m.find(z=>z.property_id==_)?m.map(function(z){z.property_id==_&&(z.value=g)}):m.push({property_id:_,value:g})}static{this.\u0275fac=function(_){return new(_||d)(n.rXU(c.nX),n.rXU(c.Ix),n.rXU($.g),n.rXU(u.oe),n.rXU(a.f),n.rXU(e.n),n.rXU(E.E))}}static{this.\u0275cmp=n.VBU({type:d,selectors:[["app-way-to-pay-due-option"]],decls:194,vars:167,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-10","col-xl-8"],[1,"row","mb-3","d-lg-none"],[1,"col","pl-3","pl-xl-0"],["tabindex","0","routerLink","/wizard/step3/other-data2",1,"btn-back","secondary"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","arrow-left","width","24px","height","24px",1,"float-left"],[1,"row"],[1,"pl-xl-0"],[3,"text","position"],[1,"col","row","spacer-bottom-low","card","card-select"],[1,"d-flex","justify-content-between","card-select_container"],[1,"d-flex"],["src","./assets/icons/onboarding-card/icon_euro.svg","alt","",1,"mr-4","euro"],[1,"d-flex","flex-column","align-items-start","mr-3"],[1,"green"],[1,"select-due"],[1,"amount",3,"onChange","data","ariaLabel"],[3,"text"],[1,"row","spacer-bottom-low","flex-column"],[1,"simulate-title"],[1,"d-flex","mb-3","row"],[3,"sliderModelChange","min","max","sliderModel","title"],[1,"p-0","spacer-bottom-low","card","bg-transparent","container_tabs"],[3,"tabEmitter","ngClass","isEciActive"],["open-tab","",1,"tab-container"],[1,"d-flex","justify-content-around","due-others"],[1,"revolving-text",3,"ngClass"],[3,"ngClass"],[1,"revolving-text"],[1,"d-grid","justify-content-center","due-results-others","mx-2"],[1,"row","m-0"],[1,"col"],[1,"semi-bold"],[1,"row","d-flex","m-0"],["close-tab","",1,"tab-container"],[1,"d-flex","justify-content-around","due"],[1,"d-grid","justify-content-center","due-results","mx-2"],[1,"sr-only"],[1,"font-italic"],[1,"row","spacer-top-high"],["href","wizard/step4/way-to-pay",3,"ariaLabel"],[1,"row","d-flex","justify-content-center","spacer-bottom-high"],["tabindex","0","routerLink","/wizard/step4/way-to-pay-options",1,"returnBtn","d-none","d-lg-flex"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-left","width","24px","height","24px",1,"float-left"],[3,"clicked","ariaLabel"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"],[1,"col-4","float-right","mt-2"],[1,"float-right","amount"]],template:function(_,g){1&_&&(n.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),n.nI1(5,"translate"),n.nrm(6,"app-icon",5),n.k0s()()(),n.j41(7,"div",6)(8,"h1",7),n.EFF(9),n.nI1(10,"translate"),n.nrm(11,"app-tooltip",8),n.nI1(12,"translate"),n.k0s()(),n.j41(13,"div",6)(14,"p"),n.EFF(15),n.nI1(16,"translate"),n.k0s()(),n.j41(17,"div",9)(18,"div",10)(19,"div",11),n.nrm(20,"img",12),n.j41(21,"div",13)(22,"span",14),n.EFF(23),n.nI1(24,"translate"),n.k0s(),n.j41(25,"span",15),n.EFF(26),n.nI1(27,"translate"),n.k0s()()(),n.j41(28,"div",11)(29,"app-combo",16),n.nI1(30,"translate"),n.bIt("onChange",function(ot){return g.amountSelected(ot)}),n.k0s(),n.nrm(31,"app-tooltip",17),n.nI1(32,"translate"),n.k0s()()(),n.j41(33,"div",18)(34,"h2",19),n.EFF(35),n.nI1(36,"translate"),n.k0s(),n.j41(37,"p"),n.EFF(38),n.nI1(39,"translate"),n.k0s()(),n.j41(40,"div",20)(41,"app-slider",21),n.bIt("sliderModelChange",function(ot){return g.sliderSelected(ot)}),n.k0s()(),n.j41(42,"div",22)(43,"app-open-close-tabs",23),n.bIt("tabEmitter",function(ot){return g.setTab(ot)}),n.qex(44,24),n.j41(45,"div",25)(46,"div")(47,"span",26),n.EFF(48),n.nI1(49,"translate"),n.k0s(),n.j41(50,"p",27),n.EFF(51),n.n
1I1(52,"translate"),n.j41(53,"span"),n.EFF(54),n.k0s()()(),n.j41(55,"div")(56,"span",28),n.EFF(57),n.nI1(58,"translate"),n.k0s(),n.j41(59,"p"),n.EFF(60),n.nI1(61,"translate"),n.j41(62,"span"),n.EFF(63),n.k0s()()()(),n.j41(64,"div",29)(65,"div",30)(66,"div",31)(67,"p"),n.EFF(68),n.nI1(69,"translate"),n.k0s(),n.j41(70,"span",32),n.EFF(71),n.k0s()(),n.j41(72,"div",31)(73,"p"),n.EFF(74),n.nI1(75,"translate"),n.k0s(),n.j41(76,"span",32),n.EFF(77),n.nI1(78,"date"),n.k0s()(),n.j41(79,"div",31)(80,"p"),n.EFF(81),n.nI1(82,"translate"),n.k0s(),n.j41(83,"span",32),n.EFF(84),n.k0s()()(),n.j41(85,"div",33)(86,"div",31)(87,"p"),n.EFF(88),n.nI1(89,"translate"),n.k0s(),n.j41(90,"span",32),n.EFF(91),n.k0s()(),n.j41(92,"div",31)(93,"p"),n.EFF(94),n.nI1(95,"translate"),n.k0s(),n.j41(96,"span",32),n.EFF(97),n.k0s()(),n.j41(98,"div",31)(99,"p"),n.EFF(100),n.nI1(101,"translate"),n.k0s(),n.j41(102,"span",32),n.EFF(103),n.k0s()()()(),n.bVm(),n.qex(104,34),n.j41(105,"div",35)(106,"div")(107,"span",28),n.EFF(108),n.nI1(109,"translate"),n.k0s(),n.j41(110,"p"),n.EFF(111),n.nI1(112,"translate"),n.j41(113,"span",32),n.EFF(114),n.k0s()()(),n.j41(115,"div")(116,"span",26),n.EFF(117),n.nI1(118,"translate"),n.k0s(),n.j41(119,"p",27),n.EFF(120),n.nI1(121,"translate"),n.j41(122,"span",32),n.EFF(123),n.k0s()()()(),n.j41(124,"div",36)(125,"div",30)(126,"div",31)(127,"p"),n.EFF(128),n.nI1(129,"translate"),n.k0s(),n.j41(130,"span",32),n.EFF(131),n.k0s()(),n.j41(132,"div",31)(133,"p"),n.EFF(134),n.nI1(135,"translate"),n.k0s(),n.j41(136,"span",32),n.EFF(137),n.nI1(138,"date"),n.k0s()(),n.j41(139,"div",31)(140,"p"),n.EFF(141),n.nI1(142,"translate"),n.k0s(),n.j41(143,"span",32),n.EFF(144),n.k0s()()(),n.j41(145,"div",33)(146,"div",31)(147,"p"),n.EFF(148),n.nI1(149,"translate"),n.k0s(),n.j41(150,"span",32),n.EFF(151),n.k0s()(),n.j41(152,"div",31)(153,"p"),n.EFF(154),n.nI1(155,"translate"),n.k0s(),n.j41(156,"span",32),n.EFF(157),n.k0s()(),n.j41(158,"div",31)(159,"span",37),n.EFF(160),n.nI1(161,"translate"),n.k0s(),n.j41(162,"p"),n.EFF(163),n.nI1(164,"translate"),n.k0s(),n.j41(165,"span",32),n.EFF(166),n.k0s()()()(),n.bVm(),n.k0s()(),n.j41(167,"div",6)(168,"p",38),n.EFF(169),n.nI1(170,"translate"),n.k0s()(),n.j41(171,"div",39)(172,"p"),n.EFF(173),n.nI1(174,"translate"),n.j41(175,"a",40),n.nI1(176,"translate"),n.EFF(177),n.nI1(178,"translate"),n.k0s()()(),n.j41(179,"div",41)(180,"a",42),n.nI1(181,"translate"),n.j41(182,"span"),n.EFF(183),n.nI1(184,"translate"),n.nrm(185,"app-icon",43),n.k0s()(),n.j41(186,"app-button",44),n.nI1(187,"translate"),n.bIt("clicked",function(){return g.next()}),n.j41(188,"span"),n.EFF(189),n.nI1(190,"translate"),n.nrm(191,"app-icon",45),n.k0s()()(),n.j41(192,"div",46),n.nrm(193,"span",47),n.k0s()()()),2&_&&(n.R7$(4),n.BMQ("aria-label",n.bMT(5,73,"ONBOARDING.COMMON.BACK_LABEL")),n.R7$(5),n.SpI(" ",n.bMT(10,75,"ONBOARDING.STEP4.WAY-TO-PAY-OPTIONS.HEAD")," "),n.R7$(2),n.FS9("text",n.bMT(12,77,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.FIRST-TOOLTIP")),n.Y8G("position","below"),n.R7$(4),n.SpI(" ",n.bMT(16,79,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.TO-PAY")," "),n.R7$(8),n.JRh(n.bMT(24,81,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.DUE")),n.R7$(3),n.JRh(n.bMT(27,83,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.CHOOSE-DUE")),n.R7$(3),n.Y8G("data",g.amountCombo)("ariaLabel",n.bMT(30,85,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.LISTBOX_LABEL")),n.R7$(2),n.FS9("text",n.bMT(32,87,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.SECOND-TOOLTIP")),n.R7$(4),n.SpI(" ",n.bMT(36,89,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.SIMULATOR")," "),n.R7$(3),n.SpI(" ",n.bMT(39,91,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.SIMULATOR_TEXT")," "),n.R7$(3),n.Y8G("min",g.minSlider)("max",g.maxSlider)("sliderModel",g.selection)("title","ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.AMOUNT"),n.R7$(2),n.Y8G("ngClass",n.eq3(157,Ft,!g.eciTabIsActive))("isEciActive",g.eciTabIsActive),n.R7$(4),n.Y8G("ngClass",n.eq3(159,St,!g.eciTabIsActive)),n.BMQ("aria-hidden",g.eciTabIsActive?null:"true"),n.R7$(),n.SpI("",n.bMT(49,93,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.DUE-REVOLVING")," "),n.R7$(2),n.Y8G("ngClass",n.eq3(161,St,!g.eciTabIsActive)),n.BMQ("aria-hidden",g.eciTabIsActive?null:"true"),n.R7$(),n.Sp
1I(" ",n.bMT(52,95,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.DUE-TEXT")," "),n.R7$(3),n.JRh(g.closeAmount+"\u20ac/mes"),n.R7$(3),n.SpI(" ",n.bMT(58,97,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.DUE-REVOLVING")," "),n.R7$(3),n.SpI(" ",n.bMT(61,99,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.DUE-TEXT")," "),n.R7$(3),n.JRh(g.openAmount+"\u20ac/mes"),n.R7$(5),n.SpI(" ",n.bMT(69,101,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.TOTAL_AMOUNT")," "),n.R7$(3),n.JRh((null==g.simulateResults?null:g.simulateResults.totalDeferAmount)+"\u20ac"),n.R7$(3),n.SpI(" ",n.bMT(75,103,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.LAST_DATE")," "),n.R7$(3),n.JRh(n.i5U(78,105,null==g.simulateResults?null:g.simulateResults.lastExpirationDate,"dd/MM/yyyy")),n.R7$(4),n.SpI(" ",n.bMT(82,108,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.AMOUNT_LAST_DUE")," "),n.R7$(3),n.JRh((null==g.simulateResults?null:g.simulateResults.lastFeeAmount)+"\u20ac"),n.R7$(4),n.SpI(" ",n.bMT(89,110,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.TOTAL_TO_PAY")," "),n.R7$(3),n.JRh((null==g.simulateResults?null:g.simulateResults.totalDeferAmount)+"\u20ac"),n.R7$(3),n.SpI(" ",n.bMT(95,112,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.INTERESTS")," "),n.R7$(3),n.JRh((null==g.simulateResults?null:g.simulateResults.totalInterestAmount)+"\u20ac"),n.R7$(3),n.SpI(" ",n.bMT(101,114,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.TAE_AND_TIN")," "),n.R7$(3),n.Lme("",(null==g.simulateResults?null:g.simulateResults.tae)+"%"," / ",(null==g.simulateResults?null:g.simulateResults.tin)+"%",""),n.R7$(5),n.SpI("",n.bMT(109,116,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.DUE-REVOLVING")," "),n.R7$(3),n.SpI(" ",n.bMT(112,118,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.DUE-TEXT")," "),n.R7$(3),n.JRh(g.closeAmount+"\u20ac/mes"),n.R7$(2),n.Y8G("ngClass",n.eq3(163,St,g.eciTabIsActive)),n.BMQ("aria-hidden",g.eciTabIsActive?"true":null),n.R7$(),n.SpI(" ",n.bMT(118,120,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.DUE-REVOLVING")," "),n.R7$(2),n.Y8G("ngClass",n.eq3(165,St,g.eciTabIsActive)),n.BMQ("aria-hidden",g.eciTabIsActive?"true":null),n.R7$(),n.SpI(" ",n.bMT(121,122,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.DUE-TEXT")," "),n.R7$(3),n.JRh(g.openAmount+"\u20ac/mes"),n.R7$(5),n.SpI(" ",n.bMT(129,124,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.TOTAL_AMOUNT")," "),n.R7$(3),n.JRh((null==g.simulateResults?null:g.simulateResults.totalDeferAmount)+"\u20ac"),n.R7$(3),n.SpI(" ",n.bMT(135,126,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.LAST_DATE")," "),n.R7$(3),n.JRh(n.i5U(138,128,null==g.simulateResults?null:g.simulateResults.lastExpirationDate,"dd/MM/yyyy")),n.R7$(4),n.SpI(" ",n.bMT(142,131,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.AMOUNT_LAST_DUE")," "),n.R7$(3),n.JRh((null==g.simulateResults?null:g.simulateResults.lastFeeAmount)+"\u20ac"),n.R7$(4),n.SpI(" ",n.bMT(149,133,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.TOTAL_TO_PAY")," "),n.R7$(3),n.JRh((null==g.simulateResults?null:g.simulateResults.totalDeferAmount)+"\u20ac"),n.R7$(3),n.SpI(" ",n.bMT(155,135,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.INTERESTS")," "),n.R7$(3),n.JRh((null==g.simulateResults?null:g.simulateResults.totalInterestAmount)+"\u20ac"),n.R7$(3),n.JRh(n.bMT(161,137,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.TAE_AND_TIN_ABBR")),n.R7$(3),n.SpI(" ",n.bMT(164,139,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.TAE_AND_TIN")," "),n.R7$(3),n.Lme("",(null==g.simulateResults?null:g.simulateResults.tae)+"%"," / ",(null==g.simulateResults?null:g.simulateResults.tin)+"%",""),n.R7$(3),n.SpI(" ",n.bMT(170,141,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.REVOLVING-INFO")," "),n.R7$(4),n.SpI(" ",n.bMT(174,143,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.CHANGE-WAY-PAY")," "),n.R7$(2),n.Y8G("ariaLabel",n.bMT(176,145,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.PATH_CHANGE_WAY_PAY")),n.R7$(2),n.JRh(n.bMT(178,147,"ONBOARDING.STEP4.WAY-TO-PAY-DUE-OPTIONS.CHANGE-WAY-PAY-LINK")),n.R7$(3),n.BMQ("aria-label",n.bMT(181,149,"ONBOARDING.COMMON.BACK_LABEL")),n.R7$(3),n.SpI(" ",n.bMT(184,151,"ONBOARDING.COMMON.BACK")," "),n.R7$(3),n.Y8G("ariaLabel",n.bMT(187,153,"ONBOARDING.COMMON.CONTINUE_LABEL")),n.R7$(3),n.SpI(" ",n.bMT(190,155,"ONBOARDING.COMMON.CONTINUE")," "))},dependencies:[u.YU,c.Wk,b.Qp,Z.u,O.R,At,xt,Pt.b,u.vh,x.D9],styles:[".green[_ngcontent-%COMP%], .due[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .due-others[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#0a8250;font-weight:700;font-size:20px}.select-due[_ngcontent-%COMP%]{font-size:15px}.card-select[_ngcontent-%COMP%]{padding:20px;border:1px solid black}.card[_ngcontent-%COMP%]{border:1px solid black}.simulate-title[_ngcontent-%COMP%]{font-size:1.5rem;font-weight:700}.revolving-text[_ngcontent-%COMP%]{color:#0a8250;font-size:1rem!important;font-style:italic}.due[_ngcontent-%COMP%], .due-others[_ngcontent-%COMP%]{margin:10px 20px 25px}.due[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], .due-others[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{background-color:#f0f8ee;padding:5px 15px;border-radius:8px;margin:0}.due--disabled[_ngcontent-%COMP%]{background-color:#e5e5e5;color:#5e5e5e;padding:10px 20px}.due--disabled.revolving-text[_ngcontent-%COMP%]{background-color:transparent;color:#606060!important;padding:0!important}.due--disabled[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#5e5e5e!important}.due-others[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{background-color:#f0842b17}.due-others[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#9e4700}.due-results[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], .due-results-others[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0;font-size:14px}.due-results[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .due-results-others[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#0a8250;font-size:15px}.due-results-others[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#9e4700}.container_tabs[_ngcontent-%COMP%]{margin-left:-15px;margin-right:-15px}  app-open-close-tabs.open .mdc-tab-indicator .mdc-tab-indicator__content--underline{border-color:#9e4700!important}  app-combo{width:250px;text-align:center}  app-combo .select{text-wrap:nowrap!important}app-slider[_ngcontent-%COMP%]{flex:auto}.selection_content[_ngcontent-%COMP%]{position:relative;width:77%;margin-top:6px}.bubble[_ngcontent-%COMP%]{background:#fff0;color:#000;padding:64px 12px;position:absolute;border-radius:4px;left:17%;transform:translate(-50%);top:-35px;font-size:15px;font-weight:700}.amount_limit[_ngcontent-%COMP%]{font-size:12px;color:#999}.semi-bold[_ngcontent-%COMP%]{font-weight:500}.card-select_container[_ngcontent-%COMP%]{flex-direction:column;gap:1rem;align-items:flex-start}@media only screen and (min-width: 768px){.card-select_container[_ngcontent-%COMP%]{flex-direction:row;align-items:center}.due[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], .due-others[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{padding:20px}}@media (max-width: 768px){.euro[_ngcontent-%COMP%]{max-width:50px}}.secondary[_ngcontent-%COMP%]{position:fixed;top:13px;left:15px;background-color:transparent;background-repeat:no-repeat;border:none;cursor:pointer;overflow:hidden;outline:none;z-index:100001}.secondary[_ngcontent-%COMP%]   app-icon[_ngcontent-%COMP%]{color:#000}.continueBtn[_ngcontent-%COMP%]{align-items:center;background-color:#0a8250;border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;
1cursor:pointer;display:flex;font-size:var(--e-button-font-size);justify-content:space-between;line-height:1.2em;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;width:100%;text-decoration:none!important}.continueBtn[_ngcontent-%COMP%]:hover{background-color:#2b5033}.continueBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;flex-grow:1;text-align:center;line-height:25px;color:#fff!important;font-size:1rem}.returnBtn[_ngcontent-%COMP%]{background-color:#fff;box-shadow:inset 0 0 0 .0625rem #0a8250;max-width:var(--e-button-max-width);border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;text-decoration:none!important;justify-content:center;align-items:center;display:flex;margin-right:1rem}.returnBtn[_ngcontent-%COMP%]:hover{background-color:#0a8250}.returnBtn[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%]{color:#fff}.returnBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#0a8250;font-size:var(--e-button-font-size)}.right-align[_ngcontent-%COMP%]{text-align:right}.right-align[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#333}.tooltip-button[_ngcontent-%COMP%]{background:none;border:none;padding:0;margin:0;cursor:pointer;pointer-events:auto;display:inline-flex;align-items:center;justify-content:center;border-radius:4px}.tooltip-button[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{pointer-events:none;display:block}"]})}}return d})(),yt=(()=>{class d{constructor(m,_,g,z,ot,mt){this.route=m,this.changeDetectorRef=_,this.router=g,this.formsService=z,this._storageService=ot,this.titleService=mt,this._selected="recommended",this.professional=!!this._storageService.getItem("professional"),this.route.data.subscribe(kt=>{this.form=kt.form})}ngOnInit(){this.titleService.setTitleFromTranslation("PAGE_TITLES.ACCOUNT_VERIFICATION")}ngAfterViewChecked(){this.changeDetectorRef.detectChanges()}onSelect(m){m!==this._selected&&(this._selected=m,this.focusSelectedOption())}onNavigate(){this._selected="recommended"===this._selected?"other":"recommended",this.focusSelectedOption()}focusSelectedOption(){setTimeout(()=>{const m=document.querySelector('[role="radio"][tabindex="0"]');m&&m.focus()})}next(){this.form.value.request_data.pre_status="34",this.formsService.updateCRM(this.form.value).subscribe(()=>{this.router.navigate("recommended"===this._selected?["/wizard/step4/bank-account-verification"]:["/wizard/step4/send-documentation"])},m=>{console.error(m)})}static{this.\u0275fac=function(_){return new(_||d)(n.rXU(c.nX),n.rXU(n.gRc),n.rXU(c.Ix),n.rXU(a.f),n.rXU(e.n),n.rXU(E.E))}}static{this.\u0275cmp=n.VBU({type:d,selectors:[["app-account-verification"]],decls:69,vars:49,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"ml-3","pl-3","mr-3"],[1,"row","mb-3","d-lg-none"],[1,"col","pl-3","pl-xl-0"],["tabindex","0","routerLink","/wizard/step4/bank-data",1,"btn-back","secondary"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","arrow-left","width","24px","height","24px",1,"float-left"],["id","account-verification-head",1,"row","col","pl-3","pl-xl-0"],[1,"row"],[1,"col","pl-3","pl-xl-0","spacer-bottom-low"],[1,"row","mb-2"],[1,"col-6"],[1,"recommended"],[1,"row","spacer-bottom-low"],["role","radiogroup","aria-labelledby","account-verification-head",1,"row"],[1,"col-6","text-center"],["role","radio",1,"card","height","d-flex","flex-column","justify-content-center","py-4",3,"click","keydown.ArrowRight","keydown.ArrowLeft","ngClass","tabindex"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","phone","width","36px","height","36px",1,"col-auto","d-flex","justify-content-center"],[1,"row","d-flex","justify-content-center"],[1,"col-auto","spacer-both-low"],[1,"bold"],[1,"col-auto"],["role","radio",1,"card-other","height","d-flex","flex-column","justify-content-center","py-4",3,"click","keydown.ArrowRight","keydown.ArrowLeft","ngClass","tabindex"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","web","width","36px","height","36px",1,"col-auto","d-flex","justify-content-center"],[1,"col-auto","spacer-both-low","pointer"],[1,"row","spacer-top-high","spacer-bottom-high","d-flex","justify-content-center"],["tabindex","0","routerLink","/wizard/step4/bank-data",1,"returnBtn","d-none","d-lg-flex"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-left","width","24px","height","24px",1,"float-left"],[1,"col","d-flex","justify-content-center","justify-content-lg-start",3,"clicked","variant","ariaLabel"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"]],template:function(_,g){1&_&&(n.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),n.nI1(5,"translate"),n.nrm(6,"app-icon",5),n.k0s()()(),n.j41(7,"fieldset")(8,"legend")(9,"h1",6),n.EFF(10),n.nI1(11,"translate"),n.k0s()(),n.j41(12,"div",7)(13,"div",8)(14,"span"),n.EFF(15),n.nI1(16,"translate"),n.k0s()()(),n.j41(17,"div",9)(18,"div",10)(19,"span",11),n.EFF(20),n.nI1(21,"translate"),n.k0s()()(),n.j41(22,"div",12)(23,"div",3)(24,"div",13),n.nI1(25,"translate"),n.j41(26,"div",14)(27,"div",15),n.bIt("click",function(){return g.onSelect("recommended")})("keydown.ArrowRight",function(){return g.onNavigate()})("keydown.ArrowLeft",function(){return g.onNavigate()}),n.nrm(28,"app-icon",16),n.j41(29,"div",17)(30,"div",18)(31,"h2",19),n.EFF(32),n.nI1(33,"translate"),n.k0s()()(),n.j41(34,"div",17)(35,"div",20)(36,"span"),n.EFF(37),n.nI1(38,"translate"),n.k0s()()()()(),n.j41(39,"div",14)(40,"div",21),n.bIt("click",function(){return g.onSelect("other")})("keydown.ArrowRight",function(){return g.onNavigate()})("keydown.ArrowLeft",function(){return g.onNavigate()}),n.nrm(41,"app-icon",22),n.j41(42,"div",17)(43,"div",23)(44,"h2",19),n.EFF(45),n.n
1I1(46,"translate"),n.k0s()()(),n.j41(47,"div",17)(48,"div",20)(49,"span"),n.EFF(50),n.nI1(51,"translate"),n.k0s()()(),n.j41(52,"div",17)(53,"div",20)(54,"span"),n.EFF(55),n.nI1(56,"translate"),n.k0s()()()()()()()()(),n.j41(57,"div",24)(58,"a",25),n.nI1(59,"translate"),n.j41(60,"span"),n.EFF(61),n.nI1(62,"translate"),n.nrm(63,"app-icon",26),n.k0s()(),n.j41(64,"app-button",27),n.nI1(65,"translate"),n.bIt("clicked",function(){return g.next()}),n.EFF(66),n.nI1(67,"translate"),n.nrm(68,"app-icon",28),n.k0s()()()()),2&_&&(n.R7$(4),n.BMQ("aria-label",n.bMT(5,21,"ONBOARDING.COMMON.BACK_LABEL")),n.R7$(6),n.SpI(" ",n.bMT(11,23,"ONBOARDING.STEP4.ACCOUNT_VERIFICATION.HEAD")," "),n.R7$(5),n.SpI(" ",n.bMT(16,25,"ONBOARDING.STEP4.ACCOUNT_VERIFICATION.SUB")," "),n.R7$(5),n.JRh(n.bMT(21,27,"ONBOARDING.STEP4.ACCOUNT_VERIFICATION.RECOMMENDED")),n.R7$(4),n.BMQ("aria-label",n.bMT(25,29,"ONBOARDING.STEP4.ACCOUNT_VERIFICATION.HEAD")),n.R7$(3),n.Y8G("ngClass","recommended"===g._selected?"selected":null)("tabindex","recommended"===g._selected?"0":"-1"),n.BMQ("aria-checked","recommended"===g._selected),n.R7$(5),n.SpI(" ",n.bMT(33,31,"ONBOARDING.STEP4.ACCOUNT_VERIFICATION.ONLINE_1")," "),n.R7$(5),n.SpI(" ",n.bMT(38,33,"ONBOARDING.STEP4.ACCOUNT_VERIFICATION.ONLINE_2")," "),n.R7$(3),n.Y8G("ngClass","other"===g._selected?"selected":null)("tabindex","other"===g._selected?"0":"-1"),n.BMQ("aria-checked","other"===g._selected),n.R7$(5),n.SpI(" ",n.bMT(46,35,"ONBOARDING.STEP4.ACCOUNT_VERIFICATION.OFFLINE_1")," "),n.R7$(5),n.SpI(" ",n.bMT(51,37,"ONBOARDING.STEP4.ACCOUNT_VERIFICATION.OFFLINE_3")," "),n.R7$(5),n.SpI(" ",n.bMT(56,39,"ONBOARDING.STEP4.ACCOUNT_VERIFICATION.OFFLINE_4")," "),n.R7$(3),n.BMQ("aria-label",n.bMT(59,41,"ONBOARDING.COMMON.BACK_LABEL")),n.R7$(3),n.SpI(" ",n.bMT(62,43,"ONBOARDING.COMMON.BACK")," "),n.R7$(3),n.Y8G("variant","primary")("ariaLabel",n.bMT(65,45,"ONBOARDING.COMMON.CONTINUE_LABEL")),n.R7$(2),n.SpI(" ",n.bMT(67,47,"ONBOARDING.COMMON.CONTINUE")," "))},dependencies:[u.YU,c.Wk,b.Qp,O.R,x.D9],styles:[".card[_ngcontent-%COMP%]{border-radius:8px;cursor:pointer;border:2px solid #242424}.card-pack[_ngcontent-%COMP%]{display:flex;flex-direction:row}.card-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}.card-other[_ngcontent-%COMP%]{border-radius:8px;cursor:pointer;border:2px solid #242424}.recommended[_ngcontent-%COMP%]{font-size:14px;height:30px;color:#0a8250;line-height:0}.selected[_ngcontent-%COMP%]{box-shadow:0 0 12px #026a3f;border:4px solid #0a8250;outline-offset:-3px}@media (forced-colors: active){.selected[_ngcontent-%COMP%]{border:2px solid white!important;box-shadow:0 0 8px #fff!important;outline:2px solid white!important;outline-offset:3px}}.height[_ngcontent-%COMP%]{height:100%!important}@media (max-width: 700px){.col-6[_ngcontent-%COMP%]{flex:0 0 100%;margin-bottom:20px;max-width:100%}}h2.bold[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:700;overflow-wrap:break-word;word-break:break-word}.pointer[_ngcontent-%COMP%]{cursor:pointer}.secondary[_ngcontent-%COMP%]{position:fixed;top:13px;left:15px;background-color:transparent;background-repeat:no-repeat;border:none;cursor:pointer;overflow:hidden;outline:none;z-index:100001}.secondary[_ngcontent-%COMP%]   app-icon[_ngcontent-%COMP%]{color:#000}.continueBtn[_ngcontent-%COMP%]{align-items:center;background-color:#0a8250;border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--e-button-font-size);justify-content:space-between;line-height:1.2em;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;width:100%;text-decoration:none!important}.continueBtn[_ngcontent-%COMP%]:hover{background-color:#2b5033}.continueBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;flex-grow:1;text-align:center;line-height:25px;color:#fff!important;font-size:1rem}.returnBtn[_ngcontent-%COMP%]{background-color:#fff;box-shadow:inset 0 0 0 .0625rem #0a8250;max-width:var(--e-button-max-width);border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;text-decoration:none!important;justify-content:center;align-items:center;display:flex;margin-right:1rem}.returnBtn[_ngcontent-%COMP%]:hover{background-color:#0a8250}.returnBtn[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%]{color:#fff}.returnBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#0a8250;font-size:var(--e-button-font-size)}.right-align[_ngcontent-%COMP%]{text-align:right}.right-align[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#333}"]})}}return d})();var Ht=r(3832),$t=r(48678),jt=r(18162),Yt=r(5620),Vt=r(8160),Ut=r(7637);let Kt=(()=>{class d{constructor(m,_,g,z,ot,mt,kt){this.modalService=m,this.route=_,this.formsService=g,this.router=z,this._storageService=ot,this.aggregatorService=mt,this.microService=kt,this.formLocal=new F.hs(!0,[Ht.q]),this.professional=!!this._storageService.getItem("professional"),this.checkbox={name:"Checkbox",label:"checkbox",checked:!1}
1,this.route.data.subscribe(zt=>{this.form=zt.form})}ngOnInit(){}ngOnDestroy(){this.closeModal()}closeModal(){this.modalService.closeModal("eDialog")}getExperianCheckbox(){this.aggregatorService.getExperianCheckbox().subscribe(m=>{this.checkbox.text=m.value})}openModal(m){this.modalService.openModal(m)}markAllAsTouched(){this.formLocal.markAsTouched()}next(){if(this.markAllAsTouched(),this.formLocal.valid){this.form.value.request_data.pre_status="34";const m=N().cloneDeep(this.form.value);m.additional_info.push({PROPERTY_ID:"BANK-BANK_AGR",VALUE:"S"}),this.formsService.updateCRM(m).subscribe(()=>{this.router.navigate(["/wizard/step4/arcopay"])},_=>{console.error(_)})}else(0,$t.K)()}static{this.\u0275fac=function(_){return new(_||d)(n.rXU(jt.B),n.rXU(c.nX),n.rXU(a.f),n.rXU(c.Ix),n.rXU(e.n),n.rXU(Yt.v),n.rXU(Vt.m))}}static{this.\u0275cmp=n.VBU({type:d,selectors:[["app-bank-account-verification"]],decls:57,vars:45,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row","mb-3","d-lg-none"],[1,"col","pl-3","pl-xl-0"],["tabindex","0","routerLink","/wizard/step4/account-verification",1,"btn-back","secondary"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","arrow-left","width","24px","height","24px",1,"float-left"],[1,"row"],[1,"row","spacer-bottom-low"],[1,"list"],[1,"pl-2","ml-0"],[1,"col","pl-3","pl-xl-0","spacer-bottom-low"],[1,"d-flex"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","info","width","24px","height","24px"],[1,"pl-2"],["variant","link",3,"clicked","ariaHaspopup"],[1,"row","spacer-both-high","d-flex","justify-content-center"],["tabindex","0","routerLink","/wizard/step4/account-verification",1,"returnBtn","d-none","d-lg-flex"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-left","width","24px","height","24px",1,"float-left"],[1,"col","d-flex","justify-content-center","justify-content-lg-start",3,"clicked","variant","ariaLabel"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"],["id","eDialog",3,"confirm","cancel","outside","headline","confirmLabel","dismissible"]],template:function(_,g){1&_&&(n.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),n.nI1(5,"translate"),n.nrm(6,"app-icon",5),n.k0s()()(),n.j41(7,"div",6)(8,"h1",3),n.EFF(9),n.nI1(10,"translate"),n.k0s()(),n.j41(11,"div",6)(12,"div",3)(13,"span"),n.EFF(14),n.nI1(15,"translate"),n.k0s()()(),n.j41(16,"div",7)(17,"div",3)(18,"ul",8)(19,"li",8)(20,"span",9),n.EFF(21),n.nI1(22,"translate"),n.k0s()(),n.j41(23,"li",8)(24,"span",9),n.EFF(25),n.nI1(26,"translate"),n.k0s()()()()(),n.j41(27,"div",6)(28,"div",10)(29,"div",11),n.nrm(30,"app-icon",12),n.j41(31,"p",13),n.EFF(32),n.nI1(33,"translate"),n.k0s()()()(),n.j41(34,"div",7)(35,"div",3)(36,"app-button",14),n.bIt("clicked",function(){return g.openModal("eDialog")}),n.EFF(37),n.nI1(38,"translate"),n.k0s()()(),n.j41(39,"div",15)(40,"a",16),n.nI1(41,"translate"),n.j41(42,"span"),n.EFF(43),n.nI1(44,"translate"),n.nrm(45,"app-icon",17),n.k0s()(),n.j41(46,"app-button",18),n.nI1(47,"translate"),n.bIt("clicked",function(){return g.next()}),n.EFF(48),n.nI1(49,"translate"),n.nrm(50,"app-icon",19),n.k0s()()()(),n.j41(51,"app-dialog",20),n.nI1(52,"translate"),n.nI1(53,"translate"),n.bIt("confirm",function(){return g.closeModal()})("cancel",function(){return g.closeModal()})("outside",function(){return null}),n.j41(54,"p"),n.EFF(55),n.nI1(56,"translate"),n.k0s()()),2&_&&(n.R7$(4),n.BMQ("aria-label",n.bMT(5,17,"ONBOARDING.COMMON.BACK_LABEL")),n.R7$(5),n.SpI(" ",n.bMT(10,19,"ONBOARDING.STEP4.BANK_ACCOUNT_VERIFICATION.HEAD")," "),n.R7$(5),n.SpI(" ",n.bMT(15,21,"ONBOARDING.STEP4.BANK_ACCOUNT_VERIFICATION.SUB")," "),n.R7$(7),n.SpI(" ",n.bMT(22,23,"ONBOARDING.STEP4.BANK_ACCOUNT_VERIFICATION.INFO_1"),""),n.R7$(4),n.SpI(" ",n.bMT(26,25,"ONBOARDING.STEP4.BANK_ACCOUNT_VERIFICATION.INFO_2"),""),n.R7$(7),n.SpI(" ",n.bMT(33,27,"ONBOARDING.STEP4.BANK_ACCOUNT_VERIFICATION.STEP4.BANK_DATA.PARAGRAPH")," "),n.R7$(4),n.Y8G("ariaHaspopup","dialog"),n.R7$(),n.SpI(" ",n.bMT(38,29,"ONBOARDING.STEP4.BANK_ACCOUNT_VERIFICATION.WHY_AFTERBANKS")," "),n.R7$(3),n.BMQ("aria-label",n.bMT(41,31,"ONBOARDING.COMMON.BACK_LABEL")),n.R7$(3),n.SpI(" ",n.bMT(44,33,"ONBOARDING.COMMON.BACK")," "),n.R7$(3),n.Y8G("variant","primary")("ariaLabel",n.bMT(47,35,"ONBOARDING.COMMON.CONTINUE_LABEL")),n.R7$(2),n.SpI(" ",n.bMT(49,37,"ONBOARDING.COMMON.CONTINUE")," "),n.R7$(3),n.FS9("headline",n.bMT(52,39,"ONBOARDING.STEP4.BANK_ACCOUNT_VERIFICATION.MODAL_HEAD")),n.FS9("confirmLabel",n.bMT(53,41,"ONBOARDING.COMMON.CLOSE")),n.Y8G("dismissible",!1),n.R7$(4),n.SpI(" ",n.bMT(56,43,"ONBOARDING.STEP4.BANK_ACCOUNT_VERIFICATION.MODAL_TEXT")," "))},dependencies:[c.Wk,b.Qp,Ut.m,O.R,x.D9],styles:[".secondary[_ngcontent-%COMP%]{position:fixed;top:13px;left:15px;background-color:transparent;background-repeat:no-repeat;border:none;cursor:pointer;overflow:hidden;outline:none;z-index:100001}.secondary[_ngcontent-%COMP%]   app-icon[_ngcontent-%COMP%]{color:#000}.continueBtn[_ngcontent-%COMP%]{align-items:center;background-color:#0a8250;border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;
1cursor:pointer;display:flex;font-size:var(--e-button-font-size);justify-content:space-between;line-height:1.2em;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;width:100%;text-decoration:none!important}.continueBtn[_ngcontent-%COMP%]:hover{background-color:#2b5033}.continueBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;flex-grow:1;text-align:center;line-height:25px;color:#fff!important;font-size:1rem}.returnBtn[_ngcontent-%COMP%]{background-color:#fff;box-shadow:inset 0 0 0 .0625rem #0a8250;max-width:var(--e-button-max-width);border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;text-decoration:none!important;justify-content:center;align-items:center;display:flex;margin-right:1rem}.returnBtn[_ngcontent-%COMP%]:hover{background-color:#0a8250}.returnBtn[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%]{color:#fff}.returnBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#0a8250;font-size:var(--e-button-font-size)}.right-align[_ngcontent-%COMP%]{text-align:right}.right-align[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#333}.dialog-button[_ngcontent-%COMP%]{color:#0a8250!important;text-decoration:underline!important;border:none;background:none}"]})}}return d})();function y(d){return function p(g){if(g){if(24!=(g=(g=(g=(g=g.toUpperCase()).trim()).replaceAll("-","")).replace(/\s/g,"")).length)return!1;const z=g.substring(0,1),ot=g.substring(1,2),mt=_(z),kt=_(ot);let zt=String(mt)+String(kt)+g.substring(2);return zt=zt.substring(6)+zt.substring(0,6),1==function m(g){const z=Math.ceil(g.length/7);let ot="";for(let mt=1;mt<=z;mt++)ot=String(parseFloat(ot+g.substr(7*(mt-1),7))%97);return ot}(zt)}return null}(d.value)?null:{VALID_IBAN:!0};function _(g){return"ABCDEFGHIJKLMNOPQRSTUVWXYZ".search(g)+10}}var ft=r(31084),f=r(7196);function A(d,p){if(1&d&&(n.j41(0,"p",8),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&d){const m=n.XpG();n.Y8G("ngClass",null!=m.form&&m.form.errors?"mc-field-box__note__error":"mc-field-box__note"),n.R7$(),n.SpI(" ",n.bMT(2,2,"FORM.ERRORS.SELECT_BANK_ACCOUNT")," ")}}function R(d,p){if(1&d){const m=n.RV6();n.j41(0,"a",19),n.bIt("click",function(){return n.eBV(m),n.XpG().openModal("bank-account"),n.Njj(!1)}),n.EFF(1),n.nI1(2,"translate"),n.nI1(3,"translate"),n.nI1(4,"translate"),n.k0s()}2&d&&(n.R7$(),n.E5c("",n.bMT(2,3,"ONBOARDING.STEP4.BANK_DATA.CHECK_2")," ",n.bMT(3,5,"ONBOARDING.STEP4.BANK_DATA.CHECK_3")," ",n.bMT(4,7,"ONBOARDING.STEP4.BANK_DATA.CHECK_4"),""))}function it(d,p){if(1&d){const m=n.RV6();n.j41(0,"a",19),n.bIt("click",function(){return n.eBV(m),n.XpG().openModal("bank-account"),n.Njj(!1)}),n.EFF(1),n.nI1(2,"translate"),n.nI1(3,"translate"),n.k0s()}2&d&&(n.R7$(),n.Lme("",n.bMT(2,2,"ONBOARDING.STEP4.BANK_DATA.CHECK_6")," ",n.bMT(3,4,"ONBOARDING.STEP4.BANK_DATA.CHECK_4"),""))}let C=(()=>{class d{constructor(m,_,g,z,ot,mt,kt){this.modalService=m,this.route=_,this.formsService=g,this.router=z,this.microService=ot,this.aggregatorService=mt,this._storageService=kt,this.formSend=new F.hs(null,[y]),this.professional=!!this._storageService.getItem("professional"),this.checkbox={name:"Checkbox",label:"checkbox",checked:!1},this.radioBank=!1,this.route.data.subscribe(zt=>{this.form=zt.form})}ngOnInit(){const m=this._storageService.getItem("arcoPayId");m||this.router.navigate(["/wizard/step1/welcome"]),this.route.data.subscribe(_=>{this.form=_.form,this.aggregatorService.agreggatorIBAN(m).subscribe(g=>{N().map(g,z=>(z.value=z.iban,z.text=z.iban.replace(/^.{20}/g,"******************"),z)),this.account=g})})}openModal(m){this.modalService.openModal(m)}modalResponse(m){}markAllAsTouched(){this.form.get("additional_data").get("order_check").markAsTouched(),this.form?.get("additional_data").get("order_check").valid&&null!==this.formSend.value?(this.form.value.request_data.pre_status="29",this.formsService.updateCRM(this.form.value).subscribe(()=>{this.router.navigate(["/wizard/step4/way-to-pay-options"])},m=>{console.error(m)})):(this.radioBank=!0,this.radioBank=null===this.formSend.value,(0,$t.K)())}setIBANFields(m){if(this.formSend.valid){const _=m.substring(0,4),g=m.substring(4,8),z=m.substring(8,12),ot=m.substring(12,14),mt=m.substring(14,24);this.form.get("bank_data").get("iban").setValue(_.toUpperCase()),this.form.get("bank_data").get("bank").setValue(g),this.form.get("bank_data").get("office").setValue(z),this.form.get("bank_data").get("control").setValue(ot),this.form.get("bank_data").get("account").setValue(mt)}}static{this.\u0275fac=function(_){return new(_||d)(n.rXU(jt.B),n.rXU(c.nX),n.rXU(a.f),n.rXU(c.Ix),n.rXU(Vt.m),n.rXU(Yt.v),n.rXU(e.n))}}static{this.\u0275cmp=n.VBU({type:d,selectors:[["app-bank-account"]],decls:45,vars:44,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],[1,"col","pl-3","pl-xl-0"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium"],[1,"row","spacer-bottom-low"],["
1id","botones","className","radioWidth marginWidths radio-outline","name","account",3,"onChange","data","form"],[1,"row","spacer-bottom-low","mc-field-box__note__error"],[1,"mt-1",3,"ngClass"],[1,"col","pl-3","pl-xl-0","spacer-bottom-lowest"],[3,"data","form"],[1,"row","spacer-both-high","d-flex","justify-content-center"],["tabindex","0","routerLink","/wizard/step4/arcopay",1,"returnBtn","d-none","d-lg-flex"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-left","width","24px","height","24px",1,"float-left"],[1,"col","d-flex","justify-content-center","justify-content-lg-start",3,"clicked","variant","disabled"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"],["id","eDialog",3,"confirm","cancel","outside","headline","confirmLabel","dismissible"],["id","bank-account","headline","",3,"confirmLabel","dismissible"],[1,"spacer-top-low",3,"innerHTML"],[3,"click"]],template:function(_,g){1&_&&(n.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),n.EFF(4),n.nI1(5,"translate"),n.k0s()(),n.j41(6,"div",2)(7,"div",4)(8,"span"),n.EFF(9),n.nI1(10,"translate"),n.k0s()()(),n.j41(11,"div",5)(12,"div",3)(13,"app-radio",6),n.bIt("onChange",function(ot){return g.setIBANFields(ot.value),g.radioBank=!1}),n.k0s()()(),n.j41(14,"div",7),n.DNE(15,A,3,4,"p",8),n.k0s(),n.j41(16,"div",2)(17,"div",9)(18,"app-checkbox",10)(19,"p"),n.EFF(20),n.nI1(21,"translate"),n.DNE(22,R,5,9,"a")(23,it,4,6,"a"),n.k0s()()()(),n.j41(24,"div",11)(25,"a",12),n.nI1(26,"translate"),n.j41(27,"span"),n.EFF(28),n.nI1(29,"translate"),n.nrm(30,"app-icon",13),n.k0s()(),n.j41(31,"app-button",14),n.bIt("clicked",function(){return g.markAllAsTouched()}),n.EFF(32),n.nI1(33,"translate"),n.nrm(34,"app-icon",15),n.k0s()()()(),n.j41(35,"app-dialog",16),n.nI1(36,"translate"),n.nI1(37,"translate"),n.bIt("confirm",function(ot){return g.modalResponse(ot)})("cancel",function(ot){return g.modalResponse(ot)})("outside",function(){return null}),n.j41(38,"p"),n.EFF(39),n.nI1(40,"translate"),n.k0s()(),n.j41(41,"app-dialog",17),n.nI1(42,"translate"),n.nrm(43,"div",18),n.nI1(44,"translate"),n.k0s()),2&_&&(n.R7$(4),n.SpI(" ",n.bMT(5,22,"ONBOARDING.STEP4.BANK_ACCOUNT.BANK_ACCOUNT")," "),n.R7$(5),n.SpI(" ",n.bMT(10,24,"ONBOARDING.STEP4.BANK_ACCOUNT.BANK_ACCOUNT_INFO")," "),n.R7$(4),n.Y8G("data",g.account)("form",g.formSend),n.R7$(2),n.vxM(15,g.radioBank?15:-1),n.R7$(3),n.Y8G("data",g.checkbox)("form",null==g.form?null:g.form.get("additional_data").get("order_check")),n.R7$(2),n.SpI(" ",n.bMT(21,26,"ONBOARDING.STEP4.BANK_DATA.CHECK_1")," "),n.R7$(2),n.vxM(22,g.professional?-1:22),n.R7$(),n.vxM(23,g.professional?23:-1),n.R7$(2),n.BMQ("aria-label",n.bMT(26,28,"ONBOARDING.COMMON.BACK_LABEL")),n.R7$(3),n.SpI(" ",n.bMT(29,30,"ONBOARDING.COMMON.BACK")," "),n.R7$(3),n.Y8G("variant","primary")("disabled",!(null!=g.form&&g.form.get("additional_data").get("order_check").valid)||null===g.formSend.value),n.R7$(),n.SpI(" ",n.bMT(33,32,"ONBOARDING.COMMON.CONTINUE")," "),n.R7$(3),n.FS9("headline",n.bMT(36,34,"ONBOARDING.STEP4.BANK_ACCOUNT_VERIFICATION.MODAL_HEAD")),n.FS9("confirmLabel",n.bMT(37,36,"ONBOARDING.COMMON.CLOSE")),n.Y8G("dismissible",!1),n.R7$(4),n.SpI(" ",n.bMT(40,38,"ONBOARDING.STEP4.BANK_ACCOUNT_VERIFICATION.MODAL_TEXT")," "),n.R7$(2),n.FS9("confirmLabel",n.bMT(42,40,"ONBOARDING.COMMON.CLOSE")),n.Y8G("dismissible",!1),n.R7$(2),n.Y8G("innerHTML",n.bMT(44,42,"ONBOARDING.BANKDATA.LEGAL_TEXT"),n.npT))},dependencies:[u.YU,c.Wk,b.Qp,ft.P,Ut.m,O.R,f.v,x.D9],styles:['@charset "UTF-8";.container[_ngcontent-%COMP%]{display:flex;justify-content:center}ul[_ngcontent-%COMP%]{list-style:none}li[_ngcontent-%COMP%]{display:flex;align-items:center}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:before{content:"\\2022";color:#0a8250;font-size:25px;width:1em;margin-left:-1.6em;display:flex;align-items:flex-start}a[_ngcontent-%COMP%]:not([href]):not([class]){color:#0a8250;text-decoration:underline;cursor:pointer}.spacer[_ngcontent-%COMP%]{display:flex;margin-top:2rem;width:100%!important}.customCheckbox[_ngcontent-%COMP%]{top:14px;left:15px}a[_ngcontent-%COMP%]{color:#0a8250;text-decoration:underline}  .radioWidth{width:180px}.radio[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:flex}  .marginWidths .radio{padding-bottom:30px}.returnBtn[_ngcontent-%COMP%]{background-color:#fff;box-shadow:inset 0 0 0 .0625rem #0a8250;max-width:var(--e-button-max-width);border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;text-decoration:none!important;justify-content:center;align-items:center;display:flex;margin-right:1rem}.returnBtn[_ngcontent-%COMP%]:hover{background-color:#0a8250}.returnBtn[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%]{color:#fff}.returnBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#0a8250;font-size:var(--e-button-font-size)}']})}}return d})();var lt=r(96647);const v=()=>({mask:"aa00-0000-0000-0000-0000-0000"});function S(d,p){if(1&d){const m=n.RV6();n.j41(0,"app-input",21),n.bIt("onChange",function(){n.eBV(m);const g=n.XpG();
1return n.Njj(g.setIBANFields())}),n.k0s()}if(2&d){const m=n.XpG();n.Y8G("form",m.localForm)("data",m.input)("maskFormat",n.lJ4(3,v))}}function M(d,p){if(1&d){const m=n.RV6();n.j41(0,"app-button",22),n.nI1(1,"translate"),n.bIt("clicked",function(g){return n.eBV(m),n.XpG().openModal("bank-data",g),n.Njj(g.preventDefault())}),n.EFF(2),n.nI1(3,"translate"),n.nI1(4,"translate"),n.nI1(5,"translate"),n.k0s()}2&d&&(n.Y8G("variant","plain")("styleClass","text-decoration: underline; color: #0a8250;")("ariaLabel",n.bMT(1,6,"ONBOARDING.STEP4.BANK_DATA.LABEL2")),n.R7$(2),n.E5c(" ",n.bMT(3,8,"ONBOARDING.STEP4.BANK_DATA.CHECK_2")," ",n.bMT(4,10,"ONBOARDING.STEP4.BANK_DATA.CHECK_3")," ",n.bMT(5,12,"ONBOARDING.STEP4.BANK_DATA.CHECK_4")," * "))}function W(d,p){if(1&d){const m=n.RV6();n.j41(0,"app-button",22),n.nI1(1,"translate"),n.bIt("clicked",function(g){return n.eBV(m),n.XpG().openModal("bank-data",g),n.Njj(g.preventDefault())}),n.EFF(2),n.nI1(3,"translate"),n.nI1(4,"translate"),n.k0s()}2&d&&(n.Y8G("variant","plain")("styleClass","text-decoration: underline; color: #0a8250;")("ariaLabel",n.bMT(1,5,"ONBOARDING.STEP4.BANK_DATA.LABEL3")),n.R7$(2),n.Lme(" ",n.bMT(3,7,"ONBOARDING.STEP4.BANK_DATA.CHECK_6")," ",n.bMT(4,9,"ONBOARDING.STEP4.BANK_DATA.CHECK_4")," * "))}let ht=(()=>{class d{constructor(m,_,g,z,ot,mt){this.route=m,this.router=_,this.formsService=g,this.modalService=z,this._storageService=ot,this.titleService=mt,this.localForm=new F.hs(null,[y]),this.professional=!!this._storageService.getItem("professional"),this.input={name:"iban",label:"ONBOARDING.STEP4.BANK_DATA.PLACEHOLDER",type:"text",required:!0,disabled:!1,maxlength:29},this.checkbox={name:"Checkbox",label:"checkbox",text:"",checked:!1},this.route.data.subscribe(kt=>{this.form=kt.form,this.setManualIBAN()})}ngOnInit(){this.titleService.setTitleFromTranslation("PAGE_TITLES.BANK_DATA")}setManualIBAN(){this.form.get("bank_data").get("iban").value&&this.localForm.setValue(`${this.form.get("bank_data").get("iban").value}-${this.form.get("bank_data").get("bank").value}-${this.form.get("bank_data").get("office").value}-${this.form.get("bank_data").get("control").value}${this.form.get("bank_data").get("account").value.slice(0,2)}-${this.form.get("bank_data").get("account").value.slice(2,6)}-${this.form.get("bank_data").get("account").value.slice(6,10)}`)}ngOnDestroy(){this.closeModal()}closeModal(){this.modalService.closeModal("bank-data")}formValid(){return this.localForm.valid&&this.form.get("additional_data").get("order_check").valid&&this.form.get("bank_data").get("iban").valid&&this.form.get("bank_data").get("bank").valid&&this.form.get("bank_data").get("office").valid&&this.form.get("bank_data").get("control").valid&&this.form.get("bank_data").get("account").valid}markAllAsTouched(){this.form.get("additional_data").get("order_check").markAsTouched(),this.localForm.markAsTouched()}setIBANFields(){if(this.localForm.valid){const m=this.localForm.value.replaceAll("-",""),_=m.substring(0,4),g=m.substring(4,8),z=m.substring(8,12),ot=m.substring(12,14),mt=m.substring(14,24);this.form.get("bank_data").get("iban").setValue(_.toUpperCase()),this.form.get("bank_data").get("bank").setValue(g),this.form.get("bank_data").get("office").setValue(z),this.form.get("bank_data").get("control").setValue(ot),this.form.get("bank_data").get("account").setValue(mt)}}openModal(m,_){const g=_?.target;this.modalService.openModal(m,g)}next(){this.markAllAsTouched(),this.setIBANFields(),this.formValid()?(this.form.get("additional_data").get("order_check").setValue(this.form.get("additional_data").get("order_check").value?"S":"N"),this.formsService.updateCRM(this.form.value).subscribe(()=>{this.router.navigate(["/wizard/step4/account-verification"])},m=>{console.error(m)})):this.focusFirstError()}focusFirstError(){setTimeout(()=>
1{this.localForm.invalid&&this.inputComponent?.inputElement?.nativeElement?this.inputComponent.inputElement.nativeElement.focus():this.form.get("additional_data").get("order_check").invalid&&this.checkboxComponent?.checkboxInput?.nativeElement&&this.checkboxComponent.checkboxInput.nativeElement.focus()},0)}static{this.\u0275fac=function(_){return new(_||d)(n.rXU(c.nX),n.rXU(c.Ix),n.rXU(a.f),n.rXU(jt.B),n.rXU(e.n),n.rXU(E.E))}}static{this.\u0275cmp=n.VBU({type:d,selectors:[["app-bank-data"]],viewQuery:function(_,g){if(1&_&&(n.GBs(ft.P,5),n.GBs(lt.S,5)),2&_){let z;n.mGM(z=n.lsd())&&(g.checkboxComponent=z.first),n.mGM(z=n.lsd())&&(g.inputComponent=z.first)}},decls:61,vars:52,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row","mb-3","d-lg-none"],[1,"col","pl-3","pl-xl-0"],["tabindex","0","routerLink","/wizard/step3/other-data2",1,"btn-back","secondary"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","arrow-left","width","24px","height","24px",1,"float-left"],[1,"row"],[3,"ngSubmit"],[1,"col","pl-3","pl-xl-0","right-align","spacer-bottom-low"],[1,"row","spacer-bottom-low"],[1,"col-12","pl-3","pl-xl-0"],[3,"form","data","maskFormat"],[1,"col","pl-3","pl-xl-0","spacer-bottom-lowest"],[3,"data","form"],["ariaHaspopup","dialog","aria-controls","bank-data",3,"variant","styleClass","ariaLabel"],[1,"row","spacer-both-high","d-flex","justify-content-center"],["tabindex","0","routerLink","/wizard/step3/other-data2",1,"returnBtn","d-none","d-lg-flex"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-left","width","24px","height","24px",1,"float-left"],[1,"col","d-flex","justify-content-center","justify-content-lg-start",3,"clicked","variant","ariaLabel"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"],["id","bank-data",3,"outside","confirmLabel","headline","dismissible"],[3,"onChange","form","data","maskFormat"],["ariaHaspopup","dialog","aria-controls","bank-data",3,"clicked","variant","styleClass","ariaLabel"]],template:function(_,g){1&_&&(n.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),n.nI1(5,"translate"),n.nrm(6,"app-icon",5),n.k0s()()(),n.j41(7,"div",6)(8,"h1",3),n.EFF(9),n.nI1(10,"translate"),n.k0s()(),n.j41(11,"form",7),n.bIt("ngSubmit",function(ot){return ot.preventDefault()}),n.j41(12,"div",6)(13,"div",3)(14,"span"),n.EFF(15),n.nI1(16,"translate"),n.k0s()()(),n.j41(17,"div",6)(18,"div",8)(19,"span"),n.EFF(20),n.nI1(21,"translate"),n.k0s()()(),n.j41(22,"div",9)(23,"div",10),n.DNE(24,S,1,4,"app-input",11),n.k0s()(),n.j41(25,"div",6)(26,"div",12)(27,"app-checkbox",13)(28,"span"),n.EFF(29),n.nI1(30,"translate"),n.DNE(31,M,6,14,"app-button",14)(32,W,5,11,"app-button",14),n.k0s()()()(),n.j41(33,"div",15)(34,"a",16),n.nI1(35,"translate"),n.j41(36,"span"),n.EFF(37),n.nI1(38,"translate"),n.nrm(39,"app-icon",17),n.k0s()(),n.j41(40,"app-button",18),n.nI1(41,"translate"),n.bIt("clicked",function(){return g.next()}
1),n.EFF(42),n.nI1(43,"translate"),n.nrm(44,"app-icon",19),n.k0s()()()()(),n.j41(45,"app-dialog",20),n.nI1(46,"translate"),n.nI1(47,"translate"),n.bIt("outside",function(){return null}),n.j41(48,"div")(49,"p"),n.EFF(50),n.nI1(51,"translate"),n.k0s(),n.j41(52,"p"),n.EFF(53),n.nI1(54,"translate"),n.k0s(),n.j41(55,"p"),n.EFF(56),n.nI1(57,"translate"),n.k0s(),n.j41(58,"p"),n.EFF(59),n.nI1(60,"translate"),n.k0s()()()),2&_&&(n.R7$(4),n.BMQ("aria-label",n.bMT(5,22,"ONBOARDING.COMMON.BACK_LABEL")),n.R7$(5),n.SpI(" ",n.bMT(10,24,"ONBOARDING.STEP4.BANK_DATA.HEAD")," "),n.R7$(6),n.SpI(" ",n.bMT(16,26,"ONBOARDING.STEP4.BANK_DATA.SUB")," "),n.R7$(5),n.SpI(" ",n.bMT(21,28,"ONBOARDING.ADDRESS.REQUIRED_FIELDS")," "),n.R7$(4),n.vxM(24,g.localForm?24:-1),n.R7$(3),n.Y8G("data",g.checkbox)("form",null==g.form?null:g.form.get("additional_data").get("order_check")),n.R7$(2),n.SpI(" ",n.bMT(30,30,"ONBOARDING.STEP4.BANK_DATA.CHECK_1")," "),n.R7$(2),n.vxM(31,g.professional?-1:31),n.R7$(),n.vxM(32,g.professional?32:-1),n.R7$(2),n.BMQ("aria-label",n.bMT(35,32,"ONBOARDING.COMMON.BACK_LABEL")),n.R7$(3),n.SpI(" ",n.bMT(38,34,"ONBOARDING.COMMON.BACK")," "),n.R7$(3),n.Y8G("variant","primary")("ariaLabel",n.bMT(41,36,"ONBOARDING.COMMON.CONTINUE_LABEL")),n.R7$(2),n.SpI(" ",n.bMT(43,38,"ONBOARDING.COMMON.CONTINUE")," "),n.R7$(3),n.FS9("confirmLabel",n.bMT(46,40,"ONBOARDING.COMMON.CLOSE")),n.FS9("headline",n.bMT(47,42,"ONBOARDING.BANKDATA.HEAD")),n.Y8G("dismissible",!0),n.R7$(5),n.SpI(" ",n.bMT(51,44,"ONBOARDING.BANKDATA.LEGAL_TEXT_P1")," "),n.R7$(3),n.SpI(" ",n.bMT(54,46,"ONBOARDING.BANKDATA.LEGAL_TEXT_P2")," "),n.R7$(3),n.SpI(" ",n.bMT(57,48,"ONBOARDING.BANKDATA.LEGAL_TEXT_P3")," "),n.R7$(3),n.SpI(" ",n.bMT(60,50,"ONBOARDING.BANKDATA.LEGAL_TEXT_P4")," "))},dependencies:[c.Wk,b.Qp,ft.P,Ut.m,O.R,lt.S,x.D9],styles:[".customCheckbox[_ngcontent-%COMP%]{top:14px;left:15px}a[_ngcontent-%COMP%]{color:#0a8250;text-decoration:underline}.spacer[_ngcontent-%COMP%]{margin-top:5rem!important}.secondary[_ngcontent-%COMP%]{position:fixed;top:13px;left:15px;background-color:transparent;background-repeat:no-repeat;border:none;cursor:pointer;overflow:hidden;outline:none;z-index:100001}.secondary[_ngcontent-%COMP%]   app-icon[_ngcontent-%COMP%]{color:#000}.continueBtn[_ngcontent-%COMP%]{align-items:center;background-color:#0a8250;border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--e-button-font-size);justify-content:space-between;line-height:1.2em;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;width:100%;text-decoration:none!important}.continueBtn[_ngcontent-%COMP%]:hover{background-color:#2b5033}.continueBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;flex-grow:1;text-align:center;line-height:25px;color:#fff!important;font-size:1rem}.returnBtn[_ngcontent-%COMP%]{background-color:#fff;box-shadow:inset 0 0 0 .0625rem #0a8250;max-width:var(--e-button-max-width);border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;text-decoration:none!important;justify-content:center;align-items:center;display:flex;margin-right:1rem}.returnBtn[_ngcontent-%COMP%]:hover{background-color:#0a8250}.returnBtn[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%]{color:#fff}.returnBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#0a8250;font-size:var(--e-button-font-size)}.right-align[_ngcontent-%COMP%]{text-align:right}.right-align[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#333}.dialog-button[_ngcontent-%COMP%]{color:#0a8250!important;text-decoration:underline!important;border:none;background:none;cursor:pointer;padding:0;text-align:left}"]})}}return d})();var Et=r(70150);function _t(d,p){1&d&&(n.j41(0,"div",4)(1,"div",5)(2,"h1",6),n.EFF(3),n.nI1(4,"translate"),n.k0s()()()),2&d&&(n.R7$(3),n.SpI(" ",n.bMT(4,1,"ONBOARDING.STEP4.ARCOPAY.TITLE")," "))}let It=(()=>{class d{constructor(m){this.router=m,this.states=[{step:"1",description:"Datos de contacto"},{step:"2",description:"Verifica tu identidad"},{step:"3",description:"Informaci\xf3n adicional"},{step:"4",description:"Configura tu Tarjeta"},{step:"5",description:"T\xe9rminos y condiciones"}]}isArcopayRoute(){return this.router.url.endsWith("/arcopay")}static{this.\u0275fac=function(_){return new(_||d)(n.rXU(c.Ix))}}static{this.\u0275cmp=n.VBU({type:d,selectors:[["app-step4"]],decls:5,vars:2,consts:[[1,"container-wrap"],["status","4",3,"states"],[1,"main"],["class","row justify-content-center",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-10"],[1,"pl-3","pl-xl-0"]],template:function(_,g){1&_&&(n.j41(0,"div",0),n.nrm(1,"app-aside-menu",1),n.j41(2,"div",2),n.DNE(3,_t,5,3,"div",3),n.nrm(4,"router-outlet"),n.k0s()()),2&_&&(n.R7$(),n.Y8G("states",g.states),n.R7$(2),n.Y8G("ngIf",g.isArcopayRoute()))},dependencies:[u.bT,c.n3,Et.d,x.D9],styles:[".container-wrap[_ngcontent-%COMP%]{height:100%;overflow:hidden}.container-wrap-menu[_ngcontent-%COMP%]{background-color:#f0f8ee;padding:80px}.container-wrap[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]{width:100%}"]})}}return d})();var Nt=r(10011),Wt=r(63367);const T=[{path:"",component:It,children:[{path:"account-verification",component:yt,canActivate:[t.k]},{path:"bank-data",component:ht,canActivate:[t.k]},{path:"bank-account-verification",component:Kt,canActivate:[t.k]},{path:"bank-account",component:C,canActivate:[t.k]},{path:"send-documentation",component:s.c,canActivate:[t.k]},{path:"validating-documentation",component:k.r,canActivate:[t.k],data:{title:"Validando documentacion - Onboarding Digital"}},{path:"send-documentation2",component:Nt.a,canActivate:[t.k]},{path:"validating-documentation2",component:Wt.H,canActivate:[t.k]},{path:"way-to-pay",component:o.q,canActivate:[t.k],data:{title:"Forma de Pago Fin de mes - Onboarding Digital"}},{path:"way-to-pay-options",component:L,canActivate:[t.k]},{path:"way-to-pay-due-option",component:Xt,canActivate:[t.k]},{path:"arcopay",component:i.H,canActivate:[t.k]}]}];let ct=(()=>{class d{static{this.\u0275fac=function(_){return new(_||d)}}static{this.\u0275mod=n.$C({type:d})}static{this.\u0275inj=n.G2t({imports:[c.iI.forChild(T),c.iI]})}}return d})(),l=(()=>{class d{static{this.\u0275fac=function(_){return new(_||d)}}static{this.\u0275mod=n.$C({type:d})}static{this.\u0275inj=n.G2t({imports:[u.MD,ct,h.G]})}}return d})()},10267:(ut,tt,r)=>{r.r(tt),r.d(tt,{Step5Module:()=>P});var h=r(19767),u=r(87514),i=r(73652),c=r(56680),t=r(26044),s=r(44964),k=r(90220),o=r(88025),F=r(84692),n=r(49230),a=r(32388),e=r(11201),E=r(70150);let b=(()=>{class L{constructor(){this.states=[{step:"1",description:"Datos de contacto"},{step:"2",description:"Verifica tu identidad"},{step:"3",description:"Informaci\xf3n adicional"},{step:"4",description:"Configura tu Tarjeta"},{step:"5",description:"T\xe9rminos y condiciones"}]}static{this.\u0275fac=function($){return new($||L)}}
1static{this.\u0275cmp=e.VBU({type:L,selectors:[["app-step5"]],decls:4,vars:1,consts:[[1,"container-wrap"],["status","5",3,"states"],[1,"main"]],template:function($,Z){1&$&&(e.j41(0,"div",0),e.nrm(1,"app-aside-menu",1),e.j41(2,"div",2),e.nrm(3,"router-outlet"),e.k0s()()),2&$&&(e.R7$(),e.Y8G("states",Z.states))},dependencies:[o.n3,E.d],styles:[".container-wrap[_ngcontent-%COMP%]{height:100%}.container-wrap-menu[_ngcontent-%COMP%]{background-color:#f0f8ee;padding:80px}.main[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:last-child{align-items:flex-start}"]})}}return L})();var O=r(54348),x=r(53786);let V=(()=>{class L{constructor(){}static{this.\u0275fac=function($){return new($||L)}}static{this.\u0275cmp=e.VBU({type:L,selectors:[["app-finalize-eci"]],decls:45,vars:36,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],[1,"col","pl-3","pl-xl-0"],[1,"col-xl-10","col-xs-12","pl-3","pl-xl-0","spacer-bottom-low"],[1,"col-xl-10","col-xs-12","pl-3","pl-xl-0"],[3,"innerHTML"],[1,"col","pl-3","pl-xl-0","space"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","headphones","width","48px","height","48px"],["href","tel:+34913779779"],[1,"col","pl-3","pl-xl-0","spacer-bottom-low"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","web","width","48px","height","48px"],["href","https://cuenta.elcorteingles.es/citas/","target","_blank",1,"no"],[1,"row","spacer-top-high","spacer-bottom-low"],["tabindex","0","routerLink","/",1,"continueBtn","d-none","d-lg-flex"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"]],template:function($,Z){1&$&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"div",2)(7,"div",4)(8,"span"),e.EFF(9),e.nI1(10,"translate"),e.k0s()()(),e.j41(11,"div",2)(12,"div",5),e.nrm(13,"span",6),e.nI1(14,"translate"),e.k0s()(),e.j41(15,"div",2)(16,"div",7),e.nrm(17,"app-icon",8),e.j41(18,"span"),e.EFF(19),e.nI1(20,"translate"),e.j41(21,"a",9),e.nI1(22,"translate"),e.EFF(23),e.nI1(24,"translate"),e.k0s()()()(),e.j41(25,"div",2)(26,"div",10),e.nrm(27,"app-icon",11),e.j41(28,"span"),e.EFF(29),e.nI1(30,"translate"),e.k0s(),e.j41(31,"a",12),e.nI1(32,"translate"),e.EFF(33),e.nI1(34,"translate"),e.k0s(),e.j41(35,"span"),e.EFF(36),e.nI1(37,"translate"),e.k0s()()(),e.j41(38,"div",13)(39,"a",14),e.nI1(40,"translate"),e.j41(41,"span"),e.EFF(42),e.nI1(43,"translate"),e.nrm(44,"app-icon",15),e.k0s()()()()()),2&$&&(e.R7$(4),e.SpI(" ",e.bMT(5,12,"ONBOARDING.TCECI.FINALIZE_ECI.HEAD")," "),e.R7$(5),e.SpI(" ",e.bMT(10,14,"ONBOARDING.TCECI.FINALIZE_ECI.SUBMENU")," "),e.R7$(4),e.Y8G("innerHTML",e.bMT(14,16,"ONBOARDING.TCECI.FINALIZE_ECI.CONTINUE_ECI"),e.npT),e.R7$(6),e.SpI(" ",e.bMT(20,18,"ONBOARDING.TCECI.FINALIZE_ECI.PHONE")," "),e.R7$(2),e.BMQ("aria-label",e.bMT(22,20,"ONBOARDING.TCECI.FINALIZE_ECI.PHONE_NUMBER_LABEL")),e.R7$(2),e.JRh(e.bMT(24,22,"ONBOARDING.TCECI.FINALIZE_ECI.PHONE_NUMBER")),e.R7$(6),e.SpI(" ",e.bMT(30,24,"ONBOARDING.TCECI.FINALIZE_ECI.WEB"),""),e.R7$(2),e.BMQ("aria-label",e.bMT(32,26,"ONBOARDING.TCECI.FINALIZE_ECI.WEB_LINK_BLANK")),e.R7$(2),e.JRh(e.bMT(34,28,"ONBOARDING.TCECI.FINALIZE_ECI.WEB_LINK")),e.R7$(3),e.SpI(" ",e.bMT(37,30,"ONBOARDING.TCECI.FINALIZE_ECI.WEB2"),""),e.R7$(3),e.BMQ("aria-label",e.bMT(40,32,"ONBOARDING.TCECI.FINALIZE_ECI.FINALIZE_LABEL")),e.R7$(3),e.SpI(" ",e.bMT(43,34,"ONBOARDING.TCECI.FINALIZE_ECI.FINALIZE")," "))},dependencies:[o.Wk,O.R,x.D9],styles:["a[_ngcontent-%COMP%]{text-decoration:none!important;font-size:1rem}app-icon[_ngcontent-%COMP%]{margin-right:10px}.space[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:5px;display:flex;align-items:center}.continueBtn[_ngcontent-%COMP%]{align-items:center;background-color:#0a8250;border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--e-button-font-size);justify-content:space-between;line-height:1.2em;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;width:100%;text-decoration:none!important}.continueBtn[_ngcontent-%COMP%]:hover{background-color:#2b5033}.continueBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;flex-grow:1;text-align:center;line-height:25px;color:#fff!important;font-size:1rem}"]})}}return L})();var G=r(43982);const B=[{path:"",component:b,children:[{path:"processing-request",component:k.B,data:{content:{title:"ONBOARDING.STEP5.REQUEST_PROCESSING_TITLE",subtitle:"ONBOARDING.STEP5.REQUEST_PROCESSING_SUBTITLE",img:!0}}}
1,{path:"pending-request",component:k.B,canActivate:[F.k],data:{content:{title:"ONBOARDING.COMMON.REQUEST_ON_HOLD_TITLE",text:"ONBOARDING.COMMON.REQUEST_ON_HOLD_TEXT",icon:"sandglass",noname:!0,buttons:[{name:"ONBOARDING.COMMON.FINALIZE",action:"finalize",type:"button"}]}}},{path:"approved-request",component:k.B,canActivate:[F.k],data:{content:{validate:!0,title:"ONBOARDING.COMMON.REQUEST_APPROVED_TITLE",subtitle:"ONBOARDING.COMMON.REQUEST_APPROVED_SUBTITLE",input:{title:"ONBOARDING.COMMON.LABEL_CONTRACT",label:"ONBOARDING.COMMON.PLACEHOLDER_CONTRACT",maxlength:10,name:"217",type:"number"},buttons:[{name:"ONBOARDING.COMMON.CONTINUE",action:"getDataByContract",variant:"primary"}],modal:{header:"ONBOARDING.STEP5.APPROVED_REQUEST.MODAL.HEADER",text:"ONBOARDING.STEP5.APPROVED_REQUEST.MODAL.TEXT"}},validate:!0}},{path:"pending-doc-client",component:k.B,canActivate:[F.k],data:{content:{title:"ONBOARDING.COMMON.HELLO_NAME",subtitle:"ONBOARDING.COMMON.PENDING_DOC_SUBTITLE",text:"ONBOARDING.COMMON.PENDING_DOC_TEXT",icon:"plane",buttons:[{name:"ONBOARDING.COMMON.EXIT",action:"back",variant:"secondary"},{name:"ONBOARDING.COMMON.SEND_DOC",action:"send",variant:"primary"}]}}},{path:"pending-doc",component:k.B,canActivate:[F.k],data:{content:{title:"ONBOARDING.COMMON.PENDING_DOC_TITLE",subtitle:"ONBOARDING.COMMON.PENDING_DOC_SUBTITLE",text:"ONBOARDING.COMMON.PENDING_DOC_TEXT",icon:"info",buttons:[{name:"ONBOARDING.COMMON.EXIT",action:"back",variant:"secondary"},{name:"ONBOARDING.COMMON.SEND_DOC",action:"next",variant:"primary"}]}}},{path:"skip-start",component:k.B,canActivate:[F.k],data:{content:{title:"ONBOARDING.COMMON.HELLO_NAME",subtitle:"ONBOARDING.COMMON.SKIP_START_SUBTITLE",text:"ONBOARDING.COMMON.SKIP_START_TEXT",icon:"phone",buttons:[{name:"ONBOARDING.COMMON.CONTINUE",action:"next",variant:"primary"}]}}},{path:"preferences",component:t.E,canActivate:[F.k]},{path:"request-in-process",component:s.z,canActivate:[F.k],data:{title:"Tramitando solicitud - Onboarding Digital"}},{path:"credit-limits",component:c.p,canActivate:[F.k]},{path:"contract-signing",component:n.L,canActivate:[F.k]},{path:"signing-with-logalty",component:a.h,canActivate:[F.k],data:{title:"Redirigiendo a Logalty - Onboarding Digital"}},{path:"finalize-eci",component:V,canActivate:[F.k]},{path:"go-client-area",component:(()=>{class L{constructor(N){this.environmentService=N,this.route=this.environmentService.envVariables.url_financiera+"es/transmit-login/"}static{this.\u0275fac=function($){return new($||L)(e.rXU(G.v))}}static{this.\u0275cmp=e.VBU({type:L,selectors:[["app-go-client-area"]],decls:19,vars:10,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],[1,"col","pl-3","pl-xl-0"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium"],[1,"pl-1"],[1,"row","spacer-bottom-low"],[1,"col","pl-3","pl-xl-0","justify-content-center","d-flex"],["src","./assets/img/onboarding-card/card/feci-tarjeta.png"],[1,"row","spacer-top-high","d-flex","justify-content-center"],[1,"col-md-10","col-12","d-flex","justify-content-center","justify-content-lg-start","mb-5","pl-3","pl-md-0","e-button","e-button-var--primary",3,"href"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"]],template:function($,Z){1&$&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"div",2)(7,"div",4)(8,"span",5),e.EFF(9),e.nI1(10,"translate"),e.k0s()()(),e.j41(11,"div",6)(12,"div",7),e.nrm(13,"img",8),e.k0s()(),e.j41(14,"div",9)(15,"a",10),e.EFF(16),e.nI1(17,"translate"),e.nrm(18,"app-icon",11),e.k0s()()()()),2&$&&(e.R7$(4),e.SpI(" ",e.bMT(5,4,"ONBOARDING.STEP4.GO_CLIENT_AREA.TITLE")," "),e.R7$(5),e.SpI(" ",e.bMT(10,6,"ONBOARDING.STEP4.GO_CLIENT_AREA.TEXT")," "),e.R7$(6),e.Y8G("href",Z.route,e.B4B),e.R7$(),e.SpI(" ",e.bMT(17,8,"ONBOARDING.STEP4.GO_CLIENT_AREA.BUTTON")," "))},dependencies:[O.R,x.D9],styles:["img[_ngcontent-%COMP%]{display:flex;width:60%;margin:0 auto}a.e-button-var--primary[_ngcontent-%COMP%]{color:#fff!important;text-decoration:none!important;justify-content:center!important;position:relative}a.e-button-var--primary[_ngcontent-%COMP%]   app-icon[_ngcontent-%COMP%]{position:absolute;right:16px}"]})}}return L})()},{path:"logalty/:feedback",component:i.W,data:{module:"step5"}}]}];let j=(()=>{class L{static{this.\u0275fac=function($){return new($||L)}}static{this.\u0275mod=e.$C({type:L})}static{this.\u0275inj=e.G2t({imports:[o.iI.forChild(B),o.iI]})}}return L})(),P=(()=>{class L{static{this.\u0275fac=function($){return new($||L)}}static{this.\u0275mod=e.$C({type:L})}static{this.\u0275inj=e.G2t({imports:[u.MD,j,h.G]})}}return L})()},49230:(ut,tt,r)=>{r.d(tt,{L:()=>K});var h=r(13054),u=r(3832),i=r(95769),t=r(11201),s=r(88025),k=r(27188),o=r(25662),F=r(18162),n=r(55902),a=r(31084),e=r(7637),E=r(54348),b=r(53786);function O(B,j){1&B&&(t.j41(0,"p",14),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&B&&(t.R
17$(),t.SpI(" ",t.bMT(2,1,"ONBOARDING.TCECI.CONTRACT_SIGNING.TEXT_2")," "))}function x(B,j){1&B&&(t.j41(0,"p",14),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&B&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"ONBOARDING.TCECI.CONTRACT_SIGNING.TEXT_3")," "))}function V(B,j){if(1&B){const P=t.RV6();t.j41(0,"div",0)(1,"div",5)(2,"div",6)(3,"h1",7),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.j41(6,"div",6)(7,"div",8)(8,"span"),t.EFF(9),t.nI1(10,"translate"),t.j41(11,"app-button",9),t.nI1(12,"translate"),t.bIt("clicked",function(){t.eBV(P);const H=t.XpG();return t.Njj(H.getINE())}),t.EFF(13),t.nI1(14,"translate"),t.k0s(),t.EFF(15),t.nI1(16,"translate"),t.j41(17,"app-button",9),t.nI1(18,"translate"),t.bIt("clicked",function(){t.eBV(P);const H=t.XpG();return t.Njj(H.getContract())}),t.EFF(19),t.nI1(20,"translate"),t.k0s(),t.EFF(21),t.nI1(22,"translate"),t.k0s()()(),t.j41(23,"div",10)(24,"div",11),t.nrm(25,"app-icon",12),t.k0s(),t.j41(26,"div",13)(27,"p",14),t.EFF(28),t.nI1(29,"translate"),t.k0s()()(),t.j41(30,"div",10)(31,"div",11),t.nrm(32,"app-icon",15),t.k0s(),t.j41(33,"div",13),t.DNE(34,O,3,3,"p",14)(35,x,3,3,"p",14),t.k0s()(),t.j41(36,"form")(37,"div",6)(38,"div",16)(39,"span"),t.EFF(40),t.nI1(41,"translate"),t.k0s()()(),t.j41(42,"div",6)(43,"div",17)(44,"app-checkbox",18)(45,"p",19),t.EFF(46),t.nI1(47,"translate"),t.j41(48,"app-button",20),t.nI1(49,"translate"),t.bIt("clicked",function(){return t.eBV(P),t.XpG().openModal("eDialog"),t.Njj(!1)}),t.EFF(50),t.nI1(51,"translate"),t.k0s(),t.EFF(52," * "),t.k0s()()()(),t.j41(53,"div",21)(54,"app-button",22),t.nI1(55,"translate"),t.bIt("clicked",function(){t.eBV(P);const H=t.XpG();return t.Njj(H.markAllAsTouched())}),t.j41(56,"span"),t.EFF(57),t.nI1(58,"translate"),t.nrm(59,"app-icon",23),t.k0s()()()()()()}
1if(2&B){const P=t.XpG();t.R7$(4),t.SpI(" ",t.bMT(5,20,"ONBOARDING.TCECI.CONTRACT_SIGNING.HEAD")," "),t.R7$(5),t.SpI(" ",t.bMT(10,22,"ONBOARDING.TCECI.CONTRACT_SIGNING.SUB_1")," "),t.R7$(2),t.Y8G("ariaLabel",t.bMT(12,24,"ONBOARDING.TCECI.CONTRACT_SIGNING.SUB_2_BLANK")),t.R7$(2),t.SpI(" ",t.bMT(14,26,"ONBOARDING.TCECI.CONTRACT_SIGNING.SUB_2")," "),t.R7$(2),t.SpI(" ",t.bMT(16,28,"ONBOARDING.TCECI.CONTRACT_SIGNING.SUB_3")," "),t.R7$(2),t.Y8G("ariaLabel",t.bMT(18,30,"ONBOARDING.TCECI.CONTRACT_SIGNING.SUB_4_BLANK")),t.R7$(2),t.SpI(" ",t.bMT(20,32,"ONBOARDING.TCECI.CONTRACT_SIGNING.SUB_4")," "),t.R7$(2),t.SpI(" ",t.bMT(22,34,"ONBOARDING.TCECI.CONTRACT_SIGNING.SUB_5")," "),t.R7$(7),t.SpI(" ",t.bMT(29,36,"ONBOARDING.TCECI.CONTRACT_SIGNING.TEXT_1")," "),t.R7$(6),t.vxM(34,"step5"==P.module?34:-1),t.R7$(),t.vxM(35,"tceci"==P.module?35:-1),t.R7$(5),t.SpI(" ",t.bMT(41,38,"ONBOARDING.ADDRESS.REQUIRED_FIELDS")," "),t.R7$(4),t.Y8G("form",P.formOTP)("data",P.checkbox),t.R7$(2),t.SpI(" ",t.bMT(47,40,"ONBOARDING.TCECI.CONTRACT_SIGNING.CHECK_1")," "),t.R7$(2),t.Y8G("ariaLabel",t.bMT(49,42,"ONBOARDING.TCECI.CONTRACT_SIGNING.OPEN_LOGALTY_MODAL"))("styleClass","text-decoration: underline; color: #0a8250"),t.R7$(2),t.SpI(" ",t.bMT(51,44,"ONBOARDING.TCECI.CONTRACT_SIGNING.CHECK_2")," "),t.R7$(4),t.Y8G("ariaLabel",t.bMT(55,46,"ONBOARDING.COMMON.CONTINUE_LABEL")),t.R7$(3),t.SpI(" ",t.bMT(58,48,"ONBOARDING.COMMON.CONTINUE")," ")}}function G(B,j){1&B&&(t.j41(0,"div",4)(1,"span"),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&B&&(t.R7$(2),t.SpI(" ",t.bMT(3,1,"ONBOARDING.COMMON.TRY_AGAIN_LATER")," "))}let K=(()=>{class B{constructor(P,L,H,N,$){this.route=P,this.router=L,this.pdfService=H,this.formsService=N,this.modalService=$,this.checkbox={name:"acepto",label:"acepto",text:"",checked:!1},this.vista=!1,this.formOTP=new h.hs(null,[u.q]),this.route.data.subscribe(Z=>{this.form=Z.form,this.module=Z.module})}ngOnInit(){this.formsService.getCRMState().subscribe(P=>{this.crmState=P.request_data.pre_status,"08"==this.crmState&&"S"!=this.form.value.request_data?.activation?this.router.navigate(["/wizard/step5/finalize-eci"]):"49"==this.crmState&&"S"!=this.form.value.request_data?.activation||"23"==this.crmState&&"N"==this.form.value.request_data?.activation?this.router.navigate(["/wizard/tceci/finalize-in-eci"]):this.vista=!0})}setCheckBoxData(P){}getContract(){if(this.form){const P=i.find(this.form.value.additional_info,H=>"H-ENDOSO_CONT"===H.property_id),L=i.find(this.form.value.additional_info,H=>"H-TDOC_ENDCONT"===H.property_id);P?this.pdfService.getDocumentContract(P.value,L.value):(this.state="ERROR",this.openModal("noOwnershipDialog"))}else this.state="ERROR",this.openModal("noOwnershipDialog")}getINE(){if(this.form){const P=i.find(this.form.value.additional_info,H=>"H-ENDOSO_INE"===H.property_id),L=i.find(this.form.value.additional_info,H=>"H-TDOC_ENDINE"===H.property_id);P?this.pdfService.getDocumentINE(P.value,L.value):(this.state="ERROR",this.openModal("noOwnershipDialog"))}else this.state="ERROR",this.openModal("noOwnershipDialog")}markAllAsTouched(){this.formOTP.markAsTouched(),this.formOTP.valid?this.router.navigate("step5"===this.module?["/wizard/step5/signing-with-logalty"]:["/wizard/tceci/signing-with-logalty"]):this.focusFirstInvalidElement()}openModal(P){this.modalService.openModal(P)}closeModal(){this.modalService.closeModal("noOwnershipDialog")}modalResponse(P,L){this.modalService.closeModal(L)}focusFirstInvalidElement(){const P=document.querySelector("input.ng-invalid");P&&(P.focus(),P.scrollIntoView({behavior:"smooth",block:"center"}))}static{this.\u0275fac=function(L){return new(L||B)(t.rXU(s.nX),t.rXU(s.Ix),t.rXU(k.s),t.rXU(o.f),t.rXU(F.B))}}static{this.\u0275cmp=t.VBU({type:B,selectors:[["app-contract-signing"]],decls:50,vars:56,consts:[[1,"container","row","d-flex","justify-content-center"],["id","eDialog",3,"confirm","cancel","outside","headline","confirmLabel","dismissible"],[1,"modal-font"],["id","noOwnershipDialog",3,"cancel","outside","cancelLabel","headline","dismissible","error"],[1,"pl-1","col-12"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],[1,"col","pl-3","pl-xl-0"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium"],["variant","button-link",3,"clicked","ariaLabel"],[1,"row","spacer-bottom-low"],[1,"col-auto","d-flex","align-items-center"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","contract-signing","width","36px","height","36px"],[1,"col"],[1,"mb-0"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","password","width","36px","height","36px"],[1,"col","pl-3","pl-xl-0","spacer-bottom-low","right-align"],[1,"col","pl-3","pl-xl-0","spacer-bottom-lowest"],[3,"form","data"],[1,"col","pl-0"],["variant","button-link","ariaHaspopup","dialog",3,"clicked","ariaLabel","styleClass"],[1,"row","spacer-top-high","spacer-bottom-low"],[1,"col","d-flex","justify-content-center","justify-content-lg-start",3,"clicked","ariaLabel"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"]],template:function(L,H){1&L&&(t.DNE(0,V,60,50,"div",0),t.j41(1,"app-dialog",1),t.nI1(2,"translate"),t.nI1(3,"translate"),t.bIt("confirm",function($){return H.modalResponse($,"eDialog")})("cancel",function($){return H.modalResponse($,"eDialog")})("outside",function(){return null}),t.j41(4,"div",2)(5,"p"),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.j41(8,"p"),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.j41(11,"p"),t.EFF(12),t.nI1(13,"translate"),t.k0s(),t.j41(14,"p"),t.EFF(15),t.nI1(16,"translate"),t.k0s(),t.j41(17,"ul")(18,"li"),t.EFF(19),t.nI1(20,"translate"),t.k0s(),t.j41(21,"li"),t.EFF(22),t.nI1(23,"translate"),t.k0s(),t.j41(24,"li"),t.EFF(25),t.nI1(26,"translate"),t.k0s(),t.j41(27,"li"),t.EFF(28),t.nI1(29,"translate"),t.k0s()(),t.j41(30,"p"),t.EFF(31),t.nI1(32,"translate"),t.k0s(),t.j41(33,"ul")(34,"li"),t.EFF(35),t.nI1(36,"translate"),t.k0s(),t.j41(37,"li"),t.EFF(38),t.nI1(39,"translate"),t.k0s(),t.j41(40,"li"),t.EFF(41),t.nI1(42,"translate"),t.k0s(),t.j41(43,"li"),t.EFF(44),t.nI1(45,"translate"),t.k0s()()()(),t.j41(46,"app-dialog",3),t.nI1(47,"translate"),t.nI1(48,"translate"),t.bIt("cancel",function($){return H.modalResponse($,"noOwnershipDialog")})("outside",function(){return null}),t.DNE(49,G,4,3,"div",4),t.k0s()),2&L&&(t.vxM(0,H.vista?0:-1),t.R7$(),t.FS9("headline",t.bMT(2,22,"ONBOARDING.TCECI.CONTRACT_SIGNING.MODAL.HEAD")),t.FS9("confirmLabel",t.bMT(3,24,"ONBOARDING.COMMON.CLOSE")),t.Y8G("dismissible",!0),t.R7$(5),t.SpI(" ",t.bMT(7,26,"ONBOARDING.TCECI.CONTRACT_SIGNING.MODAL.TEXT_01")," "),t.R7$(3),t.SpI(" ",t.bMT(10,28,"ONBOARDING.TCECI.CONTRACT_SIGNING.MODAL.TEXT_02")," "),t.R7$(3),t.SpI(" ",t.bMT(13,30,"ONBOARDING.TCECI.CONTRACT_SIGNING.MODAL.TEXT_03")," "),t.R7$(3),t.SpI(" ",t.bMT(16,32,"ONBOARDING.TCECI.CONTRACT_SIGNING.MODAL.TEXT_04")," "),t.R7$(4),t.SpI(" ",t.bMT(20,34,"ONBOARDING.TCECI.CONTRACT_SIGNING.MODAL.TEXT_05")," "),t.R7$(3),t.SpI(" ",t.bMT(23,36,"ONBOARDING.TCECI.CONTRACT_SIGNING.MODAL.TEXT_06")," "),t.R7$(3),t.SpI(" ",t.bMT(26,38,"ONBOARDING.TCECI.CONTRACT_SIGNING.MODAL.TEXT_07")," "),t.R7$(3),t.SpI(" ",t.bMT(29,40,"ONBOARDING.TCECI.CONTRACT_SIGNING.MODAL.TEXT_08")," "),t.R7$(3),t.SpI(" ",t.bMT(32,42,"ONBOARDING.TCECI.CONTRACT_SIGNING.MODAL.TEXT_09")," "),t.R7$(4),t.SpI(" ",t.bMT(36,44,"ONBOARDING.TCECI.CONTRACT_SIGNING.MODAL.TEXT_10")," "),t.R7$(3),t.SpI(" ",t.bMT(39,46,"ONBOARDING.TCECI.CONTRACT_SIGNING.MODAL.TEXT_11")," "),t.R7$(3),t.SpI(" ",t.bMT(42,48,"ONBOARDING.TCECI.CONTRACT_SIGNING.MODAL.TEXT_12")," "),t.R7$(3),t.SpI(" ",t.bMT(45,50,"ONBOARDING.TCECI.CONTRACT_SIGNING.MODAL.TEXT_13")," "),t.R7$(2),t.FS9("cancelLabel",t.bMT(47,52,"ONBOARDING.COMMON.CLOSE")),t.FS9("headline",t.bMT(48,54,"ONBOARDING.COMMON.NO_DOCUMENT")),t.Y8G("dismissible",!1)("error",!0),t.R7$(3),t.vxM(49,"ERROR"===H.state?49:-1))},dependencies:[n.Qp,a.P,e.m,E.R,b.D9],styles:[".modal-font[_ngcontent-%COMP%]{font-size:15px!important}.right-align[_ngcontent-%COMP%]{text-align:right}"]})}}return B})()},56680:(ut,tt,r)=>{r.d(tt,{p:()=>P});
1var h=r(95769),u=r.n(h),i=r(13054),c=r(3832),t=r(11201),s=r(88025),k=r(8160),o=r(2080),F=r(25662),n=r(27188),a=r(3390),e=r(18162),E=r(63868),b=r(29394),O=r(55902),x=r(31084),V=r(7637),G=r(54348),K=r(87514),B=r(53786);function j(L,H){1&L&&(t.j41(0,"div",24)(1,"h1"),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&L&&(t.R7$(2),t.SpI(" ",t.bMT(3,1,"ONBOARDING.COMMON.TRY_AGAIN_LATER")," "))}let P=(()=>{class L{constructor(N,$,Z,pt,rt,at,U,X,Y,I){this.route=N,this.microService=$,this.clientService=Z,this.router=pt,this.formsService=rt,this.pdfService=at,this._storageService=U,this.modalService=X,this.wayToPayService=Y,this.titleService=I,this.professional=!!this._storageService.getItem("professional"),this.checkbox={name:"acepto",label:"acepto",text:"",checked:!1},this.eciLimit=0,this.otherLimit=0,this.totalLimit=0,this.openAmount=0,this.closeAmount=0,this.formLocal=new i.J3({ADICCHECKINE:new i.hs(null,[c.q])}),this.route.data.subscribe(D=>{this.form=D.form,this.module=D.module,this.eciLimit=parseInt(u().find(this.form.value.additional_info,w=>"BANK-IMP_LIM_CONC"===w.property_id).value),this.otherLimit=parseInt(u().find(this.form.value.additional_info,w=>"BANK-IMP_LIM_CONC2"===w.property_id).value),this.totalLimit="tceci"===this.module?this.eciLimit:this.eciLimit+this.otherLimit,this.wayToPayService.getCRMValues().subscribe(w=>{const J=u().find(this.form.value.additional_info,Q=>"BANK-CANTIDAD2"===Q.property_id).value;this.openAmount=w.fixedAmount.filter(Q=>Q.value===J)[0].label,this.closeAmount=w.fixedAmount.filter(Q=>Q.value===this.form.value.bank_data.amount)[0].label}),this._checkChangeMethod()})}ngOnInit(){this.titleService.setTitleFromTranslation("PAGE_TITLES.CREDIT_LIMITS")}_checkChangeMethod(){u().find(this.form?.value.additional_info,$=>"BANK-CAMBIO_CUOTA"===$.property_id&&"X"===$.value)&&this.openModal("modalCreditLimit")}getINE(){if(this.form){const N=u().find(this.form.value.additional_info,Z=>"H-ENDOSO_INE"===Z.property_id),$=u().find(this.form.value.additional_info,Z=>"H-TDOC_ENDINE"===Z.property_id);N&&$?this.pdfService.getDocumentINE(N.value,$.value):(this.state="ERROR",this.openModal("noOwnershipDialog"))}else this.state="ERROR",this.openModal("noOwnershipDialog")}getRequest(){if(this.form){const N=u().find(this.form.value.additional_info,$=>"H-TDOC_END"===$.property_id);N&&this.form.value.request_data.endoso?this.pdfService.getDocumentRequest(this.form.value.request_data.endoso,N.value):(this.state="ERROR",this.openModal("noOwnershipDialog"))}else this.state="ERROR",this.openModal("noOwnershipDialog")}modalResponse(N,$){this.modalService.closeModal($)}closeModal(N){this.modalService.closeModal(N)}openModal(N){this.modalService.openModal(N)}next(){this.formLocal.get("ADICCHECKINE").markAsTouched(),this.formLocal.get("ADICCHECKINE").valid?(this.form.value.request_data.pre_status="25",this.form.value.additional_info.push({property_id:"ADIC-CHECKINE",value:this.formLocal.get("ADICCHECKINE").value?"S":"N"}),console.log(this.form.get("additional_info")),this.formsService.updateCRM(this.form.value).subscribe(()=>{this.router.navigate(["/wizard/step5/pending-request"])},$=>{console.error($)})):this.focusFirstInvalidElement()}focusFirstInvalidElement(){const N=document.querySelector("input.ng-invalid, select.ng-invalid, textarea.ng-invalid");N&&(N.focus(),N.scrollIntoView({behavior:"smooth",block:"center"}))}static{this.\u0275fac=function($){return new($||L)(t.rXU(s.nX),t.rXU(k.m),t.rXU(o.X),t.rXU(s.Ix),t.rXU(F.f),t.rXU(n.s),t.rXU(a.n),t.rXU(e.B),t.rXU(E.g),t.rXU(b.E))}}static{this.\u0275cmp=t.VBU({type:L,selectors:[["app-credit-limits"]],decls:93,vars:98,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],[1,"col","pl-3","pl-xl-0"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium"],[1,"spacer-bottom-medium","required"],[1,"col","card"],[1,"col-6","d-flex","justify-content-start"],[1,"h4","mb-0"],[1,"col-6","d-flex","justify-content-end"],[1,"col-12"],[1,"row","mb-item"],[1,"col-9","d-flex","justify-content-start"],["src","./assets/icons/onboarding-card/ECI.svg","alt","","role","presentation"],[1,"col-3","d-flex","justify-content-end"],[1,"float-right","amount"],["src","./assets/icons/onboarding-card/World.svg","alt","","role","presentation"],[3,"form","data"],[1,"col","pl-0"],["variant","button-link",3,"clicked","ariaLabel"],[1,"row","spacer-top-high","spacer-bottom-high"],[1,"continueBtn","d-flex","justify-content-center","justify-content-lg-start",3,"clicked","disabled","variant","ariaLabel"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"],["id","noOwnershipDialog",3,"cancel","outside","cancelLabel","headline","dismissible","error","showActions"],[1,"pl-1","col-12"],["id","modalCreditLimit",3,"outside","dismissible","showActions"],[1,"h4"],[1,"py-3","pb-4"],[1,"spacing-p"],[1,"d-lg-flex","justify-content-end"],[1,"",3,"clicked","disabled","variant","ariaLabel"]],template:function($,Z){1&$&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.j41(6,"div",2)(7,"div",4)(8,"span"),t.EFF(9),t.nI1(10,"translate"),t.k0s()()(),t.j41(11,"p",5),t.EFF(12),t.nI1(13,"translate"),t.k0s(),t.j41(14,"div",6)(15,"div",2)(16,"div",7)(17,"h2",8),t.EFF(18),t.nI1(19,"translate"),t.k0s()(),t.j41(20,"div",9)(21,"h2",8),t.EFF(22),t.nI1(23,"number"),t.k0s()()(),t.j41(24,"div",2)(25,"div",10),t.nrm(26,"hr"),t.k0s()(),t.j41(27,"div",11)(28,"span",12),t.nrm(29,"img",13),t.EFF(30),t.nI1(31,"translate"),t.k0s(),t.j41(32,"div",14)(33,"span",15),t.EFF(34),t.nI1(35,"number"),t.k0s()()(),t.j41(36,"div",11)(37,"span",12),t.nrm(38,"img",16),t.EFF(39),t.nI1(40,"translate"),t.k0s(),t.j41(41,"div",14)(42,"span",15),t.EFF(43),t.nI1(44,"number"),t.k0s()()()(),t.j41(45,"app-checkbox",17)(46,"p",18),t.EFF(47),t.nI1(48,"translate"),t.j41(49,"app-button",19),t.nI1(50,"translate"),t.bIt("clicked",function(){return Z.getINE(),!1}),t.EFF(51),t.nI1(52,"translate"),t.k0s(),t.EFF(53),t.nI1(54,"translate"),t.j41(55,"app-button",19),t.nI1(56,"translate"),t.bIt("clicked",function(){return Z.getRequest
1(),!1}),t.EFF(57),t.nI1(58,"translate"),t.k0s(),t.EFF(59,"* "),t.k0s()(),t.j41(60,"div",20)(61,"app-button",21),t.nI1(62,"translate"),t.bIt("clicked",function(){return Z.next()}),t.EFF(63),t.nI1(64,"translate"),t.nrm(65,"app-icon",22),t.k0s()()()(),t.j41(66,"app-dialog",23),t.nI1(67,"translate"),t.nI1(68,"translate"),t.bIt("cancel",function(rt){return Z.modalResponse(rt,"noOwnershipDialog")})("outside",function(){return null}),t.DNE(69,j,4,3,"div",24),t.k0s(),t.j41(70,"app-dialog",25),t.bIt("outside",function(){return Z.closeModal("modalCreditLimit")}),t.j41(71,"h1",26),t.EFF(72),t.nI1(73,"translate"),t.k0s(),t.j41(74,"p",27),t.EFF(75),t.nI1(76,"translate"),t.k0s(),t.j41(77,"ul")(78,"li"),t.EFF(79),t.nI1(80,"translate"),t.k0s(),t.j41(81,"li"),t.EFF(82),t.nI1(83,"translate"),t.k0s()(),t.j41(84,"p",28),t.EFF(85),t.nI1(86,"translate"),t.k0s(),t.j41(87,"div",29)(88,"app-button",30),t.nI1(89,"translate"),t.bIt("clicked",function(){return Z.closeModal("modalCreditLimit")}),t.EFF(90),t.nI1(91,"translate"),t.nrm(92,"app-icon",22),t.k0s()()()),2&$&&(t.R7$(4),t.SpI(" ",t.bMT(5,40,"ONBOARDING.TCECI.CREDIT_LIMITS.HEAD")," "),t.R7$(5),t.SpI(" ",t.bMT(10,42,"ONBOARDING.TCECI.CREDIT_LIMITS.TEXT")," "),t.R7$(3),t.SpI(" ",t.bMT(13,44,"ONBOARDING.ADDRESS.REQUIRED_FIELDS")," "),t.R7$(6),t.SpI(" ",t.bMT(19,46,"ONBOARDING.TCECI.CREDIT_LIMITS.LIMIT")," "),t.R7$(4),t.SpI("",t.brH(23,48,Z.totalLimit,"","es-ES"),"\u20ac"),t.R7$(8),t.SpI(" ",t.bMT(31,52,"ONBOARDING.TCECI.CREDIT_LIMITS.ECI_LIMIT")," "),t.R7$(4),t.SpI("",t.brH(35,54,Z.eciLimit,"","es-ES"),"\u20ac"),t.R7$(5),t.SpI(" ",t.bMT(40,58,"ONBOARDING.TCECI.CREDIT_LIMITS.OTHERS_LIMIT")," "),t.R7$(4),t.SpI("",t.brH(44,60,Z.otherLimit,"","es-ES"),"\u20ac"),t.R7$(2),t.Y8G("form",Z.formLocal.get("ADICCHECKINE"))("data",Z.checkbox),t.R7$(2),t.SpI(" ",t.bMT(48,64,"ONBOARDING.TCECI.WAY_TO_PAY.CHECK_1")," "),t.R7$(2),t.Y8G("ariaLabel",t.bMT(50,66,"ONBOARDING.TCECI.WAY_TO_PAY.CHECK_2_LABEL")),t.R7$(2),t.SpI(" ",t.bMT(52,68,"ONBOARDING.TCECI.WAY_TO_PAY.CHECK_2")," "),t.R7$(2),t.SpI(" ",t.bMT(54,70,"ONBOARDING.TCECI.WAY_TO_PAY.CHECK_3")," "),t.R7$(2),t.Y8G("ariaLabel",t.bMT(56,72,"ONBOARDING.TCECI.WAY_TO_PAY.CHECK_4_LABEL")),t.R7$(2),t.SpI(" ",t.bMT(58,74,"ONBOARDING.TCECI.WAY_TO_PAY.CHECK_4")," "),t.R7$(4),t.Y8G("disabled",!1)("variant","primary")("ariaLabel",t.bMT(62,76,"ONBOARDING.COMMON.CONTINUE_LABEL")),t.R7$(2),t.SpI(" ",t.bMT(64,78,"ONBOARDING.COMMON.CONTINUE")," "),t.R7$(3),t.FS9("cancelLabel",t.bMT(67,80,"ONBOARDING.COMMON.CLOSE")),t.FS9("headline",t.bMT(68,82,"ONBOARDING.COMMON.NO_DOCUMENT")),t.Y8G("dismissible",!1)("error",!0)("showActions",!1),t.R7$(3),t.vxM(69,"ERROR"===Z.state?69:-1),t.R7$(),t.Y8G("dismissible",!1)("showActions",!1),t.R7$(2),t.SpI(" ",t.bMT(73,84,"ONBOARDING.TCECI.CREDIT_LIMITS.MODAL.TITLE")," "),t.R7$(3),t.SpI(" ",t.bMT(76,86,"ONBOARDING.TCECI.CREDIT_LIMITS.MODAL.FIRST_TEXT")," "),t.R7$(4),t.Lme(" ",Z.closeAmount," ",t.bMT(80,88,"ONBOARDING.TCECI.CREDIT_LIMITS.MODAL.FIRST_ELEMENT")," "),t.R7$(3),t.Lme(" ",Z.openAmount," ",t.bMT(83,90,"ONBOARDING.TCECI.CREDIT_LIMITS.MODAL.SECOND_ELEMENT")," "),t.R7$(3),t.SpI(" ",t.bMT(86,92,"ONBOARDING.TCECI.CREDIT_LIMITS.MODAL.DOUBTS")," "),t.R7$(3),t.Y8G("disabled",!1)("variant","primary")("ariaLabel",t.bMT(89,94,"ONBOARDING.COMMON.CONTINUE_LABEL")),t.R7$(2),t.SpI(" ",t.bMT(91,96,"ONBOARDING.COMMON.CONTINUE")," "))},dependencies:[O.Qp,x.P,V.m,G.R,K.QX,B.D9],styles:["[_nghost-%COMP%]   h1[_ngcontent-%COMP%]{margin-bottom:0}[_nghost-%COMP%]   h4[_ngcontent-%COMP%], [_nghost-%COMP%]   p[_ngcontent-%COMP%]{margin-bottom:0}[_nghost-%COMP%]   .mb-item[_ngcontent-%COMP%]{margin-bottom:40px}[_nghost-%COMP%]   .card[_ngcontent-%COMP%]{max-width:566px;padding:35px 56px 6px 40px;border-radius:10px;border-color:#182433;margin-bottom:60px}[_nghost-%COMP%]   hr[_ngcontent-%COMP%]{margin-top:35px;margin-bottom:35px;width:100%}@media screen and (max-width: 992px){[_nghost-%COMP%]   .card[_ngcontent-%COMP%]{padding:35px 20px 6px}[_nghost-%COMP%]   .card[_ngcontent-%COMP%]   .ml-4[_ngcontent-%COMP%]{margin-left:0!important}}.infoMsg[_ngcontent-%COMP%]{top:14px;line-height:20px}.limits[_ngcontent-%COMP%]{font-size:14px;display:flex}
1.amount[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-end;align-content:center}app-icon[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;color:#fff}.spacer[_ngcontent-%COMP%]{margin-top:4rem!important}.spacing-p[_ngcontent-%COMP%]{margin-bottom:4rem!important}.h4[_ngcontent-%COMP%]{font-size:1.5rem;font-weight:500}.required[_ngcontent-%COMP%]{text-align:end}.secondary[_ngcontent-%COMP%]{position:fixed;top:13px;left:15px;background-color:transparent;background-repeat:no-repeat;border:none;cursor:pointer;overflow:hidden;outline:none;z-index:100001}.secondary[_ngcontent-%COMP%]   app-icon[_ngcontent-%COMP%]{color:#000}.continueBtn[_ngcontent-%COMP%]{align-items:center;background-color:#0a8250;border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--e-button-font-size);justify-content:space-between;line-height:1.2em;min-height:var(--e-button-min-height);transition:background-color .3s ease;width:100%;text-decoration:none!important}.continueBtn[_ngcontent-%COMP%]:hover{background-color:#2b5033}.continueBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;flex-grow:1;text-align:center;line-height:25px;color:#fff!important;font-size:1rem}.center-align[_ngcontent-%COMP%]{align-items:center}img[_ngcontent-%COMP%]{width:24px;height:24px;vertical-align:middle;margin-right:8px;align-self:center}"]})}}return L})()},26044:(ut,tt,r)=>{r.d(tt,{E:()=>O});var h=r(13054),u=r(35722),i=r(95769),c=r.n(i),t=r(11201),s=r(88025),k=r(25662),o=r(3390),F=r(29394),n=r(55902),a=r(54348),e=r(84178),E=r(53786);function b(x,V){if(1&x){const G=t.RV6();t.j41(0,"fieldset")(1,"legend",12),t.nrm(2,"span",13),t.j41(3,"span",14),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.j41(6,"div",6)(7,"div",15)(8,"p",16),t.EFF(9),t.nI1(10,"translate"),t.k0s()()(),t.j41(11,"div",10)(12,"div",3)(13,"app-radio-button",17),t.bIt("onChange",function(){t.eBV(G);const B=t.XpG();return t.Njj(B.toggleAllButton())}),t.k0s()()()()}if(2&x){const G=t.XpG();t.R7$(4),t.SpI(" ",t.bMT(5,5,"ONBOARDING.TCECI.PREFERENCES.P5_HEAD"),"* "),t.R7$(5),t.SpI(" ",t.bMT(10,7,"ONBOARDING.TCECI.PREFERENCES.P5_TEXT")," "),t.R7$(4),t.Y8G("name",G.tgss_checkName)("form",null==G.form?null:G.form.get("additional_data").get("tgss_check"))("className","radio-inline pl-4")}}let O=(()=>{class x{constructor(G,K,B,j,P){this.route=G,this.router=K,this.formsService=B,this._storageService=j,this.titleService=P,this.yesToAllName="yesToAll",this.customCommsName="customComms",this.thirdPartyProductsName="thirdPartyProducts",this.eciEnvName="eciEnv",this.thirdPartyEnvName="thirdPartyEnv",this.tgss_checkName="tgss_check",this.authorized=!!this._storageService.getItem("authorized"),this.professional=!!this._storageService.getItem("professional"),this.yesToAllData=[{value:"S",text:"ONBOARDING.TCECI.PREFERENCES.YES_TO_ALL"}],this.yesToAll=new h.hs("N"),this.route.data.subscribe(L=>{this.form=L.form,this.module=L.module,this.localForm=new h.J3({"ADIC-CHECKCOMUNICA":new h.hs(null,[u.y]),"ADIC-CHECKPERFIL":new h.hs(null,[u.y])})})}ngOnInit(){this.titleService.setTitleFromTranslation("PAGE_TITLES.PREFERENCES")}acceptAll(){this.yesToAll.setValue("S"),this.form?.get("additional_data").get("comercial_check").setValue("S"),this.professional||this.form?.get("additional_data").get("tgss_check").setValue("S"),this.form?.get("additional_data").get("share_check").setValue("S"),this.localForm?.get("ADIC-CHECKCOMUNICA").setValue("S"),this.localForm?.get("ADIC-CHECKPERFIL").setValue("S")}markAllAsTouched(){this.form?.get("additional_data").get("comercial_check").markAsTouched(),this.localForm?.get("ADIC-CHECKCOMUNICA").markAsTouched(),this.form?.get("additional_data").get("share_check").markAsTouched(),this.localForm?.get("ADIC-CHECKPERFIL").markAsTouched(),this.professional||this.form?.get("additional_data").get("tgss_check").markAsTouched()}toggleAllButton(){("N"==this.form?.get("additional_data").get("comercial_check").value||this.professional||"N"==this.form?.get("additional_data").get("tgss_check").value||"N"==this.form?.get("additional_data").get("share_check").value||"N"==this.localForm?.get("ADIC-CHECKCOMUNICA").value||"N"==this.localForm?.get("ADIC-CHECKPERFIL").value)&&this.yesToAll.setValue("N"),"S"==this.form?.get("additional_data").get("comercial_check").value&&(this.professional||"S"==this.form?.get("additional_data").get("tgss_check").value)&&"S"==this.form?.get("additional_data").get("share_check").value&&"S"==this.localForm?.get("ADIC-CHECKCOMUNICA").value&&"S"==this.localForm?.get("ADIC-CHECKPERFIL").value&&this.yesToAll.setValue("S")}back(){return this.authorized?["/wizard/step3/other-data2"]:["/wizard/step4/way-to-pay-options"]}formValid(){return this.localForm?.get("ADIC-CHECKCOMUNICA").valid&&this.form?.get("additional_data").get("comercial_check").valid&&this.form?.get("additional_data").get("share_check").valid&&this.localForm?.get("ADIC-CHECKPERFIL").valid&&(!!this.professional||this.form?.get("additional_data").get("tgss_check").valid)}next(){if(this.markAllAsTouched(),this.formValid()){this.form.value.request_data.pre_status="07";const G=c().cloneDeep(this.form.value);
1c().forEach(this.localForm.value,(K,B)=>{G.additional_info.push({property_id:B,value:K})}),this.formsService.updateCRM(G).subscribe(()=>{this.router.navigate(["/wizard/step5/request-in-process"])},K=>{console.error(K)})}else this.focusFirstInvalidElement()}focusFirstInvalidElement(){const G=document.querySelector("input.ng-invalid");G&&(G.focus(),G.scrollIntoView({behavior:"smooth",block:"center"}))}static{this.\u0275fac=function(K){return new(K||x)(t.rXU(s.nX),t.rXU(s.Ix),t.rXU(k.f),t.rXU(o.n),t.rXU(F.E))}}static{this.\u0275cmp=t.VBU({type:x,selectors:[["app-preferences"]],decls:92,vars:66,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row","mb-3","d-lg-none"],[1,"col","pl-3","pl-xl-0"],["tabindex","0",1,"btn-back","secondary",3,"routerLink"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","arrow-left","width","24px","height","24px",1,"float-left"],[1,"row"],[1,"col","pl-3","pl-xl-0","spacer-bottom-low","right-align"],[1,"legend-text"],[1,"col","pl-3","pl-xl-0","spacer-bottom-lowest","d-block"],[1,"row","spacer-bottom-low"],[3,"onChange","className","name","form","data"],[1,"legend-with-dash"],[1,"dash"],[1,"title"],[1,"col","pl-3","pl-xl-0","spacer-bottom-lowest"],[1,"pl-4","mb-0"],[3,"onChange","name","form","className"],[1,"pl-4","mb-0",3,"innerHTML"],[1,"row","spacer-both-high","d-flex","justify-content-center"],["tabindex","0","routerLink","/wizard/step4/way-to-pay-options",1,"returnBtn","d-none","d-lg-flex"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-left","width","24px","height","24px",1,"float-left"],[1,"d-flex","justify-content-center","justify-content-lg-start",3,"clicked"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"]],template:function(K,B){1&K&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),t.nI1(5,"translate"),t.nrm(6,"app-icon",5),t.k0s()()(),t.j41(7,"div",6)(8,"h1",3),t.EFF(9),t.nI1(10,"translate"),t.k0s()(),t.j41(11,"div",6)(12,"div",7)(13,"span"),t.EFF(14),t.nI1(15,"translate"),t.k0s()()(),t.j41(16,"fieldset")(17,"legend",8)(18,"span",9),t.EFF(19),t.nI1(20,"translate"),t.k0s()(),t.j41(21,"div",10)(22,"div",3)(23,"app-radio-button",11),t.bIt("onChange",function(){return B.acceptAll()}),t.k0s()()()(),t.j41(24,"fieldset")(25,"legend",12),t.nrm(26,"span",13),t.j41(27,"span",14),t.EFF(28),t.nI1(29,"translate"),t.k0s()(),t.j41(30,"div",6)(31,"div",15)(32,"p",16),t.EFF(33),t.nI1(34,"translate"),t.k0s()()(),t.j41(35,"div",10)(36,"div",3)(37,"app-radio-button",17),t.bIt("onChange",function(){return B.toggleAllButton()}),t.k0s()()()(),t.j41(38,"fieldset")(39,"legend",12),t.nrm(40,"span",13),t.j41(41,"span",14),t.EFF(42),t.nI1(43,"translate"),t.k0s()(),t.j41(44,"div",6)(45,"div",15)(46,"p",16),t.EFF(47),t.nI1(48,"translate"),t.k0s()()(),t.j41(49,"div",10)(50,"div",3)(51,"app-radio-button",17),t.bIt("onChange",function(){return B.toggleAllButton()}),t.k0s()()()(),t.DNE(52,b,14,9,"fieldset"),t.j41(53,"fieldset")(54,"legend",12),t.nrm(55,"span",13),t.j41(56,"span",14),t.EFF(57),t.nI1(58,"translate"),t.k0s()(),t.j41(59,"div",6)(60,"div",15),t.nrm(61,"p",18),t.nI1(62,"translate"),t.k0s()(),t.j41(63,"div",10)(64,"div",3)(65,"app-radio-button",17),t.bIt("onChange",function(){return B.toggleAllButton()}),t.k0s()()()(),t.j41(66,"fieldset")(67,"legend",12),t.nrm(68,"span",13),t.j41(69,"span",14),t.EFF(70),t.nI1(71,"translate"),t.k0s()(),t.j41(72,"div",6)(73,"div",15),t.nrm(74,"p",18),t.nI1(75,"translate"),t.k0s()(),t.j41(76,"div",6)(77,"div",3)(78,"app-radio-button",17),t.bIt("onChange",function(){return B.toggleAllButton()}),t.k0s()()()(),t.j41(79,"div",19)(80,"a",20),t.nI1(81,"translate"),t.j41(82,"span"),t.EFF(83),t.nI1(84,"translate"),t.nrm(85,"app-icon",21),t.k0s()(),t.j41(86,"app-button",22),t.nI1(87,"translate"),t.bIt("clicked",function(){return B.next()}),t.j41(88,"span"),t.EFF(89),t.nI1(90,"translate"),t.nrm(91,"app-icon",23),t.k0s()()()()()),2&K&&(t.R7$(4),t.Y8G("routerLink",B.back()),t.BMQ("aria-label",t.bMT(5,34,"ONBOARDING.COMMON.BACK_LABEL")),t.R7$(5),t.SpI(" ",t.bMT(10,36,"ONBOARDING.TCECI.PREFERENCES.HEAD")," "),t.R7$(5),t.SpI(" ",t.bMT(15,38,"ONBOARDING.ADDRESS.REQUIRED_FIELDS")," "),t.R7$(5),t.SpI(" ",t.bMT(20,40,"ONBOARDING.TCECI.PREFERENCES.SUB"),"* "),t.R7$(4),t.Y8G("className","radioMargins pl-4")("name",B.yesToAllName)("form",B.yesToAll)("data",B.yesToAllData),t.R7$(5),t.SpI(" ",t.bMT(29,42,"O
1NBOARDING.TCECI.PREFERENCES.P1_HEAD"),"* "),t.R7$(5),t.SpI(" ",t.bMT(34,44,"ONBOARDING.TCECI.PREFERENCES.P1_TEXT")," "),t.R7$(4),t.Y8G("name",B.customCommsName)("form",null==B.form?null:B.form.get("additional_data").get("comercial_check"))("className","radio-inline pl-4"),t.R7$(5),t.SpI(" ",t.bMT(43,46,"ONBOARDING.TCECI.PREFERENCES.P2_HEAD"),"* "),t.R7$(5),t.SpI(" ",t.bMT(48,48,"ONBOARDING.TCECI.PREFERENCES.P2_TEXT")," "),t.R7$(4),t.Y8G("name",B.thirdPartyProductsName)("form",null==B.localForm?null:B.localForm.get("ADIC-CHECKCOMUNICA"))("className","radio-inline pl-4"),t.R7$(),t.vxM(52,B.professional?-1:52),t.R7$(5),t.SpI(" ",t.bMT(58,50,"ONBOARDING.TCECI.PREFERENCES.P3_HEAD"),"* "),t.R7$(4),t.Y8G("innerHTML",t.bMT(62,52,"ONBOARDING.TCECI.PREFERENCES.P3_TEXT"),t.npT),t.R7$(4),t.Y8G("name",B.eciEnvName)("form",null==B.form?null:B.form.get("additional_data").get("share_check"))("className","radio-inline pl-4"),t.R7$(5),t.SpI(" ",t.bMT(71,54,"ONBOARDING.TCECI.PREFERENCES.P4_HEAD"),"* "),t.R7$(4),t.Y8G("innerHTML",t.bMT(75,56,"ONBOARDING.TCECI.PREFERENCES.P4_TEXT"),t.npT),t.R7$(4),t.Y8G("name",B.thirdPartyEnvName)("form",null==B.localForm?null:B.localForm.get("ADIC-CHECKPERFIL"))("className","radio-inline pl-4"),t.R7$(2),t.BMQ("aria-label",t.bMT(81,58,"ONBOARDING.COMMON.BACK_LABEL")),t.R7$(3),t.SpI(" ",t.bMT(84,60,"ONBOARDING.COMMON.BACK")," "),t.R7$(3),t.BMQ("aria-label",t.bMT(87,62,"ONBOARDING.COMMON.CONTINUE_LABEL")),t.R7$(3),t.SpI(" ",t.bMT(90,64,"ONBOARDING.COMMON.CONTINUE")," "))},dependencies:[s.Wk,n.Qp,a.R,e.d,E.D9],styles:[".dash[_ngcontent-%COMP%]{position:relative;background-color:#0a8250;height:3px;width:2%;top:13px;left:3px;margin-right:2%}.title[_ngcontent-%COMP%]{font-weight:700;position:relative;left:2%}.margin[_ngcontent-%COMP%]{position:relative;left:4%}legend[_ngcontent-%COMP%]{float:left;width:100%}legend.legend-text[_ngcontent-%COMP%]{padding-left:0;margin-bottom:0}legend.legend-text[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block}legend.legend-with-dash[_ngcontent-%COMP%]{display:flex;align-items:flex-start;margin-bottom:.5rem}legend.legend-with-dash[_ngcontent-%COMP%]   .dash[_ngcontent-%COMP%]{display:inline-block;flex-shrink:0}legend.legend-with-dash[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{display:inline-block;position:static;margin-bottom:0;font-size:1.25rem;font-weight:700}.secondary[_ngcontent-%COMP%]{position:fixed;top:13px;left:15px;background-color:transparent;background-repeat:no-repeat;border:none;cursor:pointer;overflow:hidden;outline:none;z-index:100001}.secondary[_ngcontent-%COMP%]   app-icon[_ngcontent-%COMP%]{color:#000}.continueBtn[_ngcontent-%COMP%]{align-items:center;background-color:#0a8250;border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--e-button-font-size);justify-content:space-between;line-height:1.2em;min-height:var(--e-button-min-height);transition:background-color .3s ease;width:100%;text-decoration:none!important}.continueBtn[_ngcontent-%COMP%]:hover{background-color:#2b5033}.continueBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;flex-grow:1;text-align:center;line-height:25px;color:#fff!important;font-size:1rem}.returnBtn[_ngcontent-%COMP%]{background-color:#fff;box-shadow:inset 0 0 0 .0625rem #0a8250;max-width:var(--e-button-max-width);border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;text-decoration:none!important;justify-content:center;align-items:center;display:flex;margin-right:1rem}.returnBtn[_ngcontent-%COMP%]:hover{background-color:#0a8250}.returnBtn[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%]{color:#fff}.returnBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#0a8250;font-size:var(--e-button-font-size)}.right-align[_ngcontent-%COMP%]{text-align:right}.right-align[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#333}"]})}}return x})()},44964:(ut,tt,r)=>{r.d(tt,{z:()=>s});var h=r(11201),u=r(88025),i=r(25662),c=r(3390),t=r(58156);let s=(()=>{class k{constructor(F,n,a,e){this.router=F,this.formsService=n,this.route=a,this._storageService=e,this.professional=!!this._storageService.getItem("professional"),this.spinnerResolved=!1,this.route.data.subscribe(E=>{this.form=E.form})}ngOnInit(){setTimeout(()=>{this.next()},5e3)}continue(){this.form.value.request_data.pre_status="23",this.formsService.updateCRM(this.form.value).subscribe(F=>{this.spinnerResolved=!0,clearInterval(this.interval),this.router.navigate(["/wizard/step5/credit-limits"])})}next(){this.interval=setInterval(()=>{this.formsService.getCRMState(null,!1).subscribe(F=>{"23"==F.request_data.pre_status||"24"==F.request_data.pre_status?(this.spinnerResolved=!0,clearInterval(this.interval),this.router.navigate(["/wizard/step5/credit-limits"])):"26"==F.request_data.pre_status?(this.spinnerResolved=!0,clearInterval(this.interval),this.router.navigate(["/wizard/step5/pending-request"])):"49"==F.request_data.pre_status&&(this.spinnerResolved=!0,clearInterval(this.interval),this.router.navigate(["/wizard/tceci/sorry"]))})},7e3)}ngOnDestroy(){clearInterval(this.interval)}static{this.\u0275fac=function(n){return new(n||k)(h.rXU(u.Ix),h.rXU(i.f),h.rXU(u.nX),h.rXU(c.n))}}static{this.\u0275cmp=h.VBU({type:k,selectors:[["app-request-in-process"]],decls:1,vars:4,consts:[[3,"display","backdrop","resolution","resolved"]],template:function(n,a){1&n&&h.nrm(0,"app-spinner",0),2&n&&h.Y8G("display",!0)("backdrop",!1)("resolution",!0)("resolved",a.spinnerResolved)},dependencies:[t.t],styles:['@charset "UTF-8";.loading[_ngcontent-%COMP%]{color:#000;font-size:2rem;line-height:2.5rem;font-weight:400;font-style:normal}.loading[_ngcontent-%COMP%]:after{overflow:hidden;display:inline-block;vertical-align:bottom;animation:_ngcontent-%COMP%_ellipsis steps(4,end) 2s infinite;content:"\\2026";width:0px}.position-button[_ngcontent-%COMP%]{position:absolute;top:20px;right:20px}@keyframes _ngcontent-%COMP%_ellipsis{to{width:1em}}img[_ngcontent-%COMP%]{display:flex;width:80%;margin:0 auto}.main[_ngcontent-%COMP%]{background:#fff!important}']})}}return k})()},32388:(ut,tt,r)=>{r.d(tt,{h:()=>n});
1var h=r(95769),u=r.n(h),i=r(11201),c=r(88025),t=r(2080),s=r(49344),k=r(3390),o=r(43982),F=r(53786);let n=(()=>{class a{constructor(E,b,O,x,V,G){this.router=E,this.clientService=b,this.logaltyService=O,this.route=x,this._storageService=V,this.environmentService=G}ngOnInit(){this.route.data.subscribe(E=>{this.module=E.module,this.form=E.form,E.content&&(this.data=E.content),this.next()})}next(){this.clientService.getIdClient().subscribe(E=>{this._storageService.setItem("id_client",E.id_customer);const b="tceci"===this.module?`${this.environmentService.envVariables.api_url}/tceci/logalty/feedback`:`${this.environmentService.envVariables.api_url}/logalty/feedback`,O=this.form.get("additional_info").value.find(V=>"H-CONTRATO_TC"===V.property_id);this._storageService.setItem("H-CONTRATO_TC",O.value);const x=u().find(this.form.value.additional_info,V=>"H-EMPLEADO"===V.property_id);this.logaltyService.getStatusLogalty(this.form.value.request_data.request_type,x).subscribe(V=>{"OK"==V.status&&"CLOSED"===V.tel_state?this.router.navigate("tceci"===this.module?["/wizard/tceci/logalty/feedback"]:["wizard/step5/logalty/feedback"]):this.getSaml(b)},V=>{"404"==V.status?this.getSaml(b):this.router.navigate(["/wizard/error/general"])})})}getSaml(E){const b=u().find(this.form.value.additional_info,O=>"H-EMPLEADO"===O.property_id);this.logaltyService.getSamlLogaltyMigration(E,{type:this.form.value.request_data.request_type,language:this.form.value.personal_data.language_code},b).subscribe(O=>{this._storageService.setItem("saml",this.logaltyService.encodeLogaltySAML(O.saml)),this.logaltyService.logaltyPOST(O.saml)},()=>{this.router.navigate(["/wizard/error/500"])})}static{this.\u0275fac=function(b){return new(b||a)(i.rXU(c.Ix),i.rXU(t.X),i.rXU(s.Y),i.rXU(c.nX),i.rXU(k.n),i.rXU(o.v))}}static{this.\u0275cmp=i.VBU({type:a,selectors:[["app-signing-with-logalty"]],decls:19,vars:9,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],[1,"col","pl-3","pl-xl-0"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium"],[1,"row","spacer-bottom-medium"],["src","assets/img/onboarding-card/feci-to-logalty.png","alt","",1,"img-logo"]],template:function(b,O){1&b&&(i.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),i.EFF(4),i.nI1(5,"translate"),i.k0s()(),i.j41(6,"div",2)(7,"div",4)(8,"span"),i.EFF(9),i.nI1(10,"translate"),i.k0s()()(),i.j41(11,"div",5)(12,"div",3),i.nrm(13,"img",6),i.k0s()(),i.j41(14,"div",2)(15,"div",3)(16,"span"),i.EFF(17),i.nI1(18,"translate"),i.k0s()()()()()),2&b&&(i.R7$(4),i.SpI(" ",i.bMT(5,3,"ONBOARDING.TCECI.SIGNING_LOGALTY.HEAD")," "),i.R7$(5),i.SpI(" ",i.bMT(10,5,"ONBOARDING.TCECI.SIGNING_LOGALTY.SUB")," "),i.R7$(8),i.SpI(" ",i.bMT(18,7,"ONBOARDING.TCECI.SIGNING_LOGALTY.FOOTER")," "))},dependencies:[F.D9]})}}return a})()},86487:(ut,tt,r)=>{r.d(tt,{l:()=>wt});var h=r(73652),u=r(90220),i=r(88025),c=r(84692),t=r(43064),s=r(49230),k=r(56680),o=r(26044),F=r(44964),n=r(32388),a=r(11201),e=r(54348),E=r(53786);let b=(()=>{class nt{constructor(){}static{this.\u0275fac=function(q){return new(q||nt)}}static{this.\u0275cmp=a.VBU({type:nt,selectors:[["app-sorry"]],decls:46,vars:30,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],[1,"col","pl-3","pl-xl-0"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium"],[1,"row","spacer-bottom-low"],[1,"col-auto","d-flex","arrow"],[1,"arrow-right"],[1,"col"],[1,"mb-0"],[1,"row","spacer-top-high","spacer-bottom-low"],["tabindex","0","routerLink","/wizard/tceci/way-to-pay",1,"continueBtn","d-none","d-lg-flex"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"]],template:function(q,st){1&q&&(a.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),a.EFF(4),a.nI1(5,"translate"),a.k0s()(),a.j41(6,"div",2)(7,"div",4)(8,"span"),a.EFF(9),a.nI1(10,"translate"),a.k0s()()(),a.j41(11,"div",5)(12,"div",6),a.nrm(13,"div",7),a.k0s(),a.j41(14,"div",8)(15,"p",9),a.EFF(16),a.nI1(17,"translate"),a.k0s()()(),a.j41(18,"div",5)(19,"div",3)(20,"ul")(21,"li")(22,"span"),a.EFF(23),a.nI1(24,"translate"),a.k0s()(),a.j41(25,"li"),a.EFF(26),a.nI1(27,"translate"),a.k0s(),a.j41(28,"li"),a.EFF(29),a.nI1(30,"translate"),a.k0s()()()(),a.j41(31,"div",2)(32,"div",3)(33,"span"),a.EFF(34),a.nI1(35,"translate"),a.nrm(36,"br"),a.EFF(37),a.nI1(38,"translate"),a.k0s()()(),a.j41(39,"div",10)(40,"a",11),a.nI1(41,"translate"),a.j41(42,"span"),a.EFF(43),a.nI1(44,"translate"),a.nrm(45,"app-icon",12),a.k0s()()()()()),2&q&&(a.R7$(4),a.SpI(" ",a.bMT(5,10,"ONBOARDING.TCECI.SORRY.HEAD")," "),a.R7$(5),a.SpI(" ",a.bMT(10,12,"ONBOARDING.TCECI.SORRY.SORRY_TEXT")," "),a.R7$(7),a.SpI(" ",a.bMT(17,14,"ONBOARDING.TCECI.SORRY.SORRY_MSG")," "),a.R7$(7),a.JRh(a.bMT(24,16,"ONBOARDING.TCECI.SORRY.SORRY_ADV_1")),a.R7$(3),a.JRh(a.bMT(27,18,"ONBOARDING.TCECI.SORRY.SORRY_ADV_2")),a.R7$(3),a.JRh(a.bMT(30,20,"ONBOARDING.TCECI.SORRY.SORRY_ADV_3")),a.R7$(5),a.SpI(" ",a.bMT(35,22,"ONBOARDING.TCECI.SORRY.SORRY_FOOTER_1"),""),a.R7$(3),a.SpI(" ",a.bMT(38,24,"ONBOARDING.TCECI.SORRY.SORRY_FOOTER_2")," "),a.R7$(3),a.BMQ("aria-label",a.bMT(41,26,"ONBOARDING.TCECI.SORRY.HIRE_LABEL")),a.R7$(3),a.SpI(" ",a.bMT(44,28,"ONBOARDING.TCECI.SORRY.HIRE")," "))},dependencies:[i.Wk,e.R,E.D9],styles:['@charset "UTF-8";.arrow[_ngcontent-%COMP%]{padding-top:5px;padding-right:5px!important}.arrow-right[_ngcontent-%COMP%]{width:0;height:0;border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:25px solid #0a8250}ul[_ngcontent-%COMP%]{list-style:none;padding-left:6rem}li[_ngcontent-%COMP%]{display:flex;align-items:center}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:before{content:"\\2022";color:#0a8250;font-size:25px;width:1em;margin-left:-1.6em}.continueBtn[_ngcontent-%COMP%]{align-items:center;background-color:#0a8250;border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;
1cursor:pointer;display:flex;font-size:var(--e-button-font-size);justify-content:space-between;line-height:1.2em;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;width:100%;text-decoration:none!important}.continueBtn[_ngcontent-%COMP%]:hover{background-color:#2b5033}.continueBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;flex-grow:1;text-align:center;line-height:25px;color:#fff!important;font-size:1rem}']})}}return nt})();var O=r(3390),x=r(43982),V=r(2621),G=r(29394),K=r(55902),B=r(87514);function j(nt,At){1&nt&&(a.j41(0,"h1",3),a.EFF(1),a.nI1(2,"translate"),a.k0s()),2&nt&&(a.R7$(),a.SpI(" ",a.bMT(2,1,"ONBOARDING.CONGRATULATIONS.CONGRATULATIONS")," "))}function P(nt,At){if(1&nt&&(a.j41(0,"h1",3),a.EFF(1),a.nI1(2,"translate"),a.nI1(3,"titlecase"),a.k0s()),2&nt){const et=a.XpG();a.R7$(),a.Lme(" ",a.bMT(2,2,"ONBOARDING.TCECI.TAKE_CARD.HEAD"),"",a.bMT(3,4,et.user)," ")}}function L(nt,At){1&nt&&(a.j41(0,"div",6)(1,"p"),a.EFF(2),a.nI1(3,"translate"),a.k0s()()),2&nt&&(a.R7$(2),a.SpI(" ",a.bMT(3,1,"ONBOARDING.TCECI.TAKE_CARD.SUB_NO_INSURANCE")," "))}function H(nt,At){1&nt&&(a.j41(0,"div",6)(1,"p"),a.EFF(2),a.nI1(3,"translate"),a.k0s()()),2&nt&&(a.R7$(2),a.SpI(" ",a.bMT(3,1,"ONBOARDING.TCECI.TAKE_CARD.SUB_INSURANCE")," "))}let N=(()=>{class nt{constructor(et,q,st,gt,Ct,xt){this._storageService=et,this.router=q,this.route=st,this.environmentService=gt,this.cookieSrv=Ct,this._titleService=xt,this.user="{{usuario}}",this.professional=!!this._storageService.getItem("professional"),this.insurance=!1,this.insurance="true"===this.route.snapshot.queryParamMap.get("insurance")}ngOnInit(){this.professional="true"===this._storageService.getItem("professional"),this._titleService.setTitleFromTranslation("PAGE_TITLES.TCECI_FINALIZAR")}finalize(){let et=this._storageService.getItem("access");this._storageService.clear(),this.cookieSrv.check("request_id")&&this.cookieSrv.delete("request_id"),this.professional?window.location.href=this.environmentService.envVariables.nexo:this.router.navigate("authorized"==et?["/dashboard/onboarding-authorized"]:"authorized-request"==et?["/dashboard/onboarding-authorized-request"]:["/dashboard/onboarding"])}static{this.\u0275fac=function(q){return new(q||nt)(a.rXU(O.n),a.rXU(i.Ix),a.rXU(i.nX),a.rXU(x.v),a.rXU(V.T),a.rXU(G.E))}}static{this.\u0275cmp=a.VBU({type:nt,selectors:[["app-take-your-card"]],decls:33,vars:21,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row","spacer-bottom-medium"],[1,"col","pl-3","pl-xl-0"],["src","./assets/img/onboarding-card/card/old_feci_tarjeta.png","alt","",1,"px-3"],[1,"row"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium"],[1,"col","pl-3","pl-xl-0","spacer-bottom-low"],[1,"row","spacer-bottom-low"],[1,"col","d-flex","align-items-center"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","shopping-cart","width","24px","height","24px"],[1,"mb-0","ml-4"],[1,"col-auto","d-flex","align-items-center"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","phone","width","24px","height","24px"],[1,"col-9","fixButton","pl-3","pl-md-0","d-flex","mb-5","justify-content-center","justify-content-lg-start",3,"clicked","disabled","variant","ariaLabel"]],template:function(q,st){1&q&&(a.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),a.nrm(4,"img",4),a.k0s()(),a.j41(5,"div",5),a.DNE(6,j,3,3,"h1",3)(7,P,4,6,"h1",3),a.k0s(),a.j41(8,"div",5),a.DNE(9,L,4,3,"div",6)(10,H,4,3,"div",6),a.k0s(),a.j41(11,"div",5)(12,"div",7)(13,"span"),a.EFF(14),a.nI1(15,"translate"),a.k0s()()(),a.j41(16,"div",8)(17,"div",9),a.nrm(18,"app-icon",10),a.j41(19,"p",11),a.EFF(20),a.nI1(21,"translate"),a.k0s()()(),a.j41(22,"div",8)(23,"div",12),a.nrm(24,"app-icon",13),a.j41(25,"p",11),a.EFF(26),a.nI1(27,"translate"),a.k0s()()(),a.j41(28,"div",5)(29,"app-button",14),a.nI1(30,"translate"),a.bIt("clicked",function(){return st.finalize()}),a.EFF(31),a.nI1(32,"translate"),a.k0s()()()()),2&q&&(a.R7$(6),a.vxM(6,st.professional?-1:6),a.R7$(),a.vxM(7,st.professional?7:-1),a.R7$(2),a.vxM(9,st.insurance?-1:9),a.R7$(),a.vxM(10,st.insurance?10:-1),a.R7$(4),a.SpI(" ",a.bMT(15,11,"ONBOARDING.TCECI.TAKE_CARD.TEXT"),""),a.R7$(6),a.SpI(" ",a.bMT(21,13,"ONBOARDING.TCECI.TAKE_CARD.LIST1")," "),a.R7$(6),a.SpI(" ",a.bMT(27,15,"ONBOARDING.TCECI.TAKE_CARD.LIST2")," "),a.R7$(3),a.Y8G("disabled",!1)("variant","primary")("ariaLabel",a.bMT(30,17,"ONBOARDING.COMMON.CONTINUE_FINALIZE_LABEL")),a.R7$(2),a.SpI(" ",a.bMT(32,19,"ONBOARDING.COMMON.FINALIZE")," "))},dependencies:[K.Qp,e.R,B.PV,E.D9],styles:[".text[_ngcontent-%COMP%]{display:flex;margin-top:2rem}.icon[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-right:13px;margin-left:10px}.list[_ngcontent-%COMP%]{display:contents}.my-4[_ngcontent-%COMP%]{margin-top:1.5rem!important;margin-bottom:5rem!important}.spacer[_ngcontent-%COMP%]{display:flex;margin-top:3rem}img[_ngcontent-%COMP%]{display:flex;width:65%}"]})}}return nt})();var $=r(25662),Z=r(70150);let pt=(()=>{class nt{constructor(et){this.formsService=et,this.states=[{step:"1",description:"Datos de contacto"},{step:"2",description:"Verifica tu identidad"},{step:"3",description:"Informaci\xf3n adicional"},{step:"4",description:"Configura tu Tarjeta"},{step:"5",description:"T\xe9rminos y condiciones"}]}static{this.\u0275fac=function(q){return new(q||nt)(a.rXU($.f))}}static{this.\u0275cmp=a.VBU({type:nt,selectors:[["app-tceci"]],decls:4,vars:1,consts:[[1,"container-wrap","scroll"],["status","5",3,"states"],[1,"main"]],template:function(q,st){1&q&&(a.j41(0,"div",0),a.nrm(1,"app-aside-menu",1),a.j41(2,"div",2),a.nrm(3,"router-outlet"),a.k0s()()),2&q&&(a.R7$(),a.Y8G("states",st.states))},dependencies:[i.n3,Z.d],styles:[".tceci[_ngcontent-%COMP%]{height:100%}.tceci-menu[_ngcontent-%COMP%]{background-color:#f0f8ee;padding:80px}"]})}}return nt})();var rt=r(95769),at=r.n(rt),U=r(13054),X=r(3832),Y=r(95969),I=r(48678),D=r(27188),w=r(18162),J=r(31084),Q=r(7637);function dt(nt,At){1&nt&&(a.j41(0,"div",19)(1,"span"),a.EFF(2),a.nI1(3,"translate"),a.k0s()()),2&nt&&(a.R7$(2),a.SpI(" ",a.bMT(3,1,"ONBOARDING.COMMON.TRY_AGAIN_LATER")," "))}let Ot=(()=>{class nt{constructor(et,q,st,gt,Ct,xt,Pt){this.formsService=et,this.router=q,this.route=st,this.pdfService=gt,this.modalService=Ct,this._storageService=xt,this.titleService=Pt,this.checkbox={name:"acepto",label:"acepto",text:"",checked:!1}
1,this.eciLimit=0,this.totalLimit=0,this.maxRetries=0,this.formLocal=new U.hs(null,[X.q]),this.professional=!!this._storageService.getItem("professional"),this.route.data.subscribe(Ft=>{this.form=Ft.form,this.module=Ft.module,this.eciLimit=parseInt(at().find(this.form.value.additional_info,St=>"BANK-IMP_LIM_CONC"===St.property_id).value),this.totalLimit=this.eciLimit}),this.titleService.setTitleFromTranslation("PAGE_TITLES.WAY_TO_PAY_OPTIONS")}setCheckBoxData(et){}markAllAsTouched(){this.formLocal.markAsTouched()}getINE(){if(this.form){const et=at().find(this.form.value.additional_info,st=>"H-ENDOSO_INE"===st.property_id),q=at().find(this.form.value.additional_info,st=>"H-TDOC_ENDINE"===st.property_id);et?this.pdfService.getDocumentINE(et.value,q.value):(this.state="ERROR",this.openModal("noOwnershipDialog"))}else this.state="ERROR",this.openModal("noOwnershipDialog")}getRequest(){if(this.form){const et=at().find(this.form.value.additional_info,q=>"H-TDOC_END"===q.property_id);this.pdfService.getDocumentRequest(this.form.value.request_data.endoso,et.value)}else this.state="ERROR",this.openModal("noOwnershipDialog")}next(){if(this.markAllAsTouched(),this.formLocal.valid){this.form.get("bank_data").get("payment_method").setValue("1");const et=at().cloneDeep(this.form.value);this.changePropertyValue(et.additional_info,"BANK-TIPOPAGO2","1"),this.changePropertyValue(et.additional_info,"ADIC-CHECKINE","S"),this.changePropertyValue(et.additional_info,"BANK-CANTIDAD2",""),this.changePropertyValue(et.additional_info,"H-ZSOL_PRODUCTO_C","01"),this.changePropertyValue(et.additional_info,"H-ZSOL_PRODUCTO_O","02"),this.changePropertyValue(et.additional_info,"H-ZSOL_SUBPROD_C","0001"),this.changePropertyValue(et.additional_info,"H-ZSOL_SUBPROD_O","0001"),et.bank_data.amount="",et.request_data.pre_status="51",this.formsService.updateCRM(et).subscribe(()=>{this.getStatusCRM(et)},q=>{console.error(q)})}else(0,I.K)()}getStatusCRM(et){this.formsService.getCRMState().subscribe(q=>{if(this.maxRetries++,"52"==q.request_data.pre_status)this.router.navigate("S"==et.request_data.activation?["/wizard/tceci/contract-signing"]:["/wizard/tceci/manual-card"]);else{if(!(this.maxRetries<=5))throw(0,Y.$)("max retries");setTimeout(()=>{this.getStatusCRM(et)},3e3)}})}modalResponse(et,q){this.modalService.closeModal(q)}closeModal(){this.modalService.closeModal("noOwnershipDialog")}openModal(et){this.modalService.openModal(et)}changePropertyValue(et,q,st){et.find(gt=>gt.property_id==q)?et.map(function(gt){gt.property_id==q&&(gt.value=st)}):et.push({property_id:q,value:st})}static{this.\u0275fac=function(q){return new(q||nt)(a.rXU($.f),a.rXU(i.Ix),a.rXU(i.nX),a.rXU(D.s),a.rXU(w.B),a.rXU(O.n),a.rXU(G.E))}}static{this.\u0275cmp=a.VBU({type:nt,selectors:[["app-way-to-pay"]],decls:70,vars:65,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],[1,"col","pl-3","pl-xl-0"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium"],[1,"col","card"],[1,"col-6","d-flex","justify-content-start"],[1,"col-6","d-flex","justify-content-end"],[1,"col-8"],[1,"col-12"],[1,"row","mb-item"],[1,"d-flex","justify-content-end"],[3,"onCheckedChange","form","data"],[1,"col","pl-0"],["variant","plain","addClass","link-text-plain",3,"clicked"],[1,"row","spacer-both-high","d-flex","justify-content-center"],[1,"col","d-flex","justify-content-center","justify-content-lg-start",3,"clicked","variant"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"],["id","noOwnershipDialog",3,"cancel","outside","cancelLabel","headline","dismissible","error"],[1,"pl-1","col-12"]],template:function(q,st){1&q&&(a.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),a.EFF(4),a.nI1(5,"translate"),a.k0s()(),a.j41(6,"div",2)(7,"div",4)(8,"span"),a.EFF(9),a.nI1(10,"translate"),a.k0s()()(),a.j41(11,"div",5)(12,"div",2)(13,"div",6)(14,"h2"),a.EFF(15),a.nI1(16,"translate"),a.k0s()(),a.j41(17,"div",7)(18,"h2"),a.EFF(19),a.nI1(20,"translate"),a.k0s()()(),a.j41(21,"div",2)(22,"p",8),a.EFF(23),a.nI1(24,"translate"),a.k0s()(),a.j41(25,"div",2)(26,"div",9),a.nrm(27,"hr"),a.k0s()(),a.j41(28,"div",2)(29,"div",6)(30,"h2"),a.EFF(31),a.nI1(32,"translate"),a.k0s()(),a.j41(33,"div",7)(34,"h2"),a.EFF(35),a.nI1(36,"number"),a.k0s()()(),a.j41(37,"div",10)(38,"p",8),a.EFF(39),a.nI1(40,"translate"),a.k0s()()(),a.j41(41,"div",11)(42,"span"),a.EFF(43),a.nI1(44,"translate"),a.k0s()(),a.j41(45,"app-checkbox",12),a.bIt("onCheckedChange",function(Ct){return st.setCheckBoxData(Ct)}),a.j41(46,"p",13),a.EFF(47),a.nI1(48,"translate"),a.j41(49,"app-button",14),a.nI1(50,"translate"),a.bIt("clicked",function(){return st.getINE()}),a.EFF(51),a.nI1(52,"translate"),a.k0s(),a.EFF(53),a.nI1(54,"translate"),a.j41(55,"app-button",14),a.nI1(56,"translate"),a.bIt("clicked",function(){return st.getRequest
1()}),a.EFF(57),a.nI1(58,"translate"),a.k0s(),a.EFF(59," * "),a.k0s()(),a.j41(60,"div",15)(61,"app-button",16),a.nI1(62,"translate"),a.bIt("clicked",function(){return st.next()}),a.EFF(63),a.nI1(64,"translate"),a.nrm(65,"app-icon",17),a.k0s()()()(),a.j41(66,"app-dialog",18),a.nI1(67,"translate"),a.nI1(68,"translate"),a.bIt("cancel",function(Ct){return st.modalResponse(Ct,"noOwnershipDialog")})("outside",function(){return null}),a.DNE(69,dt,4,3,"div",19),a.k0s()),2&q&&(a.R7$(4),a.SpI(" ",a.bMT(5,25,"ONBOARDING.TCECI.WAY_TO_PAY.HEAD")," "),a.R7$(5),a.SpI(" ",a.bMT(10,27,"ONBOARDING.TCECI.WAY_TO_PAY.TEXT")," "),a.R7$(6),a.SpI(" ",a.bMT(16,29,"ONBOARDING.TCECI.WAY_TO_PAY.WAY_TO_PAY")," "),a.R7$(4),a.SpI(" ",a.bMT(20,31,"ONBOARDING.TCECI.WAY_TO_PAY.PERIOD")," "),a.R7$(4),a.SpI(" ",a.bMT(24,33,"ONBOARDING.TCECI.WAY_TO_PAY.TEXT_")," "),a.R7$(8),a.SpI(" ",a.bMT(32,35,"ONBOARDING.TCECI.WAY_TO_PAY.LIMIT")," "),a.R7$(4),a.SpI("",a.brH(36,37,st.totalLimit,"","es-ES"),"\u20ac"),a.R7$(4),a.SpI(" ",a.bMT(40,41,"ONBOARDING.TCECI.WAY_TO_PAY.LIMIT_TEXT")," "),a.R7$(4),a.JRh(a.bMT(44,43,"ONBOARDING.ADDRESS.REQUIRED_FIELDS")),a.R7$(2),a.Y8G("form",st.formLocal)("data",st.checkbox),a.R7$(2),a.SpI(" ",a.bMT(48,45,"ONBOARDING.TCECI.WAY_TO_PAY.CHECK_1")," "),a.R7$(2),a.BMQ("aria-label",a.bMT(50,47,"ONBOARDING.TCECI.WAY_TO_PAY.CHECK_2_LABEL")),a.R7$(2),a.SpI(" ",a.bMT(52,49,"ONBOARDING.TCECI.WAY_TO_PAY.CHECK_2")," "),a.R7$(2),a.SpI(" ",a.bMT(54,51,"ONBOARDING.TCECI.WAY_TO_PAY.CHECK_3")," "),a.R7$(2),a.BMQ("aria-label",a.bMT(56,53,"ONBOARDING.TCECI.WAY_TO_PAY.CHECK_4_LABEL")),a.R7$(2),a.SpI("",a.bMT(58,55,"ONBOARDING.TCECI.WAY_TO_PAY.CHECK_4")," "),a.R7$(4),a.Y8G("variant","primary"),a.BMQ("aria-label",a.bMT(62,57,"ONBOARDING.COMMON.CONTINUE_LABEL")),a.R7$(2),a.SpI(" ",a.bMT(64,59,"ONBOARDING.COMMON.CONTINUE")," "),a.R7$(3),a.FS9("cancelLabel",a.bMT(67,61,"ONBOARDING.COMMON.CLOSE")),a.FS9("headline",a.bMT(68,63,"ONBOARDING.COMMON.NO_DOCUMENT")),a.Y8G("dismissible",!1)("error",!0),a.R7$(3),a.vxM(69,"ERROR"===st.state?69:-1))},dependencies:[K.Qp,J.P,Q.m,e.R,B.QX,E.D9],styles:["[_nghost-%COMP%]   h1[_ngcontent-%COMP%]{margin-bottom:0}[_nghost-%COMP%]   h2[_ngcontent-%COMP%], [_nghost-%COMP%]   p[_ngcontent-%COMP%]{margin-bottom:0}[_nghost-%COMP%]   .mb-item[_ngcontent-%COMP%]{margin-bottom:40px}[_nghost-%COMP%]   .card[_ngcontent-%COMP%]{max-width:566px;padding:35px 56px 6px 40px;border-radius:10px;border-color:#182433;margin-bottom:50px}[_nghost-%COMP%]   hr[_ngcontent-%COMP%]{margin-top:35px;margin-bottom:35px;width:100%;border-top:#8c8c8c solid 1px}@media screen and (max-width: 992px){[_nghost-%COMP%]   .card[_ngcontent-%COMP%]{padding:35px 20px 6px}[_nghost-%COMP%]   .card[_ngcontent-%COMP%]   .ml-4[_ngcontent-%COMP%]{margin-left:0!important}}.infoMsg[_ngcontent-%COMP%]{top:14px;line-height:20px}.limits[_ngcontent-%COMP%]{font-size:14px;display:flex}.amount[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-end;align-content:center}app-icon[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center}.spacer[_ngcontent-%COMP%]{margin-top:4rem!important}h2[_ngcontent-%COMP%]{margin:0 0 8px;font-size:26px;font-weight:500;line-height:1.2}"]})}}return nt})();var bt=r(91748),Tt=r(62264),Rt=r(57928),Dt=r(82744);let Mt=(()=>{class nt{constructor(et){this.environmentService=et}finalize(){window.location.href=this.environmentService.envVariables.url_financiera}static{this.\u0275fac=function(q){return new(q||nt)(a.rXU(x.v))}}static{this.\u0275cmp=a.VBU({type:nt,selectors:[["app-finalize-in-eci"]],decls:43,vars:35,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],[1,"col","pl-3","pl-xl-0"],[1,"col-xl-10","col-xs-12","pl-3","pl-xl-0","spacer-bottom-low"],[1,"col-xl-10","col-xs-12","pl-3","pl-xl-0"],[3,"innerHTML"],[1,"col","pl-3","pl-xl-0","space"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","headphones","width","48px","height","48px"],["href","tel:+34913779779"],[1,"col","pl-3","pl-xl-0","spacer-bottom-low"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","web","width","48px","height","48px"],["href","https://cuenta.elcorteingles.es/citas/","target","_blank",1,"no"],[1,"row","spacer-top-high","spacer-bottom-low"],[1,"col-9","fixButton","pl-3","pl-md-0","d-flex","justify-content-center","justify-content-lg-start",3,"clicked","disabled","variant"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"]],template:function(q,st){1&q&&(a.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),a.EFF(4),a.nI1(5,"translate"),a.k0s()(),a.j41(6,"div",2)(7,"div",4)(8,"span"),a.EFF(9),a.nI1(10,"translate"),a.k0s()()(),a.j41(11,"div",2)(12,"div",5),a.nrm(13,"span",6),a.nI1(14,"translate"),a.k0s()(),a.j41(15,"div",2)(16,"div",7),a.nrm(17,"app-icon",8),a.j41(18,"span"),a.EFF(19),a.nI1(20,"translate"),a.j41(21,"a",9),a.nI1(22,"translate"),a.EFF(23),a.nI1(24,"translate"),a.k0s()()()(),a.j41(25,"div",2)(26,"div",10),a.nrm(27,"app-icon",11),a.j41(28,"span"),a.EFF(29),a.nI1(30,"translate"),a.k0s(),a.j41(31,"a",12),a.nI1(32,"translate"),a.EFF(33),a.nI1(34,"translate"),a.k0s(),a.j41(35,"span"),a.EFF(36),a.nI1(37,"translate"),a.k0s()()(),a.j41(38,"div",13)(39,"app-button",14),a.bIt("clicked",function(){return st.finalize()}),a.EFF(40),a.nI1(41,"translate"),a.nrm(42,"app-icon",15),a.k0s()()()()),2&q&&(a.R7$(4),a.SpI(" ",a.bMT(5,13,"ONBOARDING.TCECI.FINALIZE_ECI.HEAD")," "),a.R7$(5),a.SpI(" ",a.bMT(10,15,"ONBOARDING.TCECI.FINALIZE_ECI.SUBMENU_TECI")," "),a.R7$(4),a.Y8G("innerHTML",a.bMT(14,17,"ONBOARDING.TCECI.FINALIZE_ECI.CONTINUE_ECI"),a.npT),a.R7$(6),a.SpI(" ",a.bMT(20,19,"ONBOARDING.TCECI.FINALIZE_ECI.PHONE")," "),a.R7$(2),a.BMQ("aria-label",a.bMT(22,21,"ONBOARDING.TCECI.FINALIZE_ECI.PHONE_NUMBER_LABEL")),a.R7$(2),a.JRh(a.bMT(24,23,"ONBOARDING.TCECI.FINALIZE_ECI.PHONE_NUMBER")),a.R7$(6),a.SpI(" ",a.bMT(30,25,"ONBOARDING.TCECI.FINALIZE_ECI.WEB"),""),a.R7$(2),a.BMQ("aria-label",a.bMT(32,27,"ONBOARDING.TCECI.FINALIZE_ECI.WEB_LINK_BLANK")),a.R7$(2),a.JRh(a.bMT(34,29,"ONBOARDING.TCECI.FINALIZE_ECI.WEB_LINK")),a.R7$(3),a.SpI(" ",a.bMT(37,31,"ONBOARDING.TCECI.FINALIZE_ECI.WEB2"),""),a.R7$(3),a.Y8G("disabled",!1)("variant","primary"),a.R7$(),a.SpI(" ",a.bMT(41,33,"ONBOARDING.TCECI.FINALIZE_ECI.FINALIZE")," "))},dependencies:[K.Qp,e.R,E.D9],styles:["a[_ngcontent-%COMP%]{text-decoration:none!important;font-size:1rem}app-icon[_ngcontent-%COMP%]{margin-right:10px}.space[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:5px;display:flex;align-items:center}"]})}}return nt})(),Bt=(()=>{class nt{constructor(et,q){this._storageService=et,this.environmentService=q,this.authorized=!!this._storageService.getItem("authorized"),this.professional=!1,this.route=this.environmentService.envVariables.url_financiera}static{this.\u0275fac=function(q){return new(q||nt)(a.rXU(O.n),a.rXU(x.v))}}static{this.\u0275cmp=a.VBU({type:nt,selectors:[["app-request-info-tceci"]],decls:16,vars:10,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],[1,"col","pl-3","pl-xl-0"],[1,"row","spacer-bottom-medium"],[1,"col","d-flex","align-items-center"],["src","./assets/icons/onboarding-card/contact-eci.svg"],[1,"mb-1","mt-1","ml-4","mr-4"],[1,"col-9","fixButton","pl-3","pl-md-0","d-flex","mb-5","justify-content-center","justify-content-lg-start","e-button","e-button-var--primary",3,"href"]],template:function(q,st){1&q&&(a.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),a.EFF(4),a.nI1(5,"translate"),a.k0s()(),a.j41(6,"div",4)(7,"div",5),a.nrm(8,"img",6),a.j41(9,"p",7),a.EFF(10),a.nI1(11,"translate"),a.k0s()()(),a.j41(12,"div",2)(13,"a",8),a.EFF(14),a.nI1(15,"translate"),a.k0s()()()()),2&q&&(a.R7$(4),a.SpI(" ",a.bMT(5,4,"ONBOARDING.TCECI.RENEW_CARD.TITLE")," "),a.R7$(6),a.SpI(" ",a.bMT(11,6,"ONBOARDING.TCECI.RENEW_CARD.TEXT")," "),a.R7$(3),a.Y8G("href",st.route,a.B4B),a.R7$(),a.SpI(" ",a.bMT(15,8,"ONBOARDING.COMMON.FINALIZE")," "))},dependencies:[E.D9],styles:[".margin[_ngcontent-%COMP%]{margin-left:56px}a.e-button-var--primary[_ngcontent-%COMP%]{color:#fff!important;text-decoration:none!important;justify-content:center!important;position:relative}a.e-button-var--primary[_ngcontent-%COMP%]   app-icon[_ngcontent-%COMP%]{position:absolute;right:16px}"]})}}return nt})(),Gt=(()=>{class nt{constructor(et,q,st){this._storageService=et,this.environmentService=q,this._titleService=st,this.authorized=!!this._storageService.getItem("authorized"),this.professional=!1,this.route=this.environmentService.envVariables.url_financiera,this._titleService.setTitleFromTranslation("PAGE_TITLES.TAKE_NEW_CARD_TITLE")}static{this.\u0275fac=function(q){return new(q||nt)(a.rXU(O.n),a.rXU(x.v),a.rXU(G.E))}}static{this.\u0275cmp=a.VBU({type:nt,selectors:[["app-take-new-card"]],decls:18,vars:13,consts:[[1,"container","row","d-flex","justify-content-center","spacer-bottom-low"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],[1,"col","pl-3","pl-xl-0"],[1,"row","spacer-bottom-medium"],[1,"col","d-flex","align-items-center"],["src","./assets/icons/onboarding-card/contact-eci.svg","alt",""],[1,"mb-1","mt-1","ml-4","mr-4"],["tabindex","0",1,"returnBtn","d-lg-flex",3,"href"]],template:function(q,st){1&q&&(a.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),a.EFF(4),a.nI1(5,"translate"),a.k0s()(),a.j41(6,"div",4)(7,"div",5),a.nrm(8,"img",6),a.j41(9,"p",7),a.EFF(10),a.nI1(11,"translate"),a.k0s()()(),a.j41(12,"div",2)(13,"a",8),a.nI1(14,"translate"),a.j41(15,"span"),a.EFF(16),a.nI1(17,"translate"),a.k0s()()()()()),2&q&&(a.R7$(4),a.SpI(" ",a.bMT(5,5,"ONBOARDING.TCECI.TAKE_NEW_CARD.TITLE")," "),a.R7$(6),a.SpI(" ",a.bMT(11,7,"ONBOARDING.TCECI.TAKE_NEW_CARD.TEXT")," "),a.R7$(3),a.Y8G("href",st.route,a.B4B),a.BMQ("aria-label",a.bMT(14,9,"ONBOARDING.COMMON.FINALIZE_LABEL")),a.R7$(3),a.SpI(" ",a.bMT(17,11,"ONBOARDING.COMMON.FINALIZE")," "))},dependencies:[E.D9],styles:[".margin[_ngcontent-%COMP%]{margin-left:56px}.returnBtn[_ngcontent-%COMP%]{background-color:#fff;box-shadow:inset 0 0 0 .0625rem #0a8250;max-width:var(--e-button-max-width);border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;text-decoration:none!important;justify-content:center;align-items:center;display:flex;margin-right:1rem;width:100%}.returnBtn[_ngcontent-%COMP%]:hover{background-color:#0a8250}.returnBtn[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%]{color:#fff}.returnBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#0a8250;font-size:var(--e-button-font-size)}"]})}}return nt})();const vt=[{path:"",component:pt,children:[{path:"manual-card",component:u.B,canActivate:[c.k],data:{content:{title:"ONBOARDING.COMMON.HELLO",subtitle:"ONBOARDING.TCECI.REQUEST_CARD_MANUAL_SUBTITLE",text:"ONBOARDING.TCECI.REQUEST_CARD_MANUAL_TEXT",icon:"phone",buttons:[{name:"ONBOARDING.COMMON.CONTINUE",action:"next",variant:"primary"}]}}},{path:"sorry",component:b,canActivate:[c.k],data:{"aside-menu":[{step:"1",description:"T\xe9rminos y condiciones"}],"aside-menu-status":"1"}},{path:"way-to-pay",component:Ot,canActivate:[c.k],data:{"aside-menu":[{step:"5",description:"T\xe9rminos y condiciones"}],"aside-menu-status":"5"}},{path:"finalize-in-eci",component:Mt,canActivate:[c.k],data:{"aside-menu":[{step:"1",description:"Datos de contacto"},{step:"2",description:"Verifica tu identidad"},{step:"3",description:"Informaci\xf3n adicional"},{step:"4",description:"Configura tu Tarjeta"},{step:"5",description:"T\xe9rminos y condiciones"}],"aside-menu-status":"5"}},{path:"hire",component:u.B,canActivate:[c.k],data:{"aside-menu":[{step:"1",description:"T\xe9rminos y condiciones"}],"aside-menu-status":"1",content:{title:"ONBOARDING.COMMON.HELLO_NAME",subtitle:"ONBOARDING.TCECI.PREAUTHORIZED_CARD_SUBTITLE",text:"ONBOARDING.TCECI.PREAUTHORIZED_CARD_TEXT",icon:"eci_logo",buttons:[{name:"ONBOARDING.TCECI.SORRY.HIRE",action:"hire",variant:"primary"}]}}},{path:"denied-request",component:u.B,canActivate:[c.k],data:{"aside-menu":[{step:"1",description:"T\xe9rminos y condiciones"}],"aside-menu-status":"1",content:{noname:!0,title:"ONBOARDING.TCECI.REQUEST_DENIED_TITLE",subtitle:"ONBOARDING.TCECI.PREAUTHORIZED_CARD_SUBTITLE",text:"ONBOARDING.TCECI.PREAUTHORIZED_CARD_TEXT",icon:"eci_logo",buttons:[{name:"ONBOARDING.TCECI.SORRY.HIRE",action:"hire",variant:"primary"}]}}},{path:"skip-start",component:u.B,canActivate:[c.k],data:{"aside-menu":[{step:"5",description:"T\xe9rminos y condiciones"}],"aside-menu-status":"5",content:{title:"ONBOARDING.COMMON.HELLO",subtitle:"ONBOARDING.COMMON.SKIP_START_SUBTITLE",text:"ONBOARDING.COMMON.SKIP_START_TEXT",icon:"reload",buttons:[{name:"ONBOARDING.COMMON.CONTINUE",action:"loadNextState",variant:"primary"}]}}},{path:"approved-request",component:u.B,canActivate:[c.k],data:{"aside-menu":[{step:"1",description:"T\xe9rminos y condiciones"}],"aside-menu-status":"1",content:{title:"ONBOARDING.COMMON.REQUEST_APPROVED_TIT
1LE",subtitle:"ONBOARDING.COMMON.REQUEST_APPROVED_SUBTITLE",input:{title:"ONBOARDING.COMMON.LABEL_CONTRACT",label:"ONBOARDING.COMMON.PLACEHOLDER_CONTRACT",maxlength:100,name:"2114",type:"text"},buttons:[{name:"ONBOARDING.COMMON.CONTINUE",action:"getDataByContract",variant:"primary"}],modal:{header:"ONBOARDING.STEP5.APPROVED_REQUEST.MODAL.HEADER",text:"ONBOARDING.STEP5.APPROVED_REQUEST.MODAL.TEXT"}}}},{path:"contract-signing",component:s.L,canActivate:[c.k],data:{"aside-menu":[{step:"5",description:"T\xe9rminos y condiciones"}],"aside-menu-status":"5"}},{path:"signing-with-logalty",component:n.h,canActivate:[c.k],data:{"aside-menu":[{step:"1",description:"T\xe9rminos y condiciones"}],"aside-menu-status":"1",content:{title:"ONBOARDING.COMMON.SIGNING_LOGALTY"}}},{path:"preferences",component:o.E,canActivate:[c.k],data:{"aside-menu":[{step:"1",description:"T\xe9rminos y condiciones"}],"aside-menu-status":"1"}},{path:"request-in-process",component:F.z,canActivate:[c.k],data:{"aside-menu":[{step:"1",description:"Datos de contacto"},{step:"2",description:"Verifica tu identidad"},{step:"3",description:"Informaci\xf3n adicional"},{step:"4",description:"Configura tu Tarjeta"},{step:"5",description:"T\xe9rminos y condiciones"}],"aside-menu-status":"5",content:{title:"ONBOARDING.COMMON.REQUEST_ON_HOLD_TITLE"}}},{path:"credit-limits",component:k.p,canActivate:[c.k],data:{"aside-menu":[{step:"1",description:"T\xe9rminos y condiciones"}],"aside-menu-status":"1",module:"tceci"}},{path:"take-card",component:N,canActivate:[c.k],data:{"aside-menu":[{step:"1",description:"T\xe9rminos y condiciones"}],"aside-menu-status":"1"}},{path:"hiring-client-authorized",component:t.t,canActivate:[c.k],data:{"aside-menu":[{step:"1",description:"T\xe9rminos y condiciones"}],"aside-menu-status":"1"}},{path:"logalty/:feedback",component:h.W,data:{module:"tceci"}},{path:"pending-request",component:u.B,canActivate:[c.k],data:{content:{title:"ONBOARDING.COMMON.REQUEST_ON_HOLD_TITLE",text:"ONBOARDING.COMMON.REQUEST_ON_HOLD_TEXT",icon:"sandglass",noname:!0,buttons:[{name:"ONBOARDING.COMMON.FINALIZE",action:"finalize",variant:"primary"}]}}},{path:"check-situation",component:bt.c,canActivate:[c.k],data:{module:"tceci"}},{path:"full-insurance",component:Tt.D,canActivate:[c.k],data:{module:"tceci"}},{path:"insurance-info",component:Rt.k,canActivate:[c.k],data:{module:"tceci"}},{path:"yearly-fee",component:Dt.W,canActivate:[c.k],data:{module:"tceci"}},{path:"request-info-tceci",component:Bt,canActivate:[c.k],data:{module:"tceci","aside-menu":[{step:"1",description:"T\xe9rminos y condiciones"}],"aside-menu-status":"1"}},{path:"request-info-parents-card",component:(()=>{class nt{constructor(){this.route="/ns/solicitar-tarjeta"}static{this.\u0275fac=function(q){return new(q||nt)}}static{this.\u0275cmp=a.VBU({type:nt,selectors:[["app-request-info-parents-card"]],decls:16,vars:10,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],[1,"col","pl-3","pl-xl-0"],[1,"row","spacer-bottom-medium"],[1,"col","d-flex","align-items-center"],["src","./assets/icons/onboarding-card/contact-eci.svg"],[1,"mb-1","mt-1","ml-4","mr-4"],[1,"col-9","fixButton","pl-3","pl-md-0","d-flex","mb-5","justify-content-center","justify-content-lg-start","e-button","e-button-var--primary",3,"href"]],template:function(q,st){1&q&&(a.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),a.EFF(4),a.nI1(5,"translate"),a.k0s()(),a.j41(6,"div",4)(7,"div",5),a.nrm(8,"img",6),a.j41(9,"p",7),a.EFF(10),a.nI1(11,"translate"),a.k0s()()(),a.j41(12,"div",2)(13,"a",8),a.EFF(14),a.nI1(15,"translate"),a.k0s()()()()),2&q&&(a.R7$(4),a.SpI(" ",a.bMT(5,4,"ONBOARDING.TCECI.PARENTS_CARD.TITLE")," "),a.R7$(6),a.SpI(" ",a.bMT(11,6,"ONBOARDING.TCECI.PARENTS_CARD.TEXT")," "),a.R7$(3),a.Y8G("href",st.route,a.B4B),a.R7$(),a.SpI(" ",a.bMT(15,8,"ONBOARDING.TCECI.PARENTS_CARD.BUTTON")," "))},dependencies:[E.D9],styles:[".margin[_ngcontent-%COMP%]{margin-left:56px}"]})}}return nt})(),canActivate:[c.k],data:{module:"tceci","aside-menu":[{step:"1",description:"T\xe9rminos y condiciones"}],"aside-menu-status":"1"}},{path:"take-new-card",component:Gt,canActivate:[c.k],data:{module:"tceci","aside-menu":[{step:"5",description:"T\xe9rminos y condiciones"}],"aside-menu-status":"5"}}]}];let wt=(()=>{class nt{static{this.\u0275fac=function(q){return new(q||nt)}}static{this.\u0275mod=a.$C({type:nt})}static{this.\u0275inj=a.G2t({imports:[i.iI.forChild(vt),i.iI]})}}return nt})()},45088:(ut,tt,r)=>{r.r(tt),r.d(tt,{WizardModule:()=>O});var h=r(19767),u=r(59684),i=r(34270),c=r(29154),t=r(76214),s=r(73462),k=r(35068),o=r(10267),F=r(86487),n=r(88025),a=r(11201);const E=[{path:"",component:(()=>{class x{constructor(){}static{this.\u0275fac=function(K){return new(K||x)}}static{this.\u0275cmp=a.VBU({type:x,selectors:[["app-wizard"]],decls:1,vars:0,template:function(K,B){1&K&&a.nrm(0,"router-outlet")},dependencies:[n.n3],styles:["router-outlet[_ngcontent-%COMP%]{display:flex;align-items:center}"]})}}return x})(),children:[{path:"step1",loadChildren:()=>Promise.resolve().then(r.bind(r,29154)).then(x=>x.Step1Module)},{path:"step2",loadChildren:()=>Promise.resolve().then(r.bind(r,76214)).then(x=>x.Step2Module)},{path:"step3",loadChildren:()=>Promise.resolve().then(r.bind(r,73462)).then(x=>x.Step3Module)},{path:"step4",loadChildren:()=>Promise.resolve().then(r.bind(r,35068)).then(x=>x.Step4Module)},{path:"step5",loadChildren:()=>Promise.resolve().then(r.bind(r,10267)).then(x=>x.Step5Module)},{path:"insurance",loadChildren:()=>Promise.resolve().then(r.bind(r,34270)).then(x=>x.InsuranceModule)},{path:"tceci",loadChildren:()=>r.e(46).then(r.bind(r,38046)).then(x=>x.TceciModule)},{path:"hire",loadChildren:()=>r.e(76).then(r.bind(r,91076)).then(x=>x.HireModule)},{path:"error",loadChildren:()=>Promise.resolve().then(r.bind(r,59684)).then(x=>x.ErrorModule)}]}];let b=(()=>{class x{static{this.\u0275fac=function(K){return new(K||x)}}static{this.\u0275mod=a.$C({type:x})}static{this.\u0275inj=a.G2t({imports:[n.iI.forChild(E),n.iI]})}}return x})(),O=(()=>{class x{static{this.\u0275fac=function(K){return new(K||x)}}static{this.\u0275mod=a.$C({type:x})}static{this.\u0275inj=a.G2t({imports:[b,h.G,c.Step1Module,t.Step2Module,s.Step3Module,k.Step4Module,o.Step5Module,u.ErrorModule,i.InsuranceModule,F.l]})}}return x})()},90220:(ut,tt,r)=>{r.d(tt,{B:()=>U});
1var h=r(87514),u=r(13054);function i(X){const Y=/^\d{10}$/,I=/^\d{10}[a-zA-Z]{2}$/;let D=null,Q=!1,dt=!1;if(Y.test(X.value)&&(Q=!0),I.test(X.value)&&(dt=!0),Q){if(Y.test(X.value))return null;D={VALID_CONTRACT:!0}}if(dt){if(I.test(X.value))return null;D={VALID_CONTRACT:!0}}return{VALID_REQUEST_CONTRACT:!0}}var c=r(35824),t=r(48678),s=r(11201),k=r(25662),o=r(18162),F=r(88025),n=r(28962),a=r(3390),e=r(43982),E=r(2621),b=r(35959),O=r(55902),x=r(7637),V=r(54348),G=r(96647),K=r(53786);function B(X,Y){if(1&X&&(s.j41(0,"h1",8),s.EFF(1),s.nI1(2,"translate"),s.k0s(),s.j41(3,"span",9),s.EFF(4),s.nI1(5,"translate"),s.nI1(6,"titlecase"),s.k0s()),2&X){const I=s.XpG();s.R7$(),s.SpI(" ",s.bMT(2,3,"ONBOARDING_PAGE.INITIATED_PROCESS")," "),s.R7$(3),s.Lme(" ",s.bMT(5,5,null==I.data?null:I.data.title)," ",s.bMT(6,7,I.showname())," ")}}function j(X,Y){if(1&X&&(s.j41(0,"div",2)(1,"div",10)(2,"span"),s.EFF(3),s.nI1(4,"translate"),s.k0s()()()),2&X){const I=s.XpG();s.R7$(3),s.SpI(" ",s.bMT(4,1,null==I.data?null:I.data.subtitle)," ")}}function P(X,Y){1&X&&s.nrm(0,"img",11)}function L(X,Y){if(1&X&&(s.j41(0,"div",3)(1,"div",4),s.DNE(2,P,1,0,"img",11),s.k0s()()),2&X){const I=s.XpG();s.R7$(2),s.vxM(2,null!=I.data&&I.data.img?2:-1)}}function H(X,Y){if(1&X&&(s.j41(0,"div",2)(1,"div",12),s.nrm(2,"app-icon",13),s.k0s(),s.j41(3,"div",14)(4,"p",15),s.EFF(5),s.nI1(6,"translate"),s.k0s()()()),2&X){const I=s.XpG();s.R7$(2),s.FS9("spriteRef",null==I.data?null:I.data.icon),s.R7$(3),s.SpI(" ",s.bMT(6,2,null==I.data?null:I.data.text)," ")}}function N(X,Y){if(1&X&&s.nrm(0,"app-input",5),2&X){const I=s.XpG();s.Y8G("form",I.form)("data",null==I.data?null:I.data.input)}}function $(X,Y){if(1&X){const I=s.RV6();s.j41(0,"div",16)(1,"a",17),s.bIt("click",function(){s.eBV(I);const w=s.XpG().$implicit,J=s.XpG();return s.Njj(J.form.valid&&J.action(null==w?null:w.action))})("keydown.enter",function(){s.eBV(I);const w=s.XpG().$implicit,J=s.XpG();return s.Njj(J.form.valid&&J.action(null==w?null:w.action))}),s.j41(2,"span"),s.EFF(3),s.nI1(4,"translate"),s.k0s()()()}if(2&X){const I=s.XpG().$implicit,D=s.XpG();s.R7$(),s.BMQ("aria-disabled",!D.form.valid),s.R7$(2),s.SpI(" ",s.bMT(4,2,null==I?null:I.name)," ")}}function Z(X,Y){1&X&&s.nrm(0,"app-icon",20)}function pt(X,Y){1&X&&s.nrm(0,"app-icon",21)}function rt(X,Y){if(1&X){const I=s.RV6();s.j41(0,"app-button",18),s.nI1(1,"translate"),s.bIt("clicked",function(){s.eBV(I);const w=s.XpG().$implicit,J=s.XpG();return s.Njj(J.action(null==w?null:w.action))}),s.j41(2,"span",19),s.EFF(3),s.nI1(4,"translate"),s.k0s(),s.DNE(5,Z,1,0,"app-icon",20)(6,pt,1,0,"app-icon",21),s.k0s()}if(2&X){const I=s.XpG().$implicit;s.ZvI("e-button e-button-var--",I.variant,""),s.Y8G("ngClass","secondary"===(null==I?null:I.variant)?"col-auto pl-3 pl-xl-0 d-none d-lg-block":"pl-0 pr-0 pl-xl-0 d-flex justify-content-center justify-content-lg-start"),s.BMQ("aria-label",s.bMT(1,8,"ONBOARDING.COMMON.CONTINUE_LABEL")),s.R7$(3),s.SpI(" ",s.bMT(4,10,null==I?null:I.name)," "),s.R7$(2),s.vxM(5,"next"===(null==I?null:I.action)||"getDataByContract"===(null==I?null:I.action)&&"primary"===I.variant?5:-1),s.R7$(),s.vxM(6,"back"===(null==I?null:I.action)?6:-1)}}function at(X,Y){if(1&X&&s.DNE(0,$,5,4,"div",16)(1,rt,7,12),2&X){const I=Y.$implicit;s.vxM(0,"link"===(null==I?null:I.type)?0:1)}}let U=(()=>{class X{constructor(I,D,w,J,Q,dt,Ot,bt,Tt,Rt,Dt){this._location=I,this.formsService=D,this.modalService=w,this.route=J,this.router=Q,this._genesysService=dt,this._storageService=Ot,this.titleCasePipe=bt,this.environmentService=Tt,this.cookieSrv=Rt,this._recaptchaV3Service=Dt,this.professional=!!this._storageService.getItem("professional"),this.name="",this.route.data.pipe((0,c.s)(1)).subscribe(Mt=>{this.form=Mt.content.validate?new u.hs("",[u.k0.required,i]):new u.hs(null)})}ngOnInit(){this.route.data.pipe((0,c.s)(1)).subscribe(I=>{I.content&&(this.data=I.content,I.form&&this._getPersonalDataInfo(I)),this.data||this.router.navigate(["/wizard/step1/welcome"])}),this.route.queryParams.pipe((0,c.s)(1)).subscribe(I=>{I.id&&I.request&&(this._setInfoOnStorage(I),this.navigateFlowSteps(!0))})}_setInfoOnStorage(I){this._storageService.setItem("document_number",I.id),this._storageService.setItem("request",I.request),this._storageService.setPersistentItem("document_number",I?.id??""),this.cookieSrv.check("request_id")&&this.cookieSrv.delete("request_id"),this.cookieSrv.add("request_id",I.request),this._storageService.setItem("authorized","true")}_getPersonalDataInfo(I){let D=null;if(I.form.get("personal_data")){let w={dateTime:(new Date).toLocaleStr
1ing(),dni:I.form.get("personal_data").get("document_number").value,mobile:I.form.get("personal_data").get("phone_number1").value,email:I.form.get("personal_data").get("email").value};I.form.get("personal_data").get("name").value&&(w.completeName=I.form.get("personal_data").get("name").value+I.form.get("personal_data").get("first_surname").value+I.form.get("personal_data").get("last_surname").value),I.form.get("personal_data").get("gender").value&&(w.gender=I.form.get("personal_data").get("gender").value),I.form.get("personal_data").get("language_code").value&&(w.language="1"==I.form.get("personal_data").get("language_code").value?"ES":"CT"),this._genesysService.updateData(w)}I.form.get("personal_data").get("name").value&&(D=I.form.get("personal_data").get("name").value.toLowerCase()),!D&&I.form.get("ocr_data").get("name").value&&(D=I.form.get("ocr_data").get("name").value.toLowerCase()),D&&(this.name=D.charAt(0).toUpperCase()+D.slice(1))}ngOnDestroy(){this.modalService.closeModal("eDialog")}openModal(){this.modalService.openModal("eDialog")}action(I){"back"===I?this._location.back():"finalize"===I?(this._storageService.clear(),this.cookieSrv.check("request_id")&&this.cookieSrv.delete("request_id"),window.location.href=this.professional?this.environmentService.envVariables.nexo:this.environmentService.envVariables.webfeci):"hire"===I?this.formsService.getCRMState().pipe((0,c.s)(1)).subscribe(D=>{D.request_data.pre_status="50",this.formsService.updateCRM(D).pipe((0,c.s)(1)).subscribe(()=>{this.router.navigate(["/wizard/tceci/way-to-pay"])})}):"getDataByContract"===I?this.validateDataContractOrRequest():"loadNextState"===I?this.loadNextState():"contractTCECI"===I?this.router.navigate(["/wizard/tceci/way-to-pay"]):"send"===I&&this.router.navigate(["/wizard/step4/account-verification"])}loadNextState(){this.checkIsContractOrRequest(this.form.value).VALID_CONTRACT&&this._storageService.setItem("id_contract",this.form.value),this.navigateFlowSteps()}validateDataContractOrRequest(){const I=this.checkIsContractOrRequest(this.form.value);if(this.form.markAllAsTouched(),I.VALID_CONTRACT){this._storageService.setItem("id_contract",this.form.value);const D="GetDataByContract";this._recaptchaV3Service.execute(D).pipe((0,c.s)(1)).subscribe(w=>{this.formsService.getDataByContract(w,D).pipe((0,c.s)(1)).subscribe(J=>{this._storageService.setItem("request",J.request_data.request),this.cookieSrv.check("request_id")&&this.cookieSrv.delete("request_id"),this.cookieSrv.add("request_id",J.request_data.request),this.navigate(J.request_data.request_status)},()=>this.openModal())})}else I.VALID_REQUEST?(this._storageService.setItem("request",this.form.value),this.cookieSrv.check("request_id")&&this.cookieSrv.delete("request_id"),this.cookieSrv.add("request_id",this.form.value),this.formsService.getDataByRequest().pipe((0,c.s)(1)).subscribe(D=>{this.navigate(D.request_data.pre_status)},()=>this.openModal())):(0,t.K)()}checkIsContractOrRequest(I){return/^\d{10}$/.test(I)?{VALID_CONTRACT:!0}:!!/^\d{10}[a-zA-Z]{2}$/.test(I)&&{VALID_REQUEST:!0}}navigate(I){this.formsService.getFlowSteps(null,I).pipe((0,c.s)(1)).subscribe(D=>{this.router.navigate([D.uri])})}navigateFlowSteps(I=!1){this.formsService.getCRMState().pipe((0,c.s)(1)).subscribe(D=>{if("23"===D.request_data.pre_status&&"N"===D.request_data.activation)this.router.navigate(["/wizard/tceci/finalize-in-eci"]);else{let w=D.request_data.pre_status;I&&(w="01"===D.request_data.pre_status?D.request_data.pre_status+"-AD":D.request_data.pre_status),this.formsService.getFlowSteps(null,w,D).pipe((0,c.s)(1)).subscribe(J=>{J.uri.includes("mitek")?this.router.navigate(this.environmentService.envVariables.mitekEnabled?[J.uri]:["/wizard/step2/send-sms"]):this.router.navigate([J.uri])})}})}showname(){return this.data?.noname?null:this.name?this.titleCasePipe.transform(this.name):null}static{this.\u0275fac=function(D){return new(D||X)(s.rXU(h.aZ),s.rXU(k.f),s.rXU(o.B),s.rXU(F.nX),s.rXU(F.Ix),s.rXU(n.w),s.rXU(a.n),s.rXU(h.PV),s.rXU(e.v),s.rXU(E.T),s.rXU(b.ob))}}static{this.\u0275cmp=s.VBU({type:X,selectors:[["app-generic"]],features:[s.Jv_([h.PV])],decls:19,vars:16,consts:[[1,"container","row","d-flex","justify-content-center"],[1,"col-12","col-lg-8","col-xl-6"],[1,"row"],[1,"row","spacer-bottom-low"],[1,"col","pl-3","pl-xl-0"],[3,"form","data"],[1,"spacer-both-high","d-flex","justify-content-center"],["id","eDialog",3,"outside","headline","error","confirmLabel","dismissible"],[1,"sr-only"],[1,"col","pl-3","pl-xl-0","h1"],[1,"col","pl-3","pl-xl-0","spacer-bottom-medium"],["src","./assets/img/onboarding-card/card/feci-tarjeta.png","alt",""],[1,"col-auto","d-flex","align-items-center"],["spriteUrl","./assets/icons/sprites.svg","width","48px","height","48px",3,"spriteRef"],[1,"col","d-flex","align-items-center"],[1,"mb-0"],[1,"col","pl-3","pl-xl-0","d-flex","justify-content-center"],["tabindex","0",1,"continueBtn",3,"click","keydown.enter"],[3,"clicked","ngClass"],[1,"e-button__text"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-right","width","24px","height","24px",1,"float-right"],["spriteUrl","./assets/icons/sprites.svg","spriteRef","chevron-left","width","24px","height","24px",1,"float-left"]],template:function(D,w){1&D&&(s.j41(0,"div",0)(1,"div",1)(2,"div",2),s.DNE(3,B,7,9),s.k0s(),s.DNE(4,j,5,3,"div",2)(5,L,3,1,"div",3)(6,H,7,4,"div",2),s.j41(7,"div",3)(8,"div",4),s.DNE(9,N,1,2,"app-input",5),s.k0s()(),s.j41(10,"div",6),s.Z7z(11,at,2,1,null,null,s.fX1),s.k0s()()(),s.j41(13,"app-dialog",7),s.nI1(14,"translate"),s.nI1(15,"translate"),s.bIt("outside",function(){return null}),s.j41(16,"span"),s.EFF(17),s.nI1(18,"translate"),s.k0s()()),2&D&&(s.R7$(3),s.vxM(3,null!=w.data&&w.data.title?3:-1),s.R7$(),s.vxM(4,null!=w.data&&w.data.subtitle?4:-1),s.R7$(),s.vxM(5,null!=w.data&&w.data.img?5:-1),s.R7$(),s.vxM(6,null!=w.data&&w.data.text?6:-1),s.R7$(3),s.vxM(9,null!=w.data&&w.data.input?9:-1),s.R7$(2),s.Dyx(null==w.data?null:w.data.buttons),s.R7$(2),s.FS9("headline",s.bMT(14,10,null==w.data||null==w.data.modal?null:w.data.modal.header)),s.FS9("confirmLabel",s.bMT(15,12,"ONBOARDING.COMMON.CLOSE")),s.Y8G("error",!0)("dismissible",!1),s.R7$(4),s.JRh(s.bMT(18,14,null==w.data||null==w.data.modal?null:w.data.modal.text)))},dependencies:[h.YU,O.Qp,x.m,V.R,G.S,h.PV,K.D9],styles:["[_nghost-%COMP%]   img[_ngcontent-%COMP%]{width:300px}.button-center[_ngcontent-%COMP%]{margin-left:-1rem!important}.h1[_ngcontent-%COMP%]{color:#000;font-size:2rem;line-height:2.5rem;font-weight:400;font-style:normal}a.e-button[_ngcontent-%COMP%]{text-decoration:none!important;color:#fff!important}a.e-button[_ngcontent-%COMP%]   span.e-button__text[_ngcontent-%COMP%]{color:#fff!important}.continueBtn[_ngcontent-%COMP%]{align-items:center;background-color:#0a8250;border-radius:var(--e-button-radius);border-width:0;box-sizing:border-box;
1cursor:pointer;display:flex;font-size:var(--e-button-font-size);justify-content:space-between;line-height:1.2em;min-height:var(--e-button-min-height);padding:0 1.5625rem;transition:background-color .3s ease;width:100%;text-decoration:none!important}.continueBtn[_ngcontent-%COMP%]:hover{background-color:#2b5033}.continueBtn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;flex-grow:1;text-align:center;line-height:25px;color:#fff!important;font-size:1rem}"]})}}return X})()},84178:(ut,tt,r)=>{r.d(tt,{d:()=>F});var h=r(11201),u=r(13054),i=r(53900),c=r(53786);const t=["*"];function s(n,a){if(1&n){const e=h.RV6();h.j41(0,"div",3)(1,"input",5),h.bIt("keydown",function(b){const O=h.eBV(e).$index,x=h.XpG(2);return h.Njj(x.onKeyDown(b,O))})("change",function(){const b=h.eBV(e).$implicit,O=h.XpG(2);return h.Njj(O.onChangeClicked(b))})("click",function(){const b=h.eBV(e).$implicit,O=h.XpG(2);return h.Njj(O.selectOption(b))})("focus",function(){const b=h.eBV(e).$index,O=h.XpG(2);return h.Njj(O.onFocus(b))}),h.k0s(),h.j41(2,"label",6)(3,"span"),h.EFF(4),h.nI1(5,"translate"),h.k0s()(),h.SdG(6),h.k0s()}if(2&n){const e=a.$implicit,E=a.$index,b=h.XpG(2);h.R7$(),h.FCK("name","",b.name,"-",b.uniqueId,""),h.FS9("value",null==e?null:e.value),h.Y8G("formControl",b.form)("id","radio-"+b.uniqueId+"-"+E)("tabindex",b.getTabIndex(E)),h.R7$(),h.Y8G("for","radio-"+b.uniqueId+"-"+E),h.R7$(2),h.JRh(h.bMT(5,9,e.text))}}function k(n,a){if(1&n&&h.nrm(0,"app-form-errors",4),2&n){const e=h.XpG(2);h.Y8G("form",e.form)("errorId",e.errorId)}}function o(n,a){if(1&n&&(h.j41(0,"div",1)(1,"div",2),h.Z7z(2,s,7,11,"div",3,h.fX1),h.k0s(),h.DNE(4,k,1,2,"app-form-errors",4),h.k0s()),2&n){const e=h.XpG();h.ZvI("",e.className," d-flex flex-column"),h.BMQ("aria-activedescendant",e.getActiveDescendant())("aria-describedby",e.form.invalid&&(e.form.dirty||e.form.touched)?e.errorId:null),h.R7$(2),h.Dyx(e._data),h.R7$(2),h.vxM(4,e.form?4:-1)}}let F=(()=>{class n{get data(){return this._data}set data(e){this._data=e,this.currentFocusIndex=0,this.errorId||this.generateErrorId()}get form(){return this._form}set form(e){this._form=e,this.setInitialFocus()}constructor(e){this.changeDetectorRef=e,this._data=[{value:"S",text:"ONBOARDING.COMMON.YES"},{value:"N",text:"ONBOARDING.COMMON.NO"}],this.uniqueId=Math.random().toString(36).substr(2,9),this.currentFocusIndex=0,this.onChange=new h.bkB,this.onClick=new h.bkB}ngOnInit(){this.errorId||this.generateErrorId()}ngAfterViewChecked(){this.changeDetectorRef.detectChanges()}setInitialFocus(){if(this._form&&this._form.value&&this._data){const e=this._data.findIndex(E=>E.value===this._form.value);e>=0&&(this.currentFocusIndex=e)}}getTabIndex(e){return e===this.currentFocusIndex?0:-1}getActiveDescendant(){return`radio-${this.uniqueId}-${this.currentFocusIndex}`}onKeyDown(e,E){const b=e.target;if(void 0!==E&&b.id===`radio-${this.uniqueId}-${E}`)this.currentFocusIndex=E;else if(void 0===E&&!b.id.includes(this.uniqueId))return;switch(e.key){case"ArrowRight":e.preventDefault(),e.stopPropagation(),this.moveFocus(1);break;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),this.moveFocus(-1);break;case"ArrowDown":case"ArrowUp":e.preventDefault(),e.stopPropagation()}}moveFocus(e){const E=this.currentFocusIndex+e;this.setFocusAndSelect(E>=0&&E<this._data.length?E:e>0?0:this._data.length-1)}setFocusAndSelect(e){this.currentFocusIndex=e,this._data&&this._data[e]&&this.selectOption(this._data[e]),setTimeout(()=>{const E=document.getElementById(`radio-${this.uniqueId}-${e}`);E&&E.focus()},0)}onFocus(e){this.currentFocusIndex=e}selectOption(e){this.form.setValue(e?.value),this.onClickClicked(e),this.onChangeClicked(e)}onChangeClicked(e){this.onChange.emit(e)}onClickClicked(e){this.onClick.emit(e)}generateErrorId(){this.errorId||(this.errorId=`${this.name||"radio"}-error`)}static{this.\u0275fac=function(E){return new(E||n)(h.rXU(h.gRc))}}static{this.\u0275cmp=h.VBU({type:n,selectors:[["app-radio-button"]],inputs:{name:"name",id:"id",data:"data",form:"form",className:"className"},outputs:{onChange:"onChange",onClick:"onClick"},ngContentSelectors:t,decls:1,vars:1,consts:[["role","radiogroup",3,"class"],["role","radiogroup"],[1,"d-flex","flex-wrap"],[1,"radio"],[3,"form","errorId"],["type","radio",3,"keydown","change","click","focus","formControl","id","name","value","tabindex"],[1,"mr-3","mb-0",3,"for"]],template:function(E,b){1&E&&(h.NAR(),h.DNE(0,o,5,6,"div",0)),2&E&&h.vxM(0,b.form?0:-1)},dependencies:[u.me,u.Fm,u.BC,u.l_,i.Z,c.D9],styles:['.radio-inline[_ngcontent-%COMP%]{display:flex}.radio[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.radio[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;margin-bottom:0}.radio[_ngcontent-%COMP%]   label[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem}.radio[_ngcontent-%COMP%]   label.label--card[_ngcontent-%COMP%]{align-items:center;border:1px solid #c1c3c5;border-radius:5px;padding:.938rem;filter:grayscale(1);opacity:.7}.radio[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]{appearance:none;cursor:pointer;background-color:#fff;margin:0;font:inherit;color:#c1c3c5;width:.938rem;height:.938rem;border:1px solid black;border-radius:50%;display:grid;place-content:center;transition:border-color .12s;position:relative}.radio[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]:before{content:"";width:.938rem;height:.938rem;border-radius:50%;transform:scale(0);transition:.12s transform ease-in-out;box-shadow:inset 1em 1em #000;background-color:#000}.radio[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]:checked:before{transform:scale(.5)}.radio[_ngcontent-%COMP%]   .label--card[_ngcontent-%COMP%]:has(input:checked){border:1px solid #10935c}@media (max-width: 760px){.radio[_ngcontent-%COMP%]   label.label--card[_ngcontent-%COMP%]{width:100%}}']})}}return n})()},7196:(ut,tt,r)=>{r.d(tt,{v:()=>F});var h=r(11201),u=r(13054),i=r(53900),c=r(53786);const t=["*"];function s(n,a){if(1&n){const e=h.RV6();h.j41(0,"div",3)(1,"label",5),h.bIt("keydown",function(b){const O=h.eBV(e).$index,x=h.XpG(2);return h.Njj(x.onKeyDown(b,O))})("keydown.enter",function(){const b=h.eBV(e).$implicit,O=h.XpG(2);return O.form.setValue(null==b?null:b.value),O.onClickClicked(b),h.Njj(O.onChangeClicked(b))})("click",function(){const b=h.eBV(e).$implicit,O=h.XpG(2);return O.form.setValue(null==b?null:b.value),O.onClickClicked(b),h.Njj(O.onChangeClicked(b))})("click",function(){const b=h.eBV(e).$implicit,O=h.XpG(2);return h.Njj(O.selectOption(b))})("focus",function(){const b=h.eBV(e).$index,O=h.XpG(2);return h.Njj(O.onFocus(b))}),h.nrm(2,"input",6)(3,"span",7),h.j41(4,"span"),h.EFF(5),h.nI1(6,"translate"),h.k0s()(),h.SdG(7),h.k0s()}if(2&n){const e=a.$implicit,E=a.$index,b=h.XpG(2);h.R7$(),h.Y8G("for","radio-"+b.uniqueId+"-"+E)("tabindex",b.getTabIndex(E))("id","radio-option-"+b.uniqueId+"-"+E),h.BMQ("aria-checked",b.form.value===(null==e?null:e.value)),h.R7$(),h.FS9("name",b.name),h.FS9("value",null==e?null:e.value),h.Y8G("formControl",b.form)("id","radio-"+b.uniqueId+"-"+E),h.R7$(3),h.JRh(h.bMT(6,9,null==e?null:e.text))}}function k(n,a){if(1&n&&h.nrm(0,"app-form-errors",4),2&n){const e=h.XpG(2);h.Y8G("form",e.form)("errorId",e.errorId)}}
1function o(n,a){if(1&n&&(h.j41(0,"div",1)(1,"div",2),h.Z7z(2,s,8,11,"div",3,h.fX1),h.k0s(),h.DNE(4,k,1,2,"app-form-errors",4),h.k0s()),2&n){const e=h.XpG();h.ZvI("",e.className," d-flex flex-column"),h.BMQ("aria-activedescendant",e.getActiveDescendant())("aria-describedby",e.form.invalid&&(e.form.dirty||e.form.touched)?e.errorId:e.ariaDescribedby),h.R7$(2),h.Dyx(e._data),h.R7$(2),h.vxM(4,e.form?4:-1)}}let F=(()=>{class n{get data(){return this._data}set data(e){this._data=e,this.currentFocusIndex=0,this.errorId||this.generateErrorId()}get form(){return this._form}set form(e){this._form=e,this.setInitialFocus()}constructor(e){this.changeDetectorRef=e,this._data=[{value:"S",text:"ONBOARDING.COMMON.YES"},{value:"N",text:"ONBOARDING.COMMON.NO"}],this.currentFocusIndex=0,this.uniqueId=Math.random().toString(36).substr(2,9),this.onChange=new h.bkB,this.onClick=new h.bkB}ngAfterViewChecked(){this.changeDetectorRef.detectChanges()}setInitialFocus(){if(this._form&&this._form.value&&this._data){const e=this._data.findIndex(E=>E.value===this._form.value);e>=0&&(this.currentFocusIndex=e)}}getTabIndex(e){return e===this.currentFocusIndex?0:-1}getActiveDescendant(){return`radio-option-${this.uniqueId}-${this.currentFocusIndex}`}onKeyDown(e,E){const b=e.target;if(void 0!==E&&b.id===`radio-option-${this.uniqueId}-${E}`)this.currentFocusIndex=E;else if(void 0===E&&!b.id.includes(this.uniqueId))return;switch(e.key){case"ArrowDown":case"ArrowRight":e.preventDefault(),e.stopPropagation(),this.moveFocus(1);break;case"ArrowUp":case"ArrowLeft":e.preventDefault(),e.stopPropagation(),this.moveFocus(-1);break;case"Home":e.preventDefault(),e.stopPropagation(),this.setFocusAndSelect(0);break;case"End":e.preventDefault(),e.stopPropagation(),this.setFocusAndSelect(this._data.length-1)}}moveFocus(e){const E=this.currentFocusIndex+e;this.setFocusAndSelect(E>=0&&E<this._data.length?E:e>0?0:this._data.length-1)}setFocusAndSelect(e){this.currentFocusIndex=e,this._data&&this._data[e]&&this.selectOption(this._data[e]),setTimeout(()=>{const E=document.getElementById(`radio-option-${this.uniqueId}-${e}`);E&&E.focus()},0)}onFocus(e){this.currentFocusIndex=e}selectOption(e){this.form.setValue(e?.value),this.onClickClicked(e),this.onChangeClicked(e)}onChangeClicked(e){this.onChange.emit(e)}onClickClicked(e){this.onClick.emit(e)}ngOnInit(){this.errorId||this.generateErrorId()}generateErrorId(){this.errorId||(this.errorId=`${this.name||"radio"}-error`)}static{this.\u0275fac=function(E){return new(E||n)(h.rXU(h.gRc))}}static{this.\u0275cmp=h.VBU({type:n,selectors:[["app-radio"]],inputs:{name:"name",ariaDescribedby:"ariaDescribedby",data:"data",form:"form",className:"className"},outputs:{onChange:"onChange",onClick:"onClick"},ngContentSelectors:t,decls:1,vars:1,consts:[["role","radiogroup",3,"class"],["role","radiogroup"],[1,"d-flex","flex-wrap"],[1,"radio"],[3,"form","errorId"],["tabindex","0","role","radio",1,"mr-3","mb-0",3,"keydown","keydown.enter","click","focus","for","tabindex","id"],["type","radio","tabindex","-1",1,"mt-2",3,"formControl","id","name","value"],[1,"icon"]],template:function(E,b){1&E&&(h.NAR(),h.DNE(0,o,5,6,"div",0)),2&E&&h.vxM(0,b.form?0:-1)},dependencies:[u.me,u.Fm,u.BC,u.l_,i.Z,c.D9],styles:[".radio-inline[_ngcontent-%COMP%]{display:flex}.radio[_ngcontent-%COMP%]{margin-left:-1.25rem;display:flex;align-items:center}.radio[_ngcontent-%COMP%]   label[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;height:100%;align-content:center}.radio[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:inline-flex;cursor:pointer}.radio[_ngcontent-%COMP%]   label[_ngcontent-%COMP%] > span.icon[_ngcontent-%COMP%]{background-image:url(radio_full_reposo.8c109ca1cbec8f2b.svg)}.radio[_ngcontent-%COMP%]   label[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{display:none}.radio[_ngcontent-%COMP%]   label[_ngcontent-%COMP%] > span.icon[_ngcontent-%COMP%]{display:inline-block;width:1.25rem;height:1.25rem;margin-right:.5rem;margin-left:1.25rem;background-size:cover}.radio[_ngcontent-%COMP%]   label[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:checked + span.icon[_ngcontent-%COMP%]{background-image:url(radio_full_active.9e44f65d96e3cf32.svg)}.radio-group[_ngcontent-%COMP%]{margin-left:-15px!important;margin-right:-15px!important}.radio-group[_ngcontent-%COMP%]   .radio[_ngcontent-%COMP%]{margin-top:1rem!important;margin-left:15px;margin-right:15px;
1display:inline-block}.radio-group[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]{visibility:hidden;height:0;width:0;display:block}.radio-group[_ngcontent-%COMP%]   span.icon[_ngcontent-%COMP%]{display:none!important}.radio-group[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:absolute;inset:0}.radio-group[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{min-width:7rem;display:table-cell;position:relative;vertical-align:middle;text-align:center;cursor:pointer;color:#182433;border:1px solid black;background-color:#fff;padding:35px 10px;border-radius:6px;overflow:hidden}.radio-group[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]:checked + span.icon[_ngcontent-%COMP%] + span[_ngcontent-%COMP%]{color:#fff!important;background-color:#333!important;height:100%;align-content:center}"]})}}return n})()}}]);

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.