import{K as qp,gL as Vye,gM as $ye,gN as Wye,gO as Gye,gP as zye,b as Pa,k as w2,o as x2,b_ as Ex,a6 as XV,S as SV,cy as Eb}from'./main-DEZ5cZzu.js';function E(t,L){if(t&1&&XV(0),t&2){let i=SV();Eb(" ",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]:"\u0627\u0645\u0631\u0648\u0632",[a.YESTERDAY]:"\u062F\u06CC\u0631\u0648\u0632",[a.THIS_WEEK]:"This week",[a.THIS_MONTH]:"This month",[a.LAST_MONTH]:"Last month",[a.OLDER]:"Older"});text;dateDisplayed=false;ngOnInit(){let i=[{value:a.TODAY,validator:e=>Vye(e)},{value:a.YESTERDAY,validator:e=>$ye(e)},{value:a.THIS_WEEK,validator:e=>Wye(e)},{value:a.THIS_MONTH,validator:e=>Gye(e)},{value:a.LAST_MONTH,validator:e=>zye(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&&Ex("date-displayed",n.dateDisplayed);},inputs:{store:[1,"store"],date:[1,"date"],groupedDateLabels:[1,"groupedDateLabels"]},decls:1,vars:1,template:function(e,n){e&1&&w2(0,E,1,1),e&2&&x2(n.text?0:-1);},encapsulation:2});}return t;})();/**i18n:c8855ca17fb20171aa9dd43d012e42547cb1f0cfd9c21d4dc05679bbbdf5ccb8*/export{a,b};//# sourceMappingURL=chunk-CmWePYi_.js.map