const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./D4yHFrZu.js","./B7moA0Zy.js","./entry.B47RBTT0.css","./BdWf799a.js","./B2q5GHEG.js","./Input.B54mgEOF.css","./Form.DCZyvmil.css","./CHluNe9-.js","./Links.reUWtmYt.css","./RPxFK6I_.js","./Embed.BZKsxGjT.css","./BBadndpj.js","./BNirV_d7.js","./Media.BIpva1WR.css","./D2-pqGpV.js","./Stack.C0nyoNDi.css","./DxwDr0xd.js","./Table.DYhBOrbK.css","./Bh2Y0iKH.js","./BYSYpkUj.js"])))=>i.map(i=>d[i]); import{x as D,z as R,au as V,m as O,r as y,f,o as m,g as x,F as z,B as L,i as P,R as A,D as w,h as v,av as b,al as a,ag as _,ab as j,a as $,s as q,b as C,a0 as M,aw as F}from"./B7moA0Zy.js";const N=a(()=>_(()=>import("./D4yHFrZu.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>e.default||e)),G=a(()=>_(()=>Promise.resolve().then(()=>oe),void 0,import.meta.url).then(e=>e.default||e)),H=a(()=>_(()=>import("./BdWf799a.js"),__vite__mapDeps([3,1,2,4,5,6]),import.meta.url).then(e=>e.default||e)),J=a(()=>_(()=>import("./CHluNe9-.js"),__vite__mapDeps([7,1,2,8]),import.meta.url).then(e=>e.default||e)),K=a(()=>_(()=>import("./RPxFK6I_.js"),__vite__mapDeps([9,1,2,10]),import.meta.url).then(e=>e.default||e)),Q=a(()=>_(()=>import("./BBadndpj.js"),__vite__mapDeps([11,1,2]),import.meta.url).then(e=>e.default||e)),U=a(()=>_(()=>import("./BNirV_d7.js"),__vite__mapDeps([12,1,2,13]),import.meta.url).then(e=>e.default||e)),W=a(()=>_(()=>import("./D2-pqGpV.js"),__vite__mapDeps([14,1,2,7,8,15]),import.meta.url).then(e=>e.default||e)),X=a(()=>_(()=>import("./DxwDr0xd.js"),__vite__mapDeps([16,1,2,17]),import.meta.url).then(e=>e.default||e)),Y=a(()=>_(()=>import("./Bh2Y0iKH.js"),__vite__mapDeps([18,1,2]),import.meta.url).then(e=>e.default||e)),Z=a(()=>_(()=>import("./BYSYpkUj.js"),__vite__mapDeps([19,1,2]),import.meta.url).then(e=>e.default||e)),ee=["id"],te={__name:"Section",props:{data:{type:Object}},emits:["sectionReady"],setup(e,{emit:B}){const T=e,E=B,u=new Map([["sections_archive_BlockType",N],["sections_blocks_BlockType",G],["sections_form_BlockType",H],["sections_ctas_BlockType",J],["sections_embed_BlockType",K],["sections_heading_BlockType",Q],["sections_media_BlockType",U],["sections_stack_BlockType",W],["sections_table_BlockType",X],["sections_text_BlockType",Y],["sections_thumb_BlockType",Z]]),k=R(),p=R(0);return V(()=>{O(p,d=>{d===T.data.children.filter(o=>o.__typename==="sections_archive_BlockType").length&&E("sectionReady")},{immediate:!0})}),(d,o)=>{const c=y("space"),i=y("grid");return f((m(),x("section",{class:A([e.data.sectionTheme]),id:e.data.identifier||!1,ref_key:"section",ref:k},[(m(!0),x(z,null,L(e.data.children,(n,r)=>{var l,s;return f((m(),P(w(v(u).get(n.__typename)),{onArchiveReady:o[0]||(o[0]=h=>p.value+=1),data:{...n,section:!0,nested:e.data.level>1||e.data.sectionTheme==="boxed"||e.data.sectionLayout==="columns",sectionTheme:e.data.sectionTheme},class:A([{"custom-space":n.space!=="default"}])},null,40,["data","class"])),[[c,{bottom:e.data.sectionTheme==="boxed"?"0":("useSpacer"in d?d.useSpacer:v(b))(n.space,n.__typename.split("_")[1]==="stack"?(l=n.children[0])==null?void 0:l.__typename.split("_")[1]:n.__typename.split("_")[1],(s=e.data.children[r+1])==null?void 0:s.__typename.split("_")[1])}]])}),256))],10,ee)),[[i,{cols:e.data.sectionLayout==="columns"?2:1,gap:[e.data.sectionTheme==="boxed"?"xxs":"0","xxs"]}]])}}},I=D(te,[["__scopeId","data-v-3c90d6e0"]]),oe=Object.freeze(Object.defineProperty({__proto__:null,default:I},Symbol.toStringTag,{value:"Module"})),ne={class:"sections"},se={__name:"Sections",props:{data:{type:Object}},setup(e){const B=e,{sections:T}=B.data,E=j("mq"),u=$(),{headerEl:k}=q(C()),p=R(0);O(p,o=>{if(o===T.length&&u.hash){const c=document.querySelector(u.hash);if(c){const{top:i}=M(c);setTimeout(()=>{window.scrollTo({top:i.value-k.value.height,behavior:"smooth"})},1e3)}}});const d=(o,c)=>{var l,s,h,g,S;const i=["sections_heading_BlockType","sections_text_BlockType","sections_form_BlockType"],n=["sections_archiveAwards_BlockType","sections_archiveSalesNetwork_BlockType","sections_archiveTechnicalService_BlockType"];let r="0";if(o===0&&F()(u)!=="stories-slug"){const t=(l=c.children)==null?void 0:l[0];(i.includes(t==null?void 0:t.__typename)||t!=null&&t.heading||(h=(s=t==null?void 0:t.children)==null?void 0:s[0])!=null&&h.heading||n.includes((S=(g=t==null?void 0:t.children)==null?void 0:g[0])==null?void 0:S.__typename))&&(r="xl")}return r};return(o,c)=>{const i=I,n=y("cols"),r=y("space"),l=y("grid");return f((m(),x("div",ne,[(m(!0),x(z,null,L(v(T),(s,h)=>f((m(),P(i,{onSectionReady:c[0]||(c[0]=g=>p.value+=1),data:{...s}},null,8,["data"])),[[n,(s.sectionTheme==="narrow"||s.sectionTheme==="boxed")&v(E).m?"2 / -2":"1 / -1"],[r,{bottom:("useSpacer"in o?o.useSpacer:v(b))(s.space,"section"),top:d(h,s)}]])),256))])),[[r,{x:"m"}],[l,{cols:4,gap:"0"}]])}}},_e=D(se,[["__scopeId","data-v-59acdf7a"]]);export{_e as _};