import { NgModule} from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { SharedModule } from '../../shared/shared.module';
import {HmSoftSharedModule} from './hmsoft.shared.module';
import { NgxSelectModule, INgxSelectOptions } from 'ngx-select-ex';
import { StdRegInfoModal } from './common/modal/stdRegInfo/flex-std-reg-info';
import { Demo } from './common/modal/demo/demo';
import { PlSubjectModal } from './common/modal/subject/flex-pl-subject.component';
import { FlexCourseModal } from './common/modal/course/flex-course-modal';
import { FlexOrgModal } from './by/diploma/diplomaprint/flex-org-modal';
import { FlexPdfViewerModal } from './by/audit/flex-pdf-viewer/flex-pdf-viewer-modal';
import { ByFilesPdfViewerModal } from './by/by-files-pdf-viewer/by-files-pdf-viewer-modal';
import { ImgFlexPdfViewerModal } from './std/std-refund/img-flex-pdf-viewer/img-flex-pdf-viewer-modal';
import { FlexPdfViewerContrastModal } from './by/audit/flex-pdf-viewer-contrast/flex-pdf-viewer-contrast-modal';


import {PhotoUploaderComponent} from './common/modal/photo-uploader/photo-uploader.component';
import { EditorComponent } from './common/modal/photo-uploader/editor/editor.component';
import { LoaderComponent } from './common/modal/photo-uploader/loader/loader.component';
import { NavbarComponent } from './common/modal/photo-uploader/navbar/navbar.component';
const CustomSelectOptions: INgxSelectOptions = { // Check the interface for more options
    optionValueField: 'id',
    optionTextField: 'text'
};
const routes: Routes = [
    { path: 'cf', loadChildren: './cf/cf.module#CfModule' },
    { path: 'exam', loadChildren: './exam/exam.module#ExamModule' },
    { path: 'pl', loadChildren: './pl/pl.module#PlModule' },
    { path: 'std', loadChildren: './std/std.module#StdModule' },
    { path: 'kw', loadChildren: './kw/kw.module#KwModule' },
    { path: 'by', loadChildren: './by/by.module#ByModule' },
    { path: 'mk', loadChildren: './mk/mk.module#MkModule' },
    { path: 'pay', loadChildren: './pay/pay.module#PayModule' },
	{ path: 'kj', loadChildren: './kj/kj.module#KjModule' },
	{ path: 'sys', loadChildren: './sys/sys.module#SysModule' },
	{ path: 'flexOptr', loadChildren: './flexOptr/flexOptr.module#FlexOptrModule' },
    { path: 'stdRegInfoModal', component: StdRegInfoModal },
    { path: 'plSubjectModal', component: PlSubjectModal },
    { path: 'demoModal', component: Demo },
	{ path: 'flexCourseModal', component: FlexCourseModal },
	{ path: 'flexOrgModal', component: FlexOrgModal},
  { path: 'flexPdfViewerModal', component: FlexPdfViewerModal},
  { path: 'fyFilesPdfViewerModal', component: ByFilesPdfViewerModal},
  { path: 'msgque', loadChildren: './msgque/msgque.module#MsgqueModule' },
  { path: 'imgFlexPdfViewerModal', component: ImgFlexPdfViewerModal},
  { path: 'epidemic', loadChildren: './epidemic/epidemic.module#EpidemicModule' },
  { path: 'flexPdfViewerContrastModal', component: FlexPdfViewerContrastModal},

  ];

@NgModule({
  imports: [
    SharedModule,   
    HmSoftSharedModule,
    RouterModule.forChild(routes),
    NgxSelectModule.forRoot(CustomSelectOptions)
  ],
  declarations: [StdRegInfoModal,Demo,
	PlSubjectModal,FlexCourseModal,FlexOrgModal,FlexPdfViewerModal,FlexPdfViewerContrastModal,ImgFlexPdfViewerModal,ByFilesPdfViewerModal,
	PhotoUploaderComponent,
	EditorComponent,
	LoaderComponent,
	NavbarComponent,],
  exports: [
    RouterModule,
    StdRegInfoModal,
    PlSubjectModal,
	FlexCourseModal,
	FlexOrgModal,FlexPdfViewerModal,FlexPdfViewerContrastModal,ImgFlexPdfViewerModal,ByFilesPdfViewerModal,
	PhotoUploaderComponent,
	EditorComponent,
	LoaderComponent,
	NavbarComponent,
  ]
})
export class HmSoftModule { }
