1import{a as G}from"./chunk-QAXKEU4X.js";import{c as P}from"./chunk-LB5IGS4A.js";import{d as F}from"./chunk-AW7RTHKZ.js";import"./chunk-4EY2W66C.js";import"./chunk-ZR73OBID.js";import{Dc as m,Dd as w,Jb as f,Jd as B,Mc as T,jc as y,kd as x,lb as u,lc as H,ld as E,mc as D,oc as h,pc as v,qb as l,sd as p,td as M,uc as _,vc as C,vd as k,wc as d,wd as O}from"./chunk-N4XFLIUN.js";import"./chunk-DIH54OSL.js";var b=n=>({weekday:n}),z=()=>({timeStyle:"short"});function N(n,g){if(n&1&&(_(0,"div",0),d(1,"div",1),p(2,"translocoDateRange"),d(3,"div",1),p(4,"translocoDateRange"),p(5,"ukrTime"),C()),n&2){let e=g.$implicit;l(),m("innerHTML",k(2,2,e.firstDay,e.lastDay,E(13,b,e.firstDay===e.lastDay?"long":"short")),u),l(2),m("innerHTML",M(5,11,O(4,6,e.open,e.close,x(15,z),"de")),u)}}function S(n,g){if(n&1&&h(0,N,6,16,"div",0,D),n&2){let e=T();v(e.openingHoursGrouped())}}var q=(()=>{class n{constructor(){this.openingHours=B(),this.openingHoursGrouped=w(()=>{let e=[...this.openingHours()??[]];if(e){let o=[],s=e.shift();return s&&e.push(s),e.forEach((i,a)=>{let c=a+1===7?0:a+1,r=new Date,L=r.getDay(),R=c-L;r.setDate(r.getDate()+R);let t=o[o.length-1];!i?.open||!i?.close||(t&&t.open===i.open&&t.close===i.close&&t.days[t.days.length-1]===a?(t.days.push(c),t.lastDay=r):o.push({days:[c],firstDay:r,lastDay:r,open:i.open,close:i.close}))}),o}else return[]})}static{this.\u0275fac=function(o){return new(o||n)}}static{this.\u0275cmp=f({type:n,selectors:[["ukr-opening-hours"]],hostAttrs:[1,"flex","flex-wrap","gap-x-4","gap-y-2"],inputs:{openingHours:[1,"openingHours"]},decls:1,vars:1,consts:[["itemprop","openingHours"],[3,"innerHtml"]],template:function(o,s){o&1&&y(0,S,2,0),o&2&&H(s.openingHoursGrouped().length?0:-1)},dependencies:[F,G,P],encapsulation:2})}}return n})();export{q as OpeningHoursComponent}; 2//# sourceMappingURL=chunk-W5SMNNSX.js.map
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.