/**
 * @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;
};
var ElToastrModule_1;
import { NgModule } from '@angular/core';
import { ElOverlayModule } from '../cdk/overlay/overlay.module';
import { ElSharedModule } from '../shared/shared.module';
import { ElIconModule } from '../icon/icon.module';
import { ElToastrContainerRegistry, ElToastrService } from './toastr.service';
import { ElToastComponent } from './toast.component';
import { ElToastrContainerComponent } from './toastr-container.component';
import { EL_TOASTR_CONFIG } from './toastr-config';
let ElToastrModule = ElToastrModule_1 = class ElToastrModule {
    static forRoot(toastrConfig = {}) {
        return {
            ngModule: ElToastrModule_1,
            providers: [
                ElToastrService,
                ElToastrContainerRegistry,
                { provide: EL_TOASTR_CONFIG, useValue: toastrConfig },
            ],
        };
    }
};
ElToastrModule = ElToastrModule_1 = __decorate([
    NgModule({
        imports: [ElSharedModule, ElOverlayModule, ElIconModule],
        declarations: [ElToastrContainerComponent, ElToastComponent],
        entryComponents: [ElToastrContainerComponent, ElToastComponent],
    })
], ElToastrModule);
export { ElToastrModule };
//# sourceMappingURL=toastr.module.js.map