import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
// import { ExpServicesSearchComponent } from './experience-services-search/experience-services-search.component';
import { RouterModule, Routes } from '@angular/router';


// 
import { ButtonModule } from 'primeng/button';
import { CalendarModule } from 'primeng/calendar';
import { InputNumberModule } from 'primeng/inputnumber';
import { InputTextModule } from 'primeng/inputtext';
import { RatingModule } from 'primeng/rating';
import { TableModule } from 'primeng/table';
import { ToolbarModule } from 'primeng/toolbar';
import { TreeModule } from 'primeng/tree';
import { NgSelectModule } from '@ng-select/ng-select';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { MessageService, ConfirmationService } from 'primeng/api';
import { ProductService } from 'src/app/core/services/product.service';
import { CheckboxModule } from 'primeng/checkbox';
import {EditorModule} from 'primeng/editor';

import {FileUploadModule} from 'primeng/fileupload';
import {HttpClientModule} from '@angular/common/http';
import { MatMenuModule } from '@angular/material/menu';
import { MatButtonModule } from '@angular/material/button';
import { MatCheckboxModule } from '@angular/material/checkbox';
import { ToastModule } from 'primeng/toast';
import { ExpServicesAddComponent } from './exp-services-add/exp-services-add.component';
import { ExpServicesSearchComponent } from './exp-services-search/exp-services-search.component';
import { ExpManageTranslationComponent } from './exp-manage-translation/exp-manage-translation.component';
import { StaticDataService } from 'src/app/core/common/static-data.service';

const routes: Routes = [
  {
    path: 'Search',
    component: ExpServicesSearchComponent,
  },
  {
    path: 'Manage',
    loadChildren: () =>
      import('./exp-services-manage/exp-services-manage.module').then(
        (m) => m.ExpServicesManageModule
      ),
  },
  {
    path: 'ManageTranslation',
    component:  ExpManageTranslationComponent
  },
  {
    path: 'Add',
    component: ExpServicesAddComponent,
  },
  {
    path: '',
    pathMatch: 'full',
    redirectTo: 'Search',
  },
];

@NgModule({
  declarations: [
    ExpServicesSearchComponent,
    ExpServicesAddComponent,
    ExpManageTranslationComponent,
    // HotelServicesComponent,
    // TabsComponent,
  ],
  imports: [
    CommonModule,
    FormsModule,
    CalendarModule,
    TableModule,
    InputTextModule,
    NgSelectModule,
    InputNumberModule,
    TreeModule,
    RatingModule,
    ButtonModule,
    ToolbarModule,
    RouterModule.forChild(routes),
    CheckboxModule,
    EditorModule,
    FileUploadModule,
    HttpClientModule,
    MatMenuModule,
    MatButtonModule,
    MatCheckboxModule,
    ReactiveFormsModule,
    FormsModule,
    ToastModule
  ],
  providers:[
    MessageService,
    ConfirmationService,
    ProductService,
    StaticDataService
  ]
})
export class ExpServicesModule {}
