import{r as t,h as e,a as l}from"./p-ytAlchvh.js";const i=class{constructor(e){t(this,e),this.others=!1}getClass(){return["ecl-file__translation-container",`sc-ecl-file-${this.theme}`,this.styleClass].join(" ")}componentWillLoad(){var t;this.theme=null!==(t=document.documentElement.getAttribute("data-ecl-theme"))&&void 0!==t?t:this.theme||"ec"}componentDidRender(){const t=this.el.querySelectorAll(".ecl-file__translation-item").length,e=document.createTextNode(` (${t}) `);this.el.querySelector(".ecl-file__translation-toggle")&&this.el.querySelector(".ecl-file__translation-toggle .ecl-button__icon").before(e)}render(){return e("div",{key:"217c411335fdf9aaf79b9f90a168bc262a1030c5",class:this.getClass(),"data-ecl-file-translation-container":!0},e("ecl-button",{key:"e3f4f9ac27c432c97e4e2fd209311d2fdce70857",styleClass:`ecl-file__translation-toggle sc-ecl-file-${this.theme}`,variant:"tertiary","data-ecl-file-translation-toggle":!0,theme:this.theme},this.toggleLabel,e("ecl-icon",{key:"c17979edc0afcb4afa62f103602ac146a8132f59",styleClass:"ecl-button__icon ecl-button__icon--after",icon:"corner-arrow",rotate:"180",size:"fluid"})),e("ul",{key:"cf9704b444d2063298f28532d7438a0346f49059",class:`ecl-file__translation-list sc-ecl-file-${this.theme}`},e("slot",{key:"7edaa3370f47be8502f0debf8c780fb14cbe5dcc"}),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{i as ecl_file_translations}