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 { html, css } from 'lit';
import { property } from 'lit/decorators.js';
import { classMap } from 'lit/directives/class-map.js';
import { TiniElement, partMap, VaryGroups, generateColorVaries, generateGradientVaries, generateScaleVaries } from 'tinijs';
export class IconCupStrawComponent extends TiniElement {
    static { this.defaultTagName = 'icon-cup-straw'; }
    static { this.componentName = 'icon'; }
    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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9ImN1cnJlbnRDb2xvciIgY2xhc3M9ImJpIGJpLWN1cC1zdHJhdyIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBkPSJNMTMuOTAyLjMzNGEuNS41IDAgMCAxLS4yOC42NWwtMi4yNTQuOTAyLS40IDEuOTI3Yy4zNzYuMDk1LjcxNS4yMTUuOTcyLjM2Ny4yMjguMTM1LjU2LjM5Ni41Ni44MiAwIC4wNDYtLjAwNC4wOS0uMDExLjEzMmwtLjk2MiA5LjA2OGExLjI4IDEuMjggMCAwIDEtLjUyNC45M2MtLjQ4OC4zNC0xLjQ5NC44Ny0zLjAxLjg3LTEuNTE2IDAtMi41MjItLjUzLTMuMDEtLjg3YTEuMjggMS4yOCAwIDAgMS0uNTI0LS45M0wzLjUxIDUuMTMyQS43OC43OCAwIDAgMSAzLjUgNWMwLS40MjQuMzMyLS42ODUuNTYtLjgyLjI2Mi0uMTU0LjYwNy0uMjc2Ljk5LS4zNzJDNS44MjQgMy42MTQgNi44NjcgMy41IDggMy41Yy43MTIgMCAxLjM4OS4wNDUgMS45ODUuMTI3bC40NjQtMi4yMTVhLjUuNSAwIDAgMSAuMzAzLS4zNTZsMi41LTFhLjUuNSAwIDAgMSAuNjUuMjc4ek05Ljc2OCA0LjYwN0ExMy45OTEgMTMuOTkxIDAgMCAwIDggNC41Yy0xLjA3NiAwLTIuMDMzLjExLTIuNzA3LjI3OEEzLjI4NCAzLjI4NCAwIDAgMCA0LjY0NSA1Yy4xNDYuMDczLjM2Mi4xNS42NDguMjIyQzUuOTY3IDUuMzkgNi45MjQgNS41IDggNS41Yy41NzEgMCAxLjEwOS0uMDMgMS41ODgtLjA4NXptLjI5MiAxLjc1NkM5LjQ0NSA2LjQ1IDguNzQyIDYuNSA4IDYuNWMtMS4xMzMgMC0yLjE3Ni0uMTE0LTIuOTUtLjMwOGE1LjUxNCA1LjUxNCAwIDAgMS0uNDM1LS4xMjdsLjgzOCA4LjAzYy4wMTMuMTIxLjA2LjE4Ni4xMDIuMjE1LjM1Ny4yNDkgMS4xNjguNjkgMi40MzguNjkgMS4yNyAwIDIuMDgxLS40NDEgMi40MzgtLjY5LjA0Mi0uMDI5LjA5LS4wOTQuMTAyLS4yMTVsLjg1Mi04LjAzYTUuNTE3IDUuNTE3IDAgMCAxLS40MzUuMTI3IDguODggOC44OCAwIDAgMS0uODkuMTd6TTQuNDY3IDQuODg0cy4wMDMuMDAyLjAwNS4wMDZ6bTcuMDY2IDAtLjAwNS4wMDZjLjAwMi0uMDA0LjAwNS0uMDA2LjAwNS0uMDA2TTExLjM1NCA1YTMuMTc0IDMuMTc0IDAgMCAwLS42MDQtLjIxbC0uMDk5LjQ0NS4wNTUtLjAxM2MuMjg2LS4wNzIuNTAyLS4xNDkuNjQ4LS4yMjIiLz48L3N2Zz4=');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() { this.extendRootClasses({ raw: { scheme: !!this.scheme }, overridable: { [VaryGroups.Scale]: this.scale, [VaryGroups.Scheme]: this.scheme } }); }
    render() { return html `<i class=${classMap(this.rootClasses)} part=${partMap(this.rootClasses)}></i>`; }
}
__decorate([
    property({ type: String, reflect: true })
], IconCupStrawComponent.prototype, "scale", void 0);
__decorate([
    property({ type: String, reflect: true })
], IconCupStrawComponent.prototype, "scheme", void 0);
//# sourceMappingURL=cup-straw.js.map