import { DigiNgDialogModule } from '@af/digi-ng/_dialog/dialog';
import { DigiNgFormSelectModule } from '@af/digi-ng/_form/form-select';
import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
import { BackLinkModule } from '@msfa-shared/components/back-link/back-link.module';
import { ConfirmDialogModule } from '@msfa-shared/components/confirm-dialog/confirm-dialog.module';
import { LayoutModule } from '@msfa-shared/components/layout/layout.module';
import { UiSkeletonModule } from '@ui/skeleton/skeleton.module';
import { UiTextareaModule } from '@ui/textarea/textarea.module';
import { ReportDescriptionListModule } from '../../../components/report-description-list/report-description-list.module';
import { ReportLayoutModule } from '../../../components/report-layout/report-layout.module';
import { InformativRapportFormComponent } from './informativ-rapport-form.component';
import { InformativRapportFormService } from './informativ-rapport-form.service';

@NgModule({
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
  declarations: [InformativRapportFormComponent],
  imports: [
    CommonModule,
    RouterModule.forChild([{ path: '', component: InformativRapportFormComponent }]),
    LayoutModule,
    ReactiveFormsModule,
    ReportLayoutModule,
    ConfirmDialogModule,
    ReportDescriptionListModule,
    BackLinkModule,
    UiSkeletonModule,
    DigiNgDialogModule,
    DigiNgFormSelectModule,
    UiTextareaModule,
  ],
  providers: [InformativRapportFormService],
  exports: [InformativRapportFormComponent],
})
export class InformativRapportFormModule {}
