import { DialogService as DialogService$1 } from 'primeng/dynamicdialog';
export { DynamicDialogConfig, DynamicDialogRef, DynamicDialogRef as ModalRef } from 'primeng/dynamicdialog';
import * as i0 from '@angular/core';
import { Injectable } from '@angular/core';

class DialogService extends DialogService$1 {
    ref;
    open(component, config) {
        const defaultConfig = {
            closable: true,
            modal: true,
        };
        this.ref = super.open(component, {
            ...defaultConfig,
            ...config,
            styleClass: 'mt-dialog ' + config?.styleClass,
        });
        return this.ref;
    }
    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: DialogService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
    static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: DialogService, providedIn: 'root' });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: DialogService, decorators: [{
            type: Injectable,
            args: [{ providedIn: 'root' }]
        }] });

/**
 * Generated bundle index. Do not edit.
 */

export { DialogService };
//# sourceMappingURL=masterteam-components-dialog.mjs.map
