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