import{c as O,g as G}from"./chunk-TRZIK25N.js";import{A,Aa as s,Ac as $e,Ba as w,Ec as Ae,Fa as we,G as le,H as _,Ha as E,I as P,Ia as l,Ja as U,Jc as Ne,Ka as x,M as pe,N as me,P as ue,Q as F,R as u,Ra as a,S as he,T as M,Ta as p,U as N,X as fe,Y as ge,Za as ye,_a as B,aa as m,ab as V,c as f,ca as v,d as ie,e as oe,fb as y,gb as Q,hb as X,i as re,ja as c,jc as De,k as se,ka as b,kb as q,kc as Fe,l as D,m as ae,ma as ve,na as Y,nb as Ie,nc as ke,oc as S,p as g,pa as be,pb as Pe,qa as C,qc as Se,r as $,ra as H,rc as Oe,s as ce,sb as Ee,sc as Re,ta as d,tb as _e,ua as Ce,ub as Me,uc as z,w as de,x as J,xb as xe,ya as j,za as r,zb as k,zc as Te}from"./chunk-GWUVPOWZ.js";import{a as R,b as T,h as ne}from"./chunk-KRVUSFHP.js";var He=(n,i)=>e=>{let t=e.get(n),o=e.get(i);if(!t)return{mustMatch:{matchedControlMissing:!0}};if(!o)return{mustMatch:{matchingControlMissing:!0}};if(t.value!==o.value){let h=o.errors;o.setErrors(T(R({},h),{mustMatch:!0}))}return null};var Ke=["app-change-password-form",""],Ze=[[["","form-buttons",""]]],Je=["[form-buttons]"];function Ye(n,i){if(n&1&&(r(0,"p",2),a(1," Dieses Passwort kann leider nicht verwendet werden. Bitte geben Sie ein anderes Passwort an. "),s()),n&2){let e=l();d("id",e.errorId("newPassword"))}}function Qe(n,i){if(n&1&&(r(0,"p",2),a(1," Passwort ist zu kurz "),s()),n&2){let e=l();d("id",e.errorId("newPassword"))}}function Xe(n,i){if(n&1&&(r(0,"p",2),a(1," Feld erforderlich "),s()),n&2){let e=l();d("id",e.errorId("newPassword"))}}function Le(n,i){if(n&1&&(r(0,"p",2),a(1," Feld erforderlich "),s()),n&2){let e=l();d("id",e.errorId("newPasswordRepeat"))}}function et(n,i){if(n&1&&(r(0,"p",2),a(1," Passw\xF6rter stimmen nicht \xFCberein "),s()),n&2){let e=l();d("id",e.errorId("newPasswordRepeat"))}}function tt(n,i){if(n&1&&(r(0,"p",2),a(1," Sie haben leider ein falsches Passwort eingegeben. Bitte geben Sie Ihr bisheriges Passwort ein, und versuchen Sie es erneut. "),s()),n&2){let e=l();d("id",e.errorId("oldPassword"))}}function nt(n,i){if(n&1&&(r(0,"p",2),a(1," Feld erforderlich "),s()),n&2){let e=l();d("id",e.errorId("oldPassword"))}}var je=class n{constructor(){this.onSuccess=new m;this.form=new Re({newPassword:new z("",[S.required,S.minLength(8)]),newPasswordRepeat:new z("",[S.required]),oldPassword:new z("",[S.required])},He("newPassword","newPasswordRepeat"));this.ids={newPassword:G("new-password"),newPasswordRepeat:G("new-password-repeat"),oldPassword:G("old-password")};this.authService=F(Fe);this.lockernetInterface=F(De);this.elementRef=F(v);this.renderer=F(ve);this.pending=new ie(!1);this.enabled$=ae([this.form.statusChanges,this.pending]).pipe(O(),D(([i,e])=>i==="VALID"&&e===!1));this.wrongPassword=Y(!1);this.passwordNotUnique=Y(!1)}id(i){return this.ids[i]}errorId(i){return`${this.ids[i]}-error`}descriptionId(i){return`${this.ids[i]}-description`}ngAfterContentInit(){let i=this.elementRef.nativeElement.querySelector('button[type="submit"]');this.form.invalid&&this.renderer.setAttribute(i,"disabled","true"),this.enabled$.subscribe(e=>{e?this.renderer.removeAttribute(i,"disabled"):this.renderer.setAttribute(i,"disabled","true")})}onSubmit(i){if(i.preventDefault(),this.formDisabled)return;this.pending.next(!0);let e=T(R({},this.authService.user),{password:this.form.get("newPassword").value}),t=this.form.get("oldPassword").value;this.lockernetInterface.updateUser(e,t).pipe(ce(o=>this.handleError(o)),A(()=>this.pending.next(!1))).subscribe(()=>{this.wrongPassword.set(!1),this.passwordNotUnique.set(!1),this.onSuccess.emit()})}handleError(i){switch(i.ErrorCode){case 22:this.wrongPassword.set(!0);break;case 39:this.passwordNotUnique.set(!0);break}return oe}get formDisabled(){return this.form.invalid||this.form.pristine||this.pending.value}showError(i,e){let t=this.form.get(i);return t.touched?t.hasError(e):!1}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=u({type:n,selectors:[["form","app-change-password-form",""]],hostBindings:function(e,t){e&1&&E("submit",function(h){return t.onSubmit(h)})},outputs:{onSuccess:"onSuccess"},standalone:!0,features:[B],attrs:Ke,ngContentSelectors:Je,decls:30,vars:22,consts:[[1,"form-body",3,"formGroup"],[1,"field"],["aria-live","polite",1,"alert-error","margin-2-bottom",3,"id"],[3,"for"],["formControlName","newPassword","type","password","placeholder","* Ihr neues Passwort","required","",3,"id"],[1,"description",3,"id"],["formControlName","newPasswordRepeat","type","password","placeholder","* Passwort wiederholen","required","",3,"id"],[1,"h4"],[3,"id"],["formControlName","oldPassword","type","password","placeholder","* Passwort","required","",3,"id"]],template:function(e,t){e&1&&(U(Ze),r(0,"div",0)(1,"div",1),C(2,Ye,2,1,"p",2)(3,Qe,2,1,"p",2)(4,Xe,2,1,"p",2),r(5,"label",3),a(6,"Neues Passwort"),s(),w(7,"input",4),r(8,"div",5),a(9," Ihr neues Passwort muss mindestens 8 Zeichen lang sein. "),s()(),r(10,"div",1),C(11,Le,2,1,"p",2)(12,et,2,1,"p",2),r(13,"label",3),a(14,"Passwort wiederholen"),s(),w(15,"input",6),r(16,"div",5),a(17," Bitte wiederholen Sie Ihr Passwort, um sicher zu gehen, dass sich kein Tippfehler eingeschlichen hat: "),s()(),r(18,"fieldset")(19,"legend",7),a(20,"Passwort"),s(),r(21,"div",1),C(22,tt,2,1,"p",2)(23,nt,2,1,"p",2),r(24,"p",8),a(25," Aus Sicherheitsgr\xFCnden ist es notwendig, dass Sie die \xC4nderungen an Ihrem Benutzerkonto mit Ihrem bisherigen Passwort best\xE4tigen. "),s(),r(26,"label",3),a(27,"Passwort"),s(),w(28,"input",9),s()()(),x(29)),e&2&&(d("formGroup",t.form),c(2),j(t.passwordNotUnique()?2:t.showError("newPassword","minlength")?3:t.showError("newPassword","required")?4:-1),c(3),d("for",t.id("newPassword")),c(2),d("id",t.id("newPassword")),H("aria-describedby",t.descriptionId("newPassword"))("aria-errormessage",t.errorId("newPassword"))("aria-invalid",!t.form.get("newPassword").valid),c(),d("id",t.descriptionId("newPassword")),c(3),j(t.showError("newPasswordRepeat","required")?11:t.showError("newPasswordRepeat","mustMatch")?12:-1),c(2),d("for",t.id("newPasswordRepeat")),c(2),d("id",t.id("newPasswordRepeat")),H("aria-describedby",t.descriptionId("newPasswordRepeat"))("aria-errormessage",t.errorId("newPasswordRepeat"))("aria-invalid",!t.form.get("newPasswordRepeat").valid),c(),d("id",t.descriptionId("newPasswordRepeat")),c(6),j(t.wrongPassword()?22:t.showError("oldPassword","required")?23:-1),c(2),d("id",t.descriptionId("oldPassword")),c(2),d("for",t.id("oldPassword")),c(2),d("id",t.id("oldPassword")),H("aria-describedby",t.descriptionId("oldPassword"))("aria-errormessage",t.errorId("oldPassword"))("aria-invalid",!t.form.get("oldPassword").valid))},dependencies:[Ne,ke,Se,Oe,Ae,Te,$e],styles:[".description[_ngcontent-%COMP%]{font-size:.875rem}input[_ngcontent-%COMP%]{margin-bottom:0}.form-body[_ngcontent-%COMP%], .field[_ngcontent-%COMP%]{margin-bottom:1.5rem}input[_ngcontent-%COMP%] + .description[_ngcontent-%COMP%], .description[_ngcontent-%COMP%] + label[_ngcontent-%COMP%] + input[_ngcontent-%COMP%]{margin-top:.5rem}"]})}};var Ue=(()=>{class n{constructor(e){this.elementRef=e,this.catchFocus='button, select, input, textarea, details, a[href], area[href], iframe, object, details, summary, [tabindex]:not([tabindex="-1"])',this.unsubscribe$=new f,this.onTabDown=g(document,"keydown",{capture:!0}).pipe(_(this.unsubscribe$),P(t=>{if(t.key!=="Tab")return;let o=this.getFocusables(this.catchFocus);t.shiftKey?document.activeElement===o[0]&&(o.at(-1)?.focus(),t.preventDefault()):document.activeElement===o.at(-1)&&(o[0]?.focus(),t.preventDefault())}))}ngAfterViewInit(){setTimeout(()=>{this.getFocusables(this.initialFocus??this.catchFocus).at(0)?.focus()}),this.onTabDown.subscribe()}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}getFocusables(e){let t=this.elementRef.nativeElement;return Array.from(t.querySelectorAll(e)).filter(o=>!o.hasAttribute("disabled")&&!o.getAttribute("aria-hidden"))}static{this.\u0275fac=function(t){return new(t||n)(b(v))}}static{this.\u0275dir=M({type:n,selectors:[["","catchFocus",""]],inputs:{catchFocus:"catchFocus",initialFocus:"initialFocus"},standalone:!0})}}return n})(),Be=(()=>{class n{targetIsInsideHost(e){if(e==null)return!0;let t=this.elementRef.nativeElement;return t.contains(e)||e===t}constructor(e){this.elementRef=e,this.propagateInsideClick=!1,this.clickOutside=new m,this.unsubscribe$=new f,this.isMouseDownWasInsideHost=!1,this.onMouseDown$=g(document,"mousedown").pipe(O(),P(t=>{this.isMouseDownWasInsideHost=this.targetIsInsideHost(t.target)})),this.isMouseUpWasInsideHost=!1,this.onMouseUp$=g(document,"mouseup").pipe(O(),P(t=>{this.isMouseUpWasInsideHost=this.targetIsInsideHost(t.target)})),this.onClickOutside$=g(document,"click").pipe(P(t=>{this.targetIsInsideHost(t.target)||(t.pointerType==="mouse"||t instanceof MouseEvent)&&(this.isMouseDownWasInsideHost||this.isMouseUpWasInsideHost)||this.clickOutside.emit()}),P(()=>{this.isMouseDownWasInsideHost=!1,this.isMouseUpWasInsideHost=!1}),_(this.unsubscribe$)),this.onClickInside$=g(this.elementRef.nativeElement,"click").pipe($(()=>!this.propagateInsideClick),P(t=>{t.stopPropagation()}),_(this.unsubscribe$))}ngAfterViewInit(){this.onClickOutside$.subscribe(),this.onClickInside$.subscribe(),this.onMouseDown$.subscribe(),this.onMouseUp$.subscribe()}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}static{this.\u0275fac=function(t){return new(t||n)(b(v))}}static{this.\u0275dir=M({type:n,selectors:[["","clickOutside",""]],inputs:{propagateInsideClick:"propagateInsideClick"},outputs:{clickOutside:"clickOutside"},standalone:!0})}}return n})(),Ve=(()=>{class n{constructor(e){this.elementRef=e,this.contentChanges=new m,this.contentChangesEmitOnInit=!1,this.onContentChange=t=>{this.contentChanges.emit({elementRef:this.elementRef,mutations:t})},this.observer=new MutationObserver(this.onContentChange)}ngAfterViewInit(){this.elementRef&&(this.observer.observe(this.elementRef.nativeElement,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),this.contentChangesEmitOnInit&&setTimeout(()=>this.contentChanges.emit({elementRef:this.elementRef,mutations:[]})))}ngOnDestroy(){this.observer.disconnect()}static{this.\u0275fac=function(t){return new(t||n)(b(v))}}static{this.\u0275dir=M({type:n,selectors:[["","contentChanges",""]],inputs:{contentChangesEmitOnInit:"contentChangesEmitOnInit"},outputs:{contentChanges:"contentChanges"},standalone:!0})}}return n})();var ot=[[["","ctrlModalHeader",""]],"*",[["","ctrlModalFooter",""]]],rt=["[ctrlModalHeader]","*","[ctrlModalFooter]"],Jt=(()=>{class n{get headerHeight(){return`${this._headerHeight}px`}get footerHeight(){return`${this._footerHeight}px`}constructor(e){this.elementRef=e,this.unsubscribe$=new f,this._headerHeight=0,this._footerHeight=0,this.keydownEsc=new m,this.onKeydownEsc$=g(document,"keydown").pipe($(o=>o.key==="Escape"),_(this.unsubscribe$));let t=this.elementRef.nativeElement;t.setAttribute("role","dialog"),t.tabIndex=-1}ngOnInit(){this.onKeydownEsc$.subscribe(()=>this.keydownEsc.emit())}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}onHeaderContentChanges(e){this._headerHeight=e.elementRef.nativeElement.clientHeight}onFooterContentChanges(e){this._footerHeight=e.elementRef.nativeElement.clientHeight}static{this.\u0275fac=function(t){return new(t||n)(b(v))}}static{this.\u0275cmp=u({type:n,selectors:[["ctrl-modal"]],hostVars:4,hostBindings:function(t,o){t&2&&Ce("--ctrl-modal-header-height",o.headerHeight)("--ctrl-modal-footer-height",o.footerHeight)},outputs:{keydownEsc:"keydownEsc"},standalone:!0,features:[be([Ue,{directive:Be,inputs:["propagateInsideClick","propagateInsideClick"],outputs:["clickOutside","clickOutside"]}]),B],ngContentSelectors:rt,decls:6,vars:2,consts:[[1,"ctrl-modal-header",3,"contentChanges","contentChangesEmitOnInit"],[1,"ctrl-modal-content"],[1,"ctrl-modal-footer",3,"contentChanges","contentChangesEmitOnInit"]],template:function(t,o){t&1&&(U(ot),r(0,"div",0),E("contentChanges",function(Z){return o.onHeaderContentChanges(Z)}),x(1),s(),r(2,"div",1),x(3,1),s(),r(4,"div",2),E("contentChanges",function(Z){return o.onFooterContentChanges(Z)}),x(5,2),s()),t&2&&(d("contentChangesEmitOnInit",!0),c(4),d("contentChangesEmitOnInit",!0))},dependencies:[Ve],styles:[`:where(.ctrl-modal-backdrop){position:fixed;display:flex;justify-content:center;align-items:center;top:0;left:0;width:100vw;height:100vh;z-index:10000;background-color:var(--ctrl-modal-backdrop-color, rgba(0, 0, 0, .5))}:where(ctrl-modal){background-color:var(--ctrl-modal-bg, white);padding:var(--ctrl-modal-padding, 1rem);display:block} `],encapsulation:2,changeDetection:0})}}return n})(),ee=class{get componentRef(){return this._componentRef}constructor(i){this._onDismiss$=new f,this.onDismiss$=this._onDismiss$.asObservable().pipe(J(0),D(e=>({modal:this,result:e}))),this._componentType=i}setInputs(i={}){if(this._componentRef){let e=this._componentRef.instance,t=Pe(this._componentType)?.inputs;for(let o in i)t?.find(h=>h.propName===o)?this._componentRef.setInput(o,i[o]):typeof i[o]<"u"&&(e[o]=i[o])}return this}bootstrap(i){if(!this._componentRef&&!i.destroyed){let e=this.createModalContainer();this._componentRef=i.bootstrap(this._componentType,e),this._componentRef.instance.dismiss.subscribe(this._onDismiss$)}return this}destroy(){this._componentRef&&(this._componentRef.destroy(),this._componentRef=void 0,this._onDismiss$.next(),this._onDismiss$.complete())}createModalContainer(){let i=document.createElement("div");return i.classList.add("ctrl-modal-backdrop"),i.tabIndex=-1,document.getElementsByTagName("body")[0].appendChild(i),i}},st=(()=>{class n{constructor(e){this.applicationRef=e,this._modals=[]}create(e){return new ee(e)}bootstrap(e,t={}){return this.create(e).bootstrap(this.applicationRef).setInputs(t)}open(e,t={}){return re(this.create(e)).pipe(J(0),le(o=>(o.bootstrap(this.applicationRef).setInputs(t),this.add(o),o.onDismiss$.pipe(de(1),D(h=>h.result),A(()=>{this.close(o)})))))}openBlocking(o){return ne(this,arguments,function*(e,t={}){return se(this.open(e,t))})}add(e){this._modals.includes(e)||this._modals.push(e)}close(e){e.destroy(),this.remove(e)}remove(e){let t=this._modals.findIndex(o=>o===e);t>-1&&this._modals.splice(t,1)}closeAll(){[...this._modals].forEach(e=>this.close(e))}static{this.\u0275fac=function(t){return new(t||n)(ue(Ie))}}static{this.\u0275prov=pe({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Yt=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=he({type:n})}static{this.\u0275inj=me({providers:[st]})}}return n})();var qe=class n{constructor(){}ngOnInit(){}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=u({type:n,selectors:[["app-mandatory-note"]],decls:2,vars:0,template:function(e,t){e&1&&(r(0,"span"),a(1,"* Pflichtfelder"),s())}})}};var ze=class n{constructor(){this.max=0;this.min=0}get validationClass(){return this.control&&typeof this.control.value=="string"?this.control.pristine?"pristine":this.max===-1&&this.min===-1?"neutral":this.min>0&&this.control.value.length<this.min||this.max>0&&this.control.value.length>this.max?"invalid":"valid":"neutral"}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=u({type:n,selectors:[["app-textarea-char-count"]],inputs:{control:"control",max:"max",min:"min"},decls:2,vars:2,consts:[[1,"float-right",3,"ngClass"]],template:function(e,t){e&1&&(r(0,"small",0),a(1),s()),e&2&&(d("ngClass",t.validationClass),c(),p("",t.control==null||t.control.value==null?null:t.control.value.length," Zeichen"))},dependencies:[Ee],styles:['[_nghost-%COMP%]:after{content:"";display:block;clear:both}small.valid[_ngcontent-%COMP%]{color:#1c8b43}small.invalid[_ngcontent-%COMP%]{color:#a80000}']})}};var W=class n{transform(i){if(typeof i=="number"||typeof i=="string"&&!isNaN(parseInt(i)))switch(typeof i=="number"?i:parseInt(i)){case 0:return"Jahresrechnung";case 1:return"Schl\xFCsselrechnung";case 2:return"R\xFCckzahlung";case 3:return"sonstige";case 4:return"Umbuchung";case 5:return"PIN-Code-Rechnung";case 6:return"Halbjahresrechnung"}return i+""}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275pipe=N({name:"toInvoiceType",type:n,pure:!0})}};var K=class n{transform(i){if(typeof i=="number"||typeof i=="string"&&!isNaN(parseInt(i)))switch(typeof i=="number"?i:parseInt(i)){case 1:return"unbekannt";case 2:return"Schlie\xDFfachmiete";case 3:return"Kaution";case 4:return"Geb\xFChr";case 5:return"Mahnung";case 6:return"sonstige Kosten";case 7:return"Schutzbrief";case 8:return"Bearbeitungsgeb\xFChr";case 9:return"Versicherung";case 10:return"Schadenersatz";case 11:return"Zinsen";case 12:return"Mahngeb\xFChr";case 13:return"Adressermittlungsgeb\xFChr"}return i+""}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275pipe=N({name:"toInvoiceComponentType",type:n,pure:!0})}};var te=n=>[n,"EUR","","1.2-2","de-DE"];function lt(n,i){if(n&1&&(r(0,"div",23)(1,"p",19)(2,"small"),a(3),s()()()),n&2){let e=l().$implicit,t=l();c(3),p(" ",t.formatAmountPerMonth(t.invoice.typeId,e.amount)," ")}}function pt(n,i){if(n&1&&(r(0,"div",21)(1,"div",17)(2,"p",19),a(3),y(4,"toInvoiceComponentType"),s()(),r(5,"div",18)(6,"p",19)(7,"span",6),a(8),y(9,"currency"),s()()(),C(10,lt,4,1,"div",22),s()),n&2){let e=i.$implicit,t=l();c(3),p(" ",Q(4,3,e.typeId),": "),c(5),p(" \u20AC\xA0",q(9,5,V(11,te,e.amount))," "),c(2),d("ngIf",e.typeId===2&&(t.invoice.typeId===0||t.invoice.typeId===6))}}function mt(n,i){if(n&1){let e=we();r(0,"div",24)(1,"a",25),E("click",function(){fe(e);let o=l();return ge(o.onDownloadClick.emit(o.invoice))}),a(2," als PDF herunterladen "),s()()}}var Ge=class n{constructor(i){this.currencyPipe=i;this.allowDownload=!0;this.onDownloadClick=new m}formatAmountPerMonth(i,e){let t=i===0?12:6,o=this.currencyPipe.transform(e/t,"EUR","","1.2-2","de-DE");return`( ${t} Monate \xE0 \u20AC ${o})`}static{this.\u0275fac=function(e){return new(e||n)(b(k))}}static{this.\u0275cmp=u({type:n,selectors:[["app-invoice-card"]],inputs:{invoice:"invoice",allowDownload:"allowDownload"},outputs:{onDownloadClick:"onDownloadClick"},features:[ye([k])],decls:42,vars:33,consts:[[1,"invoice-card","border-light-grey-d","bg-content","padding-4-horizontal","padding-3-vertical","margin-2-bottom"],[1,"grid-container"],[1,"grid-12","hidden-sm","hidden-md","hidden-lg"],[1,"margin-0"],[1,"grid-8"],[1,"invoice-date","margin-3-right","hidden-xs"],[1,"semibold"],[1,"grid-4","align-right"],[1,"semibold","margin-0"],[1,"grid-12","margin-1-top"],[1,"grid-container","margin-4-top"],[1,"grid-6","grid-lg-7","grid-sm-12"],[1,"fs-18","margin-1-bottom"],[1,"fs-18"],[1,"grid-6","grid-lg-5","grid-sm-12"],["class","grid-container margin-1-bottom",4,"ngFor","ngForOf"],[1,"grid-container","margin-1-top"],[1,"grid"],[1,"grid","align-right"],[1,"fs-18","margin-0"],["class","grid-12 download-link",4,"ngIf"],[1,"grid-container","margin-1-bottom"],["class","grid-12 align-right",4,"ngIf"],[1,"grid-12","align-right"],[1,"grid-12","download-link"],[1,"pdf-download-small",3,"click"]],template:function(e,t){e&1&&(r(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),a(4),y(5,"date"),s()(),r(6,"div",4)(7,"p",3)(8,"span",5),a(9),y(10,"date"),s(),r(11,"span",6),a(12),y(13,"toInvoiceType"),s()()(),r(14,"div",7)(15,"p",8),a(16),y(17,"currency"),s()(),r(18,"div",9),w(19,"hr"),s()(),r(20,"div",10)(21,"div",11)(22,"p",12),a(23),s(),r(24,"p",13),a(25),s()(),r(26,"div",14),C(27,pt,11,13,"div",15),w(28,"hr"),r(29,"div",16)(30,"div",17)(31,"p",13),a(32," Gesamt: "),s()(),r(33,"div",18)(34,"p",19)(35,"span",6),a(36),y(37,"currency"),s(),w(38,"br"),r(39,"small"),a(40,"inkl.\xA0MwSt"),s()()()()(),C(41,mt,3,0,"div",20),s()()),e&2&&(c(4),p(" ",X(5,9,t.invoice.date,"dd.MM.yyyy")," "),c(5),p(" ",X(10,12,t.invoice.date,"dd.MM.yyyy")," "),c(3),p(" ",Q(13,15,t.invoice.typeId)," "),c(4),p(" \u20AC\xA0",q(17,17,V(29,te,t.invoice.total))," "),c(7),p(" Rechnungsnummer: ",t.invoice.invoiceNumber," "),c(2),p(" Status: ",t.invoice.state," "),c(2),d("ngForOf",t.invoice.components),c(9),p(" \u20AC\xA0",q(37,23,V(31,te,t.invoice.total))," "),c(5),d("ngIf",t.allowDownload))},dependencies:[_e,Me,k,xe,W,K],styles:["div.download-link[_ngcontent-%COMP%]{position:relative}@media (min-width: 821px){div.download-link[_ngcontent-%COMP%] a.pdf-download-small[_ngcontent-%COMP%]{position:absolute;bottom:0}}"]})}};var We=class n{constructor(){this.onSubmit=new m;this.success=!1;this.pending=!1;this.mode="view";this.unsubscribe$=new f}get lockerAvailable(){let i=this.selectedContract.locker.state;return i===1||i===7}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}get canEdit(){if(!this.selectedContract)return!1;let i=this.selectedContract.locker.state;return!(i===5||i===6)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275dir=M({type:n,inputs:{selectedContract:"selectedContract"},outputs:{onSubmit:"onSubmit"}})}};export{qe as a,ze as b,Jt as c,st as d,Yt as e,Ge as f,je as g,We as h};