import { Injectable } from '@angular/core';
import { MatDialog } from '@angular/material/dialog';
import { ZUIDialogCommonComponent } from './dialog-common/index.component';
import * as i0 from "@angular/core";
import * as i1 from "./index";
import * as i2 from "@angular/material/dialog";
export class ZUIDialogService {
    constructor(dialog) {
        this.dialog = dialog;
        this.open = (data, dialogConfig = {}) => {
            this.dialog.open(ZUIDialogCommonComponent, Object.assign(Object.assign({}, dialogConfig), { data }));
        };
    }
}
ZUIDialogService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ZUIDialogService_Factory() { return new i1.ZUIDialogService(i0.ɵɵinject(i2.MatDialog)); }, token: i1.ZUIDialogService, providedIn: "root" });
ZUIDialogService.decorators = [
    { type: Injectable, args: [{ providedIn: 'root' },] }
];
ZUIDialogService.ctorParameters = () => [
    { type: MatDialog }
];
//# sourceMappingURL=index.service.js.map