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