import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RateSettingComponent } from './rate-setting.component';
import { RouterModule, Routes } from '@angular/router';
import { MatMenuModule } from '@angular/material/menu';
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
import { MatButtonModule } from '@angular/material/button';
import { MatCheckboxModule } from '@angular/material/checkbox';
import { NgSelectModule } from '@ng-select/ng-select';
import { ButtonModule } from 'primeng/button';
import { DialogModule } from 'primeng/dialog';
import { FileUploadModule } from 'primeng/fileupload';
import { InputTextModule } from 'primeng/inputtext';
import { TableModule } from 'primeng/table';
import { ToastModule } from 'primeng/toast';
import { ToolbarModule } from 'primeng/toolbar';
import { RateSettingAddComponent } from './rate-setting-add/rate-setting-add.component';
import { CalendarModule } from 'primeng/calendar';
import { TabViewModule } from 'primeng/tabview';
import { SubTab1Component } from './rate-setting-add/sub-tab-content/sub-tab1/sub-tab1.component';
import { SubTab2Component } from './rate-setting-add/sub-tab-content/sub-tab2/sub-tab2.component';
import { SubTab3Component } from './rate-setting-add/sub-tab-content/sub-tab3/sub-tab3.component';
import { TooltipModule } from 'primeng/tooltip';

const routes: Routes = [
  {
    path: 'RoomContractAdd/:Hotel_Eaxtranet_Id',
    component:RateSettingAddComponent,
  },
  {
    path: 'RoomContractEdit/:Hotel_Eaxtranet_Id/:RuleId',
    component:RateSettingAddComponent,
  },
  {
    path: 'CloneContract/:Hotel_Eaxtranet_Id/:RuleId',
    component:RateSettingAddComponent,
  },
]

@NgModule({
  declarations: [
    RateSettingComponent,
    RateSettingAddComponent,
    SubTab1Component,
    SubTab2Component,
    SubTab3Component
  ],
  imports: [
    CommonModule,
    ToastModule,
    TableModule,
    DialogModule,
    ToolbarModule,
    MatMenuModule,
    CalendarModule,
    NgSelectModule,
    InputTextModule,
    ReactiveFormsModule,
    FormsModule,
    MatButtonModule,
    TooltipModule,
    MatCheckboxModule,
    ButtonModule,
    FileUploadModule,
    NgSelectModule,
    TabViewModule,
    RouterModule.forChild(routes),
  ],
  exports:[
    RateSettingComponent
  ]
})
export class RateSettingModule { }
