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