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 { customElement } from 'lit/decorators.js';
import { LitElement, html, css, unsafeCSS } from 'lit';
import { property } from 'lit/decorators.js';
import { classMap } from 'lit/directives/class-map.js';
export const ICON_LEANPUB = 'icon-leanpub';
export let IconLeanpubComponent = class IconLeanpubComponent 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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1NzYgNTEyIj48IS0tISBGb250IEF3ZXNvbWUgRnJlZSA2LjQuMCBieSBAZm9udGF3ZXNvbWUgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbSBMaWNlbnNlIC0gaHR0cHM6Ly9mb250YXdlc29tZS5jb20vbGljZW5zZS9mcmVlIChJY29uczogQ0MgQlkgNC4wLCBGb250czogU0lMIE9GTCAxLjEsIENvZGU6IE1JVCBMaWNlbnNlKSBDb3B5cmlnaHQgMjAyMyBGb250aWNvbnMsIEluYy4gLS0+PHBhdGggZD0iTTM4Ni41MzkgMTExLjQ4NWwxNS4wOTYgMjQ4Ljk1NS0xMC45NzktLjI3NWMtMzYuMjMyLS44MjQtNzEuNjQgOC43ODMtMTAyLjY1NyAyNy45OTctMzEuMDE2LTE5LjIxNC02Ni40MjQtMjcuOTk3LTEwMi42NTctMjcuOTk3LTQ1LjU2NCAwLTgyLjA3IDEwLjcwNS0xMjMuNTE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YgMTM1LjA0NS0zMy40ODYgMzcuNjA0IDAgNzAuODE3IDkuNjA2IDEwMi42NTcgMjkuNjQ0IDMxLjg0LTIwLjAzOCA2NS4wNTItMjkuNjQ0IDEwMi42NTctMjkuNjQ0IDUyLjE1MSAwIDg3LjgzNCAxMy45OTkgMTM1LjA0NSAzMy40ODZ6Ii8+PC9zdmc+');}: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 })
], IconLeanpubComponent.prototype, "size", void 0);
__decorate([
    property({ type: String })
], IconLeanpubComponent.prototype, "color", void 0);
IconLeanpubComponent = __decorate([
    customElement(ICON_LEANPUB)
], IconLeanpubComponent);
//# sourceMappingURL=leanpub.import.js.map