vendor: 6,822 bytes, line 1
1import {g}from'./chunk-x48iD-I9.js';import {T}from'./chunk-BiXw13S6.js';import {N as Nt,X as Xt,J as J$1}from'./chunk-DM2wBc6t.js';import {m,b5 as dH,aR as Lc,cy as I6,cz as ew,cA as ce,b6 as pt,H as Dr,cB as lr,aS as $o,J,i as it,ar as w,e as Pt,I as z,cC as C,cD as B,be as fz,bd as cve,cE as uz,aD as lve,aW as uve,$ as $s,aT as Dve,cF as Eae,cr as pw,cG as A6,Z as Zd,K as Fx,M as jx,Q as Kd,R as On$1,av as tH,T as yn$1,U as m5,cH as Vh,aw as y5,V as Y,X as T$1,a0 as ge,a1 as Qe,af as le,ab as Re,a2 as A,ax as X,cu as ah,a3 as Ro,a4 as ql,a7 as _,a6 as C$1,a8 as Je,aj as qe,ac as We,aQ as _t,cw as ch,ai as Rt,cI as tn,a9 as re,al as Gl,ah as xh,cJ as m0,ae as so,ag as ao,bg as v0,bh as vh,ay as mh,aY as vF,bB as ZE,aA as gh,cK as sj,aE as dj}from'./chunk-DulekMqX.js';import'./chunk-DFZIgAn7.js';var Cn=B((pt,mt)=>{"use strict";(function(t,a){typeof pt=="object"&&typeof mt<"u"?mt.exports=a():typeof define=="function"&&define.amd?define(a):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=a();})(pt,function(){"use strict";var t=1e3,a=6e4,n=36e5,d="millisecond",m="second",S="minute",A="hour",R="day",Z="week",B="month",_t="quarter",U="year",Y="date",Ct="Invalid Date",hn=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,gn=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Tn={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(c){var o=["th","st","nd","rd"],e=c%100;return "["+c+(o[(e-20)%10]||o[e]||o[0])+"]"}},rt=function(c,o,e){var r=String(c);return !r||r.length>=o?c:""+Array(o+1-r.length).join(e)+c},xn={s:rt,z:function(c){var o=-c.utcOffset(),e=Math.abs(o),r=Math.floor(e/60),i=e%60;return (o<=0?"+":"-")+rt(r,2,"0")+":"+rt(i,2,"0")},m:function c(o,e){if(o.date()<e.date())return -c(e,o);var r=12*(e.year()-o.year())+(e.month()-o.month()),i=o.clone().add(r,B),u=e-i<0,p=o.clone().add(r+(u?-1:1),B);return +(-(r+(e-i)/(u?i-p:p-i))||0)},a:function(c){return c<0?Math.ceil(c)||0:Math.floor(c)},p:function(c){return {M:B,y:U,w:Z,d:R,D:Y,h:A,m:S,s:m,ms:d,Q:_t}[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(c){return c===void 0}},Q="en",j={};j[Q]=Tn;var ft="$isDayjsObject",at=function(c){return c instanceof tt||!(!c||!c[ft])},K=function c(o,e,r){var i;if(!o)return Q;if(typeof o=="string"){var u=o.toLowerCase();j[u]&&(i=u),e&&(j[u]=e,i=u);var p=o.split("-");if(!i&&p.length>1)return c(p[0])}else {var x=o.name;j[x]=o,i=x;}return !r&&i&&(Q=i),i||!r&&Q},E=function(c,o){if(at(c))return c.clone();var e=typeof o=="object"?o:{};return e.date=c,e.args=arguments,new tt(e)},g=xn;g.l=K,g.i=at,g.w=function(c,o){return E(c,{locale:o.$L,utc:o.$u,x:o.$x,$offset:o.$offset})};var tt=(function(){function c(e){this.$L=K(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[ft]=!0;}var o=c.prototype;return o.parse=function(e){this.$d=(function(r){var i=r.date,u=r.utc;if(i===null)return new Date(NaN);if(g.u(i))return new Date;if(i instanceof Date)return new Date(i);if(typeof i=="string"&&!/Z$/i.test(i)){var p=i.match(hn);if(p){var x=p[2]-1||0,O=(p[7]||"0").substring(0,3);return u?new Date(Date.UTC(p[1],x,p[3]||1,p[4]||0,p[5]||0,p[6]||0,O)):new Date(p[1],x,p[3]||1,p[4]||0,p[5]||0,p[6]||0,O)}}return new Date(i)})(e),this.init();},o.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds();},o.$utils=function(){return g},o.isValid=function(){return this.$d.toString()!==Ct},o.isSame=function(e,r){var i=E(e);return this.startOf(r)<=i&&i<=this.endOf(r)},o.isAfter=function(e,r){return E(e)<this.startOf(r)},o.isBefore=function(e,r){return this.endOf(r)<E(e)},o.$g=function(e,r,i){return g.u(e)?this[r]:this.set(i,e)},o.unix=function(){return Math.floor(this.valueOf()/1e3)},o.valueOf=function(){return this.$d.getTime()},o.startOf=function(e,r){var i=this,u=!!g.u(r)||r,p=g.p(e),x=function(z,M){var L=g.w(i.$u?Date.UTC(i.$y,M,z):new Date(i.$y,M,z),i);return u?L:L.endOf(R)},O=function(z,M){return g.w(i.toDate()[z].apply(i.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(M)),i)},y=this.$W,D=this.$M,P=this.$D,G="set"+(this.$u?"UTC":"");switch(p){case U:return u?x(1,0):x(31,11);case B:return u?x(1,D):x(0,D+1);case Z:var k=this.$locale().weekStart||0,X=(y<k?y+7:y)-k;return x(u?P-X:P+(6-X),D);case R:case Y:return O(G+"Hours",0);case A:return O(G+"Minutes",1);case S:return O(G+"Seconds",2);case m:return O(G+"Milliseconds",3);default:return this.clone()}},o.endOf=function(e){return this.startOf(e,!1)},o.$set=function(e,r){var i,u=g.p(e),p="set"+(this.$u?"UTC":""),x=(i={},i[R]=p+"Date",i[Y]=p+"Date",i[B]=p+"Month",i[U]=p+"FullYear",i[A]=p+"Hours",i[S]=p+"Minutes",i[m]=p+"Seconds",i[d]=p+"Milliseconds",i)[u],O=u===R?this.$D+(r-this.$W):r;if(u===B||u===U){var y=this.clone().set(Y,1);y.$d[x](O),y.init(),this.$d=y.set(Y,Math.min(this.$D,y.daysInMonth())).$d;}else x&&this.$d[x](O);return this.init(),this},o.set=function(e,r){return this.clone().$set(e,r)},o.get=function(e){return this[g.p(e)]()},o.add=function(e,r){var i,u=this;e=Number(e);var p=g.p(r),x=function(D){var P=E(u);return g.w(P.date(P.date()+Math.round(D*e)),u)};if(p===B)return this.set(B,this.$M+e);if(p===U)return this.set(U,this.$y+e);if(p===R)return x(1);if(p===Z)return x(7);var O=(i={},i[S]=a,i[A]=n,i[m]=t,i)[p]||1,y=this.$d.getTime()+e*O;return g.w(y,this)},o.subtract=function(e,r){return this.add(-1*e,r)},o.format=function(e){var r=this,i=this.$locale();if(!this.isValid())return i.invalidDate||Ct;var u=e||"YYYY-MM-DDTHH:mm:ssZ",p=g.z(this),x=this.$H,O=this.$m,y=this.$M,D=i.weekdays,P=i.months,G=i.meridiem,k=function(M,L,q,nt){return M&&(M[L]||M(r,u))||q[L].slice(0,nt)},X=function(M){return g.s(x%12||12,M,"0")},z=G||function(M,L,q){var nt=M<12?"AM":"PM";return q?nt.toLowerCase():nt};return u.replace(gn,function(M,L){return L||(function(q){switch(q){case "YY":return String(r.$y).slice(-2);case "YYYY":return g.s(r.$y,4,"0");case "M":return y+1;case "MM":return g.s(y+1,2,"0");case "MMM":return k(i.monthsShort,y,P,3);case "MMMM":return k(P,y);case "D":return r.$D;case "DD":return g.s(r.$D,2,"0");case "d":return String(r.$W);case "dd":return k(i.weekdaysMin,r.$W,D,2);case "ddd":return k(i.weekdaysShort,r.$W,D,3);case "dddd":return D[r.$W];case "H":return String(x);case "HH":return g.s(x,2,"0");case "h":return X(1);case "hh":return X(2);case "a":return z(x,O,!0);case "A":return z(x,O,!1);case "m":return String(O);case "mm":return g.s(O,2,"0");case "s":return String(r.$s);case "ss":return g.s(r.$s,2,"0");case "SSS":return g.s(r.$ms,3,"0");case "Z":return p}return null})(M)||p.replace(":","")})}
1,o.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},o.diff=function(e,r,i){var u,p=this,x=g.p(r),O=E(e),y=(O.utcOffset()-this.utcOffset())*a,D=this-O,P=function(){return g.m(p,O)};switch(x){case U:u=P()/12;break;case B:u=P();break;case _t:u=P()/3;break;case Z:u=(D-y)/6048e5;break;case R:u=(D-y)/864e5;break;case A:u=D/n;break;case S:u=D/a;break;case m:u=D/t;break;default:u=D;}return i?u:g.a(u)},o.daysInMonth=function(){return this.endOf(B).$D},o.$locale=function(){return j[this.$L]},o.locale=function(e,r){if(!e)return this.$L;var i=this.clone(),u=K(e,r,!0);return u&&(i.$L=u),i},o.clone=function(){return g.w(this.$d,this)},o.toDate=function(){return new Date(this.valueOf())},o.toJSON=function(){return this.isValid()?this.toISOString():null},o.toISOString=function(){return this.$d.toISOString()},o.toString=function(){return this.$d.toUTCString()},c})(),ht=tt.prototype;return E.prototype=ht,[["$ms",d],["$s",m],["$m",S],["$H",A],["$W",R],["$M",B],["$y",U],["$D",Y]].forEach(function(c){ht[c[1]]=function(o){return this.$g(o,c[0],c[1])};}),E.extend=function(c,o){return c.$i||(c(o,tt,E),c.$i=!0),E},E.locale=K,E.isDayjs=at,E.unix=function(c){return E(1e3*c)},E.en=j[Q],E.Ls=j,E.p={},E});});function mn(){return t=>{let a=t.value;if(!a)return null;let n=new Date().getFullYear()-4;return Number(a.substring(0,4))<n?{minDate:true}:null}}function _n(){return t=>{let a=t.value;if(!a)return null;let n=new Date().getTime();return new Date(a).getTime()>n?{maxDate:true}:null}}var fn=C(Cn());var On=(t,a,n,d,m)=>[t,a,n,d,m],vn=t=>({searchTerm:t});function En(t,a){if(t&1&&(ge(0,"mjm-content-page-header",8),Re(1,"translate"),Re(2,"translate")),t&2){let n=a,d=re();_("a11yFirstElementId",d.componentUUID)("subTitle",d.joinAriaLabelsWithSpace(n.stammdaten.organisationsname1,n.stammdaten.organisationsname2))("text",We(1,4,"PAGES.CONTRIBUTIONS.CONTENT.TITLE_TEXT"))("title",We(2,6,"PAGES.CONTRIBUTIONS.CONTENT.TITLE"));}}function yn(t,a){t&1&&ge(0,"mjz-loading-modal",20),t&2&&_("title","PAGES.CONTRIBUTIONS.CONTENT.LOADING_DATA");}function In(t,a){t&1&&ge(0,"div",32);}function Nn(t,a){if(t&1&&(T$1(0,"div",31),le(1),Re(2,"translate"),A(),Qe(3,In,1,0,"div",32)),t&2){let n=re(3);C$1(),qe(We(2,2,"PAGES.CONTRIBUTIONS.CONTENT.LAUFD_SALDO")),C$1(2),Je(n.displaySaldoInfo?3:-1);}}function Dn(t,a){if(t&1&&(le(0),Re(1,"currency")),t&2){let n=re(2).$implicit;Rt(" ",dj(1,1,n.beitraege,"EUR","symbol")," ");}}function $n(t,a){if(t&1&&(le(0),Re(1,"currency")),t&2){let n=re(2).$implicit;Rt(" ",dj(1,1,n.zahlungen,"EUR","symbol")," ");}}function Mn(t,a){if(t&1&&(le(0),Re(1,"currency")),t&2){let n=re(2).$implicit;Rt(" ",dj(1,1,n.gebuehren,"EUR","symbol")," ");}}function An(t,a){if(t&1&&(T$1(0,"div",42),ge(1,"mjz-info-popup-icon",43),Re(2,"translate"),A()),t&2){let n=re(4).$implicit,d=re(3);C$1(),_("id","contributions_mobile_saldo_info")("text",We(2,2,d.checkInitialSaldo(n)));}}function Pn(t,a){if(t&1&&Qe(0,An,3,4,"div",42),t&2){let n=re(3).$index;Je(n===0?0:-1);}}function wn(t,a){if(t&1&&(T$1(0,"div",41),le(1),Re(2,"currency"),A(),Qe(3,Pn,1,1)),t&2){let n=re(2).$implicit,d=re(3);C$1(),Rt(" ",dj(2,2,n.laufendesSaldo,"EUR","symbol")," "),C$1(2),Je(d.displaySaldoInfo?3:-1);}}function Bn(t,a){if(t&1&&(T$1(0,"a",35)(1,"div",36),le(2),A(),T$1(3,"div",37),le(4),Re(5,"date"),A(),T$1(6,"div",27),Qe(7,Dn,2,5)(8,$n,2,5)(9,Mn,2,5),A(),T$1(10,"div",38),le(11),Re(12,"currency"),A(),T$1(13,"div",39),le(14),Re(15,"currency"),A(),T$1(16,"div",40),le(17),Re(18,"currency"),A(),Qe(19,wn,4,6),A()),t&2){let n=re(),d=n.$implicit,m=n.$index,S=re(3);_t("no-saldo",!S.displaySaldo)("no-saldo-info",!S.displaySaldoInfo),_("id","contributions__row__"+m)("routerLink",sj(28,On,S.routes.root,S.routes.finance,S.routes.financeContributionsOverview,S.routes.financeContributionsOverviewDetails,d.uuid)),C$1(2),qe(d.bezeichnung),C$1(2),Rt(" ",Gl(5,13,d.nettoFaelligkeit,"dd.MM.yyyy")," "),C$1(3),Je(d.beitraege?7:d.zahlungen?8:d.gebuehren?9:-1),C$1(4),Rt(" ",dj(12,16,d.beitraege,"EUR","symbol")," "),C$1(3),Rt(" ",dj(15,20,d.zahlungen,"EUR","symbol")," "),C$1(3),Rt(" ",dj(18,24,d.gebuehren,"EUR","symbol")," "),C$1(2),Je(S.displaySaldo?19:-1);}}function Rn(t,a){if(t&1&&(le(0),Re(1,"currency")),t&2){let n=re(2).$implicit;Rt(" ",dj(1,1,n.beitraege,"EUR","symbol")," ");}}function Un(t,a){if(t&1&&(le(0),Re(1,"currency")),t&2){let n=re(2).$implicit;Rt(" ",dj(1,1,n.zahlungen,"EUR","symbol")," ");}}function Ln(t,a){if(t&1&&(le(0),Re(1,"currency")),t&2){let n=re(2).$implicit;Rt(" ",dj(1,1,n.gebuehren,"EUR","symbol")," ");}}function Fn(t,a){if(t&1&&(T$1(0,"div",42),ge(1,"mjz-info-popup-icon",43),Re(2,"translate"),A()),t&2){let n=re(4).$implicit,d=re(3);C$1(),_("id","contributions_mobile__info")("text",We(2,2,d.checkInitialSaldo(n)));}}function jn(t,a){if(t&1&&Qe(0,Fn,3,4,"div",42),t&2){let n=re(3).$index;Je(n===0?0:-1);}}function kn(t,a){if(t&1&&(T$1(0,"div",41),le(1),Re(2,"currency"),A(),Qe(3,jn,1,1)),t&2){let n=re(2).$implicit,d=re(3);C$1(),Rt(" ",dj(2,2,n.laufendesSaldo,"EUR","symbol")," "),C$1(2),Je(d.displaySaldoInfo?3:-1);}}function zn(t,a){if(t&1&&(T$1(0,"div",44)(1,"div",36),le(2),A(),T$1(3,"div",37),le(4),Re(5,"date"),A(),T$1(6,"div",27),Qe(7,Rn,2,5)(8,Un,2,5)(9,Ln,2,5),A(),T$1(10,"div",38),le(11),Re(12,"currency"),A(),T$1(13,"div",39),le(14),Re(15,"currency"),A(),T$1(16,"div",40),le(17),Re(18,"currency"),A(),Qe(19,kn,4,6),A()),t&2){let n=re().$implicit,d=re(3);_t("no-saldo",!d.displaySaldo)("no-saldo-info",!d.displaySaldoInfo),C$1(2),qe(n.bezeichnung),C$1(2),Rt(" ",Gl(5,11,n.nettoFaelligkeit,"dd.MM.yyyy")," "),C$1(3),Je(n.beitraege?7:n.zahlungen?8:n.gebuehren?9:-1),C$1(4),Rt(" ",dj(12,14,n.beitraege,"EUR","symbol")," "),C$1(3),Rt(" ",dj(15,18,n.zahlungen,"EUR","symbol")," "),C$1(3),Rt(" ",dj(18,22,n.gebuehren,"EUR","symbol")," "),C$1(2),Je(d.displaySaldo?19:-1);}}function Yn(t,a){if(t&1&&Qe(0,Bn,20,34,"a",33)(1,zn,20,26,"div",34),t&2){let n=re(3);Je(n.isMobile()?0:1);}}function Gn(t,a){if(t&1&&(T$1(0,"div",22)(1,"div",24)(2,"div",25),le(3),Re(4,"translate"),A(),T$1(5,"div",26),le(6),Re(7,"translate"),A(),T$1(8,"div",27),le(9),Re(10,"translate"),Re(11,"translate"),Re(12,"translate"),A(),T$1(13,"div",28),le(14),Re(15,"translate"),A(),T$1(16,"div",29),le(17),Re(18,"translate"),A(),T$1(19,"div",30),le(20),Re(21,"translate"),A(),Qe(22,Nn,4,4),A(),mh(23,Yn,2,1,null,null,vF),A()),t&2){let n=re(),d=re();C$1(),_t("no-saldo",!d.displaySaldo)("no-saldo-info",!d.displaySaldoInfo),C$1(2),qe(We(4,13,"PAGES.CONTRIBUTIONS.CONTENT.DESIGNATION")),C$1(3),Rt(" ",We(7,15,"PAGES.CONTRIBUTIONS.CONTENT.NET_MATURITY")," "),C$1(3),ZE(" ",We(10,17,"PAGES.CONTRIBUTIONS.CONTENT.CONTRIBUTION")," / ",We(11,19,"PAGES.CONTRIBUTIONS.CONTENT.PAYMENT")," / ",We(12,21,"PAGES.CONTRIBUTIONS.CONTENT.FEES")," "),C$1(5),Rt(" ",We(15,23,"PAGES.CONTRIBUTIONS.CONTENT.CONTRIBUTION")," "),C$1(3),qe(We(18,25,"PAGES.CONTRIBUTIONS.CONTENT.PAYMENT")),C$1(3),qe(We(21,27,"PAGES.CONTRIBUTIONS.CONTENT.FEES")),C$1(2),Je(d.displaySaldo?22:-1),C$1(),gh(n);}}function Hn(t,a){if(t&1&&so(0,23),t&2){re(2);let n=ao(35);_("ngTemplateOutlet",n);}}function Wn(t,a){t&1&&(v0(0),Qe(1,Gn,25,29,"div",22)(2,Hn,1,1,"ng-container",23),vh()),t&2&&(C$1(),Je(a.length>0?1:2));}function Vn(t,a){if(t&1&&(ge(0,"mjz-no-data",45),Re(1,"translate"),Re(2,"translate")),t&2){let n=re();_("image",n.images.noData)("text",We(1,3,"PAGES.CONTRIBUTIONS.CONTENT.ERROR_TEXT"))("title",We(2,5,"PAGES.CONTRIBUTIONS.CONTENT.ERROR_TITLE"));}}function Qn(t,a){if(t&1&&(ge(0,"mjz-no-data",45),Re(1,"translate"),Re(2,"async"),Re(3,"translate")),t&2){let n=re();_("image",n.images.noDataSearch)("text",We(1,3,"GENERAL.CONTENT.NO_DATA_SEARCH_TEXT"))("title",Gl(3,7,"GENERAL.CONTENT.NO_DATA_SEARCH_TITLE",xh(10,vn,We(2,5,n.searchQuery$))));}}function Xn(t,a){if(t&1&&(ge(0,"mjz-no-data",45),Re(1,"translate"),Re(2,"translate")),t&2){let n=re();_("image",n.images.noData)("text",We(1,3,"PAGES.CONTRIBUTIONS.CONTENT.NO_DATA_TEXT"))("title",We(2,5,"PAGES.CONTRIBUTIONS.CONTENT.NO_DATA_TITLE"));}}function qn(t,a){if(t&1&&(ge(0,"mjz-no-data",45),Re(1,"translate"),Re(2,"translate")),t&2){let n=re();_("image",n.images.noData)("text",We(1,3,"PAGES.CONTRIBUTIONS.CONTENT.DATE_REQUIRED_TEXT"))("title",We(2,5,"PAGES.CONTRIBUTIONS.CONTENT.DATE_REQUIRED_TIT
1LE"));}}function Jn(t,a){if(t&1&&so(0,23),t&2){re(2);let n=ao(33);_("ngTemplateOutlet",n);}}function Zn(t,a){if(t&1&&so(0,23),t&2){re(2);let n=ao(27);_("ngTemplateOutlet",n);}}function Kn(t,a){if(t&1&&so(0,23),t&2){re(2);let n=ao(29);_("ngTemplateOutlet",n);}}function te(t,a){if(t&1&&so(0,23),t&2){re(2);let n=ao(31);_("ngTemplateOutlet",n);}}function ne(t,a){if(t&1&&(Qe(0,Jn,1,1,"ng-container",23),Re(1,"async"),m0(2,Zn,1,1,"ng-container",23)(3,Kn,1,1,"ng-container",23)(4,te,1,1,"ng-container",23)),t&2){let n=re();Je(!n.args?.from&&n.contributions().length===0?0:n.loadingError?2:We(1,1,n.searchQuery$)&&n.contributions().length===0?3:4);}}var Se=(()=>{class t extends Nt{constructor(){super(),this.contributionsStateService=m(g),this.toasterService=m(dH),this.translateService=m(Lc),this.contributions=this.contributionsStateService.getContributions,this.isMobile=this.layoutStateService.getIsMobileLayout,this.dateControl=new I6((0, fn.default)(new Date).subtract(13,"month").set("D",1).format("YYYY-MM-DD"),{validators:[ew.required,mn(),_n()]}),this.controlBlur$=new ce,this.loadingError=false,this.isLoading=false,this.displaySaldo=true,this.displaySaldoInfo=true,this.downloadDisabled=true,this.reloadTab$=new ce,this.searchQuery$=new pt(""),Dr(()=>{let n=this.contributions();this.displaySaldoInfo=n[0]?.laufendesSaldo!==n[0]?.beitraege+n[0]?.zahlungen+n[0]?.gebuehren,this.downloadDisabled=n.length<=0;}),Dr(()=>{let n=this.contributionsStateService.getContributionsArgs();this.args=n,this.displaySaldo=!n.searchQuery;});}ngOnInit(){this.errorString$=lr(this.dateControl.statusChanges,this.controlBlur$.asObservable()).pipe($o(this.destroyRef),J(()=>this.dateControl.hasError("required")?"SHARED.VALIDATION.CONTENT.REQUIRED":this.dateControl.hasError("minDate")?"SHARED.VALIDATION.CONTENT.MIN_DATE":this.dateControl.hasError("maxDate")?"SHARED.VALIDATION.CONTENT.MAX_DATE":"")),this.reloadTab$.asObservable().pipe(it(()=>(this.loadingError=false,this.isLoading=true,this.contributionsStateService.loadContributions()))).subscribe({next:()=>{this.isLoading=false,this.loadingError=false,this.changeDetectorRef.markForCheck();},error:()=>{this.loadingError=true,this.isLoading=false,this.changeDetectorRef.markForCheck();}}),this.updateArgsAndReload({from:this.dateControl.value});}downloadBeitraege(){this.contributionsStateService.downloadContributions(this.args).subscribe({next:()=>{this.toasterService.showToast(this.translateService.instant("PAGES.CONTRIBUTIONS.CONTENT.DOWNLOADED"),this.icons.download);},error:()=>{this.toasterService.showErrorToast(this.translateService.instant("TOAST.CONTENT.BEITRAEGE_DOWNLOAD_ERROR"),this.icons.warning);}});}setFrom(n){this.dateControl.valid&&this.updateArgsAndReload({from:n.substring(0,10)});}search(n){this.updateArgsAndReload({searchQuery:n.value});}minDate(){let n=new Date;return n.setFullYear(n.getFullYear()-4,0,1),n.toISOString().substring(0,10)}maxDate(){return new Date().toISOString().substring(0,10)}checkInitialSaldo(n){let d=n.beitraege+n.zahlungen+n.gebuehren;if(d<n.laufendesSaldo)return "PAGES.CONTRIBUTIONS.CONTENT.INFO_SMALLER_THAN_SALDO";if(d>n.laufendesSaldo)return "PAGES.CONTRIBUTIONS.CONTENT.INFO_GREATER_THAN_SALDO"}updateArgsAndReload(n){this.contributionsStateService.setContributionsArgs(w(w({},this.args),n)).pipe(Pt(1)).subscribe({next:()=>this.reloadTab$.next()});}static{this.\u0275fac=function(d){return new(d||t)};}static{this.\u0275cmp=z({type:t,selectors:[["mjm-contributions-container"]],features:[tn([m5,y5]),Y],decls:37,vars:47,consts:[["searchbar",""],["error",""],["noDataSearch",""],["noData",""],["dateRequired",""],["noDataDisplay",""],[3,"scrollEvents"],[3,"containerId","isLoggedIn","isPrivateUser"],[3,"a11yFirstElementId","subTitle","text","title"],["id","contributions-container__grid_content",1,"page-content-grid"],["id","contributions-container__grid_content_row",1,"mjz-hide-md-up"],["id","contributions-container__grid_content_row_col"],[3,"icon","warning"],["id","contributions-container__grid_content_second_row"],["id","contributions-container__grid_content_second_row_col"],[1,"date-container","gap-10","mb-10"],["type","date",1,"date-input",3,"ionBlur","ionInput","clearOnEdit","errorText","fill","formControl","inputmode","label","labelPlacement","max","min","value"],[1,"small","download-button",3,"clicked","buttonColor","disabled","expand","icon","id","type"],[1,"search-container","d-flex","mb-15","gap-20"],[1,"contributions-searchbar",3,"ionInput","color","debounce","placeholder","value"],[3,"title"],[3,"isLoggedIn","isPrivateUser"],[1,"contributions-container"],[3,"ngTemplateOutlet"],[1,"grid-container","header","body-01"],[1,"designation"],[1,"net-maturity","mjz-hide-sm-down"],[1,"contributions-payment-fees","mjz-hide-md-up"],[1,"contribution","mjz-hide-sm-down"],[1,"payment","mjz-hide-sm-down"],[1,"fees","mjz-hide-sm-down"],[1,"laufd-saldo"],[1,"laufd-saldo-info"],[1,"grid-container","body-01",3,"no-saldo","no-saldo-info","id","routerLink"],[1,"grid-container","body-01",3,"no-saldo","no-saldo-info"],[1,"grid-container","body-01",3,"id","routerLink"],["role","gridcell",1,"designation"],["role","gridcell",1,"net-maturity","mjz-hide-sm-down"],["role","gridcell",1,"contribution","mjz-hide-sm-down"],["role","gridcell",1,"payment","mjz-hide-sm-down"],["role","gridcell",1,"fees","mjz-hide-sm-down"],["role","gridcell",1,"laufd-saldo"],["role","gridcell",1,"laufd-saldo-info"],[3,"id","text"],[1,"grid-container","body-01"],[3,"image","text","t
1itle"]],template:function(d,m){if(d&1&&(T$1(0,"ion-content",6),ge(1,"mjm-header",7),Qe(2,En,3,8,"mjm-content-page-header",8),T$1(3,"ion-grid",9)(4,"ion-row",10)(5,"ion-col",11)(6,"mjz-info-box",12)(7,"p"),le(8),Re(9,"translate"),A()()()(),T$1(10,"ion-row",13)(11,"ion-col",14)(12,"div",15)(13,"ion-input",16),Re(14,"async"),Re(15,"translate"),Re(16,"translate"),X("ionBlur",function(){return m.controlBlur$.next()})("ionInput",function(A){return m.setFrom(A.target.value.toString())}),A(),ah(),T$1(17,"mjz-icon-button",17),X("clicked",function(){return m.downloadBeitraege()}),le(18),Re(19,"translate"),A()(),T$1(20,"div",18)(21,"ion-searchbar",19,0),Re(23,"translate"),X("ionInput",function(A){return m.search(A.target)}),A()(),Qe(24,yn,1,1,"mjz-loading-modal",20),Qe(25,Wn,3,1,"ng-container"),Ro(26,Vn,3,7,"ng-template",null,1,ql)(28,Qn,4,12,"ng-template",null,2,ql)(30,Xn,3,7,"ng-template",null,3,ql)(32,qn,3,7,"ng-template",null,4,ql)(34,ne,5,3,"ng-template",null,5,ql),A()()(),ge(36,"mjm-footer",21),A()),d&2){let S,A;_("scrollEvents",true),C$1(),_("containerId",m.componentUUID)("isLoggedIn",m.isLoggedIn())("isPrivateUser",m.isPrivateUser()),C$1(),Je((S=m.businessPartner())?2:-1,S),C$1(4),_("icon",m.icons.info)("warning",true),C$1(2),qe(We(9,35,"PAGES.CONTRIBUTIONS.CONTENT.MOBILE_WARNING")),C$1(4),_t("date-invalid",m.dateControl.invalid),C$
11(),_("clearOnEdit",false)("errorText",We(15,39,We(14,37,m.errorString$)))("fill","outline")("formControl",m.dateControl)("inputmode","numeric")("label",We(16,41,"PAGES.CONTRIBUTIONS.CONTENT.DATE_LABEL"))("labelPlacement","stacked")("max",m.maxDate())("min",m.minDate())("value",m.args?.from),ch(),C$1(4),_("buttonColor",m.colors.ctaContrast)("disabled",m.downloadDisabled)("expand","block")("icon",m.icons.download)("id","finance__download_contributions")("type","secondary"),C$1(),Rt("",We(19,43,"PAGES.CONTRIBUTIONS.CONTENT.DOWNLOAD_RESULT")," "),C$1(3),_("color",m.colors.ctaSecondary)("debounce",1e3)("placeholder",We(23,45,"PAGES.CONTRIBUTIONS.CONTENT.SEARCH"))("value",m.args?.searchQuery),C$1(3),Je(m.isLoading?24:-1),C$1(),Je((A=!m.isLoading&&m.contributions())?25:-1,A),C$1(11),_("isLoggedIn",m.isLoggedIn())("isPrivateUser",m.isPrivateUser());}},dependencies:[fz,cve,uz,lve,uve,$s,Dve,T,Eae,pw,A6,Xt,J$1,Zd,Fx,jx,Kd,On$1,tH,yn$1,m5,Vh,y5],styles:["[_ngcontent-%COMP%]:root{--mjz-default-transition: .3s;--mjz-sticky-header-height: 64px}@media only screen and (min-width:0){[_nghost-%COMP%] .contributions-container[_ngcontent-%COMP%]{background-color:var(--ion-background-color-accent)}[_nghost-%COMP%] .search-button[_ngcontent-%COMP%]{flex-basis:max-content}[_nghost-%COMP%] .download-button[_ngcontent-%COMP%]{flex-basis:max-content;justify-self:end}[_nghost-%COMP%] .date-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] .date-container.date-invalid[_ngcontent-%COMP%]{align-items:start}[_nghost-%COMP%] .grid-container[_ngcontent-%COMP%]{transition:var(--mjz-default-transion);padding:15px;gap:10px;grid-template-columns:2fr 1fr 1fr 25px;width:100%;display:grid}[_nghost-%COMP%] .grid-container[_ngcontent-%COMP%] div[role=gridcell][_ngcontent-%COMP%]{text-align:left;white-space:nowrap}[_nghost-%COMP%] .grid-container[_ngcontent-%COMP%] div[role=gridcell].laufd-saldo-info[_ngcontent-%COMP%]{display:flex;justify-content:center}[_nghost-%COMP%] .grid-container[_ngcontent-%COMP%] .designation[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%] .grid-container.header[_ngcontent-%COMP%]{border-bottom:2px solid var(--ion-text-color-step-200)}}@media only screen and (min-width:0)and (hover:hover){[_nghost-%COMP%] .grid-container[_ngcontent-%COMP%]:not(.header):hover{background-color:var(--ion-color-cta-secondary)}}@media only screen and (min-width:0){[_nghost-%COMP%] .grid-container.no-saldo-info[_ngcontent-%COMP%]{grid-template-columns:2fr 1fr 1fr}[_nghost-%COMP%] .search-container[_ngcontent-%COMP%]{flex-direction:column}[_nghost-%COMP%] .no-data-container[_ngcontent-%COMP%]{padding:40px}}@media only screen and (min-width:576px){[_nghost-%COMP%] .date-container[_ngcontent-%COMP%]{flex-direction:row;align-items:center}[_nghost-%COMP%] .search-container[_ngcontent-%COMP%]{flex-direction:row;align-items:center}}@media only screen and (min-width:768px){[_nghost-%COMP%] .grid-container[_ngcontent-%COMP%]{grid-template-columns:2fr 120px 1fr 1fr 1fr 1fr 25px}[_nghost-%COMP%] .grid-container.no-saldo[_ngcontent-%COMP%]{grid-template-columns:2fr 120px 1fr 1fr 1fr}[_nghost-%COMP%] .grid-container.no-saldo-info[_ngcontent-%COMP%]{grid-template-columns:2fr 120px 1fr 1fr 1fr 1fr}}"]});}}return t})();export{Se as ContributionsContainerComponent};
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.