PageSourceSearch

https://cargodigital.sbbcargo.com/de/push.module-PPYSRQDJ.js

js sbbcargo.com collected 2026-09-24 18:42:42 UTC 37,347 bytes, 6 lines download raw bytes

1import{a as zt}from"./chunk-MSAQOUUQ.js";import{a as gt}from"./chunk-2N3VLRBL.js";import{a as tt}from"./chunk-ON5XPQCZ.js";import{a as kt}from"./chunk-3K55N7YB.js";import{a as Xt}from"./chunk-MAIAR2EO.js";import{a as he}from"./chunk-5ONC36MJ.js";import{a as je}from"./chunk-XB6SSF63.js";import{a as Ie,b as be,c as Re}from"./chunk-UJEC3FDK.js";import{a as nt}from"./chunk-EGBTW6FB.js";import{a as Wt}from"./chunk-LBUWS7TB.js";import{D as Ot}from"./chunk-FO6DNIUX.js";import{l as ht}from"./chunk-22VVFSWL.js";import"./chunk-4RKIOU22.js";import{c as Ve,j as It}from"./chunk-HHQMEK3F.js";import{d as At}from"./chunk-2AUPVCHI.js";import{a as bt,b as Rt,c as Nt}from"./chunk-TTUTAKCN.js";import"./chunk-HLLOWXRD.js";import{O as Xi,Z as mt}from"./chunk-RGB3SVB4.js";import{a as we}from"./chunk-EEZXYG4P.js";import"./chunk-JKRYHUMR.js";import"./chunk-E2JGAHZS.js";import{a as wi}from"./chunk-LN67M2AD.js";import"./chunk-MITOHWD6.js";import"./chunk-CJEUO2TY.js";import"./chunk-4FK22RFP.js";import{g as zi}from"./chunk-LA55FE7T.js";import"./chunk-GFLWY4SM.js";import{a as Yi}from"./chunk-4XPWRA6H.js";import"./chunk-HKUY52EP.js";import{a as ie}from"./chunk-E4YVWQOK.js";import{a as J,b as Wi,c as ee,d as ki,f as $e}from"./chunk-ESLTEIPE.js";import{a as Mt,d as Ut,e as Ht,g as vt,h as Dt,j as $t,k as Ft,m as wt,n as Gt,p as yt,q as Vt,s as xt}from"./chunk-YLU25TT5.js";import{a as Lt}from"./chunk-VSAD4VIE.js";import"./chunk-ZUCP3AVP.js";import"./chunk-LP3XVKTP.js";import{A as Et,B as Pt,C as ye,D as ft,G as Ct,b as ot,d as X,f as rt,g as lt,i as _t,m as se,o as at,p as st,t as ct,u as dt,x as ut,y as St,z as pt}from"./chunk-7KNEFN6F.js";import{d as qi}from"./chunk-UOGTQXVR.js";import{K as Zi,R as Te,S as Tt,n as Hi,o as vi}from"./chunk-N2BXKLKA.js";import{A as Qi,D as Ji,M as et,fa as it,ha as Ge,k as ji,u as Ki,y as Fe}from"./chunk-62NO74SJ.js";import"./chunk-Y223TRIQ.js";import{Mc as xi,Pc as ae,u as Ye}from"./chunk-S7IDUUPC.js";import{a as ge}from"./chunk-PXE523SV.js";import{a as Bi}from"./chunk-XJHPPJWB.js";import{$c as ve,Ba as gi,Bb as le,Ca as Le,Cc as g,D as z,F as V,Ga as re,Gc as Ii,Ge as De,Hb as W,Hc as bi,He as N,I as Pi,Ib as Ue,Ic as Ri,Je as O,Ke as Di,Mc as Ni,Nb as _e,Oa as U,Oc as He,Od as Mi,Pa as H,Q as mi,Qc as x,Qe as $i,Re as L,Sc as q,Se as Fi,T as Q,Tc as Ai,Wa as me,Xd as Ui,Yb as P,Zc as Oi,_b as m,a as d,ab as Me,ac as fe,b as S,ba as fi,bc as k,bf as Gi,cc as B,cd as G,dc as h,dd as y,ea as Ci,ec as l,fc as r,ff as yi,gc as F,hf as Vi,kc as I,lc as b,of as $,pc as w,q as pi,qa as Pe,r as Ei,re as M,rf as Ce,sb as _,se as v,td as Li,uc as s,uf as Z,w as D,wc as Ti,xc as hi,zc as A}from"./chunk-EQHWZXOS.js";var Y=class e{static equalsServiceConfig(n,i){let t=n?.verteilerListe?.map(e.normalizeDistribution)??[],o=i?.verteilerListe?.map(e.normalizeDistribution)??[];return $e.equalsObject(S(d({typ:"pushETA"},n),{verteilerListe:[]}),S(d({typ:"pushETA"},i),{verteilerListe:[]}))&&$e.equalsArrayIgnoreOrder(t,o,(a,R)=>Bi.compareJson(a,R));}static equalsDistribution(n,i){return $e.equalsObject(e.normalizeDistribution(n),e.normalizeDistribution(i));}static normalizeDistribution(n){return S(d({},n),{eMailAdressen:[...(n?.eMailAdressen??[])].sort(),mobilfunkRufnummern:[...(n?.mobilfunkRufnummern??[])].sort(),verfruehungPrognose:void 0});}};function sn(e,n){e&1&&F(0,"tr",20);}function cn(e,n){if(e&1){let i=w();l(0,"tr",21),A("click",function(){let o=U(i).$implicit,a=g();return H(a.rowClicked(o));}),r();}if(e&2){let i=n.$implicit,t=g();He("row-selected",!!t.selectedRow&&t.isSelected(i))("row-unselected",!!t.selectedRow&&!t.isSelected(i)),h("appDblClickDebug",i);}}function dn(e,n){e&1&&(l(0,"th",22)(1,"span",23),I(2),s(3,0),b(),l(4,"div",24),s(5,1),r()()());}function un(e,n){if(e&1&&(l(0,"td",25),x(1),r()),e&2){let i=n.$implicit;_(),q(" ",i==null||i.distribution==null?null:i.distribution.schwellwert," ");}}function Sn(e,n){e&1&&(l(0,"th",26),I(1),s(2,2),b(),r());}function pn(e,n){if(e&1&&(l(0,"div",23),x(1),r()),e&2){let i=n.$implicit;_(),q(" ",i," ");}}function En(e,n){if(e&1&&(l(0,"td",27),k(1,pn,2,1,"div",23,fe),r()),e&2){let i=n.$implicit;_(),B(i==null||i.distribution==null?null:i.distribution.eMailAdressen);}}function Pn(e,n){e&1&&(l(0,"th",26),I(1),s(2,3),b(),r());}function mn(e,n){if(e&1&&(l(0,"div",23),x(1),r()),e&2){let i=n.$implicit;_(),q(" ",i," ");}}function fn(e,n){if(e&1&&(l(0,"td",27),k(1,mn,2,1,"div",23,fe),r()),e&2){let i=n.$implicit;_(),B(i==null||i.distribution==null?null:i.distribution.mobilfunkRufnummern);}}function Cn(e,n){e&1&&(l(0,"th",26),I(1),s(2,4),b(),r());}function gn(e,n){e&1&&(I(0),s(1,5),b());}function Tn(e,n){e&1&&(I(0),s(1,6),b());}function hn(e,n){e&1&&(I(0),s(1,7),b());}function In(e,n){if(e&1&&(l(0,"td",27),P(1,gn,2,0,"ng-container")(2,Tn,2,0,"ng-container")(3,hn,2,0,"ng-container"),r()),e&2){let i,t=n.$implicit;_(),m((i=t==null||t.distribution==null?null:t.distribution.sprache)==="de"?1:i==="fr"?2:i==="it"?3:-1);}}var xe=(()=>{class e{constructor(){this.rowSelected=new me(),this.columnsToDisplay=["schwellwert","eMailAdressen","mobilfunkRufnummern","sprache"],this.dataSource=new xt([]),this.trackById=(i,t)=>t.serviceConfig.id;}ngOnChanges(){this.dataSource.data=this.distributionList;}rowClicked(i){this.rowSelected.emit(i);}isSelected(i){return this.selectedRow&&this.selectedRow.serviceConfig.id===i.serviceConfig.id&&Y.equalsDistribution(this.selectedRow.distribution,i.distribution);}static{this.ɵfac=function(t){return new(t||e)();};}static{this.ɵcmp=W({type:e,selectors:[["app-push-config-list"]],inputs:{distributionList:"distributionList",selectedRow:"selectedRow"},outputs:{rowSelected:"rowSelected"},features:[Me],decls:16,vars:4,consts:()=>{let i;i="Abweichung";let t;t="Min.";let o;o="E-Mail";let a;a="SMS";let R;R="Sprache";let u;u="Deutsch";let C;C="Franz\xF6sisch";let p;
1return p="Italienisch",[i,t,o,a,R,u,C,p,[1,"p-gutter-t"],["sbb-table","",1,"sbb-table","sbb-table--unstriped","cd-table",3,"dataSource","trackBy"],["sbb-header-row","",4,"sbbHeaderRowDef"],["sbb-row","","class","clickable cd-no-focus-outline hoverable",3,"appDblClickDebug","row-selected","row-unselected","click",4,"sbbRowDef","sbbRowDefColumns"],["sbbColumnDef","schwellwert"],["sbb-header-cell","","class","sbb-table-align-right",4,"sbbHeaderCellDef"],["sbb-cell","","class","sbb-table-align-right",4,"sbbCellDef"],["sbbColumnDef","eMailAdressen"],["sbb-header-cell","",4,"sbbHeaderCellDef"],["sbb-cell","",4,"sbbCellDef"],["sbbColumnDef","mobilfunkRufnummern"],["sbbColumnDef","sprache"],["sbb-header-row",""],["sbb-row","",1,"clickable","cd-no-focus-outline","hoverable",3,"click","appDblClickDebug"],["sbb-header-cell","",1,"sbb-table-align-right"],[1,"cd-text-overflow-ellipsis"],[1,"cd-text-muted","cd-text-thin"],["sbb-cell","",1,"sbb-table-align-right"],["sbb-header-cell",""],["sbb-cell",""]];},template:function(t,o){t&1&&(l(0,"sbb-table-wrapper",8)(1,"table",9),_e(2,sn,1,0,"tr",10)(3,cn,1,5,"tr",11),I(4,12),_e(5,dn,6,0,"th",13)(6,un,2,1,"td",14),b(),I(7,15),_e(8,Sn,3,0,"th",16)(9,En,3,0,"td",17),b(),I(10,18),_e(11,Pn,3,0,"th",16)(12,fn,3,0,"td",17),b(),I(13,19),_e(14,Cn,3,0,"th",16)(15,In,4,1,"td",17),b(),r()()),t&2&&(_(),h("dataSource",o.dataSource)("trackBy",o.trackById),_(),h("sbbHeaderRowDef",o.columnsToDisplay),_(),h("sbbRowDefColumns",o.columnsToDisplay));},dependencies:[ht,Mt,Vt,Gt,Ft,yt,wt,$t,Ut,vt,Dt,Ht],styles:[`table[_ngcontent-%COMP%]{table-layout:fixed}.sbb-column-schwellwert[_ngcontent-%COMP%]{width:100px}.sbb-column-eMailAdressen[_ngcontent-%COMP%]{width:60%}.sbb-column-mobilfunkRufnummern[_ngcontent-%COMP%]{width:40%}.sbb-column-sprache[_ngcontent-%COMP%]{width:150px}
2/*# sourceMappingURL=push-config-list.component-WIMIT3SX.css.map */`],changeDetection:0});}}return e;})();var bn=(e,n)=>n.elementId;function Rn(e,n){if(e&1&&F(0,"app-display-place",28),e&2){let i=g();h("place",i.value==null||i.value.serviceConfig==null?null:i.value.serviceConfig.ort);}}function Nn(e,n){if(e&1&&(I(0),s(1,10),b(),F(2,"app-display-place",43)),e&2){let i=g();_(2),h("place",i.value==null||i.value.serviceConfig==null?null:i.value.serviceConfig.ort);}}function An(e,n){e&1&&(I(0),s(1,11),b());}function On(e,n){e&1&&(I(0),s(1,12),b());}function Ln(e,n){if(e&1&&(l(0,"sbb-link",45),x(1),r()),e&2){let i=n.$implicit;h("href",Oi("#",i.elementId)),_(),q(" ",i.title," ");}}function Mn(e,n){if(e&1&&(l(0,"sbb-notification",29)(1,"div",44),s(2,13),r(),k(3,Ln,2,3,"sbb-link",45,bn),r()),e&2){let i=g();_(3),B(i.jumpMarks);}}function Un(e,n){e&1&&(l(0,"sbb-error"),s(1,15),r());}function Hn(e,n){if(e&1&&(l(0,"sbb-form-field",31)(1,"label"),s(2,14),r(),F(3,"app-select-place",46),P(4,Un,2,0,"sbb-error"),r()),e&2){let i,t=g();_(3),h("required",!0)("items",t.places),_(),m((i=t.pushForm.get("place"))!=null&&i.errors&&((i=t.pushForm.get("place"))!=null&&i.touched||t.formSubmitted)?4:-1);}}function vn(e,n){e&1&&(l(0,"sbb-error"),s(1,16),r());}function Dn(e,n){e&1&&(l(0,"sbb-error"),s(1,17),r());}function $n(e,n){e&1&&(l(0,"sbb-error"),s(1,18),r());}function Fn(e,n){if(e&1&&(l(0,"div",34),s(1,19),r()),e&2){let i=g();_(),Ti(i.DELAY_WARNING_THRESHOLD_MIN),hi(1);}}function wn(e,n){e&1&&(l(0,"sbb-error"),s(1,20),r());}function Gn(e,n){e&1&&(l(0,"sbb-error"),s(1,21),r());}function yn(e,n){e&1&&(l(0,"sbb-error"),s(1,22),r());}function Vn(e,n){e&1&&(l(0,"sbb-error"),s(1,23),r());}function xn(e,n){e&1&&(l(0,"sbb-button",42),I(1),s(2,24),b(),r());}function Xn(e,n){if(e&1){let i=w();l(0,"h3",47),s(1,25),r(),l(2,"sbb-secondary-button",48),A("click",function(){U(i);let o=g();return H(o.delete());}),I(3),s(4,26),b(),r();}}var de=class Ke{constructor(n){this.languageService=n,this.SEPARATOR_PATTERN="(?:[,;]?(?:\\s|\\n))+",this.PHONE_REPLACE_00_PATTERN=new RegExp(`(^|${this.SEPARATOR_PATTERN})00`,"g"),this.MULTIPLE_PHONE_PATTERN=`^${he.TEL_CH_MOBILE_PATTERN}(${this.SEPARATOR_PATTERN}${he.TEL_CH_MOBILE_PATTERN})*(?:${this.SEPARATOR_PATTERN})?$`,this.MULTIPLE_MAIL_PATTERN=`^${he.MAIL_PATTERN}(${this.SEPARATOR_PATTERN}${he.MAIL_PATTERN})*(?:${this.SEPARATOR_PATTERN})?$`,this.DELAY_MAX_INPUT=1440,this.DELAY_MIN_INPUT=5,this.DELAY_WARNING_THRESHOLD_MIN=60,this.mode="create",this.places=[],this.createWithoutPlaceField=!1,this.changedServiceConfig=new me(),this.deletedServiceConfig=new me(),this.formSubmitted=!1,this.pushForm=new _t({place:new se(null,{validators:[X.required]}),delay:new se(120,{validators:[X.max(this.DELAY_MAX_INPUT),X.min(this.DELAY_MIN_INPUT),X.required]}),mail:new se("",{validators:[X.pattern(this.MULTIPLE_MAIL_PATTERN)],updateOn:"blur"}),phone:new se("",{validators:[X.pattern(this.MULTIPLE_PHONE_PATTERN)],updateOn:"blur"}),language:new se(null,{validators:[X.required]})},{updateOn:"change",validators:[this.mailOrPhoneValidator]}),this.pushForm.valueChanges.pipe(vi(this),mi(()=>this.pushForm.valid),z(i=>this.formValueToModelAndUpdateLatestValue(i)),fi((i,t)=>Y.equalsServiceConfig(i.serviceConfig,t.serviceConfig))).subscribe(i=>this.update(i)),this.jumpMarks=[];}ngOnChanges(n){n.value&&this.value&&(this.latestValue=this.value,this.latestValueEmitted=this.value,this.formSubmitted=!1,this.pushForm.setErrors(null),this.pushForm.markAsUntouched({onlySelf:!0}),this.pushForm.controls.delay.setValue(this.value.distribution.schwellwert??null,{emitEvent:!1}),this.pushForm.controls.mail.setValue(this.value.distribution.eMailAdressen?this.value.distribution.eMailAdressen.join(`
3`):"",{emitEvent:!1}),this.pushForm.controls.phone.setValue(this.value.distribution.mobilfunkRufnummern?this.value.distribution.mobilfunkRufnummern.join(`
4`):"",{emitEvent:!1}),this.pushForm.controls.language.setValue(this.value.distribution.sprache??this.languageService.lang,{emitEvent:!1}),this.pushForm.controls.place.setValue(this.value.serviceConfig.ort??null,{emitEvent:!0}
4)),(n.mode||n.createCatchAll)&&(this.pushForm.controls.place.setValidators(this.mode==="create"&&!this.createWithoutPlaceField?[X.required]:[]),this.pushForm.controls.place.updateValueAndValidity());}mailOrPhoneValidator(n){return n.get("mail").value||n.get("phone").value?null:{mailOrPhone:"missing mail or phone"};}save(){this.formSubmitted=!1,this.jumpMarks=[],this.changedServiceConfig.emit(this.latestValue);}update(n){this.mode==="edit"&&!Y.equalsServiceConfig(n.serviceConfig,this.latestValueEmitted.serviceConfig)&&(this.latestValueEmitted=n,this.changedServiceConfig.emit(n));}delete(){this.deletedServiceConfig.emit(this.latestValue);}formValueToModelAndUpdateLatestValue(n){let i={schwellwert:n.delay??void 0,sprache:n.language??void 0,mobilfunkRufnummern:this.toList(n.phone??""),eMailAdressen:this.toList(n.mail??"")},t=this.latestValue.serviceConfig.verteilerListe||[],o=t.findIndex(a=>Y.equalsDistribution(a,this.latestValue.distribution));return this.latestValue={distribution:i,serviceConfig:S(d({},this.latestValue.serviceConfig),{ort:n.place?n.place:this.latestValue.serviceConfig.ort,verteilerListe:o>=0?[...t.slice(0,o),i,...t.slice(o+1)]:[...t,i]})},this.latestValue;}toList(n){return n.trim().split(new RegExp(this.SEPARATOR_PATTERN)).map(i=>i.trim()).filter(i=>!!i);}pushFormInvalid(){this.jumpMarks=[],this.pushForm.controls.place.errors&&this.jumpMarks.push({elementId:"#place",title:"Standort"}),this.pushForm.errors&&this.pushForm.errors.mailOrPhone&&this.jumpMarks.push({elementId:"#mail",title:"E-Mail oder SMS Empf\xE4nger"}),this.pushForm.controls.mail.errors&&this.jumpMarks.push({elementId:"#mail",title:"E-Mail"}),this.pushForm.controls.phone.errors&&this.jumpMarks.push({elementId:"#phone",title:"SMS Empf\xE4nger"}),this.pushForm.controls.delay.errors&&this.jumpMarks.push({elementId:"#delay",title:"Abweichung"}),this.formSubmitted=!0;}onPhoneInput(n){let i=n.target;i.value.match(this.PHONE_REPLACE_00_PATTERN)&&(i.value=i.value.replace(this.PHONE_REPLACE_00_PATTERN,"$1+"));}static{this.ɵfac=function(i){return new(i||Ke)(le(Yi));};}static{this.ɵcmp=W({type:Ke,selectors:[["app-push-editor"]],inputs:{value:"value",mode:"mode",places:"places",createWithoutPlaceField:"createWithoutPlaceField"},outputs:{changedServiceConfig:"changedServiceConfig",deletedServiceConfig:"deletedServiceConfig"},features:[Me],decls:43,vars:21,consts:()=>{let n;n="Alle Meldungen";let i;i="Bitte E-Mailadressen eintragen";let t;t="Bitte Schweizer Mobilnummer erfassen (+417...)";let o;o="Abweichung (min)";let a;a="Meldung per E-Mail an:";let R;R="Meldung per SMS an:";let u;u="Sprache";let C;C="Deutsch";let p;p="Franz\xF6sisch";let c;c="Italienisch";let E;E="Neuer Empf\xE4nger f\xFCr:";let T;T="Neuer Empf\xE4nger";let Ee;Ee="Neuer Empf\xE4nger f\xFCr alle Benachrichtigungen";let K;K="Folgende Eingabe pr\xFCfen:";let ei;ei="Bitte w\xE4hlen";let ii;ii="Standort ausw\xE4hlen";let ti;ti=" Bitte w\xE4hlen Sie einen Standort. ";let ni;ni=" Sie k\xF6nnen maximal eine Abweichung von 1440 Minuten (entspricht einem Tag) erfassen. ";let oi;oi=" Bitte erfassen Sie eine Abweichung von mindestens 5 Minuten. ";let ri;ri=" Ab welcher Abweichung m\xF6chten Sie informiert werden? ";let li;li=" Hinweis: Das Erfassen eines Schwellwertes unter "+"\uFFFD0\uFFFD"+" Minuten kann zu einer hohen Anzahl von Meldungen f\xFChren. ";let _i;_i=" Bitte geben Sie nur g\xFCltige E-Mailadressen ein (z.B. [email protected]). ";let ai;ai=" Bitte geben Sie mindestens einen Kanal an. ";let si;si=" Bitte geben Sie nur g\xFCltige Schweizer Mobilnummern mit L\xE4ndervorwahl ein. (+41761234567) ";let ci;ci=" Bitte geben Sie mindestens einen Kanal an. ";let di;di="hinzuf\xFCgen";let ui;ui="Benachrichtigung l\xF6schen";let Si;return Si="l\xF6schen",[["delay",""],["mail",""],["language",""],o,a,R,u,C,p,c,E,T,Ee,K,ii,ti,ni,oi,ri,li,_i,ai,si,ci,di,ui,Si,[1,"m-inner-b"],["defaultMsg",n,3,"place"],["id","validationContainer","readOnly","","type","error",1,"m-inner-b"],[1,"cd-flex","cd-flex-column",3,"ngSubmit","formGroup"],[1,"cd-form-field-long"],[1,"cd-form-field-long","m-gutter-t"],["type","number","name","delay","id","delay","required","","formControlName","delay"],[1,"cd-warning","m-gutter-b"],[1,"cd-form-field-long","m-gutter-t","cd-w-100"],["minlength","0","maxlength","1000","name","mail","id","mail","formControlName","mail","placeholder",i,1,"hide-char-info",3,"pattern"],["minlength","0","maxlength","1000","name","phone","id","phone","formControlName","phone","placeholder",t,1,"hide-char-info",3,"input","pattern"],["name","language","id","language","formControlName","language","required",""],["value","de"],["value","fr"],["value","it"],["type","submit","iconName","arrow-right-small",1,"m-inner-t","cd-w-fit"],[3,"place"],[1,"cd-text-bold"],[1,"m-gutter-r",3,"href"],["name","place","formControlName","place","placeholder",ei,3,"required","items"],[1,"m-inner-t","m-inner-b"],["iconName","trash-small",3,"click"]];},template:function(i,t){if(i&1&&(l(0,"h2",27),P(1,Rn,1,1,"app-display-place",28),P(2,Nn,3,1),P(3,An,2,0,"ng-container"),P(4,On,2,0,"ng-container"),r(),P(5,Mn,5,0,"sbb-notification",29),l(6,"form",30),A("ngSubmit",function(){return t.pushForm.valid?t.save():t.pushFormInvalid();}),P(7,Hn,5,3,"sbb-form-field",31),l(8,"sbb-form-field",32)(9,"label"),s(10,3),r(),F(11,"input",33,0),P(13,vn,2,0,"sbb-error"),P(14,Dn,2,0,"sbb-error"),P(15,$n,2,0,"sbb-error"),r(),P(16,Fn,2,1,"div",34),l(17,"sbb-form-field",35)(18,"label"),s(19,4),r(),F(20,"textarea",36,1),P(22,wn,2,0,"sbb-error"),P(23,Gn,2,0,"sbb-error"),r(),l(24,"sbb-form-field",35)(25,"label"),s(26,5),r(),l(27,"textarea",37),A("input",function(a){return t.onPhoneInput(a);}),r(),P(28,yn,2,0,"sbb-error"),P(29,Vn,2,0,"sbb-error"),r(),l(30,"sbb-form-field",35)(31,"label"),s(32,6),r(),l(33,"sbb-select",38,2)(35,"sbb-option",39),s(36,7),r(),l(37,"sbb-option",40),s(38,8),r(),l(39,"sbb-option",41),s(4
40,9),r()()(),P(41,xn,3,0,"sbb-button",42),r(),P(42,Xn,5,0)),i&2){let o,a,R,u,C,p,c,E;_(),m(t.mode==="edit"?1:-1),_(),m(t.mode==="create"&&!(t.value==null||t.value.serviceConfig==null)&&t.value.serviceConfig.ort?2:-1),_(),m(t.mode==="create"&&!(!(t.value==null||t.value.serviceConfig==null)&&t.value.serviceConfig.ort)&&!t.createWithoutPlaceField?3:-1),_(),m(t.mode==="create"&&!(!(t.value==null||t.value.serviceConfig==null)&&t.value.serviceConfig.ort)&&t.createWithoutPlaceField?4:-1),_(),m(!t.pushForm.valid&&t.formSubmitted?5:-1),_(),h("formGroup",t.pushForm),_(),m(t.mode==="create"&&!t.createWithoutPlaceField?7:-1);let T=(((o=t.pushForm.get("delay"))==null?null:o.value)??t.DELAY_WARNING_THRESHOLD_MIN)<t.DELAY_WARNING_THRESHOLD_MIN&&(((o=t.pushForm.get("delay"))==null?null:o.value)??0)>=t.DELAY_MIN_INPUT;_(),He("cd-form-warning",T),_(5),m(!((a=t.pushForm.get("delay"))==null||a.errors==null)&&a.errors.max?13:-1),_(),m(!((R=t.pushForm.get("delay"))==null||R.errors==null)&&R.errors.min?14:-1),_(),m(!((u=t.pushForm.get("delay"))==null||u.errors==null)&&u.errors.required?15:-1),_(),m(T?16:-1),_(4),h("pattern",t.MULTIPLE_MAIL_PATTERN),_(2),m(!((C=t.pushForm.get("mail"))==null||C.errors==null)&&C.errors.pattern?22:-1),_(),m(((p=t.pushForm.get("phone"))!=null&&p.touched&&(p=t.pushForm.get("mail"))!=null&&p.touched||t.formSubmitted)&&t.pushForm.errors!=null&&t.pushForm.errors.mailOrPhone?23:-1),_(4),h("pattern",t.MULTIPLE_PHONE_PATTERN),_(),m(!((c=t.pushForm.get("phone"))==null||c.errors==null)&&c.errors.pattern?28:-1),_(),m(((E=t.pushForm.get("phone"))!=null&&E.touched&&(E=t.pushForm.get("mail"))!=null&&E.touched||t.formSubmitted)&&t.pushForm.errors!=null&&t.pushForm.errors.mailOrPhone?29:-1),_(12),m(t.mode==="create"?41:-1),_(),m(t.mode==="edit"?42:-1);}},dependencies:[Ve,ye,at,ot,st,rt,lt,ut,St,pt,Et,dt,ct,It,we,Ct,ft,Xt,mt,Ki,Fe,qi],styles:[`.hide-char-info[_ngcontent-%COMP%]    >div{display:none}#validationContainer[_ngcontent-%COMP%]{position:sticky;top:0;left:0;z-index:calc(var(--sbb-header-z-index) - 4);opacity:1;padding-bottom:30px}
5/*# sourceMappingURL=push-editor.component-HTI3Z34X.css.map */`],changeDetection:0});}};de=Ei([Hi()],de);var Bt=(()=>{class e{constructor(){}static{this.ɵfac=function(t){return new(t||e)();};}static{this.ɵcmp=W({type:e,selectors:[["app-push-info-view"]],decls:9,vars:0,consts:()=>{let i;i="Cargo Push";let t;t=" Allzeit informiert \u2013 registrieren Sie sich, um aktiv per Mail oder SMS \xFCber ETA-Abweichungen Ihrer Sendungen informiert zu werden. Pers\xF6nlich, proaktiv, schnell. ";let o;o="Sind Sie interessiert?";let a;return a="Gerne zeigen wir Ihnen, wie Cargo Push Ihrem Unternehmen helfen kann.",[i,t,o,a,["backgroundImage","assets/header/wagen-scanner.jpeg"],[1,"m-interSmall-t","cd-text-thin","cd-text-display"],[1,"cd-text-bold","m-interSmall-t"],[1,"m-no-t"]];},template:function(t,o){t&1&&(l(0,"app-info-view-template",4)(1,"h1"),s(2,0),r(),l(3,"p",5),s(4,1),r(),l(5,"p",6),s(6,2),r(),l(7,"p",7),s(8,3),r()());},dependencies:[At],encapsulation:2,changeDetection:0});}}return e;})();var ue=M("[PushStore] Load Push Configs"),Ne=M("[PushStore] Load Push Configs Success",v()),Xe=M("[PushStore] Load Push Configs Failed",v()),Se=M("[PushStore] Load Places"),Ae=M("[PushStore] Load Places Success",v()),ze=M("[PushStore] Load Places Failed",v()),te=M("[PushStore] Create Service Config",v()),We=M("[PushStore] Create Service Config Success",v()),ke=M("[PushStore] Create Service Config Failed",v()),ne=M("[PushStore] Update Service Config",v()),Be=M("[PushStore] Update Service Config Failed",v()),pe=M("[PushStore] Delete Distribution List",v()),Oe=M("[PushStore] Delete Distribution List Failed",v()),oe=M("[PushStore] Delete all ETA for place",v());var j=Di("pushStore"),qt=O(j,e=>e.pushConfigsLoading.loaded),Qe=O(j,e=>e.pushConfigsLoading.loading),zn=O(Qe,e=>e>0),Wn=O(j,e=>je.defaultErrorToMessageMapper(e.pushConfigsLoading.error)),Yt=O(j,e=>e.placesLoading.loaded),Ze=O(j,e=>e.placesLoading.loading),kn=O(Ze,e=>e>0),jt=O(zn,kn,(e,n)=>e||n),Bn=O(j,e=>je.defaultErrorToMessageMapper(e.placesLoading.error)),Kt=O(Wn,Bn,(e,n)=>[e,n].filter(Vi)),Qt=O(j,e=>e.pushConfigs);function Zt(e){return(e.verteilerListe||[]).map(n=>({distribution:n,serviceConfig:e}));}var Jt=(e,n)=>(e.distribution.schwellwert||0)-(n.distribution.schwellwert||0),en=O(Qt,e=>e.filter(n=>!n.ort).reduce((n,i)=>n.concat(Zt(i)),[]).sort(Jt)),tn=O(Qt,e=>{let n=e.filter(i=>!!i.ort).reduce((i,t)=>{let o=t.ort,a=`${o.name} (${o.uicNummer})`;
5return i[a]||(i[a]={place:o,configs:[]}),i[a].configs.push(...Zt(t)),i;},{});return Object.entries(n).map(([i,t])=>({sortKey:i,place:t.place,distributionList:t.configs.sort(Jt)})).sort((i,t)=>i.sortKey.localeCompare(t.sortKey));}),qn=O(j,e=>e.places),nn=O(qn,e=>[...e].sort((n,i)=>n.uicNummer>i.uicNummer?1:-1));var jn=["pushEditor"],Je=()=>[],Kn=(e,n)=>n.sortKey;function Qn(e,n){e&1&&F(0,"sbb-loading-indicator",12),e&2&&h("size","xxl");}function Zn(e,n){if(e&1&&(l(0,"sbb-notification",13),x(1),r()),e&2){let i=n.$implicit;_(),Ai(" ",i.messageToken??""," ",i.additionalMessage??""," ");}}function Jn(e,n){if(e&1){let i=w();l(0,"sbb-transparent-button",25),A("click",function(){U(i);let o=g(2);return H(o.deleteGlobalDistributionList());}),r();}}function eo(e,n){if(e&1){let i=w();l(0,"sbb-transparent-button",29),A("click",function(){U(i);let o=g().$implicit,a=g(2);return H(a.deletePlaceDistributionList(o.distributionList,o.place));}),r();}}function io(e,n){e&1&&(l(0,"div"),s(1,7),r());}function to(e,n){if(e&1){let i=w();l(0,"sbb-expansion-panel",18,0)(2,"sbb-expansion-panel-header")(3,"div",19),F(4,"app-display-place",26),r(),P(5,eo,1,0,"sbb-transparent-button",27),r(),l(6,"sbb-expansion-panel-content")(7,"app-push-config-list",23),A("rowSelected",function(o){U(i);let a=g(2);return H(a.rowSelected(o));}),r(),P(8,io,2,0,"div"),l(9,"sbb-transparent-button",28),A("click",function(){let o=U(i).$implicit,a=g(2);return H(a.createForPlace(o.place));}),I(10),s(11,6),b(),r()()();}if(e&2){let i=n.$implicit,t=Ni(1),o=g(2);h("expanded",t.hasAttribute("expanded")||o.stationId(i.place)===o.stationId(o.openAccordionForPlace)),_(4),h("place",i==null?null:i.place),_(),m(i.distributionList.length?5:-1),_(2),h("distributionList",i.distributionList)("selectedRow",o.selectedRow),_(),m(!(i==null||i.distributionList==null)&&i.distributionList.length?-1:8);}}function no(e,n){if(e&1){let i=w();l(0,"sbb-accordion",14)(1,"sbb-expansion-panel",18)(2,"sbb-expansion-panel-header")(3,"span",19)(4,"span"),s(5,3),r(),x(6),G(7,"async"),G(8,"async"),r(),P(9,Jn,1,0,"sbb-transparent-button",20),G(10,"async"),r(),l(11,"sbb-expansion-panel-content")(12,"div",21)(13,"div",22),s(14,4),r(),l(15,"app-push-config-list",23),G(16,"async"),A("rowSelected",function(o){U(i);let a=g();return H(a.rowSelected(o));}),r(),l(17,"sbb-transparent-button",24),A("click",function(){U(i);let o=g();return H(o.createCatchAll());}),I(18),s(19,5),b(),r()()()(),k(20,to,12,6,"sbb-expansion-panel",18,Kn),G(22,"async"),r();}if(e&2){let i,t,o=g();_(),h("expanded",!0),_(5),q(" ",((i=y(7,5,o.user$))==null||i.activePartner==null?null:i.activePartner.name)||((i=y(8,7,o.user$))==null||i.activePartner==null?null:i.activePartner.partnerId)," "),_(3),m((t=y(10,9,o.globalConfigs$))!=null&&t.length?9:-1),_(6),h("distributionList",y(16,11,o.globalConfigs$)||ve(15,Je))("selectedRow",o.selectedRow),_(5),B(y(22,13,o.locationConfig$));}}function oo(e,n){if(e&1){let i=w();l(0,"sbb-secondary-button",30),A("click",function(){U(i);let o=g();return H(o.createForPlace(null));}),I(1),s(2,8),b(),r();}}function ro(e,n){if(e&1){let i=w();l(0,"app-push-editor",31,1),G(2,"async"),A("changedServiceConfig",function(o){U(i);let a=g();return H(a.saveServiceConfig(o));})("deletedServiceConfig",function(o){U(i);let a=g();return H(a.deleteServiceConfig(o));}),r();}if(e&2){let i=g();h("value",i.editorValue)("places",y(2,4,i.places$)||ve(6,Je))("mode",i.editorMode)("createWithoutPlaceField",i.createWithoutPlaceField);}}var qe=(()=>{class e{constructor(i,t,o){this.store=i,this.cd=t,this.scrollService=o,this.layoutMode=Te.MAIN,this.createWithoutPlaceField=!1,this.DISTRIBUTION_DEFAULT={schwellwert:120},this.SERVICE_CONFIG_DEFAULT={verteilerListe:[],aktiv:!0,typ:Ge.PushEta},this.globalConfigs$=i.pipe(N(en)),this.locationConfig$=i.pipe(N(tn)),this.loading$=i.pipe(N(jt)),this.errors$=i.pipe(N(Kt)),this.user$=i.pipe(N(xi)),this.places$=i.pipe(N(nn));}ngOnInit(){this.store.dispatch(ue()),this.store.dispatch(Se());}rowSelected(i){this.layoutMode=Te.NARROW_DETAIL,this.editorMode="edit",this.selectedRow=i,this.editorValue=i,this.scrollService.scrollParentToTop(document.getElementsByTagName("app-push-editor").item(0));}closeDetail(){this.layoutMode=Te.MAIN,setTimeout(()=>{this.selectedRow=null,this.editorValue=null,this.editorMode="edit",this.cd.markForCheck();},300);}createForPlace(i){this.selectedRow={distribution:d({},this.DISTRIBUTION_DEFAULT),serviceConfig:d({ort:i||void 0},this.SERVICE_CONFIG_DEFAULT)},this.editorValue=this.selectedRow,this.editorMode="create",this.createWithoutPlaceField=!!i,this.layoutMode=Te.NARROW_DETAIL;}
5createCatchAll(){this.createForPlace(null),this.createWithoutPlaceField=!0;}deleteServiceConfig(i){this.store.dispatch(pe({distributionAndServiceConfig:i})),this.closeDetail();}saveServiceConfig(i){i.serviceConfig.id?(this.store.dispatch(ne({serviceConfig:i.serviceConfig})),this.selectedRow=i):(this.store.dispatch(te({serviceConfig:S(d({},i.serviceConfig),{id:$()})})),this.openAccordionForPlace=i.serviceConfig.ort,this.closeDetail());}deleteGlobalDistributionList(){this.globalConfigs$.pipe(Ci()).subscribe(i=>this.store.dispatch(oe({configs:i})));}deletePlaceDistributionList(i,t){this.store.dispatch(oe({configs:i,place:t}));}stationId(i){return ge.stationId(i);}static{this.ɵfac=function(t){return new(t||e)(le(De),le(Li),le(kt));};}static{this.ɵcmp=W({type:e,selectors:[["app-push-view"]],viewQuery:function(t,o){if(t&1&&Ii(jn,5),t&2){let a;bi(a=Ri())&&(o.pushEditor=a.first);}},decls:16,vars:15,consts:()=>{let i;i="ETA-Abweichung";let t;t="Alle Empf\xE4nger entfernen";let o;o="Alle Benachrichtigungen f\xFCr";let a;a=" Sie erhalten Meldungen zu allen Sendungen, bei denen diese ZKK als Absender, Empf\xE4nger oder Rechnungsempf\xE4nger eingetragen ist. ";let R;R="Empf\xE4nger/in hinzuf\xFCgen";let u;u="Standort entfernen";let C;C="Alle Empf\xE4nger entfernen";let p;p="Empf\xE4nger/in hinzuf\xFCgen";let c;c="Sie haben aktuell keine Benachrichtigungen f\xFCr diesen Standort erfasst.";let E;return E="Weiteren Standort hinzuf\xFCgen",[["panel",""],["pushEditor",""],i,o,a,R,p,c,E,[3,"asideClosed","mode","showAsideClose"],["main","",1,"col-padding-top"],[1,"main-header"],[3,"size"],["readOnly","","type","error",1,"m-inner-v"],["multi",""],["iconName","plus-small",1,"m-innerSmall-t","m-innerSmall-b"],["aside","",1,"col-padding"],[3,"value","places","mode","createWithoutPlaceField"],[3,"expanded"],[1,"content-width"],["iconName","trash-small","sbb-tooltip",t],[1,"cd-flex","cd-flex-column"],[1,"info-text"],[3,"rowSelected","distributionList","selectedRow"],["iconName","plus-small",1,"cd-flex-align-self-start","m-gutter-t",3,"click"],["iconName","trash-small","sbb-tooltip",t,3,"click"],[3,"place"],["iconName","trash-small","sbb-tooltip",u],["iconName","plus-small","sbb-tooltip",C,3,"click"],["iconName","trash-small","sbb-tooltip",u,3,"click"],["iconName","plus-small",1,"m-innerSmall-t","m-innerSmall-b",3,"click"],[3,"changedServiceConfig","deletedServiceConfig","value","places","mode","createWithoutPlaceField"]];},template:function(t,o){t&1&&(l(0,"app-column-layout",9),A("asideClosed",function(){return o.closeDetail();}),l(1,"div",10)(2,"div",11)(3,"app-title-with-partner"),s(4,2),r()(),P(5,Qn,1,1,"sbb-loading-indicator",12),G(6,"async"),k(7,Zn,2,2,"sbb-notification",13,fe),G(9,"async"),P(10,no,23,16,"sbb-accordion",14),G(11,"async"),P(12,oo,3,0,"sbb-secondary-button",15),G(13,"async"),r(),l(14,"div",16),P(15,ro,3,7,"app-push-editor",17),r()()),t&2&&(h("mode",o.layoutMode)("showAsideClose",!0),_(5),m(y(6,6,o.loading$)?5:-1),_(2),B(y(9,8,o.errors$)||ve(14,Je)),_(3),m(y(11,10,o.loading$)===!1?10:-1),_(2),m(y(13,12,o.loading$)===!1?12:-1),_(3),m(o.selectedRow||o.editorMode==="create"?15:-1));},dependencies:[Tt,Lt,wi,we,Wt,xe,bt,Rt,Nt,Fe,Qi,Ve,Zi,de,Mi],styles:[`.info-text[_ngcontent-%COMP%]{margin-bottom:24px;max-width:500px}.add-distributor-button[_ngcontent-%COMP%], .add-place-button[_ngcontent-%COMP%]{margin-top:24px}.add-place-button[_ngcontent-%COMP%]{margin-bottom:40px}.content-width[_ngcontent-%COMP%]{width:calc(var(--content-width) * 1px)}sbb-loading-indicator[_ngcontent-%COMP%]{display:flex;justify-content:center}
6/*# sourceMappingURL=push-view.component-I73QWPQC.css.map */`],changeDetection:0});}}return e;})();var lo={requiredRights:[yi.CargoDigitalPush,Gi.CdKundeBahntransport],redirectNoRights:"/push/info"},_o=[{path:"info",component:Bt,canActivate:[]},{path:"",component:qe,canActivate:[tt,gt,zt],data:lo}],on=(()=>{class e{static{this.ɵfac=function(t){return new(t||e)();};}static{this.ɵmod=Ue({type:e});}static{this.ɵinj=Le({imports:[Ye.forChild(_o),Ye]});}}return e;})();function rn(e,n=!0){let i=$(),t=e.length>0?e[0].ort:null,o=a=>"Benachrichtigung f\xFCr Standort gel\xF6scht: "+a+"";return zi({notification:Xi.createCDNotification({id:i,type:"info",title:t?o(t?`${t.name} (${t.uicNummer})`:void 0):"Benachrichtigung f\xFCr alle Empf\xE4nger gel\xF6scht.",showInNotificationCenter:!1,directActions:[{label:"Wiederherstellen",actions:e.map(a=>n?te({serviceConfig:S(d({},a),{id:$()})}):ne({serviceConfig:a}))}]})});}var ln=(()=>{class e{constructor(i,t,o,a,R){this.actions$=i,this.store=t,this.userServicesApi=o,this.masterDataApi=a,this.errorService=R,this.loadServiceConfigs$=J(()=>this.actions$.pipe(ee(ue.type),ie(()=>[this.store.pipe(N(Qe)),this.store.pipe(N(qt)),this.store.pipe(N(ae))]),V(([,u,C,p])=>C||u>1?D(Ne({result:[]})):this.userServicesApi.getServiceConfigurations(p.toString()).pipe(z(c=>c||[]),z(c=>Ne({result:c.filter(E=>E.typ===Ge.PushEta).map(E=>E)})),Q(c=>(console.warn("push config load failed",c),D(Xe({error:Z(c)})))))))),this.loadPlaces$=J(()=>this.actions$.pipe(ee(Se.type),ie(()=>[this.store.pipe(N(Ze)),this.store.pipe(N(Yt))]),V(([,u,C])=>C||u>1?D(Ae({result:void 0})):this.masterDataApi.getOrte("85",void 0,void 0,it.Betriebspunkt).pipe(z(p=>Ae({result:p})),Q(p=>D(ze({error:Z(p)}
6))))))),this.createServiceConfig$=J(()=>this.actions$.pipe(ee(te),ie(()=>this.store.pipe(N(ae))),V(([u,C])=>{let p=u.serviceConfig.id,c={operationName:"Konfiguration konnte nicht erstellt werden.",id:$(),startedTs:new Date().toISOString()};return this.userServicesApi.createServiceConfiguration(C.toString(),S(d({},u.serviceConfig),{id:void 0})).pipe(V(E=>D(be({payload:c}),We({serviceConfig:E,tempId:p}))),Pe(Ie({payload:c})),Q(E=>D(Re({request:c,error:this.errorService.getAutoSaveError(E)}),ke({error:Z(E),serviceConfig:u.serviceConfig}))));}))),this.updateServiceConfig$=J(()=>this.actions$.pipe(ee(ne),ie(()=>this.store.pipe(N(ae))),V(([u,C])=>{let p={operationName:"Konfiguration konnte nicht aktualisiert werden.",id:$(),startedTs:new Date().toISOString()};return this.userServicesApi.updateServiceConfiguration(C.toString(),u.serviceConfig.id,u.serviceConfig).pipe(z(()=>be({payload:p})),Pe(Ie({payload:p})),Q(c=>D(Re({request:p,error:this.errorService.getAutoSaveError(c)}),Be({error:Z(c),oldServiceConfig:u.serviceConfig}))));}))),this.deleteDistributionList$=J(()=>this.actions$.pipe(ee(pe),ie(()=>this.store.pipe(N(ae))),V(([u,C])=>{let p={operationName:"Konfiguration konnte nicht gel\xF6scht werden.",id:$(),startedTs:new Date().toISOString()},c=S(d({},u.distributionAndServiceConfig.serviceConfig),{verteilerListe:(u.distributionAndServiceConfig.serviceConfig.verteilerListe||[]).filter(K=>K!==u.distributionAndServiceConfig.distribution)}),E=c.verteilerListe.length===0,T=rn([u.distributionAndServiceConfig.serviceConfig],E);return(E?this.userServicesApi.deleteServiceConfiguration(C.toString(),c.id):this.userServicesApi.updateServiceConfiguration(C.toString(),c.id,c)).pipe(z(()=>be({payload:p})),Pe(Ie({payload:p}),T),Q(K=>D(Re({request:p,error:this.errorService.getAutoSaveError(K)}),Oe({error:Z(K),serviceConfig:u.distributionAndServiceConfig.serviceConfig}))));}))),this.deleteAll$=J(()=>this.actions$.pipe(ee(oe),ie(()=>this.store.pipe(N(ae))),V(([u,C])=>{let p={operationName:"Konfigurationen konnten nicht gel\xF6scht werden.",id:$(),startedTs:new Date().toISOString()},c=new Set(u.configs?.map(E=>E.serviceConfig.id));return Pi(D(...Array.from(c)).pipe(V(E=>this.userServicesApi.deleteServiceConfiguration(C.toString(),E).pipe(V(()=>pi),Q(T=>D(Re({request:p,error:this.errorService.getAutoSaveError(T)}),Oe({error:Z(T),serviceConfig:u.configs?.find(Ee=>Ee.serviceConfig.id===E).serviceConfig}))))),Pe(Ie({payload:p}),rn(Array.from(c).map(E=>u.configs?.find(T=>T.serviceConfig.id===E).serviceConfig)))),D(be({payload:p})));})));}static{this.ɵfac=function(t){return new(t||e)(re(Wi),re(De),re(Ji),re(et),re(nt));};}static{this.ɵprov=gi({token:e,factory:e.ɵfac});}}return e;})();var _n={pushConfigs:[],pushConfigsLoading:{loading:0,loaded:!1,error:null},places:[],placesLoading:{loading:0,loaded:!1,error:null}},an=Fi(_n,L(ji,()=>
6_n),L(ue,e=>S(d({},e),{pushConfigsLoading:S(d({},e.pushConfigsLoading),{loading:e.pushConfigsLoading.loading+1})})),L(Ne,(e,{result:n})=>S(d({},e),{pushConfigsLoading:S(d({},e.pushConfigsLoading),{loading:e.pushConfigsLoading.loading-1,loaded:e.pushConfigsLoading.loaded||e.pushConfigsLoading.loading===1}),pushConfigs:[...e.pushConfigs,...n]})),L(Xe,(e,{error:n})=>S(d({},e),{pushConfigsLoading:S(d({},e.pushConfigsLoading),{loading:e.pushConfigsLoading.loading-1,error:n})})),L(Se,e=>S(d({},e),{placesLoading:S(d({},e.placesLoading),{loading:e.placesLoading.loading+1})})),L(Ae,(e,{result:n})=>S(d({},e),{placesLoading:S(d({},e.placesLoading),{loading:e.placesLoading.loading-1,loaded:e.placesLoading.loaded||e.placesLoading.loading===1}),places:n||e.places})),L(ze,(e,{error:n})=>S(d({},e),{placesLoading:S(d({},e.placesLoading),{loading:e.placesLoading.loading-1,loaded:e.placesLoading.loaded||e.placesLoading.loading===1,error:n})})),L(te,(e,{serviceConfig:n})=>{let i=e.pushConfigs.filter(t=>!t.ort||!n.ort||!ge.isEqualsToBetriebspunkt(t.ort,n.ort)||t.verteilerListe&&t.verteilerListe.length>0);return S(d({},e),{pushConfigs:[...i,n]});}),L(We,(e,{serviceConfig:n,tempId:i})=>S(d({},e),{pushConfigs:Ce(e.pushConfigs,n,t=>t.id===i)})),L(ke,(e,{serviceConfig:n})=>S(d({},e),{pushConfigs:[...e.pushConfigs.filter(i=>i.id!==n.id)]})),L(ne,(e,{serviceConfig:n})=>S(d({},e),{pushConfigs:Ce(e.pushConfigs,n,i=>i.id===n.id)})),L(Be,(e,{oldServiceConfig:n})=>S(d({},e),{pushConfigs:Ce(e.pushConfigs,n,i=>i.id===n.id)})),L(pe,(e,{distributionAndServiceConfig:n})=>{let i=S(d({},n.serviceConfig),{verteilerListe:[...(n.serviceConfig.verteilerListe||[]).filter(t=>t!==n.distribution)]});return S(d({},e),{pushConfigs:[...e.pushConfigs.filter(t=>t.id!==n.serviceConfig.id),...(i.verteilerListe&&i.verteilerListe.length?[i]:[S(d({},i),{id:$()})])]});}),L(Oe,(e,{serviceConfig:n})=>S(d({},e),{pushConfigs:Ce(e.pushConfigs,n,i=>i.id===n.id)})),L(oe,(e,{configs:n,place:i})=>{let t=new Set(n?.map(o=>o.serviceConfig.id));return S(d({},e),{pushConfigs:[...e.pushConfigs.filter(o=>!t.has(o.id)&&(!i||!o.ort||!ge.isEqualsToBetriebspunkt(i,o.ort)))]});}));var ml=(()=>{class e{static{this.ɵfac=function(t){return new(t||e)();};}static{this.ɵmod=Ue({type:e});}static{this.ɵinj=Le({imports:[Ui,Ot,Pt,on,ye,$i.forFeature("pushStore",an),ki.forFeature([ln]),xe,de,qe]});}}return e;})();export{ml as PushModule};/**i18n:3367995054da526b97249574a78bf01dc857fcb3c219167850bcb9740111f46a*///# sourceMappingURL=push.module-PPYSRQDJ.js.map

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.