import{p as t,t as e,H as a,h as o}from"./p-Bpcl2TqF.js";import{i as s,d as c,t as i}from"./p-94ZtGp9D.js";const n=()=>`:host{display:block}.accordion-wrapper{display:flex;flex-direction:column;gap:8px;font-family:var(--ifx-font-family)}`;const r=t(class t extends a{constructor(t){super();if(t!==false){this.__registerHost()}this.__attachShadow()}get el(){return this}autoCollapse=false;async componentDidLoad(){if(!s(this.el)){const t=c();i("ifx-accordion",await t)}}async onItemOpen(t){if(this.autoCollapse){const e=Array.from(this.el.querySelectorAll("ifx-accordion-item"));for(const a of e){const e=a;if(e!==t.target&&await e.open){e.open=false}}}}render(){return o("div",{key:"3c3cc80be721384a1a8e7cb52d8480f11fdbc8ea",class:"accordion-wrapper"},o("slot",{key:"8216da5ba75604ada6f177eab26359e35d8d13ae"}))}static get delegatesFocus(){return true}static get style(){return n()}},[785,"ifx-accordion",{autoCollapse:[4,"auto-collapse"]},[[0,"ifxOpen","onItemOpen"]]]);function f(){if(typeof customElements==="undefined"){return}const t=["ifx-accordion"];t.forEach((t=>{switch(t){case"ifx-accordion":if(!customElements.get(e(t))){customElements.define(e(t),r)}break}}))}export{r as A,f as d};
//# sourceMappingURL=p-B3NVUs6O.js.map