import { Component, Input } from '@angular/core';
import { ApplyGeoFence } from '../../../../forms/page/widgets/apply-geofences';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "@angular/material/icon";
function ApplyGeoFenceWidgetViewComponent_ng_container_0_span_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 7);
    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 ApplyGeoFenceWidgetViewComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵelementStart(1, "div", 2);
    i0.ɵɵelementStart(2, "div", 3);
    i0.ɵɵelement(3, "mat-icon", 4);
    i0.ɵɵtemplate(4, ApplyGeoFenceWidgetViewComponent_ng_container_0_span_4_Template, 4, 1, "span", 5);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(5, "span", 6);
    i0.ɵɵtext(6);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(4);
    i0.ɵɵproperty("ngIf", ctx_r0.section.showPrompt);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(ctx_r0.widgetValue.inside ? "Inside" : "Outside");
} }
function ApplyGeoFenceWidgetViewComponent_ng_template_1_span_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 11);
    i0.ɵɵtext(1);
    i0.ɵɵelementStart(2, "span", 8);
    i0.ɵɵtext(3, " :");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r4 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(ctx_r4.widget.prompt);
} }
function ApplyGeoFenceWidgetViewComponent_ng_template_1_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, ApplyGeoFenceWidgetViewComponent_ng_template_1_span_3_Template, 4, 1, "span", 9);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "span", 10);
    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 ApplyGeoFenceWidgetViewComponent {
    ngOnInit() {
        this.widgetValue = this.widget.getWidgetValue();
    }
}
ApplyGeoFenceWidgetViewComponent.ɵfac = function ApplyGeoFenceWidgetViewComponent_Factory(t) { return new (t || ApplyGeoFenceWidgetViewComponent)(); };
ApplyGeoFenceWidgetViewComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ApplyGeoFenceWidgetViewComponent, selectors: [["lib-apply-geo-fence-widget-view"]], inputs: { widget: "widget" }, decls: 3, vars: 2, consts: [[4, "ngIf", "ngIfElse"], ["isWidgetValueEmpty", ""], [1, "data-detail-infoc", "capture-container"], [1, "data-detail-title", "flex", "text-sm"], ["svgIcon", "axo_applygeofence", 1, "add-text"], ["class", "pl-2", 4, "ngIf"], [1, "flex", "justify-start", "data-detail-text"], [1, "pl-2"], [1, "colon"], ["class", "pl-2 text-sm", 4, "ngIf"], [1, "flex", "justify-start"], [1, "pl-2", "text-sm"]], template: function ApplyGeoFenceWidgetViewComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵtemplate(0, ApplyGeoFenceWidgetViewComponent_ng_container_0_Template, 7, 2, "ng-container", 0);
        i0.ɵɵtemplate(1, ApplyGeoFenceWidgetViewComponent_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(ApplyGeoFenceWidgetViewComponent, [{
        type: Component,
        args: [{ selector: 'lib-apply-geo-fence-widget-view', template: "<ng-container *ngIf=\"widget.value; else isWidgetValueEmpty\" >\n    <div class=\"data-detail-infoc capture-container\">\n        <div class=\"data-detail-title flex text-sm\">\n            <mat-icon class=\"add-text\" svgIcon=\"axo_applygeofence\"></mat-icon> \n            <span *ngIf=\"section.showPrompt\" class=\"pl-2\">{{widget.prompt}}<span class=\"colon\"> :</span></span>\n        </div>\n        <span class=\"flex justify-start data-detail-text\">{{widgetValue.inside ? \"Inside\" : \"Outside\"}}</span>\n      </div>\n</ng-container>\n<ng-template #isWidgetValueEmpty>\n    <div class=\"data-detail-infoc capture-container\">\n        <div class=\"data-detail-title flex text-sm\">\n            <mat-icon class=\"add-text\" svgIcon=\"axo_applygeofence\"></mat-icon> \n            <span *ngIf=\"section.showPrompt\" class=\"pl-2 text-sm\">{{widget.prompt}}<span class=\"colon\"> :</span></span>\n        </div>\n        <span class=\"flex justify-start\">-</span>\n      </div>\n</ng-template>", styles: [""] }]
    }], null, { widget: [{
            type: Input
        }] }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwbHktZ2VvLWZlbmNlLXdpZGdldC12aWV3LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9heC1jb21tb24tdWktbGliL3NyYy9saWIvZm9ybS1vYmplY3QvZm9ybS1vYmplY3Qtdmlldy9mb3JtLW9i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