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