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 { TiniElement, partMap, VaryGroups, generateColorVaries, generateGradientVaries, generateScaleVaries } from 'tinijs';
export class IconPiggyBankComponent extends TiniElement {
    static { this.defaultTagName = 'icon-piggy-bank'; }
    static { this.componentName = 'icon'; }
    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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9ImN1cnJlbnRDb2xvciIgY2xhc3M9ImJpIGJpLXBpZ2d5LWJhbmsiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTUgNi4yNWEuNzUuNzUgMCAxIDEtMS41IDAgLjc1Ljc1IDAgMCAxIDEuNSAwbTEuMTM4LTEuNDk2QTYuNjEzIDYuNjEzIDAgMCAxIDcuOTY0IDQuNWMuNjY2IDAgMS4zMDMuMDk3IDEuODkzLjI3M2EuNS41IDAgMCAwIC4yODYtLjk1OEE3LjYwMiA3LjYwMiAwIDAgMCA3Ljk2NCAzLjVjLS43MzQgMC0xLjQ0MS4xMDMtMi4xMDIuMjkyYS41LjUgMCAxIDAgLjI3Ni45NjIiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03Ljk2NCAxLjUyN2MtMi45NzcgMC01LjU3MSAxLjcwNC02LjMyIDQuMTI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YuNTU4IDYuNTU4IDAgMCAxLTIuMTU3LS4zNTkuNS41IDAgMCAwLS42MzUuMzA0bC0uNTI1IDEuNDcxaC0uOTc5bC42MzMtMi4xNWEuNS41IDAgMCAwLS4xNy0uNTM0IDQuNjQ5IDQuNjQ5IDAgMCAxLTEuMjg0LTEuNTQxLjUuNSAwIDAgMC0uNDQ2LS4yNzVoLS41NmEuNS41IDAgMCAxLS40OTItLjQxNGwtLjI1NC0xLjQ2aC45MzNhLjUuNSAwIDAgMCAuNDg4LS4zOTN6bTEyLjYyMS0uODU3YS41NjUuNTY1IDAgMCAxLS4wOTguMjEuNzA0LjcwNCAwIDAgMS0uMDQ0LS4wMjVjLS4xNDYtLjA5LS4xNTctLjE3NS0uMTUyLS4yMjNhLjIzNi4yMzYgMCAwIDEgLjExNy0uMTczYy4wNDktLjAyNy4wOC0uMDIxLjExMy4wMTJhLjIwMi4yMDIgMCAwIDEgLjA2NC4xOTl6Ii8+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() { this.extendRootClasses({ raw: { scheme: !!this.scheme }, overridable: { [VaryGroups.Scale]: this.scale, [VaryGroups.Scheme]: this.scheme } }); }
    render() { return html `<i class=${classMap(this.rootClasses)} part=${partMap(this.rootClasses)}></i>`; }
}
__decorate([
    property({ type: String, reflect: true })
], IconPiggyBankComponent.prototype, "scale", void 0);
__decorate([
    property({ type: String, reflect: true })
], IconPiggyBankComponent.prototype, "scheme", void 0);
//# sourceMappingURL=piggy-bank.js.map