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, unsafeCSS } from 'lit';
import { property } from 'lit/decorators.js';
import { classMap } from 'lit/directives/class-map.js';
export const ICON_RAVELRY = 'icon-ravelry';
export class IconRavelryComponent extends LitElement {
    static { this.styles = css `:host {--icon-width: calc(var(--size-md) * 2);--icon-height: calc(var(--size-md) * 2);--icon-color: none;--icon-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48IS0tISBGb250IEF3ZXNvbWUgRnJlZSA2LjQuMCBieSBAZm9udGF3ZXNvbWUgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbSBMaWNlbnNlIC0gaHR0cHM6Ly9mb250YXdlc29tZS5jb20vbGljZW5zZS9mcmVlIChJY29uczogQ0MgQlkgNC4wLCBGb250czogU0lMIE9GTCAxLjEsIENvZGU6IE1JVCBMaWNlbnNlKSBDb3B5cmlnaHQgMjAyMyBGb250aWNvbnMsIEluYy4gLS0+PHBhdGggZD0iTTQ5OC4yNTIsMjM0LjIyM2MtMS4yMDgtMTAuMzQtMS43LTIwLjgyNi0zLjc0Ni0zMWEzMTAuMzA2LDMxMC4zMDYsMCwwLDAtOS42MjItMzYuNiwxODQuMDY4LDE4NC4wNjgsMCwwLDAtMzAuODc0LTU3LjUsMjUxLjE1NCwyNTEuMTU0LDAsMCwwLTE4LjgxOC0yMS42ODksMjM3LjM2MiwyMzcuMzYyLDAsMCwwLTQ3L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uMTQ5LDAsMCwxLDEuMTkuNTZoMzIuMjg5YzIuNTA3LS4zODksNS0uOTM3LDcuNTI3LTEuMTQzLDE2LjMzNi0xLjMzMiwzMi4xMDctNS4zMzUsNDcuNDg5LTEwLjcxN0EyMTkuOTkyLDIxOS45OTIsMCwwLDAsMzc5LjEsNDYwLjMyMmM5Ljc0OS02LjQ0NywxOS4zOTUtMTMuMDc3LDI4LjczNy0yMC4xLDUuNzg1LTQuMzQ4LDEwLjk4OC05LjUsMTYuMy0xNC40NTcsMy45NjQtMy43LDcuNzY0LTcuNTc4LDExLjUxLTExLjVhMjMyLjE2MiwyMzIuMTYyLDAsMCwwLDMxLjQyNy00MS42MzljOS41NDItMTYuMDQ1LDE3LjM1NS0zMi45MDUsMjIuMy01MC45MjYsMi44NTktMTAuNDEzLDQuOTQ3LTIxLjA0NSw3LjAxNy0zMS42NTIsMS4wMzItNS4yNzksMS4yNTEtMTAuNzIzLDEuODctMTYuMDg3LjAzNi0uMzE3LjM1OC0uNi41NTItLjlWMjM2LjAwNUE5Ljc1Nyw5Ljc1NywwLDAsMSw0OTguMjUyLDIzNC4yMjNabS0xNjEuMTE3LTEuMTVzLTE2LjU3Mi0yLjk4LTI4LjQ3LTIuOThjLTI3LjIsMC0zMy41NywxNC45LTMzLjU3LDM3LjA0VjM2MC44SDIwMS41ODJWMTcwLjA2MkgyNzUuMXYzMS45MzFjOC45MjQtMjYuODIyLDI2Ljc3MS0zNi4xODksNjIuMDQtMzYuMTg5WiIvPjwvc3ZnPg==');}:host {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;}.${unsafeCSS("dynamic" /* Colors.Dynamic */)}{--icon-color: var(--color-foreground);}.${unsafeCSS("primary" /* Colors.Primary */)}{--icon-color: var(--color-primary);}.${unsafeCSS("secondary" /* Colors.Secondary */)}{--icon-color: var(--color-secondary);}.${unsafeCSS("tertiary" /* Colors.Tertiary */)}{--icon-color: var(--color-tertiary);}.${unsafeCSS("success" /* Colors.Success */)}{--icon-color: var(--color-success);}.${unsafeCSS("warning" /* Colors.Warning */)}{--icon-color: var(--color-warning);}.${unsafeCSS("danger" /* Colors.Danger */)}{--icon-color: var(--color-danger);}.${unsafeCSS("light" /* Colors.Light */)}{--icon-color: var(--color-light);}.${unsafeCSS("medium" /* Colors.Medium */)}{--icon-color: var(--color-medium);}.${unsafeCSS("dark" /* Colors.Dark */)}{--icon-color: var(--color-dark);}.${unsafeCSS("gradient-primary" /* Colors.GradientPrimary */)}{--icon-color: var(--gradient-primary);}.${unsafeCSS("gradient-secondary" /* Colors.GradientSecondary */)}{--icon-color: var(--gradient-secondary);}.${unsafeCSS("gradient-tertiary" /* Colors.GradientTertiary */)}{--icon-color: var(--gradient-tertiary);}.${unsafeCSS("gradient-success" /* Colors.GradientSuccess */)}{--icon-color: var(--gradient-success);}.${unsafeCSS("gradient-warning" /* Colors.GradientWarning */)}{--icon-color: var(--gradient-warning);}.${unsafeCSS("gradient-danger" /* Colors.GradientDanger */)}{--icon-color: var(--gradient-danger);}.${unsafeCSS("gradient-light" /* Colors.GradientLight */)}{--icon-color: var(--gradient-light);}.${unsafeCSS("gradient-medium" /* Colors.GradientMedium */)}{--icon-color: var(--gradient-medium);}.${unsafeCSS("gradient-dark" /* Colors.GradientDark */)}{--icon-color: var(--gradient-dark);}.${unsafeCSS("xs" /* Sizes.XS */)}{--icon-width: calc(var(--size-xs) * 2);--icon-height: calc(var(--size-xs) * 2);}.${unsafeCSS("sm" /* Sizes.SM */)}{--icon-width: var(--size-sm);--icon-height: var(--size-sm);}.${unsafeCSS("lg" /* Sizes.LG */)}{--icon-width: var(--size-lg);--icon-height: var(--size-lg);}.${unsafeCSS("xl" /* Sizes.XL */)}{--icon-width: calc(var(--size-xl) * 1.25);--icon-height: calc(var(--size-xl) * 1.25);}.${unsafeCSS("xxl" /* Sizes.XXL */)}{--icon-width: calc(var(--size-xxl) * 1.5);--icon-height: calc(var(--size-xxl) * 1.5);}`; }
    render() { return html `<i part="icon" class=${classMap({ recolor: !!this.color, [this.color]: !!this.color, [this.size]: !!this.size })}></i>`; }
}
__decorate([
    property({ type: String })
], IconRavelryComponent.prototype, "size", void 0);
__decorate([
    property({ type: String })
], IconRavelryComponent.prototype, "color", void 0);
//# sourceMappingURL=ravelry.js.map