1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="52837e79-cd78-5eae-ac76-8f3db0aa001f")}catch(e){}}(); 3import{a as q,b as z}from"./chunk-4G6T7KY5.js";import{e as U,f as j}from"./chunk-GM2U62VZ.js";import{c as $}from"./chunk-Q2GF24HD.js";import{h as V}from"./chunk-4JSDTN37.js";import{b as G,e as b,f as O}from"./chunk-3LNXQTH3.js";import{i as w,u as m}from"./chunk-HLQVJNKS.js";import{D as E,E as y,J as F,M as x,N as I,W as N,X as P,Y as T,f as B,g as A,h as M}from"./chunk-WAFUM7SX.js";import{Ia as a,Jb as f,Sa as k,U as C,Ub as D,Wb as _,Xa as c,bb as s,c as v,ca as n,ib as p,nb as r,ob as l,pb as g,ub as S,v as h}from"./chunk-E2S34OY2.js";import{a as d,b as u}from"./chunk-PNGTMBFY.js";var R=e=>({mask:e,guide:!1});function H(e,K){e&1&&(r(0,"p"),f(1," Deine \xC4nderungen werden auch f\xFCr alle mitversicherten Personen \xFCbernommen. F\xFCr individuelle \xC4nderungen wende dich bitte an unseren Concierge. "),l())}function J(e,K){e&1&&(r(0,"frontend-checkbox",3),f(1," Bitte best\xE4tige die Erteilung des Firmenlastschrift-Mandats "),l())}var ue=(()=>{class e{form;isSubmitting=!1;sepaDebitAvailable=!1;mask=B;modalData=n(G);component$=new v;formBuilder=n(N);modalInstanceService=n(b);profileService=n($);logService=n(w);alertService=n(V);ngOnInit(){this.form=this.formBuilder.group({iban:[this.modalData.profile.bank_account?.iban,[m.required,m.iban]],sepaApproved:[!0,m.requiredTrue]}),this.sepaDebitAvailable=this.profileService.getAttributeValue(M.SepaDebit)===A.Enabled,this.form.controls.iban.valueChanges.pipe(h(()=>this.sepaDebitAvailable),C(this.component$)).subscribe(()=>this.form.patchValue({sepaApproved:!1}))}ngOnDestroy(){this.component$.next(),this.component$.complete()}closeModal(){this.modalInstanceService.dismiss()}onSubmit(){if(this.isSubmitting||!this.form.valid)return;this.isSubmitting=!0;let o=u(d({},this.modalData.profile),{bank_account:u(d({},this.modalData.profile.bank_account),{iban:this.form.value.iban})});this.profileService.updateBankAccountData(o).subscribe({next:t=>{this.alertService.success("Deine Bankverbindung wurde erfolgreich aktualisiert."),o.bank_account=t,this.modalInstanceService.close(o)},error:t=>{this.alertService.error("Das Aktualisieren deiner Bankverbindung ist fehlgeschlagen. Bitte versuche es erneut."),this.logService.error("[EditBankDataComponent] Error on PUT bank account data",t),this.modalInstanceService.dismiss()}})}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=k({type:e,selectors:[["wa-edit-bank-data-modal"]],features:[D([b])],decls:5,vars:7,consts:[["title","Bankverbindung","dismissButtonText","Abbrechen","submitButtonText","Best\xE4tigen",3,"onDismissClick","onSubmitClick","
3submitDisabled"],["modalBody","",1,"body-wrapper",3,"formGroup"],["label","IBAN","placeholder","DE00000000000000000000","size","lg","formControlName","iban",1,"iban-input",3,"textMaskConfig"],["formControlName","sepaApproved",1,"iban-checkbox"]],template:function(t,i){t&1&&(r(0,"frontend-default-modal",0),S("onDismissClick",function(){return i.closeModal()})("onSubmitClick",function(){return i.onSubmit()}),r(1,"form",1),c(2,H,2,0,"p"),g(3,"frontend-input",2),c(4,J,2,0,"frontend-checkbox",3),l()()),t&2&&(s("submitDisabled",!i.form.valid||i.isSubmitting),a(),s("formGroup",i.form),a(),p(i.modalData.hasCoinsuredProfiles?2:-1),a(),s("textMaskConfig",_(5,R,i.mask)),a(),p(i.sepaDebitAvailable?4:-1))},dependencies:[O,P,F,E,y,T,x,I,j,U,z,q],styles:[".body-wrapper[_ngcontent-%COMP%], .iban-input[_ngcontent-%COMP%]{display:block;margin-bottom:12px}"]})}return e})();export{ue as a}; 4 5//# debugId=52837e79-cd78-5eae-ac76-8f3db0aa001f
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.