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 { 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 let IconGitComponent = class IconGitComponent extends TiniElement {
    static { this.defaultTagName = 'icon-git'; }
    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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48cGF0aCBkPSJNMjE2LjI5IDE1OC4zOUgxMzdDOTcgMTQ3LjkgNi41MSAxNTAuNjMgNi41MSAyMzMuMThjMCAzMC4wOSAxNSA1MS4yMyAzNSA2MS0yNS4xIDIzLTM3IDMzLjg1LTM3IDQ5LjIxIDAgMTEgNC40NyAyMS4xNCAxNy44OSAyNi44MUM4LjEzIDM4My42MSAwIDM5My4zNSAwIDQxMS42NWMwIDMyLjExIDI4LjA1IDUwLjgyIDEwMS42MyA1MC44MiA3MC43NSAwIDExMS43OS0yNi40MiAxMTEuNzktNzMuMTggMC01OC42Ni00NS4xNi01Ni41LTE1MS42My02M2wxMy40My0yMS41NWMyNy4yNyA3LjU4IDExOC43IDEwIDExOC43LTY3Ljg5IDAtMTguNy03LjczLTMxLjcxLTE1LTQxLjA3bDM3LjQxLTIuODR6bS02My40MiAyNDEuOWMwIDMyLjA2LTEwNC44OSAzMi4xLTEwNC44OSAyLjQzIDAtOC4xNCA1LjI3LTE1IDEwLjU3LTIxLjU0IDc3LjcxIDUuMyA5NC4zMiAzLjM3IDk0LjMyIDE5LjExem0tNTAuODEtMTM0LjU4Yy01Mi44IDAtNTAuNDYtNzEuMTYgMS4yLTcxLjE2IDQ5LjU0IDAgNTAuODIgNzEuMTYtMS4yIDcxLjE2em0xMzMuMyAxMDAuNTF2LTMyLjFjMjYuNzUtMy42NiAyNy4yNC0yIDI3LjI0LTExVjIwMy42MWMwLTguNS0yLjA1LTcuMzgtMjcuMjQtMTYuMjZsNC40Ny0zMi45MkgzMjR2MTY4LjcxYzAgNi41MS40IDcuMzIgNi41MSA4LjE0bDIwLjczIDIuODR2MzIuMXptNTIuNDUtMjQ0LjMxYy0yMy4xNyAwLTM2LjU5LTEzLjQzLTM2LjU5LTM2LjYxczEzLjQyLTM1Ljc3IDM2LjU5LTM1Ljc3YzIzLjU4IDAgMzcgMTIuNjIgMzcgMzUuNzdzLTEzLjQyIDM2LjYxLTM3IDM2LjYxek01MTIgMzUwLjQ2Yy0xNy40OSA4LjUzLTQzLjEgMTYuMjYtNjYuMjggMTYuMjYtNDguMzggMC02Ni42Ny0xOS41LTY2LjY3LTY1LjQ2VjE5NC43NWMwLTUuNDIgMS4wNS00LjA2LTMxLjcxLTQuMDZWMTU0LjVjMzUuNzgtNC4wNyA1MC0yMiA1NC40Ny02Ni4yN2gzOC42M2MwIDY1LjgzLTEuMzQgNjEuODEgMy4yNiA2MS44MUg1MDF2NDAuNjVoLTYwLjU2djk3LjE1YzAgNi45Mi00LjkyIDUxLjQxIDYwLjU3IDI2Ljg0eiIvPjwvc3ZnPg==');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 })
], IconGitComponent.prototype, "scale", void 0);
__decorate([
    property({ type: String, reflect: true })
], IconGitComponent.prototype, "scheme", void 0);
IconGitComponent = __decorate([
    customElement('icon-git')
], IconGitComponent);
//# sourceMappingURL=git.include.js.map