import{L as qp,gL as jye,gM as Vye,gN as zye,gO as $ye,gP as Gye,b as Pa,m as _2,A as w2,b_ as vx,a6 as KV,o as bV,cy as vb}from'./main-ajlqprgK.js';function E(t,L){if(t&1&&KV(0),t&2){let i=bV();vb(" ",i.text,`
`);}}var a=function(t){return t[t.TODAY=1]="TODAY",t[t.YESTERDAY=2]="YESTERDAY",t[t.THIS_WEEK=3]="THIS_WEEK",t[t.THIS_MONTH=4]="THIS_MONTH",t[t.LAST_MONTH=5]="LAST_MONTH",t[t.OLDER=6]="OLDER",t;}(a||{}),b=(()=>{class t{store=qp.required();date=qp.required();groupedDateLabels=qp({[a.TODAY]:"Dnes",[a.YESTERDAY]:"V\u010Dera",[a.THIS_WEEK]:"Tento v\xEDkend",[a.THIS_MONTH]:"Tento m\u011Bs\xEDc",[a.LAST_MONTH]:"Minul\xFD m\u011Bs\xEDc",[a.OLDER]:"Star\u0161\xED"});text;dateDisplayed=false;ngOnInit(){let i=[{value:a.TODAY,validator:e=>jye(e)},{value:a.YESTERDAY,validator:e=>Vye(e)},{value:a.THIS_WEEK,validator:e=>zye(e)},{value:a.THIS_MONTH,validator:e=>$ye(e)},{value:a.LAST_MONTH,validator:e=>Gye(e)},{value:a.OLDER,validator:()=>true}];for(let e of i)if(e.validator(new Date(this.date()))){if(this.store().has(e.value)===true||e.value===a.OLDER&&this.store().size===0)break;this.store().add(e.value),this.text=this.groupedDateLabels()[e.value],this.dateDisplayed=true;break;}}static ɵfac=function(e){return new(e||t)();};static ɵcmp=Pa({type:t,selectors:[["my-date-group-label"]],hostVars:2,hostBindings:function(e,n){e&2&&vx("date-displayed",n.dateDisplayed);},inputs:{store:[1,"store"],date:[1,"date"],groupedDateLabels:[1,"groupedDateLabels"]},decls:1,vars:1,template:function(e,n){e&1&&_2(0,E,1,1),e&2&&w2(n.text?0:-1);},encapsulation:2});}return t;})();/**i18n:fad79908930cbb4c308e7550a5fe49bb3841dbb330066a6429aebaa006173605*/export{a,b};//# sourceMappingURL=chunk-XepciPIC.js.map