import{_ as B}from"./CWzwCku8.js";import{u as D,a as S,s as F,b as V,w as j,c as N,t as R,d as $,e as q,r as z,f as A,g as f,h as a,i as h,F as L,j as O,k as T,l as G,E as H,_ as J,o as n}from"./B7moA0Zy.js";import{_ as K}from"./CnjcqSsV.js";import{u as M}from"./CQOTW_ES.js";import"./BBadndpj.js";import"./Bh2Y0iKH.js";const re={__name:"[[slug2]]",props:{params:{type:Object}},async setup(k){var c,m,i,_,p,y,v,d;let t,o;const{locale:I,t:Q}=D(),s=S(),{meta:{overlay:x}}=s,C=k,{vCard:r}=F(V()),u=x?(c=C.params)==null?void 0:c.slug:((m=s.params)==null?void 0:m.slug2)||((i=s.params)==null?void 0:i.slug)||"home",{data:e,error:l}=([t,o]=j(()=>G({key:`pages-${u}`,query:H,variables:{site:r.value?"en":I.value,slug:u,section:r.value?"virtualCards":"pages"},route:s,...r.value&&{bypassCache:!0}})),t=await t,o(),t);return N(e.value.entry),(l.value||e.value&&!e.value.entry)&&R(l.value),M((_=e.value.entry)==null?void 0:_.seo,(p=e.value.entry)==null?void 0:p.title,null,(d=(v=(y=e.value.entry)==null?void 0:y.mainImage)==null?void 0:v[0])==null?void 0:d.url),$()(q(e.value.entry)),(W,X)=>{var g;const b=B,w=J,E=K,P=z("lay");return A((n(),f("main",null,[a(r)?(n(),h(b,{key:0,data:a(e).entry},null,8,["data"])):(n(),f(L,{key:1},[(g=a(e).entry.mainImage)!=null&&g[0]?(n(),h(w,{key:0,data:{image:a(e).entry.mainImage,theme:"hero"}},null,8,["data"])):O("",!0),T(E,{data:{sections:a(e).entry.sections}},null,8,["data"])],64))])),[[P,{gap:"m"}]])}}};export{re as default};