1import{S as h}from"./DTjlZZPT.js";import{_ as B}from"./DuNzLSVP.js";import{P as S}from"./ezN8YLEu.js";import{_ as D}from"./DhQaRhGS.js";import{d as C,H as w,E,u as M,B as O,Q as H,o as t,c as s,F as _,r as y,g as b,t as f,b as l,w as g,v as G,f as x,M as Q,l as T,x as j,e as L,af as z,N as J}from"#entry";import{u as K}from"./K7_bP0O3.js";import"./DlAUqK2U.js";import"./r75jXxd_.js";import"./D_xEFBB_.js";import"./CUlkmFnH.js";import"./D12usD_H.js";import"./BxGPsHLu.js";import"./DmxF5tF6.js";import"./CxoM7Mdn.js";import"./CP9pE4fJ.js";import"./erzjY4bj.js";import"./CobDqpzJ.js";import"./DG2Eh2UX.js";import"./CeMEcFCK.js";import"./Bjt440Fu.js";import"./DfdDqJ0w.js";const U={class:"layout-container mb-32 md:mb-56"},W={class:"type-headline-lg-medium md:type-headline-xl-desktop basis-1/4"},X={class:"inline-block bg-darkest text-lightest rounded-tiny py-4 px-8 ml-12 uppercase type-tiny-medium leading-single whitespace-nowrap empty:hidden"},Y=C({__name:"BrandListing",async setup(i){let o,c;const p=([o,c]=w(()=>E()),o=await o,c(),o),{replaceLinksInStoryBlokResponse:u}=Q(),m=M(),e=O(),N=e.query&&e.query._storyblok&&e.query._storyblok!==""?`${m.currentStory.full_slug}`:`${m.storyblokBasePath}${m.currentStory.full_slug}`,v=T([]),{data:P}=([o,c]=w(()=>p.get("cdn/stories/",{version:H().public.storyblokStoriesVersion,starts_with:N,is_startpage:0,per_page:100,excluding_fields:"seo,body,feedSettings,visualAppearance,_editable",content_type:"BrandPage"})),o=await o,c(),o),A=u(P.stories).filter(n=>n.content.showInAutomaticList).sort((n,r)=>n.content.brandName.localeCompare(r.content.brandName,"sv")).map(n=>({brandName:n.content.brandName,brandFlag:n.content.brandFlag,link:n.full_slug})),d={},$=/[0-9]/g;return A.forEach(n=>{let r=n.brandName.charAt(0);r.match($)&&(r="0 - 9"),d[r]||(d[r]=[]),d[r].push(n)}),v.value=d,(n,r)=>{const F=D;return t(),s("div",U,[(t(!0),s(_,null,y(x(v),(R,I,V)=>(t(),s("div",{key:V,class:"md:flex md:w-full items-start md:border-b border-light md:py-36"},[b("div",W,f(I),1),b("div",null,[(t(!0),s(_,null,y(R,(k,q)=>(t(),l(F,{key:q,to:k.link,hreflang:x(m).linkLocale,class:"block smOnly:border-b border-light type-sm md:type-base smOnly:py-20 smOnly:last:mb-28 md:mb-20 md:last:m-0"},{default:g(()=>[G(f(k.brandName)+" ",1),b("div",X,f(k.brandFlag),1)]),_:2},1032,["to","hreflang"]))),128))])]))),128))])}}}),Z={class:"BrandListingPage relative"},ee={class:"w-full overflow-hidden pb-56 md:pb-64"},Se=C({__name:"BrandListingPage",props:{blok:{}},setup(i){const o=i;return o.blok.seo&&K().createMeta(o.blok.seo),(c,p)=>{const u=J("StoryblokComponent"),m=z("editable");return t(),s("div",Z,[j((t(),s("div",ee,[p[0]||(p[0]=b("div",{class:"topMarginReference"},null,-1)),L(B,{blok:i.blok,"exclude-top-level":!0},null,8,["blok"]),(t(!0),s(_,null,y(i.blok.body,(e,a)=>(t(),l(h,{key:e._uid,blok:e},{default:g(()=>[e.component==="ProductList"?(t(),l(S,{key:0,blok:e,placement:a},null,8,["blok","placement"])):(t(),l(u,{key:1,blok:e,placement:a},null,8,["blok","placement"]))]),_:2},1032,["blok"]))),128)),L(Y),(t(!0),s(_,null,y(i.blok.bodyAfter,(e,a)=>(t(),l(h,{key:e._uid,blok:e,placement:a},{default:g(()=>[e.component==="ProductList"?(t(),l(S,{key:0,blok:e,placement:a},null,8,["blok","placement"])):(t(),l(u,{key:1,blok:e,placement:a},null,8,["blok","placement"]))]),_:2},1032,["blok","placement"]))),128))])),[[m,i.blok]])])}}});export{Se as default};
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.