1import{_ as v}from"./DDrUmjbW.js";import{u as d}from"./3KxGoN4F.js";import{i as X}from"./BKuJXwDO.js";import{d as k,a as S,o as t,c as s,l as n,p as h,j as f,s as x,t as i,h as m,f as r,y as B,m as C,g as I,F as b,z as D}from"./BBfPi8oX.js";import{_ as L}from"./oJIt67yI.js";import{u as N}from"./3NtzOryj.js";import"./DjlxQRNO.js";import"./Dp9Z6Br3.js";import"./Dae1TRoG.js";const T={class:"store-locator-tile__content"},j={class:"store-locator-tile__heading"},O=["textContent"],w={key:1,class:"store-locator-tile__open"},P={key:0},V={key:1},q={key:2},G={class:"store-locator-tile__visual"},M={key:0},U=["srcset"],$=["srcset"],z=["srcset"],A=["src","alt","height","width"],F=k({__name:"Tile",props:{store:{type:Object,required:!0}},setup(e){const c=S(()=>X(e.store?.today));return(o,l)=>{const u=v;return e.store?(t(),s("article",{key:0,class:B(["store-locator-tile",{"store-locator-tile--open":r(c)||e.store?.today?.open}])},[n("div",T,[n("h3",j,[h(u,{to:e.store.PageUrl?.url,class:"store-locator-tile__link"},{default:f(()=>[x(i(e.store.PageTitle),1)]),_:1},8,["to"])]),e.store.Description?(t(),s("div",{key:0,class:"store-locator-tile__description",textContent:i(e.store.Description)},null,8,O)):m("",!0),e.store?.today?(t(),s("div",w,[r(c)?(t(),s("span",P,"Nu geopend tot "+i(e.store?.today?.close_time),1)):e.store?.today?.open?(t(),s("span",V,"Vandaag geopend van "+i(e.store.today.open_time)+" tot "+i(e.store.today.close_time),1)):(t(),s("span",q,"Nu gesloten"))])):m("",!0),h(u,{to:e.store.PageUrl?.url,class:"store-locator-tile__cta"},{default:f(()=>[...l[0]||(l[0]=[n("span",null,"Route & openingstijden",-1)])]),_:1},8,["to"])]),n("div",G,[e.store?.Image?.url?(t(),s("picture",M,[n("source",{srcset:("useXcdnImage"in o?o.useXcdnImage:r(d))(e.store.Image.url,"f=rs:fit:1280"),media:"(min-width: 1280px)"},null,8,U),e.store?.ImageMobile?.url?(t(),s("source",{key:0,srcset:("useXcdnImage"in o?o.useXcdnImage:r(d))(e.store.ImageMobile.url,"f=rs:fit:640")},null,8,$)):(t(),s("source",{key:1,srcset:("useXcdnImage"in o?o.useXcdnImage:r(d))(e.store.Image.url,"f=rs:fit:640")},null,8,z)),n("img",{class:"store-locator-tile__image",src:("useXcdnImage"in o?o.useXcdnImage:r(d))(e.store.Image.url,"f=rs:fit:640"),alt:e.store.Image.alternativeText||e.store.PageTitle,height:e.store.Image.height,width:e.store.Image.width},null,8,A)])):m("",!0)])],2)):m("",!0)}}}),E=Object.assign(F,{__name:"StoreLocatorTile"}),K={class:"ct-store-locator__list"},R=k({__name:"StoreLocator",props:{slice:{type:Object,required:!0},index:{type:Number,required:!0},slices:{type:Array,required:!0}},setup(e){const c=e,{load:o,data:l}=N(),u=S(()=>c.slice.StorePages?.map(g=>{const _=g?.Slices?.find(a=>a.__typename==="ComponentSlicesStoreData")||{};return{...g,..._,today:l.value?.find(a=>a.id===_.GoogleBusinessInformationID)?.today?.current?.[0]||null}})||[]);return C(()=>{o()}),(g,_)=>{const a=E,p=L;return t(),I(p,{class:"ct-store-locator",slice:e.slice,index:e.index},{default:f(()=>[n("div",K,[(t(!0),s(b,null,D(r(u),y=>(t(),I(a,{key:y.UrlKey,class:"ct-store-locator__item",store:y},null,8,["store"]))),128))])]),_:1},8,["slice","index"])}}}),se=Object.assign(R,{__name:"SlicesStoreLocator"});export{se as default}; 2//# sourceMappingURL=C8QGeE14.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.