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 React from 'react';
import { createComponent } from '@lit-labs/react';
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 IconAviatoComponent extends TiniElement {
    static { this.defaultTagName = 'icon-aviato'; }
    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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NDAgNTEyIj48cGF0aCBkPSJtMTA3LjIgMjgzLjUtMTktNDEuOEgzNi4xbC0xOSA0MS44SDBsNjIuMi0xMzEuNCA2Mi4yIDEzMS40aC0xNy4yem0tNDUtOTguMS0xOS42IDQyLjVoMzkuMmwtMTkuNi00Mi41em0xMTIuNyAxMDIuNC02Mi4yLTEzMS40aDE3LjFsNDUuMSA5NiA0NS4xLTk2aDE3bC02Mi4xIDEzMS40em04MC42LTQuM1YxNTYuNEgyNzF2MTI3LjFoLTE1LjV6bTIwOS4xLTExNS42djExNS42aC0xNy4zVjE2Ny45aC00MS4ydi0xMS41aDk5LjZ2MTEuNWgtNDEuMXpNNjQwIDIxOC44YzAgOS4yLTEuNyAxNy44LTUuMSAyNS44LTMuNCA4LTguMiAxNS4xLTE0LjIgMjEuMS02IDYtMTMuMSA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jIgMCA2LjggNS42IDEyLjQgMTIuNCAxMi40IDYuOCAwIDEyLjQtNS42IDEyLjQtMTIuNC0uMi02LjMtNC43LTExLjQtMTAuNy0xMi4zem0tMjAwLjgtODcuNiAxOS42LTQyLjUgMTkuNiA0Mi41aC0xNy45bC0xLjctNDAuMy0xLjcgNDAuM2gtMTcuOXoiLz48L3N2Zz4=');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 })
], IconAviatoComponent.prototype, "scale", void 0);
__decorate([
    property({ type: String, reflect: true })
], IconAviatoComponent.prototype, "scheme", void 0);
export const IconAviato = createComponent({
    tagName: IconAviatoComponent.defaultTagName,
    elementClass: IconAviatoComponent,
    react: React,
});
//# sourceMappingURL=aviato.js.map