import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "../../directives/evo-ui-class.directive";
export var EvoCounterSize;
(function (EvoCounterSize) {
    EvoCounterSize["small"] = "small";
    EvoCounterSize["normal"] = "normal";
})(EvoCounterSize || (EvoCounterSize = {}));
export class EvoCounterComponent {
    constructor() {
        this.size = EvoCounterSize.normal;
    }
    set setSize(size) {
        if (EvoCounterSize[size]) {
            this.size = EvoCounterSize[size];
        }
    }
    get blockClasses() {
        return {
            'disabled': this.disabled,
            [`size-${this.size}`]: this.size !== EvoCounterSize.normal
        };
    }
}
EvoCounterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: EvoCounterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
EvoCounterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: EvoCounterComponent, selector: "evo-counter", inputs: { value: "value", disabled: "disabled", setSize: ["size", "setSize"] }, ngImport: i0, template: "<div class=\"evo-counter\" [evoUiClass]=\"blockClasses\">\n    <span class=\"evo-counter__value\">{{value}}</span>\n</div>\n", styles: [".evo-counter{display:inline-flex;justify-content:center;align-items:center;width:-moz-fit-content;width:fit-content;min-width:20px;height:20px;padding:1px 6px;background-color:#f05023;border-radius:32px}.evo-counter_disabled{background-color:#c6c6c6}.evo-counter__value{color:#fff;font:var(--evo-font);font-weight:700;font-size:13px;line-height:18px}.evo-counter_size-small{min-width:18px;height:18px;padding:0 6px}.evo-counter_size-small .evo-counter__value{font-weight:600;font-size:10px;line-height:14px}\n"], directives: [{ type: i1.EvoUiClassDirective, selector: "[evoUiClass]", inputs: ["class", "evoUiClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: EvoCounterComponent, decorators: [{
            type: Component,
            args: [{ selector: 'evo-counter', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"evo-counter\" [evoUiClass]=\"blockClasses\">\n    <span class=\"evo-counter__value\">{{value}}</span>\n</div>\n", styles: [".evo-counter{display:inline-flex;justify-content:center;align-items:center;width:-moz-fit-content;width:fit-content;min-width:20px;height:20px;padding:1px 6px;background-color:#f05023;border-radius:32px}.evo-counter_disabled{background-color:#c6c6c6}.evo-counter__value{color:#fff;font:var(--evo-font);font-weight:700;font-size:13px;line-height:18px}.evo-counter_size-small{min-width:18px;height:18px;padding:0 6px}.evo-counter_size-small .evo-counter__value{font-weight:600;font-size:10px;line-height:14px}\n"] }]
        }], propDecorators: { value: [{
                type: Input
            }], disabled: [{
                type: Input
            }], setSize: [{
                type: Input,
                args: ['size']
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZvLWNvdW50ZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZXZvLXVpLWtpdC9zcmMvbGliL2NvbXBvbmVudHMvZXZvLWNvdW50ZXIvZXZvLWNvdW50ZXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZXZvLXVpLWtpdC9zcmMvbGliL2NvbXBvbmVudHMvZXZvLWNvdW50ZXIvZXZvLWNvdW50ZXIuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7OztBQUUxRSxNQUFNLENBQU4sSUFBWSxjQUdYO0FBSEQsV0FBWSxjQUFjO0lBQ3RCLGlDQUFlLENBQUE7SUFDZixtQ0FBaUIsQ0FBQTtBQUNyQixDQUFDLEVBSFcsY0FBYyxLQUFkLGNBQWMsUUFHekI7QUFRRCxNQUFNLE9BQ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