"use strict";exports.id=6266,exports.ids=[6266],exports.modules={40047:(t,e,a)=>{a.a(t,async(t,r)=>{try{a.d(e,{F:()=>getStaticPaths,b:()=>getStaticProps});var s=a(54574),i=a(77649),l=a(25460),n=a(61175),c=a(24281),o=t([s,c]);[s,c]=o.then?(await o)():o;let getStaticPaths=async({locales:t})=>{(0,c.default)(t,"locales is not defined");let{data:e}=await s.Z.shops.all({limit:100,is_active:1}),a=e?.flatMap(e=>t?.map(t=>({params:{shopSlug:e.slug},locale:t})));return{paths:a,fallback:"blocking"}},getStaticProps=async({params:t,locale:e})=>{let a=new n.QueryClient,{shopSlug:r}=t;try{let t=await s.Z.shops.get(r);return await Promise.all([a.prefetchQuery([i.P.SETTINGS,{language:e}],({queryKey:t})=>s.Z.settings.all(t[1]))]),{props:{shop:t,...await (0,l.serverSideTranslations)(e,["common"]),dehydratedState:JSON.parse(JSON.stringify((0,n.dehydrate)(a)))},revalidate:60}}catch(t){return{notFound:!0}}};r()}catch(t){r(t)}})},71798:(t,e,a)=>{a.d(e,{T:()=>formatAddress});function formatAddress(t){if(!t)return;let e=["street_address","state","city","zip","country"].reduce((e,a)=>({...e,[a]:t[a]}),{}),a=Object.fromEntries(Object.entries(e).filter(([t,e])=>!!e));return Object.values(a).join(", ")}}};