import{p as c,H as e,h as i,t}from"./p-BHHBMN0G.js";const o=c(class extends e{constructor(c){super(),!1!==c&&this.__registerHost(),this.styleClass="",this.icon="",this.size="xs",this.family="",this.titleTag=""}componentWillLoad(){var c;this.theme=null!==(c=document.documentElement.getAttribute("data-ecl-theme"))&&void 0!==c?c:this.theme||"ec"}getClass(){const c=this.sprite?"ecl":"wt",e=[this.sprite?"ecl-icon":`wt-icon${this.family?`-${this.family}`:""}--${this.icon}`,...this.sprite?[]:["ecl-icon"],`ecl-icon--${this.size}`,this.styleClass];return this.color&&e.push(`${c}-icon--${this.color}`),this.flip&&e.push(`${c}-icon--flip-${this.flip}`),this.rotate&&e.push(`${c}-icon--rotate-${this.rotate}`),"wt"===c&&e.push("wt-icon--placeholder"),e.join(" ")}render(){return Object.assign({},this.sprite?i("svg",{class:this.getClass()},this.titleTag?i("title",null,this.titleTag):"",i("use",{xlinkHref:`${this.sprite}#${this.icon}`})):i("span",{class:this.getClass()}))}static get style(){return{ec:'.ecl-icon.sc-ecl-icon-ec{fill:currentcolor;margin:0;transition:transform .3s ease-in-out}.ecl-icon--2xs.sc-ecl-icon-ec{height:1rem;width:1rem}.ecl-icon--xs.sc-ecl-icon-ec{height:1.125rem;width:1.125rem}.ecl-icon--s.sc-ecl-icon-ec{height:1.25rem;width:1.25rem}.ecl-icon--m.sc-ecl-icon-ec{height:1.5rem;width:1.5rem}.ecl-icon--l.sc-ecl-icon-ec{height:2rem;width:2rem}.ecl-icon--xl.sc-ecl-icon-ec{height:2.5rem;width:2.5rem}.ecl-icon--2xl.sc-ecl-icon-ec{height:3rem;width:3rem}.ecl-icon--fluid.sc-ecl-icon-ec{height:1em;width:1em}.ecl-icon--primary.sc-ecl-icon-ec{fill:var(--cm-on-surface-primary,var(--c-p))}.ecl-icon--inverted.sc-ecl-icon-ec{fill:#fff}.ecl-icon--rotate-0.sc-ecl-icon-ec{transform:rotate(0deg)}.ecl-icon--rotate-90.sc-ecl-icon-ec{transform:rotate(90deg)}.ecl-icon--rotate-90.sc-ecl-icon-ec:dir(rtl){transform:rotate(270deg)}.ecl-icon--rotate-180.sc-ecl-icon-ec{transform:rotate(180deg)}.ecl-icon--rotate-270.sc-ecl-icon-ec{transform:rotate(270deg)}.ecl-icon--rotate-270.sc-ecl-icon-ec:dir(rtl){transform:rotate(90deg)}.ecl-icon--flip-horizontal.sc-ecl-icon-ec{transform:scaleX(-1)}.ecl-icon--flip-vertical.sc-ecl-icon-ec{transform:scaleY(-1)}[style-class="ecl-breadcrumb__icon sc-ecl-breadcrumb-ec"].sc-ecl-icon-ec-h{display:contents}',eu:'.ecl-icon.sc-ecl-icon-eu{fill:currentcolor;margin:0;transition:transform .3s ease-in-out}.ecl-icon--2xs.sc-ecl-icon-eu{height:.75rem;width:.75rem}.ecl-icon--xs.sc-ecl-icon-eu{height:1rem;width:1rem}.ecl-icon--s.sc-ecl-icon-eu{height:1.25rem;width:1.25rem}.ecl-icon--m.sc-ecl-icon-eu{height:1.5rem;width:1.5rem}.ecl-icon--l.sc-ecl-icon-eu{height:2rem;width:2rem}.ecl-icon--xl.sc-ecl-icon-eu{height:2.5rem;width:2.5rem}.ecl-icon--2xl.sc-ecl-icon-eu{height:3rem;width:3rem}.ecl-icon--fluid.sc-ecl-icon-eu{height:1em;width:1em}.ecl-icon--primary.sc-ecl-icon-eu{fill:var(--cm-on-surface-primary,var(--c-p))}.ecl-icon--inverted.sc-ecl-icon-eu{fill:#fff}.ecl-icon--rotate-0.sc-ecl-icon-eu{transform:rotate(0deg)}.ecl-icon--rotate-90.sc-ecl-icon-eu{transform:rotate(90deg)}.ecl-icon--rotate-90.sc-ecl-icon-eu:dir(rtl){transform:rotate(270deg)}.ecl-icon--rotate-180.sc-ecl-icon-eu{transform:rotate(180deg)}.ecl-icon--rotate-270.sc-ecl-icon-eu{transform:rotate(270deg)}.ecl-icon--rotate-270.sc-ecl-icon-eu:dir(rtl){transform:rotate(90deg)}.ecl-icon--flip-horizontal.sc-ecl-icon-eu{transform:scaleX(-1)}.ecl-icon--flip-vertical.sc-ecl-icon-eu{transform:scaleY(-1)}[style-class="ecl-breadcrumb__icon sc-ecl-breadcrumb-eu"].sc-ecl-icon-eu-h{display:contents}'}}},[34,"ecl-icon",{styleClass:[1,"style-class"],theme:[1025],icon:[1],size:[1],color:[1],family:[1],flip:[1],titleTag:[1,"title-tag"],rotate:[1],sprite:[1]}]);function l(){"undefined"!=typeof customElements&&["ecl-icon"].forEach((c=>{"ecl-icon"===c&&(customElements.get(t(c))||customElements.define(t(c),o))}))}export{o as E,l as d}