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 React from 'react';
import { createComponent } from '@lit-labs/react';
import { html, css } from 'lit';
import { property } from 'lit/decorators.js';
import { classMap } from 'lit/directives/class-map.js';
import { styleMap } from 'lit/directives/style-map.js';
import { TiniElement, partMap, VaryGroups, generateColorVaries, generateGradientVaries, generateScaleVaries } from 'tinijs';
export class IconHackerrankComponent extends TiniElement {
    static { this.defaultTagName = 'icon-hackerrank'; }
    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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48cGF0aCBkPSJNNDc3LjUgMTI4QzQ2MyAxMDMuMDUgMjg1LjEzIDAgMjU2LjE2IDBTNDkuMjUgMTAyLjc5IDM0Ljg0IDEyOHMtMTQuNDkgMjMwLjggMCAyNTYgMTkyLjM4IDEyOCAyMjEuMzIgMTI4UzQ2MyA0MDkuMDggNDc3LjQ5IDM4NHMxNC41MS0yMzEgLjAxLTI1NnpNMzE2LjEzIDQxNC4yMmMtNCAwLTQwLjkxLTM1Ljc3LTM4LTM4LjY5Ljg3LS44NyA2LjI2LTEuNDggMTcuNTUtMS44MyAwLTI2LjIzLjU5LTY4LjU5Ljk0LTg2LjMyIDAtMi0uNDQtMy40My0uNDQtNS44NWgtNzkuOTNjMCA3LjEtLjQ2IDM2LjIgMS4zNyA3Mi44OC4yMyA0LjU0LTEuNTggNi01Ljc0IDUuOTQtMTAuMTMgMC0yMC4yNy0uMTEtMzAuNDEtLjA4LTQuMSAwLTUuODctMS41My01Ljc0LTYuMTEuOTItMzMuNDQgMy04NC0uMTUtMjEyLjY3di0zLjE3Yy05LjY3LS4zNS0xNi4zOC0xLTE3LjI2LTEuODQtMi45Mi0yLjkyIDM0LjU0LTM4LjY5IDM4LjQ5LTM4LjY5czQxLjE3IDM1Ljc4IDM4LjI3IDM4LjY5Yy0uODcuODctNy45IDEuNDktMTYuNzcgMS44NHYzLjE2Yy0yLjQyIDI1Ljc1LTIgNzkuNTktMi42MyAxMDUuMzloODAuMjZjMC00LjU1LjM5LTM0Ljc0LTEuMi04My42NC0uMS0zLjM5Ljk1LTUuMTcgNC4yMS01LjIgMTEuMDctLjA4IDIyLjE1LS4xMyAzMy4yMy0uMDYgMy40NiAwIDQuNTcgMS43MiA0LjUgNS4zOEMzMzMgMzU0LjY0IDMzNiAzNDEuMjkgMzM2IDM3My42OWM4Ljg3LjM1IDE2LjgyIDEgMTcuNjkgMS44NCAyLjg4IDIuOTEtMzMuNjIgMzguNjktMzcuNTggMzguNjl6Ii8+PC9zdmc+');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(changedValues) { super.willUpdate(changedValues); this.extendRootClassesParts({ scheme: !!this.scheme, [`${VaryGroups.Scale}-${this.scale}`]: !!this.scale, [`${VaryGroups.Scheme}-${this.scheme}`]: !!this.scheme }); }
    render() { return html `<i part=${partMap(this.rootClassesParts)} class=${classMap(this.rootClassesParts)} style=${styleMap(this.rootStyles)}></i>`; }
}
__decorate([
    property({ type: String, reflect: true })
], IconHackerrankComponent.prototype, "scale", void 0);
__decorate([
    property({ type: String, reflect: true })
], IconHackerrankComponent.prototype, "scheme", void 0);
export const IconHackerrank = createComponent({
    tagName: IconHackerrankComponent.defaultTagName,
    elementClass: IconHackerrankComponent,
    react: React,
});
//# sourceMappingURL=hackerrank.js.map