PageSourceSearch

https://www.enjoynordjylland.dk/_next/static/chunks/2e76w29lbezsf.js?dpl=1-4-0

js enjoynordjylland.dk collected 2026-10-02 10:03:49 UTC 27,760 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,961601,657853,e=>{"use strict";var t=e.i(843476),r=e.i(647163),i=e.i(988258);e.s(["default",0,({image:e,aspectRatioKey:a,breakpoints:n,sizes:s,className:o,withHover:l,rounded:d=!1,loading:u="lazy",priority:c=!1,alt:h})=>{if(!e||!e.url)return console.warn("GdkImage component: image data is missing or invalid."),null;let{url:m,alt:g,variations:p=[],width:f,height:y}=e,x=[],w=(e,t)=>p.filter(r=>{let i=r.name.toUpperCase();return i.startsWith(e.toUpperCase())&&i.endsWith(`_${t}`)}).map(e=>{if(e.width>2e3){let t=Math.round(2e3/(e.width/e.height)),r=new URL(e.url);return r.searchParams.set("width","2000"),r.searchParams.set("height",t.toString()),{...e,url:r.toString(),width:2e3,height:t}}return e}).sort((e,t)=>e.width-t.width);if(n&&a&&Object.entries(n).map(([e,t])=>({minWidth:Number(e),ratio:t})).sort((e,t)=>t.minWidth-e.minWidth).forEach(({minWidth:e,ratio:r})=>{let i=w(r,"WEBP"),a=w(r,"JPEG");if(i.length>0){let a=i.map(e=>`${e.url} ${e.width}w`).join(", ");x.push((0,t.jsx)("source",{srcSet:a,media:`(min-width: ${e}px)`,type:"image/webp",sizes:s},`${r}-${e}-webp`))}if(a.length>0){let i=a.map(e=>`${e.url} ${e.width}w`).join(", ");x.push((0,t.jsx)("source",{srcSet:i,media:`(min-width: ${e}px)`,type:"image/jpeg",sizes:s},`${r}-${e}-jpeg`))}}),a){let e=w(a,"WEBP"),r=w(a,"JPEG");if(e.length>0){let r=e.map(e=>`${e.url} ${e.width}w`).join(", ");x.push((0,t.jsx)("source",{srcSet:r,type:"image/webp",sizes:s},`${a}-webp`))}if(r.length>0){let e=r.map(e=>`${e.url} ${e.width}w`).join(", ");x.push((0,t.jsx)("source",{srcSet:e,type:"image/jpeg",sizes:s},`${a}-jpeg`))}}let b=a?(0,i.getNumericAspectRatio)(a):void 0,T={display:"block",width:"100%"},v=f||800,j=y;if(n)T.height="100%",T.objectFit="cover";else if(b){let e=1/b;T.aspectRatio=`1/${e}`,v=f||800,j=y||Math.round(v*e)}else T.height="auto";return v||(v=f||800),j||(j=y||.75*v),(0,t.jsxs)("picture",{className:o,children:[x,(0,t.jsx)("img",{src:m,alt:h||g||"",width:v,height:j,loading:c?"eager":u,fetchPriority:c?"high":void 0,className:(0,r.cn)(d&&"rounded-2xl object-cover",l&&"with-zoom-hover"),sizes:s,style:T,"data-testaspectratio":a})]})}],961601),e.s(["formatLocationText",0,function(e,t){let r,i=e?.trim(),a=t?.trim();return i&&a?r=i.toLowerCase()===a.toLowerCase()?i:`${i}, ${a}`:i?r=i:a&&(r=a),r}],657853)},615460,e=>{"use strict";var t=e.i(843476),r=e.i(961601),i=e.i(837933),a=e.i(624936),n=e.i(530401),s=e.i(466279),o=e.i(988258),l=e.i(657853),d=e.i(470354);e.s(["ExploreProduct",0,function({image:e,isSustainable:u,municipality:c,region:h,title:m,category:g,subCategory:p,openingHours:f,periodsByDate:y,locale:x="da",withHover:w=!1}){let b,T;e?.url&&(b=(0,t.jsx)(r.default,{image:e,aspectRatioKey:o.aspectRatioToPrefix[o.AspectRatio.LANDSCAPE],sizes:(0,s.getSizes)({lg:3,md:3,default:6}),className:"w-full h-full object-cover rounded-lg block [&>img]:rounded-lg [&>img]:object-cover overflow-hidden",withHover:w}));let v=(0,l.formatLocationText)(c,h),j=p||g;if(y&&y.length>0){let e=y[0];if(e.startDate){let t=new Date(e.startDate),r=e.endDate?new Date(e.endDate):t,i=(0,n.langcodeToLocale)(x);T=(0,d.formatDateRange)(t,r,i)}}else if(f&&f.length>0){let e=f[0];if(e.startDate){let t=new Date(e.startDate),r=e.endDate?new Date(e.endDate):t,i=(0,n.langcodeToLocale)(x);T=(0,d.formatDateRange)(t,r,i)}}return(0,t.jsxs)(t.Fragment,{children:[e&&u&&(0,t.jsx)(i.default,{label:j||"",className:"w-full! [&_picture]:rounded-br-xl",borderRadius:"lg",children:(0,t.jsx)(a.default,{children:b})}),e&&!u&&(0,t.jsx)(i.default,{label:j||"",className:"w-full!",borderRadius:"lg",labelPosition:{x:"start",y:"top"},children:b}),(0,t.jsxs)("div",{className:"py-2",children:[(0,t.jsx)("h3",{className:"font-semibold text-foreground mb-1 text-base",children:m}),v&&(0,t.jsx)("p",{className:"text-sm text-grey-5 font-medium",children:v}),T&&(0,t.jsx)("p",{className:"text-sm text-grey-5 font-medium mt-2",children:T})]})]})}])},325804,e=>{"use strict";var t=e.i(843476),r=e.i(948148),i=e.i(770703),a=e.i(271645),n=e.i(461912),s=e.i(407659),o=e.i(931421),l=e.i(877264),d=e.i(647907),u=e.i(325769),c=e.i(615460),h=e.i(920710);function m({products:e}){let r=(0,l.useFilteredProductListStore)(e=>e.products),i=r.length>0?r:e;return(0,a.useEffect)(()=>{0===l.useFilteredProductListStore.getState().products.length&&l.useFilteredProductListStore.getState().setProducts(e)},[e]),(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:i.map(e=>(0,t.jsx)(h.default,{href:e.path,className:"space-y-0 overflow-hidden",bordered:!0,children:(0,t.jsx)(c.ExploreProduct,{productId:e.id,category:e.category,isSustainable:e.isSustainable,title:e.title,region:e.region,municipality:e.municipality,image:e.image,periodsByDate:e.periodsByDate,locale:"da"})},e.id))})}let g=(0,i.default)(()=>
1e.A(426604),{loadableGenerated:{modules:[549367]},ssr:!1}),p=(0,i.default)(()=>e.A(844007).then(e=>({default:e.MobileMapPanel})),{loadableGenerated:{modules:[181500]},ssr:!1}),f=e=>(0,t.jsx)(a.Suspense,{fallback:null,children:(0,t.jsx)(g,{...e})}),y=e=>(0,t.jsx)(a.Suspense,{fallback:null,children:(0,t.jsx)(p,{...e})});e.s(["ProductListInteractive",0,function({initialProducts:e,exploreFilters:i,initialTotal:c,initialMapMarkerItems:h}){let g=(0,r.useTranslations)(),p=(0,a.useRef)(null),x=(0,a.useRef)(0),w=(0,a.useRef)(!1),[b,T]=(0,a.useState)(null),[v,j]=(0,a.useState)(!1),{appendProducts:N,setProducts:D,setTotal:P,hasNextPage:$,setHasNextPage:E,page:S,setPage:O,isLoading:L,setIsLoading:F,popup:C,setPopup:I,setExploreFilters:k,setIsMapPanelOpen:R,setMapMarkerItems:W,mapMarkerItems:M}=(0,l.useFilteredProductListStore)(),{product:A,loading:_}=(0,o.usePopupProduct)(C);(0,a.useEffect)(()=>{let e=()=>{j(window.innerWidth>=1024)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),(0,a.useEffect)(()=>{P(c||0),E(!!c&&e.length<c),k(i||null),W(h||[])},[c,e.length,i,h,P,E,k,W]),(0,a.useEffect)(()=>{if(0===S){D(e),P(c||0),E(!!c&&e.length<c),x.current=0;return}(async()=>{F(!0);let e=!0===w.current;x.current=S,w.current=!1;try{let t={page:S,sort:"POPULARITY"};if(i?.category&&(t.category=i.category),i?.subCategory&&(t.subCategory=i.subCategory),i?.facets&&i.facets.length>0){for(let e of(t.filters={},i.facets))if(e?.id&&e?.filters){let r=e.filters.filter(e=>null!==e);r.length>0&&(t.filters[e.id]=r)}}t.limit=8;let r=await fetch("/api/product/list",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!r.ok){let e;try{let t=await r.json();e=t?.requestId}catch{}let t=Error("Failed to fetch products");throw t.requestId=e,t}let a=await r.json(),n=(a.productList?.items||[]).map(e=>{let t;if(e.location&&"string"==typeof e.location){let r=e.location.split(",").map(e=>Number.parseFloat(e.trim()));2!==r.length||Number.isNaN(r[0])||Number.isNaN(r[1])||(t={latitude:r[0],longitude:r[1]})}return{id:e.pid||"",productId:e.pid||"",category:String(e.category||""),image:e.mainImage?(0,u.mapGdkFileToImageData)(e.mainImage):void 0,isSustainable:e.isSustainable||!1,municipality:e.municipality||void 0,region:e.region||void 0,title:e.title||"",path:e.path||"",location:t,periodsByDate:e.periodsByDate||void 0}});e?N(n):D(n),P(a.productList?.pagination?.total||0),E(a.productList?.pagination?.hasNextPage||!1)}catch(t){let e=t?.requestId;(0,d.reportClientError)("Error fetching product list page",t,"ProductListInteractive",e?{requestId:e}:void 0)}finally{F(!1)}})()},[S,i,e,c,N,D,P,E,F]);let U=(0,a.useMemo)(()=>M&&M.length>0?M.map(e=>{if(!e.location||"string"!=typeof e.location||!e.pid)return null;let t=e.location.split(",");if(2!==t.length)return null;let r=Number.parseFloat(t[0]),i=Number.parseFloat(t[1]);return Number.isNaN(r)||Number.isNaN(i)?null:{id:Number(e.pid)||0,title:"",description:"",imageUrl:"",imageAlt:"",productUrl:"",location:{latitude:r,longitude:i}}}).filter(e=>null!==e):[],[M]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"grid-sub-system",ref:p,children:[(0,t.jsxs)("div",{className:"col-[content] lg:col-start-[content-start] lg:col-end-[col-7] 3xl:col-start-[full-start]",children:[(0,t.jsx)(m,{products:e}),$&&(0,t.jsx)("div",{className:"flex justify-center mt-8 lg:hidden",children:(0,t.jsx)(n.default,{onClick:()=>{w.current=!0,O(S+1)},type:"button",className:"text-center block",disabled:L,children:g(L?"loading":"load_more")})})]}),v&&(0,t.jsx)("div",{className:"hidden lg:block col-[content] lg:col-start-[col-7] lg:col-end-[content-end] 3xl:col-end-[full-end]",children:(0,t.jsx)("div",{className:"h-full max-h-[712px] 3xl:max-h-[900px] rounded-lg overflow-hidden lg:sticky lg:top-12 lg:z-10 bg-grey-1",children:U.length>0?(0,t.jsx)(f,{products:U,popup:C,setPopup:I,popupProduct:A,popupLoading:_,hoveredProductId:b}):(0,t.jsx)("div",{className:"flex h-full items-center justify-center",children:(0,t.jsx)("span",{className:"text-sm text-grey-5",children:g("loading")})})})}),($||S>0)&&(0,t.jsx)("div",{className:"hidden lg:flex justify-center mt-8 lg:col-start-[content-start] lg:col-end-[col-7]",children:(0,t.jsxs)("nav",{className:"grid grid-cols-2 gap-2",children:[(0,t.jsx)(n.default,{onClick:()=>{w.current=!1,O(S-1)},type:"button",className:"text-center block",disabled:0===S||L,children:g("previous")}),(0,t.jsx)(n.default,{onClick:()=>{w.current=!1,O(S+1)},type:"button",className:"text-center block",disabled:!$||L,children:g("next")})]})})]}),(0,t.jsx)(s.default,{enabled:M&&M.length>0,containerRef:p,triggerOffsetPx:100,hideOffsetFromTopPx:-500,children:(0,t.jsx)(n.default,{onClick:()=>R(!0),type:"button",className:"text-center",variant:"black",children:g("show_map")})}),!v&&(0,t.jsx)(y,{})]})}],325804)},920710,e=>{"use strict";var t=e.i(843476),r=e.i(647163),i=e.i(936121);e.s(["default",0,function({children:e,className:a,href:n,bordered:s,title:o,type:l,colorScheme:d,"data-testid":u,linkAttributes:c}){let h=d?(0,i.processColorScheme)(d):void 0,m=(0,r.cn)("not-prose relative gap-y-5 rounded-2xl bg-background",s&&"border border-grey-2 p-5 pb-6",a);return n?(0,t.jsxs)("div",{className:(0,r.cn)("transition hover:border-foreground",m),"data-card-type":l,"data-testid":u,style:h?h.style:void 0,children:[(0,t.jsx)("a",{href:n,className:"full-size-link",target:c?.target||void 0,rel:c?.rel||(c?.target==="_blank"?"noopener noreferrer":void 0),"aria-label":c?.ariaLabel,children:(0,t.jsx)("span",{className:"sr-only",children:o})}),e]}):(0,t.jsx)("div",{className:m,"data-card-type":l,"data-testid":u,style:h?h.style:void 0,children:e})}])},407659,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(647163);e.s(["default",0,function({enabled:e,containerRef:a,className:n,triggerOffsetPx:s=0,hideOffsetFromTopPx:o=0,children:l}){let[d,u]=(0,r.useState)(!1);return((0,r.useEffect)(()=>
1{if(!e)return void u(!1);let t=()=>{if(!a.current)return;let e=a.current.getBoundingClientRect(),t=window.innerHeight-e.top,r=e.bottom<-o;u(t>=s&&!r)};return window.addEventListener("scroll",t),t(),()=>{window.removeEventListener("scroll",t)}},[a,e,s,o]),e)?(0,t.jsx)("div",{className:(0,i.cn)("sticky-actions fixed mb-0 bottom-0 left-0 right-0 p-4 lg:hidden transition-transform duration-300",d?"translate-y-0":"translate-y-full",n),style:{zIndex:30},children:(0,t.jsx)("div",{className:"w-full flex justify-center gap-2",children:l})}):null}])},931421,e=>{"use strict";var t=e.i(271645),r=e.i(505597);e.s(["usePopupProduct",0,function(e){let i=e?.productId,a=(0,t.useRef)(new Map),[n,s]=(0,t.useState)(),[o,l]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{if(!i){s(void 0),l(!1);return}let e=a.current.get(i);if(void 0!==e){(0,r.trackCacheOperation)("hit","popup-product",i),s(e??void 0),l(!1);return}(0,r.trackCacheOperation)("miss","popup-product",i);let t=!1,n=new AbortController;return l(!0),(async()=>{try{let e=await fetch("/api/product",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pid:Number.parseInt(i,10)}),signal:n.signal});if(!e.ok)throw Error("Failed to fetch product");let r=await e.json();if(t||n.signal.aborted)return;let o=r?.productCard?{...r.productCard,productId:i}:void 0;a.current.set(i,o??null),s(o)}catch(e){if(e?.name==="AbortError")return;console.error("Error fetching product popup data",e),a.current.set(i,null),s(void 0)}finally{t||l(!1)}})(),()=>{t=!0,n.abort()}},[i]),{product:n,loading:o}}])},877264,e=>{"use strict";var t=e.i(768834),r=e.i(579473),i=e.i(325769);let a={products:[],total:0,hasNextPage:!1,page:0,isLoading:!1,isMapPanelOpen:!1,carouselProducts:[],carouselProductsLoaded:!1,isLoadingCarouselProducts:!1,activeProductId:null,mapMarkerItems:[],popup:null,exploreFilters:null},n=(0,t.create)()((0,r.devtools)((t,r)=>({...a,setProducts:e=>t({products:e}),appendProducts:e=>t(t=>({products:[...t.products,...e]})),setTotal:e=>t({total:e}),setHasNextPage:e=>t({hasNextPage:e}),setPage:e=>t({page:e}),setIsLoading:e=>t({isLoading:e}),setIsMapPanelOpen:e=>t({isMapPanelOpen:e}),setCarouselProducts:e=>t({carouselProducts:e}),setCarouselProductsLoaded:e=>t({carouselProductsLoaded:e}),setIsLoadingCarouselProducts:e=>t({isLoadingCarouselProducts:e}),setActiveProductId:e=>t({activeProductId:e}),setPopup:e=>{"function"==typeof e?t(t=>({popup:e(t.popup)})):t({popup:e})},setExploreFilters:e=>t({exploreFilters:e}),setMapMarkerItems:e=>t({mapMarkerItems:e}),loadCarouselProducts:async()=>{let a=r();if(!a.carouselProductsLoaded&&!a.isLoadingCarouselProducts){if(a.total>200){let{devLog:r}=await e.A(57918);r.info(`Total products (${a.total}) exceeds 200, skipping carousel load`,"FilteredProductListStore"),t({carouselProductsLoaded:!0});return}t({isLoadingCarouselProducts:!0});try{let r={page:0,sort:"POPULARITY",limit:200};if(a.exploreFilters?.category&&(r.category=a.exploreFilters.category),a.exploreFilters?.subCategory&&(r.subCategory=a.exploreFilters.subCategory),a.exploreFilters?.facets&&a.exploreFilters.facets.length>0){for(let e of(r.filters={},a.exploreFilters.facets))if(e?.id&&e?.filters){let t=e.filters.filter(e=>null!==e);t.length>0&&(r.filters[e.id]=t)}}a.exploreFilters?.startDate&&(r.startDate=a.exploreFilters.startDate),a.exploreFilters?.endDate&&(r.endDate=a.exploreFilters.endDate);let n=await fetch("/api/product/list",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!n.ok)throw Error("Failed to fetch carousel products");let s=await n.json(),o=s.productList?.items||[],{devLog:l}=await e.A(57918);l.info(`Loaded ${o.length} carousel products`,"FilteredProductListStore");let d=o.map(e=>{let t;if(e.location&&"string"==typeof e.location){let r=e.location.split(",").map(e=>Number.parseFloat(e.trim()));2!==r.length||Number.isNaN(r[0])||Number.isNaN(r[1])||(t={latitude:r[0],longitude:r[1]})}return{id:e.pid||"",productId:e.pid||"",category:String(e.category||""),image:e.mainImage?(0,i.mapGdkFileToImageData)(e.mainImage):void 0,isSustainable:e.isSustainable||!1,municipality:e.municipality||void 0,region:e.region||void 0,title:e.title||"",path:e.path||"",location:t,openingHours:e.openingHours||void 0}});t({carouselProducts:d,carouselProductsLoaded:!0,isLoadingCarouselProducts:!1})}catch(e){console.error("Error loading carousel products:",e),t({isLoadingCarouselProducts:!1})}}},reset:()=>t(a)}),{name:"FilteredProductListStore"}));e.s(["useFilteredProductListStore",0,n])},530401,e=>{"use strict";let t={da:"da-DK",en:"en-GB",de:"de-DE",fr:"fr-FR",it:"it-IT",nl:"nl-NL",sv:"sv-SE",nb:"nb-NO",no:"nb-NO"},r="Europe/Copenhagen";function i(e){return e?e.includes("-")?e:t[e]??e:"da-DK"}e.s(["formatDate",0,function(e,t="da-DK"){if("string"==typeof e){let a=new Date(/^\d+$/.test(e)?Number(e):e);return Number.isNaN(a.getTime())?e:new Intl.DateTimeFormat(i(t),{day:"numeric",month:"short",year:"numeric",timeZone:r}).format(a)}return new Intl.DateTimeFormat(i(t),{day:"numeric",month:"short",year:"numeric",timeZone:r}).format(e)},"langcodeToLocale",0,i])},325769,e=>{"use strict";let t={FOUR_THREE:{xs:{width:160,height:120},sm:{width:320,height:240},md:{width:320,height:240},lg:{width:960,height:720},xl:{width:1280,height:960},"2xl":{width:1600,height:1200}},SIXTEEN_NINE:{xs:{width:213,height:120},sm:{width:427,height:240},md:{width:427,height:240},lg:{width:1280,height:720},xl:{width:1707,height:960},"2xl":{width:2133,height:1200}},ELEVEN_FIVE:{xs:{width:160,height:73},sm:{width:320,height:145},md:{width:640,height:291},lg:{width:960,height:436},xl:{width:1280,height:582},"2xl":{width:1600,height:727}},ONE_ONE:{xs:{width:120,height:120},sm:{width:240,height:240},md:{width:240,height:240},lg:{width:720,height:720},xl:{width:960,height:960},"2xl":{width:1200,height:1200}},THREE_FOUR:{xs:{width:120,height:160},sm:{width:240,height:320},md:{width:240,height:320},lg:{width:720,height:960},xl:{width:960,height:1280},"2xl":{width:1200,height:1600}}},r={aspectRatios:[{name:"FOUR_THREE",width:800,height:600},{name:"SIXTEEN_NINE",width:1280,height:720},{name:"ELEVEN_FIVE",width:1280,height:582},{name:"ONE_ONE",width:600,height:600},{name:"THREE_FOUR",width:600,height:800}],mode:"crop",scale:"both"};function i(e,t,r,i,a,n){let s=new URL(e);return i&&s.searchParams.set("width",i.toString()),a&&s.searchParams.set("height",a.toString()),s.searchParams.set("mode",t||"crop"),r&&s.searchParams.set("scale",r),n&&(s.searchParams.set("format",n),"webp"===n?s.searchParams.set("webp.quality","60"):"jpeg"===n&&s.searchParams.set("jpeg.quality","70")),s.toString()}e.s(["mapGdkFileToImageData",0,function(e,a={}){let n={...r,...a};if(!e||!e.uri)return;let s=e.uri,o=[];return n.aspectRatios.forEach(({name:e,width:r,height:a})=>
1{if(t[e])Object.entries(t[e]).forEach(([t,r])=>{let a=`${e}_${t.toUpperCase()}`,l=i(s,n.mode,n.scale,r.width,r.height,"webp");o.push({name:`${a}_WEBP`,url:l,width:r.width,height:r.height});let d=i(s,n.mode,n.scale,r.width,r.height,"jpeg");o.push({name:`${a}_JPEG`,url:d,width:r.width,height:r.height})});else{let t=i(s,n.mode,n.scale,r,a,"webp");o.push({name:`${e}_WEBP`,url:t,width:r,height:a});let l=i(s,n.mode,n.scale,r,a,"jpeg");o.push({name:`${e}_JPEG`,url:l,width:r,height:a})}}),{url:s,width:void 0,height:void 0,alt:e.altText||"",variations:o,photographer:e?.photographer||void 0,copyright:e?.copyright||void 0}}])},466279,e=>{"use strict";let t=[{name:"lg",minWidth:1024,columns:12,margin:"4rem",gap:"1rem"},{name:"md",minWidth:768,columns:6,margin:"2.5rem",gap:"1rem"},{name:"default",minWidth:0,columns:6,margin:"1.5rem",gap:"1rem"}],r="1920px";e.s(["getSizes",0,function(e){let i,a=t.find(e=>"lg"===e.name),n=a?e[a.name]:void 0;if(a&&"number"==typeof n&&n>0)if(n===a.columns)i=r;else{let e=(1920-16*(a.columns-1))/a.columns,t=Math.max(0,n-1),r=Math.round(n*e+16*t);i=`${r}px`}else i=r;let s=[`(min-width: 1986px) ${i}`];return t.forEach(t=>{let r,i=e[t.name];if("number"==typeof i&&!(i<=0)){if(i===t.columns)r=`calc(100vw - 2 * ${t.margin})`;else{let e=t.columns-1,a=Math.max(0,i-1);r=`calc(${i} * (100vw - 2 * ${t.margin} - ${e} * ${t.gap}) / ${t.columns} + ${a} * ${t.gap})`}t.minWidth>0?s.push(`(min-width: ${t.minWidth}px) ${r}`):s.push(r)}}),s.join(", ")}])},470354,e=>{"use strict";var t=e.i(232241),r=e.i(530401);function i(e){return e.getDay()}let a="Europe/Copenhagen";function n(e){let t=new Date(new Date(e).toLocaleString("en-US",{timeZone:a}));return t.setHours(0,0,0,0),t}function s(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function o(e,t,r){let a=n(e.startDate),s=n(e.endDate);if(Number.isNaN(a.getTime())||Number.isNaN(s.getTime())||s.getTime()<a.getTime())return[];let o=new Date(Math.max(a.getTime(),r.getTime()));o.setHours(0,0,0,0);let l=new Date(o.getTime()+314496e5),d=s.getTime()>l.getTime()?l:s,u=a.getTime()===s.getTime(),c=e.sunday||e.monday||e.tuesday||e.wednesday||e.thursday||e.friday||e.saturday;if(u)return o.getTime()<=d.getTime()?[{date:o,startTime:e.startTime,endTime:e.endTime,periodIndex:t}]:[];let h=[],m=o;for(;m.getTime()<=d.getTime();){let r=i(m);(!c||e[({0:"sunday",1:"monday",2:"tuesday",3:"wednesday",4:"thursday",5:"friday",6:"saturday"})[r]])&&h.push({date:new Date(m),startTime:e.startTime,endTime:e.endTime,periodIndex:t}),m=new Date(m.getTime()+864e5)}return h}function l(e,t){if(!e)return null;let[r,i]=e.split(":"),a=Number.parseInt(r??"",10),n=Number.parseInt(i??"",10)||0;if(Number.isNaN(a))return null;let s=new Intl.DateTimeFormat(t,{hour:"2-digit",minute:"2-digit"}),o=new Date(1970,0,1,a,n);return s.format(o)}let d=["january","february","march","april","may","june","july","august","september","october","november","december"],u=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"];function c(e,r,i){let a=e.getDate(),n=i(`month_${d[e.getMonth()]}`,{defaultValue:(0,t.default)(d[e.getMonth()])});return r?`${a} ${n} ${e.getFullYear()}`:`${a} ${n}`}function h(e,t){let i=(0,r.langcodeToLocale)(t);return new Intl.DateTimeFormat(i,{day:"2-digit",month:"2-digit",year:"numeric",timeZone:a}).format(e)}e.s(["formatDate",0,function(e,t){return new Intl.DateTimeFormat((0,r.langcodeToLocale)(t),{day:"numeric",month:"short",timeZone:a}).format(e)},"formatDateDanish",0,h,"formatDateRange",0,function(e,t,r){let i=h(e,r),a=h(t,r);return s(e,t)?i:`${i} – ${a}`},"formatDateWithTranslation",0,function(e,t){return c(e,!1,t)},"formatDateWithYearTranslation",0,function(e,t){return c(e,!0,t)},"formatDaysOfWeekWithTranslation",0,function(e,r){return 0===e.length||7===e.length?"":[...e].sort((e,t)=>(0===e?7:e)-(0===t?7:t)).map(e=>r(`day_${u[e]}`,{defaultValue:(0,t.default)(u[e])})).join(", ")},"formatTimeRange",0,function(e,t,r){let i=l(e,r),a=l(t,r);return i&&a&&e!==t?`${i}–${a}`:i||null},"getOpenDaysOfWeek",0,function(e){let t=[];return e.sunday&&t.push(0),e.monday&&t.push(1),e.tuesday&&t.push(2),e.wednesday&&t.push(3),e.thursday&&t.push(4),e.friday&&t.push(5),e.saturday&&t.push(6),t},"isSameDay",0,s,"processOpeningHours",0,function(e,t={}){let{maxRanges:r=10,fromDate:a=new Date}=t;if(!e||0===e.length)return{ranges:[],totalDates:0,hasMore:!1,nextOpenDate:null,isOpenToday:!1,todayClosingTime:null};let n=new Date(a);n.setHours(0,0,0,0);let l=[];e.forEach((e,t)=>{let r=o(e,t,n);l.push(...r)}),l.sort((e,t)=>
1e.date.getTime()-t.date.getTime());let d=[],u=new Set;for(let e of l){let t=`${e.date.toISOString()}-${e.startTime}-${e.endTime}`;u.has(t)||(u.add(t),d.push(e))}let c=d.length,h=d.filter(e=>s(e.date,n)),m=h.length>0,g=m?h[0].endTime:null,p=d.length>0?d[0]:null,f=function(e){if(0===e.length)return[];let t=[],r=null;for(let a of e){let e=`${a.startTime??""}-${a.endTime??""}`;if(r&&`${r.startTime??""}-${r.endTime??""}`===e&&function(e,t){let r=new Date(e);return r.setDate(r.getDate()+1),s(r,t)}(r.endDate,a.date)){r.endDate=a.date;let e=i(a.date);r.daysOfWeek.includes(e)||r.daysOfWeek.push(e)}else r&&t.push(r),r={startDate:a.date,endDate:a.date,startTime:a.startTime,endTime:a.endTime,daysOfWeek:[i(a.date)],isConsecutive:!0}}for(let e of(r&&t.push(r),t)){let t=Math.round((e.endDate.getTime()-e.startDate.getTime())/864e5)+1;e.isConsecutive=t===e.daysOfWeek.length||t<=1}return t}(d),y=(f=function(e){if(e.length<=1)return e;let t=[...e].sort((e,t)=>{let r=e.startDate.getTime()-t.startDate.getTime();if(0!==r)return r;let i=`${e.startTime??""}-${e.endTime??""}`,a=`${t.startTime??""}-${t.endTime??""}`;return i.localeCompare(a)}),r=[];for(let e of t){let t=r[r.length-1],i=`${e.startTime??""}-${e.endTime??""}`,a=t?`${t.startTime??""}-${t.endTime??""}`:"";if(t&&i===a&&e.startDate.getTime()<=t.endDate.getTime()+864e5)for(let r of(e.endDate>t.endDate&&(t.endDate=e.endDate),e.daysOfWeek))t.daysOfWeek.includes(r)||t.daysOfWeek.push(r);else r.push({...e})}return r}(f)).length>r;return{ranges:f.slice(0,r),totalDates:c,hasMore:y,nextOpenDate:p,isOpenToday:m,todayClosingTime:g}},"processOpeningHoursGrouped",0,function(e,t={}){let{maxEntries:r=15,fromDate:a=new Date}=t;if(!e||0===e.length)return{entries:[],totalEntries:0,hasMore:!1,nextOpenDate:null,isOpenToday:!1,todayTimes:[]};let n=new Date(a);n.setHours(0,0,0,0);let l=[];e.forEach((e,t)=>{let r=o(e,t,n);l.push(...r)}),l.sort((e,t)=>{let r=e.date.getTime()-t.date.getTime();return 0!==r?r:(e.startTime??"").localeCompare(t.startTime??"")});let d=function(e){if(0===e.length)return[];let t=new Map;for(let r of e){let e=r.date.toISOString().split("T")[0],a=t.get(e);if(a){let e=`${r.startTime??""}-${r.endTime??""}`;a.times.some(t=>`${t.startTime??""}-${t.endTime??""}`===e)||a.times.push({startTime:r.startTime,endTime:r.endTime})}else t.set(e,{date:r.date,dayOfWeek:i(r.date),times:[{startTime:r.startTime,endTime:r.endTime}]})}let r=Array.from(t.values());for(let e of(r.sort((e,t)=>e.date.getTime()-t.date.getTime()),r))e.times.sort((e,t)=>{let r=e.startTime??"",i=t.startTime??"";return r.localeCompare(i)});return r}(l),u=d.length,c=d.find(e=>s(e.date,n)),h=!!c,m=c?.times??[],g=l.length>0?l[0]:null,p=d.length>r;return{entries:d.slice(0,r),totalEntries:u,hasMore:p,nextOpenDate:g,isOpenToday:h,todayTimes:m}}])},795014,(e,t,r)=>{t.exports=function(e,t,r){var i=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(r=r>a?a:r)<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var n=Array(a);++i<a;)n[i]=e[i+t];return n}},284357,(e,t,r)=>{var i=e.r(795014);t.exports=function(e,t,r){var a=e.length;return r=void 0===r?a:r,!t&&r>=a?e:i(e,t,r)}},979589,(e,t,r)=>{var i=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(e){return i.test(e)}},758672,(e,t,r)=>{t.exports=function(e){return e.split("")}},695365,(e,t,r)=>{var i="\\ud800-\\udfff",a="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\\ud83c[\\udffb-\\udfff]",s="[^"+i+"]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",d="(?:"+a+"|"+n+")?",u="[\\ufe0e\\ufe0f]?",c="(?:\\u200d(?:"+[s,o,l].join("|")+")"+u+d+")*",h=RegExp(n+"(?="+n+")|"+("(?:"+[s+a+"?",a,o,l,"["+i+"]"].join("|"))+")"+(u+d+c),"g");t.exports=function(e){return e.match(h)||[]}},34170,(e,t,r)=>{var i=e.r(758672),a=e.r(979589),n=e.r(695365);t.exports=function(e){return a(e)?n(e):i(e)}},100236,(e,t,r)=>{t.exports=e.g&&e.g.Object===Object&&e.g},139088,(e,t,r)=>{var i=e.r(100236),a="object"==typeof self&&self&&self.Object===Object&&self;t.exports=i||a||Function("return this")()},630353,(e,t,r)=>{t.exports=e.r(139088).Symbol},892708,(e,t,r)=>{t.exports=function(e,t){for(var r=-1,i=null==e?0:e.length,a=Array(i);++r<i;)a[r]=t(e[r],r,e);return a}},45350,(e,t,r)=>{t.exports=Array.isArray},243436,(e,t,r)=>{var i=e.r(630353),a=Object.prototype,n=a.hasOwnProperty,s=a.toString,o=i?i.toStringTag:void 0;t.exports=function(e){var t=n.call(e,o),r=e[o];try{e[o]=void 0;var i=!0}catch(e){}var a=s.call(e);
1return i&&(t?e[o]=r:delete e[o]),a}},223243,(e,t,r)=>{var i=Object.prototype.toString;t.exports=function(e){return i.call(e)}},377684,(e,t,r)=>{var i=e.r(630353),a=e.r(243436),n=e.r(223243),s=i?i.toStringTag:void 0;t.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?a(e):n(e)}},877289,(e,t,r)=>{t.exports=function(e){return null!=e&&"object"==typeof e}},361884,(e,t,r)=>{var i=e.r(377684),a=e.r(877289);t.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==i(e)}},372537,(e,t,r)=>{var i=e.r(630353),a=e.r(892708),n=e.r(45350),s=e.r(361884),o=1/0,l=i?i.prototype:void 0,d=l?l.toString:void 0;t.exports=function e(t){if("string"==typeof t)return t;if(n(t))return a(t,e)+"";if(s(t))return d?d.call(t):"";var r=t+"";return"0"==r&&1/t==-o?"-0":r}},702922,(e,t,r)=>{var i=e.r(372537);t.exports=function(e){return null==e?"":i(e)}},229821,(e,t,r)=>{var i=e.r(284357),a=e.r(979589),n=e.r(34170),s=e.r(702922);t.exports=function(e){return function(t){var r=a(t=s(t))?n(t):void 0,o=r?r[0]:t.charAt(0),l=r?i(r,1).join(""):t.slice(1);return o[e]()+l}}},232241,(e,t,r)=>{t.exports=e.r(229821)("toUpperCase")}]);

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.