import{r as c,h as t,H as e,c as s}from"./p-841644e5.js";const i=".sc-ecl-accordion-item-h{display:block}";const o=class{constructor(t){c(this,t);this.styleClass=undefined;this.label=undefined;this.expanded=undefined;this.theme="ec"}getClass(){return[`ecl-accordion__item`,this.styleClass].join(" ")}render(){return t(e,{class:this.getClass()},t("h3",{class:"ecl-accordion__title"},t("button",{"data-ecl-accordion-toggle":true,"aria-controls":`${this.el.id}-content`,class:"ecl-accordion__toggle","aria-expanded":this.expanded?"true":"false"},t("span",{class:"ecl-accordion__toggle-flex"},t("span",{class:"ecl-accordion__toggle-indicator"},t("ecl-icon",{icon:this.expanded?"minus":"plus",theme:this.theme,size:"m","style-class":"ecl-accordion__toggle-icon","data-ecl-accordion-icon":true})),t("span",{class:"ecl-accordion__toggle-title"},this.label)))),t("div",{class:"ecl-accordion__content",role:"region",id:`${this.el.id}-content`,hidden:this.expanded!==true},t("slot",null)))}static get assetsDirs(){return["build"]}get el(){return s(this)}};o.style=i;export{o as ecl_accordion_item};
//# sourceMappingURL=p-bca30a38.entry.js.map