import{p as t,H as e,h as s,t as c}from"./p-BHHBMN0G.js";const o=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost()}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 s("ul",{key:"4e760bec5e90ca30234ba16496ac2317ac943c32",class:this.getClass(),ref:t=>this.listEl=t})}get el(){return this}},[2,"ecl-tag-set",{styleClass:[1,"style-class"],theme:[1025],colorMode:[1,"color-mode"]}]),l=o,a=function(){"undefined"!=typeof customElements&&["ecl-tag-set"].forEach((t=>{"ecl-tag-set"===t&&(customElements.get(c(t))||customElements.define(c(t),o))}))};export{l as EclTagSet,a as defineCustomElement}