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-BiUBeaMj.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]:"\u0421\u0435\u0433\u043E\u0434\u043D\u044F",[a.YESTERDAY]:"\u0412\u0447\u0435\u0440\u0430",[a.THIS_WEEK]:"\u042D\u0442\u0430 \u043D\u0435\u0434\u0435\u043B\u044F",[a.THIS_MONTH]:"\u042D\u0442\u043E\u0442 \u043C\u0435\u0441\u044F\u0446",[a.LAST_MONTH]:"\u041F\u0440\u043E\u0448\u043B\u044B\u0439 \u043C\u0435\u0441\u044F\u0446",[a.OLDER]:"\u0421\u0442\u0430\u0440\u0448\u0435"});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-C06z98JN.js.map