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 React from 'react';
import { createComponent } from '@lit-labs/react';
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 class IconDiscordComponent extends TiniElement {
    static { this.defaultTagName = 'icon-discord'; }
    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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NDAgNTEyIj48cGF0aCBkPSJNNTI0LjUzMSA2OS44MzZhMS41IDEuNSAwIDAgMC0uNzY0LS43QTQ4NS4wNjUgNDg1LjA2NSAwIDAgMCA0MDQuMDgxIDMyLjAzYTEuODE2IDEuODE2IDAgMCAwLTEuOTIzLjkxIDMzNy40NjEgMzM3LjQ2MSAwIDAgMC0xNC45IDMwLjYgNDQ3Ljg0OCA0NDcuODQ4IDAgMCAwLTEzNC40MjYgMCAzMDkuNTQxIDMwOS41NDEgMCAwIDAtMTUuMTM1LTMwLjYgMS44OSAxLjg5IDAgMCAwLTEuOTI0LS45MSA0ODMuNjg5IDQ4My42ODkgMCAwIDAtMTE5LjY4OCAzNy4xMDcgMS43MTIgMS43MTIgMCAwIDAtLjc4OC42NzZDMzkuMDY4IDE4My42NTEgMTguMTg2IDI5NC42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yA1OS4yNDFabTE5NS4zOCAwYy0yOC45NzEgMC01Mi44NDMtMjYuNTg3LTUyLjg0My01OS4yMzlzMjMuNDA5LTU5LjI0MSA1Mi44NDMtNTkuMjQxYzI5LjY2NyAwIDUzLjMwNyAyNi44MiA1Mi44NDQgNTkuMjM5IDAgMzIuNjU0LTIzLjE3NyA1OS4yNDEtNTIuODQ0IDU5LjI0MVoiLz48L3N2Zz4=');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 })
], IconDiscordComponent.prototype, "scale", void 0);
__decorate([
    property({ type: String, reflect: true })
], IconDiscordComponent.prototype, "scheme", void 0);
export const IconDiscord = createComponent({
    tagName: IconDiscordComponent.defaultTagName,
    elementClass: IconDiscordComponent,
    react: React,
});
//# sourceMappingURL=discord.js.map