import { Component, Input } from '@angular/core';
import { AutoNumber } from '../../../../forms/page/widgets/auto-number';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "@angular/material/icon";
function AutoNumberWidgetViewComponent_div_1_span_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵelementStart(2, "span", 7);
    i0.ɵɵtext(3, ":");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r2 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(ctx_r2.widget.prompt);
} }
function AutoNumberWidgetViewComponent_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 3);
    i0.ɵɵelementStart(1, "div", 4);
    i0.ɵɵelement(2, "mat-icon", 5);
    i0.ɵɵtemplate(3, AutoNumberWidgetViewComponent_div_1_span_3_Template, 4, 1, "span", 2);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "div", 6);
    i0.ɵɵtext(5);
    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, "");
} }
function AutoNumberWidgetViewComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵelementStart(1, "span", 8);
    i0.ɵɵtext(2, "-");
    i0.ɵɵelementEnd();
    i0.ɵɵelementContainerEnd();
} }
export class AutoNumberWidgetViewComponent {
    //widgetValue: TextValue;
    constructor() { }
    ngOnInit() {
        //this.widgetValue = widget.value;
        ////this.widgetValue = this.widget.value as string;
    }
}
AutoNumberWidgetViewComponent.ɵfac = function AutoNumberWidgetViewComponent_Factory(t) { return new (t || AutoNumberWidgetViewComponent)(); };
AutoNumberWidgetViewComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AutoNumberWidgetViewComponent, selectors: [["lib-auto-number-widget-view"]], inputs: { widget: "widget" }, decls: 3, vars: 2, consts: [[1, "column1"], ["class", "data-detail-info", 4, "ngIf"], [4, "ngIf"], [1, "data-detail-info"], [1, "data-detail-title"], ["svgIcon", "axo_autoNumber", 1, "add-text"], [1, "data-detail-text", "text-sm"], [1, "colon"], [1, "flex", "justify-start"]], template: function AutoNumberWidgetViewComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵelementStart(0, "div", 0);
        i0.ɵɵtemplate(1, AutoNumberWidgetViewComponent_div_1_Template, 6, 2, "div", 1);
        i0.ɵɵtemplate(2, AutoNumberWidgetViewComponent_ng_container_2_Template, 3, 0, "ng-container", 2);
        i0.ɵɵelementEnd();
    } if (rf & 2) {
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngIf", ctx.widget.value);
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngIf", !ctx.widget.value);
    } }, directives: [i1.NgIf, i2.MatIcon], styles: [""] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AutoNumberWidgetViewComponent, [{
        type: Component,
        args: [{ selector: 'lib-auto-number-widget-view', template: "<div class=\"column1\">\n    <div class=\"data-detail-info\" *ngIf=\"widget.value\">\n        <div class=\"data-detail-title\"><mat-icon class=\"add-text\" svgIcon=\"axo_autoNumber\"></mat-icon> <span *ngIf=\"section.showPrompt\">{{widget.prompt}}<span class=\"colon\">:</span></span>\n         </div>\n         <div class=\"data-detail-text text-sm\"> {{widget.value}}</div>\n      </div>\n      <ng-container *ngIf=\"!widget.value\" >\n        <span class=\"flex justify-start\">-</span>\n     </ng-container>\n  </div>\n \n", styles: [""] }]
    }], function () { return []; }, { widget: [{
            type: Input
        }] }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaW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