import{t as w,a as d,e as A}from"./DW82XzVD.js";import{K as O,L as K,t as u,s as b,c as o,g as v,M as L,r as s,f as M}from"./DNoLdQ8h.js";import{s as j}from"./Cmlyvw1l.js";import{i as q}from"./Df5UjoG1.js";import{s as B}from"./DixXZtc5.js";import{e as C}from"./DFfXPDCS.js";import{a as g,s as D}from"./vLZe4-wl.js";import{d as E}from"./CDjKoFya.js";import{p as F}from"./HhzGKXuL.js";var G=(_,e)=>L(e,!v(e)),H=w('<button class="accordion__toggle-button svelte-zwu3b9"><span class="heading-2 svelte-zwu3b9"> </span> <img alt="expand icon"></button>'),I=w('<section class="accordion svelte-zwu3b9"><!> <div><div class="accordion__content-inner svelte-zwu3b9"><!></div></div></section>');function W(_,e){const h=F(e,"defaultOpened",3,!1);let n=O(K(h()));var i=I(),m=o(i);C(m,()=>e.tag,!1,(t,r)=>{g(t,0,"accordion__header svelte-zwu3b9");var a=H();a.__click=[G,n];var l=o(a),z=o(l,!0);s(l);var y=b(l,2);s(a),u(()=>{j(z,e.title),D(y,"src",`/icons/${v(n)?"keyboard_arrow_up":"keyboard_arrow_down"}.svg`)}),d(r,a)});var c=b(m,2);let f;var p=o(c),k=o(p);{var x=t=>{var r=A(),a=M(r);B(a,()=>e.children),d(t,r)};q(k,t=>{e.children&&t(x)})}s(p),s(c),s(i),u(t=>f=g(c,1,"accordion__content svelte-zwu3b9",null,f,t),[()=>({"accordion__content--expanded":v(n)})]),d(_,i)}E(["click"]);export{W as A};
