import{Db as p,Qb as u,Sa as d,Sb as v,Ya as r,gb as T,jb as c,pe as f,qe as E,re as h,se as O,ta as s,te as m}from"./chunk-GKQGDBUU.js";import{i as l}from"./chunk-QVFSZZWQ.js";function L(t,a){if(t&1&&u(0),t&2){let H=p();v(" ",H.text,`
`);}}var i=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;}(i||{}),x=(()=>{let a=class a{store=s.required();date=s.required();groupedDateLabels=s({[i.TODAY]:"Vandaag",[i.YESTERDAY]:"Yesterday",[i.THIS_WEEK]:"This week",[i.THIS_MONTH]:"This month",[i.LAST_MONTH]:"Last month",[i.OLDER]:"Older"});text;dateDisplayed=!1;ngOnInit(){let o=[{value:i.TODAY,validator:e=>f(e)},{value:i.YESTERDAY,validator:e=>E(e)},{value:i.THIS_WEEK,validator:e=>m(e)},{value:i.THIS_MONTH,validator:e=>h(e)},{value:i.LAST_MONTH,validator:e=>O(e)},{value:i.OLDER,validator:()=>!0}];for(let e of o)if(e.validator(new Date(this.date()))){if(this.store().has(e.value)===!0||e.value===i.OLDER&&this.store().size===0)break;this.store().add(e.value),this.text=this.groupedDateLabels()[e.value],this.dateDisplayed=!0;break;}}};l(a,"\u0275fac",function(e){return new(e||a)();}),l(a,"\u0275cmp",d({type:a,selectors:[["my-date-group-label"]],hostVars:2,hostBindings:function(e,n){e&2&&T("date-displayed",n.dateDisplayed);},inputs:{store:[1,"store"],date:[1,"date"],groupedDateLabels:[1,"groupedDateLabels"]},decls:1,vars:1,template:function(e,n){e&1&&r(0,L,1,1),e&2&&c(n.text?0:-1);},encapsulation:2,changeDetection:0}));let t=a;return t;})();export{i as a,x as b};/**i18n:42345378061bf3c93df67acfa161b751a7b03cc91f3ede7c1f1cdf2bba62fe26*///# sourceMappingURL=chunk-GEZBLZ5C.js.map