import{r as t,h as e,g as l}from"./p-5bf73c0f.js";const s=class{constructor(e){t(this,e);this.theme="ec";this.styleClass=undefined;this.toggleLabel=undefined;this.others=false}getClass(){const t=[`ecl-file__translation-container`,`sc-ecl-file-${this.theme}`,this.styleClass];return t.join(" ")}componentDidRender(){const t=this.el.querySelectorAll(".ecl-file__translation-item").length;const e=document.createTextNode(`( ${t} )`);if(this.el.querySelector(".ecl-file__translation-toggle")){this.el.querySelector(".ecl-file__translation-toggle .ecl-button__label").appendChild(e)}}render(){return e("div",{class:this.getClass(),"data-ecl-file-translation-container":true},e("ecl-button",{styleClass:`ecl-file__translation-toggle sc-ecl-file-${this.theme}`,variant:"ghost","data-ecl-file-translation-toggle":true,theme:this.theme},this.toggleLabel,e("ecl-icon",{styleClass:"ecl-button__icon ecl-button__icon--after",icon:"corener-arrow",transform:"rotate-180",size:"fluid"})),e("ul",{class:`ecl-file__translation-list sc-ecl-file-${this.theme}`},e("slot",null),this.others?e("li",{class:`ecl-file__translation-item ecl-file__translation-description sc-ecl-file-${this.theme}`},e("slot",{name:"others"})):""))}get el(){return l(this)}};export{s as ecl_file_translations};
//# sourceMappingURL=p-ed2e6c04.entry.js.map