1import{L as u,w as f,a as g,u as h}from"./chunk-JZWAC4HX-nSXg4XLB.js";import{j as r}from"./jsx-runtime-eQVXvh4J.js";import{C as y}from"./cmsEditQueryParamKeys-CZNF589n.js";import{a as x}from"./index-Bd5AmG6J.js";import{P as l}from"./Prose-DLB0N-la.js";import{F as i}from"./FkaTypography-HFlcp8eZ.js";import{F as b}from"./FkaErrorBoundary-CZXJSwUu.js";import{u as j}from"./EditModeContext-apzsAwM9.js";import{g as c}from"./seoUtils-D5xNu18N.js";import{c as v}from"./shouldRevalidate.utils-J9GfIOkS.js";import"./debug-build-Be9Orybv.js";import"./HttpResponseStatus-DjVhqDBb.js";import"./index-PYIn5Inu.js";import"./useIsHydrated-BOq1nahz.js";import"./VatMode-CcZekszB.js";import"./ImageUtils-2WyxdenD.js";import"./urlUtils-DE8B0BTU.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"felleskjopet-web@dc4990d87603059a7b50dc16680f9a3de15016d6"}}catch{}})();(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=(function(a){for(var o=1;o<arguments.length;o++){var t=arguments[o];if(t!=null)for(var n in t)t.hasOwnProperty(n)&&(a[n]=t[n])}return a})({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:felleskjopet-web":!0})}catch{}})();try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="68e0a2b6-db9c-4cff-9a7e-e99aec89d345",e._sentryDebugIdIdentifier="sentry-dbid-68e0a2b6-db9c-4cff-9a7e-e99aec89d345")})()}catch{}const m=({transparent:e})=>r.jsx("div",{role:"separator",className:`${e?"bg-transparent":"bg-border-decoration-quaternary-soft"} my-4 h-0.5`}),w=({groupedBrandPages:e,Heading:a,MainIntro:o,MainBody:t,isEditMode:n})=>r.jsxs(r.Fragment,{children:[r.jsx(i,{"data-epi-edit":n?"Heading":void 0,as:"h1",variant:"heading-4xl-bold",textAlign:"center",children:a}),r.jsx("div",{role:"separator",className:"bg-border-decoration-quaternary-soft m-auto mb-8 h-0.5 w-10 justify-center"}),o&&r.jsx(l,{"data-epi-edit":n?"MainIntro":void 0,size:"large",className:"max-w-reading-width m-auto mt-4 mb-8",children:r.jsx("p",{children:o})}),t?.Html&&r.jsx(l,{"data-epi-edit":n?"MainBody":void 0,className:"mt-14",dangerouslySetInnerHTML:t?.Html}),r.jsx("div",{className:"max-w-reading-width mx-auto mb-8",children:r.jsx(E,{groupedBrandPages:e})}),r.jsxs("div",{className:"mx-auto grid max-w-260 grid-cols-[auto_1fr] gap-2 lg:gap-4",children:[e.map(({letter:s,brandPages:d},p)=>r.jsxs(x.Fragment,{children:[r.jsx("div",{id:s,className:"col-span-2 col-start-1",children:r.jsx(m,{transparent:p===0})}),r.jsx(i,{as:"h2",color:"highlight-primary-strong",variant:"heading-5xl-bold",className:"capitalize lg:self-center",children:s}),r.jsx(N,{brands:d})]},s)),r.jsx("div",{className:"col-span-2 col-start-1",children:r.jsx(m,{})})]})]}),E=({groupedBrandPages:e})=>r.jsx("nav",{className:"flex flex-wrap gap-3",children:e.map(({letter:a})=>r.jsx(i,{as:u,color:"subtle",to:`#${a}`,className:"decoration-text-brand-primary-subtle px-1 capitalize underline underline-offset-4",children:a},a))}),N=({brands:e})=>r.jsx("ul",{className:"grid grid-cols-2 gap-0.5 gap-x-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5",children:e.map(({brandName:a,brandUrl:o},t)=>r.jsx("li",{children:r.jsx(i,{as:u,className:"block p-1 hover:underline",to:o,children:a})},t))}),q=e=>{const{loaderData:a}=e;return a?c(e,{title:a.cmsPage.Heading||"Merkevarer",description:a.cmsPage.MainIntro||void 0}):c(e)},K=f(function({loaderData:a}){const{groupedBrandPages:o,cmsPage:{Heading:t="Merkevarer",MainIntro:n,MainBody:s}}=a,d=j();return r.jsx(w,{groupedBrandPages:o,Heading:t,MainIntro:n,MainBody:s,isEditMode:d})}),$=g(function(){const a=h();return r.jsx(b,{title:"Ops, noe gikk galt med listen over merkevarer",error:a})}),Q=v({searchParams:Object.values(y)});export{$ as ErrorBoundary,K as default,q as meta,Q as shouldRevalidate}; 2//# sourceMappingURL=route-aCwW22n3.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.