import { Component, Inject, ViewEncapsulation } 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";
import * as i2 from "@angular/material/icon";
import * as i3 from "../axo-map/axo-map.component";
export class MapDialogComponent {
    constructor(dialogRef, data) {
        this.dialogRef = dialogRef;
        this.data = data;
        this.locations = data.locations;
    }
    ngOnInit() {
    }
    /**
     * Close image Map dialog
     */
    closeDialog() {
        this.dialogRef.close(false);
    }
}
MapDialogComponent.ɵfac = function MapDialogComponent_Factory(t) { return new (t || MapDialogComponent)(i0.ɵɵdirectiveInject(i1.MatDialogRef), i0.ɵɵdirectiveInject(MAT_DIALOG_DATA)); };
MapDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MapDialogComponent, selectors: [["map-dialog"]], decls: 6, vars: 1, consts: [[1, "location-container", "relative", "min-w-full", "max-w-full", "min-h-full", "max-h-full"], ["mat-icon-button", "", 1, "close-button", 3, "click"], ["color", "warn", 1, "close-icon"], ["mat-dialog-content", "", 1, "location-body"], [3, "locations"]], template: function MapDialogComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵelementStart(0, "div", 0);
        i0.ɵɵelementStart(1, "button", 1);
        i0.ɵɵlistener("click", function MapDialogComponent_Template_button_click_1_listener() { return ctx.closeDialog(); });
        i0.ɵɵelementStart(2, "mat-icon", 2);
        i0.ɵɵtext(3, "close");
        i0.ɵɵelementEnd();
        i0.ɵɵelementEnd();
        i0.ɵɵelementStart(4, "div", 3);
        i0.ɵɵelement(5, "axo-map", 4);
        i0.ɵɵelementEnd();
        i0.ɵɵelementEnd();
    } if (rf & 2) {
        i0.ɵɵadvance(5);
        i0.ɵɵproperty("locations", ctx.locations);
    } }, directives: [i2.MatIcon, i3.AxoMapComponent], styles: ["map-dialog .mat-form-field.mat-form-field-appearance-fill{width:100%!important}map-dialog .location-container{height:300px;width:100%}map-dialog .location-container agm-map{width:100%;height:100%}map-dialog .location-container .close-button{position:absolute;top:-22px;right:-18px}map-dialog .location-container .close-icon{color:#000!important;font-size:14px;font-weight:600}.location-box-container .mat-dialog-container{width:86%;height:86%;margin:auto}.location-box-container .location-container{display:flex;align-items:center;justify-content:center}.location-box-container .location-body{width:100%;height:100%;position:absolute}\n"], encapsulation: 2 });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MapDialogComponent, [{
        type: Component,
        args: [{ selector: 'map-dialog', encapsulation: ViewEncapsulation.None, template: "<div class=\"location-container relative min-w-full max-w-full min-h-full max-h-full\">\n    <button mat-icon-button class=\"close-button\" (click)=\"closeDialog()\">\n        <mat-icon class=\"close-icon\" color=\"warn\">close</mat-icon>\n    </button>\n    <div mat-dialog-content class=\"location-body\">\n        <axo-map [locations]=\"locations\"></axo-map>\n    </div>\n</div>\n", styles: ["map-dialog .mat-form-field.mat-form-field-appearance-fill{width:100%!important}map-dialog .location-container{height:300px;width:100%}map-dialog .location-container agm-map{width:100%;height:100%}map-dialog .location-container .close-button{position:absolute;top:-22px;right:-18px}map-dialog .location-container .close-icon{color:#000!important;font-size:14px;font-weight:600}.location-box-container .mat-dialog-container{width:86%;height:86%;margin:auto}.location-box-container .location-container{display:flex;align-items:center;justify-content:center}.location-box-container .location-body{width:100%;height:100%;position:absolute}\n"] }]
    }], function () { return [{ type: i1.MatDialogRef }, { type: undefined, decorators: [{
                type: Inject,
                args: [MAT_DIALOG_DATA]
            }] }]; }, null); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFwLWRpYWxvZy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvYXgtY29tbW9uLXVpLWxpYi9zcmMvbGliL21hcC1kaWFsb2cvbWFwLWRpYWxvZy5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi9zcmMvYXgtY29tbW9uLXVpLWxpYi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