/**
 * @license
 * Copyright Endlessjs. All Rights Reserved.
 * Licensed under the MIT License. See License.txt in the project root for license information.
 */
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { NgModule } from '@angular/core';
import { ElSharedModule } from '../shared/shared.module';
import { ElOverlayModule } from '../cdk/overlay/overlay.module';
import { ElDialogService } from './dialog.service';
import { ElDialogContainerComponent } from './dialog-container';
import { EL_DIALOG_CONFIG } from './dialog-config';
var ElDialogModule = /** @class */ (function () {
    function ElDialogModule() {
    }
    ElDialogModule_1 = ElDialogModule;
    ElDialogModule.forRoot = function (dialogConfig) {
        if (dialogConfig === void 0) { dialogConfig = {}; }
        return {
            ngModule: ElDialogModule_1,
            providers: [
                ElDialogService,
                { provide: EL_DIALOG_CONFIG, useValue: dialogConfig },
            ],
        };
    };
    ElDialogModule.forChild = function (dialogConfig) {
        if (dialogConfig === void 0) { dialogConfig = {}; }
        return {
            ngModule: ElDialogModule_1,
            providers: [
                ElDialogService,
                { provide: EL_DIALOG_CONFIG, useValue: dialogConfig },
            ],
        };
    };
    var ElDialogModule_1;
    ElDialogModule = ElDialogModule_1 = __decorate([
        NgModule({
            imports: [ElSharedModule, ElOverlayModule],
            declarations: [ElDialogContainerComponent],
            entryComponents: [ElDialogContainerComponent],
        })
    ], ElDialogModule);
    return ElDialogModule;
}());
export { ElDialogModule };
//# sourceMappingURL=dialog.module.js.map