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