ethyca-fides 2.69.1rc0__py2.py3-none-any.whl → 2.76.0rc2__py2.py3-none-any.whl
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.
- {ethyca_fides-2.69.1rc0.dist-info → ethyca_fides-2.76.0rc2.dist-info}/METADATA +9 -6
- {ethyca_fides-2.69.1rc0.dist-info → ethyca_fides-2.76.0rc2.dist-info}/RECORD +488 -361
- fides/_version.py +3 -3
- fides/api/alembic/alembic.ini +5 -1
- fides/api/alembic/migrations/env.py +7 -1
- fides/api/alembic/migrations/versions/0eef0016cf06_adding_oauth2_config_for_.py +69 -0
- fides/api/alembic/migrations/versions/303287c70600_migrate_resource_type_from_enum_to_.py +99 -0
- fides/api/alembic/migrations/versions/30369bb8ae01_add_webmonitorgroupjob_model.py +67 -0
- fides/api/alembic/migrations/versions/3efe14d4469a_adds_new_experience_configs_for_vendor_.py +79 -0
- fides/api/alembic/migrations/versions/4bfbeff34611_add_polling_status.py +68 -0
- fides/api/alembic/migrations/versions/4d8c0fcc5771_adding_default_system_groups.py +78 -0
- fides/api/alembic/migrations/versions/5fa78b1f324d_add_event_audit_table.py +82 -0
- fides/api/alembic/migrations/versions/65a1bc82ae09_adds_experience_config_for_delete_.py +53 -0
- fides/api/alembic/migrations/versions/67d0e389b003_update_consentstatus_enum.py +47 -0
- fides/api/alembic/migrations/versions/795f46f656c0_migrate_field_type_from_enum_to_string.py +61 -0
- fides/api/alembic/migrations/versions/7db29f9cd77b_create_new_sub_request_table.py +95 -0
- fides/api/alembic/migrations/versions/918aefc950c9_create_digest_conditional_dependencies.py +125 -0
- fides/api/alembic/migrations/versions/9caf76161e55_make_user_assigned_data_uses_nullable_.py +64 -0
- fides/api/alembic/migrations/versions/9e0dcbf67b9f_add_digest_config.py +84 -0
- fides/api/alembic/migrations/versions/a55e12c2c2df_add_tagging_instructions_to_data_.py +29 -0
- fides/api/alembic/migrations/versions/a8e0c016afd_add_classification_benchmark_table.py +126 -0
- fides/api/alembic/migrations/versions/b97e92b038d2_add_digest_execution_model.py +117 -0
- fides/api/alembic/migrations/versions/b9bfa12c167b_add_not_applicable_to_asset_consentstatus.py +46 -0
- fides/api/alembic/migrations/versions/c09e76282dd1_add_privacy_request_duplication_cols.py +64 -0
- fides/api/alembic/migrations/versions/cd8649be3a2b_add_classifications_and_user_assigned_.py +74 -0
- fides/api/alembic/migrations/versions/e2cda8d6abc3_add_dismissed_in_activity_view_to_.py +29 -0
- fides/api/alembic/migrations/versions/f108fa05c579_adds_optional_duration_field_to_assets.py +28 -0
- fides/api/alembic/migrations/versions/f36ce1bde293_add_system_groups.py +132 -0
- fides/api/alembic/migrations/versions/fd7571bef683_adds_new_fields_to_messagingconfig_for_.py +31 -0
- fides/api/alembic/migrations/versions/xx_2025_10_17_1603_5093e92e2a5a_add_consent_data_v3_to_the_database.py +72 -0
- fides/api/alembic/migrations/versions/xx_2025_10_27_1834_67f0f2f4748e_adding_identity_definition_model.py +45 -0
- fides/api/alembic/migrations/versions/xx_2025_10_29_1659_80d28dea3b6b_added_duplicate_group_table.py +79 -0
- fides/api/alembic/migrations/versions/xx_2025_11_05_0200_f1a2b3c4d5e6_create_staged_resource_error_table.py +82 -0
- fides/api/alembic/migrations/versions/xx_2025_11_07_1709_56fe6fad2d89_add_notice_display_order.py +47 -0
- fides/api/alembic/migrations/versions/xx_2025_11_10_1200_a1b2c3d4e5f6_add_test_datastore_to_connectiontype.py +53 -0
- fides/api/alembic/migrations/versions/xx_2025_11_11_1317_7d82c8fc4c34_store_saas_template_datasets.py +68 -0
- fides/api/alembic/migrations/versions/xx_2025_11_12_1430_b2c3d4e5f6a7_add_default_identity_definitions.py +81 -0
- fides/api/alembic/migrations/versions/xx_2025_11_25_1854_3ff6449c099e_add_index_on_providedidentity_privacy_.py +50 -0
- fides/api/api/v1/api.py +2 -0
- fides/api/api/v1/endpoints/admin.py +39 -0
- fides/api/api/v1/endpoints/connection_endpoints.py +191 -47
- fides/api/api/v1/endpoints/connector_template_endpoints.py +167 -0
- fides/api/api/v1/endpoints/generic_overrides.py +90 -15
- fides/api/api/v1/endpoints/messaging_endpoints.py +164 -34
- fides/api/api/v1/endpoints/pre_approval_webhook_endpoints.py +5 -5
- fides/api/api/v1/endpoints/privacy_request_endpoints.py +231 -46
- fides/api/api/v1/endpoints/saas_config_endpoints.py +63 -92
- fides/api/api/v1/endpoints/storage_endpoints.py +5 -1
- fides/api/api/v1/endpoints/system.py +157 -100
- fides/api/api/v1/endpoints/user_endpoints.py +17 -4
- fides/api/app_setup.py +1 -3
- fides/api/common_exceptions.py +8 -0
- fides/api/db/base.py +8 -0
- fides/api/db/crud.py +30 -2
- fides/api/db/database.py +261 -4
- fides/api/db/safe_crud.py +377 -0
- fides/api/db/seed.py +35 -1
- fides/api/email_templates/get_email_template.py +3 -0
- fides/api/email_templates/template_names.py +1 -0
- fides/api/email_templates/templates/external_user_welcome.html +9 -5
- fides/api/email_templates/templates/manual_task_digest.html +316 -0
- fides/api/main.py +2 -0
- fides/api/migrations/post_upgrade_index_creation.py +20 -0
- fides/api/models/asset.py +17 -1
- fides/api/models/attachment.py +1 -0
- fides/api/models/conditional_dependency/__init__.py +0 -0
- fides/api/models/conditional_dependency/conditional_dependency_base.py +311 -0
- fides/api/models/connection_oauth_credentials.py +57 -0
- fides/api/models/connectionconfig.py +11 -1
- fides/api/models/detection_discovery/__init__.py +4 -0
- fides/api/models/detection_discovery/classification_benchmark.py +140 -0
- fides/api/models/detection_discovery/core.py +78 -3
- fides/api/models/detection_discovery/monitor_task.py +3 -1
- fides/api/models/detection_discovery/staged_resource_error.py +25 -0
- fides/api/models/detection_discovery/web_monitor.py +61 -0
- fides/api/models/digest/__init__.py +16 -0
- fides/api/models/digest/conditional_dependencies.py +275 -0
- fides/api/models/digest/digest_config.py +110 -0
- fides/api/models/digest/digest_execution.py +142 -0
- fides/api/models/event_audit.py +85 -0
- fides/api/models/experience_notices.py +6 -1
- fides/api/models/fides_user.py +9 -0
- fides/api/models/identity_definition.py +66 -0
- fides/api/models/location_regulation_selections.py +22 -0
- fides/api/models/manual_task/conditional_dependency.py +29 -87
- fides/api/models/manual_webhook.py +17 -6
- fides/api/models/messaging.py +30 -10
- fides/api/models/messaging_template.py +14 -0
- fides/api/models/policy.py +27 -0
- fides/api/models/privacy_experience.py +41 -0
- fides/api/models/privacy_notice.py +196 -13
- fides/api/models/privacy_preference.py +2 -0
- fides/api/models/privacy_request/duplicate_group.py +84 -0
- fides/api/models/privacy_request/privacy_request.py +154 -8
- fides/api/models/privacy_request/provided_identity.py +22 -1
- fides/api/models/privacy_request/request_task.py +98 -1
- fides/api/models/privacy_request/webhook.py +3 -1
- fides/api/models/saas_template_dataset.py +63 -0
- fides/api/models/sql_models.py +161 -7
- fides/api/models/system_group.py +85 -0
- fides/api/models/taxonomy.py +91 -9
- fides/api/models/v3/__init__.py +0 -0
- fides/api/models/v3/privacy_preferences.py +85 -0
- fides/api/models/worker_task.py +8 -0
- fides/api/oauth/roles.py +4 -0
- fides/api/schemas/application_config.py +32 -1
- fides/api/schemas/connection_configuration/connection_config.py +1 -30
- fides/api/schemas/connection_configuration/connection_oauth_config.py +42 -0
- fides/api/schemas/connection_configuration/connection_secrets_mongodb.py +15 -3
- fides/api/schemas/connection_configuration/connection_secrets_mssql.py +5 -0
- fides/api/schemas/messaging/messaging.py +49 -66
- fides/api/schemas/messaging/messaging_secrets_docs_only.py +1 -1
- fides/api/schemas/messaging/shared_schemas.py +102 -0
- fides/api/schemas/oauth.py +2 -1
- fides/api/schemas/privacy_center_config.py +29 -5
- fides/api/schemas/privacy_request.py +44 -7
- fides/api/schemas/saas/async_polling_configuration.py +81 -0
- fides/api/schemas/saas/connector_template.py +14 -0
- fides/api/schemas/saas/saas_config.py +12 -20
- fides/api/schemas/system.py +8 -0
- fides/api/schemas/taxonomy_extensions.py +8 -0
- fides/api/schemas/user.py +2 -2
- fides/api/service/async_dsr/handlers/__init__.py +0 -0
- fides/api/service/async_dsr/handlers/polling_attachment_handler.py +155 -0
- fides/api/service/async_dsr/handlers/polling_request_handler.py +88 -0
- fides/api/service/async_dsr/handlers/polling_response_handler.py +261 -0
- fides/api/service/async_dsr/handlers/polling_sub_request_handler.py +123 -0
- fides/api/service/async_dsr/strategies/__init__.py +0 -0
- fides/api/service/async_dsr/strategies/async_dsr_strategy.py +52 -0
- fides/api/service/async_dsr/strategies/async_dsr_strategy_callback.py +199 -0
- fides/api/service/async_dsr/strategies/async_dsr_strategy_factory.py +72 -0
- fides/api/service/async_dsr/strategies/async_dsr_strategy_polling.py +691 -0
- fides/api/service/async_dsr/utils.py +130 -0
- fides/api/service/connectors/base_erasure_email_connector.py +7 -0
- fides/api/service/connectors/bigquery_connector.py +34 -16
- fides/api/service/connectors/fides/fides_client.py +63 -1
- fides/api/service/connectors/http_connector.py +48 -12
- fides/api/service/connectors/microsoft_sql_server_connector.py +6 -1
- fides/api/service/connectors/mongodb_connector.py +74 -9
- fides/api/service/connectors/query_configs/saas_query_config.py +160 -79
- fides/api/service/connectors/saas/connector_registry_service.py +42 -135
- fides/api/service/connectors/saas_connector.py +116 -76
- fides/api/service/connectors/sql_connector.py +14 -4
- fides/api/service/deps.py +25 -2
- fides/api/service/messaging/message_dispatch_service.py +98 -20
- fides/api/service/messaging/messaging_crud_service.py +5 -9
- fides/api/service/privacy_request/attachment_handling.py +9 -2
- fides/api/service/privacy_request/dsr_package/dsr_report_builder.py +17 -9
- fides/api/service/privacy_request/dsr_package/templates/attachments_index.html +41 -30
- fides/api/service/privacy_request/dsr_package/templates/clickme.html +68 -0
- fides/api/service/privacy_request/dsr_package/templates/dataset_index.html +30 -27
- fides/api/service/privacy_request/duplication_detection.py +439 -0
- fides/api/service/privacy_request/email_batch_service.py +2 -1
- fides/api/service/privacy_request/request_runner_service.py +92 -91
- fides/api/service/privacy_request/request_service.py +74 -90
- fides/api/service/saas_request/saas_request_override_factory.py +71 -1
- fides/api/service/storage/streaming/schemas.py +27 -19
- fides/api/service/storage/streaming/smart_open_client.py +2 -2
- fides/api/service/storage/streaming/smart_open_streaming_storage.py +238 -147
- fides/api/service/storage/util.py +20 -106
- fides/api/service/strategy.py +6 -3
- fides/api/task/conditional_dependencies/privacy_request/__init__.py +0 -0
- fides/api/task/conditional_dependencies/privacy_request/convenience_fields.py +155 -0
- fides/api/task/conditional_dependencies/privacy_request/privacy_request_data.py +140 -0
- fides/api/task/conditional_dependencies/privacy_request/schemas.py +212 -0
- fides/api/task/conditional_dependencies/sql_schemas.py +301 -0
- fides/api/task/conditional_dependencies/sql_translator.py +757 -0
- fides/api/task/conditional_dependencies/util.py +111 -0
- fides/api/task/execute_request_tasks.py +34 -13
- fides/api/task/filter_results.py +35 -2
- fides/api/task/graph_runners.py +2 -32
- fides/api/task/graph_task.py +42 -12
- fides/api/task/manual/manual_task_conditional_evaluation.py +33 -28
- fides/api/task/manual/manual_task_graph_task.py +4 -1
- fides/api/task/manual/manual_task_utils.py +68 -26
- fides/api/task/scheduler_utils.py +39 -0
- fides/api/tasks/__init__.py +15 -1
- fides/api/util/cache.py +5 -1
- fides/api/util/connection_util.py +101 -218
- fides/api/util/event_audit_util.py +230 -0
- fides/api/util/filter_utils.py +0 -3
- fides/api/util/fuzzy_search_utils.py +7 -1
- fides/api/util/lock.py +13 -3
- fides/api/util/logger.py +58 -4
- fides/api/util/logger_context_utils.py +3 -1
- fides/api/util/masking_util.py +31 -0
- fides/api/util/memory_watchdog.py +118 -0
- fides/api/util/rate_limit.py +25 -7
- fides/api/util/saas_config_updater.py +76 -0
- fides/api/util/saas_util.py +28 -1
- fides/api/worker/__init__.py +6 -0
- fides/common/api/scope_registry.py +6 -7
- fides/common/api/v1/urn_registry.py +15 -3
- fides/config/__init__.py +11 -2
- fides/config/celery_settings.py +42 -0
- fides/config/config_proxy.py +10 -0
- fides/config/duplicate_detection_settings.py +31 -0
- fides/config/execution_settings.py +6 -6
- fides/config/security_settings.py +4 -1
- fides/config/utils.py +5 -0
- fides/data/language/languages.yml +2 -0
- fides/service/connection/__init__.py +0 -0
- fides/service/connection/connection_service.py +651 -0
- fides/service/dataset/dataset_service.py +39 -0
- fides/service/event_audit_service.py +109 -0
- fides/service/messaging/aws_ses_service.py +2 -4
- fides/service/messaging/messaging_service.py +75 -74
- fides/service/privacy_request/privacy_request_service.py +345 -100
- fides/service/system/__init__.py +0 -0
- fides/service/system/system_service.py +153 -0
- fides/service/taxonomy/handlers/legacy_handler.py +3 -3
- fides/service/taxonomy/taxonomy_service.py +64 -18
- fides/ui-build/static/admin/404.html +1 -1
- fides/ui-build/static/admin/_next/static/chunks/1099-688fa865621531cc.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/1115-7fd171dac1eb0e51.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/1276.deb10ae2643f8463.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/1438-8a33b3834d6e43f3.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{6148-59a59d5c5925344f.js → 1533-84e250d1f26e6d7d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/1821-c1daa160f492aacf.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/1840-359ee056e4cf6629.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{1975.78e719130cfe3fd6.js → 1975.bef017bc80e2012c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/2040-70972e15960d9afe.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/2121.321b0fd3932164d4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/2397-3434603a97f3f5d6.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/2921-49ed0ed897832958.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3150-da5406b80d25fe6d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3214-90ce0a366b0f461a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3377-02bf9780fd383d94.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3615-5e2d062d684b8fa1.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3655-5e1ba5dd68b5ec48.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3729-31ff8ba51491bf21.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3872-cff30ca0844fe2b1.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3931-8bedde156fe83564.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/401-582d9970d89deefe.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4093-7e47408c28de5375.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{4259.d1507e0db19cbed7.js → 4259.05038c9b78467244.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/431-e01ee730c8ad9ece.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4322-f6aeff6880726c83.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4339-04a715ab07122744.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4496-ccbce2459174e0d6.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/454-d5c2c84f1a14e4f1.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4589-c1d83c6a8dab4d30.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4809-a8f4a108a42f53ed.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4903-19c0bc07a956dfa8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4910-d990773601f794c1.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5185-96423702fba70ced.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5258-4e308cca01d59367.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5487-5c3501754bf027ba.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/549-1bdc3e6f3264c020.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5505-43b9c39491b88e08.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5698.2135391a128cc373.js +164 -0
- fides/ui-build/static/admin/_next/static/chunks/5783-016dfcee8e49bf61.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5826-4db99ea4e5077911.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/590-be447cacf12419dd.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6084-91badbc6569a0efb.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6344-026cb323c1d49926.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6362-ba0e12f2fc4cad94.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6853-882889659769d7b4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6882-bb1b469d7d7f5335.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6954-0dcf22a9aabe39c5.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7170-46db82bb5b55e856.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7218-2ace8c82e3e7eb74.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7245-1cdafb35f289861b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7630-7f75ab7b8df42eb3.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7654-2e9a8be02e41769a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/8212-348ddd2b6933db70.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9014-eeae6f581158e645.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{5596-bb601cbf40e47a0f.js → 9195-da717d324917b049.js} +3 -3
- fides/ui-build/static/admin/_next/static/chunks/9450-b7b7bb1d755ecf57.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{9676.9fd9552ef744c717.js → 9676.1f395eeb9cc34968.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/9826-1078e46f3ac0b688.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9911-ece086f2230e34f0.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{404-471a6b18e712f050.js → 404-800be6996aaa999c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{_app-fcdad91f6f66292b.js → _app-de4b578c904df772.js} +57 -220
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-f12020b82dd4bd1a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/multiple-a911b7990371704d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-ad585b79953c2753.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-406170eaae4329c6.js → add-vendors-bb263d394ca1c8fa.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure-6907c368d8611c44.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-f80cf2d3966816fd.js → [id]-c32f381af358149b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{new-e74cb5ea87f15b40.js → new-6efb3c069d8b47dd.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience-1975c529905eea9b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-b378576cba255609.js → [id]-b05331178928ab52.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-2ca1de7b88094ab0.js → new-516834e930bb0d0d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-985717f2565f9d9d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-226efa1dcd41437f.js → properties-2be773e08498e40c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-850afb74f4192e87.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent-b63d1e395d879b86.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]-5b28f0f674ea87bd.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-04cfe2cfba7b7cd8.js → [projectUrn]-676177e2f3c9c2a2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-794906929efb8e1d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/[resourceUrn]-3ccbf7c0d06507b9.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-1ea0b24d306b1e67.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/datastore/[monitorId]-d4861a4a218bb65a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/datastore-4498881c26f1458d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/infrastructure/[monitorId]-66bd265044daf97d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/infrastructure-c9c79fa8576a4f77.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/[monitorId]/[systemId]-60cacc3232c2eead.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/[monitorId]-437bd64a3016de36.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website-5b3e0009d442bc3f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-8349248c2da970a6.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-6919a1d6cadaa46b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-8f736b078e9842da.js → [resourceUrn]-1a50d421897d3da1.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-eb814e3c22807871.js → detection-49509414a15e8393.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-6875b7783fcfda2f.js → [resourceUrn]-1a1bb80b586d0c0f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-172dbd7740e212ca.js → discovery-49de61df1e8e7fba.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datamap-c2719f5cff20c0f8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-dfd71c1e9c458b89.js → [...subfieldNames]-415015aebab60436.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-7cdc42ec5493b83d.js → [collectionName]-5accb09715b5122d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-aebecca1d8ec5f98.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-9551a82ddec9f909.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset-72f8fe47beef0f09.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/[id]-3a8aa3f633528e88.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-87512616f35ec6da.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-2f1bf4eac7aa55fd.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{fides-js-docs-1f4335dca5c09860.js → fides-js-docs-5235760b3e508d7d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/index-8d67cd2872cb682a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-7a631df29cd0e31a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations-ea3bc43cdaf273de.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/new-privacy-requests-5d8632bba1b81cd4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests/[id]-92e01822ecde8fb8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests/new-1256cf6d3f6794e0.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests-0daac00911d27617.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers/[key]-2d976fe5e8ba0a3a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers/new-7766ba497b863740.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers-f2880d2ed4734270.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates/[id]-669f585c3458faff.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates/add-template-c79e7724e4bc3899.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates-891654e8dc13965c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications-40c8148244c5d347.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/ant-components-1e86f3e28bd23ed6.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/AntForm-9b7bd8c38f02c091.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikAntFormItem-b18a53a940cf9e19.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikControlled-6d028d7450e77578.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikField-8399083ee2cd8cc2.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/forms-0a910125cdb2b3b8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-acc90b6f7fe915cb.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-bbc42026f2685438.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure-c08ca6ad21c99799.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-77c2db582f8823bc.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-e784c05d056b2371.js → [id]-74ccea4868408e3d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-0a7a2db148a7561a.js → add-property-7d9f09bfe9d44dfc.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{properties-da734840e4f9d04b.js → properties-cd77bc30672bb1fa.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-cc3bd9540132d5ed.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/sandbox/privacy-notices-7ce7d720107ab4b5.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/about/alpha-68eaac2d79133679.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/about-6c4904c157477285.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-ae789892343c24f5.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-13ee1b331ced0846.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/[id]-ee4e43692336a330.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/new-ca51d794abfcbf25.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-ecd1dc5db8e81409.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/domain-records-df06f7e2f668c540.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-da0c77bd510c6c51.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/email-templates-950b0c115bf673d8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-2e635dcd11b78224.js → locations-7e36cb4756973a9d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-a0e5ed486d24ccf3.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/privacy-requests-3cdebafb6870d3ad.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-7c02e469d8c5bd74.js → regulations-159aad34f1021320.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-dbd1a64090ad0946.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]-7d042497a57a3788.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/systems-21f1172e73dfc9f0.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-e553161e6338ee48.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/{new-92f52c43f522a350.js → new-efc4af017723e57a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-64452dfae2c5e614.js → [id]-b152319d67372ee4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management-dba8692491f7935e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/webpack-09ca52bc7beb0b43.js +1 -0
- fides/ui-build/static/admin/_next/static/css/012b10627a654d5c.css +1 -0
- fides/ui-build/static/admin/_next/static/css/05d05fc31d09638b.css +1 -0
- fides/ui-build/static/admin/_next/static/css/0fd6e0884cfcc5f3.css +1 -0
- fides/ui-build/static/admin/_next/static/css/14ba79c49597d37a.css +1 -0
- fides/ui-build/static/admin/_next/static/css/{34a7eb08b86ddb57.css → 3d6582469f7d56e0.css} +1 -1
- fides/ui-build/static/admin/_next/static/css/3d66bb57ddcb0978.css +1 -0
- fides/ui-build/static/admin/_next/static/css/4861ca3e088f2d05.css +1 -0
- fides/ui-build/static/admin/_next/static/css/a1800714b486e230.css +1 -0
- fides/ui-build/static/admin/_next/static/css/a1e4be9466578ef1.css +1 -0
- fides/ui-build/static/admin/_next/static/css/af32fcac7a177a0e.css +1 -0
- fides/ui-build/static/admin/_next/static/css/cb417f0587918f85.css +1 -0
- fides/ui-build/static/admin/_next/static/css/dd15c278b964de80.css +1 -0
- fides/ui-build/static/admin/_next/static/css/{5f393dea1c0d031c.css → f89607996ad54f4b.css} +1 -1
- fides/ui-build/static/admin/_next/static/css/f9a2a44d3d34c904.css +1 -0
- fides/ui-build/static/admin/_next/static/l2vgGUHB04Fi4oEVlVMrc/_buildManifest.js +1 -0
- fides/ui-build/static/admin/add-systems/manual.html +1 -1
- fides/ui-build/static/admin/add-systems/multiple.html +1 -1
- fides/ui-build/static/admin/add-systems.html +1 -1
- fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
- fides/ui-build/static/admin/consent/configure.html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
- fides/ui-build/static/admin/consent/properties.html +1 -1
- fides/ui-build/static/admin/consent/reporting.html +1 -1
- fides/ui-build/static/admin/consent.html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
- fides/ui-build/static/admin/data-catalog.html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/datastore/[monitorId].html +1 -0
- fides/ui-build/static/admin/data-discovery/action-center/datastore.html +1 -0
- fides/ui-build/static/admin/data-discovery/action-center/infrastructure/[monitorId].html +1 -0
- fides/ui-build/static/admin/data-discovery/action-center/infrastructure.html +1 -0
- fides/ui-build/static/admin/data-discovery/action-center/website/[monitorId]/[systemId].html +1 -0
- fides/ui-build/static/admin/data-discovery/action-center/website/[monitorId].html +1 -0
- fides/ui-build/static/admin/data-discovery/action-center/website.html +1 -0
- fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
- fides/ui-build/static/admin/data-discovery/activity.html +1 -1
- fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-discovery/detection.html +1 -1
- fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
- fides/ui-build/static/admin/datamap.html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
- fides/ui-build/static/admin/dataset/new.html +1 -1
- fides/ui-build/static/admin/dataset.html +1 -1
- fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
- fides/ui-build/static/admin/datastore-connection/new.html +1 -1
- fides/ui-build/static/admin/datastore-connection.html +1 -1
- fides/ui-build/static/admin/index.html +1 -1
- fides/ui-build/static/admin/integrations/[id].html +1 -1
- fides/ui-build/static/admin/integrations.html +1 -1
- fides/ui-build/static/admin/lib/fides-ext-gpp.js +1 -1
- fides/ui-build/static/admin/lib/fides-headless.js +1 -1
- fides/ui-build/static/admin/lib/fides-preview.js +1 -1
- fides/ui-build/static/admin/lib/fides-tcf.js +3 -3
- fides/ui-build/static/admin/lib/fides.js +3 -3
- fides/ui-build/static/admin/login/[provider].html +1 -1
- fides/ui-build/static/admin/login.html +1 -1
- fides/ui-build/static/admin/new-privacy-requests.html +1 -0
- fides/ui-build/static/admin/notifications/digests/[id].html +1 -0
- fides/ui-build/static/admin/notifications/digests/new.html +1 -0
- fides/ui-build/static/admin/notifications/digests.html +1 -0
- fides/ui-build/static/admin/notifications/providers/[key].html +1 -0
- fides/ui-build/static/admin/notifications/providers/new.html +1 -0
- fides/ui-build/static/admin/notifications/providers.html +1 -0
- fides/ui-build/static/admin/notifications/templates/[id].html +1 -0
- fides/ui-build/static/admin/notifications/templates/add-template.html +1 -0
- fides/ui-build/static/admin/notifications/templates.html +1 -0
- fides/ui-build/static/admin/notifications.html +1 -0
- fides/ui-build/static/admin/poc/ant-components.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/AntForm.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikAntFormItem.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikControlled.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikField.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikSpreadField.html +1 -1
- fides/ui-build/static/admin/poc/forms.html +1 -1
- fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
- fides/ui-build/static/admin/privacy-requests.html +1 -1
- fides/ui-build/static/admin/properties/[id].html +1 -1
- fides/ui-build/static/admin/properties/add-property.html +1 -1
- fides/ui-build/static/admin/properties.html +1 -1
- fides/ui-build/static/admin/reporting/datamap.html +1 -1
- fides/ui-build/static/admin/sandbox/privacy-notices.html +1 -0
- fides/ui-build/static/admin/settings/about/alpha.html +1 -1
- fides/ui-build/static/admin/settings/about.html +1 -1
- fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +1 -1
- fides/ui-build/static/admin/settings/consent.html +1 -1
- fides/ui-build/static/admin/settings/custom-fields/[id].html +1 -0
- fides/ui-build/static/admin/settings/custom-fields/new.html +1 -0
- fides/ui-build/static/admin/settings/custom-fields.html +1 -1
- fides/ui-build/static/admin/settings/domain-records.html +1 -1
- fides/ui-build/static/admin/settings/domains.html +1 -1
- fides/ui-build/static/admin/settings/email-templates.html +1 -1
- fides/ui-build/static/admin/settings/locations.html +1 -1
- fides/ui-build/static/admin/settings/organization.html +1 -1
- fides/ui-build/static/admin/settings/privacy-requests.html +1 -1
- fides/ui-build/static/admin/settings/regulations.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id].html +1 -1
- fides/ui-build/static/admin/systems.html +1 -1
- fides/ui-build/static/admin/taxonomy.html +1 -1
- fides/ui-build/static/admin/user-management/new.html +1 -1
- fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
- fides/ui-build/static/admin/user-management.html +1 -1
- fides/api/service/async_dsr/async_dsr_service.py +0 -75
- fides/api/service/privacy_request/dsr_package/templates/welcome.html +0 -66
- fides/ui-build/static/admin/_next/static/OmXHlY9MvjoZH9jDkAytl/_buildManifest.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1099-79646e64f26d62fa.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1316-2606e19807c08aa5.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1345-5e1c5b66e25c566e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1467-8808ec8836e033f9.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1817-0ca16d288fad916d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/2150-930ffaf2c4718edc.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/255-1bc0cbef7a59cdc6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/2921-52328140bc420d0f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/346-aa3b88efb85f2e28.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3550-d04125c828d591a1.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3620-602eb74dc896d556.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3729-c17ac8031a4c4fd1.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3847-230bf61b053bc706.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3855-ef5194cdb228beb6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3872-f78dec02f0d959ae.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3923-bb2417b8dcade7a4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/401-4af0a912e249d30f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4164-355644b916ae0094.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/431-86ad2beeb93c95c9.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4608-be8cba73f5d7c326.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4786-61154adf88e448e1.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4808-dd4157aa72648068.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4831-fd99c0b3784de128.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4844-46324c3d848b8b6a.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5163-e682273cd76a7d07.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5258-b0de22a8521686ab.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5487-02d00bad7c6830e0.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/549-38ea1d91ee2addaa.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5619-9b50cec521203989.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6084-c153669d5567e242.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6419-d0c00d661b01f8fa.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6853-b17673391117c976.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6954-5296188c19d7d0ac.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/699-8ca44b0de9fa20f0.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7476-45c5088baa8b66af.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7630-7ed6c6117775dffe.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/787-a8c7eab617e2fceb.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/79-65674011d455af4d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/796-9e1ca1a4030707c5.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/8002-24af20d679efc04e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/8765-f622a35b40a7ec63.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9046-712156d461165f56.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9187-7438242f0d380bb0.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9278-08cc704317fe535e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9729-fcf6ff4e3534e4a8.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9826-dbae8dee941a7fac.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9951-a88367a129b724ba.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-ace203dfacacbdc4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/multiple-920fb469e0dda1d2.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-bd0d82078e67cac3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure-7207ab23bdb36ce8.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience-9dda4de5ec580279.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-0d4844d0b808e6e4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-28b192e2c074b0f3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent-3e8bdefe714254ec.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]-2c29ff7a01198f30.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-5f2d7b24804f861f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/[resourceUrn]-8eb581024bc0172f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-30108b00ac769fc3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-e1ba213fb666b3f4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-6d133580045abdda.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-9a81d42a474e1e48.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-b6ae7adb8ef0b525.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datamap-c7390e046b2e2b7f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-e12b11ba15bc3fc1.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-e32fccc4ca520d2b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset-7c59a6abf6ba6207.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/[id]-927b7e476c4b47d0.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-cbe100d50df34285.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-cce20440b177050b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/index-6cd8708106331b8d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-4c3c413a2668df53.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations-95402b5001c07ef2.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging/[id]-3c6dc2f6e6bae960.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging/add-template-4a6d4023a7791be8.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging-76b204c9b98d656f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/ant-components-bc0e2adf6e0d3ac7.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/AntForm-86ffcc1ad3fa912e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikAntFormItem-ec04f595465bdf69.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikControlled-41d309754ff0c1de.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikField-cab1f78cec7808f9.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/forms-eb6058221403b156.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/table-migration-48500551fd6a7602.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-0f25a76dd18c5e20.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-ad6ad3e5bd72765d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-6032d82f0fc2893d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure-d83e5bd52a638234.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-baf31c3e4b081046.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-6903f42a0412bfa6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/about/alpha-a82f3df840d5c1b5.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/about-d06fb16487705b9d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-9495e2eb506606c7.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-93a978443bf299db.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-9ecb803099082bf4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/domain-records-16fdd91a81074dd1.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-4cdd6001e7cb9aee.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/email-templates-1914de830ce5cfc4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-f547f1f33c12faf3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/privacy-requests-2ecc073f41628f62.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-20b1193ed76c56b0.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]-6e15332935f6b538.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems-fbc8761ef4d55516.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-4d7827fc9c46b6b8.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management-9cec020f89544426.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/webpack-678e89d68dbcd94f.js +0 -1
- fides/ui-build/static/admin/_next/static/css/073713cd1eddda79.css +0 -1
- fides/ui-build/static/admin/_next/static/css/23cf870196941c9a.css +0 -1
- fides/ui-build/static/admin/_next/static/css/304c6f148886a8d4.css +0 -1
- fides/ui-build/static/admin/_next/static/css/650df9c348000a26.css +0 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +0 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +0 -1
- fides/ui-build/static/admin/messaging/[id].html +0 -1
- fides/ui-build/static/admin/messaging/add-template.html +0 -1
- fides/ui-build/static/admin/messaging.html +0 -1
- fides/ui-build/static/admin/poc/table-migration.html +0 -1
- fides/ui-build/static/admin/privacy-requests/configure/messaging.html +0 -1
- {ethyca_fides-2.69.1rc0.dist-info → ethyca_fides-2.76.0rc2.dist-info}/WHEEL +0 -0
- {ethyca_fides-2.69.1rc0.dist-info → ethyca_fides-2.76.0rc2.dist-info}/entry_points.txt +0 -0
- {ethyca_fides-2.69.1rc0.dist-info → ethyca_fides-2.76.0rc2.dist-info}/licenses/LICENSE +0 -0
- {ethyca_fides-2.69.1rc0.dist-info → ethyca_fides-2.76.0rc2.dist-info}/top_level.txt +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{resources-de704de849960f01.js → resources-81d1b50585468fb0.js} +0 -0
- /fides/ui-build/static/admin/_next/static/{OmXHlY9MvjoZH9jDkAytl → l2vgGUHB04Fi4oEVlVMrc}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9826],{77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var i=n(24246),r=n(96306),l=n(88038),s=n.n(l),o=n(86677);n(27378);var a=n(25980),d=n(90867),c=n(77830),u=()=>{let e=(0,o.useRouter)();return(0,i.jsx)(r.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(r.xuv,{children:[(0,i.jsxs)(r.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(r.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(r.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,i.jsxs)(r.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},h=e=>{let{children:t,title:n,padded:l=!0,mainProps:c}=e,h=(0,a.hz)(),m=(0,o.useRouter)(),p="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,x=!(h.flags.privacyRequestsConfiguration&&p),{data:g}=(0,d.JE)(void 0,{skip:x}),{data:f}=(0,d.PW)(void 0,{skip:x}),b=h.flags.privacyRequestsConfiguration&&(!g||!f)&&p;return(0,i.jsxs)(r.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(s(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(r.kCb,{as:"main",direction:"column",py:l?6:0,px:l?10:0,h:l?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[b?(0,i.jsx)(u,{}):null,t]})]})}},58754:function(e,t,n){"use strict";var i=n(24246),r=n(96306),l=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:s=!0,children:o,rightContent:a,style:d,...c}=e;return(0,i.jsxs)("div",{...c,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,i.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(r.lQT,{className:n||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,a&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:a})]}),!!n&&(0,i.jsx)(l.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},61524:function(e,t,n){"use strict";n.d(t,{I_:function(){return s}});var i=n(24246),r=n(96306),l=n(67991);let s=5,o=e=>{let{title:t,children:n}=e;return(0,i.jsx)(r.xuv,{p:4,display:"flex",alignItems:"flex-start",gap:"4px",borderRadius:"4px",boxShadow:"0px 1px 2px 0px rgba(0, 0, 0, 0.06), 0px 1px 3px 0px rgba(0, 0, 0, 0.1)",fontSize:"sm","data-testid":"picker-card-".concat(t),children:n})},a=e=>{let{title:t,items:n,selected:o,indeterminate:a,onChange:d,toggle:c,onViewMore:u,numSelected:h,variant:m="default"}=e,p=u?n.slice(0,s):n,{allSelected:x,someSelected:g,handleToggleAll:f,handleToggleSelection:b}=(0,l.QZ)({items:n,selected:o,onChange:d});return(0,i.jsxs)(r.gCW,{alignItems:"flex-start",spacing:3,width:"100%",height:"100%",children:[(0,i.jsxs)(r.kCb,{justifyContent:"space-between",width:"100%",children:[(0,i.jsx)(r.XZJ,{fontSize:"md",textTransform:"emphasize"===m?"capitalize":void 0,fontWeight:"emphasize"===m?"semibold":"auto",isChecked:x,size:"md",mr:"2",onChange:f,colorScheme:"complimentary","data-testid":"select-all",isIndeterminate:!x&&g,children:t}),null!=c?c:null]}),h>0?(0,i.jsxs)(r.j8w,{className:"w-fit","data-testid":"num-selected-badge",children:[h," selected"]}):null,(0,i.jsx)(r.gCW,{paddingLeft:"6",fontSize:"sm",alignItems:"start",spacing:"2",children:(0,i.jsx)(r.cOn,{colorScheme:"complimentary",children:p.map(e=>(0,i.jsx)(r.kCb,{alignItems:"center",gap:"8px",children:(0,i.jsx)(r.XZJ,{isChecked:o.includes(e.id),isIndeterminate:a.includes(e.id),size:"md",fontWeight:"emphasize"===m?"500":"auto",onChange:()=>b(e.id),"data-testid":"".concat(e.name,"-checkbox"),children:e.name},e.id)},e.id))})}),u?(0,i.jsx)(r.wpx,{size:"small",onClick:u,type:"text","data-testid":"view-more-btn",children:"View more"}):null]})};t.ZP=e=>{let{...t}=e;return(0,i.jsx)(o,{title:t.title,children:(0,i.jsx)(a,{...t,variant:"emphasize"})})}},26089:function(e,t,n){"use strict";var i=n(24246),r=n(96306),l=n(99830),s=n.n(l);t.Z=e=>{let{onClick:t,children:n}=e;return(0,i.jsx)(r.wpx,{onClick:t,type:"link",role:"link",size:"small",className:s().toastLink,children:n})}},67991:function(e,t,n){"use strict";n.d(t,{Od:function(){return l},QZ:function(){return r}});var i=n(27378);let r=e=>{let{items:t,selected:n,onChange:i}=e,r=t.every(e=>n.includes(e.id))&&!!t.length;return{allSelected:r,someSelected:t.some(e=>n.includes(e.id))&&!!t.length,handleToggleAll:()=>{r?i([]):i(t.map(e=>e.id))},handleToggleSelection:e=>{n.includes(e)?i(n.filter(t=>t!==e)):i([...n,e])}}},l=e=>{let{initialSelected:t,initialExcluded:n,initialAllSelected:r,itemCount:l}=e,[s,o]=(0,i.useState)(t),[a,d]=(0,i.useState)(n),[c,u]=(0,i.useState)(r||s.length===l),h=!!s.length||!!a.length;return{selected:s,excluded:a,allSelected:c,someSelected:h,handleToggleAll:()=>{c?(d([]),a.length||u(!1)):(o([]),u(!0))},handleToggleItemSelected:e=>{if(c)d(a.includes(e)?a.filter(t=>t!==e):[...a,e]);else{let t=s.includes(e)?s.filter(t=>t!==e):[...s,e];o(t),t.length===l&&u(!0)}}}}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return d}});var i=n(24246),r=n(96306),l=n(79894),s=n.n(l),o=n(27378);let{Text:a}=r.AntTypography,d=e=>{let{items:t,...n}=e,l=(0,o.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let l=n===t.length-1,o={...e},d=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,i.jsx)(a,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,id:l?"breadcrumb-current-page":void 0,children:o.title})),d)?o.title=(0,i.jsx)(r.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,i.jsx)(s(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,i.jsx)(r.zrq,{items:l,...n})}},12282:function(e,t,n){"use strict";n.d(t,{$_:function(){return o},h4:function(){return l},x$:function(){return s}});var i=n(24246),r=n(96306);let l=e=>{let{title:t}=e;return(0,i.jsx)(r.xBx,{fontSize:"lg",fontWeight:"semibold",pt:5,paddingInline:6,pb:5,backgroundColor:"gray.50",borderTopRadius:"md",borderBottom:"1px solid",borderColor:"gray.200",children:t})},s=e=>{let{title:t,allSelected:n,numSelected:l,onToggleAll:s,children:o}=e;return(0,i.jsxs)(r.kCb,{justifyContent:"space-between",mb:4,children:[(0,i.jsxs)(r.xuv,{children:[(0,i.jsx)(r.XZJ,{colorScheme:"complimentary",size:"md",isChecked:n,isIndeterminate:!n&&l>0,onChange:s,mr:3,"data-testid":"select-all",children:(0,i.jsx)(r.xvT,{fontWeight:"semibold",fontSize:"md",children:t})}),(0,i.jsxs)(r.j8w,{color:"minos",className:"w-fit","data-testid":"num-selected-badge",children:[l," selected"]})]}),o]})},o=e=>{let{onApply:t,onClose:n}=e;return(0,i.jsx)(r.mzw,{justifyContent:"center",children:(0,i.jsxs)("div",{className:"flex w-full justify-between",children:[(0,i.jsx)(r.wpx,{onClick:n,"data-testid":"cancel-btn",children:"Cancel"}),(0,i.jsx)(r.wpx,{type:"primary",onClick:t,"data-testid":"apply-btn",children:"Apply"})]})})}},85759:function(e,t,n){"use strict";n.d(t,{$q:function(){return s},F7:function(){return r},Il:function(){return i},VT:function(){return l},ji:function(){return o}});let i=(e,t)=>{let n={};return new Set(e.map(e=>e.continent).sort()).forEach(i=>{n[i]={locationGroups:t.filter(e=>e.continent===i).sort((e,t)=>e.name.localeCompare(t.name)),locations:e.filter(e=>e.continent===i).sort((e,t)=>e.name.localeCompare(t.name))}}),n},r=e=>{let t={};return new Set(e.map(e=>e.continent).sort()).forEach(n=>{t[n]=e.filter(e=>e.continent===n).sort((e,t)=>e.name.localeCompare(t.name))}),t},l=e=>{let t={};new Set(e.map(e=>e.belongs_to).flat().sort()).forEach(n=>{n&&(t[n]=e.filter(e=>{var t;return null===(t=e.belongs_to)||void 0===t?void 0:t.includes(n)}).sort((e,t)=>e.name.localeCompare(t.name)))});let n=e.filter(e=>!e.belongs_to||0===e.belongs_to.length);return n.length&&(t.Other=n),t},s=(e,t)=>{var n;return null!==(n=e.regulation)&&void 0!==n&&!!n.length||t.filter(t=>{var n;return null===(n=t.belongs_to)||void 0===n?void 0:n.includes(e.id)}).some(e=>{var t;return null===(t=e.regulation)||void 0===t?void 0:t.length})},o=e=>{let{group:t,selected:n,locations:i}=e,r=i.filter(e=>{var n;return null===(n=e.belongs_to)||void 0===n?void 0:n.includes(t.id)});return 0===r.length?"unchecked":r.every(e=>n.includes(e.id))?"checked":r.every(e=>!n.includes(e.id))?"unchecked":"indeterminate"}},31883:function(e,t,n){"use strict";n.d(t,{Bw:function(){return i.Bw},D4:function(){return i.D4}});var i=n(19043)},99830:function(e){e.exports={toastLink:"ToastLink_toastLink__OLSeq"}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9951],{95492:function(e,t,s){s.d(t,{l:function(){return n}});var i=s(24246);let n=(0,s(96306).IUT)({displayName:"TrashCanSolidIcon",viewBox:"0 0 12 15",path:(0,i.jsx)("path",{d:"M8.37857 1.18083C8.23393 0.892838 7.93661 0.710938 7.6125 0.710938H4.3875C4.06339 0.710938 3.76607 0.892838 3.62143 1.18083L3.42857 1.56094H0.857143C0.383036 1.56094 -1.19209e-07 1.94158 -1.19209e-07 2.41094C-1.19209e-07 2.8803 0.383036 3.26094 0.857143 3.26094H11.1429C11.6162 3.26094 12 2.8803 12 2.41094C12 1.94158 11.6162 1.56094 11.1429 1.56094H8.57143L8.37857 1.18083ZM11.167 4.11094H0.857143V12.6109C0.857143 13.5486 1.62589 14.3109 2.57143 14.3109H9.45268C10.3754 14.3109 11.167 13.5486 11.167 12.6109V4.11094ZM9.02411 6.23594V12.1859C9.02411 12.4197 8.80714 12.6109 8.59554 12.6109C8.33571 12.6109 8.16696 12.4197 8.16696 12.1859V6.23594C8.16696 6.00219 8.33571 5.81094 8.59554 5.81094C8.80714 5.81094 9.02411 6.00219 9.02411 6.23594ZM6.45268 6.23594V12.1859C6.45268 12.4197 6.23571 12.6109 6.02411 12.6109C5.76429 12.6109 5.57143 12.4197 5.57143 12.1859V6.23594C5.57143 6.00219 5.76429 5.81094 6.02411 5.81094C6.23571 5.81094 6.45268 6.00219 6.45268 6.23594ZM3.85714 6.23594V12.1859C3.85714 12.4197 3.66429 12.6109 3.42857 12.6109C3.19286 12.6109 3 12.4197 3 12.1859V6.23594C3 6.00219 3.19286 5.81094 3.42857 5.81094C3.66429 5.81094 3.85714 6.00219 3.85714 6.23594Z",fill:"currentColor"})})},94799:function(e,t,s){s.d(t,{k:function(){return l}});var i=s(76649);let n=e=>(0,i.Ln)({id:"string"},e),l=e=>(null!=e?e:[]).filter(n)},30320:function(e,t,s){s.d(t,{m:function(){return o}});var i=s(27378),n=s(25980),l=s(41841),a=s(32885),r=s(94799);let o=e=>{let{resourceFidesKey:t,resourceType:s}=e,{errorAlert:o}=(0,l.VY)(),{plus:d}=(0,n.hz)(),c=(0,i.useMemo)(()=>null!=t?t:"",[]),u=(0,a.YU)(!0,{skip:!d}),m=(0,a.VN)(s,{skip:!d}),{data:f,isLoading:x,error:h,isError:y}=(0,a.PV)(null!=t?t:"",{skip:""!==c&&!(d&&c)}),[p]=(0,a._D)(),g=u.isLoading||m.isLoading||x,C=(0,i.useMemo)(()=>new Map((0,r.k)(u.data).map(e=>{var t;return[e.id,{...e,options:(null!==(t=e.allowed_values)&&void 0!==t?t:[]).map(e=>({value:e,label:e}))}]})),[u.data]),j=(0,i.useMemo)(()=>{var e;return null===(e=m.data)||void 0===e?void 0:e.filter(e=>e.active)},[m.data]),_=(0,i.useMemo)(()=>new Map((0,r.k)(j).map(e=>[e.id,e])),[j]),v=(0,i.useMemo)(()=>y&&(null==h?void 0:h.status)===404?new Map:new Map((0,r.k)(f).map(e=>[e.custom_field_definition_id,e])),[f,y,h]),k=(0,i.useMemo)(()=>{let e=[..._.keys()];return e.sort(),e},[_]),S=(0,i.useMemo)(()=>{let e={};return j&&v&&j.forEach(t=>{let s=v.get(t.id||"");s&&(t.allow_list_id&&"string[]"===t.field_type?e[s.custom_field_definition_id]=s.value:e[s.custom_field_definition_id]=s.value.toString())}),e},[j,v]),T=(0,i.useCallback)(async e=>{if(!d)return;let i="fides_key"in e&&""!==e.fides_key?e.fides_key:t;if(!i)return;let{customFieldValues:n}=e;if(!n||0===Object.keys(n).length)return;let l=[],a=[];k.forEach(e=>{let t=v.get(e),s=n[e];void 0===s||""===s||Array.isArray(s)&&0===s.length?(null==t?void 0:t.id)&&a.push(t.id):l.push({custom_field_definition_id:e,resource_id:i,id:null==t?void 0:t.id,value:s})});try{await p({resource_type:s,resource_id:i,upsert:l,delete:a})}catch(e){o("One or more custom fields have failed to save, please try again."),console.error(e)}},[d,v,o,t,k,p,s]);return{customFieldValues:S,definitionIdToCustomField:v,idToAllowListWithOptions:C,idToCustomFieldDefinition:_,isEnabled:d,isLoading:g,sortedCustomFieldDefinitionIds:k,upsertCustomFields:T}}},95346:function(e,t,s){s.d(t,{uc:function(){return p},Hn:function(){return o},Uv:function(){return a},C7:function(){return d},mZ:function(){return y.m}});var i,n,l,a,r=s(54682);(i=l||(l={}))[i.CREATE_CUSTOM_FIELDS=0]="CREATE_CUSTOM_FIELDS",i[i.CREATE_CUSTOM_LISTS=1]="CREATE_CUSTOM_LISTS",i[i.CHOOSE_FROM_LIBRARY=2]="CHOOSE_FROM_LIBRARY",r.AL.STRING,r.AL.STRING,r.AL.STRING_,(n=a||(a={})).SINGLE_SELECT="singleSelect",n.MULTIPLE_SELECT="multipleSelect",n.LOCATION_SELECT="locationSelect",n.OPEN_TEXT="openText";let o=[{label:"Single select",value:"singleSelect"},{label:"Multiple select",value:"multipleSelect"},{label:"Location select",value:"locationSelect"},{label:"Open Text",value:"openText"}],d=[{label:"taxonomy:".concat(r.P6.DATA_CATEGORY),value:r.P6.DATA_CATEGORY},{label:"taxonomy:".concat(r.P6.DATA_SUBJECT),value:r.P6.DATA_SUBJECT},{label:"taxonomy:".concat(r.P6.DATA_USE),value:r.P6.DATA_USE},{label:"".concat(r.P6.SYSTEM,":information"),value:r.P6.SYSTEM},{label:"system:data use",value:r.P6.PRIVACY_DECLARATION}];var c=s(24246),u=s(96306),m=s(34090),f=s(30234),x=s(97181),h=s(40324),y=s(30320);let p=e=>{let{resourceFidesKey:t,resourceType:s}=e,{idToAllowListWithOptions:i,idToCustomFieldDefinition:n,isEnabled:l,isLoading:a,sortedCustomFieldDefinitionIds:o}=(0,y.m)({resourceFidesKey:t,resourceType:s});return l&&0!==o.length?(0,c.jsx)(f.Z,{heading:"Custom fields",children:(0,c.jsx)(u.kCb,{flexDir:"column","data-testid":"custom-fields-list",children:(0,c.jsx)(u.kCb,{flexDir:"column",gap:"24px",children:a?(0,c.jsx)(u.M5Y,{children:(0,c.jsx)(u.$jN,{})}):o.length>0&&(0,c.jsx)(u.kCb,{flexDirection:"column",gap:"12px",paddingBottom:"24px",children:o.map(e=>{let t=n.get(e);if(!t)return null;let s="customFieldValues.".concat(t.id);if(!t.allow_list_id&&t.field_type===r.AL.STRING)return(0,c.jsx)(m.gN,{name:s,children:e=>{let{field:s}=e;return(0,c.jsx)(h.j0,{...s,label:t.name,tooltip:t.description,variant:"stacked"})}},e);let l=i.get(t.allow_list_id);if(!l)return null;let{options:a}=l;return(0,c.jsx)(x.d,{name:s,allowClear:!0,mode:t.field_type!==r.AL.STRING?"multiple":void 0,label:t.name,options:a,tooltip:t.description,layout:"stacked",className:"w-full"},e)})})})})}):null};s(94799)},45938:function(e,t,s){s.d(t,{Gt:function(){return m},eB:function(){return f},oI:function(){return u}});var i=s(24246),n=s(34090),l=s(27378),a=s(16134),r=s(38602),o=s(58452);let d=(0,l.createRef)(),c=(0,l.createRef)(),u=()=>{let e=(0,a.T)(),t=(0,a.C)(r.DB),s=(0,l.useCallback)(()=>{c.current=void 0,d.current=void 0},[]),i=(0,l.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!0),s())},[e,s]),n=(0,l.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!1),s())},[e,s]);return{attemptAction:(0,l.useCallback)(()=>t?(e((0,r.h7)()),d.current||(d.current=new Promise(e=>{c.current=e})),d.current):Promise.resolve(!0),[t,e]),onConfirm:i,onClose:n}},m=e=>{let{id:t,name:s}=e,{dirty:i}=(0,n.u6)(),o=(0,a.T)();return(0,l.useEffect)(()=>(o((0,r.Zu)({id:t,name:s})),()=>{o((0,r.dz)({id:t}))}),[o,t,s]),(0,l.useEffect)(()=>{o((0,r.$p)({id:t,isDirty:i}))},[i,o,t]),null},f=()=>{let{onConfirm:e,onClose:t}=u(),s=(0,a.C)(r.uv);return(0,i.jsx)(o.Z,{isOpen:s,onClose:t,onConfirm:e,isCentered:!0,title:"Unsaved Changes",message:"You have unsaved changes"})}},84720:function(e,t,s){s.d(t,{q:function(){return j}});var i=s(24246),n=s(96306),l=s(27378),a=s(34090),r=s(812),o=s(45938),d=s(14048),c=s(95492);let u=e=>{let{systems:t,dataFlows:s,onDataFlowSystemChange:l}=e,{setFieldValue:r}=(0,a.u6)(),o=s.map(e=>e.fides_key),d=e=>{let t=s.filter(t=>t.fides_key!==e.fides_key);r("dataFlowSystems",t),l(t)};return(0,i.jsxs)(n.iA_,{size:"sm","data-testid":"assign-systems-delete-table",children:[(0,i.jsx)(n.hrZ,{children:(0,i.jsxs)(n.Tr,{children:[(0,i.jsx)(n.Th,{children:"System"}),(0,i.jsx)(n.Th,{})]})}),(0,i.jsx)(n.p3B,{children:t.filter(e=>o.includes(e.fides_key)).map(e=>(0,i.jsxs)(n.Tr,{_hover:{bg:"gray.50"},"data-testid":"row-".concat(e.fides_key),children:[(0,i.jsx)(n.Td,{children:(0,i.jsx)(n.xvT,{fontSize:"xs",lineHeight:4,fontWeight:"medium",children:e.name})}),(0,i.jsx)(n.Td,{textAlign:"end",children:(0,i.jsx)(n.wpx,{"aria-label":"Unassign data flow from system",icon:(0,i.jsx)(c.l,{}),onClick:()=>d(e),"data-testid":"unassign-btn"})})]},e.fides_key))})]})};var m=s(26917),f=e=>{let{allSystems:t,dataFlowSystems:s,onChange:l,flowType:r}=e,{setFieldValue:o}=(0,a.u6)(),d=e=>{if(s.find(t=>t.fides_key===e.fides_key)){let t=s.filter(t=>t.fides_key!==e.fides_key);o("dataFlowSystems",t),l(t)}else{let t=[...s,{fides_key:e.fides_key,type:"system"}];o("dataFlowSystems",t),l(t)}};return(0,i.jsx)(n.xuv,{overflowY:"auto",maxHeight:"300px",children:(0,i.jsxs)(n.iA_,{size:"sm","data-testid":"assign-systems-table",maxHeight:"50vh",overflowY:"scroll",children:[(0,i.jsx)(n.hrZ,{position:"sticky",top:0,background:"white",zIndex:1,children:(0,i.jsxs)(n.Tr,{children:[(0,i.jsx)(n.Th,{children:"System"}),(0,i.jsxs)(n.Th,{textAlign:"right",children:["Set as ",r]})]})}),(0,i.jsx)(n.p3B,{children:t.map(e=>{let t=!!s.find(t=>t.fides_key===e.fides_key);return(0,i.jsxs)(n.Tr,{_hover:{bg:"gray.50"},"data-testid":"row-".concat(e.fides_key),children:[(0,i.jsx)(n.Td,{children:(0,i.jsx)(n.xvT,{fontSize:"xs",lineHeight:4,fontWeight:"medium",children:e.name})}),(0,i.jsx)(n.Td,{textAlign:"right",children:(0,i.jsx)(n.rAg,{checked:t,onChange:()=>d(e),"data-testid":"assign-switch"})})]},e.fides_key)})})]})})};let x=(e,t)=>{var s,i;return(null===(s=e.name)||void 0===s?void 0:s.toLocaleLowerCase().includes(t.toLocaleLowerCase()))||(null===(i=e.description)||void 0===i?void 0:i.toLocaleLowerCase().includes(t.toLocaleLowerCase()))};var h=e=>{let{currentSystem:t,systems:s,isOpen:r,onClose:o,dataFlowSystems:d,onDataFlowSystemChange:c,flowType:u}=e,{setFieldValue:h}=(0,a.u6)(),[y,p]=(0,l.useState)(""),[g,C]=(0,l.useState)(d),j=async()=>{c(g),o()},_=0===s.length,v=(0,l.useMemo)(()=>s?s.filter(e=>e.fides_key!==t.fides_key).filter(e=>x(e,y)):[],[s,t.fides_key,y]),k=(0,l.useMemo)(()=>{let e=new Set(g.map(e=>e.fides_key));return v.every(t=>e.has(t.fides_key))},[v,g]);return(0,i.jsxs)(n.u_l,{isOpen:r,onClose:o,size:"2xl",isCentered:!0,children:[(0,i.jsx)(n.ZAr,{}),(0,i.jsxs)(n.hzk,{p:8,"data-testid":"confirmation-modal",children:[(0,i.jsxs)(n.xBx,{fontWeight:"medium",display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,i.jsxs)(n.xvT,{fontSize:"2xl",lineHeight:8,fontWeight:"semibold",children:["Configure ",u.toLocaleLowerCase()," systems"]}),(0,i.jsxs)(n.j8w,{color:"success",children:["Assigned to ",g.length," systems"]})]}),(0,i.jsx)(n.fef,{"data-testid":"assign-systems-modal-body",children:_?(0,i.jsx)(n.xvT,{children:"No systems found"}):(0,i.jsxs)(n.Kqy,{spacing:4,children:[(0,i.jsxs)(n.kCb,{justifyContent:"space-between",children:[(0,i.jsx)(n.xvT,{fontSize:"sm",flexGrow:1,fontWeight:"medium",children:"Add or remove destination systems from your data map"}),(0,i.jsx)(n.xuv,{children:(0,i.jsxs)(n.NIc,{display:"flex",alignItems:"center",children:[(0,i.jsx)(n.lXp,{fontSize:"sm",htmlFor:"assign-all-systems",mb:"0",children:"Assign all systems"}),(0,i.jsx)(n.rAg,{size:"small",id:"assign-all-systems",checked:k,onChange:e=>{if(e&&s){let e=v.map(e=>({fides_key:e.fides_key,type:"system"}));h("dataFlowSystems",e),C(e)}else C([])},"data-testid":"assign-all-systems-toggle"})]})})]}),(0,i.jsx)(m.Z,{value:y,onChange:p,placeholder:"Search for systems","data-testid":"system-search",withIcon:!0}),(0,i.jsx)(f,{flowType:u,allSystems:v,dataFlowSystems:g,onChange:C})]})}),(0,i.jsxs)(n.mzw,{justifyContent:"flex-start",children:[(0,i.jsx)(n.wpx,{onClick:o,className:"mr-2","data-testid":"cancel-btn",children:"Cancel"}),!_&&(0,i.jsx)(n.wpx,{type:"primary",onClick:j,"data-testid":"confirm-btn",children:"Confirm"})]})]})]})},y=s(46628),p=s(1315);let g={dataFlowSystems:[]},C=e=>{let{system:t,isIngress:s,isSystemTab:c}=e,m=(0,n.pmc)(),f=s?"Source":"Destination",x="".concat(f,"s"),C=(0,n.qY0)(),[j]=(0,p.qQ)(),{data:_=[]}=(0,p.K3)(),v=(0,l.useMemo)(()=>{let e=s?t.ingress:t.egress;e||(e=[]);let i=_?_.map(e=>e.fides_key):[];return e.filter(e=>i.includes(e.fides_key))},[s,t,_]),[k,S]=(0,l.useState)(v);(0,l.useEffect)(()=>{S(v)},[v]);let T=async(e,i)=>{let{dataFlowSystems:n}=e,{resetForm:l}=i,a={...t,ingress:s?n:t.ingress,egress:s?t.egress:n},o=await j(a);(0,r.D4)(o)?m((0,y.Vo)("Failed to update data flows")):m((0,y.t5)("".concat(x," updated"))),l({values:{dataFlowSystems:n}})};return(0,i.jsxs)(n.Qdk,{children:[(0,i.jsx)(n.KFZ,{height:"68px",paddingLeft:c?6:2,"data-testid":"data-flow-button-".concat(f),children:(0,i.jsxs)(n.kCb,{alignItems:"center",justifyContent:"start",flex:1,textAlign:"left",children:[(0,i.jsx)(n.xvT,{fontSize:"sm",lineHeight:5,fontWeight:"semibold",mr:2,children:x}),(0,i.jsx)(n.Vp9,{ml:2,backgroundColor:"primary.400",borderRadius:"6px",color:"white",children:k.length}),(0,i.jsx)(n.LZC,{}),(0,i.jsx)(n.XEm,{})]})}),(0,i.jsx)(n.Hk3,{backgroundColor:"gray.50",padding:6,"data-testid":"data-flow-panel-".concat(f),children:(0,i.jsx)(n.Kqy,{borderRadius:"md",backgroundColor:"gray.50","aria-selected":"true",spacing:4,"data-testid":"selected",children:(0,i.jsx)(a.J9,{initialValues:g,onSubmit:T,children:e=>{let{isSubmitting:s,dirty:l,resetForm:r}=e;return(0,i.jsxs)(a.l0,{children:[(0,i.jsx)(o.Gt,{id:"".concat(t.fides_key,":").concat(f),name:"".concat(f," Data Flow")}),(0,i.jsx)(n.wpx,{onClick:C.onOpen,type:"primary",size:"small",icon:(0,i.jsx)(d.A5,{}),iconPosition:"end",className:"mb-4","data-testid":"assign-systems-btn",children:"Configure ".concat(x.toLocaleLowerCase())}),(0,i.jsx)(u,{systems:_,dataFlows:k,onDataFlowSystemChange:S}),(0,i.jsxs)("div",{className:"mt-6 flex gap-2",children:[(0,i.jsx)(n.wpx,{disabled:!l&&k===v,onClick:()=>{S(v),r({values:{dataFlowSystems:v}})},"data-testid":"cancel-btn",children:"Cancel"}),(0,i.jsx)(n.wpx,{type:"primary",htmlType:"submit",loading:s,disabled:!l&&k===v,"data-testid":"save-btn",children:"Save"})]}),C.isOpen?(0,i.jsx)(h,{currentSystem:t,systems:_,isOpen:C.isOpen,onClose:C.onClose,dataFlowSystems:k,onDataFlowSystemChange:S,flowType:f}):null]})}})})})]})},j=e=>{let{system:t,isSystemTab:s}=e;return(0,i.jsxs)(n.UQy,{allowToggle:!0,"data-testid":"data-flow-accordion",children:[(0,i.jsx)(C,{system:t,isIngress:!0,isSystemTab:s}),(0,i.jsx)(C,{system:t,isSystemTab:s})]})}},30234:function(e,t,s){var i=s(24246),n=s(96306);t.Z=e=>{let{heading:t,HeadingButton:s,children:l}=e;return(0,i.jsx)(n.Kqy,{spacing:4,children:(0,i.jsxs)(n.xuv,{maxWidth:"720px",border:"1px",borderColor:"gray.200",borderRadius:6,overflow:"visible",mt:6,children:[(0,i.jsxs)(n.xuv,{backgroundColor:"gray.50",px:6,py:4,display:"flex",flexDirection:"row",alignItems:"center",borderBottom:"1px",borderColor:"gray.200",borderTopRadius:6,children:[(0,i.jsx)(n.X6q,{as:"h3",size:"xs",children:t}),s?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.LZC,{}),(0,i.jsx)(s,{})]}):null]}),(0,i.jsx)(n.Kqy,{spacing:4,px:6,py:6,children:l})]})})}},52368:function(e,t,s){s.d(t,{f:function(){return o}});var i=s(16134),n=s(30002),l=s(28079),a=s(41966),r=s(57072);let o=e=>{let{includeDatasets:t,includeDisabled:s}=e,{isLoading:o}=(0,r.MO)(),{isLoading:d}=(0,n.te)(),{isLoading:c}=(0,l.fd)(),{isLoading:u}=(0,a.LH)({onlyUnlinkedDatasets:!1,minimal:!0},{skip:!t}),m=(0,i.C)(r.qb),f=(0,i.C)(r.Bd),x=(0,i.C)(n.ZL),h=(0,i.C)(n.H7),y=(0,i.C)(l.U3),p=(0,i.C)(l.jp),g=(0,i.C)(a.Q4);return{allDataCategories:s?m:f,allDataSubjects:s?x:h,allDataUses:s?y:p,allDatasets:t?g:void 0,isLoading:o||d||c||u}}},31883:function(e,t,s){s.d(t,{Bw:function(){return i.Bw},D4:function(){return i.D4}});var i=s(19043)}}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-ace203dfacacbdc4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8012],{43376:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/add-systems/manual",function(){return s(33688)}])},33688:function(e,t,s){"use strict";s.r(t);var a=s(24246),r=s(96306),n=s(86677),i=s(27378),o=s(16134),u=s(77213),d=s(77830),l=s(58754),m=s(41337),c=s(57865),h=s(72774),y=s(72250);let b=e=>{let{connector:t}=e;return(0,a.jsxs)(r.xuv,{display:"flex",mb:4,alignItems:"center","data-testid":"header",children:[(0,a.jsx)(m.Z,{data:null!=t?t:"ethyca",mr:2}),(0,a.jsxs)(r.X6q,{fontSize:"md",children:["Describe your ",t?t.human_readable:"new"," system"]})]})};t.default=()=>{let{connectorType:e}=(0,n.useRouter)().query,{tabData:t,activeKey:s,onTabChange:m}=(0,y.Z)({isCreate:!0}),f=(0,i.useMemo)(()=>{if(e)return JSON.parse(Array.isArray(e)?e[0]:e)},[e]),x=(0,o.C)(c.gU);return(0,a.jsxs)(u.Z,{title:"Describe your system",children:[(0,a.jsx)(l.Z,{heading:"Add systems",breadcrumbItems:[{title:"Add systems",href:d.xo},{title:"New system"}]}),(0,a.jsx)(b,{connector:f}),x?(0,a.jsx)(h.Z,{}):null,(0,a.jsxs)(r.xuv,{w:{base:"100%",md:"75%"},children:[(0,a.jsx)(r.xvT,{fontSize:"sm",mb:8,children:"Systems are anything that might store or process data in your organization, from a web application, to a database or data warehouse. Describe your system below to register it to the map. You may optionally complete data entry for the system using the additional tabs to navigate the sections."}),(0,a.jsx)(r.A5g,{items:t,activeKey:s,onChange:m})]})]})}}},function(e){e.O(0,[431,8765,9278,5163,699,5277,4164,401,9951,4808,4844,4786,2888,9774,179],function(){return e(e.s=43376)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/multiple-920fb469e0dda1d2.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5822],{87321:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/add-systems/multiple",function(){return t(17035)}])},17035:function(e,s,t){"use strict";t.r(s);var o=t(24246),n=t(96306),r=t(77213),d=t(77830),i=t(58754),a=t(15826);s.default=()=>(0,o.jsxs)(r.Z,{title:"Choose vendors",children:[(0,o.jsx)(i.Z,{heading:"Add systems",breadcrumbItems:[{title:"Add systems",href:d.xo},{title:"Choose vendors"}]}),(0,o.jsx)(n.xuv,{w:{base:"100%",md:"75%"},children:(0,o.jsxs)(n.xvT,{fontSize:"sm",mb:8,children:["Select your vendors below and they will be added as systems to your data map. Fides Compass will automatically populate the system information so that you can quickly configure privacy requests and consent. To add custom systems or unlisted vendors, please",(0,o.jsxs)(n.rUS,{href:d.N5,color:"complimentary.500",children:[" ","click here."," "]})]})}),(0,o.jsx)(a.$,{redirectRoute:d.oG})]})}},function(e){e.O(0,[401,3923,796,2888,9774,179],function(){return e(e.s=87321)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5023],{74245:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/add-systems",function(){return s(5923)}])},69e3:function(e,t,s){"use strict";var n=s(24246),i=s(96306),r=s(91507),a=s.n(r);t.Z=e=>{let{color:t,description:s,title:r,icon:l}=e;return(0,n.jsx)(i.xuv,{borderLeft:"9px solid ".concat(t),borderRadius:"6px",className:a().container,children:(0,n.jsxs)(i.V4A,{className:a().card,"data-testid":"tile-".concat(r),children:[(0,n.jsxs)("div",{className:"mb-1 flex items-center gap-1.5",children:[l,(0,n.jsx)(i.AntTypography.Title,{level:3,children:r})]}),(0,n.jsx)(i.AntTypography.Text,{children:s})]})})}},77867:function(e,t,s){"use strict";var n=s(24246),i=s(96306);t.Z=e=>{let{connected:t,...s}=e,r="red.500";return null==t?r="gray.300":t&&(r="green.500"),(0,n.jsx)(i.xuv,{width:"12px",height:"12px",borderRadius:"6px",backgroundColor:r,...s})}},59301:function(e,t,s){"use strict";var n=s(24246);let{Link:i}=s(96306).AntTypography;t.Z=e=>(0,n.jsx)(i,{target:"_blank",rel:"noopener noreferrer",...e})},77213:function(e,t,s){"use strict";s.d(t,{Z:function(){return h}});var n=s(24246),i=s(96306),r=s(88038),a=s.n(r),l=s(86677);s(27378);var o=s(25980),c=s(90867),d=s(77830),u=()=>{let e=(0,l.useRouter)();return(0,n.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(i.xuv,{children:[(0,n.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(i.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,n.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},h=e=>{let{children:t,title:s,padded:r=!0,mainProps:d}=e,h=(0,o.hz)(),m=(0,l.useRouter)(),x="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,p=!(h.flags.privacyRequestsConfiguration&&x),{data:y}=(0,c.JE)(void 0,{skip:p}),{data:j}=(0,c.PW)(void 0,{skip:p}),g=h.flags.privacyRequestsConfiguration&&(!y||!j)&&x;return(0,n.jsxs)(i.kCb,{"data-testid":s,direction:"column",h:"100vh",children:[(0,n.jsxs)(a(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",s]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(i.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[g?(0,n.jsx)(u,{}):null,t]})]})}},97181:function(e,t,s){"use strict";s.d(t,{d:function(){return c}});var n=s(24246),i=s(96306),r=s(34090),a=s(27378),l=s(46238),o=s(40324);let c=e=>{let{name:t,label:s,labelProps:c,tooltip:d,isRequired:u,layout:h="inline",helperText:m,...x}=e,[p,y,{setValue:j}]=(0,r.U$)(t),g=!!(y.touched&&y.error),[f,v]=(0,a.useState)("");p.value||"tags"!==x.mode&&"multiple"!==x.mode||(p.value=[]),"tags"===x.mode&&"string"==typeof p.value&&(p.value=[p.value]);let b="tags"===x.mode?(e,t)=>e?e.value!==f||p.value.includes(f)?x.optionRender?x.optionRender(e,t):e.label:'Create "'.concat(f,'"'):void 0:x.optionRender||void 0,w=e=>{v(e),x.onSearch&&x.onSearch(e)},C=(e,t)=>{j(e),x.onChange&&x.onChange(e,t)};return"inline"===h?(0,n.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,n.jsxs)(i.rjZ,{templateColumns:s?"1fr 3fr":"1fr",children:[s?(0,n.jsx)(o.__,{htmlFor:x.id||t,...c,children:s}):null,(0,n.jsxs)(i.jqI,{align:"center",children:[(0,n.jsxs)(i.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,n.jsx)(i.WPr,{...p,id:x.id||t,"data-testid":"controlled-select-".concat(p.name),...x,optionRender:b,onSearch:"tags"===x.mode?w:void 0,onChange:C,value:p.value||void 0,status:g?"error":void 0}),m&&(0,n.jsx)(i.Q6r,{children:m}),(0,n.jsx)(o.Bc,{isInvalid:g,message:y.error,fieldName:p.name})]}),(0,n.jsx)(l.b,{label:d,className:g?"mt-2 self-start":void 0})]})]})}):(0,n.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,n.jsxs)(i.gCW,{alignItems:"start",children:[(0,n.jsxs)(i.jqI,{align:"center",children:[s?(0,n.jsx)(o.__,{htmlFor:x.id||t,fontSize:"xs",my:0,mr:1,...c,children:s}):null,(0,n.jsx)(l.b,{label:d})]}),(0,n.jsx)(i.WPr,{...p,id:x.id||t,"data-testid":"controlled-select-".concat(p.name),...x,optionRender:b,onSearch:"tags"===x.mode?w:void 0,onChange:C,value:p.value||void 0,status:g?"error":void 0}),m&&(0,n.jsx)(i.Q6r,{style:{marginTop:0},children:m}),(0,n.jsx)(o.Bc,{isInvalid:g,message:y.error,fieldName:p.name})]})})}},16220:function(e,t,s){"use strict";s.d(t,{V:function(){return r}});var n=s(25980),i=s(77830);let r=()=>({systemOrDatamapRoute:(0,n.hz)().plus?i.oG:i.So})},57899:function(e,t,s){"use strict";var n=s(24246),i=s(96306),r=s(27378);t.Z=e=>{let{handleConfirm:t,isOpen:s,onClose:a,title:l,message:o,confirmButtonText:c="Continue",cancelButtonText:d="Cancel"}=e,u=(0,r.useRef)(null);return(0,n.jsx)(i.aRR,{isOpen:s,leastDestructiveRef:u,onClose:a,children:(0,n.jsx)(i.dhV,{children:(0,n.jsxs)(i._Tf,{alignItems:"center",textAlign:"center",children:[(0,n.jsx)(i.aNP,{marginTop:3}),(0,n.jsx)(i.fYl,{fontSize:"lg",fontWeight:"bold",children:l}),(0,n.jsx)(i.iPF,{pt:0,children:o}),(0,n.jsxs)(i.xoY,{children:[(0,n.jsx)(i.wpx,{ref:u,onClick:a,size:"large",children:d}),(0,n.jsx)(i.wpx,{onClick:()=>t(),type:"primary",size:"large",className:"ml-3","data-testid":"warning-modal-confirm-btn",children:c})]})]})})})}},5923:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return eu}});var n=s(24246),i=s(27378),r=s(16134),a=s(77213),l=s(58754),o=s(15677),c=s(96306),d=s(3124),u=s.n(d),h=s(86677),m=s(25980),x=s(14048),p=s(58452);let y=e=>{let{onCancel:t,onConfirm:s,isOpen:i,onClose:r}=e;return(0,n.jsx)(p.Z,{isOpen:i,onClose:r,onCancel:t,isCentered:!0,title:"Upgrade to choose vendors",message:"To choose vendors and have system information auto-populated using Fides Compass, you will need to upgrade Fides. Meanwhile, you can manually add individual systems using the button below.",cancelButtonText:"Add vendors manually",continueButtonText:"Upgrade",onConfirm:s})};var j=s(77830),g=s(54682),f=s(69e3),v=s(77867),b=s(32885),w=e=>{var t;let{onClick:s}=e,{plus:i,dataFlowScanning:a}=(0,m.hz)(),l=(0,r.C)(b.bw),o=null!==(t=null==l?void 0:l.cluster_health)&&void 0!==t?t:"unknown",d=o===g.wW.HEALTHY;if(!i)return null;let h=null;return a?d||(h="Your cluster appears not to be healthy. Its status is ".concat(o,".")):h="The data flow scanner is not enabled, please check your configuration.",(0,n.jsxs)(c.xuv,{position:"relative",children:[(0,n.jsx)(c.esZ,{title:h,popupVisible:!!h,children:(0,n.jsx)("button",{disabled:!a||!d,type:"button","aria-label":"Data flow scan",className:"text-left",onClick:s,children:(0,n.jsx)(f.Z,{title:"Data flow scan",color:u().FIDESUI_NECTAR,description:"Automatically discover new systems in your Kubernetes infrastructure",icon:(0,n.jsx)(x.pt,{boxSize:6}),"data-testid":"data-flow-scan-btn"})})}),a?(0,n.jsx)(v.Z,{connected:d,title:d?"Cluster is connected and healthy":"Cluster is ".concat(o),position:"absolute",right:-1,top:-1,"data-testid":"cluster-health-indicator"}):null]})},C=s(38764);let _=e=>{let{children:t}=e;return(0,n.jsx)(c.X6q,{as:"h4",size:"xs",fontWeight:"semibold",color:"gray.600",textTransform:"uppercase",mb:4,children:t})};var k=()=>{let e=(0,r.T)(),t=(0,h.useRouter)(),{isOpen:s,onClose:i,onOpen:a}=(0,c.qY0)(),{dictionaryService:l}=(0,m.hz)();return(0,n.jsxs)(c.Kqy,{spacing:9,"data-testid":"add-systems",children:[(0,n.jsxs)(c.Kqy,{spacing:6,maxWidth:"600px",children:[(0,n.jsx)(c.X6q,{as:"h3",size:"md",fontWeight:"semibold",children:"Fides helps you map your systems to manage your privacy"}),(0,n.jsx)(c.xvT,{children:"In Fides, systems describe any services that store or process data for your organization, including third-party APIs, web applications, databases, and data warehouses."}),(0,n.jsx)(c.xvT,{children:"Fides can automatically discover new systems in your AWS infrastructure or Okta accounts. For services not covered by the automated scanners or analog processes, you may also manually add new systems to your map."})]}),(0,n.jsx)(y,{isOpen:s,onConfirm:()=>{window.open("https://fid.es/upgrade-compass")},onCancel:()=>{t.push(j.N5)},onClose:i}),(0,n.jsxs)(c.xuv,{"data-testid":"manual-options",children:[(0,n.jsx)(_,{children:"Manually add systems"}),(0,n.jsxs)(c.MIq,{columns:{base:1,md:2,xl:3},spacing:"4",children:[(0,n.jsx)("button",{className:"flex flex-col text-left",type:"button","aria-label":"Add a system",onClick:()=>{e((0,o.CQ)(C.D.MANUAL)),t.push(j.N5)},"data-testid":"manual-btn",children:(0,n.jsx)(f.Z,{title:"Add a system",color:u().FIDESUI_SANDSTONE,icon:(0,n.jsx)(x.P$,{boxSize:6}),description:"Manually add a system for services not covered by automated scanners"})}),(0,n.jsx)("button",{className:"flex flex-col text-left",type:"button","aria-label":"Add multiple systems",onClick:()=>{l?(e((0,o.CQ)(C.D.MANUAL)),t.push(j.bJ)):a()},"data-testid":"multiple-btn",children:(0,n.jsx)(f.Z,{title:"Add multiple systems",color:u().FIDESUI_OLIVE,icon:(0,n.jsx)(x.P$,{boxSize:6}),description:"Choose vendors and automatically populate system details"})})]})]}),(0,n.jsxs)(c.xuv,{"data-testid":"automated-options",children:[(0,n.jsx)(_,{children:"Automated infrastructure scanning"}),(0,n.jsxs)(c.MIq,{columns:{base:1,md:2,xl:3},spacing:"4",children:[(0,n.jsx)("button",{className:"flex flex-col text-left",type:"button","aria-label":"Scan your infrastructure (AWS)",onClick:()=>{e((0,o.CQ)(g.GC.AWS)),e((0,o.sz)())},"data-testid":"aws-btn",children:(0,n.jsx)(f.Z,{title:"Scan your infrastructure (AWS)",color:u().FIDESUI_TERRACOTTA,description:"Automatically discover new systems in your AWS infrastructure",icon:(0,n.jsx)(x.bj,{boxSize:6})})}),(0,n.jsx)("button",{className:"flex flex-col text-left",type:"button","aria-label":"Scan your Sign On Provider (Okta)",onClick:()=>{e((0,o.CQ)(g.GC.OKTA)),e((0,o.sz)())},"data-testid":"okta-btn",children:(0,n.jsx)(f.Z,{title:"Scan your Sign On Provider (Okta)",color:u().FIDESUI_MINOS,description:"Automatically discover new systems in your Okta infrastructure",icon:(0,n.jsx)(x.tb,{boxSize:6})})}),(0,n.jsx)(w,{onClick:()=>{e((0,o.sz)()),e((0,o.CQ)(C.D.DATA_FLOW))}})]})]})]})},S=s(34090),T=s(55484),A=s(40324),z=s(812),q=s(41841),I=s(97181),O=s(70788),D=s(28416);let N=e=>"system_type"in e,{useGenerateMutation:R}=s(78780).u.injectEndpoints({endpoints:e=>({generate:e.mutation({query:e=>({url:"generate",method:"POST",body:e})})})});var F=s(59301);let W=e=>{let{message:t}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.izJ,{}),(0,n.jsx)(c.W20,{maxH:"50vh",overflow:"auto",children:(0,n.jsx)(c.xvT,{as:"pre","data-testid":"error-log",children:t})}),(0,n.jsx)(c.izJ,{})]})};var Z=e=>{let{error:t,scanType:s=""}=e;return(0,n.jsxs)(c.Kqy,{"data-testid":"scanner-error",spacing:"4",children:[(0,n.jsxs)(c.Ugi,{children:[(0,n.jsx)(c.j8w,{color:"error",children:"Error"}),(0,n.jsx)(c.X6q,{color:"red.500",size:"lg",children:"Failed to Scan"})]}),403===t.status&&s===g.GC.AWS?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.xvT,{"data-testid":"permission-msg",children:"Fides was unable to scan AWS. It appears that the credentials were valid to login but they did not have adequate permission to complete the scan."}),(0,n.jsxs)(c.xvT,{children:["To fix this issue, double check that you have granted"," ",(0,n.jsx)(F.Z,{href:D.zu,children:"the required permissions"})," ","to these credentials as part of your IAM policy. If you need more help in configuring IAM policies, you can read about them"," ",(0,n.jsx)(F.Z,{href:"https://docs.aws.amazon.com/IAM/latest/UserGuide/introduction_access-management.html",children:"here"}),"."]})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.xvT,{"data-testid":"generic-msg",children:"Fides was unable to scan your infrastructure. Please ensure your credentials are accurate and inspect the error log below for more details."}),(0,n.jsx)(W,{message:t.message}),(0,n.jsxs)(c.xvT,{children:["If this error does not clarify why scanning failed, please"," ",(0,n.jsx)(F.Z,{href:D.we,children:"create a new issue"}),"."]})]})]})},K=s(57899);let E=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.xvT,{color:"gray.500",mb:3,children:"Warning, you are about to cancel the scan!"}),(0,n.jsx)(c.xvT,{color:"gray.500",mb:3,children:"If you cancel scanning, the scanner will stop and no systems will be returned."}),(0,n.jsx)(c.xvT,{color:"gray.500",mb:3,children:"Are you sure you want to cancel?"})]});var U=e=>{let{title:t,onClose:s}=e,{isOpen:i,onOpen:r,onClose:a}=(0,c.qY0)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(c.Kqy,{spacing:8,"data-testid":"scanner-loading",children:[(0,n.jsxs)(c.Ugi,{children:[(0,n.jsx)(c.xvT,{alignItems:"center",as:"b",color:"gray.900",display:"flex",fontSize:"xl",children:t}),(0,n.jsx)(c.PZ7,{"data-testid":"close-scan-in-progress",display:"inline-block",onClick:r})]}),(0,n.jsx)(c.Kqy,{alignItems:"center",children:(0,n.jsx)(c.$jN,{thickness:"4px",speed:"0.65s",emptyColor:"gray.200",color:"green.300",size:"xl"})})]}),(0,n.jsx)(K.Z,{isOpen:i,onClose:a,handleConfirm:s,title:"Cancel Scan!",message:E,confirmButtonText:"Yes, Cancel",cancelButtonText:"No, Continue Scanning"})]})};let B={aws_access_key_id:"",aws_secret_access_key:"",aws_session_token:"",region_name:""},P=T.Ry().shape({aws_access_key_id:T.Z_().required().trim().matches(/^\w+$/,"Cannot contain spaces or special characters").label("Access Key ID"),aws_secret_access_key:T.Z_().required().trim().matches(/^[^\s]+$/,"Cannot contain spaces").label("Secret"),aws_session_token:T.Z_().optional().trim().matches(/^[^\s]+$/,"Cannot contain spaces").label("Session Token (for temporary credentials)"),region_name:T.Z_().required().label("Default Region")});var Y=()=>{let e=(0,r.C)(o.De),t=(0,r.T)(),{successAlert:s}=(0,q.VY)(),[a,l]=(0,i.useState)(),d=e=>{let n=(null!=e?e:[]).filter(N);t((0,o.un)(n)),t((0,o.sz)()),s("Your scan was successfully completed, with ".concat(n.length," new systems detected!"),"Scan Successfully Completed",{isClosable:!0})},u=e=>{l((0,z.nU)(e,{status:500,message:"Our system encountered a problem while connecting to AWS."}))},h=()=>{t((0,o.sz)(2))},[m,{isLoading:x}]=R(),p=async t=>{l(void 0);let s=await m({organization_key:e,generate:{config:t,target:g.GC.AWS,type:g.j.SYSTEMS}});(0,z.D4)(s)?u(s.error):d(s.data.generate_results)};return(0,n.jsx)(S.J9,{initialValues:B,validationSchema:P,onSubmit:p,children:e=>{let{isValid:t,isSubmitting:s,dirty:i}=e;return(0,n.jsx)(S.l0,{"data-testid":"authenticate-aws-form",children:(0,n.jsxs)(c.Kqy,{spacing:10,children:[s?(0,n.jsx)(U,{title:"System scanning in progress",onClose:h}):null,a?(0,n.jsx)(Z,{error:a,scanType:"aws"}):null,s||a?null:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(c.xuv,{children:[(0,n.jsx)(O.m,{className:"mb-4",items:[{title:"Add systems",href:"",onClick:e=>{e.preventDefault(),h()}},{title:"Authenticate AWS Scanner"}]}),(0,n.jsx)(c.xvT,{children:"To use the scanner to inventory systems in AWS, you must first authenticate to your AWS cloud by providing the following information:"})]}),(0,n.jsxs)(c.Kqy,{children:[(0,n.jsx)(A.j0,{name:"aws_access_key_id",label:"Access Key ID",tooltip:"The Access Key ID created by the cloud hosting provider.",isRequired:!0}),(0,n.jsx)(A.j0,{type:"password",name:"aws_secret_access_key",label:"Secret",tooltip:"The secret associated with the Access Key ID used for authentication.",isRequired:!0}),(0,n.jsx)(A.j0,{type:"password",name:"aws_session_token",label:"Session Token",tooltip:"The session token when using temporary credentials."}),(0,n.jsx)(I.d,{name:"region_name",label:"AWS Region",tooltip:"The geographic region of the cloud hosting provider you would like to scan.",options:D.xO,isRequired:!0,placeholder:"Select a region"})]})]}),s?null:(0,n.jsxs)(c.Ugi,{children:[(0,n.jsx)(c.wpx,{onClick:h,children:"Cancel"}),(0,n.jsx)(c.wpx,{htmlType:"submit",type:"primary",disabled:!i||!t,loading:x,"data-testid":"submit-btn",children:"Save and continue"})]})]})})}})};let M={orgUrl:"",token:""},X=T.Ry().shape({orgUrl:T.Z_().required().trim().url().label("URL"),token:T.Z_().required().trim().matches(/^[^\s]+$/,"Cannot contain spaces").label("Token")});var L=()=>{let e=(0,r.C)(o.De),t=(0,r.T)(),{successAlert:s}=(0,q.VY)(),[a,l]=(0,i.useState)(),d=e=>{let n=(null!=e?e:[]).filter(N);t((0,o.un)(n)),t((0,o.sz)()),s("Your scan was successfully completed, with ".concat(n.length," new systems detected!"),"Scan Successfully Completed",{isClosable:!0})},u=e=>{l((0,z.nU)(e,{status:500,message:"Our system encountered a problem while connecting to Okta."}))},h=()=>{t((0,o.sz)(2))},[m,{isLoading:x}]=R(),p=async t=>{l(void 0);let s=await m({organization_key:e,generate:{config:t,target:g.GC.OKTA,type:g.j.SYSTEMS}});(0,z.D4)(s)?u(s.error):d(s.data.generate_results)};return(0,n.jsx)(S.J9,{initialValues:M,validationSchema:X,onSubmit:p,children:e=>{let{isValid:t,isSubmitting:s,dirty:i}=e;return(0,n.jsx)(S.l0,{"data-testid":"authenticate-okta-form",children:(0,n.jsxs)(c.Kqy,{spacing:10,children:[s?(0,n.jsx)(U,{title:"System scanning in progress",onClose:h}):null,a?(0,n.jsx)(Z,{error:a}):null,s||a?null:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(c.xuv,{children:[(0,n.jsx)(O.m,{className:"mb-4",items:[{title:"Add systems",href:"",onClick:e=>{e.preventDefault(),h()}},{title:"Authenticate Okta Scanner"}]}),(0,n.jsx)(c.xvT,{children:"To use the scanner to inventory systems in Okta, you must first authenticate to your Okta account by providing the following information:"})]}),(0,n.jsxs)(c.Kqy,{children:[(0,n.jsx)(A.j0,{name:"orgUrl",label:"Domain",tooltip:"The URL for your organization's account on Okta"}),(0,n.jsx)(A.j0,{name:"token",label:"Okta token",type:"password",tooltip:"The token generated by Okta for your account."})]})]}),s?null:(0,n.jsxs)(c.Ugi,{children:[(0,n.jsx)(c.wpx,{onClick:h,children:"Cancel"}),(0,n.jsx)(c.wpx,{htmlType:"submit",type:"primary",disabled:!i||!t,loading:x,"data-testid":"submit-btn",children:"Save and continue"})]})]})})}})},$=s(46628),J=s(31883),V=()=>{let e=(0,r.T)(),t=(0,c.pmc)(),[s]=(0,b.J9)(),[a,{data:l}]=(0,b.KW)(),[d,u]=(0,i.useState)(),[h,m]=(0,i.useState)(!1),x=e=>{u((0,z.nU)(e,{status:500,message:"Our system encountered a problem while scanning your infrastructure."}))};(0,i.useEffect)(()=>{(async()=>{let{error:e}=await s();m(!(e&&(0,J.Bw)(e)&&404===e.status));let t=await a({classify:!0});(0,z.D4)(t)&&x(t.error)})()},[a,s]),(0,i.useEffect)(()=>{(async()=>{if(l){let{data:n}=await s(),i=h?(null==n?void 0:n.added_systems)||[]:l.systems;t((0,$.t5)("Your scan was successfully completed, with ".concat(i.length," new systems detected!"))),e((0,o.un)(i)),e((0,o.sz)())}})()},[l,t,e,h,s]);let p=()=>{e((0,o.sz)(2))};return d?(0,n.jsxs)(c.Kqy,{children:[(0,n.jsx)(Z,{error:d}),(0,n.jsx)(c.xuv,{children:(0,n.jsx)(c.wpx,{onClick:p,"data-testid":"cancel-btn",children:"Cancel"})})]}):(0,n.jsx)(U,{title:"Infrastructure scanning in progress",onClose:p})},G=()=>{let e=(0,r.C)(o.Ll);return(0,n.jsxs)(c.xuv,{w:"40%",children:[e===g.GC.AWS?(0,n.jsx)(Y,{}):null,e===g.GC.OKTA?(0,n.jsx)(L,{}):null,e===C.D.DATA_FLOW?(0,n.jsx)(V,{}):null]})},Q=s(83265),H=s(46238);let ee=()=>{var e,t;let s=(0,r.T)(),n=e=>{s((0,o.nD)(e)),s((0,o.sz)())},[a]=(0,Q.vz)(),[l]=(0,Q.$f)(),{data:d,isLoading:u}=(0,Q.GQ)(Q.Av),[h,m]=(0,i.useState)(!1);(0,i.useEffect)(()=>{!u&&!h&&(null==d?void 0:d.name)&&(null==d?void 0:d.description)&&s((0,o.sz)())},[u,d,s,h]);let x=(0,c.pmc)();return(0,S.TA)({initialValues:{name:null!==(e=null==d?void 0:d.name)&&void 0!==e?e:"",description:null!==(t=null==d?void 0:d.description)&&void 0!==t?t:""},onSubmit:async e=>{var t,s,i;m(!0);let r={name:null!==(t=e.name)&&void 0!==t?t:null==d?void 0:d.name,description:null!==(s=e.description)&&void 0!==s?s:null==d?void 0:d.description,fides_key:null!==(i=null==d?void 0:d.fides_key)&&void 0!==i?i:Q.Av,organization_fides_key:Q.Av};if(d){let e=await l(r);if((0,z.D4)(e)){x({status:"error",description:(0,z.e$)(e.error)});return}x.closeAll(),n(r)}else{let e=await a(r);if((0,z.D4)(e)){x({status:"error",description:(0,z.e$)(e.error)});return}x.closeAll(),n(r)}},enableReinitialize:!0,validate:e=>{let t={};return e.name||(t.name="Organization name is required"),e.description||(t.description="Organization description is required"),t}})};var et=()=>{let{errors:e,handleBlur:t,handleChange:s,handleSubmit:i,touched:r,values:a,isSubmitting:l}=ee();return(0,n.jsx)(c.m$N.form,{onSubmit:i,w:"40%","data-testid":"organization-info-form",children:(0,n.jsxs)(c.Kqy,{spacing:10,children:[(0,n.jsx)(c.X6q,{as:"h3",size:"lg",children:"Create your Organization"}),(0,n.jsx)("div",{children:"Provide your organization information. This information is used to configure your organization in Fides for data map reporting purposes."}),(0,n.jsx)(c.Kqy,{children:(0,n.jsxs)(c.NIc,{children:[(0,n.jsxs)(c.Kqy,{direction:"row",mb:5,justifyContent:"flex-end",children:[(0,n.jsx)(c.lXp,{w:"100%",children:"Organization name"}),(0,n.jsx)(c.IIB,{type:"text",id:"name",name:"name",focusBorderColor:"gray.700",onChange:s,onBlur:t,value:a.name,isInvalid:r.name&&!!e.name,minW:"65%",w:"65%","data-testid":"input-name"}),(0,n.jsx)(H.b,{label:"The legal name of your organization"})]}),(0,n.jsxs)(c.Kqy,{direction:"row",justifyContent:"flex-end",children:[(0,n.jsx)(c.lXp,{w:"100%",children:"Description"}),(0,n.jsx)(c.IIB,{type:"text",id:"description",name:"description",focusBorderColor:"gray.700",onChange:s,onBlur:t,value:a.description,isInvalid:r.description&&!!e.description,minW:"65%",w:"65%","data-testid":"input-description"}),(0,n.jsx)(H.b,{label:'An explanation of the type of organization and primary activity. For example "Acme Inc. is an e-commerce company that sells scarves."'})]})]})}),(0,n.jsx)(c.wpx,{type:"primary",htmlType:"submit",disabled:!a.name||!a.description,loading:l,"data-testid":"submit-btn",children:"Save and continue"})]})})},es=e=>{let{allColumns:t,selectedColumns:s,onChange:r}=e,a=(0,i.useMemo)(()=>{let e=new Map;return t.forEach(t=>e.set(t.name,!!s.find(e=>e.name===t.name))),e},[t,s]),l=()=>{a.forEach((e,t)=>a.set(t,!1)),r([])},o=e=>{var s;let n=null!==(s=a.get(e.name))&&void 0!==s&&s;a.set(e.name,!n),r(t.filter(e=>a.get(e.name)))};return(0,n.jsx)(c.v2r,{children:e=>{let{onClose:i}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.j2t,{as:c.wpx,icon:(0,n.jsx)(c.mCO,{}),fontWeight:"normal","data-testid":"column-dropdown",children:"Columns"}),(0,n.jsx)(c.qyq,{children:(0,n.jsxs)(c.xuv,{px:2,children:[(0,n.jsxs)(c.xuv,{display:"flex",justifyContent:"space-between",mb:2,children:[(0,n.jsx)(c.wpx,{size:"small",onClick:l,"data-testid":"column-clear-btn",children:"Clear"}),(0,n.jsx)(c.wpx,{type:"primary",size:"small",onClick:i,"data-testid":"column-done-btn",children:"Done"})]}),(0,n.jsx)(c.cOn,{colorScheme:"complimentary",children:(0,n.jsx)(c.Kqy,{children:t.map(e=>{let t=s.filter(t=>t.name===e.name).length>0;return(0,n.jsx)(c.XZJ,{id:e.name,_hover:{bg:"gray.100"},isChecked:t,onChange:()=>o(e),"data-testid":"checkbox-".concat(e.name),children:e.name},e.name)})})})]})})]})}})},en=s(16220);let ei=(e,t)=>t.split(".").reduce((e,t)=>e?e[t]:void 0,e),er=e=>{let{system:t,attribute:s}=e;if("name"===s)return(0,n.jsx)("label",{htmlFor:"checkbox-".concat(t.fides_key),children:t.name});if("fidesctl_meta.resource_id"===s){var i,r;return(0,n.jsx)(c.xuv,{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",title:(null===(i=t.fidesctl_meta)||void 0===i?void 0:i.resource_id)||"",children:null===(r=t.fidesctl_meta)||void 0===r?void 0:r.resource_id})}return(0,n.jsx)(n.Fragment,{children:ei(t,s)})},ea=e=>{let{allSystems:t,checked:s,onChange:i,columns:r,tableHeadProps:a}=e,l=e=>{s.indexOf(e)>=0?i(s.filter(t=>t.fides_key!==e.fides_key)):i([...s,e])},o=t.length===s.length;return 0===r.length?(0,n.jsx)(c.xvT,{children:"No columns selected to display"}):(0,n.jsxs)(c.iA_,{size:"sm",sx:{tableLayout:"fixed"},children:[(0,n.jsx)(c.hrZ,{...a,children:(0,n.jsxs)(c.Tr,{children:[(0,n.jsx)(c.Th,{width:"15px",children:(0,n.jsx)(c.XZJ,{colorScheme:"complimentary",title:"Select All",isChecked:o,onChange:e=>{e.target.checked?i(t):i([])},"data-testid":"select-all"})}),r.map(e=>(0,n.jsx)(c.Th,{children:e.name},e.attribute))]})}),(0,n.jsx)(c.p3B,{children:t.map(e=>(0,n.jsxs)(c.Tr,{children:[(0,n.jsx)(c.Td,{children:(0,n.jsx)(c.XZJ,{colorScheme:"complimentary",value:e.fides_key,isChecked:s.indexOf(e)>=0,onChange:()=>l(e),"data-testid":"checkbox-".concat(e.fides_key)})}),r.map(t=>(0,n.jsx)(c.Td,{children:(0,n.jsx)(er,{system:e,attribute:t.attribute})},t.attribute))]},e.fides_key))})]})};var el=s(1315);let eo=[{name:"Name",attribute:"name"},{name:"System type",attribute:"system_type"},{name:"Resource ID",attribute:"fidesctl_meta.resource_id"}];var ec=()=>{let e=(0,r.C)(o.j4),t=(0,r.T)(),s=(0,h.useRouter)(),{systemOrDatamapRoute:a}=(0,en.V)(),{isOpen:l,onOpen:d,onClose:u}=(0,c.qY0)(),[m]=(0,el.dB)(),[x,p]=(0,i.useState)(e),[y,j]=(0,i.useState)(eo),{handleError:g}=(0,q.HK)(),f=e=>{s.push(e).then(()=>{t((0,o.mc)())})},v=async()=>{let e=await m(x);return(0,z.D4)(e)?g(e.error):f(a)},b=()=>{t((0,o.sz)(2))},w=(0,n.jsxs)(c.xvT,{color:"gray.500",mb:3,children:["You’re registering ",x.length," of ",e.length," systems available. Do you want to continue with registration or cancel and register all systems now?"]});return(0,n.jsxs)(c.xuv,{maxW:"full",children:[(0,n.jsxs)(c.Kqy,{spacing:10,"data-testid":"scan-results",children:[(0,n.jsx)(O.m,{className:"mb-4",items:[{title:"Add systems",href:"",onClick:e=>{e.preventDefault(),b()}},{title:"Authenticate"},{title:"Scan results"}]}),0===e.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.xvT,{"data-testid":"no-results",children:"No results were found for your infrastructure scan."}),(0,n.jsx)(c.Ugi,{children:(0,n.jsx)(c.wpx,{onClick:b,"data-testid":"back-btn",children:"Back"})})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(c.xuv,{children:[(0,n.jsx)(c.xvT,{children:"Below are the results of your infrastructure scan. To continue, select the systems you would like registered in your data map and reports."}),(0,n.jsx)(c.xuv,{display:"flex",justifyContent:"end",children:(0,n.jsx)(es,{allColumns:eo,selectedColumns:y,onChange:j})})]}),(0,n.jsx)(ea,{allSystems:e,checked:x,onChange:p,columns:y}),(0,n.jsxs)(c.Ugi,{children:[(0,n.jsx)(c.wpx,{onClick:b,children:"Back"}),(0,n.jsx)(c.wpx,{onClick:()=>{e.length>x.length?d():v()},type:"primary",disabled:0===x.length,"data-testid":"register-btn",children:"Register selected systems"})]})]})]}),(0,n.jsx)(K.Z,{title:"Warning",message:w,handleConfirm:v,isOpen:l,onClose:u})]})},ed=()=>{let e=(0,r.C)(o.xx);return(0,n.jsx)(c.Kqy,{direction:["column","row"],bg:"white",children:(0,n.jsxs)(c.xuv,{display:"flex",justifyContent:"flex-start",w:"100%",children:[1===e?(0,n.jsx)(et,{}):null,2===e?(0,n.jsx)(k,{}):null,3===e?(0,n.jsx)(G,{}):null,4===e?(0,n.jsx)(c.xuv,{pr:10,children:(0,n.jsx)(ec,{})}):null]})})},eu=()=>{let e=(0,r.T)();return(0,i.useEffect)(()=>{e((0,o.sz)(2))},[e]),(0,n.jsxs)(a.Z,{title:"Add systems",children:[(0,n.jsx)(l.Z,{heading:"Add systems"}),(0,n.jsx)(ed,{})]})}},31883:function(e,t,s){"use strict";s.d(t,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=s(19043)},91507:function(e){e.exports={container:"CalloutNavCard_container__DXPJb",card:"CalloutNavCard_card__q_XX6"}}},function(e){e.O(0,[431,4164,2888,9774,179],function(){return e(e.s=74245)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3709],{54727:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/configure",function(){return t(47672)}])},77213:function(e,s,t){"use strict";t.d(s,{Z:function(){return p}});var n=t(24246),i=t(96306),l=t(88038),a=t.n(l),r=t(86677);t(27378);var o=t(25980),c=t(90867),d=t(77830),u=()=>{let e=(0,r.useRouter)();return(0,n.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(i.xuv,{children:[(0,n.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(i.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,n.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:s,title:t,padded:l=!0,mainProps:d}=e,p=(0,o.hz)(),x=(0,r.useRouter)(),h="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,g=!(p.flags.privacyRequestsConfiguration&&h),{data:j}=(0,c.JE)(void 0,{skip:g}),{data:m}=(0,c.PW)(void 0,{skip:g}),f=p.flags.privacyRequestsConfiguration&&(!j||!m)&&h;return(0,n.jsxs)(i.kCb,{"data-testid":t,direction:"column",h:"100vh",children:[(0,n.jsxs)(a(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",t]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(i.kCb,{as:"main",direction:"column",py:l?6:0,px:l?10:0,h:l?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[f?(0,n.jsx)(u,{}):null,s]})]})}},58754:function(e,s,t){"use strict";var n=t(24246),i=t(96306),l=t(70788);s.Z=e=>{let{heading:s,breadcrumbItems:t,isSticky:a=!0,children:r,rightContent:o,style:c,...d}=e;return(0,n.jsxs)("div",{...d,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,n.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof s?(0,n.jsx)(i.lQT,{className:t||r?"pb-4":void 0,level:1,"data-testid":"page-heading",children:s}):s,o&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!t&&(0,n.jsx)(l.m,{className:r?"pb-4":void 0,items:t,"data-testid":"page-breadcrumb"}),r]})}},70788:function(e,s,t){"use strict";t.d(s,{m:function(){return c}});var n=t(24246),i=t(96306),l=t(79894),a=t.n(l),r=t(27378);let{Text:o}=i.AntTypography,c=e=>{let{items:s,...t}=e,l=(0,r.useMemo)(()=>null==s?void 0:s.map((e,t)=>{let l=t===s.length-1,r={...e},c=r.onClick&&!r.href;return("string"==typeof r.title&&(r.title=(0,n.jsx)(o,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,id:l?"breadcrumb-current-page":void 0,children:r.title})),c)?r.title=(0,n.jsx)(i.wpx,{type:"text",size:"small",icon:r.icon,onClick:r.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:r.title}):(r.icon&&(r.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:r.icon}),r.title]})),r.href&&r.title&&(r.title=(0,n.jsx)(a(),{href:r.href,className:"ant-breadcrumb-link",children:r.title}),delete r.href)),r}),[s]);return(0,n.jsx)(i.zrq,{items:l,...t})}},6675:function(e,s,t){"use strict";t.d(s,{ZS:function(){return r},a4:function(){return l}});var n=t(3228);let i=t(78780).u.injectEndpoints({endpoints:e=>({getPurposes:e.query({query:()=>"purposes"})})}),{useGetPurposesQuery:l}=i,a={purposes:{},special_purposes:{}},r=(0,n.P1)(i.endpoints.getPurposes.select(),e=>{let{data:s}=e;return s||a})},48347:function(e,s,t){"use strict";t.d(s,{W:function(){return o},m:function(){return c}});var n=t(24246),i=t(96306),l=t(32885);let{Text:a,Title:r}=i.AntTypography,o=()=>{let{isOpen:e,onOpen:s,onClose:t}=(0,i.qY0)();return{isOpen:e,onOpen:s,onClose:t}},c=e=>{let{isOpen:s,onClose:t,fidesKey:o}=e,{data:c,isLoading:d}=(0,l.ho)(o),u=(e,s)=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r,{level:5,children:e}),(null==s?void 0:s.length)?(0,n.jsx)("div",{children:(0,n.jsx)(i.vyj,{size:[0,2],wrap:!0,children:null==s?void 0:s.map(e=>(0,n.jsx)(i.j8w,{children:e},e))})}):(0,n.jsxs)(a,{italic:!0,children:["no known ",e.toLowerCase()]})]});return(0,n.jsxs)(i.u_l,{isOpen:s,onClose:t,size:"xxl",returnFocusOnClose:!1,isCentered:!0,children:[(0,n.jsx)(i.ZAr,{}),(0,n.jsxs)(i.hzk,{maxWidth:"800px",children:[(0,n.jsx)(i.xBx,{children:c?null==c?void 0:c.name:"Vendor"}),(0,n.jsx)(i.fef,{children:d?(0,n.jsx)(i.jqI,{className:"h-80 w-full",align:"center",justify:"center",children:(0,n.jsx)(i.$jN,{})}):!!c&&(0,n.jsxs)(i.AntTypography,{children:[(0,n.jsx)(r,{level:5,children:"Purposes"}),Object.entries(c.purposes||{}).length>0?(0,n.jsx)(i.UQy,{allowMultiple:!0,children:Object.entries(c.purposes).map((e,s)=>{let[t]=e;return(0,n.jsx)(i.Qdk,{children:e=>{let{isExpanded:s}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(i.KFZ,{backgroundColor:s?"gray.50":"unset",children:[(0,n.jsx)(i.xuv,{flex:"1",textAlign:"left",children:t}),(0,n.jsx)(i.XEm,{})]}),(0,n.jsxs)(i.Hk3,{backgroundColor:"gray.50",children:[(0,n.jsx)(i.jqI,{className:"my-4",vertical:!0,children:u("Data uses",c.purposes[t].data_uses)}),(0,n.jsx)(i.jqI,{className:"my-4",vertical:!0,children:u("Legal basis",c.purposes[t].legal_bases)})]})]})}},s)})}):(0,n.jsx)(a,{italic:!0,children:"no known purposes"}),(0,n.jsx)("div",{className:"my-4",children:u("Features",c.features)}),(0,n.jsx)("div",{className:"my-4",children:u("Data categories",c.data_categories)})]})}),(0,n.jsxs)(i.mzw,{children:[(0,n.jsx)(i.wpx,{size:"small",onClick:t,children:"Close"}),(0,n.jsx)(i.LZC,{})]})]})]})}},47672:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return N}});var n=t(24246),i=t(96306),l=t(27378),a=t(77213),r=t(58754),o=t(92222),c=t(59003),d=t(25980),u=t(47935),p=t(86677);let x=(e,s)=>{let t=e.filter(e=>e.isChecked);return t.length>0?"".concat(s,"=").concat(t.map(e=>e.value).join("&".concat(s,"="))):void 0},h=e=>{let{value:s,displayText:t,isChecked:l,onCheckboxChange:a}=e;return(0,n.jsx)(i.XZJ,{value:s,height:"20px",mb:"25px",isChecked:l,onChange:e=>{let{target:t}=e;a(s,t.checked)},_focusWithin:{bg:"gray.100"},colorScheme:"complimentary",children:(0,n.jsx)(i.xvT,{fontSize:"sm",lineHeight:5,textOverflow:"ellipsis",overflow:"hidden",children:t})},s)},g=e=>{let{options:s,header:t,onCheckboxChange:a,columns:r=3,numDefaultOptions:o=15}=e,[c,d]=(0,l.useState)(!1),u=c?s:s.slice(0,o),p=s.length>o;return(0,n.jsxs)(i.Qdk,{border:"0px",padding:"12px 8px 8px 12px",children:[(0,n.jsx)(i.X6q,{height:"56px",children:(0,n.jsxs)(i.KFZ,{height:"100%",children:[(0,n.jsx)(i.xuv,{flex:"1",alignItems:"center",justifyContent:"center",textAlign:"left",fontWeight:600,children:t}),(0,n.jsx)(i.XEm,{})]})}),(0,n.jsxs)(i.Hk3,{id:"panel-".concat(t),children:[(0,n.jsx)(i.MIq,{columns:r,children:u.map(e=>(0,n.jsx)(h,{...e,onCheckboxChange:a},e.value))}),!c&&p?(0,n.jsx)(i.wpx,{type:"text",onClick:()=>{d(!0)},children:"View more"}):null,c&&p?(0,n.jsx)(i.wpx,{type:"text",onClick:()=>{d(!1)},children:"View less"}):null]})]})},j=e=>{let{heading:s,children:t}=e;return(0,n.jsxs)(i.xuv,{padding:"12px 8px 8px 12px",maxHeight:600,children:[s?(0,n.jsx)(i.X6q,{size:"md",lineHeight:6,fontWeight:"bold",mb:2,children:s}):null,t]})},m=e=>{let{resetFilters:s,isOpen:t,onClose:l,children:a,...r}=e;return(0,n.jsxs)(i.u_l,{isOpen:t,onClose:l,isCentered:!0,size:"2xl",...r,children:[(0,n.jsx)(i.ZAr,{}),(0,n.jsxs)(i.hzk,{children:[(0,n.jsx)(i.xBx,{children:"Filters"}),(0,n.jsx)(i.olH,{}),(0,n.jsx)(i.izJ,{}),(0,n.jsx)(i.fef,{maxH:"85vh",padding:"0px",overflowX:"auto",style:{scrollbarGutter:"stable"},children:a}),(0,n.jsx)(i.mzw,{children:(0,n.jsxs)(i.xuv,{display:"flex",justifyContent:"space-between",width:"100%",children:[(0,n.jsx)(i.wpx,{onClick:s,className:"mr-3 grow",children:"Reset filters"}),(0,n.jsx)(i.wpx,{type:"primary",onClick:l,className:"grow",children:"Done"})]})})]})]})};var f=t(77830),C=t(23923),v=t(16134),y=t(6675),b=t(28079);let k=()=>{let{isOpen:e,onClose:s,onOpen:t}=(0,i.qY0)();(0,b.fd)();let n=(0,v.C)(b.U3);(0,y.a4)();let a=(0,v.C)(y.ZS),[r,o]=(0,l.useState)([]),[c,d]=(0,l.useState)([]),[u,p]=(0,l.useState)([{displayText:"Consent",value:"Consent",isChecked:!1},{displayText:"Legitimate Interest",value:"Legitimate interests",isChecked:!1}]),[x,h]=(0,l.useState)([{displayText:"Advertising",value:"advertising",isChecked:!1},{displayText:"Analytics",value:"analytics",isChecked:!1},{displayText:"Functional",value:"functional",isChecked:!1},{displayText:"Essential",value:"essential",isChecked:!1}]);(0,l.useEffect)(()=>{0===c.length&&d(n.map(e=>({value:e.fides_key,displayText:e.name||e.fides_key,isChecked:!1})))},[n,c,d]),(0,l.useEffect)(()=>{0===r.length&&o([...Object.entries(a.purposes).map(e=>({value:"normal.".concat(e[0]),displayText:e[1].name,isChecked:!1})),...Object.entries(a.special_purposes).map(e=>({value:"special.".concat(e[0]),displayText:e[1].name,isChecked:!1}))])},[a,r,d]);let g=(e,s,t,n)=>{n(t.map(t=>t.value===e?{...t,isChecked:s}:t))};return{isOpen:e,onClose:s,onOpen:t,resetFilters:()=>{d(e=>e.map(e=>({...e,isChecked:!1}))),p(e=>e.map(e=>({...e,isChecked:!1}))),o(e=>e.map(e=>({...e,isChecked:!1}))),h(e=>e.map(e=>({...e,isChecked:!1})))},purposeOptions:r,onPurposeChange:(e,s)=>{g(e,s,r,o)},dataUseOptions:c,onDataUseChange:(e,s)=>{g(e,s,c,d)},legalBasisOptions:u,onLegalBasisChange:(e,s)=>{g(e,s,u,p)},consentCategoryOptions:x,onConsentCategoryChange:(e,s)=>{g(e,s,x,h)}}},w=e=>{let{isOpen:s,isTcfEnabled:t,onClose:l,resetFilters:a,purposeOptions:r,onPurposeChange:o,dataUseOptions:c,onDataUseChange:d,legalBasisOptions:u,onLegalBasisChange:p,consentCategoryOptions:x,onConsentCategoryChange:h}=e;return(0,n.jsx)(m,{isOpen:s,onClose:l,resetFilters:a,children:(0,n.jsx)(i.UQy,{children:(0,n.jsxs)(j,{children:[t?(0,n.jsx)(g,{options:r,onCheckboxChange:o,header:"TCF purposes",columns:1,numDefaultOptions:5}):null,(0,n.jsx)(g,{options:c,onCheckboxChange:d,header:"Data uses"}),t?(0,n.jsx)(g,{options:u,onCheckboxChange:p,header:"Legal basis"}):null,t?null:(0,n.jsx)(g,{options:x,onCheckboxChange:h,header:"Consent categories"})]})})})};var _=t(48347),S=t(32885);let T=(0,o.Cl)(),O={items:[],total:0,page:1,size:25,pages:1},R=()=>{let{tcf:e,dictionaryService:s}=(0,d.hz)(),{isLoading:t}=(0,S.x8)(),{isOpen:a,onOpen:r,onClose:h}=(0,_.W)(),g=(0,p.useRouter)(),[j,m]=(0,l.useState)(),{isOpen:v,onOpen:y,onClose:b,resetFilters:R,purposeOptions:z,onPurposeChange:N,dataUseOptions:F,onDataUseChange:P,legalBasisOptions:q,onLegalBasisChange:I,consentCategoryOptions:E,onConsentCategoryChange:L}=k(),Z=(0,l.useMemo)(()=>x(F,"data_uses"),[F]),M=(0,l.useMemo)(()=>x(q,"legal_bases"),[q]),V=(0,l.useMemo)(()=>x(z.filter(e=>e.value.includes("normal")).map(e=>({...e,value:e.value.split(".")[1]})),"purposes"),[z]),A=(0,l.useMemo)(()=>x(z.filter(e=>e.value.includes("special")).map(e=>({...e,value:e.value.split(".")[1]})),"special_purposes"),[z]),B=(0,l.useMemo)(()=>x(E,"consent_category"),[E]),{PAGE_SIZES:D,pageSize:U,setPageSize:W,onPreviousPageClick:H,isPreviousPageDisabled:X,onNextPageClick:Q,isNextPageDisabled:K,startRange:G,endRange:J,pageIndex:Y,setTotalPages:$,resetPageIndexToDefault:ee}=(0,u.oi)(),[es,et]=(0,l.useState)(),en=(0,l.useCallback)(e=>{ee(),et(e)},[ee,et]),{isFetching:ei,isLoading:el,data:ea}=(0,S.de)({pageIndex:Y,pageSize:U,dataUses:Z,search:es,legalBasis:M,purposes:V,specialPurposes:A,consentCategories:B}),{items:er,total:eo,pages:ec}=(0,l.useMemo)(()=>ea||O,[ea]);(0,l.useEffect)(()=>{$(ec)},[ec,$]);let ed=(0,l.useMemo)(()=>[T.accessor(e=>e.name,{id:"name",cell:e=>(0,n.jsx)(u.G3,{value:e.getValue()}),header:e=>(0,n.jsx)(u.Rr,{value:"Vendor",...e})}),T.accessor(e=>e.data_uses,{id:"tcf_purpose",cell:e=>(0,n.jsx)(u.CI,{plSuffix:"purposes",singSuffix:"purpose",count:e.getValue()}),header:e=>(0,n.jsx)(u.Rr,{value:"TCF purpose",...e})}),T.accessor(e=>e.data_uses,{id:"data_uses",cell:e=>(0,n.jsx)(u.CI,{plSuffix:"data uses",singSuffix:"data use",count:e.getValue()}),header:e=>(0,n.jsx)(u.Rr,{value:"Data use",...e})}),T.accessor(e=>e.legal_bases,{id:"legal_bases",cell:e=>(0,n.jsx)(u.CI,{plSuffix:"bases",singSuffix:"basis",count:e.getValue()}),header:e=>(0,n.jsx)(u.Rr,{value:"Legal basis",...e})}),T.accessor(e=>e.consent_categories,{id:"consent_categories",cell:e=>(0,n.jsx)(u.CI,{plSuffix:"categories",singSuffix:"category",count:e.getValue()}),header:e=>(0,n.jsx)(u.Rr,{value:"Categories",...e})}),T.accessor(e=>e.cookies,{id:"cookies",cell:e=>(0,n.jsx)(u.CI,{plSuffix:"cookies",singSuffix:"cookie",count:e.getValue()}),header:e=>(0,n.jsx)(u.Rr,{value:"Cookies",...e})})],[]),eu=(0,c.b7)({columns:ed,data:er,state:{columnVisibility:{tcf_purpose:e,data_uses:e,legal_bases:e,consent_categories:!e,cookies:!e}},getCoreRowModel:(0,o.sC)(),columnResizeMode:"onChange",enableColumnResizing:!0});return el||t?(0,n.jsx)(u.I4,{rowHeight:36,numRows:15}):(0,n.jsxs)(i.kCb,{flex:1,direction:"column",overflow:"auto",children:[a&&j?(0,n.jsx)(_.m,{isOpen:a,fidesKey:j,onClose:h}):null,(0,n.jsxs)(u.Q$,{children:[(0,n.jsx)(u.HO,{globalFilter:es,setGlobalFilter:en,placeholder:"Search"}),(0,n.jsx)(w,{isOpen:v,isTcfEnabled:e,onClose:b,resetFilters:R,purposeOptions:z,onPurposeChange:N,dataUseOptions:F,onDataUseChange:P,legalBasisOptions:q,onLegalBasisChange:I,consentCategoryOptions:E,onConsentCategoryChange:L}),(0,n.jsxs)(i.Ugi,{alignItems:"center",spacing:2,children:[(0,n.jsx)(C.Z,{buttonLabel:"Add vendors",onButtonClick:s?()=>{g.push(f.Gg)}:void 0}),(0,n.jsx)(i.wpx,{onClick:y,"data-testid":"filter-multiple-systems-btn",children:"Filter"})]})]}),(0,n.jsx)(u.ZK,{tableInstance:eu,onRowClick:e=>{m(e.fides_key),r()}}),(0,n.jsx)(u.s8,{totalRows:eo||0,pageSizes:D,setPageSize:W,onPreviousPageClick:H,isPreviousPageDisabled:X||ei,onNextPageClick:Q,isNextPageDisabled:K||ei,startRange:G,endRange:J})]})},{Text:z}=i.AntTypography;var N=()=>(0,n.jsxs)(a.Z,{title:"Vendors",children:[(0,n.jsx)(r.Z,{heading:"Vendors",children:(0,n.jsx)(z,{className:"block w-1/2",children:"Use the table below to manage your vendors. Modify the legal basis for a vendor if permitted and view and group your views by applying different filters"})}),(0,n.jsx)(R,{})]})}},function(e){e.O(0,[401,3923,2888,9774,179],function(){return e(e.s=54727)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience-9dda4de5ec580279.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[354],{55173:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/privacy-experience",function(){return s(44061)}])},59301:function(e,t,s){"use strict";var i=s(24246);let{Link:n}=s(96306).AntTypography;t.Z=e=>(0,i.jsx)(n,{target:"_blank",rel:"noopener noreferrer",...e})},32222:function(e,t,s){"use strict";s.d(t,{J:function(){return i}});let i=new Map([["overlay","Overlay"],["privacy_center","Privacy center"],["tcf_overlay","TCF overlay"],["modal","Modal"],["banner_and_modal","Banner and modal"],["headless","Headless"]])},44061:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return V}});var i=s(24246),n=s(96306),a=s(27378),r=s(35287),o=s(92222),l=s(59003),c=s(47935),d=s(86677),p=s(77830),u=s(19904),x=s(45277),h=s(59301),y=s(812),g=s(46628),m=s(32885),j=e=>{let{isOpen:t,onClose:s,testId:r="custom-asset-modal",assetType:o}=e,l=(0,a.useRef)(null),[c,d]=(0,a.useState)(null),p=(0,n.pmc)(),{getRootProps:u,getInputProps:j,isDragActive:f}=(0,x.uI)({onDrop:e=>{var t;if("css"!==(null===(t=e[0].name.split(".").pop())||void 0===t?void 0:t.toLowerCase())){p((0,g.Vo)("Only css files are allowed."));return}d(e[0])}}),[v,{isLoading:b}]=(0,m.JQ)(),w=async()=>{if(c){let e=await v({assetType:o,file:c});if((0,y.D4)(e)){p((0,g.Vo)((0,y.e$)(e.error)));return}p((0,g.t5)("Stylesheet uploaded successfully")),s()}};return(0,i.jsxs)(n.u_l,{initialFocusRef:l,isOpen:t,onClose:s,size:"2xl",children:[(0,i.jsx)(n.ZAr,{}),(0,i.jsxs)(n.hzk,{textAlign:"left",p:2,"data-testid":r,children:[(0,i.jsx)(n.xBx,{tabIndex:-1,ref:l,children:"Upload stylesheet"}),(0,i.jsxs)(n.fef,{children:[(0,i.jsxs)(n.xvT,{fontSize:"sm",mb:4,children:["To customize the appearance of your consent experiences, you may upload a CSS stylesheet. To download a template as a helpful starting point, click"," ",(0,i.jsx)(h.Z,{href:"https://raw.githubusercontent.com/ethyca/fides/main/clients/fides-js/src/components/fides.css",children:"here"}),"."," ",(0,i.jsx)(h.Z,{href:"https://fid.es/customize-styles",children:"Learn more"}),"."]}),(0,i.jsxs)(n.xuv,{...u(),bg:f?"gray.100":"gray.50",border:"2px dashed",borderColor:f?"gray.300":"gray.200",borderRadius:"md",cursor:"pointer",minHeight:"150px",display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",children:[(0,i.jsx)("input",{...j()}),c?(0,i.jsx)(n.xvT,{children:c.name}):f?(0,i.jsx)(n.xvT,{children:"Drop the file here..."}):(0,i.jsx)(n.xvT,{children:"Click or drag and drop your file here."})]})]}),(0,i.jsxs)(n.mzw,{className:"flex w-full justify-end gap-2",children:[(0,i.jsx)(n.wpx,{onClick:s,"data-testid":"cancel-btn",disabled:b,children:"Cancel"}),(0,i.jsx)(n.wpx,{type:"primary",htmlType:"submit",disabled:!c||b,onClick:w,"data-testid":"submit-btn",children:"Submit"})]})]})]})},f=e=>{let{assetType:t}=e,s=(0,n.qY0)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.wpx,{onClick:s.onOpen,children:"Upload stylesheet"}),(0,i.jsx)(j,{isOpen:s.isOpen,onClose:s.onClose,assetType:t})]})},v=s(72625),b=s(32222),w=s(94315);let C=e=>{var t;let s=null!==(t=b.J.get(e))&&void 0!==t?t:e;return(0,i.jsx)(v.G3,{value:s})},T=e=>{let{row:t,getValue:s}=e,[n]=(0,w.o3)(),[r,o]=(0,a.useState)(!1),l=async e=>{o(!0);let s=await n({id:t.original.id,disabled:!e});return o(!1),s},c=s(),{regions:d}=t.original,p=!!d&&d.length>1;return(0,i.jsx)(v.S1,{enabled:!c,onToggle:l,title:p?"Disabling multiple states":"Disabling experience",message:p?"Warning, you are about to disable this privacy experience for multiple locations. If you continue, your privacy notices will not be accessible to users in these locations.":"Warning, you are about to disable this privacy experience. If you continue, your privacy notices will not be accessible to users in this location.",loading:r})};var _=s(88340),S=s(25980),R=s(14048);let P="{privacy-center-hostname-and-path}",k='<script src="https://'.concat(P,'/fides.js"></script>'),E="<script>Fides.gtm()</script>";var z=()=>{let e=(0,n.qY0)(),t=(0,a.useRef)(null),{fidesCloud:s}=(0,S.hz)(),{data:r,isSuccess:o}=(0,m.Vh)(void 0,{skip:!s}),l=(0,a.useMemo)(()=>s&&o&&(null==r?void 0:r.privacy_center_url)?k.replace(P,r.privacy_center_url):k,[null==r?void 0:r.privacy_center_url,s,o]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.wpx,{onClick:e.onOpen,icon:(0,i.jsx)(R.TI,{}),iconPosition:"end","data-testid":"js-tag-btn",children:"Get JavaScript tag"}),(0,i.jsxs)(n.u_l,{isOpen:e.isOpen,onClose:e.onClose,isCentered:!0,size:"xl",initialFocusRef:t,children:[(0,i.jsx)(n.ZAr,{}),(0,i.jsxs)(n.hzk,{"data-testid":"copy-js-tag-modal",children:[(0,i.jsx)(n.xBx,{tabIndex:-1,ref:t,pb:0,children:"Copy JavaScript tag"}),(0,i.jsx)(n.fef,{pt:3,pb:6,children:(0,i.jsxs)(n.Kqy,{spacing:3,children:[(0,i.jsx)(n.xvT,{children:"Copy the code below and paste it onto every page of your website, as high up in the <head> as possible. Replace the bracketed component with your privacy center's hostname and path."}),(0,i.jsxs)(n.EKh,{display:"flex",justifyContent:"space-between",alignItems:"center",p:0,children:[(0,i.jsx)(n.xvT,{p:4,children:l}),(0,i.jsx)(_.Z,{copyText:l})]}),(0,i.jsx)(n.xvT,{children:"Optionally, you can enable Google Tag Manager for managing tags on your website by including the script tag below along with the Fides.js tag. Place it below the Fides.js script tag."}),(0,i.jsxs)(n.EKh,{display:"flex",justifyContent:"space-between",alignItems:"center",p:0,children:[(0,i.jsx)(n.xvT,{p:4,children:E}),(0,i.jsx)(_.Z,{copyText:E})]}),(0,i.jsxs)(n.xvT,{children:["For more information about adding a JavaScript tag to your website, please visit"," ",(0,i.jsx)(n.rUS,{color:"complimentary.500",href:"https://docs.ethyca.com/tutorials/consent-management-configuration/install-fides#install-fidesjs-script-on-your-website",isExternal:!0,children:"docs.ethyca.com"})]})]})})]})]})]})},I=s(22286),M=s(54682);let O={items:[],total:0,page:1,size:25,pages:1},D=()=>{let e=(0,d.useRouter)();return(0,i.jsxs)(n.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:[(0,i.jsxs)(n.gCW,{children:[(0,i.jsx)(n.xvT,{fontSize:"md",fontWeight:"600",children:"No privacy experiences found."}),(0,i.jsx)(n.xvT,{fontSize:"sm",children:'Click "Create new experience" to add your first privacy experience to Fides.'})]}),(0,i.jsx)(n.wpx,{onClick:()=>e.push("".concat(p.w0,"/new")),size:"small",type:"primary","data-testid":"add-privacy-experience-btn",children:"Create new experience"})]})},F=(0,o.Cl)(),N=()=>{let e=(0,d.useRouter)(),{isLoading:t}=(0,m.x8)(),s=(0,u.Tg)([M.Sh.PRIVACY_EXPERIENCE_UPDATE]),{PAGE_SIZES:r,pageSize:x,setPageSize:h,onPreviousPageClick:y,isPreviousPageDisabled:g,onNextPageClick:j,isNextPageDisabled:v,startRange:b,endRange:_,pageIndex:S,setTotalPages:R}=(0,c.oi)(),{isFetching:P,isLoading:k,data:E}=(0,w.cq)({page:S,size:x}),{items:N,total:V,pages:W}=(0,a.useMemo)(()=>E||O,[E]);(0,a.useEffect)(()=>{R(W)},[W,R]);let Z=(0,a.useMemo)(()=>[F.accessor(e=>e.name,{id:"name",cell:e=>(0,i.jsx)(c.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(c.Rr,{value:"Title",...e})}),F.accessor(e=>e.component,{id:"component",cell:e=>C(e.getValue()),header:e=>(0,i.jsx)(c.Rr,{value:"Component",...e})}),F.accessor(e=>e.regions,{id:"regions",cell:e=>(0,i.jsx)(c.WP,{suffix:"Locations",value:(0,I.JL)(e.getValue()),...e}),header:e=>(0,i.jsx)(c.Rr,{value:"Locations",...e}),meta:{showHeaderMenu:!0}}),F.accessor(e=>e.properties.map(e=>e.name),{id:"properties",cell:e=>(0,i.jsx)(c.WP,{suffix:"Properties",value:e.getValue(),...e}),header:e=>(0,i.jsx)(c.Rr,{value:"Properties",...e}),meta:{showHeaderMenu:!0}}),F.accessor(e=>e.updated_at,{id:"updated_at",cell:e=>(0,i.jsx)(c.G3,{value:new Date(e.getValue()).toDateString()}),header:e=>(0,i.jsx)(c.Rr,{value:"Last update",...e})}),s&&F.accessor(e=>e.disabled,{id:"enable",cell:T,header:e=>(0,i.jsx)(c.Rr,{value:"Enable",...e}),meta:{disableRowClick:!0}})].filter(Boolean),[s]),A=(0,l.b7)({getCoreRowModel:(0,o.sC)(),getGroupedRowModel:(0,o.qe)(),getExpandedRowModel:(0,o.rV)(),columns:Z,manualPagination:!0,data:N,state:{expanded:!0},columnResizeMode:"onChange"});return k||t?(0,i.jsx)(c.I4,{rowHeight:36,numRows:15}):(0,i.jsx)("div",{children:(0,i.jsxs)(n.kCb,{flex:1,direction:"column",overflow:"auto",children:[s&&(0,i.jsxs)(c.Q$,{children:[(0,i.jsxs)(n.Ugi,{alignItems:"center",spacing:2,children:[(0,i.jsx)(z,{}),(0,i.jsx)(u.ZP,{scopes:[M.Sh.CUSTOM_ASSET_UPDATE],children:(0,i.jsx)(f,{assetType:M.Db.CUSTOM_FIDES_CSS})})]}),(0,i.jsx)(n.wpx,{onClick:()=>e.push("".concat(p.w0,"/new")),type:"primary","data-testid":"add-privacy-experience-btn",children:"Create new experience"})]}),(0,i.jsx)(c.ZK,{tableInstance:A,onRowClick:s?t=>{let{id:i}=t;s&&e.push("".concat(p.w0,"/").concat(i))}:void 0,emptyTableNotice:(0,i.jsx)(D,{})}),(0,i.jsx)(c.s8,{totalRows:V||0,pageSizes:r,setPageSize:h,onPreviousPageClick:y,isPreviousPageDisabled:g||P,onNextPageClick:j,isNextPageDisabled:v||P,startRange:b,endRange:_})]})})};var V=()=>(0,i.jsxs)(r.Z,{title:"Privacy experiences",children:[(0,i.jsx)(n.xuv,{mb:4,"data-testid":"privacy-experience-page",children:(0,i.jsx)(n.X6q,{fontSize:"2xl",fontWeight:"semibold",mb:2,"data-testid":"header",children:"Privacy experience"})}),(0,i.jsx)(n.xvT,{fontSize:"sm",mb:8,width:{base:"100%",lg:"70%"},children:"Based on your privacy notices, Fides has created the banner and modal privacy experience configuration below. Each experience contains privacy notices and locations where the notices will be displayed. Edit each banner, modal, or privacy center to adjust the included privacy notices, locations, and text that is displayed to your users. When you’re ready to include these privacy notices on your website, copy the JavaScript using the button on this page and place it on your website."}),(0,i.jsx)(n.xuv,{children:(0,i.jsx)(N,{})})]})}},function(e){e.O(0,[5277,6853,2888,9774,179],function(){return e(e.s=55173)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-0d4844d0b808e6e4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7262],{81575:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/privacy-notices",function(){return a(13089)}])},58754:function(e,t,a){"use strict";var l=a(24246),i=a(96306),n=a(70788);t.Z=e=>{let{heading:t,breadcrumbItems:a,isSticky:s=!0,children:r,rightContent:o,style:c,...d}=e;return(0,l.jsxs)("div",{...d,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,l.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,l.jsx)(i.lQT,{className:a||r?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,l.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!a&&(0,l.jsx)(n.m,{className:r?"pb-4":void 0,items:a,"data-testid":"page-breadcrumb"}),r]})}},70788:function(e,t,a){"use strict";a.d(t,{m:function(){return c}});var l=a(24246),i=a(96306),n=a(79894),s=a.n(n),r=a(27378);let{Text:o}=i.AntTypography,c=e=>{let{items:t,...a}=e,n=(0,r.useMemo)(()=>null==t?void 0:t.map((e,a)=>{let n=a===t.length-1,r={...e},c=r.onClick&&!r.href;return("string"==typeof r.title&&(r.title=(0,l.jsx)(o,{style:{color:"inherit",maxWidth:n?void 0:400},ellipsis:!n,id:n?"breadcrumb-current-page":void 0,children:r.title})),c)?r.title=(0,l.jsx)(i.wpx,{type:"text",size:"small",icon:r.icon,onClick:r.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:r.title}):(r.icon&&(r.title=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"anticon align-text-bottom",children:r.icon}),r.title]})),r.href&&r.title&&(r.title=(0,l.jsx)(s(),{href:r.href,className:"ant-breadcrumb-link",children:r.title}),delete r.href)),r}),[t]);return(0,l.jsx)(i.zrq,{items:n,...a})}},2525:function(e,t,a){"use strict";a.d(t,{Q:function(){return r}});var l=a(24246),i=a(96306),n=a(27378),s=a(3110);let r=e=>{let{values:t,columnState:a,...r}=e,{isExpanded:o,isWrapped:c,version:d}=a||{},[u,p]=(0,n.useState)(!o),[h,x]=(0,n.useState)(!!c),[g,m]=(0,n.useState)(o?t:null==t?void 0:t.slice(0,2));(0,n.useEffect)(()=>{p(!o)},[o,d]),(0,n.useEffect)(()=>{x(!!c)},[c]),(0,n.useEffect)(()=>{(null==t?void 0:t.length)&&m(u?t.slice(0,2):t)},[u,t]);let v=(0,n.useCallback)(()=>{m(null==t?void 0:t.slice(0,2)),p(!0)},[t]),f=(0,n.useCallback)(()=>{p(!1)},[]),j=(0,n.useCallback)(()=>{u?f():v()},[u,f,v]);return(0,n.useMemo)(()=>(null==g?void 0:g.length)?(0,l.jsxs)(i.jqI,{align:"center",wrap:h?"wrap":"nowrap",gap:"small","data-testid":"tag-expandable-cell",children:[g.map(e=>(0,l.jsx)(i.j8w,{color:"white","data-testid":e.key,...r,children:e.label},e.key)),t&&t.length>2&&(0,l.jsx)(i.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),j()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:u?"+".concat(t.length-2," more"):s.T})]}):(0,l.jsx)("span",{"data-testid":"tag-expandable-cell-empty"}),[g,u,h,t,j,r])}},3110:function(e,t,a){"use strict";a.d(t,{D:function(){return s},T:function(){return n}});var l=a(24246),i=a(96306);let n="show less",s=[{key:"expand-all",label:"Expand all",icon:(0,l.jsx)(i.PJP.jbG,{})},{key:"collapse-all",label:"Collapse all",icon:(0,l.jsx)(i.PJP.MVB,{})}]},26070:function(e,t,a){"use strict";a.d(t,{v:function(){return o},Q:function(){return c.Q}});var l=a(24246),i=a(96306),n=a(27378),s=a(3110);let{Text:r}=i.AntTypography,o=e=>{let{values:t,valueSuffix:a,columnState:o}=e,{isExpanded:c,version:d}=o||{},[u,p]=(0,n.useState)(!c);(0,n.useEffect)(()=>{p(!c)},[c,d]);let h=(0,n.useCallback)(()=>{p(!0)},[]),x=(0,n.useCallback)(()=>{p(!1)},[]),g=(0,n.useCallback)(()=>{u?x():h()},[u,x,h]);return(0,n.useMemo)(()=>(null==t?void 0:t.length)?1===t.length?(0,l.jsx)(r,{ellipsis:!0,"data-testid":"list-expandable-cell-single",children:t[0]}):(0,l.jsxs)(i.jqI,{align:u?"center":"flex-start",vertical:!u,gap:u?"small":"none","data-testid":"list-expandable-cell",children:[u?(0,l.jsxs)(r,{ellipsis:!0,children:[t.length," ",a]}):(0,l.jsx)(i.krs,{dataSource:t,renderItem:e=>(0,l.jsx)("li",{children:e})}),(0,l.jsx)(i.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),g()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:u?"view":s.T})]}):null,[u,t,a,g])};var c=a(2525)},13089:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return T}});var l=a(24246),i=a(96306),n=a(27378),s=a(35287),r=a(58754),o=a(92222),c=a(59003),d=a(47935),u=a(79894),p=a.n(u),h=a(86677),x=a(77830),g=a(8411),m=a(19904),v=a(32885),f=a(22286),j=a(65063),b=a(71922),y=a(54682),w=a(26070);let k={items:[],total:0,page:1,size:25,pages:1},C=()=>(0,l.jsxs)(i.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:[(0,l.jsxs)(i.gCW,{children:[(0,l.jsx)(i.xvT,{fontSize:"md",fontWeight:"600",children:"No privacy notices found."}),(0,l.jsx)(i.xvT,{fontSize:"sm",children:'Click "Add a privacy notice" to add your first privacy notice to Fides.'})]}),(0,l.jsx)(i.wpx,{href:"".concat(x.IT,"/new"),role:"link",size:"small",type:"primary","data-testid":"add-privacy-notice-btn",children:"Add a privacy notice +"})]}),R=(0,o.Cl)(),P=()=>{let{isLoading:e}=(0,v.x8)(),t=(0,h.useRouter)(),a=(0,m.Tg)([y.Sh.PRIVACY_NOTICE_UPDATE]),{PAGE_SIZES:s,pageSize:r,setPageSize:u,onPreviousPageClick:P,isPreviousPageDisabled:T,onNextPageClick:N,isNextPageDisabled:z,startRange:_,endRange:E,pageIndex:M,setTotalPages:S}=(0,d.oi)(),{isFetching:I,isLoading:V,data:A}=(0,b.J6)({page:M,size:r}),{items:q,total:Q,pages:W}=(0,n.useMemo)(()=>A||k,[A]);(0,n.useEffect)(()=>{S(W)},[W,S]);let B=(0,n.useMemo)(()=>[R.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(d.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(d.Rr,{value:"Title",...e})}),R.accessor(e=>e.consent_mechanism,{id:"consent_mechanism",cell:e=>(0,f.JA)(e.getValue()),header:e=>(0,l.jsx)(d.Rr,{value:"Mechanism",...e})}),R.accessor(e=>e.configured_regions,{id:"regions",cell:e=>{var t,a;return(0,l.jsx)(w.Q,{values:null!==(a=null===(t=e.getValue())||void 0===t?void 0:t.map(e=>{var t;let a=(0,i.QCN)(e);return{label:a?(0,i.c1K)({isoEntry:a,showFlag:!0}):null!==(t=g.Z8[e])&&void 0!==t?t:e,key:e}}))&&void 0!==a?a:[]})},header:e=>(0,l.jsx)(d.Rr,{value:"Locations",...e}),size:250,meta:{showHeaderMenu:!0,disableRowClick:!0}}),R.accessor(e=>e.disabled,{id:"status",cell:e=>(0,f.jN)(e),header:e=>(0,l.jsx)(d.Rr,{value:"Status",...e})}),R.accessor(e=>e.framework,{id:"framework",cell:e=>e.getValue()?(0,l.jsx)(d.A4,{value:j.Ep.get(e.getValue())}):null,header:e=>(0,l.jsx)(d.Rr,{value:"Framework",...e})}),R.accessor(e=>e.children,{id:"children",cell:e=>{var t;return(null===(t=(0,f.Mq)(e.getValue()))||void 0===t?void 0:t.length)?(0,l.jsx)(d.WP,{suffix:"Children",value:(0,f.Mq)(e.getValue()),...e}):(0,l.jsx)(d.G3,{value:"Unassigned"})},header:e=>(0,l.jsx)(d.Rr,{value:"Children",...e}),meta:{showHeaderMenu:!0}}),a&&R.accessor(e=>e.disabled,{id:"enable",cell:f.PS,header:e=>(0,l.jsx)(d.Rr,{value:"Enable",...e}),meta:{disableRowClick:!0}})].filter(Boolean),[a]),L=(0,c.b7)({getCoreRowModel:(0,o.sC)(),getGroupedRowModel:(0,o.qe)(),getExpandedRowModel:(0,o.rV)(),columns:B,manualPagination:!0,data:q,state:{expanded:!0},columnResizeMode:"onChange"});return V||e?(0,l.jsx)(d.I4,{rowHeight:36,numRows:15}):(0,l.jsx)("div",{children:(0,l.jsxs)(i.kCb,{flex:1,direction:"column",overflow:"auto",children:[a&&(0,l.jsx)(d.Q$,{children:(0,l.jsx)(i.Ugi,{alignItems:"center",spacing:4,marginLeft:"auto",children:(0,l.jsx)(p(),{href:"".concat(x.IT,"/new"),passHref:!0,legacyBehavior:!0,children:(0,l.jsx)(i.wpx,{type:"primary","data-testid":"add-privacy-notice-btn",children:"Add a privacy notice +"})})})}),(0,l.jsx)(d.ZK,{tableInstance:L,onRowClick:a?e=>{let{id:l}=e;a&&t.push("".concat(x.IT,"/").concat(l))}:void 0,emptyTableNotice:(0,l.jsx)(C,{})}),(0,l.jsx)(d.s8,{totalRows:Q||0,pageSizes:s,setPageSize:u,onPreviousPageClick:P,isPreviousPageDisabled:T||I,onNextPageClick:N,isNextPageDisabled:z||I,startRange:_,endRange:E})]})})};var T=()=>(0,l.jsxs)(s.Z,{title:"Privacy notices",children:[(0,l.jsx)(r.Z,{heading:"Privacy Notices",children:(0,l.jsx)(i.xvT,{fontSize:"sm",mb:8,width:{base:"100%",lg:"50%"},children:"Manage the privacy notices and mechanisms that are displayed to your users based on their location, what information you collect about them, and how you use that data."})}),(0,l.jsx)(i.xuv,{"data-testid":"privacy-notices-page",children:(0,l.jsx)(P,{})})]})}},function(e){e.O(0,[6853,2888,9774,179],function(){return e(e.s=81575)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3422],{15806:function(e,a,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/reporting",function(){return n(31881)}])},35287:function(e,a,n){"use strict";var r=n(24246),i=n(96306),t=n(88038),s=n.n(t);n(27378),a.Z=e=>{let{children:a,title:n,mainProps:t}=e;return(0,r.jsxs)(i.kCb,{"data-testid":n,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,r.jsxs)(s(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsx)(i.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...t,children:a})]})}},58754:function(e,a,n){"use strict";var r=n(24246),i=n(96306),t=n(70788);a.Z=e=>{let{heading:a,breadcrumbItems:n,isSticky:s=!0,children:o,rightContent:l,style:_,...c}=e;return(0,r.jsxs)("div",{...c,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",..._}:{paddingBottom:"24px",..._},children:[(0,r.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof a?(0,r.jsx)(i.lQT,{className:n||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:a}):a,l&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,r.jsx)(t.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},78367:function(e,a,n){"use strict";n.d(a,{h:function(){return _}});var r=n(40431),i=n(27378),t=n(32735),s=n(55484);let o=(0,r.jo)({parse(e){let a=parseInt(e,10);try{return s.Rx().integer().positive().validateSync(a),a}catch(e){return null}},serialize:e=>e.toString()}),l=function(){var e,a;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{page:o.withDefault(t.Ej),size:n.pageSizeOptions?(0,r.bJ)(n.pageSizeOptions).withDefault(null!==(e=n.pageSize)&&void 0!==e?e:t.L8):o.withDefault(null!==(a=n.pageSize)&&void 0!==a?a:t.L8)}},_=function(){var e,a;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultPageSize:s=t.L8,pageSizeOptions:o,showSizeChanger:_=!0}=n,c=null!=o?o:t.VZ,d=(0,i.useMemo)(()=>l({pageSize:s,pageSizeOptions:o}),[s,o]),[u,F]=(0,r.XI)(d,{history:"push"}),p={pageIndex:null!==(e=u.page)&&void 0!==e?e:t.Ej,pageSize:null!==(a=u.size)&&void 0!==a?a:s};return{...p,updatePageIndex:e=>{F({page:e})},updatePageSize:e=>{F({page:e!==p.pageSize?t.Ej:p.pageIndex,size:e})},resetPagination:()=>{F({page:t.Ej,size:s})},nextPage:()=>{F(e=>{let{page:a,size:n}=e;return{page:a+1,size:n}})},previousPage:()=>{F(e=>{let{page:a,size:n}=e;return{page:a-1,size:n}})},pageSizeOptions:c,showSizeChanger:_}}},70788:function(e,a,n){"use strict";n.d(a,{m:function(){return _}});var r=n(24246),i=n(96306),t=n(79894),s=n.n(t),o=n(27378);let{Text:l}=i.AntTypography,_=e=>{let{items:a,...n}=e,t=(0,o.useMemo)(()=>null==a?void 0:a.map((e,n)=>{let t=n===a.length-1,o={...e},_=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,r.jsx)(l,{style:{color:"inherit",maxWidth:t?void 0:400},ellipsis:!t,id:t?"breadcrumb-current-page":void 0,children:o.title})),_)?o.title=(0,r.jsx)(i.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,r.jsx)(s(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[a]);return(0,r.jsx)(i.zrq,{items:t,...n})}},8411:function(e,a,n){"use strict";n.d(a,{NA:function(){return t},Z8:function(){return i}});var r=n(54682);let i={[r._F.ER]:"Eritrea",[r._F.DJ]:"Djibouti",[r._F.MR]:"Mauritania",[r._F.NA]:"Namibia",[r._F.GH]:"Ghana",[r._F.SS]:"South Sudan",[r._F.SC]:"Seychelles",[r._F.IO]:"British Indian Ocean Territory",[r._F.GQ]:"Equatorial Guinea",[r._F.AO]:"Angola",[r._F.CG]:"Republic of the Congo",[r._F.BW]:"Botswana",[r._F.BI]:"Burundi",[r._F.DZ]:"Algeria",[r._F.TD]:"Chad",[r._F.NG]:"Nigeria",[r._F.TZ]:"Tanzania",[r._F.EH]:"Western Sahara",[r._F.SN]:"Senegal",[r._F.LR]:"Liberia",[r._F.ZA]:"South Africa",[r._F.CV]:"Cape Verde",[r._F.GM]:"Gambia",[r._F.SD]:"Sudan",[r._F.KM]:"Comoros",[r._F.SZ]:"Eswatini",[r._F.UG]:"Uganda",[r._F.MG]:"Madagascar",[r._F.RW]:"Rwanda",[r._F.CD]:"DR Congo",[r._F.CM]:"Cameroon",[r._F.SH]:"Saint Helena, Ascension and Tristan da Cunha",[r._F.TG]:"Togo",[r._F.MU]:"Mauritius",[r._F.NE]:"Niger",[r._F.BJ]:"Benin",[r._F.EG]:"Egypt",[r._F.LS]:"Lesotho",[r._F.ET]:"Ethiopia",[r._F.MA]:"Morocco",[r._F.YT]:"Mayotte",[r._F.BF]:"Burkina Faso",[r._F.RE]:"R\xe9union",[r._F.ST]:"S\xe3o Tom\xe9 and Pr\xedncipe",[r._F.CF]:"Central African Republic",[r._F.MZ]:"Mozambique",[r._F.MW]:"Malawi",[r._F.ML]:"Mali",[r._F.ZM]:"Zambia",[r._F.LY]:"Libya",[r._F.GW]:"Guinea-Bissau",[r._F.SO]:"Somalia",[r._F.KE]:"Kenya",[r._F.GN]:"Guinea",[r._F.ZW]:"Zimbabwe",[r._F.TN]:"Tunisia",[r._F.SL]:"Sierra Leone",[r._F.GA]:"Gabon",[r._F.CI]:"Ivory Coast",[r._F.JO]:"Jordan",[r._F.PK]:"Pakistan",[r._F.KP]:"North Korea",[r._F.MO]:"Macau",[r._F.AM]:"Armenia",[r._F.SY]:"Syria",[r._F.TJ]:"Tajikistan",[r._F.SA]:"Saudi Arabia",[r._F.KR]:"South Korea",[r._F.NP]:"Nepal",[r._F.PH]:"Philippines",[r._F.IQ]:"Iraq",[r._F.LB]:"Lebanon",[r._F.MN]:"Mongolia",[r._F.PS]:"Palestine",[r._F.YE]:"Yemen",[r._F.JP]:"Japan",[r._F.KZ]:"Kazakhstan",[r._F.LK]:"Sri Lanka",[r._F.MM]:"Myanmar",[r._F.KG]:"Kyrgyzstan",[r._F.CN]:"China",[r._F.AF]:"Afghanistan",[r._F.OM]:"Oman",[r._F.IN]:"India",[r._F.LA]:"Laos",[r._F.UZ]:"Uzbekistan",[r._F.MV]:"Maldives",[r._F.ID]:"Indonesia",[r._F.VN]:"Vietnam",[r._F.MY]:"Malaysia",[r._F.TW]:"Taiwan",[r._F.KH]:"Cambodia",[r._F.AE]:"United Arab Emirates",[r._F.HK]:"Hong Kong",[r._F.GE]:"Georgia (Country)",[r._F.BD]:"Bangladesh",[r._F.KW]:"Kuwait",[r._F.TM]:"Turkmenistan",[r._F.QA]:"Qatar",[r._F.BH]:"Bahrain",[r._F.BN]:"Brunei",[r._F.TH]:"Thailand",[r._F.BT]:"Bhutan",[r._F.SG]:"Singapore",[r._F.IL]:"Israel",[r._F.AZ]:"Azerbaijan",[r._F.TL]:"Timor-Leste",[r._F.IR]:"Iran",[r._F.TR]:"Turkey",[r._F.MK]:"North Macedonia",[r._F.IE]:"Ireland",[r._F.DK]:"Denmark",[r._F.SK]:"Slovakia",[r._F.MD]:"Moldova",[r._F.AX]:"\xc5land Islands",[r._F.PL]:"Poland",[r._F.BA]:"Bosnia and Herzegovina",[r._F.SM]:"San Marino",[r._F.CZ]:"Czechia",[r._F.EE]:"Estonia",[r._F.XK]:"Kosovo",[r._F.FO]:"Faroe Islands",[r._F.SJ]:"Svalbard and Jan Mayen",[r._F.GG]:"Guernsey",[r._F.FR]:"France",[r._F.NL]:"Netherlands",[r._F.FI]:"Finland",[r._F.PT]:"Portugal",[r._F.DE]:"Germany",[r._F.MT]:"Malta",[r._F.JE]:"Jersey",[r._F.IS]:"Iceland",[r._F.ES]:"Spain",[r._F.GI]:"Gibraltar",[r._F.NO]:"Norway",[r._F.CY]:"Cyprus",[r._F.RS]:"Serbia",[r._F.LT]:"Lithuania",[r._F.MC]:"Monaco",[r._F.LU]:"Luxembourg",[r._F.UA]:"Ukraine",[r._F.IM]:"Isle of Man",[r._F.RO]:"Romania",[r._F.BE]:"Belgium",[r._F.SE]:"Sweden",[r._F.ME]:"Montenegro",[r._F.LV]:"Latvia",[r._F.VA]:"Vatican City",[r._F.AT]:"Austria",[r._F.AL]:"Albania",[r._F.LI]:"Liechtenstein",[r._F.GR]:"Greece",[r._F.IT]:"Italy",[r._F.AD]:"Andorra",[r._F.GB]:"United Kingdom",[r._F.RU]:"Russia",[r._F.SI]:"Slovenia",[r._F.BY]:"Belarus",[r._F.CH]:"Switzerland",[r._F.HU]:"Hungary",[r._F.BG]:"Bulgaria",[r._F.HR]:"Croatia",[r._F.TC]:"Turks and Caicos Islands",[r._F.CW]:"Cura\xe7ao",[r._F.GP]:"Guadeloupe",[r._F.UM]:"United States Minor Outlying Islands",[r._F.GT]:"Guatemala",[r._F.PM]:"Saint Pierre and Miquelon",[r._F.BQ]:"Caribbean Netherlands",[r._F.GL]:"Greenland",[r._F.SX]:"Sint Maarten",[r._F.PA]:"Panama",[r._F.AW]:"Aruba",[r._F.MQ]:"Martinique",[r._F.AG]:"Antigua and Barbuda",[r._F.BM]:"Bermuda",[r._F.CU]:"Cuba",[r._F.GD]:"Grenada",[r._F.NI]:"Nicaragua",[r._F.LC]:"Saint Lucia",[r._F.KN]:"Saint Kitts and Nevis",[r._F.DO]:"Dominican Republic",[r._F.VC]:"Saint Vincent and the Grenadines",[r._F.BZ]:"Belize",[r._F.HT]:"Haiti",[r._F.JM]:"Jamaica",[r._F.BS]:"Bahamas",[r._F.MX]:"Mexico",[r._F.MF]:"Saint Martin",[r._F.SV]:"El Salvador",[r._F.BL]:"Saint Barth\xe9lemy",[r._F.AI]:"Anguilla",[r._F.MS]:"Montserrat",[r._F.VG]:"British Virgin Islands",[r._F.BB]:"Barbados",[r._F.HN]:"Honduras",[r._F.KY]:"Cayman Islands",[r._F.DM]:"Dominica",[r._F.TT]:"Trinidad and Tobago",[r._F.CR]:"Costa Rica",[r._F.SR]:"Suriname",[r._F.CX]:"Christmas Island",[r._F.WS]:"Samoa",[r._F.PF]:"French Polynesia",[r._F.AS]:"American Samoa",[r._F.NC]:"New Caledonia",[r._F.TK]:"Tokelau",[r._F.PW]:"Palau",[r._F.KI]:"Kiribati",[r._F.VU]:"Vanuatu",[r._F.PN]:"Pitcairn Islands",[r._F.CK]:"Cook Islands",[r._F.FJ]:"Fiji",[r._F.PG]:"Papua New Guinea",[r._F.MP]:"Northern Mariana Islands",[r._F.NU]:"Niue",[r._F.TV]:"Tuvalu",[r._F.NF]:"Norfolk Island",[r._F.TO]:"Tonga",[r._F.FM]:"Micronesia",[r._F.SB]:"Solomon Islands",[r._F.NR]:"Nauru",[r._F.WF]:"Wallis and Futuna",[r._F.GU]:"Guam",[r._F.AU]:"Australia",[r._F.NZ]:"New Zealand",[r._F.MH]:"Marshall Islands",[r._F.CC]:"Cocos (Keeling) Islands",[r._F.VE]:"Venezuela",[r._F.PY]:"Paraguay",[r._F.BR]:"Brazil",[r._F.CO]:"Colombia",[r._F.PE]:"Peru",[r._F.CL]:"Chile",[r._F.UY]:"Uruguay",[r._F.AR]:"Argentina",[r._F.GY]:"Guyana",[r._F.BO]:"Bolivia",[r._F.GF]:"French Guiana",[r._F.EC]:"Ecuador",[r._F.FK]:"Falkland Islands",[r._F.US_AL]:"Alabama",[r._F.US_AK]:"Alaska",[r._F.US_AZ]:"Arizona",[r._F.US_AR]:"Arkansas",[r._F.US_CA]:"California",[r._F.US_CO]:"Colorado",[r._F.US_CT]:"Connecticut",[r._F.US_DE]:"Delaware",[r._F.US_DC]:"District of Columbia (DC)",[r._F.US_FL]:"Florida",[r._F.US_GA]:"Georgia",[r._F.US_HI]:"Hawaii",[r._F.US_ID]:"Idaho",[r._F.US_IL]:"Illinois",[r._F.US_IN]:"Indiana",[r._F.US_IA]:"Iowa",[r._F.US_KS]:"Kansas",[r._F.US_KY]:"Kentucky",[r._F.US_LA]:"Louisiana",[r._F.US_ME]:"Maine",[r._F.US_MD]:"Maryland",[r._F.US_MA]:"Massachusetts",[r._F.US_MI]:"Michigan",[r._F.US_MN]:"Minnesota",[r._F.US_MS]:"Mississippi",[r._F.US_MO]:"Missouri",[r._F.US_MT]:"Montana",[r._F.US_NE]:"Nebraska",[r._F.US_NV]:"Nevada",[r._F.US_NH]:"New Hampshire",[r._F.US_NJ]:"New Jersey",[r._F.US_NM]:"New Mexico",[r._F.US_NY]:"New York",[r._F.US_NC]:"North Carolina",[r._F.US_ND]:"North Dakota",[r._F.US_OH]:"Ohio",[r._F.US_OK]:"Oklahoma",[r._F.US_OR]:"Oregon",[r._F.US_PA]:"Pennsylvania",[r._F.US_PR]:"Puerto Rico",[r._F.US_RI]:"Rhode Island",[r._F.US_SC]:"South Carolina",[r._F.US_SD]:"South Dakota",[r._F.US_TN]:"Tennessee",[r._F.US_TX]:"Texas",[r._F.US_UT]:"Utah",[r._F.US_VA]:"Virginia",[r._F.US_VI]:"United States Virgin Islands",[r._F.US_VT]:"Vermont",[r._F.US_WA]:"Washington",[r._F.US_WV]:"West Virginia",[r._F.US_WI]:"Wisconsin",[r._F.US_WY]:"Wyoming",[r._F.CA_AB]:"Alberta",[r._F.CA_BC]:"British Columbia",[r._F.CA_MB]:"Manitoba",[r._F.CA_NB]:"New Brunswick",[r._F.CA_NL]:"Newfoundland and Labrador",[r._F.CA_NS]:"Nova Scotia",[r._F.CA_ON]:"Ontario",[r._F.CA_PE]:"Prince Edward Island",[r._F.CA_QC]:"Quebec",[r._F.CA_SK]:"Saskatchewan",[r._F.CA_NT]:"Northwest Territories",[r._F.CA_NU]:"Nunavut",[r._F.CA_YT]:"Yukon",[r._F.CA]:"Canada",[r._F.US]:"United States",[r._F.MEXICO_CENTRAL_AMERICA]:"Mexico and Central America",[r._F.CARIBBEAN]:"Caribbean",[r._F.EEA]:"European Economic Area (EEA)",[r._F.NON_EEA]:"Non European Economic Area",[r._F.GLOBAL]:"Global"},t=new Map(Object.entries(i));Object.entries(i).map(e=>({value:e[0],label:e[1]}))},31881:function(e,a,n){"use strict";n.r(a),n.d(a,{default:function(){return K}});var r=n(24246),i=n(59003),t=n(92222),s=n(27693),o=n.n(s),l=n(96306),_=n(27378),c=n(35287),d=n(78367),u=n(58754),F=n(47935),p=n(46628),h=n(78780);let g=e=>{var a,n;return null==e?void 0:null===(n=e.startOf("day"))||void 0===n?void 0:null===(a=n.utc())||void 0===a?void 0:a.toISOString()},S=e=>{var a,n;return null==e?void 0:null===(n=e.endOf("day"))||void 0===n?void 0:null===(a=n.utc())||void 0===a?void 0:a.toISOString()},{useLazyDownloadReportQuery:m,useGetAllHistoricalPrivacyPreferencesQuery:x,useLazyGetCurrentPrivacyPreferencesQuery:C}=h.u.injectEndpoints({endpoints:e=>({getCurrentPrivacyPreferences:e.query({query:e=>{let{search:a}=e;return{url:"current-privacy-preferences",params:{email:a,phone_number:a,fides_user_device_id:a,external_id:a}}},providesTags:["Current Privacy Preferences"]}),downloadReport:e.query({query:e=>{let{startDate:a,endDate:n}=e;return{url:"plus/consent_reporting",params:{created_gt:g(a),created_lt:S(n),download_csv:"true"},responseHandler:"content-type"}},providesTags:["Consent Reporting Export"]}),getAllHistoricalPrivacyPreferences:e.query({query:e=>{let{page:a,size:n,startDate:r,endDate:i,includeTotal:t=!0}=e;return{url:"historical-privacy-preferences",params:{page:a,size:n,request_timestamp_gt:g(r),request_timestamp_lt:S(i),include_total:t}}},providesTags:["Consent Reporting"]})})});var j=n(90104),v=n.n(j),b=n(812),y=n(54682);let A={[y.pq.OPT_IN]:"Opt in",[y.pq.OPT_OUT]:"Opt out",[y.pq.ACKNOWLEDGE]:"Acknowledge",[y.pq.TCF]:"TCF"},f={[y.pq.OPT_IN]:"success",[y.pq.OPT_OUT]:"error",[y.pq.ACKNOWLEDGE]:"default",[y.pq.TCF]:"sandstone"},N={[y.jP.ACCEPT]:"Accept",[y.jP.BUTTON]:"Button",[y.jP.DISMISS]:"Dismiss",[y.jP.GPC]:"GPC",[y.jP.REJECT]:"Reject",[y.jP.SAVE]:"Save",[y.jP.SCRIPT]:"Script",[y.jP.INDIVIDUAL_NOTICE]:"Individual Notice",[y.jP.ACKNOWLEDGE]:"Acknowledge"},I={[y.Tz.API]:"API",[y.Tz.BANNER_AND_MODAL]:"Banner and Modal",[y.Tz.MODAL]:"Modal",[y.Tz.OVERLAY]:"Overlay",[y.Tz.PRIVACY_CENTER]:"Privacy Center",[y.Tz.TCF_OVERLAY]:"TCF Overlay"},M=(0,t.Cl)();var P=()=>(0,_.useMemo)(()=>[M.accessor(e=>e.notice_name,{id:"notice_name",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(F.G3,{value:a()})},header:e=>(0,r.jsx)(F.Rr,{value:"Privacy notice",...e}),enableSorting:!1}),M.accessor(e=>e.notice_key,{id:"notice_key",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(F.G3,{value:a()})},header:e=>(0,r.jsx)(F.Rr,{value:"Notice Key",...e}),enableSorting:!1}),M.accessor(e=>e.preference,{id:"preference",cell:e=>{let{getValue:a}=e,n=a(),i=n&&A[n]||n,t=n&&f[n]||"";return(0,r.jsx)(F.A4,{color:t,value:i})},header:e=>(0,r.jsx)(F.Rr,{value:"Preference",...e}),enableSorting:!1,size:100}),M.accessor(e=>e.privacy_notice_history_id,{id:"privacy_notice_history_id",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(F.G3,{value:a()})},header:e=>(0,r.jsx)(F.Rr,{value:"Privacy Notice History Id",...e}),enableSorting:!1})],[]),T=n(47003),E=n.n(T);let w=(0,t.Cl)();var R=()=>{let e=(0,_.useCallback)(e=>{let a=[];if(e){let{preferences:n,...r}=e;E()(r,(e,n)=>{e&&e.forEach(e=>{a.push({key:n,id:e.id,preference:e.preference})})})}return a},[]),a=(0,_.useCallback)(e=>e.filter(e=>!(e.key.startsWith("system_")||e.key.startsWith("vendor_"))),[]);return{tcfColumns:(0,_.useMemo)(()=>[w.accessor(e=>e.key,{id:"key",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(F.G3,{value:a()})},header:e=>(0,r.jsx)(F.Rr,{value:"Type",...e}),enableSorting:!1}),w.accessor(e=>e.id,{id:"id",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(F.G3,{value:a()})},header:e=>(0,r.jsx)(F.Rr,{value:"ID",...e}),enableSorting:!1}),w.accessor(e=>e.preference,{id:"preference",cell:e=>{let{getValue:a}=e,n=a(),i=n&&A[n]||n,t=n&&f[n]||"";return(0,r.jsx)(F.A4,{color:t,value:i})},header:e=>(0,r.jsx)(F.Rr,{value:"Preference",...e}),enableSorting:!1,size:100})],[]),mapTcfPreferencesToRowColumns:e,filterTcfConsentPreferences:a}},U=e=>{let{isOpen:a,onClose:n}=e,[s,o]=(0,_.useState)(!1),[c,d]=(0,_.useState)(),[u]=C(),p=(0,l.pmc)();(0,_.useEffect)(()=>{a||(d(void 0),o(!1))},[a]);let h=async e=>{o(!0);let{data:a,isError:n,error:r}=await u({search:e}),i=r&&"status"in r&&(null==r?void 0:r.status);n&&404!==i?p({status:"error",description:(0,b.e$)(r,"A problem occurred while looking up the preferences.")}):d(a||null),o(!1)},g=P(),S=(null==c?void 0:c.preferences)||[],m=!v()(S),x=(0,i.b7)({getCoreRowModel:(0,t.sC)(),data:S,columns:g,getRowId:e=>"".concat(e.privacy_notice_history_id),manualPagination:!0}),{tcfColumns:j,mapTcfPreferencesToRowColumns:y,filterTcfConsentPreferences:A}=R(),f=A(y(c)),N=!v()(f),I=(0,i.b7)({getCoreRowModel:(0,t.sC)(),data:f,columns:j,getRowId:e=>"".concat(e.key,"-").concat(e.id),manualPagination:!0});return(0,r.jsxs)(l.u_l,{id:"consent-lookup-modal",isOpen:a,onClose:n,size:"6xl",returnFocusOnClose:!1,isCentered:!0,children:[(0,r.jsx)(l.ZAr,{}),(0,r.jsxs)(l.hzk,{children:[(0,r.jsx)(l.olH,{}),(0,r.jsx)(l.xBx,{pb:2,children:"Consent preference lookup"}),(0,r.jsxs)(l.fef,{children:[(0,r.jsx)(l.AntTypography.Paragraph,{children:"Use this search to look up an individual's latest consent record. You can search by phone number, email, external ID or device ID to retrieve the most recent consent preference associated with that exact identifier."}),(0,r.jsxs)(l.AntTypography.Paragraph,{children:[(0,r.jsx)("strong",{children:"Note:"})," This is an exact match search—partial entries or similar results will not be returned. This lookup retrieves only the most recent consent preference, not the full consent history."]}),(0,r.jsx)(l.PPS,{layout:"vertical",className:"w-1/2",children:(0,r.jsx)(l.PPS.Item,{label:"Subject search",className:"mb-4 mt-6",children:(0,r.jsx)(l.uFc.Search,{"data-testid":"subject-search-input",placeholder:"Enter email, phone number, external ID or device ID",enterButton:"Search",onSearch:h,loading:s})})}),(0,r.jsxs)("div",{className:"mb-4",children:[(!N||m)&&(0,r.jsx)(F.ZK,{tableInstance:x,emptyTableNotice:(0,r.jsx)(l.oj8,{description:void 0===c?"Search for an email, phone number, or device ID.":"No results found.",image:l.oj8.PRESENTED_IMAGE_SIMPLE,imageStyle:{marginBottom:15}})}),N&&(0,r.jsx)("div",{className:"mt-4",children:(0,r.jsx)(F.ZK,{tableInstance:I})})]})]})]})]})},G=()=>{let e=(0,l.pmc)(),[a,{isFetching:n}]=m();return{downloadReport:async n=>{let{startDate:r,endDate:i}=n,t=await a({startDate:r,endDate:i});if(t.isError)e({status:"error",description:(0,b.e$)(t.error,"A problem occurred while generating your consent report. Please try again.")});else{let e=document.createElement("a"),a=new Blob([t.data],{type:"text/csv"});e.href=window.URL.createObjectURL(a),e.download="consent-reports.csv",e.click()}},isDownloadingReport:n}},k=e=>{let{isOpen:a,onClose:n,startDate:i,endDate:t}=e,{downloadReport:s,isDownloadingReport:o}=G(),_=async()=>{await s({startDate:i,endDate:t}),n()};return(0,r.jsxs)(l.u_l,{id:"consent-report-download-modal",isOpen:a,onClose:n,size:"xl",returnFocusOnClose:!1,isCentered:!0,children:[(0,r.jsx)(l.ZAr,{}),(0,r.jsxs)(l.hzk,{children:[(0,r.jsx)(l.olH,{}),(0,r.jsx)(l.xBx,{pb:2,children:"Download consent report"}),(0,r.jsxs)(l.fef,{children:[(0,r.jsx)(l.AntTypography.Paragraph,{children:"The downloaded CSV may differ from the UI in Fides, including column order and naming."}),(0,r.jsx)(l.AntTypography.Paragraph,{children:'For large datasets, file generation may take a few minutes after selecting "Download".'}),(0,r.jsx)(l.jqI,{justify:"flex-end",children:(0,r.jsx)(l.wpx,{loading:o,onClick:_,"data-testid":"download-report-btn",type:"primary",className:"mb-2",children:"Download"})})]})]})]})},B=e=>{let{isOpen:a,onClose:n,tcfPreferences:s}=e,{tcfColumns:o,mapTcfPreferencesToRowColumns:_,filterTcfConsentPreferences:c}=R(),d=c(_(s)),u=(0,i.b7)({getCoreRowModel:(0,t.sC)(),data:d||[],columns:o,getRowId:e=>"".concat(e.key,"-").concat(e.id),manualPagination:!0});return(0,r.jsxs)(l.u_l,{id:"consent-lookup-modal",isOpen:a,onClose:n,size:"4xl",returnFocusOnClose:!1,isCentered:!0,children:[(0,r.jsx)(l.ZAr,{}),(0,r.jsxs)(l.hzk,{"data-testid":"consent-tcf-detail-modal",children:[(0,r.jsx)(l.olH,{}),(0,r.jsx)(l.xBx,{pb:2,children:"TCF Consent Details"}),(0,r.jsx)(l.fef,{children:(0,r.jsx)("div",{className:"mb-4",children:(0,r.jsx)(F.ZK,{tableInstance:u,emptyTableNotice:(0,r.jsx)(l.oj8,{description:" No data found",image:l.oj8.PRESENTED_IMAGE_SIMPLE,imageStyle:{marginBottom:15}})})})})]})]})},O=n(8411),D=n(72625);let L=(0,t.Cl)();var z=e=>{let{onTcfDetailViewClick:a}=e;return(0,_.useMemo)(()=>[L.accessor(e=>e.fides_user_device_id,{id:"fides_user_device_id",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(F.G3,{value:a()})},header:e=>(0,r.jsx)(F.Rr,{value:"User device ID",...e}),enableSorting:!1}),L.accessor(e=>e.user_geography,{id:"user_geography",cell:e=>{let{getValue:a}=e,n=a(),i=n&&O.Z8[n]||n;return(0,r.jsx)(F.G3,{value:i})},header:e=>(0,r.jsx)(F.Rr,{value:"User geography",...e}),enableSorting:!1}),L.accessor(e=>e.preference,{id:"preference",cell:e=>{let{getValue:n,row:i}=e,t=n(),s=t&&A[t]||t,o=t&&f[t]||"";return"tcf"===t&&i.original.tcf_preferences?(0,r.jsx)(l.j8w,{color:o,closeIcon:(0,r.jsx)(l.PJP.daM,{}),closeButtonLabel:"View details",onClose:()=>a(i.original.tcf_preferences),children:s}):(0,r.jsx)(F.A4,{color:o,value:s})},header:e=>(0,r.jsx)(F.Rr,{value:"Preference",...e}),enableSorting:!1,size:100}),L.accessor(e=>e.notice_name,{id:"notice_name",cell:e=>{let{getValue:a}=e,n=a(),i="tcf"===n?n.toUpperCase():n;return(0,r.jsx)(F.G3,{value:i})},header:e=>(0,r.jsx)(F.Rr,{value:"Privacy notice",...e}),enableSorting:!1}),L.accessor(e=>e.method,{id:"method",cell:e=>{let{getValue:a}=e,n=a(),i=n&&N[n]||n;return(0,r.jsx)(F.G3,{value:i})},header:e=>(0,r.jsx)(F.Rr,{value:"Method",...e}),enableSorting:!1,size:100}),L.accessor(e=>e.request_origin,{id:"request_origin",cell:e=>{let{getValue:a}=e,n=a(),i=n&&I[n]||n;return(0,r.jsx)(F.G3,{value:i})},header:e=>(0,r.jsx)(F.Rr,{value:"Request origin",...e}),enableSorting:!1,size:120}),L.accessor(e=>e.request_timestamp,{id:"request_timestamp",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(D.Cy,{time:a()})},header:e=>(0,r.jsx)(F.Rr,{value:"Request timestamp",...e}),size:120}),L.accessor(e=>e.url_recorded,{id:"url_recorded",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(F.G3,{value:a()})},header:e=>(0,r.jsx)(F.Rr,{value:"Recorded URL",...e})}),L.accessor(e=>e.external_id,{id:"external_id",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(F.G3,{value:a()})},header:e=>(0,r.jsx)(F.Rr,{value:"External ID",...e}),enableSorting:!1}),L.accessor(e=>e.email,{id:"email",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(F.G3,{value:(0,r.jsx)(l.AntTypography.Link,{href:"mailto:".concat(a()),children:a()})})},header:e=>(0,r.jsx)(F.Rr,{value:"Email",...e}),enableSorting:!1}),L.accessor(e=>e.id,{id:"id",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(F.G3,{value:a()})},header:e=>(0,r.jsx)(F.Rr,{value:"Preference ID",...e}),enableSorting:!1})],[a])},K=()=>{var e,a;let n=(0,_.useMemo)(()=>o()(),[]),[s,h]=(0,_.useState)(null),[g,S]=(0,_.useState)(null),[m,C]=(0,_.useState)(!1),[j,v]=(0,_.useState)(!1),[b,y]=(0,_.useState)(!1),[A,f]=(0,_.useState)(),{pageIndex:N,pageSize:I,updatePageIndex:M,updatePageSize:P,nextPage:T,previousPage:E}=(0,d.h)(),w=(0,l.pmc)(),{data:R,isLoading:G,isFetching:O,refetch:D}=x({page:N,size:I,startDate:s,endDate:g,includeTotal:!1}),{items:L}=(0,_.useMemo)(()=>R||{items:[],total:0,pages:0},[R]),K=z({onTcfDetailViewClick:e=>{y(!0),f(e)}}),V=(0,i.b7)({getCoreRowModel:(0,t.sC)(),data:L,columns:K,getRowId:e=>"".concat(e.id),manualPagination:!0}),q=async()=>{M(1),await D(),w((0,p.t5)("Consent report refreshed successfully.","Report Refreshed"))};return(0,r.jsxs)(c.Z,{title:"Consent reporting",children:[(0,r.jsx)(u.Z,{heading:"Consent reporting",rightContent:(0,r.jsx)(l.wpx,{type:"primary",onClick:q,loading:O,children:"Refresh"})}),(0,r.jsx)("div",{"data-testid":"consent-reporting",className:"overflow-auto",children:(0,r.jsx)(l.jqI,{vertical:!0,gap:"middle",children:G?(0,r.jsx)("div",{className:"border p-2",children:(0,r.jsx)(F.I4,{rowHeight:26,numRows:10})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{children:[(0,r.jsxs)(F.Q$,{children:[(0,r.jsx)(l.gwi,{placeholder:["From","To"],maxDate:n,"data-testid":"input-date-range",onChange:e=>{h(e&&e[0]),S(e&&e[1])}}),(0,r.jsxs)(l.jqI,{gap:12,children:[(0,r.jsx)(l.wpx,{icon:(0,r.jsx)(l.PJP.UWx,{}),"data-testid":"download-btn",onClick:()=>v(!0),"aria-label":"Download Consent Report"}),(0,r.jsx)(l.S0p,{menu:{items:[{key:"1",label:(0,r.jsx)("span",{"data-testid":"consent-preference-lookup-btn",children:"Consent preference lookup"}),onClick:()=>C(!0)}]},overlayStyle:{width:"220px"},trigger:["click"],children:(0,r.jsx)(l.wpx,{icon:(0,r.jsx)(l.PJP.r43,{}),"data-testid":"consent-reporting-dropdown-btn"})})]})]}),(0,r.jsx)(F.ZK,{tableInstance:V,emptyTableNotice:(0,r.jsx)(l.oj8,{description:"No results.",image:l.oj8.PRESENTED_IMAGE_SIMPLE,styles:{image:{marginBottom:15}}})})]}),(0,r.jsxs)(l.jqI,{gap:"middle",align:"center",justify:"right",children:[(0,r.jsx)(l.wpx,{onClick:E,disabled:1===N,icon:(0,r.jsx)(l.PJP.s$$,{"aria-hidden":!0}),"aria-label":"Previous"}),(0,r.jsx)("span",{"aria-label":"Page ".concat(N),children:N}),(0,r.jsx)(l.wpx,{onClick:T,disabled:(null!==(a=null==R?void 0:null===(e=R.items)||void 0===e?void 0:e.length)&&void 0!==a?a:0)<I,icon:(0,r.jsx)(l.PJP._Qn,{"aria-hidden":!0}),"aria-label":"Next"}),(0,r.jsx)(l.WPr,{className:"w-auto",value:I,onChange:P,options:[{label:25,value:25},{label:50,value:50},{label:100,value:100}],labelRender:e=>{let{value:a}=e;return(0,r.jsxs)("span",{children:[a," / page"]})}})]})]})})}),(0,r.jsx)(U,{isOpen:m,onClose:()=>C(!1)}),(0,r.jsx)(k,{isOpen:j,onClose:()=>v(!1),startDate:s,endDate:g}),(0,r.jsx)(B,{isOpen:b,onClose:()=>{y(!1),f(void 0)},tcfPreferences:A})]})}}},function(e){e.O(0,[431,2150,2888,9774,179],function(){return e(e.s=15806)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9851],{66393:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent",function(){return s(78220)}])},77213:function(e,n,s){"use strict";s.d(n,{Z:function(){return f}});var t=s(24246),i=s(96306),r=s(88038),o=s.n(r),u=s(86677);s(27378);var c=s(25980),a=s(90867),l=s(77830),d=()=>{let e=(0,u.useRouter)();return(0,t.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,t.jsxs)(i.xuv,{children:[(0,t.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,t.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,t.jsx)(i.wpx,{onClick:()=>{e.push(l.fz)},children:"Configure"})]}),(0,t.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},f=e=>{let{children:n,title:s,padded:r=!0,mainProps:l}=e,f=(0,c.hz)(),h=(0,u.useRouter)(),p="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,x=!(f.flags.privacyRequestsConfiguration&&p),{data:j}=(0,a.JE)(void 0,{skip:x}),{data:m}=(0,a.PW)(void 0,{skip:x}),v=f.flags.privacyRequestsConfiguration&&(!j||!m)&&p;return(0,t.jsxs)(i.kCb,{"data-testid":s,direction:"column",h:"100vh",children:[(0,t.jsxs)(o(),{children:[(0,t.jsxs)("title",{children:["Fides Admin UI - ",s]}),(0,t.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,t.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,t.jsxs)(i.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...l,children:[v?(0,t.jsx)(d,{}):null,n]})]})}},78220:function(e,n,s){"use strict";s.r(n);var t=s(24246),i=s(96306),r=s(86677),o=s(27378),u=s(77213),c=s(77830);n.default=()=>{let e=(0,r.useRouter)();return(0,o.useEffect)(()=>{e.push(c.IT)},[e]),(0,t.jsx)(u.Z,{title:"Consent",children:(0,t.jsx)(i.M5Y,{children:(0,t.jsx)(i.$jN,{})})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=66393)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3296],{92812:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]",function(){return n(93251)}])},93251:function(e,t,n){"use strict";n.r(t);var r=n(24246),c=n(86677),o=n(18225),s=n(77213),a=n(77830),u=n(58754),l=n(25077),i=n(94780),d=n(1315);t.default=()=>{var e,t;let{query:n}=(0,c.useRouter)(),_=n.systemId,f=n.projectUrn,m=n.resourceUrn,{data:p,isLoading:h}=(0,d.rn)(_),j=(0,c.useRouter)(),k=null!==(e=(0,i.X5)(m,"".concat(a.mX,"/").concat(_,"/projects")))&&void 0!==e?e:[];return h?(0,r.jsx)(o.Z,{}):(0,r.jsxs)(s.Z,{title:"Data catalog",children:[(0,r.jsx)(u.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:a.mX},{title:null!==(t=null==p?void 0:p.name)&&void 0!==t?t:null==p?void 0:p.fides_key,href:a.mX},...k]}),(0,r.jsx)(l.Z,{resourceUrn:m,onRowClick:e=>j.push("".concat(a.mX,"/").concat(p.fides_key,"/projects/").concat(f,"/").concat(e.urn))})]})}}},function(e){e.O(0,[431,8765,9278,5163,4164,1099,3620,3855,2888,9774,179],function(){return e(e.s=92812)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[165],{21865:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/projects",function(){return a(98791)}])},58754:function(e,t,a){"use strict";var i=a(24246),s=a(96306),n=a(70788);t.Z=e=>{let{heading:t,breadcrumbItems:a,isSticky:o=!0,children:r,rightContent:l,style:d,...c}=e;return(0,i.jsxs)("div",{...c,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,i.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(s.lQT,{className:a||r?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!a&&(0,i.jsx)(n.m,{className:r?"pb-4":void 0,items:a,"data-testid":"page-breadcrumb"}),r]})}},70788:function(e,t,a){"use strict";a.d(t,{m:function(){return d}});var i=a(24246),s=a(96306),n=a(79894),o=a.n(n),r=a(27378);let{Text:l}=s.AntTypography,d=e=>{let{items:t,...a}=e,n=(0,r.useMemo)(()=>null==t?void 0:t.map((e,a)=>{let n=a===t.length-1,r={...e},d=r.onClick&&!r.href;return("string"==typeof r.title&&(r.title=(0,i.jsx)(l,{style:{color:"inherit",maxWidth:n?void 0:400},ellipsis:!n,id:n?"breadcrumb-current-page":void 0,children:r.title})),d)?r.title=(0,i.jsx)(s.wpx,{type:"text",size:"small",icon:r.icon,onClick:r.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:r.title}):(r.icon&&(r.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:r.icon}),r.title]})),r.href&&r.title&&(r.title=(0,i.jsx)(o(),{href:r.href,className:"ant-breadcrumb-link",children:r.title}),delete r.href)),r}),[t]);return(0,i.jsx)(s.zrq,{items:n,...a})}},79609:function(e,t,a){"use strict";a.d(t,{N4:function(){return o},UG:function(){return s},xw:function(){return n}});var i=a(54427);let{useGetCatalogSystemsQuery:s,useGetCatalogProjectsQuery:n,useGetCatalogDatasetsQuery:o}=a(78780).u.injectEndpoints({endpoints:e=>({getCatalogSystems:e.query({query:e=>({method:"GET",url:"/plus/data-catalog/system",params:e}),providesTags:["Catalog Systems","System"]}),getCatalogProjects:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/project",params:t}},providesTags:["Discovery Monitor Results"]}),getCatalogDatasets:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/dataset",params:t}},providesTags:["Discovery Monitor Results"]})})});(0,i.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},98791:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return k}});var i=a(24246),s=a(86677),n=a(18225),o=a(77213),r=a(77830),l=a(58754),d=a(92222),c=a(59003),u=a(96306),g=a(27378),p=a(47935),m=a(72625),x=a(89200),h=a(5945),f=a(79609),j=a(99763),y=a(28976),v=a(8151);let b={items:[],total:0,page:1,size:50,pages:1},C=()=>(0,i.jsx)(u.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,i.jsx)(u.gCW,{children:(0,i.jsx)(u.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"})})}),w=(0,d.Cl)();var R=e=>{let{systemKey:t,monitorConfigIds:a}=e,[n,o]=(0,g.useState)({}),{PAGE_SIZES:l,pageSize:u,setPageSize:R,onPreviousPageClick:_,isPreviousPageDisabled:k,onNextPageClick:N,isNextPageDisabled:S,startRange:T,endRange:P,pageIndex:z,setTotalPages:E}=(0,p.oi)(),{isFetching:D,isLoading:I,data:M}=(0,f.xw)({page:z,size:u,monitor_config_ids:a}),q=(0,s.useRouter)(),{items:Z,total:G,pages:W}=(0,g.useMemo)(()=>null!=M?M:b,[M]);(0,g.useEffect)(()=>{E(W)},[W,E]);let[V,X]=(0,g.useState)(void 0),U=(0,g.useMemo)(()=>[w.accessor(e=>e.name,{id:"name",cell:e=>(0,i.jsx)(x.Z,{resource:e.row.original}),header:"Project"}),w.display({id:"status",cell:e=>{let{row:t}=e;return(0,i.jsx)(h.Z,{status:(0,v.u)(t.original)})},header:"Status"}),w.accessor(e=>e.monitor_config_id,{id:"monitorConfigId",cell:e=>(0,i.jsx)(p.G3,{value:e.getValue()}),header:"Detected by"}),w.accessor(e=>e.description,{id:"description",cell:e=>(0,i.jsx)(p.G3,{value:e.getValue()}),header:"Description"}),w.accessor(e=>e.updated_at,{id:"lastUpdated",cell:e=>(0,i.jsx)(m.Cy,{time:e.getValue()}),header:"Updated",meta:{cellProps:{borderRight:"none"}}}),w.display({id:"actions",cell:e=>{let{row:t}=e;return(0,i.jsx)(y.Z,{onDetailClick:()=>X(t.original)})},size:25,meta:{disableRowClick:!0}})],[]),A=(0,c.b7)({getCoreRowModel:(0,d.sC)(),getGroupedRowModel:(0,d.qe)(),getExpandedRowModel:(0,d.rV)(),manualPagination:!0,columnResizeMode:"onChange",columns:U,data:Z,getRowId:e=>e.urn,onRowSelectionChange:o,state:{rowSelection:n}});return I||D?(0,i.jsx)(p.I4,{rowHeight:36,numRows:36}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p.ZK,{tableInstance:A,emptyTableNotice:(0,i.jsx)(C,{}),onRowClick:e=>q.push("".concat(r.mX,"/").concat(t,"/projects/").concat(e.urn))}),(0,i.jsx)(p.s8,{totalRows:G||0,pageSizes:l,setPageSize:R,onPreviousPageClick:_,isPreviousPageDisabled:k,onNextPageClick:N,isNextPageDisabled:S,startRange:T,endRange:P}),(0,i.jsx)(j.Z,{resource:V,onClose:()=>X(void 0)})]})},_=a(1315),k=()=>{var e;let{query:t}=(0,s.useRouter)(),a=t.systemId,d=t.monitor_config_ids,{data:c,isLoading:u}=(0,_.rn)(a);return u?(0,i.jsx)(n.Z,{}):(0,i.jsxs)(o.Z,{title:"Data catalog",children:[(0,i.jsx)(l.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:r.mX},{title:null!==(e=null==c?void 0:c.name)&&void 0!==e?e:null==c?void 0:c.fides_key}]}),(0,i.jsx)(R,{systemKey:a,monitorConfigIds:d})]})}}},function(e){e.O(0,[8765,9278,5163,1099,3620,2888,9774,179],function(){return e(e.s=21865)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4745],{37441:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/resources/[resourceUrn]",function(){return n(51887)}])},51887:function(e,t,n){"use strict";n.r(t);var r=n(24246),s=n(86677),c=n(18225),u=n(77213),o=n(77830),a=n(58754),l=n(25077),i=n(94780),d=n(1315);t.default=()=>{var e;let{query:t}=(0,s.useRouter)(),n=t.systemId,_=t.resourceUrn,{data:f,isLoading:m}=(0,d.rn)(n),h=(0,s.useRouter)(),k=(0,i.pN)(_,"".concat(o.mX,"/").concat(n,"/resources"));return m?(0,r.jsx)(c.Z,{}):(0,r.jsxs)(u.Z,{title:"Data catalog",children:[(0,r.jsx)(a.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:o.mX},{title:null!==(e=null==f?void 0:f.name)&&void 0!==e?e:null==f?void 0:f.fides_key,href:"".concat(o.mX)},...k]}),(0,r.jsx)(l.Z,{resourceUrn:_,onRowClick:e=>h.push("".concat(o.mX,"/").concat(f.fides_key,"/resources/").concat(e.urn))})]})}}},function(e){e.O(0,[431,8765,9278,5163,4164,1099,3620,3855,2888,9774,179],function(){return e(e.s=37441)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4231],{74833:function(e,t,s){var a=s(56127),i=/^\s+/;e.exports=function(e){return e?e.slice(0,a(e)+1).replace(i,""):e}},56632:function(e,t,s){var a=s(89278),i=s(80068),n=s(50098);e.exports=function(e){return function(t,s,r){var l=Object(t);if(!i(t)){var o=a(s,3);t=n(t),s=function(e){return o(l[e],e,l)}}var d=e(t,s,r);return d>-1?l[o?t[d]:d]:void 0}}},56127:function(e){var t=/\s/;e.exports=function(e){for(var s=e.length;s--&&t.test(e.charAt(s)););return s}},64925:function(e,t,s){var a=s(56632)(s(66259));e.exports=a},66259:function(e,t,s){var a=s(95372),i=s(89278),n=s(47991),r=Math.max;e.exports=function(e,t,s){var l=null==e?0:e.length;if(!l)return -1;var o=null==s?0:n(s);return o<0&&(o=r(l+o,0)),a(e,i(t,3),o)}},94919:function(e,t,s){var a=s(91936),i=1/0;e.exports=function(e){return e?(e=a(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,s){var a=s(94919);e.exports=function(e){var t=a(e),s=t%1;return t==t?s?t-s:t:0}},91936:function(e,t,s){var a=s(74833),i=s(11611),n=s(55193),r=0/0,l=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,d=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(n(e))return r;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=a(e);var s=o.test(e);return s||d.test(e)?c(e.slice(2),s?2:8):l.test(e)?r:+e}},66248:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog",function(){return s(99375)}])},77213:function(e,t,s){"use strict";s.d(t,{Z:function(){return p}});var a=s(24246),i=s(96306),n=s(88038),r=s.n(n),l=s(86677);s(27378);var o=s(25980),d=s(90867),c=s(77830),u=()=>{let e=(0,l.useRouter)();return(0,a.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,a.jsxs)(i.xuv,{children:[(0,a.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,a.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,a.jsx)(i.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,a.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:s,padded:n=!0,mainProps:c}=e,p=(0,o.hz)(),m=(0,l.useRouter)(),x="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,v=!(p.flags.privacyRequestsConfiguration&&x),{data:f}=(0,d.JE)(void 0,{skip:v}),{data:h}=(0,d.PW)(void 0,{skip:v}),g=p.flags.privacyRequestsConfiguration&&(!f||!h)&&x;return(0,a.jsxs)(i.kCb,{"data-testid":s,direction:"column",h:"100vh",children:[(0,a.jsxs)(r(),{children:[(0,a.jsxs)("title",{children:["Fides Admin UI - ",s]}),(0,a.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,a.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,a.jsxs)(i.kCb,{as:"main",direction:"column",py:n?6:0,px:n?10:0,h:n?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[g?(0,a.jsx)(u,{}):null,t]})]})}},58754:function(e,t,s){"use strict";var a=s(24246),i=s(96306),n=s(70788);t.Z=e=>{let{heading:t,breadcrumbItems:s,isSticky:r=!0,children:l,rightContent:o,style:d,...c}=e;return(0,a.jsxs)("div",{...c,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,a.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,a.jsx)(i.lQT,{className:s||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,a.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!s&&(0,a.jsx)(n.m,{className:l?"pb-4":void 0,items:s,"data-testid":"page-breadcrumb"}),l]})}},79789:function(e,t,s){"use strict";s.d(t,{Hn:function(){return l},XU:function(){return r},Z5:function(){return o},aG:function(){return u},cB:function(){return n},hX:function(){return c},vQ:function(){return d}});var a=s(24246),i=s(96306);let n=e=>{let{text:t,...s}=e;return(0,a.jsx)(i.X6q,{fontSize:"sm",mt:4,mb:1,...s,children:t})},r=e=>{let{children:t}=e;return(0,a.jsx)(i.xvT,{fontSize:"14px",mb:4,children:t})},l=e=>{let{children:t,href:s}=e;return(0,a.jsx)(i.rUS,{href:s,textDecoration:"underline",isExternal:!0,children:t})},o=e=>{let{children:t}=e;return(0,a.jsx)(i.QI$,{fontSize:"14px",mb:4,children:t})},d=e=>{let{children:t}=e;return(0,a.jsx)(i.GSI,{fontSize:"14px",mb:4,ml:6,children:t})},c=e=>{let{children:t}=e;return(0,a.jsx)(i.EKh,{display:"block",whiteSpace:"pre",p:4,mb:4,overflowX:"scroll",children:t})},u=e=>{let{data:t}=e;return(0,a.jsxs)(i.iA_,{fontSize:"14px",children:[(0,a.jsx)(i.hrZ,{children:(0,a.jsxs)(i.Tr,{children:[(0,a.jsx)(i.Th,{children:"Permission"}),(0,a.jsx)(i.Th,{children:"Description"})]})}),(0,a.jsx)(i.p3B,{children:t.map(e=>(0,a.jsxs)(i.Tr,{children:[(0,a.jsx)(i.Td,{children:(0,a.jsx)(i.Vp9,{children:e.permission})}),(0,a.jsx)(i.Td,{children:e.description})]},e.permission))})]})}},83099:function(e,t,s){"use strict";var a=s(24246),i=s(79283),n=s(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:s=!1,...r}=e,{getDataUseDisplayNameProps:l,getDataUses:o}=(0,n.Z)(),d=(s?o():o().filter(e=>e.active)).filter(e=>!(null==t?void 0:t.includes(e.fides_key))).map(e=>{let{name:t,primaryName:s}=l(e.fides_key);return{value:e.fides_key,name:t,primaryName:s,description:e.description||""}});return(0,a.jsx)(i.l,{options:d,...r})}},79283:function(e,t,s){"use strict";s.d(t,{l:function(){return o}});var a=s(24246),i=s(96306),n=s(72707),r=s.n(n);let l=e=>{let{data:{formattedTitle:t,description:s,name:n,primaryName:r}}=e;return(0,a.jsxs)(i.jqI,{gap:12,title:"".concat(t," - ").concat(s),children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:r||n}),r&&": ".concat(n)]}),(0,a.jsx)("em",{children:s})]})},o=e=>{let{options:t,...s}=e,n=null==t?void 0:t.map(e=>({...e,className:r().option,formattedTitle:[e.primaryName,e.name].filter(e=>e).join(": ")}));return(0,a.jsx)(i.WPr,{options:n,filterOption:(e,t)=>(null==t?void 0:t.formattedTitle.toLowerCase().includes(e.toLowerCase()))||(null==t?void 0:t.value.toLowerCase().includes(e.toLowerCase()))||!1,optionFilterProp:"label",autoFocus:!0,variant:"borderless",optionRender:l,styles:{popup:{root:{minWidth:"500px"}}},className:"w-full p-0","data-testid":"taxonomy-select",...s})}},97181:function(e,t,s){"use strict";s.d(t,{d:function(){return d}});var a=s(24246),i=s(96306),n=s(34090),r=s(27378),l=s(46238),o=s(40324);let d=e=>{let{name:t,label:s,labelProps:d,tooltip:c,isRequired:u,layout:p="inline",helperText:m,...x}=e,[v,f,{setValue:h}]=(0,n.U$)(t),g=!!(f.touched&&f.error),[j,y]=(0,r.useState)("");v.value||"tags"!==x.mode&&"multiple"!==x.mode||(v.value=[]),"tags"===x.mode&&"string"==typeof v.value&&(v.value=[v.value]);let b="tags"===x.mode?(e,t)=>e?e.value!==j||v.value.includes(j)?x.optionRender?x.optionRender(e,t):e.label:'Create "'.concat(j,'"'):void 0:x.optionRender||void 0,_=e=>{y(e),x.onSearch&&x.onSearch(e)},w=(e,t)=>{h(e),x.onChange&&x.onChange(e,t)};return"inline"===p?(0,a.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,a.jsxs)(i.rjZ,{templateColumns:s?"1fr 3fr":"1fr",children:[s?(0,a.jsx)(o.__,{htmlFor:x.id||t,...d,children:s}):null,(0,a.jsxs)(i.jqI,{align:"center",children:[(0,a.jsxs)(i.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,a.jsx)(i.WPr,{...v,id:x.id||t,"data-testid":"controlled-select-".concat(v.name),...x,optionRender:b,onSearch:"tags"===x.mode?_:void 0,onChange:w,value:v.value||void 0,status:g?"error":void 0}),m&&(0,a.jsx)(i.Q6r,{children:m}),(0,a.jsx)(o.Bc,{isInvalid:g,message:f.error,fieldName:v.name})]}),(0,a.jsx)(l.b,{label:c,className:g?"mt-2 self-start":void 0})]})]})}):(0,a.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,a.jsxs)(i.gCW,{alignItems:"start",children:[(0,a.jsxs)(i.jqI,{align:"center",children:[s?(0,a.jsx)(o.__,{htmlFor:x.id||t,fontSize:"xs",my:0,mr:1,...d,children:s}):null,(0,a.jsx)(l.b,{label:c})]}),(0,a.jsx)(i.WPr,{...v,id:x.id||t,"data-testid":"controlled-select-".concat(v.name),...x,optionRender:b,onSearch:"tags"===x.mode?_:void 0,onChange:w,value:v.value||void 0,status:g?"error":void 0}),m&&(0,a.jsx)(i.Q6r,{style:{marginTop:0},children:m}),(0,a.jsx)(o.Bc,{isInvalid:g,message:f.error,fieldName:v.name})]})})}},34929:function(e,t,s){"use strict";var a=s(24246),i=s(64925),n=s.n(i),r=s(27378),l=s(16134),o=s(30002),d=s(28079),c=s(57072);let u=()=>{let{isLoading:e}=(0,d.fd)(),t=(0,l.C)(d.U3),{isLoading:s}=(0,c.MO)(),a=(0,l.C)(c.qb),{isLoading:i}=(0,o.te)();return{dataUses:t,dataSubjects:(0,l.C)(o.ZL),dataCategories:a,isLoading:e||s||i}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:s,isLoading:i}=u(),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},o=function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=t(e);if(!a)return{};let i=t(l(e,s)),n=!!a.parent_key;return{name:a.name||void 0,primaryName:n&&(null==i?void 0:i.name)!==a.name&&(null==i?void 0:i.name)||void 0}},d=function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:i,primaryName:n}=o(e,t,s);return i?n?(0,a.jsxs)(r.Fragment,{children:[(0,a.jsxs)("strong",{children:[n,":"]})," ",i]},e):(0,a.jsx)("strong",{children:i},e):e},c=t=>n()(e,{fides_key:t}),p=e=>n()(t,{fides_key:e}),m=e=>n()(s,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:c,getDataUseDisplayName:e=>d(e,c,1),getDataUseDisplayNameProps:e=>o(e,c,1),getDataCategories:()=>t,getDataCategoryByKey:p,getDataCategoryDisplayName:e=>d(e,p,2),getDataCategoryDisplayNameProps:e=>o(e,p,2),getDataSubjects:()=>s,getDataSubjectByKey:m,getDataSubjectDisplayName:e=>{let t=m(e);return t?t.name:e},getPrimaryKey:l,isLoading:i}}},8133:function(e,t,s){"use strict";var a=s(24246),i=s(96306);t.Z=e=>{let{title:t,children:s,isOpen:n,onClose:r,modalContentProps:l,showCloseButton:o=!1,footer:d,...c}=e;return(0,a.jsxs)(i.u_l,{isOpen:n,onClose:r,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...c,children:[(0,a.jsx)(i.ZAr,{}),(0,a.jsxs)(i.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...l,children:[o&&(0,a.jsx)(i.olH,{}),(0,a.jsx)(i.xBx,{p:0,children:(0,a.jsx)(i.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,a.jsx)(i.X6q,{as:"h3",size:"sm",children:t})})}),(0,a.jsx)(i.fef,{pb:4,overflow:"auto",children:s}),d&&(0,a.jsx)(i.mzw,{children:d})]})]})}},70788:function(e,t,s){"use strict";s.d(t,{m:function(){return d}});var a=s(24246),i=s(96306),n=s(79894),r=s.n(n),l=s(27378);let{Text:o}=i.AntTypography,d=e=>{let{items:t,...s}=e,n=(0,l.useMemo)(()=>null==t?void 0:t.map((e,s)=>{let n=s===t.length-1,l={...e},d=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,a.jsx)(o,{style:{color:"inherit",maxWidth:n?void 0:400},ellipsis:!n,id:n?"breadcrumb-current-page":void 0,children:l.title})),d)?l.title=(0,a.jsx)(i.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,a.jsx)(r(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,a.jsx)(i.zrq,{items:n,...s})}},79609:function(e,t,s){"use strict";s.d(t,{N4:function(){return r},UG:function(){return i},xw:function(){return n}});var a=s(54427);let{useGetCatalogSystemsQuery:i,useGetCatalogProjectsQuery:n,useGetCatalogDatasetsQuery:r}=s(78780).u.injectEndpoints({endpoints:e=>({getCatalogSystems:e.query({query:e=>({method:"GET",url:"/plus/data-catalog/system",params:e}),providesTags:["Catalog Systems","System"]}),getCatalogProjects:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/project",params:t}},providesTags:["Discovery Monitor Results"]}),getCatalogDatasets:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/dataset",params:t}},providesTags:["Discovery Monitor Results"]})})});(0,a.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},81406:function(e,t,s){"use strict";var a=s(24246),i=s(96306);t.Z=()=>(0,a.jsxs)(i.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:[(0,a.jsx)(i.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"}),(0,a.jsx)(i.xvT,{fontSize:"sm",children:"You're up to date!"})]})},26183:function(e,t,s){"use strict";var a=s(24246);s(27378),t.Z=e=>{let{children:t,className:s,...i}=e;return(0,a.jsx)("div",{className:"relative flex w-full flex-wrap items-center gap-2 overflow-x-auto py-2 ".concat(s||""),...i,children:t})}},3765:function(e,t,s){"use strict";var a=s(96306),i=s(812),n=s(46628),r=s(1315),l=s(31883);t.Z=e=>{let t=(0,a.pmc)(),[s]=(0,r.qQ)(),o=s=>!!e.privacy_declarations.find(e=>e.data_use===s.data_use&&e.name===s.name)&&(t((0,n.Vo)("A declaration already exists with that data use in this system. Please supply a different data use.")),!0),d=(e,s)=>{if((0,l.D4)(e)){let s=(0,i.e$)(e.error,"An unexpected error occurred while updating the system. Please try again.");t((0,n.Vo)(s));return}return t.closeAll(),t((0,n.t5)(s?"Data use deleted":"Data use saved")),e.data.privacy_declarations},c=async(t,a)=>{let i=t.map(e=>{var t;return{...e,name:null!==(t=e.name)&&void 0!==t?t:""}}),n={...e,privacy_declarations:i};return d(await s(n),a)};return{createDataUse:async s=>{if(!o(s))return t.closeAll(),c([...e.privacy_declarations,s])},updateDataUse:async(t,s)=>{if(!(s.id!==t.id&&o(s)))return c(e.privacy_declarations.map(e=>e.id===t.id?s:e))},deleteDataUse:async t=>c(e.privacy_declarations.filter(e=>e.id!==t.id),!0),deleteDeclarationByDataUse:async t=>c(e.privacy_declarations.filter(e=>e.data_use!==t),!0)}}},54748:function(e,t,s){"use strict";var a=s(27378),i=s(54682);t.Z=()=>({legalBasisOptions:(0,a.useMemo)(()=>Object.keys(i.gP).map(e=>({value:i.gP[e],label:i.gP[e]})),[])})},28325:function(e,t,s){"use strict";var a=s(27378),i=s(54682);t.Z=()=>({specialCategoryLegalBasisOptions:(0,a.useMemo)(()=>Object.keys(i.nV).map(e=>({value:i.nV[e],label:i.nV[e]})),[])})},99375:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return L}});var a=s(24246),i=s(77213),n=s(58754),r=s(92222),l=s(59003),o=s(86677),d=s(27378),c=s(77830),u=s(47935),p=s(16394),m=s(79609),x=s(81406),v=s(96306),f=s(79789),h=s(83099),g=s(34929),j=s(34090),y=s(55484),b=s(97181),_=s(40324),w=s(8133),C=s(54748),k=s(28325),N=s(34151),S=s.n(N);let D=y.Ry().shape({data_use:y.Z_().required("Data use is required")});var R=e=>{let{isOpen:t,onClose:s,onSave:i,declaration:n}=e,{getDataUses:r,getDataCategories:l,getDataSubjects:o}=(0,g.Z)(),{isOpen:d,onToggle:c}=(0,v.qY0)(),u=r().map(e=>({label:e.fides_key,value:e.fides_key})),p=l().map(e=>({label:e.fides_key,value:e.fides_key})),m=o().map(e=>({label:e.fides_key,value:e.fides_key})),{legalBasisOptions:x}=(0,C.Z)(),{specialCategoryLegalBasisOptions:f}=(0,k.Z)();return(0,a.jsx)(j.J9,{initialValues:n,enableReinitialize:!0,onSubmit:e=>{i(e),s()},validationSchema:D,children:e=>{let{dirty:i,isValid:n,values:r,resetForm:l}=e;return(0,a.jsx)(w.Z,{title:"Edit data use",isOpen:t,onClose:s,children:(0,a.jsxs)(j.l0,{children:[(0,a.jsxs)(v.jqI,{vertical:!0,className:"gap-6 py-4",children:[(0,a.jsx)(b.d,{name:"data_use",label:"Data use",options:u,layout:"stacked",isRequired:!0}),(0,a.jsx)(b.d,{name:"data_categories",label:"Data categories",options:p,mode:"multiple",layout:"stacked"}),(0,a.jsx)(b.d,{name:"data_subjects",label:"Data subjects",options:m,mode:"multiple",layout:"stacked"}),(0,a.jsx)(_.j0,{name:"name",label:"Declaration name",variant:"stacked"}),(0,a.jsxs)(v.jqI,{vertical:!0,className:"gap-6 p-4 ".concat(S().advancedSettings),children:[(0,a.jsxs)(v.jqI,{className:"cursor-pointer justify-between",onClick:c,children:[(0,a.jsx)(v.xvT,{fontSize:"xs",children:"Advanced settings"}),(0,a.jsx)(v.v4q,{className:d?"rotate-180":void 0})]}),(0,a.jsx)(v.UO1,{in:d,children:(0,a.jsxs)(v.jqI,{vertical:!0,className:"gap-4",children:[(0,a.jsx)(b.d,{name:"legal_basis_for_processing",label:"Legal basis for processing",options:x,layout:"stacked"}),(0,a.jsx)(v.UO1,{in:(null==r?void 0:r.legal_basis_for_processing)==="Legitimate interests",animateOpacity:!0,style:{overflow:"visible"},children:(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(_.j0,{name:"impact_assessment_location",label:"Impact assessment location",tooltip:"Where is the legitimate interest impact assessment stored?",variant:"stacked"})})}),(0,a.jsx)(_.w8,{name:"flexible_legal_basis_for_processing",label:"This legal basis is flexible",tooltip:"Has the vendor declared that the legal basis may be overridden?",variant:"stacked"}),(0,a.jsx)(_.j0,{name:"retention_period",label:"Retention period (days)",tooltip:"How long is personal data retained for this purpose?",variant:"stacked"}),(0,a.jsxs)(v.Kqy,{spacing:0,children:[(0,a.jsx)(_.w8,{name:"processes_special_category_data",label:"This system processes special category data",tooltip:"Is this system processing special category data as defined by GDPR Article 9?",variant:"stacked"}),(0,a.jsx)(v.UO1,{in:null==r?void 0:r.processes_special_category_data,animateOpacity:!0,style:{overflow:"visible"},children:(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(b.d,{isRequired:!0,name:"special_category_legal_basis",label:"Legal basis for processing",options:f,tooltip:"What is the legal basis under which the special category data is processed?",layout:"stacked"})})})]})]})})]})]}),(0,a.jsxs)("div",{className:"flex w-full justify-between",children:[(0,a.jsx)(v.wpx,{onClick:()=>{l(),s()},children:"Cancel"}),(0,a.jsx)(v.wpx,{type:"primary",htmlType:"submit",disabled:!i||!n,loading:!1,"data-testid":"save-btn",children:"Save"})]})]})})}})},q=s(26183),T=s(3765);let z=e=>({data_use:e,data_categories:["system"]});var I=e=>{var t,s;let{system:i}=e,[n,r]=(0,d.useState)(!1),[l,o]=(0,d.useState)(void 0),{getDataUseDisplayName:c}=(0,g.Z)(),{isOpen:u,onOpen:p,onClose:m}=(0,v.qY0)(),x=e=>{o(e),p()},{createDataUse:f,deleteDeclarationByDataUse:j,updateDataUse:y}=(0,T.Z)(i),b=null!==(s=null===(t=i.privacy_declarations)||void 0===t?void 0:t.map(e=>e.data_use))&&void 0!==s?s:[];return(0,a.jsxs)(q.Z,{children:[!n&&(0,a.jsxs)(a.Fragment,{children:[b.map((e,t)=>(0,a.jsxs)(v.j8w,{"data-testid":"data-use-".concat(e),color:"white",onClick:()=>x(i.privacy_declarations[t]),closable:!0,onClose:()=>j(e),closeButtonLabel:"Remove data use",children:[(0,a.jsx)(v.PJP.I8b,{size:10}),c(e)]},e)),(0,a.jsx)(v.j8w,{onClick:()=>r(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"}),(0,a.jsx)(R,{isOpen:u,onClose:m,onSave:e=>y(l,e),declaration:l})]}),n&&(0,a.jsx)(v.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,a.jsx)(h.Z,{onChange:e=>{f(z(e)),r(!1)},selectedTaxonomies:b,onBlur:()=>r(!1),open:!0})})]})},P=e=>{var t;let{system:s,onEdit:i,onClose:n}=e;return(0,a.jsxs)(v.dys,{isOpen:!!s,onClose:n,size:"md",children:[(0,a.jsx)(v.P1B,{}),(0,a.jsxs)(v.scA,{"data-testid":"system-details",children:[(0,a.jsx)(v.OXI,{children:(null==s?void 0:s.name)||(null==s?void 0:s.fides_key)}),(0,a.jsx)(v.cCv,{}),(0,a.jsxs)(v.Ng0,{children:[(0,a.jsx)(f.cB,{text:"Title",mt:0}),(0,a.jsx)(f.XU,{children:null!==(t=null==s?void 0:s.name)&&void 0!==t?t:null==s?void 0:s.fides_key}),(null==s?void 0:s.description)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(f.cB,{text:"Description"}),(0,a.jsx)(f.XU,{children:null==s?void 0:s.description})]}),(0,a.jsx)(f.cB,{text:"Data uses"}),(0,a.jsx)(I,{system:s})]}),(0,a.jsx)(v.zeN,{children:(0,a.jsx)(v.wpx,{onClick:i,"data-testid":"edit-system-btn",children:"Edit system"})})]})]})},Z=e=>{let{onDetailClick:t}=e;return(0,a.jsxs)(v.v2r,{children:[(0,a.jsx)(v.j2t,{as:v.wpx,size:"small",type:"text",className:"max-w-4",icon:(0,a.jsx)(v.nXP,{transform:"rotate(90deg)",ml:2}),"data-testid":"system-actions-menu"}),(0,a.jsx)(v.qyq,{children:t&&(0,a.jsx)(v.sNh,{onClick:t,"data-testid":"view-system-details",children:"View details"})})]})},O=s(70675);let B={items:[],total:0,page:1,size:50,pages:1},U=(0,r.Cl)();var E=()=>{let[e,t]=(0,d.useState)({}),s=(0,o.useRouter)(),{PAGE_SIZES:i,pageSize:n,setPageSize:v,onPreviousPageClick:f,isPreviousPageDisabled:h,onNextPageClick:g,isNextPageDisabled:j,startRange:y,endRange:b,pageIndex:_,setTotalPages:w}=(0,u.oi)(),{data:C,isLoading:k}=(0,m.UG)({page:_,size:n,show_hidden:!1}),[N]=(0,O.j3)(),{items:S,total:D,pages:R}=(0,d.useMemo)(()=>null!=C?C:B,[C]);(0,d.useEffect)(()=>{w(R)},[R,w]);let[q,T]=(0,d.useState)(void 0),z=(0,d.useMemo)(()=>S.find(e=>e.fides_key===q),[S,q]),E=async e=>{var t,a;let i=await N({connection_config_key:e.connection_configs.key,page:1,size:1}),n=!!(null==i?void 0:null===(t=i.data)||void 0===t?void 0:t.total),r=(0,p.du)(null!==(a=e.monitor_config_keys)&&void 0!==a?a:[],"monitor_config_ids"),l="".concat(c.mX,"/").concat(e.fides_key,"/").concat(n?"projects":"resources","?").concat(r);s.push(l)},L=(0,d.useMemo)(()=>[U.accessor(e=>e.name,{id:"name",cell:e=>{var t;let{getValue:s,row:i}=e;return(0,a.jsx)(u.G3,{value:s(),fontWeight:(null===(t=i.original.connection_configs)||void 0===t?void 0:t.key)?"semibold":"normal"})},header:e=>(0,a.jsx)(u.Rr,{value:"Name",...e})}),U.display({id:"data-uses",cell:e=>{let{row:t}=e;return(0,a.jsx)(I,{system:t.original})},header:e=>(0,a.jsx)(u.Rr,{value:"Data uses",...e}),meta:{disableRowClick:!0},minSize:280}),U.display({id:"actions",cell:e=>(0,a.jsx)(Z,{onDetailClick:()=>T(e.row.original.fides_key)}),maxSize:20,enableResizing:!1,meta:{cellProps:{borderLeft:"none"},disableRowClick:!0}})],[]),M=(0,l.b7)({getCoreRowModel:(0,r.sC)(),getGroupedRowModel:(0,r.qe)(),getExpandedRowModel:(0,r.rV)(),getRowId:e=>e.fides_key,manualPagination:!0,columnResizeMode:"onChange",columns:L,data:S,onRowSelectionChange:t,state:{rowSelection:e}});return k?(0,a.jsx)(u.I4,{rowHeight:36,numRows:36}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.ZK,{tableInstance:M,emptyTableNotice:(0,a.jsx)(x.Z,{}),onRowClick:E,getRowIsClickable:e=>{var t;return!!(null===(t=e.connection_configs)||void 0===t?void 0:t.key)}}),(0,a.jsx)(u.s8,{totalRows:D||0,pageSizes:i,setPageSize:v,onPreviousPageClick:f,isPreviousPageDisabled:h,onNextPageClick:g,isNextPageDisabled:j,startRange:y,endRange:b}),(0,a.jsx)(P,{system:z,onClose:()=>T(void 0),onEdit:()=>s.push({pathname:c.Dv,query:{id:q}})})]})},L=()=>(0,a.jsxs)(i.Z,{title:"Data catalog",children:[(0,a.jsx)(n.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems"}]}),(0,a.jsx)(E,{})]})},31883:function(e,t,s){"use strict";s.d(t,{Bw:function(){return a.Bw},D4:function(){return a.D4}});var a=s(19043)},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}},34151:function(e){e.exports={advancedSettings:"EditMinimalDataUseModal_advancedSettings___i9jS"}}},function(e){e.O(0,[8765,9278,5163,2888,9774,179],function(){return e(e.s=66248)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4154],{58095:function(e,t,s){var n=s(8817);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},21796:function(e){e.exports=function(e,t,s){for(var n=-1,a=null==e?0:e.length;++n<a;)if(s(t,e[n]))return!0;return!1}},8817:function(e,t,s){var n=s(95372),a=s(1129),o=s(58263);e.exports=function(e,t,s){return t==t?o(e,t,s):n(e,a,s)}},1129:function(e){e.exports=function(e){return e!=e}},92198:function(e,t,s){var n=s(52485),a=s(58095),o=s(21796),r=s(65581),i=s(47111),l=s(43735);e.exports=function(e,t,s){var d=-1,c=a,u=e.length,m=!0,h=[],g=h;if(s)m=!1,c=o;else if(u>=200){var y=t?null:i(e);if(y)return l(y);m=!1,c=r,g=new n}else g=t?[]:h;e:for(;++d<u;){var p=e[d],v=t?t(p):p;if(p=s||0!==p?p:0,m&&v==v){for(var f=g.length;f--;)if(g[f]===v)continue e;t&&g.push(v),h.push(p)}else c(g,v,s)||(g!==h&&g.push(v),h.push(p))}return h}},47111:function(e,t,s){var n=s(46151),a=s(50344),o=s(43735),r=n&&1/o(new n([,-0]))[1]==1/0?function(e){return new n(e)}:a;e.exports=r},58263:function(e){e.exports=function(e,t,s){for(var n=s-1,a=e.length;++n<a;)if(e[n]===t)return n;return -1}},50344:function(e){e.exports=function(){}},83766:function(e,t,s){var n=s(92198);e.exports=function(e){return e&&e.length?n(e):[]}},25654:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/[monitorId]/[systemId]",function(){return s(74473)}])},79283:function(e,t,s){"use strict";s.d(t,{l:function(){return l}});var n=s(24246),a=s(96306),o=s(72707),r=s.n(o);let i=e=>{let{data:{formattedTitle:t,description:s,name:o,primaryName:r}}=e;return(0,n.jsxs)(a.jqI,{gap:12,title:"".concat(t," - ").concat(s),children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("strong",{children:r||o}),r&&": ".concat(o)]}),(0,n.jsx)("em",{children:s})]})},l=e=>{let{options:t,...s}=e,o=null==t?void 0:t.map(e=>({...e,className:r().option,formattedTitle:[e.primaryName,e.name].filter(e=>e).join(": ")}));return(0,n.jsx)(a.WPr,{options:o,filterOption:(e,t)=>(null==t?void 0:t.formattedTitle.toLowerCase().includes(e.toLowerCase()))||(null==t?void 0:t.value.toLowerCase().includes(e.toLowerCase()))||!1,optionFilterProp:"label",autoFocus:!0,variant:"borderless",optionRender:i,styles:{popup:{root:{minWidth:"500px"}}},className:"w-full p-0","data-testid":"taxonomy-select",...s})}},45938:function(e,t,s){"use strict";s.d(t,{Gt:function(){return m},eB:function(){return h},oI:function(){return u}});var n=s(24246),a=s(34090),o=s(27378),r=s(16134),i=s(38602),l=s(58452);let d=(0,o.createRef)(),c=(0,o.createRef)(),u=()=>{let e=(0,r.T)(),t=(0,r.C)(i.DB),s=(0,o.useCallback)(()=>{c.current=void 0,d.current=void 0},[]),n=(0,o.useCallback)(()=>{e((0,i.Mr)()),c.current&&(c.current(!0),s())},[e,s]),a=(0,o.useCallback)(()=>{e((0,i.Mr)()),c.current&&(c.current(!1),s())},[e,s]);return{attemptAction:(0,o.useCallback)(()=>t?(e((0,i.h7)()),d.current||(d.current=new Promise(e=>{c.current=e})),d.current):Promise.resolve(!0),[t,e]),onConfirm:n,onClose:a}},m=e=>{let{id:t,name:s}=e,{dirty:n}=(0,a.u6)(),l=(0,r.T)();return(0,o.useEffect)(()=>(l((0,i.Zu)({id:t,name:s})),()=>{l((0,i.dz)({id:t}))}),[l,t,s]),(0,o.useEffect)(()=>{l((0,i.$p)({id:t,isDirty:n}))},[n,l,t]),null},h=()=>{let{onConfirm:e,onClose:t}=u(),s=(0,r.C)(i.uv);return(0,n.jsx)(l.Z,{isOpen:s,onClose:t,onConfirm:e,isCentered:!0,title:"Unsaved Changes",message:"You have unsaved changes"})}},74473:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return es}});var n=s(24246),a=s(86677),o=s(27378),r=s(35287),i=s(77830),l=s(58754),d=s(96306),c=s(25415),u=s(54682),m=s(30952),h=s(8133),g=s(79283),y=s(34929),p=s(78238),v=e=>{let{selectedTaxonomies:t,...s}=e,{getDataUseDisplayNameProps:a,getDataUses:o}=(0,y.Z)(),r=o().filter(e=>e.active&&p.g.includes(e.fides_key)).map(e=>{let{name:t,primaryName:s}=a(e.fides_key);return{value:e.fides_key,name:t,primaryName:s,description:e.description||""}});return(0,n.jsx)(g.l,{options:r,...s})};let{Text:f}=d.AntTypography;var x=e=>{let{onSave:t,isSaving:s,onClose:a,...r}=e,[i,l]=(0,o.useState)([]),c=()=>{l([]),a()};return(0,n.jsxs)(h.Z,{title:"Add consent category",...r,onClose:c,children:[(0,n.jsxs)(d.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,n.jsx)(f,{children:"Assign consent categories to selected assets. This configures the system for consent management. Consent categories apply to both individual assets and the system."}),(0,n.jsx)(v,{mode:"tags",selectedTaxonomies:i,onSelect:(e,t)=>l([...i,t.value]),variant:"outlined"})]}),(0,n.jsxs)(d.jqI,{justify:"space-between",children:[(0,n.jsx)(d.wpx,{htmlType:"reset",onClick:c,"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(d.wpx,{htmlType:"submit",type:"primary",disabled:!i.length,loading:s,onClick:()=>{t(i),c()},"data-testid":"save-btn",children:"Save"})]})]})},j=s(29850),_=s(77685);let{Text:w}=d.AntTypography,b=e=>{let{onSave:t,isSaving:s,...a}=e,[r,i]=(0,o.useState)(),[l,c]=(0,o.useState)(!1),u=(0,o.useCallback)(e=>{e.preventDefault(),c(!0)},[]),m=()=>{c(!1)},g=()=>{i(void 0),a.onClose()};return(0,n.jsxs)(h.Z,{title:"Assign system",...a,onClose:g,children:[(0,n.jsxs)(d.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,n.jsx)(w,{children:"Assign a system to the selected assets. If no system exists, select 'Add new system' to create one."}),(0,n.jsx)(j.R,{placeholder:"Search or select...",onSelect:(e,t)=>{i(t)},onAddSystem:u,value:r})]})," ",(0,n.jsxs)(d.jqI,{justify:"space-between",children:[(0,n.jsx)(d.wpx,{htmlType:"reset",onClick:g,"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(d.wpx,{htmlType:"submit",type:"primary",disabled:!r,loading:s,onClick:()=>{t(r),g()},"data-testid":"save-btn",children:"Save"})]}),l&&(0,n.jsx)(_.i,{isOpen:!0,onClose:m,onSuccessfulSubmit:(e,t)=>{m(),i({label:t,value:e})},toastOnSuccess:!0})]})};var C=s(8411),k=s(32735),S=s(8125),E=s(37059),T=s(98145);let{Link:N}=d.AntTypography,A=e=>{let{stagedResource:t,status:s}=e,a=(0,S.o)({pagination:{defaultPageSize:10,pageSizeOptions:[10,...k.VZ]}}),{pageIndex:r,pageSize:i}=a,{data:l,isFetching:d,isError:c}=(0,E.mi)({stagedResourceUrn:t.urn,status:s,page:r,size:i}),{items:u,total:m}=(0,o.useMemo)(()=>l||{items:[],total:0,pages:0,filterOptions:{assigned_users:[],systems:[]}},[l]),h=(0,o.useMemo)(()=>({enableSelection:!1,getRowKey:e=>e.location,isLoading:d,dataSource:u,totalRows:null!=m?m:0}),[d,u,m]),g=(0,S.V)(a,h);return{columns:(0,o.useMemo)(()=>[{title:"Location",dataIndex:T.EI.LOCATION,key:T.EI.LOCATION,render:e=>{var t;return null!==(t=C.Z8[e])&&void 0!==t?t:e}},{title:"Page",dataIndex:T.EI.PAGE,key:T.EI.PAGE,render:e=>(0,n.jsx)(N,{href:e,target:"_blank",rel:"noopener noreferrer",children:e})}],[]),data:l,isLoading:d,isError:c,totalRows:m,tableProps:g.tableProps,hasData:u.length>0}},{Paragraph:I,Text:O}=d.AntTypography,D=e=>{var t,s,a;let{isOpen:o,stagedResource:r,status:i,onCancel:l,onDownload:c}=e,{columns:u,tableProps:m,isError:h}=A({stagedResource:r,status:i});return(0,n.jsx)(d.$zI,{title:"Consent discovery",width:768,open:o,onCancel:l,footer:[(0,n.jsx)(d.wpx,{onClick:l,children:"Cancel"},"cancel"),!!c&&(0,n.jsx)(d.wpx,{type:"primary",onClick:c,children:"Download"},"download")],"data-testid":"consent-breakdown-modal",children:(0,n.jsxs)(d.jqI,{vertical:!0,className:"gap-6","data-testid":"consent-breakdown-modal-content",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(I,{children:"View all instances where this asset was detected without consent, organized by location and page. Use this to investigate potential compliance issues."}),(0,n.jsxs)(I,{children:[(0,n.jsx)(O,{strong:!0,children:"Asset name:"})," ",null!==(t=r.name)&&void 0!==t?t:(0,n.jsx)(O,{italic:!0,children:"Unknown"}),","," ",(0,n.jsx)(O,{strong:!0,children:"System:"})," ",null!==(s=r.system)&&void 0!==s?s:(0,n.jsx)(O,{italic:!0,children:"Unassigned"}),","," ",(0,n.jsx)(O,{strong:!0,children:"Domain:"})," ",null!==(a=r.domain)&&void 0!==a?a:(0,n.jsx)(O,{italic:!0,children:"Unknown"})]})]}),h?(0,n.jsx)(d.DUx,{type:"error",message:"Error fetching data",description:"Please try again later.",showIcon:!0}):(0,n.jsx)(d.V5H,{...m,columns:u,"data-testid":"consent-breakdown-modal-table"})]})})};var R=s(83766),L=s.n(R),P=s(62165),U=s(812),G=s(26070),M=s(3110),V=s(46628),Z=s(16394),z=s(54762),W=s(9320),B=s(88708);let K=e=>{let{asset:t,onTabChange:s}=e,[o,{isLoading:r}]=(0,E.EY)(),[l,{isLoading:c}]=(0,E.nS)(),[m,{isLoading:h}]=(0,E.Tj)(),g=(0,d.pmc)(),y=(0,a.useRouter)(),p=r||c||h,{urn:v,name:f,resource_type:x,diff_status:j,system_key:_,user_assigned_system_key:w}=t,b=async()=>{let e=await o({urnList:[v]});if((0,U.D4)(e))g((0,V.Vo)((0,U.e$)(e.error)));else{let e=w||_,t="".concat(i.So,"/configure/").concat(e,"#assets");g((0,V.t5)((0,W._)("".concat(x,' "').concat(f,'" has been added to the system inventory.'),e?()=>y.push(t):void 0)))}},C=async()=>{let e=await l({urnList:[v]});(0,U.D4)(e)?g((0,V.Vo)((0,U.e$)(e.error))):g((0,V.t5)((0,W._)("".concat(x,' "').concat(f,'" has been ignored and will not appear in future scans.'),async()=>{await s(B.A.IGNORED)})))},k=async()=>{let e=await m({urnList:[v]});(0,U.D4)(e)?g((0,V.Vo)((0,U.e$)(e.error))):g((0,V.t5)("".concat(x,' "').concat(f,'" is no longer ignored and will appear in future scans.')))};return(0,n.jsxs)(d.vyj,{children:[j!==u.LL.MUTED&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.esZ,{title:t.system?void 0:"This asset requires a system before you can add it to the inventory.",children:(0,n.jsx)(d.wpx,{"data-testid":"add-btn",size:"small",onClick:b,disabled:!t.system||p,loading:r,children:"Add"})}),(0,n.jsx)(d.wpx,{"data-testid":"ignore-btn",size:"small",onClick:C,disabled:p,loading:c,children:"Ignore"})]}),j===u.LL.MUTED&&(0,n.jsx)(d.wpx,{"data-testid":"restore-btn",size:"small",onClick:k,disabled:p,loading:h,children:"Restore"})]})};var X=s(41841),$=s(18992),Y=s.n($),q=s(31883),H=e=>{var t,s,a;let{asset:r,readonly:i}=e,[l,c]=(0,o.useState)(!1),[u]=(0,E.Ak)(),{successAlert:m,errorAlert:h}=(0,X.VY)(),{getDataUseDisplayName:g}=(0,y.Z)(),f=(null===(t=r.user_assigned_data_uses)||void 0===t?void 0:t.length)?r.user_assigned_data_uses:(null===(s=r.data_uses)||void 0===s?void 0:s.length)?r.data_uses:[],x=async e=>{let t=await u({monitorId:r.monitor_config_id,urnList:[r.urn],dataUses:[...f,e]});(0,q.D4)(t)?h((0,U.e$)(t.error)):m("Consent category added to ".concat(r.resource_type,' "').concat(r.name,'" .'),"Confirmed"),c(!1)},j=async e=>{let t=await u({monitorId:r.monitor_config_id,urnList:[r.urn],dataUses:f.filter(t=>t!==e)});(0,q.D4)(t)?h((0,U.e$)(t.error)):m("Consent category removed from ".concat(r.resource_type,' "').concat(r.name,'".'),"Confirmed")},_=(null===(a=r.user_assigned_data_uses)||void 0===a?void 0:a.length)?r.user_assigned_data_uses:r.data_uses,w=null==_?void 0:_.filter(e=>(0,p.Z)(e));return i?(0,n.jsx)(d.vyj,{direction:"vertical",children:null==w?void 0:w.map(e=>(0,n.jsx)(d.j8w,{color:"white",children:g(e)},e))}):(0,n.jsxs)(n.Fragment,{children:[!l&&(0,n.jsxs)(d.vyj,{wrap:!0,children:[null==w?void 0:w.map(e=>(0,n.jsx)(d.j8w,{"data-testid":"data-use-".concat(e),color:"white",closable:!0,onClose:()=>j(e),closeButtonLabel:"Remove data use",children:g(e)},e)),(0,n.jsx)(d.j8w,{onClick:()=>c(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"})]}),l&&(0,n.jsx)("div",{className:Y().cellBleed,style:{backgroundColor:"var(--fides-color-white)"},children:(0,n.jsx)(v,{selectedTaxonomies:w||[],onSelect:x,onBlur:()=>c(!1),open:!0})})]})};let F=e=>{let{consentAggregated:t,stagedResource:s,onShowBreakdown:a}=e;return(0,n.jsxs)(n.Fragment,{children:[t===u.lg.WITHOUT_CONSENT&&(0,n.jsx)(d.esZ,{title:"Asset was detected before the user gave consent or without any consent. Click the info icon for more details.",children:(0,n.jsx)(d.j8w,{color:"error",closeIcon:(0,n.jsx)(d.PJP.daM,{style:{width:12,height:12}}),closeButtonLabel:"View details",onClose:()=>{null==a||a(s,t)},"data-testid":"status-badge_without-consent",children:T.X1.WITHOUT_CONSENT})}),t===u.lg.WITH_CONSENT&&(0,n.jsx)(d.esZ,{title:"Asset was detected after the user gave consent",children:(0,n.jsx)(d.j8w,{color:"success","data-testid":"status-badge_with-consent",children:T.X1.WITH_CONSENT})}),t===u.lg.EXEMPT&&(0,n.jsx)(d.esZ,{title:"Asset is valid regardless of consent",children:(0,n.jsx)(d.j8w,{"data-testid":"status-badge_consent-exempt",children:T.X1.EXEMPT})}),t===u.lg.UNKNOWN&&(0,n.jsx)(d.esZ,{title:"Did not find consent information for this asset. You may need to re-run the monitor.",children:(0,n.jsx)(d.j8w,{"data-testid":"status-badge_unknown",children:T.X1.UNKNOWN})})]})};var J=s(70675);let Q=e=>{let{aggregateSystem:t,monitorConfigId:s,readonly:a}=e,{resource_type:r,name:i,urn:l,system:c,user_assigned_system_key:u,system_key:m}=t,[h,g]=(0,o.useState)(!1),[y,p]=(0,o.useState)(!1),[v,{isLoading:f}]=(0,J.NA)(),{successAlert:x,errorAlert:w}=(0,X.VY)(),b=(0,o.useCallback)(e=>{e.preventDefault(),p(!0)},[]),C=async(e,t,n)=>{let a=await v({staged_resource_urn:l,monitor_config_id:s,user_assigned_system_key:e});(0,U.D4)(a)?w((0,U.e$)(a.error)):x(n?"".concat(t," has been added to your system inventory and the ").concat(r,' "').concat(i,'" has been assigned to that system.'):"".concat(r,' "').concat(i,'" has been assigned to ').concat(t,"."),"Confirmed"),g(!1)};return a?c?(0,n.jsx)(d.j8w,{"data-testid":"system-badge",color:"white",children:c}):null:(0,n.jsxs)(n.Fragment,{children:[!h&&(c?(0,n.jsxs)(d.j8w,{onClick:()=>g(!0),"data-testid":"system-badge",children:[c,(0,n.jsx)(d.PJP.I8b,{})]}):(0,n.jsx)(d.j8w,{onClick:()=>g(!0),"data-testid":"add-system-btn",addable:!0})),!!h&&(0,n.jsx)("div",{className:Y().cellBleed,children:(0,n.jsx)(j.R,{variant:"borderless",autoFocus:!0,defaultOpen:!0,defaultValue:u||m,onBlur:e=>{var t;(null===(t=e.relatedTarget)||void 0===t?void 0:t.getAttribute("id"))!=="add-new-system"&&g(!1)},onAddSystem:b,onSelect:(e,t)=>C(e,t.label),loading:f})}),y&&(0,n.jsx)(_.i,{isOpen:!0,onClose:()=>{p(!1)},onSuccessfulSubmit:(e,t)=>C(e,t,!0)})]})},ee=e=>{let{monitorId:t,systemId:s,onSystemName:r,onShowBreakdown:l}=e,c=(0,a.useRouter)(),m=(0,d.pmc)(),[h,g]=(0,o.useState)(s),[y,v]=(0,o.useState)(),[f,x]=(0,o.useState)(!1),[j,_]=(0,o.useState)(!1),{flags:w}=(0,P.hz)(),{assetConsentStatusLabels:b}=w,{filterTabs:k,activeTab:N,onTabChange:A,activeParams:I,actionsDisabled:O}=(0,B.Z)(s),D=(0,S.o)({sorting:{validColumns:Object.values(T.r6)}}),{columnFilters:R,pageIndex:X,pageSize:$,resetState:Y,sortKey:q,sortOrder:J,searchQuery:ee,updateSearch:et,updateFilters:es,updateSorting:en,updatePageIndex:ea,updatePageSize:eo}=D,{data:er,isLoading:ei,isFetching:el}=(0,E.WJ)({key:t,page:X,size:$,search:ee,sort_by:q?[q]:[T.r6.CONSENT_AGGREGATED,"urn"],sort_asc:"descend"!==J,...I,...R}),[ed,{isLoading:ec}]=(0,E.EY)(),[eu,{isLoading:em}]=(0,E.nS)(),[eh,{isLoading:eg}]=(0,E.rs)(),[ey,{isLoading:ep}]=(0,E.sX)(),[ev,{isLoading:ef}]=(0,E.Vr)(),[ex,{isLoading:ej}]=(0,E.Tj)(),e_=ec||em||eg||ep||ej||ef,ew=e_||s===i.Kl,{data:eb}=(0,E.ut)({monitor_config_id:t,resolved_system_id:s,diff_status:null==I?void 0:I.diff_status,search:ee,...R}),eC=(0,o.useMemo)(()=>({enableSelection:N!==B.A.RECENT_ACTIVITY,getRowKey:e=>e.urn,isLoading:ei,isFetching:el,dataSource:(null==er?void 0:er.items)||[],totalRows:(null==er?void 0:er.total)||0,customTableProps:{locale:{emptyText:(0,n.jsx)("div",{children:(0,n.jsx)("div",{children:"All caught up!"})})}}}),[N,ei,el,null==er?void 0:er.items,null==er?void 0:er.total]),ek=(0,S.V)(D,eC),eS=(0,o.useMemo)(()=>{var e;let t=[{title:"Asset",dataIndex:T.r6.NAME,key:T.r6.NAME,sorter:!0,sortOrder:q===T.r6.NAME?J:null,render:e=>(0,n.jsx)(d.lKn,{ellipsis:{tooltip:!0},style:{maxWidth:300},children:e}),fixed:"left"},{title:"Type",dataIndex:T.r6.RESOURCE_TYPE,key:T.r6.RESOURCE_TYPE,sorter:!0,sortOrder:q===T.r6.RESOURCE_TYPE?J:null,filters:(0,Z.nZ)(null==eb?void 0:eb.resource_type),filteredValue:(null==R?void 0:R.resource_type)||null},{title:"System",dataIndex:T.r6.SYSTEM,key:T.r6.SYSTEM,width:200,render:(e,t)=>!!t.monitor_config_id&&(0,n.jsx)(Q,{aggregateSystem:t,monitorConfigId:t.monitor_config_id,readonly:O||N===B.A.IGNORED})},{title:"Categories of consent",key:T.r6.DATA_USES,width:400,filters:(0,Z.nZ)(null==eb?void 0:null===(e=eb.data_uses)||void 0===e?void 0:e.filter(e=>(0,p.Z)(e))),filteredValue:(null==R?void 0:R.data_uses)||null,render:(e,t)=>(0,n.jsx)(H,{asset:t,readonly:O||N===B.A.IGNORED})},{title:"Locations",dataIndex:T.r6.LOCATIONS,key:T.r6.LOCATIONS,width:250,menu:{items:M.D,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?x(!0):"collapse-all"===e.key&&x(!1)}},filters:(0,Z.nZ)(null==eb?void 0:eb.locations,e=>{var t;return null!==(t=C.Z8[e])&&void 0!==t?t:e}),filteredValue:(null==R?void 0:R.locations)||null,render:e=>{var t;return(0,n.jsx)(G.Q,{values:null!==(t=null==e?void 0:e.map(e=>{var t;return{label:null!==(t=C.Z8[e])&&void 0!==t?t:e,key:e}}))&&void 0!==t?t:[],columnState:{isExpanded:f,isWrapped:!0}})}},{title:"Domain",dataIndex:T.r6.DOMAIN,key:T.r6.DOMAIN},{title:"Detected on",dataIndex:T.r6.PAGE,menu:{items:M.D,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?_(!0):"collapse-all"===e.key&&_(!1)}},key:T.r6.PAGE,render:e=>(0,n.jsx)(G.v,{values:e,valueSuffix:"pages",columnState:{isExpanded:j}})}];return b&&t.push({title:()=>(0,n.jsxs)(d.vyj,{children:[(0,n.jsx)("div",{children:"Compliance"}),y===u.lg.WITHOUT_CONSENT&&(0,n.jsx)(z.l,{consentStatus:{status:u.pF.ALERT,message:"One or more assets were detected without consent"}})]}),dataIndex:T.r6.CONSENT_AGGREGATED,key:T.r6.CONSENT_AGGREGATED,sorter:!0,sortOrder:q===T.r6.CONSENT_AGGREGATED?J:null,filters:(0,Z.nZ)(null==eb?void 0:eb[T.r6.CONSENT_AGGREGATED],e=>{var t;return null!==(t=({with_consent:T.X1.WITH_CONSENT,without_consent:T.X1.WITHOUT_CONSENT,exempt:T.X1.EXEMPT,unknown:T.X1.UNKNOWN})[e])&&void 0!==t?t:e}),filteredValue:(null==R?void 0:R[T.r6.CONSENT_AGGREGATED])||null,render:(e,t)=>(0,n.jsx)(F,{consentAggregated:null!=e?e:u.lg.UNKNOWN,stagedResource:t,onShowBreakdown:l})}),O||t.push({title:"Actions",key:T.r6.ACTIONS,fixed:"right",render:(e,t)=>(0,n.jsx)(K,{asset:t,onTabChange:A})}),t},[q,J,eb,R,b,O,N,f,j,y,l,A]);(0,o.useEffect)(()=>{if(er){var e;let t=(null===(e=er.items[0])||void 0===e?void 0:e.system)||h||s||"";g(t),null==r||r(t)}},[er,s,r,h]),(0,o.useEffect)(()=>{if((null==er?void 0:er.items)&&!y){var e;v(null===(e=er.items.find(e=>e.consent_aggregated===u.lg.WITHOUT_CONSENT))||void 0===e?void 0:e.consent_aggregated)}},[er,y]);let{selectedKeys:eE,selectedRows:eT,resetSelections:eN}=ek,eA=(0,o.useCallback)(async()=>{var e,t;let s=await ed({urnList:eE}),n=(null===(e=eT[0])||void 0===e?void 0:e.user_assigned_system_key)||(null===(t=eT[0])||void 0===t?void 0:t.system_key),a=eT.every(e=>(e.user_assigned_system_key||e.system_key)===n)?n:void 0;(0,U.D4)(s)?m((0,V.Vo)((0,U.e$)(s.error))):(m((0,V.t5)((0,W._)("".concat(eE.length," assets from ").concat(h," have been added to the system inventory."),a?()=>c.push("".concat(i.So,"/configure/").concat(a,"#assets")):()=>c.push(i.So)))),eN())},[ed,eE,eT,h,m,c,eN]),eI=(0,o.useCallback)(async e=>{if("string"==typeof(null==e?void 0:e.value)){let s=await ey({monitorId:t,urnList:eE,systemKey:e.value});(0,U.D4)(s)?m((0,V.Vo)((0,U.e$)(s.error))):m((0,V.t5)("".concat(eE.length," assets have been assigned to ").concat(e.label,"."),"Confirmed"))}},[ey,t,eE,m]),eO=(0,o.useCallback)(async e=>{if(!eT.length)return;let s=eT.map(t=>{let s=L()([...t.user_assigned_data_uses||t.data_uses||[],...e]);return{urn:t.urn,user_assigned_data_uses:s}}),n=await ev({monitorId:t,assets:s});(0,U.D4)(n)?m((0,V.Vo)((0,U.e$)(n.error))):m((0,V.t5)("Consent categories added to ".concat(eE.length," assets").concat(h?" from ".concat(h):"","."),"Confirmed"))},[eT,ev,t,eE,h,m]),eD=(0,o.useCallback)(async()=>{let e=await eu({urnList:eE});(0,U.D4)(e)?m((0,V.Vo)((0,U.e$)(e.error))):(m((0,V.t5)(h===i.Kl?"".concat(eE.length," uncategorized assets have been ignored and will not appear in future scans."):"".concat(eE.length," assets from ").concat(h," have been ignored and will not appear in future scans."),"Confirmed")),eN())},[eu,eE,h,m,eN]),eR=(0,o.useCallback)(async()=>{let e=await ex({urnList:eE});(0,U.D4)(e)?m((0,V.Vo)((0,U.e$)(e.error))):(m((0,V.t5)("".concat(eE.length," assets have been restored and will appear in future scans."),"Confirmed")),eN())},[ex,eE,m,eN]),eL=(0,o.useCallback)(async()=>{let e=(null==er?void 0:er.items.length)||0,n=await eh({monitor_config_key:t,resolved_system_ids:[s]});(0,U.D4)(n)?m((0,V.Vo)((0,U.e$)(n.error))):(c.push("".concat(i.vi,"/").concat(t)),m((0,V.t5)("".concat(e," assets from ").concat(h," have been added to the system inventory."),"Confirmed")),eN())},[null==er?void 0:er.items.length,eh,t,s,c,m,h,eN]),eP=(0,o.useCallback)(async e=>{await A(e),Y(),eN()},[A,Y,eN]);return{columns:eS,data:er,isLoading:ei,isFetching:el,tableState:D,searchQuery:ee,updateSearch:et,updateFilters:es,updateSorting:en,updatePageIndex:ea,updatePageSize:eo,resetState:Y,tableProps:ek.tableProps,selectionProps:ek.selectionProps,filterTabs:k,activeTab:N,handleTabChange:eP,activeParams:I,actionsDisabled:O,selectedRows:eT,selectedUrns:eE,hasSelectedRows:ek.hasSelectedRows,resetSelections:eN,systemName:h,firstItemConsentStatus:y,handleBulkAdd:eA,handleBulkAssignSystem:eI,handleBulkAddDataUse:eO,handleBulkIgnore:eD,handleBulkRestore:eR,handleAddAll:eL,anyBulkActionIsLoading:e_,isAddingResults:ec,isIgnoringResults:em,isAddingAllResults:eg,isBulkUpdatingSystem:ep,isBulkAddingDataUses:ef,isRestoringResults:ej,disableAddAll:ew}},et=e=>{var t;let{monitorId:s,systemId:a,onSystemName:r}=e,[i,l]=(0,o.useState)(!1),[h,g]=(0,o.useState)(!1),[y,p]=(0,o.useState)(null),{columns:v,searchQuery:f,updateSearch:j,resetState:_,tableProps:w,selectionProps:C,filterTabs:k,activeTab:S,handleTabChange:E,activeParams:T,actionsDisabled:N,selectedUrns:A,hasSelectedRows:I,resetSelections:O,handleBulkAdd:R,handleBulkAssignSystem:L,handleBulkAddDataUse:P,handleBulkIgnore:U,handleBulkRestore:G,handleAddAll:M,anyBulkActionIsLoading:V,isAddingAllResults:Z,isBulkUpdatingSystem:z,isBulkAddingDataUses:W,disableAddAll:B}=ee({monitorId:s,systemId:a,onSystemName:r,onShowBreakdown:(e,t)=>{p({stagedResource:e,status:t})}}),K=async e=>{await L(e),l(!1)},X=async e=>{await P(e),g(!1)};return s&&a?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.Niu,{"aria-label":"Asset state filter",mode:"horizontal",items:k.map(e=>({key:e.hash,label:e.label})),selectedKeys:[S],onClick:async e=>{await E(e.key)},className:"mb-4","data-testid":"asset-state-filter"}),(0,n.jsxs)(d.jqI,{justify:"space-between",align:"center",className:"mb-4",children:[(0,n.jsx)(m.f,{value:f,onChange:j,placeholder:"Search by asset name..."}),(0,n.jsxs)(d.vyj,{size:"large",children:[I&&(0,n.jsx)(c.a,{count:A.length}),(0,n.jsxs)(d.vyj,{size:"small",children:[(0,n.jsx)(d.wpx,{onClick:()=>{_(),O()},"data-testid":"clear-filters",children:"Clear filters"}),(0,n.jsx)(d.S0p,{overlayClassName:"bulk-actions-menu-dropdown",menu:{items:[...(null==T?void 0:null===(t=T.diff_status)||void 0===t?void 0:t.includes(u.LL.MUTED))?[{key:"restore",label:"Restore",onClick:G}]:[{key:"add",label:"Add",onClick:R},{key:"add-data-use",label:"Add consent category",onClick:()=>g(!0)},{key:"assign-system",label:"Assign system",onClick:()=>l(!0)},{type:"divider"},{key:"ignore",label:"Ignore",onClick:U}]]},trigger:["click"],children:(0,n.jsx)(d.wpx,{icon:(0,n.jsx)(d.PJP._ME,{}),iconPosition:"end",loading:V,"data-testid":"bulk-actions-menu",disabled:!I||V||N,type:"primary",children:"Actions"})}),(0,n.jsx)(d.esZ,{title:B?"These assets require a system before you can add them to the inventory.":void 0,children:(0,n.jsx)(d.wpx,{onClick:M,disabled:B,loading:Z,type:"primary",icon:(0,n.jsx)(d.PJP.MCw,{}),iconPosition:"end","data-testid":"add-all",children:"Add all"})})]})]})]}),(0,n.jsx)(d.V5H,{...w,columns:v,rowSelection:C,locale:{emptyText:(0,n.jsx)(d.oj8,{image:d.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})},"aria-labelledby":"breadcrumb-current-page"}),(0,n.jsx)(b,{isOpen:i,onClose:()=>{l(!1)},onSave:K,isSaving:z}),(0,n.jsx)(x,{isOpen:h,onClose:()=>{g(!1)},onSave:X,isSaving:W}),y&&(0,n.jsx)(D,{isOpen:!!y,stagedResource:y.stagedResource,status:y.status,onCancel:()=>{p(null)}})]}):null};var es=()=>{let e=(0,a.useRouter)(),t=decodeURIComponent(e.query.monitorId),s=decodeURIComponent(e.query.systemId),[d,c]=(0,o.useState)(s===i.Kl?"Uncategorized assets":s);return(0,n.jsxs)(r.Z,{title:"Action center - Discovered assets",children:[(0,n.jsx)(l.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:i.vi},{title:t,href:"".concat(i.vi,"/").concat(t)},{title:s===i.Kl?"Uncategorized assets":d}]}),(0,n.jsx)(et,{monitorId:t,systemId:s,onSystemName:c})]})}},31883:function(e,t,s){"use strict";s.d(t,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=s(19043)},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}},18992:function(e){e.exports={cellBleed:"Cells_cellBleed__dik43"}}},function(e){e.O(0,[431,8765,9278,5163,4164,401,4844,3847,2888,9774,179],function(){return e(e.s=25654)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2423],{74833:function(a,e,n){var t=n(56127),i=/^\s+/;a.exports=function(a){return a?a.slice(0,t(a)+1).replace(i,""):a}},56632:function(a,e,n){var t=n(89278),i=n(80068),s=n(50098);a.exports=function(a){return function(e,n,o){var r=Object(e);if(!i(e)){var l=t(n,3);e=s(e),n=function(a){return l(r[a],a,r)}}var _=a(e,n,o);return _>-1?r[l?e[_]:_]:void 0}}},56127:function(a){var e=/\s/;a.exports=function(a){for(var n=a.length;n--&&e.test(a.charAt(n)););return n}},66726:function(a,e,n){var t=n(11611),i=n(82846),s=n(91936),o=Math.max,r=Math.min;a.exports=function(a,e,n){var l,_,u,F,d,c,S=0,m=!1,v=!1,C=!0;if("function"!=typeof a)throw TypeError("Expected a function");function f(e){var n=l,t=_;return l=_=void 0,S=e,F=a.apply(t,n)}function h(a){var n=a-c,t=a-S;return void 0===c||n>=e||n<0||v&&t>=u}function y(){var a,n,t,s=i();if(h(s))return A(s);d=setTimeout(y,(a=s-c,n=s-S,t=e-a,v?r(t,u-n):t))}function A(a){return(d=void 0,C&&l)?f(a):(l=_=void 0,F)}function p(){var a,n=i(),t=h(n);if(l=arguments,_=this,c=n,t){if(void 0===d)return S=a=c,d=setTimeout(y,e),m?f(a):F;if(v)return clearTimeout(d),d=setTimeout(y,e),f(c)}return void 0===d&&(d=setTimeout(y,e)),F}return e=s(e)||0,t(n)&&(m=!!n.leading,u=(v="maxWait"in n)?o(s(n.maxWait)||0,e):u,C="trailing"in n?!!n.trailing:C),p.cancel=function(){void 0!==d&&clearTimeout(d),S=0,l=c=_=d=void 0},p.flush=function(){return void 0===d?F:A(i())},p}},64925:function(a,e,n){var t=n(56632)(n(66259));a.exports=t},66259:function(a,e,n){var t=n(95372),i=n(89278),s=n(47991),o=Math.max;a.exports=function(a,e,n){var r=null==a?0:a.length;if(!r)return -1;var l=null==n?0:s(n);return l<0&&(l=o(r+l,0)),t(a,i(e,3),l)}},82846:function(a,e,n){var t=n(77400);a.exports=function(){return t.Date.now()}},94919:function(a,e,n){var t=n(91936),i=1/0;a.exports=function(a){return a?(a=t(a))===i||a===-i?(a<0?-1:1)*17976931348623157e292:a==a?a:0:0===a?a:0}},47991:function(a,e,n){var t=n(94919);a.exports=function(a){var e=t(a),n=e%1;return e==e?n?e-n:e:0}},91936:function(a,e,n){var t=n(74833),i=n(11611),s=n(55193),o=0/0,r=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,_=/^0o[0-7]+$/i,u=parseInt;a.exports=function(a){if("number"==typeof a)return a;if(s(a))return o;if(i(a)){var e="function"==typeof a.valueOf?a.valueOf():a;a=i(e)?e+"":e}if("string"!=typeof a)return 0===a?a:+a;a=t(a);var n=l.test(a);return n||_.test(a)?u(a.slice(2),n?2:8):r.test(a)?o:+a}},86850:function(a,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/[monitorId]",function(){return n(24699)}])},30952:function(a,e,n){"use strict";n.d(e,{f:function(){return l}});var t=n(24246),i=n(66726),s=n.n(i),o=n(27378),r=n(26917);let l=a=>{let{value:e,onChange:n,placeholder:i,...l}=a,[_,u]=(0,o.useState)(e);(0,o.useEffect)(()=>{u(e||"")},[e]);let F=s()(n,500),d=(0,o.useCallback)(a=>{u(a),F(a)},[]);return(0,t.jsx)(r.Z,{value:_,onChange:d,onClear:()=>{u(""),n("")},placeholder:i,...l})}},26089:function(a,e,n){"use strict";var t=n(24246),i=n(96306),s=n(99830),o=n.n(s);e.Z=a=>{let{onClick:e,children:n}=a;return(0,t.jsx)(i.wpx,{onClick:e,type:"link",role:"link",size:"small",className:o().toastLink,children:n})}},8411:function(a,e,n){"use strict";n.d(e,{NA:function(){return s},Z8:function(){return i}});var t=n(54682);let i={[t._F.ER]:"Eritrea",[t._F.DJ]:"Djibouti",[t._F.MR]:"Mauritania",[t._F.NA]:"Namibia",[t._F.GH]:"Ghana",[t._F.SS]:"South Sudan",[t._F.SC]:"Seychelles",[t._F.IO]:"British Indian Ocean Territory",[t._F.GQ]:"Equatorial Guinea",[t._F.AO]:"Angola",[t._F.CG]:"Republic of the Congo",[t._F.BW]:"Botswana",[t._F.BI]:"Burundi",[t._F.DZ]:"Algeria",[t._F.TD]:"Chad",[t._F.NG]:"Nigeria",[t._F.TZ]:"Tanzania",[t._F.EH]:"Western Sahara",[t._F.SN]:"Senegal",[t._F.LR]:"Liberia",[t._F.ZA]:"South Africa",[t._F.CV]:"Cape Verde",[t._F.GM]:"Gambia",[t._F.SD]:"Sudan",[t._F.KM]:"Comoros",[t._F.SZ]:"Eswatini",[t._F.UG]:"Uganda",[t._F.MG]:"Madagascar",[t._F.RW]:"Rwanda",[t._F.CD]:"DR Congo",[t._F.CM]:"Cameroon",[t._F.SH]:"Saint Helena, Ascension and Tristan da Cunha",[t._F.TG]:"Togo",[t._F.MU]:"Mauritius",[t._F.NE]:"Niger",[t._F.BJ]:"Benin",[t._F.EG]:"Egypt",[t._F.LS]:"Lesotho",[t._F.ET]:"Ethiopia",[t._F.MA]:"Morocco",[t._F.YT]:"Mayotte",[t._F.BF]:"Burkina Faso",[t._F.RE]:"R\xe9union",[t._F.ST]:"S\xe3o Tom\xe9 and Pr\xedncipe",[t._F.CF]:"Central African Republic",[t._F.MZ]:"Mozambique",[t._F.MW]:"Malawi",[t._F.ML]:"Mali",[t._F.ZM]:"Zambia",[t._F.LY]:"Libya",[t._F.GW]:"Guinea-Bissau",[t._F.SO]:"Somalia",[t._F.KE]:"Kenya",[t._F.GN]:"Guinea",[t._F.ZW]:"Zimbabwe",[t._F.TN]:"Tunisia",[t._F.SL]:"Sierra Leone",[t._F.GA]:"Gabon",[t._F.CI]:"Ivory Coast",[t._F.JO]:"Jordan",[t._F.PK]:"Pakistan",[t._F.KP]:"North Korea",[t._F.MO]:"Macau",[t._F.AM]:"Armenia",[t._F.SY]:"Syria",[t._F.TJ]:"Tajikistan",[t._F.SA]:"Saudi Arabia",[t._F.KR]:"South Korea",[t._F.NP]:"Nepal",[t._F.PH]:"Philippines",[t._F.IQ]:"Iraq",[t._F.LB]:"Lebanon",[t._F.MN]:"Mongolia",[t._F.PS]:"Palestine",[t._F.YE]:"Yemen",[t._F.JP]:"Japan",[t._F.KZ]:"Kazakhstan",[t._F.LK]:"Sri Lanka",[t._F.MM]:"Myanmar",[t._F.KG]:"Kyrgyzstan",[t._F.CN]:"China",[t._F.AF]:"Afghanistan",[t._F.OM]:"Oman",[t._F.IN]:"India",[t._F.LA]:"Laos",[t._F.UZ]:"Uzbekistan",[t._F.MV]:"Maldives",[t._F.ID]:"Indonesia",[t._F.VN]:"Vietnam",[t._F.MY]:"Malaysia",[t._F.TW]:"Taiwan",[t._F.KH]:"Cambodia",[t._F.AE]:"United Arab Emirates",[t._F.HK]:"Hong Kong",[t._F.GE]:"Georgia (Country)",[t._F.BD]:"Bangladesh",[t._F.KW]:"Kuwait",[t._F.TM]:"Turkmenistan",[t._F.QA]:"Qatar",[t._F.BH]:"Bahrain",[t._F.BN]:"Brunei",[t._F.TH]:"Thailand",[t._F.BT]:"Bhutan",[t._F.SG]:"Singapore",[t._F.IL]:"Israel",[t._F.AZ]:"Azerbaijan",[t._F.TL]:"Timor-Leste",[t._F.IR]:"Iran",[t._F.TR]:"Turkey",[t._F.MK]:"North Macedonia",[t._F.IE]:"Ireland",[t._F.DK]:"Denmark",[t._F.SK]:"Slovakia",[t._F.MD]:"Moldova",[t._F.AX]:"\xc5land Islands",[t._F.PL]:"Poland",[t._F.BA]:"Bosnia and Herzegovina",[t._F.SM]:"San Marino",[t._F.CZ]:"Czechia",[t._F.EE]:"Estonia",[t._F.XK]:"Kosovo",[t._F.FO]:"Faroe Islands",[t._F.SJ]:"Svalbard and Jan Mayen",[t._F.GG]:"Guernsey",[t._F.FR]:"France",[t._F.NL]:"Netherlands",[t._F.FI]:"Finland",[t._F.PT]:"Portugal",[t._F.DE]:"Germany",[t._F.MT]:"Malta",[t._F.JE]:"Jersey",[t._F.IS]:"Iceland",[t._F.ES]:"Spain",[t._F.GI]:"Gibraltar",[t._F.NO]:"Norway",[t._F.CY]:"Cyprus",[t._F.RS]:"Serbia",[t._F.LT]:"Lithuania",[t._F.MC]:"Monaco",[t._F.LU]:"Luxembourg",[t._F.UA]:"Ukraine",[t._F.IM]:"Isle of Man",[t._F.RO]:"Romania",[t._F.BE]:"Belgium",[t._F.SE]:"Sweden",[t._F.ME]:"Montenegro",[t._F.LV]:"Latvia",[t._F.VA]:"Vatican City",[t._F.AT]:"Austria",[t._F.AL]:"Albania",[t._F.LI]:"Liechtenstein",[t._F.GR]:"Greece",[t._F.IT]:"Italy",[t._F.AD]:"Andorra",[t._F.GB]:"United Kingdom",[t._F.RU]:"Russia",[t._F.SI]:"Slovenia",[t._F.BY]:"Belarus",[t._F.CH]:"Switzerland",[t._F.HU]:"Hungary",[t._F.BG]:"Bulgaria",[t._F.HR]:"Croatia",[t._F.TC]:"Turks and Caicos Islands",[t._F.CW]:"Cura\xe7ao",[t._F.GP]:"Guadeloupe",[t._F.UM]:"United States Minor Outlying Islands",[t._F.GT]:"Guatemala",[t._F.PM]:"Saint Pierre and Miquelon",[t._F.BQ]:"Caribbean Netherlands",[t._F.GL]:"Greenland",[t._F.SX]:"Sint Maarten",[t._F.PA]:"Panama",[t._F.AW]:"Aruba",[t._F.MQ]:"Martinique",[t._F.AG]:"Antigua and Barbuda",[t._F.BM]:"Bermuda",[t._F.CU]:"Cuba",[t._F.GD]:"Grenada",[t._F.NI]:"Nicaragua",[t._F.LC]:"Saint Lucia",[t._F.KN]:"Saint Kitts and Nevis",[t._F.DO]:"Dominican Republic",[t._F.VC]:"Saint Vincent and the Grenadines",[t._F.BZ]:"Belize",[t._F.HT]:"Haiti",[t._F.JM]:"Jamaica",[t._F.BS]:"Bahamas",[t._F.MX]:"Mexico",[t._F.MF]:"Saint Martin",[t._F.SV]:"El Salvador",[t._F.BL]:"Saint Barth\xe9lemy",[t._F.AI]:"Anguilla",[t._F.MS]:"Montserrat",[t._F.VG]:"British Virgin Islands",[t._F.BB]:"Barbados",[t._F.HN]:"Honduras",[t._F.KY]:"Cayman Islands",[t._F.DM]:"Dominica",[t._F.TT]:"Trinidad and Tobago",[t._F.CR]:"Costa Rica",[t._F.SR]:"Suriname",[t._F.CX]:"Christmas Island",[t._F.WS]:"Samoa",[t._F.PF]:"French Polynesia",[t._F.AS]:"American Samoa",[t._F.NC]:"New Caledonia",[t._F.TK]:"Tokelau",[t._F.PW]:"Palau",[t._F.KI]:"Kiribati",[t._F.VU]:"Vanuatu",[t._F.PN]:"Pitcairn Islands",[t._F.CK]:"Cook Islands",[t._F.FJ]:"Fiji",[t._F.PG]:"Papua New Guinea",[t._F.MP]:"Northern Mariana Islands",[t._F.NU]:"Niue",[t._F.TV]:"Tuvalu",[t._F.NF]:"Norfolk Island",[t._F.TO]:"Tonga",[t._F.FM]:"Micronesia",[t._F.SB]:"Solomon Islands",[t._F.NR]:"Nauru",[t._F.WF]:"Wallis and Futuna",[t._F.GU]:"Guam",[t._F.AU]:"Australia",[t._F.NZ]:"New Zealand",[t._F.MH]:"Marshall Islands",[t._F.CC]:"Cocos (Keeling) Islands",[t._F.VE]:"Venezuela",[t._F.PY]:"Paraguay",[t._F.BR]:"Brazil",[t._F.CO]:"Colombia",[t._F.PE]:"Peru",[t._F.CL]:"Chile",[t._F.UY]:"Uruguay",[t._F.AR]:"Argentina",[t._F.GY]:"Guyana",[t._F.BO]:"Bolivia",[t._F.GF]:"French Guiana",[t._F.EC]:"Ecuador",[t._F.FK]:"Falkland Islands",[t._F.US_AL]:"Alabama",[t._F.US_AK]:"Alaska",[t._F.US_AZ]:"Arizona",[t._F.US_AR]:"Arkansas",[t._F.US_CA]:"California",[t._F.US_CO]:"Colorado",[t._F.US_CT]:"Connecticut",[t._F.US_DE]:"Delaware",[t._F.US_DC]:"District of Columbia (DC)",[t._F.US_FL]:"Florida",[t._F.US_GA]:"Georgia",[t._F.US_HI]:"Hawaii",[t._F.US_ID]:"Idaho",[t._F.US_IL]:"Illinois",[t._F.US_IN]:"Indiana",[t._F.US_IA]:"Iowa",[t._F.US_KS]:"Kansas",[t._F.US_KY]:"Kentucky",[t._F.US_LA]:"Louisiana",[t._F.US_ME]:"Maine",[t._F.US_MD]:"Maryland",[t._F.US_MA]:"Massachusetts",[t._F.US_MI]:"Michigan",[t._F.US_MN]:"Minnesota",[t._F.US_MS]:"Mississippi",[t._F.US_MO]:"Missouri",[t._F.US_MT]:"Montana",[t._F.US_NE]:"Nebraska",[t._F.US_NV]:"Nevada",[t._F.US_NH]:"New Hampshire",[t._F.US_NJ]:"New Jersey",[t._F.US_NM]:"New Mexico",[t._F.US_NY]:"New York",[t._F.US_NC]:"North Carolina",[t._F.US_ND]:"North Dakota",[t._F.US_OH]:"Ohio",[t._F.US_OK]:"Oklahoma",[t._F.US_OR]:"Oregon",[t._F.US_PA]:"Pennsylvania",[t._F.US_PR]:"Puerto Rico",[t._F.US_RI]:"Rhode Island",[t._F.US_SC]:"South Carolina",[t._F.US_SD]:"South Dakota",[t._F.US_TN]:"Tennessee",[t._F.US_TX]:"Texas",[t._F.US_UT]:"Utah",[t._F.US_VA]:"Virginia",[t._F.US_VI]:"United States Virgin Islands",[t._F.US_VT]:"Vermont",[t._F.US_WA]:"Washington",[t._F.US_WV]:"West Virginia",[t._F.US_WI]:"Wisconsin",[t._F.US_WY]:"Wyoming",[t._F.CA_AB]:"Alberta",[t._F.CA_BC]:"British Columbia",[t._F.CA_MB]:"Manitoba",[t._F.CA_NB]:"New Brunswick",[t._F.CA_NL]:"Newfoundland and Labrador",[t._F.CA_NS]:"Nova Scotia",[t._F.CA_ON]:"Ontario",[t._F.CA_PE]:"Prince Edward Island",[t._F.CA_QC]:"Quebec",[t._F.CA_SK]:"Saskatchewan",[t._F.CA_NT]:"Northwest Territories",[t._F.CA_NU]:"Nunavut",[t._F.CA_YT]:"Yukon",[t._F.CA]:"Canada",[t._F.US]:"United States",[t._F.MEXICO_CENTRAL_AMERICA]:"Mexico and Central America",[t._F.CARIBBEAN]:"Caribbean",[t._F.EEA]:"European Economic Area (EEA)",[t._F.NON_EEA]:"Non European Economic Area",[t._F.GLOBAL]:"Global"},s=new Map(Object.entries(i));Object.entries(i).map(a=>({value:a[0],label:a[1]}))},14908:function(a,e,n){"use strict";var t=n(86677),i=n(27378);let s=a=>a.startsWith("#")?a.slice(1):a;e.Z=a=>{let{tabKeys:e,initialTab:n}=a,o=(0,t.useRouter)(),r=o.asPath.split("#")[1]||e[0],[l,_]=(0,i.useState)(r);return(0,i.useEffect)(()=>{n&&e.includes(n)&&_(n)},[n,e,o.isReady]),{activeTab:l,onTabChange:(0,i.useCallback)(async a=>{if(!e.includes(a)){await o.replace({pathname:o.pathname,query:o.query,hash:void 0}),_(e[0]);return}o.isReady&&(await o.replace({pathname:o.pathname,query:o.query,hash:s(a)},void 0,{shallow:!0}),_(a))},[o,e])}}},76904:function(a,e,n){"use strict";n.d(e,{dK:function(){return F},Rv:function(){return m},$P:function(){return c},zj:function(){return v},Kr:function(){return C},q1:function(){return d},QL:function(){return f}});var t=n(24246),i=n(96306),s=n(3124),o=n.n(s);let r=a=>{let{...e}=a;return(0,t.jsx)("svg",{viewBox:"0 0 8 8",focusable:"false",...e,children:(0,t.jsx)("path",{fill:"currentColor",d:"M7.23192 8H8V7.23192V1.85539V1.08731H6.46385V1.85539V5.37654L1.62976 0.544855L1.08731 0L0 1.08731L0.542454 1.62976L5.37654 6.46385H1.85539H1.08731V8H1.85539H7.23192Z"})})},l=a=>{let{...e}=a;return(0,t.jsx)("svg",{viewBox:"0 0 8 8",focusable:"false",...e,children:(0,t.jsx)("path",{fill:"currentColor",d:"M7.23192 0H8V0.768077V6.14461V6.91269H6.46385V6.14461V2.62346L1.62976 7.45515L1.08731 8L0 6.91269L0.542454 6.37024L5.37654 1.53615H1.85539H1.08731V0H1.85539H7.23192Z"})})},_=a=>{let{...e}=a;return(0,t.jsx)("svg",{viewBox:"0 0 9 10",focusable:"false",...e,children:(0,t.jsx)("path",{fill:"currentColor",d:"M0 0.5V5L4.5 9.5L9 5L4.5 0.5H0ZM2.25 2.10714C2.4205 2.10714 2.58401 2.17487 2.70457 2.29543C2.82513 2.41599 2.89286 2.5795 2.89286 2.75C2.89286 2.9205 2.82513 3.08401 2.70457 3.20457C2.58401 3.32513 2.4205 3.39286 2.25 3.39286C2.0795 3.39286 1.91599 3.32513 1.79543 3.20457C1.67487 3.08401 1.60714 2.9205 1.60714 2.75C1.60714 2.5795 1.67487 2.41599 1.79543 2.29543C1.91599 2.17487 2.0795 2.10714 2.25 2.10714Z"})})};var u=n(28278);let F=()=>(0,t.jsx)(l,{style:{color:o().FIDESUI_SUCCESS},className:"size-2","data-testid":"add-icon"}),d=()=>(0,t.jsx)(r,{style:{color:o().FIDESUI_ERROR},className:"size-2","data-testid":"remove-icon"}),c=()=>(0,t.jsx)(_,{style:{color:o().FIDESUI_WARNING},className:"size-3","data-testid":"classify-icon"}),S=a=>{let{color:e,...n}=a;return(0,t.jsx)(i.PJP.fRw,{style:{color:e},className:"size-2",...n})},m=()=>(0,t.jsx)(S,{color:o().FIDESUI_INFO,"data-testid":"change-icon"}),v=()=>(0,t.jsx)(S,{color:o().FIDESUI_SUCCESS,"data-testid":"monitored-icon"}),C=()=>(0,t.jsx)(S,{color:o().FIDESUI_ERROR,"data-testid":"muted-icon"}),f={[u.E.ADDITION]:(0,t.jsx)(F,{}),[u.E.REMOVAL]:(0,t.jsx)(d,{}),[u.E.CLASSIFICATION]:(0,t.jsx)(c,{}),[u.E.CHANGE]:(0,t.jsx)(m,{}),[u.E.MONITORED]:(0,t.jsx)(v,{}),[u.E.MUTED]:(0,t.jsx)(C,{}),[u.E.IN_PROGRESS]:(0,t.jsx)(()=>(0,t.jsx)(S,{color:o().FIDESUI_WARNING,"data-testid":"in-progress-icon"}),{}),[u.E.NONE]:null}},28278:function(a,e,n){"use strict";var t,i;n.d(e,{E:function(){return t}}),(i=t||(t={})).ADDITION="Addition",i.CHANGE="Change",i.REMOVAL="Removal",i.CLASSIFICATION="Classification",i.IN_PROGRESS="Classifying",i.MONITORED="Monitoring",i.MUTED="Unmonitored",i.NONE="--"},24699:function(a,e,n){"use strict";n.r(e),n.d(e,{default:function(){return O}});var t=n(24246),i=n(86677),s=n(35287),o=n(77830),r=n(58754),l=n(96306),_=n(25415),u=n(54682),F=n(30952),d=n(27378),c=n(812),S=n(8125),m=n(46628),v=n(37059),C=n(98145),f=n(9320),h=n(88708),y=n(8411),A=n(26070),p=n(3110),I=n(54762);let M=a=>{let{monitorId:e,system:n,allowIgnore:s,onTabChange:r}=a,[_,{isLoading:u}]=(0,v.rs)(),[F,{isLoading:d}]=(0,v.nP)(),S=(0,i.useRouter)(),C=(0,l.pmc)(),y=u||d,{id:A,name:p,system_key:I,total_updates:M}=n,N=async()=>{let a=await _({monitor_config_key:e,resolved_system_ids:[A]});if((0,c.D4)(a))C((0,m.Vo)((0,c.e$)(a.error)));else{let a="".concat(o.So,"/configure/").concat(I,"#assets");C((0,m.t5)((0,f._)(I?"".concat(M," assets from ").concat(p," have been added to the system inventory."):"".concat(p," and ").concat(M," assets have been added to the system inventory. ").concat(p," is now configured for consent."),I?()=>S.push(a):void 0)))}},g=async()=>{let a=await F({monitor_config_key:e,resolved_system_ids:[A||o.Kl]});(0,c.D4)(a)?C((0,m.Vo)((0,c.e$)(a.error))):C((0,m.t5)((0,f._)(p?"".concat(M," assets from ").concat(p," have been ignored and will not appear in future scans."):"".concat(M," uncategorized assets have been ignored and will not appear in future scans."),async()=>{await r(h.A.IGNORED)})))};return(0,t.jsxs)(l.vyj,{children:[(0,t.jsx)(l.esZ,{title:n.id?void 0:"These assets must be categorized before you can add them to the inventory.",children:(0,t.jsx)(l.wpx,{"data-testid":"add-btn",size:"small",onClick:N,disabled:!n.id||y,loading:u,children:"Add"})}),s&&(0,t.jsx)(l.wpx,{"data-testid":"ignore-btn",size:"small",onClick:g,disabled:y,loading:d,children:"Ignore"})]})};var N=n(79894),g=n.n(N);let{Link:E,Text:x}=l.AntTypography,U=a=>{let{href:e,children:n,...i}=a;return e?(0,t.jsx)(g(),{href:e,passHref:!0,legacyBehavior:!0,children:(0,t.jsx)(E,{strong:!0,ellipsis:!0,onClick:a=>a.stopPropagation(),...i,children:n})}):(0,t.jsx)(x,{strong:!0,ellipsis:!0,...i,children:n})};var b=n(76904);let T=a=>{let{system:e,rowClickUrl:n}=a,i=null==n?void 0:n(e);return(0,t.jsxs)(l.vyj,{className:"max-w-[250px] flex-nowrap",children:[!e.system_key&&(0,t.jsx)(l.esZ,{title:"New system",children:(0,t.jsx)("span",{children:b.QL.Change})}),(0,t.jsx)(U,{href:i,"data-testid":i?"system-name-link":"system-name-text",children:e.name||"Uncategorized assets"}),(0,t.jsx)(I.l,{consentStatus:e.consent_status})]})};var L=n(34929),k=n(2525),j=n(78238),w=a=>{var e,n;let{system:i}=a,{getDataUseDisplayName:s}=(0,L.Z)(),o=(null!==(n=null===(e=i.data_uses)||void 0===e?void 0:e.filter(a=>(0,j.Z)(a)))&&void 0!==n?n:[]).map(a=>({label:s(a),key:a}));return(0,t.jsx)(k.Q,{values:o})};let R=a=>{let{monitorId:e,readonly:n,allowIgnore:i,onTabChange:s,consentStatus:o,rowClickUrl:r}=a,[_,u]=(0,d.useState)(!1),[F,c]=(0,d.useState)(!1);return{columns:(0,d.useMemo)(()=>{let a=[{title:()=>(0,t.jsxs)(l.vyj,{children:[(0,t.jsx)("div",{children:"System"}),(0,t.jsx)(I.l,{consentStatus:o})]}),dataIndex:"name",key:C.vQ.SYSTEM_NAME,fixed:"left",render:(a,e)=>(0,t.jsx)(T,{system:e,rowClickUrl:r})},{title:"Assets",dataIndex:"total_updates",key:C.vQ.TOTAL_UPDATES},{title:"Categories of consent",key:C.vQ.DATA_USE,render:(a,e)=>(0,t.jsx)(w,{system:e})},{title:"Locations",menu:{items:p.D,onClick:a=>{a.domEvent.stopPropagation(),"expand-all"===a.key?u(!0):"collapse-all"===a.key&&u(!1)}},dataIndex:"locations",key:C.vQ.LOCATIONS,width:250,render:a=>{var e;return(0,t.jsx)(A.Q,{values:null!==(e=null==a?void 0:a.map(a=>{var e;return{label:null!==(e=y.Z8[a])&&void 0!==e?e:a,key:a}}))&&void 0!==e?e:[],columnState:{isExpanded:_,isWrapped:!0}})}},{title:"Domains",menu:{items:p.D,onClick:a=>{a.domEvent.stopPropagation(),"expand-all"===a.key?c(!0):"collapse-all"===a.key&&c(!1)}},dataIndex:"domains",key:C.vQ.DOMAINS,render:a=>(0,t.jsx)(A.v,{values:a,valueSuffix:"domains",columnState:{isExpanded:F}})}];return n||a.push({title:"Actions",key:C.vQ.ACTIONS,render:(a,n)=>(0,t.jsx)(M,{system:n,monitorId:e,allowIgnore:i,onTabChange:s})}),a},[n,o,r,_,F,e,i,s])}},G=a=>{let{monitorId:e}=a,n=(0,i.useRouter)(),s=(0,l.pmc)(),[r,_]=(0,d.useState)(),{filterTabs:F,activeTab:y,onTabChange:A,activeParams:p,actionsDisabled:I}=(0,h.Z)(),M=(0,S.o)({sorting:{validColumns:Object.values(C.vQ)}}),{pageIndex:N,pageSize:g,searchQuery:E,updateSearch:x,resetState:U}=M,{data:b,isLoading:T,isFetching:L}=(0,v.wi)({key:e,page:N,size:g,search:E,...p}),[k,{isLoading:j}]=(0,v.rs)(),[w,{isLoading:G}]=(0,v.nP)(),D=(0,d.useCallback)(a=>{var e,n,t;return null!==(t=null!==(n=null!==(e=a.id)&&void 0!==e?e:a.vendor_id)&&void 0!==n?n:a.name)&&void 0!==t?t:o.Kl},[]),O=(0,d.useCallback)(a=>{var n;return"".concat(o.vi,"/").concat(e,"/").concat(null!==(n=a.id)&&void 0!==n?n:o.Kl).concat(y?"#".concat(y):"")},[e,y]),P=(0,d.useMemo)(()=>({enableSelection:!0,getRowKey:D,isLoading:T,isFetching:L,dataSource:(null==b?void 0:b.items)||[],totalRows:(null==b?void 0:b.total)||0,customTableProps:{locale:{emptyText:(0,t.jsx)(l.oj8,{image:l.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})}}}),[D,T,L,null==b?void 0:b.items,null==b?void 0:b.total]),B=(0,S.V)(M,P),{selectedRows:K,resetSelections:V}=B,H=(0,d.useCallback)(async a=>{_(void 0),await A(a),U(),V()},[A,U,V]),{columns:Z}=R({monitorId:e,onTabChange:H,readonly:I,allowIgnore:!p.diff_status.includes(u.LL.MUTED),consentStatus:r,rowClickUrl:O});(0,d.useEffect)(()=>{if((null==b?void 0:b.items)&&!r){var a;let e=null===(a=b.items.find(a=>{var e;return(null===(e=a.consent_status)||void 0===e?void 0:e.status)===u.pF.ALERT}))||void 0===a?void 0:a.consent_status;_(null!=e?e:void 0)}},[b,r]);let z=(0,d.useCallback)(async()=>{let a=K.reduce((a,e)=>a+e.total_updates,0),t=await k({monitor_config_key:e,resolved_system_ids:K.map(a=>a.id)});(0,c.D4)(t)?s((0,m.Vo)((0,c.e$)(t.error))):(s((0,m.t5)((0,f._)("".concat(a," assets have been added to the system inventory."),()=>n.push(o.So)))),V())},[K,k,e,s,n,V]),W=(0,d.useCallback)(async()=>{let a=K.reduce((a,e)=>a+e.total_updates,0),n=await w({monitor_config_key:e,resolved_system_ids:K.map(a=>{var e;return null!==(e=a.id)&&void 0!==e?e:o.Kl})});(0,c.D4)(n)?s((0,m.Vo)((0,c.e$)(n.error))):(s((0,m.t5)((0,f._)("".concat(a," assets have been ignored and will not appear in future scans."),async()=>{await A(h.A.IGNORED)}))),V())},[K,w,e,s,A,V]),Q=K.some(a=>null===a.id);return{columns:Z,data:b,isLoading:T,isFetching:L,searchQuery:E,updateSearch:x,resetState:U,tableProps:B.tableProps,selectionProps:B.selectionProps,filterTabs:F,activeTab:y,handleTabChange:H,activeParams:p,actionsDisabled:I,selectedRows:K,hasSelectedRows:B.hasSelectedRows,resetSelections:V,uncategorizedIsSelected:Q,handleBulkAdd:z,handleBulkIgnore:W,anyBulkActionIsLoading:j||G,isAddingResults:j,isIgnoringResults:G}},D=a=>{let{monitorId:e}=a,{columns:n,searchQuery:i,updateSearch:s,tableProps:o,selectionProps:r,filterTabs:d,activeTab:c,handleTabChange:S,activeParams:m,selectedRows:v,hasSelectedRows:C,uncategorizedIsSelected:f,handleBulkAdd:h,handleBulkIgnore:y,anyBulkActionIsLoading:A}=G({monitorId:e});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.Niu,{"aria-label":"Asset state filter",mode:"horizontal",items:d.map(a=>({key:a.hash,label:a.label})),selectedKeys:[c],onClick:async a=>{await S(a.key)},className:"mb-4","data-testid":"asset-state-filter"}),(0,t.jsxs)(l.jqI,{justify:"space-between",align:"center",className:"mb-4",children:[(0,t.jsx)(F.f,{value:i,onChange:s}),(0,t.jsxs)(l.vyj,{size:"large",children:[C&&(0,t.jsx)(_.a,{count:v.length}),(0,t.jsx)(l.S0p,{menu:{items:[{key:"add",label:(0,t.jsx)(l.esZ,{title:f?"Uncategorized assets can't be added to the inventory":null,placement:"left",children:"Add"}),onClick:h,disabled:f},m.diff_status.includes(u.LL.MUTED)?null:{key:"ignore",label:"Ignore",onClick:y}]},trigger:["click"],children:(0,t.jsx)(l.wpx,{type:"primary",icon:(0,t.jsx)(l.PJP._ME,{}),iconPosition:"end",loading:A,disabled:!C,"data-testid":"bulk-actions-menu",children:"Actions"})})]})]}),(0,t.jsx)(l.V5H,{...o,columns:n,rowSelection:r})]})};var O=()=>{let a=decodeURIComponent((0,i.useRouter)().query.monitorId);return(0,t.jsxs)(s.Z,{title:"Action center - Discovered assets by system",children:[(0,t.jsx)(r.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:o.vi},{title:a}]}),(0,t.jsx)(D,{monitorId:a})]})}},99830:function(a){a.exports={toastLink:"ToastLink_toastLink__OLSeq"}}},function(a){a.O(0,[431,8765,9278,5163,4164,3847,2888,9774,179],function(){return a(a.s=86850)}),_N_E=a.O()}]);
|