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 { 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_IMDB = 'icon-imdb';
export class IconImdbComponent extends LitElement {
    constructor() {
        super(...arguments);
        this.rootClassesParts = {};
    }
    static { this.defaultTagName = ICON_IMDB; }
    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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0NDggNTEyIj48cGF0aCBkPSJNODkuNSAzMjMuNkg1My45M1YxODYuMkg4OS41djEzNy40em02Ni42LTczLjEgOS4xLTY0LjNoNDYuM3YxMzcuNGgtMzF2LTkyLjdsLTEzLjQgOTIuN2gtMjEuM2wtMTMtOTAuNy0uMSA5MC43aC0zMS4yVjE4Ni4yaDQ2LjFjLjUgOC4zIDIuOCAxOC4xIDQuMyAyOS40bDQuMiAzNC45em02Ny42IDczLjFWMTg2LjJoMjYuNmMxNyAwIDI3IC45IDMzIDIuNCA2LjEgMS43IDEwLjcgNC4yIDEzLjkgNy45IDMuMSAzLjMgNS4xIDYuNiA1LjggMTIgLjkgNC40IDEuNCAxMy4xIDEuNCAyNi4ydjQ4LjJjMCAxMi4zLS43IDIwLjUtMS45IDI0LjctMS4xIDQuMS0zLjEgNy40LTYgOS43LTIuO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My4wOSAzMC4yNiAzMS4xSDQxNy43Yy4yIDAgLjUuOTEuNy45NHpNMzAuMjcgNDEuMjZDMTkgNDIuMDEgMTAuMDIgNTEuMDEgOS4yNTcgNjIuNHYzODcuM2MuMzczIDUuNCAyLjY1MyAxMC41IDYuNDQzIDE0LjMgMy43OCAzLjkgOC44MSA2LjMgMTQuMTkgNi43SDQxOC4xYzExLjUtMSAyMC42LTExLjYgMjAuNi0yMi42VjYzLjkxYzAtNS43NC0yLjEtMTEuMjYtNi0xNS40Ni0zLjktNC4yMS05LjMtNi43OC0xNS03LjE5SDMwLjI3eiIvPjwvc3ZnPg==');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 })
], IconImdbComponent.prototype, "size", void 0);
__decorate([
    property({ type: String, reflect: true })
], IconImdbComponent.prototype, "scheme", void 0);
//# sourceMappingURL=imdb.js.map