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