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