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