import{u as $,a as j,w as z,c as F,d as K,e as O,r as b,f as n,g as s,C as R,k as i,h as e,i as B,H as G,j as C,l as J,E as M,_ as Q,S as U,O as W,N as X,v as Y,o as a,K as Z,L as ee}from"./DbhFtoGo.js";import{_ as te}from"./DUUPk-bm.js";import{u as ae}from"./Bj5sKZD6.js";const ue={__name:"[slug]",async setup(ne){var p,g,v,y,h,f;let o,u;const{locale:D}=$(),r=j(),{data:t,error:se}=([o,u]=z(()=>J({key:`finishings-${r.params.slug}`,query:M,variables:{site:D.value,slug:r.params.slug,section:"finishings"},route:r})),o=await o,u(),o);F(t.value.entry,"overlay");const{entry:{title:N,slug:_,file:m,mainImage:S,description:P,sections:d}}=t.value;return $(),ae((p=t.value.entry)==null?void 0:p.seo,((g=t.value.entry)==null?void 0:g.tagline)||((v=t.value.entry)==null?void 0:v.title),(y=t.value.entry)==null?void 0:y.description,(f=(h=t.value.entry.thumbImage)==null?void 0:h[0])==null?void 0:f.url),K()(O(t.value.entry)),(c,le)=>{var k,E,w,I;const V=Q,L=U,q=W,A=X,H=te,T=Y,l=b("lay"),x=b("space");return n((a(),s("main",null,[n((a(),s("div",null,[R("section",null,[i(V,{data:{image:e(S),theme:"hero"}},null,8,["data"]),n((a(),s("div",null,[i(L,{data:{heading:e(N),typo:3,tag:1}},null,8,["data"]),n((a(),s("div",null,[i(q,{data:{text:e(P)}},null,8,["data"]),(E=(k=e(m))==null?void 0:k[0])!=null&&E.url?(a(),B(A,{key:0,data:{url:(I=(w=e(m))==null?void 0:w[0])==null?void 0:I.url,icon:"arrow",themes:["button","light-button"],download:e(_)}},{default:G(()=>[Z(ee(c.$t("download_finishing")),1)]),_:1},8,["data"])):C("",!0)])),[[l,{gap:"l",align:"start"}]])])),[[x,"m"],[l,{dir:c.$mq.m?"h":"v",gap:["m","xs"]}]])]),e(d).length?(a(),B(H,{key:0,data:{sections:e(d)}},null,8,["data"])):C("",!0)])),[[l,{gap:"l"}]]),n((a(),s("section",null,[i(T,{type:"collections",data:{heading:c.$t("finishing_collection",2),finishings:[e(_)],hideIfEmpty:!0}},null,8,["data"])])),[[x,{x:"m",bottom:"m"}]])])),[[l,{gap:"xxl"}]])}}};export{ue as default};