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