import{c as y,J as C,K as B,y as L,x as b,W as x,e as $}from"./Bj-lS1rC.js";import{_ as w}from"./DKn3T6D2.js";import{d as I,c as u,o as r,a as p,b as o,f as t,u as e,y as P,F as v,z,p as A,m as F,g as N}from"./Bqy-xoU4.js";const j=I({__name:"Accordion",props:{blok:{}},setup(_){const a=_,f=y(),h=u(()=>C(a.blok)),k=u(()=>a.blok.accordionLists.some(l=>{var c;return(c=l.accordionItems)==null?void 0:c.some(s=>s.title.length>0)})),g=f.getMainHeadlineBackgroundColor(a.blok.containerBackgroundColor||"");return(l,c)=>k.value?(r(),p(w,A(F({key:0},a)),{default:o(s=>{var i;return[t(e(B),{class:"mt-10 gap-y-10 md:gap-8",items:(i=h.value)==null?void 0:i.accordionLists,"max-columns":s.accordionLists.length},{default:o(({item:n})=>[t(e(L),{headline:n.headline,"headline-props":{...n.headlineProps,color:e(g)},"show-headline":s.accordionLists.length===2},{default:o(()=>[(r(!0),P(v,null,z(n.accordionItems,(m,d)=>(r(),p(e(b),{key:d,open:d===0&&n.firstAccordionItemOpen,title:m.title},{default:o(()=>[t(e(x),null,{default:o(()=>[t(e($),{document:m.content},null,8,["document"])]),_:2},1024)]),_:2},1032,["open","title"]))),128))]),_:2},1032,["headline","headline-props","show-headline"])]),_:2},1032,["items","max-columns"])]}),_:1},16)):N("",!0)}});export{j as _};