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