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