import { Component, Input } from '@angular/core';
import { Counter } from '../../../../forms/page/widgets/counter';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
function FormObjectCounterValueComponent_ng_container_0_span_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 2);
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(ctx_r1.widget.unit);
} }
function FormObjectCounterValueComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵelementStart(1, "span");
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(3, FormObjectCounterValueComponent_ng_container_0_span_3_Template, 2, 1, "span", 1);
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1("", ctx_r0.widget.value, " ");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r0.widget.unit);
} }
export class FormObjectCounterValueComponent {
    constructor() { }
    ngOnInit() {
    }
}
FormObjectCounterValueComponent.ɵfac = function FormObjectCounterValueComponent_Factory(t) { return new (t || FormObjectCounterValueComponent)(); };
FormObjectCounterValueComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormObjectCounterValueComponent, selectors: [["app-formobject-counter-value"]], inputs: { widget: "widget" }, decls: 1, vars: 1, consts: [[4, "ngIf"], ["class", "pl-1", 4, "ngIf"], [1, "pl-1"]], template: function FormObjectCounterValueComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵtemplate(0, FormObjectCounterValueComponent_ng_container_0_Template, 4, 2, "ng-container", 0);
    } if (rf & 2) {
        i0.ɵɵproperty("ngIf", ctx.widget.value);
    } }, directives: [i1.NgIf], styles: [""] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormObjectCounterValueComponent, [{
        type: Component,
        args: [{ selector: 'app-formobject-counter-value', template: "<ng-container *ngIf=\"widget.value\">\n    <span>{{widget.value}}\n    </span>    \n    <span *ngIf=\"widget.unit\" class=\"pl-1\">{{widget.unit}}</span>\n</ng-container>\n", styles: [""] }]
    }], function () { return []; }, { widget: [{
            type: Input
        }] }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybW9iamVjdC1jb3VudGVyLXZhbHVlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9heC1jb21tb24tdWktbGliL3NyYy9saWIvZm9ybS1vYmplY3QvZm9ybS1vYmplY3QtbGlzdC9mb3JtT2JqZWN0V2lkZ2V0VmFsdWUvZm9ybW9iamVjdC1jb3VudGVyLXZhbHVlL2Zvcm1vYmplY3QtY291bnRlci12YWx1ZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXgtY29tbW9uLXVpLWxpYi9zcmMvbGliL2Zvcm0tb2JqZWN0L2Zvcm0tb2JqZWN0LWxpc3QvZm9ybU9iamVjdFdpZGdldFZhbHVlL2Zvcm1vYmplY3QtY291bnRlci12YWx1ZS9mb3Jtb2JqZWN0LWNvdW50ZXItdmFsdWUuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFDekQsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLHdDQUF3QyxDQUFDOzs7O0lDRTdELCtCQUF1QztJQUFBLFlBQWU7SUFBQSxpQkFBTzs7O0lBQXRCLGVBQWU7SUFBZix3Q0FBZTs7O0lBSDFELDZCQUFtQztJQ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