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";
import * as i2 from "@angular/material/icon";
function CounterWidgetViewComponent_div_0_span_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵelementStart(2, "span", 8);
    i0.ɵɵtext(3, ":");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r3 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(ctx_r3.widget.prompt);
} }
function CounterWidgetViewComponent_div_0_span_6_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 9);
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r4 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(ctx_r4.widget.unit);
} }
function CounterWidgetViewComponent_div_0_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 2);
    i0.ɵɵelementStart(1, "div", 3);
    i0.ɵɵelement(2, "mat-icon", 4);
    i0.ɵɵtemplate(3, CounterWidgetViewComponent_div_0_span_3_Template, 4, 1, "span", 5);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "div", 6);
    i0.ɵɵtext(5);
    i0.ɵɵtemplate(6, CounterWidgetViewComponent_div_0_span_6_Template, 2, 1, "span", 7);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngIf", ctx_r0.section.showPrompt);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", ctx_r0.widget.value, " ");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r0.widget.unit);
} }
function CounterWidgetViewComponent_ng_template_1_span_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵelementStart(2, "span", 8);
    i0.ɵɵtext(3, ":");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r5 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(ctx_r5.widget.prompt);
} }
function CounterWidgetViewComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 10);
    i0.ɵɵelementStart(1, "div", 11);
    i0.ɵɵelement(2, "mat-icon", 12);
    i0.ɵɵtemplate(3, CounterWidgetViewComponent_ng_template_1_span_3_Template, 4, 1, "span", 5);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "span", 13);
    i0.ɵɵtext(5, "-");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r2 = i0.ɵɵnextContext();
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngIf", ctx_r2.section.showPrompt);
} }
export class CounterWidgetViewComponent {
    constructor() { }
    ngOnInit() {
    }
}
CounterWidgetViewComponent.ɵfac = function CounterWidgetViewComponent_Factory(t) { return new (t || CounterWidgetViewComponent)(); };
CounterWidgetViewComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CounterWidgetViewComponent, selectors: [["lib-counter-widget-view"]], inputs: { widget: "widget" }, decls: 3, vars: 2, consts: [["class", "data-detail-info", 4, "ngIf", "ngIfElse"], ["isWidgetValueEmpty", ""], [1, "data-detail-info"], [1, "data-detail-title", "flex", "text-sm"], ["svgIcon", "axo_counter", 1, "add-text"], [4, "ngIf"], [1, "data-detail-text", "text-sm"], ["class", "pl-1", 4, "ngIf"], [1, "colon"], [1, "pl-1"], [1, "flex", "gap-4", "items-center"], [1, "data-detail-title", "flex", "text-sm", "m-0"], ["svgIcon", "axo_document", 1, "add-text"], [1, "flex", "justify-start"]], template: function CounterWidgetViewComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵtemplate(0, CounterWidgetViewComponent_div_0_Template, 7, 3, "div", 0);
        i0.ɵɵtemplate(1, CounterWidgetViewComponent_ng_template_1_Template, 6, 1, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
    } if (rf & 2) {
        const _r1 = i0.ɵɵreference(2);
        i0.ɵɵproperty("ngIf", ctx.widget.value)("ngIfElse", _r1);
    } }, directives: [i1.NgIf, i2.MatIcon], styles: [""] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CounterWidgetViewComponent, [{
        type: Component,
        args: [{ selector: 'lib-counter-widget-view', template: "<div class=\"data-detail-info\" *ngIf=\"widget.value ;else isWidgetValueEmpty\">\n    <div class=\"data-detail-title flex text-sm\"><mat-icon class=\"add-text\" svgIcon=\"axo_counter\"></mat-icon>  <span *ngIf=\"section.showPrompt\">{{widget.prompt}}<span class=\"colon\">:</span></span></div>\n    <div class=\"data-detail-text text-sm\"> {{widget.value}}\n        <span class=\"pl-1\" *ngIf=\" widget.unit\">{{widget.unit}}</span>\n    </div>\n    \n  \n</div>\n<ng-template #isWidgetValueEmpty>\n    <div class=\"flex gap-4 items-center\">\n        <div class=\"data-detail-title flex text-sm m-0\">\n            <mat-icon class=\"add-text\" svgIcon=\"axo_document\"></mat-icon> \n            <span *ngIf=\"section.showPrompt\">{{widget.prompt}}<span class=\"colon\">:</span></span>\n        </div>\n        <span class=\"flex justify-start\">-</span>\n    </div>\n    \n\n</ng-template>\n", styles: [""] }]
    }], function () { return []; }, { widget: [{
            type: Input
        }] }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291bnRlci13aWRnZXQtdmlldy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXgtY29tbW9uLXVp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