1import{b as Qt,c as Zt}from"./chunk-XZTJFCHY.js";import{$b as We,Aa as Ke,Ac as Y,Ad as z,B as je,Ba as Gt,Bc as Ie,Cc as Pe,Dc as Oe,Fa as P,Ga as K,Gc as J,Ge as pt,H as F,Hd as ce,He as an,Ie as rn,Jb as $,Jc as X,Je as me,K as Nt,Ka as q,Kc as pe,Ke as on,L as a,La as ve,Lc as ee,Le as ln,Ma as Ne,Mb as qe,Mc as te,N as C,Na as p,Nb as Se,Nc as y,Oa as g,Ob as jt,Oc as h,P as k,Q as Dt,Qb as mt,Rc as ne,Rd as Jt,Sd as Xt,T as d,Tb as Kt,Td as en,Uc as ie,Va as Ht,Vc as ae,Wa as B,Wb as j,Wc as re,Xa as O,Xc as oe,Yb as $t,Zb as qt,_c as Ye,a as Vt,ab as Lt,ba as l,c as wt,ca as o,cc as dt,cd as le,d as _e,da as r,dd as se,ea as v,ed as ue,g as Re,gd as Je,ge as tn,h as ut,i as Ft,ia as S,j as Ge,ja as M,kc as Me,l as Tt,la as U,lc as Qe,m as He,ma as A,n as Le,na as m,nc as xe,oc as R,p as Q,pd as Yt,q as Bt,qb as be,qc as N,ra as zt,rd as Xe,s as L,sa as Ut,sb as $e,sc as Wt,ta as Rt,tb as Ce,u as V,v as w,vb as ct,wa as Z,we as nn,xa as u,xc as Ze,ya as T,yc as Ee,za as f,zc as ke}from"./chunk-OB3BVFKU.js";var Bn=We.BetriebssituationEnum,gt={"kapazitaeten.intensivBetten":"icuStatus.intensivBetten","kapazitaeten.intensivBettenBelegt":"icuStatus.intensivBettenBelegt","kapazitaeten.patientenNichtInvasivBeatmet":"icuStatus.patientenNichtInvasivBeatmet","kapazitaeten.patientenInvasivBeatmet":"icuStatus.patientenInvasivBeatmet","kapazitaeten.patientenEcmo":"icuStatus.patientenEcmo","kapazitaeten.freieIvKapazitaet":"icuStatus.freieIvKapazitaet","kapazitaeten.freieEcmoKapazitaet":"icuStatus.freieEcmoKapazitaet","kapazitaeten.statusEinschaetzungHighcare":"icuStatus.statusEinschaetzungHighcare","kapazitaeten.statusEinschaetzungEcmo":"icuStatus.statusEinschaetzungEcmo","kapazitaeten.intensivBettenNotfall7d":"icuReserve.intensivBettenNotfall7d","covid19StatusV3.mitManifestation.faelleAktuell":"covid19StatusBelegung.covid19StatusV3.mitManifestation.faelleAktuell","covid19StatusV3.mitManifestation.faelleAktuellBeatmet":"covid19StatusBelegung.covid19StatusV3.mitManifestation.faelleAktuellBeatmet","covid19StatusV3.mitManifestation.faelleAktuellNichtInvasivBeatmet":"covid19StatusBelegung.covid19StatusV3.mitManifestation.faelleAktuellNichtInvasivBeatmet","covid19StatusV3.mitManifestation.faelleAktuellHighFlowOxygen":"covid19StatusBelegung.covid19StatusV3.mitManifestation.faelleAktuellHighFlowOxygen","covid19StatusV3.mitManifestation.faelleAktuellEcmo":"covid19StatusBelegung.covid19StatusV3.mitManifestation.faelleAktuellEcmo","covid19StatusV3.ohneManifestation.faelleAktuell":"covid19StatusBelegung.covid19StatusV3.ohneManifestation.faelleAktuell","covid19StatusV3.ohneManifestation.faelleAktuellBeatmet":"covid19StatusBelegung.covid19StatusV3.ohneManifestation.faelleAktuellBeatmet","covid19StatusV3.ohneManifestation.faelleAktuellNichtInvasivBeatmet":"covid19StatusBelegung.covid19StatusV3.ohneManifestation.faelleAktuellNichtInvasivBeatmet","covid19StatusV3.ohneManifestation.faelleAktuellHighFlowOxygen":"covid19StatusBelegung.covid19StatusV3.ohneManifestation.faelleAktuellHighFlowOxygen","covid19StatusV3.ohneManifestation.faelleAktuellEcmo":"covid19StatusBelegung.covid19StatusV3.ohneManifestation.faelleAktuellEcmo",faelleCovidAktuell:"covid19StatusBelegung.faelleAktuell",betriebssituation:"covid19StatusBelegung.betriebssituation","varianten.alpha":"covid19StatusSpezifikation.varianten.alpha","varianten.beta":"covid19StatusSpezifikation.varianten.beta","varianten.gamma":"covid19StatusSpezifikation.varianten.gamma","varianten.delta":"covid19StatusSpezifikation.varianten.delta","varianten.omikron":"covid19StatusSpezifikation.varianten.omikron","varianten.sonstige":"covid19StatusSpezifikation.varianten.sonstige","varianten.unbekannt":"covid19StatusSpezifikation.varianten.unbekannt","neuaufnahmen.erstaufnahmen":"covid19StatusNeuaufnahmen.neuaufnahmen.erstaufnahmen","rsvStatus.faelleAktuell":"rsvUndInfluenzaStatus.rsvStatus.faelleAktuell","rsvStatus.faelleAktuellBeatmet":"rsvUndInfluenzaStatus.rsvStatus.faelleAktuellBeatmet","rsvStatus.faelleAktuellHighFlowOxygen":"rsvUndInfluenzaStatus.rsvStatus.faelleAktuellHighFlowOxygen","rsvStatus.faelleAktuellNichtInvasivBeatmet":"rsvUndInfluenzaStatus.rsvStatus.faelleAktuellNichtInvasivBeatmet","rsvStatus.faelleAktuellEcmo":"rsvUndInfluenzaStatus.rsvStatus.faelleAktuellEcmo","influenzaStatus.faelleAktuell":"rsvUndInfluenzaStatus.influenzaStatus.faelleAktuell","influenzaStatus.faelleAktuellBeatmet":"rsvUndInfluenzaStatus.influenzaStatus.faelleAktuellBeatmet","influenzaStatus.faelleAktuellHighFlowOxygen":"rsvUndInfluenzaStatus.influenzaStatus.faelleAktuellHighFlowOxygen","influenzaStatus.faelleAktuellNichtInvasivBeatmet":"rsvUndInfluenzaStatus.influenzaStatus.faelleAktuellNichtInvasivBeatmet","influenzaStatus.faelleAktuellEcmo":"rsvUndInfluenzaStatus.influenzaStatus.faelleAktuellEcmo","faelleCovidVortagVerlegtVerstorben.faelleCovidVortagVerlegt":"covid19StatusNeuaufnahmen.faelleCovidVortagVerlegtVerstorben.faelleCovidVortagVerlegt","faelleCovidVortagVerlegtVerstorben.faelleCovidVortagVerstorben":"covid19StatusNeuaufnahmen.faelleCovidVortagVerlegtVerstorben.faelleCovidVortagVerstorben"};function Nn(t){for(let n of Object.keys(gt))if(gt[n]===t)return n;return null}function sn(t,n){let e=Nn(n);return e?pt(t,e):!1}function ye(t,n){let e=t;if(e==null)return null;if(n.includes(".")){let s=n.split(".");for(let c of s)if(e=e[c],e==null)return null;return e}let i=e[n];return i??null}function G(t,n,e,i){if(pt(i,e))return;let s=gt[e];if(!s)return;let c=t.get(s);if(!c){console.error("Form-Pfad {} nicht gefunden!",s);return}c.patchValue(ye(n,e))}function un(t,n,e,i,s){t.reset();let c=Dn(new Date(n.meldezeitpunkt))||i,_=ft(e);n&&(n.kapazitaeten&&(t.get("icuStatus").patchValue({intensivBetten:n.kapazitaeten.intensivBetten,intensivBettenBelegt:n.kapazitaeten.intensivBettenBelegt,patientenNichtInvasivBeatmet:n.kapazitaeten.patientenNichtInvasivBeatmet,patientenInvasivBeatmet:n.kapazitaeten.patientenInvasivBeatmet,freieIvKapazitaet:n.k
1apazitaeten.freieIvKapazitaet,statusEinschaetzungLowcare:n.kapazitaeten.statusEinschaetzungLowcare,statusEinschaetzungHighcare:n.kapazitaeten.statusEinschaetzungHighcare}),_&&t.get("icuStatus").patchValue({patientenEcmo:n.kapazitaeten.patientenEcmo,freieEcmoKapazitaet:n.kapazitaeten.freieEcmoKapazitaet,statusEinschaetzungEcmo:n.kapazitaeten.statusEinschaetzungEcmo}),t.get("icuReserve").patchValue({intensivBettenNotfall7d:n.kapazitaeten.intensivBettenNotfall7d})),n.neuaufnahmen&&c&&(G(t,n,"neuaufnahmen.erstaufnahmen",s),G(t,n,"neuaufnahmen.verlegungen",s)),n.impfstatus&&c&&t.get("covid19StatusNeuaufnahmen.impfstatus").patchValue(n.impfstatus),n.impfstatusV2&&c&&t.get("covid19StatusNeuaufnahmen.impfstatusV2").patchValue(n.impfstatusV2),vt(e)&&n.altersstrata&&t.get("covid19StatusSpezifikation.altersstrata").patchValue(n.altersstrata),n.varianten&&t.get("covid19StatusSpezifikation.varianten").patchValue(n.varianten),De(e)&&n.rsvStatus&&(G(t,n,"rsvStatus.faelleAktuell",s),G(t,n,"rsvStatus.faelleAktuellBeatmet",s),G(t,n,"rsvStatus.faelleAktuellHighFlowOxygen",s),G(t,n,"rsvStatus.faelleAktuellNichtInvasivBeatmet",s),_&&G(t,n,"rsvStatus.faelleAktuellEcmo",s)),ze(e)&&n.influenzaStatus&&(G(t,n,"influenzaStatus.faelleAktuell",s),G(t,n,"influenzaStatus.faelleAktuellBeatmet",s),G(t,n,"influenzaStatus.faelleAktuellHighFlowOxygen",s),G(t,n,"influenzaStatus.faelleAktuellNichtInvasivBeatmet",s),_&&G(t,n,"influenzaStatus.faelleAktuellEcmo",s)),n.covid19StatusV3&&t.get("covid19StatusBelegung.covid19StatusV3").patchValue({mitManifestation:{faelleAktuell:n.covid19StatusV3.mitManifestation?.faelleAktuell,faelleAktuellBeatmet:n.covid19StatusV3.mitManifestation?.faelleAktuellBeatmet,faelleAktuellNichtInvasivBeatmet:n.covid19StatusV3.mitManifestation?.faelleAktuellNichtInvasivBeatmet,faelleAktuellEcmo:_?n.covid19StatusV3.mitManifestation?.faelleAktuellEcmo:null},ohneManifestation:{faelleAktuell:n.covid19StatusV3.ohneManifestation?.faelleAktuell,faelleAktuellBeatmet:n.covid19StatusV3.ohneManifestation?.faelleAktuellBeatmet}}),t.get("covid19StatusBelegung").patchValue({faelleAktuell:n.faelleCovidAktuell,betriebssituation:n.betriebssituation?n.betriebssituation:Bn.KEINE_ANGABE,betriebseinschraenkungPersonal:n.betriebseinschraenkungPersonal?n.betriebseinschraenkungPersonal:!1,betriebseinschraenkungRaum:n.betriebseinschraenkungRaum?n.betriebseinschraenkungRaum:!1,betriebseinschraenkungBeatmungsgeraet:n.betriebseinschraenkungBeatmungsgeraet?n.betriebseinschraenkungBeatmungsgeraet:!1,betriebseinschraenkungVerbrauchsmaterial:n.betriebseinschraenkungVerbrauchsmaterial?n.betriebseinschraenkungVerbrauchsmaterial:!1}),c&&t.get("covid19StatusNeuaufnahmen.faelleCovidVortagVerlegtVerstorben").patchValue({faelleCovidVortagVerlegt:n.faelleCovidVortagVerlegtVerstorben?.faelleCovidVortagVerlegt,faelleCovidVortagVerstorben:n.faelleCovidVortagVerlegtVerstorben?.faelleCovidVortagVerstorben}),ht(e)&&t.get("covid19StatusSpezifikation.schwangereCovidStatus.anzahlSchwangere").patchValue(n.schwangereCovidStatus?.anzahlSchwangere))}function ft(t){return t.versorgungsKategorien.includes(j.VersorgungsKategorienEnum.ECMO)}function ht(t){return t?t.behandlungsschwerpunktL1===j.BehandlungsschwerpunktL1Enum.ERWACHSENE:!1}function De(t){return _t(t)}function ze(t){return _t(t)}function _t(t){return t?t.behandlungsschwerpunktL1===j.BehandlungsschwerpunktL1Enum.KINDER:!1}function vt(t){return!_t(t)}function Dn(t){let n=new Date().setHours(0,0,0,0),e=new Date(t).setHours(0,0,0,0);return n===e}var ge="meldung.erfassen.delta.fehler.bigDeltaWarning",zn=["enum","boolean"],H=(function(t){return t[t.ERROR=0]="ERROR",t[t.WARNING=1]="WARNING",t})(H||{});function et(t,n,e){for(let i of t)if(bt(i,n,e))return!0;return!1}function bt(t,n,e){for(let i of t.blocks)if(Ct(i,n,e))return!0;return!1}function Ct(t,n,e){for(let i of t.felder)if(St(i,n,e))return!0;return!1}function St(t,n,e){if(!t.errorMessages)return!1;for(let i of t.errorMessages)if(i.type===n&&(!e||i.label==e))return!0;return!1}var cn=class{constructor(n){this.translateService=n}findDeltas(n,e,i,s,c,_){return n.map(b=>this.findDeltaFuerKategorie(b,e,i,s,c,_)).filter(b=>!!b)}findDeltaFuerKategorie(n,e,i,s,c,_){let b=n.hidden?n.hidden(s,c):!1,I=b?[]:n.blocks.map(E=>this.findDeltaFuerBlock(E,e,i,s,c,_)).filter(E=>!!E);return I.length==0?null:{label:n.label,blocks:I,hidden:b}}findDeltaFuerBlock(n,e,i,s,c,_){if(n.hidden?n.hidden(s,c):!1)return null;let I=n.felder.map(E=>
1this.findDeltaFuerFeld(E,e,i,c)).filter(_).filter(E=>!!E);return I.length==0?null:{label:n.label,felder:I}}findDeltaFuerFeld(n,e,i,s){if(this.istPausiert(s,n))return null;let c=ye(i,n.fieldName),_=ye(e,n.fieldName),b=n.errors?n.errors(i,e):[];return b.push(Gn(n,i,e)),b.push(Hn(n,c,_)),b=b.filter(I=>!!I),n.hideWarnings&&n.hideWarnings(i,e)&&(b=b.filter(I=>I.type==H.ERROR)),{label:n.label,labelPrefix:n.labelPrefix,labelSuffix:n.labelSuffix,classNames:n.classNames,oldValue:i?this.getFieldValueForDisplay(c,n):"",newValue:this.getFieldValueForDisplay(_,n),delta:Un(n,c,_),errorMessages:b,ecmoFeld:n.ecmoFeld}}istPausiert(n,e){return n?.filter(i=>i.pfad==e.fieldName)?.length>0}getFieldValueForDisplay(n,e){return n==null?"Keine Angabe":e.type==="enum"?this.translateService.instant("meldung.erfassen.delta.value."+n):e.type==="boolean"?Rn(n):n||n==0?n:"Keine Angabe"}};function Un(t,n,e){if(t.type=="enum"||t.type=="boolean")return"";if(t.type=="number"){if(n==null||e==null)return"";let i=e-n;return i>0?"+"+i:""+i}return""}function Rn(t){return t==null?"Keine Angabe":t?"Ja":"Nein"}function Gn(t,n,e){if(t.isEmptyFieldWarningHidden&&t.isEmptyFieldWarningHidden(e))return null;let i=ye(e,t.fieldName),s=ye(n,t.fieldName);return zn.indexOf(t.type)>-1?null:i===null&&s!==null?{label:"meldung.erfassen.delta.fehler.nullWarning",type:H.WARNING}:null}function Hn(t,n,e){return t.type!=="number"||!n||!Ln(n,e)?null:{label:ge,type:H.WARNING}}function Ln(t,n){let e=t??0,i=n??0;if(e!=null){if(e<=9)return e-7>=i||e+7<=i;if(e>=10&&e<=19)return e/4>=i||e*2<=i;if(e>=20)return e*.5>=i||e*2<=i}return!1}function jn(t,n){if(t&1&&(o(0,"span")(1,"mat-icon"),u(2,"warning"),r(),v(3,"span",9),p(4,"translate"),r()),t&2){let e=m().$implicit,i=m(7);Z(K("plausi-message ",i.getCssClass(e))),a(3),l("innerHTML",g(4,4,e.label),F)}}function Kn(t,n){if(t&1&&(S(0),d(1,jn,5,6,"span",12),M()),t&2){let e=n.$implicit,i=m(7);a(),l("ngIf",i.showError(e))}}function $n(t,n){if(t&1&&(o(0,"tr")(1,"td"),v(2,"span",9),p(3,"translate"),r(),o(4,"td",11),u(5),r(),o(6,"td"),d(7,Kn,2,1,"ng-container",3),r()()),t&2){let e=m().$implicit;a(2),l("innerHTML",g(3,3,e.label),F),a(3),f(" ",e.newValue," "),a(2),l("ngForOf",e.errorMessages)}}function qn(t,n){if(t&1&&(S(0),d(1,$n,8,5,"tr",7),M()),t&2){let e=n.$implicit,i=m(5);a(),l("ngIf",i.showFeld(e))}}function Wn(t,n){if(t&1&&(S(0),o(1,"tr")(2,"th",10),v(3,"span",9),p(4,"translate"),r()(),d(5,qn,2,1,"ng-container",3),M()),t&2){let e=m().$implicit;a(3),l("innerHTML",g(4,2,e.label),F),a(2),l("ngForOf",e.felder)}}function Qn(t,n){if(t&1&&(S(0),d(1,Wn,6,4,"ng-container",7),M()),t&2){let e=n.$implicit,i=m(3);a(),l("ngIf",i.showBlock(e))}}function Zn(t,n){if(t&1&&(o(0,"tbody")(1,"tr")(2,"th",8),v(3,"span",9),p(4,"translate"),r()(),d(5,Qn,2,1,"ng-container",3),r()),t&2){let e=m().$implicit;a(3),l("innerHTML",g(4,2,e.label),F),a(2),l("ngForOf",e.blocks)}}function Yn(t,n){if(t&1&&(S(0),d(1,Zn,6,4,"tbody",7),M()),t&2){let e=n.$implicit,i=m();a(),l("ngIf",i.showKategorie(e))}}function mn(t){return et(t,H.WARNING,ge)}var dn=(()=>{class t{constructor(e,i){this.dialogRef=e,this.data=i}showError(e){return e.label==ge}getCssClass(e){return e.type==H.WARNING?"message-warning":"message-error"}showKategorie(e){return bt(e,H.WARNING,ge)}showFeld(e){return St(e,H.WARNING,ge)}showBlock(e){return Ct(e,H.WARNING,ge)}static{this.\u0275fac=function(i){return new(i||t)(C(Ze),C(Ee))}}static{this.\u0275cmp=k({type:t,selectors:[["public-plausi-check-dialog"]],standalone:!1,decls:22,vars:3,consts:[["mat-dialog-title",""],["mat-button","","mat-dialog-close","",1,"close-icon"],["mat-dialog-content",""],[4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-raised-button","",1,"btn-secondary",3,"mat-dialog-close"],["mat-raised-button","",1,"btn-primary-small",3,"mat-dialog-close"],[4,"ngIf"],["colspan","3",1,"kategorie-header"],[3,"innerHTML"],["colspan","3",1,"block-header"],[1,"newValue"],[3,"class",4,"ngIf"]],template:function(i,s){i&1&&(o(0,"header",0)(1,"h1"),u(2,"Sind Sie sicher, dass die eingegebenen Werte korrekt sind?"),r(),o(3,"button",1)(4,"mat-icon"),u(5,"close"),r()()(),o(6,"div",2)(7,"table")(8,"thead")(9,"tr")(10,"th"),u(11,"Feld"),r(),o(12,"th"),u(13,"Neuer Wert"),r(),o(14,"th"),u(15,"Warnung"),r()()(),d(16,Yn,2,1,"ng-container",3),r()(),o(17,"div",4)(18,"button",5),u(19,"Nein, zur\xFCck zur Eingabe"),r(),o(20,"button",6),u(21,"Ja, Meldung erfassen"),r()()),i&2&&(a(16),l("ngForOf",s.data),a(2),l("mat-dialog-close","back"),a(2),l("mat-dialog-close","checkout"))},dependencies:[B,O,R,Y,Ie,Oe,Pe,N,z],styles:["header[_ngcontent-%COMP%]{display:flex;justify-content:space-between}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:4px 8px;text-align:left}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .kategorie-header[_ngcontent-%COMP%]{background-color:#e4e4e4}table[_ngcontent-%COMP%] .block-header[_ngcontent-%COMP%]{background-color:#f2f4f8}table[_ngcontent-%COMP%] .newValue[_ngcontent-%COMP%]{padding-right:32px}table[_ngcontent-%COMP%] .plausi-message.message-warning[_ngcontent-%COMP%]{display:flex;color:#880802}table[_ngcontent-%COMP%] .plausi-message.message-warning[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#000}table[_ngcontent-%COMP%] .plausi-message.message-warning[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:24px}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:space-between}"]})}}return t})();function Jn(t,n){t&1&&(S(0),o(1,"button",5),u(2,"OK"),r(),M())}function Xn(t,n){if(t&1){let e=U();S(0),o(1,"button",6),A("click",function(){V(e);let s=m();return w(s.markiereAlsGelesen())}),u(2," Hinweis nicht mehr anzeigen "),r(),o(3,"button",5),u(4," Sp\xE4ter erinnern "),r(),M()}}var pn=(()=>{class t{constructor(e,i,s,c){this.meldungErfassenPopupService=e,this.snackbar=i,this.dialogRef=s,this.rule=c}ngOnInit(){}ngAfterViewInit(){setTimeout(()=>{let e=document.querySelector(".mat-mdc-dialog-content");e.scrollTop=0},200)}markiereAlsGelesen(){this.meldungErfassenPopupService.markiereAlsGelesen(this.rule.id).subscribe(e=>{this.snackbar.open("Hinweis wird nicht mehr angezeigt"),this.dialogRef.close()})}static{this.\u0275fac=function(i){return new(i||t)(C(qe),C(J),C(Ze),C(Ee))}}static{this.\u0275cmp=k({type:t,selectors:[["public-meldung-erfassen-p
1opup"]],standalone:!1,decls:6,vars:3,consts:[[1,"dialog-container"],["mat-dialog-content","",1,"dialog-content"],[1,"popup-text",3,"innerHTML"],["mat-dialog-actions","",1,"dialog-actions"],[4,"ngIf"],["mat-raised-button","","type","button","mat-dialog-close","",1,"btn-primary-small"],["mat-raised-button","","type","button","tabindex","-1",1,"btn-secondary",3,"click"]],template:function(i,s){i&1&&(o(0,"div",0)(1,"main",1),v(2,"div",2),r(),o(3,"footer",3),d(4,Jn,3,0,"ng-container",4)(5,Xn,5,0,"ng-container",4),r()()),i&2&&(a(2),l("innerHTML",s.rule.longText,F),a(2),l("ngIf",!s.rule.bieteNichtMehrAnzeigenOption),a(),l("ngIf",s.rule.bieteNichtMehrAnzeigenOption))},dependencies:[O,R,Y,Oe,Pe],styles:["footer.dialog-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:16px}"]})}}return t})();function ei(t,n){if(t&1&&(o(0,"mat-error"),u(1),p(2,"translate"),r()),t&2){let e=n.$implicit;a(),f(" ",g(2,1,e)," ")}}function ti(t,n){if(t&1&&(o(0,"label",16),u(1),p(2,"translate"),o(3,"mat-icon",4),p(4,"translate"),u(5," info_outline "),r()()),t&2){let e=m(3);a(),f(" ",g(2,3,e.labelPrefix+".beatmethighoxygen.label")," "),a(2),l("matTooltip",P(g(4,5,e.labelPrefix+".beatmethighoxygen.tooltip")))}}function ni(t,n){if(t&1&&(o(0,"mat-error"),u(1),p(2,"translate"),r()),t&2){let e=n.$implicit;a(),f(" ",g(2,1,e)," ")}}function ii(t,n){if(t&1&&(o(0,"div",17)(1,"mat-form-field"),v(2,"input",18),r(),d(3,ni,3,3,"mat-error",7),r()),t&2){let e=m(3);a(2),l("errorStateMatcher",e.meldungFormValidation.errorStateMatcher(e.fieldPathPrefix+".faelleAktuellHighFlowOxygen")),a(),l("ngForOf",e.meldungFormValidation.getErrors(e.fieldPathPrefix+".faelleAktuellHighFlowOxygen"))}}function ai(t,n){if(t&1&&(o(0,"label",19),u(1),p(2,"translate"),o(3,"mat-icon",4),p(4,"translate"),u(5," info_outline "),r()()),t&2){let e=m(3);a(),f(" ",g(2,3,e.labelPrefix+".nichtinvasivbeatmet.label")," "),a(2),l("matTooltip",P(g(4,5,e.labelPrefix+".nichtinvasivbeatmet.tooltip")))}}function ri(t,n){if(t&1&&(o(0,"mat-error"),u(1),p(2,"translate"),r()),t&2){let e=n.$implicit;a(),f(" ",g(2,1,e)," ")}}function oi(t,n){if(t&1&&(o(0,"div",20)(1,"mat-form-field"),v(2,"input",21),r(),d(3,ri,3,3,"mat-error",7),r()),t&2){let e=m(3);a(2),l("errorStateMatcher",e.meldungFormValidation.errorStateMatcher(e.fieldPathPrefix+".faelleAktuellNichtInvasivBeatmet")),a(),l("ngForOf",e.meldungFormValidation.getErrors(e.fieldPathPrefix+".faelleAktuellNichtInvasivBeatmet"))}}function li(t,n){if(t&1&&(o(0,"label",22),u(1),p(2,"translate"),o(3,"mat-icon",4),p(4,"translate"),u(5," info_outline "),r()()),t&2){let e=m(3);a(),f(" ",g(2,3,e.labelPrefix+".invasivbeatmet.label")," "),a(2),l("matTooltip",P(g(4,5,e.labelPrefix+".invasivbeatmet.tooltip")))}}function si(t,n){if(t&1&&(o(0,"mat-error"),u(1),p(2,"translate"),r()),t&2){let e=n.$implicit;a(),f(" ",g(2,1,e)," ")}}function ui(t,n){if(t&1&&(o(0,"div",23)(1,"mat-form-field"),v(2,"input",24),r(),d(3,si,3,3,"mat-error",7),r()),t&2){let e=m(3);a(2),l("errorStateMatcher",e.meldungFormValidation.errorStateMatcher(e.fieldPathPrefix+".faelleAktuellBeatmet")),a(),l("ngForOf",e.meldungFormValidation.getErrors(e.fieldPathPrefix+".faelleAktuellBeatmet"))}}function ci(t,n){if(t&1&&(o(0,"label",27),u(1),p(2,"translate"),o(3,"mat-icon",4),p(4,"translate"),u(5," info_outline "),r()()),t&2){let e=m(4);a(),f(" ",g(2,3,e.labelPrefix+".ecmo.label")," "),a(2),l("matTooltip",P(g(4,5,e.labelPrefix+".ecmo.tooltip")))}}function mi(t,n){if(t&1&&(o(0,"mat-error"),u(1),p(2,"translate"),r()),t&2){let e=n.$implicit;a(),f(" ",g(2,1,e)," ")}}function di(t,n){if(t&1&&(o(0,"div",28)(1,"mat-form-field"),v(2,"input",29),r(),d(3,mi,3,3,"mat-error",7),r()),t&2){let e=m(4);a(2),l("errorStateMatcher",e.meldungFormValidation.errorStateMatcher(e.fieldPathPrefix+".faelleAktuellEcmo")),a(),l("ngForOf",e.meldungFormValidation.getErrors(e.fieldPathPrefix+".faelleAktuellEcmo"))}}function pi(t,n){if(t&1&&(S(0),d(1,ci,6,7,"label",25)(2,di,4,2,"div",26),M()),t&2){let e=m(3);a(),l("ngIf",!e.istPausiert(e.fieldPathPrefix+".faelleAktuellEcmo")),a(),l("ngIf",!e.istPausiert(e.fieldPathPrefix+".faelleAktuellEcmo"))}}function gi(t,n){if(t&1&&(S(0),v(1,"div",9),p(2,"translate"),d(3,ti,6,7,"label",10)(4,ii,4,2,"div",11)(5,ai,6,7,"label",12)(6,oi,4,2,"div",13)(7,li,6,7,"label",14)(8,ui,4,2,"div",15)(9,pi,3,2,"ng-container",8),M()),t&2){let e=m(2);a(),l("innerHTML",g(2,8,e.labelPrefix+".subheader.label"),F),a(2),l("ngIf",!e.istPausiert(e.fieldPathPrefix+".faelleAktuellHighFlowOxygen")),a(),l("ngIf",!e.istPausiert(e.fieldPathPrefix+".faelleAktuellHighFlowOxygen")),a(),l("ngIf",!e.istPausiert(e.fieldPathPrefix+".faelleAktuellNichtInvasivBeatmet")),a(),l("ngIf",!e.istPausiert(e.fieldPathPrefix+".faelleAktuellNichtInvasivBeatmet")),a(),l("ngIf",!e.istPausiert(e.fieldPathPrefix+".faelleAktuellBeatmet")),a(),l("ngIf",!e.istPausiert(e.fieldPathPrefix+".faelleAktuellBeatmet")),a(),l("ngIf",e.ecmoAvailable)}}function fi(t,n){if(t&1&&(o(0,"div",1)(1,"div",2),u(2),p(3,"translate"),r(),o(4,"label",3),u(5),p(6,"translate"),o(7,"mat-icon",4),p(8,"translate"),u(9," info_outline "),r()(),o(10,"div",5)(11,"mat-form-field"),v(12,"input",6),r(),d(13,ei,3,3,"mat-error",7),r(),d(14,gi,10,10,"ng-container",8),r()),t&2){let e=m();l("formGroup",e.form),a(2),T(g(3,8,e.labelPrefix+".header.label")),a(3),f(" ",g(6,10,e.labelPrefix+".aktuellinbehandlung.label")," "),a(2),l("matTooltip",P(g(8,12,e.labelPrefix+".aktuellinbehandlung.tooltip"))),a(5),l("errorStateMatcher",e.meldungFormValidation.errorStateMatcher(e.fieldPathPrefix+".faelleAktuell")),a(),l("ngForOf",e.meldungFormValidation.getErrors(e.fieldPathPrefix+".faelleAktuell")),a(),l("ngIf",e.displaySubFields)}}function It(t){return new y({faelleAktuell:new h(null,t),faelleAktuellBeatmet:new h(null,t),faelleAktuellHighFlowOxygen:new h(null,t),faelleAktuellNichtInvasivBeatmet:new h(null,t),faelleAktuellEcmo:new h(null,t)})}var ur=(()=>{class t{constructor(){this.displaySubFields=!1,this.alleKinderfelderPausiert=!1}ngOnInit(){this.initForm()}ngOnChanges(){this.initForm(),this.handleFieldChange(this.form?.get("faelleAktuell")?.value),this.alleKinderfelderPausiert=this.sindAlleKinderfelderPausiert()}initForm(){this.form.get("faelleAktuell").valueChanges.pipe(Ge(e=>Re(e?1:3e3))).subscribe(this.handleFieldChange.bind(this))}handleFieldChange(e){this.displaySubFields=!this.alleKinderfelderPausiert&&e&&e>0,e||this.form.patchValue({faelleAktuellBeatmet:null,faelleAktuellNichtInvasivBeatmet:null,faelleAktuellHighFlowOxygen:null,faelleAktuellEcmo:null})}istPausiert(e){return sn(this.meldefeldPausierungen,e)}sindAlleKinderfelderPausiert(){let e=["faelleAktuellBeatmet","faelleAktuellHighFlowOxygen","faelleAktuellNichtInvasivBeatmet","faelleAktuellEcmo"];for(let i of e)if(!this.istPausiert(this.fieldPathPrefix+"."+i))return!1;return!0}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=k({type:t,selectors:[["public-atemwegserkrankung-questions"]],inputs:{form:"form",labelPrefix:"labelPrefix",ecmoAvailable:"ecmoAvailable",fieldPathPrefix:"fieldPathPrefix",meldungFormValidation:"meldu
1ngFormValidation",meldefeldPausierungen:"meldefeldPausierungen"},standalone:!1,features:[je],decls:1,vars:1,consts:[["class","fragen-block",3,"formGroup",4,"ngIf"],[1,"fragen-block",3,"formGroup"],[1,"field-header"],["for","faelleAktuell",1,"frage-1"],[1,"info-icon",3,"matTooltip"],[1,"field-value","wert-1"],["type","number","numberOnly","","min","0","max","999","matInput","","formControlName","faelleAktuell","id","faelleAktuell",3,"errorStateMatcher"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"header-subquestions",3,"innerHTML"],["for","faelleAktuellHighFlowOxygen","class","frage-2",4,"ngIf"],["class","field-value wert-2",4,"ngIf"],["for","faelleAktuellNichtInvasivBeatmet","class","frage-3",4,"ngIf"],["class","field-value wert-3",4,"ngIf"],["for","faelleAktuellBeatmet","class","frage-4",4,"ngIf"],["class","field-value wert-4",4,"ngIf"],["for","faelleAktuellHighFlowOxygen",1,"frage-2"],[1,"field-value","wert-2"],["type","number","numberOnly","","min","0","max","999","matInput","","formControlName","faelleAktuellHighFlowOxygen","id","faelleAktuellHighFlowOxygen",3,"errorStateMatcher"],["for","faelleAktuellNichtInvasivBeatmet",1,"frage-3"],[1,"field-value","wert-3"],["type","number","numberOnly","","min","0","max","999","matInput","","formControlName","faelleAktuellNichtInvasivBeatmet","id","faelleAktuellNichtInvasivBeatmet",3,"errorStateMatcher"],["for","faelleAktuellBeatmet",1,"frage-4"],[1,"field-value","wert-4"],["type","number","numberOnly","","min","0","max","999","matInput","","formControlName","faelleAktuellBeatmet","id","faelleAktuellBeatmet",3,"errorStateMatcher"],["for","faelleAktuellEcmo","class","frage-5",4,"ngIf"],["class","field-value wert-5",4,"ngIf"],["for","faelleAktuellEcmo",1,"frage-5"],[1,"field-value","wert-5"],["type","number","numberOnly","","min","0","max","999","matInput","","formControlName","faelleAktuellEcmo","id","faelleAktuellEcmo",3,"errorStateMatcher"]],template:function(i,s){i&1&&d(0,fi,15,14,"div",0),i&2&&l("ngIf",s.form)},dependencies:[B,O,me,N,ue,se,le,ce,X,ne,ee,te,oe,re,ae,ie,z],styles:[".field-header[_ngcontent-%COMP%]{background-color:#e4e4e4;padding:4px 12px;border-radius:4px;margin-bottom:32px;font-weight:600;line-height:32px}.fragen-block[_ngcontent-%COMP%]{display:grid;grid-template-rows:auto auto auto auto auto;grid-template-columns:minmax(0,2fr) repeat(4,minmax(0,1fr));grid-column-gap:32px}.fragen-block[_ngcontent-%COMP%] .field-header[_ngcontent-%COMP%]{grid-row:1/span 1;grid-column:1/span 5}.fragen-block[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.fragen-block[_ngcontent-%COMP%] label.frage-1[_ngcontent-%COMP%]{grid-row:2/span 2}.fragen-block[_ngcontent-%COMP%] .field-value.wert-1[_ngcontent-%COMP%]{grid-row:4/span 1}.fragen-block[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{grid-row:3/span 1}.fragen-block[_ngcontent-%COMP%] .header-subquestions[_ngcontent-%COMP%]{grid-row:2/span 1;grid-column:2/span 4}.fragen-block[_ngcontent-%COMP%] .field-value[_ngcontent-%COMP%]{grid-row:4/span 1}.fragen-block[_ngcontent-%COMP%] .frage-1[_ngcontent-%COMP%], .fragen-block[_ngcontent-%COMP%] .wert-1[_ngcontent-%COMP%]{grid-column:1/span 1}.fragen-block[_ngcontent-%COMP%] .frage-2[_ngcontent-%COMP%], .fragen-block[_ngcontent-%COMP%] .wert-2[_ngcontent-%COMP%]{grid-column:2/span 1}.fragen-block[_ngcontent-%COMP%] .frage-3[_ngcontent-%COMP%], .fragen-block[_ngcontent-%COMP%] .wert-3[_ngcontent-%COMP%]{grid-column:3/span 1}.fragen-block[_ngcontent-%COMP%] .frage-4[_ngcontent-%COMP%], .fragen-block[_ngcontent-%COMP%] .wert-4[_ngcontent-%COMP%]{grid-column:4/span 1}.fragen-block[_ngcontent-%COMP%] .frage-5[_ngcontent-%COMP%], .fragen-block[_ngcontent-%COMP%] .wert-5[_ngcontent-%COMP%]{grid-column:5/span 1}@media only screen and (max-width:1200px){.fragen-block[_ngcontent-%COMP%]{margin-bottom:32px;grid-template-rows:auto auto auto auto auto;grid-template-columns:repeat(4,minmax(0,1fr));grid-row-gap:16px}.fragen-block[_ngcontent-%COMP%] label.frage-1[_ngcontent-%COMP%]{grid-row:2/span 1;grid-column:1/span 4}.fragen-block[_ngcontent-%COMP%] .field-value.wert-1[_ngcontent-%COMP%]{grid-row:3/span 1;grid-column:1/span 4}.fragen-block[_ngcontent-%COMP%] .header-subquestions[_ngcontent-%COMP%]{grid-row:4/span 1;grid-column:1/span 4}.fragen-block[_ngcontent-%COMP%] .frage-2[_ngcontent-%COMP%]{grid-row:5/span 1;grid-column:1/span 1}
1.fragen-block[_ngcontent-%COMP%] .wert-2[_ngcontent-%COMP%]{grid-row:6/span 1;grid-column:1/span 1}.fragen-block[_ngcontent-%COMP%] .frage-3[_ngcontent-%COMP%]{grid-row:5/span 1;grid-column:2/span 1}.fragen-block[_ngcontent-%COMP%] .wert-3[_ngcontent-%COMP%]{grid-row:6/span 1;grid-column:2/span 1}.fragen-block[_ngcontent-%COMP%] .frage-4[_ngcontent-%COMP%]{grid-row:5/span 1;grid-column:3/span 1}.fragen-block[_ngcontent-%COMP%] .wert-4[_ngcontent-%COMP%]{grid-row:6/span 1;grid-column:3/span 1}.fragen-block[_ngcontent-%COMP%] .frage-5[_ngcontent-%COMP%]{grid-row:5/span 1;grid-column:4/span 1}.fragen-block[_ngcontent-%COMP%] .wert-5[_ngcontent-%COMP%]{grid-row:6/span 1;grid-column:4/span 1}}@media only screen and (max-width:767px){.fragen-block[_ngcontent-%COMP%]{margin-bottom:52px;display:flex;flex-direction:column}}"]})}}return t})();var hi=(t,n)=>({"frage-3":t,"frage-2":n}),_i=(t,n)=>({"field-value":1,"wert-3":t,"wert-2":n});function vi(t,n){if(t&1&&(o(0,"mat-error"),u(1),p(2,"translate"),r()),t&2){let e=n.$implicit;a(),f(" ",g(2,1,e)," ")}}function bi(t,n){if(t&1&&(o(0,"mat-error"),u(1),p(2,"translate"),r()),t&2){let e=n.$implicit;a(),f(" ",g(2,1,e)," ")}}function Ci(t,n){if(t&1&&(S(0),o(1,"label",13),u(2),p(3,"translate"),o(4,"mat-icon",4),p(5,"translate"),u(6," info_outline "),r()(),o(7,"div",14)(8,"mat-form-field"),v(9,"input",15),r(),d(10,bi,3,3,"mat-error",7),r(),M()),t&2){let e=m(3);a(2),f(" ",g(3,5,e.labelPrefix+".faelleAktuellNichtInvasivBeatmet.label")," "),a(2),l("matTooltip",P(g(5,7,e.labelPrefix+".faelleAktuellNichtInvasivBeatmet.tooltip"))),a(5),l("errorStateMatcher",e.meldungFormValidation.errorStateMatcher(e.fieldPathPrefix+".faelleAktuellNichtInvasivBeatmet")),a(),l("ngForOf",e.meldungFormValidation.getErrors(e.fieldPathPrefix+".faelleAktuellNichtInvasivBeatmet"))}}function Si(t,n){if(t&1&&(o(0,"mat-error"),u(1),p(2,"translate"),r()),t&2){let e=n.$implicit;a(),f(" ",g(2,1,e)," ")}}function Mi(t,n){if(t&1&&(o(0,"label",18),u(1),p(2,"translate"),o(3,"mat-icon",4),p(4,"translate"),u(5," info_outline "),r()()),t&2){let e=m(4);a(),f(" ",g(2,3,e.labelPrefix+".faelleAktuellEcmo.label")," "),a(2),l("matTooltip",P(g(4,5,e.labelPrefix+".faelleAktuellEcmo.tooltip")))}}function xi(t,n){if(t&1&&(o(0,"mat-error"),u(1),p(2,"translate"),r()),t&2){let e=n.$implicit;a(),f(" ",g(2,1,e)," ")}}function Ei(t,n){if(t&1&&(o(0,"div",19)(1,"mat-form-field"),v(2,"input",20),r(),d(3,xi,3,3,"mat-error",7),r()),t&2){let e=m(4);a(2),l("errorStateMatcher",e.meldungFormValidation.errorStateMatcher(e.fieldPathPrefix+".faelleAktuellEcmo")),a(),l("ngForOf",e.meldungFormValidation.getErrors(e.fieldPathPrefix+".faelleAktuellEcmo"))}}function ki(t,n){if(t&1&&(S(0),d(1,Mi,6,7,"label",16)(2,Ei,4,2,"div",17),M()),t&2){let e=m(3);a(),l("ngIf",e.ecmoAvailable),a(),l("ngIf",e.ecmoAvailable)}}function Ii(t,n){if(t&1&&(S(0),v(1,"div",9),p(2,"translate"),d(3,Ci,11,9,"ng-container",8),o(4,"label",10),u(5),p(6,"translate"),o(7,"mat-icon",4),p(8,"translate"),u(9," info_outline "),r()(),o(10,"div",11)(11,"mat-form-field"),v(12,"input",12),r(),d(13,Si,3,3,"mat-error",7),r(),d(14,ki,3,2,"ng-container",8),M()),t&2){let e=m(2);a(),l("innerHTML",g(2,10,e.labelPrefix+".subheader.label"),F),a(2),l("ngIf",e.displayNichtInvasivBeatmet),a(),l("ngClass",Ne(16,hi,e.displayNichtInvasivBeatmet,!e.displayNichtInvasivBeatmet)),a(),f(" ",g(6,12,e.labelPrefix+".faelleAktuellBeatmet.label")," "),a(2),l("matTooltip",P(g(8,14,e.labelPrefix+".faelleAktuellBeatmet.tooltip"))),a(3),l("ngClass",Ne(19,_i,e.displayNichtInvasivBeatmet,!e.displayNichtInvasivBeatmet)),a(2),l("errorStateMatcher",e.meldungFormValidation.errorStateMatcher(e.fieldPathPrefix+".faelleAktuellBeatmet")),a(),l("ngForOf",e.meldungFormValidation.getErrors(e.fieldPathPrefix+".faelleAktuellBeatmet")),a(),l("ngIf",e.displayEcmo)}}function Pi(t,n){if(t&1&&(o(0,"div",1)(1,"label",2),v(2,"span",3),p(3,"translate"),o(4,"mat-icon",4),p(5,"translate"),u(6," info_outline "),r()(),o(7,"div",5)(8,"mat-form-field"),v(9,"input",6),r(),d(10,vi,3,3,"mat-error",7),r(),d(11,Ii,15,22,"ng-container",8),r()),t&2){let e=m();l("formGroup",e.form),a(2),l("innerHTML",g(3,7,e.labelPrefix+".faelleAktuell.label"),F),a(2),l("matTooltip",P(g(5,9,e.labelPrefix+".faelleAktuell.tooltip"))),a(5),l("errorStateMatcher",e.meldungFormValidation.errorStateMatcher(e.fieldPathPrefix+".faelleAktuell")),a(),l("ngForOf",e.meldungFormValidation.getErrors(e.fieldPathPrefix+".faelleAktuell")),a(),l("ngIf",e.displaySubFields)}}var gr=(()=>{class t{constructor(){this.displaySubFields=!1,this.displayNichtInvasivBeatmet=!0,this.displayEcmo=!0}ngOnInit(){this.initForm()}ngOnChanges(){this.initForm(),this.handleFieldChange(this.form?.get("faelleAktuell")?.value)}initForm(){this.displayNichtInvasivBeatmet=this.fieldPathPrefix==="covid19StatusBelegung.covid19StatusV3.mitManifestation",this.displayEcmo=this.displayNichtInvasivBeatmet,this.form.get("faelleAktuell").valueChanges.pipe(Ge(e=>Re(e?1:3e3))).subscribe(this.handleFieldChange.bind(this))}handleFieldChange(e){this.displaySubFields=e&&e>0,e||this.form.patchValue({faelleAktuellBeatmet:null,faelleAktuellNichtInvasivBeatmet:null,faelleAktuellEcmo:null})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=k({type:t,selectors:[["public-covid-status-v3"]],inputs:{form:"form",labelPrefix:"labelPrefix",ecmoAvailable:"ecmoAvailable",fieldPathPrefix:"fieldPathPrefix",meldungFormValidation:"meldu
1ngFormValidation"},standalone:!1,features:[je],decls:1,vars:1,consts:[["class","fragen-block",3,"formGroup",4,"ngIf"],[1,"fragen-block",3,"formGroup"],["for","faelleAktuell",1,"frage-1"],[3,"innerHTML"],[1,"info-icon",3,"matTooltip"],[1,"field-value","wert-1"],["type","number","numberOnly","","min","0","max","999","matInput","","formControlName","faelleAktuell","id","faelleAktuell",3,"errorStateMatcher"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"header-subquestions",3,"innerHTML"],["for","faelleAktuellBeatmet",3,"ngClass"],[3,"ngClass"],["type","number","numberOnly","","min","0","max","999","matInput","","formControlName","faelleAktuellBeatmet","id","faelleAktuellBeatmet",3,"errorStateMatcher"],["for","faelleAktuellNichtInvasivBeatmet",1,"frage-2"],[1,"field-value","wert-2"],["type","number","numberOnly","","min","0","max","999","matInput","","formControlName","faelleAktuellNichtInvasivBeatmet","id","faelleAktuellNichtInvasivBeatmet",3,"errorStateMatcher"],["for","faelleAktuellEcmo","class","frage-4",4,"ngIf"],["class","field-value wert-4",4,"ngIf"],["for","faelleAktuellEcmo",1,"frage-4"],[1,"field-value","wert-4"],["type","number","numberOnly","","min","0","max","999","matInput","","formControlName","faelleAktuellEcmo","id","faelleAktuellEcmo",3,"errorStateMatcher"]],template:function(i,s){i&1&&d(0,Pi,12,11,"div",0),i&2&&l("ngIf",s.form)},dependencies:[Ht,B,O,me,N,ue,se,le,ce,X,ne,ee,te,oe,re,ae,ie,z],styles:[".fragen-block[_ngcontent-%COMP%]{display:grid;grid-template-rows:auto auto auto auto;grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,1fr));grid-column-gap:32px}.fragen-block[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.fragen-block[_ngcontent-%COMP%] label.frage-1[_ngcontent-%COMP%]{grid-row:1/span 2}.fragen-block[_ngcontent-%COMP%] .field-value.wert-1[_ngcontent-%COMP%]{grid-row:3/span 1}.fragen-block[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{grid-row:2/span 1}.fragen-block[_ngcontent-%COMP%] .header-subquestions[_ngcontent-%COMP%]{grid-row:1/span 1;grid-column:2/span 4}.fragen-block[_ngcontent-%COMP%] .field-value[_ngcontent-%COMP%]{grid-row:3/span 1}.fragen-block[_ngcontent-%COMP%] .frage-1[_ngcontent-%COMP%], .fragen-block[_ngcontent-%COMP%] .wert-1[_ngcontent-%COMP%]{grid-column:1/span 1}.fragen-block[_ngcontent-%COMP%] .frage-2[_ngcontent-%COMP%], .fragen-block[_ngcontent-%COMP%] .wert-2[_ngcontent-%COMP%]{grid-column:2/span 1}.fragen-block[_ngcontent-%COMP%] .frage-3[_ngcontent-%COMP%], .fragen-block[_ngcontent-%COMP%] .wert-3[_ngcontent-%COMP%]{grid-column:3/span 1}.fragen-block[_ngcontent-%COMP%] .frage-4[_ngcontent-%COMP%], .fragen-block[_ngcontent-%COMP%] .wert-4[_ngcontent-%COMP%]{grid-column:4/span 1}.fragen-block[_ngcontent-%COMP%] .frage-5[_ngcontent-%COMP%], .fragen-block[_ngcontent-%COMP%] .wert-5[_ngcontent-%COMP%]{grid-column:5/span 1}@media only screen and (max-width:1200px){.fragen-block[_ngcontent-%COMP%]{margin-bottom:32px;grid-template-rows:auto auto auto auto auto;grid-template-columns:repeat(4,minmax(0,1fr));grid-row-gap:16px}.fragen-block[_ngcontent-%COMP%] label.frage-1[_ngcontent-%COMP%]{grid-row:1/span 1;grid-column:1/span 4}.fragen-block[_ngcontent-%COMP%] .field-value.wert-1[_ngcontent-%COMP%]{grid-row:2/span 1;grid-column:1/span 4}.fragen-block[_ngcontent-%COMP%] .header-subquestions[_ngcontent-%COMP%]{grid-row:3/span 1;grid-column:1/span 4}.fragen-block[_ngcontent-%COMP%] .frage-2[_ngcontent-%COMP%]{grid-row:4/span 1;grid-column:1/span 1}.fragen-block[_ngcontent-%COMP%] .wert-2[_ngcontent-%COMP%]{grid-row:5/span 1;grid-column:1/span 1}.fragen-block[_ngcontent-%COMP%] .frage-3[_ngcontent-%COMP%]{grid-row:4/span 1;grid-column:2/span 1}.fragen-block[_ngcontent-%COMP%] .wert-3[_ngcontent-%COMP%]{grid-row:5/span 1;grid-column:2/span 1}.fragen-block[_ngcontent-%COMP%] .frage-4[_ngcontent-%COMP%]{grid-row:4/span 1;grid-column:3/span 1}.fragen-block[_ngcontent-%COMP%] .wert-4[_ngcontent-%COMP%]{grid-row:5/span 1;grid-column:3/span 1}.fragen-block[_ngcontent-%COMP%] .frage-5[_ngcontent-%COMP%]{grid-row:4/span 1;grid-column:4/span 1}.fragen-block[_ngcontent-%COMP%] .wert-5[_ngcontent-%COMP%]{grid-row:5/span 1;grid-column:4/span 1}}@media only screen and (max-width:767px){.fragen-block[_ngcontent-%COMP%]{margin-bottom:52px;display:flex;flex-direction:column}}"]})}}return t})();function gn(t){return new y({mitManifestation:Oi(t),ohneManifestation:yi(t)})}function Oi(t){return new y({faelleAktuell:new h(null,t),faelleAktuellBeatmet:new h(null,t),faelleAktuellNichtInvasivBeatmet:new h(null,t),faelleAktuellEcmo:new h(null,t)})}function yi(t){return new y({faelleAktuell:new h(null,t),faelleAktuellBeatmet:new h(null,t)})}var Te=()=>["E025M3A"];function Ai(t,n){if(t&1&&(o(0,"mat-error"),u(1),p(2,"translate"),r()),t&2){let e=n.$implicit;a(),f(" ",g(2,1,e)," ")}}function Vi(t,n){if(t&1&&(o(0,"mat-error"),u(1),p(2,"translate"),r()),t&2){let e=n.$implicit;a(),f(" ",g(2,1,e)," ")}}function wi(t,n){if(t&1&&(o(0,"mat-error"),u(1),p(2,"translate"),r()),t&2){let e=n.$implicit;a(),f(" ",g(2,1,e)," ")}}function Fi(t,n){if(t&1&&(o(0,"mat-error"),u(1),p(2,"translate"),r()),t&2){let e=n.$implicit;a(),f(" ",g(2,1,e)," ")}}function Ti(t,n){if(t&1&&(o(0,"mat-error"),u(1),p(2,"translate"),r()),t&2){let e=n.$implicit;a(),f(" ",g(2,1,e)," ")}}function Bi(t,n){if(t&1&&(o(0,"mat-error"),u(1),p(2,"translate"),r()),t&2){let e=n.$implicit;a(),f(" ",g(2,1,e)," ")}}function Ni(t,n){t&1&&(o(0,"mat-error",32),u(1),p(2,"translate"),r()),t&2&&(a(),f(" ",g(2,1,"meldung.erfassen.fehler.code.E025M3A")," "))}function Di(t,n){if(t&1&&(o(0,"div",1)(1,"div",2),u(2),p(3,"translate"),r(),o(4,"div",3)(5,"div",4)(6,"div"),v(7,"span",5),p(8,"translate"),o(9,"mat-icon",6),p(10,"translate"),u(11," info_outline "),r()(),o(12,"div",7)(13,"div")(14,"label",8)(15,"span"),u(16),p(17,"translate"),r()(),o(18,"div",9)(19,"mat-form-field"),v(20,"input",10),r(),d(21,Ai,3,3,"mat-error",11),r()(),o(22,"div")(23,"label",12)(24,"span"),u(25),p(26,"translate"),r()(),o(27,"div",13)(28,"mat-form-field"),v(29,"input",14),r(),d(30,Vi,3,3,"mat-error",11),r()(),o(31,"div")(32,"label",15)(33,"span"),u(34),p(35,"translate"),r()(),o(36,"div",16)(37,"mat-form-field"),v(38,"input",17),r(),d(39,wi,3,3,"mat-error",11),r()(),o(40,"div")(41,"label",18)(42,"span"),u(43),p(44,"translate"),r()(),o(45,"div",19)(46,"mat-form-field"),v(47,"input",20),r(),d(48,Fi,3,3,"mat-error",11),r()(),o(49,"div")(50,"label",21)(51,"span"),u(52),p(53,"translate"),r(),o(54,"mat-icon",22),p(55,"translate"),u(56," info_outline "),r()(),o(57,"div",23)(58,"mat-form-field"),v(59,"input",24),r(),d(60,Ti,3,3,"mat-error",11),r()(),o(61,"div")(62,"label",25)(63,"span"),u(64),p(65,"translate"),r(),o(66,"mat-icon",6),p(67,"translate"),u(68," info_outline "),r()(),o(69,"div",26)(70,"mat-form-field"),v(71,"input",27),r(),d(72,Bi,3,3,"mat-error",11),o(73,"div",28),u(74),p(75,"translate"),r()()()()(),v(76,"div",29),r(),o(77,"div",30),d(78,Ni,3,3,"mat-error",31),r()()),t&2){let e=m();l("formGroup",e.form),a(2),f(" ",g(3,29,"meldung.erfassen.covid19.impfstatus.title")," "),a(5),l("innerHTML",g(8,31,"meldung.erfassen.covid19.impfstatusV2.erstaufnahmen.header"),F),a(2),l("matTooltip",P(g(10,33,"meldung.erfassen.covid19.impfstatusV2.erstaufnahmen.tooltip"))),a(7),f(" ",g(17,35,"meldung.erfassen.delta.field.header.impfstatusV2.impfstatus0Impfungen")," "),a(4),l("errorStateMatcher",e.meldungFormValidation.errorStateMatcher(e.meldungFormPrefix+".impfstatus0Impfungen")),a(),l("ngForOf",e.meldungFormValidation.getErrors(e.meldungFormPrefix+".impfstatus0Impfungen",q(53,Te))),a(4),f(" ",g(26,37,"meldung.erfassen.delta.field.header.impfstatusV2.impfstatus1Impfungen")," "),a(4),l("errorStateMatcher",e.meldungFormValidation.errorStateMatcher(e.meldungFormPrefix+".impfstatus1Impfungen")),a(),l("ngForOf",e.meldungFormValidation.getErrors(e.meldungFormPrefix+".impfstatus1Impfungen",q(54,Te))),a(4),f(" ",g(35,39,"meldung.erfassen.delta.field.header.impfstatusV2.impfstatus2Impfungen")," "),a(4),l("errorStateMatcher",e.meldungFormValidation.errorStateMatcher(e.meldungFormPrefix+".impfstatus2Impfungen")),a(),l("ngForOf",e.meldungFormValidation.getErrors(e.meldungFormPrefix+".impfstatus2Impfungen",q(55,Te))),a(4),f(" ",g(44,41,"meldung.erfassen.delta.field.header.impfstatusV2.impfstatus3Impfungen")," "),a(4),l("errorStateMatcher",e.meldungFormValidation.errorStateMatcher(e.meldungFormPrefix+".impfstatus3Impfungen")),a(),l("ngForOf",e.meldungFormValidation.getErrors(e.meldungFormPrefix+".impfstatus3Impfungen",q(56,Te))),a(4),f(" ",g(53,43,"meldung.erfassen.delta.field.header.impfstatusV2.impfstatus4PlusImpfungen")," "),a(2),l("matTooltip",P(g(55,45,"meldung.erfassen.covid19.impfstatusV2.erstaufnahmen.alleImpfungen.tooltip"))),a(5),l("errorStateMatcher",e.meldungFormValidation.errorStateMatcher(e.meldungFormPrefix+".impfstatus4PlusImpfungen")),a(),l("ngForOf",e.meldungFormValidation.getErrors(e.meldungFormPrefix+".impfstatus4PlusImpfungen",q(57,Te))),a(4),f(" ",g(65,47,"meldung.erfassen.delta.field.header.impfstatusV2.impfstatusUnbekannt")," "),a(2),l("matTooltip",P(g(67,49,"meldung.erfassen.covid19.impfstatus.erstaufnahmen.impfstatusUnbekannt.tooltip"))),a(5),l("errorStateMatcher",e.meldungFormValidation.errorStateMatcher(e.meldungFormPrefix+".impfstatusUnbekannt")),a(),l("ngForOf",e.meldungFormValidation.getErrors(e.meldungFormPrefix+".impfstatusUnbekannt",q(58,Te))),a(2),f(" ",g(75,51,"meldung.erfassen.covid19.impfstatus.hinweis.impfstatusvortagebearbeiten")," "),a(4),l("ngIf",e.meldungForm.errors==null?null:e.meldungForm.errors.E025M3A)}}var _r=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=k({type:t,selectors:[["public-meldung-erfassen-impfstatus-v2"]],inputs:{form:"form",meldungForm:"meldungForm",meldebereich:"meldebereich",meldungFormValidation:"meldu
1ngFormValidation",meldungFormPrefix:"meldungFormPrefix"},standalone:!1,decls:1,vars:1,consts:[["class","impfstatus-container-block",3,"formGroup",4,"ngIf"],[1,"impfstatus-container-block",3,"formGroup"],[1,"field-header"],[1,"impfstatus-container-item"],[1,"field-value","wert-1"],[3,"innerHTML"],[1,"info-icon",3,"matTooltip"],[1,"impfstatus-container-items"],["for","impfstatus0Impfungen"],[1,"impfstatus0Impfungen"],["type","number","numberOnly","","min","0","max","999","matInput","","formControlName","impfstatus0Impfungen","id","impfstatus0Impfungen",3,"errorStateMatcher"],[4,"ngFor","ngForOf"],["for","impfstatus1Impfungen",1,"impfstatus1Impfungen"],[1,"impfstatus1Impfungen"],["type","number","numberOnly","","min","0","max","999","matInput","","formControlName","impfstatus1Impfungen","id","impfstatus1Impfungen",3,"errorStateMatcher"],["for","impfstatus2Impfungen",1,"impfstatus2Impfungen"],[1,"impfstatus2Impfungen"],["type","number","numberOnly","","min","0","max","999","matInput","","formControlName","impfstatus2Impfungen","id","impfstatus2Impfungen",3,"errorStateMatcher"],["for","impfstatus3Impfungen",1,"impfstatus3Impfungen"],[1,"impfstatus3Impfungen"],["type","number","numberOnly","","min","0","max","999","matInput","","formControlName","impfstatus3Impfungen","id","impfstatus3Impfungen",3,"errorStateMatcher"],["for","impfstatus4PlusImpfungen",1,"impfstatus4PlusImpfungen"],[1,"info-icon","endAlignedIcon",3,"matTooltip"],[1,"impfstatus4PlusImpfungen"],["type","number","numberOnly","","min","0","max","999","matInput","","formControlName","impfstatus4PlusImpfungen","id","impfstatus4PlusImpfungen",3,"errorStateMatcher"],["for","impfstatusUnbekannt",1,"impfstatusUnbekannt"],[1,"impfstatusUnbekannt"],["type","number","numberOnly","","min","0","max","999","matInput","","formControlName","impfstatusUnbekannt","id","impfstatusUnbekannt",3,"errorStateMatcher"],[1,"edit-impfstatusV2"],[1,"field-value","wert-2"],[1,"impfstatus-form-errors"],["class","rule5M3AViolated",4,"ngIf"],[1,"rule5M3AViolated"]],template:function(i,s){i&1&&d(0,Di,79,59,"div",0),i&2&&l("ngIf",s.form)},dependencies:[B,O,me,N,ue,se,le,ce,X,ne,ee,te,oe,re,ae,ie,z],styles:[".field-header[_ngcontent-%COMP%]{background-color:#e4e4e4;padding:4px 12px;border-radius:4px;margin-bottom:32px;font-weight:600;line-height:32px}.field-value[_ngcontent-%COMP%]{width:100%;margin-bottom:14px}.field-value[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}footer.meldung-erfassen-footer[_ngcontent-%COMP%]{background-color:#ffeced;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;padding:32px;margin-top:32px;row-gap:32px}footer.meldung-erfassen-footer[_ngcontent-%COMP%] .back[_ngcontent-%COMP%]{flex:0 0 auto;padding:0 16px 0 0}footer.meldung-erfassen-footer[_ngcontent-%COMP%] .forward[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;justify-content:flex-end;padding:0 0 0 16px}@media screen and (max-width:420px){footer.meldung-erfassen-footer[_ngcontent-%COMP%] .forward[_ngcontent-%COMP%], footer.meldung-erfassen-footer[_ngcontent-%COMP%] .back[_ngcontent-%COMP%]{text-align:center;padding:0;flex:0 0 100%;justify-content:center}}mat-button-toggle-group[_ngcontent-%COMP%]{flex-wrap:wrap}@media screen and (max-width:620px){mat-button-toggle-group[_ngcontent-%COMP%] mat-button-toggle[_ngcontent-%COMP%]{width:100%}}.mat-button-toggle-checked[value=VERFUEGBAR][_ngcontent-%COMP%]{background-color:#dffbdf}.mat-button-toggle-checked[value=BEGRENZT][_ngcontent-%COMP%]{background-color:#fffcdb}.mat-button-toggle-checked[value=NICHT_VERFUEGBAR][_ngcontent-%COMP%]{background-color:#fbd6d6}.mat-button-toggle-checked[value=KEINE_ANGABE][_ngcontent-%COMP%]{background-color:#e0e0e0}.info-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:18px;margin-right:12px}@media only screen and (min-width:768px){.fragen-block[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(7,min-content);grid-column-gap:32px;display:-ms-flexbox;flex-direction:column}.field-header[_ngcontent-%COMP%]{grid-row:1/span 1;grid-column:1/span 2}.frage-1[_ngcontent-%COMP%]{grid-row:2/span 1;grid-column:1/span 1}.frage-2[_ngcontent-%COMP%]{grid-row:2/span 1;grid-column:2/span 1}.wert-1[_ngcontent-%COMP%]{grid-row:3/span 1;grid-column:1/span 1}
1.wert-2[_ngcontent-%COMP%]{grid-row:3/span 1;grid-column:2/span 1}.frage-3[_ngcontent-%COMP%]{grid-row:4/span 1;grid-column:1/span 1}.frage-4[_ngcontent-%COMP%]{grid-row:4/span 1;grid-column:2/span 1}.wert-3[_ngcontent-%COMP%]{grid-row:5/span 1;grid-column:1/span 1}.wert-4[_ngcontent-%COMP%]{grid-row:5/span 1;grid-column:2/span 1}.frage-5[_ngcontent-%COMP%]{grid-row:6/span 1;grid-column:1/span 1}.frage-6[_ngcontent-%COMP%]{grid-row:6/span 1;grid-column:2/span 1}.wert-5[_ngcontent-%COMP%]{grid-row:7/span 1;grid-column:1/span 1}.wert-6[_ngcontent-%COMP%]{grid-row:7/span 1;grid-column:2/span 1}label[_ngcontent-%COMP%]:first-of-type:last-of-type, label[_ngcontent-%COMP%]:first-of-type:last-of-type + .field-value[_ngcontent-%COMP%]{grid-column:1/span 2}}",".impfstatus-container-block[_ngcontent-%COMP%] .impfstatus-container-items[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:flex-start;margin:32px 0;column-gap:12px}.impfstatus-container-block[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{min-height:30px;display:block}.impfstatus-container-block[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{max-width:60px}.impfstatus-container-block[_ngcontent-%COMP%] .impfstatusUnbekannt[_ngcontent-%COMP%]{width:250px!important;margin-left:66px}.impfstatus-container-block[_ngcontent-%COMP%] .impfstatusUnbekannt[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{width:250px!important}.impfstatus-container-block[_ngcontent-%COMP%] .impfstatusUnbekannt[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{min-width:250px!important;width:250px!important}.impfstatus-container-block[_ngcontent-%COMP%] .edit-impfstatusV2[_ngcontent-%COMP%]{margin-top:17px;width:250px}.endAlignedIcon[_ngcontent-%COMP%]{margin-left:10px}.impfstatus4PlusImpfungen[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .impfstatusUnbekannt[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative;top:-6px}"]})}}return t})(),nt=t=>new y({impfstatusUnbekannt:new h(null,t),impfstatus0Impfungen:new h(null,t),impfstatus1Impfungen:new h(null,t),impfstatus2Impfungen:new h(null,t),impfstatus3Impfungen:new h(null,t),impfstatus4PlusImpfungen:new h(null,t)});function it(t,n){let e={};return e.impfstatusUnbekannt=n.impfstatusUnbekannt,e.impfstatus0Impfungen=n.impfstatus0Impfungen,e.impfstatus1Impfungen=n.impfstatus1Impfungen,e.impfstatus2Impfungen=n.impfstatus2Impfungen,e.impfstatus3Impfungen=n.impfstatus3Impfungen,e.impfstatus4PlusImpfungen=n.impfstatus4PlusImpfungen,e}function at(t,n,e){let i=c=>t+(t.length>0?".":"")+c;return[n.createEqualsValidator("E025M3A",e,zi.map(i))]}var zi=["impfstatusUnbekannt","impfstatus0Impfungen","impfstatus1Impfungen","impfstatus2Impfungen","impfstatus3Impfungen","impfstatus4PlusImpfungen"];function Ui(t,n){if(t&1&&(o(0,"li"),u(1),p(2,"translate"),r()),t&2){let e=n.$implicit;a(),f(" ",g(2,1,"meldung.erfassen.fehler.code."+e)," ")}}function Ri(t,n){if(t&1&&(S(0),o(1,"h2"),u(2,"Fehlermeldungen"),r(),o(3,"ul"),d(4,Ui,3,3,"li",4),r(),M()),t&2){let e=m();a(4),l("ngForOf",e.errorCodes)}}var fn=(()=>{class t{constructor(e){this.data=e}ngOnInit(){this.parseErrorCodesFromResponse(this.data.response),this.meldung=this.data.meldung}parseErrorCodesFromResponse(e){let i={};if(!e){this.errorCodes=[],this.errorMessages=[];return}if(e.status===401||e.status===403){this.errorCodes=["UNAUTHORIZED"],this.errorMessages=[];return}let s=/\((E\w{3,})\)/;for(let c of e.error.errors)if(c.errormessage){let _=c.errormessage.match(s);_?i[_[1]]=1:this.errorMessages.push(c.errorMessage)}this.errorCodes=Object.keys(i)}static{this.\u0275fac=function(i){return new(i||t)(C(Ee))}}static{this.\u0275cmp=k({type:t,selectors:[["public-meldung-erfassen-fehler"]],standalone:!1,decls:11,vars:2,consts:[["mat-dialog-title",""],["mat-icon-button","","mat-dialog-close","",1,"close-icon"],[1,"meldungs-id"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(i,s){i&1&&(o(0,"header",0)(1,"h1"),u(2,"Ein Fehler ist aufgetreten"),r(),o(3,"button",1)(4,"mat-icon"),u(5,"close"),r()()(),o(6,"p"),u(7,"Bitte \xFCberpr\xFCfen Sie Ihre Meldung und versuchen Sie es erneut. Sollte es weiterhin zu einem Fehler kommen, wenden Sie sich bitte an den Support und geben folgende Referenz an:"),r(),o(8,"div",2),u(9),r(),d(10,Ri,5,1,"ng-container",3)),i&2&&(a(9),T(s.meldung.i
1d),a(),l("ngIf",s.errorCodes))},dependencies:[B,O,xe,Y,Ie,N,z],styles:["header[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.meldungs-id[_ngcontent-%COMP%]{size:20px;font-weight:700}h2[_ngcontent-%COMP%]{margin-top:42px}"]})}}return t})();var x=(function(t){return t[t.ICU_STATUS=0]="ICU_STATUS",t[t.ICU_RESERVE=1]="ICU_RESERVE",t[t.COVID_STATUS_SPEZIFIKATION=2]="COVID_STATUS_SPEZIFIKATION",t[t.COVID_STATUS_BELEGUNG=3]="COVID_STATUS_BELEGUNG",t[t.COVID_STATUS_NEUAUFNAHMEN=4]="COVID_STATUS_NEUAUFNAHMEN",t[t.RSV_INFLUENZA_STATUS=5]="RSV_INFLUENZA_STATUS",t[t.DELTA=6]="DELTA",t[t.SUCCESS=7]="SUCCESS",t})(x||{});function Pt(t){return t?.label?.indexOf("ICU Status")!==-1?x.ICU_STATUS:t?.label?.indexOf("ICU Reserve")!==-1?x.ICU_RESERVE:t?.label?.indexOf("COVID-19 Status: Spezifikation")!==-1?x.COVID_STATUS_SPEZIFIKATION:t?.label?.indexOf("COVID-19 Status: Belegung")!==-1?x.COVID_STATUS_BELEGUNG:t?.label?.indexOf("COVID-19 Status: Neuaufnahmen")!==-1?x.COVID_STATUS_NEUAUFNAHMEN:t?.label?.indexOf("RSV- und Influenza-Status")!==-1?x.RSV_INFLUENZA_STATUS:t?.label?.indexOf("Eingaben pr\xFCfen")!==-1?x.DELTA:x.SUCCESS}var rt=class{constructor(n,e,i){this.predicate=n,this.dialog=e,this.componentToOpenInDialog=i}onTabSwitch(n,e){this.predicate.displayPopup(n,e).subscribe(i=>{i&&this.openPopup(i)})}openPopup(n){this.dialog.open(this.componentToOpenInDialog,{data:n})}};function hn(t,n){return typeof n!="string"?n||0:t.get(n)?.value||0}var Be=class{constructor(n){this.formGroup=n,this.fieldNameToErrorCodeMapping={}}addFieldNameErrorCodeRel(n,e){if(Array.isArray(n)){n.forEach(i=>this.addFieldNameErrorCodeRel(i,e));return}typeof n=="string"&&(this.fieldNameToErrorCodeMapping[n]||(this.fieldNameToErrorCodeMapping[n]=[]),this.fieldNameToErrorCodeMapping[n].push(e))}evaluateFieldRefs(n){return n==null?0:Array.isArray(n)?n.map(i=>hn(this.formGroup,i)).reduce((i,s)=>i+s):typeof n=="string"?hn(this.formGroup,n):n}createGreaterThanValidator(n,e,i,s=null){return this.validator(n,e,i,s,(c,_)=>c>_)}createGreaterThanOrEqualsValidator(n,e,i,s=null){return this.validator(n,e,i,s,(c,_)=>c>=_)}createSmallerThanOrEqualsValidator(n,e,i,s=null){return this.validator(n,e,i,s,(c,_)=>c<=_)}createEqualsValidator(n,e,i,s=null){return this.validator(n,e,i,s,(c,_)=>c===_)}validator(n,e,i,s,c){return this.addFieldNameErrorCodeRel(e,n),this.addFieldNameErrorCodeRel(i,n),()=>{if(s){let I=this.evaluateFieldRefs(s.ref);if(s.ignoreValidation(I))return null}let _=this.evaluateFieldRefs(e),b=this.evaluateFieldRefs(i);return c(_,b)?null:{[n]:!0}}}errorStateMatcher(n){let e=this;
1return{isErrorState(i,s){if(!i||!i.touched)return!1;if(i.invalid)return!0;let c=e.fieldNameToErrorCodeMapping[n];if(c?.length>0){for(let _ of c)if(e.formGroup?.errors?.[_])return!0}return!1}}}hasErrors(n){let e=this.formGroup.get(n);if(!e.touched)return!1;if(e.invalid)return!0;for(let i of Object.keys(this.fieldNameToErrorCodeMapping))if(i.indexOf(n)===0){let s=this.fieldNameToErrorCodeMapping[i];if(s?.length>0){for(let c of s)if(this.formGroup?.errors?.[c])return!0}}return!1}getErrors(n,e=[]){let i=[],s=this.formGroup.get(n);if(!s)return[];if(!s.touched)return[];let c=s.errors;c&&(i=i.concat(Object.keys(c)));let _=this.fieldNameToErrorCodeMapping[n];if(_)for(let b of _)this.formGroup?.errors?.[b]&&i.push(b);return i.filter((b,I)=>i.indexOf(b)===I).filter(b=>e.indexOf(b)===-1).map(b=>"meldung.erfassen.fehler.code."+b)}};var Gi=mt.StatusEinschaetzungHighcareEnum,_n=mt.StatusEinschaetzungEcmoEnum,Hi=qt.BetriebssituationEnum;function vn(){let t=[pe.min(0),pe.max(999)],n=new Ye().group({icuStatus:new y({intensivBetten:new h(null,t),intensivBettenBelegt:new h(null,t),patientenNichtInvasivBeatmet:new h(null,t),patientenInvasivBeatmet:new h(null,t),patientenEcmo:new h(null,t),freieIvKapazitaet:new h(null,t),freieEcmoKapazitaet:new h(null,t),statusEinschaetzungHighcare:new h(Gi.KEINE_ANGABE),statusEinschaetzungEcmo:new h(_n.KEINE_ANGABE),statusEinschaetzungDialyse:new h(_n.KEINE_ANGABE)}),icuReserve:new y({intensivBettenNotfall7d:new h(null,t)}),rsvUndInfluenzaStatus:new y({rsvStatus:It(t),influenzaStatus:It(t)}),covid19StatusBelegung:new y({faelleAktuell:new h(null,t),covid19StatusV3:gn(t),betriebssituation:new h(Hi.KEINE_ANGABE,[pe.required]),betriebseinschraenkungPersonal:new h(null),betriebseinschraenkungRaum:new h(null),betriebseinschraenkungBeatmungsgeraet:new h(null),betriebseinschraenkungVerbrauchsmaterial:new h(null)}),covid19StatusSpezifikation:new y({altersstrata:new y({stratum17minus:new h(null,t),stratum18bis29:new h(null,t),stratum30bis39:new h(null,t),stratum40bis49:new h(null,t),stratum50bis59:new h(null,t),stratum60bis69:new h(null,t),stratum70bis79:new h(null,t),stratum80plus:new h(null,t)}),varianten:new y({delta:new h(null,t),omikron:new h(null,t),sonstige:new h(null,t),unbekannt:new h(null,t)}),schwangereCovidStatus:new y({anzahlSchwangere:new h(null,t)})}),covid19StatusNeuaufnahmen:new y({neuaufnahmen:new y({erstaufnahmen:new h(null,t)}),faelleCovidVortagVerlegtVerstorben:new y({faelleCovidVortagVerlegt:new h(null,t),faelleCovidVortagVerstorben:new h(null,t)}),impfstatusV2:nt(t)})}),e=Li(n);return{meldungForm:n,meldungFormValidation:e}}function Li(t){let n=new Be(t),e=[n.createGreaterThanOrEqualsValidator("E025A","icuStatus.intensivBetten","icuStatus.intensivBettenBelegt"),n.createGreaterThanOrEqualsValidator("E025B4","icuStatus.intensivBetten","icuStatus.freieIvKapazitaet"),n.createGreaterThanOrEqualsValidator("E025B5","icuStatus.intensivBetten","icuStatus.freieEcmoKapazitaet"),n.createGreaterThanOrEqualsValidator("E025C4A","covid19StatusBelegung.covid19StatusV3.mitManifestation.faelleAktuell","covid19StatusBelegung.covid19StatusV3.mitManifestation.faelleAktuellEcmo"),n.createGreaterThanOrEqualsValidator("E025C41","rsvUndInfluenzaStatus.rsvStatus.faelleAktuell","rsvUndInfluenzaStatus.rsvStatus.faelleAktuellEcmo"),n.createGreaterThanOrEqualsValidator("E025C42","rsvUndInfluenzaStatus.influenzaStatus.faelleAktuell","rsvUndInfluenzaStatus.influenzaStatus.faelleAktuellEcmo"),n.createGreaterThanOrEqualsValidator("E025C5A","covid19StatusBelegung.covid19StatusV3.mitManifestation.faelleAktuell",["covid19StatusBelegung.covid19StatusV3.mitManifestation.faelleAktuellBeatmet","covid19StatusBelegung.covid19StatusV3.mitManifestation.faelleAktuellNichtInvasivBeatmet"]),n.createGreaterThanOrEqualsValidator("E025C5B","covid19StatusBelegung.covid19StatusV3.ohneManifestation.faelleAktuell",["covid19StatusBelegung.covid19StatusV3.ohneManifestation.faelleAktuellBeatmet"]),n.createGreaterThanOrEqualsValidator("E025C51","rsvUndInfluenzaStatus.rsvStatus.faelleAktuell",["rsvUndInfluenzaStatus.rsvStatus.faelleAktuellBeatmet","rsvUndInfluenzaStatus.rsvStatus.faelleAktuellHighFlowOxygen","rsvUndInfluenzaStatus.rsvStatus.faelleAktuellNichtInvasivBeatmet"]),n.createGreaterThanOrEqualsValidator("E025C52","rsvUndInfluenzaStatus.influenzaStatus.faelleAktuell",["rsvUndInfluenzaStatus.influenzaStatus.faelleAktuellBeatmet","rsvUndInfluenzaStatus.influenzaStatus.faelleAktuellHighFlowOxygen","rsvUndInfluenzaStatus.influenzaStatus.faelleAktuellNichtInvasivBeatmet"]),n.createEqualsValidator("E025C6","covid19StatusBelegung.faelleAktuell",["covid19StatusBelegung.covid19StatusV3.mitManifestation.faelleAktuell","covid19StatusBelegung.covid19StatusV3.ohneManifestation.faelleAktuell"]),n.createGreaterThanOrEqualsValidator("E025D1","icuStatus.patientenInvasivBeatmet",["covid19StatusBelegung.covid19StatusV3.mitManifestation.faelleAktuellBeatmet","covid19StatusBelegung.covid19StatusV3.ohneManifestation.faelleAktuellBeatmet","rsvUndInfluenzaStatus.rsvStatus.faelleAktuellBeatmet","rsvUndInfluenzaStatus.influenzaStatus.faelleAktuellBeatmet"]),n.createGreaterThanOrEqualsValidator("E025D2","icuStatus.patientenNichtInvasivBeatmet",["covid19StatusBelegung.covid19StatusV3.mitManifestation.faelleAktuellNichtInvasivBeatmet","rsvUndInfluenzaStatus.rsvStatus.faelleAktuellNichtInvasivBeatmet","rsvUndInfluenzaStatus.influenzaStatus.faelleAktuellNichtInvasivBeatmet"]),n.createGreaterThanOrEqualsValidator("E025D3","icuStatus.patientenEcmo",["covid19StatusBelegung.covid19StatusV3.mitManifestation.faelleAktuellEcmo","rsvUndInfluenzaStatus.rsvStatus.faelleAktuellEcmo","rsvUndInfluenzaStatus.influenzaStatus.faelleAktuellEcmo"]),n.createGreaterThanOrEqualsValidator("E025D4","icuStatus.intensivBettenBelegt",["covid19StatusBelegung.faelleAktuell","rsvUndInfluenzaStatus.rsvStatus.faelleAktuell","rsvUndInfluenzaStatus.influenzaStatus.faelleAktuell"]),n.createGreaterThanOrEqualsValidator("E025E1","icuStatus.intensivBettenBelegt","icuStatus.patientenEcmo"),n.createGreaterThanOrEqualsValidator("E025E4","icuStatus.intensivBettenBelegt",["icuStatus.patientenInvasivBeatmet","icuStatus.patientenNichtInvasivBeatmet"]),n.createGreaterThanOrEqualsValidator("E025G2","covid19StatusBelegung.faelleAktuell",Ot.map(i=>"covid19StatusSpezifikation.altersstrata."+i)),n.createGreaterThanOrEqualsValidator("E025J1","covid19StatusBelegung.faelleAktuell",yt.map(i=>"covid19StatusSpezifikation.varianten."+i)),n.createGreaterThanValidator("E025K2",["icuStatus.intensivBetten","icuStatus.intensivBetten",10],["covid19StatusNeuaufnahmen.neuaufnahmen.erstaufnahmen"]),n.createGreaterThanValidator("E025K3",["icuStatus.intensivBetten","icuStatus.intensivBetten",10],["covid19StatusNeuaufnahmen.faelleCovidVortagVerlegtVerstorben.faelleCovidVortagVerlegt","covid19StatusNeuaufnahmen.faelleCovidVortagVerlegtVerstorben.faelleCovidVortagVerstorben"])];return e=e.concat(at("covid19StatusNeuaufnahmen.impfstatusV2",n,"covid19StatusNeuaufnahmen.neuaufnahmen.erstaufnahmen")),e.push(n.createGreaterThanOrEqualsValidator("E025L2","covid19StatusBelegung.faelleAktuell","covid19StatusSpezifikation.schwangereCovidStatus.anzahlSchwangere")),t.setValidators(e),n}var bn=We.BetriebssituationEnum;function Cn(t,n,e){let i=n.get("icuStatus").value,s=n.get("icuReserve").value,c=n.get("covid19StatusSpezifikation").value,_=n.get("covid19StatusBelegung").value,b=n.get("covid19StatusNeuaufnahmen").value,I=n.get("covid19StatusNeuaufnahmen.impfstatusV2").value,E={id:t,meldebereich:{id:e.id},kapazitaeten:{intensivBetten:i.intensivBetten,intensivBettenBelegt:i.intensivBettenBelegt,patientenNichtInvasivBeatmet:i.patientenNichtInvasivBeatmet,patientenInvasivBeatmet:i.patientenInvasivBeatmet,patientenEcmo:i.patientenEcmo,freieIvKapazitaet:i.freieIvKapazitaet,freieEcmoKapazitaet:i.freieEcmoKapazitaet,statusEinschaetzungHighcare:i.statusEinschaetzungHighcare,statusEinschaetzungEcmo:i.statusEinschaetzungEcmo,intensivBettenNotfall7d:s.intensivBettenNotfall7d},covid19StatusV3:_.covid19StatusV3,faelleCovidAktuell:_.faelleAktuell,faelleCovidVortagVerlegtVerstorben:{faelleCovidVortagVerlegt:b.faelleCovidVortagVerlegtVerstorben.faelleCovidVortagVerlegt,faelleCovidVortagVerstorben:b.faelleCovidVortagVerlegtVerstorben.faelleCovidVortagVerstorben},betriebssituation:_.betriebssituation,auspraegung:"V2",varianten:c.varianten,neuaufnahmen:b.neuaufnahmen};if(E.impfstatusV2=it(e,I),ht(e)&&(E.schwangereCovidStatus={anzahlSchwangere:c.schwangereCovidStatus.anzahlSchwangere}),vt(e)&&(E.altersstrata=c.altersstrata),ji(n)?(E.betriebseinschraenkungPersonal=!!_.betriebseinschraenkungPersonal,E.betriebseinschraenkungRaum=!!_.betriebseinschraenkungRaum,E.betriebseinschraenkungBeatmungsgeraet=!!_.betriebseinschraenkungBeatmungsgeraet,E.betriebseinschraenkungVerbrauchsmaterial=!!_.betriebseinschraenkungVerbrauchsmaterial):(E.betriebseinschraenkungPersonal=null,E.betriebseinschraenkungRaum=null,E.betriebseinschraenkungBeatmungsgeraet=null,E.betriebseinschraenkungVerbrauchsmaterial=null),De(e)){let he=n.get("rsvUndInfluenzaStatus").value;E.rsvStatus=he.rsvStatus,E.influenzaStatus=he.influenzaStatus}if(ze(e)){let he=n.get("rsvUndInfluenzaStatus").value;E.influenzaStatus=he.influenzaStatus}return E}function ji(t){let e=t.value.covid19StatusBelegung.betriebssituation;return e===bn.TEILWEISE_EINGESCHRAENKT||e===bn.EINGESCHRAENKT}var de=$t.MeldungErfassenTabEnum,Sn=(()=>{class t{constructor(e){this.popupService=e,this.alreadyDisplayedPopups=[],this.rules={}}displayPopup(e,i){this.rules[i.id]||(this.rules[i.id]=this.popupService.getAktiveRegeln(i.id
1).pipe(He(c=>c.data)));let s=Ki(e);return this.rules[i.id].pipe(ut(c=>!this.alreadyDisplayedPopups.includes(c.id))).pipe(ut(c=>c.meldungErfassenTab.includes(s))).pipe(Le(c=>this.alreadyDisplayedPopups.push(c.id)))}static{this.\u0275fac=function(i){return new(i||t)(L(qe))}}static{this.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Ki(t){switch(t){case x.ICU_STATUS:return de.ICU_STATUS;case x.ICU_RESERVE:return de.ICU_RESERVE;case x.COVID_STATUS_SPEZIFIKATION:return de.COVID19_SPEZIFIKATION;case x.COVID_STATUS_BELEGUNG:return de.COVID19_BELEGUNG;case x.COVID_STATUS_NEUAUFNAHMEN:return de.COVID19_NEUAUFNAHMEN;case x.RSV_INFLUENZA_STATUS:return de.RSV_INFLUENZA_STATUS;case x.DELTA:return de.DELTA}return de.ICU_STATUS}var ot=(()=>{class t{constructor(e,i,s){this.dialog=e,this.log=i,this.snackbar=s}handleResponse(e,i,s){this.log.logError("Meldung erfassen nicht erfolgreich",e),e.status===403?i?this.snackbar.open("Sie d\xFCrfen diese Meldung nicht bearbeiten. Bitte kontaktieren Sie den Support."):this.snackbar.open("Sie d\xFCrfen f\xFCr diesen Meldebereich keine Meldungen erfassen. Bitte kontaktieren Sie den Support."):this.dialog.open(fn,{data:{response:e,meldung:s}})}static{this.\u0275fac=function(i){return new(i||t)(L(ke),L(Me),L(J))}}static{this.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Wi=Kt.VersorgungskategorieEnum,Qi=["stepper"],Zi=t=>({"button-disabled":t});function Yi(t,n){t&1&&v(0,"app-ueberschrift",5)}function Ji(t,n){if(t&1){let e=U();S(0),u(1," Meldungen lassen sich maximal 14 Tage im Nachhinein bearbeiten. Noch "),o(2,"app-countdown-timer",7),A("countDownFinished",function(){V(e);let s=m(2);return w(s.editTimeExpired())}),r(),u(3," verbleiben. "),M()}if(t&2){let e=m(2);a(2),l("endDate",e.timerEndDate)}}function Xi(t,n){if(t&1&&(o(0,"app-ueberschrift",6),d(1,Ji,4,1,"ng-container",4),r()),t&2){let e=m();a(),l("ngIf",e.timerEndDate)}}function ea(t,n){t&1&&(o(0,"p"),u(1,` Die Bearbeitung dieser Meldung ist nicht m\xF6glich. Wenn Sie denken, dass dies ein Fehler ist, probieren Sie es erneut oder wenden Sie sich bitte an den Support. 2`),r())}function ta(t,n){t&1&&(S(0),o(1,"h2"),u(2,"Meldebereich wird geladen"),r(),M())}function na(t,n){if(t&1&&(o(0,"p"),u(1),p(2,"deDate"),o(3,"mat-icon",38),p(4,"translate"),u(5," info_outline "),r()()),t&2){let e=m(3);a(),f(" (Letzte Erfassung am ",g(2,3,e.letzteMeldung.meldezeitpunkt),") "),a(2),l("matTooltip",P(g(4,5,"meldung.erfassen.covid19.meldezeitpunkt.tooltip")))}}function ia(t,n){if(t&1&&(o(0,"h4"),u(1),p(2,"deDate"),r()),t&2){let e=m(3);a(),T(g(2,1,e.meldungToEdit.creationTimestamp))}}function aa(t,n){if(t&1){let e=U();o(0,"div",39)(1,"button",40),A("click",function(){V(e);let s=m(3);return w(s.prefill())}),u(2,"Automatisch vorausf\xFCllen"),r(),o(3,"span"),u(4,"mit Daten der letzten Erfassung"),r()()}}function ra(t,n){if(t&1&&u(0),t&2){let e=n.index;f(" ",e+1," ")}}function oa(t,n){if(t&1&&u(0),t&2){let e=n.index;f(" ",e+1," ")}}function la(t,n){if(t&1&&u(0),t&2){let e=n.index;f(" ",e+1," ")}}function sa(t,n){if(t&1&&(o(0,"mat-step",41),v(1,"public-meldung-erfassen-step-rsvinfluenza",42),r()),t&2){let e=m(3);l("hasError",e.meldungFormValidation.hasErrors("rsvUndInfluenzaStatus")),a(),l("meldungForm",e.meldungForm)("meldungFormValidation",e.meldungFormValidation)("ecmoAvailable",e.ecmoAvailable)("meldefeldPausierungen",e.meldefeldPausierungen)}}function ua(t,n){if(t&1){let e=U();o(0,"div",43),A("click",function(s){V(e);let c=m(3);return c.meldungForm.markAllAsTouched(),w(!c.meldungForm.valid&&s.stopPropagation())}),u(1,"Eingaben pr\xFCfen "),r()}if(t&2){let e=m(3);l("matTooltipDisabled",P(e.meldungForm.valid))("ngClass",ve(3,Zi,!e.meldungForm.valid))}}function ca(t,n){if(t&1){let e=U();o(0,"button",44),A("click",function(){V(e);let s=m(3);return w(s.tryCheckout())}),u(1," Meldung speichern "),r()}if(t&2){let e=m(3);l("disabled",e.checkoutButtonDisabled)}}function ma(t,n){if(t&1&&(S(0),o(1,"h4"),u(2,"Generierte Meldung"),r(),o(3,"p"),u(4," Dies ist die aus dem Formularobjekt generierte Meldung. Diese wird beim Schritt auf die Zusammenfassungsseite generiert/aktualisiert. "),r(),o(5,"pre"),u(6),p(7,"json"),r(),M()),t&2){let e=m(4);a(6),T(g(7,1,e.checkoutMeldung))}}function da(t,n){if(t&1&&(S(0),o(1,"h2"),u(2,"Admin-Sicht"),r(),o(3,"h3"),u(4,"Formular-Objekt"),r(),o(5,"p"),u(6,' Dies ist nur f\xFCr Admins sichtbar. Die gezeigte Datenstruktur ist der Inhalt des Formular-Objekts, welche sp\xE4ter (beim Klick auf die Zusammenfassungsseite) in das Meldungs-Objekt gemappt wird. Dieses Sicht ist "live", d.h. alle \xC4nderungen im Formular werden direkt angezeigt. '),r(),o(7,"pre"),u(8),p(9,"json"),r(),d(10,ma,8,3,"ng-container",4),M()),t&2){let e=m(3);a(8),T(g(9,2,e.meldungForm.value)),a(2),l("ngIf",e.checkoutMeldung)}}function pa(t,n){if(t&1){let e=U();S(0),o(1,"header")(2,"div",8)(3,"h2"),u(4),r(),o(5,"p",9),u(6),r(),d(7,na,6,7,"p",4)(8,ia,3,3,"h4",4),r(),d(9,aa,5,0,"div",10),r(),o(10,"mat-card",11)(11,"form",12)(12,"mat-horizontal-stepper",13,0),A("selectionChange",function(s){V(e);let c=m(2);return w(c.onStepperSelectionChange(s))}),d(14,ra,1,1,"ng-template",14)(15,oa,1,1,"ng-template",15)(16,la,1,1,"ng-template",16),o(17,"mat-step",17),v(18,"public-meldung-erfassen-step-icustatus",18),r(),o(19,"mat-step",19),v(20,"public-meldung-erfassen-step-icureserve",20),r(),o(21,"mat-step",21),v(22,"public-meldung-erfassen-step-covid-belegung",22),r(),o(23,"mat-step",23),v(24,"public-meldung-erfassen-step-covid-spezifikation",24),r(),o(25,"mat-step",25),v(26,"public-meldung-erfassen-step-covid-neuaufnahmen",26),r(),d(27,sa,2,5,"mat-step",27),o(28,"mat-step",28),d(29,ua,2,5,"ng-template",29),o(30,"public-meldung-erfassen-delta",30),A("meldungDeltasEmitter",function(s){V(e);let c=m(2);return w(c.onMeldungDeltasUpdate(s))}),r(),o(31,"footer")(32,"div",31)(33,"button",32),u(34," Meldung \xE4ndern "),r()(),o(35,"div",33)(36,"button",34),A("click",function(){V(e);let s=m(2);return w(s.tryCheckout())}),u(37," Meldung speichern "),r()()()(),o(38,"mat-step"),d(39,ca,2,1,"ng-template",29),r()()(),d(40,da,11,4,"ng-container",4),v(41,"app-content-display",35),r(),o(42,"div",36),v(43,"app-kontakt-info",37),r(),M()}if(t&2){let e=m(2);a(4),Ke("Meldung f\xFCr den Meldebereich: ",e.meldebereich.bezeichnung," ",e.meldebereich.behandlungsschwerpunktL2?" - "+e.meldebereich.behandlungsschwerpunktL2:""," "),a(2),T(e.meldebereich.krankenhausStandort.bezeichnung),a(),l("ngIf",!e.editModus&&e.letzteMeldung),a(),l("ngIf",e.editModus&&e.meldungToEdit),a(),l("ngIf",!e.editModus&&e.letzteMeldung&&(!e.lastStepperSelection||e.lastStepperSelection.selectedIndex===0)),a(2),l("formGroup",e.meldungForm),a(6),l("hasError",e.meldungFormValidation.hasErrors("icuStatus")),a(),l("meldungForm",e.meldungForm)("meldungFormValidation",e.meldungFormValidation)("ecmoAvailable",e.ecmoAvailable),a(),l("hasError",e.meldungFormValidation.hasErrors("icuReserve")),a(),l("meldungForm",e.meldungForm)("meldungFormValidation",e.meldungFormValidation),a(),l("hasError",e.meldungFormValidation.hasErrors("covid19StatusBelegung")),a(),l("ecmoAvailable",e.ecmoAvailable)("meldungForm",e.meldungForm)("meldebereich",e.meldebereich)("meldu
2ngFormValidation",e.meldungFormValidation),a(),l("hasError",e.meldungFormValidation.hasErrors("covid19StatusSpezifikation")),a(),l("ecmoAvailable",e.ecmoAvailable)("meldungForm",e.meldungForm)("meldebereich",e.meldebereich)("meldungFormValidation",e.meldungFormValidation)("variantenFields",e.variantenFields)("altersstrataFields",e.altersstrataFields),a(),l("hasError",e.meldungFormValidation.hasErrors("covid19StatusNeuaufnahmen")),a(),l("meldungToEdit",e.meldungToEdit)("editModus",e.editModus)("meldungForm",e.meldungForm)("meldebereich",e.meldebereich)("meldungFormValidation",e.meldungFormValidation)("meldefeldPausierungen",e.meldefeldPausierungen),a(),l("ngIf",e.displayRsvStatusTab()),a(),l("completed",!1),a(2),l("checkoutMeldung",e.checkoutMeldung)("letzteMeldung",e.letzteMeldung)("meldebereich",e.meldebereich)("ecmoAvailable",e.ecmoAvailable)("editModus",e.editModus)("meldungToEdit",e.meldungToEdit)("meldefeldPausierungen",e.meldefeldPausierungen),a(6),l("disabled",e.checkoutButtonDisabled),a(4),l("ngIf",e.isAdmin&&e.meldungForm)}}function ga(t,n){if(t&1&&(S(0),d(1,ta,3,0,"ng-container",4)(2,pa,44,44,"ng-container",4),M()),t&2){let e=m();a(),l("ngIf",!e.meldebereich),a(),l("ngIf",e.meldebereich)}}var Ot=["stratum17minus","stratum18bis29","stratum30bis39","stratum40bis49","stratum50bis59","stratum60bis69","stratum70bis79","stratum80plus"],yt=["delta","omikron","sonstige","unbekannt"],At=(()=>{class t{get isFormInvalid(){return this.meldungForm?.invalid||!1}constructor(e,i,s,c,_,b,I,E,he,An,Vn,wn,Fn,Tn){this.dialog=e,this.log=i,this.meldebereichController=s,this.notificationService=c,this.meldungController=_,this.formBuilder=b,this.router=I,this.route=E,this._snackbar=he,this.meineMeldebereicheService=An,this.meldungErfassenPopupRule=Vn,this.roleHelperService=wn,this.meldungErfassenFehlerService=Fn,this.pausierteMeldefelderController=Tn,this.checkoutButtonDisabled=!0,this.displayEditModusError=!1,this.checkoutMeldung=null,this.letzteMeldung=null,this.editModus=!1,this.ecmoAvailable=!0,this.tabSwitchListener=[],this.altersstrataFields=Ot,this.variantenFields=yt,this.blockDeltaNavigation=!1,this.isAdmin=!1,this.dirty=!0}markComponentAsNotDirty(){this.dirty=!1}isDirty(){return this.dirty}onPageUnload(e){this.dirty&&this.roleHelperService.isLoggedIn()&&(e.returnValue=!0)}ngOnInit(){this.isAdmin=this.roleHelperService.hasRole(dt.ADMIN_SYSTEM),this.pausierteMeldefelderController.getPausierteFelder().subscribe(e=>this.meldefeldPausierungen=e),this.tabSwitchListener=[new rt(this.meldungErfassenPopupRule,this.dialog,pn)],this.route.params.subscribe(e=>{e.meldebereichId&&this.meldebereichController.getPrivateMeldebereichById(e.meldebereichId).subscribe(i=>{this.loadMeldebereich(i)})})}loadMeldebereich(e){if(this.stepper&&(this.stepper.selectedIndex=0),this.log.logDebug("Meldebereich zum Erfassen:",e),this.dirty=!0,this.letzteMeldung=null,this.checkoutMeldung=null,this.checkoutButtonDisabled=!0,e){this.meldebereich=e,this.tabSwitchListener.map(c=>c.onTabSwitch(x.ICU_STATUS,this.meldebereich)),this.versorgungsKategorien=this.initVersorgungskategorienDisplayOrder(e.versorgungsKategorien),this.ecmoAvailable=ft(this.meldebereich);let i,s=this.route.snapshot.paramMap.get("meldungId");s?(this.meldungId=s,this.editModus=!0,i=this.meldungController.getMeldung(s).pipe(Le(c=>this.meldungToEdit=c),He(c=>(this.timerEndDate=new Date(new Date(c.meldezeitpunkt).getTime()+14*864e5),new Date().getTime()>this.timerEndDate.getTime()&&(this.displayEditModusError=!0),this.meldungController.getPreviousMeldung(c.id)))).pipe(Ft(c=>wt(c)))):(this.meldungId=nn(),i=this.meldebereichController.getLetzteMeldungForMeldebereich(this.meldebereich.id)),i.pipe(Tt(()=>{this.initForm(),this.meldungToEdit&&this.fillValues(this.meldungToEdit)})).subscribe(c=>{this.letzteMeldung=c},c=>{this.log.logError("Meldung konnte nicht geladen werden")})}}onStepperSelectionChange(e){this.blockDeltaNavigation=this.isFormInvalid;let i=this.stepper.steps.length-2,s=this.stepper.steps.length-1;if(e.selectedIndex===s){let I=e.previouslySelectedIndex!==void 0&&e.previouslySelectedIndex>=0?e.previouslySelectedIndex:0;setTimeout(()=>{this.stepper.selectedIndex=I},0);return}if(this.blockDeltaNavigation&&e.selectedIndex===i){let I=e.previouslySelectedIndex!==void 0&&e.previouslySelectedIndex>=0?e.previouslySelectedIndex:0;setTimeout(()=>{this.stepper.selectedIndex=I},0);return}let c=document.querySelector(".meldung-erfassen-card");switch(c&&setTimeout(()=>{c.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},500),this.lastStepperSelection=e,Pt(e.previouslySelectedStep)){case x.ICU_STATUS:this.meldungForm.get("icuStatus").markAllAsTouched();break;case x.ICU_RESERVE:this.meldungForm.get("icuReserve").markAllAsTouched();break;case x.COVID_STATUS_BELEGUNG:this.meldungForm.get("covid19StatusBelegung").markAllAsTouched();break;case x.COVID_STATUS_NEUAUFNAHMEN:this.meldungForm.get("covid19StatusNeuaufnahmen").markAllAsTouched();break;case x.RSV_INFLUENZA_STATUS:this.meldungForm.get("rsvUndInfluenzaStatus").markAllAsTouched();break}let b=Pt(e.selectedStep);switch(b){case x.ICU_STATUS:break;case x.ICU_RESERVE:this.meldungForm.get("icuStatus").markAllAsTouched();break;case x.COVID_STATUS_BELEGUNG:this.meldungForm.get("icuStatus").markAllAsTouched(),this.meldungForm.get("icuReserve").markAllAsTouched();break;case x.COVID_STATUS_NEUAUFNAHMEN:this.meldungForm.get("icuStatus").markAllAsTouched(),this.meldungForm.get("icuReserve").markAllAsTouched(),this.meldungForm.get("covid19StatusBelegung").markAllAsTouched();break;case x.RSV_INFLUENZA_STATUS:this.meldungForm.get("icuStatus").markAllAsTouched(),this.meldungForm.get("icuReserve").markAllAsTouched(),this.meldungForm.get("covid19StatusBelegung").markAllAsTouched(),this.meldungForm.get("covid19StatusNeuaufnahmen").markAllAsTouched();break}b===x.DELTA?this.prepareCheckout():this.checkoutButtonDisabled=!0,this.tabSwitchListener.map(I=>I.onTabSwitch(b,this.meldebereich))}editTimeExpired(){this._snackbar.open("Die Zeit f\xFCr die Bearbeitung dieser Meldung ist abgelaufen. Diese Meldung kann nicht mehr ge\xE4ndert werden.")}initVersorgungskategorienDisplayOrder(e){let i=[];e.includes(j.VersorgungsKategorienEnum.LOW_CARE)&&i.push(j.VersorgungsKategorienEnum.LOW_CARE),e.includes(j.VersorgungsKategorienEnum.HIGH_CARE)&&i.push(j.VersorgungsKategorienEnum.HIGH_CARE),e.includes(j.VersorgungsKategorienEnum.ECMO)&&i.push(j.VersorgungsKategorienEnum.ECMO);for(let s of Object.values(Wi))e.includes(s)&&!i.includes(s)&&i.push(s);return i}initForm(){let e=vn();this.meldungForm=e.meldungForm,this.meldungFormValidation=e.meldungFormValidation,this.checkoutMeldung=null}fillValues(e){un(this.meldungForm,e,this.meldebereich,this.editModus,this.meldefeldPausierungen)}prepareCheckout(){let e=Cn(this.meldungId,this.meldungForm,this.meldebereich);this.checkoutMeldung=e}tryCheckout(){this.checkoutButtonDisabled=!0,window.setTimeout(()=>{this.validationErrorExists||(this.checkoutButtonDisabled=!1)},3e3),this.validationWarningExists?this.dialog.open(dn,{data:this.meldungDeltas}).afterClosed().subscribe(i=>{i&&(i==="checkout"?this.doCheckout():this.stepper.selectedIndex=this.stepper.steps.length-2)}):this.doCheckout()}doCheckout(){let e=this.checkoutMeldung.kapazitaeten;!e.patientenInvasivBeatmet&&!e.patientenEcmo&&!e.freieEcmoKapazitaet&&e.statusEinschaetzungEcmo==="KEINE_ANGABE"&&this.addDisableEcmoNotification(),this.meldungController.updateKapazitaet(this.checkoutMeldung.id,this.checkoutMeldung).subscribe(i=>{this.log.logDebug("Meldung gespeichert",i),this.meineMeldebereicheService.n
2otifyMeldebereicheChanged(),this.router.navigate(["/meldung/erfolgreich/"+this.checkoutMeldung.id])},i=>{this.meldungErfassenFehlerService.handleResponse(i,this.editModus,this.checkoutMeldung)})}addDisableEcmoNotification(){let e=new an("Hinweis",{content:'Verf\xFCgen Sie generell NICHT \xFCber ECMO Behandlungspl\xE4tze in Ihrem Meldebereich? Dann k\xF6nnen Sie die Felder ICU ECMO unter "Mein Meldebereich" deaktivieren, so dass diese bei Ihrer n\xE4chsten Meldung nicht mehr erscheinen.',actionText:"Mein Meldebereich",actionRouterLink:"/mein-krankenhaus-standort/mein-meldebereich"},[dt.MELDEBEREICH]);this.notificationService.addNewNotification(e)}onMeldungDeltasUpdate(e){this.meldungDeltas=e,this.validationErrorExists=et(e,H.ERROR),this.checkoutMeldung&&(this.checkoutButtonDisabled=this.validationErrorExists),this.validationWarningExists=mn(e)}prefill(){this.fillValues(this.letzteMeldung)}displayRsvStatusTab(){return De(this.meldebereich)||ze(this.meldebereich)}static{this.\u0275fac=function(i){return new(i||t)(C(ke),C(Me),C($),C(rn),C(Se),C(Ye),C($e),C(be),C(J),C(Yt),C(Sn),C(Qe),C(ot),C(jt))}}static{this.\u0275cmp=k({type:t,selectors:[["public-meldung-erfassen"]],viewQuery:function(i,s){if(i&1&&zt(Qi,5),i&2){let c;Ut(c=Rt())&&(s.stepper=c.first)}},hostBindings:function(i,s){i&1&&A("beforeunload",function(_){return s.onPageUnload(_)},Nt)},standalone:!1,decls:5,vars:4,consts:[["stepper",""],["header","Intensiv-Statusmeldung",4,"ngIf"],["header","Intensiv-Statusmeldung nachtr\xE4glich bearbeiten",4,"ngIf"],["contentId","meldung-erfassen-hinweis"],[4,"ngIf"],["header","Intensiv-Statusmeldung"],["header","Intensiv-Statusmeldung nachtr\xE4glich bearbeiten"],[3,"countDownFinished","endDate"],[1,"meldebereich-info"],[1,"subtitle"],["class","prefill","id","vorausfuellen",4,"ngIf"],[1,"meldung-erfassen-card"],[3,"formGroup"],[3,"selectionChange"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","number"],["formGroupName","icuStatus","label","ICU Status","errorMessage","Fehlerhafte Eingabe!",3,"hasError"],[3,"meldungForm","meldungFormValidation","ecmoAvailable"],["label","ICU Reserve","formGroupName","icuReserve","errorMessage","Fehlerhafte Eingabe!",3,"hasError"],[3,"meldungForm","meldungFormValidation"],["label","COVID-19 Status: Belegung","formGroupName","covid19StatusBelegung","errorMessage","Fehlerhafte Eingabe!",3,"hasError"],[3,"ecmoAvailable","meldungForm","meldebereich","meldungFormValidation"],["label","COVID-19 Status: Spezifikation","formGroupName","covid19StatusSpezifikation","errorMessage","Fehlerhafte Eingabe!",3,"hasError"],[3,"ecmoAvailable","meldungForm","meldebereich","meldungFormValidation","variantenFields","altersstrataFields"],["label","COVID-19 Status: Neuaufnahmen und Abg\xE4nge","formGroupName","covid19StatusNeuaufnahmen","errorMessage","Fehlerhafte Eingabe!",3,"hasError"],[3,"meldungToEdit","editModus","meldungForm","meldebereich","meldungFormValidation","meldefeldPausierungen"],["label","RSV- und Influenza-Status","errorMessage","Fehlerhafte Eingabe!",3,"hasError",4,"ngIf"],["label","Eingaben pr\xFCfen",3,"completed"],["matStepLabel",""],[3,"meldungDeltasEmitter","checkoutMeldung","letzteMeldung","meldebereich","ecmoAvailable","editModus","meldungToEdit","meldefeldPausierungen"],[1,"back"],["mat-raised-button","","type","button","matStepperPrevious","",1,"btn-secondary"],[1,"forward"],["id","checkout","type","button","mat-raised-button","",1,"btn-primary",3,"click","disabled"],["contentId","meldung-erfassen-footer"],[1,"kontakt"],["mailTo","[email protected]","subject","IntensivRegister Intensiv-Statusmeldung","text","HELPDESK KONTAKTIEREN","cssClass","d-flex"],[1,"info-icon",3,"matTooltip"],["id","vorausfuellen",1,"prefill"],["mat-raised-button","",1,"btn-primary-small",3,"click"],["label","RSV- und Influenza-Status","errorMessage","Fehlerhafte Eingabe!",3,"hasError"],[3,"meldungForm","meldungFormValidation","ecmoAvailable","meldefeldPausierungen"],["matTooltip","Bitte \xFCberpr\xFCfen Sie Ihre Eingabe",1,"mat-step-text-label","ng-star-inserted","validate-input-button",3,"click","ngClass","matTooltipDisabled"],["type","button","mat-raised-button","",1,"btn-primary-small",3,"click","disabled"]],template:function(i,s){i&1&&(d(0,Yi,1,0,"app-ueberschrift",1)(1,Xi,2,1,"app-ueberschrift",2),v(2,"app-content-wichtige-informationen",3),d(3,ea,2,0,"p",4)(4,ga,3,2,"ng-container",4)),i&2&&(l("ngIf",!s.editModus),a(),l("ngIf",s.editModus),a(2),l("ngIf",s.editModus&&s.displayEditModusError),a(),l("ngIf",s.meldu
2ngForm&&!s.displayEditModusError))},styles:["header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:52px}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:4px}header[_ngcontent-%COMP%] .prefill[_ngcontent-%COMP%]{margin-left:72px}header[_ngcontent-%COMP%] .prefill[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;margin-bottom:4px}header[_ngcontent-%COMP%] .prefill[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{white-space:nowrap}@media only screen and (max-width:767px){header[_ngcontent-%COMP%]{display:flex;flex-direction:column}header[_ngcontent-%COMP%] .meldebereich-info[_ngcontent-%COMP%]{margin-bottom:32px}header[_ngcontent-%COMP%] .prefill[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end;margin-left:0}}[_nghost-%COMP%] .form-invalid mat-step-header:nth-last-child(2){pointer-events:none!important;cursor:not-allowed!important}[_nghost-%COMP%] .form-invalid mat-step-header:nth-last-child(2) *{pointer-events:none!important}[_nghost-%COMP%] mat-step-header:last-child{background-color:#fff;border-style:none!important;border-width:0!important;pointer-events:none!important;cursor:not-allowed}[_nghost-%COMP%] mat-step-header:last-child:hover{background-color:unset!important}[_nghost-%COMP%] mat-step-header:last-child button{pointer-events:all!important}[_nghost-%COMP%] mat-step-header{pointer-events:auto}public-meldung-erfassen-step-icustatus[_ngcontent-%COMP%], public-meldung-erfassen-step-icureserve[_ngcontent-%COMP%], public-meldung-erfassen-step-covid-belegung[_ngcontent-%COMP%], public-meldung-erfassen-step-covid-spezifikation[_ngcontent-%COMP%], public-meldung-erfassen-step-covid-neuaufnahmen[_ngcontent-%COMP%], public-meldung-erfassen-step-rsvinfluenza[_ngcontent-%COMP%], public-meldung-erfassen-delta[_ngcontent-%COMP%]{display:block;margin:56px 0 32px;width:100%}.meldung-erfassen-card[_ngcontent-%COMP%]{margin-bottom:24px;padding:32px}@media only screen and (max-width:924px){.meldung-erfassen-card[_ngcontent-%COMP%]{border:0;box-shadow:none;padding:12px}}div.meldebereich-info[_ngcontent-%COMP%]{max-width:100ch}.kontakt[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.mat-step-text-label.button-disabled[_ngcontent-%COMP%]{cursor:default;background-color:#0000001f;color:#00000042}footer[_ngcontent-%COMP%]{background-color:#ffeced;display:flex;flex-wrap:wrap;padding:32px 0;margin-top:32px;row-gap:32px}footer[_ngcontent-%COMP%] .back[_ngcontent-%COMP%]{padding:0 16px 0 32px;flex-grow:1}footer[_ngcontent-%COMP%] .forward[_ngcontent-%COMP%]{flex-grow:1;text-align:right;padding:0 32px 0 16px}footer[_ngcontent-%COMP%] button#checkout[_ngcontent-%COMP%]{display:inline-block}@media screen and (max-width:420px){footer[_ngcontent-%COMP%] .forward[_ngcontent-%COMP%], footer[_ngcontent-%COMP%] .back[_ngcontent-%COMP%]{text-align:center;padding:0}}footer[_ngcontent-%COMP%] .forward[_ngcontent-%COMP%]:nth-child(1){padding:0 32px} mat-step-header:last-child{pointer-events:none} mat-step-header:last-child .mat-step-icon, mat-step-header:last-child.mat-step-header-visited .mat-step-icon{--mat-stepper-header-icon-background-color: var(--mat-sys-on-surface-variant, rgba(0, 0, 0, .54)) !important;background-color:var(--mat-sys-on-surface-variant, rgba(0, 0, 0, .54))!important}"]})}}return t})();var En=(()=>{class t{constructor(e){this.meldebereichController=e}getHeuteNochNichtBemeldeteMeldebereiche(){let e=[],i=new Vt([]);return this.meldebereichController.getMyMeldebereiche().subscribe(s=>{for(let c of s)this.hasMeldungToday(c).subscribe(_=>{_||(e.push(c),i.next(e))},_=>{e.push(c),i.next(e)})}),i}hasMeldungToday(e){let i=new Date;return i.setHours(0,0,0,0),this.meldebereichController.getLetzteMeldungForMeldebereich(e.id).pipe(_e(s=>s&&new Date(s.meldezeitpunkt)>=i))}static{this.\u0275fac=function(i){return new(i||t)(L($))}}static{this.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var _a=t=>["/meldung/erfassen",t];function va(t,n){if(t&1&&(S(0),o(1,"div"),u(2,"Standort:"),r(),o(3,"div"),u(4),r(),M()),t&2){let e=m().$implicit;a(4),T(e.krankenhausStandort.bezeichnung)}}function ba(t,n){t&1&&(o(0,"span"),u(1,";"),r())}function Ca(t,n){if(t&1&&(o(0,"span"),u(1),d(2,ba,2,0,"span",0),r()),t&2){let e=n.$implicit,i=n.last;a(),f(" ",e),a(),l("ngIf",!i)}}function Sa(t,n){if(t&1&&(o(0,"mat-card",3)(1,"h3",4),u(2),r(),o(3,"div",5),d(4,va,5,1,"ng-container",0),o(5,"div"),u(6,"Organisations - Tags:"),r(),o(7,"div"),d(8,Ca,3,2,"span",6),r(),o(9,"div"),u(10,"Behandlungs\xADschwerpunkt:"),r(),o(11,"div"),u(12),p(13,"translate"),r()(),o(14,"div",7)(1
25,"a",8),u(16,"Meldung erfassen"),r()()()),t&2){let e=n.$implicit,i=m(2);a(2),T(e.bezeichnung),a(2),l("ngIf",i.hasMultipleStandorte),a(4),l("ngForOf",e.tags),a(4),T(g(13,5,i.getBehandlungsschwerpunkt(e))),a(3),l("routerLink",ve(7,_a,e.id))}}function Ma(t,n){if(t&1&&(S(0),o(1,"h2"),u(2,"Heute noch nicht bemeldete Meldebereiche"),r(),o(3,"div",1),d(4,Sa,17,9,"mat-card",2),r(),M()),t&2){let e=m();a(4),l("ngForOf",e.meldebereiche)}}var kn=(()=>{class t{constructor(e){this.nochNichtBemeldeteMeldebereicheService=e,this.hasMultipleStandorte=!1}ngOnInit(){this.nochNichtBemeldeteMeldebereicheService.getHeuteNochNichtBemeldeteMeldebereiche().subscribe(e=>{this.meldebereiche=e;let i=Qt(e);this.hasMultipleStandorte=i.length>1})}getBehandlungsschwerpunkt(e){return Xt(e)}static{this.\u0275fac=function(i){return new(i||t)(C(En))}}static{this.\u0275cmp=k({type:t,selectors:[["public-meine-meldebereiche-ohne-heutige-meldung"]],standalone:!1,decls:1,vars:1,consts:[[4,"ngIf"],[1,"meldebereiche"],["class","mat-card-small",4,"ngFor","ngForOf"],[1,"mat-card-small"],[1,"meldebereich-bezeichnung"],[1,"meldebereich"],[4,"ngFor","ngForOf"],[1,"actions"],["mat-raised-button","",1,"btn-primary-small",3,"routerLink"]],template:function(i,s){i&1&&d(0,Ma,5,1,"ng-container",0),i&2&&l("ngIf",s.meldebereiche&&s.meldebereiche.length>0)},dependencies:[B,O,Ce,R,Je,z],styles:["h2[_ngcontent-%COMP%]{margin-top:52px}.meldebereiche[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin-bottom:52px}.meldebereiche[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{width:500px;margin:0 32px 32px 0;min-width:280px;display:block}.meldebereich[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(50px,200px) auto;grid-template-rows:auto auto auto;word-wrap:break-word}.meldebereich[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2n){padding-left:24px;color:#0009}.actions[_ngcontent-%COMP%]{margin-top:24px;text-align:right}.actions[_ngcontent-%COMP%] a.btn-primary-small[_ngcontent-%COMP%]{width:auto!important;min-width:124px!important;max-width:100%;display:inline-flex;justify-content:center;align-items:center;padding-left:16px!important;padding-right:16px!important}"]})}}return t})();var ka=t=>["/","meldung","impfstatus",t];function Ia(t,n){if(t&1&&(o(0,"mat-card")(1,"header")(2,"h2"),u(3),r()(),o(4,"p"),u(5),p(6,"deDate"),r(),o(7,"div",3)(8,"a",4),u(9,"Sie k\xF6nnen Ihre erfasste Meldung in der Meldungshistorie einsehen"),r()(),o(10,"div",5)(11,"a",4),u(12,"Impfstatus der Vortage bearbeiten"),r(),o(13,"p"),u(14," \xDCber diesen Link k\xF6nnen Sie die Bearbeitung der Impfstatus direkt und vereinfacht vornehmen. Unter "),o(15,"a",6),u(16,"Mein Krankenhaus-Standort >> Meldungshistorie (korrigierbar)"),r(),u(17," k\xF6nnen sie jederzeit fr\xFChere Meldungen bearbeiten. "),r()()()),t&2){let e=m();a(3),Gt("",e.meldebereich.krankenhausStandort.bezeichnung," - ",e.meldebereich.bezeichnung," ",e.meldebereich.behandlungsschwerpunktL2?" - "+e.meldebereich.behandlungsschwerpunktL2:""),a(2),f("Meldung erfolgreich erfasst am ",g(6,9,e.meldung.meldezeitpunkt),"."),a(3),l("routerLink",K("/mein-krankenhaus-standort/mein-meldebereich/",e.meldebereich.id,"/meldungshistorie")),a(3),l("routerLink",ve(11,ka,e.meldebereich.id)),a(4),l("routerLink",K("/mein-krankenhaus-standort/mein-meldebereich/",e.meldebereich.id,"/meldungshistorie"))}}function Pa(t,n){t&1&&(o(0,"mat-card",7)(1,"header")(2,"h2"),u(3,"Ein Fehler ist aufgetreten!"),r()(),o(4,"main")(5,"mat-icon"),u(6,"error"),r(),o(7,"div",8)(8,"p"),u(9," Beim Aufruf der eben gespeicherten Meldung ist ein Fehler aufgetreten! "),r(),o(10,"p"),u(11," Bitte \xF6ffnen Sie die "),o(12,"a",9),u(13,"Meldungshistorie"),r(),u(14," und pr\xFCfen Sie, ob Sie die eben erfasste Meldung dort sehen k\xF6nnen. Wenn nicht, erfassen Sie die Meldung bitte erneut und wenden Sie sich bei wiederholtem Auftreten an den Helpdesk. "),r()()()())}var In=(()=>{class t{constructor(e,i,s,c){this.meldebereichController=e,this.meldungsController=i,this.log=s,this.route=c,this.showError=!1}ngOnInit(){let e=this.route.snapshot.paramMap.get("id");this.meldungsController.getMeldung(e).subscribe(i=>{this.meldung=i,this.meldebereichController.getPrivateMeldebereichById(i.meldebereich.id).subscribe(s=>{this.meldebereich=s})},i=>{this.log.logDebug(i),this.showError=!0})}static{this.\u0275fac=function(i){return new(i||t)(C($),C(Se),C(Me),C(be))}}static{this.\u0275cmp=k({type:t,selectors:[["public-meldung-erfassen-erfolgreich"]],standalone:!1,decls:6,vars:2,consts:[["header","Intensiv-Statusmeldung"],[4,"ngIf"],["class","error",4,"ngIf"],[1,"actions","meldungshistorie"],["mat-raised-button","",1,"btn-primary-small",3,"routerLink"],[1,"actions","impfstatus-bearbeitung"],[3,"routerLink"],[1,"error"],[1,"content"],["routerLink","/mein-krankenhaus-standort/mein-meldebereich/meldungshistorie"]],template:function(i,s){i&1&&(v(0,"app-ueberschrift",0),o(1,"h2"),u(2,"Meldung erfolgreich erfasst"),r(),d(3,Ia,18,13,"mat-card",1),v(4,"public-meine-meldebereiche-ohne-heutige-meldung"),d(5,Pa,15,0,"mat-card",2)),i&2&&(a(3),l("ngIf",s.meldebereich&&s.meldung),a(2),l("ngIf",s.showError))}
2,dependencies:[O,Ce,tn,R,Je,N,kn,Xe],styles:["mat-card[_ngcontent-%COMP%]{padding:32px}header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:52px;position:static;z-index:auto;background:none}header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{display:inline-block;padding-right:12px;margin:0}.error[_ngcontent-%COMP%] main[_ngcontent-%COMP%]{display:flex}.error[_ngcontent-%COMP%] main[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:50px;width:100px;display:block;text-align:center;color:#d10000;padding-top:20px}.actions[_ngcontent-%COMP%]{margin-bottom:32px}.actions[_ngcontent-%COMP%] a.btn-primary-small[_ngcontent-%COMP%]{display:inline-flex}"]})}}return t})();var Ue=(function(t){return t[t.CONTINUE_EDITING=0]="CONTINUE_EDITING",t[t.CANCEL_EDITING=1]="CANCEL_EDITING",t})(Ue||{}),Pn=(()=>{class t{constructor(){this.results={CONTINUE_EDITING:Ue.CONTINUE_EDITING,CANCEL_EDITING:Ue.CANCEL_EDITING}}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=k({type:t,selectors:[["public-meldung-nicht-gespeichert-warnung"]],standalone:!1,decls:16,vars:3,consts:[["mat-dialog-title",""],["mat-icon-button","",1,"close-icon",3,"mat-dialog-close"],["mat-dialog-content",""],["mat-dialog-actions","",1,"actions"],["mat-raised-button","",1,"btn-primary-small",3,"mat-dialog-close"],["mat-raised-button","",1,"btn-secondary",3,"mat-dialog-close"]],template:function(i,s){i&1&&(o(0,"header",0)(1,"h1"),u(2,"Meldung nicht gespeichert"),r(),o(3,"button",1)(4,"mat-icon"),u(5,"close"),r()()(),o(6,"div",2)(7,"p"),u(8,"Sie haben eine Meldung gestartet, aber nicht gespeichert."),r(),o(9,"p"),u(10,"M\xF6chten Sie die Meldung weiter bearbeiten oder die Bearbeitung abbrechen?"),r()(),o(11,"div",3)(12,"button",4),u(13,"Weiter bearbeiten"),r(),o(14,"button",5),u(15,"Meldung nicht speichern"),r()()),i&2&&(a(3),l("mat-dialog-close",s.results.CONTINUE_EDITING),a(9),l("mat-dialog-close",s.results.CONTINUE_EDITING),a(2),l("mat-dialog-close",s.results.CANCEL_EDITING))},dependencies:[R,xe,Y,Ie,Oe,Pe,N],styles:["header[_ngcontent-%COMP%], .actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]})}}return t})();function Oa(t,n){if(t&1){let e=U();o(0,"div",2),v(1,"app-krankenhaus-info",3),o(2,"app-meldebereich-info",4),A("meldebereichSelected",function(s){V(e);let c=m(2);return w(c.goTo(s))}),r()()}if(t&2){let e=n.$implicit;a(),l("krankenhausStandort",e.standort)("displayMeldebereiche",!1),a(),l("bestehendeMeldebereiche",e.meldebereiche)("allowSelection",!0)}}function ya(t,n){if(t&1&&(S(0),o(1,"h1"),u(2,"Sie haben mehrere Meldebereiche. Bitte w\xE4hlen Sie einen aus um fortzufahren"),r(),d(3,Oa,3,4,"div",1),M()),t&2){let e=m();a(3),l("ngForOf",e.meineMeldebereicheProStandort)}}var On=(()=>{class t{constructor(e,i){this.meldebereichController=e,this.router=i}ngOnInit(){this.meldebereichController.getMyMeldebereiche().subscribe(e=>{this.meineMeldebereiche=e,this.meineMeldebereicheProStandort=Zt(e),this.hasMultipleMeldebereiche()||this.goTo(this.meineMeldebereiche[0])})}goTo(e){this.router.navigate(["meldung/erfassen",e.id])}hasMultipleMeldebereiche(){return this.meineMeldebereiche&&this.meineMeldebereiche.length>1}static{this.\u0275fac=function(i){return new(i||t)(C($),C($e))}}static{this.\u0275cmp=k({type:t,selectors:[["public-meldung-meldebereich-auswahl"]],standalone:!1,decls:1,vars:1,consts:[[4,"ngIf"],["class","standort",4,"ngFor","ngForOf"],[1,"standort"],[3,"krankenhausStandort","displayMeldebereiche"],[3,"meldebereichSelected","bestehendeMeldebereiche","allowSelection"]],template:function(i,s){i&1&&d(0,ya,4,1,"ng-container",0),i&2&&l("ngIf",s.hasMultipleMeldebereiche())},dependencies:[B,O,en,Jt],styles:[".standort[_ngcontent-%COMP%]{margin-top:52px}"]})}}return t})();var Aa=(t,n)=>["/meldung/erfassen/",t,n],Va=()=>["E025M3A"];function wa(t,n){t&1&&(o(0,"a",5),u(1,"Alle Bearbeitungen abgeschlossen (Seite verlassen)"),r())}function Fa(t,n){if(t&1&&(o(0,"th"),u(1),p(2,"deDate"),r()),t&2){let e=n.$implicit;a(),T(g(2,1,e.meldezeitpunkt))}}function Ta(t,n){if(t&1){let e=U();S(0),o(1,"button",11),A("click",function(){V(e);let s=m(4);return w(s.saveV2())}),o(2,"mat-icon"),u(3,"save"),r()(),o(4,"button",12),A("click",function(){V(e);let s=m(4);return w(s.cancelV2())}),o(5,"mat-icon"),u(6,"cancel"),r()(),M()}if(t&2){let e=m().$implicit,i=m(3);a(),Z(K("save-",e.id)),l("disabled",!i.formV2.valid),a(3),Z(K("cancel-",e.id))}}function Ba(t,n){if(t&1){let e=U();S(0),o(1,"button",13),A("click",function(){V(e);let s=m().$implicit,c=m(3);return w(c.editMeldungV2(s))}),o(2,"mat-icon"),u(3,"edit"),r()(),o(4,"a",14)(5,"mat-icon"),u(6,"edit_note"),r()(),M()}if(t&2){let e=m().$implicit,i=m(3);a(),Z(K("edit-",e.id)),a(3),l("routerLink",Ne(4,Aa,i.meldebereich.id,e.id))}}function Na(t,n){if(t&1&&(o(0,"th"),d(1,Ta,7,7,"ng-container",0)(2,Ba,7,7,"ng-container",0),r()),t&2){let e=n.$implicit,i=m(3);a(),l("ngIf",i.isEditedMeldung(e)),a(),l("ngIf",!i.isEditOpen())}}function Da(t,n){if(t&1&&(o(0,"div"),u(1),p(2,"translate"),r()),t&2){let e=m().$implicit;a(),f(" ",g(2,1,"meldung.erfassen.fehler.code."+e.key+".bearbeitungextrahinweise")," ")}}function za(t,n){if(t&1&&(o(0,"tr")(1,"td",15)(2,"mat-error"),u(3),p(4,"translate"),d(5,Da,3,3,"div",0),r()()()),t&2){let e=n.$implicit,i=m(3);a(),l("colSpan",P(i.meldungsUebersichtV2.length+2)),a(),Z(K("error-",e.key)),a(),f(" ",g(4,7,"meldung.erfassen.fehler.code."+e.key)," "),a(2),l("ngIf",e.key==="E025M3")}}function Ua(t,n){if(t&1&&(o(0,"td"),u(1),r()),t&2){let e=n.$implicit;a(),f(" ",e.neuaufnahmen.erstaufnahmen," ")}}function Ra(t,n){if(t&1&&(o(0,"mat-error"),u(1),p(2,"translate"),r()),t&2){let e=n.$implicit;a(),f(" ",g(2,1,e)," ")}}function Ga(t,n){if(t&1&&(S(0),o(1,"mat-form-field"),v(2,"input",19),r(),d(3,Ra,3,3,"mat-error",8),M()),t&2){let e=m(2).$implicit,i=m(4);
2a(2),l("formControlName",e)("errorStateMatcher",i.meldungFormValidationV2.errorStateMatcher(e)),a(),l("ngForOf",i.meldungFormValidationV2.getErrors(e,q(3,Va)))}}function Ha(t,n){if(t&1&&(S(0),u(1),M()),t&2){let e=m().$implicit,i=m().$implicit,s=m(4);a(),f(" ",s.fieldV2(e,i)," ")}}function La(t,n){if(t&1&&(o(0,"td"),d(1,Ga,4,4,"ng-container",0)(2,Ha,2,1,"ng-container",0),r()),t&2){let e=n.$implicit,i=m(5);a(),l("ngIf",i.isEditedMeldung(e)),a(),l("ngIf",!i.isEditedMeldung(e))}}function ja(t,n){if(t&1&&(o(0,"tr"),v(1,"td",18),p(2,"translate"),o(3,"td")(4,"mat-icon",9),p(5,"translate"),u(6," info_outline "),r()(),d(7,La,3,2,"td",8),r()),t&2){let e=n.$implicit,i=m(4);Z(e),a(),l("innerHtml",g(2,5,i.labelPrefix(e)),F),a(3),l("matTooltip",g(5,7,"meldung.erfassen.covid19.impfstatusV2.erstaufnahmen."+e.toString()+".tooltip")),a(3),l("ngForOf",i.meldungsUebersichtV2)}}function Ka(t,n){if(t&1&&(o(0,"tbody",16)(1,"tr")(2,"th",15),u(3),r()(),d(4,ja,8,9,"tr",17),r()),t&2){let e=n.$implicit,i=m(3);a(2),l("colSpan",P(i.meldungsUebersichtV2.length+2)),a(),T(e.title),a(),l("ngForOf",e.rows)}}function $a(t,n){if(t&1&&(S(0,6),o(1,"table")(2,"thead")(3,"tr"),v(4,"th",7),d(5,Fa,3,3,"th",8),r(),o(6,"tr"),v(7,"th",7),d(8,Na,3,2,"th",8),r(),d(9,za,6,9,"tr",8),p(10,"keyvalue"),r(),o(11,"tbody")(12,"tr")(13,"td"),u(14,"Erstaufnahmen"),r(),o(15,"td")(16,"mat-icon",9),p(17,"translate"),u(18," info_outline "),r()(),d(19,Ua,2,1,"td",8),r()(),d(20,Ka,5,4,"tbody",10),r(),M()),t&2){let e=m(2);l("formGroup",e.formV2),a(5),l("ngForOf",e.meldungsUebersichtV2),a(3),l("ngForOf",e.meldungsUebersichtV2),a(),l("ngForOf",g(10,7,e.formV2==null?null:e.formV2.errors)),a(7),l("matTooltip",g(17,9,"meldung.erfassen.covid19.impfstatusV2.erstaufnahmen.tooltip")),a(3),l("ngForOf",e.meldungsUebersichtV2),a(),l("ngForOf",e.abschnitteV2)}}function qa(t,n){if(t&1&&(S(0),o(1,"div",1)(2,"h1"),u(3,"Impfstatus"),r(),o(4,"div"),d(5,wa,2,0,"a",2),r()(),o(6,"h3"),u(7),r(),v(8,"app-content-display",3),o(9,"h2"),u(10,"Anzahl Impfungen"),r(),d(11,$a,21,11,"ng-container",4),M()),t&2){let e=m();a(5),l("ngIf",!e.isEditOpen()),a(2),Ke("Meldung f\xFCr den Meldebereich: ",e.meldebereich.bezeichnung," ",e.meldebereich.behandlungsschwerpunktL2?" - "+e.meldebereich.behandlungsschwerpunktL2:""," "),a(4),l("ngIf",e.meldungsUebersichtV2&&e.meldebereich&&e.meldungsUebersichtV2.length>0)}}var yn=(()=>{class t{constructor(e,i,s,c,_,b){this.meldebereichController=e,this.isMeldungBearbeitbar=i,this.activatedRoute=s,this.meldungController=c,this.snackbar=_,this.meldungErfassenFehlerService=b,this.meldebereich=null,this.abschnitteV2=[{title:"Impfstatus",rows:["impfstatus0Impfungen","impfstatus1Impfungen","impfstatus2Impfungen","impfstatus3Impfungen","impfstatus4PlusImpfungen","impfstatusUnbekannt"]}],this.meldungToEdit=null}ngOnInit(){let e=[pe.min(0),pe.max(999)];this.formV2=nt(e),this.meldungFormValidationV2=new Be(this.formV2),this.activatedRoute.params.subscribe(i=>{let s=i.meldebereichId;this.meldebereichController.getMeldebereichById(s).subscribe(c=>{this.meldebereich=c}),this.loadMeldungen(s)})}loadMeldungen(e){this.meldebereichController.getMeldungenForMeldebereich(e,0,2*on,"V2").pipe(_e(i=>i.data)).subscribe(i=>{this.meldungsUebersichtV2=i.filter(this.isMeldungBearbeitbar.isMeldungBearbeitbar).filter(s=>!s.impfstatus)})}editMeldungV2(e){this.formV2.reset(),this.formV2.setValidators(at("",this.meldungFormValidationV2,e.neuaufnahmen.erstaufnahmen)),this.formV2.patchValue(e?.impfstatusV2),this.meldungToEdit=e}saveV2(){this.meldungToEdit.impfstatusV2=it(this.meldungToEdit.meldebereich,this.formV2.value),this.meldungController.updateKapazitaet(this.meldungToEdit.id,this.meldungToEdit).subscribe(()=>{this.snackbar.open("Meldung erfolgreich gespeichert"),this.loadMeldungen(this.meldebereich.id),this.meldungToEdit=null},e=>{this.meldungErfassenFehlerService.handleResponse(e,!0,this.meldungToEdit)})}fieldV2(e,i){return e?.impfstatusV2?.[i]}labelPrefix(e){return"meldung.erfassen.delta.field.header.impfstatusV2.full."+e}isEditedMeldung(e){return this.meldungToEdit?.id===e.id}isEditOpen(){return this.meldungToEdit!==null}cancelV2(){this.formV2.clearValidators(),this.formV2.updateValueAndValidity(),this.meldungToEdit=null}static{this.\u0275fac=function(i){return new(i||t)(C($),C(ln),C(be),C(Se),C(J),C(ot))}}static{this.\u0275cmp=k({type:t,selectors:[["public-meldung-impfstatus-bearbeitung"]],standalone:!1,decls:1,vars:1,consts:[[4,"ngIf"],[1,"heading"],["routerLink","/","mat-raised-button","","class","btn-primary-small",4,"ngIf"],["contentId","meldung-impfstatus-bearbeitung-header"],[3,"formGroup",4,"ngIf"],["routerLink","/","mat-raised-button","",1,"btn-primary-small"],[3,"formGroup"],["colspan","2"],[4,"ngFor","ngForOf"],[1,"info-icon",3,"matTooltip"],["class","abschnitt",4,"ngFor","ngForOf"],["mat-icon-button","","type","button","matTooltip","\xC4nderungen speichern",3,"click","disabled"],["mat-icon-button","","type","button","matTooltip","Bearbeitung abbrechen",3,"click"],["mat-icon-button","","type","button","matTooltip","Impfstatus bearbeiten (bleibt in dieser Ansicht)",3,"click"],["mat-icon-button","","matTooltip","Gesamte Meldung bearbeiten (springt zur Meldung-Erfassen Seite der entsprechenden Meldung)",3,"routerLink"],[3,"colSpan"],[1,"abschnitt"],[3,"class",4,"ngFor","ngForOf"],[3,"innerHtml"],["type","number","numberOnly","","min","0","max","999","matInput","",3,"formControlName","errorStateMatcher"]],template:function(i,s){i&1&&d(0,qa,12,4,"ng-container",0),i&2&&l("ngIf",s.meldu
2ngsUebersichtV2&&s.meldebereich)},dependencies:[B,O,Ce,me,Wt,R,xe,N,ue,se,le,ce,X,ne,ee,te,oe,re,ae,ie,Lt,Xe,z],styles:["th[_ngcontent-%COMP%]{border-bottom:1px solid rgb(228,228,228);max-width:90px}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:4px 12px;text-align:right;height:48px}td[_ngcontent-%COMP%]:first-child, th[_ngcontent-%COMP%]{text-align:left}tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]:nth-child(odd) > th[_ngcontent-%COMP%]:nth-child(2n), tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n) > th[_ngcontent-%COMP%]:nth-child(odd){background-color:#f2f4f8}tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]:nth-child(2n) > td[_ngcontent-%COMP%]{background-color:#f2f4f8;z-index:0}tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]:nth-child(odd){background-color:#fff;z-index:0}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover > td[_ngcontent-%COMP%], tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover > th[_ngcontent-%COMP%]{background-color:#b1b1b1}tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:not(:first-child):not(:nth-child(2)), tbody[_ngcontent-%COMP%] input[_ngcontent-%COMP%], tbody[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{max-width:80px;width:80px}.abschnitt[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:4px 12px;background-color:#d1d1d1}.impfstatusUnbekannt[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{background-color:#ffff003b}.heading[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.actions[_ngcontent-%COMP%]{margin-top:32px}"]})}}return t})();var st=(()=>{class t{constructor(e,i){this.dialog=e,this.roleHelperService=i}canDeactivate(e,i,s,c){return this.isAllowedOutRoutes(c.url)||!this.roleHelperService.isLoggedIn()||!e.isDirty()?!0:this.dialog.open(Pn,{data:c}).afterClosed().pipe(_e(b=>b===Ue.CANCEL_EDITING?(e.markComponentAsNotDirty(),!0):!1))}isAllowedOutRoutes(e){return e.startsWith("/meldung/erfolgreich/")||e.startsWith("/timeout")}static{this.\u0275fac=function(i){return new(i||t)(L(ke),L(Qe))}}static{this.\u0275prov=Q({token:t,factory:t.\u0275fac})}}return t})();var Wa=[{path:"erfassen",component:On,data:{title:"Meldung erfassen"}},{path:"erfassen/:meldebereichId",component:At,canDeactivate:[st],data:{title:"Meldung erfassen"}},{path:"erfassen/:meldebereichId/:meldungId",component:At,canDeactivate:[st],data:{title:"Meldung bearbeiten"}},{path:"erfolgreich/:id",component:In,data:{title:"Meldung erfolgreich"}},{path:"impfstatus/:meldebereichId",component:yn,data:{title:"Impfstatus bearbeiten"}}],Ao=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=Dt({type:t})}static{this.\u0275inj=Bt({providers:[st],imports:[ct.forChild(Wa),ct]})}}return t})();export{sn as a,ye as b,H as c,cn as d,ur as e,gr as f,_r as g,zi as h,Ot as i,yt as j,At as k,Ao as l};
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.