import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { Routes, RouterModule } from '@angular/router';
import { NgSelectModule } from '@ng-select/ng-select';
import { EditFlightDetailsComponent } from './edit-flight-details/edit-flight-details.component';
import { CalendarModule } from 'primeng/calendar';
import { MatCheckboxModule } from '@angular/material/checkbox';
import { EditRateInventoryComponent } from './edit-rate-inventory/edit-rate-inventory.component';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { ToastModule } from 'primeng/toast';
import { FlightContractService } from 'src/app/core/services/flight-contract.service.ts/flight-contract.service';
import { TooltipModule } from 'primeng/tooltip';

const routes: Routes = [
  {
    path: 'EditFlight/:ContractId',
    component: EditFlightDetailsComponent,
  },
  {
    path: 'EditRateInventory/:ContractId',
    component: EditRateInventoryComponent,
  },
  {
    path: '',
    pathMatch: 'full',
    redirectTo: 'Search',
  },
];

@NgModule({
  declarations: [
    EditFlightDetailsComponent,
    EditRateInventoryComponent
  ],
  imports: [
    CommonModule,
    ToastModule,
    NgSelectModule,
    CalendarModule,
    ReactiveFormsModule,
    FormsModule,
    TooltipModule,
    MatCheckboxModule,
    RouterModule.forChild(routes),
  ],
  providers:[FlightContractService]
})
export class FlightInventoryManageModule { }
