import{r as t,h as e,a as s}from"./p-ytAlchvh.js";const c=class{constructor(e){t(this,e)}getClass(){const t=["ecl-tag-set",`sc-ecl-tag-${this.theme}`,this.styleClass];return this.colorMode&&t.push(`ecl-color-mode--${this.colorMode}`),t.join(" ")}componentWillLoad(){var t;this.theme=null!==(t=document.documentElement.getAttribute("data-ecl-theme"))&&void 0!==t?t:this.theme||"ec"}componentDidLoad(){Array.from(this.el.querySelectorAll("ecl-tag")).forEach((t=>{const e=document.createElement("li");e.className=`ecl-tag-set__item sc-ecl-tag-${this.theme}`,e.appendChild(t),this.listEl.appendChild(e)}))}render(){return e("ul",{key:"4e760bec5e90ca30234ba16496ac2317ac943c32",class:this.getClass(),ref:t=>this.listEl=t})}get el(){return s(this)}};export{c as ecl_tag_set}