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