/**
 * @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 ElChatModule_1;
import { NgModule } from '@angular/core';
import { ElSharedModule } from '../shared/shared.module';
import { ElButtonModule } from '../button/button.module';
import { ElInputModule } from '../input/input.module';
import { ElIconModule } from '../icon/icon.module';
import { ElChatComponent } from './chat.component';
import { ElChatMessageComponent } from './chat-message.component';
import { ElChatFormComponent } from './chat-form.component';
import { ElChatMessageTextComponent } from './chat-message-text.component';
import { ElChatMessageFileComponent } from './chat-message-file.component';
import { ElChatMessageQuoteComponent } from './chat-message-quote.component';
import { ElChatMessageMapComponent } from './chat-message-map.component';
import { ElChatOptions } from './chat.options';
const EL_CHAT_COMPONENTS = [
    ElChatComponent,
    ElChatMessageComponent,
    ElChatFormComponent,
    ElChatMessageTextComponent,
    ElChatMessageFileComponent,
    ElChatMessageQuoteComponent,
    ElChatMessageMapComponent,
];
let ElChatModule = ElChatModule_1 = class ElChatModule {
    static forRoot(options) {
        return {
            ngModule: ElChatModule_1,
            providers: [
                { provide: ElChatOptions, useValue: options || {} },
            ],
        };
    }
    static forChild(options) {
        return {
            ngModule: ElChatModule_1,
            providers: [
                { provide: ElChatOptions, useValue: options || {} },
            ],
        };
    }
};
ElChatModule = ElChatModule_1 = __decorate([
    NgModule({
        imports: [
            ElSharedModule,
            ElIconModule,
            ElInputModule,
            ElButtonModule,
        ],
        declarations: [
            ...EL_CHAT_COMPONENTS,
        ],
        exports: [
            ...EL_CHAT_COMPONENTS,
        ],
    })
], ElChatModule);
export { ElChatModule };
//# sourceMappingURL=chat.module.js.map