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 IconScreenpalComponent extends TiniElement {
    static { this.defaultTagName = 'icon-screenpal'; }
    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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48cGF0aCBkPSJNMjMzLjUgMjIuNDlDMjMzLjUgMTAuMDcgMjQzLjYgMCAyNTYgMHMyMi41IDEwLjA3IDIyLjUgMjIuNDljMCAxMi40Mi0xMC4xIDIyLjQ5LTIyLjUgMjIuNDlzLTIyLjUtMTAuMDctMjIuNS0yMi40OXpNMzEzLjQgMjU5YzAgMzEuNy0yNS43IDU3LjQtNTcuNCA1Ny40cy01Ny40LTI1LjctNTcuNC01Ny40IDI1LjctNTcuNCA1Ny40LTU3LjQgNTcuNCAyNS43IDU3LjQgNTcuNHptMjMuOCA5MWMyMi4zLTE5LjkgMzYuNS00Ny4zIDM5LjktNzdoMTE5LjVjLTMuNSA2MS40LTMwLjQgMTE5LjItNzUuMiAxNjEuNC00NC43IDQyLjItMTAzLjkgNjUuOC0xNjUuNC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AxOC40Ni0xLjIgNi4wMS0xLjcgMTEuNjUtNC40IDE2LjU5LTguMiA0Ljk0LTMuOCA5LjA5LTguNSAxMi4yLTEzLjkgMy4xMS01LjQgNS4xNC0xMS40IDUuOTUtMTcuNS44MS02LjIuNDEtMTIuNS0xLjItMTguNS0xLjYxLTYtNC4zOS0xMS42LTguMTgtMTYuNi0zLjc5LTQuOS04LjUxLTkuMS0xMy45LTEyLjJhMjQyLjEzNiAyNDIuMTM2IDAgMCAxIDM1Ljk2LTMzLjMzYzE3LjYgMTQuMzUgMjkuNSAzNC41MyAzMy42IDU2LjgzIDQuMSAyMi4zLjEgNDUuNC0xMS4yIDY1LTExLjQgMTkuNi0yOS40IDM0LjUtNTAuNzIgNDIuMXptMzQ2LjQyLjFjLTIxLjMtNy42LTM5LjMtMjIuNi01MC43LTQyLjItMTEuMy0xOS42LTE1LjItNDIuNy0xMS4xLTY1IDQuMS0yMi4yIDE2LTQyLjM2IDMzLjUtNTYuNzEgMTMuMSA5Ljg1IDI1LjIgMjEuMDIgMzYgMzMuMzEtMTAuNyA2LjQtMTguNCAxNi43LTIxLjUgMjguOC0zLjIgMTItMi4zIDI0LjggNC44IDM1LjYgNi4yIDEwLjggMTYuNCAxOC43IDI4LjQgMjIgMTIgMy4zIDI0LjkgMS43IDM1LjctNC4zIDUuMyAxNS41IDguOSAzMS42IDEwLjkgNDcuOC0yMi4xIDguMS00NC42IDguMy02NiAuN3oiLz48L3N2Zz4=');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 })
], IconScreenpalComponent.prototype, "scale", void 0);
__decorate([
    property({ type: String, reflect: true })
], IconScreenpalComponent.prototype, "scheme", void 0);
export const IconScreenpal = createComponent({
    tagName: IconScreenpalComponent.defaultTagName,
    elementClass: IconScreenpalComponent,
    react: React,
});
//# sourceMappingURL=screenpal.js.map