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