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