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_CMPLID = 'icon-cmplid';
export class IconCmplidComponent extends LitElement {
    constructor() {
        super(...arguments);
        this.rootClassesParts = {};
    }
    static { this.defaultTagName = ICON_CMPLID; }
    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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NDAgNTEyIj48cGF0aCBkPSJNMjI2LjExOSAzODguMTY1YTMuODE2IDMuODE2IDAgMCAwLTIuMjk0LTMuNSAzLjk0NiAzLjk0NiAwIDAgMC0xLjYyOS0uMzg1TDcyLjYgMzg0LjNhMTkuMjQzIDE5LjI0MyAwIDAgMS0xNy45MjQtMjYuMDI1bDI2LjkwOS0xMDIuNTgzYTM1LjcyIDM1LjcyIDAgMCAxIDMyLjM3My0yNmgxNDguNTY3YTcuMDcgNy4wNyAwIDAgMCA2LjM5Mi01LjE5NGwxMC43NjktNDEuMTMxYTMuODQ5IDMuODQ5IDAgMCAwLTIuMjM3LTQuOTM3IDMuNzU1IDMuNzU1IDAgMCAwLTEuMzc3LS4yNjFjLS4wNjMgMC0uMTI2IDAtLjE4OS4wMDVIMTI3LjM4YTEwNi44IDEwNi44IDAgM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UuMjA4Yy0uMTA4IDAtLjIxNyAwLS4zMjYuMDE0Wm0zMTEuMzI0LTMwOC40aC00MWE3LjA2NiA3LjA2NiAwIDAgMC02LjM5MiA1LjEyOWwtOTEuNDYgMzQ5LjQzNmE0LjA3MyA0LjA3MyAwIDAgMC0uMjI5IDEuMzQ3IDMuODcyIDMuODcyIDAgMCAwIDMuODYzIDMuODUxaDQxLjEzN2E3LjEgNy4xIDAgMCAwIDYuMzkyLTUuMTkzTDYzOS42OCA4MS4yYTMuNjI0IDMuNjI0IDAgMCAwIC4zMi0xLjQ3NSAzLjg0MSAzLjg0MSAwIDAgMC0zLjgyMS0zLjU2NGMtLjA2OCAwLS4xMzcgMC0uMjA2LjAwNlpNMzcxLjU2MiAyMjUuMjM2bDEwLjgtNDEuMWE0LjM2OSA0LjM2OSAwIDAgMCAuMjI3LTEuMzg4IDMuODY5IDMuODY5IDAgMCAwLTMuODYxLTMuODQyaC00MS4yNjlhNy4yOTIgNy4yOTIgMCAwIDAtNi4zOTEgNS4yMjZsLTEwLjgzNCA0MS4xYTQuNDE3IDQuNDE3IDAgMCAwLS4yNiAxLjQ5M3YuMjA2YTMuNzc2IDMuNzc2IDAgMCAwIDMuNzU3IDMuNTA3Yy4wNzYgMCAuMTggMCAuMy0uMDEyaDQxLjEyOWE3LjAzNCA3LjAzNCAwIDAgMCA2LjQwMi01LjE5WiIvPjwvc3ZnPg==');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 })
], IconCmplidComponent.prototype, "size", void 0);
__decorate([
    property({ type: String, reflect: true })
], IconCmplidComponent.prototype, "scheme", void 0);
//# sourceMappingURL=cmplid.js.map