var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { LitElement, html, css } from 'lit';
import { property } from 'lit/decorators.js';
import { classMap } from 'lit/directives/class-map.js';
import { partMap, generateColorVaries, generateGradientVaries, generateSizeVaries } from '@tinijs/core';
export const ICON_EXPEDITEDSSL = 'icon-expeditedssl';
export class IconExpeditedsslComponent extends LitElement {
    constructor() {
        super(...arguments);
        this.rootClassesParts = {};
    }
    static { this.defaultTagName = ICON_EXPEDITEDSSL; }
    static { this.styles = css `:host{--icon-width:var(--size-md-2x);--icon-height:var(--size-md-2x);--icon-color:none;--icon-image:url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0OTYgNTEyIj48cGF0aCBkPSJNMjQ4IDQzLjRDMTMwLjYgNDMuNCAzNS40IDEzOC42IDM1LjQgMjU2UzEzMC42IDQ2OC42IDI0OCA0NjguNiA0NjAuNiAzNzMuNCA0NjAuNiAyNTYgMzY1LjQgNDMuNCAyNDggNDMuNHptLTk3LjQgMTMyLjljMC01My43IDQzLjctOTcuNCA5Ny40LTk3LjRzOTcuNCA0My43IDk3LjQgOTcuNHYyNi42YzAgNS0zLjkgOC45LTguOSA4LjloLTE3LjdjLTUgMC04LjktMy45LTguOS04Ljl2LTI2LjZjMC04Mi4xLTEyNC04Mi4xLTEyNCAwdjI2LjZjMCA1LTMuOSA4LjktOC45IDguOWgtMTcuN2MtNSAwLTguOS0zLjktOC45LTguOXYtMjYuNnpNMzg5LjcgMzgwYzAgOS43LTggMTcuNy0xNy43IDE3LjdIMTI0Yy05LjcgMC0xNy43LTgtMTcuNy0xNy43VjIzOC4zYzAtOS43IDgtMTcuNyAxNy43LTE3LjdoMjQ4YzkuNyAwIDE3LjcgOCAxNy43IDE3LjdWMzgwem0tMjQ4LTEzNy4zdjEzMi45YzAgMi41LTEuOSA0LjQtNC40IDQuNGgtOC45Yy0yLjUgMC00LjQtMS45LTQuNC00LjRWMjQyLjdjMC0yLjUgMS45LTQuNCA0LjQtNC40aDguOWMyLjUgMCA0LjQgMS45IDQuNCA0LjR6bTE0MS43IDQ4LjdjMCAxMy03LjIgMjQuNC0xNy43IDMwLjR2MzEuNmMwIDUtMy45IDguOS04LjkgOC45aC0xNy43Yy01IDAtOC45LTMuOS04LjktOC45di0zMS42Yy0xMC41LTYuMS0xNy43LTE3LjQtMTcuNy0zMC40IDAtMTkuNyAxNS44LTM1LjQgMzUuNC0zNS40czM1LjUgMTUuOCAzNS41IDM1LjR6TTI0OCA4QzExMSA4IDAgMTE5IDAgMjU2czExMSAyNDggMjQ4IDI0OCAyNDgtMTExIDI0OC0yNDhTMzg1IDggMjQ4IDh6bTAgNDc4LjNDMTIxIDQ4Ni4zIDE3LjcgMzgzIDE3LjcgMjU2UzEyMSAyNS43IDI0OCAyNS43IDQ3OC4zIDEyOSA0NzguMyAyNTYgMzc1IDQ4Ni4zIDI0OCA0ODYuM3oiLz48L3N2Zz4=');display:inline-block}i{display:flex;align-items:center;justify-content:center;background-image:var(--icon-image);background-repeat:no-repeat;background-size:contain;background-position:center;width:var(--icon-width);height:var(--icon-height)}.recolor{background:var(--icon-color);-webkit-mask-image:var(--icon-image);-webkit-mask-size:var(--icon-width) var(--icon-height);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;mask-image:var(--icon-image);mask-size:var(--icon-width) var(--icon-height);mask-repeat:no-repeat;mask-position:center}${generateColorVaries(({ name, color }) => `.scheme-${name} {--icon-color: ${color};}`)}${generateGradientVaries(({ name, gradient }) => `.scheme-${name} {--icon-color: ${gradient};}`)}${generateSizeVaries(size => `.size-${size} {--icon-width: var(--size-${size}-2x);--icon-height: var(--size-${size}-2x);}`)}`; }
    willUpdate() { this.rootClassesParts = { root: true, recolor: !!this.scheme, [`size-${this.size}`]: !!this.size, [`scheme-${this.scheme}`]: !!this.scheme }; }
    render() { return html `<i part=${partMap(this.rootClassesParts)} class=${classMap(this.rootClassesParts)}></i>`; }
}
__decorate([
    property({ type: String, reflect: true })
], IconExpeditedsslComponent.prototype, "size", void 0);
__decorate([
    property({ type: String, reflect: true })
], IconExpeditedsslComponent.prototype, "scheme", void 0);
//# sourceMappingURL=expeditedssl.js.map