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 { styleMap } from 'lit/directives/style-map.js';
import { TiniElement, partMap, VaryGroups, generateColorVaries, generateGradientVaries, generateScaleVaries } from 'tinijs';
export class IconUserGearComponent extends TiniElement {
    static { this.defaultTagName = 'icon-user-gear'; }
    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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NDAgNTEyIj48cGF0aCBkPSJNMjI0IDBhMTI4IDEyOCAwIDEgMSAwIDI1NiAxMjggMTI4IDAgMSAxIDAtMjU2em0tNDUuNyAzMDRoOTEuNGMxMS44IDAgMjMuNCAxLjIgMzQuNSAzLjMtMi4xIDE4LjUgNy40IDM1LjYgMjEuOCA0NC44LTE2LjYgMTAuNi0yNi43IDMxLjYtMjAgNTMuMyA0IDEyLjkgOS40IDI1LjUgMTYuNCAzNy42czE1LjIgMjMuMSAyNC40IDMzYzE1LjcgMTYuOSAzOS42IDE4LjQgNTcuMiA4Ljd2LjljMCA5LjIgMi43IDE4LjUgNy45IDI2LjNIMjkuN0MxMy4zIDUxMiAwIDQ5OC43IDAgNDgyLjMgMCAzODMuOCA3OS44IDMwNCAxNzguMyAzMDR6TTQzNiAyMTguMmMwLTcgNC41LTEzLjMgMTEuMy0xNC44IDEwL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TQuNS05LjQgMjIuNS0xMi45di0zMC40em05Mi4xIDEzMy41YTQ4LjEgNDguMSAwIDEgMC05Ni4xIDAgNDguMSA0OC4xIDAgMSAwIDk2LjEgMHoiLz48L3N2Zz4=');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(changedValues) { super.willUpdate(changedValues); this.extendRootClassesParts({ scheme: !!this.scheme, [`${VaryGroups.Scale}-${this.scale}`]: !!this.scale, [`${VaryGroups.Scheme}-${this.scheme}`]: !!this.scheme }); }
    render() { return html `<i part=${partMap(this.rootClassesParts)} class=${classMap(this.rootClassesParts)} style=${styleMap(this.rootStyles)}></i>`; }
}
__decorate([
    property({ type: String, reflect: true })
], IconUserGearComponent.prototype, "scale", void 0);
__decorate([
    property({ type: String, reflect: true })
], IconUserGearComponent.prototype, "scheme", void 0);
//# sourceMappingURL=user-gear.js.map