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 { html, css } from 'lit';
import { property } from 'lit/decorators.js';
import { classMap } from 'lit/directives/class-map.js';
import { TiniElement, partMap, VaryGroups, generateColorVaries, generateGradientVaries, generateScaleVaries } from 'tinijs';
export class IconLampComponent extends TiniElement {
    static { this.defaultTagName = 'icon-lamp'; }
    static { this.componentName = 'icon'; }
    static { this.styles = css `:host{--icon-width:var(--scale-md-2x);--icon-height:var(--scale-md-2x);--icon-scheme:none;--icon-image:url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9ImN1cnJlbnRDb2xvciIgY2xhc3M9ImJpIGJpLWxhbXAiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNS4wNC4zMDNBLjUuNSAwIDAgMSA1LjUgMGg1Yy4yIDAgLjM4LjEyLjQ2LjMwM2wzIDdhLjUuNSAwIDAgMS0uMzYzLjY4N2gtLjAwMmMtLjE1LjAzLS4zLjA1Ni0uNDUuMDgxYTMyLjczMSAzMi43MzEgMCAwIDEtNC42NDUuNDI1VjEzLjVhLjUuNSAwIDEgMS0xIDBWOC40OTVhMzIuNzUzIDMyLjc1MyAwIDAgMS00LjY0NS0uNDI1Yy0uMTUtLjAyNS0uMy0uMDUtLjQ1LS4wOGgtLjAwM2EuNS41IDAgMCAxLS4zNjItLjY4OGwzLTdaTTMuMjEgNy4xMTZBMzEuMjcgMzEuMjcgMCAwIDAgOCA3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41OTRhLjUuNSAwIDAgMSAuNTc1LjQxMSIvPjwvc3ZnPg==');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)}.scheme{background:var(--icon-scheme);-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(({ fullName, color }) => `.${fullName} {--icon-scheme: ${color};}`)}${generateGradientVaries(({ fullName, gradient }) => `.${fullName} {--icon-scheme: ${gradient};}`)}${generateScaleVaries(({ name, fullName }) => `.${fullName} {--icon-width: var(--scale-${name}-2x);--icon-height: var(--scale-${name}-2x);}`)}`; }
    willUpdate() { this.extendRootClasses({ raw: { scheme: !!this.scheme }, overridable: { [VaryGroups.Scale]: this.scale, [VaryGroups.Scheme]: this.scheme } }); }
    render() { return html `<i class=${classMap(this.rootClasses)} part=${partMap(this.rootClasses)}></i>`; }
}
__decorate([
    property({ type: String, reflect: true })
], IconLampComponent.prototype, "scale", void 0);
__decorate([
    property({ type: String, reflect: true })
], IconLampComponent.prototype, "scheme", void 0);
//# sourceMappingURL=lamp.js.map