const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./B7moA0Zy.js","./entry.B47RBTT0.css","./5DTHbx4l.js","./DFlUV-Qy.js","./Page.CTjq8oIB.css","./DowTqUXR.js","./Designer.MqyV8Y34.css"])))=>i.map(i=>d[i]);
import{x as j,n as $,r as F,f as z,o as l,g as c,h as e,i as h,j as u,R as D,F as M,B as N,D as H,S as Y,al as o,ag as r}from"./B7moA0Zy.js";import Z from"./CHluNe9-.js";const T=o(()=>r(()=>import("./B7moA0Zy.js").then(t=>t.aZ),__vite__mapDeps([0,1]),import.meta.url).then(t=>t.default||t)),q=o(()=>r(()=>import("./5DTHbx4l.js"),__vite__mapDeps([2,0,1]),import.meta.url).then(t=>t.default||t)),P=o(()=>r(()=>import("./DFlUV-Qy.js"),__vite__mapDeps([3,0,1,4]),import.meta.url).then(t=>t.default||t)),G=o(()=>r(()=>import("./B7moA0Zy.js").then(t=>t.a$),__vite__mapDeps([0,1]),import.meta.url).then(t=>t.default||t)),J=o(()=>r(()=>import("./DowTqUXR.js"),__vite__mapDeps([5,0,1,6]),import.meta.url).then(t=>t.default||t)),A=o(()=>r(()=>import("./B7moA0Zy.js").then(t=>t.a_),__vite__mapDeps([0,1]),import.meta.url).then(t=>t.default||t)),K=o(()=>r(()=>import("./B7moA0Zy.js").then(t=>t.b1),__vite__mapDeps([0,1]),import.meta.url).then(t=>t.default||t)),I=o(()=>r(()=>import("./B7moA0Zy.js").then(t=>t.b0),__vite__mapDeps([0,1]),import.meta.url).then(t=>t.default||t)),L=o(()=>r(()=>import("./B7moA0Zy.js").then(t=>t.aY),__vite__mapDeps([0,1]),import.meta.url).then(t=>t.default||t)),Q={key:0},U={__name:"Stack",props:{data:{type:Object}},setup(t){const b=t,O=new Map([["collections_default_Entry",T],["finishings_default_Entry",q],["pages_default_Entry",P],["productTypes_default_Entry",P],["projects_default_Entry",T],["stories_default_Entry",G],["designers_default_Entry",J],["salesNetwork_default_Entry",A],["technicalService_default_Entry",A],["awards_default_Entry",K],["press_Asset",I],["catalogs_default_Entry",I],["zucchetti_Product",L],["kos_Product",L]]),{children:[_],space:W}=b.data,{__typename:p,id:R,heading:d,cta:m,layout:i,align:V}=_||{},s=(_==null?void 0:_.entries)||(_==null?void 0:_.products)||(_==null?void 0:_.stories)||[],B=$(()=>{let n=s.slice(0,3);switch(i){case"small":n=s;break;case"large":n=s.slice(0,2);break;case"full":n=s.slice(0,1);break}return n}),w=n=>{let a=i;switch(i){case"medium":y.get(p)==="pages"&&s.length<=2&&(a="large");case"highlight-left":n===0?a="large":a="small";break;case"highlight-center":n===1?a="large":a="small";break;case"highlight-right":n===2?a="large":a="small";break}return a},y=new Map([["sections_entries_BlockType","entries"],["sections_pages_BlockType","pages"],["sections_products_BlockType","products"]]);return(n,a)=>{var g,E,v;const C=Y,S=Z,f=F("lay");return z((l(),c("div",null,[e(d)||(g=e(m))!=null&&g.url?z((l(),c("div",Q,[e(d)?(l(),h(C,{key:0,data:{heading:e(d),typo:"3"}},null,8,["data"])):u("",!0),(E=e(m))!=null&&E.url?(l(),h(S,{key:1,data:{cta:e(m),typo:3,color:"grey"}},null,8,["data"])):u("",!0)])),[[f,{dir:"h",align:["end","even"],fluid:!0}]]):u("",!0),e(_)?(l(),c("div",{key:1,class:D(["container",e(y).get(e(p)),(v=e(s)[0])==null?void 0:v.__typename.split("_")[0],e(i),e(V),`l${e(s).length}`])},[(l(!0),c(M,null,N(e(y).get(e(p))==="entries"?e(B):e(s),(k,x)=>(l(),h(H(e(O).get(k.__typename)),{class:D([`i${x}`]),data:{...k,size:w(x),stackId:e(R)}},null,8,["class","data"]))),256))],2)):u("",!0)])),[[f,{gap:"xs"}]])}}},et=j(U,[["__scopeId","data-v-b07690f8"]]);export{et as default};