1import z from"./BhlKjn-p.js";import{u as E}from"./DImwG1cz.js";import{p as L,a as M}from"./CdDmCAXX.js";import{e as T}from"./kEcML-m6.js";import{u as $,n as q}from"./Dp6czNMG.js";import{u as A}from"./Bp9IwFfN.js";import{u as D}from"./opPOqDw0.js";import{u as b}from"./BYHoC4vs.js";import{u as I}from"./CApQtPB1.js";import{u as R}from"./Cv5ydQsc.js";import{c as U}from"./D6n7F_Nn.js";import{u as j}from"./EFJPUyCt.js";import{d as F,s as d,a3 as G,u as i,o as u,c as f,a as y,f as J,e}from"./7wLLGBw6.js";import"./D_KgNNOu.js";import"./2BqOZB2Z.js";import"./CLk8choT.js";import"./B-XSawTn.js";import"./C9rM7IoF.js";import"./DzIAryYo.js";import"./DjwRFtxh.js";import"./C3wwnLB9.js";import"./B-OxpdkT.js";import"./BJ2ClxiI.js";import"./IqoUnNbk.js";import"./DWtR54Pl.js";import"./DuAV58dt.js";import"./DQ6VWcer.js";import"./DlAUqK2U.js";import"./Gh-jFvkY.js";import"./CEMNN0-S.js";import"./CHx6LYcc.js";import"./BOPot54M.js";import"./PPVm8Dsz.js";import"./B57xfjda.js";import"./CMVG5Lup.js";import"./C0F6oAUf.js";import"./DRy4sJuF.js";import"./BZTqD62A.js";import"./1x_kSl0R.js";import"./BwzxQt9l.js";import"./BV_yJOpR.js";import"./Bv2tPn35.js";import"./Fx7vxA9P.js";import"./BeE0UqtL.js";import"./oVinqaqj.js";import"./CCBgFTxl.js";import"./DdxH3VbI.js";import"./FrYzWg11.js";import"./DEH-vWvG.js";import"./D-uV3PQq.js";import"./I5kZpYmW.js";import"./DH0ImDce.js";import"./CQKBV69e.js";import"./Ctpuai81.js";import"./DShtZKlw.js";import"./Cj68UpZQ.js";const K={key:1},N={key:0},Wt=F({__name:"index",async setup(O){let o,a;const p=$(),s=E(),{fetchStoryblokStory:k}=A(),{t:l}=D(),m=e(()=>s.site==="bangerhead"),_=e(()=>p.meta.languagePrefix??s.market),c=e(()=>M({market:_.value,includeMarketPrefix:!!p.meta.languagePrefix})),h=e(()=>m.value?c.value:"/brand");function g(t){const n=t.indexOf("?");return n>=0?t.slice(n):""}m.value&&!L(p.path,c.value)&&([o,a]=d(()=>q(`${c.value}${g(p.fullPath)}`,{replace:!0})),await o,a());const{data:v}=([o,a]=d(async()=>b(`brand-index-${s.storyblokContentRoot}`,async()=>{try{return await k("brand")}catch{return null}})),o=await o,a(),o),r=e(()=>v.value?.story??null),x=I(r),B=e(()=>{const t="brand.azMetaDescription",n=l(t);return n===t?void 0:n}),{data:S,error:C}=([o,a]=d(()=>b(()=>["brand-home",s.market||"default",s.storyblokLanguage||"default"].join("-"),()=>{if(!m.value)return Promise.resolve(null);const{fetchBrandHome:t}=R();return t()},"$2_ChgJ1azy")),o=await o,a(),o),P=e(()=>S.value?.groups??[]);if(m.value&&C.value)throw U({statusCode:502,statusMessage:"Unable to load Bangerhead brands"});return j(()=>{const t=T(r.value?.content,r.value?.name||l("brand.azTitle"));return{title:t.title||l("brand.azTitle"),description:t.description||B.value,canonical:h.value,robots:t.robots,image:t.image,alternateLinks:x.value}}),(t,n)=>{const w=z,H=G("StoryblokComponent");return i(m)?(u(),f(w,{key:0,groups:i(P),story:i(r)},null,8,["groups","story"])):(u(),y("div",K,[i(r)?i(r).content?.component?(u(),f(H,{key:1,blok:i(r).content},null,8,["blok"])):J("",!0):(u(),y("h1",N,"Brand"))]))}}});
1export{Wt 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.