1import{ma as N}from"./chunk-7V56JTTI.js";import{N as f,O as W,Q as P,W as g}from"./chunk-MQHMSR6Q.js";import{R as H,t as M}from"./chunk-II62XKAX.js";import{Gc as D,Jb as _,Kd as b,Rd as c,Sc as u,Vc as a,Xc as l,de as k,gc as p,ic as m,jc as C,lc as w,mc as E,nd as S,rc as r,sa as d,sc as i,tb as n,yd as x,zd as O}from"./chunk-AAE36BVF.js";import{a as y,b as v,d as F}from"./chunk-YZFYTRZT.js";function I(t,s){if(t&1&&(r(0,"span",1),a(1),i()),t&2){let e=D().$implicit;n(),l(" ",e.specialOpenTimeName," ")}}function L(t,s){if(t&1&&(r(0,"tr")(1,"td"),a(2),p(3,I,2,1,"span",1),i(),r(4,"td"),a(5),i(),r(6,"td",2),a(7),x(8,"pwrshortdate"),i()()),t&2){let e=s.$implicit;n(),u("pwr-font-medium",e.first),n(),l(" ",e.weekdayText," "),n(),m(e.specialOpenTimeName?3:-1),n(),u("pwr-font-medium",e.first),n(),l(" ",e.hours," "),n(2),l(" ",O(8,8,e.date)," ")}}function B(t,s){t&1&&(r(0,"table",0),w(1,L,9,10,"tr",null,C),i()),t&2&&(n(),E(s))}var G,U=F(()=>{"use strict";k();H();N();W();k();G=(()=>{class t{constructor(){this.localeService=d(P),this.translocoService=d(M),this.schedule=c(),this.longDayFormat=c(),this.nrOfDays=c(7),this.locale=this.localeService.dateLocale,this.finalSchedule=b(()=>this.schedule()?.slice(0,this.nrOfDays()).filter(e=>e.date).map((e,o)=>v(y({},e),{first:o===0,weekdayText:this.getWeekday(e.date,o),hours:e.hours||this.translocoService.translate("Store.OpeningHours.Closed")})))}getWeekday(e,o){return o===0?this.translocoService.translate("Days.Today"):o===1?this.translocoService.translate("Days.Tomorrow"):this.longDayFormat()?f(new Date(e),"EEEE",{locale:this.locale()}):f(new Date(e),"EEEEEE",{locale:this.locale()})}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=_({type:t,selectors:[["pwr-store-working-hours"]],inputs:{schedule:[1,"schedule"],longDayFormat:[1,"longDayFormat"],nrOfDays:[1,"nrOfDays"]},features:[S([g])],decls:1,vars:1,consts:[[1,"w-100-p","power-primary-900-fg","text-left"],[1,"special-open-time","pwr-body-4","power-primary-600-fg"],[1,"text-right"]],template:function(o,T){if(o&1&&p(0,B,3,0,"table",0),o&2){let h;m((h=T.finalSchedule())?0:-1,h)}},dependencies:[g],styles:[`[_nghost-%COMP%]{display:contents}table[_ngcontent-%COMP%]{border-collapse:collapse}td[_ngcontent-%COMP%]{padding:4px}td[_ngcontent-%COMP%]:first-child{padding-left:8px}td[_ngcontent-%COMP%]:last-child{padding-right:12px}tr[_ngcontent-%COMP%]{background-color:var(--power-primary-100);border-left-color:var(--power-primary-100);border-left-style:solid;border-left-width:3px}tr[_ngcontent-%COMP%]:nth-child(2n){background-color:var(--power-primary-50);border-left-color:var(--power-primary-50)}tr[_ngcontent-%COMP%]:first-child{border-left-color:var(--power-secondary-500)!important}.special-open-time[_ngcontent-%COMP%]{margin-top:-2px!important} 2/*# sourceMappingURL=store-working-hours.component-H2DU73Y4.css.map */`],changeDetection:0})}}return t})()});export{G as a,U as b}; 3//# sourceMappingURL=chunk-M2CJ3QFC.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.