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 { CommonModule } from '@angular/common';
import { ElOverlayModule } from '../cdk/overlay/overlay.module';
import { ElCardModule } from '../card/card.module';
import { ElIconModule } from '../icon/icon.module';
import { ElButtonModule } from '../button/button.module';
import { ElWindowService } from './window.service';
import { ElWindowsContainerComponent } from './windows-container.component';
import { ElWindowComponent } from './window.component';
import { EL_WINDOW_CONFIG } from './window.options';
var ElWindowModule = /** @class */ (function () {
    function ElWindowModule() {
    }
    ElWindowModule_1 = ElWindowModule;
    ElWindowModule.forRoot = function (defaultConfig) {
        return {
            ngModule: ElWindowModule_1,
            providers: [
                ElWindowService,
                { provide: EL_WINDOW_CONFIG, useValue: defaultConfig },
            ],
        };
    };
    ElWindowModule.forChild = function (defaultConfig) {
        return {
            ngModule: ElWindowModule_1,
            providers: [
                ElWindowService,
                { provide: EL_WINDOW_CONFIG, useValue: defaultConfig },
            ],
        };
    };
    var ElWindowModule_1;
    ElWindowModule = ElWindowModule_1 = __decorate([
        NgModule({
            imports: [CommonModule, ElOverlayModule, ElCardModule, ElIconModule, ElButtonModule],
            declarations: [
                ElWindowsContainerComponent,
                ElWindowComponent,
            ],
            entryComponents: [ElWindowsContainerComponent, ElWindowComponent],
        })
    ], ElWindowModule);
    return ElWindowModule;
}());
export { ElWindowModule };
//# sourceMappingURL=window.module.js.map