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