lx-annotate 1.3.3__tar.gz → 1.3.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/PKG-INFO +2 -2
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/hub/hub_export_envelope.py +1 -1
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/hub/storage_transfer_client.py +1 -1
- lx_annotate-1.3.4/lx_annotate/middleware/request_throttle.py +155 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/settings/settings_base.py +6 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/manage.py +0 -19
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/pyproject.toml +2 -2
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/AnonymizationOverview.css +1 -1
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/AnonymizationOverview.js +1 -1
- lx_annotate-1.3.4/staticfiles/AnonymizationValidationComponent.css +1 -0
- lx_annotate-1.3.4/staticfiles/AnonymizationValidationComponent.js +1 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/uv.lock +11 -12
- lx_annotate-1.3.3/staticfiles/AnonymizationValidationComponent.css +0 -1
- lx_annotate-1.3.3/staticfiles/AnonymizationValidationComponent.js +0 -1
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/.gitignore +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/LICENSE +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/README.md +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/hatch_build.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/__init__.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/admin.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/api_urls.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/apps.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/asgi.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/celery.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/checks.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/cli.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/dtypes_api_urls.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/file_watcher.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/hub/__init__.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/hub/hub_export_audit.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/hub/hub_export_cleanup.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/hub/hub_export_contracts.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/hub/hub_export_health.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/hub/hub_export_jobs.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/hub/hub_export_payloads.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/hub/hub_export_reconciliation.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/hub/hub_export_state.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/hub/hub_export_worker.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/hub/node_provisioning.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/hub/storage_balance_worker.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/hub/storage_ingest.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/hub/storage_orchestration.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/hub/storage_provider.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/hub/storage_publication.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/hub/storage_reconciliation.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/hub/storage_recovery.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/hub/storage_rekey.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/hub/storage_report_provider.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/hub/storage_resolver.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/hub/storage_telemetry.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/hub/transfer_transport.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/management/__init__.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/management/commands/__init__.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/management/commands/check_hub_export_health.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/management/commands/check_migration_compatibility.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/management/commands/dispatch_hub_export_recovery.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/management/commands/export_openapi.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/management/commands/export_route_manifest.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/management/commands/monitoring_status.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/management/commands/provision_hub_nodes.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/management/commands/reap_verified_hub_exports.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/management/commands/recover_runtime_data.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/management/commands/repair_legacy_migration_history.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/management/commands/repair_managed_payloads.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/management/commands/run_filewatcher.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/management/commands/runtime_acceptance.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/management/commands/start_filewatcher.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/management/commands/verify_encrypted_storage.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/middleware/__init__.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/middleware/lookup_tracker.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/migration_history_safety.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/migrations/0001_outboundhubtransferjob.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/migrations/0002_outboundhubtransferjob_local_cleanup_fields.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/migrations/0003_outboundhubtransferjob_failure_class.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/migrations/0004_storagenodeactionreceipt.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/migrations/0005_storageoperatordispatchreceipt.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/migrations/0006_storageartifactpublication.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/migrations/0007_outbound_hub_receipt_cleanup.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/migrations/0008_aidatasetsplitplan.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/migrations/0009_videotranscodejob.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/migrations/0010_studycohort.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/migrations/__init__.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/migrations/max_migration.txt +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/models.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/monitoring/__init__.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/monitoring/configuration.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/monitoring/contracts.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/monitoring/database.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/monitoring/runtime.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/monitoring/service.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/operational_support.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/permissions.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/runtime_commands/__init__.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/schemas/__init__.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/schemas/ai_dataset_splits.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/schemas/study_cohorts.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/serializers.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/services/__init__.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/services/access_management.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/services/ai_dataset_splits.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/services/report_llm.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/services/runtime_recovery.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/services/video_transcode_jobs.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/settings/__init__.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/settings/config.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/settings/oidc.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/settings/secret_key.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/settings/settings_dev.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/settings/settings_prod.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/settings/settings_test.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/signals.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/storage/__init__.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/storage/encrypted.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/storage/encryption.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/tasks.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/templates/base.html +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/urls.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/views/__init__.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/views/administration.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/views/ai_dataset_splits.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/views/anonymization_overview.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/views/anonymization_storage.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/views/application_settings.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/views/frame_annotation.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/views/hub_export.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/views/monitoring.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/views/quarantine.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/views/report_llm.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/views/study_cohorts.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/views/study_export.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/views/video_state_repair.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/views/video_transcode_jobs.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate/wsgi.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/lx_annotate_assets/__init__.py +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/.vite/manifest.json +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/AboutUs.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/AdministrationPage.css +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/AdministrationPage.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/AiDatasetBucketsPage.css +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/AiDatasetBucketsPage.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/AiDatasetSettingsPage.css +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/AiDatasetSettingsPage.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/AnnotationDashboard.css +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/AnnotationDashboard.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/AnnotationDashboard2.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/AnonymizationCorrectionComponent.css +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/AnonymizationCorrectionComponent.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/AnonymizationEvaluation.css +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/AnonymizationEvaluation.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/AnonymizationMetrics.css +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/AnonymizationMetrics.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/ApplicationSettingsPage.css +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/ApplicationSettingsPage.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/CaseResolutionPage.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/CaseSetupPage.css +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/CaseSetupPage.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/ColoReg.png +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/Comfortaa-Bold.ttf +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/Comfortaa-Regular.ttf +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/Dashboard.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/DatasetStudyCohorts.vue_vue_type_script_setup_true_lang.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/Documentation.css +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/Documentation.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/Export.css +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/Export.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/FinalizedResultPage.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/FindingsCapturePage.css +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/FindingsCapturePage.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/FrameAnnotation.css +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/FrameAnnotation.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/FrameSelectorPage.css +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/FrameSelectorPage.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/HubExport.css +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/HubExport.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/ModelTrainingPage.css +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/ModelTrainingPage.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/MonitoringPage.css +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/MonitoringPage.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/PageOverview.css +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/PageOverview.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/PatientDocumentsPage.css +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/PatientDocumentsPage.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/PatientMedicationPage.css +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/PatientMedicationPage.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/PatientOverview.css +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/PatientOverview.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/Profile.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/ReportEditorPage.css +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/ReportEditorPage.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/ReportExportPage.css +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/ReportExportPage.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/ReportTemplateBuilderPage.css +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/ReportTemplateBuilderPage.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/ReportingShell.css +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/ReportingShell.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/ReportingWorklistPage.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/StudyCohortPage.css +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/StudyCohortPage.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/Timeline.css +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/Timeline.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/VideoExamination.css +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/VideoExamination.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/administrationApi.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/aiDatasetApi.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/annotationPrincipal.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/anonymizationValidationPresentation.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/applicationSettingsApi.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/casesApi.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/dateHelpers.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/examinationStore.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/frameStreams.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/img/favicon.png +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/knowledgeBaseGraphApi.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/main.css +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/main.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/mediaTypeStore.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/mediaUrls.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/nucleo-icons.eot +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/nucleo-icons.svg +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/nucleo-icons.ttf +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/nucleo-icons.woff +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/nucleo-icons.woff2 +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/patientExaminationStore.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/patientService.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/patientStore.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/pdf.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/pdf.worker.min.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/pdf.worker.min.mjs +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/reportExportApi.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/reportTemplateLifecycleContext.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/reportingError.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/reportingExaminationResolution.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/reportingIndicationContract.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/reportingPresentation.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/reportingTimelineApi.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/rng.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/studyApi.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/studyCohortApi.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/studyCohortExportStore.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/terminologyStore.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/timeHelpers.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/useAuthenticatedVideoStream.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/useDebug.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/useFindingSelectors.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/useReportTemplates.css +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/useReportTemplates.js +0 -0
- {lx_annotate-1.3.3 → lx_annotate-1.3.4}/staticfiles/useReportingKnowledgeBase.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: lx-annotate
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.4
|
|
4
4
|
Summary: This webapp provides a frontend interface for pseudonymizing and annotating data and applying AI predictions.
|
|
5
5
|
Author-email: Max Hild <hild_m@ukw.de>, "Thomas J. Lux" <lux_t1@ukw.de>
|
|
6
6
|
Maintainer: Hamza Zahid
|
|
@@ -29,7 +29,7 @@ Requires-Dist: django-webpack-loader>=0.7.0
|
|
|
29
29
|
Requires-Dist: django==6.0.3
|
|
30
30
|
Requires-Dist: djangorestframework>=3.12.4
|
|
31
31
|
Requires-Dist: drf-spectacular>=0.28.0
|
|
32
|
-
Requires-Dist: endoreg-db==1.3.
|
|
32
|
+
Requires-Dist: endoreg-db==1.3.7
|
|
33
33
|
Requires-Dist: gunicorn>=23.0.0
|
|
34
34
|
Requires-Dist: lx-dtypes>=0.3.4
|
|
35
35
|
Requires-Dist: mozilla-django-oidc>=4.0.1
|
|
@@ -19,7 +19,7 @@ from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
|
|
|
19
19
|
from cryptography.hazmat.primitives.ciphers.aead import AESGCM
|
|
20
20
|
from cryptography.hazmat.primitives.kdf.hkdf import HKDF
|
|
21
21
|
from django.conf import settings
|
|
22
|
-
from endoreg_db.utils.
|
|
22
|
+
from endoreg_db.utils.file_operations import (
|
|
23
23
|
atomic_create_file,
|
|
24
24
|
safe_unlink_file,
|
|
25
25
|
)
|
|
@@ -23,7 +23,7 @@ from cryptography.hazmat.primitives.asymmetric.x25519 import (
|
|
|
23
23
|
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
|
|
24
24
|
from cryptography.hazmat.primitives.ciphers.aead import AESGCM
|
|
25
25
|
from cryptography.hazmat.primitives.kdf.hkdf import HKDF
|
|
26
|
-
from endoreg_db.utils.
|
|
26
|
+
from endoreg_db.utils.file_operations import (
|
|
27
27
|
atomic_create_file,
|
|
28
28
|
atomic_write_file,
|
|
29
29
|
safe_unlink_file,
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
"""Reserve host resources for API work without granting Django systemd access."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import fcntl
|
|
6
|
+
import logging
|
|
7
|
+
import socket
|
|
8
|
+
import threading
|
|
9
|
+
import time
|
|
10
|
+
from collections.abc import AsyncIterator, Callable, Iterator
|
|
11
|
+
from pathlib import Path
|
|
12
|
+
from typing import BinaryIO, cast
|
|
13
|
+
|
|
14
|
+
from django.conf import settings
|
|
15
|
+
from django.http import (
|
|
16
|
+
HttpRequest,
|
|
17
|
+
HttpResponseBase,
|
|
18
|
+
JsonResponse,
|
|
19
|
+
StreamingHttpResponse,
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
logger = logging.getLogger(__name__)
|
|
23
|
+
API_PREFIXES = ("/api/", "/endoreg-api/", "/dtypes-api/")
|
|
24
|
+
ADMISSION_TIMEOUT_SECONDS = 5.0
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def parse_request_throttle_directory(value: str) -> Path | None:
|
|
28
|
+
value = value.strip()
|
|
29
|
+
if not value:
|
|
30
|
+
return None
|
|
31
|
+
path = Path(value)
|
|
32
|
+
if not path.is_absolute() or ".." in path.parts or "\x00" in value:
|
|
33
|
+
raise ValueError(
|
|
34
|
+
"Request throttle directory must be an absolute normalized path"
|
|
35
|
+
)
|
|
36
|
+
if len(bytes(path / "control.sock")) > 107:
|
|
37
|
+
raise ValueError(
|
|
38
|
+
"Request throttle directory exceeds the Unix socket path limit"
|
|
39
|
+
)
|
|
40
|
+
return path
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class ThrottleUnavailable(RuntimeError):
|
|
44
|
+
"""The configured host controller did not acknowledge foreground priority."""
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class RequestActivity:
|
|
48
|
+
def __init__(self, directory: Path) -> None:
|
|
49
|
+
self.directory = directory
|
|
50
|
+
self._file: BinaryIO | None = None
|
|
51
|
+
self._close_lock = threading.Lock()
|
|
52
|
+
|
|
53
|
+
def acquire(self) -> None:
|
|
54
|
+
deadline = time.monotonic() + ADMISSION_TIMEOUT_SECONDS
|
|
55
|
+
try:
|
|
56
|
+
self._file = (self.directory / "activity.lock").open("rb")
|
|
57
|
+
while True:
|
|
58
|
+
try:
|
|
59
|
+
fcntl.flock(self._file.fileno(), fcntl.LOCK_SH | fcntl.LOCK_NB)
|
|
60
|
+
break
|
|
61
|
+
except BlockingIOError:
|
|
62
|
+
if time.monotonic() >= deadline:
|
|
63
|
+
raise TimeoutError("Request activity lock admission timed out")
|
|
64
|
+
time.sleep(0.005)
|
|
65
|
+
with socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) as connection:
|
|
66
|
+
remaining = deadline - time.monotonic()
|
|
67
|
+
if remaining <= 0:
|
|
68
|
+
raise TimeoutError("Request throttle admission timed out")
|
|
69
|
+
connection.settimeout(remaining)
|
|
70
|
+
connection.connect(str(self.directory / "control.sock"))
|
|
71
|
+
connection.sendall(b"+")
|
|
72
|
+
if connection.recv(1) != b"+":
|
|
73
|
+
raise OSError("Request throttle acknowledgement missing")
|
|
74
|
+
except OSError as exc:
|
|
75
|
+
self.close()
|
|
76
|
+
raise ThrottleUnavailable(
|
|
77
|
+
"Request resource controller unavailable"
|
|
78
|
+
) from exc
|
|
79
|
+
except BaseException:
|
|
80
|
+
self.close()
|
|
81
|
+
raise
|
|
82
|
+
|
|
83
|
+
def close(self) -> None:
|
|
84
|
+
with self._close_lock:
|
|
85
|
+
if self._file is not None:
|
|
86
|
+
self._file.close()
|
|
87
|
+
self._file = None
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def _stream(content: Iterator[bytes], activity: RequestActivity) -> Iterator[bytes]:
|
|
91
|
+
try:
|
|
92
|
+
yield from content
|
|
93
|
+
finally:
|
|
94
|
+
activity.close()
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
async def _async_stream(
|
|
98
|
+
content: AsyncIterator[bytes], activity: RequestActivity
|
|
99
|
+
) -> AsyncIterator[bytes]:
|
|
100
|
+
try:
|
|
101
|
+
async for chunk in content:
|
|
102
|
+
yield chunk
|
|
103
|
+
finally:
|
|
104
|
+
activity.close()
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
class FrontendRequestThrottleMiddleware:
|
|
108
|
+
"""Synchronous admission also runs in Django's ASGI middleware adapter."""
|
|
109
|
+
|
|
110
|
+
def __init__(self, get_response: Callable[[HttpRequest], HttpResponseBase]) -> None:
|
|
111
|
+
self.get_response = get_response
|
|
112
|
+
self.directory = cast(
|
|
113
|
+
Path | None, settings.LX_ANNOTATE_REQUEST_THROTTLE_DIRECTORY
|
|
114
|
+
)
|
|
115
|
+
|
|
116
|
+
def __call__(self, request: HttpRequest) -> HttpResponseBase:
|
|
117
|
+
if self.directory is None or not request.path_info.startswith(API_PREFIXES):
|
|
118
|
+
return self.get_response(request)
|
|
119
|
+
activity = RequestActivity(self.directory)
|
|
120
|
+
try:
|
|
121
|
+
activity.acquire()
|
|
122
|
+
except ThrottleUnavailable:
|
|
123
|
+
logger.error("request_throttle.admission_failed")
|
|
124
|
+
response = JsonResponse(
|
|
125
|
+
{"error": "request_resources_unavailable"}, status=503
|
|
126
|
+
)
|
|
127
|
+
response["Retry-After"] = "1"
|
|
128
|
+
return response
|
|
129
|
+
try:
|
|
130
|
+
response = self.get_response(request)
|
|
131
|
+
if isinstance(response, StreamingHttpResponse):
|
|
132
|
+
content = response.streaming_content
|
|
133
|
+
if response.is_async:
|
|
134
|
+
response.streaming_content = _async_stream(
|
|
135
|
+
cast(AsyncIterator[bytes], content), activity
|
|
136
|
+
)
|
|
137
|
+
else:
|
|
138
|
+
response.streaming_content = _stream(
|
|
139
|
+
cast(Iterator[bytes], content), activity
|
|
140
|
+
)
|
|
141
|
+
# Keep the reservation through response delivery and request-finished
|
|
142
|
+
# handlers, including a disconnect before stream consumption.
|
|
143
|
+
original_close = response.close
|
|
144
|
+
|
|
145
|
+
def close_response() -> None:
|
|
146
|
+
try:
|
|
147
|
+
original_close()
|
|
148
|
+
finally:
|
|
149
|
+
activity.close()
|
|
150
|
+
|
|
151
|
+
response.close = close_response
|
|
152
|
+
return response
|
|
153
|
+
except BaseException:
|
|
154
|
+
activity.close()
|
|
155
|
+
raise
|
|
@@ -20,6 +20,7 @@ from endoreg_db.config.identity_hashing import load_identity_salt
|
|
|
20
20
|
from endoreg_db.utils.paths import get_runtime_paths
|
|
21
21
|
from kombu import Exchange, Queue
|
|
22
22
|
|
|
23
|
+
from lx_annotate.middleware.request_throttle import parse_request_throttle_directory
|
|
23
24
|
from lx_annotate.settings.config import load_config, load_runtime_environment
|
|
24
25
|
|
|
25
26
|
logger = getLogger(__name__)
|
|
@@ -682,6 +683,7 @@ MIDDLEWARE = [
|
|
|
682
683
|
"corsheaders.middleware.CorsMiddleware",
|
|
683
684
|
"django.middleware.security.SecurityMiddleware",
|
|
684
685
|
"whitenoise.middleware.WhiteNoiseMiddleware",
|
|
686
|
+
"lx_annotate.middleware.request_throttle.FrontendRequestThrottleMiddleware",
|
|
685
687
|
"django.contrib.sessions.middleware.SessionMiddleware",
|
|
686
688
|
"django.middleware.common.CommonMiddleware",
|
|
687
689
|
"django.middleware.csrf.CsrfViewMiddleware",
|
|
@@ -695,6 +697,10 @@ MIDDLEWARE = [
|
|
|
695
697
|
ROOT_URLCONF = "lx_annotate.urls"
|
|
696
698
|
WSGI_APPLICATION = "lx_annotate.wsgi.application"
|
|
697
699
|
|
|
700
|
+
LX_ANNOTATE_REQUEST_THROTTLE_DIRECTORY = parse_request_throttle_directory(
|
|
701
|
+
os.getenv("LX_ANNOTATE_REQUEST_THROTTLE_DIRECTORY", "")
|
|
702
|
+
)
|
|
703
|
+
|
|
698
704
|
# -----------------------------------------------------------------------------
|
|
699
705
|
# 3. TEMPLATES & FRONTEND
|
|
700
706
|
# -----------------------------------------------------------------------------
|
|
@@ -49,31 +49,12 @@ def _select_settings_module(argv: list[str]) -> str:
|
|
|
49
49
|
return PROD_SETTINGS_MODULE
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
def _ensure_required_runtime_packages() -> None:
|
|
53
|
-
if importlib.util.find_spec("endoreg_db") is None:
|
|
54
|
-
raise ImportError(
|
|
55
|
-
"Required package 'endoreg_db' is not installed in the active Python "
|
|
56
|
-
"environment. Install the packaged dependency instead of relying on a "
|
|
57
|
-
"repo-local checkout.",
|
|
58
|
-
)
|
|
59
|
-
|
|
60
52
|
|
|
61
53
|
os.environ["DJANGO_SETTINGS_MODULE"] = _select_settings_module(sys.argv)
|
|
62
54
|
|
|
63
55
|
|
|
64
56
|
def main():
|
|
65
57
|
"""Run administrative tasks."""
|
|
66
|
-
try:
|
|
67
|
-
_ensure_required_runtime_packages()
|
|
68
|
-
from django.core.management import execute_from_command_line
|
|
69
|
-
|
|
70
|
-
except ImportError as exc:
|
|
71
|
-
raise ImportError(
|
|
72
|
-
"Failed to start management command because a required runtime "
|
|
73
|
-
"dependency is missing. Ensure Django and endoreg_db are installed "
|
|
74
|
-
"in the active environment rather than imported from a repo-local checkout.",
|
|
75
|
-
) from exc
|
|
76
|
-
execute_from_command_line(sys.argv)
|
|
77
58
|
|
|
78
59
|
|
|
79
60
|
if __name__ == "__main__":
|
|
@@ -5,7 +5,7 @@ build-backend = "hatchling.build"
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "lx-annotate"
|
|
7
7
|
|
|
8
|
-
version = "1.3.
|
|
8
|
+
version = "1.3.4"
|
|
9
9
|
description = "This webapp provides a frontend interface for pseudonymizing and annotating data and applying AI predictions."
|
|
10
10
|
authors = [
|
|
11
11
|
{ name = "Max Hild", email = "hild_m@ukw.de"},
|
|
@@ -52,7 +52,7 @@ dependencies = [
|
|
|
52
52
|
"daphne>=4.2.1",
|
|
53
53
|
"psycopg[binary,pool]>=3.2.12",
|
|
54
54
|
"mozilla-django-oidc>=4.0.1",
|
|
55
|
-
"endoreg-db==1.3.
|
|
55
|
+
"endoreg-db==1.3.7",
|
|
56
56
|
"pydantic-settings>=2.12.0",
|
|
57
57
|
"pydantic>=2.12.5",
|
|
58
58
|
"sops>=1.18",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.overview-resource-row[data-v-36a54bdf]>*{vertical-align:middle;background-color:#fff}.overview-resource-row[data-v-36a54bdf]:hover>*{background-color:var(--bs-table-hover-bg, #f8f9fa)}.overview-resource-row:hover .sticky-filename-column[data-v-36a54bdf],.overview-resource-row:hover .validation-action-column[data-v-36a54bdf]{background:var(--bs-table-hover-bg, #f8f9fa)}.filename-cell-content[data-v-36a54bdf],.filename-details[data-v-36a54bdf]{min-width:0;max-width:100%}.filename-text[data-v-36a54bdf]{display:block;max-width:100%;overflow-wrap:anywhere;word-break:break-word;white-space:normal}.upload-job-summary[data-v-36a54bdf]{width:17rem;min-width:0;max-width:17rem}.job-progress[data-v-36a54bdf]{width:100%;max-width:17rem;height:.75rem;accent-color:var(--bs-info, #0dcaf0)}.upload-job-summary .small[data-v-36a54bdf],.upload-job-text[data-v-36a54bdf],.raw-file-state-hint[data-v-36a54bdf]{max-width:100%;overflow-wrap:anywhere;word-break:break-word;white-space:normal}.btn-group-sm .btn[data-v-36a54bdf]{padding:.25rem .5rem;font-size:.75rem}.badge[data-v-36a54bdf]{font-size:.75rem}.sticky-filename-column[data-v-36a54bdf]{position:sticky;left:0;width:22rem;min-width:18rem;max-width:22rem;background:#fff;box-shadow:.25rem 0 .75rem #0000000a;z-index:2}.validation-action-column[data-v-36a54bdf]{position:sticky;right:0;min-width:9rem;background:#fff;box-shadow:-.25rem 0 .75rem #0000000f;z-index:2}@media(max-width:768px){.btn-group-sm .btn[data-v-36a54bdf]{padding:.125rem .25rem;font-size:.7rem}.sticky-filename-column[data-v-36a54bdf]{width:15rem;min-width:13rem;max-width:15rem}.upload-job-summary[data-v-36a54bdf]{width:14rem;max-width:14rem}}.storage-summary[data-v-934bedc1]{border:1px solid var(--lx-border, #dee2e6);border-radius:var(--lx-corner-radius);padding:1rem}.storage-capacity-bar[data-v-934bedc1]{width:100%;height:1rem;accent-color:var(--bs-primary, #5e72e4)}.transcode-panel[data-v-1cd7047b]{border:1px solid var(--lx-border, #dee2e6);border-radius:var(--lx-corner-radius);padding:1rem}.transcode-progress[data-v-1cd7047b]{width:100%;height:1rem}.transcode-job+.transcode-job[data-v-1cd7047b]{border-top:1px solid var(--lx-border, #dee2e6)}.overview-filter-bar[data-v-
|
|
1
|
+
.overview-resource-row[data-v-36a54bdf]>*{vertical-align:middle;background-color:#fff}.overview-resource-row[data-v-36a54bdf]:hover>*{background-color:var(--bs-table-hover-bg, #f8f9fa)}.overview-resource-row:hover .sticky-filename-column[data-v-36a54bdf],.overview-resource-row:hover .validation-action-column[data-v-36a54bdf]{background:var(--bs-table-hover-bg, #f8f9fa)}.filename-cell-content[data-v-36a54bdf],.filename-details[data-v-36a54bdf]{min-width:0;max-width:100%}.filename-text[data-v-36a54bdf]{display:block;max-width:100%;overflow-wrap:anywhere;word-break:break-word;white-space:normal}.upload-job-summary[data-v-36a54bdf]{width:17rem;min-width:0;max-width:17rem}.job-progress[data-v-36a54bdf]{width:100%;max-width:17rem;height:.75rem;accent-color:var(--bs-info, #0dcaf0)}.upload-job-summary .small[data-v-36a54bdf],.upload-job-text[data-v-36a54bdf],.raw-file-state-hint[data-v-36a54bdf]{max-width:100%;overflow-wrap:anywhere;word-break:break-word;white-space:normal}.btn-group-sm .btn[data-v-36a54bdf]{padding:.25rem .5rem;font-size:.75rem}.badge[data-v-36a54bdf]{font-size:.75rem}.sticky-filename-column[data-v-36a54bdf]{position:sticky;left:0;width:22rem;min-width:18rem;max-width:22rem;background:#fff;box-shadow:.25rem 0 .75rem #0000000a;z-index:2}.validation-action-column[data-v-36a54bdf]{position:sticky;right:0;min-width:9rem;background:#fff;box-shadow:-.25rem 0 .75rem #0000000f;z-index:2}@media(max-width:768px){.btn-group-sm .btn[data-v-36a54bdf]{padding:.125rem .25rem;font-size:.7rem}.sticky-filename-column[data-v-36a54bdf]{width:15rem;min-width:13rem;max-width:15rem}.upload-job-summary[data-v-36a54bdf]{width:14rem;max-width:14rem}}.storage-summary[data-v-934bedc1]{border:1px solid var(--lx-border, #dee2e6);border-radius:var(--lx-corner-radius);padding:1rem}.storage-capacity-bar[data-v-934bedc1]{width:100%;height:1rem;accent-color:var(--bs-primary, #5e72e4)}.transcode-panel[data-v-1cd7047b]{border:1px solid var(--lx-border, #dee2e6);border-radius:var(--lx-corner-radius);padding:1rem}.transcode-progress[data-v-1cd7047b]{width:100%;height:1rem}.transcode-job+.transcode-job[data-v-1cd7047b]{border-top:1px solid var(--lx-border, #dee2e6)}.overview-filter-bar[data-v-6976555c]{display:flex;align-items:end;flex-wrap:wrap;gap:.75rem;margin-bottom:1rem;padding:.9rem;border:1px solid var(--lx-border, #dee2e6);border-radius:var(--lx-corner-radius);background:var(--lx-surface-muted, #f8f9fa)}.overview-filter-field[data-v-6976555c]{flex:0 1 16rem;min-width:13rem}.overview-filter-summary[data-v-6976555c]{margin:0 auto .5rem 0;color:var(--lx-ink-muted, #6c757d);font-size:.82rem;font-weight:700}.overview-filter-empty[data-v-6976555c]{border:1px dashed var(--lx-border-strong, #ced4da);border-radius:var(--lx-corner-radius);background:var(--lx-surface-muted, #f8f9fa)}.table th[data-v-6976555c]{border-top:none;font-weight:600;color:#6c757d;font-size:.875rem}.overview-files-table th[data-v-6976555c]{background-color:#fff}.overview-files-table thead th[data-v-6976555c]{background-color:#f8f9fa}.overview-files-table[data-v-6976555c]{min-width:1180px}.overview-table-scroll[data-v-6976555c]{overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none;-ms-overflow-style:none}.overview-table-scroll[data-v-6976555c]::-webkit-scrollbar{display:none}.overview-sticky-scrollbar[data-v-6976555c]{position:sticky;bottom:0;z-index:4;height:14px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;background-color:#fff;border-top:1px solid #dee2e6;scrollbar-color:#5e72e4 #e9ecef;scrollbar-width:auto}.overview-sticky-scrollbar[data-v-6976555c]::-webkit-scrollbar{height:12px}.overview-sticky-scrollbar[data-v-6976555c]::-webkit-scrollbar-track{background:#e9ecef;border-radius:6px}.overview-sticky-scrollbar[data-v-6976555c]::-webkit-scrollbar-thumb{background:#5e72e4;border-radius:6px}.overview-sticky-scrollbar[data-v-6976555c]::-webkit-scrollbar-thumb:hover{background:#344767}.overview-sticky-scrollbar-spacer[data-v-6976555c]{height:1px}.overview-files-table .sticky-filename-column[data-v-6976555c]{position:sticky;left:0;width:22rem;min-width:18rem;max-width:22rem;background:#fff;box-shadow:.25rem 0 .75rem #0000000a;z-index:2}.overview-files-table thead .sticky-filename-column[data-v-6976555c]{background:#f8f9fa;z-index:3}.overview-files-table .validation-action-column[data-v-6976555c]{position:sticky;right:0;min-width:9rem;background:#fff;box-shadow:-.25rem 0 .75rem #0000000f;z-index:2}.overview-files-table thead .validation-action-column[data-v-6976555c]{background:#f8f9fa;z-index:3}.badge[data-v-6976555c]{font-size:.75rem}.fs-6[data-v-6976555c]{font-size:1.25rem!important}.card-body .row.text-center .col-md-3[data-v-6976555c]{margin-bottom:1rem;background-color:#d3d3d3}@media(max-width:768px){.overview-files-table .sticky-filename-column[data-v-6976555c]{width:15rem;min-width:13rem;max-width:15rem}.table-responsive[data-v-6976555c]{font-size:.875rem}}.anonymization-overview-page[data-v-d8983ec3]{min-height:100vh;background-color:#f8f9fa}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ad as Pe,l as _,H as Ae,ao as ht,f as oe,h as J,i as C,m as R,p as be,as as ve,d as le,o as r,c as o,n as M,a as t,t as l,u as c,e as k,b as D,F as Z,r as ie,_ as de,z as Te,ak as $e,am as He,q as We,A as ge,B as _e,G as wt,a3 as kt,ah as Le,D as St,P as xt,E as _t,a6 as zt,k as ze}from"./main.js";import{u as It}from"./mediaTypeStore.js";import{r as At,u as Tt}from"./rng.js";const $t=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Me={randomUUID:$t};function Dt(e,n,u){if(Me.randomUUID&&!e)return Me.randomUUID();e=e||{};const i=e.random??e.rng?.()??At();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,Tt(i)}const q=oe,Vt=Ae("media-management");function Bt(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function Ct(e){if(!ht.isAxiosError(e))return"Ein unerwarteter Fehler ist aufgetreten.";const n=e.response?.status;if(n===429)return"Zu viele Anfragen. Bitte warten Sie einen Moment.";if(n===409)return"Datei wird bereits verarbeitet.";const u=e.response?.data;return Bt(u)&&typeof u.detail=="string"?u.detail:"Ein unerwarteter Fehler ist aufgetreten."}const E={async getStatusOverview(){return(await q.get(J(C.mediaManagement.status))).data},async performCleanup(e="unfinished",n=!1){return(await q.delete(J(C.mediaManagement.cleanup),{params:{type:e,force:n}})).data},async forceRemoveMedia(e){return(await q.delete(J(C.mediaManagement.forceRemove(e)))).data},async resetProcessingStatus(e){return(await q.post(J(C.mediaManagement.resetStatus(e)))).data},async getPollingCoordinatorInfo(){return(await q.get(J(C.anonymization.pollingInfo))).data},async clearProcessingLocks(e){return(await q.delete(J(C.anonymization.clearLocks),{params:e?{type:e}:void 0})).data},async getAnonymizationStatusSafe(e,n){return(await q.get(J(C.anonymization.status(e)))).data},async startAnonymizationSafe(e){return(await q.post(J(C.anonymization.start(e)))).data},async validateAnonymizationSafe(e,n){return(await q.post(J(C.anonymization.validate(e)),{...n?{document_type:n}:{}})).data},async reimportVideo(e){return(await q.post(J(C.runtime.videoStateRepairOne(e)),{dryRun:!1})).data},async reimportPdf(e){return(await q.post(J(C.media.pdfReimport(e)))).data},async deleteMediaFile(e){return(await q.delete(J(C.mediaManagement.forceRemove(e)))).data}};function Qe(){const e=_(!1),n=_(null),u=async i=>{e.value=!0,n.value=null;try{return await i()}catch(v){return Vt.error("request-failed",v),n.value=Ct(v),null}finally{e.value=!1}};return{isLoading:Pe(e),error:Pe(n),clearError:()=>{n.value=null},getStatusOverview:()=>u(()=>E.getStatusOverview()),performCleanup:(i,v=!1)=>u(()=>E.performCleanup(i,v)),forceRemoveMedia:i=>u(()=>E.forceRemoveMedia(i)),resetProcessingStatus:i=>u(()=>E.resetProcessingStatus(i)),deleteMediaFile:i=>u(()=>E.deleteMediaFile(i)),reimportVideo:i=>u(()=>E.reimportVideo(i)),reimportPdf:i=>u(()=>E.reimportPdf(i)),getStatusSafe:(i,v)=>u(()=>E.getAnonymizationStatusSafe(i,v)),startAnonymizationSafe:i=>u(()=>E.startAnonymizationSafe(i)),validateAnonymizationSafe:(i,v)=>u(()=>E.validateAnonymizationSafe(i,v)),getPollingInfo:()=>u(()=>E.getPollingCoordinatorInfo()),clearAllLocks:i=>u(()=>E.clearProcessingLocks(i))}}const ae=Ae("polling-protection");function Pt(){const{getStatusSafe:e,startAnonymizationSafe:n,validateAnonymizationSafe:u,clearAllLocks:i}=Qe(),v=5e3,x=_(new Map),w=(p,b)=>`${b}:${String(p)}`,m=()=>{const p=Date.now();x.value.forEach((b,z)=>{b<=p&&x.value.delete(z)})},y=R(()=>(p,b)=>{m();const z=w(p,b),P=x.value.get(z);return P?P<=Date.now()?(x.value.delete(z),!0):!1:!0}),I=(p,b,z=v)=>{m();const P=w(p,b),j=x.value.get(P);return j&&j>Date.now()?!1:(x.value.set(P,Date.now()+Math.max(1e3,z)),!0)},h=(p,b)=>{const z=w(p,b);x.value.delete(z)},V=async(p,b)=>{try{return await e(p,b)}catch(z){throw ae.error("status-check-failed",z,{mediaType:b}),z}},O=async(p,b)=>{if(!I(p,b))throw new Error("Datei wird bereits verarbeitet");try{return await n(p)}finally{h(p,b)}},N=async(p,b)=>{I(p,b);try{return await u(p)}catch(z){throw ae.error("validation-failed",z,{mediaType:b}),z}finally{h(p,b)}},A=()=>{const p=x.value.size;x.value.clear(),ae.debug("local-locks-cleared",{count:p})},B=async p=>{try{await i(p),p?Array.from(x.value.keys()).forEach(b=>{b.startsWith(`${p}:`)&&x.value.delete(b)}):A(),ae.info("all-locks-cleared")}catch(b){throw ae.error("clear-locks-failed",b),b}},$=R(()=>{const p=Array.from(x.value.entries()).map(([b,z])=>({key:b,expiresAt:z}));return{totalLocks:p.length,locks:p,videoLocks:p.filter(b=>b.key.startsWith("video:")),pdfLocks:p.filter(b=>b.key.startsWith("pdf:"))}});return{processingLocks:R(()=>Array.from(x.value.entries())),getProcessingLocksInfo:$,canProcessMedia:y,acquireProcessingLock:I,releaseProcessingLock:h,getStatusSafeWithProtection:V,startAnonymizationSafeWithProtection:O,validateAnonymizationSafeWithProtection:N,clearAllLocalLocks:A,clearAllProcessingLocks:B}}async function Lt(e){const{data:n}=await oe.post(be(C.anonymization.cancelUploadJob(e)),void 0,ve({timeout:15e3}));return n}async function Mt(e){const{data:n}=await oe.get(be(C.anonymization.storage),ve({signal:e,timeout:15e3}));return n}function ye(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function De(e){return e==="replace_processed"}function Ge(e){return Array.isArray(e)&&e.every(De)}function xe(e){return e===null||typeof e=="number"&&Number.isSafeInteger(e)&&e>=0}function Ze(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>0}function Rt(e){return e===null||typeof e=="number"&&Number.isFinite(e)&&e>=0&&e<=100}function Ot(e){const n=["queued","running","completed","skipped","failed","lost"];return typeof e.id=="string"&&Ze(e.videoId)&&De(e.option)&&typeof e.status=="string"&&n.includes(e.status)}function Ft(e){return Rt(e.progressPercent)&&xe(e.beforeBytes)&&xe(e.afterBytes)&&xe(e.savedBytes)}function Xe(e){return ye(e)&&Ot(e)&&Ft(e)&&typeof e.stage=="string"&&typeof e.errorCode=="string"&&typeof e.createdAt=="string"&&typeof e.updatedAt=="string"}function Jt(e){return ye(e)&&Ze(e.videoId)&&typeof e.filename=="string"&&Ge(e.options)}async function qt(e){const{data:n}=await oe.get(be(C.media.videoTranscodeJobsOverview),ve({signal:e,timeout:15e3,params:{limit:200}}));if(!ye(n)||!Array.isArray(n.jobs)||!n.jobs.every(Xe)||!Array.isArray(n.candidates)||!n.candidates.every(Jt)||!Ge(n.options))throw new TypeError("Video transcode overview does not match the API contract");return{jobs:n.jobs,candidates:n.candidates,options:n.options}}async function Et(e,n,u){if(!De(n))throw new TypeError("Unsupported video transcode option");const{data:i}=await oe.post(be(C.media.videoTranscodeJobs(e)),{option:n,idempotency_key:u},ve({timeout:15e3}));if(!ye(i)||!Xe(i.job)||typeof i.created!="boolean")throw new TypeError("Video transcode response does not match the API contract");return{job:i.job,created:i.created}}const Ye=e=>["processing_anonymization","extracting_frames","predicting_segments"].includes(e.anonymizationStatus),pe=e=>e.uploadJob?.status==="cancelled"&&Ye(e),Ut={report:"Befund",report_draft:"Befund-Entwurf",report_final:"Finaler Befund",report_correction:"Befund-Korrektur",histology_draft:"Histologie-Entwurf",histology_final:"Finale Histologie",referral:"Überweisung",discharge:"Entlassbrief"},Kt=e=>{if(!e)return"";const n=e.trim();return n?Ut[n]||`Dokumenttyp: ${n}`:""},Nt=e=>typeof e.pseudoPatientId=="number"?`Pseudo-Patient ${String(e.pseudoPatientId)}`:e.patientHashDisplay?`Patient ${e.patientHashDisplay}`:"",se=e=>{if(e.mediaType!=="pdf"||e.quarantined)return e.filename;const n=[Nt(e),Kt(e.documentType)].filter(Boolean);return n.length>0?n.join(" - "):e.filename||`PDF-ID: ${String(e.id)}`},jt=e=>e.quarantined?`Quarantäne: ${e.quarantineDirectoryLabel||e.quarantineDirectoryKey||"lx-annotate"}`:e.importOnly&&e.uploadJob?`Import-ID: ${e.uploadJob.id}`:e.mediaType==="video"?`Video-ID: ${String(e.id)}`:`PDF-ID: ${String(e.id)}`,Re=e=>({not_started:"bg-secondary",processing_anonymization:"bg-warning",extracting_frames:"bg-info",predicting_segments:"bg-info",done_processing_anonymization:"bg-success",validated:"bg-success",failed:"bg-danger"})[e]||"bg-secondary",Oe=e=>({not_started:"Nicht gestartet",processing_anonymization:"Anonymisierung läuft",extracting_frames:"Einzelbilder werden extrahiert",predicting_segments:"Segmentvorhersage läuft",done_processing_anonymization:"Fertig",validated:"Validiert",failed:"Fehlgeschlagen"})[e]||`Unbekannter Status (${e})`,Ht=e=>({pending:"bg-secondary",processing:"bg-warning",retrying:"bg-info text-dark",cancel_requested:"bg-warning text-dark",cancelled:"bg-secondary",anonymized:"bg-success",quarantined:"bg-warning text-dark",error:"bg-danger",lost:"bg-danger"})[e]||"bg-secondary",Fe=e=>({pending:"Import wartet",processing:"Import läuft",retrying:"Import wird erneut versucht",cancel_requested:"Abbruch angefordert",cancelled:"Import abgebrochen",anonymized:"Import abgeschlossen",quarantined:"In Quarantäne",error:"Importfehler",lost:"Importquelle fehlt (LOST)"})[e]||`Unbekannter Importstatus (${e})`,Wt="Duplikat erkannt. Der vorhandene Validierungsstatus bleibt unverändert.",Qt="Importfehler. Details sind im Server-Log verfügbar.",Gt=e=>{const n=e.status.toLowerCase();return n==="error"||n==="lost"},et=e=>e.uploadJob?.errorCode==="duplicate_content",Je=e=>{if(!e.uploadJob)return"";if(e.uploadJob.status==="cancel_requested")return"Abbruch angefordert. Der Import stoppt am nächsten sicheren Verarbeitungsschritt; die Quelle bleibt erhalten.";if(e.uploadJob.status==="cancelled")return"Import abgebrochen. Die Quelle und bereits veröffentlichte gültige Medien bleiben erhalten.";if(et(e))return Wt;if(e.uploadJob.status==="retrying"){const n=e.uploadJob.retryCount,u=e.uploadJob.maxRetries,i=e.uploadJob.nextRetryAt?` Nächster Versuch: ${re(e.uploadJob.nextRetryAt)}.`:"";return`Vorübergehender Importfehler. Versuch ${String(n)}/${String(u)}.${i}`}return Gt(e.uploadJob)?Qt:""},Zt=e=>et(e)?"text-muted":e.uploadJob?.status==="retrying"||e.uploadJob?.status==="cancel_requested"?"text-warning":e.uploadJob?.status==="cancelled"?"text-muted":"text-danger",Xt=e=>({queued:"bg-secondary",materializing:"bg-warning text-dark",ready:"bg-success",failed:"bg-danger"})[e]||"bg-secondary",qe=e=>({queued:"Wartet",materializing:"Wird erzeugt",ready:"Bereit",failed:"Fehlgeschlagen"})[e]||`Unbekannter HLS-Status (${e})`,Ee=e=>e==="raw"?"Rohvideo":"Anonymisiert",Ie=e=>e.quarantined&&{pending_review:"Review erforderlich",retained:"Aufbewahrung beschlossen",approved_for_deletion:"Löschung freigegeben",failed:"Bedienereingriff erforderlich",unindexed:"Ledger-Abgleich erforderlich"}[e.quarantineReviewStatus||""]||"",Ue=e=>{const n=[];return e.ingestMode==="watcher"?n.push("Ordnerimport"):n.push("API"),e.sourceSystem&&n.push(e.sourceSystem),e.sourceCenterKey&&n.push(e.sourceCenterKey),n.join(" / ")},tt=e=>({pending:"Bereinigung offen",eligible:"Bereinigung bereit",completed:"Bereinigt",skipped:"Bereinigung übersprungen"})[e]||`Unbekannter Bereinigungsstatus (${e})`,Ke=e=>{const n=e.sourceFilePersisted?"Quelle vorhanden":"Quelle bereinigt",u=tt(e.cleanupStatus);return[n,u].filter(Boolean).join(" - ")},Yt=e=>({deleted:"Ja, gelöscht",present:"Nein, vorhanden",quarantined:"In Quarantäne",unknown:"Unbekannt"})[fe(e)],en=e=>({deleted:"text-success",present:"text-warning",quarantined:"text-warning",unknown:"text-muted"})[fe(e)],tn=e=>({deleted:"ni ni-check-bold",present:"ni ni-single-copy-04",quarantined:"ni ni-settings-gear-65",unknown:"ni ni-settings-gear-65"})[fe(e)],Ne=e=>e.quarantined?Ie(e)||"Import wurde vor der Datenbankanlage gestoppt":e.uploadJob?.cleanupStatus?tt(e.uploadJob.cleanupStatus):e.rawFile&&e.rawFile.trim()!==""?"Rohdatei ist noch referenziert":"",re=e=>e?new Date(e).toLocaleDateString("de-DE",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}):"-",je=e=>(e.hlsMaterializations??[]).filter(n=>e.anonymizationStatus!=="validated"||n.artifactKind==="processed"),nn=e=>{if(typeof e?.sourceFilePersisted=="boolean")return e.sourceFilePersisted?"present":"deleted";const n=e?.cleanupStatus.toLowerCase();return n==="completed"?"deleted":n==="pending"||n==="eligible"?"present":null},fe=e=>{if(e.quarantined)return"quarantined";const n=nn(e.uploadJob);return n||(e.rawFile?.trim()?"present":"unknown")},nt=e=>{const n=e.sensitiveMetaId==null||e.metadataImported===!1;return e.mediaType==="video"?n:e.mediaType==="pdf"?n||e.anonymizationStatus==="failed"||e.anonymizationStatus==="not_started":!1},he=(e,n)=>e.uploadJob?e.uploadJob.allowedActions.includes(n):!0,at=e=>!!(!e.quarantined&&e.mediaType==="video"&&e.uploadJob?.allowedActions.includes("cancel")&&["pending","processing","retrying"].includes(e.uploadJob.status)),an=e=>!!(e.importOnly&&e.uploadJob&&(e.uploadJob.retryable||he(e,"safe_reimport"))),sn=e=>!e.importOnly&&e.mediaType==="video"&&nt(e)&&he(e,"safe_reimport"),rn=e=>!e.importOnly&&e.mediaType==="pdf"&&nt(e)&&he(e,"safe_reimport"),on=e=>(e.mediaType==="video"||e.mediaType==="pdf")&&(e.anonymizationStatus==="done_processing_anonymization"||e.anonymizationStatus==="validated"),ln=e=>!!(e.importOnly&&e.uploadJob&&e.canDismissImport&&!e.quarantined),dn=e=>[{intent:"cancel-import",visible:at(e),label:"Import abbrechen",buttonClass:"btn btn-outline-danger",testSelector:"cancel-upload-job-button",title:"Import am nächsten sicheren Verarbeitungsschritt stoppen; Quelle erhalten"},{intent:"retry-import",visible:an(e),label:"Jetzt erneut versuchen",buttonClass:"btn btn-outline-warning",testSelector:"retry-upload-job-button",title:"Gespeicherte Importquelle erneut verarbeiten",icon:"ni ni-bold-right"},{intent:"repair-video",visible:sn(e),label:"Zustand reparieren",buttonClass:"btn btn-outline-info",title:"Gespeicherten Zustand prüfen und reparieren; fehlende Metadaten werden nicht neu erzeugt",icon:"ni ni-bold-right"},{intent:"reimport-pdf",visible:rn(e),label:"Erneut importieren",buttonClass:"btn btn-outline-info",title:"PDF erneut importieren und verarbeiten",icon:"ni ni-bold-right"},{intent:"start-anonymization",visible:!e.importOnly&&e.anonymizationStatus==="not_started",label:"Starten",buttonClass:"btn btn-outline-primary",icon:"ni ni-button-play"},{intent:"start-anonymization",visible:!e.importOnly&&e.anonymizationStatus==="failed",label:"Erneut versuchen",buttonClass:"btn btn-outline-warning",icon:"ni ni-bold-right"},{intent:"correct",visible:on(e),label:"Korrektur",buttonClass:"btn btn-outline-warning",testSelector:"correction-button",icon:"ni ni-single-copy-04"},{intent:"dismiss-import",visible:ln(e),label:"Aus Übersicht entfernen",buttonClass:"btn btn-outline-secondary",testSelector:"dismiss-import-button",title:"Fehlgeschlagenen Import ausblenden; Quelldatei und Verlauf bleiben erhalten"},{intent:"delete",visible:!e.importOnly&&he(e,"delete"),label:"Löschen",buttonClass:"btn btn-outline-danger",testSelector:"delete-file-button",title:"Datei permanent löschen",icon:"ni ni-settings-gear-65",ariaLabel:`Datei ${String(e.id)} löschen`}].filter(u=>u.visible),un={class:"sticky-filename-column"},cn={class:"d-flex align-items-start filename-cell-content"},mn={class:"filename-details"},gn={class:"fw-medium filename-text"},pn={class:"small text-muted mt-1"},bn={key:0,class:"small text-warning mt-1 quarantine-file-note"},vn={key:0,class:"small text-warning quarantine-action-note"},yn={key:0,class:"text-muted mt-1"},fn={key:1,class:"btn-group btn-group-sm",role:"group"},hn=["data-test","title","aria-label","disabled","onClick"],wn={key:0,class:"btn btn-outline-info",disabled:""},kn={key:1,class:"btn btn-outline-info",disabled:""},Sn={key:0,class:"upload-job-summary"},xn=["aria-label"],_n={key:1,class:"small text-muted mt-1 upload-job-text"},zn={key:2,class:"small text-muted upload-job-text"},In={key:3,class:"small text-muted upload-job-text"},An={key:1,class:"text-muted"},Tn={key:0,class:"hls-materialization-summary"},$n=["aria-label"],Dn={class:"small text-muted upload-job-text"},Vn={key:1,class:"small text-danger upload-job-text"},Bn={key:1,class:"text-muted"},Cn={key:0,class:"text-muted"},Pn={key:1,class:"badge bg-warning text-dark"},Ln={key:0,class:"ni ni-settings-gear-65 ni-spin me-1"},Mn={key:0,class:"text-muted"},Rn={class:"validation-action-column"},On=["disabled"],Fn={key:1,class:"badge bg-success"},Jn={key:2,class:"text-muted"},qn={key:0,class:"small text-muted raw-file-state-hint"},En={class:"text-muted"},Un=le({__name:"AnonymizationOverviewRow",props:{file:{},processing:{type:Boolean},retryProcessing:{type:Boolean},readyForValidation:{type:Boolean},iconClass:{},mediaTypeBadgeClass:{}},emits:["cancel-import","retry-import","repair-video","reimport-pdf","start-anonymization","correct","dismiss-import","delete","validate"],setup(e,{emit:n}){const u=e,i=n,v=R(()=>dn(u.file));return(x,w)=>(r(),o("tr",{class:M(["overview-resource-row",{"table-warning":e.file.quarantined}])},[t("td",un,[t("div",cn,[t("i",{class:M([e.iconClass,"me-2 flex-shrink-0"])},null,2),t("div",mn,[t("span",gn,l(c(se)(e.file)),1),t("div",pn,l(c(jt)(e.file)),1),e.file.quarantined?(r(),o("div",bn," Import blockiert: Datei liegt in Quarantäne. ")):k("",!0)])])]),t("td",null,[t("span",{class:M([e.mediaTypeBadgeClass,"badge"])},l(e.file.mediaType.toUpperCase()),3)]),t("td",null,[e.file.quarantined?(r(),o("div",vn,[w[1]||(w[1]=D(" Serverseitige Quarantäne ",-1)),c(Ie)(e.file)?(r(),o("div",yn,l(c(Ie)(e.file)),1)):k("",!0)])):(r(),o("div",fn,[(r(!0),o(Z,null,ie(v.value,m=>(r(),o("button",{key:m.intent,class:M(m.buttonClass),"data-test":m.testSelector,title:m.title,"aria-label":m.ariaLabel,disabled:m.intent==="retry-import"||m.intent==="cancel-import"?e.retryProcessing:e.processing,onClick:y=>i(m.intent,e.file)},[m.icon?(r(),o("i",{key:0,class:M(m.icon)},null,2)):k("",!0),D(" "+l(m.label),1)],10,hn))),128)),e.file.anonymizationStatus==="processing_anonymization"&&!c(pe)(e.file)?(r(),o("button",wn,[...w[2]||(w[2]=[t("i",{class:"ni ni-settings-gear-65 ni-spin me-1"},null,-1),D(" Anonymisierung... ",-1)])])):k("",!0),e.file.anonymizationStatus==="extracting_frames"&&!c(pe)(e.file)?(r(),o("button",kn,[...w[3]||(w[3]=[t("i",{class:"ni ni-settings-gear-65 ni-spin me-1"},null,-1),D(" Einzelbilder werden extrahiert... ",-1)])])):k("",!0)]))]),t("td",null,[e.file.uploadJob?(r(),o("div",Sn,[t("span",{class:M(["badge",c(Ht)(e.file.uploadJob.status)])},l(c(Fe)(e.file.uploadJob.status)),3),["pending","processing","retrying","cancel_requested"].includes(e.file.uploadJob.status)?(r(),o("progress",{key:0,class:"job-progress d-block mt-1","aria-label":`${c(se)(e.file)}: ${c(Fe)(e.file.uploadJob.status)}`},null,8,xn)):k("",!0),c(Ue)(e.file.uploadJob)?(r(),o("div",_n,l(c(Ue)(e.file.uploadJob)),1)):k("",!0),c(Ke)(e.file.uploadJob)?(r(),o("div",zn,l(c(Ke)(e.file.uploadJob)),1)):k("",!0),e.file.uploadJob.updatedAt?(r(),o("div",In," Aktualisiert: "+l(c(re)(e.file.uploadJob.updatedAt)),1)):k("",!0),c(Je)(e.file)?(r(),o("div",{key:4,class:M(["small mt-1 upload-job-text",c(Zt)(e.file)])},l(c(Je)(e.file)),3)):k("",!0)])):(r(),o("span",An,"-"))]),t("td",null,[c(je)(e.file).length?(r(),o("div",Tn,[(r(!0),o(Z,null,ie(c(je)(e.file),m=>(r(),o("div",{key:m.artifactKind,class:"mb-1"},[t("span",{class:M(["badge",c(Xt)(m.status)])},l(c(Ee)(m.artifactKind))+": "+l(c(qe)(m.status)),3),["queued","materializing"].includes(m.status)?(r(),o("progress",{key:0,class:"job-progress d-block mt-1","aria-label":`${c(se)(e.file)}: HLS ${c(Ee)(m.artifactKind)} – ${c(qe)(m.status)}`},null,8,$n)):k("",!0),t("div",Dn," Aktualisiert: "+l(c(re)(m.updatedAt)),1),m.status==="failed"?(r(),o("div",Vn," HLS-Erzeugung fehlgeschlagen. Details sind im Server-Log verfügbar. ")):k("",!0)]))),128))])):(r(),o("span",Bn,"-"))]),t("td",null,[e.file.importOnly?(r(),o("span",Cn,"-")):c(pe)(e.file)?(r(),o("span",Pn,"Verarbeitung unterbrochen")):(r(),o("span",{key:2,class:M([c(Re)(e.file.anonymizationStatus),"badge"])},[e.file.anonymizationStatus==="processing_anonymization"?(r(),o("i",Ln)):k("",!0),D(" "+l(c(Oe)(e.file.anonymizationStatus)),1)],2))]),t("td",null,[e.file.importOnly?(r(),o("span",Mn,"-")):(r(),o("span",{key:1,class:M([c(Re)(e.file.annotationStatus),"badge"])},l(c(Oe)(e.file.annotationStatus)),3))]),t("td",Rn,[e.file.anonymizationStatus==="done_processing_anonymization"?(r(),o("button",{key:0,class:"btn btn-success btn-sm",disabled:!e.readyForValidation,onClick:w[0]||(w[0]=m=>i("validate",e.file))},[...w[4]||(w[4]=[t("i",{class:"ni ni-user-run me-1"},null,-1),D(" Validieren ",-1)])],8,On)):e.file.anonymizationStatus==="validated"?(r(),o("span",Fn,[...w[5]||(w[5]=[t("i",{class:"ni ni-check-bold me-1"},null,-1),D(" Validiert ",-1)])])):(r(),o("span",Jn,"-"))]),t("td",null,[t("span",{class:M(c(en)(e.file))},[t("i",{class:M([c(tn)(e.file),"me-1"])},null,2),D(" "+l(c(Yt)(e.file)),1)],2),c(Ne)(e.file)?(r(),o("div",qn,l(c(Ne)(e.file)),1)):k("",!0)]),t("td",null,[t("small",En,l(c(re)(e.file.createdAt)),1)])],2))}}),Kn=de(Un,[["__scopeId","data-v-36a54bdf"]]),Nn={class:"storage-summary mb-3","aria-label":"Speicherplatz"},jn={class:"d-flex justify-content-between align-items-center gap-2"},Hn=["disabled"],Wn={key:0,class:"mb-0",role:"status"},Qn={key:1,class:"mb-0 text-warning",role:"status"},Gn={class:"d-flex flex-wrap gap-3 mb-2","data-test":"storage-capacity"},Zn=["value","max"],Xn={class:"small text-muted mb-0"},Yn=["datetime"],ea=le({__name:"OverviewStorageSummary",setup(e){const n=_(null),u=_(!1),i=_("");let v=null,x=!1;const w=()=>x;function m(I){const h=["B","KiB","MiB","GiB","TiB","PiB"],V=I>0?Math.min(Math.floor(Math.log(I)/Math.log(1024)),h.length-1):0;return`${(I/1024**V).toLocaleString("de-DE",{maximumFractionDigits:1})} ${h[V]}`}async function y(){if(!(u.value||w())){v=new AbortController,u.value=!0,i.value="",n.value=null;try{const I=await Mt(v.signal);w()||(n.value=I)}catch(I){if(w())return;i.value=He(I)&&I.response?.status===403?"Für die Speicheranzeige ist eine Berechtigung zur Speicherüberwachung erforderlich.":"Speicherplatz konnte nicht abgefragt werden. Bitte erneut aktualisieren."}finally{w()||(u.value=!1),v=null}}}return Te(y),$e(()=>{x=!0,v?.abort()}),(I,h)=>(r(),o("section",Nn,[t("div",jn,[h[0]||(h[0]=t("h5",{class:"mb-0"},"Speicherplatz",-1)),t("button",{type:"button",class:"btn btn-sm btn-outline-secondary mb-0",disabled:u.value,onClick:y}," Speicher aktualisieren ",8,Hn)]),h[6]||(h[6]=t("p",{class:"small text-muted mt-2 mb-2"}," Dateisystem des geschützten Medienspeichers, einschließlich anderer Dateien auf diesem Dateisystem. Unabhängig von den Tabellenfiltern. ",-1)),u.value?(r(),o("p",Wn," Speicherplatz wird abgefragt… ")):i.value?(r(),o("p",Qn,l(i.value),1)):n.value?(r(),o(Z,{key:2},[t("div",Gn,[t("span",null,[h[1]||(h[1]=D("Gesamt: ",-1)),t("strong",null,l(m(n.value.totalBytes)),1)]),t("span",null,[h[2]||(h[2]=D("Belegt: ",-1)),t("strong",null,l(m(n.value.usedBytes)),1)]),t("span",null,[h[3]||(h[3]=D("Verfügbar: ",-1)),t("strong",null,l(m(n.value.availableBytes)),1)]),t("span",null,[h[4]||(h[4]=D("Systemreserviert: ",-1)),t("strong",null,l(m(n.value.reservedBytes)),1)])]),t("progress",{class:"storage-capacity-bar",value:n.value.usedBytes+n.value.reservedBytes,max:n.value.totalBytes,"aria-label":"Belegter und systemreservierter Speicherplatz"},null,8,Zn),t("p",Xn,[h[5]||(h[5]=D(" Stand: ",-1)),t("time",{datetime:n.value.observedAt},l(c(re)(n.value.observedAt)),9,Yn)])],64)):k("",!0)]))}}),ta=de(ea,[["__scopeId","data-v-934bedc1"]]),na={class:"transcode-panel mb-3","aria-label":"Videogröße reduzieren"},aa={class:"d-flex justify-content-between align-items-center gap-2"},sa=["disabled"],ra={key:0,class:"text-warning",role:"alert"},ia={key:1,class:"text-warning",role:"alert"},oa={key:2,class:"small",role:"status"},la={class:"d-flex flex-wrap align-items-end gap-3"},da={class:"form-label"},ua=["disabled"],ca=["value"],ma=["disabled"],ga={key:0,class:"small","data-test":"no-transcode-candidates"},pa=["disabled"],ba={key:1,role:"status"},va={key:2,class:"list-unstyled mb-0","data-test":"transcode-jobs"},ya=["data-job-id"],fa={class:"d-flex flex-wrap justify-content-between gap-2"},ha={class:"small mb-1"},wa=["value","aria-label"],ka={key:0,class:"small"},Sa={key:1,class:"small mb-0"},xa={key:2,class:"small text-warning mb-0","data-test":"cleanup-pending"},_a={key:3,class:"small text-danger mb-0"},za={key:3,class:"small mb-0"},Ia=5e3,Aa=le({__name:"OverviewTranscodePanel",props:{repairing:{type:Boolean,default:!1},refreshToken:{default:0}},emits:["repair"],setup(e,{emit:n}){const u=e,i=n,v=_(null),x=_(null),w=R(()=>v.value?.options.includes("replace_processed")?"replace_processed":null),m=_(!1),y=_(!1),I=_(""),h=_(""),V=_(""),O=R(()=>v.value?.candidates.filter(g=>w.value&&g.options.includes(w.value))??[]),N=R(()=>w.value!==null&&O.value.some(g=>g.videoId===x.value)&&!v.value?.jobs.some(g=>g.videoId===x.value&&j(g)));let A=!1;const B=()=>A;let $=null,p=null,b=!1;const z=()=>b;let P=null;function j(g){return g.status==="queued"||g.status==="running"}function X(g){return{queued:"Wartet",running:"Läuft",completed:"Abgeschlossen",skipped:"Übersprungen",failed:"Fehlgeschlagen",lost:"Verloren (LOST)"}[g]}function H(g){return{queued:"Wartet auf Verarbeitung",validating:"Quelle wird geprüft",transcoding:"Video wird transkodiert",publishing:"Ergebnis wird gespeichert",materializing:"Quelle wird zur Verarbeitung bereitgestellt",encoding:"Video wird transkodiert",rebuilding_playback:"HLS-Wiedergabe wird erneuert",cleanup:"Ersetzte Dateien werden bereinigt",completed:"Abgeschlossen"}[g]??"Verarbeitung läuft"}function W(g){if(g===null)return"Nicht gemessen";const f=["B","KiB","MiB","GiB","TiB","PiB"],S=g>0?Math.min(Math.floor(Math.log(g)/Math.log(1024)),f.length-1):0;return`${(g/1024**S).toLocaleString("de-DE",{maximumFractionDigits:1})} ${f[S]}`}function ee(g){if(He(g)){if(g.response?.status===403)return"Für die Transkodierung ist eine Berechtigung erforderlich.";if(g.response?.status===404||g.response?.status===503)return"Transkodierung ist auf diesem Server derzeit nicht verfügbar.";if(g.response?.status===409)return"Der Auftrag steht im Konflikt mit dem aktuellen Videozustand. Bitte aktualisieren."}return"Transkodierungsaufträge konnten nicht abgefragt oder angefordert werden. Bitte erneut versuchen."}function L(){B()||$||m.value||y.value||!I.value&&!v.value?.jobs.some(j)||($=setTimeout(()=>{$=null,U()},Ia))}function Y(g){v.value=g,I.value="",O.value.some(f=>f.videoId===x.value)||(x.value=null)}async function U(){if(!B()){if(m.value||y.value){b=!0;return}b=!1,$&&clearTimeout($),$=null,p=new AbortController,m.value=!0;try{const g=await qt(p.signal);if(B())return;Y(g)}catch(g){if(B())return;v.value=null,I.value=ee(g)}finally{p=null,m.value=!1,z()&&!B()?(b=!1,U()):L()}}}function K(){if(!N.value||!w.value||x.value===null)return null;const g=x.value,f=w.value;return(!P||P.videoId!==g)&&(P={videoId:g,option:f,key:Dt()}),P}async function we(){if(m.value||y.value||u.repairing||B())return;const g=K();if(g){y.value=!0,h.value="",V.value="";try{const f=await Et(g.videoId,g.option,g.key);if(B())return;P=null,V.value=Q(f.created)}catch(f){B()||(h.value=ee(f))}finally{y.value=!1,B()||await U()}}}function Q(g){return g?"Transkodierungsauftrag angelegt.":"Vorhandener Transkodierungsauftrag wird angezeigt."}function ke(){w.value&&O.value.length&&!m.value&&!y.value&&!u.repairing&&i("repair",w.value)}return We(()=>u.refreshToken,()=>{U()}),Te(U),$e(()=>{A=!0,p?.abort(),$&&clearTimeout($)}),(g,f)=>(r(),o("section",na,[t("div",aa,[f[1]||(f[1]=t("h5",{class:"mb-0"},"Videogröße reduzieren",-1)),t("button",{type:"button",class:"btn btn-sm btn-outline-secondary mb-0",disabled:m.value||y.value,"data-test":"refresh-transcodes",onClick:U}," Aufträge aktualisieren ",8,sa)]),f[7]||(f[7]=t("p",{class:"small text-muted mt-2"},"Verfügbare Videos werden vom Server geprüft.",-1)),I.value?(r(),o("p",ra,l(I.value),1)):k("",!0),h.value?(r(),o("p",ia,l(h.value),1)):k("",!0),m.value?(r(),o("p",oa," Transkodierungsaufträge werden geladen… ")):k("",!0),v.value?(r(),o(Z,{key:3},[t("div",la,[t("label",da,[f[3]||(f[3]=D(" Video ",-1)),ge(t("select",{"onUpdate:modelValue":f[0]||(f[0]=S=>x.value=S),class:"form-select","data-test":"transcode-video",disabled:y.value||!O.value.length},[f[2]||(f[2]=t("option",{value:null},"Video auswählen",-1)),(r(!0),o(Z,null,ie(O.value,S=>(r(),o("option",{key:S.videoId,value:S.videoId},l(S.filename)+" (Video-ID: "+l(S.videoId)+") ",9,ca))),128))],8,ua),[[_e,x.value]])]),t("button",{type:"button",class:"btn btn-primary","data-test":"start-transcode",disabled:!N.value||m.value||y.value||e.repairing,onClick:we},l(y.value?"Auftrag wird angefordert…":"Verarbeitetes Video verkleinern"),9,ma)]),f[4]||(f[4]=t("p",{class:"small text-warning","data-test":"replacement-notice"}," Die verarbeitete Videodatei wird durch eine kleinere Version ersetzt. Das Rohvideo bleibt erhalten. Die HLS-Wiedergabe wird erneuert; ersetzte Dateien werden nach erfolgreicher Prüfung entfernt. ",-1)),O.value.length?k("",!0):(r(),o("p",ga," Der Server meldet keine geeigneten verarbeiteten Videos. ")),t("button",{type:"button",class:"btn btn-outline-warning btn-sm","data-test":"repair-and-transcode",disabled:m.value||y.value||e.repairing||!O.value.length||!w.value,onClick:ke},l(e.repairing?"Reparatur läuft…":"Videozustände reparieren und verarbeitetes Video gesammelt verkleinern"),9,pa),f[5]||(f[5]=t("p",{class:"small text-muted"}," Gesammelt: alle serverseitig berechtigten Videos, unabhängig von Videoauswahl und Tabellenfiltern. ",-1)),V.value?(r(),o("p",ba,l(V.value),1)):k("",!0),v.value.jobs.length?(r(),o("ul",va,[(r(!0),o(Z,null,ie(v.value.jobs,S=>(r(),o("li",{key:S.id,class:"transcode-job py-2","data-job-id":S.id},[t("div",fa,[t("strong",null,"Video "+l(S.videoId)+" · Verarbeitetes Video verkleinern",1),t("span",null,l(X(S.status)),1)]),j(S)?(r(),o(Z,{key:0},[t("p",ha,l(H(S.stage)),1),t("progress",{class:"transcode-progress",value:S.progressPercent??void 0,max:100,"aria-label":`Transkodierung Video ${S.videoId}: ${H(S.stage)}`},null,8,wa),S.progressPercent!==null?(r(),o("span",ka,l(S.progressPercent)+" %",1)):k("",!0)],64)):(r(),o("p",Sa," Vorher: "+l(W(S.beforeBytes))+" · Nachher: "+l(W(S.afterBytes))+" · Eingespart: "+l(W(S.savedBytes)),1)),S.errorCode==="transcode_cleanup_pending"?(r(),o("p",xa," Bereinigung ausstehend: Zurückbehaltene Dateien belegen weiterhin Speicher. Bitte die Ursache der Bereinigungsstörung auf dem Server beheben und den Auftrag danach erneut anfordern. ")):S.status==="failed"||S.status==="lost"?(r(),o("p",_a," Transkodierung fehlgeschlagen"+l(S.errorCode?` (${S.errorCode})`:"")+". Bitte Serverdiagnose prüfen. ",1)):k("",!0)],8,ya))),128))])):(r(),o("p",za," Keine Transkodierungsaufträge vorhanden. ")),f[6]||(f[6]=t("p",{class:"small text-muted mt-2 mb-0"}," Anzeige: höchstens 200 Aufträge und serverseitig bereitgestellte Videos. ",-1))],64)):k("",!0)]))}}),Ta=de(Aa,[["__scopeId","data-v-1cd7047b"]]),$a={class:"container-fluid py-4"},Da={class:"card"},Va={class:"card-header pb-0 d-flex justify-content-between align-items-center"},Ba={class:"d-flex gap-2"},Ca=["disabled"],Pa=["disabled"],La={key:0,class:"alert alert-danger",role:"alert"},Ma={key:1,class:"text-center py-5"},Ra={key:2,class:"text-center py-5"},Oa={key:3,class:"overview-filter-bar","data-test":"anonymization-overview-filters","aria-label":"Anonymisierungsdateien filtern"},Fa={class:"overview-filter-field"},Ja={class:"overview-filter-field"},qa={class:"overview-filter-summary","aria-live":"polite"},Ea={key:4,class:"overview-filter-empty text-center py-5","data-test":"anonymization-filter-empty"},Ua={key:6,class:"row mt-4"},Ka={class:"col-md-12"},Na={class:"card bg-light"},ja={class:"card-body"},Ha={class:"row text-center"},Wa={class:"col-md-3"},Qa={class:"mb-2"},Ga={class:"badge bg-secondary fs-6"},Za={class:"col-md-3"},Xa={class:"mb-2"},Ya={class:"badge bg-warning fs-6"},es={class:"col-md-3"},ts={class:"mb-2"},ns={class:"badge bg-warning fs-6"},as={class:"col-md-3"},ss={class:"mb-2"},rs={class:"badge bg-success fs-6"},is={class:"col-md-3"},os={class:"mb-2"},ls={class:"badge bg-danger fs-6"},ds={class:"card-body"},us={key:0,class:"alert alert-warning",role:"alert"},cs={key:1,class:"alert alert-info",role:"status"},ms=15e3,gs=le({__name:"AnonymizationOverviewComponent",setup(e){const n=Ae("anonymization-overview"),u=wt(),i=kt(),v=It(),x=Pt(),w=Qe(),m=a=>({id:a.id,mediaType:a.mediaType,scope:a.mediaType,filename:a.filename}),y=a=>a.quarantineId?`quarantine:${a.quarantineId}`:a.importOnly&&a.uploadJob?`import:${a.uploadJob.id}`:`${a.mediaType}:${String(a.id)}`,I=_(!1),h=_(!1),V=_(""),O=_(0);let N=null;const A=_(new Set),B=_(""),$=_(null),p=_(null),b=_(null),z=_(null),P=_(0),j=_(!1),X=_("all"),H=_("all");let W=null,ee=!1;const L=()=>ee;let Y=null,U=!1;const K=R(()=>i.overview),we=R(()=>{const a=new Map,s=new Set;for(const d of K.value){if(d.importOnly||d.quarantined)continue;const T=a.get(d.id);T&&T!==d.mediaType&&s.add(d.id),a.set(d.id,d.mediaType)}return s}),Q=R(()=>K.value.filter(a=>{const s=X.value==="all"||a.mediaType===X.value,d=H.value==="all"||fe(a)===H.value;return s&&d})),ke=R(()=>X.value!=="all"||H.value!=="all"),g=()=>{X.value="all",H.value="all"},f=()=>{const a=p.value;a&&(P.value=a.scrollWidth,j.value=a.scrollWidth>a.clientWidth,z.value&&(z.value.scrollLeft=a.scrollLeft))},S=()=>{f()},st=()=>{const a=p.value,s=z.value;a&&s&&a.scrollLeft!==s.scrollLeft&&(a.scrollLeft=s.scrollLeft)},G=()=>L()?Y||(I.value=!0,Y=(async()=>{try{if(await i.fetchOverview(),U=!!i.error,!L())return;v.seedTypesFromOverview(i.overview),await Le(),L()&&f()}catch(a){U=!0,n.error("monitoring-refresh-failed",a)}finally{Y=null,I.value=!1,ue()}})(),Y):Promise.resolve(),rt=async a=>{N?.option!==a&&(N={option:a,idempotencyKey:crypto.randomUUID(),afterVideoId:0});const s=N;let d=0,T=0,F=0;for(;L();){const ce=await i.repairAllVideoStates(!1,{...s});if(!L()||!ce)return;const ne=ce.transcodes;if(!ne){V.value="Der Server hat keine Transkodierungsaufträge bestätigt. Bitte den Serverstand prüfen.";return}d+=ne.queued,T+=ne.existing,F+=ne.rejected,V.value=`${String(d)} Transkodierungen eingereiht, ${String(T)} vorhandene Aufträge, ${String(F)} abgelehnt. Annotationen und Importquellen bleiben erhalten.`,O.value+=1;const me=ne.nextAfterVideoId;if(me===null){N=null;return}if(!Number.isSafeInteger(me)||me<=s.afterVideoId){V.value+=" Ungültiger Fortsetzungspunkt; Sammelauftrag wurde angehalten.";return}s.afterVideoId=me}},Ve=async a=>{if(!h.value){h.value=!0,V.value="";try{if(a){await rt(a);return}const s=await i.repairAllVideoStates(!1);if(!L()||!s)return;const d=s.items.filter(T=>T.status==="reimport_required").map(T=>`ID ${String(T.videoId)}${T.filename?` (${T.filename})`:""}`);V.value=`${String(s.summary.repaired)} repariert, ${String(s.summary.consistent)} bereits konsistent, ${String(s.summary.blocked??0)} blockiert. `+(d.length?`Neuimport erforderlich: ${d.join(", ")}. Annotationen wurden nicht gelöscht.`:"Kein Neuimport erforderlich. Annotationen wurden nicht gelöscht.")}finally{h.value=!1}}},it=async a=>{const s=a.mediaType;if(s==="unknown"||a.importOnly||a.quarantined)return;await x.startAnonymizationSafeWithProtection(a.id,s)?(await G(),n.info("anonymization-start-completed",{fileType:a.mediaType})):n.warn("anonymization-start-rejected",{fileType:a.mediaType})},ot=a=>{v.setCurrentItem(m(a)),u.push({name:"Anonymisierung Korrektur",params:{fileId:String(a.id)},query:{mediaType:a.mediaType}})},lt=async a=>{if(!a.id||a.mediaType==="unknown"||a.importOnly||a.quarantined)return;const s=a.id,d=a.mediaType;A.value.add(y(a));try{if(await i.setCurrentForValidation(s,d)){v.setCurrentItem(m(a));const F=a.mediaType;try{v.rememberType(s,F,F)}catch(ce){n.error("media-type-memory-failed",ce,{fileType:F})}a.sensitiveMetaId&&v.rememberType(a.sensitiveMetaId,F,"meta"),sessionStorage.setItem("last:fileId",String(s)),sessionStorage.setItem("last:scope",F),n.info("validation-selection-ready",{fileType:a.mediaType}),await u.push({name:"AnonymisierungValidierung",query:{fileId:String(s),mediaType:a.mediaType}})}}catch(T){n.error("validation-navigation-failed",T)}finally{A.value.delete(y(a))}},dt=async a=>{const s=a.id;A.value.add(y(a));try{await i.reimportVideo(s)?(await G(),n.info("video-state-repair-completed")):n.warn("video-state-repair-rejected")}finally{A.value.delete(y(a))}},ut=async a=>{const s=a.id;A.value.add(y(a));try{await i.reimportPdf(s)?(await G(),n.info("media-reimport-completed",{fileType:"pdf"})):n.warn("media-reimport-rejected",{fileType:"pdf"})}catch(d){n.error("media-reimport-failed",d,{fileType:"pdf"})}finally{A.value.delete(y(a))}},ct=(a,s)=>{if(s.uploadJob.id!==a)throw new Error("Cancellation response identity mismatch");for(const d of K.value)d.uploadJob?.id===a&&(d.uploadJob=s.uploadJob)},mt=async a=>{const s=a.uploadJob,d=y(a);if(!s||!at(a)||A.value.has(d))return;const T=s.id;A.value.add(d),B.value="";try{const F=await Lt(T);if(!L())return;ct(T,F),await G()}catch(F){if(!L())return;B.value="Abbruch konnte nicht bestätigt werden. Bitte den aktuellen Importstatus prüfen.",n.error("import-cancellation-unconfirmed",F),await G()}finally{A.value.delete(d)}},gt=async a=>{if(a.uploadJob){A.value.add(y(a));try{await i.retryUploadJob(a.uploadJob.id),ue()}finally{A.value.delete(y(a))}}},pt=async a=>{if(!(!a.importOnly||!a.uploadJob||!a.canDismissImport||a.quarantined)&&confirm(`Import "${se(a)}" aus der Übersicht entfernen? Quelldatei und Importverlauf bleiben erhalten.`)){A.value.add(y(a));try{await i.dismissUploadJob(a.uploadJob.id)}finally{A.value.delete(y(a))}}},bt=async a=>{const s=a.id;if(we.value.has(s)){i.error="Löschen nicht möglich: Die Backend-API kann Video und PDF mit dieser ID nicht eindeutig zuordnen.";return}if(confirm(`Sind Sie sicher, dass Sie die Datei "${se(a)}" permanent löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden.`)){A.value.add(y(a));try{await w.deleteMediaFile(s)?(await G(),n.info("media-deletion-completed",{fileType:a.mediaType})):n.warn("media-deletion-rejected",{fileType:a.mediaType})}catch(T){n.error("media-deletion-failed",T,{fileType:a.mediaType})}finally{A.value.delete(y(a))}}},vt=a=>{const s=a.mediaType,d=A.value.has(y(a));return s==="unknown"||a.importOnly||a.quarantined?d||Se(a):d||Se(a)||Be(a)||s==="video"&&i.isVideoReimportQueued(a.id)||!x.canProcessMedia.value(a.id,s)},Se=a=>{const s=(a.uploadJob?.status||"").toLowerCase();return s==="pending"||s==="processing"||s==="retrying"||s==="cancel_requested"},Be=a=>(a.hlsMaterializations||[]).some(s=>s.status==="queued"||s.status==="materializing"),Ce=()=>K.value.some(a=>Se(a)||Be(a)||a.uploadJob?.status!=="cancelled"&&Ye(a)),ue=()=>{!L()||Y||$.value||!Ce()&&!U||($.value=setTimeout(()=>{$.value=null,G()},ms))};We(Ce,a=>{a?ue():!U&&$.value&&(clearTimeout($.value),$.value=null)});const te=a=>{const d={not_started:["not_started"],processing:["processing_anonymization","extracting_frames","predicting_segments"],done_processing_anonymization:["done_processing_anonymization","validated"],failed:["failed"]}[a]||[a];return Q.value.filter(T=>!pe(T)&&d.includes(T.anonymizationStatus)).length};Te(async()=>{ee=!0,await G(),L()&&(await Le(),L()&&(f(),typeof ResizeObserver<"u"&&(W=new ResizeObserver(f),p.value&&W.observe(p.value),b.value&&W.observe(b.value)),n.debug("media-type-seed-completed",{count:i.overview.length}),ue()))}),$e(()=>{ee=!1,W?.disconnect(),W=null,$.value&&(clearTimeout($.value),$.value=null),i.stopAllPolling(),x.clearAllLocalLocks()});const yt=R(()=>h.value?"Reparatur läuft…":"Videozustände reparieren"),ft=R(()=>te("done_processing_anonymization"));return(a,s)=>(r(),o(Z,null,[t("div",$a,[t("div",Da,[t("div",Va,[s[4]||(s[4]=t("h4",{class:"mb-0"},"Anonymisierungs-Übersicht",-1)),t("div",Ba,[t("button",{class:"btn btn-outline-warning btn-sm","data-test":"repair-all-video-states",disabled:I.value||h.value,title:"Repariert ableitbare Datenbankzustände, ohne Annotationen zu löschen",onClick:s[0]||(s[0]=d=>Ve())},l(yt.value),9,Ca),t("button",{class:"btn btn-outline-primary btn-sm",disabled:I.value,onClick:G},[t("i",{class:M(["ni ni-bold-right",{"ni-spin":I.value}])},null,2),s[3]||(s[3]=D(" Aktualisieren ",-1))],8,Pa)])]),D(" "+l(V.value),1)]),c(i).error?(r(),o("div",La,[s[5]||(s[5]=t("strong",null,"Fehler:",-1)),D(" "+l(c(i).error),1)])):k("",!0),c(i).loading&&!K.value.length?(r(),o("div",Ma,[...s[6]||(s[6]=[t("div",{class:"spinner-border text-primary",role:"status"},[t("span",{class:"visually-hidden"},"Wird geladen...")],-1),t("p",{class:"mt-2"},"Dateien werden geladen...",-1)])])):!c(i).error&&!K.value.length?(r(),o("div",Ra,[...s[7]||(s[7]=[t("div",{class:"mb-4"},[t("i",{class:"ni ni-collection ni-3x text-muted"})],-1),t("h5",{class:"text-muted"},"Keine Dateien vorhanden",-1),t("p",{class:"text-muted mb-4"},[D(" Laden Sie Videos oder PDFs in den "),t("code",null,"data"),D("-Ordner oder den "),t("code",null,"import"),D("-Ordner, um mit der Anonymisierung zu beginnen. ")],-1)])])):k("",!0),K.value.length?(r(),o("div",Oa,[t("div",Fa,[s[9]||(s[9]=t("label",{for:"anonymization-resource-type-filter",class:"form-label mb-1"}," Ressourcentyp ",-1)),ge(t("select",{id:"anonymization-resource-type-filter","onUpdate:modelValue":s[1]||(s[1]=d=>X.value=d),class:"form-select form-select-sm","data-test":"anonymization-resource-type-filter"},[...s[8]||(s[8]=[t("option",{value:"all"},"Alle Ressourcentypen",-1),t("option",{value:"video"},"Video",-1),t("option",{value:"pdf"},"PDF",-1),t("option",{value:"unknown"},"Unbekannt",-1)])],512),[[_e,X.value]])]),t("div",Ja,[s[11]||(s[11]=t("label",{for:"anonymization-storage-state-filter",class:"form-label mb-1"}," Physischer Speicherstatus ",-1)),ge(t("select",{id:"anonymization-storage-state-filter","onUpdate:modelValue":s[2]||(s[2]=d=>H.value=d),class:"form-select form-select-sm","data-test":"anonymization-storage-state-filter"},[...s[10]||(s[10]=[St('<option value="all" data-v-3c673571>Alle Speicherzustände</option><option value="present" data-v-3c673571>Originaldatei vorhanden</option><option value="deleted" data-v-3c673571>Originaldatei gelöscht</option><option value="quarantined" data-v-3c673571>In Quarantäne</option><option value="unknown" data-v-3c673571>Unbekannt</option>',5)])],512),[[_e,H.value]])]),t("div",qa,l(Q.value.length)+" von "+l(K.value.length)+" Ressourcen ",1),ke.value?(r(),o("button",{key:0,type:"button",class:"btn btn-outline-secondary btn-sm mb-0","data-test":"anonymization-filters-reset",onClick:g}," Filter zurücksetzen ")):k("",!0)])):k("",!0),K.value.length&&!Q.value.length?(r(),o("div",Ea,[s[12]||(s[12]=t("h5",null,"Keine passenden Ressourcen",-1)),s[13]||(s[13]=t("p",{class:"text-muted mb-3"},"Die gewählten Filter liefern keine Tabellenzeilen.",-1)),t("button",{type:"button",class:"btn btn-outline-primary btn-sm",onClick:g}," Filter zurücksetzen ")])):k("",!0),Q.value.length?(r(),o("div",{key:5,ref_key:"tableScrollElement",ref:p,class:"table-responsive overview-table-scroll","data-test":"overview-table-scroll",tabindex:"0",role:"region","aria-label":"Anonymisierungsdateien, horizontal scrollbar",onScroll:S},[t("table",{ref_key:"overviewTableElement",ref:b,class:"table table-hover overview-files-table"},[s[14]||(s[14]=t("thead",{class:"table-light"},[t("tr",null,[t("th",{class:"sticky-filename-column"},"Dateiname"),t("th",null,"Typ"),t("th",null,"Aktionen"),t("th",null,"Import"),t("th",null,"HLS-Materialisierung"),t("th",null,"Anonymisierung"),t("th",null,"Annotation"),t("th",{class:"validation-action-column"},"Validierung"),t("th",null,"Originaldatei gelöscht?"),t("th",null,"Erstellt")])],-1)),t("tbody",null,[(r(!0),o(Z,null,ie(Q.value,d=>(r(),xt(Kn,{key:y(d),file:d,processing:vt(d),"retry-processing":A.value.has(y(d)),"ready-for-validation":d.anonymizationStatus==="done_processing_anonymization","icon-class":c(v).getMediaTypeIcon(d.mediaType),"media-type-badge-class":c(v).getMediaTypeBadgeClass(d.mediaType),onRetryImport:gt,onCancelImport:mt,onRepairVideo:dt,onReimportPdf:ut,onStartAnonymization:it,onCorrect:ot,onDismissImport:pt,onDelete:bt,onValidate:lt},null,8,["file","processing","retry-processing","ready-for-validation","icon-class","media-type-badge-class"]))),128))])],512)],544)):k("",!0),ge(t("div",{ref_key:"stickyScrollbarElement",ref:z,class:"overview-sticky-scrollbar","data-test":"overview-sticky-scrollbar",tabindex:"0",role:"region","aria-label":"Fixierte horizontale Scrollleiste für die Anonymisierungsdateien",onScroll:st},[t("div",{class:"overview-sticky-scrollbar-spacer",style:zt({width:`${P.value}px`})},null,4)],544),[[_t,Q.value.length&&j.value]]),Q.value.length?(r(),o("div",Ua,[t("div",Ka,[t("div",Na,[t("div",ja,[s[20]||(s[20]=t("h6",{class:"card-title"},"Status-Übersicht",-1)),t("div",Ha,[t("div",Wa,[t("div",Qa,[t("span",Ga,l(te("not_started")),1)]),s[15]||(s[15]=t("small",{class:"text-muted"},"Nicht gestartet",-1))]),t("div",Za,[t("div",Xa,[t("span",Ya,l(te("processing")),1)]),s[16]||(s[16]=t("small",{class:"text-muted"},"In Bearbeitung",-1))]),t("div",es,[t("div",ts,[t("span",ns,l(te("started")),1)]),s[17]||(s[17]=t("small",{class:"text-muted"},"Anonymisierung gestartet",-1))]),t("div",as,[t("div",ss,[t("span",rs,l(ft.value),1)]),s[18]||(s[18]=t("small",{class:"text-muted"},"Fertig",-1))]),t("div",is,[t("div",os,[t("span",ls,l(te("failed")),1)]),s[19]||(s[19]=t("small",{class:"text-muted"},"Fehlgeschlagen",-1))])])])])])])):k("",!0)]),t("div",ds,[ze(ta),ze(Ta,{repairing:h.value,"refresh-token":O.value,onRepair:Ve},null,8,["repairing","refresh-token"]),B.value?(r(),o("p",us,l(B.value),1)):k("",!0),V.value?(r(),o("div",cs)):k("",!0)])],64))}}),ps=de(gs,[["__scopeId","data-v-3c673571"]]),bs={class:"anonymization-overview-page"},vs=le({__name:"AnonymizationOverview",setup(e){return(n,u)=>(r(),o("div",bs,[ze(ps)]))}}),ws=de(vs,[["__scopeId","data-v-d8983ec3"]]);export{ws as default};
|
|
1
|
+
import{ad as Pe,l as _,H as Ae,ao as ht,f as oe,h as J,i as C,m as R,p as be,as as ve,d as le,o as r,c as o,n as M,a as t,t as l,u as c,e as k,b as D,F as Y,r as ie,_ as de,z as Te,ak as $e,am as He,q as We,A as ge,B as _e,G as wt,a3 as kt,ah as Le,k as ze,D as St,P as xt,E as _t,a6 as zt}from"./main.js";import{u as It}from"./mediaTypeStore.js";import{r as At,u as Tt}from"./rng.js";const $t=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Me={randomUUID:$t};function Dt(e,n,u){if(Me.randomUUID&&!e)return Me.randomUUID();e=e||{};const i=e.random??e.rng?.()??At();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,Tt(i)}const q=oe,Vt=Ae("media-management");function Bt(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function Ct(e){if(!ht.isAxiosError(e))return"Ein unerwarteter Fehler ist aufgetreten.";const n=e.response?.status;if(n===429)return"Zu viele Anfragen. Bitte warten Sie einen Moment.";if(n===409)return"Datei wird bereits verarbeitet.";const u=e.response?.data;return Bt(u)&&typeof u.detail=="string"?u.detail:"Ein unerwarteter Fehler ist aufgetreten."}const E={async getStatusOverview(){return(await q.get(J(C.mediaManagement.status))).data},async performCleanup(e="unfinished",n=!1){return(await q.delete(J(C.mediaManagement.cleanup),{params:{type:e,force:n}})).data},async forceRemoveMedia(e){return(await q.delete(J(C.mediaManagement.forceRemove(e)))).data},async resetProcessingStatus(e){return(await q.post(J(C.mediaManagement.resetStatus(e)))).data},async getPollingCoordinatorInfo(){return(await q.get(J(C.anonymization.pollingInfo))).data},async clearProcessingLocks(e){return(await q.delete(J(C.anonymization.clearLocks),{params:e?{type:e}:void 0})).data},async getAnonymizationStatusSafe(e,n){return(await q.get(J(C.anonymization.status(e)))).data},async startAnonymizationSafe(e){return(await q.post(J(C.anonymization.start(e)))).data},async validateAnonymizationSafe(e,n){return(await q.post(J(C.anonymization.validate(e)),{...n?{document_type:n}:{}})).data},async reimportVideo(e){return(await q.post(J(C.runtime.videoStateRepairOne(e)),{dryRun:!1})).data},async reimportPdf(e){return(await q.post(J(C.media.pdfReimport(e)))).data},async deleteMediaFile(e){return(await q.delete(J(C.mediaManagement.forceRemove(e)))).data}};function Qe(){const e=_(!1),n=_(null),u=async i=>{e.value=!0,n.value=null;try{return await i()}catch(v){return Vt.error("request-failed",v),n.value=Ct(v),null}finally{e.value=!1}};return{isLoading:Pe(e),error:Pe(n),clearError:()=>{n.value=null},getStatusOverview:()=>u(()=>E.getStatusOverview()),performCleanup:(i,v=!1)=>u(()=>E.performCleanup(i,v)),forceRemoveMedia:i=>u(()=>E.forceRemoveMedia(i)),resetProcessingStatus:i=>u(()=>E.resetProcessingStatus(i)),deleteMediaFile:i=>u(()=>E.deleteMediaFile(i)),reimportVideo:i=>u(()=>E.reimportVideo(i)),reimportPdf:i=>u(()=>E.reimportPdf(i)),getStatusSafe:(i,v)=>u(()=>E.getAnonymizationStatusSafe(i,v)),startAnonymizationSafe:i=>u(()=>E.startAnonymizationSafe(i)),validateAnonymizationSafe:(i,v)=>u(()=>E.validateAnonymizationSafe(i,v)),getPollingInfo:()=>u(()=>E.getPollingCoordinatorInfo()),clearAllLocks:i=>u(()=>E.clearProcessingLocks(i))}}const ae=Ae("polling-protection");function Pt(){const{getStatusSafe:e,startAnonymizationSafe:n,validateAnonymizationSafe:u,clearAllLocks:i}=Qe(),v=5e3,x=_(new Map),w=(p,b)=>`${b}:${String(p)}`,m=()=>{const p=Date.now();x.value.forEach((b,z)=>{b<=p&&x.value.delete(z)})},y=R(()=>(p,b)=>{m();const z=w(p,b),P=x.value.get(z);return P?P<=Date.now()?(x.value.delete(z),!0):!1:!0}),I=(p,b,z=v)=>{m();const P=w(p,b),j=x.value.get(P);return j&&j>Date.now()?!1:(x.value.set(P,Date.now()+Math.max(1e3,z)),!0)},h=(p,b)=>{const z=w(p,b);x.value.delete(z)},V=async(p,b)=>{try{return await e(p,b)}catch(z){throw ae.error("status-check-failed",z,{mediaType:b}),z}},O=async(p,b)=>{if(!I(p,b))throw new Error("Datei wird bereits verarbeitet");try{return await n(p)}finally{h(p,b)}},N=async(p,b)=>{I(p,b);try{return await u(p)}catch(z){throw ae.error("validation-failed",z,{mediaType:b}),z}finally{h(p,b)}},A=()=>{const p=x.value.size;x.value.clear(),ae.debug("local-locks-cleared",{count:p})},B=async p=>{try{await i(p),p?Array.from(x.value.keys()).forEach(b=>{b.startsWith(`${p}:`)&&x.value.delete(b)}):A(),ae.info("all-locks-cleared")}catch(b){throw ae.error("clear-locks-failed",b),b}},$=R(()=>{const p=Array.from(x.value.entries()).map(([b,z])=>({key:b,expiresAt:z}));return{totalLocks:p.length,locks:p,videoLocks:p.filter(b=>b.key.startsWith("video:")),pdfLocks:p.filter(b=>b.key.startsWith("pdf:"))}});return{processingLocks:R(()=>Array.from(x.value.entries())),getProcessingLocksInfo:$,canProcessMedia:y,acquireProcessingLock:I,releaseProcessingLock:h,getStatusSafeWithProtection:V,startAnonymizationSafeWithProtection:O,validateAnonymizationSafeWithProtection:N,clearAllLocalLocks:A,clearAllProcessingLocks:B}}async function Lt(e){const{data:n}=await oe.post(be(C.anonymization.cancelUploadJob(e)),void 0,ve({timeout:15e3}));return n}async function Mt(e){const{data:n}=await oe.get(be(C.anonymization.storage),ve({signal:e,timeout:15e3}));return n}function ye(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function De(e){return e==="replace_processed"}function Ge(e){return Array.isArray(e)&&e.every(De)}function xe(e){return e===null||typeof e=="number"&&Number.isSafeInteger(e)&&e>=0}function Ze(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>0}function Rt(e){return e===null||typeof e=="number"&&Number.isFinite(e)&&e>=0&&e<=100}function Ot(e){const n=["queued","running","completed","skipped","failed","lost"];return typeof e.id=="string"&&Ze(e.videoId)&&De(e.option)&&typeof e.status=="string"&&n.includes(e.status)}function Ft(e){return Rt(e.progressPercent)&&xe(e.beforeBytes)&&xe(e.afterBytes)&&xe(e.savedBytes)}function Xe(e){return ye(e)&&Ot(e)&&Ft(e)&&typeof e.stage=="string"&&typeof e.errorCode=="string"&&typeof e.createdAt=="string"&&typeof e.updatedAt=="string"}function Jt(e){return ye(e)&&Ze(e.videoId)&&typeof e.filename=="string"&&Ge(e.options)}async function qt(e){const{data:n}=await oe.get(be(C.media.videoTranscodeJobsOverview),ve({signal:e,timeout:15e3,params:{limit:200}}));if(!ye(n)||!Array.isArray(n.jobs)||!n.jobs.every(Xe)||!Array.isArray(n.candidates)||!n.candidates.every(Jt)||!Ge(n.options))throw new TypeError("Video transcode overview does not match the API contract");return{jobs:n.jobs,candidates:n.candidates,options:n.options}}async function Et(e,n,u){if(!De(n))throw new TypeError("Unsupported video transcode option");const{data:i}=await oe.post(be(C.media.videoTranscodeJobs(e)),{option:n,idempotency_key:u},ve({timeout:15e3}));if(!ye(i)||!Xe(i.job)||typeof i.created!="boolean")throw new TypeError("Video transcode response does not match the API contract");return{job:i.job,created:i.created}}const Ye=e=>["processing_anonymization","extracting_frames","predicting_segments"].includes(e.anonymizationStatus),pe=e=>e.uploadJob?.status==="cancelled"&&Ye(e),Ut={report:"Befund",report_draft:"Befund-Entwurf",report_final:"Finaler Befund",report_correction:"Befund-Korrektur",histology_draft:"Histologie-Entwurf",histology_final:"Finale Histologie",referral:"Überweisung",discharge:"Entlassbrief"},Kt=e=>{if(!e)return"";const n=e.trim();return n?Ut[n]||`Dokumenttyp: ${n}`:""},Nt=e=>typeof e.pseudoPatientId=="number"?`Pseudo-Patient ${String(e.pseudoPatientId)}`:e.patientHashDisplay?`Patient ${e.patientHashDisplay}`:"",se=e=>{if(e.mediaType!=="pdf"||e.quarantined)return e.filename;const n=[Nt(e),Kt(e.documentType)].filter(Boolean);return n.length>0?n.join(" - "):e.filename||`PDF-ID: ${String(e.id)}`},jt=e=>e.quarantined?`Quarantäne: ${e.quarantineDirectoryLabel||e.quarantineDirectoryKey||"lx-annotate"}`:e.importOnly&&e.uploadJob?`Import-ID: ${e.uploadJob.id}`:e.mediaType==="video"?`Video-ID: ${String(e.id)}`:`PDF-ID: ${String(e.id)}`,Re=e=>({not_started:"bg-secondary",processing_anonymization:"bg-warning",extracting_frames:"bg-info",predicting_segments:"bg-info",done_processing_anonymization:"bg-success",validated:"bg-success",failed:"bg-danger"})[e]||"bg-secondary",Oe=e=>({not_started:"Nicht gestartet",processing_anonymization:"Anonymisierung läuft",extracting_frames:"Einzelbilder werden extrahiert",predicting_segments:"Segmentvorhersage läuft",done_processing_anonymization:"Fertig",validated:"Validiert",failed:"Fehlgeschlagen"})[e]||`Unbekannter Status (${e})`,Ht=e=>({pending:"bg-secondary",processing:"bg-warning",retrying:"bg-info text-dark",cancel_requested:"bg-warning text-dark",cancelled:"bg-secondary",anonymized:"bg-success",quarantined:"bg-warning text-dark",error:"bg-danger",lost:"bg-danger"})[e]||"bg-secondary",Fe=e=>({pending:"Import wartet",processing:"Import läuft",retrying:"Import wird erneut versucht",cancel_requested:"Abbruch angefordert",cancelled:"Import abgebrochen",anonymized:"Import abgeschlossen",quarantined:"In Quarantäne",error:"Importfehler",lost:"Importquelle fehlt (LOST)"})[e]||`Unbekannter Importstatus (${e})`,Wt="Duplikat erkannt. Der vorhandene Validierungsstatus bleibt unverändert.",Qt="Importfehler. Details sind im Server-Log verfügbar.",Gt=e=>{const n=e.status.toLowerCase();return n==="error"||n==="lost"},et=e=>e.uploadJob?.errorCode==="duplicate_content",Je=e=>{if(!e.uploadJob)return"";if(e.uploadJob.status==="cancel_requested")return"Abbruch angefordert. Der Import stoppt am nächsten sicheren Verarbeitungsschritt; die Quelle bleibt erhalten.";if(e.uploadJob.status==="cancelled")return"Import abgebrochen. Die Quelle und bereits veröffentlichte gültige Medien bleiben erhalten.";if(et(e))return Wt;if(e.uploadJob.status==="retrying"){const n=e.uploadJob.retryCount,u=e.uploadJob.maxRetries,i=e.uploadJob.nextRetryAt?` Nächster Versuch: ${re(e.uploadJob.nextRetryAt)}.`:"";return`Vorübergehender Importfehler. Versuch ${String(n)}/${String(u)}.${i}`}return Gt(e.uploadJob)?Qt:""},Zt=e=>et(e)?"text-muted":e.uploadJob?.status==="retrying"||e.uploadJob?.status==="cancel_requested"?"text-warning":e.uploadJob?.status==="cancelled"?"text-muted":"text-danger",Xt=e=>({queued:"bg-secondary",materializing:"bg-warning text-dark",ready:"bg-success",failed:"bg-danger"})[e]||"bg-secondary",qe=e=>({queued:"Wartet",materializing:"Wird erzeugt",ready:"Bereit",failed:"Fehlgeschlagen"})[e]||`Unbekannter HLS-Status (${e})`,Ee=e=>e==="raw"?"Rohvideo":"Anonymisiert",Ie=e=>e.quarantined&&{pending_review:"Review erforderlich",retained:"Aufbewahrung beschlossen",approved_for_deletion:"Löschung freigegeben",failed:"Bedienereingriff erforderlich",unindexed:"Ledger-Abgleich erforderlich"}[e.quarantineReviewStatus||""]||"",Ue=e=>{const n=[];return e.ingestMode==="watcher"?n.push("Ordnerimport"):n.push("API"),e.sourceSystem&&n.push(e.sourceSystem),e.sourceCenterKey&&n.push(e.sourceCenterKey),n.join(" / ")},tt=e=>({pending:"Bereinigung offen",eligible:"Bereinigung bereit",completed:"Bereinigt",skipped:"Bereinigung übersprungen"})[e]||`Unbekannter Bereinigungsstatus (${e})`,Ke=e=>{const n=e.sourceFilePersisted?"Quelle vorhanden":"Quelle bereinigt",u=tt(e.cleanupStatus);return[n,u].filter(Boolean).join(" - ")},Yt=e=>({deleted:"Ja, gelöscht",present:"Nein, vorhanden",quarantined:"In Quarantäne",unknown:"Unbekannt"})[fe(e)],en=e=>({deleted:"text-success",present:"text-warning",quarantined:"text-warning",unknown:"text-muted"})[fe(e)],tn=e=>({deleted:"ni ni-check-bold",present:"ni ni-single-copy-04",quarantined:"ni ni-settings-gear-65",unknown:"ni ni-settings-gear-65"})[fe(e)],Ne=e=>e.quarantined?Ie(e)||"Import wurde vor der Datenbankanlage gestoppt":e.uploadJob?.cleanupStatus?tt(e.uploadJob.cleanupStatus):e.rawFile&&e.rawFile.trim()!==""?"Rohdatei ist noch referenziert":"",re=e=>e?new Date(e).toLocaleDateString("de-DE",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}):"-",je=e=>(e.hlsMaterializations??[]).filter(n=>e.anonymizationStatus!=="validated"||n.artifactKind==="processed"),nn=e=>{if(typeof e?.sourceFilePersisted=="boolean")return e.sourceFilePersisted?"present":"deleted";const n=e?.cleanupStatus.toLowerCase();return n==="completed"?"deleted":n==="pending"||n==="eligible"?"present":null},fe=e=>{if(e.quarantined)return"quarantined";const n=nn(e.uploadJob);return n||(e.rawFile?.trim()?"present":"unknown")},nt=e=>{const n=e.sensitiveMetaId==null||e.metadataImported===!1;return e.mediaType==="video"?n:e.mediaType==="pdf"?n||e.anonymizationStatus==="failed"||e.anonymizationStatus==="not_started":!1},he=(e,n)=>e.uploadJob?e.uploadJob.allowedActions.includes(n):!0,at=e=>!!(!e.quarantined&&e.mediaType==="video"&&e.uploadJob?.allowedActions.includes("cancel")&&["pending","processing","retrying"].includes(e.uploadJob.status)),an=e=>!!(e.importOnly&&e.uploadJob&&(e.uploadJob.retryable||he(e,"safe_reimport"))),sn=e=>!e.importOnly&&e.mediaType==="video"&&nt(e)&&he(e,"safe_reimport"),rn=e=>!e.importOnly&&e.mediaType==="pdf"&&nt(e)&&he(e,"safe_reimport"),on=e=>(e.mediaType==="video"||e.mediaType==="pdf")&&(e.anonymizationStatus==="done_processing_anonymization"||e.anonymizationStatus==="validated"),ln=e=>!!(e.importOnly&&e.uploadJob&&e.canDismissImport&&!e.quarantined),dn=e=>[{intent:"cancel-import",visible:at(e),label:"Import abbrechen",buttonClass:"btn btn-outline-danger",testSelector:"cancel-upload-job-button",title:"Import am nächsten sicheren Verarbeitungsschritt stoppen; Quelle erhalten"},{intent:"retry-import",visible:an(e),label:"Jetzt erneut versuchen",buttonClass:"btn btn-outline-warning",testSelector:"retry-upload-job-button",title:"Gespeicherte Importquelle erneut verarbeiten",icon:"ni ni-bold-right"},{intent:"repair-video",visible:sn(e),label:"Zustand reparieren",buttonClass:"btn btn-outline-info",title:"Gespeicherten Zustand prüfen und reparieren; fehlende Metadaten werden nicht neu erzeugt",icon:"ni ni-bold-right"},{intent:"reimport-pdf",visible:rn(e),label:"Erneut importieren",buttonClass:"btn btn-outline-info",title:"PDF erneut importieren und verarbeiten",icon:"ni ni-bold-right"},{intent:"start-anonymization",visible:!e.importOnly&&e.anonymizationStatus==="not_started",label:"Starten",buttonClass:"btn btn-outline-primary",icon:"ni ni-button-play"},{intent:"start-anonymization",visible:!e.importOnly&&e.anonymizationStatus==="failed",label:"Erneut versuchen",buttonClass:"btn btn-outline-warning",icon:"ni ni-bold-right"},{intent:"correct",visible:on(e),label:"Korrektur",buttonClass:"btn btn-outline-warning",testSelector:"correction-button",icon:"ni ni-single-copy-04"},{intent:"dismiss-import",visible:ln(e),label:"Aus Übersicht entfernen",buttonClass:"btn btn-outline-secondary",testSelector:"dismiss-import-button",title:"Fehlgeschlagenen Import ausblenden; Quelldatei und Verlauf bleiben erhalten"},{intent:"delete",visible:!e.importOnly&&he(e,"delete"),label:"Löschen",buttonClass:"btn btn-outline-danger",testSelector:"delete-file-button",title:"Datei permanent löschen",icon:"ni ni-settings-gear-65",ariaLabel:`Datei ${String(e.id)} löschen`}].filter(u=>u.visible),un={class:"sticky-filename-column"},cn={class:"d-flex align-items-start filename-cell-content"},mn={class:"filename-details"},gn={class:"fw-medium filename-text"},pn={class:"small text-muted mt-1"},bn={key:0,class:"small text-warning mt-1 quarantine-file-note"},vn={key:0,class:"small text-warning quarantine-action-note"},yn={key:0,class:"text-muted mt-1"},fn={key:1,class:"btn-group btn-group-sm",role:"group"},hn=["data-test","title","aria-label","disabled","onClick"],wn={key:0,class:"btn btn-outline-info",disabled:""},kn={key:1,class:"btn btn-outline-info",disabled:""},Sn={key:0,class:"upload-job-summary"},xn=["aria-label"],_n={key:1,class:"small text-muted mt-1 upload-job-text"},zn={key:2,class:"small text-muted upload-job-text"},In={key:3,class:"small text-muted upload-job-text"},An={key:1,class:"text-muted"},Tn={key:0,class:"hls-materialization-summary"},$n=["aria-label"],Dn={class:"small text-muted upload-job-text"},Vn={key:1,class:"small text-danger upload-job-text"},Bn={key:1,class:"text-muted"},Cn={key:0,class:"text-muted"},Pn={key:1,class:"badge bg-warning text-dark"},Ln={key:0,class:"ni ni-settings-gear-65 ni-spin me-1"},Mn={key:0,class:"text-muted"},Rn={class:"validation-action-column"},On=["disabled"],Fn={key:1,class:"badge bg-success"},Jn={key:2,class:"text-muted"},qn={key:0,class:"small text-muted raw-file-state-hint"},En={class:"text-muted"},Un=le({__name:"AnonymizationOverviewRow",props:{file:{},processing:{type:Boolean},retryProcessing:{type:Boolean},readyForValidation:{type:Boolean},iconClass:{},mediaTypeBadgeClass:{}},emits:["cancel-import","retry-import","repair-video","reimport-pdf","start-anonymization","correct","dismiss-import","delete","validate"],setup(e,{emit:n}){const u=e,i=n,v=R(()=>dn(u.file));return(x,w)=>(r(),o("tr",{class:M(["overview-resource-row",{"table-warning":e.file.quarantined}])},[t("td",un,[t("div",cn,[t("i",{class:M([e.iconClass,"me-2 flex-shrink-0"])},null,2),t("div",mn,[t("span",gn,l(c(se)(e.file)),1),t("div",pn,l(c(jt)(e.file)),1),e.file.quarantined?(r(),o("div",bn," Import blockiert: Datei liegt in Quarantäne. ")):k("",!0)])])]),t("td",null,[t("span",{class:M([e.mediaTypeBadgeClass,"badge"])},l(e.file.mediaType.toUpperCase()),3)]),t("td",null,[e.file.quarantined?(r(),o("div",vn,[w[1]||(w[1]=D(" Serverseitige Quarantäne ",-1)),c(Ie)(e.file)?(r(),o("div",yn,l(c(Ie)(e.file)),1)):k("",!0)])):(r(),o("div",fn,[(r(!0),o(Y,null,ie(v.value,m=>(r(),o("button",{key:m.intent,class:M(m.buttonClass),"data-test":m.testSelector,title:m.title,"aria-label":m.ariaLabel,disabled:m.intent==="retry-import"||m.intent==="cancel-import"?e.retryProcessing:e.processing,onClick:y=>i(m.intent,e.file)},[m.icon?(r(),o("i",{key:0,class:M(m.icon)},null,2)):k("",!0),D(" "+l(m.label),1)],10,hn))),128)),e.file.anonymizationStatus==="processing_anonymization"&&!c(pe)(e.file)?(r(),o("button",wn,[...w[2]||(w[2]=[t("i",{class:"ni ni-settings-gear-65 ni-spin me-1"},null,-1),D(" Anonymisierung... ",-1)])])):k("",!0),e.file.anonymizationStatus==="extracting_frames"&&!c(pe)(e.file)?(r(),o("button",kn,[...w[3]||(w[3]=[t("i",{class:"ni ni-settings-gear-65 ni-spin me-1"},null,-1),D(" Einzelbilder werden extrahiert... ",-1)])])):k("",!0)]))]),t("td",null,[e.file.uploadJob?(r(),o("div",Sn,[t("span",{class:M(["badge",c(Ht)(e.file.uploadJob.status)])},l(c(Fe)(e.file.uploadJob.status)),3),["pending","processing","retrying","cancel_requested"].includes(e.file.uploadJob.status)?(r(),o("progress",{key:0,class:"job-progress d-block mt-1","aria-label":`${c(se)(e.file)}: ${c(Fe)(e.file.uploadJob.status)}`},null,8,xn)):k("",!0),c(Ue)(e.file.uploadJob)?(r(),o("div",_n,l(c(Ue)(e.file.uploadJob)),1)):k("",!0),c(Ke)(e.file.uploadJob)?(r(),o("div",zn,l(c(Ke)(e.file.uploadJob)),1)):k("",!0),e.file.uploadJob.updatedAt?(r(),o("div",In," Aktualisiert: "+l(c(re)(e.file.uploadJob.updatedAt)),1)):k("",!0),c(Je)(e.file)?(r(),o("div",{key:4,class:M(["small mt-1 upload-job-text",c(Zt)(e.file)])},l(c(Je)(e.file)),3)):k("",!0)])):(r(),o("span",An,"-"))]),t("td",null,[c(je)(e.file).length?(r(),o("div",Tn,[(r(!0),o(Y,null,ie(c(je)(e.file),m=>(r(),o("div",{key:m.artifactKind,class:"mb-1"},[t("span",{class:M(["badge",c(Xt)(m.status)])},l(c(Ee)(m.artifactKind))+": "+l(c(qe)(m.status)),3),["queued","materializing"].includes(m.status)?(r(),o("progress",{key:0,class:"job-progress d-block mt-1","aria-label":`${c(se)(e.file)}: HLS ${c(Ee)(m.artifactKind)} – ${c(qe)(m.status)}`},null,8,$n)):k("",!0),t("div",Dn," Aktualisiert: "+l(c(re)(m.updatedAt)),1),m.status==="failed"?(r(),o("div",Vn," HLS-Erzeugung fehlgeschlagen. Details sind im Server-Log verfügbar. ")):k("",!0)]))),128))])):(r(),o("span",Bn,"-"))]),t("td",null,[e.file.importOnly?(r(),o("span",Cn,"-")):c(pe)(e.file)?(r(),o("span",Pn,"Verarbeitung unterbrochen")):(r(),o("span",{key:2,class:M([c(Re)(e.file.anonymizationStatus),"badge"])},[e.file.anonymizationStatus==="processing_anonymization"?(r(),o("i",Ln)):k("",!0),D(" "+l(c(Oe)(e.file.anonymizationStatus)),1)],2))]),t("td",null,[e.file.importOnly?(r(),o("span",Mn,"-")):(r(),o("span",{key:1,class:M([c(Re)(e.file.annotationStatus),"badge"])},l(c(Oe)(e.file.annotationStatus)),3))]),t("td",Rn,[e.file.anonymizationStatus==="done_processing_anonymization"?(r(),o("button",{key:0,class:"btn btn-success btn-sm",disabled:!e.readyForValidation,onClick:w[0]||(w[0]=m=>i("validate",e.file))},[...w[4]||(w[4]=[t("i",{class:"ni ni-user-run me-1"},null,-1),D(" Validieren ",-1)])],8,On)):e.file.anonymizationStatus==="validated"?(r(),o("span",Fn,[...w[5]||(w[5]=[t("i",{class:"ni ni-check-bold me-1"},null,-1),D(" Validiert ",-1)])])):(r(),o("span",Jn,"-"))]),t("td",null,[t("span",{class:M(c(en)(e.file))},[t("i",{class:M([c(tn)(e.file),"me-1"])},null,2),D(" "+l(c(Yt)(e.file)),1)],2),c(Ne)(e.file)?(r(),o("div",qn,l(c(Ne)(e.file)),1)):k("",!0)]),t("td",null,[t("small",En,l(c(re)(e.file.createdAt)),1)])],2))}}),Kn=de(Un,[["__scopeId","data-v-36a54bdf"]]),Nn={class:"storage-summary mb-3","aria-label":"Speicherplatz"},jn={class:"d-flex justify-content-between align-items-center gap-2"},Hn=["disabled"],Wn={key:0,class:"mb-0",role:"status"},Qn={key:1,class:"mb-0 text-warning",role:"status"},Gn={class:"d-flex flex-wrap gap-3 mb-2","data-test":"storage-capacity"},Zn=["value","max"],Xn={class:"small text-muted mb-0"},Yn=["datetime"],ea=le({__name:"OverviewStorageSummary",setup(e){const n=_(null),u=_(!1),i=_("");let v=null,x=!1;const w=()=>x;function m(I){const h=["B","KiB","MiB","GiB","TiB","PiB"],V=I>0?Math.min(Math.floor(Math.log(I)/Math.log(1024)),h.length-1):0;return`${(I/1024**V).toLocaleString("de-DE",{maximumFractionDigits:1})} ${h[V]}`}async function y(){if(!(u.value||w())){v=new AbortController,u.value=!0,i.value="",n.value=null;try{const I=await Mt(v.signal);w()||(n.value=I)}catch(I){if(w())return;i.value=He(I)&&I.response?.status===403?"Für die Speicheranzeige ist eine Berechtigung zur Speicherüberwachung erforderlich.":"Speicherplatz konnte nicht abgefragt werden. Bitte erneut aktualisieren."}finally{w()||(u.value=!1),v=null}}}return Te(y),$e(()=>{x=!0,v?.abort()}),(I,h)=>(r(),o("section",Nn,[t("div",jn,[h[0]||(h[0]=t("h5",{class:"mb-0"},"Speicherplatz",-1)),t("button",{type:"button",class:"btn btn-sm btn-outline-secondary mb-0",disabled:u.value,onClick:y}," Speicher aktualisieren ",8,Hn)]),h[6]||(h[6]=t("p",{class:"small text-muted mt-2 mb-2"}," Dateisystem des geschützten Medienspeichers, einschließlich anderer Dateien auf diesem Dateisystem. Unabhängig von den Tabellenfiltern. ",-1)),u.value?(r(),o("p",Wn," Speicherplatz wird abgefragt… ")):i.value?(r(),o("p",Qn,l(i.value),1)):n.value?(r(),o(Y,{key:2},[t("div",Gn,[t("span",null,[h[1]||(h[1]=D("Gesamt: ",-1)),t("strong",null,l(m(n.value.totalBytes)),1)]),t("span",null,[h[2]||(h[2]=D("Belegt: ",-1)),t("strong",null,l(m(n.value.usedBytes)),1)]),t("span",null,[h[3]||(h[3]=D("Verfügbar: ",-1)),t("strong",null,l(m(n.value.availableBytes)),1)]),t("span",null,[h[4]||(h[4]=D("Systemreserviert: ",-1)),t("strong",null,l(m(n.value.reservedBytes)),1)])]),t("progress",{class:"storage-capacity-bar",value:n.value.usedBytes+n.value.reservedBytes,max:n.value.totalBytes,"aria-label":"Belegter und systemreservierter Speicherplatz"},null,8,Zn),t("p",Xn,[h[5]||(h[5]=D(" Stand: ",-1)),t("time",{datetime:n.value.observedAt},l(c(re)(n.value.observedAt)),9,Yn)])],64)):k("",!0)]))}}),ta=de(ea,[["__scopeId","data-v-934bedc1"]]),na={class:"transcode-panel mb-3","aria-label":"Videogröße reduzieren"},aa={class:"d-flex justify-content-between align-items-center gap-2"},sa=["disabled"],ra={key:0,class:"text-warning",role:"alert"},ia={key:1,class:"text-warning",role:"alert"},oa={key:2,class:"small",role:"status"},la={class:"d-flex flex-wrap align-items-end gap-3"},da={class:"form-label"},ua=["disabled"],ca=["value"],ma=["disabled"],ga={key:0,class:"small","data-test":"no-transcode-candidates"},pa=["disabled"],ba={key:1,role:"status"},va={key:2,class:"list-unstyled mb-0","data-test":"transcode-jobs"},ya=["data-job-id"],fa={class:"d-flex flex-wrap justify-content-between gap-2"},ha={class:"small mb-1"},wa=["value","aria-label"],ka={key:0,class:"small"},Sa={key:1,class:"small mb-0"},xa={key:2,class:"small text-warning mb-0","data-test":"cleanup-pending"},_a={key:3,class:"small text-danger mb-0"},za={key:3,class:"small mb-0"},Ia=5e3,Aa=le({__name:"OverviewTranscodePanel",props:{repairing:{type:Boolean,default:!1},refreshToken:{default:0}},emits:["repair"],setup(e,{emit:n}){const u=e,i=n,v=_(null),x=_(null),w=R(()=>v.value?.options.includes("replace_processed")?"replace_processed":null),m=_(!1),y=_(!1),I=_(""),h=_(""),V=_(""),O=R(()=>v.value?.candidates.filter(g=>w.value&&g.options.includes(w.value))??[]),N=R(()=>w.value!==null&&O.value.some(g=>g.videoId===x.value)&&!v.value?.jobs.some(g=>g.videoId===x.value&&j(g)));let A=!1;const B=()=>A;let $=null,p=null,b=!1;const z=()=>b;let P=null;function j(g){return g.status==="queued"||g.status==="running"}function Z(g){return{queued:"Wartet",running:"Läuft",completed:"Abgeschlossen",skipped:"Übersprungen",failed:"Fehlgeschlagen",lost:"Verloren (LOST)"}[g]}function H(g){return{queued:"Wartet auf Verarbeitung",validating:"Quelle wird geprüft",transcoding:"Video wird transkodiert",publishing:"Ergebnis wird gespeichert",materializing:"Quelle wird zur Verarbeitung bereitgestellt",encoding:"Video wird transkodiert",rebuilding_playback:"HLS-Wiedergabe wird erneuert",cleanup:"Ersetzte Dateien werden bereinigt",completed:"Abgeschlossen"}[g]??"Verarbeitung läuft"}function W(g){if(g===null)return"Nicht gemessen";const f=["B","KiB","MiB","GiB","TiB","PiB"],S=g>0?Math.min(Math.floor(Math.log(g)/Math.log(1024)),f.length-1):0;return`${(g/1024**S).toLocaleString("de-DE",{maximumFractionDigits:1})} ${f[S]}`}function ee(g){if(He(g)){if(g.response?.status===403)return"Für die Transkodierung ist eine Berechtigung erforderlich.";if(g.response?.status===404||g.response?.status===503)return"Transkodierung ist auf diesem Server derzeit nicht verfügbar.";if(g.response?.status===409)return"Der Auftrag steht im Konflikt mit dem aktuellen Videozustand. Bitte aktualisieren."}return"Transkodierungsaufträge konnten nicht abgefragt oder angefordert werden. Bitte erneut versuchen."}function L(){B()||$||m.value||y.value||!I.value&&!v.value?.jobs.some(j)||($=setTimeout(()=>{$=null,U()},Ia))}function X(g){v.value=g,I.value="",O.value.some(f=>f.videoId===x.value)||(x.value=null)}async function U(){if(!B()){if(m.value||y.value){b=!0;return}b=!1,$&&clearTimeout($),$=null,p=new AbortController,m.value=!0;try{const g=await qt(p.signal);if(B())return;X(g)}catch(g){if(B())return;v.value=null,I.value=ee(g)}finally{p=null,m.value=!1,z()&&!B()?(b=!1,U()):L()}}}function K(){if(!N.value||!w.value||x.value===null)return null;const g=x.value,f=w.value;return(!P||P.videoId!==g)&&(P={videoId:g,option:f,key:Dt()}),P}async function we(){if(m.value||y.value||u.repairing||B())return;const g=K();if(g){y.value=!0,h.value="",V.value="";try{const f=await Et(g.videoId,g.option,g.key);if(B())return;P=null,V.value=Q(f.created)}catch(f){B()||(h.value=ee(f))}finally{y.value=!1,B()||await U()}}}function Q(g){return g?"Transkodierungsauftrag angelegt.":"Vorhandener Transkodierungsauftrag wird angezeigt."}function ke(){w.value&&O.value.length&&!m.value&&!y.value&&!u.repairing&&i("repair",w.value)}return We(()=>u.refreshToken,()=>{U()}),Te(U),$e(()=>{A=!0,p?.abort(),$&&clearTimeout($)}),(g,f)=>(r(),o("section",na,[t("div",aa,[f[1]||(f[1]=t("h5",{class:"mb-0"},"Videogröße reduzieren",-1)),t("button",{type:"button",class:"btn btn-sm btn-outline-secondary mb-0",disabled:m.value||y.value,"data-test":"refresh-transcodes",onClick:U}," Aufträge aktualisieren ",8,sa)]),f[7]||(f[7]=t("p",{class:"small text-muted mt-2"},"Verfügbare Videos werden vom Server geprüft.",-1)),I.value?(r(),o("p",ra,l(I.value),1)):k("",!0),h.value?(r(),o("p",ia,l(h.value),1)):k("",!0),m.value?(r(),o("p",oa," Transkodierungsaufträge werden geladen… ")):k("",!0),v.value?(r(),o(Y,{key:3},[t("div",la,[t("label",da,[f[3]||(f[3]=D(" Video ",-1)),ge(t("select",{"onUpdate:modelValue":f[0]||(f[0]=S=>x.value=S),class:"form-select","data-test":"transcode-video",disabled:y.value||!O.value.length},[f[2]||(f[2]=t("option",{value:null},"Video auswählen",-1)),(r(!0),o(Y,null,ie(O.value,S=>(r(),o("option",{key:S.videoId,value:S.videoId},l(S.filename)+" (Video-ID: "+l(S.videoId)+") ",9,ca))),128))],8,ua),[[_e,x.value]])]),t("button",{type:"button",class:"btn btn-primary","data-test":"start-transcode",disabled:!N.value||m.value||y.value||e.repairing,onClick:we},l(y.value?"Auftrag wird angefordert…":"Verarbeitetes Video verkleinern"),9,ma)]),f[4]||(f[4]=t("p",{class:"small text-warning","data-test":"replacement-notice"}," Die verarbeitete Videodatei wird durch eine kleinere Version ersetzt. Das Rohvideo bleibt erhalten. Die HLS-Wiedergabe wird erneuert; ersetzte Dateien werden nach erfolgreicher Prüfung entfernt. ",-1)),O.value.length?k("",!0):(r(),o("p",ga," Der Server meldet keine geeigneten verarbeiteten Videos. ")),t("button",{type:"button",class:"btn btn-outline-warning btn-sm","data-test":"repair-and-transcode",disabled:m.value||y.value||e.repairing||!O.value.length||!w.value,onClick:ke},l(e.repairing?"Reparatur läuft…":"Videozustände reparieren und verarbeitetes Video gesammelt verkleinern"),9,pa),f[5]||(f[5]=t("p",{class:"small text-muted"}," Gesammelt: alle serverseitig berechtigten Videos, unabhängig von Videoauswahl und Tabellenfiltern. ",-1)),V.value?(r(),o("p",ba,l(V.value),1)):k("",!0),v.value.jobs.length?(r(),o("ul",va,[(r(!0),o(Y,null,ie(v.value.jobs,S=>(r(),o("li",{key:S.id,class:"transcode-job py-2","data-job-id":S.id},[t("div",fa,[t("strong",null,"Video "+l(S.videoId)+" · Verarbeitetes Video verkleinern",1),t("span",null,l(Z(S.status)),1)]),j(S)?(r(),o(Y,{key:0},[t("p",ha,l(H(S.stage)),1),t("progress",{class:"transcode-progress",value:S.progressPercent??void 0,max:100,"aria-label":`Transkodierung Video ${S.videoId}: ${H(S.stage)}`},null,8,wa),S.progressPercent!==null?(r(),o("span",ka,l(S.progressPercent)+" %",1)):k("",!0)],64)):(r(),o("p",Sa," Vorher: "+l(W(S.beforeBytes))+" · Nachher: "+l(W(S.afterBytes))+" · Eingespart: "+l(W(S.savedBytes)),1)),S.errorCode==="transcode_cleanup_pending"?(r(),o("p",xa," Bereinigung ausstehend: Zurückbehaltene Dateien belegen weiterhin Speicher. Bitte die Ursache der Bereinigungsstörung auf dem Server beheben und den Auftrag danach erneut anfordern. ")):S.status==="failed"||S.status==="lost"?(r(),o("p",_a," Transkodierung fehlgeschlagen"+l(S.errorCode?` (${S.errorCode})`:"")+". Bitte Serverdiagnose prüfen. ",1)):k("",!0)],8,ya))),128))])):(r(),o("p",za," Keine Transkodierungsaufträge vorhanden. ")),f[6]||(f[6]=t("p",{class:"small text-muted mt-2 mb-0"}," Anzeige: höchstens 200 Aufträge und serverseitig bereitgestellte Videos. ",-1))],64)):k("",!0)]))}}),Ta=de(Aa,[["__scopeId","data-v-1cd7047b"]]),$a={class:"container-fluid py-4"},Da={class:"card"},Va={class:"card-header pb-0 d-flex justify-content-between align-items-center"},Ba={class:"d-flex gap-2"},Ca=["disabled"],Pa=["disabled"],La={class:"card-body"},Ma={key:0,class:"alert alert-warning",role:"alert"},Ra={key:1,class:"alert alert-info",role:"status"},Oa={key:2,class:"alert alert-danger",role:"alert"},Fa={key:3,class:"text-center py-5"},Ja={key:4,class:"text-center py-5"},qa={key:5,class:"overview-filter-bar","data-test":"anonymization-overview-filters","aria-label":"Anonymisierungsdateien filtern"},Ea={class:"overview-filter-field"},Ua={class:"overview-filter-field"},Ka={class:"overview-filter-summary","aria-live":"polite"},Na={key:6,class:"overview-filter-empty text-center py-5","data-test":"anonymization-filter-empty"},ja={key:8,class:"row mt-4"},Ha={class:"col-md-12"},Wa={class:"card bg-light"},Qa={class:"card-body"},Ga={class:"row text-center"},Za={class:"col-md-3"},Xa={class:"mb-2"},Ya={class:"badge bg-secondary fs-6"},es={class:"col-md-3"},ts={class:"mb-2"},ns={class:"badge bg-warning fs-6"},as={class:"col-md-3"},ss={class:"mb-2"},rs={class:"badge bg-warning fs-6"},is={class:"col-md-3"},os={class:"mb-2"},ls={class:"badge bg-success fs-6"},ds={class:"col-md-3"},us={class:"mb-2"},cs={class:"badge bg-danger fs-6"},ms=15e3,gs=le({__name:"AnonymizationOverviewComponent",setup(e){const n=Ae("anonymization-overview"),u=wt(),i=kt(),v=It(),x=Pt(),w=Qe(),m=a=>({id:a.id,mediaType:a.mediaType,scope:a.mediaType,filename:a.filename}),y=a=>a.quarantineId?`quarantine:${a.quarantineId}`:a.importOnly&&a.uploadJob?`import:${a.uploadJob.id}`:`${a.mediaType}:${String(a.id)}`,I=_(!1),h=_(!1),V=_(""),O=_(0);let N=null;const A=_(new Set),B=_(""),$=_(null),p=_(null),b=_(null),z=_(null),P=_(0),j=_(!1),Z=_("all"),H=_("all");let W=null,ee=!1;const L=()=>ee;let X=null,U=!1;const K=R(()=>i.overview),we=R(()=>{const a=new Map,s=new Set;for(const d of K.value){if(d.importOnly||d.quarantined)continue;const T=a.get(d.id);T&&T!==d.mediaType&&s.add(d.id),a.set(d.id,d.mediaType)}return s}),Q=R(()=>K.value.filter(a=>{const s=Z.value==="all"||a.mediaType===Z.value,d=H.value==="all"||fe(a)===H.value;return s&&d})),ke=R(()=>Z.value!=="all"||H.value!=="all"),g=()=>{Z.value="all",H.value="all"},f=()=>{const a=p.value;a&&(P.value=a.scrollWidth,j.value=a.scrollWidth>a.clientWidth,z.value&&(z.value.scrollLeft=a.scrollLeft))},S=()=>{f()},st=()=>{const a=p.value,s=z.value;a&&s&&a.scrollLeft!==s.scrollLeft&&(a.scrollLeft=s.scrollLeft)},G=()=>L()?X||(I.value=!0,X=(async()=>{try{if(await i.fetchOverview(),U=!!i.error,!L())return;v.seedTypesFromOverview(i.overview),await Le(),L()&&f()}catch(a){U=!0,n.error("monitoring-refresh-failed",a)}finally{X=null,I.value=!1,ue()}})(),X):Promise.resolve(),rt=async a=>{N?.option!==a&&(N={option:a,idempotencyKey:crypto.randomUUID(),afterVideoId:0});const s=N;let d=0,T=0,F=0;for(;L();){const ce=await i.repairAllVideoStates(!1,{...s});if(!L()||!ce)return;const ne=ce.transcodes;if(!ne){V.value="Der Server hat keine Transkodierungsaufträge bestätigt. Bitte den Serverstand prüfen.";return}d+=ne.queued,T+=ne.existing,F+=ne.rejected,V.value=`${String(d)} Transkodierungen eingereiht, ${String(T)} vorhandene Aufträge, ${String(F)} abgelehnt. Annotationen und Importquellen bleiben erhalten.`,O.value+=1;const me=ne.nextAfterVideoId;if(me===null){N=null;return}if(!Number.isSafeInteger(me)||me<=s.afterVideoId){V.value+=" Ungültiger Fortsetzungspunkt; Sammelauftrag wurde angehalten.";return}s.afterVideoId=me}},Ve=async a=>{if(!h.value){h.value=!0,V.value="";try{if(a){await rt(a);return}const s=await i.repairAllVideoStates(!1);if(!L()||!s)return;const d=s.items.filter(T=>T.status==="reimport_required").map(T=>`ID ${String(T.videoId)}${T.filename?` (${T.filename})`:""}`);V.value=`${String(s.summary.repaired)} repariert, ${String(s.summary.consistent)} bereits konsistent, ${String(s.summary.blocked??0)} blockiert. `+(d.length?`Neuimport erforderlich: ${d.join(", ")}. Annotationen wurden nicht gelöscht.`:"Kein Neuimport erforderlich. Annotationen wurden nicht gelöscht.")}finally{h.value=!1}}},it=async a=>{const s=a.mediaType;if(s==="unknown"||a.importOnly||a.quarantined)return;await x.startAnonymizationSafeWithProtection(a.id,s)?(await G(),n.info("anonymization-start-completed",{fileType:a.mediaType})):n.warn("anonymization-start-rejected",{fileType:a.mediaType})},ot=a=>{v.setCurrentItem(m(a)),u.push({name:"Anonymisierung Korrektur",params:{fileId:String(a.id)},query:{mediaType:a.mediaType}})},lt=async a=>{if(!a.id||a.mediaType==="unknown"||a.importOnly||a.quarantined)return;const s=a.id,d=a.mediaType;A.value.add(y(a));try{if(await i.setCurrentForValidation(s,d)){v.setCurrentItem(m(a));const F=a.mediaType;try{v.rememberType(s,F,F)}catch(ce){n.error("media-type-memory-failed",ce,{fileType:F})}a.sensitiveMetaId&&v.rememberType(a.sensitiveMetaId,F,"meta"),sessionStorage.setItem("last:fileId",String(s)),sessionStorage.setItem("last:scope",F),n.info("validation-selection-ready",{fileType:a.mediaType}),await u.push({name:"AnonymisierungValidierung",query:{fileId:String(s),mediaType:a.mediaType}})}}catch(T){n.error("validation-navigation-failed",T)}finally{A.value.delete(y(a))}},dt=async a=>{const s=a.id;A.value.add(y(a));try{await i.reimportVideo(s)?(await G(),n.info("video-state-repair-completed")):n.warn("video-state-repair-rejected")}finally{A.value.delete(y(a))}},ut=async a=>{const s=a.id;A.value.add(y(a));try{await i.reimportPdf(s)?(await G(),n.info("media-reimport-completed",{fileType:"pdf"})):n.warn("media-reimport-rejected",{fileType:"pdf"})}catch(d){n.error("media-reimport-failed",d,{fileType:"pdf"})}finally{A.value.delete(y(a))}},ct=(a,s)=>{if(s.uploadJob.id!==a)throw new Error("Cancellation response identity mismatch");for(const d of K.value)d.uploadJob?.id===a&&(d.uploadJob=s.uploadJob)},mt=async a=>{const s=a.uploadJob,d=y(a);if(!s||!at(a)||A.value.has(d))return;const T=s.id;A.value.add(d),B.value="";try{const F=await Lt(T);if(!L())return;ct(T,F),await G()}catch(F){if(!L())return;B.value="Abbruch konnte nicht bestätigt werden. Bitte den aktuellen Importstatus prüfen.",n.error("import-cancellation-unconfirmed",F),await G()}finally{A.value.delete(d)}},gt=async a=>{if(a.uploadJob){A.value.add(y(a));try{await i.retryUploadJob(a.uploadJob.id),ue()}finally{A.value.delete(y(a))}}},pt=async a=>{if(!(!a.importOnly||!a.uploadJob||!a.canDismissImport||a.quarantined)&&confirm(`Import "${se(a)}" aus der Übersicht entfernen? Quelldatei und Importverlauf bleiben erhalten.`)){A.value.add(y(a));try{await i.dismissUploadJob(a.uploadJob.id)}finally{A.value.delete(y(a))}}},bt=async a=>{const s=a.id;if(we.value.has(s)){i.error="Löschen nicht möglich: Die Backend-API kann Video und PDF mit dieser ID nicht eindeutig zuordnen.";return}if(confirm(`Sind Sie sicher, dass Sie die Datei "${se(a)}" permanent löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden.`)){A.value.add(y(a));try{await w.deleteMediaFile(s)?(await G(),n.info("media-deletion-completed",{fileType:a.mediaType})):n.warn("media-deletion-rejected",{fileType:a.mediaType})}catch(T){n.error("media-deletion-failed",T,{fileType:a.mediaType})}finally{A.value.delete(y(a))}}},vt=a=>{const s=a.mediaType,d=A.value.has(y(a));return s==="unknown"||a.importOnly||a.quarantined?d||Se(a):d||Se(a)||Be(a)||s==="video"&&i.isVideoReimportQueued(a.id)||!x.canProcessMedia.value(a.id,s)},Se=a=>{const s=(a.uploadJob?.status||"").toLowerCase();return s==="pending"||s==="processing"||s==="retrying"||s==="cancel_requested"},Be=a=>(a.hlsMaterializations||[]).some(s=>s.status==="queued"||s.status==="materializing"),Ce=()=>K.value.some(a=>Se(a)||Be(a)||a.uploadJob?.status!=="cancelled"&&Ye(a)),ue=()=>{!L()||X||$.value||!Ce()&&!U||($.value=setTimeout(()=>{$.value=null,G()},ms))};We(Ce,a=>{a?ue():!U&&$.value&&(clearTimeout($.value),$.value=null)});const te=a=>{const d={not_started:["not_started"],processing:["processing_anonymization","extracting_frames","predicting_segments"],done_processing_anonymization:["done_processing_anonymization","validated"],failed:["failed"]}[a]||[a];return Q.value.filter(T=>!pe(T)&&d.includes(T.anonymizationStatus)).length};Te(async()=>{ee=!0,await G(),L()&&(await Le(),L()&&(f(),typeof ResizeObserver<"u"&&(W=new ResizeObserver(f),p.value&&W.observe(p.value),b.value&&W.observe(b.value)),n.debug("media-type-seed-completed",{count:i.overview.length}),ue()))}),$e(()=>{ee=!1,W?.disconnect(),W=null,$.value&&(clearTimeout($.value),$.value=null),i.stopAllPolling(),x.clearAllLocalLocks()});const yt=R(()=>h.value?"Reparatur läuft…":"Videozustände reparieren"),ft=R(()=>te("done_processing_anonymization"));return(a,s)=>(r(),o("div",$a,[t("div",Da,[t("div",Va,[s[4]||(s[4]=t("h4",{class:"mb-0"},"Anonymisierungs-Übersicht",-1)),t("div",Ba,[t("button",{class:"btn btn-outline-warning btn-sm","data-test":"repair-all-video-states",disabled:I.value||h.value,title:"Repariert ableitbare Datenbankzustände, ohne Annotationen zu löschen",onClick:s[0]||(s[0]=d=>Ve())},l(yt.value),9,Ca),t("button",{class:"btn btn-outline-primary btn-sm",disabled:I.value,onClick:G},[t("i",{class:M(["ni ni-bold-right",{"ni-spin":I.value}])},null,2),s[3]||(s[3]=D(" Aktualisieren ",-1))],8,Pa)])]),t("div",La,[ze(ta),ze(Ta,{repairing:h.value,"refresh-token":O.value,onRepair:Ve},null,8,["repairing","refresh-token"]),B.value?(r(),o("p",Ma,l(B.value),1)):k("",!0),V.value?(r(),o("div",Ra,l(V.value),1)):k("",!0),c(i).error?(r(),o("div",Oa,[s[5]||(s[5]=t("strong",null,"Fehler:",-1)),D(" "+l(c(i).error),1)])):k("",!0),c(i).loading&&!K.value.length?(r(),o("div",Fa,[...s[6]||(s[6]=[t("div",{class:"spinner-border text-primary",role:"status"},[t("span",{class:"visually-hidden"},"Wird geladen...")],-1),t("p",{class:"mt-2"},"Dateien werden geladen...",-1)])])):!c(i).error&&!K.value.length?(r(),o("div",Ja,[...s[7]||(s[7]=[t("div",{class:"mb-4"},[t("i",{class:"ni ni-collection ni-3x text-muted"})],-1),t("h5",{class:"text-muted"},"Keine Dateien vorhanden",-1),t("p",{class:"text-muted mb-4"},[D(" Laden Sie Videos oder PDFs in den "),t("code",null,"data"),D("-Ordner oder den "),t("code",null,"import"),D("-Ordner, um mit der Anonymisierung zu beginnen. ")],-1)])])):k("",!0),K.value.length?(r(),o("div",qa,[t("div",Ea,[s[9]||(s[9]=t("label",{for:"anonymization-resource-type-filter",class:"form-label mb-1"}," Ressourcentyp ",-1)),ge(t("select",{id:"anonymization-resource-type-filter","onUpdate:modelValue":s[1]||(s[1]=d=>Z.value=d),class:"form-select form-select-sm","data-test":"anonymization-resource-type-filter"},[...s[8]||(s[8]=[t("option",{value:"all"},"Alle Ressourcentypen",-1),t("option",{value:"video"},"Video",-1),t("option",{value:"pdf"},"PDF",-1),t("option",{value:"unknown"},"Unbekannt",-1)])],512),[[_e,Z.value]])]),t("div",Ua,[s[11]||(s[11]=t("label",{for:"anonymization-storage-state-filter",class:"form-label mb-1"}," Physischer Speicherstatus ",-1)),ge(t("select",{id:"anonymization-storage-state-filter","onUpdate:modelValue":s[2]||(s[2]=d=>H.value=d),class:"form-select form-select-sm","data-test":"anonymization-storage-state-filter"},[...s[10]||(s[10]=[St('<option value="all" data-v-6976555c>Alle Speicherzustände</option><option value="present" data-v-6976555c>Originaldatei vorhanden</option><option value="deleted" data-v-6976555c>Originaldatei gelöscht</option><option value="quarantined" data-v-6976555c>In Quarantäne</option><option value="unknown" data-v-6976555c>Unbekannt</option>',5)])],512),[[_e,H.value]])]),t("div",Ka,l(Q.value.length)+" von "+l(K.value.length)+" Ressourcen ",1),ke.value?(r(),o("button",{key:0,type:"button",class:"btn btn-outline-secondary btn-sm mb-0","data-test":"anonymization-filters-reset",onClick:g}," Filter zurücksetzen ")):k("",!0)])):k("",!0),K.value.length&&!Q.value.length?(r(),o("div",Na,[s[12]||(s[12]=t("h5",null,"Keine passenden Ressourcen",-1)),s[13]||(s[13]=t("p",{class:"text-muted mb-3"},"Die gewählten Filter liefern keine Tabellenzeilen.",-1)),t("button",{type:"button",class:"btn btn-outline-primary btn-sm",onClick:g}," Filter zurücksetzen ")])):k("",!0),Q.value.length?(r(),o("div",{key:7,ref_key:"tableScrollElement",ref:p,class:"table-responsive overview-table-scroll","data-test":"overview-table-scroll",tabindex:"0",role:"region","aria-label":"Anonymisierungsdateien, horizontal scrollbar",onScroll:S},[t("table",{ref_key:"overviewTableElement",ref:b,class:"table table-hover overview-files-table"},[s[14]||(s[14]=t("thead",{class:"table-light"},[t("tr",null,[t("th",{class:"sticky-filename-column"},"Dateiname"),t("th",null,"Typ"),t("th",null,"Aktionen"),t("th",null,"Import"),t("th",null,"HLS-Materialisierung"),t("th",null,"Anonymisierung"),t("th",null,"Annotation"),t("th",{class:"validation-action-column"},"Validierung"),t("th",null,"Originaldatei gelöscht?"),t("th",null,"Erstellt")])],-1)),t("tbody",null,[(r(!0),o(Y,null,ie(Q.value,d=>(r(),xt(Kn,{key:y(d),file:d,processing:vt(d),"retry-processing":A.value.has(y(d)),"ready-for-validation":d.anonymizationStatus==="done_processing_anonymization","icon-class":c(v).getMediaTypeIcon(d.mediaType),"media-type-badge-class":c(v).getMediaTypeBadgeClass(d.mediaType),onRetryImport:gt,onCancelImport:mt,onRepairVideo:dt,onReimportPdf:ut,onStartAnonymization:it,onCorrect:ot,onDismissImport:pt,onDelete:bt,onValidate:lt},null,8,["file","processing","retry-processing","ready-for-validation","icon-class","media-type-badge-class"]))),128))])],512)],544)):k("",!0),ge(t("div",{ref_key:"stickyScrollbarElement",ref:z,class:"overview-sticky-scrollbar","data-test":"overview-sticky-scrollbar",tabindex:"0",role:"region","aria-label":"Fixierte horizontale Scrollleiste für die Anonymisierungsdateien",onScroll:st},[t("div",{class:"overview-sticky-scrollbar-spacer",style:zt({width:`${P.value}px`})},null,4)],544),[[_t,Q.value.length&&j.value]]),Q.value.length?(r(),o("div",ja,[t("div",Ha,[t("div",Wa,[t("div",Qa,[s[20]||(s[20]=t("h6",{class:"card-title"},"Status-Übersicht",-1)),t("div",Ga,[t("div",Za,[t("div",Xa,[t("span",Ya,l(te("not_started")),1)]),s[15]||(s[15]=t("small",{class:"text-muted"},"Nicht gestartet",-1))]),t("div",es,[t("div",ts,[t("span",ns,l(te("processing")),1)]),s[16]||(s[16]=t("small",{class:"text-muted"},"In Bearbeitung",-1))]),t("div",as,[t("div",ss,[t("span",rs,l(te("started")),1)]),s[17]||(s[17]=t("small",{class:"text-muted"},"Anonymisierung gestartet",-1))]),t("div",is,[t("div",os,[t("span",ls,l(ft.value),1)]),s[18]||(s[18]=t("small",{class:"text-muted"},"Fertig",-1))]),t("div",ds,[t("div",us,[t("span",cs,l(te("failed")),1)]),s[19]||(s[19]=t("small",{class:"text-muted"},"Fehlgeschlagen",-1))])])])])])])):k("",!0)])])]))}}),ps=de(gs,[["__scopeId","data-v-6976555c"]]),bs={class:"anonymization-overview-page"},vs=le({__name:"AnonymizationOverview",setup(e){return(n,u)=>(r(),o("div",bs,[ze(ps)]))}}),ws=de(vs,[["__scopeId","data-v-d8983ec3"]]);export{ws as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.pdf-preview[data-v-4a605d4b]{border:1px solid;border-radius:.375rem;padding:1rem}.original[data-v-4a605d4b]{border-color:#dc3545;background-color:#fff5f5}.anonymized[data-v-4a605d4b]{border-color:#198754;background-color:#f0fff4}.pdf-frame[data-v-4a605d4b]{border:2px solid;border-color:inherit;border-radius:.25rem;box-shadow:0 2px 4px #0000001a}.video-with-outside-timeline[data-v-663ce12d]{display:grid;gap:12px}.video-with-outside-timeline[data-v-663ce12d] .timeline .segment{pointer-events:none}.form-control[data-v-7ca223ee]:focus,.form-select[data-v-7ca223ee]:focus{border-color:#80bdff;box-shadow:0 0 0 .2rem #007bff40}.media-viewer-container[data-v-7ca223ee]{height:850px;overflow:hidden}.comparison-video[data-v-7ca223ee]{width:100%;max-height:350px;border:1px solid #dee2e6;border-radius:.25rem}.validation-progress[data-v-7ca223ee]{width:200px;height:8px}.correction-badge[data-v-7ca223ee]{font-size:.6em}.dual-video-container .video-section[data-v-7ca223ee]{border:1px solid #e9ecef;border-radius:.375rem;padding:1rem;background-color:#f8f9fa}.dual-video-container .video-section.raw-video[data-v-7ca223ee]{border-color:#dc3545;background-color:#fff5f5}.dual-video-container .video-section.anonymized-video[data-v-7ca223ee]{border-color:#198754;background-color:#f0fff4}.outside-timeline-container[data-v-7ca223ee]{max-height:400px;overflow-y:auto}.outside-timeline-container .card[data-v-7ca223ee]{margin-bottom:0}.outside-timeline-container .card-header[data-v-7ca223ee]{position:sticky;top:0;z-index:10;border-bottom:2px solid #ffc107}.alert.alert-warning[data-v-7ca223ee]{border-left:4px solid #ffc107}.alert.alert-success[data-v-7ca223ee]{border-left:4px solid #198754}.alert.alert-danger[data-v-7ca223ee]{border-left:4px solid #dc3545}.alert.alert-info[data-v-7ca223ee]{border-left:4px solid #0dcaf0}.video-controls .btn[data-v-7ca223ee]{min-width:150px}.video-controls .btn .spinner-border-sm[data-v-7ca223ee]{width:.875rem;height:.875rem}.linkage-meta-box[data-v-7ca223ee]{height:100%;padding:.75rem .875rem;border:1px solid #e9ecef;border-radius:.5rem;background:#f8f9fa}.linkage-meta-label[data-v-7ca223ee]{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#6c757d;margin-bottom:.35rem}.linkage-meta-value[data-v-7ca223ee]{font-size:.95rem;color:#212529;word-break:break-word}
|