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