ethyca-fides 2.71.1b1__py2.py3-none-any.whl → 2.74.0rc1__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.
Potentially problematic release.
This version of ethyca-fides might be problematic. Click here for more details.
- {ethyca_fides-2.71.1b1.dist-info → ethyca_fides-2.74.0rc1.dist-info}/METADATA +3 -2
- {ethyca_fides-2.71.1b1.dist-info → ethyca_fides-2.74.0rc1.dist-info}/RECORD +377 -327
- 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/4bfbeff34611_add_polling_status.py +68 -0
- fides/api/alembic/migrations/versions/65a1bc82ae09_adds_experience_config_for_delete_.py +53 -0
- fides/api/alembic/migrations/versions/7db29f9cd77b_create_new_sub_request_table.py +95 -0
- fides/api/alembic/migrations/versions/a55e12c2c2df_add_tagging_instructions_to_data_.py +29 -0
- fides/api/alembic/migrations/versions/b97e92b038d2_add_digest_execution_model.py +117 -0
- fides/api/alembic/migrations/versions/c09e76282dd1_add_privacy_request_duplication_cols.py +64 -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/api/v1/endpoints/connection_endpoints.py +38 -45
- fides/api/api/v1/endpoints/generic_overrides.py +75 -6
- fides/api/api/v1/endpoints/privacy_request_endpoints.py +60 -6
- fides/api/api/v1/endpoints/saas_config_endpoints.py +60 -48
- fides/api/api/v1/endpoints/system.py +11 -43
- fides/api/api/v1/endpoints/user_endpoints.py +8 -1
- fides/api/app_setup.py +1 -3
- fides/api/common_exceptions.py +8 -0
- fides/api/db/base.py +2 -0
- fides/api/db/database.py +257 -2
- fides/api/email_templates/get_email_template.py +3 -0
- fides/api/email_templates/template_names.py +1 -0
- fides/api/email_templates/templates/manual_task_digest.html +316 -0
- fides/api/main.py +2 -2
- fides/api/models/attachment.py +1 -0
- fides/api/models/detection_discovery/__init__.py +2 -0
- fides/api/models/detection_discovery/core.py +10 -0
- fides/api/models/detection_discovery/monitor_task.py +1 -0
- fides/api/models/detection_discovery/staged_resource_error.py +25 -0
- fides/api/models/digest/__init__.py +2 -0
- fides/api/models/digest/digest_config.py +10 -1
- fides/api/models/digest/digest_execution.py +142 -0
- fides/api/models/event_audit.py +17 -0
- fides/api/models/identity_definition.py +65 -0
- fides/api/models/messaging_template.py +7 -0
- fides/api/models/privacy_experience.py +11 -0
- 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 +56 -8
- fides/api/models/privacy_request/request_task.py +98 -1
- fides/api/models/sql_models.py +3 -0
- fides/api/models/taxonomy.py +14 -4
- 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/schemas/application_config.py +28 -0
- fides/api/schemas/connection_configuration/connection_config.py +1 -30
- fides/api/schemas/messaging/messaging.py +15 -0
- fides/api/schemas/privacy_request.py +17 -3
- fides/api/schemas/saas/async_polling_configuration.py +81 -0
- fides/api/schemas/saas/saas_config.py +10 -3
- fides/api/schemas/saas/strategy_configuration.py +0 -12
- fides/api/schemas/taxonomy_extensions.py +8 -0
- 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 +686 -0
- fides/api/service/async_dsr/utils.py +130 -0
- fides/api/service/connectors/bigquery_connector.py +34 -16
- fides/api/service/connectors/fides/fides_client.py +63 -1
- fides/api/service/connectors/query_configs/saas_query_config.py +160 -79
- fides/api/service/connectors/saas/connector_registry_service.py +1 -138
- fides/api/service/connectors/saas_connector.py +116 -94
- fides/api/service/connectors/sql_connector.py +14 -4
- fides/api/service/deps.py +8 -0
- fides/api/service/messaging/message_dispatch_service.py +38 -1
- fides/api/service/privacy_request/attachment_handling.py +9 -2
- fides/api/service/privacy_request/duplication_detection.py +424 -0
- fides/api/service/privacy_request/request_runner_service.py +46 -84
- fides/api/service/privacy_request/request_service.py +47 -74
- fides/api/service/saas_request/saas_request_override_factory.py +71 -1
- fides/api/task/execute_request_tasks.py +17 -9
- fides/api/task/filter_results.py +35 -2
- fides/api/task/graph_task.py +37 -8
- fides/api/tasks/__init__.py +0 -1
- fides/api/util/connection_util.py +99 -215
- fides/api/util/event_audit_util.py +230 -0
- 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/saas_config_updater.py +66 -0
- fides/api/util/saas_util.py +28 -1
- fides/common/api/scope_registry.py +0 -7
- fides/common/api/v1/urn_registry.py +2 -0
- fides/config/__init__.py +10 -1
- 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 +7 -3
- 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/event_audit_service.py +16 -22
- fides/service/privacy_request/privacy_request_service.py +162 -43
- fides/service/taxonomy/handlers/legacy_handler.py +3 -3
- fides/service/taxonomy/taxonomy_service.py +15 -15
- fides/ui-build/static/admin/404.html +1 -1
- fides/ui-build/static/admin/_next/static/FZTEUgamBvOhgPWce135w/_buildManifest.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{1115-90baef2a89f361ad.js → 1115-0da062111df309bf.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6148-59a59d5c5925344f.js → 1533-84e250d1f26e6d7d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/1817-508b16628e8eb225.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/1840-5bbe6d878ed73fb4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{1975.78e719130cfe3fd6.js → 1975.afe8cad52f904fcf.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{2040-fdecc41a18e40bdc.js → 2040-fe1a06d82c0413f1.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/2397-40b8db1cb2f23e2a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/2921-b10bbc3a9104933b.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-eb5cd82b3ee6ab0c.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-93ecd09f1cb9dbef.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{3696-90c8b336bbc46782.js → 3696-6db05a35ae806825.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3923-98bea73b618292aa.js → 3923-44255a63d6d80ff5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/401-fe8db8b5d8f600de.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/4277-13bcf4516326d474.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/431-e01ee730c8ad9ece.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4496-bed72bd5639075be.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/454-d5c2c84f1a14e4f1.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4817-d29f40d4ce729f37.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5185-b2ac9fecc00b67e7.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5258-4672eae0656430f9.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5487-8dedd1ca94fbba54.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/549-6e2442db533a711e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5643-55d758444a8d7162.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5724-1e40975cefa405f0.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{5783-d119cb132abd8a91.js → 5783-6055edba275155ca.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/6084-82e2df433fe5ba85.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6344-3e21444374f8059f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6362-12e3fd23130ccf15.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6372-a8d0f08dac1ebd0e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6780-3db5133c1f4c6f1e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6853-1adbdf6418ec3d62.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6954-aa0c60ee1092be8e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7059-12be23a345a94c1e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7079-6e6efc3396ff1ebb.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7218-d297a4a06f924b09.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7245-686665c197b58e68.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{7476-d055aa931da47ac0.js → 7476-a43c046c24de37cc.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/7630-c654c61ba98d8c74.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7654-716cf37a020b3d11.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{796-02086581996a0548.js → 796-e83ace3c6ab99ac7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/8212-b9e8295ca883c9f8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/8939-4925751c57c51f87.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9014-eeae6f581158e645.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9046-e4daf28840a69fd6.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{5596-29a7c8322530b7cf.js → 9195-550bd50d538c5f79.js} +3 -3
- fides/ui-build/static/admin/_next/static/chunks/9330-e519adec48222d45.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9341-bfc0e59bcc56c604.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9450-b7b7bb1d755ecf57.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{9676.b86ecbcfe5afd25d.js → 9676.7d029a5383595b69.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/9682-da69ac5d06f281da.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{9826-ccedc28e978ca9e1.js → 9826-657652d55936a8c6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/9911-ece086f2230e34f0.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9965-56c5e4fc9cd3b3a5.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{404-2eb8aed4939f1142.js → 404-d079b8bf35250874.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{_app-c1c2f757b1f3da12.js → _app-e64fd8510033a27c.js} +63 -63
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-ddd9d7d40847fc28.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/multiple-b4d18c1f4d414f5f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-d451bc8932330141.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-7a258b7ecd6da4b8.js → add-vendors-c24663cd5dec57db.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-fb5017ff5fa54fcc.js → configure-d93418688bd258eb.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-e1e2fd704ac2d71d.js → [id]-9b1f2b1c06968166.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{new-a5e738a234dadc7e.js → new-115a085e5d42de45.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience-d9b7b311195df29e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-5fc78b78a51c239c.js → [id]-3de34624829cbce8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-b79bcb93b5f4c734.js → new-dc95e7ed278d1a29.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-cdfc9bb19f47c709.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-069f4e3ee96ebf77.js → properties-0b995b01dc4dbd1f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-e3ad3a55624e302a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{consent-d2bf72508c3cad55.js → consent-b37ed76849330edd.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/{[resourceUrn]-2fa4b3a58f75f81d.js → [resourceUrn]-dd82729296dee5c5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-49e5477eb1a11b92.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-dfc1ead4a12c9ffa.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/{[resourceUrn]-5b31e3d7727b917a.js → [resourceUrn]-8442eb219958ac7e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources-feda358d1801c18d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-d16acb6fc07aad46.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/datastore/[monitorId]-c51a1e98c45d231a.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/website/[monitorId]/[systemId]-bcfe38eebca30f8c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/[monitorId]-f66d0655897c4400.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-6f1e012cd641da19.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-581d6248fcf98d17.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-844a8de0d1b506e2.js → [resourceUrn]-ddc1c1641e1e9430.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-11b07cf2d91b17ef.js → detection-2b48f7e524743b2b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-5525cf287d4ab493.js → [resourceUrn]-862b67418600251e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-ed4723e1b67d890e.js → discovery-0ffec855f5df262c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datamap-6a030ab8c2e2b0db.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-6cb66f649b8ca4bf.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]-0b008dad90b00aaa.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-5566edf9a9d1be2d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-d4ca1f485b6e9e02.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset-85dee7e81dc4bafb.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/[id]-e905e018a2cab35d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-912723bc86299b1a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-f1f0affc18327033.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-b74d1e8608ae5b5d.js → index-692d27dbe9392c9f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-1b94e2d769a182b2.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations-adfe6c5ac5b703d0.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/new-privacy-requests-f9be7080ebbb7445.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests/[id]-caaa8602a1d449b1.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests/new-9b106b1d2d93985b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests-6a1ded8cdde836c4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers/[key]-f94e3accf9507ebf.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers/new-5e83220ff1f2a250.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers-a03cbd698a23e5b3.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates/[id]-3cde574b3c8447c0.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates/add-template-0448bb4ae8536c58.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates-1621a4b87c432117.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications-4ea28f6b1dd63642.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/ant-components-e02516d9fd314528.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/AntForm-fec08bea801b4918.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikAntFormItem-d911e5fbf5a4a888.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikControlled-91b1adcac6a57b2d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikField-de309d8813b1ebfb.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/forms-f2943c1309062284.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/{table-migration-29fb7b39f8962650.js → table-migration-03eda417711ae909.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-1fe486f3af832c80.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-ea6f78fa8b2d3f6c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-8f577df28ebca869.js → configure-bda7b474493e7128.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-2c0ec8fed16c20ae.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-57a75c7e9659271a.js → [id]-30d298a47e85709f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-8964c2300206bc89.js → add-property-438084cca0d0f10d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{properties-08472b2a6bf1d392.js → properties-17fd44d98f5bd5b6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-baf77d34a3b3bece.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/sandbox/privacy-notices-8c80391025ca7339.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-7c19810858b708cc.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-ee8820fe0fa14c77.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/{[id]-bd1042a0e9be6aff.js → [id]-8eb862182f19a6c2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/{new-469ad83c8cfa1290.js → new-37c29ef618e9fe3c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-1db425150dcb1b6b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-744f669431b84f71.js → domain-records-e334b43fa5c5b1e6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-9d18eb5c38d85522.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-604790638c656fbd.js → email-templates-cb937ed7c4b1e5a8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-be2a885150adc133.js → locations-835281251f0785cd.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-3c86162afe9759df.js → organization-7fd050c92866938c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/privacy-requests-59ea66130fca0d05.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-4fe3b90747d885e5.js → regulations-b0fe1051d908f366.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-f108bf5015144d2f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-4d470bbf199a2f9c.js → [id]-0e7c7228d01290ea.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems-adc13b542e10a37d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-23dd250da26511c5.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-98f737e735eaa0f0.js → [id]-aed30fb22ae7c9ec.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-562624e5461083ec.js → user-management-6b88ca3e02ee67c9.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/webpack-6f97ebe373e7ef6b.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/4861ca3e088f2d05.css +1 -0
- fides/ui-build/static/admin/_next/static/css/65ae906f224cd8ae.css +1 -0
- fides/ui-build/static/admin/_next/static/css/a1800714b486e230.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/d5701118537cbdd2.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/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/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/poc/table-migration.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 -1
- fides/ui-build/static/admin/settings/custom-fields/new.html +1 -1
- 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 -195
- fides/api/service/async_dsr/async_dsr_strategy.py +0 -5
- fides/api/service/async_dsr/async_dsr_strategy_callback.py +0 -16
- fides/api/service/async_dsr/async_dsr_strategy_factory.py +0 -63
- fides/api/service/async_dsr/async_dsr_strategy_polling.py +0 -94
- fides/ui-build/static/admin/_next/static/_IxwgneyQjdSaZFEF3Tqu/_buildManifest.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1316-2606e19807c08aa5.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1467-8808ec8836e033f9.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/155-b4337d0826d5addc.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1817-1ad037b7d6d2f6d2.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1896-49010da5c2705fc5.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-66f65496c3a09316.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/2962-e92d525bf570a9a3.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-83cb70e80cbe41ba.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3585-f728d32fda6f1ac1.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3855-ed226b8a8050bd40.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3872-04d3afbfa41a7782.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/401-ffe4e8436e1eceb9.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/409-5c3d31163028339f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/431-78bf05f35d7eec4f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4558-8305aee48def1dcd.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4608-0c6ef78e30a51f84.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4718-3a412bdb90add82f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/502-0d9f4ac29ef34a1c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/504-88caa30c03374e9b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5163-e682273cd76a7d07.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5185-51eaa78e3ed6bfb7.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5279-12c9cbdc67ad7b14.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5309-3b6cf0cc9d0c6a83.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5574-c31ea831371610d5.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5619-9b50cec521203989.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5643-10a36584c399526c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6277-182efc294d413f64.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6419-9b3a86af57c86791.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6853-7004a8c420b1ca02.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6882-dbe0a25dcf1a8ee0.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6954-4b24e1731c1cc3b3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/699-8ca44b0de9fa20f0.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7045-14e955890f1147e4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7079-50571e9f3269d74d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7158-04745cc8d684b2e7.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7218-e2983b96b95e33b4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7630-d0d3a0fe3f95e971.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7725-f2a7be705b75dcc3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7929-0fd0d4948bc8d70e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/8002-ed832921ad190832.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/8765-f622a35b40a7ec63.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9037-453224ba3ee65b13.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9046-b6616ba7b59d947e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9187-7438242f0d380bb0.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9226-4a7027057f55ca2a.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/pages/add-systems/manual-4ec03eed67572861.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/multiple-2ca59996860a33c5.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-19214babd1f219e3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience-92182be6603c2842.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-ab54b19609bff325.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-c1a3caf3c286bf5d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-4a1af12d2d7cd660.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-99573a1ee3ef8f4c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources-6e429b7511028d60.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-b7326c51d88cc2cc.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-5b57f9132426fe52.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-0d512528b498d75c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-040813022f0890c9.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-a28cc0e23bbe4fc8.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datamap-7d22222608ec3aac.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-0abd30eada811b5b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]-007965429368d9a3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-60a4a9eb4aab4c11.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-d514cd4ec62e3b03.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset-0e3a6ac4797ffbbb.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/[id]-816e02b6cbe4a684.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-b6838162200141b3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-223c2d1ded51bfb1.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-153eb88ab4e7dc6d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations-331544e9b85c4ac2.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging/[id]-e8d2140787045acd.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging/add-template-e3f93462a08251bf.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging-b5f7d6afdecd013d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/ant-components-248ad9f65a872442.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/AntForm-aedb66a62042b10a.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikAntFormItem-018df38b7cd77fdb.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikControlled-6ca9099d03aab817.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikField-0f2c90786ea005a4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/forms-200b51a725f8b2d1.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-7dac2302f573f5ee.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-479890582973deaf.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-7af00f72cf694077.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-f7753e9effae3816.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-f3e6e74e0efb005c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-4d658222ec800511.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-2fcd95c41e578d57.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-a3275554ffe8e640.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/messaging-providers/[key]-77239269acc2d31a.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/messaging-providers/new-8bf1821722b082e9.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/messaging-providers-8d92be437793c96f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/privacy-requests-97221067330c0c27.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-2deb6becece69d46.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems-6c91bdea40875227.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-3059aba38adefa56.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/webpack-2766492c5dbceb0a.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/295d729ea1b11885.css +0 -1
- fides/ui-build/static/admin/_next/static/css/304c6f148886a8d4.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/settings/messaging-providers/[key].html +0 -1
- fides/ui-build/static/admin/settings/messaging-providers/new.html +0 -1
- fides/ui-build/static/admin/settings/messaging-providers.html +0 -1
- {ethyca_fides-2.71.1b1.dist-info → ethyca_fides-2.74.0rc1.dist-info}/WHEEL +0 -0
- {ethyca_fides-2.71.1b1.dist-info → ethyca_fides-2.74.0rc1.dist-info}/entry_points.txt +0 -0
- {ethyca_fides-2.71.1b1.dist-info → ethyca_fides-2.74.0rc1.dist-info}/licenses/LICENSE +0 -0
- {ethyca_fides-2.71.1b1.dist-info → ethyca_fides-2.74.0rc1.dist-info}/top_level.txt +0 -0
- /fides/ui-build/static/admin/_next/static/{_IxwgneyQjdSaZFEF3Tqu → FZTEUgamBvOhgPWce135w}/_ssgManifest.js +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/user-management/{new-629c88e90699369b.js → new-7dce2916cc589c54.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6721],{74833:function(e,t,r){var n=r(56127),l=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(l,""):e}},56632:function(e,t,r){var n=r(89278),l=r(80068),i=r(50098);e.exports=function(e){return function(t,r,a){var o=Object(t);if(!l(t)){var s=n(r,3);t=i(t),r=function(e){return s(o[e],e,o)}}var c=e(t,r,a);return c>-1?o[s?t[c]:c]:void 0}}},56127:function(e){var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},66726:function(e,t,r){var n=r(11611),l=r(82846),i=r(91936),a=Math.max,o=Math.min;e.exports=function(e,t,r){var s,c,u,d,p,f,h=0,g=!1,m=!1,y=!0;if("function"!=typeof e)throw TypeError("Expected a function");function v(t){var r=s,n=c;return s=c=void 0,h=t,d=e.apply(n,r)}function x(e){var r=e-f,n=e-h;return void 0===f||r>=t||r<0||m&&n>=u}function _(){var e,r,n,i=l();if(x(i))return S(i);p=setTimeout(_,(e=i-f,r=i-h,n=t-e,m?o(n,u-r):n))}function S(e){return(p=void 0,y&&s)?v(e):(s=c=void 0,d)}function A(){var e,r=l(),n=x(r);if(s=arguments,c=this,f=r,n){if(void 0===p)return h=e=f,p=setTimeout(_,t),g?v(e):d;if(m)return clearTimeout(p),p=setTimeout(_,t),v(f)}return void 0===p&&(p=setTimeout(_,t)),d}return t=i(t)||0,n(r)&&(g=!!r.leading,u=(m="maxWait"in r)?a(i(r.maxWait)||0,t):u,y="trailing"in r?!!r.trailing:y),A.cancel=function(){void 0!==p&&clearTimeout(p),h=0,s=f=c=p=void 0},A.flush=function(){return void 0===p?d:S(l())},A}},64925:function(e,t,r){var n=r(56632)(r(66259));e.exports=n},66259:function(e,t,r){var n=r(95372),l=r(89278),i=r(47991),a=Math.max;e.exports=function(e,t,r){var o=null==e?0:e.length;if(!o)return -1;var s=null==r?0:i(r);return s<0&&(s=a(o+s,0)),n(e,l(t,3),s)}},82846:function(e,t,r){var n=r(77400);e.exports=function(){return n.Date.now()}},94919:function(e,t,r){var n=r(91936),l=1/0;e.exports=function(e){return e?(e=n(e))===l||e===-l?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,r){var n=r(94919);e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},91936:function(e,t,r){var n=r(74833),l=r(11611),i=r(55193),a=0/0,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return a;if(l(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=l(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=s.test(e);return r||c.test(e)?u(e.slice(2),r?2:8):o.test(e)?a:+e}},83806:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/datastore/[monitorId]",function(){return r(66792)}])},30952:function(e,t,r){"use strict";r.d(t,{f:function(){return s}});var n=r(24246),l=r(66726),i=r.n(l),a=r(27378),o=r(26917);let s=e=>{let{value:t,onChange:r,placeholder:l,...s}=e,[c,u]=(0,a.useState)(t);(0,a.useEffect)(()=>{u(t||"")},[t]);let d=i()(r,500),p=(0,a.useCallback)(e=>{u(e),d(e)},[]);return(0,n.jsx)(o.Z,{value:c,onChange:p,onClear:()=>{u(""),r("")},placeholder:l,...s})}},35287:function(e,t,r){"use strict";var n=r(24246),l=r(98227),i=r(88038),a=r.n(i);r(27378),t.Z=e=>{let{children:t,title:r,fullHeight:i,fullWidth:o,mainProps:s}=e;return(0,n.jsxs)(l.kCb,{"data-testid":r,direction:"column",height:i?"100vh":"calc(100vh - 48px)",width:o?"100vw":"calc(100vw - 240px)",children:[(0,n.jsxs)(a(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",r]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsx)(l.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...s,children:t})]})}},12627:function(e,t,r){"use strict";var n=r(24246),l=r(79283),i=r(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:r=!1,...a}=e,{getDataCategoryDisplayNameProps:o,getDataCategories:s}=(0,i.Z)(),c=(r?s():s().filter(e=>e.active)).filter(e=>!(null==t?void 0:t.includes(e.fides_key))).map(e=>{let{name:t,primaryName:r}=o(e.fides_key);return{value:e.fides_key,name:t,primaryName:r,description:e.description||""}});return(0,n.jsx)(l.l,{options:c,...a})}},79283:function(e,t,r){"use strict";r.d(t,{l:function(){return u}});var n=r(24246),l=r(98227),i=r(72707),a=r.n(i);let o=e=>{let{data:{formattedTitle:t,description:r,name:i,primaryName:a}}=e;return(0,n.jsxs)(l.jqI,{gap:12,title:"".concat(t," - ").concat(r),children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("strong",{children:a||i}),a&&": ".concat(i)]}),(0,n.jsx)("em",{children:r})]})},s=e=>"options"in e&&Array.isArray(e.options),c=e=>({...e,className:a().option,formattedTitle:e.formattedTitle||[e.primaryName,e.name].filter(e=>e).join(": ")}),u=e=>{let{options:t,...r}=e,i=null==t?void 0:t.map(e=>s(e)?{...e,options:e.options.map(c)}:c(e));return(0,n.jsx)(l.WPr,{options:i,filterOption:(e,t)=>{var r,n;return(null==t?void 0:null===(r=t.formattedTitle)||void 0===r?void 0:r.toLowerCase().includes(e.toLowerCase()))||(null==t?void 0:null===(n=t.value)||void 0===n?void 0:n.toLowerCase().includes(e.toLowerCase()))||!1},optionFilterProp:"label",autoFocus:!0,variant:"borderless",optionRender:o,styles:{popup:{root:{minWidth:"500px"}}},className:"w-full p-0","data-testid":"taxonomy-select",...r})}},34929:function(e,t,r){"use strict";var n=r(24246),l=r(64925),i=r.n(l),a=r(27378),o=r(16134),s=r(30002),c=r(28079),u=r(57072);let d=()=>{let{isLoading:e}=(0,c.fd)(),t=(0,o.C)(c.U3),{isLoading:r}=(0,u.MO)(),n=(0,o.C)(u.qb),{isLoading:l}=(0,s.te)();return{dataUses:t,dataSubjects:(0,o.C)(s.ZL),dataCategories:n,isLoading:e||r||l}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:r,isLoading:l}=d(),o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},s=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=t(e);if(!n)return{};let l=t(o(e,r)),i=!!n.parent_key;return{name:n.name||void 0,primaryName:i&&(null==l?void 0:l.name)!==n.name&&(null==l?void 0:l.name)||void 0}},c=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:l,primaryName:i}=s(e,t,r);return l?i?(0,n.jsxs)(a.Fragment,{children:[(0,n.jsxs)("strong",{children:[i,":"]})," ",l]},e):(0,n.jsx)("strong",{children:l},e):e},u=t=>i()(e,{fides_key:t}),p=e=>i()(t,{fides_key:e}),f=e=>i()(r,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:u,getDataUseDisplayName:e=>c(e,u,1),getDataUseDisplayNameProps:e=>s(e,u,1),getDataCategories:()=>t,getDataCategoryByKey:p,getDataCategoryDisplayName:e=>c(e,p,2),getDataCategoryDisplayNameProps:e=>s(e,p,2),getDataSubjects:()=>r,getDataSubjectByKey:f,getDataSubjectDisplayName:e=>{let t=f(e);return t?t.name:e},getPrimaryKey:o,isLoading:l}}},9270:function(e,t,r){"use strict";r.d(t,{S:function(){return i}});var n=r(27378),l=r(36866);let i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,l.h)(e),{pageIndex:r,pageSize:i,updatePageIndex:a,updatePageSize:o,pageSizeOptions:s,showSizeChanger:c}=t,u=(0,n.useMemo)(()=>({current:r,pageSize:i,showSizeChanger:c,pageSizeOptions:s.map(String),onChange:a,onShowSizeChange:(e,t)=>{o(t)}}),[r,i,c,s,a,o]);return{...t,paginationProps:u}}},57072:function(e,t,r){"use strict";r.d(t,{Bd:function(){return n.Bd},L5:function(){return n.L5},MO:function(){return n.MO},qb:function(){return n.qb}});var n=r(5785)},66792:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return e1}});var n,l,i,a,o=r(24246),s=r(98227),c=r(25980),u=r(86677),d=r(27378),p=r(43929),f=r(30952),h=r(35287),g=r(17245),m=r(77830),y=r(58754),v=r(9270),x=r(37059),_=r(65735);(n=i||(i={})).CLASSIFY="classify",n.APPROVE="approve",n.UN_APPROVE="un-approve",n.PROMOTE="promote",n.PROMOTE_REMOVALS="promote-removals",n.MUTE="mute",n.UN_MUTE="un-mute",n.ASSIGN_CATEGORIES="assign-categories";let{APPROVE:S,CLASSIFY:A,PROMOTE:b,MUTE:I,UN_MUTE:E}=i,j={approve:"Approve","assign-categories":"Assign categories",classify:"Classify",mute:"Ignore",promote:"Confirm","promote-removals":"Promote removals","un-approve":"Un-approve","un-mute":"Restore"},L={approve:"Approving","assign-categories":"Updating data categories",classify:"Classifying",mute:"Ignoring",promote:"Confirming","promote-removals":"Promoting removals","un-approve":"Un-approving","un-mute":"Restoring"},T={approve:"Approved","assign-categories":"Data category updated",classify:"Classified",mute:"Ignored",promote:"Confirmed","promote-removals":"Promoted removals","un-approve":"Un-approved","un-mute":"Restored"},C=[S,b],O=[A,S,b,I,E],k=[A,b],R={[S]:"You can only approve resources with a data category applied",[A]:"You cannot classify resources that are already in classification or ignored",[I]:"You cannot ignore resources that are already ignored",[b]:"You can only confirm resources that have a data category applied",[E]:"You can only restore resources that are ignored"},D={classify:[_.LL.ADDITION,_.LL.CLASSIFICATION_ADDITION,_.LL.CLASSIFICATION_UPDATE,_.LL.CLASSIFICATION_ERROR],approve:[_.LL.CLASSIFICATION_ADDITION,_.LL.CLASSIFICATION_UPDATE,_.LL.APPROVED],"un-approve":[_.LL.APPROVED],promote:[_.LL.CLASSIFICATION_ADDITION,_.LL.CLASSIFICATION_UPDATE,_.LL.APPROVED,_.LL.PROMOTION_ERROR],"promote-removals":[_.LL.REMOVAL,_.LL.REMOVAL_PROMOTION_ERROR],mute:[_.LL.ADDITION,_.LL.CLASSIFICATION_ADDITION,_.LL.CLASSIFICATION_UPDATE,_.LL.APPROVED,_.LL.REMOVAL,_.LL.CLASSIFICATION_ERROR,_.LL.PROMOTION_ERROR,_.LL.REMOVAL_PROMOTION_ERROR],"un-mute":[_.LL.MUTED],"assign-categories":[_.LL.ADDITION,_.LL.CLASSIFICATION_ADDITION,_.LL.CLASSIFICATION_UPDATE,_.LL.APPROVED,_.LL.CLASSIFICATION_ERROR,_.LL.PROMOTION_ERROR]},P={"assign-categories":null,"promote-removals":null,"un-approve":null,"un-mute":(0,o.jsx)(s.PJP.G7x,{}),approve:(0,o.jsx)(s.PJP.MCw,{}),classify:(0,o.jsx)(s.QMR,{size:14}),mute:(0,o.jsx)(s.PJP.uzw,{}),promote:(0,o.jsx)(s.PJP.MCw,{})},w={"assign-categories":e=>null,"promote-removals":e=>null,"un-approve":e=>null,"un-mute":e=>"Are you sure you want to restore ".concat(e.toLocaleString()," resources?"),approve:e=>"Are you sure you want to approve ".concat(e.toLocaleString()," resources?"),classify:e=>"Are you sure you want to run the classifier and apply data categories to ".concat(e.toLocaleString()," unlabeled resources?"),mute:e=>"Are you sure you want to ignore ".concat(e.toLocaleString()," resources? After ignoring, these resources may reappear in future scans."),promote:e=>"Are you sure you want to confirm these ".concat(e.toLocaleString()," resources? After confirming this data can be used for policy automation and DSRs. ")},N={onCancel:async()=>!1,onOk:async()=>!0,icon:null,width:542};var M=r(98784),U=r.n(M);let F="space",q=e=>e.map(e=>{let{itemKey:t}=e;return t}),z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{activeListItem:t=null,enableKeyboardShortcuts:r=!1}=e,[n,l]=(0,d.useState)("inclusive"),[i,a]=(0,d.useState)([]),[o,s]=(0,d.useState)([]),c=e=>{s(U().uniqBy(e,"itemKey"))},u=(e,t)=>{let r=i.find(t=>e===t.itemKey);r&&((("inclusive"===n?t:!t)?"add":"remove")=="add"?c([...o,r]):c(o.filter(t=>t.itemKey!==e)))},f=e=>{l(e),s([])},h=i.filter(e=>{let{itemKey:t}=e;return!o.find(e=>e.itemKey===t)}),g="inclusive"===n?o:h,m="exclusive"===n?o:h;return(0,p.y1)("h",()=>{f("exclusive")},{enabled:r}),(0,p.y1)("l",()=>{f("inclusive")},{enabled:r}),(0,p.y1)(F,e=>{if(t){e.preventDefault();let r=g.some(e=>e.itemKey===t.itemKey);u(t.itemKey,!r)}},{enabled:r},[t,g,u]),{excludedListItems:m,indeterminate:"inclusive"===n?g.length>0&&i.length!==g.length:m.length>0,isBulkSelect:"inclusive"===n?g.length>0&&i.length===g.length:0===m.length,listSelectMode:n,resetListSelect:()=>{s([]),l("inclusive")},selectedListItems:g,updateListItems:a,updateListSelectMode:f,updateSelectedListItem:u}},V=e=>{let{...t}=e;return(0,o.jsx)(s.$zI,{title:"Keyboard shortcuts",footer:null,...t,children:(0,o.jsx)(s.Yfl,{bordered:!0,column:1,items:[{key:"".concat(s.dHR.NAVIGATE_UP,"-").concat(s.dHR.NAVIGATE_DOWN),label:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s.AntTypography.Text,{keyboard:!0,children:s.dHR.NAVIGATE_DOWN})," ","/"," ",(0,o.jsx)(s.AntTypography.Text,{keyboard:!0,children:s.dHR.NAVIGATE_UP})]}),children:"Activate the next/previous field"},{key:F,label:(0,o.jsx)(s.AntTypography.Text,{keyboard:!0,children:F}),children:"Toggle checkbox of the active field"},{key:"h",label:(0,o.jsx)(s.AntTypography.Text,{keyboard:!0,children:"h"}),children:"Select all fields"},{key:"l",label:(0,o.jsx)(s.AntTypography.Text,{keyboard:!0,children:"l"}),children:"Deselect all fields"},{key:s.dHR.CLEAR_FOCUS,label:(0,o.jsx)(s.AntTypography.Text,{keyboard:!0,children:s.dHR.CLEAR_FOCUS}),children:"Clear the active field"},{key:"o",label:(0,o.jsx)(s.AntTypography.Text,{keyboard:!0,children:"o"}),children:"Open/close details drawer for active field"},{key:"a",label:(0,o.jsx)(s.AntTypography.Text,{keyboard:!0,children:"a"}),children:"Approve the active field"},{key:"c",label:(0,o.jsx)(s.AntTypography.Text,{keyboard:!0,children:"c"}),children:"Confirm the active field"},{key:"i",label:(0,o.jsx)(s.AntTypography.Text,{keyboard:!0,children:"i"}),children:"Ignore the active field"},{key:"r",label:(0,o.jsx)(s.AntTypography.Text,{keyboard:!0,children:"r"}),children:"Restore the active field"},{key:"e",label:(0,o.jsx)(s.AntTypography.Text,{keyboard:!0,children:"e"}),children:"Edit data categories for the active field"},{key:"?",label:(0,o.jsx)(s.AntTypography.Text,{keyboard:!0,children:"?"}),children:"Open/close this modal"}]})})};var $=r(78780),K=r(16394);let{useFieldActionsMutation:G,useGetMonitorFieldsQuery:J,useLazyGetAllowedActionsQuery:W}=$.u.injectEndpoints({endpoints:e=>({getMonitorFields:e.query({query:e=>{let{path:{monitor_config_id:t},query:{page:r=1,size:n=20,search:l,diff_status:i,confidence_score:a,...o}}=e,s=(0,K.$J)({...o,...l?{search:[l]}:{},...i?{diff_status:i}:{},...a?{confidence_score:a}:{}});return{url:"/plus/discovery-monitor/".concat(t,"/fields?").concat(null==s?void 0:s.toString()),params:{page:r,size:n}}},providesTags:["Monitor Field Results"]}),fieldActions:e.mutation({query:e=>{let{path:{monitor_config_id:t,action_type:r},query:{search:n,diff_status:l,confidence_score:i,...a},...o}=e,s=(0,K.$J)({...a,...n?{search:[n]}:{},...l?{diff_status:l}:{},...i?{confidence_score:i}:{}});return{url:"/plus/discovery-monitor/".concat(t,"/fields/").concat(r,"?").concat(s.toString()),method:"POST",body:o}},invalidatesTags:["Monitor Field Results","Monitor Field Details"]}),getAllowedActions:e.query({query:e=>{let{path:{monitor_config_id:t},query:{search:r,diff_status:n,confidence_score:l,...i},...a}=e,o=(0,K.$J)({...i,...r?{search:[r]}:{},...n?{diff_status:n}:{},...l?{confidence_score:l}:{}});return{url:"/plus/discovery-monitor/".concat(t,"/fields/allowed-actions?").concat(o.toString()),method:"POST",body:a}},providesTags:["Allowed Monitor Field Actions"]})})});var Y=r(83766),H=r.n(Y),Z=r(59001),B=r(90673),Q=r(39864),X=r(3124),ee=r.n(X);let et="load_more",er="skeleton",en=["Unlabeled","Classifying","In Review","Approved","Confirming...","Confirmed","Removed","Ignored","Error"],el=["Confirmed","Ignored","Confirming..."],ei=e=>e.filter(e=>!el.includes(e)),ea={addition:{label:"Unlabeled"},approved:{label:"Approved",color:s.tAb.SUCCESS},classification_addition:{label:"In Review",color:s.tAb.CAUTION},classification_error:{label:"Error",color:s.tAb.ERROR},classification_queued:{label:"Classifying",color:s.tAb.INFO},classification_update:{label:"In Review",color:s.tAb.CAUTION},classifying:{label:"Classifying",color:s.tAb.INFO},monitored:{label:"Confirmed",color:s.tAb.MINOS},muted:{label:"Ignored",color:s.tAb.DEFAULT},promoting:{label:"Confirming...",color:s.tAb.DEFAULT},promotion_error:{label:"Error",color:s.tAb.ERROR},removal:{label:"Removed",color:s.tAb.ERROR},removing:{label:"In Review",color:s.tAb.CAUTION},removal_promotion_error:{label:"Error",color:s.tAb.ERROR}},eo={[_.D$.DATABASE]:s.PJP.S9g,[_.D$.FIELD]:s.PJP.sgG,[_.D$.SCHEMA]:s.PJP.ehp,[_.D$.TABLE]:s.PJP.iA_},es={STATUS:"status-section",DATA_CATEGORY:"data-category-section",CONFIDENCE:"confidence-section"},ec={[_.Ag.ADDITION]:{color:ee().FIDESUI_SUCCESS,tooltip:"This resource was added in the latest scan"},[_.Ag.REMOVAL]:{color:ee().FIDESUI_ERROR,tooltip:"This resource was removed in the latest scan"},[_.Ag.CHANGE]:{color:ee().FIDESUI_WARNING,tooltip:"This resource was modified in the latest scan"}},eu=(e,t)=>{if(!e||0===e.length)return[];let r=(e,t)=>{let n=t=>{if(t.value===e)return{title:t.label||e,children:t.children||[]};if(t.children&&t.children.length>0){let n=r(e,t.children);if(n)return n}return null};return t.reduce((e,t)=>null!=e?e:n(t),null)},n=new Map;e.forEach(e=>{let l=e.split(".");l.forEach((e,i)=>{let a=l.slice(0,i+1).join(".");if(!n.has(a)){let e=r(a,t);n.set(a,{title:(null==e?void 0:e.title)||(0,K.kC)(a.split(".").pop()||a),key:a,checkable:!0,selectable:!1})}})});let l=Array.from(n.values()),i=new Map;l.forEach(e=>{let t=e.key.toString().split(".");if(t.length>1){let r=t.slice(0,-1).join(".");i.has(r)||i.set(r,[]),i.get(r).push(e)}});let a=e=>(i.get(e)||[]).map(e=>{let t=a(e.key.toString());return{...e,children:t.length>0?t:void 0,isLeaf:0===t.length}});return l.filter(e=>1===e.key.toString().split(".").length).map(e=>{let t=a(e.key.toString());return{...e,children:t.length>0?t:void 0,isLeaf:0===t.length}})},ed=e=>{let{resourceStatus:t,setResourceStatus:r,dataCategory:n,setDataCategory:l,resetToInitialState:i,monitorId:a,stagedResourceUrn:c}=e,[u,p]=(0,d.useState)(t),[f,h]=(0,d.useState)(n),[g,m]=(0,d.useState)([es.STATUS]);(0,d.useEffect)(()=>{p(t)},[t]),(0,d.useEffect)(()=>{h(n)},[n]);let y=c.join(",");(0,d.useEffect)(()=>{i()},[y]);let{data:v,refetch:_}=(0,x.S0)({monitor_config_id:a,staged_resource_urn:c},{refetchOnMountOrArgChange:!0}),[S,{data:A=[]}]=(0,Q.ci)();(0,d.useEffect)(()=>{S(Z.ac.DATA_CATEGORY)},[S]);let b=(0,d.useMemo)(()=>(0,B.Cd)(A),[A]),I=(0,d.useMemo)(()=>en.map(e=>({title:e.replace(/\.{3}$/,""),key:e,checkable:!0,selectable:!1,isLeaf:!0})),[]),E=(0,d.useMemo)(()=>(null==v?void 0:v.data_category)&&0!==v.data_category.length?eu(v.data_category,b):[],[null==v?void 0:v.data_category,b]),j=(0,d.useMemo)(()=>{let e=[];return I.length>0&&e.push({title:"Status",key:es.STATUS,checkable:!0,selectable:!1,isLeaf:!1,children:I}),E.length>0&&e.push({title:"Data category",key:es.DATA_CATEGORY,checkable:!0,selectable:!1,isLeaf:!1,children:E}),e},[I,E]),L=(0,d.useMemo)(()=>H()([...null!=u?u:[],...null!=f?f:[]]),[u,f]),T=(0,d.useMemo)(()=>{let e=0;return t&&(e+=new Set(t).size),n&&(e+=new Set(n).size),e},[t,n]);return(0,o.jsx)(s.wn$,{treeProps:{checkable:!0,checkedKeys:L,onCheck:e=>{let t=Array.isArray(e)?e:e.checked,r=[],n=[],l=Object.values(es),i=(e,t)=>t.some(t=>t!==e&&t.startsWith("".concat(e,"."))),a=t.map(e=>e.toString());t.forEach(e=>{let t=e.toString();if(l.some(e=>e===t))return;let o=en.find(e=>e===t);o?r.push(o):i(t,a)||n.push(t)}),p(r.length>0?r:[]),h(n.length>0?n:[])},treeData:j,expandedKeys:g,onExpand:e=>{m(e)}},onApply:()=>{r(u&&u.length>0?Array.from(new Set(u)):u),l(f&&f.length>0?Array.from(new Set(f)):f)},onReset:()=>{i(),p(ei([...en])),h([])},onClear:()=>{p([]),h([])},onOpenChange:e=>{if(e){_();return}p(t),h(n)},activeFiltersCount:T})};(l=a||(a={})).LOW="low",l.HIGH="high",l.MANUAL="manual";let ep=e=>{let{percent:t,confidenceScore:r}=e;return null},ef=e=>{switch(e){case 1:return _.D$.DATABASE;case 2:return _.D$.SCHEMA;case 3:return _.D$.TABLE;default:return _.D$.FIELD}},eh=e=>{if(!e||"string"!=typeof e)return[];let t=e.trim();if(!t)return[];let r=t.split(".");if(r.length<2)return[];let n=r.filter(e=>e&&e.trim().length>0);return n.length<2?[]:(n.shift(),n.length>0&&n.pop(),0===n.length)?[]:n.map((e,t)=>{let r=eo[ef(t+1)];return{title:e.trim(),IconComponent:r}})};var eg=r(79283),em=r(34929),ey=e=>{let{onSelectDataCategory:t,urn:r,...n}=e,{getDataCategoryDisplayNameProps:l,getDataCategories:i}=(0,em.Z)(),a=i().filter(e=>e.active),[c,u]=(0,d.useState)(!1),p=a.map(e=>{let{name:t,primaryName:r}=l(e.fides_key);return{value:e.fides_key,label:(0,o.jsxs)("div",{children:[(0,o.jsx)("strong",{children:r||t}),r&&": ".concat(t)]}),name:t,primaryName:r,description:e.description||""}});return(0,o.jsx)(eg.l,{options:p,prefix:(0,o.jsx)(s.wpx,{"aria-label":"Add Data Category",type:"text",size:"small",icon:(0,o.jsx)(s.PJP.mm_,{}),disabled:n.disabled}),placeholder:"",suffixIcon:null,classNames:{root:"w-full max-w-full overflow-hidden p-0 cursor-pointer -ml-5"},style:{"--ant-select-multiple-selector-bg-disabled":"transparent"},variant:"borderless",autoFocus:!1,maxTagCount:"responsive",open:c,onOpenChange:e=>u(e),onSelect:e=>{t(e),u(!1)},"data-classification-select":r,...n})},ev=r(97947),ex=r.n(ev);let e_=e=>{let{label:t,closable:r,onClose:n,isFromClassifier:l}=e;return(0,o.jsx)(s.j8w,{color:"white",bordered:!0,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},closable:r,onClose:n,style:{marginInlineEnd:"calc((var(--ant-padding-xs) * 0.5))"},icon:l&&(0,o.jsx)(s.QMR,{}),children:(0,o.jsx)(s.lKn,{size:"sm",children:t})})},eS=e=>{let{title:t,IconComponent:r}=e;return{title:r?(0,o.jsxs)(s.jqI,{gap:3,align:"center",children:[(0,o.jsx)(r,{}),(0,o.jsx)("span",{children:t})]}):t}};var eA=e=>{let{urn:t,classifications:r,name:n,diff_status:l,selected:i,onSelect:c,onSetDataCategories:u,dataCategoriesDisabled:d,onNavigate:p,preferred_data_categories:f,actions:h}=e;return(0,o.jsx)(s.krs.Item,{actions:[r&&r.length>0&&(0,o.jsx)(ep,{percent:r.find(e=>e.confidence_score===a.HIGH)?100:25}),...null!=h?h:[]],children:(0,o.jsx)(s.krs.Item.Meta,{avatar:(0,o.jsx)("div",{className:"ml-2",children:(0,o.jsx)(s.E_O,{checked:i,onChange:e=>c&&c(t,e.target.checked)})}),title:(0,o.jsxs)(s.jqI,{gap:12,align:"center",className:ex()["monitor-field__title"],children:[(0,o.jsx)(s.wpx,{type:"text",size:"small",className:"-mx-2",onClick:()=>p&&p(t),children:n}),l&&l!==_.LL.ADDITION&&(0,o.jsx)(s.j8w,{bordered:!1,color:ea[l].color,children:ea[l].label}),(0,o.jsx)(s.esZ,{title:t,mouseEnterDelay:.5,children:(0,o.jsx)(s.zrq,{className:ex()["monitor-field__breadcrumb"],items:eh(t).map(eS),role:"presentation",style:{overflow:"hidden"}})})]}),description:(0,o.jsx)(ey,{mode:"multiple",value:null!=f?f:[],urn:t,tagRender:e=>{let n=!!(null==r?void 0:r.find(t=>t.label===e.value));return e_({...e,isFromClassifier:n,onClose:()=>{var r;u(t,null!==(r=null==f?void 0:f.filter(t=>t!==e.value))&&void 0!==r?r:[])}})},onSelectDataCategory:e=>{(null==f?void 0:f.includes(e))||u(t,[...null!=f?f:[],e])},disabled:d})})},t)},eb=r(812);let eI=(e,t)=>e.find(e=>{let{children:r}=e;return r&&!!r.find(e=>e.key.toString()===t)}),eE=(e,t)=>e.reduce((e,r)=>{if(r.children){var n;return null!==(n=eI(r.children,t))&&void 0!==n?n:eE(r.children,t)}return e},null),ej=e=>{let{node:t,treeData:r,onLoadMore:n}=e;if(!t.title)return null;if(t.key.toString().startsWith(et)){let e=eE(r,t.key.toString());return(0,o.jsx)(s.wpx,{type:"link",block:!0,onClick:()=>{(null==e?void 0:e.key)&&n(e.key.toString())},className:"p-0",children:t.title})}if(t.key.toString().startsWith(er))return(0,o.jsx)(s.N_L,{paragraph:!1,title:{width:"80px"},active:!0,children:t.title});let l=t.status?ec[t.status]:null;return(0,o.jsxs)(s.jqI,{gap:4,align:"center",className:"inline-flex",children:[l&&(0,o.jsx)(s.esZ,{title:l.tooltip,children:(0,o.jsx)(s.PJP.fRw,{className:"size-2",style:{color:l.color}})}),(0,o.jsx)(s.lKn,{ellipsis:{tooltip:t.title},children:t.title})]})},eL=(e,t,r)=>e.map(e=>e.key===t?{...e,status:r}:e.children?{...e,children:eL(e.children,t,r)}:e),eT=(e,t)=>e.map(e=>{if(e.key===t){let{children:t,...r}=e;return r}return e.children?{...e,children:eT(e.children,t)}:e}),eC=e=>{let t=[];return e.children&&e.children.length>0&&e.children.forEach(e=>{"string"==typeof e.key&&(t.push(e.key),t.push(...eC(e)))}),t},eO=(e,t)=>{for(let r of e){if(r.key===t)return r;if(r.children){let e=eO(r.children,t);if(e)return e}}},ek=(e,t)=>{var r;let n=e.items.map(e=>{let t=e.resource_type?eo[e.resource_type]:void 0;return{title:e.name,key:e.urn,selectable:!0,icon:t?()=>(0,o.jsx)(t,{className:"h-full"}):void 0,status:e.update_status,isLeaf:e.resource_type===_.D$.FIELD||!e.has_grandchildren,classifyable:[_.D$.SCHEMA,_.D$.TABLE,_.D$.ENDPOINT,_.D$.FIELD].includes(e.resource_type)}});return(null!==(r=null==n?void 0:n.length)&&void 0!==r?r:0)<100?n:[...n,{title:"Load more...",key:"".concat(et,"-").concat(e.page,"-").concat(t),selectable:!1,isLeaf:!0}]},eR=(e,t,r)=>e.map(e=>{if(e.key===t){var n,l;return{...e,children:[...null!==(l=null===(n=e.children)||void 0===n?void 0:n.filter(e=>!(e.key.toString().startsWith(et)||e.key.toString().startsWith(er))))&&void 0!==l?l:[],...r]}}return e.children?{...e,children:eR(e.children,t,r)}:e}),eD=(e,t,r)=>e.map(e=>e.key===t?{...e,children:r}:e.children?{...e,children:eD(e.children,t,r)}:e),eP=(e,t,r)=>e.map(e=>{if(e.key===t){var n;let t=(null!==(n=e.children)&&void 0!==n?n:[]).filter(e=>!(e.key.toString().startsWith(et)||e.key.toString().startsWith(er))),l=new Map(r.map(e=>[e.key,e])),i=new Map(t.map(e=>[e.key,e])),a=t.map(e=>{let t=l.get(e.key);return null!=t?t:e});return r.forEach(e=>{i.has(e.key)||a.push(e)}),{...e,children:a}}return e.children?{...e,children:eP(e.children,t,r)}:e}),ew=(0,d.forwardRef)((e,t)=>{let{selectedNodeKeys:r,setSelectedNodeKeys:n,onClickClassifyButton:l}=e,i=(0,u.useRouter)(),{errorAlert:a}=(0,g.VY)(),c=decodeURIComponent(i.query.monitorId),[p]=(0,x.RV)(),[f]=(0,x.M8)(),[h,m]=(0,d.useState)({}),[y,v]=(0,d.useState)([]),[_,S]=(0,d.useState)([]),A=(0,d.useRef)({}),b=(0,d.useRef)({}),I=(0,d.useCallback)(async e=>{var t;let{nodeKey:r,queryParams:n,fastUpdateFn:l,detailedUpdateFn:i}=e,a=(null!==(t=A.current[r])&&void 0!==t?t:0)+1;A.current[r]=a;let o=p({...n,include_descendant_details:!1}),s=p({...n,include_descendant_details:!0});o.then(e=>{let{data:t}=e;t&&A.current[r]===a&&b.current[r]!==a&&l(t)}),s.then(e=>{let{data:t}=e;t&&A.current[r]===a&&(b.current[r]=a,(null!=i?i:l)(t))})},[p]),E=(0,d.useCallback)(e=>new Promise(t=>{let{children:r,key:n}=e;if(r){t();return}let l=n.toString();I({nodeKey:l,queryParams:{monitor_config_id:c,staged_resource_urn:l,size:100},fastUpdateFn:e=>{v(t=>eD(t,n,ek(e,l))),m(e=>({...e,[l]:{pageSize:100,pageIndex:1}}))}}),t()}),[I,c]),j=(0,d.useCallback)(e=>{let t=h[e];t&&(v(t=>eR(t,e,[...Array(100)].map((t,r)=>({key:"".concat(er,"-").concat(e,"-").concat(r),title:"SKELETON",isLeaf:!0})))),I({nodeKey:e,queryParams:{monitor_config_id:c,staged_resource_urn:e,size:100,page:t.pageIndex+1},fastUpdateFn:t=>{v(r=>eR(r,e,ek(t,e)))},detailedUpdateFn:t=>{v(r=>eP(r,e,ek(t,e))),m(t=>{var r,n;return{...t,[e]:{pageSize:100,pageIndex:(null!==(n=null===(r=t[e])||void 0===r?void 0:r.pageIndex)&&void 0!==n?n:0)+1}}})}}))},[h,I,c]),L=(0,d.useCallback)(e=>{v(t=>{let r=eO(t,e),n=[e];return r&&n.push(...eC(r)),S(e=>e.filter(e=>!n.includes(e.toString()))),m(e=>{let t={...e};return n.forEach(e=>{delete t[e]}),t}),n.forEach(e=>{delete A.current[e],delete b.current[e]}),eT(t,e)})},[]),T=(0,d.useCallback)(async e=>{let t=async e=>{try{let t=await f({monitor_config_id:c,...e&&{staged_resource_urn:e}});if(t.error){a((0,eb.e$)(t.error),"Failed to get schema explorer ancestors statuses");return}let r=t.data;if(!r)return;e?L(e):r.forEach(e=>{L(e.urn)}),v(e=>r.reduce((e,t)=>eL(e,t.urn,t.update_status),e))}catch(e){a("An unexpected error occurred while refreshing the schema explorer")}};if(0===e.length){await t();return}await Promise.all(e.map(e=>t(e)))},[f,c,L,a]),C=(0,d.useCallback)((e,t)=>{S(e),t.expanded&&!t.node.children&&E&&E(t.node)},[E]);return(0,d.useImperativeHandle)(t,()=>({refreshResourcesAndAncestors:T})),(0,d.useEffect)(()=>{(async()=>{y.length>0||I({nodeKey:"root",queryParams:{monitor_config_id:c,size:100},fastUpdateFn:e=>{v(ek(e))}})})()},[I,c,v,y.length]),(0,o.jsxs)(s.jqI,{gap:"middle",vertical:!0,className:"h-full",children:[(0,o.jsx)(s.lQT,{level:3,className:"sticky top-0",children:"Schema explorer"}),(0,o.jsx)(s.a$q,{loadData:E,treeData:y,expandedKeys:_,onExpand:C,onSelect:(e,t)=>{n(t.selectedNodes.filter(e=>e.classifyable).map(e=>e.key))},showIcon:!0,showLine:!0,blockNode:!0,rootClassName:"h-full overflow-x-hidden",titleRender:e=>(0,o.jsx)(ej,{node:e,treeData:y,onLoadMore:j})}),r.length>0&&(0,o.jsxs)(s.jqI,{justify:"space-between",align:"center",children:[(0,o.jsxs)("span",{children:[r.length," selected"]}),(0,o.jsx)(s.wpx,{"aria-label":"Classify ".concat(r.length," Selected Nodes"),icon:(0,o.jsx)(s.QMR,{size:12}),size:"small",onClick:l})]})]})});ew.displayName="MonitorTree";var eN=r(12627),eM=r(84418);let eU=(e,t)=>(0,o.jsx)(t,{...e,className:"!sticky top-0 z-[2] bg-white"}),eF=e=>{var t,r,n,l,i;let{resource:a,fieldActions:c,...u}=e;return(0,o.jsx)(eM.d,{...u,classNames:{body:"!pt-0 !mt-[var(--ant-padding-lg)] max-h-full"},children:a?(0,o.jsx)(s.A5g,{defaultActiveKey:"details",renderTabBar:eU,items:[{key:"details",label:"Details",children:(0,o.jsxs)(s.jqI,{gap:"middle",vertical:!0,children:[(0,o.jsx)(s.Yfl,{bordered:!0,size:"small",column:1,items:[{key:"system",label:"System",children:a.system_key},{key:"path",label:"Path",children:a.urn},{key:"data-type",label:"Data type",children:a.resource_type},{key:"description",label:"Description",children:a.description}]}),(0,o.jsx)(s.PPS,{layout:"vertical",children:(0,o.jsx)(s.PPS.Item,{label:"Data categories",children:(0,o.jsx)(eN.Z,{variant:"outlined",mode:"multiple",maxTagCount:"responsive",value:[...null!==(l=null===(t=a.classifications)||void 0===t?void 0:t.map(e=>{let{label:t}=e;return t}))&&void 0!==l?l:[],...null!==(i=null===(r=a.user_assigned_data_categories)||void 0===r?void 0:r.map(e=>e))&&void 0!==i?i:[]],autoFocus:!1,disabled:null==a||!a.diff_status||!D["assign-categories"].some(e=>e===a.diff_status),onChange:e=>c["assign-categories"]([a.urn],{user_assigned_data_categories:e})})})}),a.classifications&&a.classifications.length>0&&(0,o.jsx)(s.krs,{dataSource:a.classifications,renderItem:e=>(0,o.jsx)(s.krs.Item,{children:(0,o.jsx)(s.krs.Item.Meta,{avatar:(0,o.jsx)(s.t3Z,{style:{backgroundColor:null===ee()||void 0===ee()?void 0:ee().FIDESUI_BG_DEFAULT},icon:(0,o.jsx)(s.QMR,{color:"black"})}),title:(0,o.jsxs)(s.jqI,{align:"center",gap:"middle",children:[(0,o.jsx)("div",{children:e.label}),(0,o.jsx)(ep,{percent:100*e.score})]}),description:e.rationale})})})]})},{key:"activity",label:"Activity",children:(0,o.jsx)(s.krs,{dataSource:"errors"in a&&a.errors?null===(n=a.errors)||void 0===n?void 0:n.map((e,t)=>({key:t,title:e.phase,description:new Date(e.timestamp).toLocaleString(),content:e.message})):[],renderItem:(e,t)=>(0,o.jsxs)(s.krs.Item,{children:[(0,o.jsx)(s.krs.Item.Meta,{title:e.title,description:e.description}),(0,o.jsx)(s.FUI,{ellipsis:{expandable:"collapsible",rows:3},copyable:{icon:(0,o.jsx)(s.PJP.CKM,{className:"pt-1",size:18})},children:e.content})]},t),itemLayout:"vertical"})}]}):null})};var eq=r(31883);let ez=(e,t)=>({title:e,okText:e,content:t,...N}),eV=(e,t)=>"".concat(T[e]).concat((0,K._6)(null!=t?t:0,"","".concat(e===i.ASSIGN_CATEGORIES?" for":""," ").concat(null==t?void 0:t.toLocaleString()," resources"))),e$=e=>"".concat(T[e]," failed").concat(e===i.CLASSIFY||e===i.PROMOTE?": View summary in the activity tab":""),eK=(e,t,r,n)=>{let[l]=G(),a=a=>async(o,s,c)=>{let u=Date.now();if(!await t.confirm(ez(j[a],w[a](c))))return;r.open({key:u,type:"loading",content:"".concat(L[a]," ").concat(c," ").concat((0,K._6)(c,"resource","resources"),"..."),duration:0});let d=await l({query:{...o.query},path:{monitor_config_id:e,action_type:a},body:{excluded_resource_urns:s}});if((0,eq.D4)(d)){r.open({key:u,type:"error",content:e$(a),duration:5});return}if(r.open({key:u,type:"success",content:eV(a,c),duration:5}),n&&a!==i.APPROVE){let e=o.query.staged_resource_urn||[];await n(e)}};return{"assign-categories":a(i.ASSIGN_CATEGORIES),"promote-removals":a(i.PROMOTE_REMOVALS),"un-approve":a(i.UN_APPROVE),"un-mute":a(i.UN_MUTE),approve:a(i.APPROVE),classify:a(i.CLASSIFY),mute:a(i.MUTE),promote:a(i.PROMOTE)}},eG={DRAWER_OPEN:".ant-drawer-open",DRAWER_SELECT:".ant-drawer-open .ant-select",SELECT:".ant-select",SELECT_SELECTOR:".ant-select-selector",SELECT_DISABLED:"ant-select-disabled",INPUT:"input",LIST_ITEM_SELECT:"[data-classification-select]"},eJ=(e,t,r,n,l,a)=>{let o=e=>{let t=e.querySelector(eG.SELECT_SELECTOR);if(!t)return!1;if(e.classList.contains(eG.SELECT_DISABLED))return l.warning("You cannot assign categories to this resource in its current state"),!1;let r=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});t.dispatchEvent(r);let n=e.querySelector(eG.INPUT);return n&&n.focus(),!0},s=r=>{var n;e&&(e.diff_status&&(null===(n=D[r])||void 0===n?void 0:n.includes(e.diff_status))?t[r]([e.urn]):l.warning(R[r]))};(0,p.y1)("a",()=>s(i.APPROVE),[e,t]),(0,p.y1)("c",()=>s(i.PROMOTE),[e,t]),(0,p.y1)("i",()=>s(i.MUTE),[e,t]),(0,p.y1)("r",()=>s(i.UN_MUTE),[e,t]),(0,p.y1)("o",()=>{e&&a?n(void 0):e&&!a&&n(e.urn)},[e,n,a]),(0,p.y1)("e",t=>{if(t.preventDefault(),!e)return;let r=null;if(a){let e=document.querySelector(eG.DRAWER_OPEN);e&&(r=e.querySelector(eG.SELECT))}else{let t=CSS.escape(e.urn);r=document.querySelector('[data-classification-select="'.concat(t,'"]'))}r&&o(r)},[e,l,a]),(0,p.y1)("escape",e=>{let t=document.activeElement;if((null==t?void 0:t.tagName)!=="INPUT")return;let r=t.closest(eG.LIST_ITEM_SELECT),n=t.closest(eG.DRAWER_SELECT);(r||n)&&(e.preventDefault(),e.stopPropagation(),t.blur())},{enableOnFormTags:["INPUT"]},[a])};var eW=r(70675);let eY=e=>{let[t,...r]=e.map(e=>Object.values(i).flatMap(t=>D[t].some(t=>t===e)?[t]:[]));return r.reduce((e,t)=>U().intersection(e,[...t]),null!=t?t:[])},eH=(e,t,r,n)=>{let[l]=(0,eW.LI)(),[a]=(0,x.Av)(),[o]=(0,eW.zV)(),[s]=(0,eW.Hf)(),[c]=(0,eW._J)(),[u]=(0,eW.NA)(),d=(e,l)=>async(i,a)=>{let o=Date.now();if(!(1===i.length||await t.confirm(ez(j[e],w[e](i.length)))))return;r.open({key:o,type:"loading",content:"".concat(L[e]," ").concat(i.length," ").concat((0,K._6)(i.length,"resource","resources"),"..."),duration:0});let s=await l(i,a);if((0,eq.D4)(s)){r.open({key:o,type:"error",content:e$(e),duration:5});return}r.open({key:o,type:"success",content:eV(e,i.length),duration:5}),n&&await n(i)},p=async e=>o({staged_resource_urns:e}),f=async e=>c({staged_resource_urns:e}),h=async e=>s({staged_resource_urns:e}),g=async t=>a({monitor_config_key:e,staged_resource_urns:t}),m=async(t,r)=>{var n;let[l]=t;return u({monitor_config_id:e,staged_resource_urn:l,user_assigned_data_categories:null!==(n=null==r?void 0:r.user_assigned_data_categories)&&void 0!==n?n:void 0})},y=async t=>l({monitor_config_key:e,staged_resource_urns:t});return{"assign-categories":d(i.ASSIGN_CATEGORIES,m),"promote-removals":()=>{},"un-approve":()=>{},"un-mute":d(i.UN_MUTE,f),approve:d(i.APPROVE,y),classify:d(i.CLASSIFY,g),mute:d(i.MUTE,p),promote:d(i.PROMOTE,h)}};var eZ=r(40431);let eB=()=>{let[e,t]=(0,eZ.v1)("resourceStatus",(0,eZ.S$)((0,eZ.km)(en))),[r,n]=(0,eZ.v1)("confidenceScore",(0,eZ.S$)((0,eZ.jx)(Object.values(a)))),[l,i]=(0,eZ.v1)("dataCategory",(0,eZ.S$)(eZ.Oi));return(0,d.useEffect)(()=>{if(null===e){let e=ei([...en]);t(e.length>0?e:[])}},[]),{resourceStatus:e,setResourceStatus:t,confidenceScore:r,setConfidenceScore:n,dataCategory:l,setDataCategory:i,reset:()=>{t([]),n([]),i([])},resetToInitialState:()=>{t(ei([...en])),n(null),i(null)}}},eQ=e=>Object.values(_.LL).flatMap(t=>ea[t].label===e?[t]:[]);var eX=()=>{var e,t,r,n,l;let i=decodeURIComponent((0,u.useRouter)().query.monitorId),a=(0,d.useRef)(null),[c,_]=s.Pg3.useMessage(),[S,A]=s.$zI.useModal(),[b,I]=(0,d.useState)(!1),{paginationProps:E,pageIndex:L,pageSize:T,resetPagination:w}=(0,v.S)({defaultPageSize:25}),N=(0,g.Rx)(),{resourceStatus:M,confidenceScore:U,dataCategory:F,...$}=eB(),{data:K}=(0,x.vc)({monitor_config_id:i}),[G,Y]=(0,d.useState)([]),H={path:{monitor_config_id:i},query:{staged_resource_urn:G.map(e=>e.toString()),search:N.searchProps.value,diff_status:M?M.flatMap(eQ):void 0,confidence_score:U||void 0,data_category:F||void 0}},{data:Z,isFetching:B,refetch:Q}=J({...H,query:{...H.query,size:T,page:L}}),[X,ee]=(0,d.useState)(),[et,er]=(0,d.useState)(),[en,el]=(0,x.mC)(),[ei,{data:eo,isFetching:es}]=W(),ec=el.data,eu=eK(i,S,c,async e=>{var t;await (null===(t=a.current)||void 0===t?void 0:t.refreshResourcesAndAncestors(e))}),ep=eH(i,S,c,async e=>{var t;await (null===(t=a.current)||void 0===t?void 0:t.refreshResourcesAndAncestors(e))}),{excludedListItems:ef,indeterminate:eh,isBulkSelect:eg,listSelectMode:em,resetListSelect:ey,selectedListItems:ev,updateListItems:ex,updateListSelectMode:e_,updateSelectedListItem:eS}=z({activeListItem:et,enableKeyboardShortcuts:!0}),eb=async e=>{ee(e)};(0,p.y1)("?",()=>I(!b),{useKey:!0},[b]);let eI=eg?null==eo?void 0:eo.allowed_actions:eY(ev.flatMap(e=>{let{diff_status:t}=e;return t?[t]:[]})),eE=null!==(r=null==Z?void 0:Z.total)&&void 0!==r?r:0,ej="exclusive"===em&&(null==Z?void 0:Z.total)?eE-ef.length:ev.length;return(0,d.useEffect)(()=>{Z&&ex(Z.items.map(e=>{let{urn:t,...r}=e;return{itemKey:t,urn:t,...r}}))},[null==Z?void 0:Z.items]),(0,d.useEffect)(()=>{X&&en({stagedResourceUrn:X})},[X]),(0,d.useEffect)(()=>{w(),ey()},[M,U,G,N.searchQuery,F]),eJ(et,ep,eS,eb,c,!!X),(0,o.jsxs)(h.Z,{title:"Action center - Discovered assets by system",mainProps:{overflow:"hidden"},fullHeight:!0,children:[(0,o.jsx)(y.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:m.vi},{title:i}],isSticky:!1}),(0,o.jsxs)(s.LgQ,{className:"h-[calc(100%-48px)] overflow-hidden",children:[(0,o.jsx)(s.LgQ.Panel,{defaultSize:250,style:{paddingRight:"var(--ant-padding-md)"},children:(0,o.jsx)(ew,{ref:a,selectedNodeKeys:G,setSelectedNodeKeys:Y,onClickClassifyButton:()=>{ep.classify(G.map(e=>e.toString()))}})}),(0,o.jsx)(s.LgQ.Panel,{style:{paddingLeft:"var(--ant-padding-md)"},children:(0,o.jsxs)(s.jqI,{vertical:!0,gap:"middle",className:"h-full",children:[(0,o.jsxs)(s.jqI,{justify:"space-between",children:[(0,o.jsx)(s.lQT,{level:2,children:"Monitor results"}),(0,o.jsx)(s.jqI,{align:"center",children:(null==K?void 0:K.last_monitored)&&(0,o.jsxs)(s.lKn,{type:"secondary",children:["Last scan:"," ",new Date(null==K?void 0:K.last_monitored).toLocaleString()]})})]}),(0,o.jsxs)(s.jqI,{justify:"space-between",children:[(0,o.jsxs)(s.jqI,{gap:"small",children:[(0,o.jsx)(f.f,{value:N.searchQuery,onChange:N.updateSearch,placeholder:"Search"}),(0,o.jsx)(s.esZ,{title:"Display keyboard shortcuts",children:(0,o.jsx)(s.wpx,{"aria-label":"Display keyboard shortcuts",icon:(0,o.jsx)(s.PJP.N1d,{}),onClick:()=>I(!0)})})]}),(0,o.jsxs)(s.jqI,{gap:"small",children:[(0,o.jsx)(ed,{resourceStatus:M,confidenceScore:U,dataCategory:F,...$,monitorId:i,stagedResourceUrn:G.map(e=>e.toString())}),(0,o.jsx)(s.S0p,{onOpenChange:e=>{e&&eg&&ei({...H,query:{...H.query},body:{excluded_resource_urns:q(ef).map(e=>e.toString())}})},menu:{items:[...O.map(e=>({key:e,label:!es&&(null==eI?void 0:eI.includes(e))?j[e]:(0,o.jsx)(s.esZ,{title:R[e],children:j[e]}),disabled:es||!(null==eI?void 0:eI.includes(e)),onClick:()=>{eg?eu[e](H,ef.map(e=>e.itemKey.toString()),ej):ep[e](ev.map(e=>{let{itemKey:t}=e;return t.toString()}))}}))]},disabled:ev.length<=0,children:(0,o.jsx)(s.wpx,{type:"primary",icon:(0,o.jsx)(s.PJP._ME,{}),iconPosition:"end",loading:es,children:"Actions"})}),(0,o.jsx)(s.esZ,{title:"Refresh",children:(0,o.jsx)(s.wpx,{icon:(0,o.jsx)(s.PJP.CQM,{}),onClick:()=>Q(),"aria-label":"Refresh"})})]})]}),(0,o.jsxs)(s.jqI,{gap:"middle",align:"center",children:[(0,o.jsx)(s.E_O,{id:"select-all",checked:eg,indeterminate:eh,onChange:e=>e_(e.target.checked?"exclusive":"inclusive")}),(0,o.jsx)("label",{htmlFor:"select-all",children:"Select all"}),!!ej&&(0,o.jsxs)(s.lKn,{strong:!0,children:[ej.toLocaleString()," selected"]})]}),(0,o.jsx)(s.krs,{dataSource:null==Z?void 0:Z.items,className:"-ml-3 h-full overflow-y-scroll pl-1",loading:B,enableKeyboardShortcuts:!0,onActiveItemChange:(0,d.useCallback)(e=>{(null==e?void 0:e.urn)?(er({...e,itemKey:e.urn}),X&&e.urn!==X&&ee(e.urn)):er(void 0)},[X]),renderItem:e=>eA({...e,selected:q(ev).includes(e.urn),onSelect:eS,onNavigate:eb,onSetDataCategories:(e,t)=>ep["assign-categories"]([e],{user_assigned_data_categories:t}),dataCategoriesDisabled:null==e||!e.diff_status||!D["assign-categories"].some(t=>t===e.diff_status),actions:(null==e?void 0:e.diff_status)?k.map(t=>(0,o.jsx)(s.esZ,{title:j[t],children:(0,o.jsx)(s.wpx,{"aria-label":j[t],icon:P[t],onClick:()=>ep[t]([e.urn]),disabled:null==e||!e.diff_status||!D[t].some(t=>t===e.diff_status),style:{fontSize:"var(--ant-button-content-font-size-lg)"}})},t)):[]})}),(0,o.jsx)(s.B7X,{...E,showSizeChanger:{suffixIcon:(0,o.jsx)(s.PJP._ME,{})},total:(null==Z?void 0:Z.total)||0,hideOnSinglePage:(null===(e=E.pageSize)||void 0===e?void 0:e.toString())===(null===(t=E.pageSizeOptions)||void 0===t?void 0:t[0])})]})})]}),(0,o.jsx)(eF,{itemKey:null!==(n=null==ec?void 0:ec.urn)&&void 0!==n?n:"",title:null!==(l=null==ec?void 0:ec.name)&&void 0!==l?l:null,titleIcon:(0,o.jsx)(s.PJP.sgG,{}),titleTag:{bordered:!1,color:(null==ec?void 0:ec.diff_status)?ea[ec.diff_status].color:void 0,className:"font-normal text-[var(--ant-font-size-sm)]",children:(null==ec?void 0:ec.diff_status)?ea[ec.diff_status].label:null},actions:C.map(e=>({label:j[e],callback:t=>ep[e]([t]),disabled:null==ec||!ec.diff_status||!D[e].some(e=>e===ec.diff_status)})),open:!!X,onClose:()=>ee(void 0),resource:ec,fieldActions:ep}),(0,o.jsx)(V,{open:b,onCancel:()=>I(!1)}),A,_]})};let e0=()=>(0,o.jsx)(o.Fragment,{children:"Attempting to access monitor results without the required feature flag enabled"});var e1=()=>{let{flags:e}=(0,c.hz)();return e.heliosV2?(0,o.jsx)(eX,{}):(0,o.jsx)(s.ux6,{status:"error",title:(0,o.jsx)(e0,{})})}},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}},97947:function(e){e.exports={"monitor-field__title":"MonitorFieldListItem_monitor-field__title__YrxOU","monitor-field__breadcrumb":"MonitorFieldListItem_monitor-field__breadcrumb__Rn4vE"}}},function(e){e.O(0,[431,7245,7059,9341,2888,9774,179],function(){return e(e.s=83806)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[624],{11124:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/datastore",function(){return t(29563)}])},29563:function(e,n,t){"use strict";t.r(n);var u=t(86677),r=t(27378),c=t(77830);n.default=()=>{let e=(0,u.useRouter)();return(0,r.useLayoutEffect)(()=>{e.replace(c.vi)},[e]),null}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=11124)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8922],{58095:function(e,t,n){var s=n(8817);e.exports=function(e,t){return!!(null==e?0:e.length)&&s(e,t,0)>-1}},21796:function(e){e.exports=function(e,t,n){for(var s=-1,a=null==e?0:e.length;++s<a;)if(n(t,e[s]))return!0;return!1}},8817:function(e,t,n){var s=n(95372),a=n(1129),l=n(58263);e.exports=function(e,t,n){return t==t?l(e,t,n):s(e,a,n)}},1129:function(e){e.exports=function(e){return e!=e}},92198:function(e,t,n){var s=n(52485),a=n(58095),l=n(21796),i=n(65581),r=n(47111),o=n(43735);e.exports=function(e,t,n){var d=-1,c=a,u=e.length,p=!0,g=[],m=g;if(n)p=!1,c=l;else if(u>=200){var h=t?null:r(e);if(h)return o(h);p=!1,c=i,m=new s}else m=t?[]:g;e:for(;++d<u;){var f=e[d],v=t?t(f):f;if(f=n||0!==f?f:0,p&&v==v){for(var y=m.length;y--;)if(m[y]===v)continue e;t&&m.push(v),g.push(f)}else c(m,v,n)||(m!==g&&m.push(v),g.push(f))}return g}},47111:function(e,t,n){var s=n(46151),a=n(50344),l=n(43735),i=s&&1/l(new s([,-0]))[1]==1/0?function(e){return new s(e)}:a;e.exports=i},58263:function(e){e.exports=function(e,t,n){for(var s=n-1,a=e.length;++s<a;)if(e[s]===t)return s;return -1}},50344:function(e){e.exports=function(){}},83766:function(e,t,n){var s=n(92198);e.exports=function(e){return e&&e.length?s(e):[]}},14599:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/website/[monitorId]/[systemId]",function(){return n(26363)}])},35287:function(e,t,n){"use strict";var s=n(24246),a=n(98227),l=n(88038),i=n.n(l);n(27378),t.Z=e=>{let{children:t,title:n,fullHeight:l,fullWidth:r,mainProps:o}=e;return(0,s.jsxs)(a.kCb,{"data-testid":n,direction:"column",height:l?"100vh":"calc(100vh - 48px)",width:r?"100vw":"calc(100vw - 240px)",children:[(0,s.jsxs)(i(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsx)(a.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...o,children:t})]})}},58754:function(e,t,n){"use strict";var s=n(24246),a=n(98227),l=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:i=!0,children:r,rightContent:o,style:d,...c}=e;return(0,s.jsxs)("div",{...c,style:i?{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,s.jsxs)(a.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(a.lQT,{className:n||r?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,s.jsx)(l.m,{className:r?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),r]})}},79283:function(e,t,n){"use strict";n.d(t,{l:function(){return c}});var s=n(24246),a=n(98227),l=n(72707),i=n.n(l);let r=e=>{let{data:{formattedTitle:t,description:n,name:l,primaryName:i}}=e;return(0,s.jsxs)(a.jqI,{gap:12,title:"".concat(t," - ").concat(n),children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:i||l}),i&&": ".concat(l)]}),(0,s.jsx)("em",{children:n})]})},o=e=>"options"in e&&Array.isArray(e.options),d=e=>({...e,className:i().option,formattedTitle:e.formattedTitle||[e.primaryName,e.name].filter(e=>e).join(": ")}),c=e=>{let{options:t,...n}=e,l=null==t?void 0:t.map(e=>o(e)?{...e,options:e.options.map(d)}:d(e));return(0,s.jsx)(a.WPr,{options:l,filterOption:(e,t)=>{var n,s;return(null==t?void 0:null===(n=t.formattedTitle)||void 0===n?void 0:n.toLowerCase().includes(e.toLowerCase()))||(null==t?void 0:null===(s=t.value)||void 0===s?void 0:s.toLowerCase().includes(e.toLowerCase()))||!1},optionFilterProp:"label",autoFocus:!0,variant:"borderless",optionRender:r,styles:{popup:{root:{minWidth:"500px"}}},className:"w-full p-0","data-testid":"taxonomy-select",...n})}},45938:function(e,t,n){"use strict";n.d(t,{Gt:function(){return p},eB:function(){return g},oI:function(){return u}});var s=n(24246),a=n(34090),l=n(27378),i=n(16134),r=n(38602),o=n(58452);let d=(0,l.createRef)(),c=(0,l.createRef)(),u=()=>{let e=(0,i.T)(),t=(0,i.C)(r.DB),n=(0,l.useCallback)(()=>{c.current=void 0,d.current=void 0},[]),s=(0,l.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!0),n())},[e,n]),a=(0,l.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!1),n())},[e,n]);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:s,onClose:a}},p=e=>{let{id:t,name:n}=e,{dirty:s}=(0,a.u6)(),o=(0,i.T)();return(0,l.useEffect)(()=>(o((0,r.Zu)({id:t,name:n})),()=>{o((0,r.dz)({id:t}))}),[o,t,n]),(0,l.useEffect)(()=>{o((0,r.$p)({id:t,isDirty:s}))},[s,o,t]),null},g=()=>{let{onConfirm:e,onClose:t}=u(),n=(0,i.C)(r.uv);return(0,s.jsx)(o.Z,{isOpen:n,onClose:t,onConfirm:e,isCentered:!0,title:"Unsaved Changes",message:"You have unsaved changes"})}},34929:function(e,t,n){"use strict";var s=n(24246),a=n(64925),l=n.n(a),i=n(27378),r=n(16134),o=n(30002),d=n(28079),c=n(57072);let u=()=>{let{isLoading:e}=(0,d.fd)(),t=(0,r.C)(d.U3),{isLoading:n}=(0,c.MO)(),s=(0,r.C)(c.qb),{isLoading:a}=(0,o.te)();return{dataUses:t,dataSubjects:(0,r.C)(o.ZL),dataCategories:s,isLoading:e||n||a}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:n,isLoading:a}=u(),r=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 n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=t(e);if(!s)return{};let a=t(r(e,n)),l=!!s.parent_key;return{name:s.name||void 0,primaryName:l&&(null==a?void 0:a.name)!==s.name&&(null==a?void 0:a.name)||void 0}},d=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:a,primaryName:l}=o(e,t,n);return a?l?(0,s.jsxs)(i.Fragment,{children:[(0,s.jsxs)("strong",{children:[l,":"]})," ",a]},e):(0,s.jsx)("strong",{children:a},e):e},c=t=>l()(e,{fides_key:t}),p=e=>l()(t,{fides_key:e}),g=e=>l()(n,{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:()=>n,getDataSubjectByKey:g,getDataSubjectDisplayName:e=>{let t=g(e);return t?t.name:e},getPrimaryKey:r,isLoading:a}}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return d}});var s=n(24246),a=n(98227),l=n(79894),i=n.n(l),r=n(27378);let{Text:o}=a.AntTypography,d=e=>{let{items:t,...n}=e,l=(0,r.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let l=n===t.length-1,r={...e},d=r.onClick&&!r.href;return("string"==typeof r.title&&(r.title=(0,s.jsx)(o,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,id:l?"breadcrumb-current-page":void 0,children:r.title})),d)?r.title=(0,s.jsx)(a.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,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:r.icon}),r.title]})),r.href&&r.title&&(r.title=(0,s.jsx)(i(),{href:r.href,className:"ant-breadcrumb-link",children:r.title}),delete r.href)),r}),[t]);return(0,s.jsx)(a.zrq,{items:l,...n})}},25415:function(e,t,n){"use strict";n.d(t,{a:function(){return l}});var s=n(24246);let{Text:a}=n(98227).AntTypography,l=e=>{let{count:t}=e;return(0,s.jsx)(a,{size:"sm",strong:!0,"data-testid":"selected-count",children:"".concat(t," selected")})}},2525:function(e,t,n){"use strict";n.d(t,{Q:function(){return r}});var s=n(24246),a=n(98227),l=n(27378),i=n(3110);let r=e=>{let{values:t,columnState:n,tagProps:r,onTagClose:o,onStateChange:d,...c}=e,{isExpanded:u,isWrapped:p,version:g}=n||{},[m,h]=(0,l.useState)(!u),[f,v]=(0,l.useState)(!!p),[y,x]=(0,l.useState)(u?t:null==t?void 0:t.slice(0,2));(0,l.useEffect)(()=>{h(!u)},[u,g]),(0,l.useEffect)(()=>{v(!!p)},[p]),(0,l.useEffect)(()=>{(null==t?void 0:t.length)?x(m?t.slice(0,2):t):x(t)},[m,t,d]),(0,l.useEffect)(()=>{(null==t?void 0:t.length)&&t.length<=2&&!m&&(h(!0),null==d||d(!1))},[t,d,m]);let j=(0,l.useCallback)(()=>{x(null==t?void 0:t.slice(0,2)),h(!0),null==d||d(!1)},[t,d]),b=(0,l.useCallback)(()=>{h(!1),null==d||d(!0)},[d]),C=(0,l.useCallback)(()=>{m?b():j()},[m,b,j]);return(0,l.useMemo)(()=>(null==y?void 0:y.length)?(0,s.jsxs)(a.jqI,{align:m?"center":"start",wrap:f?"wrap":"nowrap",vertical:!m,gap:"small","data-testid":"tag-expandable-cell",style:{overflowX:"auto",...c.style},...c,children:[y.map(e=>(0,s.jsx)(a.j8w,{color:"white","data-testid":e.key,onClose:o?()=>o(e.key):void 0,...r,...e.tagProps,children:(0,s.jsx)(a.lKn,{ellipsis:!!m&&{tooltip:!0},style:{color:"inherit",maxWidth:m?i.TD:void 0},children:e.label})},e.key)),t&&t.length>2&&(0,s.jsx)(a.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),C()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:m?"+".concat(t.length-2," more"):i.T5})]}):(0,s.jsx)("span",{"data-testid":"tag-expandable-cell-empty"}),[y,m,f,c,t,r,o,C])}},3110:function(e,t,n){"use strict";n.d(t,{DI:function(){return r},T5:function(){return l},TD:function(){return i}});var s=n(24246),a=n(98227);let l="show less",i=150,r=[{key:"expand-all",label:"Expand all",icon:(0,s.jsx)(a.PJP.jbG,{})},{key:"collapse-all",label:"Collapse all",icon:(0,s.jsx)(a.PJP.MVB,{})}]},26070:function(e,t,n){"use strict";n.d(t,{v:function(){return o},Q:function(){return d.Q}});var s=n(24246),a=n(98227),l=n(27378),i=n(3110);let{Text:r}=a.AntTypography,o=e=>{let{values:t,valueSuffix:n,columnState:o}=e,{isExpanded:d,version:c}=o||{},[u,p]=(0,l.useState)(!d);(0,l.useEffect)(()=>{p(!d)},[d,c]);let g=(0,l.useCallback)(()=>{p(!0)},[]),m=(0,l.useCallback)(()=>{p(!1)},[]),h=(0,l.useCallback)(()=>{u?m():g()},[u,m,g]);return(0,l.useMemo)(()=>(null==t?void 0:t.length)?1===t.length?(0,s.jsx)(r,{ellipsis:!0,"data-testid":"list-expandable-cell-single",children:t[0]}):(0,s.jsxs)(a.jqI,{align:u?"center":"flex-start",vertical:!u,gap:u?"small":"none","data-testid":"list-expandable-cell",children:[u?(0,s.jsxs)(r,{ellipsis:!0,children:[t.length," ",n]}):(0,s.jsx)(a.krs,{dataSource:t,renderItem:e=>(0,s.jsx)("li",{children:e})}),(0,s.jsx)(a.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),h()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:u?"view":i.T5})]}):null,[u,t,n,h])};var d=n(2525)},8125:function(e,t,n){"use strict";n.d(t,{V:function(){return l},o:function(){return d}});var s=n(27378),a=n(32735);let l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{enableSelection:n=!1,getRowKey:l,bulkActions:i,isLoading:r=!1,isFetching:o=!1,dataSource:d=[],totalRows:c=0,currentPage:u,pageSize:p,customTableProps:g={}}=t,m=(0,s.useCallback)(e=>{if(e&&"object"==typeof e){if(e.id)return String(e.id);if(e.key)return String(e.key)}return String(e)},[]),h=l||m,[f,v]=(0,s.useState)([]),[y,x]=(0,s.useState)([]),j=(0,s.useCallback)(()=>{v([]),x([])},[]),b=(0,s.useMemo)(()=>({selectedRowKeys:f,selectedRows:y,resetSelections:j}),[f,y,j]),C=(0,s.useMemo)(()=>{if(n)return{selectedRowKeys:f,onChange:(e,t)=>{v(e),x(t)}}},[n,f]),k=(0,s.useCallback)((t,n,s)=>{var a,l;let i=null!==(a=t.current)&&void 0!==a?a:e.pageIndex,r=null!==(l=t.pageSize)&&void 0!==l?l:e.pageSize,o=i!==e.pageIndex||r!==e.pageSize;o?(t.current&&t.current!==e.pageIndex&&e.updatePageIndex(t.current),t.pageSize&&t.pageSize!==e.pageSize&&e.updatePageSize(t.pageSize)):e.updateFilters(n||{});let d=s&&!Array.isArray(s)?s.field:void 0,c=s&&!Array.isArray(s)&&null!==s.order?s.order:void 0;o||e.updateSorting(d,c)},[e]),S=(0,s.useMemo)(()=>{var t,n,s,l,i;return{current:null!=u?u:e.pageIndex,pageSize:null!=p?p:e.pageSize,total:c,showSizeChanger:null===(l=null===(t=e.paginationConfig)||void 0===t?void 0:t.showSizeChanger)||void 0===l||l,pageSizeOptions:null!==(i=null===(s=e.paginationConfig)||void 0===s?void 0:null===(n=s.pageSizeOptions)||void 0===n?void 0:n.map(String))&&void 0!==i?i:a.VZ}},[u,e.pageIndex,p,e.pageSize,c,e.paginationConfig]),w=(0,s.useMemo)(()=>({dataSource:d,loading:r||o,pagination:S,onChange:k,rowKey:h,scroll:{x:"max-content",scrollToFirstRowOnChange:!0},size:"small",bordered:!0,...g}),[d,r,o,S,k,h,g]),_=f.map(String),E=y.length>0,A=(0,s.useCallback)(e=>{let t=null==i?void 0:i.actions.find(t=>t.key===e);return t?{disabled:!E||!!t.disabled&&t.disabled(y),loading:t.loading||!1,onClick:()=>t.onClick(y)}:{disabled:!0,loading:!1}},[i,E,y]);return(0,s.useMemo)(()=>({tableProps:w,selectionProps:C,selectionState:b,selectedRows:y,selectedKeys:_,hasSelectedRows:E,resetSelections:j,getBulkActionProps:A,isLoadingOrFetching:r||o,hasData:d.length>0}),[w,C,b,y,_,E,j,A,r,o,d.length])};var i=n(40431),r=n(17245);let o=()=>({filters:(0,i.WJ)(e=>e).withDefault({})}),d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{pagination:t={},sorting:n={},search:a={},onStateChange:l,disableUrlState:d=!1}=e,{pageIndex:c,pageSize:u,resetPagination:p,updatePageIndex:g,updatePageSize:m,pageSizeOptions:h,showSizeChanger:f}=(0,r.h0)({...t,disableUrlState:d}),{sortKey:v,sortOrder:y,updateSorting:x,resetSorting:j}=(0,r.rK)({...n,disableUrlState:d}),{searchQuery:b,updateSearch:C,resetSearch:k}=(0,r.Rx)({...a,disableUrlState:d}),[S,w]=(0,s.useState)({}),_=(0,s.useMemo)(()=>d?null:o(),[d]),[E,A]=(0,i.XI)(null!=_?_:{},{history:"push"}),I=(0,s.useMemo)(()=>{var e;return{pageIndex:c,pageSize:u,sortKey:v,sortOrder:y,columnFilters:d?S:null!==(e=E.filters)&&void 0!==e?e:{},searchQuery:b}},[d,S,E,c,u,v,y,b]),T=(0,s.useCallback)((e,t)=>{x(e,t),p()},[x,p]),D=(0,s.useCallback)(e=>{if(d)w(e);else{let t=Object.fromEntries(Object.entries(e).filter(e=>{let[,t]=e;return null!=t}));A({filters:Object.keys(t).length>0?t:null})}p()},[d,A,p]),N=(0,s.useCallback)(e=>{C(e),p()},[C,p]),O=(0,s.useCallback)(()=>{d?w({}):A({filters:null}),p(),j(),k()},[d,A,p,j,k]);return(0,s.useEffect)(()=>{l&&l(I)},[I,l]),{state:I,pageIndex:I.pageIndex,pageSize:I.pageSize,updatePageIndex:g,updatePageSize:m,sortKey:I.sortKey,sortOrder:I.sortOrder,updateSorting:T,columnFilters:I.columnFilters,updateFilters:D,searchQuery:I.searchQuery,updateSearch:N,resetState:O,paginationConfig:{pageSizeOptions:h,showSizeChanger:f}}}},54762:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});var s=n(24246),a=n(98227),l=n(62165),i=n(65735);let r=e=>{let{consentStatus:t}=e,{flags:n}=(0,l.hz)(),{assetConsentStatusLabels:r}=n;return r&&(null==t?void 0:t.status)===i.pF.ALERT?(0,s.jsx)(a.esZ,{title:null==t?void 0:t.message,"data-testid":"discovery-status-icon-alert-tooltip",children:(0,s.jsx)("div",{className:"mb-px","data-testid":"discovery-status-icon-alert",children:(0,s.jsx)(a.PJP.OdJ,{style:{color:"var(--fidesui-error)"}})})}):null}},9320:function(e,t,n){"use strict";n.d(t,{_:function(){return l}});var s=n(24246),a=n(26089);let l=(e,t)=>(0,s.jsxs)(s.Fragment,{children:[e," ",t&&(0,s.jsx)(a.Z,{onClick:t,children:"View"})]})},88708:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var s,a,l=n(27378),i=n(14908),r=n(65735);(s=a||(a={})).ATTENTION_REQUIRED="attention-required",s.ADDED="added",s.IGNORED="ignored",t.Z=e=>{let{activeTab:t,onTabChange:n}=(0,i.Z)({tabKeys:Object.values(a)}),s=(0,l.useMemo)(()=>[{label:"Attention required",params:{diff_status:[r.LL.ADDITION],system:e},hash:"attention-required"},{label:"Added",params:{diff_status:[r.LL.MONITORED]},hash:"added"},{label:"Ignored",params:{diff_status:[r.LL.MUTED],system:e},hash:"ignored"}],[e]),{diff_status:o,system:d}=(0,l.useMemo)(()=>{var e;return null!==(e=s.find(e=>e.hash===t))&&void 0!==e?e:s[0]},[s,t]).params,c=(0,l.useMemo)(()=>o.includes(r.LL.MONITORED),[o]);return{filterTabs:s,activeTab:t,onTabChange:n,activeParams:(0,l.useMemo)(()=>e?{diff_status:o,system:d}:{diff_status:o},[e,o,d]),actionsDisabled:c}}},78238:function(e,t,n){"use strict";n.d(t,{g:function(){return s}});let s=["essential","functional.service.improve","personalize","analytics","marketing.advertising.first_party.targeted","marketing.advertising.third_party.targeted"];t.Z=e=>s.includes(e)},57072:function(e,t,n){"use strict";n.d(t,{Bd:function(){return s.Bd},L5:function(){return s.L5},MO:function(){return s.MO},qb:function(){return s.qb}});var s=n(5785)},26363:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return eo}});var s=n(24246),a=n(86677),l=n(27378),i=n(35287),r=n(77830),o=n(58754),d=n(37059),c=n(98227),u=n(25415),p=n(65735),g=n(30952),m=n(8133),h=n(79283),f=n(34929),v=n(78238),y=e=>{let{selectedTaxonomies:t,...n}=e,{getDataUseDisplayNameProps:a,getDataUses:i}=(0,f.Z)(),r=[...i()].filter(e=>!(null==t?void 0:t.includes(e.fides_key))).sort(),o=r.filter(e=>e.active&&v.g.includes(e.fides_key)),d=r.map(e=>{let{name:t,primaryName:n}=a(e.fides_key);return{value:e.fides_key,name:t,primaryName:n,description:e.description||""}}),u=(0,l.useMemo)(()=>{let e=[],t=[];return d.forEach(n=>{o.some(e=>e.fides_key===n.value)?e.push(n):t.push(n)}),{suggested:e,all:t}},[d,o]),p=u.suggested.length?[{label:(0,s.jsxs)(c.vyj,{children:[(0,s.jsx)(c.QMR,{size:14}),(0,s.jsx)("span",{children:"Categories of consent"}),(0,s.jsx)("em",{className:"font-normal",children:"Recommended"})]}),options:u.suggested},{label:(0,s.jsxs)(c.vyj,{children:[(0,s.jsx)(c.PJP.BBB,{}),(0,s.jsx)("span",{children:"Other data uses"})]}),options:u.all}]:u.all;return(0,s.jsx)(h.l,{options:p,...n})};let{Text:x}=c.AntTypography;var j=e=>{let{onSave:t,isSaving:n,onClose:a,...i}=e,[r,o]=(0,l.useState)([]),d=()=>{o([]),a()};return(0,s.jsxs)(m.Z,{title:"Add consent category",...i,onClose:d,children:[(0,s.jsxs)(c.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,s.jsx)(x,{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,s.jsx)(y,{mode:"tags",onSelect:(e,t)=>o([...r,t.value]),variant:"outlined"})]}),(0,s.jsxs)(c.jqI,{justify:"space-between",children:[(0,s.jsx)(c.wpx,{htmlType:"reset",onClick:d,"data-testid":"cancel-btn",children:"Cancel"}),(0,s.jsx)(c.wpx,{htmlType:"submit",type:"primary",disabled:!r.length,loading:n,onClick:()=>{t(r),d()},"data-testid":"save-btn",children:"Save"})]})]})},b=n(29850),C=n(77685);let{Text:k}=c.AntTypography,S=e=>{let{onSave:t,isSaving:n,...a}=e,[i,r]=(0,l.useState)(),[o,d]=(0,l.useState)(!1),u=(0,l.useCallback)(e=>{e.preventDefault(),d(!0)},[]),p=()=>{d(!1)},g=()=>{r(void 0),a.onClose()};return(0,s.jsxs)(m.Z,{title:"Assign system",...a,onClose:g,children:[(0,s.jsxs)(c.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,s.jsx)(k,{children:"Assign a system to the selected assets. If no system exists, select 'Add new system' to create one."}),(0,s.jsx)(b.R,{placeholder:"Search or select...",onSelect:(e,t)=>{r(t)},onAddSystem:u,value:i})]})," ",(0,s.jsxs)(c.jqI,{justify:"space-between",children:[(0,s.jsx)(c.wpx,{htmlType:"reset",onClick:g,"data-testid":"cancel-btn",children:"Cancel"}),(0,s.jsx)(c.wpx,{htmlType:"submit",type:"primary",disabled:!i,loading:n,onClick:()=>{t(i),g()},"data-testid":"save-btn",children:"Save"})]}),o&&(0,s.jsx)(C.i,{isOpen:!0,onClose:p,onSuccessfulSubmit:(e,t)=>{p(),r({label:t,value:e})},toastOnSuccess:!0})]})};var w=n(8411),_=n(32735),E=n(8125),A=n(16394),I=n(98145);let{Link:T}=c.AntTypography,D=e=>{let{stagedResource:t}=e,n=(0,E.o)({pagination:{defaultPageSize:10,pageSizeOptions:[10,..._.VZ]},disableUrlState:!0}),{pageIndex:a,pageSize:i}=n,{data:r,isFetching:o,isError:u}=(0,d.mi)({stagedResourceUrn:t.urn,statuses:I.LM,page:a,size:i}),{items:p,total:g}=(0,l.useMemo)(()=>r||{items:[],total:0,pages:0,filterOptions:{assigned_users:[],systems:[]}},[r]),m=(0,l.useMemo)(()=>({enableSelection:!1,getRowKey:e=>"".concat(e.location,"-").concat(e.page),isLoading:o,dataSource:p,totalRows:null!=g?g:0,customTableProps:{scroll:{scrollToFirstRowOnChange:!0},tableLayout:"fixed"}}),[o,p,g]),h=(0,E.V)(n,m);return{columns:(0,l.useMemo)(()=>[{title:"Location",dataIndex:I.EI.LOCATION,key:I.EI.LOCATION,render:e=>{var t;let n=(0,c.QCN)(e),a=n?(0,c.c1K)({isoEntry:n,showFlag:!0}):null!==(t=null===w.Z8||void 0===w.Z8?void 0:w.Z8[e])&&void 0!==t?t:e;return(0,s.jsx)(c.AntTypography.Text,{ellipsis:{tooltip:e},children:a})},width:180},{title:"Page",dataIndex:I.EI.PAGE,key:I.EI.PAGE,render:e=>{let t=(0,A.hL)(e,50);return(0,s.jsx)(T,{href:e,target:"_blank",rel:"noopener noreferrer",variant:"primary",children:(0,s.jsx)(c.AntTypography.Text,{ellipsis:{tooltip:e},unStyled:!0,children:t})})},minWidth:100},{title:"Compliance",dataIndex:I.EI.STATUS,key:I.EI.STATUS,width:160,render:e=>{let t=I.Vq[e];return(0,s.jsx)(c.esZ,{title:t,children:(0,s.jsx)(c.j8w,{color:"error","data-testid":"status-badge_".concat(e.replace(/_/g,"-")),children:I.X1[e]})})}}],[]),data:r,isLoading:o,isError:u,totalRows:g,tableProps:h.tableProps,hasData:p.length>0}},{Paragraph:N,Text:O}=c.AntTypography,L=e=>{var t,n,a;let{isOpen:l,stagedResource:i,onCancel:r,onDownload:o}=e,{columns:d,tableProps:u,isError:p}=D({stagedResource:i});return(0,s.jsx)(c.$zI,{title:"Compliance issues",width:768,open:l,onCancel:r,footer:[(0,s.jsx)(c.wpx,{onClick:r,children:"Cancel"},"cancel"),!!o&&(0,s.jsx)(c.wpx,{type:"primary",onClick:o,children:"Download"},"download")],"data-testid":"consent-breakdown-modal",children:(0,s.jsxs)(c.jqI,{vertical:!0,className:"gap-6","data-testid":"consent-breakdown-modal-content",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(N,{children:"View all instances where this asset was detected with consent compliance issues, organized by location and page. This includes assets loaded without consent, before consent, or when CMP failed."}),(0,s.jsxs)(N,{children:[(0,s.jsx)(O,{strong:!0,children:"Asset name:"})," ",null!==(t=i.name)&&void 0!==t?t:(0,s.jsx)(O,{italic:!0,children:"Unknown"}),","," ",(0,s.jsx)(O,{strong:!0,children:"System:"})," ",null!==(n=i.system)&&void 0!==n?n:(0,s.jsx)(O,{italic:!0,children:"Unassigned"}),","," ",(0,s.jsx)(O,{strong:!0,children:"Domain:"})," ",null!==(a=i.domain)&&void 0!==a?a:(0,s.jsx)(O,{italic:!0,children:"Unknown"})]})]}),p?(0,s.jsx)(c.DUx,{type:"error",message:"Error fetching data",description:"Please try again later.",showIcon:!0}):(0,s.jsx)(c.V5H,{...u,columns:d,"data-testid":"consent-breakdown-modal-table"})]})})};var P=n(83766),R=n.n(P),z=n(62165),M=n(812),Z=n(26070),U=n(3110),V=n(46628),G=n(54762),q=n(9320),K=n(26092),B=n.n(K),F=n(88708),Q=e=>!!e&&I.LM.includes(e);let $=e=>{let{asset:t,onTabChange:n,showComplianceIssueDetails:l}=e,{flags:i}=(0,z.hz)(),{assetConsentStatusLabels:o}=i,[u,{isLoading:g}]=(0,d.EY)(),[m,{isLoading:h}]=(0,d.nS)(),[f,{isLoading:v}]=(0,d.Tj)(),y=(0,c.pmc)(),x=(0,a.useRouter)(),j=g||h||v,{urn:b,name:C,resource_type:k,diff_status:S,system_key:w,user_assigned_system_key:_,consent_aggregated:E}=t,A=B()(C||"",{length:50}),I=Q(E),T=async()=>{let e=await u({urnList:[b]});if((0,M.D4)(e))y((0,V.Vo)((0,M.e$)(e.error)));else{let e=_||w,t="".concat(r.So,"/configure/").concat(e,"#assets");y((0,V.t5)((0,q._)("".concat(k,' "').concat(A,'" has been added to the system inventory.'),e?()=>x.push(t):void 0)))}},D=async()=>{let e=await m({urnList:[b]});(0,M.D4)(e)?y((0,V.Vo)((0,M.e$)(e.error))):y((0,V.t5)((0,q._)("".concat(k,' "').concat(A,'" has been ignored and will not appear in future scans.'),async()=>{await n(F.A.IGNORED)})))},N=async()=>{let e=await f({urnList:[b]});(0,M.D4)(e)?y((0,V.Vo)((0,M.e$)(e.error))):y((0,V.t5)("".concat(k,' "').concat(A,'" is no longer ignored and will appear in future scans.')))};return(0,s.jsxs)(c.vyj,{children:[S!==p.LL.MUTED&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.esZ,{title:t.system?void 0:"This asset requires a system before you can add it to the inventory.",children:(0,s.jsx)(c.wpx,{"data-testid":"add-btn",size:"small",onClick:T,disabled:!t.system||j,loading:g,children:"Add"})}),(0,s.jsx)(c.wpx,{"data-testid":"ignore-btn",size:"small",onClick:D,disabled:j,loading:h,children:"Ignore"}),I&&o&&(0,s.jsx)(c.wpx,{"data-testid":"view-compliance-details-btn",size:"small",onClick:()=>{null==l||l(t)},disabled:j,loading:v,icon:(0,s.jsx)(c.PJP.OdJ,{style:{color:"var(--fidesui-error)",width:14}}),title:"View compliance issue","aria-label":"View compliance issue"})]}),S===p.LL.MUTED&&(0,s.jsx)(c.wpx,{"data-testid":"restore-btn",size:"small",onClick:N,disabled:j,loading:v,children:"Restore"})]})};var W=n(17245),J=n(18992),Y=n.n(J),X=n(2525),H=n(31883),ee=e=>{let{asset:t,readonly:n,columnState:a,onChange:i}=e,[r,o]=(0,l.useState)(!1),[u,p]=(0,l.useState)((null==a?void 0:a.isExpanded)||!1),[g]=(0,d.Ak)(),{successAlert:m,errorAlert:h}=(0,W.VY)(),{getDataUseDisplayName:v}=(0,f.Z)(),x=[...t.preferred_data_uses||[]].sort(),j=B()(t.name||"",{length:50}),b=async e=>{let n=await g({monitorId:t.monitor_config_id,urnList:[t.urn],dataUses:[...x,e]});(0,H.D4)(n)?h((0,M.e$)(n.error)):(m("Consent category added to ".concat(t.resource_type,' "').concat(j,'".'),"Confirmed"),null==i||i([...x,e])),o(!1)},C=async e=>{let n=await g({monitorId:t.monitor_config_id,urnList:[t.urn],dataUses:x.filter(t=>t!==e)});(0,H.D4)(n)?h((0,M.e$)(n.error)):(m("Consent category removed from ".concat(t.resource_type,' "').concat(j,'".'),"Confirmed"),null==i||i(x.filter(t=>t!==e)))};return((0,l.useEffect)(()=>{p((null==a?void 0:a.isExpanded)||!1)},[null==a?void 0:a.isExpanded]),n)?(0,s.jsx)(X.Q,{values:null==x?void 0:x.map(e=>({label:v(e),key:e})),columnState:a,onStateChange:p}):(0,s.jsxs)(s.Fragment,{children:[!r&&(0,s.jsxs)(c.vyj,{align:"start",children:[(0,s.jsx)(c.j8w,{onClick:()=>o(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"}),(0,s.jsx)(X.Q,{values:null==x?void 0:x.map(e=>({label:v(e),key:e})),columnState:{...a,isExpanded:u},tagProps:{closable:!0,closeButtonLabel:"Remove data use"},onTagClose:C,onStateChange:p})]}),r&&(0,s.jsx)("div",{className:Y().cellBleed,style:{backgroundColor:"var(--fides-color-white)"},children:(0,s.jsx)(y,{selectedTaxonomies:x,onSelect:b,onBlur:()=>o(!1),onKeyDown:e=>{"Escape"===e.key&&o(!1)},open:!0})})]})};let et=e=>{let{consentAggregated:t,stagedResource:n}=e,a=I.LM.includes(t);if(!(a||t===p.lg.UNKNOWN))return null;let l=!!n.data_uses&&n.data_uses.length>0,i=I.Vq[t];return t!==p.lg.UNKNOWN||l||(i="Add a category of consent to this asset to find consent information."),(0,s.jsx)(c.esZ,{title:i,children:(0,s.jsx)(c.j8w,{color:a?"error":void 0,"data-testid":"status-badge_".concat(t.replace(/_/g,"-")),children:I.X1[t]})})};var en=n(70675);let es=e=>{let{aggregateSystem:t,monitorConfigId:n,readonly:a,onChange:i}=e,{resource_type:r,name:o,urn:d,system:u,user_assigned_system_key:p,system_key:g}=t,m=B()(o||"",{length:50}),[h,f]=(0,l.useState)(!1),[v,y]=(0,l.useState)(!1),[x,{isLoading:j}]=(0,en.NA)(),{successAlert:k,errorAlert:S}=(0,W.VY)(),w=(0,l.useCallback)(e=>{e.preventDefault(),y(!0)},[]),_=async(e,t,s)=>{let a=await x({staged_resource_urn:d,monitor_config_id:n,user_assigned_system_key:e}),l=B()(t,{length:50});(0,M.D4)(a)?S((0,M.e$)(a.error)):(k(s?"".concat(l," has been added to your system inventory and the ").concat(r,' "').concat(m,'" has been assigned to that system.'):"".concat(r,' "').concat(m,'" has been assigned to ').concat(l,"."),"Confirmed"),null==i||i(e)),f(!1)};return a?u?(0,s.jsx)(c.j8w,{"data-testid":"system-badge",color:"white",children:u}):null:(0,s.jsxs)(s.Fragment,{children:[!h&&(u?(0,s.jsxs)(c.j8w,{onClick:()=>f(!0),"data-testid":"system-badge",children:[u,(0,s.jsx)(c.PJP.I8b,{})]}):(0,s.jsx)(c.j8w,{onClick:()=>f(!0),"data-testid":"add-system-btn",addable:!0})),!!h&&(0,s.jsx)("div",{className:Y().cellBleed,children:(0,s.jsx)(b.R,{variant:"borderless",autoFocus:!0,defaultOpen:!0,defaultValue:p||g,onBlur:e=>{var t;(null===(t=e.relatedTarget)||void 0===t?void 0:t.getAttribute("id"))!=="add-new-system"&&f(!1)},onAddSystem:w,onSelect:(e,t)=>_(e,t.label),loading:j})}),v&&(0,s.jsx)(C.i,{isOpen:!0,onClose:()=>{y(!1)},onSuccessfulSubmit:(e,t)=>_(e,t,!0)})]})},ea=e=>{let{monitorId:t,systemId:n,consentStatus:i,onShowComplianceIssueDetails:o}=e,u=(0,a.useRouter)(),g=(0,c.pmc)(),[m,h]=(0,l.useState)(n),[f,y]=(0,l.useState)(!1),[x,j]=(0,l.useState)(!1),[b,C]=(0,l.useState)(!1),[k,S]=(0,l.useState)(0),[_,T]=(0,l.useState)(0),[D,N]=(0,l.useState)(0),{flags:O}=(0,z.hz)(),{assetConsentStatusLabels:L}=O,{filterTabs:P,activeTab:K,onTabChange:B,activeParams:Q,actionsDisabled:W}=(0,F.Z)(n),J=(0,E.o)({sorting:{validColumns:Object.values(I.r6)}}),{columnFilters:Y,pageIndex:X,pageSize:H,resetState:en,sortKey:ea,sortOrder:el,searchQuery:ei,updateSearch:er,updateFilters:eo,updateSorting:ed,updatePageIndex:ec,updatePageSize:eu}=J,{data:ep,isLoading:eg,isFetching:em}=(0,d.WJ)({key:t,page:X,size:H,search:ei,sort_by:ea?[ea]:[I.r6.NAME],sort_asc:"descend"!==el,...Q,...Y}),[eh,{isLoading:ef}]=(0,d.EY)(),[ev,{isLoading:ey}]=(0,d.nS)(),[ex,{isLoading:ej}]=(0,d.rs)(),[eb,{isLoading:eC}]=(0,d.sX)(),[ek,{isLoading:eS}]=(0,d.Vr)(),[ew,{isLoading:e_}]=(0,d.Tj)(),eE=ef||ey||ej||eC||e_||eS,eA=eE||n===r.Kl,{data:eI}=(0,d.ut)({monitor_config_id:t,resolved_system_id:n,diff_status:null==Q?void 0:Q.diff_status,search:ei,...Y}),eT=(0,l.useMemo)(()=>({enableSelection:K!==F.A.ADDED,getRowKey:e=>e.urn,isLoading:eg,isFetching:em,dataSource:(null==ep?void 0:ep.items)||[],totalRows:(null==ep?void 0:ep.total)||0,sortBy:[I.r6.NAME],sortAsc:!0,customTableProps:{locale:{emptyText:(0,s.jsx)("div",{children:(0,s.jsx)("div",{children:"All caught up!"})})}}}),[K,eg,em,null==ep?void 0:ep.items,null==ep?void 0:ep.total]),eD=(0,E.V)(J,eT),{selectedKeys:eN,selectedRows:eO,resetSelections:eL}=eD,eP=(0,l.useMemo)(()=>{var e;let t=[{title:"Asset",dataIndex:I.r6.NAME,key:I.r6.NAME,sorter:!0,sortOrder:ea===I.r6.NAME?el:null,render:e=>(0,s.jsx)(c.lKn,{ellipsis:{tooltip:!0},style:{maxWidth:300},children:e}),fixed:"left"},{title:"Type",dataIndex:I.r6.RESOURCE_TYPE,key:I.r6.RESOURCE_TYPE,sorter:!0,sortOrder:ea===I.r6.RESOURCE_TYPE?el:null,filters:(0,A.nZ)(null==eI?void 0:eI.resource_type),filteredValue:(null==Y?void 0:Y.resource_type)||null},{title:"System",dataIndex:I.r6.SYSTEM,key:I.r6.SYSTEM,render:(e,t)=>!!t.monitor_config_id&&(0,s.jsx)(es,{aggregateSystem:t,monitorConfigId:t.monitor_config_id,readonly:W||K===F.A.IGNORED,onChange:()=>{eL()}})},{title:"Categories of consent",key:I.r6.DATA_USES,menu:{items:U.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?(C(!0),N(e=>e+1)):"collapse-all"===e.key&&(C(!1),N(e=>e+1))}},filters:(0,A.nZ)(null==eI?void 0:null===(e=eI.data_uses)||void 0===e?void 0:e.filter(e=>(0,v.Z)(e))),filteredValue:(null==Y?void 0:Y.data_uses)||null,render:(e,t)=>(0,s.jsx)(ee,{asset:t,readonly:W||K===F.A.IGNORED,columnState:{isExpanded:b,version:D},onChange:()=>{eL()}})},{title:"Locations",dataIndex:I.r6.LOCATIONS,key:I.r6.LOCATIONS,menu:{items:U.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?(y(!0),S(e=>e+1)):"collapse-all"===e.key&&(y(!1),S(e=>e+1))}},filters:(0,A.nZ)(null==eI?void 0:eI.locations,e=>{var t;let n=(0,c.QCN)(e);return n?(0,c.c1K)({isoEntry:n}):null!==(t=w.Z8[e])&&void 0!==t?t:e}),filteredValue:(null==Y?void 0:Y.locations)||null,render:e=>{var t;return(0,s.jsx)(Z.Q,{values:null!==(t=null==e?void 0:e.map(e=>{var t;let n=(0,c.QCN)(e);return{label:n?(0,c.c1K)({isoEntry:n}):null!==(t=w.Z8[e])&&void 0!==t?t:e,key:e}}))&&void 0!==t?t:[],columnState:{isExpanded:f,version:k}})}},{title:"Domain",dataIndex:I.r6.DOMAIN,key:I.r6.DOMAIN},{title:"Detected on",dataIndex:I.r6.PAGE,menu:{items:U.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?(j(!0),T(e=>e+1)):"collapse-all"===e.key&&(j(!1),T(e=>e+1))}},key:I.r6.PAGE,render:e=>(0,s.jsx)(Z.v,{values:e,valueSuffix:"pages",columnState:{isExpanded:x,version:_}})}];return L&&t.push({title:()=>(0,s.jsxs)(c.vyj,{children:[(0,s.jsx)("div",{children:"Compliance"}),(null==i?void 0:i.status)===p.pF.ALERT&&(0,s.jsx)(G.l,{consentStatus:i})]}),dataIndex:I.r6.CONSENT_AGGREGATED,key:I.r6.CONSENT_AGGREGATED,sorter:!0,sortOrder:ea===I.r6.CONSENT_AGGREGATED?el:null,filters:(0,A.nZ)(null==eI?void 0:eI[I.r6.CONSENT_AGGREGATED],e=>{var t;return null!==(t=I.X1[e])&&void 0!==t?t:e}),filteredValue:(null==Y?void 0:Y[I.r6.CONSENT_AGGREGATED])||null,render:(e,t)=>(0,s.jsx)(et,{consentAggregated:null!=e?e:p.lg.UNKNOWN,stagedResource:t})}),W||t.push({title:"Actions",key:I.r6.ACTIONS,fixed:"right",render:(e,t)=>(0,s.jsx)($,{asset:t,onTabChange:B,showComplianceIssueDetails:o})}),t},[ea,el,eI,Y,L,W,K,b,D,eL,f,k,x,_,i,B,o]);(0,l.useEffect)(()=>{if(ep){var e;h((null===(e=ep.items[0])||void 0===e?void 0:e.system)||m||n||"")}},[ep,n,m]);let eR=(0,l.useCallback)(async()=>{var e,t;let n=await eh({urnList:eN}),s=(null===(e=eO[0])||void 0===e?void 0:e.user_assigned_system_key)||(null===(t=eO[0])||void 0===t?void 0:t.system_key),a=eO.every(e=>(e.user_assigned_system_key||e.system_key)===s)?s:void 0;(0,M.D4)(n)?g((0,V.Vo)((0,M.e$)(n.error))):(g((0,V.t5)((0,q._)("".concat(eN.length," assets from ").concat(m," have been added to the system inventory."),a?()=>u.push("".concat(r.So,"/configure/").concat(a,"#assets")):()=>u.push(r.So)))),eL())},[eh,eN,eO,m,g,u,eL]),ez=(0,l.useCallback)(async e=>{if("string"==typeof(null==e?void 0:e.value)){let n=await eb({monitorId:t,urnList:eN,systemKey:e.value});(0,M.D4)(n)?g((0,V.Vo)((0,M.e$)(n.error))):(g((0,V.t5)("".concat(eN.length," assets have been assigned to ").concat(e.label,"."),"Confirmed")),eL())}},[eb,t,eN,g,eL]),eM=(0,l.useCallback)(async e=>{if(!eO.length)return;let n=eO.map(t=>{let n=R()([...t.preferred_data_uses||[],...e]);return{urn:t.urn,user_assigned_data_uses:n}}),s=await ek({monitorId:t,assets:n});(0,M.D4)(s)?g((0,V.Vo)((0,M.e$)(s.error))):(g((0,V.t5)("Consent categories added to ".concat(eN.length," assets").concat(m?" from ".concat(m):"","."),"Confirmed")),eL())},[eO,ek,t,eN,m,g,eL]),eZ=(0,l.useCallback)(async()=>{let e=await ev({urnList:eN});(0,M.D4)(e)?g((0,V.Vo)((0,M.e$)(e.error))):(g((0,V.t5)(m===r.Kl?"".concat(eN.length," uncategorized assets have been ignored and will not appear in future scans."):"".concat(eN.length," assets from ").concat(m," have been ignored and will not appear in future scans."),"Confirmed")),eL())},[ev,eN,m,g,eL]),eU=(0,l.useCallback)(async()=>{let e=await ew({urnList:eN});(0,M.D4)(e)?g((0,V.Vo)((0,M.e$)(e.error))):(g((0,V.t5)("".concat(eN.length," assets have been restored and will appear in future scans."),"Confirmed")),eL())},[ew,eN,g,eL]),eV=(0,l.useCallback)(async()=>{let e=(null==ep?void 0:ep.items.length)||0,s=await ex({monitor_config_key:t,resolved_system_ids:[n]});(0,M.D4)(s)?g((0,V.Vo)((0,M.e$)(s.error))):(u.push({pathname:r.lA,query:{monitorId:encodeURIComponent(t)}}),g((0,V.t5)("".concat(e," assets from ").concat(m," have been added to the system inventory."),"Confirmed")),eL())},[null==ep?void 0:ep.items.length,ex,t,n,u,g,m,eL]),eG=(0,l.useCallback)(async e=>{await B(e),en(),eL()},[B,en,eL]);return{columns:eP,data:ep,isLoading:eg,isFetching:em,tableState:J,searchQuery:ei,updateSearch:er,updateFilters:eo,updateSorting:ed,updatePageIndex:ec,updatePageSize:eu,resetState:en,tableProps:eD.tableProps,selectionProps:eD.selectionProps,filterTabs:P,activeTab:K,handleTabChange:eG,activeParams:Q,actionsDisabled:W,selectedRows:eO,selectedUrns:eN,hasSelectedRows:eD.hasSelectedRows,resetSelections:eL,systemName:m,consentStatus:i,handleBulkAdd:eR,handleBulkAssignSystem:ez,handleBulkAddDataUse:eM,handleBulkIgnore:eZ,handleBulkRestore:eU,handleAddAll:eV,anyBulkActionIsLoading:eE,isAddingResults:ef,isIgnoringResults:ey,isAddingAllResults:ej,isBulkUpdatingSystem:eC,isBulkAddingDataUses:eS,isRestoringResults:e_,disableAddAll:eA}},el=e=>{var t;let{monitorId:n,systemId:a,consentStatus:i}=e,[r,o]=(0,l.useState)(!1),[d,m]=(0,l.useState)(!1),[h,f]=(0,l.useState)(null),{columns:v,searchQuery:y,updateSearch:x,resetState:b,tableProps:C,selectionProps:k,filterTabs:w,activeTab:_,handleTabChange:E,activeParams:A,actionsDisabled:I,selectedUrns:T,hasSelectedRows:D,resetSelections:N,handleBulkAdd:O,handleBulkAssignSystem:P,handleBulkAddDataUse:R,handleBulkIgnore:z,handleBulkRestore:M,handleAddAll:Z,anyBulkActionIsLoading:U,isAddingAllResults:V,isBulkUpdatingSystem:G,isBulkAddingDataUses:q,disableAddAll:K}=ea({monitorId:n,systemId:a,consentStatus:i,onShowComplianceIssueDetails:e=>{f(e)}}),B=async e=>{await P(e),o(!1)},F=async e=>{await R(e),m(!1)};return n&&a?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.Niu,{"aria-label":"Asset state filter",mode:"horizontal",items:w.map(e=>({key:e.hash,label:e.label})),selectedKeys:[_],onClick:async e=>{await E(e.key)},className:"mb-4","data-testid":"asset-state-filter"}),(0,s.jsxs)(c.jqI,{justify:"space-between",align:"center",className:"mb-4",children:[(0,s.jsx)(g.f,{value:y,onChange:x,placeholder:"Search by asset name..."}),(0,s.jsxs)(c.vyj,{size:"large",children:[D&&(0,s.jsx)(u.a,{count:T.length}),(0,s.jsxs)(c.vyj,{size:"small",children:[(0,s.jsx)(c.wpx,{onClick:()=>{b(),N()},"data-testid":"clear-filters",children:"Clear filters"}),(0,s.jsx)(c.S0p,{overlayClassName:"bulk-actions-menu-dropdown",menu:{items:[...(null==A?void 0:null===(t=A.diff_status)||void 0===t?void 0:t.includes(p.LL.MUTED))?[{key:"restore",label:"Restore",onClick:M}]:[{key:"add",label:"Add",onClick:O},{key:"add-data-use",label:"Add consent category",onClick:()=>m(!0)},{key:"assign-system",label:"Assign system",onClick:()=>o(!0)},{type:"divider"},{key:"ignore",label:"Ignore",onClick:z}]]},trigger:["click"],children:(0,s.jsx)(c.wpx,{icon:(0,s.jsx)(c.PJP._ME,{}),iconPosition:"end",loading:U,"data-testid":"bulk-actions-menu",disabled:!D||U||I,type:"primary",children:"Actions"})}),(0,s.jsx)(c.esZ,{title:K?"These assets require a system before you can add them to the inventory.":void 0,children:(0,s.jsx)(c.wpx,{onClick:Z,disabled:K,loading:V,type:"primary",icon:(0,s.jsx)(c.PJP.MCw,{}),iconPosition:"end","data-testid":"add-all",children:"Add all"})})]})]})]}),(0,s.jsx)(c.V5H,{...C,columns:v,rowSelection:k,locale:{emptyText:(0,s.jsx)(c.oj8,{image:c.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})},"aria-labelledby":"breadcrumb-current-page"}),(0,s.jsx)(S,{isOpen:r,onClose:()=>{o(!1)},onSave:B,isSaving:G}),(0,s.jsx)(j,{isOpen:d,onClose:()=>{m(!1)},onSave:F,isSaving:q}),h&&(0,s.jsx)(L,{isOpen:!!h,stagedResource:h,onCancel:()=>{f(null)}})]}):null};var ei=n(71985),er=n(98243),eo=()=>{let e=(0,a.useRouter)(),t=decodeURIComponent(e.query.monitorId),n=decodeURIComponent(e.query.systemId),{data:c}=(0,d.wi)({key:t,page:1,size:1,search:"",diff_status:[er.L.ADDITION],resolved_system_id:n}),u=null==c?void 0:c.items[0];return(0,l.useEffect)(()=>{c&&0===c.items.length&&e.push({pathname:r.lA,query:{monitorId:encodeURIComponent(t)}})},[c,e,t]),(0,s.jsxs)(i.Z,{title:"Action center - Discovered assets",children:[(0,s.jsx)(o.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:r.vi},{title:t,href:"".concat(r.vi,"/").concat(ei.w.WEBSITE,"/").concat(t)},{title:n===r.Kl?"Uncategorized assets":null==u?void 0:u.name}]}),(0,s.jsx)(el,{monitorId:t,systemId:n,consentStatus:null==u?void 0:u.consent_status})]})}},31883:function(e,t,n){"use strict";n.d(t,{Bw:function(){return s.Bw},D4:function(){return s.D4}});var s=n(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,6344,7245,401,7059,6780,2888,9774,179],function(){return e(e.s=14599)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1206],{55515:function(a,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/website/[monitorId]",function(){return n(57617)}])},26089:function(a,e,n){"use strict";var t=n(24246),i=n(98227),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(65735);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]}))},25415:function(a,e,n){"use strict";n.d(e,{a:function(){return s}});var t=n(24246);let{Text:i}=n(98227).AntTypography,s=a=>{let{count:e}=a;return(0,t.jsx)(i,{size:"sm",strong:!0,"data-testid":"selected-count",children:"".concat(e," selected")})}},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)&&l(n)},[n,e,o.isReady]),{activeTab:_,onTabChange:(0,i.useCallback)(async a=>{if(!e.includes(a)){await o.replace({pathname:o.pathname,query:o.query,hash:void 0}),l(e[0]);return}o.isReady&&(await o.replace({pathname:o.pathname,query:o.query,hash:s(a)},void 0,{shallow:!0}),l(a))},[o,e]),setActiveTab:l}}},54762:function(a,e,n){"use strict";n.d(e,{l:function(){return r}});var t=n(24246),i=n(98227),s=n(62165),o=n(65735);let r=a=>{let{consentStatus:e}=a,{flags:n}=(0,s.hz)(),{assetConsentStatusLabels:r}=n;return r&&(null==e?void 0:e.status)===o.pF.ALERT?(0,t.jsx)(i.esZ,{title:null==e?void 0:e.message,"data-testid":"discovery-status-icon-alert-tooltip",children:(0,t.jsx)("div",{className:"mb-px","data-testid":"discovery-status-icon-alert",children:(0,t.jsx)(i.PJP.OdJ,{style:{color:"var(--fidesui-error)"}})})}):null}},9320:function(a,e,n){"use strict";n.d(e,{_:function(){return s}});var t=n(24246),i=n(26089);let s=(a,e)=>(0,t.jsxs)(t.Fragment,{children:[a," ",e&&(0,t.jsx)(i.Z,{onClick:e,children:"View"})]})},88708:function(a,e,n){"use strict";n.d(e,{A:function(){return i}});var t,i,s=n(27378),o=n(14908),r=n(65735);(t=i||(i={})).ATTENTION_REQUIRED="attention-required",t.ADDED="added",t.IGNORED="ignored",e.Z=a=>{let{activeTab:e,onTabChange:n}=(0,o.Z)({tabKeys:Object.values(i)}),t=(0,s.useMemo)(()=>[{label:"Attention required",params:{diff_status:[r.LL.ADDITION],system:a},hash:"attention-required"},{label:"Added",params:{diff_status:[r.LL.MONITORED]},hash:"added"},{label:"Ignored",params:{diff_status:[r.LL.MUTED],system:a},hash:"ignored"}],[a]),{diff_status:_,system:l}=(0,s.useMemo)(()=>{var a;return null!==(a=t.find(a=>a.hash===e))&&void 0!==a?a:t[0]},[t,e]).params,d=(0,s.useMemo)(()=>_.includes(r.LL.MONITORED),[_]);return{filterTabs:t,activeTab:e,onTabChange:n,activeParams:(0,s.useMemo)(()=>a?{diff_status:_,system:l}:{diff_status:_},[a,_,l]),actionsDisabled:d}}},78238:function(a,e,n){"use strict";n.d(e,{g:function(){return t}});let t=["essential","functional.service.improve","personalize","analytics","marketing.advertising.first_party.targeted","marketing.advertising.third_party.targeted"];e.Z=a=>t.includes(a)},57617:function(a,e,n){"use strict";n.r(e),n.d(e,{default:function(){return B}});var t=n(24246),i=n(98227),s=n(86677),o=n(25980),r=n(35287),_=n(77830),l=n(58754),d=n(25415),F=n(65735),u=n(30952),c=n(27378),m=n(812),S=n(8125),h=n(46628),y=n(37059),v=n(98145),A=n(9320),C=n(71985),g=n(88708),M=n(8411),p=n(26070),N=n(3110),b=n(54762);let I=a=>{let{monitorId:e,system:n,allowIgnore:o,onTabChange:r}=a,[l,{isLoading:d}]=(0,y.rs)(),[F,{isLoading:u}]=(0,y.nP)(),c=(0,s.useRouter)(),S=(0,i.pmc)(),v=d||u,{id:C,name:M,system_key:p,total_updates:N}=n,b=async()=>{let a=await l({monitor_config_key:e,resolved_system_ids:[C]});if((0,m.D4)(a))S((0,h.Vo)((0,m.e$)(a.error)));else{let a="".concat(_.So,"/configure/").concat(p,"#assets");S((0,h.t5)((0,A._)(p?"".concat(N," assets from ").concat(M," have been added to the system inventory."):"".concat(M," and ").concat(N," assets have been added to the system inventory. ").concat(M," is now configured for consent."),p?()=>c.push(a):void 0)))}},I=async()=>{let a=await F({monitor_config_key:e,resolved_system_ids:[C||_.Kl]});(0,m.D4)(a)?S((0,h.Vo)((0,m.e$)(a.error))):S((0,h.t5)((0,A._)(M?"".concat(N," assets from ").concat(M," have been ignored and will not appear in future scans."):"".concat(N," uncategorized assets have been ignored and will not appear in future scans."),async()=>{await r(g.A.IGNORED)})))};return(0,t.jsxs)(i.vyj,{children:[(0,t.jsx)(i.esZ,{title:n.id?void 0:"These assets must be categorized before you can add them to the inventory.",children:(0,t.jsx)(i.wpx,{"data-testid":"add-btn",size:"small",onClick:b,disabled:!n.id||v,loading:d,children:"Add"})}),o&&(0,t.jsx)(i.wpx,{"data-testid":"ignore-btn",size:"small",onClick:I,disabled:v,loading:u,children:"Ignore"})]})};var U=n(99640),E=n(76904);let T=a=>{let{system:e,rowClickUrl:n}=a,s=null==n?void 0:n(e);return(0,t.jsxs)(i.vyj,{className:"max-w-[250px] flex-nowrap",children:[!e.system_key&&(0,t.jsx)(i.esZ,{title:"New system",children:(0,t.jsx)("span",{children:E.QL.Change})}),(0,t.jsx)(U.Z,{href:s,"data-testid":s?"system-name-link":"system-name-text",children:e.name||"Uncategorized assets"}),(0,t.jsx)(b.l,{consentStatus:e.consent_status})]})};var f=n(34929),k=n(2525),x=n(78238),L=a=>{var e,n;let{system:i,columnState:s}=a,{getDataUseDisplayName:o}=(0,f.Z)(),r=(null!==(n=null===(e=i.data_uses)||void 0===e?void 0:e.filter(a=>(0,x.Z)(a)))&&void 0!==n?n:[]).map(a=>({label:o(a),key:a}));return(0,t.jsx)(k.Q,{values:r,columnState:s})};let w=a=>{let{monitorId:e,readonly:n,allowIgnore:s,onTabChange:o,consentStatus:r,rowClickUrl:_}=a,[l,d]=(0,c.useState)(!1),[F,u]=(0,c.useState)(!1),[m,S]=(0,c.useState)(!1),[h,y]=(0,c.useState)(0),[A,C]=(0,c.useState)(0),[g,U]=(0,c.useState)(0);return{columns:(0,c.useMemo)(()=>{let a=[{title:()=>(0,t.jsxs)(i.vyj,{children:[(0,t.jsx)("div",{children:"System"}),(0,t.jsx)(b.l,{consentStatus:r})]}),dataIndex:"name",key:v.vQ.SYSTEM_NAME,fixed:"left",render:(a,e)=>(0,t.jsx)(T,{system:e,rowClickUrl:_})},{title:"Assets",dataIndex:"total_updates",key:v.vQ.TOTAL_UPDATES},{title:"Categories of consent",key:v.vQ.DATA_USE,menu:{items:N.DI,onClick:a=>{a.domEvent.stopPropagation(),"expand-all"===a.key?(S(!0),U(a=>a+1)):"collapse-all"===a.key&&(S(!1),U(a=>a+1))}},render:(a,e)=>(0,t.jsx)(L,{system:e,columnState:{isExpanded:m,version:g}})},{title:"Locations",menu:{items:N.DI,onClick:a=>{a.domEvent.stopPropagation(),"expand-all"===a.key?(d(!0),y(a=>a+1)):"collapse-all"===a.key&&(d(!1),y(a=>a+1))}},dataIndex:"locations",key:v.vQ.LOCATIONS,render:a=>{var e;return(0,t.jsx)(p.Q,{values:null!==(e=null==a?void 0:a.map(a=>{var e;let n=(0,i.QCN)(a);return{label:n?(0,i.c1K)({isoEntry:n}):null!==(e=M.Z8[a])&&void 0!==e?e:a,key:a}}))&&void 0!==e?e:[],columnState:{isExpanded:l,isWrapped:!0,version:h}})}},{title:"Domains",menu:{items:N.DI,onClick:a=>{a.domEvent.stopPropagation(),"expand-all"===a.key?(u(!0),C(a=>a+1)):"collapse-all"===a.key&&(u(!1),C(a=>a+1))}},dataIndex:"domains",key:v.vQ.DOMAINS,render:a=>(0,t.jsx)(p.v,{values:a,valueSuffix:"domains",columnState:{isExpanded:F,version:A}})}];return n||a.push({title:"Actions",key:v.vQ.ACTIONS,fixed:"right",render:(a,n)=>(0,t.jsx)(I,{system:n,monitorId:e,allowIgnore:s,onTabChange:o})}),a},[n,r,_,m,l,F,g,h,A,e,s,o])}},P=a=>{let{monitorId:e}=a,n=(0,s.useRouter)(),o=(0,i.pmc)(),[r,l]=(0,c.useState)(),{filterTabs:d,activeTab:u,onTabChange:M,activeParams:p,actionsDisabled:N}=(0,g.Z)(),b=(0,S.o)({sorting:{validColumns:Object.values(v.vQ)}}),{pageIndex:I,pageSize:U,searchQuery:E,updateSearch:T,resetState:f}=b,{data:k,isLoading:x,isFetching:L}=(0,y.wi)({key:e,page:I,size:U,search:E,...p}),[P,{isLoading:j}]=(0,y.rs)(),[G,{isLoading:B}]=(0,y.nP)(),R=(0,c.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:_.Kl},[]),D=(0,c.useCallback)(a=>{var n;return"".concat(_.vi,"/").concat(C.w.WEBSITE,"/").concat(e,"/").concat(null!==(n=a.id)&&void 0!==n?n:_.Kl).concat(u?"#".concat(u):"")},[e,u]),O=(0,c.useMemo)(()=>({enableSelection:!0,getRowKey:R,isLoading:x,isFetching:L,dataSource:(null==k?void 0:k.items)||[],totalRows:(null==k?void 0:k.total)||0,customTableProps:{locale:{emptyText:(0,t.jsx)(i.oj8,{image:i.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})}}}),[R,x,L,null==k?void 0:k.items,null==k?void 0:k.total]),K=(0,S.V)(b,O),{selectedRows:Z,resetSelections:V}=K,z=(0,c.useCallback)(async a=>{l(void 0),await M(a),f(),V()},[M,f,V]),{columns:H}=w({monitorId:e,onTabChange:z,readonly:N,allowIgnore:!p.diff_status.includes(F.LL.MUTED),consentStatus:r,rowClickUrl:D});(0,c.useEffect)(()=>{if((null==k?void 0:k.items)&&!r){var a;let e=null===(a=k.items.find(a=>{var e;return(null===(e=a.consent_status)||void 0===e?void 0:e.status)===F.pF.ALERT}))||void 0===a?void 0:a.consent_status;l(null!=e?e:void 0)}},[k,r]);let W=(0,c.useCallback)(async()=>{let a=Z.reduce((a,e)=>a+e.total_updates,0),t=await P({monitor_config_key:e,resolved_system_ids:Z.map(a=>a.id)});(0,m.D4)(t)?o((0,h.Vo)((0,m.e$)(t.error))):(o((0,h.t5)((0,A._)("".concat(a," assets have been added to the system inventory."),()=>n.push(_.So)))),V())},[Z,P,e,o,n,V]),Q=(0,c.useCallback)(async()=>{let a=Z.reduce((a,e)=>a+e.total_updates,0),n=await G({monitor_config_key:e,resolved_system_ids:Z.map(a=>{var e;return null!==(e=a.id)&&void 0!==e?e:_.Kl})});(0,m.D4)(n)?o((0,h.Vo)((0,m.e$)(n.error))):(o((0,h.t5)((0,A._)("".concat(a," assets have been ignored and will not appear in future scans."),async()=>{await M(g.A.IGNORED)}))),V())},[Z,G,e,o,M,V]),J=Z.some(a=>null===a.id);return{columns:H,data:k,isLoading:x,isFetching:L,searchQuery:E,updateSearch:T,resetState:f,tableProps:K.tableProps,selectionProps:K.selectionProps,filterTabs:d,activeTab:u,handleTabChange:z,activeParams:p,actionsDisabled:N,selectedRows:Z,hasSelectedRows:K.hasSelectedRows,resetSelections:V,uncategorizedIsSelected:J,handleBulkAdd:W,handleBulkIgnore:Q,anyBulkActionIsLoading:j||B,isAddingResults:j,isIgnoringResults:B}},j=a=>{let{monitorId:e}=a,{columns:n,searchQuery:s,updateSearch:o,tableProps:r,selectionProps:_,filterTabs:l,activeTab:c,handleTabChange:m,activeParams:S,selectedRows:h,hasSelectedRows:y,uncategorizedIsSelected:v,handleBulkAdd:A,handleBulkIgnore:C,anyBulkActionIsLoading:g}=P({monitorId:e});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.Niu,{"aria-label":"Asset state filter",mode:"horizontal",items:l.map(a=>({key:a.hash,label:a.label})),selectedKeys:[c],onClick:async a=>{await m(a.key)},className:"mb-4","data-testid":"asset-state-filter"}),(0,t.jsxs)(i.jqI,{justify:"space-between",align:"center",className:"mb-4",children:[(0,t.jsx)(u.f,{value:s,onChange:o}),(0,t.jsxs)(i.vyj,{size:"large",children:[y&&(0,t.jsx)(d.a,{count:h.length}),(0,t.jsx)(i.S0p,{menu:{items:[{key:"add",label:(0,t.jsx)(i.esZ,{title:v?"Uncategorized assets can't be added to the inventory":null,placement:"left",children:"Add"}),onClick:A,disabled:v},S.diff_status.includes(F.LL.MUTED)?null:{key:"ignore",label:"Ignore",onClick:C}]},trigger:["click"],children:(0,t.jsx)(i.wpx,{type:"primary",icon:(0,t.jsx)(i.PJP._ME,{}),iconPosition:"end",loading:g,disabled:!y,"data-testid":"bulk-actions-menu",children:"Actions"})})]})]}),(0,t.jsx)(i.V5H,{...r,columns:n,rowSelection:_})]})},G=()=>(0,t.jsx)(t.Fragment,{children:"Attempting to access monitor results without the required feature flag enabled"});var B=()=>{let{flags:a}=(0,o.hz)(),e=decodeURIComponent((0,s.useRouter)().query.monitorId);return a.webMonitor?(0,t.jsxs)(r.Z,{title:"Action center - Discovered assets by system",children:[(0,t.jsx)(l.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:_.vi},{title:e}]}),(0,t.jsx)(j,{monitorId:e})]}):(0,t.jsx)(i.ux6,{status:"error",title:(0,t.jsx)(G,{})})}},99830:function(a){a.exports={toastLink:"ToastLink_toastLink__OLSeq"}}},function(a){a.O(0,[431,7245,4817,7059,9965,2888,9774,179],function(){return a(a.s=55515)}),_N_E=a.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7778],{96406:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/website",function(){return t(43340)}])},43340:function(e,n,t){"use strict";t.r(n);var u=t(86677),c=t(27378),r=t(77830);n.default=()=>{let e=(0,u.useRouter)();return(0,c.useLayoutEffect)(()=>{e.replace(r.vi)},[e]),null}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=96406)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8443],{74833:function(e,t,n){var i=n(56127),s=/^\s+/;e.exports=function(e){return e?e.slice(0,i(e)+1).replace(s,""):e}},56127:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},66726:function(e,t,n){var i=n(11611),s=n(82846),a=n(91936),r=Math.max,o=Math.min;e.exports=function(e,t,n){var l,c,u,d,g,p,m=0,f=!1,h=!1,x=!0;if("function"!=typeof e)throw TypeError("Expected a function");function v(t){var n=l,i=c;return l=c=void 0,m=t,d=e.apply(i,n)}function y(e){var n=e-p,i=e-m;return void 0===p||n>=t||n<0||h&&i>=u}function j(){var e,n,i,a=s();if(y(a))return C(a);g=setTimeout(j,(e=a-p,n=a-m,i=t-e,h?o(i,u-n):i))}function C(e){return(g=void 0,x&&l)?v(e):(l=c=void 0,d)}function _(){var e,n=s(),i=y(n);if(l=arguments,c=this,p=n,i){if(void 0===g)return m=e=p,g=setTimeout(j,t),f?v(e):d;if(h)return clearTimeout(g),g=setTimeout(j,t),v(p)}return void 0===g&&(g=setTimeout(j,t)),d}return t=a(t)||0,i(n)&&(f=!!n.leading,u=(h="maxWait"in n)?r(a(n.maxWait)||0,t):u,x="trailing"in n?!!n.trailing:x),_.cancel=function(){void 0!==g&&clearTimeout(g),m=0,l=p=c=g=void 0},_.flush=function(){return void 0===g?d:C(s())},_}},82846:function(e,t,n){var i=n(77400);e.exports=function(){return i.Date.now()}},91936:function(e,t,n){var i=n(74833),s=n(11611),a=n(55193),r=0/0,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return r;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var n=l.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):o.test(e)?r:+e}},40741:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center",function(){return n(22627)}])},30952:function(e,t,n){"use strict";n.d(t,{f:function(){return l}});var i=n(24246),s=n(66726),a=n.n(s),r=n(27378),o=n(26917);let l=e=>{let{value:t,onChange:n,placeholder:s,...l}=e,[c,u]=(0,r.useState)(t);(0,r.useEffect)(()=>{u(t||"")},[t]);let d=a()(n,500),g=(0,r.useCallback)(e=>{u(e),d(e)},[]);return(0,i.jsx)(o.Z,{value:c,onChange:g,onClear:()=>{u(""),n("")},placeholder:s,...l})}},35287:function(e,t,n){"use strict";var i=n(24246),s=n(98227),a=n(88038),r=n.n(a);n(27378),t.Z=e=>{let{children:t,title:n,fullHeight:a,fullWidth:o,mainProps:l}=e;return(0,i.jsxs)(s.kCb,{"data-testid":n,direction:"column",height:a?"100vh":"calc(100vh - 48px)",width:o?"100vw":"calc(100vw - 240px)",children:[(0,i.jsxs)(r(),{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.jsx)(s.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...l,children:t})]})}},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var i=n(24246),s=n(98227),a=n(88038),r=n.n(a),o=n(86677);n(27378);var l=n(25980),c=n(90867),u=n(42478),d=n(77830),g=()=>{let e=(0,o.useRouter)();return(0,i.jsx)(s.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)(s.xuv,{children:[(0,i.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(s.wpx,{onClick:()=>{e.push(d.AD)},children:"Configure"})]}),(0,i.jsxs)(s.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:n,padded:a=!0,mainProps:d}=e,p=(0,l.hz)(),m=(0,o.useRouter)(),f="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,h=!(p.flags.messagingConfiguration&&f),{data:x}=(0,u.JE)(void 0,{skip:h}),{data:v}=(0,c.PW)(void 0,{skip:h}),y=p.flags.messagingConfiguration&&(!x||!v)&&f;return(0,i.jsxs)(s.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(r(),{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)(s.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[y?(0,i.jsx)(g,{}):null,t]})]})}},58754:function(e,t,n){"use strict";var i=n(24246),s=n(98227),a=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:r=!0,children:o,rightContent:l,style:c,...u}=e;return(0,i.jsxs)("div",{...u,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",...c}:{paddingBottom:"24px",...c},children:[(0,i.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(s.lQT,{className:n||o?"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})]}),!!n&&(0,i.jsx)(a.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return c}});var i=n(24246),s=n(98227),a=n(79894),r=n.n(a),o=n(27378);let{Text:l}=s.AntTypography,c=e=>{let{items:t,...n}=e,a=(0,o.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let a=n===t.length-1,o={...e},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,i.jsx)(l,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,id:a?"breadcrumb-current-page":void 0,children:o.title})),c)?o.title=(0,i.jsx)(s.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)(r(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,i.jsx)(s.zrq,{items:a,...n})}},9270:function(e,t,n){"use strict";n.d(t,{S:function(){return a}});var i=n(27378),s=n(36866);let a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,s.h)(e),{pageIndex:n,pageSize:a,updatePageIndex:r,updatePageSize:o,pageSizeOptions:l,showSizeChanger:c}=t,u=(0,i.useMemo)(()=>({current:n,pageSize:a,showSizeChanger:c,pageSizeOptions:l.map(String),onChange:r,onShowSizeChange:(e,t)=>{o(t)}}),[n,a,c,l,r,o]);return{...t,paginationProps:u}}},14908:function(e,t,n){"use strict";var i=n(86677),s=n(27378);let a=e=>e.startsWith("#")?e.slice(1):e;t.Z=e=>{let{tabKeys:t,initialTab:n}=e,r=(0,i.useRouter)(),o=r.asPath.split("#")[1]||t[0],[l,c]=(0,s.useState)(o);return(0,s.useEffect)(()=>{n&&t.includes(n)&&c(n)},[n,t,r.isReady]),{activeTab:l,onTabChange:(0,s.useCallback)(async e=>{if(!t.includes(e)){await r.replace({pathname:r.pathname,query:r.query,hash:void 0}),c(t[0]);return}r.isReady&&(await r.replace({pathname:r.pathname,query:r.query,hash:a(e)},void 0,{shallow:!0}),c(e))},[r,t]),setActiveTab:c}}},54762:function(e,t,n){"use strict";n.d(t,{l:function(){return o}});var i=n(24246),s=n(98227),a=n(62165),r=n(65735);let o=e=>{let{consentStatus:t}=e,{flags:n}=(0,a.hz)(),{assetConsentStatusLabels:o}=n;return o&&(null==t?void 0:t.status)===r.pF.ALERT?(0,i.jsx)(s.esZ,{title:null==t?void 0:t.message,"data-testid":"discovery-status-icon-alert-tooltip",children:(0,i.jsx)("div",{className:"mb-px","data-testid":"discovery-status-icon-alert",children:(0,i.jsx)(s.PJP.OdJ,{style:{color:"var(--fidesui-error)"}})})}):null}},42478:function(e,t,n){"use strict";n.d(t,{FU:function(){return c},JE:function(){return s},Ki:function(){return d},SU:function(){return g},W:function(){return p},h9:function(){return a},jc:function(){return i},qt:function(){return l},sn:function(){return u}});let{useGetEmailInviteStatusQuery:i,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:a,useCreateMessagingConfigurationSecretsMutation:r,useGetMessagingConfigurationDetailsQuery:o,useGetMessagingConfigurationsQuery:l,useGetMessagingConfigurationByKeyQuery:c,useUpdateMessagingConfigurationByKeyMutation:u,useUpdateMessagingConfigurationSecretsByKeyMutation:d,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:p}=n(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,t,n,i)=>{let s=await i({url:"messaging/default/active"});return s.error&&404===s.error.status?{data:null}:s},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},22627:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return V}});var i,s,a=n(24246),r=n(98227),o=n(79894),l=n.n(o),c=n(27378),u=n(30952),d=n(25980),g=n(35287),p=n(77830),m=n(58754),f=n(9270),h=n(37059),x=n(16394),v=n(17245),y=n(67359);let j=()=>{let{resetPagination:e,pageIndex:t,pageSize:n,paginationProps:i}=(0,f.S)(),{searchQuery:s,updateSearch:o}=(0,v.Rx)(),l=(0,c.useMemo)(()=>[y.n.PENDING,y.n.IN_PROCESSING,y.n.PAUSED,y.n.RETRYING,y.n.ERROR],[]),[u,d]=(0,c.useState)(l),[g,p]=(0,c.useState)(!1),[m,x]=(0,c.useState)(l),[j,C]=(0,c.useState)(!1),_=(0,c.useCallback)(t=>{o(t),e()},[o,e]),k=(0,c.useCallback)(e=>{x(e)},[]),w=(0,c.useCallback)(e=>{C(e)},[]),b=(0,c.useCallback)(()=>{d(m),p(j),e()},[m,j,e]),S=(0,c.useCallback)(()=>{x(l),C(!1),d(l),p(!1),e()},[l,e]),E=[y.n.PENDING,y.n.IN_PROCESSING,y.n.COMPLETE,y.n.ERROR,y.n.PAUSED,y.n.RETRYING,y.n.SKIPPED],{data:T,isLoading:N,isFetching:I}=(0,h.$h)({page:t,size:n,search:s,statuses:u.length>0?u:void 0,return_dismissed:g},{pollingInterval:3e3,refetchOnFocus:!0,refetchOnReconnect:!0});return{searchQuery:s,updateSearch:_,statusFilters:m,updateStatusFilters:k,showDismissed:j,updateShowDismissed:w,applyFilters:b,resetAndApplyFilters:S,availableStatuses:E,listProps:(0,c.useMemo)(()=>({dataSource:(null==T?void 0:T.items)||[],loading:N,locale:{emptyText:(0,a.jsx)(r.oj8,{image:r.oj8.PRESENTED_IMAGE_SIMPLE,description:"No tasks in progress"})}}),[null==T?void 0:T.items,N]),paginationProps:{...i,total:null==T?void 0:T.total},isLoading:N,isFetching:I}};var C=n(10969),_=n(60145),k=n(11558),w=n(70641),b=n(7317),S=n(85302),E=n(64892);function T(e,t,n){let i;let s=(0,_.j)(),a=n?.locale??s.locale??C._,r=(0,S.U)(e,t);if(isNaN(r))throw RangeError("Invalid time value");let o=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:r}),[l,c]=(0,b.d)(n?.in,...r>0?[t,e]:[e,t]),u=(0,k.u)(n?.roundingMethod??"round"),d=c.getTime()-l.getTime(),g=d/E.yJ,p=(d-((0,w.D)(c)-(0,w.D)(l)))/E.yJ,m=n?.unit;if("second"===(i=m||(g<1?"second":g<60?"minute":g<E.H_?"hour":p<E.fH?"day":p<E.UU?"month":"year"))){let e=u(d/1e3);return a.formatDistance("xSeconds",e,o)}if("minute"===i){let e=u(g);return a.formatDistance("xMinutes",e,o)}if("hour"===i){let e=u(g/60);return a.formatDistance("xHours",e,o)}if("day"===i){let e=u(p/E.H_);return a.formatDistance("xDays",e,o)}if("month"===i){let e=u(p/E.fH);return 12===e&&"month"!==m?a.formatDistance("xYears",1,o):a.formatDistance("xMonths",e,o)}{let e=u(p/E.UU);return a.formatDistance("xYears",e,o)}}var N=n(88340),I=n(41337),P=n(65735);let{Paragraph:M,Text:A,Title:R}=r.AntTypography,O=e=>"paused"===e?"Awaiting Processing":e.split("_").map(x.kC).join(" "),q=e=>{var t,n,i,s,o,l,c,u,d,g;let{task:p,...m}=e,f=(0,r.pmc)(),[x,{isLoading:v}]=(0,h.mL)(),[y,{isLoading:j}]=(0,h.QC)(),C=!!p.dismissed,_="error"===p.status&&p.action_type!==P.K8.DETECTION,{data:k}=(0,h.Ud)({page:1,size:1e3}),w=p.monitor_config_id?null==k?void 0:null===(t=k.items)||void 0===t?void 0:t.find(e=>e.key===p.monitor_config_id):void 0,b=w?(0,I.AZ)({connection_type:w.connection_type,name:null!==(s=w.name)&&void 0!==s?s:null,key:null!==(o=w.key)&&void 0!==o?o:null,saas_config:w.saas_config?{type:null!==(l=w.saas_config.type)&&void 0!==l?l:null,name:null!==(c=w.saas_config.name)&&void 0!==c?c:null,fides_key:null!==(u=w.saas_config.fides_key)&&void 0!==u?u:null}:null,secrets:(null===(i=w.secrets)||void 0===i?void 0:i.url)?{url:w.secrets.url}:null}):p.connection_type?(0,I.AZ)({connection_type:p.connection_type,name:null!==(d=p.connection_name)&&void 0!==d?d:p.connection_type?p.connection_type.toString():null,key:null,saas_config:null,secrets:null}):void 0,S=(null===(n=p.staged_resource_urns)||void 0===n?void 0:n.length)||0,E=["pending","in_processing","paused","retrying"].includes((p.status||"").toLowerCase()),q=p.field_count||S,D=(()=>{if(p.action_type===P.K8.CLASSIFICATION||p.action_type===P.K8.LLM_CLASSIFICATION){let e="complete"===p.status?"Classified":"Classifying";return"".concat(e," ").concat(q," ").concat(1===q?"field":"fields")}if(p.action_type===P.K8.DETECTION)return"complete"===p.status?"Monitor scanned":"Monitor scanning";if(p.action_type===P.K8.PROMOTION){let e="complete"===p.status?"Confirmed":"Confirming";return"".concat(e," ").concat(q," ").concat(1===q?"field":"fields")}return p.action_type?p.action_type.replace(/_/g," "):"Task"})(),z=p.monitor_name||"Unknown monitor",U=async()=>{try{await x({taskId:p.id}).unwrap(),f({status:"success",description:"Task retry initiated successfully"})}catch(n){var e;let t=(null==n?void 0:null===(e=n.data)||void 0===e?void 0:e.detail)||(null==n?void 0:n.message)||"Unknown error occurred";f({status:"error",description:"Failed to retry task: ".concat(t)})}},F=async()=>{try{await y({taskId:p.id}).unwrap(),f({status:"success",description:"Task dismissed successfully"})}catch(n){var e;let t=(null==n?void 0:null===(e=n.data)||void 0===e?void 0:e.detail)||(null==n?void 0:n.message)||"Unknown error occurred";f({status:"error",description:"Failed to dismiss task: ".concat(t)})}};return(0,a.jsx)("div",{...m,className:"w-full",children:(0,a.jsxs)(r.bue,{gutter:12,className:"w-full",children:[(0,a.jsx)(r.JGx,{span:14,className:"align-middle",children:(0,a.jsxs)(r.vyj,{direction:"vertical",size:4,children:[(0,a.jsxs)(r.vyj,{align:"center",size:8,wrap:!0,children:[b&&(0,a.jsx)(I.ZP,{data:b,size:24}),(0,a.jsx)(R,{level:5,className:"m-0",children:D}),!E&&(0,a.jsx)(r.j8w,{color:(e=>{switch(e){case"pending":case"retrying":case"skipped":default:return r.tAb.DEFAULT;case"in_processing":return r.tAb.INFO;case"complete":return r.tAb.SUCCESS;case"error":return r.tAb.ERROR;case"paused":return r.tAb.MARBLE}})(p.status),children:(g=p.status)?O(g):"Unknown"})]}),"error"===p.status&&(0,a.jsxs)(r.vyj,{children:[(0,a.jsx)(M,{type:"secondary",size:"sm",ellipsis:{rows:1,expandable:!0,symbol:"more",tooltip:!0},children:p.message||"Unknown error"}),p.message&&(0,a.jsx)(N.Z,{copyText:p.message,size:"small",className:"ml-1"})]})]})}),(0,a.jsx)(r.JGx,{span:4,className:"flex items-center justify-end",children:(0,a.jsx)(A,{type:"secondary",size:"sm",children:z})}),(0,a.jsx)(r.JGx,{span:3,className:"flex items-center justify-end",children:E?(0,a.jsx)(r.ZJQ,{size:"small"}):(0,a.jsx)(A,{type:"secondary",size:"sm",children:T(new Date(p.updated_at),new Date,{addSuffix:!0})})}),(0,a.jsx)(r.JGx,{span:3,className:"flex items-center justify-end",children:"error"===p.status&&(0,a.jsxs)(r.vyj,{size:0,split:(0,a.jsx)(r.htM,{type:"vertical"}),children:[_&&(0,a.jsx)(r.wpx,{type:"link",size:"small",loading:v,onClick:U,className:"p-0",children:"Retry"}),!C&&(0,a.jsx)(r.wpx,{type:"link",size:"small",loading:j,onClick:F,className:"p-0",children:"Dismiss"})]})})]})})},D=e=>"paused"===e?"Awaiting Processing":e.split("_").map(x.kC).join(" "),z=()=>{var e,t;let[n,i]=(0,c.useState)(!1),{searchQuery:s,updateSearch:o,statusFilters:l,updateStatusFilters:d,showDismissed:g,updateShowDismissed:p,applyFilters:m,resetAndApplyFilters:f,availableStatuses:h,listProps:x,paginationProps:v}=j(),y=(0,c.useCallback)(e=>{d(e)},[d]),C=(0,c.useCallback)(()=>{m(),i(!1)},[m]),_=(0,c.useCallback)(()=>{f(),i(!1)},[f]),k=(0,a.jsxs)(r.jqI,{vertical:!0,className:"min-w-[220px]",children:[(0,a.jsxs)(r.jqI,{vertical:!0,className:"gap-1.5 px-4 py-2",children:[(0,a.jsx)(r.E_O.Group,{value:l,onChange:y,className:"flex flex-col gap-1.5",children:h.map(e=>(0,a.jsx)(r.E_O,{value:e,children:D(e)},e))}),(0,a.jsx)(r.E_O,{checked:g,onChange:e=>p(e.target.checked),children:"Dismissed"})]}),(0,a.jsx)(r.htM,{className:"m-0"}),(0,a.jsxs)(r.jqI,{justify:"space-between",className:"px-4 py-2",children:[(0,a.jsx)(r.wpx,{size:"small",type:"text",onClick:_,className:"-ml-2",children:"Reset"}),(0,a.jsx)(r.wpx,{size:"small",type:"primary",onClick:C,children:"Apply"})]})]});return(0,a.jsxs)(r.jqI,{className:"h-[calc(100%-48px)] overflow-hidden",gap:"middle",vertical:!0,children:[(0,a.jsxs)(r.jqI,{justify:"space-between",align:"center",children:[(0,a.jsx)("div",{className:"min-w-[300px]",children:(0,a.jsx)(u.f,{value:null!=s?s:"",onChange:o,placeholder:"Search by monitor name..."})}),(0,a.jsx)(r.bPF,{content:k,trigger:"click",placement:"bottomRight",open:n,onOpenChange:i,children:(0,a.jsx)(r.wpx,{icon:(0,a.jsx)(r.PJP._ME,{}),iconPosition:"end",children:"Filter"})})]}),(0,a.jsx)(r.krs,{...x,className:"h-full overflow-scroll",renderItem:e=>(0,a.jsx)(r.krs.Item,{children:(0,a.jsx)(q,{task:e})})}),(0,a.jsx)(r.B7X,{...v,showSizeChanger:{suffixIcon:(0,a.jsx)(r.PJP._ME,{})},hideOnSinglePage:(null===(e=v.pageSize)||void 0===e?void 0:e.toString())===(null===(t=v.pageSizeOptions)||void 0===t?void 0:t[0])})]})};var U=n(77213);let F=()=>(0,a.jsx)(U.Z,{title:"Action center",mainProps:{className:"h-full"},children:(0,a.jsx)(r.jqI,{justify:"center",align:"center",className:"h-full",children:(0,a.jsx)(r.DUx,{message:"Coming soon...",description:"Action center is currently disabled.",type:"info",showIcon:!0})})}),L=()=>(0,a.jsx)(r.oj8,{image:r.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up! Set up an integration monitor to track your infrastructure in greater detail.",children:(0,a.jsx)(l(),{href:p.KH,passHref:!0,legacyBehavior:!0,children:(0,a.jsx)(r.wpx,{type:"primary",children:"Visit integrations"})})});var G=n(14908);(i=s||(s={})).ATTENTION_REQUIRED="attention-required",i.IN_PROGRESS="in-progress";var Z=()=>{let{flags:e}=(0,d.hz)(),t=!!e.heliosV2,n=(0,c.useMemo)(()=>t?Object.values(s):["attention-required"],[t]),{activeTab:i,onTabChange:a}=(0,G.Z)({tabKeys:n});return{tabs:(0,c.useMemo)(()=>{let e=[{label:"Attention required",hash:"attention-required"}];return t&&e.push({label:"Activity",hash:"in-progress"}),e},[t]),activeTab:i,onTabChange:a}},J=n(54762),B=n(42905),K=n.n(B),W=n(98145);let H=e=>{let{updates:t,isAssetList:n}=e,i=e=>{var t;return null!==(t=W.v8.get(e))&&void 0!==t?t:e},s=(0,c.useMemo)(()=>t?Object.entries(t).filter(e=>{let[t,n]=e;return null!==n&&n>0&&!W.EP.includes(t)}).sort((e,t)=>{let n=W.H6.indexOf(e[0]),i=W.H6.indexOf(t[0]);return -1===n&&-1===i?0:-1===n?1:-1===i?-1:n-i}).map(e=>{let[t,s]=e;return"".concat((0,x.pF)(s)," ").concat(i(t)).concat(n&&1!==s?"s":"")}):[],[t,n]);if(!t)return null;if(n){let e=s.join(", ");return(0,a.jsxs)("span",{children:[e," detected."]})}let r=s.join(", ");return(0,a.jsx)("span",{children:r})};var Y=n(71985);let{Text:Q}=r.AntTypography,X={[Y.w.WEBSITE]:"asset",[Y.w.DATASTORE]:"field",[Y.w.INFRASTRUCTURE]:"system"},$=e=>{let{monitorSummary:t,showSkeleton:n,href:i,...s}=e,{name:o,consent_status:c,total_updates:u,updates:d,last_monitored:g,secrets:p,key:m,connection_type:f,saas_config:h,monitorType:v,isTestMonitor:y}=t,j=g?(0,x.p6)(new Date(g)):void 0,C=g?T(new Date(g),new Date,{addSuffix:!0}):void 0,_=X[v];return(0,a.jsx)(r.krs.Item,{"data-testid":"monitor-result-".concat(m),...s,children:(0,a.jsx)(r.N_L,{avatar:!0,title:!1,loading:n,active:!0,children:(0,a.jsxs)(r.bue,{gutter:{xs:6,lg:12},className:"w-full",children:[(0,a.jsx)(r.JGx,{span:18,className:"align-middle",children:(0,a.jsx)(r.krs.Item.Meta,{avatar:(0,a.jsx)(I.ZP,{data:{kind:I.hY.CONNECTION,connectionType:f,name:o,key:m,saasType:null==h?void 0:h.type,websiteUrl:null==p?void 0:p.url}}),title:(0,a.jsxs)(r.jqI,{align:"center",gap:4,className:K()["monitor-result__title"],children:[(0,a.jsx)(l(),{href:i,"data-testid":"monitor-link",children:o}),(0,a.jsxs)(Q,{type:"secondary",children:[(0,x.pF)(u)," ",_,1===u?"":"s"]}),c&&(0,a.jsx)(J.l,{consentStatus:c}),y&&(0,a.jsx)(r.j8w,{color:"nectar",children:"test monitor"})]}),description:!!d&&(0,a.jsx)(H,{updates:d,isAssetList:v===Y.w.WEBSITE})})}),(0,a.jsx)(r.JGx,{span:6,className:"flex items-center justify-end",children:!!C&&(0,a.jsx)(r.esZ,{title:j,children:(0,a.jsxs)(Q,{type:"secondary","data-testid":"monitor-date",children:[(0,a.jsx)("span",{className:"hidden lg:inline",children:"Last scan: "}),C]})})})]})})})};var V=()=>{var e,t,n;let i=(0,r.pmc)(),{tabs:o,activeTab:x,onTabChange:v}=Z(),{flags:y}=(0,d.hz)(),{paginationProps:j,pageIndex:C,pageSize:_,resetPagination:k}=(0,f.S)(),[w,b]=(0,c.useState)(""),{webMonitor:S,heliosV2:E}=y,T=[...S?[Y.w.WEBSITE]:[],...E?[Y.w.DATASTORE]:[]],{data:N,isError:I,isLoading:P,isFetching:M}=(0,h.Ud)({page:C,size:_,search:w,monitor_type:T.length>0?T:void 0});(0,c.useEffect)(()=>{k()},[w]),(0,c.useEffect)(()=>{I&&i({title:"Error fetching data",description:"Please try again later",status:"error"})},[I,i]);let A=(null==N?void 0:null===(e=N.items)||void 0===e?void 0:e.flatMap(e=>e.key&&void 0!==e.key?[e]:[]))||[],R=M?Array.from({length:_},(e,t)=>({key:t.toString(),updates:[],last_monitored:null})):[],O=(0,c.useCallback)((e,t)=>[(0,a.jsx)(l(),{href:null!=t?t:"",passHref:!0,legacyBehavior:!0,children:(0,a.jsx)(r.wpx,{type:"link",className:"p-0","data-testid":"review-button-".concat(e),children:"Review"})},"review")],[]);return S||E?(0,a.jsxs)(g.Z,{title:"Action center",mainProps:{overflow:"hidden"},fullHeight:!0,children:[(0,a.jsx)(m.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity"}],isSticky:!1}),(0,a.jsx)(r.Niu,{"aria-label":"Action center tabs",mode:"horizontal",items:o.map(e=>({key:e.hash,label:e.label})),selectedKeys:[x],onClick:async e=>{let t=Object.values(s).find(t=>t===e.key);t&&await v(t)},className:"mb-4","data-testid":"action-center-tabs"}),x===s.IN_PROGRESS?(0,a.jsx)(z,{}):(0,a.jsxs)(r.jqI,{className:"h-[calc(100%-48px)] overflow-hidden",gap:"middle",vertical:!0,children:[(0,a.jsx)(r.jqI,{className:"justify-between ",children:(0,a.jsx)(u.f,{value:w,onChange:b})}),(0,a.jsx)(r.krs,{loading:P,dataSource:A||R,locale:{emptyText:(0,a.jsx)(L,{})},className:"h-full overflow-scroll",renderItem:e=>{let t=e.key&&e.monitorType?"".concat(p.vi,"/").concat(e.monitorType,"/").concat(e.key):"";return!!(null==e?void 0:e.key)&&(0,a.jsx)($,{showSkeleton:M,monitorSummary:e,href:t,actions:O(e.key,t)},e.key)}}),(0,a.jsx)(r.B7X,{...j,total:(null==N?void 0:N.total)||0,showSizeChanger:{suffixIcon:(0,a.jsx)(r.PJP._ME,{})},hideOnSinglePage:(null===(t=j.pageSize)||void 0===t?void 0:t.toString())===(null===(n=j.pageSizeOptions)||void 0===n?void 0:n[0])})]})]}):(0,a.jsx)(F,{})}},42905:function(e){e.exports={"monitor-result__title":"MonitorResult_monitor-result__title__Wqv_l"}}},function(e){e.O(0,[431,7245,7059,2888,9774,179],function(){return e(e.s=40741)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-581d6248fcf98d17.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7477],{45550:function(e,s,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/activity",function(){return a(3680)}])},91761:function(e,s,a){"use strict";var t=a(24246),i=a(98227),r=a(812),n=a(17245),o=a(7940),l=a(98559),c=a(65735),d=a(79494),u=a(70675);s.Z=e=>{let{resource:s}=e,[a,{isLoading:g}]=(0,u.v8)(),[I,{isLoading:L}]=(0,u.cM)(),[x,{isLoading:A}]=(0,u.vi)(),C=L||A||g,{diff_status:j,child_diff_statuses:f,top_level_field_name:h}=s,{successAlert:_,errorAlert:S}=(0,n.VY)(),T=j===c.LL.CLASSIFICATION_ADDITION||j===c.LL.CLASSIFICATION_UPDATE||j===c.LL.APPROVED,m=f&&(f[c.LL.CLASSIFICATION_ADDITION]||f[c.LL.CLASSIFICATION_UPDATE]||f[c.LL.APPROVED]),D=(T||m)&&!h,N=T||m,v=(0,o.G)(s)!==c.D$.FIELD,p=D&&N&&v,y=async()=>{let e=await I({staged_resource_urn:s.urn});(0,r.D4)(e)?S((0,r.e$)(e.error),"Failed to promote resource"):_('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},O=async()=>{let e=await x({staged_resource_urn:s.urn});(0,r.D4)(e)?S((0,r.e$)(e.error),"Failed to mute resource"):_("Ignored changes will not be added to a Fides dataset.","".concat(s.name||"Changes"," ignored"))},R=async()=>{let e=await a({staged_resource_urn:s.urn,monitor_config_id:s.monitor_config_id,start_classification:!0,diff_statuses_to_classify:[c.LL.CLASSIFICATION_ADDITION,c.LL.CLASSIFICATION_UPDATE,c.LL.CLASSIFYING,c.LL.CLASSIFICATION_QUEUED]});(0,r.D4)(e)?S((0,r.e$)(e.error),"Failed to reclassify resource"):_("Reclassification of ".concat((0,l.Z)(s)||"the resource"," has begun. The results may take some time to appear in the “Data discovery“ tab."),"Reclassification started")};return(0,t.jsxs)(i.Ugi,{gap:2,children:[D&&(0,t.jsx)(d.Z,{title:"Confirm",icon:(0,t.jsx)(i.nQG,{}),onClick:y,disabled:C,loading:L}),N&&(0,t.jsx)(d.Z,{title:"Ignore",icon:(0,t.jsx)(i.tpL,{}),onClick:O,disabled:C,loading:A}),v&&!p&&(0,t.jsx)(d.Z,{title:"Reclassify",icon:(0,t.jsx)(i.nyI,{}),onClick:R,disabled:C,loading:g}),p&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.LZC,{}),(0,t.jsxs)(i.v2r,{children:[(0,t.jsx)(i.j2t,{as:i.wpx,size:"small",type:"text",icon:(0,t.jsx)(i.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-overflow-btn"}),(0,t.jsx)(i.qyq,{children:(0,t.jsx)(i.sNh,{onClick:R,icon:(0,t.jsx)(i.nyI,{}),"data-testid":"action-reclassify",children:"Reclassify"})})]})]})]})}},3680:function(e,s,a){"use strict";a.r(s),a.d(s,{default:function(){return w}});var t,i,r=a(24246),n=a(27378),o=a(35287),l=a(58754),c=a(47182),d=a(92222),u=a(59003),g=a(98227),I=a(47935),L=a(72625),x=a(70675),A=a(38347),C=a(87667),j=a(50169),f=a(80285),h=a(30952);(t=i||(i={})).DATASET="Dataset",t.CLASSIFICATION="Classification";var _=a(74241),S=a(28278),T=a(20449),m=e=>(0,T.Z)(e)===S.E.CLASSIFICATION?i.CLASSIFICATION:i.DATASET,D=a(54409),N=a(91761);let v={items:[],total:0,page:1,size:50,pages:1},p=()=>(0,r.jsx)(g.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,r.jsxs)(g.gCW,{children:[(0,r.jsx)(g.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,r.jsx)(g.xvT,{fontSize:"sm",children:"You're up to date!"})]})}),y=(0,d.Cl)();var O=e=>{let{onRowClick:s,statusFilters:a,childsStatusFilters:t}=e,[o,l]=(0,n.useState)(""),{PAGE_SIZES:c,pageSize:S,setPageSize:T,onPreviousPageClick:O,isPreviousPageDisabled:R,onNextPageClick:w,isNextPageDisabled:F,startRange:E,endRange:P,pageIndex:b,setTotalPages:Z}=(0,I.oi)(),{isFetching:k,isLoading:V,data:M}=(0,x.z8)({diff_status:a,child_diff_status:t,page:b,size:S,search:o}),{items:U,total:z,pages:G}=(0,n.useMemo)(()=>null!=M?M:v,[M]);(0,n.useEffect)(()=>{Z(G)},[G,Z]);let W=(0,n.useMemo)(()=>[y.accessor(e=>e.name,{id:"name",cell:e=>(0,r.jsx)(C.Z,{result:e.row.original}),header:e=>(0,r.jsx)(I.Rr,{value:"Name",...e})}),y.accessor(e=>e.urn,{id:"project",cell:e=>(0,r.jsx)(I.G3,{value:(0,_.Z)(e.getValue())}),header:e=>(0,r.jsx)(I.Rr,{value:"Project",...e})}),y.display({id:"status",cell:e=>(0,r.jsx)(j.Z,{result:e.row.original}),header:e=>(0,r.jsx)(I.Rr,{value:"Status",...e})}),y.accessor(e=>e.system,{id:"system",cell:e=>(0,r.jsx)(I.G3,{value:e.getValue()}),header:e=>(0,r.jsx)(I.Rr,{value:"System",...e})}),y.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,r.jsx)(I.G3,{value:e.getValue()}),header:e=>(0,r.jsx)(I.Rr,{value:"Detected by",...e})}),y.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,r.jsx)(L.Cy,{time:e.getValue()}),header:e=>(0,r.jsx)(I.Rr,{value:"When",...e})}),y.accessor(e=>e,{id:"action",cell:e=>m(e.getValue())===i.DATASET?(0,r.jsx)(D.Z,{resource:e.getValue()}):(0,r.jsx)(N.Z,{resource:e.getValue()}),header:e=>(0,r.jsx)(I.Rr,{value:"Action",...e})})],[]),$=(0,u.b7)({getCoreRowModel:(0,d.sC)(),getGroupedRowModel:(0,d.qe)(),getExpandedRowModel:(0,d.rV)(),getRowId:f.Z,columns:W,manualPagination:!0,data:U,columnResizeMode:"onChange"});return V?(0,r.jsx)(I.I4,{rowHeight:36,numRows:36}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(I.Q$,{children:(0,r.jsxs)(g.kCb,{gap:6,align:"center",children:[(0,r.jsx)(g.xuv,{flexShrink:0,children:(0,r.jsx)(h.f,{value:o,onChange:l})}),(0,r.jsx)(A.a,{})]})}),(0,r.jsx)(I.ZK,{tableInstance:$,onRowClick:s,emptyTableNotice:(0,r.jsx)(p,{})}),(0,r.jsx)(I.s8,{totalRows:z||0,pageSizes:c,setPageSize:T,onPreviousPageClick:O,isPreviousPageDisabled:R||k,onNextPageClick:w,isNextPageDisabled:F||k,startRange:E,endRange:P})]})},R=a(65735),w=()=>{let{navigateToDetectionResults:e,navigateToDiscoveryResults:s}=(0,c.Z)();return(0,r.jsxs)(o.Z,{title:"Data discovery",children:[(0,r.jsx)(l.Z,{heading:"All activity"}),(0,r.jsx)(O,{onRowClick:a=>{if(m(a)===i.DATASET){e({resourceUrn:a.urn});return}s({resourceUrn:a.urn})},statusFilters:[R.LL.ADDITION,R.LL.REMOVAL,R.LL.CLASSIFICATION_ADDITION,R.LL.CLASSIFICATION_UPDATE],childsStatusFilters:[R.LL.ADDITION,R.LL.REMOVAL,R.LL.CLASSIFICATION_ADDITION,R.LL.CLASSIFICATION_UPDATE]})]})}}},function(e){e.O(0,[431,7245,4817,5724,2888,9774,179],function(){return e(e.s=45550)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5744],{24354:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/detection/[resourceUrn]",function(){return r(42705)}])},42705:function(e,n,r){"use strict";r.r(n);var t=r(24246);r(27378);var c=r(35287),i=r(77830),u=r(58754),s=r(69828),o=r(47182),a=r(1039);n.default=()=>{let{resourceUrn:e,navigateToDetectionResults:n}=(0,o.Z)();return(0,t.jsxs)(c.Z,{title:"Data detection",children:[(0,t.jsx)(u.Z,{heading:"Data detection",children:(0,t.jsx)(s.Z,{parentLink:i.XY,resourceUrn:e,onPathClick:e=>n({resourceUrn:e})})}),(0,t.jsx)(a.Z,{resourceUrn:e})]})}}},function(e){e.O(0,[431,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5744],{24354:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/detection/[resourceUrn]",function(){return r(42705)}])},42705:function(e,n,r){"use strict";r.r(n);var t=r(24246);r(27378);var c=r(35287),i=r(77830),u=r(58754),s=r(69828),o=r(47182),a=r(1039);n.default=()=>{let{resourceUrn:e,navigateToDetectionResults:n}=(0,o.Z)();return(0,t.jsxs)(c.Z,{title:"Data detection",children:[(0,t.jsx)(u.Z,{heading:"Data detection",children:(0,t.jsx)(s.Z,{parentLink:i.XY,resourceUrn:e,onPathClick:e=>n({resourceUrn:e})})}),(0,t.jsx)(a.Z,{resourceUrn:e})]})}}},function(e){e.O(0,[431,7245,4817,5724,2397,2888,9774,179],function(){return e(e.s=24354)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3453],{35041:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/detection",function(){return e(82660)}])},82660:function(n,t,e){"use strict";e.r(t);var i=e(24246);e(27378);var c=e(35287),a=e(77830),s=e(58754),u=e(69828),r=e(1039);t.default=()=>(0,i.jsxs)(c.Z,{title:"Data detection",children:[(0,i.jsx)(s.Z,{heading:"Data detection",children:(0,i.jsx)(u.Z,{parentLink:a.XY})}),(0,i.jsx)(r.Z,{})]})}},function(n){n.O(0,[431,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3453],{35041:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/detection",function(){return e(82660)}])},82660:function(n,t,e){"use strict";e.r(t);var i=e(24246);e(27378);var c=e(35287),a=e(77830),s=e(58754),u=e(69828),r=e(1039);t.default=()=>(0,i.jsxs)(c.Z,{title:"Data detection",children:[(0,i.jsx)(s.Z,{heading:"Data detection",children:(0,i.jsx)(u.Z,{parentLink:a.XY})}),(0,i.jsx)(r.Z,{})]})}},function(n){n.O(0,[431,7245,4817,5724,2397,2888,9774,179],function(){return n(n.s=35041)}),_N_E=n.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1571],{11207:function(r,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/discovery/[resourceUrn]",function(){return n(55124)}])},55124:function(r,e,n){"use strict";n.r(e);var s=n(24246);n(27378);var c=n(35287),t=n(77830),i=n(58754),u=n(69828),o=n(47182),a=n(11904);e.default=()=>{let{resourceUrn:r,navigateToDiscoveryResults:e}=(0,o.Z)();return(0,s.jsxs)(c.Z,{title:"Data discovery",children:[(0,s.jsx)(i.Z,{heading:"Data discovery",children:(0,s.jsx)(u.Z,{parentLink:t.zE,resourceUrn:r,onPathClick:r=>e({resourceUrn:r})})}),(0,s.jsx)(a.Z,{resourceUrn:r})]})}}},function(r){r.O(0,[
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1571],{11207:function(r,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/discovery/[resourceUrn]",function(){return n(55124)}])},55124:function(r,e,n){"use strict";n.r(e);var s=n(24246);n(27378);var c=n(35287),t=n(77830),i=n(58754),u=n(69828),o=n(47182),a=n(11904);e.default=()=>{let{resourceUrn:r,navigateToDiscoveryResults:e}=(0,o.Z)();return(0,s.jsxs)(c.Z,{title:"Data discovery",children:[(0,s.jsx)(i.Z,{heading:"Data discovery",children:(0,s.jsx)(u.Z,{parentLink:t.zE,resourceUrn:r,onPathClick:r=>e({resourceUrn:r})})}),(0,s.jsx)(a.Z,{resourceUrn:r})]})}}},function(r){r.O(0,[431,7245,4817,6372,9046,2888,9774,179],function(){return r(r.s=11207)}),_N_E=r.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2320],{48570:function(n,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/discovery",function(){return i(49730)}])},49730:function(n,e,i){"use strict";i.r(e);var s=i(24246);i(27378);var t=i(35287),r=i(77830),c=i(58754),a=i(69828),u=i(11904);e.default=()=>(0,s.jsxs)(t.Z,{title:"Data discovery",children:[(0,s.jsx)(c.Z,{heading:"Data discovery",children:(0,s.jsx)(a.Z,{parentLink:r.zE})}),(0,s.jsx)(u.Z,{})]})}},function(n){n.O(0,[
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2320],{48570:function(n,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/discovery",function(){return i(49730)}])},49730:function(n,e,i){"use strict";i.r(e);var s=i(24246);i(27378);var t=i(35287),r=i(77830),c=i(58754),a=i(69828),u=i(11904);e.default=()=>(0,s.jsxs)(t.Z,{title:"Data discovery",children:[(0,s.jsx)(c.Z,{heading:"Data discovery",children:(0,s.jsx)(a.Z,{parentLink:r.zE})}),(0,s.jsx)(u.Z,{})]})}},function(n){n.O(0,[431,7245,4817,6372,9046,2888,9774,179],function(){return n(n.s=48570)}),_N_E=n.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9738],{58095:function(e,t,n){var r=n(8817);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},21796:function(e){e.exports=function(e,t,n){for(var r=-1,l=null==e?0:e.length;++r<l;)if(n(t,e[r]))return!0;return!1}},95372:function(e){e.exports=function(e,t,n,r){for(var l=e.length,i=n+(r?1:-1);r?i--:++i<l;)if(t(e[i],i,e))return i;return -1}},8817:function(e,t,n){var r=n(95372),l=n(1129),i=n(58263);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,l,n)}},1129:function(e){e.exports=function(e){return e!=e}},92198:function(e,t,n){var r=n(52485),l=n(58095),i=n(21796),s=n(65581),o=n(47111),a=n(43735);e.exports=function(e,t,n){var d=-1,u=l,c=e.length,x=!0,h=[],f=h;if(n)x=!1,u=i;else if(c>=200){var g=t?null:o(e);if(g)return a(g);x=!1,u=s,f=new r}else f=t?[]:h;e:for(;++d<c;){var p=e[d],m=t?t(p):p;if(p=n||0!==p?p:0,x&&m==m){for(var j=f.length;j--;)if(f[j]===m)continue e;t&&f.push(m),h.push(p)}else u(f,m,n)||(f!==h&&f.push(m),h.push(p))}return h}},47111:function(e,t,n){var r=n(46151),l=n(50344),i=n(43735),s=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:l;e.exports=s},58263:function(e){e.exports=function(e,t,n){for(var r=n-1,l=e.length;++r<l;)if(e[r]===t)return r;return -1}},50344:function(e){e.exports=function(){}},83766:function(e,t,n){var r=n(92198);e.exports=function(e){return e&&e.length?r(e):[]}},53910:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/datamap",function(){return n(18839)}])},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(24246),l=n(98227),i=n(88038),s=n.n(i),o=n(86677);n(27378);var a=n(25980),d=n(90867),u=n(42478),c=n(77830),x=()=>{let e=(0,o.useRouter)();return(0,r.jsx)(l.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,r.jsxs)(l.xuv,{children:[(0,r.jsxs)(l.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,r.jsx)(l.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,r.jsx)(l.wpx,{onClick:()=>{e.push(c.AD)},children:"Configure"})]}),(0,r.jsxs)(l.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:i=!0,mainProps:c}=e,h=(0,a.hz)(),f=(0,o.useRouter)(),g="/privacy-requests"===f.pathname||"/datastore-connection"===f.pathname,p=!(h.flags.messagingConfiguration&&g),{data:m}=(0,u.JE)(void 0,{skip:p}),{data:j}=(0,d.PW)(void 0,{skip:p}),v=h.flags.messagingConfiguration&&(!m||!j)&&g;return(0,r.jsxs)(l.kCb,{"data-testid":n,direction:"column",h:"100vh",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.jsxs)(l.kCb,{as:"main",direction:"column",py:i?6:0,px:i?10:0,h:i?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[v?(0,r.jsx)(x,{}):null,t]})]})}},99811:function(e,t,n){"use strict";n.d(t,{m:function(){return l}});var r=n(27378);class l{updateTableInstance(e){this.tableInstance=e}constructor(e=null){this.tableInstance=e,this.updateTableInstance=this.updateTableInstance.bind(this)}}let i=r.createContext(new l);t.Z=i},18839:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return G}});var r=n(24246),l=n(27378),i=n(45938),s=n(77213),o=n(58754),a=n(98227),d=n(65218),u=n.n(d),c=n(16134),x=n(35258),h=n(92222),f=n(59003),g=n(30002),p=n(28079),m=n(49600),j=n(99811);let v=e=>{var t;let{column:n}=e,{tableInstance:r}=(0,l.useContext)(j.Z),i=l.useMemo(()=>Array.from(n.getFacetedUniqueValues().keys()),[n]),s=l.useMemo(()=>{let e={};return i.forEach(t=>{e[t]=!1}),e},[i]);return{filterValue:null!==(t=n.getFilterValue())&&void 0!==t?t:s,clearFilterOptions:()=>{let e={};i.forEach(t=>{e[t]=!1}),n.setFilterValue(e)},toggleFilterOption:(e,t)=>{var l;let i={...null!==(l=n.getFilterValue())&&void 0!==l?l:s,[e]:t};Object.values(i).every(e=>!e)?null==r||r.setColumnFilters(null==r?void 0:r.getState().columnFilters.filter(e=>e.id!==n.id)):n.setFilterValue(i)},options:i,header:n.columnDef.header}};var y=n(57072);let b=(0,h.Cl)(),w={multifield:(e,t,n)=>n[e.original[t]]},C=()=>{let e=(0,c.T)(),{updateTableInstance:t}=(0,l.useContext)(j.Z),n=(0,c.C)(m.eo),{data:r,isLoading:i}=(0,m.Ex)({organizationName:"default_organization"});(0,y.MO)(),(0,p.fd)(),(0,g.te)();let s=(0,l.useRef)(!1);(0,l.useEffect)(()=>{if(r){let{columns:t,rows:n}=r;e((0,m.dd)(t)),s.current||(s.current=!0,0===n.length?e((0,m.ym)(!0)):e((0,m.ym)(!1)))}},[r,e]);let o=(0,l.useMemo)(()=>r?r.rows:[],[r]),a=(0,l.useMemo)(()=>(n||[]).map(e=>{let{text:t,value:n}=e;return b.accessor(e=>e[n],{id:n,header:t,cell:e=>{let{getValue:t}=e,n=t();return Array.isArray(n)?n.join(", "):n},filterFn:w.multifield})}),[n]),d=(0,f.b7)({columns:a,data:o,filterFns:w,getCoreRowModel:(0,h.sC)(),getFilteredRowModel:(0,h.vL)(),getFacetedRowModel:(0,h.o6)(),getFacetedUniqueValues:(0,h.JG)(),manualPagination:!0,columnResizeMode:"onChange"});return(0,l.useEffect)(()=>t(d),[d,t]),{...d,isLoading:i}};var k=n(83766),F=n.n(k),S=n(25980),I=n(46238),M=n(47935),O=n(22968);let _=e=>{var t,n,l;let{option:i,columnId:s,filterValue:o,toggleFilterOption:d}=e,u=(0,c.C)(y.L5),x=s===O.Ux&&null!==(n=null===(t=u.get(i))||void 0===t?void 0:t.name)&&void 0!==n?n:i;return(0,r.jsx)(a.XZJ,{value:i,width:"193px",height:"20px",mb:"25px",isChecked:null!==(l=o[i])&&void 0!==l&&l,onChange:e=>{let{target:t}=e;d(i,t.checked)},_focusWithin:{bg:"gray.100"},colorScheme:"complimentary",children:(0,r.jsx)(a.xvT,{fontSize:"sm",lineHeight:5,height:"20px",width:"170px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",children:x})},i)};var T=e=>{let{column:t}=e,{filterValue:n,toggleFilterOption:i,options:s}=v({column:t}),[o,d]=(0,l.useState)(!1),u=o?s:s.slice(0,15),c=s.length>15;return(0,r.jsx)(a.UQy,{width:"100%",allowToggle:!0,children:(0,r.jsxs)(a.Qdk,{border:"0px",children:[(0,r.jsx)(a.X6q,{height:"56px",children:(0,r.jsxs)(a.KFZ,{height:"100%",children:[(0,r.jsx)(a.xuv,{flex:"1",alignItems:"center",justifyContent:"center",textAlign:"left",children:t.columnDef.header}),(0,r.jsx)(a.XEm,{})]})}),(0,r.jsxs)(a.Hk3,{children:[(0,r.jsx)(a.MIq,{columns:3,children:u.map(e=>(0,r.jsx)(_,{columnId:t.id,option:e,filterValue:n,toggleFilterOption:i},e))}),!o&&c?(0,r.jsx)(a.wpx,{type:"text",onClick:()=>{d(!0)},children:"View more"}):null,o&&c?(0,r.jsx)(a.wpx,{type:"text",onClick:()=>{d(!1)},children:"View less"}):null]})]})},t.id)};let R=e=>{let{heading:t,children:n}=e;return(0,r.jsxs)(a.xuv,{padding:"24px 8px 8px 24px",children:[(0,r.jsx)(a.X6q,{size:"md",lineHeight:6,fontWeight:"bold",mb:2,children:t}),n]})};var E=e=>{let t,{isOpen:n,onClose:i}=e,{tableInstance:s}=(0,l.useContext)(j.Z),o=null==s?void 0:s.getHeaderGroups(),d=(e,t)=>e.filter(e=>e.id===t).map(e=>(0,r.jsx)(T,{column:e.column},t)),u=(0,l.useMemo)(()=>(null==o?void 0:o[0].headers)||[],[o]);return(0,r.jsxs)(a.u_l,{isOpen:n,onClose:i,isCentered:!0,size:"2xl",children:[(0,r.jsx)(a.ZAr,{}),(0,r.jsxs)(a.hzk,{children:[(0,r.jsx)(a.xBx,{children:"Filters"}),(0,r.jsx)(a.olH,{}),(0,r.jsx)(a.izJ,{}),(0,r.jsx)(a.fef,{maxH:"85vh",padding:"0px",overflowX:"auto",children:(t=[O.vy,O.Ux,O.OL],u.some(e=>t.indexOf(e.id)>-1))?(0,r.jsxs)(R,{heading:"Privacy attributes",children:[d(u,O.vy),d(u,O.Ux),d(u,O.OL)]}):null}),(0,r.jsx)(a.mzw,{children:(0,r.jsxs)(a.xuv,{display:"flex",justifyContent:"space-between",width:"100%",children:[(0,r.jsx)(a.wpx,{onClick:()=>{null==s||s.resetColumnFilters()},className:"mr-3 grow",children:"Reset Filters"}),(0,r.jsx)(a.wpx,{onClick:i,type:"primary",className:"grow",children:"Done"})]})})]})]})};let N=()=>{let{isOpen:e,onOpen:t,onClose:n}=(0,a.qY0)();return{isFilterModalOpen:e,onFilterModalOpen:t,onFilterModalClose:n}};var Z=()=>{let{isFilterModalOpen:e,onFilterModalOpen:t,onFilterModalClose:n}=N(),{tableInstance:i}=(0,l.useContext)(j.Z),{systemsCount:s,dictionaryService:o}=(0,S.hz)(),d=null==i?void 0:i.getRowModel(),u=(0,l.useMemo)(()=>{let e=(null==d?void 0:d.rows)||[];return F()(null==e?void 0:e.map(e=>e.original["system.fides_key"]))},[d]);if(!i)return null;let c=u.length,x=i.getState().columnFilters.length;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(a.kCb,{justifyContent:"flex-end",flexDirection:"row",alignItems:"center",flexWrap:"wrap",rowGap:4,columnGap:4,children:[(0,r.jsx)(a.kCb,{flexGrow:1,children:(0,r.jsx)(M.HO,{globalFilter:i.getState().globalFilter,setGlobalFilter:i.setGlobalFilter})}),(0,r.jsxs)(a.kCb,{children:[s>0?(0,r.jsxs)(a.kCb,{alignItems:"center",borderRadius:"md",gap:1,marginRight:4,children:[(0,r.jsxs)(a.xvT,{fontSize:"xs",children:[c," of ",s," systems displayed"]}),o?(0,r.jsx)(I.b,{label:"Note that Global Vendor List (GVL) and Additional Consent (AC) systems are not currently included in these reports"}):null]}):null,(0,r.jsxs)(a.wpx,{"aria-label":"Open Filter Settings",onClick:t,children:["Filter",x>0?(0,r.jsx)(a.j8w,{className:"ml-2",children:x}):null]})]})]}),(0,r.jsx)(E,{isOpen:e,onClose:n})]})},z=n(38943),P=n(77830),V=()=>(0,r.jsx)(a.M5Y,{flex:1,"data-testid":"get-started-modal",backgroundColor:"gray.100",children:(0,r.jsx)(a.xuv,{backgroundColor:"white",p:10,borderRadius:"6px",boxShadow:"0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06)",maxWidth:{base:"80%",lg:"60%",xl:"50%"},maxHeight:"90%",textAlign:"center",children:(0,r.jsxs)(a.Kqy,{spacing:4,children:[(0,r.jsx)(a.xvT,{color:"gray.700",fontWeight:"600",children:"Privacy engineering can seem like an endlessly complex confluence of legal and data engineering terminology—fear not—Fides is here to simplify this."}),(0,r.jsx)(a.xvT,{children:"Start by scanning your infrastructure. The scanner will connect to your infrastructure to automatically scan and create a list of all systems available and then classify each system containing PII."}),(0,r.jsx)(a.xvT,{children:"Let's get started!"}),(0,r.jsx)(a.xuv,{children:(0,r.jsx)(a.wpx,{href:P.xo,role:"link",type:"primary",className:"w-fit","data-testid":"add-systems-btn",children:"Add Systems"})})]})})});let A=u()(()=>Promise.all([n.e(105),n.e(1096),n.e(454),n.e(1533),n.e(9911),n.e(4259),n.e(1975)]).then(n.bind(n,34849)),{loadableGenerated:{webpack:()=>[34849]},ssr:!1,loading:()=>(0,r.jsx)(a.M5Y,{width:"100%",flex:"1",children:(0,r.jsx)(a.$jN,{})})}),W=()=>{let e=(0,c.C)(z.Xt),{attemptAction:t}=(0,i.oI)(),[n,r]=(0,l.useState)(),s=(0,l.useCallback)(e=>{t().then(t=>{t&&r(e)})},[t,r]),o=(0,l.useCallback)(()=>{t().then(e=>{e&&n&&r(void 0)})},[t,n]);return{isGettingStarted:e,selectedSystemId:n,setSelectedSystemId:s,resetSelectedSystemId:o}};var q=()=>{let{isGettingStarted:e,setSelectedSystemId:t,selectedSystemId:n,resetSelectedSystemId:l}=W(),{isLoading:i}=C();return i?(0,r.jsx)(a.M5Y,{width:"100%",flex:"1",children:(0,r.jsx)(a.$jN,{})}):e?(0,r.jsx)(V,{}):(0,r.jsxs)(a.kCb,{direction:"column",height:"100%",children:[(0,r.jsx)(a.xuv,{marginBottom:3,marginRight:10,children:(0,r.jsx)(Z,{})}),(0,r.jsxs)(a.kCb,{position:"relative",flex:1,direction:"row",overflow:"auto",borderWidth:"1px",borderStyle:"solid",borderColor:"gray.200",children:[(0,r.jsx)(a.xuv,{flex:1,minWidth:"50%",maxWidth:"100%",children:(0,r.jsx)(A,{setSelectedSystemId:t,selectedSystemId:n})}),(0,r.jsx)(x.Z,{selectedSystemId:n,resetSelectedSystemId:l})]})]})},G=()=>{let e=(0,l.useMemo)(()=>new j.m,[]);return(0,r.jsxs)(s.Z,{title:"Data lineage",mainProps:{padding:"24px 0 0 40px"},children:[(0,r.jsx)(o.Z,{style:{paddingLeft:0},heading:"Data lineage"}),(0,r.jsxs)(j.Z.Provider,{value:e,children:[(0,r.jsx)(q,{}),(0,r.jsx)(i.eB,{})]})]})}}},function(e){e.O(0,[431,7245,1840,7218,5258,2888,9774,179],function(){return e(e.s=53910)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2096],{16383:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]/[collectionName]/[...subfieldNames]",function(){return t(26052)}])},26052:function(e,a,t){"use strict";t.r(a);var l=t(24246),s=t(92222),i=t(59003),o=t(98227),n=t(30454),d=t.n(n),r=t(47215),c=t.n(r),u=t(86677),m=t(27378),f=t(77213),h=t(77830),g=t(58754),p=t(47935),v=t(66112),x=t(69828),b=t(41966),j=t(76252),w=t(69435);let C=(0,s.Cl)(),R=()=>(0,l.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,l.jsx)(o.gCW,{children:(0,l.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No fields found."})})});a.default=()=>{let e=(0,u.useRouter)(),[a]=(0,b.TG)(),t=decodeURIComponent(e.query.datasetId),n=decodeURIComponent(e.query.collectionName),r=e.query.subfieldNames.map(decodeURIComponent),{isLoading:_,data:y}=(0,b.oM)(t),N=(0,m.useMemo)(()=>(null==y?void 0:y.collections)||[],[y]).find(e=>e.name===n),k=(0,m.useMemo)(()=>(null==N?void 0:N.fields)||[],[N]),M=(0,m.useMemo)(()=>{let e=k;return r.forEach(a=>{let t=e.find(e=>e.name===a);e=(null==t?void 0:t.fields)||[]}),e},[k,r]),[I,T]=(0,m.useState)(),E=(0,m.useCallback)(e=>{let{dataCategory:t,field:l}=e,s=l.data_categories||[],i=(0,w.Fk)({dataset:y,collectionName:n,subfields:[...r,l.name]}),o=d()(y);c()(o,"".concat(i,".data_categories"),[...s,t]),a(o)},[y,a,n,r]),q=(0,m.useCallback)(e=>{let{dataCategory:t,field:l}=e,s=l.data_categories||[],i=(0,w.Fk)({dataset:y,collectionName:n,subfields:[...r,null==l?void 0:l.name]}),o=d()(y);c()(o,"".concat(i,".data_categories"),s.filter(e=>e!==t)),a(o)},[y,a,n,r]),z=(0,m.useCallback)(a=>{let l=[...r.map(encodeURIComponent),a.name];e.push({pathname:h.y1,query:{datasetId:t,collectionName:n,subfieldNames:l}})},[t,e,n,r]),F=(0,m.useMemo)(()=>[C.accessor(e=>e.name,{id:"name",cell:e=>{var a;let t=e.row.original.fields&&(null===(a=e.row.original.fields)||void 0===a?void 0:a.length)>0;return(0,l.jsx)(p.G3,{fontWeight:t?"semibold":"normal",value:e.getValue()})},header:e=>(0,l.jsx)(p.Rr,{value:"Field Name",...e}),size:180}),C.accessor(e=>{var a;return null===(a=e.fides_meta)||void 0===a?void 0:a.data_type},{id:"type",cell:e=>e.getValue()?(0,l.jsx)(p.A4,{value:e.getValue()}):(0,l.jsx)(p.G3,{value:void 0}),header:e=>(0,l.jsx)(p.Rr,{value:"Type",...e}),size:80}),C.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(p.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(p.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),C.accessor(e=>e.data_categories,{id:"data_categories",cell:e=>{var a;let t=e.row.original;return!(e.row.original.fields&&(null===(a=e.row.original.fields)||void 0===a?void 0:a.length)>0)&&(0,l.jsx)(v.Z,{selectedTaxonomies:e.getValue()||[],onAddTaxonomy:e=>E({dataCategory:e,field:t}),onRemoveTaxonomy:e=>q({dataCategory:e,field:t})})},header:e=>(0,l.jsx)(p.Rr,{value:"Data categories",...e}),size:300,meta:{disableRowClick:!0}}),C.display({id:"actions",header:"Actions",cell:e=>{let{row:a}=e,t=a.original;return(0,l.jsx)(o.Ugi,{spacing:0,"data-testid":"field-".concat(t.name),children:(0,l.jsx)(o.wpx,{size:"small",icon:(0,l.jsx)(o.dY8,{}),onClick:()=>{W(t),G(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[E,q]),S=(0,m.useMemo)(()=>I?M.filter(e=>e.name.toLowerCase().includes(I.toLowerCase())):M,[M,I]),U=(0,i.b7)({getCoreRowModel:(0,s.sC)(),getFilteredRowModel:(0,s.vL)(),getSortedRowModel:(0,s.tj)(),columns:F,data:S,columnResizeMode:"onChange"}),[A,G]=(0,m.useState)(!1),[V,W]=(0,m.useState)(),Z=(0,m.useMemo)(()=>{let e=[{title:"All datasets",href:h.$m},{title:t,href:{pathname:h.o5,query:{datasetId:t}},icon:x.Y[1]},{title:n,icon:x.Y[2],href:{pathname:h.RF,query:{datasetId:t,collectionName:n}}}];return r.forEach((a,l)=>{e.push({title:a,href:l<r.length-1?{pathname:h.y1,query:{datasetId:t,collectionName:n,subfieldNames:r.slice(0,l+1).map(encodeURIComponent)}}:void 0,icon:x.Y[3]})}),e},[t,n,r]);return(0,l.jsxs)(f.Z,{title:"Dataset - ".concat(t),children:[(0,l.jsx)(g.Z,{heading:"Datasets",breadcrumbItems:Z}),_?(0,l.jsx)(p.I4,{rowHeight:36,numRows:15}):(0,l.jsxs)(o.xuv,{"data-testid":"fields-table",children:[(0,l.jsx)(p.Q$,{children:(0,l.jsx)(p.HO,{globalFilter:I,setGlobalFilter:T,placeholder:"Search",testid:"fields-search"})}),(0,l.jsx)(p.ZK,{tableInstance:U,emptyTableNotice:(0,l.jsx)(R,{}),onRowClick:z,getRowIsClickable:e=>{var a;return!!(e.fields&&(null===(a=e.fields)||void 0===a?void 0:a.length)>0)}}),(0,l.jsx)(j.Z,{isOpen:A,onClose:()=>{G(!1),W(void 0)},field:V,dataset:y,collectionName:n,subfields:r})]})]})}}},function(e){e.O(0,[454,5487,549,2888,9774,179],function(){return e(e.s=16383)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6556],{59972:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]/[collectionName]",function(){return a(47355)}])},47355:function(e,t,a){"use strict";a.r(t);var l=a(24246),i=a(92222),o=a(59003),s=a(98227),n=a(86677),d=a(27378),r=a(77213),c=a(77830),u=a(58754),m=a(47935),g=a(66112),f=a(69828),x=a(41966),h=a(76252),v=a(69435);let p=(0,i.Cl)(),j=()=>(0,l.jsx)(s.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,l.jsx)(s.gCW,{children:(0,l.jsx)(s.xvT,{fontSize:"md",fontWeight:"600",children:"No fields found."})})});t.default=()=>{let e=(0,n.useRouter)(),[t]=(0,x.TG)(),a=decodeURIComponent(e.query.datasetId),w=decodeURIComponent(e.query.collectionName),{isLoading:C,data:_}=(0,x.oM)(a),R=(0,d.useMemo)(()=>(null==_?void 0:_.collections)||[],[_]),b=R.find(e=>e.name===w),N=(0,d.useMemo)(()=>(null==b?void 0:b.fields)||[],[b]),[k,y]=(0,d.useState)(),I=(0,d.useCallback)(e=>{let{dataCategory:a,field:l}=e,i=l.data_categories||[],o={...l,data_categories:[...i,a]},s=R.indexOf(b),n=b.fields.indexOf(l);t((0,v._n)(_,o,s,n))},[b,R,_,t]),M=(0,d.useCallback)(e=>{var a;let{dataCategory:l,field:i}=e,o={...i,data_categories:null===(a=i.data_categories)||void 0===a?void 0:a.filter(e=>e!==l)},s=R.indexOf(b),n=b.fields.indexOf(i);t((0,v._n)(_,o,s,n))},[b,R,_,t]),T=(0,d.useCallback)(t=>{e.push({pathname:c.y1,query:{datasetId:encodeURIComponent(a),collectionName:encodeURIComponent(w),subfieldNames:encodeURIComponent(t.name)}})},[a,e,w]),O=(0,d.useMemo)(()=>[p.accessor(e=>e.name,{id:"name",cell:e=>{var t;let a=e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0;return(0,l.jsx)(m.G3,{fontWeight:a?"semibold":"normal",value:e.getValue()})},header:e=>(0,l.jsx)(m.Rr,{value:"Field Name",...e}),size:180}),p.accessor(e=>{var t;return null===(t=e.fides_meta)||void 0===t?void 0:t.data_type},{id:"type",cell:e=>e.getValue()?(0,l.jsx)(m.A4,{value:e.getValue()}):(0,l.jsx)(m.G3,{value:void 0}),header:e=>(0,l.jsx)(m.Rr,{value:"Type",...e}),size:80}),p.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(m.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(m.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),p.accessor(e=>e.data_categories,{id:"data_categories",cell:e=>{var t;let a=e.row.original;return!(e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0)&&(0,l.jsx)(g.Z,{selectedTaxonomies:e.getValue()||[],onAddTaxonomy:e=>I({dataCategory:e,field:a}),onRemoveTaxonomy:e=>M({dataCategory:e,field:a})})},header:e=>(0,l.jsx)(m.Rr,{value:"Data categories",...e}),size:300,meta:{disableRowClick:!0}}),p.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,a=t.original;return(0,l.jsx)(s.Ugi,{spacing:0,"data-testid":"field-".concat(a.name),children:(0,l.jsx)(s.wpx,{size:"small",icon:(0,l.jsx)(s.dY8,{}),onClick:()=>{G(a),U(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[I,M]),z=(0,d.useMemo)(()=>k?N.filter(e=>e.name.toLowerCase().includes(k.toLowerCase())):N,[N,k]),S=(0,o.b7)({getCoreRowModel:(0,i.sC)(),getFilteredRowModel:(0,i.vL)(),getSortedRowModel:(0,i.tj)(),columns:O,data:z,columnResizeMode:"onChange"}),[E,U]=(0,d.useState)(!1),[A,G]=(0,d.useState)(),V=(0,d.useMemo)(()=>[{title:"All datasets",href:c.$m},{title:a,href:{pathname:c.o5,query:{datasetId:a}},icon:f.Y[1]},{title:w,icon:f.Y[2]}],[a,w]);return(0,l.jsxs)(r.Z,{title:"Dataset - ".concat(a),children:[(0,l.jsx)(u.Z,{heading:"Datasets",breadcrumbItems:V}),C?(0,l.jsx)(m.I4,{rowHeight:36,numRows:15}):(0,l.jsxs)(s.xuv,{"data-testid":"fields-table",children:[(0,l.jsx)(m.Q$,{children:(0,l.jsx)(m.HO,{globalFilter:k,setGlobalFilter:y,placeholder:"Search",testid:"fields-search"})}),(0,l.jsx)(m.ZK,{tableInstance:S,emptyTableNotice:(0,l.jsx)(j,{}),onRowClick:T,getRowIsClickable:e=>{var t;return!!(e.fields&&(null===(t=e.fields)||void 0===t?void 0:t.length)>0)}}),(0,l.jsx)(h.Z,{isOpen:E,onClose:()=>{U(!1),G(void 0)},field:A,dataset:_,collectionName:w})]})]})}}},function(e){e.O(0,[454,5487,549,2888,9774,179],function(){return e(e.s=59972)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9340],{33187:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]",function(){return o(1016)}])},1016:function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return y}});var l=o(24246),n=o(92222),s=o(59003),i=o(98227),a=o(86677),c=o(27378),d=o(77213),r=o(77830),u=o(58754),m=o(47935),h=o(69828),x=o(41966),p=o(46628),j=o(79806),f=o(20386),C=o(63927),g=o(69435),w=e=>{let{dataset:t,collection:o,isOpen:n,onClose:s}=e,a=(0,c.useMemo)(()=>null==t?void 0:t.collections.indexOf(o),[]),[d]=(0,f.TG)(),r=(0,i.pmc)(),{isOpen:u,onOpen:m,onClose:h}=(0,i.qY0)(),x=async e=>{let l={...o,...e},n=(0,g.jC)(t,l,a);try{await d(n),r((0,p.t5)("Successfully modified collection"))}catch(e){r((0,p.Vo)(e))}s()},w=async()=>{if(t&&void 0!==a){let e=(0,g.qe)(t,a);try{await d(e),r((0,p.t5)("Successfully deleted collection"))}catch(e){r((0,p.Vo)(e))}s(),h()}};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(j.ZP,{isOpen:n,onClose:s,description:"Collections are an array of objects that describe the Dataset's collections. Provide additional context to this collection by filling out the fields below.",header:(0,l.jsx)(j.zR,{title:"Collection Name: ".concat(null==o?void 0:o.name)}),footer:(0,l.jsx)(j.Gn,{onClose:s,onDelete:m,formId:C.e}),children:(0,l.jsx)(C.Z,{values:o,onSubmit:x,dataType:"collection",showDataCategories:!1})}),(0,l.jsx)(i.cVQ,{isOpen:u,onClose:h,onConfirm:w,title:"Delete Collection",message:(0,l.jsxs)(i.xvT,{children:["You are about to permanently delete the collection named"," ",(0,l.jsx)(i.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==o?void 0:o.name})," ","from this dataset. Are you sure you would like to continue?"]})})]})};let b=(0,n.Cl)(),v=()=>(0,l.jsx)(i.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,l.jsx)(i.gCW,{children:(0,l.jsx)(i.xvT,{fontSize:"md",fontWeight:"600",children:"No collections found."})})});var y=()=>{let e=(0,a.useRouter)(),t=decodeURIComponent(e.query.datasetId),{isLoading:o,data:p}=(0,x.oM)(t),j=(0,c.useMemo)(()=>(null==p?void 0:p.collections)||[],[p]),[f,C]=(0,c.useState)(!1),[g,y]=(0,c.useState)(),[R,_]=(0,c.useState)(),M=(0,c.useMemo)(()=>[b.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(m.G3,{value:e.getValue(),fontWeight:"semibold"}),header:e=>(0,l.jsx)(m.Rr,{value:"Collection Name",...e}),size:180}),b.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(m.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(m.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),b.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,o=t.original;return(0,l.jsx)(i.Ugi,{spacing:0,"data-testid":"collection-".concat(o.name),children:(0,l.jsx)(i.wpx,{size:"small",icon:(0,l.jsx)(i.dY8,{}),onClick:()=>{y(o),C(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[]),I=(0,c.useMemo)(()=>R?j.filter(e=>e.name.toLowerCase().includes(R.toLowerCase())):j,[j,R]),N=(0,s.b7)({getCoreRowModel:(0,n.sC)(),getFilteredRowModel:(0,n.vL)(),getSortedRowModel:(0,n.tj)(),columns:M,data:I,columnResizeMode:"onChange"}),S=(0,c.useMemo)(()=>[{title:"All datasets",href:r.$m},{title:t,icon:h.Y[1]}],[t]);return(0,l.jsxs)(d.Z,{title:"Dataset - ".concat(t),children:[(0,l.jsx)(u.Z,{heading:"Datasets",breadcrumbItems:S}),o?(0,l.jsx)(m.I4,{rowHeight:36,numRows:15}):(0,l.jsxs)(i.xuv,{"data-testid":"collections-table",children:[(0,l.jsx)(m.Q$,{children:(0,l.jsx)(m.HO,{globalFilter:R,setGlobalFilter:_,placeholder:"Search",testid:"collections-search"})}),(0,l.jsx)(m.ZK,{tableInstance:N,emptyTableNotice:(0,l.jsx)(v,{}),onRowClick:o=>{e.push({pathname:r.RF,query:{datasetId:encodeURIComponent(t),collectionName:encodeURIComponent(o.name)}})}})]}),p&&g&&(0,l.jsx)(w,{dataset:p,collection:g,isOpen:f,onClose:()=>C(!1)})]})}}},function(e){e.O(0,[5487,2888,9774,179],function(){return e(e.s=33187)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8538],{73846:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/new",function(){return a(17294)}])},77213:function(e,t,a){"use strict";a.d(t,{Z:function(){return x}});var s=a(24246),r=a(98227),n=a(88038),i=a.n(n),o=a(86677);a(27378);var l=a(25980),d=a(90867),c=a(42478),u=a(77830),h=()=>{let e=(0,o.useRouter)();return(0,s.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,s.jsxs)(r.xuv,{children:[(0,s.jsxs)(r.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,s.jsx)(r.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,s.jsx)(r.wpx,{onClick:()=>{e.push(u.AD)},children:"Configure"})]}),(0,s.jsxs)(r.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},x=e=>{let{children:t,title:a,padded:n=!0,mainProps:u}=e,x=(0,l.hz)(),m=(0,o.useRouter)(),f="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,g=!(x.flags.messagingConfiguration&&f),{data:y}=(0,c.JE)(void 0,{skip:g}),{data:p}=(0,d.PW)(void 0,{skip:g}),j=x.flags.messagingConfiguration&&(!y||!p)&&f;return(0,s.jsxs)(r.kCb,{"data-testid":a,direction:"column",h:"100vh",children:[(0,s.jsxs)(i(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",a]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsxs)(r.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",...u,children:[j?(0,s.jsx)(h,{}):null,t]})]})}},39715:function(e,t,a){"use strict";var s=a(24246),r=a(98227);a(27378),t.Z=e=>{let{isEmptyState:t,yamlError:a}=e;return(0,s.jsx)(r.Rg9,{in:!0,children:(0,s.jsxs)(r.xuv,{w:"fit-content",bg:"white",p:3,borderRadius:3,children:[(0,s.jsxs)(r.Ugi,{children:[(0,s.jsx)(r.X6q,{as:"h5",color:"gray.700",size:"xs",children:"YAML"}),(0,s.jsx)(r.Vp9,{colorScheme:"red",size:"sm",variant:"solid",children:"Error"})]}),(0,s.jsx)(r.xuv,{bg:"red.50",border:"1px solid",borderColor:"red.300",color:"red.300",mt:"16px",borderRadius:"6px",children:(0,s.jsxs)(r.Ugi,{alignItems:"flex-start",margin:["14px","17px","14px","17px"],children:[(0,s.jsx)(r.f9v,{}),t&&(0,s.jsxs)(r.xuv,{children:[(0,s.jsx)(r.X6q,{as:"h5",color:"red.500",fontWeight:"semibold",size:"xs",children:"Error message:"}),(0,s.jsx)(r.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:"Yaml system is required"})]}),a&&(0,s.jsxs)(r.xuv,{children:[(0,s.jsx)(r.X6q,{as:"h5",color:"red.500",fontWeight:"semibold",size:"xs",children:"Error message:"}),(0,s.jsx)(r.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:a.message}),(0,s.jsx)(r.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:a.reason}),(0,s.jsxs)(r.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:["Ln ",(0,s.jsx)("b",{children:a.mark.line}),", Col"," ",(0,s.jsx)("b",{children:a.mark.column}),", Pos"," ",(0,s.jsx)("b",{children:a.mark.position})]})]})]})})]})})}},41207:function(e,t,a){"use strict";a.d(t,{F:function(){return i},M:function(){return n}});var s=a(76649),r=a(65218);let n=a.n(r)()(()=>a.e(7088).then(a.bind(a,57088)).then(e=>e.default),{loadableGenerated:{webpack:()=>[57088]},ssr:!1}),i=e=>(0,s.Ln)({name:"string"},e)&&"YAMLException"===e.name},17294:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return T}});var s=a(24246),r=a(98227),n=a(27378),i=a(77213),o=a(77830),l=a(58754),d=a(34090),c=a(86677),u=a(16125),h=a(55484),x=a(25980),m=a(40324),f=a(812),g=a(58452),y=a(46628),p=a(83265),j=a(32885),v=a(65735),b=a(20386);let w=e=>!("system_type"in e),C={url:"",classify:!1,classifyConfirmed:!1},_=h.Ry().shape({url:h.Z_().required().label("Database URL"),classify:h.O7(),classifyConfirmed:h.O7().when(["url","classify"],{is:(e,t)=>e&&t,then:()=>h.O7().equals([!0])})});var k=()=>{let[e,{isLoading:t}]=(0,b.pR)(),[a,{isLoading:n}]=(0,b.IR)(),[i,{isLoading:l}]=(0,j.Du)(),h=t||n||l,k=(0,r.pmc)(),S=(0,c.useRouter)(),A=(0,x.hz)(),z=(0,u.I0)(),E=async t=>{var a;let s=await e({organization_key:p.Av,generate:{config:{connection_string:t.url},target:v.GC.DB,type:v.j.DATASETS}});if((0,f.D4)(s))return{error:(0,f.e$)(s.error)};let r=(null!==(a=s.data.generate_results)&&void 0!==a?a:[]).filter(w);return r&&r.length>0?{datasets:r}:{error:"Unable to generate a dataset with this connection."}},R=async e=>{let t=await a(e);return(0,f.D4)(t)?{error:(0,f.e$)(t.error)}:{dataset:t.data}},T=async e=>{let{values:t,datasets:a}=e,s=await i({dataset_schemas:a.map(e=>{let{name:t,fides_key:a}=e;return{fides_key:a,name:t}}),schema_config:{organization_key:p.Av,generate:{config:{connection_string:t.url},target:v.GC.DB,type:v.j.DATASETS}}});return(0,f.D4)(s)?{error:(0,f.e$)(s.error)}:{classifyInstances:s.data.classify_instances}},D=async e=>{var t;let a=await E(e);if("error"in a){k((0,y.Vo)(a.error));return}let s=await Promise.all(a.datasets.map(e=>R(e))),r=null!==(t=s.find(e=>"error"in e))&&void 0!==t?t:s[0];if("error"in r){k((0,y.Vo)(r.error));return}if(!e.classify){k((0,y.t5)("Generated ".concat(r.dataset.name," dataset"))),S.push({pathname:o.o5,query:{datasetId:r.dataset.fides_key}});return}let n=await T({values:e,datasets:a.datasets});if("error"in n){k((0,y.Vo)(n.error));return}k((0,y.t5)("Generate and classify are now in progress")),z((0,b.Zl)(r.dataset.fides_key)),S.push("/dataset")};return(0,s.jsx)(d.J9,{initialValues:{...C,classify:A.plus},validationSchema:_,onSubmit:D,validateOnChange:!1,validateOnBlur:!1,children:e=>{let{isSubmitting:t,errors:a,values:n,submitForm:i,resetForm:o,setFieldValue:l}=e;return(0,s.jsxs)(d.l0,{children:[(0,s.jsxs)(r.gCW,{spacing:8,align:"left",children:[(0,s.jsx)(r.xvT,{size:"sm",color:"gray.700",children:"Connect to a database using the connection URL. You may have received this URL from a colleague or your Ethyca developer support engineer."}),(0,s.jsx)(r.xuv,{children:(0,s.jsx)(m.j0,{name:"url",label:"Database URL"})}),A.plus?(0,s.jsx)(m.w8,{name:"classify",label:"Classify dataset",tooltip:"Use Fides Classify to suggest labels based on your data."}):null,(0,s.jsx)(r.xuv,{children:(0,s.jsx)(r.wpx,{type:"primary",htmlType:"submit",loading:t||h,disabled:t||h,"data-testid":"create-dataset-btn",children:"Generate dataset"})})]}),(0,s.jsx)(g.Z,{title:"Generate and classify this dataset",message:"You have chosen to generate and classify this dataset. This process may take several minutes. In the meantime you can continue using Fides. You will receive a notification when the process is complete.",isOpen:void 0!==a.classifyConfirmed,onClose:()=>{o({values:{...n,classifyConfirmed:!1}})},onConfirm:()=>{l("classifyConfirmed",!0),setTimeout(()=>{i()},0)}})]})}})},S=a(66527),A=a(17245),z=a(41207),E=a(39715),R=()=>{let[e]=(0,b.IR)(),[t,a]=(0,n.useState)(!0),[i,l]=(0,n.useState)(!1),[d,u]=(0,n.useState)(!1),h=(0,n.useRef)(null),x=(0,c.useRouter)(),m=(0,r.pmc)(),{errorAlert:g}=(0,A.VY)(),[p,j]=(0,n.useState)(void 0),v=e=>{S.ZP.load(e,{json:!0}),j(void 0)},w=async t=>{let a;return"object"==typeof t&&null!==t&&"dataset"in t&&Array.isArray(t.dataset)?[a]=t.dataset:Array.isArray(t)?[a]=t:a=t,e(a)},C=e=>{m((0,y.t5)("Successfully loaded new dataset YAML")),(0,b.Zl)(e.fides_key),x.push({pathname:o.o5,query:{datasetId:e.fides_key}})},_=async()=>{l(!0);let e=h.current.getValue(),t=S.ZP.load(e,{json:!0}),a=await w(t);(0,f.D4)(a)?m((0,y.Vo)((0,f.e$)(a.error))):"data"in a&&C(a.data),l(!1)};return(0,s.jsxs)(r.kCb,{gap:"97px",children:[(0,s.jsxs)(r.xuv,{w:"75%",children:[(0,s.jsx)(r.xuv,{color:"gray.700",fontSize:"14px",mb:4,children:"Get started creating your first dataset by pasting your dataset yaml below! You may have received this yaml from a colleague or your Ethyca developer support engineer."}),(0,s.jsxs)(r.gCW,{align:"stretch",children:[(0,s.jsx)(r.izJ,{color:"gray.100"}),(0,s.jsx)(z.M,{defaultLanguage:"yaml",height:"calc(100vh - 515px)",onChange:e=>{try{u(!0),v(e),a(!!(!e||""===e.trim()))}catch(e){(0,z.F)(e)?j(e):g("Could not parse the supplied YAML")}},onMount:e=>{h.current=e,h.current.focus()},options:{fontFamily:"Menlo",fontSize:13,minimap:{enabled:!0}},theme:"light"}),(0,s.jsx)(r.izJ,{color:"gray.100"}),(0,s.jsx)(r.wpx,{type:"primary",disabled:t||!!p||i,loading:i,onClick:_,htmlType:"submit",className:"mt-6 w-fit",children:"Create dataset"})]})]}),(0,s.jsx)(r.xuv,{children:d&&(t||p)&&(0,s.jsx)(E.Z,{isEmptyState:t,yamlError:p})})]})},T=()=>{let[e,t]=(0,n.useState)(null);return(0,s.jsxs)(i.Z,{title:"Create New Dataset",children:[(0,s.jsx)(l.Z,{heading:"Datasets",breadcrumbItems:[{title:"All datasets",href:o.$m},{title:"Create new"}]}),(0,s.jsxs)(r.Kqy,{spacing:8,children:[(0,s.jsxs)(r.xuv,{children:[(0,s.jsx)(r.wpx,{onClick:()=>t("yaml"),"data-testid":"upload-yaml-btn",className:"mr-2",children:"Upload a Dataset YAML"}),(0,s.jsx)(r.wpx,{onClick:()=>t("database"),ghost:"database"===e,className:"mr-2","data-testid":"connect-db-btn",children:"Connect to a database"})]}),"database"===e&&(0,s.jsx)(r.xuv,{w:{base:"100%",lg:"50%"},children:(0,s.jsx)(k,{})}),"yaml"===e&&(0,s.jsx)(r.xuv,{w:{base:"100%"},children:(0,s.jsx)(R,{})})]})]})}}},function(e){e.O(0,[431,6527,7245,1840,2888,9774,179],function(){return e(e.s=73846)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8473],{64902:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset",function(){return s(91949)}])},79806:function(e,t,s){"use strict";s.d(t,{Gn:function(){return l},zR:function(){return r}});var i=s(24246),n=s(98227),a=s(56358);let r=e=>{let{title:t}=e;return(0,i.jsx)(n.OXI,{py:0,display:"flex",alignItems:"flex-start",children:(0,i.jsx)(n.xvT,{mr:"2",color:"gray.700",fontSize:"lg",lineHeight:1.8,children:t})})},l=e=>{let{onDelete:t,onEditYaml:s,formId:r,isSaving:l}=e;return(0,i.jsxs)(n.zeN,{justifyContent:"space-between",children:[t?(0,i.jsx)(n.wpx,{"aria-label":"delete",icon:(0,i.jsx)(a.q,{fontSize:"small"}),onClick:t,"data-testid":"delete-btn"}):null,(0,i.jsxs)("div",{className:"flex gap-2",children:[s&&(0,i.jsx)(n.wpx,{onClick:s,"data-testid":"edit-yaml-btn",children:"Edit YAML"}),(0,i.jsx)(n.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",form:r,loading:l,children:"Save"})]})]})};t.ZP=e=>{let{header:t,description:s,isOpen:a,onClose:r,children:l,footer:o}=e;return(0,i.jsxs)(n.dys,{placement:"right",isOpen:a,onClose:r,size:"md",children:[(0,i.jsx)(n.P1B,{}),(0,i.jsxs)(n.scA,{"data-testid":"edit-drawer-content",py:2,children:[(0,i.jsxs)(n.xuv,{display:"flex",justifyContent:"space-between",alignItems:"top",mr:2,py:2,gap:2,children:[(0,i.jsx)(n.xuv,{flex:1,minH:8,children:t}),(0,i.jsx)(n.xuv,{display:"flex",justifyContent:"flex-end",mr:2,children:(0,i.jsx)(n.wpx,{"aria-label":"Close editor",onClick:r,"data-testid":"close-drawer-btn",icon:(0,i.jsx)(n.Two,{fontSize:"smaller"})})})]}),(0,i.jsxs)(n.Ng0,{pt:1,children:[s?(0,i.jsx)(n.xvT,{fontSize:"sm",mb:4,color:"gray.600",children:s}):null,l]}),o]})]})}},56358:function(e,t,s){"use strict";s.d(t,{q:function(){return n}});var i=s(24246);let n=(0,s(98227).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,i.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},77213:function(e,t,s){"use strict";s.d(t,{Z:function(){return h}});var i=s(24246),n=s(98227),a=s(88038),r=s.n(a),l=s(86677);s(27378);var o=s(25980),d=s(90867),c=s(42478),u=s(77830),x=()=>{let e=(0,l.useRouter)();return(0,i.jsx)(n.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)(n.xuv,{children:[(0,i.jsxs)(n.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(n.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(n.wpx,{onClick:()=>{e.push(u.AD)},children:"Configure"})]}),(0,i.jsxs)(n.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:a=!0,mainProps:u}=e,h=(0,o.hz)(),p=(0,l.useRouter)(),m="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,f=!(h.flags.messagingConfiguration&&m),{data:g}=(0,c.JE)(void 0,{skip:f}),{data:j}=(0,d.PW)(void 0,{skip:f}),C=h.flags.messagingConfiguration&&(!g||!j)&&m;return(0,i.jsxs)(n.kCb,{"data-testid":s,direction:"column",h:"100vh",children:[(0,i.jsxs)(r(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",s]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(n.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[C?(0,i.jsx)(x,{}):null,t]})]})}},84306:function(e,t,s){"use strict";s.d(t,{V:function(){return a}});var i=s(24246),n=s(98227);let a=()=>{let e=(0,n.pmc)();return{errorAlert:(t,s,a)=>{let r={...a,position:(null==a?void 0:a.position)||"top",render:e=>{let{onClose:a}=e;return(0,i.jsxs)(n.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,i.jsx)(n.zMQ,{}),(0,i.jsxs)(n.xuv,{children:[s&&(0,i.jsx)(n.CdC,{children:s}),(0,i.jsx)(n.XaZ,{children:t})]}),(0,i.jsx)(n.PZ7,{onClick:a,position:"relative",right:0,size:"sm",top:-1})]})}};(null==a?void 0:a.id)&&e.isActive(a.id)?e.update(a.id,r):e(r)},successAlert:(t,s,a)=>{let r={...a,position:(null==a?void 0:a.position)||"top",render:e=>{let{onClose:a}=e;return(0,i.jsxs)(n.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,i.jsx)(n.zMQ,{}),(0,i.jsxs)(n.xuv,{children:[s&&(0,i.jsx)(n.CdC,{children:s}),(0,i.jsx)(n.XaZ,{children:t})]}),(0,i.jsx)(n.PZ7,{onClick:a,position:"relative",right:0,size:"sm",top:-1})]})}};(null==a?void 0:a.id)&&e.isActive(a.id)?e.update(a.id,r):e(r)}}}},8133:function(e,t,s){"use strict";var i=s(24246),n=s(98227);t.Z=e=>{let{title:t,children:s,isOpen:a,onClose:r,modalContentProps:l,showCloseButton:o=!1,footer:d,...c}=e;return(0,i.jsxs)(n.u_l,{isOpen:a,onClose:r,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...c,children:[(0,i.jsx)(n.ZAr,{}),(0,i.jsxs)(n.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...l,children:[o&&(0,i.jsx)(n.olH,{}),(0,i.jsx)(n.xBx,{p:0,children:(0,i.jsx)(n.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,i.jsx)(n.X6q,{as:"h3",size:"sm",children:t})})}),(0,i.jsx)(n.fef,{pb:4,overflow:"auto",children:s}),d&&(0,i.jsx)(n.mzw,{children:d})]})]})}},39715:function(e,t,s){"use strict";var i=s(24246),n=s(98227);s(27378),t.Z=e=>{let{isEmptyState:t,yamlError:s}=e;return(0,i.jsx)(n.Rg9,{in:!0,children:(0,i.jsxs)(n.xuv,{w:"fit-content",bg:"white",p:3,borderRadius:3,children:[(0,i.jsxs)(n.Ugi,{children:[(0,i.jsx)(n.X6q,{as:"h5",color:"gray.700",size:"xs",children:"YAML"}),(0,i.jsx)(n.Vp9,{colorScheme:"red",size:"sm",variant:"solid",children:"Error"})]}),(0,i.jsx)(n.xuv,{bg:"red.50",border:"1px solid",borderColor:"red.300",color:"red.300",mt:"16px",borderRadius:"6px",children:(0,i.jsxs)(n.Ugi,{alignItems:"flex-start",margin:["14px","17px","14px","17px"],children:[(0,i.jsx)(n.f9v,{}),t&&(0,i.jsxs)(n.xuv,{children:[(0,i.jsx)(n.X6q,{as:"h5",color:"red.500",fontWeight:"semibold",size:"xs",children:"Error message:"}),(0,i.jsx)(n.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:"Yaml system is required"})]}),s&&(0,i.jsxs)(n.xuv,{children:[(0,i.jsx)(n.X6q,{as:"h5",color:"red.500",fontWeight:"semibold",size:"xs",children:"Error message:"}),(0,i.jsx)(n.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:s.message}),(0,i.jsx)(n.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:s.reason}),(0,i.jsxs)(n.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:["Ln ",(0,i.jsx)("b",{children:s.mark.line}),", Col"," ",(0,i.jsx)("b",{children:s.mark.column}),", Pos"," ",(0,i.jsx)("b",{children:s.mark.position})]})]})]})})]})})}},41207:function(e,t,s){"use strict";s.d(t,{F:function(){return r},M:function(){return a}});var i=s(76649),n=s(65218);let a=s.n(n)()(()=>s.e(7088).then(s.bind(s,57088)).then(e=>e.default),{loadableGenerated:{webpack:()=>[57088]},ssr:!1}),r=e=>(0,i.Ln)({name:"string"},e)&&"YAMLException"===e.name},56026:function(e,t,s){"use strict";s.d(t,{QL:function(){return a},du:function(){return n},tz:function(){return i}});let i={name:{tooltip:"A UI-friendly label for the Dataset."},description:{tooltip:"A human-readable description of the Dataset."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to all collections in the Dataset."}},n={description:{tooltip:"A human-readable description of the collection."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to all fields in the collection."}},a={description:{tooltip:"A human-readable description of the field."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to this field."}}},91949:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return O}});var i=s(24246),n=s(92222),a=s(59003),r=s(98227),l=s(79894),o=s.n(l),d=s(86677),c=s(27378),u=s(16125),x=s(32885),h=s(65735);let p=e=>{let{resourceType:t,fidesKeys:s,skip:i}=e,[n,a]=(0,c.useState)(!0),r=(0,x.Wm)({resource_type:t,fides_keys:s},{skip:i,pollingInterval:n?3e3:void 0}),l=!!r.data&&r.data.every(e=>e.status===h.Wg.COMPLETE||e.status===h.Wg.FAILED||e.status===h.Wg.REVIEWED);return(0,c.useEffect)(()=>{l&&a(!1)},[l]),{...r,isClassificationFinished:l}};var m=s(25980),f=s(77213),g=s(77830),j=s(58754),C=s(47935),y=s(20386),v=s(79806),b=s(812),w=s(46628),k=s(8133),z=s(84306),S=s(66527),_=s(41207),A=s(39715),E=s(41966),R=e=>{let{data:t=[],isSubmitting:s=!1,onCancel:n,onSubmit:a,disabled:l,isLoading:o,onChange:d}=e,u=(0,c.useRef)(null),{errorAlert:x}=(0,z.V)(),h=t.length>0?S.ZP.dump(t):void 0,[p,m]=(0,c.useState)(void 0),[f,g]=(0,c.useState)(!1),[j,C]=(0,c.useState)(!h),{data:y}=(0,E.LH)({minimal:!0}),[v,b]=(0,c.useState)([]),w=e=>{S.ZP.load(e,{json:!0}),m(void 0)},k=()=>{if(y&&y.length){let e=u.current.getValue();b(y.filter(t=>e.includes("fides_key: ".concat(t.fides_key,"\n"))).map(e=>e.fides_key))}},R=l||j||!f||!!p||s;return(0,i.jsxs)(r.kCb,{gap:"97px",children:[(0,i.jsxs)(r.gCW,{align:"stretch",w:"800px",children:[(0,i.jsx)(_.M,{defaultLanguage:"yaml",defaultValue:h,height:"calc(100vh - 526px)",onChange:e=>{try{g(!0),w(e),C(!e||""===e.trim());let t=S.ZP.load(e||"",{json:!0});Array.isArray(t)?d(t[0]):d(t),k()}catch(e){(0,_.F)(e)?m(e):x("Could not parse the supplied YAML")}},onMount:(e,t)=>{u.current=e,u.current.focus()},options:{fontFamily:"Menlo",fontSize:13,minimap:{enabled:!1},readOnly:l},theme:"light"}),v.length>0?(0,i.jsxs)(r.xvT,{children:["You are about to overwrite the dataset",v.length>1?"s":""," ",v.map((e,t)=>{let s=t===v.length-1;return(0,i.jsxs)(c.Fragment,{children:[(0,i.jsx)(r.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:e}),s?".":", "]},e)})]}):null,(0,i.jsx)(r.mzw,{children:(0,i.jsxs)("div",{className:"flex w-full justify-end gap-4",children:[n&&(0,i.jsx)(r.wpx,{onClick:n,"data-testid":"cancel-btn",disabled:o,children:"Cancel"}),(0,i.jsx)(r.wpx,{type:"primary",onClick:()=>{null==a||a(),null==n||n()},"data-testid":"continue-btn",disabled:R,loading:s||o,children:"Confirm"})]})})]}),f&&(j||p)&&(0,i.jsx)(A.Z,{isEmptyState:j,yamlError:p})]})},Z=e=>{let{isOpen:t,onClose:s,title:n,isLoading:a,returnFocusOnClose:l,isDatasetSelected:o,dataset:d,onChange:c,onSubmit:u}=e;return(0,i.jsx)(k.Z,{isOpen:t,onClose:s,size:"3xl",returnFocusOnClose:null==l||l,isCentered:!0,title:null!=n?n:"Edit Dataset",children:(0,i.jsx)(r.xuv,{"data-testid":"yaml-editor-section",children:(0,i.jsx)(R,{data:d?[d]:[],onSubmit:u,isSubmitting:!1,disabled:o,onChange:c,isLoading:a,onCancel:s})})})},T=s(34090),D=s(40324),M=s(56026);let P="edit-field-drawer";var V=e=>{var t,s;let{values:n,onSubmit:a}=e,l={name:null!==(t=n.name)&&void 0!==t?t:"",description:null!==(s=n.description)&&void 0!==s?s:"",data_categories:n.data_categories};return(0,i.jsx)(T.J9,{initialValues:l,onSubmit:e=>{a({...e,data_categories:n.data_categories||[]})},children:(0,i.jsx)(T.l0,{id:P,children:(0,i.jsxs)(r.Kqy,{spacing:"3",children:[(0,i.jsx)(D.j0,{name:"name",label:"Name",tooltip:M.tz.name.tooltip,"data-testid":"name-input",variant:"block"}),(0,i.jsx)(D.j0,{name:"description",label:"Description",tooltip:M.tz.description.tooltip,"data-testid":"description-input",variant:"block"})]})})})},H=e=>{let{dataset:t,isOpen:s,onClose:n}=e,[a,{isLoading:l}]=(0,y.TG)(),[o]=(0,y.QY)(),u=(0,d.useRouter)(),x=(0,r.pmc)(),{isOpen:h,onOpen:p,onClose:m}=(0,r.qY0)(),{isOpen:f,onOpen:g,onClose:j}=(0,r.qY0)(),[C,k]=(0,c.useState)(void 0),z=async e=>{let s={...t,...e};try{let e=await a(s);(0,b.D4)(e)?x((0,w.Vo)((0,b.e$)(e.error))):x((0,w.t5)("Successfully modified dataset"))}catch(e){x((0,w.Vo)(e))}n()},S=async()=>{let{fides_key:e}=t,s=await o(e);(0,b.D4)(s)?x((0,w.Vo)((0,b.e$)(s.error))):x((0,w.t5)("Successfully deleted dataset")),(0,y.Zl)(void 0),u.push("/dataset"),n(),m()};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(v.ZP,{isOpen:s,onClose:n,description:"A Dataset takes a database schema (tables and columns) and adds Fides privacy categorizations. Provide additional context to this dataset by filling out the fields below.",header:(0,i.jsx)(v.zR,{title:"Edit: ".concat(null==t?void 0:t.name)}),footer:(0,i.jsx)(v.Gn,{onClose:n,onDelete:p,onEditYaml:()=>g(),formId:P}),children:[(0,i.jsx)(Z,{isOpen:f,onClose:j,onChange:k,onSubmit:()=>z(C),title:"Edit dataset YAML",isLoading:l,isDatasetSelected:!1,dataset:t}),(0,i.jsx)(V,{values:t,onSubmit:z})]}),(0,i.jsx)(r.cVQ,{isOpen:h,onClose:m,onConfirm:S,title:"Delete Dataset",message:(0,i.jsxs)(r.xvT,{children:["You are about to permanently delete the dataset named"," ",(0,i.jsx)(r.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==t?void 0:t.name}),". Are you sure you would like to continue?"]})})]})};let W=(0,n.Cl)(),I={items:[],total:0,page:1,size:25,pages:1},L=()=>(0,i.jsx)(r.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,i.jsxs)(r.gCW,{children:[(0,i.jsx)(r.xvT,{fontSize:"md",fontWeight:"600",children:"No datasets found."}),(0,i.jsx)(r.xvT,{fontSize:"sm",children:'Click "Create new dataset" to add your first dataset to Fides.'})]})});var O=()=>{let e=(0,u.I0)(),t=(0,d.useRouter)(),[s,l]=(0,c.useState)(!1),[x,v]=(0,c.useState)(),{PAGE_SIZES:b,pageSize:w,setPageSize:k,onPreviousPageClick:z,isPreviousPageDisabled:S,onNextPageClick:_,isNextPageDisabled:A,startRange:E,endRange:R,pageIndex:Z,setTotalPages:T,resetPageIndexToDefault:D}=(0,C.oi)(),[M,P]=(0,c.useState)(),V=(0,c.useCallback)(e=>{D(),P(e)},[D,P]),{data:O,isLoading:N,isFetching:F}=(0,y.rt)({page:Z,size:w,search:M,exclude_saas_datasets:!0}),{items:q,total:Y,pages:X}=(0,c.useMemo)(()=>null!=O?O:I,[O]);(0,c.useEffect)(()=>{T(X)},[X,T]);let G=(0,c.useCallback)(s=>{e((0,y.Zl)(s.fides_key)),t.push({pathname:g.o5,query:{datasetId:encodeURIComponent(s.fides_key)}})},[e,t]),B=(0,m.hz)();p({resourceType:h.j.DATASETS,skip:!B.plus});let U=(0,c.useMemo)(()=>[W.accessor(e=>e.name,{id:"name",cell:e=>(0,i.jsx)(C.G3,{value:e.getValue(),fontWeight:"semibold"}),header:e=>(0,i.jsx)(C.Rr,{value:"Dataset Name",...e}),size:180}),W.accessor(e=>e.fides_key,{id:"fides_key",cell:e=>(0,i.jsx)(C.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(C.Rr,{value:"Fides Key",...e}),size:150}),W.accessor(e=>e.description,{id:"description",cell:e=>(0,i.jsx)(C.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,i.jsx)(C.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),W.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,s=t.original;return(0,i.jsx)(r.Ugi,{spacing:0,"data-testid":"dataset-".concat(s.fides_key),children:(0,i.jsx)(r.wpx,{size:"small",icon:(0,i.jsx)(r.dY8,{}),onClick:()=>{v(s),l(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})].filter(Boolean),[]),Q=(0,a.b7)({getCoreRowModel:(0,n.sC)(),getFilteredRowModel:(0,n.vL)(),getSortedRowModel:(0,n.tj)(),columns:U,data:q,columnResizeMode:"onChange"});return(0,i.jsx)(f.Z,{title:"Datasets",children:(0,i.jsxs)(r.xuv,{"data-testid":"system-management",children:[(0,i.jsx)(j.Z,{heading:"Datasets",breadcrumbItems:[{title:"All datasets"}],rightContent:(0,i.jsx)(o(),{href:"/dataset/new",passHref:!0,legacyBehavior:!0,children:(0,i.jsx)(r.wpx,{"data-testid":"create-dataset-btn",children:"+ Add dataset"})})}),N?(0,i.jsx)(C.I4,{rowHeight:36,numRows:15}):(0,i.jsxs)(r.xuv,{"data-testid":"dataset-table",children:[(0,i.jsx)(C.Q$,{children:(0,i.jsx)(C.HO,{globalFilter:M,setGlobalFilter:V,placeholder:"Search",testid:"dataset-search"})}),(0,i.jsx)(C.ZK,{tableInstance:Q,emptyTableNotice:(0,i.jsx)(L,{}),onRowClick:G})]}),(0,i.jsx)(C.s8,{totalRows:Y||0,pageSizes:b,setPageSize:k,onPreviousPageClick:z,isPreviousPageDisabled:S||F,onNextPageClick:_,isNextPageDisabled:A||F,startRange:E,endRange:R}),(0,i.jsx)(H,{dataset:x,isOpen:s,onClose:()=>{v(void 0),l(!1)}})]})})}}},function(e){e.O(0,[6527,1840,2888,9774,179],function(){return e(e.s=64902)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/[id]-e905e018a2cab35d.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6446],{10463:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/datastore-connection/[id]",function(){return t(88228)}])},88228:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return g}});var i=t(24246),l=t(1226),s=t(98227),r=t(86677),a=t(27378),o=t(16134),d=t(17245),c=t(77830),u=t(20682),h=t(94725),f=t(58754),x=t(11274),p=t(26788),y=t(38212),v=t(50881),j=t(41337),m=()=>{let e=(0,o.T)(),{connection:n,connectionOption:t}=(0,o.C)(u.ZZ),[l,r]=(0,a.useState)(void 0),d=(0,a.useMemo)(()=>{let e=[];return(null==l?void 0:l.options)&&l.options.forEach(t=>{let l;switch(t){case p.H5.CONNECTOR_PARAMETERS:l={label:t,key:t,children:(0,i.jsx)(x.s,{})};break;case p.H5.DATASET_CONFIGURATION:l=(null==n?void 0:n.key)?{label:t,key:t,children:(0,i.jsx)(y.Z,{})}:void 0;break;case p.H5.DSR_CUSTOMIZATION:l=(null==n?void 0:n.key)?{label:t,key:t,children:(0,i.jsx)(v.Z,{})}:void 0}l&&e.push(l)}),e},[null==n?void 0:n.key,null==l?void 0:l.options]);return(0,a.useEffect)(()=>{if(t){let n=p.IM.find(e=>e.type===(null==t?void 0:t.type));n&&(r(n),e((0,u.nj)(p.Ss[2])))}return()=>{e((0,u.mc)())}},[t,e]),n&&t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.Z,{heading:"Connection manager",breadcrumbItems:[{title:"All connections",href:c.JR},{title:n.name}]}),(0,i.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",maxHeight:"40px",mb:"4px",whiteSpace:"nowrap",children:(0,i.jsxs)(s.xuv,{alignItems:"center",display:"flex",children:[(0,i.jsx)(j.ZP,{data:(0,j.PT)(t)}),(0,i.jsx)(s.xvT,{ml:"8px",children:n.name})]})}),(0,i.jsx)(s.gCW,{alignItems:"stretch",flex:"1",gap:"18px",children:(0,i.jsx)(s.A5g,{items:d})})]}):null},_=t(65735),g=()=>{let e=(0,o.T)(),n=(0,r.useRouter)(),{id:t}=n.query,{errorAlert:f}=(0,d.VY)(),x=(0,o.C)(u.y_),[p,y]=(0,a.useState)(!0),v=(e,n)=>n.find(n=>{var t;return n.identifier===e.connection_type&&n.identifier!==_.Rj.SAAS||n.identifier===(null===(t=e.saas_config)||void 0===t?void 0:t.type)});return(0,a.useEffect)(()=>{let i=()=>{f("An error occurred while loading ".concat(n.query.id)),n.push(c.JR,void 0,{shallow:!0})},l=async n=>{try{let t=[];t.push(e(h.DM.endpoints.getDatastoreConnectionByKey.initiate(n))),0===x.length&&t.push(e(u.d8.endpoints.getAllConnectionTypes.initiate({search:""})));let l=await Promise.allSettled(t);if(l.every(e=>"fulfilled"===e.status)){e((0,u.lm)(l[0].value.data));let n=[...l[1]?l[1].value.data.items:x],t=v(l[0].value.data,n);e((0,u.yA)(t)),y(!1)}else i()}catch(e){i()}};return t&&l(t),()=>{}},[t]),(0,i.jsxs)(i.Fragment,{children:[p&&(0,i.jsx)(s.xuv,{display:"flex",h:"100vh",justifyContent:"center",children:(0,i.jsx)(s.M5Y,{children:(0,i.jsx)(s.$jN,{})})}),!p&&(0,i.jsx)(l.Z,{children:(0,i.jsx)(m,{})})]})}}},function(e){e.O(0,[431,454,6527,7245,1840,6362,2888,9774,179],function(){return e(e.s=10463)}),_N_E=e.O()}]);
|