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