import { Component, Inject } from '@angular/core';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import * as i0 from "@angular/core";
import * as i1 from "@angular/material/dialog";
function FormObjectWidgetMatDialogComponent_ng_container_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵelement(1, "div", 4);
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("innerHTML", ctx_r0.widget.staticMedia, i0.ɵɵsanitizeHtml);
} }
function FormObjectWidgetMatDialogComponent_ng_container_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵelementStart(1, "video", 5);
    i0.ɵɵelement(2, "source", 6);
    i0.ɵɵelementEnd();
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("src", ctx_r1.widget.baseUrl + ctx_r1.widget.widgetValue, i0.ɵɵsanitizeUrl);
} }
function FormObjectWidgetMatDialogComponent_ng_container_5_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵelementStart(1, "div", 7);
    i0.ɵɵelement(2, "img", 8);
    i0.ɵɵelementEnd();
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    const ctx_r2 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("src", ctx_r2.widget.baseUrl + ctx_r2.widget.widgetValue, i0.ɵɵsanitizeUrl);
} }
function FormObjectWidgetMatDialogComponent_ng_container_6_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0, 9);
    i0.ɵɵelement(1, "lib-gps-widget-view", 10);
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    const ctx_r3 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("widget", ctx_r3.widget.widget);
} }
export class FormObjectWidgetMatDialogComponent {
    constructor(dialogRef, widgetData) {
        this.dialogRef = dialogRef;
        this.widgetData = widgetData;
    }
    ngOnInit() {
        this.widget = this.widgetData;
    }
    closeDialog() {
        this.dialogRef.close(false);
    }
}
FormObjectWidgetMatDialogComponent.ɵfac = function FormObjectWidgetMatDialogComponent_Factory(t) { return new (t || FormObjectWidgetMatDialogComponent)(i0.ɵɵdirectiveInject(i1.MatDialogRef), i0.ɵɵdirectiveInject(MAT_DIALOG_DATA)); };
FormObjectWidgetMatDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormObjectWidgetMatDialogComponent, selectors: [["lib-formobject-widget-mat-dialog"]], decls: 7, vars: 4, consts: [["mat-dialog-content", "", 1, "light-box-container", "h-full", "relative", "customscroll", "p-5"], ["id", "close-icon", 1, "absolute", "top-0", "right-0", "text-lg", 3, "click"], [4, "ngIf"], ["class", "gps-container", 4, "ngIf"], [3, "innerHTML"], ["autoplay", "false", "loop", "", "preload", "none", "controls", "", 1, "w-full", "h-full"], ["type", "video/mp4", 3, "src"], [1, "capture-data-container", "text-center"], ["alt", "...", 1, "max-w-full", "capture-image", "h-16", "rounded", 3, "src"], [1, "gps-container"], [1, "h-full", 3, "widget"]], template: function FormObjectWidgetMatDialogComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵelementStart(0, "div", 0);
        i0.ɵɵelementStart(1, "mat-icon", 1);
        i0.ɵɵlistener("click", function FormObjectWidgetMatDialogComponent_Template_mat_icon_click_1_listener() { return ctx.closeDialog(); });
        i0.ɵɵtext(2, "close");
        i0.ɵɵelementEnd();
        i0.ɵɵtemplate(3, FormObjectWidgetMatDialogComponent_ng_container_3_Template, 2, 1, "ng-container", 2);
        i0.ɵɵtemplate(4, FormObjectWidgetMatDialogComponent_ng_container_4_Template, 3, 1, "ng-container", 2);
        i0.ɵɵtemplate(5, FormObjectWidgetMatDialogComponent_ng_container_5_Template, 3, 1, "ng-container", 2);
        i0.ɵɵtemplate(6, FormObjectWidgetMatDialogComponent_ng_container_6_Template, 2, 1, "ng-container", 3);
        i0.ɵɵelementEnd();
    } if (rf & 2) {
        i0.ɵɵadvance(3);
        i0.ɵɵproperty("ngIf", ctx.widget.type === "staticmedia-widget");
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngIf", ctx.widget.widget.type === "videocapture-widget");
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngIf", ctx.widget.widget.type === "wetsignaturecapture-widget");
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngIf", ctx.widget.widget.type === "capturegpslocation-widget");
    } }, styles: [".static-media-box-container mat-dialog-container{padding:0}  .static-media-box-container img{max-width:300px}  .static-media-box-container table,   .static-media-box-container tr,   .static-media-box-container td{border-radius:4px;border:1px solid #dddddd}  .static-media-box-container table{width:100%;margin-bottom:15px}  .static-media-box-container table tr td{padding:.5rem;text-align:justify;font-size:14px}  .static-media-box-container ol{list-style:auto}  .static-media-box-container ul{list-style:unset}  .static-media-box-container li{margin-left:15px}  .static-media-box-container li,   .static-media-box-container p{margin-bottom:15px;text-align:justify;font-size:14px;line-height:25px}@media screen and (max-width: 600px){  .static-media-box-container li{margin-left:15px}  .static-media-box-container table{white-space:nowrap}}  .static-media-box-container h1,   .static-media-box-container h3,   .static-media-box-container h2,   .static-media-box-container h4,   .static-media-box-container h5,   .static-media-box-container h6{font-size:14px;color:#172b4d}  .static-media-box-container p,   .static-media-box-container div,   .static-media-box-container span,   .static-media-box-container li,   .static-media-box-container td{font-size:12px;color:#6c798f}  .static-media-box-container .capture-data-container{display:flex;align-items:center;height:100%;vertical-align:middle;justify-content:center}  .static-media-box-container .capture-data-container .capture-image{height:unset!important;width:unset!important;max-height:100%;margin:auto}  .static-media-box-container h1,   .static-media-box-container h2,   .static-media-box-container h3,   .static-media-box-container h4,   .static-media-box-container h5,   .static-media-box-container h6,   .static-media-box-container span,   .static-media-box-container div,   .static-media-box-container p,   .static-media-box-container li,   .static-media-box-container td{font-family:Roboto,sans-serif}  .video-pop-up-box mat-dialog-container{padding:0!important}.gps-container[_ngcontent-%COMP%]{width:100%;height:100%}"] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormObjectWidgetMatDialogComponent, [{
        type: Component,
        args: [{ selector: 'lib-formobject-widget-mat-dialog', template: "<div mat-dialog-content class=\"light-box-container h-full relative customscroll p-5\">\n  <mat-icon id=\"close-icon\" (click)=\"closeDialog()\" class=\"absolute top-0 right-0 text-lg\">close</mat-icon>\n  <ng-container *ngIf=\"widget.type === 'staticmedia-widget'\">\n    <div [innerHTML]=\"widget.staticMedia\"></div>\n  </ng-container>\n  <ng-container *ngIf=\"widget.widget.type === 'videocapture-widget'\">\n      <video autoplay=\"false\" loop=\"\" preload=\"none\" controls=\"\" class=\"w-full h-full\">\n          <source type=\"video/mp4\" [src]=\"widget.baseUrl + widget.widgetValue\">\n        </video>\n  </ng-container>\n  <ng-container *ngIf=\"widget.widget.type === 'wetsignaturecapture-widget'\">\n  <div class=\"capture-data-container text-center\" >\n    <img [src]=\"widget.baseUrl + widget.widgetValue\" class=\"max-w-full capture-image h-16 rounded\" alt=\"...\" />\n  </div>\n  </ng-container>\n  <ng-container *ngIf=\"widget.widget.type==='capturegpslocation-widget'\"  class=\"gps-container\">\n    <lib-gps-widget-view [widget]=\"widget.widget\" class=\"h-full\"></lib-gps-widget-view>\n</ng-container>\n</div>\n", styles: ["::ng-deep .static-media-box-container mat-dialog-container{padding:0}::ng-deep .static-media-box-container img{max-width:300px}::ng-deep .static-media-box-container table,::ng-deep .static-media-box-container tr,::ng-deep .static-media-box-container td{border-radius:4px;border:1px solid #dddddd}::ng-deep .static-media-box-container table{width:100%;margin-bottom:15px}::ng-deep .static-media-box-container table tr td{padding:.5rem;text-align:justify;font-size:14px}::ng-deep .static-media-box-container ol{list-style:auto}::ng-deep .static-media-box-container ul{list-style:unset}::ng-deep .static-media-box-container li{margin-left:15px}::ng-deep .static-media-box-container li,::ng-deep .static-media-box-container p{margin-bottom:15px;text-align:justify;font-size:14px;line-height:25px}@media screen and (max-width: 600px){::ng-deep .static-media-box-container li{margin-left:15px}::ng-deep .static-media-box-container table{white-space:nowrap}}::ng-deep .static-media-box-container h1,::ng-deep .static-media-box-container h3,::ng-deep .static-media-box-container h2,::ng-deep .static-media-box-container h4,::ng-deep .static-media-box-container h5,::ng-deep .static-media-box-container h6{font-size:14px;color:#172b4d}::ng-deep .static-media-box-container p,::ng-deep .static-media-box-container div,::ng-deep .static-media-box-container span,::ng-deep .static-media-box-container li,::ng-deep .static-media-box-container td{font-size:12px;color:#6c798f}::ng-deep .static-media-box-container .capture-data-container{display:flex;align-items:center;height:100%;vertical-align:middle;justify-content:center}::ng-deep .static-media-box-container .capture-data-container .capture-image{height:unset!important;width:unset!important;max-height:100%;margin:auto}::ng-deep .static-media-box-container h1,::ng-deep .static-media-box-container h2,::ng-deep .static-media-box-container h3,::ng-deep .static-media-box-container h4,::ng-deep .static-media-box-container h5,::ng-deep .static-media-box-container h6,::ng-deep .static-media-box-container span,::ng-deep .static-media-box-container div,::ng-deep .static-media-box-container p,::ng-deep .static-media-box-container li,::ng-deep .static-media-box-container td{font-family:Roboto,sans-serif}::ng-deep .video-pop-up-box mat-dialog-container{padding:0!important}.gps-container{width:100%;height:100%}\n"] }]
    }], function () { return [{ type: i1.MatDialogRef }, { type: undefined, decorators: [{
                type: Inject,
                args: [MAT_DIALOG_DATA]
            }] }]; }, null); })();
//# sourceMappingURL=data:application/json;base64, 