1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8866],{157:(C,p,c)=>{c.r(p),c.d(p,{IekmainPageModule:()=>y});var h=c(6814),g=c(95),o=c(7027),u=c(4105),e=c(6689),v=c(6324),P=c(4601),a=c(5254),f=c(3251);function k(n,d){if(1&n&&(e.TgZ(0,"p",10),e._uU(1),e.ALo(2,"date"),e.ALo(3,"date"),e.qZA()),2&n){const s=d.ngIf;e.xp6(1),e.AsE(" ",e.xi3(2,2,s.von,"dd.MM.yyyy")," - ",e.xi3(3,5,s.bis,"dd.MM.yyyy")," ")}}function A(n,d){1&n&&(e.TgZ(0,"ion-card",15)(1,"ion-card-header")(2,"ion-card-title"),e._UZ(3,"ion-skeleton-text",16),e.qZA(),e.TgZ(4,"ion-card-subtitle"),e._UZ(5,"ion-skeleton-text",17),e.qZA()(),e.TgZ(6,"ion-card-content"),e._UZ(7,"ion-skeleton-text",18)(8,"ion-skeleton-text",19),e.qZA()())}function _(n,d){if(1&n&&(e.ynx(0),e.YNc(1,A,9,0,"ion-card",14),e.BQk()),2&n){const s=e.oxw();e.xp6(1),e.Q6J("ngForOf",s.skeletonCards)}}function x(n,d){if(1&n&&(e.TgZ(0,"p",25),e._uU(1),e.qZA()),2&n){const s=e.oxw().$implicit;e.xp6(1),e.Oqu(s.beschreibung)}}function M(n,d){if(1&n){const s=e.EpF();e.TgZ(0,"ion-card",20),e.NdJ("click",function(t){const r=e.CHM(s).$implicit,m=e.oxw();return e.KtG(m.anlassClicked(t,r.id))})("keyup.enter",function(t){const r=e.CHM(s).$implicit,m=e.oxw();return e.KtG(m.anlassClicked(t,r.id))}),e.TgZ(1,"ion-card-header")(2,"div",21)(3,"div",8),e._uU(4),e.qZA(),e.TgZ(5,"ion-badge",22),e._uU(6),e.qZA()(),e.TgZ(7,"div",23),e._uU(8),e.qZA()(),e.TgZ(9,"ion-card-content"),e.YNc(10,x,2,1,"p",24),e.qZA()()}if(2&n){const s=d.$implicit,i=e.oxw();e.xp6(4),e.Oqu(s.name),e.xp6(2),e.hij("",s.anzahlPersonenOffen," offen"),e.xp6(2),e.Oqu(i.getZeitraumLabel(s)),e.xp6(2),e.Q6J("ngIf",s.beschreibung)}}function O(n,d){1&n&&(e.TgZ(0,"ion-card",26)(1,"ion-card-header")(2,"ion-card-title"),e._uU(3,"Aktuell keine offenen Eins\xe4tze"),e.qZA()(),e.TgZ(4,"ion-card-content"),e._uU(5," Ziehe die Seite nach unten, um die Liste zu aktualisieren. "),e.qZA()())}const b=[{path:"",component:(()=>{var n;class d{constructor(i,t,l,r,m,T){this.anlassService=i,this.router=t,this.saisonService=l,this.loadingService=r,this.messageService=m,this.navController=T,this.anlassListe=[],this.anlassListeGefiltert=[],this.aktiveSaison=null,this.isLoadingAnlaesse=!1,this.skeletonCards=[1,2,3],this.dateFormatter=new Intl.DateTimeFormat("de-CH",{day:"2-digit",month:"2-digit",year:"numeric"}),this.dateTimeFormatter=new Intl.DateTimeFormat("de-CH",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"})}ngOnInit(){this.loadPageData()}ionViewWillEnter(){this.loadPageData()}loadPageData(){this.loadingService.simpleLoaderTimer(),this.saisonService.GetSaisonAkiv().subscribe({next:i=>{this.aktiveSaison=i},error:i=>{console.error(i),this.loadingService.dismissLoader()},complete:()=>{var i,t;this.getAnlaesse(null!==(i=null===(t=this.aktiveSaison)||void 0===t?void 0:t.id)&&void 0!==i?i:0)}})}getAnlaesse(i){this.isLoadingAnlaesse=!0,this.anlassService.GetAktiveAnlaesse(i).subscribe({next:t=>this.anlassListe=t,error:t=>{console.error(t),this.isLoadingAnlaesse=!1,this.loadingService.dismissLoader()},complete:()=>{this.anlassListeGefiltert=[],this.anlassListe.forEach(t=>{t.anzahlPersonenOffen>0&&t.aktiv&&this.anlassListeGefiltert.push(t)}),this.isLoadingAnlaesse=!1,this.loadingService.dismissLoader()}})}handleRefresh(i){var t,l;this.anlassService.GetAktiveAnlaesse(null!==(t=null===(l=this.aktiveSaison)||void 0===l?void 0:l.id)&&void 0!==t?t:0).subscribe({next:r=>this.anlassListe=r,error:r=>{console.error(r),i.target.complete()},complete:()=>{this.anlassListeGefiltert=[],this.anlassListe.forEach(r=>{r.anzahlPersonenOffen>0&&r.aktiv&&this.anlassListeGefiltert.push(r)}),i.target.complete()}})}getZeitraumLabel(i){const t=new Date(i.von),l=new Date(i.bis);if(Number.isNaN(t.getTime())||Number.isNaN(l.getTime()))return"Termin folgt";const m=0!==t.getHours()||0!==t.getMinutes()||0!==l.getHours()||0!==l.getMinutes()?this.dateTimeFormatter:this.dateFormatter;return`${m.format(t)} - ${m.format(l)}`}anlassClicked(i,t){var l;let r={queryParams:{id:t,saisonId:null===(l=this.aktiveSaison)||void 0===l?void 0:l.id}};this.navController.navigateForward("aufgaben",r)}}return(n=d).\u0275fac=function(i){return new(i||n)(e.Y36(v.D),e.Y36(u.F0),e.Y36(P.Z),e.Y36(a.m),e.Y36(f.c),e.Y36(o.SH))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-iekmain"]],decls:27,vars:8,consts:[[3,"translucent"],["slot","start"],[1,"iekmain-content","app-page-content",3,"fullscreen"],["collapse","condense"],["size","large"],["slot","fixed",3,"ionRefresh"],[1,"page-shell","ion-padding"],["color","light",1,"summary-card"],[1,"event-title"],["class","summary-meta",4,"ngIf"],[1,"summary-meta"],[4,"ngIf"],["class","event-card","lines","none","color","light","tabindex","0","role","button",3,"click","keyup.enter",4,"ngFor","ngForOf"],["class","empty-state","color","light",4,"ngIf"],["class","event-card skeleton-card","lines","none",4,"ngFor","ngForOf"],["lines","none",1,"event-card","skeleton-card"],["animated","",2,"width","70%"],["animated","",2,"width","50%"],["animated","",2,"width","100%"],["animated","",2,"width","80%"],["lines","none","color","light","tabindex","0","role","button",1,"event-card",3,"click","keyup.enter"],[1,"card-heading"],["color","primary"],[1,"event-subtitle"],["class","description",4,"ngIf"],[1,"description"],["color","light",1,"empty-state"]],template:function(i,t){1&i&&(e.TgZ(0,"ion-header",0)(1,"ion-toolbar")(2,"ion-buttons",1),e._UZ(3,"ion-menu-button"),e.qZA(),e.TgZ(4,"ion-title"),e._uU(5,"IEK Einsatz-\xdcbersicht"),e.qZA()()(),e.TgZ(6,"ion-content",2)(7,"ion-
1header",3)(8,"ion-toolbar")(9,"ion-title",4),e._uU(10,"IEK Einsatz-\xdcbersicht"),e.qZA()()(),e.TgZ(11,"ion-refresher",5),e.NdJ("ionRefresh",function(r){return t.handleRefresh(r)}),e._UZ(12,"ion-refresher-content"),e.qZA(),e.TgZ(13,"div",6)(14,"ion-card",7)(15,"ion-card-header")(16,"ion-card-subtitle"),e._uU(17,"Aktive Saison"),e.qZA(),e.TgZ(18,"h3",8),e._uU(19),e.qZA()(),e.TgZ(20,"ion-card-content"),e.YNc(21,k,4,8,"p",9),e.TgZ(22,"p",10),e._uU(23),e.qZA()()(),e.YNc(24,_,2,1,"ng-container",11),e.YNc(25,M,11,4,"ion-card",12),e.YNc(26,O,6,0,"ion-card",13),e.qZA()()),2&i&&(e.Q6J("translucent",!0),e.xp6(6),e.Q6J("fullscreen",!0),e.xp6(13),e.Oqu((null==t.aktiveSaison?null:t.aktiveSaison.name)||"Keine Saison aktiv"),e.xp6(2),e.Q6J("ngIf",t.aktiveSaison),e.xp6(2),e.hij("Offene Eins\xe4tze: ",t.anlassListeGefiltert.length,""),e.xp6(1),e.Q6J("ngIf",t.isLoadingAnlaesse&&0===t.anlassListeGefiltert.length),e.xp6(1),e.Q6J("ngForOf",t.anlassListeGefiltert),e.xp6(1),e.Q6J("ngIf",!t.isLoadingAnlaesse&&0===t.anlassListeGefiltert.length))},dependencies:[h.sg,h.O5,o.yp,o.Sm,o.PM,o.FN,o.Zi,o.tO,o.Dq,o.W2,o.Gu,o.fG,o.nJ,o.Wo,o.CK,o.wd,o.sr,h.uU],styles:["[_nghost-%COMP%]{--page-max-width: 860px}[_nghost-%COMP%] ion-header[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%]{--background: linear-gradient(135deg, #ffffff 0%, #edf5ff 55%, #faf4e4 100%);--border-color: rgba(31, 95, 149, .12)}[_nghost-%COMP%] ion-header[_ngcontent-%COMP%] ion-title[_ngcontent-%COMP%]{color:#1a3d5c}.iekmain-content[_ngcontent-%COMP%]{--background: linear-gradient(180deg, #f7f9fc 0%, #eef2f6 100%)}.page-shell[_ngcontent-%COMP%]{margin:0 auto;max-width:var(--page-max-width);padding-top:.25rem;padding-bottom:1.25rem}.summary-card[_ngcontent-%COMP%], .event-card[_ngcontent-%COMP%], .empty-state[_ngcontent-%COMP%]{border:1px solid rgba(46,111,168,.12);border-radius:14px;box-shadow:0 10px 24px #132b4214;margin:0 0 .9rem}.summary-card[_ngcontent-%COMP%]{background:linear-gradient(135deg,#ffffff 0%,#f1f6fc 100%)}.summary-card[_ngcontent-%COMP%] ion-card-title[_ngcontent-%COMP%]{font-size:1.25rem;letter-spacing:.01em}.summary-meta[_ngcontent-%COMP%]{color:var(--ion-color-medium-shade);margin:.1rem 0}.card-heading[_ngcontent-%COMP%]{align-items:flex-start;display:flex;gap:.6rem;justify-content:space-between;width:100%;min-width:0}.card-heading[_ngcontent-%COMP%] .event-title[_ngcontent-%COMP%]{display:block;flex:1 1 auto;color:#0d2f4f;font-size:1.25rem;font-weight:700;line-height:1.3;min-width:0;overflow:visible;overflow-wrap:anywhere;white-space:normal;word-break:break-word}.event-subtitle[_ngcontent-%COMP%]{display:block;color:#0d2f4fc7;font-size:.9rem;line-height:1.3;margin-top:.35rem;white-space:normal}.event-card[_ngcontent-%COMP%]{cursor:pointer;transition:transform .16s ease,box-shadow .18s ease}.event-card[_ngcontent-%COMP%] ion-badge[_ngcontent-%COMP%]{font-size:.75rem;font-weight:600;letter-spacing:.01em;padding:.45rem .55rem}.event-card[_ngcontent-%COMP%]:hover, .event-card[_ngcontent-%COMP%]:focus-visible{box-shadow:0 14px 32px #132b4224;outline:none;transform:translateY(-2px)}.meta-line[_ngcontent-%COMP%]{align-items:center;color:var(--ion-color-medium-shade);display:flex;gap:.45rem;margin:0}.meta-line[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{color:var(--ion-color-primary);font-size:1rem;min-width:1rem}.description[_ngcontent-%COMP%]{color:#233649;line-height:1.45;margin:.65rem 0 0}.empty-state[_ngcontent-%COMP%]{text-align:center}.skeleton-card[_ngcontent-%COMP%]{pointer-events:none}@media (max-width: 575px){.page-shell[_ngcontent-%COMP%]{padding-left:.25rem;padding-right:.25rem}.card-heading[_ngcontent-%COMP%]{align-items:flex-start;flex-direction:column}.event-card[_ngcontent-%COMP%] ion-badge[_ngcontent-%COMP%]{align-self:flex-start}}@media (prefers-reduced-motion: reduce){.event-card[_ngcontent-%COMP%]{transition:none}}"]}),d})()}];let Z=(()=>{var n;class d{}return(n=d).\u0275fac=function(i){return new(i||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[u.Bz.forChild(b),u.Bz]}),d})(),y=(()=>{var n;class d{}return(n=d).\u0275fac=function(i){return new(i||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[h.ez,g.u5,o.Pc,Z]}),d})()},6324:(C,p,c)=>{c.d(p,{D:()=>u});
1var h=c(9862),g=c(553),o=c(6689);let u=(()=>{var e;class v{constructor(a){this.http=a,this.httpHeader={headers:new h.WM({"Content-Type":"application/json"})}}GetAktiveAnlaesse(a){return this.http.get(g.N.webApiURLBasis+"anlass/saison/"+a.toString())}GetAnlass(a){return this.http.get(g.N.webApiURLBasis+"anlass/"+a.toString())}GetAlleAnlaesse(a){return this.http.get(g.N.webApiURLBasis+"anlass/saison/"+a.toString()+"/alle")}PostAnlass(a){return this.http.post(g.N.webApiURLBasis+"anlass",a,this.httpHeader)}PutAnlass(a){return this.http.put(g.N.webApiURLBasis+"anlass/"+a.id,a,this.httpHeader)}AnlassLoeschen(a){return this.http.delete(g.N.webApiURLBasis+"anlass/"+a,this.httpHeader)}AnlassKopieren(a,f,k,A){const _=g.N.webApiURLBasis+"anlass/kopieren/"+f+"/"+k+"?neuerStartpunktUebernehmen="+String(A);return console.log("AnlassKopieren",_),this.http.post(_,a,this.httpHeader)}SetStatus(a,f){return this.http.post(g.N.webApiURLBasis+"anlass/aktiv/"+a+"/"+f,{},this.httpHeader)}}return(e=v).\u0275fac=function(a){return new(a||e)(o.LFG(h.eN))},e.\u0275prov=o.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),v})()}}]);
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.