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 { LitElement, html, css } from 'lit';
import { property } from 'lit/decorators.js';
import { classMap } from 'lit/directives/class-map.js';
import { partMap, generateColorVaries, generateGradientVaries, generateSizeVaries } from '@tinijs/core';
export const ICON_DISCORD = 'icon-discord';
export let IconDiscordComponent = class IconDiscordComponent extends LitElement {
    constructor() {
        super(...arguments);
        this.rootClassesParts = {};
    }
    static { this.defaultTagName = ICON_DISCORD; }
    static { this.styles = css `:host{--icon-width:var(--size-md-2x);--icon-height:var(--size-md-2x);--icon-color:none;--icon-image:url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NDAgNTEyIj48cGF0aCBkPSJNNTI0LjUzMSA2OS44MzZhMS41IDEuNSAwIDAgMC0uNzY0LS43QTQ4NS4wNjUgNDg1LjA2NSAwIDAgMCA0MDQuMDgxIDMyLjAzYTEuODE2IDEuODE2IDAgMCAwLTEuOTIzLjkxIDMzNy40NjEgMzM3LjQ2MSAwIDAgMC0xNC45IDMwLjYgNDQ3Ljg0OCA0NDcuODQ4IDAgMCAwLTEzNC40MjYgMCAzMDkuNTQxIDMwOS41NDEgMCAwIDAtMTUuMTM1LTMwLjYgMS44OSAxLjg5IDAgMCAwLTEuOTI0LS45MSA0ODMuNjg5IDQ4My42ODkgMCAwIDAtMTE5LjY4OCAzNy4xMDcgMS43MTIgMS43MTIgMCAwIDAtLjc4OC42NzZDMzkuMDY4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jMuNDEgNTkuMjQxLTUyLjg0MyA1OS4yNDFabTE5NS4zOCAwYy0yOC45NzEgMC01Mi44NDMtMjYuNTg3LTUyLjg0My01OS4yMzlzMjMuNDA5LTU5LjI0MSA1Mi44NDMtNTkuMjQxYzI5LjY2NyAwIDUzLjMwNyAyNi44MiA1Mi44NDQgNTkuMjM5IDAgMzIuNjU0LTIzLjE3NyA1OS4yNDEtNTIuODQ0IDU5LjI0MVoiLz48L3N2Zz4=');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)}.recolor{background:var(--icon-color);-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(({ name, color }) => `.scheme-${name} {--icon-color: ${color};}`)}${generateGradientVaries(({ name, gradient }) => `.scheme-${name} {--icon-color: ${gradient};}`)}${generateSizeVaries(size => `.size-${size} {--icon-width: var(--size-${size}-2x);--icon-height: var(--size-${size}-2x);}`)}`; }
    willUpdate() { this.rootClassesParts = { root: true, recolor: !!this.scheme, [`size-${this.size}`]: !!this.size, [`scheme-${this.scheme}`]: !!this.scheme }; }
    render() { return html `<i part=${partMap(this.rootClassesParts)} class=${classMap(this.rootClassesParts)}></i>`; }
};
__decorate([
    property({ type: String, reflect: true })
], IconDiscordComponent.prototype, "size", void 0);
__decorate([
    property({ type: String, reflect: true })
], IconDiscordComponent.prototype, "scheme", void 0);
IconDiscordComponent = __decorate([
    customElement(ICON_DISCORD)
], IconDiscordComponent);
//# sourceMappingURL=discord.include.js.map