import{d as v,$ as h,w as x,l as C}from"./AHiYuuv4.js";import{u as D}from"./DNc4hpnL.js";import{l as w,al as B,E as s,P as o,V as c,J as r,Z as d,L as u,N,H as V,Q as F,U as S,a2 as U,O as $,u as j,F as z,D as A}from"./DEIzhR9A.js";const E={key:0,class:"max-w-lg"},L={class:"grid grid-cols-2 justify-items-start"},H=w({__name:"Accordion",props:{blok:{type:Object,required:!0}},setup(t){const m=t,_=v(),{marginClasses:k}=D(m.blok),p=l=>`#${a(l)}`!==_.hash,a=l=>h(l);return(l,i)=>{var n;const b=x,f=C,g=B("editable");return s(),o("div",null,[t.blok.has_link_list?(s(),o("div",E,[c("ul",L,[(s(!0),o(r,null,d(t.blok.entries||[],e=>(s(),o("li",{key:e._uid,class:"my-1 text-md font-bold"},[u(b,{icon:"UiDropdown",class:"my-1 mr-2 size-2.5"}),u(f,{to:"#"+a((e==null?void 0:e.link_title)||"")},{default:N(()=>[V(F(e.link_title),1)]),_:2},1032,["to"])]))),128))]),i[0]||(i[0]=c("hr",{class:"mt-8"},null,-1))])):S("",!0),U((s(),o("div",{class:$(["divide-y divide-gray-300",j(k)])},[(s(!0),o(r,null,d((n=t.blok)==null?void 0:n.entries,e=>(s(),z(A(e.component),{key:e._uid,blok:e,collapsed:p((e==null?void 0:e.link_title)||"")},null,8,["blok","collapsed"]))),128))],2)),[[g,t.blok]])])}}});export{H as default};