import { IqserRoutes } from '@iqser/common-ui';
import { FilePreviewScreenComponent } from './file-preview-screen.component';
import { PendingChangesGuard } from '@guards/can-deactivate.guard';
import { DocumentUnloadedGuard } from './services/document-unloaded.guard';
import { FilePreviewDialogService } from './services/file-preview-dialog.service';
import { ManualRedactionService } from './services/manual-redaction.service';
import { TablesService } from './services/tables.service';
import { FileAssignService } from '../shared-dossiers/services/file-assign.service';

export default [
    {
        path: '',
        component: FilePreviewScreenComponent,
        pathMatch: 'full',
        canDeactivate: [PendingChangesGuard, DocumentUnloadedGuard],
        providers: [FilePreviewDialogService, ManualRedactionService, DocumentUnloadedGuard, TablesService, FileAssignService],
    },
] satisfies IqserRoutes;
