const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./B7moA0Zy.js","./entry.B47RBTT0.css"])))=>i.map(i=>d[i]); import{x as W,r as f,f as a,o as t,g as o,k as d,C as I,F as b,B as j,i as n,H as y,a2 as X,D as Y,h as e,S as L,_ as N,O,al as Z,ag as tt,s as et,b as nt,a7 as at,j as c,K as B,L as D,a6 as F,M,N as ot,am as st,I as lt}from"./B7moA0Zy.js";import{_ as it}from"./CdxtG-CO.js";import{_ as rt}from"./CnjcqSsV.js";const ct=Z(()=>tt(()=>import("./B7moA0Zy.js").then(s=>s.aV),__vite__mapDeps([0,1]),import.meta.url).then(s=>s.default||s)),_t={class:"finishings"},dt={class:"finishings-columns"},mt={class:"swatches"},ut={__name:"Finishings",props:{data:{type:Object}},setup(s){const x=new Map([["link",ct]]);return(k,T)=>{const $=L,u=N,p=O,i=f("lay"),g=f("space");return a((t(),o("div",_t,[d($,{data:{heading:k.$t("finishings"),typo:"3"}},null,8,["data"]),I("div",dt,[(t(!0),o(b,null,j(s.data.finishings,r=>a((t(),n(Y(r.mainImage.length?e(x).get("link"):"div"),{data:r},{default:y(()=>[a((t(),o("div",mt,[(t(!0),o(b,null,j(r.swatch.length?r.swatch:[{}],(v,E)=>(t(),n(u,{style:X({marginLeft:`calc(${E} * var(--swatch-size) / 2`}),data:{image:v?[v]:[],ratio:[1,1],theme:"swatch"}},null,8,["style","data"]))),256))])),[[i,"o"]]),d(p,{data:{text:r.title,typo:4}},null,8,["data"])]),_:2},1032,["data"])),[[i,{dir:"h",fluid:!0,align:["center","start"],gap:"xs"}],[g,{bottom:"xs"}]])),256))])])),[[i,{gap:"m"}]])}}},pt=W(ut,[["__scopeId","data-v-507c5f3a"]]),yt={__name:"Collection",props:{data:{type:Object}},setup(s){const x=s,{title:k,mainImage:T,designers:$,finishings:u,description:p,catalog:i,sections:g,src:r,ratio:v,mobileSrc:E,mobileRatio:z,poster:A,caption:H}=x.data,C={src:r,ratio:v,mobileSrc:E,mobileRatio:z,poster:A,caption:H},{modal:_}=et(nt());return(m,l)=>{const P=N,S=L,R=O,V=ot,q=pt,K=st,G=it,J=lt,Q=rt,h=f("lay"),U=f("pad");return t(),o(b,null,[I("section",null,[d(P,{data:{image:e(T),theme:"hero"}},null,8,["data"]),a((t(),o("div",null,[a((t(),o("div",null,[d(S,{data:{heading:e(k),typo:3,tag:1}},null,8,["data"]),d(S,{data:{heading:("joinEntryTitles"in m?m.joinEntryTitles:e(at))(e($)),typo:3,color:"grey"}},null,8,["data"])])),[[h,{gap:"xs"}]]),a((t(),o("div",null,[e(p)?(t(),n(R,{key:0,data:{text:e(p)}},null,8,["data"])):c("",!0),a((t(),o("div",null,[e(i).url?(t(),n(V,{key:0,onClick:l[0]||(l[0]=w=>_.value="catalog"),data:{themes:["button","light-button"],icon:"arrow"}},{default:y(()=>[B(D(m.$t("catalog")),1)]),_:1})):c("",!0),C.src?(t(),n(V,{key:1,onClick:l[1]||(l[1]=w=>_.value="video"),data:{themes:["button","light-button"],icon:"arrow"}},{default:y(()=>[B(D(m.$t("collection_video_cta")),1)]),_:1})):c("",!0)])),[[h,{dir:"h",gap:"m"}]]),e(u).length?(t(),n(q,{key:1,data:{finishings:e(u)}},null,8,["data"])):c("",!0),d(J,null,{default:y(()=>[(t(),n(F,{to:"#modal"},[e(i).url?a((t(),n(K,{key:0,onCloseModal:l[2]||(l[2]=w=>_.value=!1),data:{url:e(i).url}},null,8,["data"])),[[M,e(_)==="catalog"]]):c("",!0)])),(t(),n(F,{to:"#modal"},[C.src?a((t(),n(G,{key:0,onCloseModal:l[3]||(l[3]=w=>_.value=!1),data:C},null,512)),[[M,e(_)==="video"]]):c("",!0)]))]),_:1})])),[[h,{gap:"l",align:"start",fluid:!0}]])])),[[U,"m"],[h,{dir:m.$mq.m?"h":"v",gap:["m","xs"],align:"start"}]])]),e(g).length?(t(),n(Q,{key:0,data:{sections:e(g)}},null,8,["data"])):c("",!0)],64)}}};export{yt as _};