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