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 React from 'react';
import { createComponent } from '@lit/react';
import { html, css } from 'lit';
import { property } from 'lit/decorators.js';
import { classMap } from 'lit/directives/class-map.js';
import { styleMap } from 'lit/directives/style-map.js';
import { TiniElement, partMap, VaryGroups, generateColorVaries, generateGradientVaries, generateScaleVaries } from 'tinijs';
export class IconMasksTheaterComponent extends TiniElement {
    static { this.defaultTagName = 'icon-masks-theater'; }
    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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NDAgNTEyIj48cGF0aCBkPSJNNzQuNiAzNzMuMmM0MS43IDM2LjEgMTA4IDgyLjUgMTY2LjEgNzMuNyA2LjEtLjkgMTIuMS0yLjUgMTgtNC41LTkuMi0xMi4zLTE3LjMtMjQuNC0yNC4yLTM1LjQtMjEuOS0zNS0yOC44LTc1LjItMjUuOS0xMTMuNi0yMC42IDQuMS0zOS4yIDEzLTU0LjcgMjUuNC02LjUgNS4yLTE2LjMgMS4zLTE0LjgtNyA2LjQtMzMuNSAzMy02MC45IDY4LjItNjYuMyAyLjYtLjQgNS4zLS43IDcuOS0uOGwxOS40LTEzMS4zYzItMTMuOCA4LTMyLjcgMjUtNDUuOSAxOC42LTE0LjMgNTAuOS0zMC41IDEwMy42LTM1LjNsLTIuNC0yLjFjLTIwLjItMTUuNi03Mi40LTQxLjY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xMC45LTEuMy0xMC4zLTYuNy4xLS41LjEtMS4xLjItMS42IDMuMi0yMS44IDIzLjItMzYuOCA0NC43LTMzLjVzMzYuMyAyMy41IDMzLjEgNDUuM2MtLjEuNS0uMiAxLjEtLjMgMS42ek01MzAgMzUwLjJjLTE5LjYgNDQuNy02Ni44IDcyLjUtMTE2LjggNjQuOXMtODcuMS00OC4yLTkzLTk2LjdjLTEtOC4zIDguOS0xMi4xIDE1LjItNi43IDIzLjkgMjAuOCA1My42IDM1LjMgODcgNDAuM3M2Ni4xLjEgOTQuOS0xMi44YzcuNi0zLjQgMTYgMy4yIDEyLjYgMTAuOXoiLz48L3N2Zz4=');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(changedValues) { super.willUpdate(changedValues); this.extendRootClassesParts({ scheme: !!this.scheme, [`${VaryGroups.Scale}-${this.scale}`]: !!this.scale, [`${VaryGroups.Scheme}-${this.scheme}`]: !!this.scheme }); }
    render() { return html `<i part=${partMap(this.rootClassesParts)} class=${classMap(this.rootClassesParts)} style=${styleMap(this.rootStyles)}></i>`; }
}
__decorate([
    property({ type: String, reflect: true })
], IconMasksTheaterComponent.prototype, "scale", void 0);
__decorate([
    property({ type: String, reflect: true })
], IconMasksTheaterComponent.prototype, "scheme", void 0);
export const IconMasksTheater = createComponent({
    tagName: IconMasksTheaterComponent.defaultTagName,
    elementClass: IconMasksTheaterComponent,
    react: React,
});
//# sourceMappingURL=masks-theater.react.js.map