import { Component, Input, ViewEncapsulation } from '@angular/core';
import * as i0 from "@angular/core";
export class UxEditorCountersComponent {
    constructor() {
        this.isMaxLengthValid = true;
    }
}
/** @nocollapse */ UxEditorCountersComponent.ɵfac = function UxEditorCountersComponent_Factory(t) { return new (t || UxEditorCountersComponent)(); };
/** @nocollapse */ UxEditorCountersComponent.ɵcmp = i0.ɵɵdefineComponent({ type: UxEditorCountersComponent, selectors: [["ux-editor-counters"]], inputs: { charactersCounter: "charactersCounter", charactersLabel: "charactersLabel", wordsCounter: "wordsCounter", wordsLabel: "wordsLabel", isMaxLengthValid: "isMaxLengthValid" }, decls: 11, vars: 6, consts: [[1, "editor-counters"], [1, "flex-container", "flex-column", "mr-2"], [1, "chars-counter"], [1, "chars-label"], [1, "flex-container", "flex-column"], [1, "words-counter"], [1, "words-label"]], template: function UxEditorCountersComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵelementStart(0, "button", 0);
        i0.ɵɵelementStart(1, "div", 1);
        i0.ɵɵelementStart(2, "span", 2);
        i0.ɵɵtext(3);
        i0.ɵɵelementEnd();
        i0.ɵɵelementStart(4, "span", 3);
        i0.ɵɵtext(5);
        i0.ɵɵelementEnd();
        i0.ɵɵelementEnd();
        i0.ɵɵelementStart(6, "div", 4);
        i0.ɵɵelementStart(7, "span", 5);
        i0.ɵɵtext(8);
        i0.ɵɵelementEnd();
        i0.ɵɵelementStart(9, "span", 6);
        i0.ɵɵtext(10);
        i0.ɵɵelementEnd();
        i0.ɵɵelementEnd();
        i0.ɵɵelementEnd();
    } if (rf & 2) {
        i0.ɵɵadvance(2);
        i0.ɵɵclassProp("chars-counter--error", !ctx.isMaxLengthValid);
        i0.ɵɵadvance(1);
        i0.ɵɵtextInterpolate(ctx.charactersCounter);
        i0.ɵɵadvance(2);
        i0.ɵɵtextInterpolate(ctx.charactersLabel);
        i0.ɵɵadvance(3);
        i0.ɵɵtextInterpolate(ctx.wordsCounter);
        i0.ɵɵadvance(2);
        i0.ɵɵtextInterpolate(ctx.wordsLabel);
    } }, styles: ["\n    "], encapsulation: 2 });
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(UxEditorCountersComponent, [{
        type: Component,
        args: [{
                selector: 'ux-editor-counters',
                styles: [`
    `],
                template: `
    <button class="editor-counters">
        <div class="flex-container flex-column mr-2">
            <span class="chars-counter" [class.chars-counter--error]="!isMaxLengthValid">{{charactersCounter}}</span>
            <span class="chars-label">{{charactersLabel}}</span>
        </div>
        <div class="flex-container flex-column">
            <span class="words-counter">{{wordsCounter}}</span>
            <span class="words-label">{{wordsLabel}}</span>
        </div>
    </button>
    `,
                encapsulation: ViewEncapsulation.None,
            }]
    }], function () { return []; }, { charactersCounter: [{
            type: Input
        }], charactersLabel: [{
            type: Input
        }], wordsCounter: [{
            type: Input
        }], wordsLabel: [{
            type: Input
        }], isMaxLengthValid: [{
            type: Input
        }] }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXgtZWRpdG9yLWNvdW50ZXJzLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIvYnVpbGRzL2V1aS9jYy1jc2RyLXJvb3QvcGFja2FnZXMvZXVpL3BhY2thZ2VzL2V4dGVybmFscy9zcmMvbGliL3V4LWVkaXRvci8iLCJzb3VyY2VzIjpbInV4LWVkaXRvci1jb3VudGVycy5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBcUJwRSxNQUFNLE9BQU8seUJBQXlCO0lBT2xDO1FBRlMscUJBQWdCLEdBQVksSUFBSSxDQUFDO0lBRTNCLENBQUM7O3FIQVBQLHlCQUF5QjtpRkFBekIseUJBQXlCO1FBZGxDLGlDQUNJO1FBQUEsOEJBQ0k7UUFBQSwrQkFBNkU7UUFBQSxZQUFxQjtRQUFBLGlCQUFPO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