1"use strict";(self.webpackChunkaeg_frontend_p_area=self.webpackChunkaeg_frontend_p_area||[]).push([[309],{89783:(P,v,s)=>{s.d(v,{K:()=>w});var c=s(45286),d=s(7605),o=s(54438),M=s(47172),x=s(50519),e=s(60102),b=s(60177);const m=(u,E,h)=>[u,E,h],f=(u,E)=>({"sidenav-enabled":u,"sidenav-disabled":E}),g=u=>({"font-size":u});function O(u,E){if(1&u&&(o.j41(0,"div"),o.EFF(1),o.nI1(2,"titlecase"),o.k0s()),2&u){const h=o.XpG();o.R7$(),o.JRh(h.titleCase?o.bMT(2,1,h.title):h.title)}}function I(u,E){if(1&u&&(o.j41(0,"div",5),o.EFF(1),o.k0s()),2&u){const h=o.XpG();o.Y8G("ngStyle",o.eq3(2,g,h.subtitleFontSize)),o.R7$(),o.SpI(" ",h.subtitle," ")}}function R(u,E){if(1&u&&o.nrm(0,"img",6),2&u){const h=o.XpG();o.Y8G("src",h.imageUrl,o.B4B)}}let w=(()=>{class u{constructor(h,C,_){this.principalService=h,this.appComponent=C,this._productThemeService=_,this.activeSubThemeName="",this.alive=new c.B7,this.bgColor="#E0F7FA",this.textColor="#281805",this.subtitleColor="#281805",this.paddingSize="default",this.subtitleFontSize="26px",this.titleCase=!0,this.screenWidth=window.innerWidth,this.activeThemeName=""}ngOnChanges(){this.activeThemeName=this._productThemeService.calculateProductTheme()}ngOnInit(){this.activeThemeName=this._productThemeService.calculateProductTheme(),this.updateScreenWidth(),this.activeThemeName=this._productThemeService.calculateProductTheme(),this.principalService.getSideNav().pipe((0,d.Q)(this.alive)).subscribe(h=>{this.sidenavActive=!!h})}getSidenavActive(){return this.sidenavActive}onResize(){this.updateScreenWidth()}updateScreenWidth(){this.screenWidth=window.innerWidth}get isSidenavRendered(){return this.sidenavActive&&this.screenWidth>=1024}static{this.\u0275fac=function(C){return new(C||u)(o.rXU(M.Y),o.rXU(x.Z),o.rXU(e.w))}}static{this.\u0275cmp=o.VBU({type:u,selectors:[["app-banner"]],hostBindings:function(C,_){1&C&&o.bIt("resize",function(){return _.onResize()},!1,o.tSv)},inputs:{title:"title",subtitle:"subtitle",imageUrl:"imageUrl",activeSubThemeName:"activeSubThemeName",bgColor:"bgColor",textColor:"textColor",subtitleColor:"subtitleColor",paddingSize:"paddingSize",subtitleFontSize:"subtitleFontSize",titleCase:"titleCase"},features:[o.OA$],decls:6,vars:13,consts:[[1,"mixin__texto",3,"ngClass"],[4,"ngIf"],["class","mixin__subtitle",3,"ngStyle",4,"ngIf"],[1,"mixin__image"],[3,"src",4,"ngIf"],[1,"mixin__subtitle",3,"ngStyle"],[3,"src"]],template:function(C,_){1&C&&(o.j41(0,"div")(1,"div",0),o.DNE(2,O,3,3,"div",1)(3,I,2,4,"div",2),o.k0s(),o.j41(4,"div",3),o.DNE(5,R,1,1,"img",4),o.k0s()()),2&C&&(o.HbH(o.sMw(6,m,_.activeThemeName,_.activeSubThemeName,_.getSidenavActive()?"mixin-sidenav":"mixin-full")),o.R7$(),o.Y8G("ngClass",o.l_i(10,f,_.sidenavActive,!_.sidenavActive)),o.R7$(),o.Y8G("ngIf",_.title),o.R7$(),o.Y8G("ngIf",_.subtitle),o.R7$(2),o.Y8G("ngIf",_.imageUrl))},dependencies:[b.YU,b.bT,b.B3,b.PV],styles:["[_nghost-%COMP%]{--theme-image-loader: url(loader-san-small-v2.c42e1d99f0f9c67b.gif)}.mixin-sidenav[_ngcontent-%COMP%], .mixin-full[_ngcontent-%COMP%]{display:flex;height:auto;margin-top:30px;margin-bottom:40px;flex-direction:row;background-color:var(--theme-banner-bg);background-image:var(--theme-banner-img);min-height:var(--theme-banner-min-height);background-position:right center;background-repeat:no-repeat}@media (min-width: 1600px){.mixin-sidenav[_ngcontent-%COMP%], .mixin-full[_ngcontent-%COMP%]{background-size:40% auto}}.mixin-sidenav[_ngcontent-%COMP%] .mixin__texto[_ngcontent-%COMP%], .mixin-full[_ngcontent-%COMP%] .mixin__texto[_ngcontent-%COMP%]{display:flex;width:100%;height:100%;padding-top:40px;padding-bottom:40px;padding-right:32px;font-size:36px;
1font-family:ForeverFormaHeading-Regular;flex-direction:column;gap:5px;color:var(--theme-banner-txt)}.mixin-sidenav[_ngcontent-%COMP%] .mixin__texto.has-subtitle[_ngcontent-%COMP%], .mixin-full[_ngcontent-%COMP%] .mixin__texto.has-subtitle[_ngcontent-%COMP%]{justify-content:center}.mixin-sidenav[_ngcontent-%COMP%] .mixin__texto[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:first-child:first-letter, .mixin-full[_ngcontent-%COMP%] .mixin__texto[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:first-child:first-letter{text-transform:uppercase}.mixin-sidenav[_ngcontent-%COMP%] .mixin__subtitle[_ngcontent-%COMP%], .mixin-full[_ngcontent-%COMP%] .mixin__subtitle[_ngcontent-%COMP%]{font-size:26px;font-family:ForeverFormaHeading-Medium;color:var(--theme-banner-subtxt);width:100%;height:100%}.mixin-sidenav[_ngcontent-%COMP%] .mixin__image[_ngcontent-%COMP%], .mixin-full[_ngcontent-%COMP%] .mixin__image[_ngcontent-%COMP%]{display:var(--showbanner-img, flex);min-height:var(--theme-banner-min-height);width:104%;height:auto;align-items:center;text-align:right;flex-direction:column;overflow:hidden}@media (min-width: 1600px){.mixin-sidenav[_ngcontent-%COMP%] .mixin__image[_ngcontent-%COMP%], .mixin-full[_ngcontent-%COMP%] .mixin__image[_ngcontent-%COMP%]{width:40%}}.mixin-sidenav[_ngcontent-%COMP%] .mixin__image[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .mixin-full[_ngcontent-%COMP%] .mixin__image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:auto;height:100%;object-fit:fill;display:var(--theme-display-banner-img)}.sidenav-enabled[_ngcontent-%COMP%]{padding-left:30px}@media (min-width: 1600px){.sidenav-enabled[_ngcontent-%COMP%]{width:60%!important}}@media (min-width: 1440px){.sidenav-enabled[_ngcontent-%COMP%]{padding-left:calc(50vw - 688px)!important}}@media screen and (max-width: 1440px) and (min-width: 1264px){.sidenav-disabled[_ngcontent-%COMP%]{padding-inline:calc((100% - 1216px)/2)!important}}@media screen and (max-width: 1264px){.sidenav-disabled[_ngcontent-%COMP%]{padding-inline:24px!important}}@media screen and (min-width: 1440px){.sidenav-disabled[_ngcontent-%COMP%]{padding-inline:calc((100% - 1276px)/2)!important}}.mixin-full[_ngcontent-%COMP%]{width:100vw}@media screen and (max-width: 1440px) and (min-width: 1264px){.mixin-full[_ngcontent-%COMP%]{margin-left:calc((100vw - 1216px)/-2)}}@media screen and (max-width: 1264px){.mixin-full[_ngcontent-%COMP%]{margin-left:-24px}}@media screen and (min-width: 1440px){.mixin-full[_ngcontent-%COMP%]{margin-left:calc((100vw - 1276px)/-2)}}.mixin-sidenav[_ngcontent-%COMP%]{margin-left:-32px}@media screen and (max-width: 1440px) and (min-width: 1264px){.mixin-sidenav[_ngcontent-%COMP%]{width:calc(100vw - ((100vw - 1216px)/2 + 280px))}}@media screen and (max-width: 1264px){.mixin-sidenav[_ngcontent-%COMP%]{width:calc(100vw - calc(220 / 1024 * 100vw + 24px))}}@media screen and (min-width: 1440px){.mixin-sidenav[_ngcontent-%COMP%]{width:calc(100vw - ((100vw - 1276px)/2 + 295px))}}@media (min-width: 1440px){.mixin-sidenav[_ngcontent-%COMP%]{width:81vw;margin-left:calc(-50vw + 688px)!important}}.padding-back[_ngcontent-%COMP%]{padding:62px 32px 40px 82px!important}@media all and (max-width: 768px){.mixin-full[_ngcontent-%COMP%], .mixin-sidenav[_ngcontent-%COMP%]{min-height:100px;height:auto}.mixin-full[_ngcontent-%COMP%] .mixin__texto[_ngcontent-%COMP%], .mixin-sidenav[_ngcontent-%COMP%] .mixin__texto[_ngcontent-%COMP%]{padding:35.5px 24px}.mixin-full[_ngcontent-%COMP%] .mixin__image[_ngcontent-%COMP%], .mixin-sidenav[_ngcontent-%COMP%] .mixin__image[_ngcontent-%COMP%]{display:none}.padding-back[_ngcontent-%COMP%]{padding:57px 24px 20px!important}}@media all and (min-width: 761px) and (max-width: 768px){.mixin__texto[_ngcontent-%COMP%]{margin-top:100px}}@media all and (max-width: 500px){.mixin-full[_ngcontent-%COMP%], .mixin-sidenav[_ngcontent-%COMP%]{margin-bottom:30px;margin-top:0}.mixin-full[_ngcontent-%COMP%] .mixin__texto[_ngcontent-%COMP%], .mixin-sidenav[_ngcontent-%COMP%] .mixin__texto[_ngcontent-%COMP%]{padding:35.5px 24px;font-size:26px;
1font-family:ForeverFormaHeading-Regular;text-align:start}.mixin-full[_ngcontent-%COMP%] .mixin__subtitle[_ngcontent-%COMP%], .mixin-sidenav[_ngcontent-%COMP%] .mixin__subtitle[_ngcontent-%COMP%]{font-size:22px;font-family:ForeverFormaHeading-Medium}.mixin-full[_ngcontent-%COMP%] .mixin__image[_ngcontent-%COMP%], .mixin-sidenav[_ngcontent-%COMP%] .mixin__image[_ngcontent-%COMP%]{min-height:var(--theme-banner-min-height-mobile)}}"]})}}return u})()},92070:(P,v,s)=>{s.d(v,{Fe:()=>M,OH:()=>o,Qy:()=>c,Vo:()=>d,_8:()=>x});const c="Solicitud en curso",d="En breve se mostrar\xe1 actualizado en los datos de tu \xe1rea de cliente.",o="\xa1Lo sentimos! No podemos completar tu solicitud",M="Se ha producido un fallo de conexi\xf3n.",x="Por favor, int\xe9ntalo de nuevo pasado unos minutos."},17309:(P,v,s)=>{s.r(v),s.d(v,{MiCuentaModule:()=>Ze});var c=s(80620),d=s(89417),o=s(60177),M=s(49217),x=s(9935),e=s(54438),b=s(45286),m=s(7605),f=s(86598),g=s(40533),O=s(87739);const I=n=>null===n.value||""===n.value||!n.dirty||/^[6|7][0-9]{8}$/.test(n.value)?null:{invalidPhone:!0},R={required:"Campo obligatorio",invalidPhone:"S\xf3lo n\xfameros nacionales"},w={required:"Por favor, incluye un tel. para completar tu cuenta",invalidPhone:"S\xf3lo n\xfameros nacionales"};var u=s(14610),E=s(92070),h=s(49907),C=s(47172),_=s(92073),k=s(99327),N=s(13822),y=s(88610),D=s(60102),F=s(60292),G=s(89783),B=s(40529);function L(n,r){if(1&n){const t=e.RV6();e.j41(0,"aeg-checkbox",18),e.bIt("checkboxChange",function(a){const l=e.eBV(t).$implicit,p=e.XpG(2);return e.Njj(p.selectPolicies(l,a))}),e.k0s()}if(2&n){const t=r.$implicit;e.Y8G("label",null==t?null:t.label)("checked",null==t?null:t.checked)("disabled",t.isSantander)}}function j(n,r){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"div",13)(2,"span",14),e.EFF(3,"Seleccionar todas"),e.k0s(),e.j41(4,"aeg-switch",15),e.bIt("switchChange",function(a){e.eBV(t);const l=e.XpG();return e.Njj(l.toggleSelectAllPolicies(a))}),e.k0s()(),e.j41(5,"div",16),e.DNE(6,L,1,3,"aeg-checkbox",17),e.k0s(),e.bVm()}if(2&n){const t=e.XpG();e.R7$(4),e.Y8G("formControl",t.toggleSwitchControl)("checked",null==t.toggleSwitchControl?null:t.toggleSwitchControl.value),e.R7$(2),e.Y8G("ngForOf",t.policyOptions)}}let V=(()=>{class n{constructor(t,i,a){this._principalService=t,this._userService=i,this.breakpointObserver=a,this.cancel=new e.bkB,this.openModalGdprEmitter=new e.bkB,this.openModalRequestInProgressEmitter=new e.bkB,this.errorModal=new e.bkB,this.hideModal=new e.bkB,this.fileErrorEvent=new e.bkB,this.products=null,this.validClients=null,this.policyOptions=[],this.bankNumberControl=new d.MJ({value:"",disabled:!1}),this.toggleSwitchControl=new d.MJ({value:!1,disabled:!1}),this.certifiedDocument=[],this.bankDataPolicies=[],this.bankDataSelected=[],this.controlIban=!1,this.loader=!1,this.errorMessagesIBAN={invalidMatch:"IBAN no v\xe1lido. M\xe1ximo 24 caracteres sin espacios"}}ngOnInit(){this.getClientInfo(),this.breakpointObserver.observe(["(max-width: 550px)"]).subscribe(t=>{this.helperTextInput=t.matches?"Escribe n\xba de IBAN o de cuenta bancaria":"Escribe el n\xfamero de IBAN o de cuenta bancaria"})}getClientInfo(){this.products=this._principalService.getSessionItem("products"),this.validClients=this._principalService.getSessionItem("validClients"),this.loadPolicyOptions()}loadPolicyOptions(){const t=this._principalService.getSessionItem("policies");let i=0;this.products.map(a=>{"I"!==a.holderAndIsured&&i++}),this.policyOptions=this.products.map(a=>"I"!=a.holderAndIsured?(t.filter(p=>{p.details.numPolicy===a.numPolicy&&this.bankDataPolicies.push({bankData:p.payments.bankData,idPolicy:a.idPolicy})}),{label:a.productName,value:a.idPolicy,checked:1===i,isSantander:"250-123"===a.product.code}):null).filter(a=>null!==a),this.bankDataSelect()}bankDataSelect(){this.bankDataSelected=[],this.policyOptions.map(t=>{this.bankDataPolicies.map(i=>{t.checked&&t.value===i.idPolicy&&this.bankDataSelected.push(i.bankData)})}),this.repeatIbanValidator()}toggleSelectAllPolicies(t){this.policyOptions.forEach(i=>{i.isSantander||(i.checked=t)}),this.bankDataSelect()}selectPolicies(t,i){let a=!0;this.policyOptions.forEach(l=>{l.value===t.value&&(l.checked=i),l.checked||(a=!1)}),this.toggleSwitchControl.setValue(a),this.bankDataSelect()}control(t){this.bankDataInput=t,this.repeatIbanValidator()}repeatIbanValidator(){1===this.bankDataSelect.length||this.bankDataSelected.every(t=>t===this.bankDataSelected[0])?this.bankDataSelected.map(t=>{this.controlIban=!(!t||t.slice(-4)!==this.bankDataInput?.slice(-4))}):this.controlIban=!1}deleteFile(){this.certifiedDocument=[],this.certifiedDocumentName="",this.certifiedDocumentBase64=""}saveChanges(){this.hideModal.emit(!0),this.loader=!0;const i={products:this.products.map(a=>{const l=this.policyOptions.find(p=>p.value===a.idPolicy);return l&&l.checked?{policyNumber:a.numPolicy,origin:this.validClients.find(p=>p.id===a.idClient)?.company,code:a.product.code,baseProduct:a.product.baseProduct,bouquet:a.product.bouquet,clientPolicy:a.holderAndIsured}:null}).filter(a=>null!=a),newAccount:{iban:this.bankNumberControl.value,bankId:"",branchId:"",controlDigit:"",accountId:""},attachments:[{title:this.certifiedDocumentName.substring(0,this.certifiedDocumentName.lastIndexOf(".")),fullName:this.certifiedDocumentName,content:this.certifiedDocumentBase64}]};this._userService.patchEditBankNumber(i).subscribe({next:a=>{201===a.status.code&&(this.cancelModal(),this.openModalRequestInProgressEmitter.emit())},error:()=>
1{this.errorModal.emit()}})}getBase64File(t){const i=t.indexOf("base64,");this.certifiedDocumentBase64=t.substring(i+7)}checkValidator(){const t=this.policyOptions.every(i=>!1===i.checked);return this.bankNumberControl.invalid&&this.bankNumberControl.setErrors({invalidMatch:!0}),!(!t&&this.certifiedDocument.length&&!this.bankNumberControl.invalid&&!this.controlIban)}cancelModal(){this.cancel.emit()}openModalGdpr(){this.openModalGdprEmitter.emit()}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(C.Y),e.rXU(_.D),e.rXU(k.QP))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-modal-change-bank-number"]],outputs:{cancel:"cancel",openModalGdprEmitter:"openModalGdprEmitter",openModalRequestInProgressEmitter:"openModalRequestInProgressEmitter",errorModal:"errorModal",hideModal:"hideModal",fileErrorEvent:"fileErrorEvent"},decls:24,vars:10,consts:[["id","modal-change-bank-number"],[1,"modal-title"],[1,"modal-text"],[4,"ngIf"],[1,"input-container"],["width","100%","label","N\xba de cuenta","customBehaviour","IBAN",3,"inputChage","helper","errorMessages","formControl","disabled"],["inputId","certification-document","placeholder","Certificado de titularidad","helperText","Adjuntar PDF, JPG o PNG",3,"documentsNameChange","documentsChange","fileDeleted","fileUploaded","fileErrorEvent","documentsName","documents","filesAsBase64","disabled"],[1,"info-span"],[1,"link-gdpr"],[1,"politic",3,"click"],[1,"modal-buttons"],["width","100%","variant","tertiary","size","small","label","volver","type","submit","textStyle","capitalize",3,"click"],["variant","primary","size","small","label","guardar","type","submit","textStyle","capitalize","iconOrientation","right","icon","../../assets/images/SVG/Objects-Tools/24px/arrow-forward.svg","width","100%",1,"continuar",3,"click","disabled"],[1,"select-all-container"],[1,"select-all-container__label"],[3,"switchChange","formControl","checked"],[1,"select-coverages-container"],[3,"label","checked","disabled","checkboxChange",4,"ngFor","ngForOf"],[3,"checkboxChange","label","checked","disabled"]],template:function(i,a){1&i&&(e.j41(0,"div",0)(1,"p",1),e.EFF(2,"Modificar tu n\xfamero de cuenta"),e.k0s(),e.j41(3,"p",2),e.EFF(4," El cambio de cuenta aplicar\xe1 a todas las operaciones de la(s) p\xf3liza(s), incluido el reembolso y el copago."),e.nrm(5,"br"),e.j41(6,"b"),e.EFF(7,"Recuerda"),e.k0s(),e.EFF(8,". Cada archivo adjunto no debe superar los 16MB. "),e.k0s(),e.DNE(9,j,7,3,"ng-container",3),e.j41(10,"div",4)(11,"aeg-input",5),e.bIt("inputChage",function(p){return a.control(p)}),e.k0s(),e.j41(12,"app-file-input",6),e.mxI("documentsNameChange",function(p){return e.DH7(a.certifiedDocumentName,p)||(a.certifiedDocumentName=p),p})("documentsChange",function(p){return e.DH7(a.certifiedDocument,p)||(a.certifiedDocument=p),p}),e.bIt("fileDeleted",function(){return a.deleteFile()})("fileUploaded",function(p){return a.getBase64File(p)})("fileErrorEvent",function(){return a.fileErrorEvent.emit(!0)}),e.k0s()(),e.j41(13,"div",7)(14,"span")(15,"strong"),e.EFF(16,"Certificado de titularidad"),e.k0s(),e.EFF(17," es un documento expedido por el banco, a petici\xf3n del cliente, que al estar firmado y sellado te acredita como titular de tu cuenta bancaria."),e.k0s()(),e.j41(18,"div",8)(19,"span",9),e.bIt("click",function(){return a.openModalGdpr()}),e.EFF(20,"Pol\xedtica de protecci\xf3n de datos"),e.k0s()(),e.j41(21,"div",10)(22,"aeg-button",11),e.bIt("click",function(){return a.cancelModal()}),e.k0s(),e.j41(23,"aeg-button",12),e.bIt("click",function(){return a.saveChanges()}),e.k0s()()()),2&i&&(e.R7$(9),e.Y8G("ngIf",a.policyOptions.length>1),e.R7$(2),e.Y8G("helper",a.helperTextInput)("errorMessages",a.errorMessagesIBAN)("formControl",a.bankNumberControl)("disabled",a.loader),e.R7$(),e.R50("documentsName",a.certifiedDocumentName)("documents",a.certifiedDocument),e.Y8G("filesAsBase64",!0)("disabled",a.loader),e.R7$(11),e.Y8G("disabled",a.checkValidator()))},dependencies:[o.Sq,o.bT,d.BC,d.l_,B.k,c.xb,c.TK,c.D,c.cf],styles:["#modal-change-bank-number[_ngcontent-%COMP%]{color:#4a4a4a}
1#modal-change-bank-number[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{padding:0;font-size:24px;line-height:1.17;margin-bottom:15px;font-family:ForeverFormaHeading-Medium}@media (max-width: 550px){#modal-change-bank-number[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{padding-top:40px}}#modal-change-bank-number[_ngcontent-%COMP%] .modal-text[_ngcontent-%COMP%]{line-height:1.38;margin:0}#modal-change-bank-number[_ngcontent-%COMP%] .select-all-container[_ngcontent-%COMP%]{display:flex;gap:19px;margin-bottom:30px;margin-top:30px}#modal-change-bank-number[_ngcontent-%COMP%] .select-all-container__label[_ngcontent-%COMP%]{font-weight:600}#modal-change-bank-number[_ngcontent-%COMP%] .select-coverages-container[_ngcontent-%COMP%]{display:flex;grid-template-columns:1fr 1fr;column-gap:20px;row-gap:7px}@media (max-width: 550px){#modal-change-bank-number[_ngcontent-%COMP%] .select-coverages-container[_ngcontent-%COMP%]{display:flex;column-gap:20px;row-gap:7px;flex-direction:column}}#modal-change-bank-number[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%]{width:100%;max-width:342px;margin:25px 0 30px 2px}#modal-change-bank-number[_ngcontent-%COMP%] .info-span[_ngcontent-%COMP%]{font-size:16px;margin-bottom:20px}#modal-change-bank-number[_ngcontent-%COMP%] .link-gdpr[_ngcontent-%COMP%]{display:flex;margin-bottom:20px}#modal-change-bank-number[_ngcontent-%COMP%] .modal-buttons[_ngcontent-%COMP%]{width:100%;gap:15px;display:flex;margin-top:30px;padding:0 10px 5px;justify-content:flex-end}@media all and (max-width: 550px){#modal-change-bank-number[_ngcontent-%COMP%] .modal-buttons[_ngcontent-%COMP%]{flex-direction:column;display:flex;align-items:center}#modal-change-bank-number[_ngcontent-%COMP%] .modal-buttons[_ngcontent-%COMP%] aeg-button[_ngcontent-%COMP%]{margin-bottom:15px;width:272px}}#modal-change-bank-number[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;z-index:15}#modal-change-bank-number[_ngcontent-%COMP%] .loader-spinner[_ngcontent-%COMP%]{width:50%}.politic[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;border:none;background:none;font-family:var(--regular-font);font-size:16px;margin-top:20px;color:var(--theme-link-color, var(--primary));padding:0;cursor:pointer}"]})}}return n})();var z=s(72085),T=s(45573),U=s(44670),A=s(20522),$=s(27791);function Y(n,r){1&n&&(e.j41(0,"p",28)(1,"strong"),e.EFF(2,"Recuerda:"),e.k0s(),e.EFF(3," El cambio solo afecta a tus p\xf3lizas contratadas directamente con Aegon. Gestiona las p\xf3lizas contratadas con Banco Santander a trav\xe9s de Superl\xednea. "),e.k0s())}function X(n,r){if(1&n&&(e.qex(0),e.EFF(1),e.bVm()),2&n){const t=e.XpG(2);e.R7$(),e.SpI("Piso ",t.floor.value,"")}}function H(n,r){if(1&n&&(e.qex(0),e.EFF(1),e.bVm()),2&n){const t=e.XpG(2);e.R7$(),e.SpI(" Pta: ",t.door.value,"")}}function J(n,r){if(1&n&&(e.qex(0),e.EFF(1),e.bVm()),2&n){const t=e.XpG(2);e.R7$(),e.SpI(" Esc: ",t.stair.value,"")}}function Z(n,r){if(1&n&&(e.qex(0),e.EFF(1),e.bVm()),2&n){const t=e.XpG(2);e.R7$(),e.SpI(" Portal: ",t.portal.value,"")}}function K(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",29)(1,"p",30),e.EFF(2,"Domicilio correcto"),e.k0s(),e.j41(3,"div",31)(4,"aeg-radio",32),e.bIt("radioChange",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.selectionAddressNormalized())}),e.k0s(),e.j41(5,"p"),e.EFF(6),e.DNE(7,X,2,1,"ng-container",33)(8,H,2,1,"ng-container",33)(9,J,2,1,"ng-container",33)(10,Z,2,1,"ng-container",33),e.EFF(11),e.k0s()()()}if(2&n){const t=e.XpG();e.R7$(4),e.Y8G("options",t.radioOptionAddressNormalized),e.R7$(2),e.E5c(" ",(null==t.addressValidated?null:t.addressValidated.tipoVia)||"CALLE"," ",null==t.addressValidated?null:t.addressValidated.nombreVia,", ",null==t.addressValidated?null:t.addressValidated.numeroVia," "),e.R7$(),e.Y8G("ngIf",t.floor.value),e.R7$(),e.Y8G("ngIf",t.door.value),e.R7$(),e.Y8G("ngIf",t.stair.value),e.R7$(),e.Y8G("ngIf",t.portal.value),e.R7$(),e.E5c(" Cp: ",null==t.addressValidated?null:t.addressValidated.codigoPostal," ",null==t.addressValidated?null:t.addressValidated.municipio,", ",null==t.addressValidated?null:t.addressValidated.provincia," ")}}function Q(n,r){if(1&n&&(e.qex(0),e.EFF(1),e.bVm()),2&n){const t=e.XpG(2);e.R7$(),e.SpI("Piso ",t.floor.value,"")}}function q(n,r){if(1&n&&(e.qex(0),e.EFF(1),e.bVm()),2&n){const t=e.XpG(2);e.R7$(),e.SpI(" Pta: ",t.door.value,"")}}function W(n,r){if(1&n&&(e.qex(0),e.EFF(1),e.bVm()),2&n){const t=e.XpG(2);e.R7$(),e.SpI(" Esc: ",t.stair.value,"")}}function ee(n,r){if(1&n&&(e.qex(0),e.EFF(1),e.bVm()),2&n){const t=e.XpG(2);e.R7$(),e.SpI(" Portal: ",t.portal.value,"")}}function te(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",34)(1,"p",35),e.EFF(2,"Domicilio no validado"),e.k0s(),e.j41(3,"div",36)(4,"aeg-radio",37),e.bIt("radioChange",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.selectionAddressNoNormalized())}),e.k0s(),e.j41(5,"p"),e.EFF(6),e.DNE(7,Q,2,1,"ng-container",33)(8,q,2,1,"ng-container",33)(9,W,2,1,"ng-container",33)(10,ee,2,1,"ng-container",33),e.EFF(11),e.k0s()()()}if(2&n){const t=e.XpG();e.R7$(4),e.Y8G("options",t.radioOptionAddressNoNormalized),e.R7$(2),e.E5c(" ",t.roadType.value," ",t.roadName.value,", ",t.number.value," "),e.R7$(),e.Y8G("ngIf",t.floor.value),e.R7$(),e.Y8G("ngIf",t.door.value),e.R7$(),e.Y8G("ngIf",t.stair.value),e.R7$(),e.Y8G("ngIf",t.portal.value),e.R7$(),e.E5c(" Cp: ",t.postalCode.value," ",t.townDescription.value.label,", ",t.province.value.label," ")}}let ae=(()=>{class n{constructor(t,i,a){this._micuentaService=t,this._principalService=i,this._userService=a,this.cancel=ne
1w e.bkB,this.openModalGdprEmitter=new e.bkB,this._alive$=new b.B7,this.products=null,this.policyOptions=[],this.validClients=null,this.checkboxOptions=[{label:"Salud Completo Copago",value:"1",checked:!1},{label:"Completo Vida",value:"2",checked:!0},{label:"Estrategia 5",value:"3",checked:!0},{label:"Seguro de accidentes",value:"4",checked:!1},{label:"Seguro de decesos",value:"5",checked:!1},{label:"Seguro de ahorro",value:"6",checked:!0}],this.radioOptions=[{label:"Aplicar el cambio en las seleccionadas y unificar",value:"1",disabled:!1},{label:"S\xf3lo aplicar a la de contacto",value:"2",disabled:!1},{label:"S\xf3lo aplicar a la de la p\xf3liza",value:"3",disabled:!1}],this.radioOptionAddressNormalized=[{label:"",value:"1",checked:!1}],this.radioOptionAddressNoNormalized=[{label:"",value:"2",checked:!1}],this.roadTypes=z.c,this.addressValidated=null,this.isSuggestedAddress=!1,this.postalCodeValidator=T.t,this.errorMessagesPostalCode=T.N,this.province=new d.MJ({value:"",disabled:!0}),this.postalCode=new d.MJ({value:"",disabled:!1},[d.k0.required,this.postalCodeValidator]),this.townDescription=new d.MJ({value:"",disabled:!0},[d.k0.required]),this.roadType=new d.MJ({value:"",disabled:!0},[d.k0.required]),this.roadName=new d.MJ({value:"",disabled:!0},[d.k0.required]),this.number=new d.MJ({value:"",disabled:!0}),this.floor=new d.MJ({value:"",disabled:!0}),this.door=new d.MJ({value:"",disabled:!0}),this.stair=new d.MJ({value:"",disabled:!0}),this.portal=new d.MJ({value:"",disabled:!0})}ngOnInit(){this.listenPostalCode(),this.listenControls(),this.getClientInfo(),this.setClientProvince(),this.getProductsInfo(),this.loadPolicyOptions()}getClientInfo(){this.clientsDetails=this._principalService.getSessionItem("clientDetails")}getProductsInfo(){this.products=this._principalService.getSessionItem("products"),this.validClients=this._principalService.getSessionItem("validClients")}loadPolicyOptions(){this.policyOptions=this.products.map(t=>"250-123"!=t.product.code&&"I"!=t.holderAndIsured?{label:t.productName,value:t.idPolicy,checked:t.selected||!1}:null).filter(t=>null!==t)}listenPostalCode(){this.postalCode.valueChanges.pipe((0,m.Q)(this._alive$)).subscribe(t=>{t&&!this.checkPostalCodes(t)&&this.postalCode.setErrors({invalidMatch:!0}),this.postalCode.valid?(this.townDescription.enable(),this.roadType.enable(),this.roadName.enable(),this.number.enable(),this.floor.enable(),this.door.enable(),this.stair.enable(),this.portal.enable()):(this.townDescription.disable(),this.townDescription.reset(),this.roadType.disable(),this.roadType.reset(),this.roadName.disable(),this.roadName.reset(),this.number.disable(),this.number.reset(),this.floor.disable(),this.floor.reset(),this.door.disable(),this.door.reset(),this.stair.disable(),this.stair.reset(),this.portal.disable(),this.portal.reset())})}listenControls(){(0,U.h)(this.postalCode.valueChanges.pipe((0,m.Q)(this._alive$),(0,A.F)()),this.townDescription.valueChanges.pipe((0,m.Q)(this._alive$),(0,A.F)()),this.roadType.valueChanges.pipe((0,m.Q)(this._alive$),(0,A.F)()),this.roadName.valueChanges.pipe((0,m.Q)(this._alive$),(0,A.F)()),this.number.valueChanges.pipe((0,m.Q)(this._alive$),(0,A.F)()),this.floor.valueChanges.pipe((0,m.Q)(this._alive$),(0,A.F)()),this.door.valueChanges.pipe((0,m.Q)(this._alive$),(0,A.F)()),this.stair.valueChanges.pipe((0,m.Q)(this._alive$),(0,A.F)()),this.portal.valueChanges.pipe((0,m.Q)(this._alive$),(0,A.F)())).subscribe(()=>{this.addressValidated=null,this.isSuggestedAddress=!1,this.radioOptionAddressNormalized[0].checked=!1,this.radioOptionAddressNoNormalized[0].checked=!1})}checkPostalCodes(t){return this.clientsDetails.contact.postalCode.slice(0,2)===t.slice(0,2)}setClientProvince(){this.province.patchValue(this.clientsDetails.contact.province)}validateAddress(){this.addressValidated=null,this.isSuggestedAddress=!1,this._micuentaService.searchAddressDYD({roadType:{code:this.roadType.value},roadName:this.roadName.value,number:this.number.value,postalCode:this.postalCode.value,townDescription:this.townDescription.value,country:"ES"}).pipe((0,m.Q)(this._alive$)).subscribe(i=>{this.addressValidated=i,i.codigoVia&&(""===i.tipoVia&&(this.addressValidated.tipoVia="CALLE"),(i.codigoPostal!=this.postalCode.value||i.municipio.toLowerCase()!=this.townDescription.value.toLowerCase()||this.addressValidated.tipoVia!=this.roadType.value||i.nombreVia.toLowerCase()!=this.roadName.value.toLowerCase())&&(this.isSuggestedAddress=!0))})}checkDisabledValidateAddress(){return this.postalCode.invalid||this.townDescription.invalid||!this.roadType.value||!this.roadName.value}selectionAddressNormalized(){this.radioOptionAddressNormalized[0].checked=!0,this.radioOptionAddressNoNormalized[0].checked=!1}
1selectionAddressNoNormalized(){this.radioOptionAddressNormalized[0].checked=!1,this.radioOptionAddressNoNormalized[0].checked=!0}cancelModal(){this.cancel.emit()}openModalGdpr(){this.openModalGdprEmitter.emit()}ngOnDestroy(){this._alive$.next(!0),this._alive$.complete()}saveAddress(){const i={products:this.products.map(a=>({policyNumber:a.numPolicy,origin:this.validClients.find(l=>l.id===a.idClient)?.company,code:a.product.code,baseProduct:a.product.baseProduct,bouquet:a.product.bouquet,clientPolicy:a.holderAndIsured})),clientAddress:{roadType:this.roadType.value,streetName:this.roadName.value,hasNumber:!!this.number.value,number:this.number.value||"",stair:this.stair.value||"",floor:this.floor.value||"",door:this.door.value||"",town:this.townDescription.value,portal:this.portal.value||"",province:this.province.value,postalCode:this.postalCode.value,otherData:"",country:"ES"}};this.cancelModal(),this._principalService.setLoaderBlocker(!0),this._userService.patchUserAddress(i).subscribe({next:a=>{201===a.status.code&&this._principalService.setLoaderBlocker(!1)}})}static{this.\u0275fac=function(i){return new(i||n)(e.rXU($.K),e.rXU(C.Y),e.rXU(_.D))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-modal-change-address"]],inputs:{hasSantanderPoliciesMessage:"hasSantanderPoliciesMessage"},outputs:{cancel:"cancel",openModalGdprEmitter:"openModalGdprEmitter"},decls:30,vars:26,consts:[["id","modal-change-address"],[1,"modal-title"],["class","text-reminder",4,"ngIf"],[1,"box-1"],["width","230px","label","Provincia",3,"disabled","formControl"],[1,"box-2"],["width","100px","label","C.P.","helper","Escribe el n\xba",3,"formControl","errorMessages"],["width","100%","label","Municipio","helper","Escribe el nombre de la poblaci\xf3n",3,"disabled","formControl"],[1,"box-3"],["width","136px","label","Tipo de v\xeda","helper","Selecciona","predictiveType","contains",3,"options","disabled","formControl"],["width","230px","label","Nombre de la v\xeda","helper","Escribe la nueva direcci\xf3n",3,"disabled","formControl"],[1,"box-4"],["width","100px","label","N\xfamero","helper","(Opcional)",3,"disabled","formControl"],["width","100px","label","Escalera","helper","(Opcional)",3,"disabled","formControl"],["width","100px","label","Portal","helper","(Opcional)",3,"disabled","formControl"],["width","100px","label","Piso","helper","(Opcional)",3,"disabled","formControl"],["width","100px","label","Letra","helper","(Opcional)",3,"disabled","formControl"],[1,"check-address-container"],[1,"check-address-container__title"],[1,"check-address-container__button"],["variant","secondary","width","100%","textStyle","none","size","small","label","Comprobar direcci\xf3n",3,"click","disabled"],["class","check-address-container__correct-address",4,"ngIf"],["class","check-address-container__incorrect-address",4,"ngIf"],[1,"link-gdpr"],["label","Pol\xedtica de protecci\xf3n de datos","fontSize","16px","iconSide","none",3,"click"],[1,"modal-buttons"],["variant","tertiary","width","100%","textStyle","capitalize","size","small","label","volver",3,"click"],["variant","primary","width","100%","textStyle","capitalize","size","small","label","guardar",3,"click","disabled"],[1,"text-reminder"],[1,"check-address-container__correct-address"],[1,"check-address-container__correct-address__title"],[1,"check-address-container__correct-address__box"],["name","radio-group",3,"radioChange","options"],[4,"ngIf"],[1,"check-address-container__incorrect-address"],[1,"check-address-container__incorrect-address__title"],[1,"check-address-container__incorrect-address__box"],["name","radio-groups",3,"radioChange","options"]],template:function(i,a){1&i&&(e.j41(0,"div",0)(1,"p",1),e.EFF(2,"Modificar direcci\xf3n"),e.k0s(),e.DNE(3,Y,4,0,"p",2),e.j41(4,"div",3),e.nrm(5,"aeg-input",4),e.k0s(),e.j41(6,"div",5),e.nrm(7,"aeg-input",6)(8,"aeg-input",7),e.k0s(),e.j41(9,"div",8),e.nrm(10,"aeg-select",9)(11,"aeg-input",10),e.k0s(),e.j41(12,"div",11),e.nrm(13,"aeg-input",12)(14,"aeg-input",13)(15,"aeg-input",14)(16,"aeg-input",15)(17,"aeg-input",16),e.k0s(),e.j41(18,"div",17)(19,"p",18),e.EFF(20,"Por favor, es necesario que valides la direcci\xf3n"),e.k0s(),e.j41(21,"div",19)(22,"aeg-button",20),e.bIt("click",function(){return a.validateAddress()}),e.k0s()(),e.DNE(23,K,12,11,"div",21)(24,te,12,11,"div",22),e.k0s(),e.j41(25,"div",23)(26,"aeg-link",24),e.bIt("click",function(){return a.openModalGdpr()}),e.k0s()(),e.j41(27,"div",25)(28,"aeg-button",26),e.bIt("click",function(){return a.cancelModal()}),e.k0s(),e.j41(29,"aeg-button",27),e.bIt("click",function(){return a.saveAddress()}),e.k0s()()()),2&i&&(e.R7$(3),e.Y8G("ngIf",a.hasSantanderPoliciesMessage),e.R7$(2),e.Y8G("disabled",a.province.disabled)("formControl",a.province),e.R7$(2),e.Y8G("formControl",a.postalCode)("errorMessages",a.errorMessagesPostalCode),e.R7$(),e.Y8G("disabled",a.townDescription.disabled)("formControl",a.townDescription),e.R7$(2),e.Y8G("options",a.roadTypes)("disabled",a.roadType.disabled)("formControl",a.roadType),e.R7$(),e.Y8G("disabled",a.roadName.disabled)("formControl",a.roadName),e.R7$(2),e.Y8G("disabled",a.number.disabled)("formControl",a.number),e.R7$(),e.Y8G("disabled",a.stair.disabled)("formControl",a.stair),e.R7$(),e.Y8G("disabled",a.portal.disabled)("formControl",a.portal),e.R7$(),e.Y8G("disabled",a.floor.disabled)("formControl",a.floor),e.R7$(),e.Y8G("disabled",a.door.disabled)("formControl",a.door),e.R7$(5),e.Y8G("disabled",a.checkDisabledValidateAddress()),e.R7$(),e.Y8G("ngIf",a.addressValidated&&a.addressValidated.codigoVia||a.isSuggestedAddress),e.R7$(),e.Y8G("ngIf",a.addressValidated&&!a.addressValidated.codigoVia||a.isSuggestedAddress),e.R7$(5),e.Y8G("disabled",!a.radioOptionAddressNormalized[0].checked&&!a.radioOptionAddressNoNormalized[0].checked))},dependencies:[o.bT,d.BC,d.l_,c.xb,c.TK,c.zq,c.EW,c.n2],styles:['@font-face{font-family:SenticoSansDT-Regular;src:url(senticosansdt-regular-webfont.d94004a1b23e3df1.woff) format("woff")}@font-face{font-family:SenticoSansDT-Medium;src:url(senticosansdt-medium-webfont.c5b2d7eb68544886.woff) format("woff")}
1@font-face{font-family:ForeverFormaBodyText-Medium;src:url(ForeverFormaBodyText-Medium.f3663669762293ea.woff2) format("woff2")}@font-face{font-family:ForeverFormaBodyText-Regular;src:url(ForeverFormaBodyText-Regular.f8c0ee18ccd27ab9.woff2) format("woff2")}@font-face{font-family:ForeverFormaHeading-Regular;src:url(ForeverFormaHeading-Regular.31c11af6e197e473.woff2) format("woff2")}@font-face{font-family:ForeverFormaHeading-Medium;src:url(ForeverFormaHeading-Medium.75d19a6f4d66e19e.woff2) format("woff2")}@font-face{font-family:ForeverFormaBodyText-Bold;src:url(ForeverFormaBodyText-Bold.204589d4179acc84.woff2) format("woff2")}[_nghost-%COMP%]{--theme-image-loader: url(loader-san-small-v2.c42e1d99f0f9c67b.gif)}#modal-select-type-address[_ngcontent-%COMP%]{color:#281805}#modal-select-type-address[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{padding:0 46px;font-size:24px;line-height:1.17;text-align:center;margin-bottom:15px}@media (max-width: 355px){#modal-select-type-address[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{padding:0 22px}}#modal-select-type-address[_ngcontent-%COMP%] .modal-text[_ngcontent-%COMP%]{line-height:1.38}#modal-select-type-address[_ngcontent-%COMP%] .select-all-container[_ngcontent-%COMP%]{display:flex;gap:19px;margin-bottom:16px}#modal-select-type-address[_ngcontent-%COMP%] .select-all-container__label[_ngcontent-%COMP%]{font-weight:600}#modal-select-type-address[_ngcontent-%COMP%] .select-coverages-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;column-gap:20px;row-gap:7px;margin-bottom:8px}@media (max-width: 355px){#modal-select-type-address[_ngcontent-%COMP%] .select-coverages-container[_ngcontent-%COMP%]{grid-template-columns:1fr;margin-bottom:26px}}#modal-select-type-address[_ngcontent-%COMP%] .modal-buttons[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between;margin-top:13px;padding:0 10px 5px}@media all and (max-width: 355px){#modal-select-type-address[_ngcontent-%COMP%] .modal-buttons[_ngcontent-%COMP%]{flex-direction:column-reverse;align-items:center}#modal-select-type-address[_ngcontent-%COMP%] .modal-buttons[_ngcontent-%COMP%] aeg-button[_ngcontent-%COMP%]:nth-child(2){margin-bottom:15px}}#modal-change-address[_ngcontent-%COMP%]{max-height:calc(100vh - 200px);color:#281805;padding-left:1px}@media (max-width: 576px){#modal-change-address[_ngcontent-%COMP%]{max-height:calc(100vh - 60px)}}#modal-change-address[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{font-size:26px;text-align:left;
1font-family:ForeverFormaHeading-Medium;margin-bottom:15px}#modal-change-address[_ngcontent-%COMP%] .text-reminder[_ngcontent-%COMP%]{margin-bottom:20px}#modal-change-address[_ngcontent-%COMP%] .text-reminder[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--theme-link-color, #641ee0)}#modal-change-address[_ngcontent-%COMP%] .box-1[_ngcontent-%COMP%]{margin-bottom:30px}#modal-change-address[_ngcontent-%COMP%] .box-2[_ngcontent-%COMP%]{display:flex;gap:30px;margin-bottom:30px;margin-top:-10px}@media (max-width: 355px){#modal-change-address[_ngcontent-%COMP%] .box-2[_ngcontent-%COMP%]{flex-wrap:wrap}}#modal-change-address[_ngcontent-%COMP%] .box-2[_ngcontent-%COMP%] aeg-input[_ngcontent-%COMP%]{margin-top:10px}#modal-change-address[_ngcontent-%COMP%] .box-3[_ngcontent-%COMP%]{display:flex;gap:30px;margin-top:-10px;margin-bottom:30px}#modal-change-address[_ngcontent-%COMP%] .box-3[_ngcontent-%COMP%] aeg-input[_ngcontent-%COMP%]{margin-top:10px}@media (max-width: 355px){#modal-change-address[_ngcontent-%COMP%] .box-3[_ngcontent-%COMP%]{flex-wrap:wrap}#modal-change-address[_ngcontent-%COMP%] .box-3[_ngcontent-%COMP%] aeg-input[_ngcontent-%COMP%]{width:100%!important}}#modal-change-address[_ngcontent-%COMP%] .box-4[_ngcontent-%COMP%]{margin-bottom:20px;display:grid;justify-content:start;grid-template-columns:repeat(3,auto);column-gap:30px;row-gap:25px}@media (max-width: 355px){#modal-change-address[_ngcontent-%COMP%] .box-4[_ngcontent-%COMP%]{grid-template-columns:repeat(2,auto)}}#modal-change-address[_ngcontent-%COMP%] .check-address-container__title[_ngcontent-%COMP%]{font-family:
1ForeverFormaHeading-Medium;margin-bottom:20px}#modal-change-address[_ngcontent-%COMP%] .check-address-container__button[_ngcontent-%COMP%]{width:100%;display:grid;justify-content:center;margin-bottom:20px;padding:0 10px 5px}@media all and (max-width: 355px){#modal-change-address[_ngcontent-%COMP%] .check-address-container__button[_ngcontent-%COMP%]{justify-content:normal}}#modal-change-address[_ngcontent-%COMP%] .check-address-container__correct-address[_ngcontent-%COMP%]{background-color:#dfeedd}#modal-change-address[_ngcontent-%COMP%] .check-address-container__incorrect-address[_ngcontent-%COMP%]{background-color:#f7c9c9;margin:5px 0 20px}#modal-change-address[_ngcontent-%COMP%] .check-address-container__correct-address[_ngcontent-%COMP%], #modal-change-address[_ngcontent-%COMP%] .check-address-container__incorrect-address[_ngcontent-%COMP%]{border-radius:5px;padding:5px 0 15px 5px;font-weight:600}#modal-change-address[_ngcontent-%COMP%] .check-address-container__correct-address__title[_ngcontent-%COMP%], #modal-change-address[_ngcontent-%COMP%] .check-address-container__incorrect-address__title[_ngcontent-%COMP%]{font-size:14px;font-weight:600;margin-bottom:15px}#modal-change-address[_ngcontent-%COMP%] .check-address-container__correct-address__box[_ngcontent-%COMP%], #modal-change-address[_ngcontent-%COMP%] .check-address-container__incorrect-address__box[_ngcontent-%COMP%]{display:flex;align-items:center;padding-left:5px}#modal-change-address[_ngcontent-%COMP%] .check-address-container__correct-address__box[_ngcontent-%COMP%] p[_ngcontent-%COMP%], #modal-change-address[_ngcontent-%COMP%] .check-address-container__incorrect-address__box[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}#modal-change-address[_ngcontent-%COMP%] .link-gdpr[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;margin:20px 0}#modal-change-address[_ngcontent-%COMP%] .modal-buttons[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:flex-end;gap:15px;margin-top:13px}@media all and (max-width: 355px){#modal-change-address[_ngcontent-%COMP%] .modal-buttons[_ngcontent-%COMP%]{flex-direction:column-reverse}#modal-change-address[_ngcontent-%COMP%] .modal-buttons[_ngcontent-%COMP%] aeg-button[_ngcontent-%COMP%]:nth-child(2){margin-bottom:15px}}#modal-change-address[_ngcontent-%COMP%] .politic[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;border:none;background:none;
1font-family:ForeverFormaHeading-Medium;font-size:16px;color:var(--theme-link-color, #641ee0);text-decoration:underline;padding:0;cursor:pointer}']})}}return n})(),ne=(()=>{class n{constructor(){this.cancel=new e.bkB,this._alive$=new b.B7}ngOnInit(){}cancelModal(){this.cancel.emit()}ngOnDestroy(){this._alive$.next(!1),this._alive$.complete()}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-modal-change-address-santander"]],outputs:{cancel:"cancel"},decls:13,vars:0,consts:[["id","modal-change-address-santander"],[1,"modal-title"],[1,"modal-img-container"],[1,"modal-img-subcontainer"],["src","assets/images/undraw-home-settings-re-pkya.webp","alt","home_settings",1,"modal-img"],[1,"text-body"],[1,"modal-buttons"],["variant","primary","size","small","label","Entendido",3,"click"]],template:function(i,a){1&i&&(e.j41(0,"div",0)(1,"p",1),e.EFF(2,"C\xf3mo realizar tu cambio de direcci\xf3n"),e.k0s(),e.j41(3,"div",2)(4,"div",3),e.nrm(5,"img",4),e.k0s()(),e.j41(6,"p",5),e.EFF(7,"Es necesario que contactes con "),e.j41(8,"strong"),e.EFF(9,"Superl\xednea Santander"),e.k0s(),e.EFF(10," en el tel\xe9fono 915 123 123."),e.k0s(),e.j41(11,"div",6)(12,"aeg-button",7),e.bIt("click",function(){return a.cancelModal()}),e.k0s()()())},dependencies:[c.xb],styles:["#modal-change-address-santander[_ngcontent-%COMP%]{color:#4a4a4a}#modal-change-address-santander[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{padding:0 46px;font-size:24px;line-height:1.17;text-align:center;margin-bottom:15px;font-family:SenticoSansDT-Medium}@media (max-width: 355px){#modal-change-address-santander[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{padding:0 22px}}#modal-change-address-santander[_ngcontent-%COMP%] .text-body[_ngcontent-%COMP%]{margin:20px 6px 20px 2px;font-family:SenticoSansDT-Medium;font-size:16px;font-weight:400;font-style:normal;line-height:1.25;letter-spacing:normal;text-align:center}#modal-change-address-santander[_ngcontent-%COMP%] .modal-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:16px;margin-top:24px}#modal-change-address-santander[_ngcontent-%COMP%] .modal-img-container[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center}#modal-change-address-santander[_ngcontent-%COMP%] .modal-img-container[_ngcontent-%COMP%] .modal-img-subcontainer[_ngcontent-%COMP%]{width:156px}#modal-change-address-santander[_ngcontent-%COMP%] .modal-img-container[_ngcontent-%COMP%] .modal-img-subcontainer[_ngcontent-%COMP%] .modal-img[_ngcontent-%COMP%]{width:100%}#modal-change-address-santander[_ngcontent-%COMP%] .modal-buttons[_ngcontent-%COMP%]{width:100%;display:flex;margin:20px 40px 0 0;padding:8px 26px 7px;border-radius:10px;justify-content:center}@media all and (max-width: 355px){#modal-change-address-santander[_ngcontent-%COMP%] .modal-buttons[_ngcontent-%COMP%]{flex-direction:column-reverse}#modal-change-address-santander[_ngcontent-%COMP%] .modal-buttons[_ngcontent-%COMP%] aeg-button[_ngcontent-%COMP%]:nth-child(2){margin-bottom:15px}}"]})}}return n})();var ie=s(94921),oe=s(11823);const le=n=>({"new-width":n}),S=n=>({disabled:n}),se=n=>({"negative-margin-top":n});function re(n,r){1&n&&e.nrm(0,"app-banner",28),2&n&&e.Y8G("title","Mi cuenta")("subtitle","Gestiona los datos de acceso a tu \xe1rea cliente y de contacto")("activeSubThemeName","mi-cuenta")("subtitleFontSize","16px")}function de(n,r){if(1&n&&(e.j41(0,"p",61),e.EFF(1),e.nI1(2,"formatName"),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.SpI(" ",e.bMT(2,1,t.client.name)," ")}}function ce(n,r){if(1&n&&(e.j41(0,"span",62),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.SpI(" ",t.usuario," ")}}function me(n,r){if(1&n&&(e.j41(0,"span",63),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.SpI(" ",e.i5U(2,1,t.client.birthDateTime,"d/MM/y")," ")}}function ue(n,r){if(1&n&&(e.j41(0,"div",48)(1,"div",49),e.nrm(2,"div",50),e.k0s(),e.j41(3,"div",51),e.DNE(4,de,3,3,"p",52),e.j41(5,"div",53)(6,"div",54)(7,"div",55)(8,"span",56),e.EFF(9),e.k0s(),e.nrm(10,"aeg-tooltip",57),e.k0s(),e.DNE(11,ce,2,1,"span",58),e.k0s(),e.j41(12,"div",59)(13,"span",56),e.EFF(14,"Fecha de nacimiento"),e.k0s(),e.DNE(15,me,3,4,"span",60),e.k0s()()()()),2&n){const t=e.XpG(2);e.R7$(4),e.Y8G("ngIf",t.client.name),e.R7$(5),e.JRh(t.titleDocument),e.R7$(2),e.Y8G("ngIf",t.usuario),e.R7$(4),e.Y8G("ngIf",t.client.birthDateTime)}}function pe(n,r){if(1&n){const t=e.RV6();e.j41(0,"img",72),e.bIt("click",function(){e.eBV(t);const a=e.XpG(4);return e.Njj(a.openModalEditBankNumber(!0))}),e.k0s()}if(2&n){const t=e.XpG(4);e.Y8G("ngClass",e.eq3(1,S,!t.hasPermissionToEditBankNumber))}}function he(n,r){1&n&&e.nrm(0,"aeg-tooltip",73)}function ge(n,r){1&n&&e.nrm(0,"aeg-tooltip",74)}function _e(n,r){if(1&n&&(e.qex(0),e.j41(1,"div",34)(2,"span",66),e.EFF(3,"N\xfamero de cuenta"),e.k0s(),e.DNE(4,pe,1,3,"img",67)(5,he,1,0,"aeg-tooltip",68)(6,ge,1,0,"aeg-tooltip",37),e.k0s(),e.j41(7,"div",69)(8,"div",70)(9,"span",71),e.EFF(10),e.k0s()()(),e.bVm()),2&n){const t=e.XpG(3);e.R7$(4),e.Y8G("ngIf",t.canEditCCC&&!t.allSantanderPolicies&&t.loaderPermissions),e.R7$(),e.Y8G("ngIf","250-123"===t.allPoliciesInfo[0].details.product.code),e.R7$(),e.Y8G("ngIf",!t.canEditCCC&&t.loaderPermissions&&!t.allSantanderPolicies),e.R7$(4),e.SpI(" ",t.allPoliciesInfo[0].payments.bankData," ")}}function fe(n,r){if(1&n){const t=e.RV6();e.j41(0,"img",79),e.bIt("click",function(){e.eBV(t);const a=e.XpG(4);return e.Njj(a.openModalEditBankNumber(!0))}),e.k0s()}if(2&n){const t=e.XpG(4);e.Y8G("ngClass",e.eq3(1,S,!t.hasPermissionToEditBankNumber))}}function ve(n,r){1&n&&e.nrm(0,"aeg-tooltip",74)}function be(n,r){1&n&&e.nrm(0,"aeg-tooltip",85)}function Ce(n,r){if(1&n&&(e.j41(0,"div",71)(1,"div",80)(2,"div",81)(3,"span",82),e.EFF(4),e.nI1(5,"titlecase"),e.k0s(),e.DNE(6,be,1,0,"aeg-tooltip",83),e.k0s(),e.j41(7,"span",84),e.EFF(8),e.k0s()()()),2&n){const t=r.$implicit;e.R7$(4),e.JRh(e.bMT(5,4,t.details.product.description)),e.R7$(2),e.Y8G("ngIf","250-123"===t.details.product.code),e.R7$(),e.Y8G("ngClass",e.eq3(6,se,"250-123"===t.details.product.code)),e.R7$(),e.SpI(" ",t.payments.bankData," ")}}function xe(n,r){if(1&n&&(e.j41(0,"div",34)(1,"span",66),e.EFF(2,"N\xfamero de cuenta"),e.k0s(),e.DNE(3,fe,1,3,"img",75)(4,ve,1,0,"aeg-tooltip",37),e.k0s(),e.j41(5,"div",76)(6,"div",77),e.DNE(7,Ce,9,8,"div",78),e.k0s()()),2&n){const t=e.XpG(3);e.R7$(3),e.Y8G("ngIf",t.canEditCCC&&t.loaderPermissions&&!t.allSantanderPolicies),e.R7$(),e.Y8G("ngIf",!t.canEditCCC&&t.loaderPermissions&&!t.allSantanderPolicies),e.R7$(3),e.Y8G("ngForOf",t.allPoliciesInfo)}}function Me(n,r){if(1&n&&(e.j41(0,"div",64),e.DNE(1,_e,11,4,"ng-container",65)(2,xe,8,3,"ng-template",null,0,e.C5r),e.k0s()),2&n){const t=e.sdS(3),i=e.XpG(2);e.R7$(),e.Y8G("ngIf",1===(null==i.allPoliciesInfo?null:i.allPoliciesInfo.length))("ngIfElse",t)}}function Ee(n,r){if(1&n){const t=e.RV6();e.j41(0,"img",45),e.bIt("click",function(){e.eBV(t);const a=e.XpG(2);return e.Njj(a.openModalEditEmailPhone(!0))}),e.k0s()}}function Ae(n,r){1&n&&e.nrm(0,"aeg-tooltip",74)}function Pe(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",29),e.DNE(1,ue,16,4,"div",30)(2,Me,4,2,"div",31),e.j41(3,"div",32)(4,"div",33)(5,"div",34)(6,"span",35),e.EFF(7,"Datos de contacto"),e.k0s(),e.DNE(8,Ee,1,0,"img",36)(9,Ae,1,0,"aeg-tooltip",37),e.k0s(),e.j41(10,"div",38)(11,"div",39)(12,"span",40),e.EFF(13,"Tel\xe9fono"),e.k0s(),e.j41(14,"span",41),e.EFF(15),e.k0s()(),e.j41(16,"div",42)(17,"span",40),e.EFF(18,"E-mail"),e.k0s(),e.j41(19,"span",41),e.EFF(20),e.k0s()()()(),e.j41(21,"div",43)(22,"span",44),e.EFF(23,"Acceso"),e.k0s(),e.j41(24,"img",45),e.bIt("click",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.openModalEditPassword(!0))}),e.k0s(),e.j41(25,"div",46)(26,"span",40),e.EFF(27,"Contrase\xf1a"),e.k0s(),e.j41(28,"span",47),e.EFF(29,"*********"),e.k0s()()()()()}if(2&n){const t=e.XpG();e.Y8G("ngClass",e.eq3(7,le,t.sidenavActive)),e.R7$(),e.Y8G("ngIf",t.client&&t.contact),e.R7$(),e.Y8G("ngIf",t.isHI),e.R7$(6),e.Y8G("ngIf",t.canEditContact&&t.loaderPermissions),e.R7$(),e.Y8G("ngIf",!t.canEditContact&&t.loaderPermissions),e.R7$(6),e.SpI(" ",t.auxPhone?t.auxPhone:""," "),e.R7$(5),e.SpI(" ",t.auxEmail?t.auxEmail:""," ")}}function Oe(n,r){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"app-modal-change-address",86),e.bIt("cancel",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.openModalEditAddress(!1))})("openModalGdprEmitter",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.openModalGdpr(!0))}),e.k0s(),e.bVm()}if(2&n){const t=e.XpG();e.R7$(),e.Y8G("hasSantanderPoliciesMessage",t.hasSantanderPolicies)}}function Ie(n,r){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"app-modal-change-address-santander",87),e.bIt("cancel",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.openModalEditAddressSantander(!1))}),e.k0s(),e.bVm()}}function Re(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",13)(1,"div",14)(2,"p"),e.EFF(3,"Modificar datos de contacto"),e.k0s()(),e.j41(4,"div",88)(5,"aeg-input",89),e.bIt("keydown",function(a){e.eBV(t);const l=e.XpG();return e.Njj(l.validateKeyPhone(a))})("inputChage",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.validFieldsP())}),e.k0s()(),e.j41(6,"div",16)(7,"aeg-input",90),e.bIt("inputChage",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.validFieldsP())}),e.k0s()(),e.j41(8,"div",16)(9,"aeg-input",91),e.bIt("paste",function(a){e.eBV(t);const l=e.XpG();return e.Njj(l.denyEmailPaste(a))})("inputChage",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.validFieldsP())}),e.k0s()(),e.j41(10,"span",92),e.bIt("click",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.openModalGdprInEdit(!0))}),e.EFF(11,"Pol\xedtica de protecci\xf3n de datos"),e.k0s(),e.j41(12,"div",22)(13,"aeg-button",23),e.bIt("click",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.openModalEditEmailPhone(!1))}),e.k0s(),e.j41(14,"aeg-button",93),e.bIt("click",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.savePhoneAndEmail())}),e.k0s()()()}if(2&n){const t=e.XpG();
1e.R7$(5),e.Y8G("formControl",t.phoneControl)("errorMessages",t.errorMessagesPhone)("defaultChangeDetectionStrategy",!0),e.R7$(2),e.Y8G("formControl",t.emailControl)("errorMessages",t.errorMessagesEmail)("defaultChangeDetectionStrategy",!0),e.R7$(2),e.Y8G("formControl",t.confirmedEmailControl)("errorMessages",t.errorMessagesEmailType2)("defaultChangeDetectionStrategy",!0),e.R7$(5),e.Y8G("disabled",t.statusBoton)("width",t.modalSizeContact?"260px":"142px")}}function we(n,r){if(1&n){const t=e.RV6();e.j41(0,"app-modal-data-protection",94),e.bIt("closeModalDataProtection",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.openModalGdprInEdit(!1))}),e.k0s()}if(2&n){const t=e.XpG();e.Y8G("modalDataProtection",t.modalDataProtection)}}function ke(n,r){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"app-modal-change-bank-number",95),e.bIt("cancel",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.openModalEditBankNumber(!1))})("openModalGdprEmitter",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.openModalGdprContact(!0))})("openModalRequestInProgressEmitter",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.openModalRequestInProgressEmitter(!0))})("errorModal",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.errorModalBankChange())})("hideModal",function(a){e.eBV(t);const l=e.XpG();return e.Njj(l.hideModal(a))})("fileErrorEvent",function(a){e.eBV(t);const l=e.XpG();return e.Njj(l.hideModalFileError(a))}
1),e.k0s(),e.j41(2,"app-modal-data-protection",96),e.bIt("closeModalDataProtection",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.openModalGdprContact(!1))}),e.k0s(),e.bVm()}if(2&n){const t=e.XpG();e.R7$(),e.Y8G("hidden",t.showModalGdprBankData),e.R7$(),e.Y8G("hidden",!t.showModalGdprBankData)("modalDataProtection",t.modalDataProtection)}}function Te(n,r){if(1&n){const t=e.RV6();e.j41(0,"aeg-modal",97),e.nI1(1,"secure"),e.nI1(2,"async"),e.bIt("closeModal",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.showModalFileError=!1)}),e.k0s()}if(2&n){const t=e.XpG();e.Y8G("hidden",!t.showModalFileError)("showModal",t.showModalFileError)("title",t.modalFileError.titulo)("image",!0)("imageUrl",e.bMT(2,8,e.bMT(1,6,t.modalFileError.imagen)))("text",t.modalFileError.texto)}}function Se(n,r){if(1&n){const t=e.RV6();e.j41(0,"aeg-modal",4),e.bIt("closeModal",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.openModalGdpr(!1))}),e.j41(1,"app-modal-data-protection",94),e.bIt("closeModalDataProtection",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.openModalGdpr(!1))}),e.k0s()()}if(2&n){const t=e.XpG();e.Y8G("showModal",t.showModalGdpr)("isActiveNgContent",!0),e.R7$(),e.Y8G("modalDataProtection",t.modalDataProtection)}}function Ne(n,r){if(1&n){const t=e.RV6();e.j41(0,"aeg-modal",98),e.nI1(1,"secure"),e.nI1(2,"async"),e.bIt("closeModal",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.showModalPasswordChanged=!1)}),e.k0s()}if(2&n){const t=e.XpG();e.Y8G("showModal",t.showModalPasswordChanged)("title",t.modalPasswordChanged.titulo1)("image",!0)("imageUrl",e.bMT(2,7,e.bMT(1,5,t.modalPasswordChanged.imagen)))("text",t.modalPasswordChanged.texto1)}}function ye(n,r){if(1&n){const t=e.RV6();e.j41(0,"aeg-modal",98),e.nI1(1,"secure"),e.nI1(2,"async"),e.bIt("closeModal",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.closeModal())}),e.k0s()}if(2&n){const t=e.XpG();e.Y8G("showModal",t.showModalEmailChanged)("title",t.modalEmailChanged.titulo1)("image",!0)("imageUrl",e.bMT(2,7,e.bMT(1,5,t.modalEmailChanged.imagen)))("text",t.modalEmailChanged.texto1)}}function De(n,r){if(1&n){const t=e.RV6();e.j41(0,"aeg-modal",98),e.nI1(1,"secure"),e.nI1(2,"async"),e.bIt("closeModal",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.closeModal())}),e.k0s()}if(2&n){const t=e.XpG();e.Y8G("showModal",t.showModalPhoneChanged)("title",t.modalPhoneChanged.titulo1)("image",!0)("imageUrl",e.bMT(2,7,e.bMT(1,5,t.modalPhoneChanged.imagen)))("text",t.modalPhoneChanged.texto1)}}function Fe(n,r){if(1&n){const t=e.RV6();e.j41(0,"aeg-modal",98),e.nI1(1,"secure"),e.nI1(2,"async"),e.bIt("closeModal",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.closeModal())}),e.k0s()}if(2&n){const t=e.XpG();e.Y8G("showModal",t.showModalEmailAndPhoneChanged)("title",t.modalEmailAndPhoneChanged.titulo1)("image",!0)("imageUrl",e.bMT(2,7,e.bMT(1,5,t.modalEmailAndPhoneChanged.imagen)))("text",t.modalEmailAndPhoneChanged.texto1)}}function Ge(n,r){if(1&n){const t=e.RV6();e.j41(0,"aeg-modal",99),e.bIt("closeModal",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.showModalErrorSolicitud=!1)}),e.j41(1,"div",100)(2,"div",101)(3,"span"),e.EFF(4),e.k0s()(),e.nrm(5,"img",102),e.nI1(6,"secure"),e.nI1(7,"async"),e.j41(8,"div",103)(9,"p",104),e.EFF(10),e.k0s(),e.j41(11,"p",104),e.EFF(12),e.k0s()(),e.j41(13,"div",105)(14,"aeg-button",106),e.bIt("click",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.showModalErrorSolicitud=!1)}),e.k0s()()()()}if(2&n){const t=e.XpG();e.Y8G("showModal",t.showModalErrorSolicitud)("showPrimaryButton",!0)("isActiveNgContent",!0),e.R7$(4),e.JRh(t.titleModalError),e.R7$(),e.Y8G("src",e.bMT(7,9,e.bMT(6,7,t.modalErrorSolicitud.imagen)),e.B4B),e.R7$(5),e.JRh(t.textModalError1),e.R7$(2),e.JRh(t.textModalError2)}}function Be(n,r){1&n&&(e.j41(0,"div",101)(1,"span"),e.EFF(2,"Solicitud en curso"),e.k0s()())}function Le(n,r){1&n&&(e.j41(0,"div",112)(1,"span"),e.EFF(2,"Cambio realizado con \xe9xito"),e.k0s()())}function je(n,r){1&n&&(e.j41(0,"p"),e.EFF(1," Para modificar los datos de tu p\xf3liza contacta con Banco Santander 91 050 35 00. "),e.k0s())}function Ve(n,r){1&n&&(e.j41(0,"p")(1,"b"),e.EFF(2,"Recuerda"),e.k0s(),e.EFF(3,": el cambio no afectar\xe1 a recibos que ya est\xe9n emitidos antes de la solicitud y a las p\xf3lizas que no est\xe9n en vigor. "),e.k0s())}function ze(n,r){if(1&n){const t=e.RV6();e.j41(0,"aeg-modal",107),e.bIt("closeModal",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.showModalRequestInProgress=!1)})("confirm",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.showModalRequestInProgress=!1)}),e.j41(1,"div",100),e.DNE(2,Be,3,0,"div",108)(3,Le,3,0,"div",109),e.nrm(4,"img",110),e.j41(5,"div",103)(6,"p"),e.EFF(7),e.k0s(),e.DNE(8,je,2,0,"p",5)(9,Ve,4,0,"p",5),e.k0s(),e.j41(10,"div",105)(11,"aeg-button",111),e.bIt("click",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.showModalRequestInProgress=!1)}),e.k0s()()()()}if(2&n){const t=e.XpG();e.Y8G("showModal",t.showModalRequestInProgress)("image",!0)("showPrimaryButton",!0)("isActiveNgContent",!0),e.R7$(2),e.Y8G("ngIf",!t.contactChange),e.R7$(),e.Y8G("ngIf",t.contactChange),e.R7$(4),e.JRh(t.textModalContact),e.R7$(),e.Y8G("ngIf",t.hasSantanderPolicies&&t.contactChange&&t.isHI),e.R7$(),e.Y8G("ngIf",!t.contactChange)}}const Ue=[{path:"",component:(()=>{class n{constructor(t,i,a,l,p,Ke,Qe,qe,We,et){this.cmsService=t,this.principalService=i,this.permissionService=a,this.userService=l,this.breakpointObserver=p,this.gtmService=Ke,this.router=Qe,this.ngZone=qe,this.loginService=We,this._productThemeService=et,this.fileErrorEvent=ne
1w e.bkB,this.alive=new b.B7,this.EMAIL_ALREADY_IN_USE="Email already exist in database",this.isSantander=!1,this.policiesInfo=[],this.allPoliciesInfo=[],this.clientData=[],this.patchEmail=!1,this.patchPhone=!1,this.showFieldEmail=!1,this.showFieldPhone=!1,this.products=null,this.validClients=null,this.hasSantanderPolicies=!1,this.hasPermissionToEditBankNumber=!1,this.listModales=[],this.showModalEditEmailPhone=!1,this.showModalEditPassword=!1,this.showModalGdpr=!1,this.showModalPasswordChanged=!1,this.showModalEmailChanged=!1,this.showModalPhoneChanged=!1,this.showModalEmailAndPhoneChanged=!1,this.showModalEditBankNumber=!1,this.showModalErrorSolicitud=!1,this.showPrivacidadInEdit=!1,this.showModalEditAddress=!1,this.showModalEditAddressSantander=!1,this.showModalRequestInProgress=!1,this.auxEmail="",this.auxPhone="",this.emailEditValidado=!1,this.phoneEditValidado=!1,this.statusBoton=!0,this.showNotificationEditPassword=!1,this.writePermission=!1,this.phoneValidator=I,this.emailValidator=O.Bj,this.passwordPatternValidator=u.Sk,this.errorMessagesEmailType2=O.NF,this.errorMessagesPhone=R,this.errorMessagesPhoneType2=w,this.errorMessagesPassword=u.wf,this.errorMessagesPasswordType2=u.iD,this.phoneControl=new d.MJ({value:"",disabled:!1},[d.k0.required,this.phoneValidator]),this.emailControl=new d.MJ({value:"",disabled:!1},[d.k0.required,this.emailValidator]),this.confirmedEmailControl=new d.MJ({value:"",disabled:!1},[d.k0.required]),this.oldPasswordControl=new d.MJ({value:"",disabled:!1},[d.k0.required,this.passwordPatternValidator]),this.newPasswordControl=new d.MJ({value:"",disabled:!1},[d.k0.required,this.passwordPatternValidator]),this.newPasswordRepeatControl=new d.MJ({value:"",disabled:!1},[d.k0.required]),this.loaderPermissions=!1,this.showModalGdprBankData=!1,this.tootltipAlign=!1,this.isHI=!1,this.contactChange=!1,this.hideModalBank=!1,this.showModalFileError=!1,this.titleModalError=E.OH,this.textModalError1=E.Fe,this.textModalError2=E._8,this.activeThemeName="",this.activeThemeName=this._productThemeService.calculateProductTheme()}ngOnInit(){this.callCMS(),this.errorMessagesEmail=O.fU,this.errorMessagesEmail.emailAlreadyExists="El email ya est\xe1 asociado a otra cuenta, introduce otro distinto.",this.userService.getPermissionSuplemment
1("changeAccount").subscribe(t=>{this.canEditCCC=t.data.permissions[0].value,this.loaderPermissions=!0}),this.userService.getPermissionSuplemment("changeContactData").subscribe(t=>{this.canEditContact=t.data.permissions[0].value,this.loaderPermissions=!0}),this.newPasswordControl.valueChanges.subscribe(t=>{""===t&&""===this.newPasswordRepeatControl.value||this.newPasswordRepeatControl.setErrors(t!==this.newPasswordRepeatControl.value?{passwordNotMatch:!0}:null)}),this.newPasswordRepeatControl.valueChanges.subscribe(t=>{""===t&&""===this.newPasswordControl.value||this.newPasswordRepeatControl.setErrors(t!==this.newPasswordControl.value?{passwordNotMatch:!0}:null)}),this.emailControl.valueChanges.subscribe(t=>{""===t&&""===this.confirmedEmailControl.value||this.confirmedEmailControl.setErrors(t!==this.confirmedEmailControl.value?{emailsNotMatch:!0}:null)}),this.confirmedEmailControl.valueChanges.subscribe(t=>{""===t&&""===this.emailControl.value||this.confirmedEmailControl.setErrors(t!==this.emailControl.value?{emailsNotMatch:!0}:null)}),this.getCredentials(),this.principalService.getChangeProduct().pipe((0,m.Q)(this.alive)).subscribe(t=>{t&&(this.principalService.setLoaderBlocker(!0),this.changingProduct())}),this.cmsService.getRelationsByContentTitle("ac-pagina-mi-cuenta","ACPaginaMiCuenta").subscribe(t=>{this.info=t[0],this.listModales=this.cmsService.getValor(t,g.XV.AC_MI_CUENTA,g.TG.LOGIN_MODAL),this.cmsService.getRelationsById(this.listModales[0].identifier).subscribe(()=>{this.listModales.forEach(i=>{switch(i.title){case g.NZ.PRIVACY_POLICY:this.modalDataProtection=i;break;case g.NZ.REQUEST_ERROR:this.modalErrorSolicitud=i;break;case g.NZ.PASSWORD_CHANGED_OK:this.modalPasswordChanged=i;break;case g.NZ.EMAIL_CHANGED_OK:this.modalEmailChanged=i;break;case g.NZ.PHONE_CHANGED_OK:this.modalPhoneChanged=i;break;case g.NZ.EMAIL_AND_PHONE_CHANGED_OK:this.modalEmailAndPhoneChanged=i}})}),this.loadClientInfo()}),this.breakpointObserver.observe(["(max-width: 768px)","(max-width: 550px)","(max-width: 460px)"]).pipe((0,m.Q)(this.alive)).subscribe(t=>{const i=Object.entries(t.breakpoints);t.matches?i.forEach(a=>{"(max-width: 768px)"===a[0]&&a[1]&&(this.showMovil=a[1],this.textLinkFoto="Editar foto"),"(max-width: 460px)"===a[0]&&a[1]&&(this.textLinkFoto="Foto")}):(this.showMovil=!1,this.textLinkFoto="Editar foto")}),this.breakpointObserver.observe(["(max-width: 550px)"]).pipe((0,m.Q)(this.alive)).subscribe(t=>{t.matches?(this.modalSizeContact=!0,this.titleDocument="Documento de Identidad"):(this.modalSizeContact=!1,this.titleDocument="Documento de Identidad")}),this.breakpointObserver.observe(["(max-width: 950px)"]).pipe((0,m.Q)(this.alive)).subscribe(t=>{this.tootltipAlign=!!t.matches})}ngOnDestroy(){this.alive.next(!0),this.alive.unsubscribe()}callCMS(){this.cmsService.getRelationsByContentTitle("escribenos","AreaPrivadaEscribenos").subscribe({next:t=>{const i=this.cmsService.getValor(t,g.XV.AREA_PRIVADA_ESCRIBENOS,g.TG.MODALES_TARJETAS);this.modalFileError=i.find(a=>"error-archivo"===a.title)}})}changingProduct(){this.writePermission=this.permissionService.checkPermissions([f.e.PERSONAL_DATA_WRITE]),this.principalService.setLoaderBlocker(!1)}getCredentials(){this.principalService.getSessionItem("products");const i=this.principalService.getSessionItem("cid"),a=this.principalService.getLocalItem("userComplete");if(i&&a){this.usuario=a;const l=this.principalService.getSessionItem("holderAndIsured");l&&(this.userIsTomador="I"!=l?"tomador":"asegurado",this.gtmNavigationEvent()),this.writePermission=this.permissionService.checkPermissions([f.e.PERSONAL_DATA_WRITE])}}loadClientInfo(){const t=this.principalService.getSessionItem("clientDetails");if(t){this.client=t,this.userType=this.principalService.getSessionItem("userType"),this.isSantander=this.principalService.getSessionItem("isSantander"),this.contact=t.contact,this.codUser=this.principalService.getSessionItem("codUser"),this.policiesInfo=this.loginService.getPoliciesInfo(),this.allPoliciesInfo=this.principalService.getSessionItem("policies"),this.products=this.principalService.getSessionItem("products"),this.validClients=this.principalService.getSessionItem("validClients"),this.checkHasSantanderPolicies();const i=this.principalService.getSessionItem("email");
1i?(this.emailControl.setValue(i),this.auxEmail=i,this.showFieldEmail=""!=i):this.refreshGetClientByID();const a=this.principalService.getSessionItem("phone");a?(this.phoneControl.setValue(a),this.auxPhone=a,this.showFieldPhone=""!=a):this.refreshGetClientByID()}else this.refreshGetClientByID();this.getPermissionsToEdit(),this.checkIsHI(),this.checkPoliciesIsured(),this.allPoliciesSantander()}refreshGetClientByID(){const t=this.principalService.getSessionItem("codUser");this.userService.getUser(t).subscribe(i=>{const a=i.data["get-user-by-id"].user.email,l=i.data["get-user-by-id"].user.phone;a&&(this.emailControl.setValue(a),this.auxEmail=a,this.showFieldEmail=""!=a),l&&(this.phoneControl.setValue(l),this.auxPhone=l,this.showFieldPhone=""!=l),this.principalService.setSessionItem("email",a),this.principalService.setSessionItem("phone",l),this.patchEmail=!1,this.patchPhone=!1},i=>{200!==i.error.status.code&&(this.showModalErrorSolicitud=!0)})}openModalEditEmailPhone(t){this.gtmActionEvent({event:"editar",tipoGestion:"miCuenta",editar:"datosContacto"}),this.showModalEditEmailPhone=t,this.showModalEditEmailPhone&&(this.statusBoton=!0),!1===t?(this.phoneControl.setValue(this.auxPhone),this.emailControl.setValue(this.auxEmail)):this.confirmedEmailControl.reset(),this.showPrivacidadInEdit=!1}openModalEditPassword(t){this.gtmActionEvent({event:"editar",tipoGestion:"miCuenta",editar:"contrasena"}),this.showModalEditPassword=t}savePhoneAndEmail(){this.emailControl.value!==this.auxEmail?this.emailControl.valid?this.patchEmail=!0:this.statusBoton=!0:this.patchEmail=!1,this.phoneControl.value!==this.auxPhone?this.phoneControl.valid?this.patchPhone=!0:this.statusBoton=!0:this.patchPhone=!1,this.patchEmailPhone(this.patchEmail,this.patchPhone),this.showModalEditEmailPhone=!1}validFieldsP(){let t=!1;this.phoneControl.value!==this.auxPhone&&(this.statusBoton=!this.phoneControl.valid&&(t=!0)),this.confirmedEmailControl.value&&""!==this.confirmedEmailControl.value&&this.emailControl.value!==this.confirmedEmailControl.value&&(this.statusBoton=!0),this.confirmedEmailControl.value===this.auxEmail&&(this.statusBoton=!0),this.emailControl.value!==this.auxEmail&&(this.statusBoton=!(this.emailControl.value!=this.auxEmail&&this.emailControl.valid&&this.confirmedEmailControl.valid&&!t))}openModalGdpr(t){this.showModalGdpr=t}openModalGdprContact(t){this.showModalGdprBankData=t}openModalGdprInEdit(t){this.showPrivacidadInEdit=t}savePassword(){this.patchFieldPassword(),this.showModalEditPassword=!1}checkPasswordButton(){return!this.oldPasswordControl.valid||!this.newPasswordControl.valid||!this.newPasswordRepeatControl.valid}setEmailAlreadyInUse(){this.lastEmailTried=this.emailControl.value,this.emailControl.setErrors({emailAlreadyExists:!0}),this.showModalEditEmailPhone=!0}patchEmailPhone(t,i){this.principalService.setLoaderBlocker(!0),this.statusBoton=!0,t&&i?this.userService.patchEditEmailPhone(this.codUser,this.emailControl.value,this.phoneControl.value).subscribe(a=>{200===a.status.code&&(this.statusBoton=!1,this.showModalEditEmailPhone=!1,this.principalService.setSessionItem("email",this.emailControl.value),this.principalService.setSessionItem("phone",this.phoneControl.value),this.gtmActionEvent({event:"editarOk",tipoGestion:"miCuenta",editar:"datosContacto"}),this.refreshGetClientByID(),this.checkPoliciesContactChange()?this.patchEmailPhoneNapSupplement():this.changeContactSantanderUser())},a=>{this.statusBoton=!1,this.principalService.setLoaderBlocker(!1),"Email already exist in database"===a.error.status.description?this.setEmailAlreadyInUse():this.showModalErrorSolicitud=!0}):!t||i?!t&&i&&this.userService.patchEditEmailPhone(this.codUser,"",this.phoneControl.value).subscribe({next:a=>{200==a.status.code&&(this.statusBoton=!1,this.principalService.setSessionItem("phone",this.phoneControl.value),this.gtmActionEvent({event:"editarOk",tipoGestion:"miCuenta",editar:"datosContacto"}),this.refreshGetClientByID(),this.checkPoliciesContactChange()?this.patchEmailPhoneNapSupplement():this.changeContactSantanderUser())},error:()=>{this.statusBoton=!1,this.principalService.setLoaderBlocker(!1),this.showModalErrorSolicitud=!0}}):this.userService.patchEditEmailPhone(this.codUser,this.emailControl.value,"").subscribe(a=>{200===a.status.code&&(this.statusBoton=!1,this.principalService.setSessionItem("email",this.emailControl.value),this.gtmActionEvent({event:"editarOk",tipoGestion:"miCuenta",editar:"datosContacto"}),this.refreshGetClientByID(),this.checkPoliciesContactChange()?this.patchEmailPhoneNapSupplement():this.changeContactSantanderUser())},a=>{this.statusBoton=!1,this.principalService.setLoaderBlocker(!1),"Email already exist in database"===a.error.status.description?this.setEmailAlreadyInUse():this.showModalErrorSolicitud=!0})}checkPoliciesContactChange(){const t=this.products.every(a=>"250-123"===a.product.code);return!!this.products.some(a=>"250-123"===a.product.code&&"I"===a.holderAndIsured)||!t}validateKeyPhone(t){["Backspace","ArrowLeft","ArrowRight","Tab","Delete"].includes(t.key)||(
1/^[0-9]$/.test(t.key)||t.preventDefault(),this.phoneControl.value.length>=9&&t.preventDefault())}changeContactSantanderUser(){this.principalService.setLoaderBlocker(!1),this.showModalRequestInProgress=!0,this.contactChange=!0,this.textModalContact="Tus datos han sido actualizados en tu \xe1rea de cliente."}patchEmailPhoneNapSupplement(){const i={products:this.products.filter(a=>"250-123"!==a.product.code||"I"===a.holderAndIsured).map(a=>({policyNumber:a.numPolicy,origin:this.validClients.find(l=>l.id===a.idClient)?.company,code:a.product.code,baseProduct:a.product.baseProduct,bouquet:a.product.bouquet,clientPolicy:a.holderAndIsured})),contactData:{favoriteContactType:"",email:this.emailControl.value===this.auxEmail||""===this.emailControl.value?null:this.emailControl.value,telephones:this.phoneControl.value===this.auxPhone||""===this.phoneControl.value?[]:[{phoneNumber:this.phoneControl.value,phoneType:"",phonePrefix:""}]}};this.userService.patchEditEmailPhoneNapSupplement(i).pipe((0,m.Q)(this.alive)).subscribe({next:()=>{this.principalService.setLoaderBlocker(!1),this.showModalRequestInProgress=!0,this.canEditContact=!1,this.contactChange=!0,this.textModalContact="Tus datos han sido actualizados. Este cambio solo aplica a tus p\xf3lizas en vigor."},error:()=>{this.statusBoton=!1,this.principalService.setLoaderBlocker(!1),this.showModalErrorSolicitud=!0}})}disableModals(){this.showModalPhoneChanged=!1,this.showModalEmailChanged=!1,this.showModalEmailAndPhoneChanged=!1}closeModal(){this.disableModals(),this.ngZone.run(()=>{setTimeout(()=>{this.router.navigate(["/mi-cuenta"]),document.body.style.overflowY="scroll"},400)})}patchFieldPassword(){this.principalService.setLoaderBlocker(!0),this.userService.patchEditPassword(this.oldPasswordControl.value,this.newPasswordControl.value,this.codUser).subscribe({next:t=>{200==t.status.code&&(this.oldPasswordControl.reset(),this.newPasswordControl.reset(),this.newPasswordRepeatControl.reset(),this.gtmActionEvent({event:"editarOk",tipoGestion:"miCuenta",editar:"contrasena"}),this.principalService.setLoaderBlocker(!1),this.showModalPasswordChanged=!0)},error:()=>{this.oldPasswordControl.reset(),this.newPasswordControl.reset(),this.newPasswordRepeatControl.reset(),this.principalService.setLoaderBlocker(!1),this.showModalErrorSolicitud=!0}})}gtmActionEvent(t){this.gtmService.setGoogleTagObject(t)}gtmNavigationEvent(){const t={event:"ApSitePageLoad",pageType:"areaPrivada",deviceType:this.gtmService.getDeviceType(),webProfile:"clientes",pageModel:"home",siteSection:"miCuenta"};this.gtmService.setGoogleTagObject(t)}openModalEditAddress(t){this.checkHasOnlySantanderPolicies()?this.openModalEditAddressSantander(t):this.showModalEditAddress=t}openModalEditAddressSantander(t){this.showModalEditAddressSantander=t}openModalEditBankNumber(t){this.hideModalBank=!1,this.showModalFileError=!1,this.showModalEditBankNumber=t}denyEmailPaste(t){t.preventDefault()}checkHasSantanderPolicies(){this.hasSantanderPolicies=this.products.some(t=>"250-123"===t.product.code)}getPermissionsToEdit(){this.hasPermissionToEditBankNumber=this.products.some(t=>"250-123"!==t.product.code&&"I"!==t.holderAndIsured)}checkHasOnlySantanderPolicies(){return this.hasSantanderPolicies=this.products.every(t=>"250-123"===t.product.code)}allPoliciesSantander(){this.allSantanderPolicies=this.products.every(t=>"250-123"===t.product.code)}checkIsHI(){this.isHI=this.products.some(t=>"HI"===t.holderAndIsured||"H"===t.holderAndIsured)}hideModal(t){this.hideModalBank=t,this.principalService.setLoaderBlocker(!0)}hideModalFileError(t){this.showModalFileError=t}errorModalBankChange(){this.principalService.setLoaderBlocker(!1),this.showModalEditBankNumber=!1,this.showModalErrorSolicitud=!0}checkPoliciesIsured(){this.allPoliciesInfo=this.allPoliciesInfo.filter(t=>this.products.some(i=>"I"!=i.holderAndIsured&&t.details.numPolicy===i.numPolicy)),this.allPoliciesInfo.map(t=>{t.payments.bankData=this.formatBankData(t.payments.bankData)})}formatBankData(t){return t.replace("****************","*** **** ** *****")}openModalRequestInProgressEmitter(t){this.principalService.setLoaderBlocker(!1),this.showModalRequestInProgress=t,this.contactChange=!1,this.textModalContact="En breve tus datos ser\xe1n actualizados",this.canEditCCC=!1}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(h.x),e.rXU(C.Y),e.rXU(f.K),e.rXU(_.D),e.rXU(k.QP),e.rXU(N.A),e.rXU(x.Ix),e.rXU(e.SKi),e.rXU(y.H),e.rXU(D.w))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-mi-cuenta"]],outputs:{fileErrorEvent:"fileErrorEvent"},decls:40,vars:37,consts:[["multiplePolicies",""],["imageUrl","assets/images/Rebranding/perfilUser/img-banner-perfil.svg",3,"title","subtitle","activeSubThemeName","subtitleFontSize",4,"ngIf"],[1,"fondo-mi-cuenta"],["class","cuadro-mi-cuenta",3,"ngClass",4,"ngIf"],[3,"closeModal","showModal","isActiveNgContent"],[4,"ngIf"],["id","ng-modal",3,"closeModal","showModal","isActiveNgContent","size"],["class","ng-modal",4,"ngIf"],[3,"modalDataProtection","closeModalDataProtection",4,"ngIf"],["id","ng-modal",3,"closeModal","showModal","isActiveNgContent","size","hidden"],["size","small",3,"hidden","showModal","title","image","imageUrl","text","closeModal",4,"ngIf"],[3,"showModal","isActiveNgContent","closeModal",4,"ngIf"],["id","ng-modal",3,"closeModal","showModal","isActiveNgContent"],[1,"ng-modal"],[1,"ng-modal__title"],[1,"ng-modal__subtitle"],[1,"ng-modal__input"],["type","password","width","100%","label","Contrase\xf1a actual",3,"formControl","errorMessages"],[1,"ng-modal__subtitle","new-password-sub"],[1,"ng-modal__input","new-password"],["type","password","customBehaviour","password","width","100%","label","Nueva contrase\xf1a",3,"formControl","errorMessages"],["type","password","width","100%","label","Confirmar contrase\xf1a",3,"formControl","errorMessages"],[1,"ng-modal__buttons"],["variant","tertiary","size","small","label","volver","type","submit","textStyle","capitalize",3,"click"],["variant","primary","size","small","label","guardar","type","submit","textStyle","capitalize","iconOrientation","right","icon","../../assets/images/SVG/Objects-Tools/24px/arrow-forward.svg",3,"click","disabled"],["size","small",3,"showModal","title","image","imageUrl","text","closeModal",4,"ngIf"],["size","standard","width","272px","labelPrimaryButton","Entendido",3,"showModal","showPrimaryButton","isActiveNgContent","closeModal",4,"ngIf"],["size","small","labelPrimaryButton","Entendido",3,"showModal","image","showPrimaryButton","isActiveNgContent","closeModal","confirm",4,"ngIf"],["imageUrl","assets/images/Rebranding/perfilUser/img-banner-perfil.svg",3,"title","subtitle","activeSubThemeName","subtitleFontSize"],[1,"cuadro-mi-cuenta",3,"ngClass"],["class","content-perfil-mi-cuenta",4,"ngIf"],["id","datosCuenta",4,"ngIf"],[1,"content-datos-edit-mi-cuenta"],[1,"content-datos-contactos-mi-cuenta"],[1,"policies-bank-account"],[1,"titulo-datos-contacto-mi-cuenta"],["class","img-lapiz-mi-cuenta2","src","assets/images/Rebranding/formATC/icono-l-piz-editar.svg",3,"click",4,"ngIf"],["textTooltip","Edici\xf3n bloqueada hasta la finalizaci\xf3n de la solicitud de modificaci\xf3n que est\xe1 en curso.","tooltipAlign","center","class","margin-left-tooltip-bank",4,"ngIf"],[1,"content-datos-perfil-edit"],[1,"content-datos-perfil-edit-mi-cuenta"],[1,"titulo-datos-mi-cuenta3"],[1,"texto-datos-mi-cuenta"],[1,"content-datos-perfil-edit-mi-cuenta2"],[1,"content-acceso-mi-cuenta"],[1,"titulo-datos-contacto-mi-cuenta3"],["src","assets/images/Rebranding/formATC/icono-l-piz-editar.svg",1,"img-lapiz-mi-cuenta2",3,"click"],[1,"content-datos-perfil-edit-mi-cuenta3"],[1,"texto-datos-mi-cuenta3"],[1,"content-perfil-mi-cuenta"],[1,"content-img-mi-cuenta"],[1,"img-perfil-mi-cuenta"],[1,"content-datos-mi-cuenta"],["class","nombre-cliente-mi-cuenta",4,"ngIf"],[1,"content-datos-mi-cuenta-content"],[1,"content-datos-perfil-mi-cuenta","content-document-tooltip"],[1,"documento-texto-tooltip"],[1,"titulo-datos-mi-cuenta"],["textTooltip","Para modificar este dato, contacta con Servicio al Cliente en el <a href='tel:91 563 20 00'>91 563 20 00</a>","tooltipAlign","center",1,"tooltip-bank"],["class","texto-datos-mi-cuenta-documento",4,"ngIf"],["id","datosFechaNac",1,"content-datos-perfil-mi-cuenta"],["id","textotFechaNac","class","texto-datos-mi-cuenta-date",4,"ngIf"],[1,"nombre-cliente-mi-cuenta"],[1,"texto-datos-mi-cuenta-documento"],["id","textotFechaNac",1,"texto-datos-mi-cuenta-date"],["id","datosCuenta"],[4,"ngIf","ngIfElse"],[1,"titulo-datos-mi-cuenta2"],["class","img-lapiz-mi-cuenta2","src","assets/images/Rebranding/formATC/icono-l-piz-editar.svg","alt","img-lapiz-mi-cuenta2",3,"ngClass","click",4,"ngIf"],["textTooltip","Para modificar tu n\xfamero de cuenta contacta con Banco Santander tel:91 050 35 00.","tooltipAlign","right","class","margin-left-tooltip-bank margin-top-tooltip-bank",4,"ngIf"],["id","polizas-bank"],[1,"diver"],["id","textoPolizas",1,"texto-datos-mi-cuenta-polizas"],["src","assets/images/Rebranding/formATC/icono-l-piz-editar.svg","alt","img-lapiz-mi-cuenta2",1,"img-lapiz-mi-cuenta2",3,"click","ngClass"],["textTooltip","Para modificar tu n\xfamero de cuenta contacta con Banco Santander tel:91 050 35 00.","tooltipAlign","right",1,"margin-left-tooltip-bank","margin-top-tooltip-bank"],["textTooltip","Edici\xf3n bloqueada hasta la finalizaci\xf3n de la solicitud de modificaci\xf3n que est\xe1 en curso.","tooltipAlign","center",1,"margin-left-tooltip-bank"],["class","img-lapiz-mi-cuenta2","src","assets/images/Rebranding/formATC/icono-l-piz-editar.svg",3,"ngClass","click",4,"ngIf"],["id","polizass"],["
1id","polizas-bank2"],["id","textoPolizas","class","texto-datos-mi-cuenta-polizas",4,"ngFor","ngForOf"],["src","assets/images/Rebranding/formATC/icono-l-piz-editar.svg",1,"img-lapiz-mi-cuenta2",3,"click","ngClass"],[1,"dive"],[1,"tooltip_conto"],[1,"bank-account-mobile"],["textTooltip","Para modificar tu n\xfamero de cuenta contacta con Banco Santander tel:91 050 35 00.","tooltipAlign","right","class","tooltip-banks",4,"ngIf"],[3,"ngClass"],["textTooltip","Para modificar tu n\xfamero de cuenta contacta con Banco Santander tel:91 050 35 00.","tooltipAlign","right",1,"tooltip-banks"],[3,"cancel","openModalGdprEmitter","hasSantanderPoliciesMessage"],[3,"cancel"],[1,"ng-modal__input","modal-phone-input"],["width","100%","label","Tel\xe9fono","type","number","helper","S\xf3lo n\xfameros nacionales",3,"keydown","inputChage","formControl","errorMessages","defaultChangeDetectionStrategy"],["width","100%","label","Email","helper","[email protected]",3,"inputChage","formControl","errorMessages","defaultChangeDetectionStrategy"],["width","100%","label","Confirma tu email","helper","[email protected]",3,"paste","inputChage","formControl","errorMessages","defaultChangeDetectionStrategy"],[1,"politic",3,"click"],["size","small","iconOrientation","right","icon","../../assets/images/SVG/Objects-Tools/24px/arrow-forward.svg","variant","primary","label","guardar","type","submit","textStyle","capitalize",3,"click","disabled","width"],[3,"closeModalDataProtection","modalDataProtection"],[3,"cancel","openModalGdprEmitter","openModalRequestInProgressEmitter","errorModal","hideModal","fileErrorEvent","hidden"],[3,"closeModalDataProtection","hidden","modalDataProtection"],["size","small",3,"closeModal","hidden","showModal","title","image","imageUrl","text"],["size","small",3,"closeModal","showModal","title","image","imageUrl","text"],["size","standard","width","272px","labelPrimaryButton","Entendido",3,"closeModal","showModal","showPrimaryButton","isActiveNgContent"],[1,"modal-vertical-okko"],[1,"title-modal-okko"],[1,"image-modal-okko",3,"src"],[1,"text-modal-okko"],[1,"text-modal-error"],[1,"button-modal-okko"],["variant","primary","size","small","label","entendido","type","submit","textStyle","capitalize","width","213px",3,"click"],["size","small","labelPrimaryButton","Entendido",3,"closeModal","confirm","showModal","image","showPrimaryButton","isActiveNgContent"],["class","title-modal-okko",4,"ngIf"],["class","title-modal-okko title-big",4,"ngIf"],["src","assets/images/like.png",1,"image-modal-okko"],["variant","primary","textStyle","capitalize","size","small","label","entendido","type","submit",3,"click"],[1,"title-modal-okko","title-big"]],template:function(i,a){1&i&&(e.DNE(0,re,1,4,"app-banner",1),e.j41(1,"div",2),e.DNE(2,Pe,30,9,"div",3),e.k0s(),e.j41(3,"aeg-modal",4),e.bIt("closeModal",function(){return a.openModalEditAddress(!1)}),e.DNE(4,Oe,2,1,"ng-container",5),e.k0s(),e.j41(5,"aeg-modal",4),e.bIt("closeModal",function(){return a.openModalEditAddressSantander(!1)}),e.DNE(6,Ie,2,0,"ng-container",5),e.k0s(),e.j41(7,"aeg-modal",6),e.bIt("closeModal",function(){return a.openModalEditEmailPhone(!1)}),e.DNE(8,Re,15,11,"div",7)(9,we,1,1,"app-modal-data-protection",8),e.k0s(),e.j41(10,"aeg-modal",9),e.bIt("closeModal",function(){return a.openModalEditBankNumber(!1)}),e.DNE(11,ke,3,3,"ng-container",5),e.k0s(),e.DNE(12,Te,3,10,"aeg-modal",10)(13,Se,2,3,"aeg-modal",11),e.j41(14,"aeg-modal",12),e.bIt("closeModal",function(){return a.openModalEditPassword(!1)}),e.j41(15,"div",13)(16,"div",14)(17,"p"),e.EFF(18,"Crear nueva contrase\xf1a"),e.k0s()(),e.j41(19,"div",15)(20,"p"),e.EFF(21,"Por seguridad, escribe tu actual contrase\xf1a"),e.k0s()(),e.j41(22,"div",16),e.nrm(23,"aeg-input",17),e.k0s(),e.j41(24,"div",18)(25,"p"),e.EFF(26,"Por favor, escribe y repite tu nueva contrase\xf1a"),e.k0s()(),e.j41(27,"div",19),e.nrm(28,"aeg-input",20),e.k0s(),e.j41(29,"div",16),e.nrm(30,"aeg-input",21),e.k0s(),e.j41(31,"div",22)(32,"aeg-button",23),e.bIt("click",function(){return a.openModalEditPassword(!1)}),e.k0s(),e.j41(33,"aeg-button",24),e.bIt("click",function(){return a.savePassword()}),e.k0s()()()(),e.DNE(34,Ne,3,9,"aeg-modal",25)(35,ye,3,9,"aeg-modal",25)(36,De,3,9,"aeg-modal",25)(37,Fe,3,9,"aeg-modal",25)(38,Ge,15,11,"aeg-modal",26)(39,ze,12,9,"aeg-modal",27)),2&i&&(e.Y8G("ngIf",a.client&&a.contact),e.R7$(),e.HbH(a.activeThemeName),e.R7$(),e.Y8G("ngIf",a.client&&a.contact),e.R7$(),e.Y8G("showModal",a.showModalEditAddress)("isActiveNgContent",!0),e.R7$(),e.Y8G("ngIf",a.showModalEditAddress),e.R7$(),e.Y8G("showModal",a.showModalEditAddressSantander)("isActiveNgContent",!0),e.R7$(),e.Y8G("ngIf",a.showModalEditAddressSantander),e.R7$(),e.Y8G("showModal",a.showModalEditEmailPhone)("isActiveNgContent",!0)("size",a.modalSizeContact?"small":"standard"),e.R7$(),e.Y8G("ngIf",!a.showPrivacidadInEdit),e.R7$(),e.Y8G("ngIf",a.showPrivacidadInEdit),e.R7$(),e.Y8G("showModal",a.showModalEditBankNumber)("isActiveNgContent",!0)("size",a.modalSizeContact?"small":"standard")("hidden",a.hideModalBank||a.showModalFileError),e.R7$(),e.Y8G("ngIf",a.showModalEditBankNumber),e.R7$(),e.Y8G("ngIf",a.modalFileError),e.R7$(),e.Y8G("ngIf",a.modalDataProtection),e.R7$(),e.Y8G("showModal",a.showModalEditPassword)("isActiveNgContent",!0),e.R7$(9),e.Y8G("formControl",a.oldPasswordControl)("errorMessages",a.errorMessagesPasswordType2),e.R7$(5),e.Y8G("formControl",a.newPasswordControl)("errorMessages",a.errorMessagesPasswordType2),e.R7$(2),e.Y8G("formControl",a.newPasswordRepeatControl)("errorMessages",a.errorMessagesPassword),e.R7$(3),e.Y8G("disabled",a.checkPasswordButton()),e.R7$(),e.Y8G("ngIf",a.showModalPasswordChanged),e.R7$(),e.Y8G("ngIf",a.showModalEmailChanged),e.R7$(),e.Y8G("ngIf",a.showModalPhoneChanged),e.R7$(),e.Y8G("ngIf",a.showModalEmailAndPhoneChanged),e.R7$(),e.Y8G("ngIf",a.showModalErrorSolicitud),e.R7$(),e.Y8G("ngIf",a.showModalRequestInProgress))},dependencies:[o.YU,o.Sq,o.bT,d.BC,d.l_,F.a,c.M3,c.xb,G.K,c.TK,c.IQ,V,ae,ne,o.Jj,o.PV,o.vh,ie.i,oe.v],styles:[':host{--theme-image-loader: url(loader-san-small-v2.c42e
11d99f0f9c67b.gif)}@font-face{font-family:SenticoSansDT-Regular;src:url(senticosansdt-regular-webfont.d94004a1b23e3df1.woff) format("woff")}@font-face{font-family:SenticoSansDT-Medium;src:url(senticosansdt-medium-webfont.c5b2d7eb68544886.woff) format("woff")}@font-face{font-family:ForeverFormaBodyText-Medium;src:url(ForeverFormaBodyText-Medium.f3663669762293ea.woff2) format("woff2")}@font-face{font-family:ForeverFormaBodyText-Regular;src:url(ForeverFormaBodyText-Regular.f8c0ee18ccd27ab9.woff2) format("woff2")}@font-face{font-family:ForeverFormaHeading-Regular;src:url(ForeverFormaHeading-Regular.31c11af6e197e473.woff2) format("woff2")}@font-face{font-family:ForeverFormaHeading-Medium;src:url(ForeverFormaHeading-Medium.75d19a6f4d66e19e.woff2) format("woff2")}@font-face{font-family:ForeverFormaBodyText-Bold;src:url(ForeverFormaBodyText-Bold.204589d4179acc84.woff2) format("woff2")}.p-indent-left{text-indent:-1em;margin-bottom:0;padding:1em}.modal-vertical-okko{display:flex;flex-direction:column;align-items:center;margin-top:20px}.modal-vertical-okko .title-modal-okko{width:100%;font-size:26px;line-height:1.17;letter-spacing:normal;text-align:start;color:#281805;
1font-family:ForeverFormaBodyText-Medium}.modal-vertical-okko .text-modal-okko{align-self:flex-start;margin-top:15px;margin-bottom:20px;row-gap:20px;font-size:16px;display:flex;flex-direction:column}.modal-vertical-okko .image-modal-okko{width:195.8px;height:auto;margin:0 auto;display:block}.modal-vertical-okko .button-modal-okko{margin-bottom:3%;text-align:end;width:100%}.spinner{background-color:#fff6;justify-content:center;align-items:center;position:absolute;z-index:1000;display:flex;height:100%;top:0;left:230px;width:calc(100% - 230px)}@media all and (max-width: 1023px){.spinner{left:0;width:100%}}.spinner__loading{height:250px}.fondo-mi-cuenta{justify-content:center;width:100%;overflow-x:hidden}p{margin-bottom:0}.cuadro-mi-cuenta{width:100%}aeg-tooltip .aeg-tooltip__desktop ::ng-deep .icon{height:0px!important}.content-text-mi-cuenta{width:100%}.texto-titulo-mi-cuenta{width:100%;height:auto;font-size:40px;line-height:1.1;margin-bottom:22px;text-align:left}.texto-subtitulo-mi-cuenta{width:100%;height:auto;font-size:16px;line-height:1.38;margin-bottom:34px;text-align:left}.content-perfil-mi-cuenta{display:inline-flex}.content-img-mi-cuenta{width:170px;min-width:170px;height:170px}.img-perfil-mi-cuenta{width:170px;height:170px;display:inline-block}.content-datos-mi-cuenta{display:flex;flex-direction:column;width:100%;margin-left:32px;text-align:left}.nombre-cliente-mi-cuenta{font-size:26px;line-height:1.17;
1font-family:ForeverFormaHeading-Medium;color:#281805;margin-bottom:30px}.content-datos-perfil-mi-cuenta{width:100%;display:flex;flex-direction:column}.content-document-tooltip{display:flex;flex-direction:column;align-items:flex-start;width:410px}#datosFechaNac{display:inline-flex}::ng-deep aeg-tooltip .icon{height:auto!important}.titulo-datos-mi-cuenta{font-family:ForeverFormaHeading-Medium;font-size:20px;width:217px;padding-bottom:0}.titulo-datos-mi-cuenta2{font-family:ForeverFormaHeading-Medium;font-size:20px;padding-bottom:0}.titulo-datos-mi-cuenta3{font-family:ForeverFormaHeading-Regular;font-size:20px;margin-top:-6px}.texto-datos-mi-cuenta{font-size:16px;max-width:245px;line-height:1.38;padding-top:10px}.texto-datos-mi-cuenta3{padding-bottom:5px;font-size:16px;max-width:245px;line-height:1.38;padding-top:10px}.texto-datos-mi-cuenta-date{font-size:16px;max-width:245px;line-height:1.38;padding-top:2px}.texto-datos-mi-cuenta-documento{font-size:16px;max-width:245px;line-height:1.38}#datosCuenta{margin-left:206px}.texto-datos-mi-cuenta-direccion,.texto-datos-mi-cuenta-cuenta{margin-top:.5rem;font-size:16px;max-width:245px;line-height:1.38}.texto-datos-mi-cuenta-polizas{margin-top:7px}.content-datos-edit-mi-cuenta{display:inline-flex;margin-top:41px;width:100%;column-gap:162px}.content-datos-mi-cuenta-content{width:100%;display:flex;flex-direction:row;gap:77px}.content-datos-perfil-edit{display:flex;align-items:flex-end;gap:90px}.content-datos-perfil-edit-mi-cuenta,.content-datos-perfil-edit-mi-cuenta2{margin-top:15px;display:flex;flex-direction:column}.content-datos-perfil-edit-mi-cuenta2 .titulo-datos-mi-cuenta3{margin-top:22px}.content-datos-perfil-edit-mi-cuenta3{font-size:20px;line-height:1.17;
1font-family:ForeverFormaHeading-Medium;display:flex;flex-direction:column;padding-top:22px}.content-datos-perfil-edit-mi-cuenta2{display:flex;flex-direction:column;margin-top:-7px}.content-datos-contactos-mi-cuenta{width:494px;margin-left:206px}.titulo-datos-contacto-mi-cuenta,.titulo-datos-contacto-mi-cuenta3{font-size:20px;line-height:1.17;font-family:ForeverFormaHeading-Medium}.img-lapiz-mi-cuenta2{margin-left:10px;margin-top:-7px;cursor:pointer}.policies-bank-account{display:flex;align-items:center}.margin-left-tooltip-bank{margin-left:5px}.margin-top-tooltip-bank{margin-top:3px}.content-acceso-mi-cuenta{width:270px;margin-top:5px}.input-movil-mi-cuenta,.input-email-mi-cuenta{width:320px;margin-right:auto;margin-top:20px}.link-politica-mi-cuenta{margin-top:20px}.button-guardarP-mi-cuenta{margin-top:30px;width:142px;margin-left:auto}.policies-bank-data{display:flex;align-items:center}.modal-contact-confirm{display:flex;flex-direction:column;align-items:center}.title-modal-contact{width:186px;height:28px;font-size:24px;line-height:1.17;letter-spacing:normal;text-align:center;color:var(--silver-dark)}.title-big{width:100%;margin-bottom:15%}.image-modal-contact{width:125.8px;height:119.7px;flex-grow:0;object-fit:contain}.text-modal-contact{text-align:center;margin-top:7%}.button-modal-contact{margin-bottom:3%}.documento-texto-tooltip{display:flex;align-items:center;flex-direction:row}.bank-account-mobile{display:flex;flex-direction:column;gap:10px}#polizas-bank2{display:flex;gap:16px}.dive{display:flex;flex-direction:column;gap:5px}.dive .tooltip_conto .bank-account-mobile{margin-left:-1px;display:flex;flex-direction:column;gap:10px;
1font-family:ForeverFormaHeading-Regular;font-size:20px}.tooltip_conto{display:flex;align-items:start}.negative-margin-top{margin-top:-8px}.multi-bank-account{display:flex}.tooltip-banks{margin:-3px 0 0!important}#ng-modal .ng-modal{display:flex;flex-direction:column;padding:30px 15px}#ng-modal .ng-modal__title p{font-family:ForeverFormaHeading-Medium;font-size:26px;line-height:1.17;width:100%;margin:0}@media all and (max-width: 355px){#ng-modal .ng-modal__title p{margin-top:30px}}#ng-modal .ng-modal__subtitle p{font-size:16px;line-height:1.25;margin:15px auto 0}#ng-modal .ng-modal__file-input{width:100%;margin-bottom:15px;margin-left:2px}@media all and (max-width: 550px){#ng-modal .ng-modal__file-input{width:100%}}#ng-modal .ng-modal aeg-link{margin-top:20px}#ng-modal .ng-modal__input{width:100%;margin-top:25px;margin-bottom:25px;margin-left:2px}#ng-modal .ng-modal__input .aeg-input__helpers{color:#281805;display:flex;justify-content:space-between;gap:10px;font-size:14px;padding:0!important}@media all and (max-width: 550px){#ng-modal .ng-modal__input{width:100%}}#ng-modal .ng-modal__polices{width:100%}#ng-modal .ng-modal__switch{display:flex;margin-bottom:20px;margin-top:20px}#ng-modal .ng-modal__span{margin-right:19px}#ng-modal .ng-modal__checkbox{display:flex;flex-direction:row;flex-wrap:wrap;gap:20px}@media all and (max-width: 355px){#ng-modal .ng-modal__checkbox{flex-direction:column}}#ng-modal .ng-modal__buttons{width:100%;display:flex;justify-content:flex-end;margin-top:20px;padding:0}#ng-modal .modal-back .box-modal-standard{width:auto!important;max-width:622px}#ng-modal .politic{display:flex;flex-direction:row;align-items:center;border:none;background:none;font-family:var(--regular-font);font-size:16px;margin-top:20px;padding:0;cursor:pointer;color:var(--theme-link-color, #641ee0);text-decoration:underline}#ng-modal .new-password-sub{margin-top:0}#ng-modal .new-password{margin-bottom:0}.modal-phone-input{width:175px!important;margin-right:auto;margin-left:1.5%!important}@media all and (max-width: 550px){.modal-phone-input{margin-left:2px!important}}.multi-bank-account{display:flex;align-items:center;height:30px}@media all and (max-width: 1095px){.content-datos-mi-cuenta-content{width:100%;display:flex;flex-direction:column;gap:34px}#datosCuenta{margin-left:206px;margin-top:40px}#polizas-bank2{display:flex;gap:20px;flex-direction:column}.content-datos-perfil-edit{display:flex;align-items:flex-start;gap:0px;flex-direction:column}.content-datos-edit-mi-cuenta{display:inline-flex;margin-top:41px;flex-direction:column}.content-datos-perfil-edit-mi-cuenta2{margin-top:15px;display:flex;flex-direction:column}.content-datos-perfil-edit-mi-cuenta3{margin-top:-7px;display:flex;flex-direction:column}.content-acceso-mi-cuenta{width:270px;margin-left:206px;margin-top:40px;margin-bottom:40px}
1.titulo-datos-mi-cuenta{font-family:ForeverFormaHeading-Regular;font-size:18px;width:217px}.titulo-datos-mi-cuenta{font-family:ForeverFormaHeading-Medium;font-size:18px;width:195px;margin-top:2px}.texto-datos-mi-cuenta{padding-left:0;font-size:16px;max-width:245px;line-height:1.38;padding-top:10px}.content-datos-perfil-edit-mi-cuenta{margin-top:15px;display:flex;flex-direction:column}}@media all and (max-width: 810px){.multi-bank-account{height:auto}}@media all and (max-width: 720px){.content-datos-contactos-mi-cuenta{width:312px}}@media all and (max-width: 590px){.content-document-tooltip{display:flex;flex-direction:column;align-items:flex-start}.texto-datos-mi-cuenta-documento{font-size:16px;max-width:245px;line-height:1.38;padding-left:0}.modal-back .box-modal-responsive{padding:40px 30px 30px!important;width:272px!important}}@media all and (max-width: 550px){.fondo-mi-cuenta{justify-content:normal}.ng-modal__buttons{width:272px!important;display:flex;justify-content:flex-end;margin-top:20px;padding:0}.texto-titulo-mi-cuenta{font-size:26px;line-height:1.15;margin-bottom:10px}.nombre-cliente-mi-cuenta{font-size:22px;line-height:1.17;
1font-family:ForeverFormaHeading-Medium;color:#281805;margin-bottom:0;width:148px;margin-top:20px;height:78px;margin-left:-13px}.content-datos-mi-cuenta-content{width:100%;display:flex;flex-direction:column;gap:30px;margin-left:-119px}.texto-subtitulo-mi-cuenta{font-size:16px;line-height:1.38;margin-bottom:20px}.content-img-mi-cuenta{width:102px;min-width:102px;height:102px;margin-left:-3px}.img-perfil-mi-cuenta{width:102px;height:102px;margin-left:3px}.content-datos-mi-cuenta{margin-left:20px;gap:30px}.nombre-cliente{width:150px;font-size:18px;line-height:1.33;font-weight:400}.titulo-datos-mi-cuenta{font-size:20px;line-height:1.38;width:223px}.texto-datos-mi-cuenta{font-size:16px;max-width:150px;padding-right:15px}#datosDireccion #textoDireccion{width:150px;margin-bottom:0;padding-left:0;margin-top:.5rem}#datosCuenta{margin-left:0;margin-top:30px}.content-datos-contactos-mi-cuenta{width:100%;margin-left:0}.titulo-datos-contacto-mi-cuenta{font-size:20px;line-height:1.4}.input-movil-mi-cuenta,.input-email-mi-cuenta{max-width:320px;width:100%}.content-datos-edit-mi-cuenta{display:grid;margin-top:30px}.content-acceso-mi-cuenta{margin-left:0;margin-top:30px;margin-bottom:30px}.content-datos-perfil-edit-mi-cuenta{margin-top:15px}.texto-datos-mi-cuenta-date{font-size:16px;max-width:245px;line-height:1.38;padding-left:0}.modal-vertical-okko .button-modal-okko{margin-top:30px;margin-bottom:3%;text-align:right}.modal-vertical-okko .text-modal-okko{margin-top:7%}.modal-vertical-okko .title-modal-okko{width:100%;font-size:24px;line-height:1.17;letter-spacing:normal;color:var(--silver-dark);margin-bottom:20px}.bank-account-mobile{display:flex;flex-direction:column}.dive .tooltip_conto .bank-account-mobile{margin-left:-1px;display:flex;flex-direction:column;gap:10px;
1font-family:ForeverFormaHeading-Regular;font-size:20px;padding-bottom:5px}.content-datos-perfil-edit-mi-cuenta2{margin-top:0;display:flex;flex-direction:column}.content-datos-perfil-edit{display:flex;align-items:flex-start;gap:0px;flex-direction:column}.content-datos-perfil-edit-mi-cuenta2 .titulo-datos-mi-cuenta3{margin-top:15px}#polizas-bank2{display:flex;gap:0px;flex-direction:column}#datosFechaNac{display:inline-flex;flex-direction:column;align-items:flex-start}}.aeg-loading--spinner-mi-cuenta{border:5px solid #f3f3f3;border-radius:50%;border-top:5px solid #ff9900;width:100px;height:100px;animation:spin 2s linear infinite;margin:100px auto}.aeg-tooltip__desktop__box{height:-moz-fit-content;height:fit-content;background-color:#fff;padding:16px;border-radius:6px;position:absolute;bottom:34px;text-align:start;box-shadow:0 1px 7px #4d4d4d80;width:281px!important;z-index:999}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.disabled{pointer-events:none;opacity:.5}.ng-modal-back{width:100%}.img-perfil-mi-cuenta:before{display:block;content:"";background-image:var(--theme-img-perfil);background-size:contain;background-repeat:no-repeat;background-position:center;width:100%;height:100%}\n'],encapsulation:2})}}return n})()}];let $e=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({imports:[x.iI.forChild(Ue),x.iI]})}}return n})();var Ye=s(17628),Xe=s(42944),He=s(33741),Je=s(68018);let Ze=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({imports:[o.MD,d.X1,d.YN,Je.h.forChild(),M.m_,$e,Ye.D,Xe._,He.u,c.ji,c.Rz,c.B$,c.w0,c.Ou,c.XO,c._$,c.m_,c.lZ,c.TK,c.xb,c.zq,c.M3,c.IQ,c.D,c.cf,c.EW,c.n2]})}}return n})()},72085:(P,v,s)=>{s.d(v,{c:()=>c});const c=[{value:"CALLE",label:"CALLE"},{value:"CRA3",label:"CARRERA"},{value:"AVDA",label:"AVENIDA"},{value:"BU",label:"BULEVAR"},{value:"PLAZA",label:"PLAZA"},{value:"PASEO",label:"PASEO"},{value:"TRAV",label:"Travesia"},{value:"AA",label:"ACERA"},{value:"AB",label:"ARBOLEDA"},{value:"AC",label:"APARTADO DE CORREOS"},{value:"AE",label:"AEROPUERTO"},{value:"AF",label:"ALQUERIA"},{value:"AG",label:"ANGOSTA"},{value:"AH",label:"ALTO"},{value:"AJ",label:"ATAJO"},{value:"AK",label:"PORTILLO"},{value:"AL",label:"ALAMEDA"},{value:"ALDEA",label:"ALDEA"},{value:"AM",label:"ACCES"},{value:"AN",label:"CANTON"},{value:"AO",label:"ALDAPA"},{value:"AP",label:"APARTAMENTO"},{value:"AQ",label:"ACEQUIA"},{value:"AR",label:"ARROYO"},{value:"ARRBL",label:"ARRABAL"},{value:"AS",label:"ACCESO"},{value:"AUT2",label:"AUTOVIA"},{value:"AUT",label:"AUTOPISTA"},{value:"AVDA2",label:"AVINGUDA"},{value:"AW",label:"AGREGADO"},{value:"AX",label:"ARRABAL"},{value:"AY",label:"ANDADOR"},{value:"AZ",label:"APARTAMENTS"},{value:"BARRI",label:"BARRI"},{value:"BB",label:"PASILLO"},{value:"BC",label:"APARTAMENTOS"},{value:"BDA",label:"BARRIADA"},{value:"BE",label:"ASSEGADOR"},{value:"BF",label:"ATALL"},{value:"BG",label:"ATALLO"},{value:"BH",label:"ATZUCAT"},{value:"BI",label:"AUZO"},{value:"BJ",label:"AUZOTEGUI"},{value:"BJDA",label:"BAJADA, ILLA"},{value:"BK",label:"AUZUNEA"},{value:"BLQ",label:"BLOQUE"},{value:"BO",label:"BARRIO"},{value:"BP",label:"BELENA"},{value:"BQ",label:"BIDE"},{value:"BR",label:"BIDEBIETA"},{value:"BRNCO",label:"BARRANCO"},{value:"BS",label:"BARREDUELA"},{value:"BT",label:"MEDIADOR"},{value:"BV",label:"BRAZAL"},{value:"BW",label:"CMNO HONDO"},{value:"BXDA",label:"BAIXADA"},{value:"BY",label:"CMNO NUEVO"},{value:"BZ",label:"CMNO VIEJO"},{value:"CA",label:"CARRETA"},{value:"12",label:"Apartado de Correos (santander)"},{value:"CAMI",label:"CAMI"},{value:"CARRE",label:"CARRER"},{value:"CAS",label:"CASA, CASETA"},{value:"CB",label:"COBERTIZO"},{value:"CC",label:"CENTRO COMERCIAL"},{value:"CF",label:"CERRO"},{value:"CG",label:"COLEGIO"},{value:"CH",label:"CHALET"},{value:"CJA",label:"CALLEJA, UELA"},{value:"CJON",label:"CALLEJON"},{value:"CJTO",label:"CONJUNTO"},{value:"CK",label:"CALLEJUELA"},{value:"CLLZO",label:"CALLIZO"},{value:"CMNO",label:"CAMINO"},{value:"CM\xd1O",label:"CAMI\xd1O"},{value:"CN",label:"COSTANILLA"},{value:"C\xd1",label:"CA\xd1ADA"},{value:"CNIA",label:"COLONIA"},{value:"CP",label:"CAMPA"},{value:"CRA2",label:"CORREDERA"},{value:"CRA",label:"CARRETERA"},{value:"CRO",label:"CARRERO"},{value:"CRRIL",label:"CARRIL"},{value:"CSRIO",label:"CASERIO"},{value:"CSTA",label:"CUESTA"},{value:"CTJO2",label:"CORTIJADA"},{value:"CTJO",label:"CORTIJO"},{value:"CU",label:"CORREGIDOR"},{value:"CV",label:"CAVA"},{value:"CXON",label:"CALLEXON"},{value:"CZ",label:"CALZADA"},{value:"DA",label:"CALLI"},{value:"DC",label:"CAMIN"},{value:"DD",label:"ANDEN"},{value:"DE",label:"CANTI\xd1O"},{value:"DF",label:"CANTO"},{value:"DG",label:"CARRERADA"},{value:"DH",label:"CARRERANY"},{value:"DI",label:"CANELLA"},{value:"DJ",label:"CINTURO"},{value:"DK",label:"CINYELL"},{value:"DL",label:"CIRCUNVALACIO"},{value:"DM",label:"DEMARCACION"},{value:"DN",label:"CANAL"},{value:"DO",label:"CALEYA"},{value:"DP",label:"DIPUTACION"},{value:"DQ",label:"CALLEJO"},{value:"DS",label:"DISEMINADOR"},{value:"DT",label:"COSTA"},{value:"DV",label:"CALEYON"},{value:"DX",label:"CANADA"},{value:"DY",label:"COMPLEXO"},{value:"DZ",label:"CORDEL"},{value:"EA",label:"ESCALERA"},{value:"EC",label:"ESCALINATA"},{value:"EDIF",label:"EDIFICIO"},{value:"EE",label:"CORRILLO"},{value:"EG",label:"CARRUA"},{value:"EH",label:"CORRALO"},{value:"EI",label:"CORREDORCILLO"},{value:"EJ",label:"CORREDOIRA"},{value:"EK",label:"CORREDOR"},{value:"EL",label:"CORRALILLO"},{value:"EN",label:"ENTRADA"},{value:"EO",label:"CARREIRO"},{value:"EP",label:"CORRIOL"},{value:"EQ",label:"CARRETIL"},{value:"ER",label:"CARRETERIN"},{value:"ES",label:"ESQUINA"},{value:"ESTDA",label:"ESTRADA"},{value:"ET",label:"CALEXON"},{value:"EU",label:"CONXUNTO"},{value:"EV",label:"CALZADAS"},{value:"EW",label:"DEMARCACIO"},{value:"EX",label:"EXPLANADA"},{value:"EXTR2",label:"EXTRAMUROS"},{value:"EXTR3",label:"DISEMINADO"},{value:"EXTR4",label:"DESPOBLADO"},{value:"EXTR",label:"EXTRARRADIO"},{value:"EY",label:"DRECERA"},{value:"EZ",label:"EIRADO"},{value:"FA",label:"ENPARANTZA"},{value:"FB",label:"ERREBAL"},{value:"FC",label:"FERROCARRIL"},{value:"FD",label:"ERREKA"},{value:"FE",label:"ERREPIDE"},{value:"FF",label:"ERRIBERA"},{value:"FG",label:"ESCULLERA"},{value:"FH",label:"ESPALDA"},{value:"FINCA",label:"FINCA"},{value:"FJ",label:"ETORBIDE"},{value:"FK",label:"ETXADI"},{value:"FL",label:"FALDA"},{value:"FM",label:"ETXARTE"},{value:"FO",label:"ETXATZE"},{value:"FP",label:"GAIN"}
1,{value:"FQ",label:"GORABIDE"},{value:"FR",label:"HEGI"},{value:"FS",label:"HIRIBIDE"},{value:"FT",label:"HONDARTZA"},{value:"FU",label:"IBILBIDE"},{value:"FV",label:"ILLA"},{value:"FW",label:"INDA"},{value:"FX",label:"JARDI"},{value:"FY",label:"KAI"},{value:"GA",label:"GALERIA"},{value:"GB",label:"KARRIKA"},{value:"GC",label:"KARRERA"},{value:"GD",label:"KARRICA"},{value:"GE",label:"KOSTA"},{value:"GF",label:"KARRIL"},{value:"GG",label:"LASTERBIDE"},{value:"GH",label:"LEKU"},{value:"GJ",label:"LORATEGIAK"},{value:"GK",label:"LORATEGI"},{value:"GLTA",label:"GLORIETA"},{value:"GM",label:"MAZO"},{value:"GN",label:"MENDI"},{value:"GO",label:"MOLL"},{value:"GP",label:"ONDARTZA"},{value:"GQ",label:"PARKE"},{value:"GR",label:"GRUPO"},{value:"GRUP",label:"GRUP"},{value:"GS",label:"PARTICULAR"},{value:"GT",label:"PAS"},{value:"GU",label:"PASAI"},{value:"GV",label:"GRAN VIA"},{value:"GW",label:"PASEABIDE"},{value:"GY",label:"PASSADIS"},{value:"HB",label:"PLA"},{value:"HD",label:"PONT"},{value:"HE",label:"PONTE"},{value:"HF",label:"PORT"},{value:"HG",label:"PRACI\xd1A"},{value:"HI",label:"PRAIA"},{value:"HK",label:"PARAXE"},{value:"HM",label:"PLATJA"},{value:"HN",label:"RABAL"},{value:"HO",label:"HOYA"},{value:"HP",label:"RACONADA"},{value:"HQ",label:"RACO"},{value:"HR",label:"RAMPAS"},{value:"HT",label:"HUERTA"},{value:"HU",label:"RINCONADA"},{value:"HV",label:"RECANTO"},{value:"HZ",label:"RUEIRO"},{value:"IA",label:"CANELLON"},{value:"IB",label:"CAVORCO"},{value:"IC",label:"CORGUI\xd1A"},{value:"ID",label:"CORREDORA"},{value:"IE",label:"SARBIDE"},{value:"IF",label:"POSTRIGO"},{value:"IG",label:"PORTON"},{value:"IH",label:"SENDER"},{value:"II",label:"SENDERA"},{value:"IJ",label:"ROTONDA"},{value:"IK",label:"SEKTORE"},{value:"IL",label:"SERVENTIA"},{value:"IM",label:"TALDE"},{value:"IN",label:"TOKI"},{value:"IP",label:"TORRENT"},{value:"IT",label:"TUNEL"},{value:"IU",label:"URBANITZACIO"},{value:"IV",label:"URBANIZACIO"},{value:"IX",label:"VENELA"},{value:"IY",label:"VIARANY"},{value:"IZ",label:"XARDIN"},{value:"JA",label:"JARDIN"},{value:"JB",label:"ZEARKALETA"},{value:"JC",label:"ZUBI"},{value:"JD",label:"ZUHAIZTI"},{value:"JE",label:"ZUMARDI"},{value:"JF",label:"HUERTO"},{value:"JG",label:"CORRAL"},{value:"JI",label:"MASIAS"},{value:"JJ",label:"CAMPO"},{value:"JK",label:"PUERTO"},{value:"JL",label:"CONCEJO"},{value:"JM",label:"DISEM"},{value:"JN",label:"AREA"},{value:"JO",label:"SALON"},{value:"JP",label:"EDIFICIOS"},{value:"JQ",label:"CINTURON"},{value:"JR",label:"JARDINES"},{value:"JS",label:"VECINDARIO"},{value:"JT",label:"CIRCUNVALACION"},{value:"JU",label:"CAMINO NUEVO"},{value:"JV",label:"CAMINO HONDO"},{value:"KALE",label:"KALE"},{value:"LA",label:"LADERA"},{value:"LD",label:"LADO"},{value:"LLOC",label:"LLOC"},{value:"LM",label:"LOMA"},{value:"LO",label:"LAGO"},{value:"LUGAR",label:"LUGAR"},{value:"MA",label:"PASADOR"},{value:"MASIA",label:"MASIA"},{value:"MASO",label:"MANSO"},{value:"MC",label:"MERCADO"},{value:"ME",label:"MALECON"},{value:"MI",label:"MIRADOR"},{value:"ML",label:"MUELLE"},{value:"MN",label:"MUNICIPIO"},{value:"MT",label:"MONTE"},{value:"MZ",label:"MANZANA"},{value:"ON",label:"CONTRAPUERTA"},{value:"OT",label:"OTROS CONCEPTOS"},{value:"PAGO",label:"PAGO"},{value:"PBDO",label:"POBLADO"},{value:"PC",label:"PARCELA"},{value:"PCTA",label:"PLACETA"},{value:"PD",label:"PORTADA"},{value:"PH",label:"PINAR"},{value:"PI",label:"POLIGONO INDUSTRIAL"},{value:"PJDA",label:"PUJADA"},{value:"PJE",label:"PASAJE"},{value:"PK",label:"PISTA"},{value:"PLA\xc7A",label:"PLA\xc7A"},{value:"PLACA",label:"PLACA"},{value:"PL",label:"POSTIGO"},{value:"PN",label:"PUENTE"},{value:"POLIG",label:"POLIGONO"},{value:"PO",label:"PASADIZO"},{value:"PP",label:"PORTICO"},{value:"PQUE",label:"PARQUE"},{value:"PRAZA",label:"PRAZA"},{value:"PRJE",label:"PARAJE"},{value:"PROL",label:"PROLONGACION"},{value:"PSAXE",label:"PASAXE"},{value:"PSEIG",label:"PASSEIG"},{value:"PTDA",label:"PARTIDA"},{value:"PTGE2",label:"PARATGE"},{value:"PTGE",label:"PASSATGE"},{value:"PT",label:"PUERTA"},{value:"PY",label:"PLAYA"},{value:"PZLA2",label:"PLAZUELA"},{value:"PZLA",label:"Plazuela"},{value:"PZTA",label:"PLAZOLETA"},{value:"QT",label:"QUINTA"},{value:"QV",label:"CUEVA"},{value:"RA",label:"RAMPA"},{value:"RAVAL",label:"RAVAL"},{value:"RBLA",label:"RAMBLA"},{value:"RC",label:"RINCON"},{value:"RE",label:"REGATO"},{value:"RESID",label:"RESIDENCIAL"},{value:"RIERA",label:"Riera"},{value:"RI",label:"RIBERA"},{value:"RM",label:"RAMAL"},{value:"RONDA",label:"RONDA"},{value:"RUA",label:"RUA"},{value:"RUELA",label:"RUELA"},{value:"SC",label:"SECTOR"},{value:"SENDA",label:"SENDA"},{value:"SL",label:"SALIDA"},{value:"SN",label:"SENDERO"},{value:"SO",label:"PORTAL"},{value:"SR",label:"SOLAR"},{value:"SUBIDA",label:"SUBIDA"},{value:"TN",label:"TERRENOS"}
1,{value:"TO",label:"TORRENTE"},{value:"TRANS",label:"TRANSVERSAL"},{value:"TRAV2",label:"TRAVESSERA"},{value:"TRAV3",label:"TRAVESSIA"},{value:"TRAV4",label:"TRAVESA"},{value:"TSRA",label:"TRASERA"},{value:"TS",label:"TRANSITO"},{value:"URB",label:"URBANIZACION"},{value:"VA",label:"VALLE"},{value:"VD",label:"VIADUCTO"},{value:"VENAT",label:"VEINAT"},{value:"VG",label:"VEGA"},{value:"VIA",label:"VIA"},{value:"VJ",label:"CAMINO VIEJO"},{value:"VL",label:"VIAL"},{value:"VP",label:"VIA PUBLICA"},{value:"VREDA",label:"VEREDA"},{value:"ZONA",label:"ZONA"},{value:"ZZ",label:"DESCONOCIDA"}]},27791:(P,v,s)=>{s.d(v,{K:()=>x});var c=s(45312),d=s(95006),o=s(54438),M=s(21626);let x=(()=>{class e{constructor(m){this._httpClient=m,this.CHARSET_DYD="UTF-8"}searchAddressDYD(m){return this.get(`/callejeros/domicilios?search=${encodeURIComponent(`${m.roadType.code} ${m.roadName} ${m.number} ${m.postalCode} ${m.townDescription}`)}`).pipe((0,d.T)(g=>g.data))}searchRoadNameByNameAndTownCode(m,f){return this.get(`/callejeros/vias?search=${encodeURIComponent(m)}&cityCode=${f}`).pipe((0,d.T)(g=>g.data.vias||[]))}get(m,f=null){return this._httpClient.get(`${c.c.newApi}${m}`,{responseType:"arraybuffer",headers:{"X-IBM-Client-Id":`${c.c.newCS}`},params:f}).pipe((0,d.T)(g=>this.decode(g)))}decode(m){const f=new TextDecoder(this.CHARSET_DYD);return JSON.parse(f.decode(m))}static{this.\u0275fac=function(f){return new(f||e)(o.KVO(M.Qq))}}static{this.\u0275prov=o.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})()},87739:(P,v,s)=>{s.d(v,{Bj:()=>c,Fc:()=>d,Iv:()=>M,NF:()=>x,fU:()=>o});const c=e=>null===e.value||""===e.value||!e.dirty||/^(?!.*(?:no-reply|no_reply|noreply))([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})$/.test(e.value)?null:{invalidEmail:!0},d=e=>b=>null!==b.value&&""!==b.value&&b.dirty&&b.value!==e?{emailsNotMatch:!0}:null,o={required:"Campo obligatorio",invalidEmail:"Este email no tiene un formato v\xe1lido",emailsNotMatch:"Los emails no coinciden. Por favor, revisa los datos.",emailAlreadyExists:"Email no v\xe1lido. Ya est\xe1 asociado a otra cuenta"},M={required:"Campo obligatorio, repite tu email",invalidEmail:"Este email no tiene un formato v\xe1lido",emailsNotMatch:"Las direcciones de correo deben de ser iguales",emailAlreadyExists:"Las direcciones de correo deben de ser iguales"},x={required:"Por favor, incluye un email para completar tu cuenta",invalidEmail:"Este email no tiene un formato v\xe1lido",emailsNotMatch:"Las direcciones de correo deben ser iguales",emailAlreadyExists:"Email no v\xe1lido. Ya est\xe1 asociado a otra cuenta"}},45573:(P,v,s)=>{s.d(v,{N:()=>d,t:()=>c});const c=o=>null===o.value||""===o.value||/^\d{5}$/.test(o.value)?null:{invalidPostalCode:!0},d={required:"Campo obligatorio",invalidPostalCode:"Incluye los 5 d\xedgitos",invalidMatch:"No coincide con la provincia",notFoundMatch:"Este CP no existe"}}}]);
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.