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 IconIncognitoComponent extends TiniElement {
    static { this.defaultTagName = 'icon-incognito'; }
    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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9ImN1cnJlbnRDb2xvciIgY2xhc3M9ImJpIGJpLWluY29nbml0byIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Im00LjczNiAxLjk2OC0uODkyIDMuMjY5LS4wMTQuMDU4QzIuMTEzIDUuNTY4IDEgNi4wMDYgMSA2LjUgMSA3LjMyOCA0LjEzNCA4IDggOHM3LS42NzIgNy0xLjVjMC0uNDk0LTEuMTEzLS45MzItMi44My0xLjIwNWExLjAzMiAxLjAzMiAwIDAgMC0uMDE0LS4wNThsLS44OTItMy4yN2MtLjE0Ni0uNTMzLS42OTgtLjg0OS0xLjIzOS0uNzM0QzkuNDExIDEuMzYzIDguNjIgMS41IDggMS41Yy0uNjIgMC0xLjQxMS0uMTM2LTIuMDI1LS4yNjctLjU0MS0uMTE1LTEuMDkzLjItMS4yMzkuNzM1bS4wMTUgMy44NjdhLjI1LjI1IDAgMCAxIC4yNzQtLjIyNGMuOS4wOTIgMS45MS4xNDMgMi45NzUuMTQzYTI5LjU4IDI5LjU4IDAgMCAwIDIuOTc1LS4xNDMuMjUuMjUgMCAwIDEgLjA1LjQ5OGMtLjkxOC4wOTMtMS45NDQuMTQ1LTMuMDI1LjE0NXMtMi4xMDctLjA1Mi0zLjAyNS0uMTQ1YS4yNS4yNSAwIDAgMS0uMjI0LS4yNzRNMy41IDEwaDJhLjUuNSAwIDAgMSAuNS41djFhMS41IDEuNSAwIDAgMS0zIDB2LTFhLjUuNSAwIDAgMSAuNS0uNW0tMS41LjVjMC0uMTc1LjAzLS4zNDQuMDg1LS41SDJhLjUuNSAwIDAgMSAwLTFoMy41YTEuNSAxLjUgMCAwIDEgMS40ODggMS4zMTIgMy41IDMuNSAwIDAgMSAyLjAyNCAwQTEuNSAxLjUgMCAwIDEgMTAuNSA5SDE0YS41LjUgMCAwIDEgMCAxaC0uMDg1Yy4wNTUuMTU2LjA4NS4zMjUuMDg1LjV2MWEyLjUgMi41IDAgMCAxLTUgMHYtLjE0bC0uMjEtLjA3YTIuNSAyLjUgMCAwIDAtMS41OCAwbC0uMjEuMDd2LjE0YTIuNSAyLjUgMCAwIDEtNSAwdi0xWm04LjUtLjVoMmEuNS41IDAgMCAxIC41LjV2MWExLjUgMS41IDAgMCAxLTMgMHYtMWEuNS41IDAgMCAxIC41LS41Ii8+PC9zdmc+');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 })
], IconIncognitoComponent.prototype, "scale", void 0);
__decorate([
    property({ type: String, reflect: true })
], IconIncognitoComponent.prototype, "scheme", void 0);
//# sourceMappingURL=incognito.js.map