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 { customElement } from 'lit/decorators.js';
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 let IconWeeblyComponent = class IconWeeblyComponent extends TiniElement {
    static { this.defaultTagName = 'icon-weebly'; }
    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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48cGF0aCBkPSJNNDI1LjA5IDY1LjgzYy0zOS44OCAwLTczLjI4IDI1LjczLTgzLjY2IDY0LjMzLTE4LjE2LTU4LjA2LTY1LjUtNjQuMzMtODQuOTUtNjQuMzMtMTkuNzggMC02Ni44IDYuMjgtODUuMjggNjQuMzMtMTAuMzgtMzguNi00My40NS02NC4zMy04My42Ni02NC4zM0MzOC41OSA2NS44MyAwIDk5LjcyIDAgMTQzLjAzYzAgMjguOTYgNC4xOCAzMy4yNyA3Ny4xNyAyMzMuNDggMjIuMzcgNjAuNTcgNjcuNzcgNjkuMzUgOTIuNzQgNjkuMzUgMzkuMjMgMCA3MC4wNC0xOS40NiA4NS45My01My45OCAxNS44OSAzNC44MyA0Ni42OSA1NC4yOSA4NS45MyA1NC4yOSAyNC45NyAwIDcwLjM2LTkuMSA5Mi43NC02OS42NyA3Ni41NS0yMDguNjUgNzcuNS0yMDUuNTggNzcuNS0yMjcuMi42My00OC4zMi0zNi4wMS04My40Ny04Ni45Mi04My40N3ptMjYuMzQgMTE0LjgxLTY1LjU3IDE3Ni40NGMtNy45MiAyMS40OS0yMS4yMiAzNy4yMi00Ni4yNCAzNy4yMi0yMy40NCAwLTM3LjM4LTEyLjQxLTQ0LjAzLTMzLjlsLTM5LjI4LTExNy40MmgtLjk1TDIxNi4wOCAzNjAuNGMtNi45NiAyMS41LTIwLjkgMzMuNi00NC4wMiAzMy42LTI1LjAyIDAtMzguMzMtMTUuNzQtNDYuMjQtMzcuMjJMNjAuODggMTgxLjU1Yy01LjM4LTE0LjgzLTcuOTItMjMuOTEtNy45Mi0zNC41IDAtMTYuMzQgMTUuODQtMjkuMzYgMzguMzMtMjkuMzYgMTguNjkgMCAzMS45OSAxMS44IDM2LjExIDI5LjA1bDQ0LjAzIDEzOS44MmguOTVsNDQuNjYtMTM2Ljc5YzYuMDItMTkuNjcgMTYuNDctMzIuMDggMzguOTYtMzIuMDhzMzIuOTQgMTIuMTEgMzguOTYgMzIuMDhsNDQuNjYgMTM2Ljc5aC45NWw0NC4wMy0xMzkuODJjNC4xMi0xNy4yNSAxNy40Mi0yOS4wNSAzNi4xMS0yOS4wNSAyMi4xNyAwIDM4LjMzIDEzLjMyIDM4LjMzIDM1LjcxLS4zMiA3Ljg3LTQuMTIgMTYuMDQtNy42MSAyNy4yNHoiLz48L3N2Zz4=');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 })
], IconWeeblyComponent.prototype, "scale", void 0);
__decorate([
    property({ type: String, reflect: true })
], IconWeeblyComponent.prototype, "scheme", void 0);
IconWeeblyComponent = __decorate([
    customElement('icon-weebly')
], IconWeeblyComponent);
//# sourceMappingURL=weebly.include.js.map