1import{Dc as o,He as m,Ib as u,Ie as T,Je as g,Ke as b,Le as v,Ma as r,Ub as p,Xb as D,Zb as c,fb as l,gb as d}from"./chunk-HVCWS4IF.js";import{j as n}from"./chunk-KJ7W2O2B.js";function h(s,a){if(s&1&&D(0),s&2){let e=u();c(" ",e.text,` 2`);}}var t=class t{store=o.required();date=o.required();groupedDateLabels=o({1:"Today",2:"Yesterday",3:"This week",4:"This month",5:"Last month",6:"Older"});text;dateDisplayed=!1;ngOnInit(){let a=[{value:1,validator:e=>m(e)},{value:2,validator:e=>T(e)},{value:3,validator:e=>v(e)},{value:4,validator:e=>g(e)},{value:5,validator:e=>b(e)},{value:6,validator:()=>!0}];for(let e of a)if(e.validator(new Date(this.date()))){if(this.store().has(e.value)===!0||e.value===6&&this.store().size===0)break;this.store().add(e.value),this.text=this.groupedDateLabels()[e.value],this.dateDisplayed=!0;break;}}};n(t,"\u0275fac",function(e){return new(e||t)();}),n(t,"\u0275cmp",r({type:t,selectors:[["my-date-group-label"]],hostVars:2,hostBindings:function(e,i){e&2&&p("date-displayed",i.dateDisplayed);},inputs:{store:[1,"store"],date:[1,"date"],groupedDateLabels:[1,"groupedDateLabels"]},decls:1,vars:1,template:function(e,i){e&1&&l(0,h,1,1),e&2&&d(i.text?0:-1);},encapsulation:2,changeDetection:0}));var f=t;export{f as a};/**i18n:347eeb695970c32bc275618edc2e751c67145d9fc3012e70543c114a99b9e016*/
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.