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