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