import { __decorate } from "tslib";
import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { CommonModule } from '@angular/common';
import { HttpClient } from '@angular/common/http';
import { NgSelectModule } from '@ng-select/ng-select';
import { TooltipModule, DatepickerModule, BsDatepickerModule, BsDropdownModule, TabsModule } from 'ngx-bootstrap';
import { ExportAsModule } from 'ngx-export-as';
import { UiSwitchModule } from 'ngx-ui-switch';
import { NgxPermissionsModule } from 'ngx-permissions';
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
import { DataTablesModule } from 'angular-datatables';
import { ClientRoutingModule } from './client-routing.module';
import { SharedModule } from '../../../shared/shared.module';
import { ClientComponent } from './pages/client/client.component';
import { ClientCreateComponent } from './pages/client-create/client-create.component';
import { ClientEditComponent } from './pages/client-edit/client-edit.component';
import { ClientDetailComponent } from './pages/client-detail/client-detail.component';
var ClientModule = /** @class */ (function () {
    function ClientModule() {
    }
    ClientModule = __decorate([
        NgModule({
            declarations: [
                ClientComponent,
                ClientCreateComponent,
                ClientEditComponent,
                ClientDetailComponent
            ],
            imports: [
                CommonModule,
                CommonModule,
                NgSelectModule,
                ClientRoutingModule,
                CommonModule,
                FormsModule,
                ReactiveFormsModule,
                DataTablesModule,
                ExportAsModule,
                NgxPermissionsModule,
                TooltipModule.forRoot(),
                DatepickerModule.forRoot(),
                BsDatepickerModule.forRoot(),
                BsDropdownModule.forRoot(),
                TabsModule.forRoot(),
                UiSwitchModule.forRoot({
                    checkedLabel: 'Active',
                    uncheckedLabel: 'Inactive',
                    color: 'rgb(0, 189, 99)',
                    switchColor: '#FFFFFF',
                    defaultBgColor: '#c6c6c6',
                    defaultBoColor: '#c39ef8'
                }),
                TranslateModule.forChild({
                    loader: {
                        provide: TranslateLoader,
                        useFactory: (HttpLoaderFactory),
                        deps: [HttpClient]
                    }
                }),
                SharedModule,
            ]
        })
    ], ClientModule);
    return ClientModule;
}());
export { ClientModule };
// Required for AOT compilation
export function HttpLoaderFactory(http) {
    return new TranslateHttpLoader(http, '../assets/i18n/', '.json');
}
//# sourceMappingURL=client.module.js.map