import{__decorate as e,__classPrivateFieldGet as t,__classPrivateFieldSet as i}from"../../_virtual/_tslib.js";import'./../../external/lit/external/@lit/reactive-element/reactive-element.js';import'./../../external/lit/external/lit-html/lit-html.js';import{LitElement as s}from'./../../external/lit-element/lit-element.js';import{customElement as o}from'./../../external/lit/external/@lit/reactive-element/decorators/custom-element.js';import{property as r}from'./../../external/lit/external/@lit/reactive-element/decorators/property.js';import{unsafeHTML as l}from'./../../external/lit/external/lit-html/directives/unsafe-html.js';import{toString as n,getAttributes as m}from'./../../external/@carbon/icon-helpers/es/index.js';import d from"./icon.scss.js";import{html as u}from'./../../external/lit-element/external/lit-html/lit-html.js';var p,c,h;let a=class extends s{constructor(){super(...arguments),p.set(this,{}),c.set(this,"currentColor"),h.set(this,void 0)}get icon(){return t(this,p,"f")}set icon(e){i(this,p,e,"f")}get fill(){return t(this,c,"f")}set fill(e){i(this,c,e,"f")}get sizeOverride(){return t(this,h,"f")}set sizeOverride(e){i(this,h,e,"f")}render(){if(Object.keys(this.icon).length>0){const e=JSON.parse(JSON.stringify(this.icon.attrs));e.fill=this.fill,this.sizeOverride&&(e.width=this.sizeOverride,e.height=this.sizeOverride);const t=n({...this.icon,attrs:m(e)});return u` ${l(t)} `}return null}};p=new WeakMap,c=new WeakMap,h=new WeakMap,a.styles=d,e([r({type:Object})],a.prototype,"icon",null),e([r({type:String})],a.prototype,"fill",null),e([r({type:Number})],a.prototype,"sizeOverride",null),a=e([o("kd-icon")],a);export{a as Icon};
//# sourceMappingURL=icon.js.map
