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