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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4154],{58095:function(e,t,s){var n=s(8817);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},21796:function(e){e.exports=function(e,t,s){for(var n=-1,a=null==e?0:e.length;++n<a;)if(s(t,e[n]))return!0;return!1}},8817:function(e,t,s){var n=s(95372),a=s(1129),l=s(58263);e.exports=function(e,t,s){return t==t?l(e,t,s):n(e,a,s)}},1129:function(e){e.exports=function(e){return e!=e}},92198:function(e,t,s){var n=s(52485),a=s(58095),l=s(21796),o=s(65581),i=s(47111),r=s(43735);e.exports=function(e,t,s){var d=-1,c=a,u=e.length,m=!0,p=[],g=p;if(s)m=!1,c=l;else if(u>=200){var y=t?null:i(e);if(y)return r(y);m=!1,c=o,g=new n}else g=t?[]:p;e:for(;++d<u;){var v=e[d],h=t?t(v):v;if(v=s||0!==v?v:0,m&&h==h){for(var f=g.length;f--;)if(g[f]===h)continue e;t&&g.push(h),p.push(v)}else c(g,h,s)||(g!==p&&g.push(h),p.push(v))}return p}},47111:function(e,t,s){var n=s(46151),a=s(50344),l=s(43735),o=n&&1/l(new n([,-0]))[1]==1/0?function(e){return new n(e)}:a;e.exports=o},58263:function(e){e.exports=function(e,t,s){for(var n=s-1,a=e.length;++n<a;)if(e[n]===t)return n;return -1}},50344:function(e){e.exports=function(){}},83766:function(e,t,s){var n=s(92198);e.exports=function(e){return e&&e.length?n(e):[]}},25654:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/[monitorId]/[systemId]",function(){return s(74473)}])},79283:function(e,t,s){"use strict";s.d(t,{l:function(){return c}});var n=s(24246),a=s(96306),l=s(72707),o=s.n(l);let i=e=>{let{data:{formattedTitle:t,description:s,name:l,primaryName:o}}=e;return(0,n.jsxs)(a.jqI,{gap:12,title:"".concat(t," - ").concat(s),children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("strong",{children:o||l}),o&&": ".concat(l)]}),(0,n.jsx)("em",{children:s})]})},r=e=>"options"in e&&Array.isArray(e.options),d=e=>({...e,className:o().option,formattedTitle:e.formattedTitle||[e.primaryName,e.name].filter(e=>e).join(": ")}),c=e=>{let{options:t,...s}=e,l=null==t?void 0:t.map(e=>r(e)?{...e,options:e.options.map(d)}:d(e));return(0,n.jsx)(a.WPr,{options:l,filterOption:(e,t)=>{var s,n;return(null==t?void 0:null===(s=t.formattedTitle)||void 0===s?void 0:s.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:i,styles:{popup:{root:{minWidth:"500px"}}},className:"w-full p-0","data-testid":"taxonomy-select",...s})}},45938:function(e,t,s){"use strict";s.d(t,{Gt:function(){return m},eB:function(){return p},oI:function(){return u}});var n=s(24246),a=s(34090),l=s(27378),o=s(16134),i=s(38602),r=s(58452);let d=(0,l.createRef)(),c=(0,l.createRef)(),u=()=>{let e=(0,o.T)(),t=(0,o.C)(i.DB),s=(0,l.useCallback)(()=>{c.current=void 0,d.current=void 0},[]),n=(0,l.useCallback)(()=>{e((0,i.Mr)()),c.current&&(c.current(!0),s())},[e,s]),a=(0,l.useCallback)(()=>{e((0,i.Mr)()),c.current&&(c.current(!1),s())},[e,s]);return{attemptAction:(0,l.useCallback)(()=>t?(e((0,i.h7)()),d.current||(d.current=new Promise(e=>{c.current=e})),d.current):Promise.resolve(!0),[t,e]),onConfirm:n,onClose:a}},m=e=>{let{id:t,name:s}=e,{dirty:n}=(0,a.u6)(),r=(0,o.T)();return(0,l.useEffect)(()=>(r((0,i.Zu)({id:t,name:s})),()=>{r((0,i.dz)({id:t}))}),[r,t,s]),(0,l.useEffect)(()=>{r((0,i.$p)({id:t,isDirty:n}))},[n,r,t]),null},p=()=>{let{onConfirm:e,onClose:t}=u(),s=(0,o.C)(i.uv);return(0,n.jsx)(r.Z,{isOpen:s,onClose:t,onConfirm:e,isCentered:!0,title:"Unsaved Changes",message:"You have unsaved changes"})}},74473:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return en}});var n=s(24246),a=s(86677),l=s(27378),o=s(35287),i=s(77830),r=s(58754),d=s(96306),c=s(25415),u=s(21910),m=s(30952),p=s(8133),g=s(79283),y=s(34929),v=s(78238),h=e=>{let{...t}=e,{getDataUseDisplayNameProps:s,getDataUses:a}=(0,y.Z)(),o=a(),i=o.filter(e=>e.active&&v.g.includes(e.fides_key)),r=o.map(e=>{let{name:t,primaryName:n}=s(e.fides_key);return{value:e.fides_key,name:t,primaryName:n,description:e.description||""}}),c=(0,l.useMemo)(()=>{let e=[],t=[];return r.forEach(s=>{i.some(e=>e.fides_key===s.value)?e.push(s):t.push(s)}),{suggested:e,all:t}},[r,i]),u=c.suggested.length?[{label:(0,n.jsxs)(d.vyj,{children:[(0,n.jsx)(d.QMR,{size:14}),(0,n.jsx)("span",{children:"Categories of consent"}),(0,n.jsx)("em",{className:"font-normal",children:"Recommended"})]}),options:c.suggested},{label:(0,n.jsxs)(d.vyj,{children:[(0,n.jsx)(d.PJP.BBB,{}),(0,n.jsx)("span",{children:"Other data uses"})]}),options:c.all}]:c.all;return(0,n.jsx)(g.l,{options:u,...t})};let{Text:f}=d.AntTypography;var x=e=>{let{onSave:t,isSaving:s,onClose:a,...o}=e,[i,r]=(0,l.useState)([]),c=()=>{r([]),a()};return(0,n.jsxs)(p.Z,{title:"Add consent category",...o,onClose:c,children:[(0,n.jsxs)(d.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,n.jsx)(f,{children:"Assign consent categories to selected assets. This configures the system for consent management. Consent categories apply to both individual assets and the system."}),(0,n.jsx)(h,{mode:"tags",onSelect:(e,t)=>r([...i,t.value]),variant:"outlined"})]}),(0,n.jsxs)(d.jqI,{justify:"space-between",children:[(0,n.jsx)(d.wpx,{htmlType:"reset",onClick:c,"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(d.wpx,{htmlType:"submit",type:"primary",disabled:!i.length,loading:s,onClick:()=>{t(i),c()},"data-testid":"save-btn",children:"Save"})]})]})},j=s(29850),_=s(77685);let{Text:b}=d.AntTypography,C=e=>{let{onSave:t,isSaving:s,...a}=e,[o,i]=(0,l.useState)(),[r,c]=(0,l.useState)(!1),u=(0,l.useCallback)(e=>{e.preventDefault(),c(!0)},[]),m=()=>{c(!1)},g=()=>{i(void 0),a.onClose()};return(0,n.jsxs)(p.Z,{title:"Assign system",...a,onClose:g,children:[(0,n.jsxs)(d.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,n.jsx)(b,{children:"Assign a system to the selected assets. If no system exists, select 'Add new system' to create one."}),(0,n.jsx)(j.R,{placeholder:"Search or select...",onSelect:(e,t)=>{i(t)},onAddSystem:u,value:o})]})," ",(0,n.jsxs)(d.jqI,{justify:"space-between",children:[(0,n.jsx)(d.wpx,{htmlType:"reset",onClick:g,"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(d.wpx,{htmlType:"submit",type:"primary",disabled:!o,loading:s,onClick:()=>{t(o),g()},"data-testid":"save-btn",children:"Save"})]}),r&&(0,n.jsx)(_.i,{isOpen:!0,onClose:m,onSuccessfulSubmit:(e,t)=>{m(),i({label:t,value:e})},toastOnSuccess:!0})]})};var w=s(8411),k=s(32735),S=s(8125),E=s(37059),A=s(98145);let{Link:N}=d.AntTypography,T=e=>{let{stagedResource:t,status:s}=e,a=(0,S.o)({pagination:{defaultPageSize:10,pageSizeOptions:[10,...k.VZ],pageQueryKey:"modalPage",sizeQueryKey:"modalSize"}}),{pageIndex:o,pageSize:i}=a,{data:r,isFetching:c,isError:u}=(0,E.mi)({stagedResourceUrn:t.urn,status:s,page:o,size:i}),{items:m,total:p}=(0,l.useMemo)(()=>r||{items:[],total:0,pages:0,filterOptions:{assigned_users:[],systems:[]}},[r]),g=(0,l.useMemo)(()=>({enableSelection:!1,getRowKey:e=>"".concat(e.location,"-").concat(e.page),isLoading:c,dataSource:m,totalRows:null!=p?p:0}),[c,m,p]),y=(0,S.V)(a,g);return{columns:(0,l.useMemo)(()=>[{title:"Location",dataIndex:A.EI.LOCATION,key:A.EI.LOCATION,render:e=>{var t;let s=(0,d.QCN)(e);return s?(0,d.c1K)({isoEntry:s,showFlag:!0}):null!==(t=null===w.Z8||void 0===w.Z8?void 0:w.Z8[e])&&void 0!==t?t:e}},{title:"Page",dataIndex:A.EI.PAGE,key:A.EI.PAGE,render:e=>(0,n.jsx)(N,{href:e,target:"_blank",rel:"noopener noreferrer",children:e})}],[]),data:r,isLoading:c,isError:u,totalRows:p,tableProps:y.tableProps,hasData:m.length>0}},{Paragraph:I,Text:O}=d.AntTypography,D=e=>{var t,s,a;let{isOpen:l,stagedResource:o,status:i,onCancel:r,onDownload:c}=e,{columns:u,tableProps:m,isError:p}=T({stagedResource:o,status:i});return(0,n.jsx)(d.$zI,{title:"Consent discovery",width:768,open:l,onCancel:r,footer:[(0,n.jsx)(d.wpx,{onClick:r,children:"Cancel"},"cancel"),!!c&&(0,n.jsx)(d.wpx,{type:"primary",onClick:c,children:"Download"},"download")],"data-testid":"consent-breakdown-modal",children:(0,n.jsxs)(d.jqI,{vertical:!0,className:"gap-6","data-testid":"consent-breakdown-modal-content",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(I,{children:"View all instances where this asset was detected without consent, organized by location and page. Use this to investigate potential compliance issues."}),(0,n.jsxs)(I,{children:[(0,n.jsx)(O,{strong:!0,children:"Asset name:"})," ",null!==(t=o.name)&&void 0!==t?t:(0,n.jsx)(O,{italic:!0,children:"Unknown"}),","," ",(0,n.jsx)(O,{strong:!0,children:"System:"})," ",null!==(s=o.system)&&void 0!==s?s:(0,n.jsx)(O,{italic:!0,children:"Unassigned"}),","," ",(0,n.jsx)(O,{strong:!0,children:"Domain:"})," ",null!==(a=o.domain)&&void 0!==a?a:(0,n.jsx)(O,{italic:!0,children:"Unknown"})]})]}),p?(0,n.jsx)(d.DUx,{type:"error",message:"Error fetching data",description:"Please try again later.",showIcon:!0}):(0,n.jsx)(d.V5H,{...m,columns:u,"data-testid":"consent-breakdown-modal-table"})]})})};var P=s(83766),R=s.n(P),L=s(62165),G=s(812),U=s(26070),V=s(3110),M=s(46628),Z=s(16394),z=s(54762),K=s(9320),B=s(88708);let $=e=>{let{asset:t,onTabChange:s,showComplianceIssueDetails:l,showWarningForConsentIssues:o}=e,[r,{isLoading:c}]=(0,E.EY)(),[m,{isLoading:p}]=(0,E.nS)(),[g,{isLoading:y}]=(0,E.Tj)(),v=(0,d.pmc)(),h=(0,a.useRouter)(),f=c||p||y,{urn:x,name:j,resource_type:_,diff_status:b,system_key:C,user_assigned_system_key:w,consent_aggregated:k}=t,S=!!k&&A.LM.includes(k),N=async()=>{let e=await r({urnList:[x]});if((0,G.D4)(e))v((0,M.Vo)((0,G.e$)(e.error)));else{let e=w||C,t="".concat(i.So,"/configure/").concat(e,"#assets");v((0,M.t5)((0,K._)("".concat(_,' "').concat(j,'" has been added to the system inventory.'),e?()=>h.push(t):void 0)))}},T=async()=>{let e=await m({urnList:[x]});(0,G.D4)(e)?v((0,M.Vo)((0,G.e$)(e.error))):v((0,M.t5)((0,K._)("".concat(_,' "').concat(j,'" has been ignored and will not appear in future scans.'),async()=>{await s(B.A.IGNORED)})))},I=async()=>{let e=await g({urnList:[x]});(0,G.D4)(e)?v((0,M.Vo)((0,G.e$)(e.error))):v((0,M.t5)("".concat(_,' "').concat(j,'" is no longer ignored and will appear in future scans.')))};return(0,n.jsxs)(d.vyj,{children:[b!==u.LL.MUTED&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.esZ,{title:t.system?void 0:"This asset requires a system before you can add it to the inventory.",children:(0,n.jsx)(d.wpx,{"data-testid":"add-btn",size:"small",onClick:N,disabled:!t.system||f,loading:c,children:"Add"})}),(0,n.jsx)(d.wpx,{"data-testid":"ignore-btn",size:"small",onClick:T,disabled:f,loading:p,children:"Ignore"}),S&&o&&(0,n.jsx)(d.wpx,{"data-testid":"view-compliance-details-btn",size:"small",onClick:()=>{null==l||l(t,null!=k?k:u.lg.UNKNOWN)},disabled:f,loading:y,icon:(0,n.jsx)(d.PJP.OdJ,{style:{color:"var(--fidesui-error)",width:14}}),title:"View compliance issue","aria-label":"View compliance issue"})]}),b===u.LL.MUTED&&(0,n.jsx)(d.wpx,{"data-testid":"restore-btn",size:"small",onClick:I,disabled:f,loading:y,children:"Restore"})]})};var q=s(17245),W=s(18992),Y=s.n(W),F=s(2525),Q=s(31883),J=e=>{var t,s,a;let{asset:o,readonly:i,columnState:r}=e,[c,u]=(0,l.useState)(!1),[m]=(0,E.Ak)(),{successAlert:p,errorAlert:g}=(0,q.VY)(),{getDataUseDisplayName:v}=(0,y.Z)(),f=(null===(t=o.user_assigned_data_uses)||void 0===t?void 0:t.length)?o.user_assigned_data_uses:(null===(s=o.data_uses)||void 0===s?void 0:s.length)?o.data_uses:[],x=async e=>{let t=await m({monitorId:o.monitor_config_id,urnList:[o.urn],dataUses:[...f,e]});(0,Q.D4)(t)?g((0,G.e$)(t.error)):p("Consent category added to ".concat(o.resource_type,' "').concat(o.name,'" .'),"Confirmed"),u(!1)},j=async e=>{let t=await m({monitorId:o.monitor_config_id,urnList:[o.urn],dataUses:f.filter(t=>t!==e)});(0,Q.D4)(t)?g((0,G.e$)(t.error)):p("Consent category removed from ".concat(o.resource_type,' "').concat(o.name,'".'),"Confirmed")},_=(null===(a=o.user_assigned_data_uses)||void 0===a?void 0:a.length)?o.user_assigned_data_uses:o.data_uses;return i?(0,n.jsx)(F.Q,{values:null==_?void 0:_.map(e=>({label:v(e),key:e})),columnState:r}):(0,n.jsxs)(n.Fragment,{children:[!c&&(0,n.jsxs)(d.vyj,{align:"start",children:[(0,n.jsx)(d.j8w,{onClick:()=>u(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"}),(0,n.jsx)(F.Q,{values:null==_?void 0:_.map(e=>({label:v(e),key:e})),columnState:r,tagProps:{closable:!0,closeButtonLabel:"Remove data use"},onTagClose:j})]}),c&&(0,n.jsx)("div",{className:Y().cellBleed,style:{backgroundColor:"var(--fides-color-white)"},children:(0,n.jsx)(h,{onSelect:x,onBlur:()=>u(!1),onKeyDown:e=>{"Escape"===e.key&&u(!1)},open:!0})})]})};let X=e=>{let{consentAggregated:t,stagedResource:s}=e,a=A.LM.includes(t);if(!(a||t===u.lg.UNKNOWN))return null;let l=!!s.data_uses&&s.data_uses.length>0,o=A.Vq[t];return t!==u.lg.UNKNOWN||l||(o="Add a category of consent to this asset to find consent information."),(0,n.jsx)(d.esZ,{title:o,children:(0,n.jsx)(d.j8w,{color:a?"error":void 0,"data-testid":"status-badge_".concat(t.replace(/_/g,"-")),children:A.X1[t]})})};var H=s(70675);let ee=e=>{let{aggregateSystem:t,monitorConfigId:s,readonly:a}=e,{resource_type:o,name:i,urn:r,system:c,user_assigned_system_key:u,system_key:m}=t,[p,g]=(0,l.useState)(!1),[y,v]=(0,l.useState)(!1),[h,{isLoading:f}]=(0,H.NA)(),{successAlert:x,errorAlert:b}=(0,q.VY)(),C=(0,l.useCallback)(e=>{e.preventDefault(),v(!0)},[]),w=async(e,t,n)=>{let a=await h({staged_resource_urn:r,monitor_config_id:s,user_assigned_system_key:e});(0,G.D4)(a)?b((0,G.e$)(a.error)):x(n?"".concat(t," has been added to your system inventory and the ").concat(o,' "').concat(i,'" has been assigned to that system.'):"".concat(o,' "').concat(i,'" has been assigned to ').concat(t,"."),"Confirmed"),g(!1)};return a?c?(0,n.jsx)(d.j8w,{"data-testid":"system-badge",color:"white",children:c}):null:(0,n.jsxs)(n.Fragment,{children:[!p&&(c?(0,n.jsxs)(d.j8w,{onClick:()=>g(!0),"data-testid":"system-badge",children:[c,(0,n.jsx)(d.PJP.I8b,{})]}):(0,n.jsx)(d.j8w,{onClick:()=>g(!0),"data-testid":"add-system-btn",addable:!0})),!!p&&(0,n.jsx)("div",{className:Y().cellBleed,children:(0,n.jsx)(j.R,{variant:"borderless",autoFocus:!0,defaultOpen:!0,defaultValue:u||m,onBlur:e=>{var t;(null===(t=e.relatedTarget)||void 0===t?void 0:t.getAttribute("id"))!=="add-new-system"&&g(!1)},onAddSystem:C,onSelect:(e,t)=>w(e,t.label),loading:f})}),y&&(0,n.jsx)(_.i,{isOpen:!0,onClose:()=>{v(!1)},onSuccessfulSubmit:(e,t)=>w(e,t,!0)})]})},et=e=>{let{monitorId:t,systemId:s,onSystemName:o,onShowComplianceIssueDetails:r}=e,c=(0,a.useRouter)(),m=(0,d.pmc)(),[p,g]=(0,l.useState)(s),[y,h]=(0,l.useState)(),[f,x]=(0,l.useState)(!1),[j,_]=(0,l.useState)(!1),[b,C]=(0,l.useState)(!1),[k,N]=(0,l.useState)(0),[T,I]=(0,l.useState)(0),[O,D]=(0,l.useState)(0),{flags:P}=(0,L.hz)(),{assetConsentStatusLabels:q}=P,{filterTabs:W,activeTab:Y,onTabChange:F,activeParams:Q,actionsDisabled:H}=(0,B.Z)(s),et=(0,S.o)({sorting:{validColumns:Object.values(A.r6)}}),{columnFilters:es,pageIndex:en,pageSize:ea,resetState:el,sortKey:eo,sortOrder:ei,searchQuery:er,updateSearch:ed,updateFilters:ec,updateSorting:eu,updatePageIndex:em,updatePageSize:ep}=et,{data:eg,isLoading:ey,isFetching:ev}=(0,E.WJ)({key:t,page:en,size:ea,search:er,sort_by:eo?[eo]:[A.r6.CONSENT_AGGREGATED,"urn"],sort_asc:"descend"!==ei,...Q,...es}),[eh,{isLoading:ef}]=(0,E.EY)(),[ex,{isLoading:ej}]=(0,E.nS)(),[e_,{isLoading:eb}]=(0,E.rs)(),[eC,{isLoading:ew}]=(0,E.sX)(),[ek,{isLoading:eS}]=(0,E.Vr)(),[eE,{isLoading:eA}]=(0,E.Tj)(),eN=ef||ej||eb||ew||eA||eS,eT=eN||s===i.Kl,{data:eI}=(0,E.ut)({monitor_config_id:t,resolved_system_id:s,diff_status:null==Q?void 0:Q.diff_status,search:er,...es}),eO=(0,l.useMemo)(()=>({enableSelection:Y!==B.A.ADDED,getRowKey:e=>e.urn,isLoading:ey,isFetching:ev,dataSource:(null==eg?void 0:eg.items)||[],totalRows:(null==eg?void 0:eg.total)||0,customTableProps:{locale:{emptyText:(0,n.jsx)("div",{children:(0,n.jsx)("div",{children:"All caught up!"})})}}}),[Y,ey,ev,null==eg?void 0:eg.items,null==eg?void 0:eg.total]),eD=(0,S.V)(et,eO),eP=(0,l.useMemo)(()=>{var e;let t=[{title:"Asset",dataIndex:A.r6.NAME,key:A.r6.NAME,sorter:!0,sortOrder:eo===A.r6.NAME?ei:null,render:e=>(0,n.jsx)(d.lKn,{ellipsis:{tooltip:!0},style:{maxWidth:300},children:e}),fixed:"left"},{title:"Type",dataIndex:A.r6.RESOURCE_TYPE,key:A.r6.RESOURCE_TYPE,sorter:!0,sortOrder:eo===A.r6.RESOURCE_TYPE?ei:null,filters:(0,Z.nZ)(null==eI?void 0:eI.resource_type),filteredValue:(null==es?void 0:es.resource_type)||null},{title:"System",dataIndex:A.r6.SYSTEM,key:A.r6.SYSTEM,render:(e,t)=>!!t.monitor_config_id&&(0,n.jsx)(ee,{aggregateSystem:t,monitorConfigId:t.monitor_config_id,readonly:H||Y===B.A.IGNORED})},{title:"Categories of consent",key:A.r6.DATA_USES,menu:{items:V.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?(C(!0),D(e=>e+1)):"collapse-all"===e.key&&(C(!1),D(e=>e+1))}},filters:(0,Z.nZ)(null==eI?void 0:null===(e=eI.data_uses)||void 0===e?void 0:e.filter(e=>(0,v.Z)(e))),filteredValue:(null==es?void 0:es.data_uses)||null,render:(e,t)=>(0,n.jsx)(J,{asset:t,readonly:H||Y===B.A.IGNORED,columnState:{isExpanded:b,version:O}})},{title:"Locations",dataIndex:A.r6.LOCATIONS,key:A.r6.LOCATIONS,menu:{items:V.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?(x(!0),N(e=>e+1)):"collapse-all"===e.key&&(x(!1),N(e=>e+1))}},filters:(0,Z.nZ)(null==eI?void 0:eI.locations,e=>{var t;let s=(0,d.QCN)(e);return s?(0,d.c1K)({isoEntry:s}):null!==(t=w.Z8[e])&&void 0!==t?t:e}),filteredValue:(null==es?void 0:es.locations)||null,render:e=>{var t;return(0,n.jsx)(U.Q,{values:null!==(t=null==e?void 0:e.map(e=>{var t;let s=(0,d.QCN)(e);return{label:s?(0,d.c1K)({isoEntry:s}):null!==(t=w.Z8[e])&&void 0!==t?t:e,key:e}}))&&void 0!==t?t:[],columnState:{isExpanded:f,version:k}})}},{title:"Domain",dataIndex:A.r6.DOMAIN,key:A.r6.DOMAIN},{title:"Detected on",dataIndex:A.r6.PAGE,menu:{items:V.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?(_(!0),I(e=>e+1)):"collapse-all"===e.key&&(_(!1),I(e=>e+1))}},key:A.r6.PAGE,render:e=>(0,n.jsx)(U.v,{values:e,valueSuffix:"pages",columnState:{isExpanded:j,version:T}})}];return q&&t.push({title:()=>(0,n.jsxs)(d.vyj,{children:[(0,n.jsx)("div",{children:"Compliance"}),y===u.lg.WITHOUT_CONSENT&&(0,n.jsx)(z.l,{consentStatus:{status:u.pF.ALERT,message:"One or more assets were detected without consent"}})]}),dataIndex:A.r6.CONSENT_AGGREGATED,key:A.r6.CONSENT_AGGREGATED,sorter:!0,sortOrder:eo===A.r6.CONSENT_AGGREGATED?ei:null,filters:(0,Z.nZ)(null==eI?void 0:eI[A.r6.CONSENT_AGGREGATED],e=>{var t;return null!==(t=A.X1[e])&&void 0!==t?t:e}),filteredValue:(null==es?void 0:es[A.r6.CONSENT_AGGREGATED])||null,render:(e,t)=>(0,n.jsx)(X,{consentAggregated:null!=e?e:u.lg.UNKNOWN,stagedResource:t})}),H||t.push({title:"Actions",key:A.r6.ACTIONS,fixed:"right",render:(e,t)=>(0,n.jsx)($,{asset:t,onTabChange:F,showComplianceIssueDetails:r,showWarningForConsentIssues:q})}),t},[eo,ei,eI,es,q,H,Y,b,f,j,O,k,T,y,r,F]);(0,l.useEffect)(()=>{if(eg){var e;let t=(null===(e=eg.items[0])||void 0===e?void 0:e.system)||p||s||"";g(t),null==o||o(t)}},[eg,s,o,p]),(0,l.useEffect)(()=>{if((null==eg?void 0:eg.items)&&!y){var e;h(null===(e=eg.items.find(e=>e.consent_aggregated===u.lg.WITHOUT_CONSENT))||void 0===e?void 0:e.consent_aggregated)}},[eg,y]);let{selectedKeys:eR,selectedRows:eL,resetSelections:eG}=eD,eU=(0,l.useCallback)(async()=>{var e,t;let s=await eh({urnList:eR}),n=(null===(e=eL[0])||void 0===e?void 0:e.user_assigned_system_key)||(null===(t=eL[0])||void 0===t?void 0:t.system_key),a=eL.every(e=>(e.user_assigned_system_key||e.system_key)===n)?n:void 0;(0,G.D4)(s)?m((0,M.Vo)((0,G.e$)(s.error))):(m((0,M.t5)((0,K._)("".concat(eR.length," assets from ").concat(p," have been added to the system inventory."),a?()=>c.push("".concat(i.So,"/configure/").concat(a,"#assets")):()=>c.push(i.So)))),eG())},[eh,eR,eL,p,m,c,eG]),eV=(0,l.useCallback)(async e=>{if("string"==typeof(null==e?void 0:e.value)){let s=await eC({monitorId:t,urnList:eR,systemKey:e.value});(0,G.D4)(s)?m((0,M.Vo)((0,G.e$)(s.error))):m((0,M.t5)("".concat(eR.length," assets have been assigned to ").concat(e.label,"."),"Confirmed"))}},[eC,t,eR,m]),eM=(0,l.useCallback)(async e=>{if(!eL.length)return;let s=eL.map(t=>{let s=R()([...t.user_assigned_data_uses||t.data_uses||[],...e]);return{urn:t.urn,user_assigned_data_uses:s}}),n=await ek({monitorId:t,assets:s});(0,G.D4)(n)?m((0,M.Vo)((0,G.e$)(n.error))):m((0,M.t5)("Consent categories added to ".concat(eR.length," assets").concat(p?" from ".concat(p):"","."),"Confirmed"))},[eL,ek,t,eR,p,m]),eZ=(0,l.useCallback)(async()=>{let e=await ex({urnList:eR});(0,G.D4)(e)?m((0,M.Vo)((0,G.e$)(e.error))):(m((0,M.t5)(p===i.Kl?"".concat(eR.length," uncategorized assets have been ignored and will not appear in future scans."):"".concat(eR.length," assets from ").concat(p," have been ignored and will not appear in future scans."),"Confirmed")),eG())},[ex,eR,p,m,eG]),ez=(0,l.useCallback)(async()=>{let e=await eE({urnList:eR});(0,G.D4)(e)?m((0,M.Vo)((0,G.e$)(e.error))):(m((0,M.t5)("".concat(eR.length," assets have been restored and will appear in future scans."),"Confirmed")),eG())},[eE,eR,m,eG]),eK=(0,l.useCallback)(async()=>{let e=(null==eg?void 0:eg.items.length)||0,n=await e_({monitor_config_key:t,resolved_system_ids:[s]});(0,G.D4)(n)?m((0,M.Vo)((0,G.e$)(n.error))):(c.push("".concat(i.vi,"/").concat(t)),m((0,M.t5)("".concat(e," assets from ").concat(p," have been added to the system inventory."),"Confirmed")),eG())},[null==eg?void 0:eg.items.length,e_,t,s,c,m,p,eG]),eB=(0,l.useCallback)(async e=>{await F(e),el(),eG()},[F,el,eG]);return{columns:eP,data:eg,isLoading:ey,isFetching:ev,tableState:et,searchQuery:er,updateSearch:ed,updateFilters:ec,updateSorting:eu,updatePageIndex:em,updatePageSize:ep,resetState:el,tableProps:eD.tableProps,selectionProps:eD.selectionProps,filterTabs:W,activeTab:Y,handleTabChange:eB,activeParams:Q,actionsDisabled:H,selectedRows:eL,selectedUrns:eR,hasSelectedRows:eD.hasSelectedRows,resetSelections:eG,systemName:p,firstItemConsentStatus:y,handleBulkAdd:eU,handleBulkAssignSystem:eV,handleBulkAddDataUse:eM,handleBulkIgnore:eZ,handleBulkRestore:ez,handleAddAll:eK,anyBulkActionIsLoading:eN,isAddingResults:ef,isIgnoringResults:ej,isAddingAllResults:eb,isBulkUpdatingSystem:ew,isBulkAddingDataUses:eS,isRestoringResults:eA,disableAddAll:eT}},es=e=>{var t;let{monitorId:s,systemId:a,onSystemName:o}=e,[i,r]=(0,l.useState)(!1),[p,g]=(0,l.useState)(!1),[y,v]=(0,l.useState)(null),{columns:h,searchQuery:f,updateSearch:j,resetState:_,tableProps:b,selectionProps:w,filterTabs:k,activeTab:S,handleTabChange:E,activeParams:A,actionsDisabled:N,selectedUrns:T,hasSelectedRows:I,resetSelections:O,handleBulkAdd:P,handleBulkAssignSystem:R,handleBulkAddDataUse:L,handleBulkIgnore:G,handleBulkRestore:U,handleAddAll:V,anyBulkActionIsLoading:M,isAddingAllResults:Z,isBulkUpdatingSystem:z,isBulkAddingDataUses:K,disableAddAll:B}=et({monitorId:s,systemId:a,onSystemName:o,onShowComplianceIssueDetails:(e,t)=>{v({stagedResource:e,status:t})}}),$=async e=>{await R(e),r(!1)},q=async e=>{await L(e),g(!1)};return s&&a?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.Niu,{"aria-label":"Asset state filter",mode:"horizontal",items:k.map(e=>({key:e.hash,label:e.label})),selectedKeys:[S],onClick:async e=>{await E(e.key)},className:"mb-4","data-testid":"asset-state-filter"}),(0,n.jsxs)(d.jqI,{justify:"space-between",align:"center",className:"mb-4",children:[(0,n.jsx)(m.f,{value:f,onChange:j,placeholder:"Search by asset name..."}),(0,n.jsxs)(d.vyj,{size:"large",children:[I&&(0,n.jsx)(c.a,{count:T.length}),(0,n.jsxs)(d.vyj,{size:"small",children:[(0,n.jsx)(d.wpx,{onClick:()=>{_(),O()},"data-testid":"clear-filters",children:"Clear filters"}),(0,n.jsx)(d.S0p,{overlayClassName:"bulk-actions-menu-dropdown",menu:{items:[...(null==A?void 0:null===(t=A.diff_status)||void 0===t?void 0:t.includes(u.LL.MUTED))?[{key:"restore",label:"Restore",onClick:U}]:[{key:"add",label:"Add",onClick:P},{key:"add-data-use",label:"Add consent category",onClick:()=>g(!0)},{key:"assign-system",label:"Assign system",onClick:()=>r(!0)},{type:"divider"},{key:"ignore",label:"Ignore",onClick:G}]]},trigger:["click"],children:(0,n.jsx)(d.wpx,{icon:(0,n.jsx)(d.PJP._ME,{}),iconPosition:"end",loading:M,"data-testid":"bulk-actions-menu",disabled:!I||M||N,type:"primary",children:"Actions"})}),(0,n.jsx)(d.esZ,{title:B?"These assets require a system before you can add them to the inventory.":void 0,children:(0,n.jsx)(d.wpx,{onClick:V,disabled:B,loading:Z,type:"primary",icon:(0,n.jsx)(d.PJP.MCw,{}),iconPosition:"end","data-testid":"add-all",children:"Add all"})})]})]})]}),(0,n.jsx)(d.V5H,{...b,columns:h,rowSelection:w,locale:{emptyText:(0,n.jsx)(d.oj8,{image:d.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})},"aria-labelledby":"breadcrumb-current-page"}),(0,n.jsx)(C,{isOpen:i,onClose:()=>{r(!1)},onSave:$,isSaving:z}),(0,n.jsx)(x,{isOpen:p,onClose:()=>{g(!1)},onSave:q,isSaving:K}),y&&(0,n.jsx)(D,{isOpen:!!y,stagedResource:y.stagedResource,status:y.status,onCancel:()=>{v(null)}})]}):null};var en=()=>{let e=(0,a.useRouter)(),t=decodeURIComponent(e.query.monitorId),s=decodeURIComponent(e.query.systemId),[d,c]=(0,l.useState)(s===i.Kl?"Uncategorized assets":s);return(0,n.jsxs)(o.Z,{title:"Action center - Discovered assets",children:[(0,n.jsx)(r.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:i.vi},{title:t,href:"".concat(i.vi,"/").concat(t)},{title:s===i.Kl?"Uncategorized assets":d}]}),(0,n.jsx)(es,{monitorId:t,systemId:s,onSystemName:c})]})}},31883:function(e,t,s){"use strict";s.d(t,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=s(19043)},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}},18992:function(e){e.exports={cellBleed:"Cells_cellBleed__dik43"}}},function(e){e.O(0,[8765,431,9278,5163,7045,401,3585,7725,7929,2888,9774,179],function(){return e(e.s=25654)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2423],{66726:function(a,e,n){var t=n(11611),i=n(82846),s=n(91936),o=Math.max,r=Math.min;a.exports=function(a,e,n){var _,l,F,d,u,c,S=0,m=!1,C=!1,v=!0;if("function"!=typeof a)throw TypeError("Expected a function");function h(e){var n=_,t=l;return _=l=void 0,S=e,d=a.apply(t,n)}function A(a){var n=a-c,t=a-S;return void 0===c||n>=e||n<0||C&&t>=F}function I(){var a,n,t,s=i();if(A(s))return y(s);u=setTimeout(I,(a=s-c,n=s-S,t=e-a,C?r(t,F-n):t))}function y(a){return(u=void 0,v&&_)?h(a):(_=l=void 0,d)}function N(){var a,n=i(),t=A(n);if(_=arguments,l=this,c=n,t){if(void 0===u)return S=a=c,u=setTimeout(I,e),m?h(a):d;if(C)return clearTimeout(u),u=setTimeout(I,e),h(c)}return void 0===u&&(u=setTimeout(I,e)),d}return e=s(e)||0,t(n)&&(m=!!n.leading,F=(C="maxWait"in n)?o(s(n.maxWait)||0,e):F,v="trailing"in n?!!n.trailing:v),N.cancel=function(){void 0!==u&&clearTimeout(u),S=0,_=c=l=u=void 0},N.flush=function(){return void 0===u?d:y(i())},N}},82846:function(a,e,n){var t=n(77400);a.exports=function(){return t.Date.now()}},86850:function(a,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/[monitorId]",function(){return n(12109)}])},30952:function(a,e,n){"use strict";n.d(e,{f:function(){return _}});var t=n(24246),i=n(66726),s=n.n(i),o=n(27378),r=n(26917);let _=a=>{let{value:e,onChange:n,placeholder:i,..._}=a,[l,F]=(0,o.useState)(e);(0,o.useEffect)(()=>{F(e||"")},[e]);let d=s()(n,500),u=(0,o.useCallback)(a=>{F(a),d(a)},[]);return(0,t.jsx)(r.Z,{value:l,onChange:u,onClear:()=>{F(""),n("")},placeholder:i,..._})}},26089:function(a,e,n){"use strict";var t=n(24246),i=n(96306),s=n(99830),o=n.n(s);e.Z=a=>{let{onClick:e,children:n}=a;return(0,t.jsx)(i.wpx,{onClick:e,type:"link",role:"link",size:"small",className:o().toastLink,children:n})}},8411:function(a,e,n){"use strict";n.d(e,{NA:function(){return s},Z8:function(){return i}});var t=n(21910);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]}))},99640:function(a,e,n){"use strict";n.d(e,{Z:function(){return l}});var t=n(24246),i=n(96306),s=n(79894),o=n.n(s);let{Link:r,Text:_}=i.AntTypography,l=a=>{let{href:e,children:n,...i}=a;return e?(0,t.jsx)(o(),{href:e,passHref:!0,legacyBehavior:!0,children:(0,t.jsx)(r,{strong:!0,ellipsis:!0,onClick:a=>a.stopPropagation(),...i,children:n})}):(0,t.jsx)(_,{strong:!0,ellipsis:!0,...i,children:n})}},76904:function(a,e,n){"use strict";n.d(e,{dK:function(){return d},Rv:function(){return m},$P:function(){return c},zj:function(){return C},Kr:function(){return v},q1:function(){return u},QL:function(){return h}});var t=n(24246),i=n(96306),s=n(3124),o=n.n(s);let r=a=>{let{...e}=a;return(0,t.jsx)("svg",{viewBox:"0 0 8 8",focusable:"false",...e,children:(0,t.jsx)("path",{fill:"currentColor",d:"M7.23192 8H8V7.23192V1.85539V1.08731H6.46385V1.85539V5.37654L1.62976 0.544855L1.08731 0L0 1.08731L0.542454 1.62976L5.37654 6.46385H1.85539H1.08731V8H1.85539H7.23192Z"})})},_=a=>{let{...e}=a;return(0,t.jsx)("svg",{viewBox:"0 0 8 8",focusable:"false",...e,children:(0,t.jsx)("path",{fill:"currentColor",d:"M7.23192 0H8V0.768077V6.14461V6.91269H6.46385V6.14461V2.62346L1.62976 7.45515L1.08731 8L0 6.91269L0.542454 6.37024L5.37654 1.53615H1.85539H1.08731V0H1.85539H7.23192Z"})})},l=a=>{let{...e}=a;return(0,t.jsx)("svg",{viewBox:"0 0 9 10",focusable:"false",...e,children:(0,t.jsx)("path",{fill:"currentColor",d:"M0 0.5V5L4.5 9.5L9 5L4.5 0.5H0ZM2.25 2.10714C2.4205 2.10714 2.58401 2.17487 2.70457 2.29543C2.82513 2.41599 2.89286 2.5795 2.89286 2.75C2.89286 2.9205 2.82513 3.08401 2.70457 3.20457C2.58401 3.32513 2.4205 3.39286 2.25 3.39286C2.0795 3.39286 1.91599 3.32513 1.79543 3.20457C1.67487 3.08401 1.60714 2.9205 1.60714 2.75C1.60714 2.5795 1.67487 2.41599 1.79543 2.29543C1.91599 2.17487 2.0795 2.10714 2.25 2.10714Z"})})};var F=n(28278);let d=()=>(0,t.jsx)(_,{style:{color:o().FIDESUI_SUCCESS},className:"size-2","data-testid":"add-icon"}),u=()=>(0,t.jsx)(r,{style:{color:o().FIDESUI_ERROR},className:"size-2","data-testid":"remove-icon"}),c=()=>(0,t.jsx)(l,{style:{color:o().FIDESUI_WARNING},className:"size-3","data-testid":"classify-icon"}),S=a=>{let{color:e,...n}=a;return(0,t.jsx)(i.PJP.fRw,{style:{color:e},className:"size-2",...n})},m=()=>(0,t.jsx)(S,{color:o().FIDESUI_INFO,"data-testid":"change-icon"}),C=()=>(0,t.jsx)(S,{color:o().FIDESUI_SUCCESS,"data-testid":"monitored-icon"}),v=()=>(0,t.jsx)(S,{color:o().FIDESUI_ERROR,"data-testid":"muted-icon"}),h={[F.E.ADDITION]:(0,t.jsx)(d,{}),[F.E.REMOVAL]:(0,t.jsx)(u,{}),[F.E.CLASSIFICATION]:(0,t.jsx)(c,{}),[F.E.CHANGE]:(0,t.jsx)(m,{}),[F.E.MONITORED]:(0,t.jsx)(C,{}),[F.E.MUTED]:(0,t.jsx)(v,{}),[F.E.IN_PROGRESS]:(0,t.jsx)(()=>(0,t.jsx)(S,{color:o().FIDESUI_WARNING,"data-testid":"in-progress-icon"}),{}),[F.E.NONE]:null}},28278:function(a,e,n){"use strict";var t,i;n.d(e,{E:function(){return t}}),(i=t||(t={})).ADDITION="Addition",i.CHANGE="Change",i.REMOVAL="Removal",i.CLASSIFICATION="Classification",i.IN_PROGRESS="Classifying",i.MONITORED="Monitoring",i.MUTED="Unmonitored",i.NONE="--"},12109:function(a,e,n){"use strict";n.r(e),n.d(e,{default:function(){return w}});var t=n(24246),i=n(86677),s=n(35287),o=n(77830),r=n(58754),_=n(96306),l=n(25415),F=n(21910),d=n(30952),u=n(27378),c=n(812),S=n(8125),m=n(46628),C=n(37059),v=n(98145),h=n(9320),A=n(88708),I=n(8411),y=n(26070),N=n(3110),M=n(54762);let f=a=>{let{monitorId:e,system:n,allowIgnore:s,onTabChange:r}=a,[l,{isLoading:F}]=(0,C.rs)(),[d,{isLoading:u}]=(0,C.nP)(),S=(0,i.useRouter)(),v=(0,_.pmc)(),I=F||u,{id:y,name:N,system_key:M,total_updates:f}=n,E=async()=>{let a=await l({monitor_config_key:e,resolved_system_ids:[y]});if((0,c.D4)(a))v((0,m.Vo)((0,c.e$)(a.error)));else{let a="".concat(o.So,"/configure/").concat(M,"#assets");v((0,m.t5)((0,h._)(M?"".concat(f," assets from ").concat(N," have been added to the system inventory."):"".concat(N," and ").concat(f," assets have been added to the system inventory. ").concat(N," is now configured for consent."),M?()=>S.push(a):void 0)))}},g=async()=>{let a=await d({monitor_config_key:e,resolved_system_ids:[y||o.Kl]});(0,c.D4)(a)?v((0,m.Vo)((0,c.e$)(a.error))):v((0,m.t5)((0,h._)(N?"".concat(f," assets from ").concat(N," have been ignored and will not appear in future scans."):"".concat(f," uncategorized assets have been ignored and will not appear in future scans."),async()=>{await r(A.A.IGNORED)})))};return(0,t.jsxs)(_.vyj,{children:[(0,t.jsx)(_.esZ,{title:n.id?void 0:"These assets must be categorized before you can add them to the inventory.",children:(0,t.jsx)(_.wpx,{"data-testid":"add-btn",size:"small",onClick:E,disabled:!n.id||I,loading:F,children:"Add"})}),s&&(0,t.jsx)(_.wpx,{"data-testid":"ignore-btn",size:"small",onClick:g,disabled:I,loading:u,children:"Ignore"})]})};var E=n(99640),g=n(76904);let p=a=>{let{system:e,rowClickUrl:n}=a,i=null==n?void 0:n(e);return(0,t.jsxs)(_.vyj,{className:"max-w-[250px] flex-nowrap",children:[!e.system_key&&(0,t.jsx)(_.esZ,{title:"New system",children:(0,t.jsx)("span",{children:g.QL.Change})}),(0,t.jsx)(E.Z,{href:i,"data-testid":i?"system-name-link":"system-name-text",children:e.name||"Uncategorized assets"}),(0,t.jsx)(M.l,{consentStatus:e.consent_status})]})};var U=n(34929),x=n(2525),b=n(78238),T=a=>{var e,n;let{system:i,columnState:s}=a,{getDataUseDisplayName:o}=(0,U.Z)(),r=(null!==(n=null===(e=i.data_uses)||void 0===e?void 0:e.filter(a=>(0,b.Z)(a)))&&void 0!==n?n:[]).map(a=>({label:o(a),key:a}));return(0,t.jsx)(x.Q,{values:r,columnState:s})};let k=a=>{let{monitorId:e,readonly:n,allowIgnore:i,onTabChange:s,consentStatus:o,rowClickUrl:r}=a,[l,F]=(0,u.useState)(!1),[d,c]=(0,u.useState)(!1),[S,m]=(0,u.useState)(!1),[C,h]=(0,u.useState)(0),[A,E]=(0,u.useState)(0),[g,U]=(0,u.useState)(0);return{columns:(0,u.useMemo)(()=>{let a=[{title:()=>(0,t.jsxs)(_.vyj,{children:[(0,t.jsx)("div",{children:"System"}),(0,t.jsx)(M.l,{consentStatus:o})]}),dataIndex:"name",key:v.vQ.SYSTEM_NAME,fixed:"left",render:(a,e)=>(0,t.jsx)(p,{system:e,rowClickUrl:r})},{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?(m(!0),U(a=>a+1)):"collapse-all"===a.key&&(m(!1),U(a=>a+1))}},render:(a,e)=>(0,t.jsx)(T,{system:e,columnState:{isExpanded:S,version:g}})},{title:"Locations",menu:{items:N.DI,onClick:a=>{a.domEvent.stopPropagation(),"expand-all"===a.key?(F(!0),h(a=>a+1)):"collapse-all"===a.key&&(F(!1),h(a=>a+1))}},dataIndex:"locations",key:v.vQ.LOCATIONS,render:a=>{var e;return(0,t.jsx)(y.Q,{values:null!==(e=null==a?void 0:a.map(a=>{var e;let n=(0,_.QCN)(a);return{label:n?(0,_.c1K)({isoEntry:n}):null!==(e=I.Z8[a])&&void 0!==e?e:a,key:a}}))&&void 0!==e?e:[],columnState:{isExpanded:l,isWrapped:!0,version:C}})}},{title:"Domains",menu:{items:N.DI,onClick:a=>{a.domEvent.stopPropagation(),"expand-all"===a.key?(c(!0),E(a=>a+1)):"collapse-all"===a.key&&(c(!1),E(a=>a+1))}},dataIndex:"domains",key:v.vQ.DOMAINS,render:a=>(0,t.jsx)(y.v,{values:a,valueSuffix:"domains",columnState:{isExpanded:d,version:A}})}];return n||a.push({title:"Actions",key:v.vQ.ACTIONS,fixed:"right",render:(a,n)=>(0,t.jsx)(f,{system:n,monitorId:e,allowIgnore:i,onTabChange:s})}),a},[n,o,r,S,l,d,g,C,A,e,i,s])}},L=a=>{let{monitorId:e}=a,n=(0,i.useRouter)(),s=(0,_.pmc)(),[r,l]=(0,u.useState)(),{filterTabs:d,activeTab:I,onTabChange:y,activeParams:N,actionsDisabled:M}=(0,A.Z)(),f=(0,S.o)({sorting:{validColumns:Object.values(v.vQ)}}),{pageIndex:E,pageSize:g,searchQuery:p,updateSearch:U,resetState:x}=f,{data:b,isLoading:T,isFetching:L}=(0,C.wi)({key:e,page:E,size:g,search:p,...N}),[j,{isLoading:w}]=(0,C.rs)(),[R,{isLoading:G}]=(0,C.nP)(),D=(0,u.useCallback)(a=>{var e,n,t;return null!==(t=null!==(n=null!==(e=a.id)&&void 0!==e?e:a.vendor_id)&&void 0!==n?n:a.name)&&void 0!==t?t:o.Kl},[]),P=(0,u.useCallback)(a=>{var n;return"".concat(o.vi,"/").concat(e,"/").concat(null!==(n=a.id)&&void 0!==n?n:o.Kl).concat(I?"#".concat(I):"")},[e,I]),B=(0,u.useMemo)(()=>({enableSelection:!0,getRowKey:D,isLoading:T,isFetching:L,dataSource:(null==b?void 0:b.items)||[],totalRows:(null==b?void 0:b.total)||0,customTableProps:{locale:{emptyText:(0,t.jsx)(_.oj8,{image:_.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})}}}),[D,T,L,null==b?void 0:b.items,null==b?void 0:b.total]),O=(0,S.V)(f,B),{selectedRows:K,resetSelections:V}=O,H=(0,u.useCallback)(async a=>{l(void 0),await y(a),x(),V()},[y,x,V]),{columns:Z}=k({monitorId:e,onTabChange:H,readonly:M,allowIgnore:!N.diff_status.includes(F.LL.MUTED),consentStatus:r,rowClickUrl:P});(0,u.useEffect)(()=>{if((null==b?void 0:b.items)&&!r){var a;let e=null===(a=b.items.find(a=>{var e;return(null===(e=a.consent_status)||void 0===e?void 0:e.status)===F.pF.ALERT}))||void 0===a?void 0:a.consent_status;l(null!=e?e:void 0)}},[b,r]);let z=(0,u.useCallback)(async()=>{let a=K.reduce((a,e)=>a+e.total_updates,0),t=await j({monitor_config_key:e,resolved_system_ids:K.map(a=>a.id)});(0,c.D4)(t)?s((0,m.Vo)((0,c.e$)(t.error))):(s((0,m.t5)((0,h._)("".concat(a," assets have been added to the system inventory."),()=>n.push(o.So)))),V())},[K,j,e,s,n,V]),W=(0,u.useCallback)(async()=>{let a=K.reduce((a,e)=>a+e.total_updates,0),n=await R({monitor_config_key:e,resolved_system_ids:K.map(a=>{var e;return null!==(e=a.id)&&void 0!==e?e:o.Kl})});(0,c.D4)(n)?s((0,m.Vo)((0,c.e$)(n.error))):(s((0,m.t5)((0,h._)("".concat(a," assets have been ignored and will not appear in future scans."),async()=>{await y(A.A.IGNORED)}))),V())},[K,R,e,s,y,V]),Q=K.some(a=>null===a.id);return{columns:Z,data:b,isLoading:T,isFetching:L,searchQuery:p,updateSearch:U,resetState:x,tableProps:O.tableProps,selectionProps:O.selectionProps,filterTabs:d,activeTab:I,handleTabChange:H,activeParams:N,actionsDisabled:M,selectedRows:K,hasSelectedRows:O.hasSelectedRows,resetSelections:V,uncategorizedIsSelected:Q,handleBulkAdd:z,handleBulkIgnore:W,anyBulkActionIsLoading:w||G,isAddingResults:w,isIgnoringResults:G}},j=a=>{let{monitorId:e}=a,{columns:n,searchQuery:i,updateSearch:s,tableProps:o,selectionProps:r,filterTabs:u,activeTab:c,handleTabChange:S,activeParams:m,selectedRows:C,hasSelectedRows:v,uncategorizedIsSelected:h,handleBulkAdd:A,handleBulkIgnore:I,anyBulkActionIsLoading:y}=L({monitorId:e});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(_.Niu,{"aria-label":"Asset state filter",mode:"horizontal",items:u.map(a=>({key:a.hash,label:a.label})),selectedKeys:[c],onClick:async a=>{await S(a.key)},className:"mb-4","data-testid":"asset-state-filter"}),(0,t.jsxs)(_.jqI,{justify:"space-between",align:"center",className:"mb-4",children:[(0,t.jsx)(d.f,{value:i,onChange:s}),(0,t.jsxs)(_.vyj,{size:"large",children:[v&&(0,t.jsx)(l.a,{count:C.length}),(0,t.jsx)(_.S0p,{menu:{items:[{key:"add",label:(0,t.jsx)(_.esZ,{title:h?"Uncategorized assets can't be added to the inventory":null,placement:"left",children:"Add"}),onClick:A,disabled:h},m.diff_status.includes(F.LL.MUTED)?null:{key:"ignore",label:"Ignore",onClick:I}]},trigger:["click"],children:(0,t.jsx)(_.wpx,{type:"primary",icon:(0,t.jsx)(_.PJP._ME,{}),iconPosition:"end",loading:y,disabled:!v,"data-testid":"bulk-actions-menu",children:"Actions"})})]})]}),(0,t.jsx)(_.V5H,{...o,columns:n,rowSelection:r})]})};var w=()=>{let a=decodeURIComponent((0,i.useRouter)().query.monitorId);return(0,t.jsxs)(s.Z,{title:"Action center - Discovered assets by system",children:[(0,t.jsx)(r.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:o.vi},{title:a}]}),(0,t.jsx)(j,{monitorId:a})]})}},99830:function(a){a.exports={toastLink:"ToastLink_toastLink__OLSeq"}}},function(a){a.O(0,[8765,431,9278,5163,7045,7725,7929,2888,9774,179],function(){return a(a.s=86850)}),_N_E=a.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8443],{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 c,u,l,d,g,f,m=0,v=!1,y=!1,p=!0;if("function"!=typeof e)throw TypeError("Expected a function");function x(t){var n=c,i=u;return c=u=void 0,m=t,d=e.apply(i,n)}function h(e){var n=e-f,i=e-m;return void 0===f||n>=t||n<0||y&&i>=l}function j(){var e,n,i,a=s();if(h(a))return C(a);g=setTimeout(j,(e=a-f,n=a-m,i=t-e,y?o(i,l-n):i))}function C(e){return(g=void 0,p&&c)?x(e):(c=u=void 0,d)}function b(){var e,n=s(),i=h(n);if(c=arguments,u=this,f=n,i){if(void 0===g)return m=e=f,g=setTimeout(j,t),v?x(e):d;if(y)return clearTimeout(g),g=setTimeout(j,t),x(f)}return void 0===g&&(g=setTimeout(j,t)),d}return t=a(t)||0,i(n)&&(v=!!n.leading,l=(y="maxWait"in n)?r(a(n.maxWait)||0,t):l,p="trailing"in n?!!n.trailing:p),b.cancel=function(){void 0!==g&&clearTimeout(g),m=0,c=f=u=g=void 0},b.flush=function(){return void 0===g?d:C(s())},b}},11611:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},55193:function(e,t,n){var i=n(99736),s=n(92360);e.exports=function(e){return"symbol"==typeof e||s(e)&&"[object Symbol]"==i(e)}},82846:function(e,t,n){var i=n(77400);e.exports=function(){return i.Date.now()}},40741:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center",function(){return n(2656)}])},30952:function(e,t,n){"use strict";n.d(t,{f:function(){return c}});var i=n(24246),s=n(66726),a=n.n(s),r=n(27378),o=n(26917);let c=e=>{let{value:t,onChange:n,placeholder:s,...c}=e,[u,l]=(0,r.useState)(t);(0,r.useEffect)(()=>{l(t||"")},[t]);let d=a()(n,500),g=(0,r.useCallback)(e=>{l(e),d(e)},[]);return(0,i.jsx)(o.Z,{value:u,onChange:g,onClear:()=>{l(""),n("")},placeholder:s,...c})}},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var i=n(24246),s=n(96306),a=n(88038),r=n.n(a),o=n(86677);n(27378);var c=n(25980),u=n(90867),l=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."," "]})]})})},f=e=>{let{children:t,title:n,padded:a=!0,mainProps:d}=e,f=(0,c.hz)(),m=(0,o.useRouter)(),v="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,y=!(f.flags.messagingConfiguration&&v),{data:p}=(0,l.JE)(void 0,{skip:y}),{data:x}=(0,u.PW)(void 0,{skip:y}),h=f.flags.messagingConfiguration&&(!p||!x)&&v;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:[h?(0,i.jsx)(g,{}):null,t]})]})}},42478:function(e,t,n){"use strict";n.d(t,{FU:function(){return u},JE:function(){return s},Ki:function(){return d},SU:function(){return g},W:function(){return f},h9:function(){return a},jc:function(){return i},qt:function(){return c},sn:function(){return l}});let{useGetEmailInviteStatusQuery:i,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:a,useCreateMessagingConfigurationSecretsMutation:r,useGetMessagingConfigurationDetailsQuery:o,useGetMessagingConfigurationsQuery:c,useGetMessagingConfigurationByKeyQuery:u,useUpdateMessagingConfigurationByKeyMutation:l,useUpdateMessagingConfigurationSecretsByKeyMutation:d,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:f}=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"]})})})},2656:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return k}});var i=n(24246),s=n(96306),a=n(79894),r=n.n(a),o=n(27378),c=n(30952),u=n(77213),l=n(77830),d=n(58754),g=n(47935),f=n(7426),m=n(37059);let v=e=>{let{isConfigLoading:t}=e;return(0,i.jsx)(u.Z,{title:"Action center",mainProps:{className:"h-full"},children:(0,i.jsx)(s.jqI,{justify:"center",align:"center",className:"h-full",children:t?(0,i.jsx)(s.$jN,{color:"primary.900"}):(0,i.jsx)(s.DUx,{message:"Coming soon...",description:"Action center is currently disabled.",type:"info",showIcon:!0})})})},y=()=>(0,i.jsx)(s.oj8,{image:s.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up! Set up an integration monitor to track your infrastructure in greater detail.",children:(0,i.jsx)(r(),{href:l.KH,passHref:!0,legacyBehavior:!0,children:(0,i.jsx)(s.wpx,{type:"primary",children:"Visit integrations"})})});var p=n(10969),x=n(60145),h=n(11558),j=n(70641),C=n(7317),b=n(85302),T=n(64892),w=n(16394),M=n(21910),S=n(54762);let{Text:E}=s.AntTypography,_=e=>{let{monitorSummary:t,showSkeleton:n,...a}=e,{name:c,consent_status:u,total_updates:d,updates:g,last_monitored:f,secrets:m,key:v,connection_type:y}=t,_=(0,o.useMemo)(()=>(null==m?void 0:m.url)?(0,w.ge)(m.url):void 0,[null==m?void 0:m.url]),k=(0,o.useMemo)(()=>_?(0,w.tl)(_,60):void 0,[_]),P=Object.entries(g).map(e=>"".concat(e[1]," ").concat(e[0],"s")).join(", "),q=f?(0,w.p6)(new Date(f)):void 0,D=f?function(e,t,n){let i;let s=(0,x.j)(),a=n?.locale??s.locale??p._,r=(0,b.U)(e,t);if(isNaN(r))throw RangeError("Invalid time value");let o=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:r}),[c,u]=(0,C.d)(n?.in,...r>0?[t,e]:[e,t]),l=(0,h.u)(n?.roundingMethod??"round"),d=u.getTime()-c.getTime(),g=d/T.yJ,f=(d-((0,j.D)(u)-(0,j.D)(c)))/T.yJ,m=n?.unit;if("second"===(i=m||(g<1?"second":g<60?"minute":g<T.H_?"hour":f<T.fH?"day":f<T.UU?"month":"year"))){let e=l(d/1e3);return a.formatDistance("xSeconds",e,o)}if("minute"===i){let e=l(g);return a.formatDistance("xMinutes",e,o)}if("hour"===i){let e=l(g/60);return a.formatDistance("xHours",e,o)}if("day"===i){let e=l(f/T.H_);return a.formatDistance("xDays",e,o)}if("month"===i){let e=l(f/T.fH);return 12===e&&"month"!==m?a.formatDistance("xYears",1,o):a.formatDistance("xMonths",e,o)}{let e=l(f/T.UU);return a.formatDistance("xYears",e,o)}}(new Date(f),new Date,{addSuffix:!0}):void 0;return(0,i.jsx)(s.krs.Item,{"data-testid":"monitor-result-".concat(v),...a,children:(0,i.jsx)(s.N_L,{avatar:!0,title:!1,loading:n,active:!0,children:(0,i.jsxs)(s.bue,{gutter:12,className:"w-full",children:[(0,i.jsx)(s.JGx,{span:17,className:"align-middle",children:(0,i.jsx)(s.krs.Item.Meta,{avatar:(0,i.jsx)(s.t3Z,{src:k,size:30,icon:(0,i.jsx)(s.PJP.huD,{size:30}),style:{backgroundColor:"transparent",color:"var(--ant-color-text)"},alt:"".concat(_," icon")}),title:(0,i.jsxs)(s.jqI,{align:"center",gap:4,children:[(0,i.jsx)(r(),{href:"".concat(l.vi,"/").concat(v),className:"whitespace-nowrap",children:"".concat(d," assets detected").concat(_?" on ".concat(_):"")}),(0,i.jsx)(S.l,{consentStatus:u}),y===M.Rj.TEST_WEBSITE&&(0,i.jsx)(s.j8w,{color:"nectar",style:{fontWeight:"normal"},children:"test monitor"})]}),description:"".concat(P," detected.")})}),(0,i.jsx)(s.JGx,{span:4,className:"flex items-center justify-end",children:(0,i.jsx)(E,{ellipsis:{tooltip:c},children:c})}),(0,i.jsx)(s.JGx,{span:3,className:"flex items-center justify-end",children:!!D&&(0,i.jsx)(E,{"data-testid":"monitor-date",ellipsis:{tooltip:q},children:D})})]})})})};var k=()=>{var e;let t=(0,s.pmc)(),{PAGE_SIZES:n,pageSize:a,setPageSize:p,onPreviousPageClick:x,isPreviousPageDisabled:h,onNextPageClick:j,isNextPageDisabled:C,startRange:b,endRange:T,pageIndex:w,setTotalPages:M,resetPageIndexToDefault:S}=(0,g.oi)(),[E,k]=(0,o.useState)(""),{data:P,isLoading:q}=(0,f.tB)({api_set:!1}),D=!!(null==P?void 0:null===(e=P.detection_discovery)||void 0===e?void 0:e.website_monitor_enabled);(0,o.useEffect)(()=>{S()},[E,S]);let{data:N,isError:I,isLoading:A,isFetching:U}=(0,m.Ud)({page:w,size:a,search:E},{skip:q||!D});(0,o.useEffect)(()=>{I&&t&&D&&t({title:"Error fetching data",description:"Please try again later",status:"error"})},[I,t,D]),(0,o.useEffect)(()=>{if(N){var e;M(null!==(e=N.total)&&void 0!==e?e:1)}},[N,M]);let R=(null==N?void 0:N.items)||[],B=U?Array.from({length:a},(e,t)=>({key:t.toString(),updates:[],last_monitored:null})):[],H=(0,o.useCallback)(e=>[(0,i.jsx)(r(),{href:"".concat(l.vi,"/").concat(e),passHref:!0,legacyBehavior:!0,children:(0,i.jsx)(s.wpx,{type:"link",className:"p-0","data-testid":"review-button-".concat(e),children:"Review"})},"review")],[]);return D?(0,i.jsxs)(u.Z,{title:"Action center",children:[(0,i.jsx)(d.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity"}]}),(0,i.jsx)(s.jqI,{className:"justify-between py-6",children:(0,i.jsx)(c.f,{value:E,onChange:k})}),(0,i.jsx)(s.krs,{loading:A,dataSource:R||B,locale:{emptyText:(0,i.jsx)(y,{})},renderItem:e=>!!(null==e?void 0:e.key)&&(0,i.jsx)(_,{showSkeleton:U,monitorSummary:e,actions:H(e.key)},e.key)}),!!R&&!!(null==N?void 0:N.total)&&N.total>a&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.htM,{className:"mb-6 mt-0"}),(0,i.jsx)(g.s8,{totalRows:(null==N?void 0:N.total)||0,pageSizes:n,setPageSize:p,onPreviousPageClick:x,isPreviousPageDisabled:h||U,onNextPageClick:j,isNextPageDisabled:C||U,startRange:b,endRange:T})]})]}):(0,i.jsx)(v,{isConfigLoading:q})}}},function(e){e.O(0,[7725,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-a28cc0e23bbe4fc8.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7477],{74833:function(e,t,i){var r=i(56127),n=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(n,""):e}},56127:function(e){var t=/\s/;e.exports=function(e){for(var i=e.length;i--&&t.test(e.charAt(i)););return i}},11611:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},55193:function(e,t,i){var r=i(99736),n=i(92360);e.exports=function(e){return"symbol"==typeof e||n(e)&&"[object Symbol]"==r(e)}},91936:function(e,t,i){var r=i(74833),n=i(11611),s=i(55193),a=0/0,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(s(e))return a;if(n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=n(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var i=l.test(e);return i||c.test(e)?d(e.slice(2),i?2:8):o.test(e)?a:+e}},45550:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/activity",function(){return i(3680)}])},58754:function(e,t,i){"use strict";var r=i(24246),n=i(96306),s=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:a=!0,children:o,rightContent:l,style:c,...d}=e;return(0,r.jsxs)("div",{...d,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,r.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,r.jsx)(n.lQT,{className:i||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!i&&(0,r.jsx)(s.m,{className:o?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),o]})}},17245:function(e,t,i){"use strict";i.d(t,{HK:function(){return a},VY:function(){return n.V},pI:function(){return d},h0:function(){return r.h},Rx:function(){return f},rK:function(){return p}});var r=i(36866),n=i(84306),s=i(812);let a=()=>{let{errorAlert:e}=(0,n.V)();return{handleError:t=>{let i="An unexpected error occurred. Please try again.";(0,s.Ot)(t)?i=t.data.detail:(0,s.tB)(t)&&(i=t.data.detail[0].msg),e(i)}}};var o=i(27378),l=i(20682),c=i(21910);let d=e=>{let{data:t}=(0,l.$I)({}),i=(0,o.useMemo)(()=>(null==t?void 0:t.items)||[],[t]);return(0,o.useMemo)(()=>{var t;if(!e)return"";if(e.connection_type===c.Rj.SAAS&&(null===(t=e.saas_config)||void 0===t?void 0:t.type)){let t=i.find(t=>{var i;return t.identifier===(null===(i=e.saas_config)||void 0===i?void 0:i.type)});if(t)return t}return e},[e,i])};var u=i(40431);let g=()=>({search:u.Oi.withDefault("")}),f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultSearchQuery:t,onSearchChange:i}=e,r=(0,o.useMemo)(()=>g(),[]),[n,s]=(0,u.XI)(r,{history:"push"}),a=(0,o.useMemo)(()=>({searchQuery:n.search||t||void 0}),[n,t]),l=(0,o.useCallback)(e=>{s({search:e||null})},[s]),c=(0,o.useCallback)(()=>{s({search:null})},[s]);return(0,o.useEffect)(()=>{i&&i(a)},[a,i]),{...a,updateSearch:l,resetSearch:c,searchProps:{value:a.searchQuery||"",onChange:l,onClear:()=>l("")}}},h=e=>({sortKey:e?(0,u.jx)([...e]):u.Oi.withDefault(""),sortOrder:(0,u.km)(["ascend","descend"])}),p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultSortKey:t,defaultSortOrder:i,onSortingChange:r,validColumns:n}=e,s=(0,o.useMemo)(()=>h(n),[n]),[a,l]=(0,u.XI)(s,{history:"push"}),c=(0,o.useMemo)(()=>{var e;return{sortKey:a.sortKey||t,sortOrder:null!==(e=a.sortOrder)&&void 0!==e?e:i}},[a,t,i]),d=(0,o.useCallback)((e,t)=>{l({sortKey:e?String(e):null,sortOrder:null!=t?t:null})},[l]),g=(0,o.useCallback)(()=>{l({sortKey:null,sortOrder:null})},[l]);return(0,o.useEffect)(()=>{r&&r(c)},[c,r]),{...c,updateSorting:d,resetSorting:g,sortingProps:{sortDirections:["ascend","descend"],defaultSortOrder:c.sortOrder,sortedInfo:c.sortKey?{field:c.sortKey,order:c.sortOrder}:void 0}}}},84306:function(e,t,i){"use strict";i.d(t,{V:function(){return s}});var r=i(24246),n=i(96306);let s=()=>{let e=(0,n.pmc)();return{errorAlert:(t,i,s)=>{let a={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=e;return(0,r.jsxs)(n.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,r.jsx)(n.zMQ,{}),(0,r.jsxs)(n.xuv,{children:[i&&(0,r.jsx)(n.CdC,{children:i}),(0,r.jsx)(n.XaZ,{children:t})]}),(0,r.jsx)(n.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,a):e(a)},successAlert:(t,i,s)=>{let a={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=e;return(0,r.jsxs)(n.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,r.jsx)(n.zMQ,{}),(0,r.jsxs)(n.xuv,{children:[i&&(0,r.jsx)(n.CdC,{children:i}),(0,r.jsx)(n.XaZ,{children:t})]}),(0,r.jsx)(n.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,a):e(a)}}}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return c}});var r=i(24246),n=i(96306),s=i(79894),a=i.n(s),o=i(27378);let{Text:l}=n.AntTypography,c=e=>{let{items:t,...i}=e,s=(0,o.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let s=i===t.length-1,o={...e},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,r.jsx)(l,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,id:s?"breadcrumb-current-page":void 0,children:o.title})),c)?o.title=(0,r.jsx)(n.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,r.jsx)(a(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,r.jsx)(n.zrq,{items:s,...i})}},36866:function(e,t,i){"use strict";i.d(t,{h:function(){return c}});var r=i(40431),n=i(27378),s=i(55484);let a=(0,r.jo)({parse(e){let t=parseInt(e,10);try{return s.Rx().integer().positive().validateSync(t),t}catch(e){return null}},serialize:e=>e.toString()});var o=i(32735);let l=function(){var e,t;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=i.pageQueryKey||"page",s=i.sizeQueryKey||"size";return{[n]:a.withDefault(o.Ej),[s]:i.pageSizeOptions?(0,r.bJ)(i.pageSizeOptions).withDefault(null!==(e=i.pageSize)&&void 0!==e?e:o.L8):a.withDefault(null!==(t=i.pageSize)&&void 0!==t?t:o.L8)}},c=function(){var e,t;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultPageSize:s=o.L8,pageSizeOptions:a,showSizeChanger:c=!0,pageQueryKey:d="page",sizeQueryKey:u="size"}=i,g=null!=a?a:o.VZ,f=(0,n.useMemo)(()=>l({pageSize:s,pageSizeOptions:a,pageQueryKey:d,sizeQueryKey:u}),[s,a,d,u]),[h,p]=(0,r.XI)(f,{history:"push"}),L={pageIndex:null!==(e=h[d])&&void 0!==e?e:o.Ej,pageSize:null!==(t=h[u])&&void 0!==t?t:s};return{...L,updatePageIndex:e=>{p({[d]:e})},updatePageSize:e=>{p({[d]:e!==L.pageSize?o.Ej:L.pageIndex,[u]:e})},resetPagination:()=>{p({[d]:o.Ej,[u]:s})},nextPage:()=>{p(e=>({[d]:e[d]+1,[u]:e[u]}))},previousPage:()=>{p(e=>({[d]:e[d]-1,[u]:e[u]}))},pageSizeOptions:g,showSizeChanger:c}}},54409:function(e,t,i){"use strict";i.d(t,{Z:function(){return h}});var r=i(24246),n=i(96306),s=i(812),a=i(17245),o=i(21910),l=i(31883);let c=(0,n.IUT)({displayName:"MonitorOffIcon",viewBox:"0 0 12 12",path:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.47125 1H5.85H6.15H6.51188L6.58875 1.36914L7.52062 5.83268L6.42408 4.98635L6.03375 3.11719L5.8038 4.50761L4.99323 3.882L5.40562 1.38867L5.47125 1ZM4.80795 5.0022L4.67675 5.79545L5.48735 6.42109L5.61854 5.62783L4.80795 5.0022ZM6.73856 6.49227L6.96125 7.55866L8.42407 8.6877L8.69498 8.00228L7.94864 7.42624L7.88625 7.58398L7.83501 7.33853L6.73856 6.49227ZM8.33138 6.45844L9.07755 7.03434L9.30188 6.4668H11.55H12V5.5293H11.55H9H8.69812L8.58375 5.82031L8.33138 6.45844ZM7.27551 9.06443L7.35399 9.125H7.28813L7.27551 9.06443ZM4.49147 6.91566L5.30209 7.54131L4.79437 10.6113L4.72875 11H4.35H4.05H3.69563L3.61313 10.6406L2.64563 6.46875H0.45H0V5.53125H0.45H2.69777L3.49646 6.1477L4.15125 8.97266L4.49147 6.91566Z",fill:"currentColor"}),(0,r.jsx)("g",{clipPath:"url(#clip0_341_3102)",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6755 10.4168L0.164222 2.304L0.775218 1.51237L11.2865 9.62517L10.6755 10.4168Z",fill:"currentColor"})}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_341_3102",children:(0,r.jsx)("rect",{width:"11.5",height:"9",fill:"white",transform:"translate(0 1.5)"})})})]})}),d=(0,n.IUT)({displayName:"MonitorOnIcon",viewBox:"0 0 12 10",path:(0,r.jsx)("path",{d:"M5.47125 0H5.85H6.15H6.51188L6.58875 0.369141L7.88625 6.58398L8.58375 4.82031L8.69812 4.5293H9H11.55H12V5.4668H11.55H9.30188L8.36625 7.83398L8.25188 8.125H7.95H7.65H7.28813L7.21125 7.75586L6.03375 2.11719L4.79437 9.61133L4.72875 10H4.35H4.05H3.69563L3.61313 9.64062L2.64563 5.46875H0.45H0V4.53125H0.45H3H3.35438L3.43688 4.89062L4.15125 7.97266L5.40562 0.388672L5.47125 0Z",fill:"currentColor"})});var u=i(79494),g=i(70675),f=i(7940),h=e=>{let{resource:t,ignoreChildActions:i=!1}=e,h=(0,f.G)(t),[p,{isLoading:L}]=(0,g.v8)(),[x,{isLoading:m}]=(0,g.vi)(),[v,{isLoading:j}]=(0,g.Tl)(),{successAlert:I,errorAlert:C}=(0,a.VY)(),y=async()=>{let e=await p({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id});(0,l.D4)(e)?C((0,s.e$)(e.error,"Failed to confirm resource")):I("Data discovery has started. The results may take some time to appear in the “Data discovery“ tab.","".concat(t.name||"The resource"," is now being monitored."))},_=async()=>{let e=await v({staged_resource_urn:t.urn});(0,l.D4)(e)?C((0,s.e$)(e.error),"Failed to un-mute resource"):I("".concat(t.name||"The resource"," has been un-muted and is now being monitored."))},A=async()=>{let e=await p({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id,unmute_children:!0,classify_monitored_resources:!0});(0,l.D4)(e)?C((0,s.e$)(e.error),"Failed to un-mute resource"):I("Data discovery has started. The results may take some time to appear in the “Data discovery“ tab.","".concat(t.name||"The resource"," is now being monitored."))},D=async()=>{let e=await x({staged_resource_urn:t.urn});(0,l.D4)(e)?C((0,s.e$)(e.error),"Failed to mute resource"):I("Ignored data will not be monitored for changes or added to Fides datasets.","".concat(t.name||"Resource"," ignored"))},S=L||m||j,{diff_status:T,child_diff_statuses:b}=t,O=h===o.D$.SCHEMA,w=h===o.D$.FIELD,N=b&&(b[o.LL.CLASSIFICATION_ADDITION]||b[o.LL.CLASSIFICATION_UPDATE]),M=O&&void 0===T||!w&&T===o.LL.ADDITION||N,H=T!==o.LL.MUTED,Z=T===o.LL.MUTED&&!w,E=T===o.LL.MUTED&&w,R=b&&(b[o.LL.ADDITION]||b[o.LL.REMOVAL]),k=T===o.LL.MONITORED&&!i&&R&&!N;return(0,r.jsxs)(n.Ugi,{children:[(M||k)&&(0,r.jsx)(u.Z,{title:"Monitor",icon:(0,r.jsx)(d,{}),onClick:y,disabled:S,loading:L}),E&&(0,r.jsx)(u.Z,{title:"Un-Mute",icon:(0,r.jsx)(d,{}),onClick:_,disabled:S,loading:L}),Z&&(0,r.jsx)(u.Z,{title:"Monitor",icon:(0,r.jsx)(d,{}),onClick:A,disabled:S,loading:L}),H&&(0,r.jsx)(u.Z,{title:"Ignore",icon:(0,r.jsx)(c,{}),onClick:D,disabled:S,loading:m})]})}},91761:function(e,t,i){"use strict";var r=i(24246),n=i(96306),s=i(812),a=i(17245),o=i(7940),l=i(98559),c=i(21910),d=i(79494),u=i(70675);t.Z=e=>{let{resource:t}=e,[i,{isLoading:g}]=(0,u.v8)(),[f,{isLoading:h}]=(0,u.cM)(),[p,{isLoading:L}]=(0,u.vi)(),x=h||L||g,{diff_status:m,child_diff_statuses:v,top_level_field_name:j}=t,{successAlert:I,errorAlert:C}=(0,a.VY)(),y=m===c.LL.CLASSIFICATION_ADDITION||m===c.LL.CLASSIFICATION_UPDATE,_=v&&(v[c.LL.CLASSIFICATION_ADDITION]||v[c.LL.CLASSIFICATION_UPDATE]),A=(y||_)&&!j,D=y||_,S=(0,o.G)(t)!==c.D$.FIELD,T=A&&D&&S,b=async()=>{let e=await f({staged_resource_urn:t.urn});(0,s.D4)(e)?C((0,s.e$)(e.error),"Failed to promote resource"):I('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},O=async()=>{let e=await p({staged_resource_urn:t.urn});(0,s.D4)(e)?C((0,s.e$)(e.error),"Failed to mute resource"):I("Ignored changes will not be added to a Fides dataset.","".concat(t.name||"Changes"," ignored"))},w=async()=>{let e=await i({staged_resource_urn:t.urn,monitor_config_id:t.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,s.D4)(e)?C((0,s.e$)(e.error),"Failed to reclassify resource"):I("Reclassification of ".concat((0,l.Z)(t)||"the resource"," has begun. The results may take some time to appear in the “Data discovery“ tab."),"Reclassification started")};return(0,r.jsxs)(n.Ugi,{gap:2,children:[A&&(0,r.jsx)(d.Z,{title:"Confirm",icon:(0,r.jsx)(n.nQG,{}),onClick:b,disabled:x,loading:h}),D&&(0,r.jsx)(d.Z,{title:"Ignore",icon:(0,r.jsx)(n.tpL,{}),onClick:O,disabled:x,loading:L}),S&&!T&&(0,r.jsx)(d.Z,{title:"Reclassify",icon:(0,r.jsx)(n.nyI,{}),onClick:w,disabled:x,loading:g}),T&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.LZC,{}),(0,r.jsxs)(n.v2r,{children:[(0,r.jsx)(n.j2t,{as:n.wpx,size:"small",type:"text",icon:(0,r.jsx)(n.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-overflow-btn"}),(0,r.jsx)(n.qyq,{children:(0,r.jsx)(n.sNh,{onClick:w,icon:(0,r.jsx)(n.nyI,{}),"data-testid":"action-reclassify",children:"Reclassify"})})]})]})]})}},3680:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return N}});var r,n,s=i(24246),a=i(27378),o=i(35287),l=i(58754),c=i(47182),d=i(92222),u=i(59003),g=i(96306),f=i(47935),h=i(72625),p=i(70675),L=i(38347),x=i(87667),m=i(50169),v=i(80285),j=i(30952);(r=n||(n={})).DATASET="Dataset",r.CLASSIFICATION="Classification";var I=i(74241),C=i(28278),y=i(20449),_=e=>(0,y.Z)(e)===C.E.CLASSIFICATION?n.CLASSIFICATION:n.DATASET,A=i(54409),D=i(91761);let S={items:[],total:0,page:1,size:50,pages:1},T=()=>(0,s.jsx)(g.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,s.jsxs)(g.gCW,{children:[(0,s.jsx)(g.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,s.jsx)(g.xvT,{fontSize:"sm",children:"You're up to date!"})]})}),b=(0,d.Cl)();var O=e=>{let{onRowClick:t,statusFilters:i,childsStatusFilters:r}=e,[o,l]=(0,a.useState)(""),{PAGE_SIZES:c,pageSize:C,setPageSize:y,onPreviousPageClick:O,isPreviousPageDisabled:w,onNextPageClick:N,isNextPageDisabled:M,startRange:H,endRange:Z,pageIndex:E,setTotalPages:R}=(0,f.oi)(),{isFetching:k,isLoading:F,data:P}=(0,p.z8)({diff_status:i,child_diff_status:r,page:E,size:C,search:o}),{items:z,total:V,pages:U}=(0,a.useMemo)(()=>null!=P?P:S,[P]);(0,a.useEffect)(()=>{R(U)},[U,R]);let $=(0,a.useMemo)(()=>[b.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(x.Z,{result:e.row.original}),header:e=>(0,s.jsx)(f.Rr,{value:"Name",...e})}),b.accessor(e=>e.urn,{id:"project",cell:e=>(0,s.jsx)(f.G3,{value:(0,I.Z)(e.getValue())}),header:e=>(0,s.jsx)(f.Rr,{value:"Project",...e})}),b.display({id:"status",cell:e=>(0,s.jsx)(m.Z,{result:e.row.original}),header:e=>(0,s.jsx)(f.Rr,{value:"Status",...e})}),b.accessor(e=>e.system,{id:"system",cell:e=>(0,s.jsx)(f.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(f.Rr,{value:"System",...e})}),b.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,s.jsx)(f.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(f.Rr,{value:"Detected by",...e})}),b.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,s.jsx)(h.Cy,{time:e.getValue()}),header:e=>(0,s.jsx)(f.Rr,{value:"When",...e})}),b.accessor(e=>e,{id:"action",cell:e=>_(e.getValue())===n.DATASET?(0,s.jsx)(A.Z,{resource:e.getValue()}):(0,s.jsx)(D.Z,{resource:e.getValue()}),header:e=>(0,s.jsx)(f.Rr,{value:"Action",...e})})],[]),K=(0,u.b7)({getCoreRowModel:(0,d.sC)(),getGroupedRowModel:(0,d.qe)(),getExpandedRowModel:(0,d.rV)(),getRowId:v.Z,columns:$,manualPagination:!0,data:z,columnResizeMode:"onChange"});return F?(0,s.jsx)(f.I4,{rowHeight:36,numRows:36}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(f.Q$,{children:(0,s.jsxs)(g.kCb,{gap:6,align:"center",children:[(0,s.jsx)(g.xuv,{flexShrink:0,children:(0,s.jsx)(j.f,{value:o,onChange:l})}),(0,s.jsx)(L.a,{})]})}),(0,s.jsx)(f.ZK,{tableInstance:K,onRowClick:t,emptyTableNotice:(0,s.jsx)(T,{})}),(0,s.jsx)(f.s8,{totalRows:V||0,pageSizes:c,setPageSize:y,onPreviousPageClick:O,isPreviousPageDisabled:w||k,onNextPageClick:N,isNextPageDisabled:M||k,startRange:H,endRange:Z})]})},w=i(21910),N=()=>{let{navigateToDetectionResults:e,navigateToDiscoveryResults:t}=(0,c.Z)();return(0,s.jsxs)(o.Z,{title:"Data discovery",children:[(0,s.jsx)(l.Z,{heading:"All activity"}),(0,s.jsx)(O,{onRowClick:i=>{if(_(i)===n.DATASET){e({resourceUrn:i.urn});return}t({resourceUrn:i.urn})},statusFilters:[w.LL.ADDITION,w.LL.REMOVAL,w.LL.CLASSIFICATION_ADDITION,w.LL.CLASSIFICATION_UPDATE],childsStatusFilters:[w.LL.ADDITION,w.LL.REMOVAL,w.LL.CLASSIFICATION_ADDITION,w.LL.CLASSIFICATION_UPDATE]})]})}},31883:function(e,t,i){"use strict";i.d(t,{Bw:function(){return r.Bw},D4:function(){return r.D4}});var r=i(19043)}},function(e){e.O(0,[431,8002,2888,9774,179],function(){return e(e.s=45550)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9738],{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 x}});var i=n(24246),r=n(96306),s=n(88038),l=n.n(s),a=n(86677);n(27378);var o=n(25980),d=n(90867),u=n(42478),c=n(77830),g=()=>{let e=(0,a.useRouter)();return(0,i.jsx)(r.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(r.xuv,{children:[(0,i.jsxs)(r.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(r.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(r.wpx,{onClick:()=>{e.push(c.AD)},children:"Configure"})]}),(0,i.jsxs)(r.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},x=e=>{let{children:t,title:n,padded:s=!0,mainProps:c}=e,x=(0,o.hz)(),h=(0,a.useRouter)(),m="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,p=!(x.flags.messagingConfiguration&&m),{data:f}=(0,u.JE)(void 0,{skip:p}),{data:v}=(0,d.PW)(void 0,{skip:p}),j=x.flags.messagingConfiguration&&(!f||!v)&&m;return(0,i.jsxs)(r.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(l(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(r.kCb,{as:"main",direction:"column",py:s?6:0,px:s?10:0,h:s?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[j?(0,i.jsx)(g,{}):null,t]})]})}},58754:function(e,t,n){"use strict";var i=n(24246),r=n(96306),s=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:l=!0,children:a,rightContent:o,style:d,...u}=e;return(0,i.jsxs)("div",{...u,style:l?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,i.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(r.lQT,{className:n||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,i.jsx)(s.m,{className:a?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),a]})}},97181:function(e,t,n){"use strict";n.d(t,{d:function(){return d}});var i=n(24246),r=n(96306),s=n(34090),l=n(27378),a=n(46238),o=n(40324);let d=e=>{let{name:t,label:n,labelProps:d,tooltip:u,isRequired:c,layout:g="inline",helperText:x,...h}=e,[m,p,{setValue:f}]=(0,s.U$)(t),v=!!(p.touched&&p.error),[j,y]=(0,l.useState)("");m.value||"tags"!==h.mode&&"multiple"!==h.mode||(m.value=[]),"tags"===h.mode&&"string"==typeof m.value&&(m.value=[m.value]);let C="tags"===h.mode?(e,t)=>e?e.value!==j||m.value.includes(j)?h.optionRender?h.optionRender(e,t):e.label:'Create "'.concat(j,'"'):void 0:h.optionRender||void 0,b=e=>{y(e),h.onSearch&&h.onSearch(e)},w=(e,t)=>{f(e),h.onChange&&h.onChange(e,t)};return"inline"===g?(0,i.jsx)(r.NIc,{isInvalid:v,isRequired:c,children:(0,i.jsxs)(r.rjZ,{templateColumns:n?"1fr 3fr":"1fr",children:[n?(0,i.jsx)(o.__,{htmlFor:h.id||t,...d,children:n}):null,(0,i.jsxs)(r.jqI,{align:"center",children:[(0,i.jsxs)(r.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,i.jsx)(r.WPr,{...m,id:h.id||t,"data-testid":"controlled-select-".concat(m.name),...h,optionRender:C,onSearch:"tags"===h.mode?b:void 0,onChange:w,value:m.value||void 0,status:v?"error":void 0}),x&&(0,i.jsx)(r.Q6r,{children:x}),(0,i.jsx)(o.Bc,{isInvalid:v,message:p.error,fieldName:m.name})]}),(0,i.jsx)(a.b,{label:u,className:v?"mt-2 self-start":void 0})]})]})}):(0,i.jsx)(r.NIc,{isInvalid:v,isRequired:c,children:(0,i.jsxs)(r.gCW,{alignItems:"start",children:[(0,i.jsxs)(r.jqI,{align:"center",children:[n?(0,i.jsx)(o.__,{htmlFor:h.id||t,fontSize:"xs",my:0,mr:1,...d,children:n}):null,(0,i.jsx)(a.b,{label:u})]}),(0,i.jsx)(r.WPr,{...m,id:h.id||t,"data-testid":"controlled-select-".concat(m.name),...h,optionRender:C,onSearch:"tags"===h.mode?b:void 0,onChange:w,value:m.value||void 0,status:v?"error":void 0}),x&&(0,i.jsx)(r.Q6r,{style:{marginTop:0},children:x}),(0,i.jsx)(o.Bc,{isInvalid:v,message:p.error,fieldName:m.name})]})})}},17245:function(e,t,n){"use strict";n.d(t,{HK:function(){return l},VY:function(){return r.V},pI:function(){return u},h0:function(){return i.h},Rx:function(){return x},rK:function(){return m}});var i=n(36866),r=n(84306),s=n(812);let l=()=>{let{errorAlert:e}=(0,r.V)();return{handleError:t=>{let n="An unexpected error occurred. Please try again.";(0,s.Ot)(t)?n=t.data.detail:(0,s.tB)(t)&&(n=t.data.detail[0].msg),e(n)}}};var a=n(27378),o=n(20682),d=n(21910);let u=e=>{let{data:t}=(0,o.$I)({}),n=(0,a.useMemo)(()=>(null==t?void 0:t.items)||[],[t]);return(0,a.useMemo)(()=>{var t;if(!e)return"";if(e.connection_type===d.Rj.SAAS&&(null===(t=e.saas_config)||void 0===t?void 0:t.type)){let t=n.find(t=>{var n;return t.identifier===(null===(n=e.saas_config)||void 0===n?void 0:n.type)});if(t)return t}return e},[e,n])};var c=n(40431);let g=()=>({search:c.Oi.withDefault("")}),x=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultSearchQuery:t,onSearchChange:n}=e,i=(0,a.useMemo)(()=>g(),[]),[r,s]=(0,c.XI)(i,{history:"push"}),l=(0,a.useMemo)(()=>({searchQuery:r.search||t||void 0}),[r,t]),o=(0,a.useCallback)(e=>{s({search:e||null})},[s]),d=(0,a.useCallback)(()=>{s({search:null})},[s]);return(0,a.useEffect)(()=>{n&&n(l)},[l,n]),{...l,updateSearch:o,resetSearch:d,searchProps:{value:l.searchQuery||"",onChange:o,onClear:()=>o("")}}},h=e=>({sortKey:e?(0,c.jx)([...e]):c.Oi.withDefault(""),sortOrder:(0,c.km)(["ascend","descend"])}),m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultSortKey:t,defaultSortOrder:n,onSortingChange:i,validColumns:r}=e,s=(0,a.useMemo)(()=>h(r),[r]),[l,o]=(0,c.XI)(s,{history:"push"}),d=(0,a.useMemo)(()=>{var e;return{sortKey:l.sortKey||t,sortOrder:null!==(e=l.sortOrder)&&void 0!==e?e:n}},[l,t,n]),u=(0,a.useCallback)((e,t)=>{o({sortKey:e?String(e):null,sortOrder:null!=t?t:null})},[o]),g=(0,a.useCallback)(()=>{o({sortKey:null,sortOrder:null})},[o]);return(0,a.useEffect)(()=>{i&&i(d)},[d,i]),{...d,updateSorting:u,resetSorting:g,sortingProps:{sortDirections:["ascend","descend"],defaultSortOrder:d.sortOrder,sortedInfo:d.sortKey?{field:d.sortKey,order:d.sortOrder}:void 0}}}},84306:function(e,t,n){"use strict";n.d(t,{V:function(){return s}});var i=n(24246),r=n(96306);let s=()=>{let e=(0,r.pmc)();return{errorAlert:(t,n,s)=>{let l={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=e;return(0,i.jsxs)(r.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,i.jsx)(r.zMQ,{}),(0,i.jsxs)(r.xuv,{children:[n&&(0,i.jsx)(r.CdC,{children:n}),(0,i.jsx)(r.XaZ,{children:t})]}),(0,i.jsx)(r.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,l):e(l)},successAlert:(t,n,s)=>{let l={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=e;return(0,i.jsxs)(r.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,i.jsx)(r.zMQ,{}),(0,i.jsxs)(r.xuv,{children:[n&&(0,i.jsx)(r.CdC,{children:n}),(0,i.jsx)(r.XaZ,{children:t})]}),(0,i.jsx)(r.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,l):e(l)}}}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return d}});var i=n(24246),r=n(96306),s=n(79894),l=n.n(s),a=n(27378);let{Text:o}=r.AntTypography,d=e=>{let{items:t,...n}=e,s=(0,a.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let s=n===t.length-1,a={...e},d=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,i.jsx)(o,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,id:s?"breadcrumb-current-page":void 0,children:a.title})),d)?a.title=(0,i.jsx)(r.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,i.jsx)(l(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,i.jsx)(r.zrq,{items:s,...n})}},36866:function(e,t,n){"use strict";n.d(t,{h:function(){return d}});var i=n(40431),r=n(27378),s=n(55484);let l=(0,i.jo)({parse(e){let t=parseInt(e,10);try{return s.Rx().integer().positive().validateSync(t),t}catch(e){return null}},serialize:e=>e.toString()});var a=n(32735);let o=function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.pageQueryKey||"page",s=n.sizeQueryKey||"size";return{[r]:l.withDefault(a.Ej),[s]:n.pageSizeOptions?(0,i.bJ)(n.pageSizeOptions).withDefault(null!==(e=n.pageSize)&&void 0!==e?e:a.L8):l.withDefault(null!==(t=n.pageSize)&&void 0!==t?t:a.L8)}},d=function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultPageSize:s=a.L8,pageSizeOptions:l,showSizeChanger:d=!0,pageQueryKey:u="page",sizeQueryKey:c="size"}=n,g=null!=l?l:a.VZ,x=(0,r.useMemo)(()=>o({pageSize:s,pageSizeOptions:l,pageQueryKey:u,sizeQueryKey:c}),[s,l,u,c]),[h,m]=(0,i.XI)(x,{history:"push"}),p={pageIndex:null!==(e=h[u])&&void 0!==e?e:a.Ej,pageSize:null!==(t=h[c])&&void 0!==t?t:s};return{...p,updatePageIndex:e=>{m({[u]:e})},updatePageSize:e=>{m({[u]:e!==p.pageSize?a.Ej:p.pageIndex,[c]:e})},resetPagination:()=>{m({[u]:a.Ej,[c]:s})},nextPage:()=>{m(e=>({[u]:e[u]+1,[c]:e[c]}))},previousPage:()=>{m(e=>({[u]:e[u]-1,[c]:e[c]}))},pageSizeOptions:g,showSizeChanger:d}}},99811:function(e,t,n){"use strict";n.d(t,{m:function(){return r}});var i=n(27378);class r{updateTableInstance(e){this.tableInstance=e}constructor(e=null){this.tableInstance=e,this.updateTableInstance=this.updateTableInstance.bind(this)}}let s=i.createContext(new r);t.Z=s},42478:function(e,t,n){"use strict";n.d(t,{FU:function(){return d},JE:function(){return r},Ki:function(){return c},SU:function(){return g},W:function(){return x},h9:function(){return s},jc:function(){return i},qt:function(){return o},sn:function(){return u}});let{useGetEmailInviteStatusQuery:i,useGetActiveMessagingProviderQuery:r,useCreateMessagingConfigurationMutation:s,useCreateMessagingConfigurationSecretsMutation:l,useGetMessagingConfigurationDetailsQuery:a,useGetMessagingConfigurationsQuery:o,useGetMessagingConfigurationByKeyQuery:d,useUpdateMessagingConfigurationByKeyMutation:u,useUpdateMessagingConfigurationSecretsByKeyMutation:c,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:x}=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 r=await i({url:"messaging/default/active"});return r.error&&404===r.error.status?{data:null}:r},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"]})})})},18839:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return W}});var i=n(24246),r=n(27378),s=n(45938),l=n(77213),a=n(58754),o=n(96306),d=n(65218),u=n.n(d),c=n(16134),g=n(35258),x=n(92222),h=n(59003),m=n(30002),p=n(28079),f=n(49600),v=n(99811);let j=e=>{var t;let{column:n}=e,{tableInstance:i}=(0,r.useContext)(v.Z),s=r.useMemo(()=>Array.from(n.getFacetedUniqueValues().keys()),[n]),l=r.useMemo(()=>{let e={};return s.forEach(t=>{e[t]=!1}),e},[s]);return{filterValue:null!==(t=n.getFilterValue())&&void 0!==t?t:l,clearFilterOptions:()=>{let e={};s.forEach(t=>{e[t]=!1}),n.setFilterValue(e)},toggleFilterOption:(e,t)=>{var r;let s={...null!==(r=n.getFilterValue())&&void 0!==r?r:l,[e]:t};Object.values(s).every(e=>!e)?null==i||i.setColumnFilters(null==i?void 0:i.getState().columnFilters.filter(e=>e.id!==n.id)):n.setFilterValue(s)},options:s,header:n.columnDef.header}};var y=n(57072);let C=(0,x.Cl)(),b={multifield:(e,t,n)=>n[e.original[t]]},w=()=>{let e=(0,c.T)(),{updateTableInstance:t}=(0,r.useContext)(v.Z),n=(0,c.C)(f.eo),{data:i,isLoading:s}=(0,f.Ex)({organizationName:"default_organization"});(0,y.MO)(),(0,p.fd)(),(0,m.te)();let l=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(i){let{columns:t,rows:n}=i;e((0,f.dd)(t)),l.current||(l.current=!0,0===n.length?e((0,f.ym)(!0)):e((0,f.ym)(!1)))}},[i,e]);let a=(0,r.useMemo)(()=>i?i.rows:[],[i]),o=(0,r.useMemo)(()=>(n||[]).map(e=>{let{text:t,value:n}=e;return C.accessor(e=>e[n],{id:n,header:t,cell:e=>{let{getValue:t}=e,n=t();return Array.isArray(n)?n.join(", "):n},filterFn:b.multifield})}),[n]),d=(0,h.b7)({columns:o,data:a,filterFns:b,getCoreRowModel:(0,x.sC)(),getFilteredRowModel:(0,x.vL)(),getFacetedRowModel:(0,x.o6)(),getFacetedUniqueValues:(0,x.JG)(),manualPagination:!0,columnResizeMode:"onChange"});return(0,r.useEffect)(()=>t(d),[d,t]),{...d,isLoading:s}};var S=n(83766),k=n.n(S),M=n(25980),I=n(46238),T=n(47935),F=n(22968);let q=e=>{var t,n,r;let{option:s,columnId:l,filterValue:a,toggleFilterOption:d}=e,u=(0,c.C)(y.L5),g=l===F.Ux&&null!==(n=null===(t=u.get(s))||void 0===t?void 0:t.name)&&void 0!==n?n:s;return(0,i.jsx)(o.XZJ,{value:s,width:"193px",height:"20px",mb:"25px",isChecked:null!==(r=a[s])&&void 0!==r&&r,onChange:e=>{let{target:t}=e;d(s,t.checked)},_focusWithin:{bg:"gray.100"},colorScheme:"complimentary",children:(0,i.jsx)(o.xvT,{fontSize:"sm",lineHeight:5,height:"20px",width:"170px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",children:g})},s)};var z=e=>{let{column:t}=e,{filterValue:n,toggleFilterOption:s,options:l}=j({column:t}),[a,d]=(0,r.useState)(!1),u=a?l:l.slice(0,15),c=l.length>15;return(0,i.jsx)(o.UQy,{width:"100%",allowToggle:!0,children:(0,i.jsxs)(o.Qdk,{border:"0px",children:[(0,i.jsx)(o.X6q,{height:"56px",children:(0,i.jsxs)(o.KFZ,{height:"100%",children:[(0,i.jsx)(o.xuv,{flex:"1",alignItems:"center",justifyContent:"center",textAlign:"left",children:t.columnDef.header}),(0,i.jsx)(o.XEm,{})]})}),(0,i.jsxs)(o.Hk3,{children:[(0,i.jsx)(o.MIq,{columns:3,children:u.map(e=>(0,i.jsx)(q,{columnId:t.id,option:e,filterValue:n,toggleFilterOption:s},e))}),!a&&c?(0,i.jsx)(o.wpx,{type:"text",onClick:()=>{d(!0)},children:"View more"}):null,a&&c?(0,i.jsx)(o.wpx,{type:"text",onClick:()=>{d(!1)},children:"View less"}):null]})]})},t.id)};let O=e=>{let{heading:t,children:n}=e;return(0,i.jsxs)(o.xuv,{padding:"24px 8px 8px 24px",children:[(0,i.jsx)(o.X6q,{size:"md",lineHeight:6,fontWeight:"bold",mb:2,children:t}),n]})};var P=e=>{let t,{isOpen:n,onClose:s}=e,{tableInstance:l}=(0,r.useContext)(v.Z),a=null==l?void 0:l.getHeaderGroups(),d=(e,t)=>e.filter(e=>e.id===t).map(e=>(0,i.jsx)(z,{column:e.column},t)),u=(0,r.useMemo)(()=>(null==a?void 0:a[0].headers)||[],[a]);return(0,i.jsxs)(o.u_l,{isOpen:n,onClose:s,isCentered:!0,size:"2xl",children:[(0,i.jsx)(o.ZAr,{}),(0,i.jsxs)(o.hzk,{children:[(0,i.jsx)(o.xBx,{children:"Filters"}),(0,i.jsx)(o.olH,{}),(0,i.jsx)(o.izJ,{}),(0,i.jsx)(o.fef,{maxH:"85vh",padding:"0px",overflowX:"auto",children:(t=[F.vy,F.Ux,F.OL],u.some(e=>t.indexOf(e.id)>-1))?(0,i.jsxs)(O,{heading:"Privacy attributes",children:[d(u,F.vy),d(u,F.Ux),d(u,F.OL)]}):null}),(0,i.jsx)(o.mzw,{children:(0,i.jsxs)(o.xuv,{display:"flex",justifyContent:"space-between",width:"100%",children:[(0,i.jsx)(o.wpx,{onClick:()=>{null==l||l.resetColumnFilters()},className:"mr-3 grow",children:"Reset Filters"}),(0,i.jsx)(o.wpx,{onClick:s,type:"primary",className:"grow",children:"Done"})]})})]})]})};let E=()=>{let{isOpen:e,onOpen:t,onClose:n}=(0,o.qY0)();return{isFilterModalOpen:e,onFilterModalOpen:t,onFilterModalClose:n}};var R=()=>{let{isFilterModalOpen:e,onFilterModalOpen:t,onFilterModalClose:n}=E(),{tableInstance:s}=(0,r.useContext)(v.Z),{systemsCount:l,dictionaryService:a}=(0,M.hz)(),d=null==s?void 0:s.getRowModel(),u=(0,r.useMemo)(()=>{let e=(null==d?void 0:d.rows)||[];return k()(null==e?void 0:e.map(e=>e.original["system.fides_key"]))},[d]);if(!s)return null;let c=u.length,g=s.getState().columnFilters.length;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(o.kCb,{justifyContent:"flex-end",flexDirection:"row",alignItems:"center",flexWrap:"wrap",rowGap:4,columnGap:4,children:[(0,i.jsx)(o.kCb,{flexGrow:1,children:(0,i.jsx)(T.HO,{globalFilter:s.getState().globalFilter,setGlobalFilter:s.setGlobalFilter})}),(0,i.jsxs)(o.kCb,{children:[l>0?(0,i.jsxs)(o.kCb,{alignItems:"center",borderRadius:"md",gap:1,marginRight:4,children:[(0,i.jsxs)(o.xvT,{fontSize:"xs",children:[c," of ",l," systems displayed"]}),a?(0,i.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,i.jsxs)(o.wpx,{"aria-label":"Open Filter Settings",onClick:t,children:["Filter",g>0?(0,i.jsx)(o.j8w,{className:"ml-2",children:g}):null]})]})]}),(0,i.jsx)(P,{isOpen:e,onClose:n})]})},_=n(38943),N=n(77830),Z=()=>(0,i.jsx)(o.M5Y,{flex:1,"data-testid":"get-started-modal",backgroundColor:"gray.100",children:(0,i.jsx)(o.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,i.jsxs)(o.Kqy,{spacing:4,children:[(0,i.jsx)(o.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,i.jsx)(o.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,i.jsx)(o.xvT,{children:"Let's get started!"}),(0,i.jsx)(o.xuv,{children:(0,i.jsx)(o.wpx,{href:N.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(8765),n.e(9278),n.e(699),n.e(6148),n.e(5619),n.e(4259),n.e(1975)]).then(n.bind(n,34849)),{loadableGenerated:{webpack:()=>[34849]},ssr:!1,loading:()=>(0,i.jsx)(o.M5Y,{width:"100%",flex:"1",children:(0,i.jsx)(o.$jN,{})})}),K=()=>{let e=(0,c.C)(_.Xt),{attemptAction:t}=(0,s.oI)(),[n,i]=(0,r.useState)(),l=(0,r.useCallback)(e=>{t().then(t=>{t&&i(e)})},[t,i]),a=(0,r.useCallback)(()=>{t().then(e=>{e&&n&&i(void 0)})},[t,n]);return{isGettingStarted:e,selectedSystemId:n,setSelectedSystemId:l,resetSelectedSystemId:a}};var V=()=>{let{isGettingStarted:e,setSelectedSystemId:t,selectedSystemId:n,resetSelectedSystemId:r}=K(),{isLoading:s}=w();return s?(0,i.jsx)(o.M5Y,{width:"100%",flex:"1",children:(0,i.jsx)(o.$jN,{})}):e?(0,i.jsx)(Z,{}):(0,i.jsxs)(o.kCb,{direction:"column",height:"100%",children:[(0,i.jsx)(o.xuv,{marginBottom:3,marginRight:10,children:(0,i.jsx)(R,{})}),(0,i.jsxs)(o.kCb,{position:"relative",flex:1,direction:"row",overflow:"auto",borderWidth:"1px",borderStyle:"solid",borderColor:"gray.200",children:[(0,i.jsx)(o.xuv,{flex:1,minWidth:"50%",maxWidth:"100%",children:(0,i.jsx)(A,{setSelectedSystemId:t,selectedSystemId:n})}),(0,i.jsx)(g.Z,{selectedSystemId:n,resetSelectedSystemId:r})]})]})},W=()=>{let e=(0,r.useMemo)(()=>new v.m,[]);return(0,i.jsxs)(l.Z,{title:"Data lineage",mainProps:{padding:"24px 0 0 40px"},children:[(0,i.jsx)(a.Z,{style:{paddingLeft:0},heading:"Data lineage"}),(0,i.jsxs)(v.Z.Provider,{value:e,children:[(0,i.jsx)(V,{}),(0,i.jsx)(s.eB,{})]})]})}}},function(e){e.O(0,[431,5163,255,7218,504,2888,9774,179],function(){return e(e.s=53910)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2096],{78859:function(e,t,o){var n=o(71928),a=o(76747),l=o(42383),i=o(11611),s=o(37948);e.exports=function(e,t,o,r){if(!i(e))return e;t=a(t,e);for(var d=-1,c=t.length,u=c-1,f=e;null!=f&&++d<c;){var m=s(t[d]),h=o;if("__proto__"===m||"constructor"===m||"prototype"===m)break;if(d!=u){var p=f[m];void 0===(h=r?r(p,m,f):void 0)&&(h=i(p)?p:l(t[d+1])?[]:{})}n(f,m,h),f=f[m]}return e}},80396:function(e,t,o){var n=o(79867),a=o(78859);e.exports=function(e,t,o,l){return a(e,t,o(n(e,t)),l)}},62079:function(e,t,o){var n=o(31137);e.exports=function(e){return"function"==typeof e?e:n}},30454:function(e,t,o){var n=o(40699);e.exports=function(e){return n(e,5)}},47215:function(e,t,o){var n=o(78859);e.exports=function(e,t,o){return null==e?e:n(e,t,o)}},90271:function(e,t,o){var n=o(80396),a=o(62079);e.exports=function(e,t,o){return null==e?e:n(e,t,a(o))}},16383:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]/[collectionName]/[...subfieldNames]",function(){return o(26052)}])},12627:function(e,t,o){"use strict";var n=o(24246),a=o(79283),l=o(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:o=!1,...i}=e,{getDataCategoryDisplayNameProps:s,getDataCategories:r}=(0,l.Z)(),d=(o?r():r().filter(e=>e.active)).filter(e=>!(null==t?void 0:t.includes(e.fides_key))).map(e=>{let{name:t,primaryName:o}=s(e.fides_key);return{value:e.fides_key,name:t,primaryName:o,description:e.description||""}});return(0,n.jsx)(a.l,{options:d,...i})}},66112:function(e,t,o){"use strict";var n=o(24246),a=o(96306),l=o(27378),i=o(12627),s=o(34929),r=o(26183);t.Z=e=>{let{selectedTaxonomies:t,onAddTaxonomy:o,onRemoveTaxonomy:d}=e,[c,u]=(0,l.useState)(!1),{getDataCategoryDisplayName:f}=(0,s.Z)();return(0,n.jsxs)(r.Z,{children:[t.map(e=>(0,n.jsx)(a.j8w,{"data-testid":"classification-".concat(e),color:"white",closable:!0,onClose:()=>d(e),closeButtonLabel:"Remove category",children:f(e)},e)),(0,n.jsx)(a.j8w,{onClick:()=>u(!0),"data-testid":"add-category-btn",addable:!0,"aria-label":"Add category"}),c&&(0,n.jsx)(a.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,n.jsx)(i.Z,{selectedTaxonomies:t,onChange:e=>{u(!1),o(e)},onBlur:()=>u(!1),open:c})})]})}},76252:function(e,t,o){"use strict";var n=o(24246),a=o(96306),l=o(30454),i=o.n(l),s=o(47215),r=o.n(s),d=o(90271),c=o.n(d),u=o(79806),f=o(20386),m=o(63927),h=o(69435);t.Z=e=>{let{field:t,isOpen:o,onClose:l,dataset:s,collectionName:d,subfields:p}=e,[v]=(0,f.TG)(),{isOpen:x,onOpen:g,onClose:b}=(0,a.qY0)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.ZP,{isOpen:o,onClose:l,description:"Fields are an array of objects that describe the collection's fields. Provide additional context to this field by filling out the fields below.",header:(0,n.jsx)(u.zR,{title:"Field Name: ".concat(null==t?void 0:t.name)}),footer:(0,n.jsx)(u.Gn,{onClose:l,onDelete:g,formId:m.e}),children:(0,n.jsx)(m.Z,{values:t,onSubmit:e=>{let o=(0,h.Fk)({dataset:s,collectionName:d,subfields:p?[...p,(null==t?void 0:t.name)||""]:[(null==t?void 0:t.name)||""]}),n={...t,...e},a=i()(s);r()(a,o,n),v(a),l()},dataType:"field"})}),(0,n.jsx)(a.cVQ,{isOpen:x,onClose:b,onConfirm:()=>{let e=(0,h.Fk)({dataset:s,collectionName:d,subfields:p}),o=i()(s);c()(o,e,e=>({...e,fields:e.fields.filter(e=>e.name!==(null==t?void 0:t.name))})),v(o),l(),b()},title:"Delete Field",message:(0,n.jsxs)(a.xvT,{children:["You are about to permanently delete the field named"," ",(0,n.jsx)(a.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==t?void 0:t.name})," ","from this dataset. Are you sure you would like to continue?"]})})]})}},26052:function(e,t,o){"use strict";o.r(t);var n=o(24246),a=o(92222),l=o(59003),i=o(96306),s=o(30454),r=o.n(s),d=o(47215),c=o.n(d),u=o(86677),f=o(27378),m=o(77213),h=o(77830),p=o(58754),v=o(47935),x=o(66112),g=o(69828),b=o(41966),j=o(76252),C=o(69435);let w=(0,a.Cl)(),y=()=>(0,n.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,n.jsx)(i.gCW,{children:(0,n.jsx)(i.xvT,{fontSize:"md",fontWeight:"600",children:"No fields found."})})});t.default=()=>{let e=(0,u.useRouter)(),[t]=(0,b.TG)(),o=decodeURIComponent(e.query.datasetId),s=decodeURIComponent(e.query.collectionName),d=e.query.subfieldNames.map(decodeURIComponent),{isLoading:_,data:R}=(0,b.oM)(o),k=(0,f.useMemo)(()=>(null==R?void 0:R.collections)||[],[R]).find(e=>e.name===s),N=(0,f.useMemo)(()=>(null==k?void 0:k.fields)||[],[k]),T=(0,f.useMemo)(()=>{let e=N;return d.forEach(t=>{let o=e.find(e=>e.name===t);e=(null==o?void 0:o.fields)||[]}),e},[N,d]),[Z,F]=(0,f.useState)(),I=(0,f.useCallback)(e=>{let{dataCategory:o,field:n}=e,a=n.data_categories||[],l=(0,C.Fk)({dataset:R,collectionName:s,subfields:[...d,n.name]}),i=r()(R);c()(i,"".concat(l,".data_categories"),[...a,o]),t(i)},[R,t,s,d]),M=(0,f.useCallback)(e=>{let{dataCategory:o,field:n}=e,a=n.data_categories||[],l=(0,C.Fk)({dataset:R,collectionName:s,subfields:[...d,null==n?void 0:n.name]}),i=r()(R);c()(i,"".concat(l,".data_categories"),a.filter(e=>e!==o)),t(i)},[R,t,s,d]),z=(0,f.useCallback)(t=>{let n=[...d.map(encodeURIComponent),t.name];e.push({pathname:h.y1,query:{datasetId:o,collectionName:s,subfieldNames:n}})},[o,e,s,d]),S=(0,f.useMemo)(()=>[w.accessor(e=>e.name,{id:"name",cell:e=>{var t;let o=e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0;return(0,n.jsx)(v.G3,{fontWeight:o?"semibold":"normal",value:e.getValue()})},header:e=>(0,n.jsx)(v.Rr,{value:"Field Name",...e}),size:180}),w.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,n.jsx)(v.A4,{value:e.getValue()}):(0,n.jsx)(v.G3,{value:void 0}),header:e=>(0,n.jsx)(v.Rr,{value:"Type",...e}),size:80}),w.accessor(e=>e.description,{id:"description",cell:e=>(0,n.jsx)(v.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,n.jsx)(v.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),w.accessor(e=>e.data_categories,{id:"data_categories",cell:e=>{var t;let o=e.row.original;return!(e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0)&&(0,n.jsx)(x.Z,{selectedTaxonomies:e.getValue()||[],onAddTaxonomy:e=>I({dataCategory:e,field:o}),onRemoveTaxonomy:e=>M({dataCategory:e,field:o})})},header:e=>(0,n.jsx)(v.Rr,{value:"Data categories",...e}),size:300,meta:{disableRowClick:!0}}),w.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,o=t.original;return(0,n.jsx)(i.Ugi,{spacing:0,"data-testid":"field-".concat(o.name),children:(0,n.jsx)(i.wpx,{size:"small",icon:(0,n.jsx)(i.dY8,{}),onClick:()=>{D(o),A(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[I,M]),q=(0,f.useMemo)(()=>Z?T.filter(e=>e.name.toLowerCase().includes(Z.toLowerCase())):T,[T,Z]),E=(0,l.b7)({getCoreRowModel:(0,a.sC)(),getFilteredRowModel:(0,a.vL)(),getSortedRowModel:(0,a.tj)(),columns:S,data:q,columnResizeMode:"onChange"}),[O,A]=(0,f.useState)(!1),[G,D]=(0,f.useState)(),U=(0,f.useMemo)(()=>{let e=[{title:"All datasets",href:h.$m},{title:o,href:{pathname:h.o5,query:{datasetId:o}},icon:g.Y[1]},{title:s,icon:g.Y[2],href:{pathname:h.RF,query:{datasetId:o,collectionName:s}}}];return d.forEach((t,n)=>{e.push({title:t,href:n<d.length-1?{pathname:h.y1,query:{datasetId:o,collectionName:s,subfieldNames:d.slice(0,n+1).map(encodeURIComponent)}}:void 0,icon:g.Y[3]})}),e},[o,s,d]);return(0,n.jsxs)(m.Z,{title:"Dataset - ".concat(o),children:[(0,n.jsx)(p.Z,{heading:"Datasets",breadcrumbItems:U}),_?(0,n.jsx)(v.I4,{rowHeight:36,numRows:15}):(0,n.jsxs)(i.xuv,{"data-testid":"fields-table",children:[(0,n.jsx)(v.Q$,{children:(0,n.jsx)(v.HO,{globalFilter:Z,setGlobalFilter:F,placeholder:"Search",testid:"fields-search"})}),(0,n.jsx)(v.ZK,{tableInstance:E,emptyTableNotice:(0,n.jsx)(y,{}),onRowClick:z,getRowIsClickable:e=>{var t;return!!(e.fields&&(null===(t=e.fields)||void 0===t?void 0:t.length)>0)}}),(0,n.jsx)(j.Z,{isOpen:O,onClose:()=>{A(!1),D(void 0)},field:G,dataset:R,collectionName:s,subfields:d})]})]})}}},function(e){e.O(0,[8765,9278,5163,699,409,9226,2888,9774,179],function(){return e(e.s=16383)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6556],{78859:function(e,t,o){var n=o(71928),i=o(76747),l=o(42383),a=o(11611),s=o(37948);e.exports=function(e,t,o,r){if(!a(e))return e;t=i(t,e);for(var d=-1,c=t.length,u=c-1,f=e;null!=f&&++d<c;){var m=s(t[d]),x=o;if("__proto__"===m||"constructor"===m||"prototype"===m)break;if(d!=u){var v=f[m];void 0===(x=r?r(v,m,f):void 0)&&(x=a(v)?v:l(t[d+1])?[]:{})}n(f,m,x),f=f[m]}return e}},80396:function(e,t,o){var n=o(79867),i=o(78859);e.exports=function(e,t,o,l){return i(e,t,o(n(e,t)),l)}},62079:function(e,t,o){var n=o(31137);e.exports=function(e){return"function"==typeof e?e:n}},30454:function(e,t,o){var n=o(40699);e.exports=function(e){return n(e,5)}},47215:function(e,t,o){var n=o(78859);e.exports=function(e,t,o){return null==e?e:n(e,t,o)}},90271:function(e,t,o){var n=o(80396),i=o(62079);e.exports=function(e,t,o){return null==e?e:n(e,t,i(o))}},59972:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]/[collectionName]",function(){return o(47355)}])},12627:function(e,t,o){"use strict";var n=o(24246),i=o(79283),l=o(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:o=!1,...a}=e,{getDataCategoryDisplayNameProps:s,getDataCategories:r}=(0,l.Z)(),d=(o?r():r().filter(e=>e.active)).filter(e=>!(null==t?void 0:t.includes(e.fides_key))).map(e=>{let{name:t,primaryName:o}=s(e.fides_key);return{value:e.fides_key,name:t,primaryName:o,description:e.description||""}});return(0,n.jsx)(i.l,{options:d,...a})}},66112:function(e,t,o){"use strict";var n=o(24246),i=o(96306),l=o(27378),a=o(12627),s=o(34929),r=o(26183);t.Z=e=>{let{selectedTaxonomies:t,onAddTaxonomy:o,onRemoveTaxonomy:d}=e,[c,u]=(0,l.useState)(!1),{getDataCategoryDisplayName:f}=(0,s.Z)();return(0,n.jsxs)(r.Z,{children:[t.map(e=>(0,n.jsx)(i.j8w,{"data-testid":"classification-".concat(e),color:"white",closable:!0,onClose:()=>d(e),closeButtonLabel:"Remove category",children:f(e)},e)),(0,n.jsx)(i.j8w,{onClick:()=>u(!0),"data-testid":"add-category-btn",addable:!0,"aria-label":"Add category"}),c&&(0,n.jsx)(i.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,n.jsx)(a.Z,{selectedTaxonomies:t,onChange:e=>{u(!1),o(e)},onBlur:()=>u(!1),open:c})})]})}},76252:function(e,t,o){"use strict";var n=o(24246),i=o(96306),l=o(30454),a=o.n(l),s=o(47215),r=o.n(s),d=o(90271),c=o.n(d),u=o(79806),f=o(20386),m=o(63927),x=o(69435);t.Z=e=>{let{field:t,isOpen:o,onClose:l,dataset:s,collectionName:d,subfields:v}=e,[p]=(0,f.TG)(),{isOpen:h,onOpen:g,onClose:j}=(0,i.qY0)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.ZP,{isOpen:o,onClose:l,description:"Fields are an array of objects that describe the collection's fields. Provide additional context to this field by filling out the fields below.",header:(0,n.jsx)(u.zR,{title:"Field Name: ".concat(null==t?void 0:t.name)}),footer:(0,n.jsx)(u.Gn,{onClose:l,onDelete:g,formId:m.e}),children:(0,n.jsx)(m.Z,{values:t,onSubmit:e=>{let o=(0,x.Fk)({dataset:s,collectionName:d,subfields:v?[...v,(null==t?void 0:t.name)||""]:[(null==t?void 0:t.name)||""]}),n={...t,...e},i=a()(s);r()(i,o,n),p(i),l()},dataType:"field"})}),(0,n.jsx)(i.cVQ,{isOpen:h,onClose:j,onConfirm:()=>{let e=(0,x.Fk)({dataset:s,collectionName:d,subfields:v}),o=a()(s);c()(o,e,e=>({...e,fields:e.fields.filter(e=>e.name!==(null==t?void 0:t.name))})),p(o),l(),j()},title:"Delete Field",message:(0,n.jsxs)(i.xvT,{children:["You are about to permanently delete the field named"," ",(0,n.jsx)(i.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==t?void 0:t.name})," ","from this dataset. Are you sure you would like to continue?"]})})]})}},47355:function(e,t,o){"use strict";o.r(t);var n=o(24246),i=o(92222),l=o(59003),a=o(96306),s=o(86677),r=o(27378),d=o(77213),c=o(77830),u=o(58754),f=o(47935),m=o(66112),x=o(69828),v=o(41966),p=o(76252),h=o(69435);let g=(0,i.Cl)(),j=()=>(0,n.jsx)(a.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,n.jsx)(a.gCW,{children:(0,n.jsx)(a.xvT,{fontSize:"md",fontWeight:"600",children:"No fields found."})})});t.default=()=>{let e=(0,s.useRouter)(),[t]=(0,v.TG)(),o=decodeURIComponent(e.query.datasetId),b=decodeURIComponent(e.query.collectionName),{isLoading:C,data:w}=(0,v.oM)(o),_=(0,r.useMemo)(()=>(null==w?void 0:w.collections)||[],[w]),y=_.find(e=>e.name===b),R=(0,r.useMemo)(()=>(null==y?void 0:y.fields)||[],[y]),[k,N]=(0,r.useState)(),I=(0,r.useCallback)(e=>{let{dataCategory:o,field:n}=e,i=n.data_categories||[],l={...n,data_categories:[...i,o]},a=_.indexOf(y),s=y.fields.indexOf(n);t((0,h._n)(w,l,a,s))},[y,_,w,t]),T=(0,r.useCallback)(e=>{var o;let{dataCategory:n,field:i}=e,l={...i,data_categories:null===(o=i.data_categories)||void 0===o?void 0:o.filter(e=>e!==n)},a=_.indexOf(y),s=y.fields.indexOf(i);t((0,h._n)(w,l,a,s))},[y,_,w,t]),Z=(0,r.useCallback)(t=>{e.push({pathname:c.y1,query:{datasetId:encodeURIComponent(o),collectionName:encodeURIComponent(b),subfieldNames:encodeURIComponent(t.name)}})},[o,e,b]),O=(0,r.useMemo)(()=>[g.accessor(e=>e.name,{id:"name",cell:e=>{var t;let o=e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0;return(0,n.jsx)(f.G3,{fontWeight:o?"semibold":"normal",value:e.getValue()})},header:e=>(0,n.jsx)(f.Rr,{value:"Field Name",...e}),size:180}),g.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,n.jsx)(f.A4,{value:e.getValue()}):(0,n.jsx)(f.G3,{value:void 0}),header:e=>(0,n.jsx)(f.Rr,{value:"Type",...e}),size:80}),g.accessor(e=>e.description,{id:"description",cell:e=>(0,n.jsx)(f.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,n.jsx)(f.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),g.accessor(e=>e.data_categories,{id:"data_categories",cell:e=>{var t;let o=e.row.original;return!(e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0)&&(0,n.jsx)(m.Z,{selectedTaxonomies:e.getValue()||[],onAddTaxonomy:e=>I({dataCategory:e,field:o}),onRemoveTaxonomy:e=>T({dataCategory:e,field:o})})},header:e=>(0,n.jsx)(f.Rr,{value:"Data categories",...e}),size:300,meta:{disableRowClick:!0}}),g.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,o=t.original;return(0,n.jsx)(a.Ugi,{spacing:0,"data-testid":"field-".concat(o.name),children:(0,n.jsx)(a.wpx,{size:"small",icon:(0,n.jsx)(a.dY8,{}),onClick:()=>{G(o),S(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[I,T]),M=(0,r.useMemo)(()=>k?R.filter(e=>e.name.toLowerCase().includes(k.toLowerCase())):R,[R,k]),F=(0,l.b7)({getCoreRowModel:(0,i.sC)(),getFilteredRowModel:(0,i.vL)(),getSortedRowModel:(0,i.tj)(),columns:O,data:M,columnResizeMode:"onChange"}),[z,S]=(0,r.useState)(!1),[A,G]=(0,r.useState)(),D=(0,r.useMemo)(()=>[{title:"All datasets",href:c.$m},{title:o,href:{pathname:c.o5,query:{datasetId:o}},icon:x.Y[1]},{title:b,icon:x.Y[2]}],[o,b]);return(0,n.jsxs)(d.Z,{title:"Dataset - ".concat(o),children:[(0,n.jsx)(u.Z,{heading:"Datasets",breadcrumbItems:D}),C?(0,n.jsx)(f.I4,{rowHeight:36,numRows:15}):(0,n.jsxs)(a.xuv,{"data-testid":"fields-table",children:[(0,n.jsx)(f.Q$,{children:(0,n.jsx)(f.HO,{globalFilter:k,setGlobalFilter:N,placeholder:"Search",testid:"fields-search"})}),(0,n.jsx)(f.ZK,{tableInstance:F,emptyTableNotice:(0,n.jsx)(j,{}),onRowClick:Z,getRowIsClickable:e=>{var t;return!!(e.fields&&(null===(t=e.fields)||void 0===t?void 0:t.length)>0)}}),(0,n.jsx)(p.Z,{isOpen:z,onClose:()=>{S(!1),G(void 0)},field:A,dataset:w,collectionName:b})]})]})}}},function(e){e.O(0,[8765,9278,5163,699,409,9226,2888,9774,179],function(){return e(e.s=59972)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-60a4a9eb4aab4c11.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9340],{33187:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]",function(){return i(1016)}])},58754:function(e,t,i){"use strict";var n=i(24246),o=i(96306),l=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:s=!0,children:a,rightContent:c,style:r,...d}=e;return(0,n.jsxs)("div",{...d,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...r}:{paddingBottom:"24px",...r},children:[(0,n.jsxs)(o.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(o.lQT,{className:i||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,c&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:c})]}),!!i&&(0,n.jsx)(l.m,{className:a?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),a]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return r}});var n=i(24246),o=i(96306),l=i(79894),s=i.n(l),a=i(27378);let{Text:c}=o.AntTypography,r=e=>{let{items:t,...i}=e,l=(0,a.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let l=i===t.length-1,a={...e},r=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,n.jsx)(c,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,id:l?"breadcrumb-current-page":void 0,children:a.title})),r)?a.title=(0,n.jsx)(o.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,n.jsx)(s(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,n.jsx)(o.zrq,{items:l,...i})}},1016:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return w}});var n=i(24246),o=i(92222),l=i(59003),s=i(96306),a=i(86677),c=i(27378),r=i(77213),d=i(77830),u=i(58754),m=i(47935),h=i(69828),p=i(41966),x=i(46628),g=i(79806),f=i(20386),j=i(63927),b=i(69435),C=e=>{let{dataset:t,collection:i,isOpen:o,onClose:l}=e,a=(0,c.useMemo)(()=>null==t?void 0:t.collections.indexOf(i),[]),[r]=(0,f.TG)(),d=(0,s.pmc)(),{isOpen:u,onOpen:m,onClose:h}=(0,s.qY0)(),p=async e=>{let n={...i,...e},o=(0,b.jC)(t,n,a);try{await r(o),d((0,x.t5)("Successfully modified collection"))}catch(e){d((0,x.Vo)(e))}l()},C=async()=>{if(t&&void 0!==a){let e=(0,b.qe)(t,a);try{await r(e),d((0,x.t5)("Successfully deleted collection"))}catch(e){d((0,x.Vo)(e))}l(),h()}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(g.ZP,{isOpen:o,onClose:l,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,n.jsx)(g.zR,{title:"Collection Name: ".concat(null==i?void 0:i.name)}),footer:(0,n.jsx)(g.Gn,{onClose:l,onDelete:m,formId:j.e}),children:(0,n.jsx)(j.Z,{values:i,onSubmit:p,dataType:"collection",showDataCategories:!1})}),(0,n.jsx)(s.cVQ,{isOpen:u,onClose:h,onConfirm:C,title:"Delete Collection",message:(0,n.jsxs)(s.xvT,{children:["You are about to permanently delete the collection named"," ",(0,n.jsx)(s.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==i?void 0:i.name})," ","from this dataset. Are you sure you would like to continue?"]})})]})};let v=(0,o.Cl)(),y=()=>(0,n.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,n.jsx)(s.gCW,{children:(0,n.jsx)(s.xvT,{fontSize:"md",fontWeight:"600",children:"No collections found."})})});var w=()=>{let e=(0,a.useRouter)(),t=decodeURIComponent(e.query.datasetId),{isLoading:i,data:x}=(0,p.oM)(t),g=(0,c.useMemo)(()=>(null==x?void 0:x.collections)||[],[x]),[f,j]=(0,c.useState)(!1),[b,w]=(0,c.useState)(),[R,k]=(0,c.useState)(),N=(0,c.useMemo)(()=>[v.accessor(e=>e.name,{id:"name",cell:e=>(0,n.jsx)(m.G3,{value:e.getValue(),fontWeight:"semibold"}),header:e=>(0,n.jsx)(m.Rr,{value:"Collection Name",...e}),size:180}),v.accessor(e=>e.description,{id:"description",cell:e=>(0,n.jsx)(m.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,n.jsx)(m.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),v.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,i=t.original;return(0,n.jsx)(s.Ugi,{spacing:0,"data-testid":"collection-".concat(i.name),children:(0,n.jsx)(s.wpx,{size:"small",icon:(0,n.jsx)(s.dY8,{}),onClick:()=>{w(i),j(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[]),I=(0,c.useMemo)(()=>R?g.filter(e=>e.name.toLowerCase().includes(R.toLowerCase())):g,[g,R]),M=(0,l.b7)({getCoreRowModel:(0,o.sC)(),getFilteredRowModel:(0,o.vL)(),getSortedRowModel:(0,o.tj)(),columns:N,data:I,columnResizeMode:"onChange"}),T=(0,c.useMemo)(()=>[{title:"All datasets",href:d.$m},{title:t,icon:h.Y[1]}],[t]);return(0,n.jsxs)(r.Z,{title:"Dataset - ".concat(t),children:[(0,n.jsx)(u.Z,{heading:"Datasets",breadcrumbItems:T}),i?(0,n.jsx)(m.I4,{rowHeight:36,numRows:15}):(0,n.jsxs)(s.xuv,{"data-testid":"collections-table",children:[(0,n.jsx)(m.Q$,{children:(0,n.jsx)(m.HO,{globalFilter:R,setGlobalFilter:k,placeholder:"Search",testid:"collections-search"})}),(0,n.jsx)(m.ZK,{tableInstance:M,emptyTableNotice:(0,n.jsx)(y,{}),onRowClick:i=>{e.push({pathname:d.RF,query:{datasetId:encodeURIComponent(t),collectionName:encodeURIComponent(i.name)}})}})]}),x&&b&&(0,n.jsx)(C,{dataset:x,collection:b,isOpen:f,onClose:()=>j(!1)})]})}}},function(e){e.O(0,[9729,9226,2888,9774,179],function(){return e(e.s=33187)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
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)}])},17245:function(e,t,a){"use strict";a.d(t,{HK:function(){return l},VY:function(){return n.V},pI:function(){return d},h0:function(){return r.h},Rx:function(){return h},rK:function(){return y}});var r=a(36866),n=a(84306),s=a(812);let l=()=>{let{errorAlert:e}=(0,n.V)();return{handleError:t=>{let a="An unexpected error occurred. Please try again.";(0,s.Ot)(t)?a=t.data.detail:(0,s.tB)(t)&&(a=t.data.detail[0].msg),e(a)}}};var i=a(27378),o=a(20682),u=a(21910);let d=e=>{let{data:t}=(0,o.$I)({}),a=(0,i.useMemo)(()=>(null==t?void 0:t.items)||[],[t]);return(0,i.useMemo)(()=>{var t;if(!e)return"";if(e.connection_type===u.Rj.SAAS&&(null===(t=e.saas_config)||void 0===t?void 0:t.type)){let t=a.find(t=>{var a;return t.identifier===(null===(a=e.saas_config)||void 0===a?void 0:a.type)});if(t)return t}return e},[e,a])};var c=a(40431);let f=()=>({search:c.Oi.withDefault("")}),h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultSearchQuery:t,onSearchChange:a}=e,r=(0,i.useMemo)(()=>f(),[]),[n,s]=(0,c.XI)(r,{history:"push"}),l=(0,i.useMemo)(()=>({searchQuery:n.search||t||void 0}),[n,t]),o=(0,i.useCallback)(e=>{s({search:e||null})},[s]),u=(0,i.useCallback)(()=>{s({search:null})},[s]);return(0,i.useEffect)(()=>{a&&a(l)},[l,a]),{...l,updateSearch:o,resetSearch:u,searchProps:{value:l.searchQuery||"",onChange:o,onClear:()=>o("")}}},p=e=>({sortKey:e?(0,c.jx)([...e]):c.Oi.withDefault(""),sortOrder:(0,c.km)(["ascend","descend"])}),y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultSortKey:t,defaultSortOrder:a,onSortingChange:r,validColumns:n}=e,s=(0,i.useMemo)(()=>p(n),[n]),[l,o]=(0,c.XI)(s,{history:"push"}),u=(0,i.useMemo)(()=>{var e;return{sortKey:l.sortKey||t,sortOrder:null!==(e=l.sortOrder)&&void 0!==e?e:a}},[l,t,a]),d=(0,i.useCallback)((e,t)=>{o({sortKey:e?String(e):null,sortOrder:null!=t?t:null})},[o]),f=(0,i.useCallback)(()=>{o({sortKey:null,sortOrder:null})},[o]);return(0,i.useEffect)(()=>{r&&r(u)},[u,r]),{...u,updateSorting:d,resetSorting:f,sortingProps:{sortDirections:["ascend","descend"],defaultSortOrder:u.sortOrder,sortedInfo:u.sortKey?{field:u.sortKey,order:u.sortOrder}:void 0}}}},36866:function(e,t,a){"use strict";a.d(t,{h:function(){return u}});var r=a(40431),n=a(27378),s=a(55484);let l=(0,r.jo)({parse(e){let t=parseInt(e,10);try{return s.Rx().integer().positive().validateSync(t),t}catch(e){return null}},serialize:e=>e.toString()});var i=a(32735);let o=function(){var e,t;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=a.pageQueryKey||"page",s=a.sizeQueryKey||"size";return{[n]:l.withDefault(i.Ej),[s]:a.pageSizeOptions?(0,r.bJ)(a.pageSizeOptions).withDefault(null!==(e=a.pageSize)&&void 0!==e?e:i.L8):l.withDefault(null!==(t=a.pageSize)&&void 0!==t?t:i.L8)}},u=function(){var e,t;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultPageSize:s=i.L8,pageSizeOptions:l,showSizeChanger:u=!0,pageQueryKey:d="page",sizeQueryKey:c="size"}=a,f=null!=l?l:i.VZ,h=(0,n.useMemo)(()=>o({pageSize:s,pageSizeOptions:l,pageQueryKey:d,sizeQueryKey:c}),[s,l,d,c]),[p,y]=(0,r.XI)(h,{history:"push"}),m={pageIndex:null!==(e=p[d])&&void 0!==e?e:i.Ej,pageSize:null!==(t=p[c])&&void 0!==t?t:s};return{...m,updatePageIndex:e=>{y({[d]:e})},updatePageSize:e=>{y({[d]:e!==m.pageSize?i.Ej:m.pageIndex,[c]:e})},resetPagination:()=>{y({[d]:i.Ej,[c]:s})},nextPage:()=>{y(e=>({[d]:e[d]+1,[c]:e[c]}))},previousPage:()=>{y(e=>({[d]:e[d]-1,[c]:e[c]}))},pageSizeOptions:f,showSizeChanger:u}}},17294:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return A}});var r=a(24246),n=a(96306),s=a(27378),l=a(77213),i=a(77830),o=a(58754),u=a(34090),d=a(86677),c=a(16125),f=a(55484),h=a(25980),p=a(40324),y=a(812),m=a(58452),g=a(46628),b=a(83265),_=a(32885),v=a(21910),x=a(20386);let j=e=>!("system_type"in e),w={url:"",classify:!1,classifyConfirmed:!1},C=f.Ry().shape({url:f.Z_().required().label("Database URL"),classify:f.O7(),classifyConfirmed:f.O7().when(["url","classify"],{is:(e,t)=>e&&t,then:()=>f.O7().equals([!0])})});var O=()=>{let[e,{isLoading:t}]=(0,x.pR)(),[a,{isLoading:s}]=(0,x.IR)(),[l,{isLoading:o}]=(0,_.Du)(),f=t||s||o,O=(0,n.pmc)(),S=(0,d.useRouter)(),k=(0,h.hz)(),D=(0,c.I0)(),E=async t=>{var a;let r=await e({organization_key:b.Av,generate:{config:{connection_string:t.url},target:v.GC.DB,type:v.j.DATASETS}});if((0,y.D4)(r))return{error:(0,y.e$)(r.error)};let n=(null!==(a=r.data.generate_results)&&void 0!==a?a:[]).filter(j);return n&&n.length>0?{datasets:n}:{error:"Unable to generate a dataset with this connection."}},P=async e=>{let t=await a(e);return(0,y.D4)(t)?{error:(0,y.e$)(t.error)}:{dataset:t.data}},A=async e=>{let{values:t,datasets:a}=e,r=await l({dataset_schemas:a.map(e=>{let{name:t,fides_key:a}=e;return{fides_key:a,name:t}}),schema_config:{organization_key:b.Av,generate:{config:{connection_string:t.url},target:v.GC.DB,type:v.j.DATASETS}}});return(0,y.D4)(r)?{error:(0,y.e$)(r.error)}:{classifyInstances:r.data.classify_instances}},z=async e=>{var t;let a=await E(e);if("error"in a){O((0,g.Vo)(a.error));return}let r=await Promise.all(a.datasets.map(e=>P(e))),n=null!==(t=r.find(e=>"error"in e))&&void 0!==t?t:r[0];if("error"in n){O((0,g.Vo)(n.error));return}if(!e.classify){O((0,g.t5)("Generated ".concat(n.dataset.name," dataset"))),S.push({pathname:i.o5,query:{datasetId:n.dataset.fides_key}});return}let s=await A({values:e,datasets:a.datasets});if("error"in s){O((0,g.Vo)(s.error));return}O((0,g.t5)("Generate and classify are now in progress")),D((0,x.Zl)(n.dataset.fides_key)),S.push("/dataset")};return(0,r.jsx)(u.J9,{initialValues:{...w,classify:k.plus},validationSchema:C,onSubmit:z,validateOnChange:!1,validateOnBlur:!1,children:e=>{let{isSubmitting:t,errors:a,values:s,submitForm:l,resetForm:i,setFieldValue:o}=e;return(0,r.jsxs)(u.l0,{children:[(0,r.jsxs)(n.gCW,{spacing:8,align:"left",children:[(0,r.jsx)(n.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,r.jsx)(n.xuv,{children:(0,r.jsx)(p.j0,{name:"url",label:"Database URL"})}),k.plus?(0,r.jsx)(p.w8,{name:"classify",label:"Classify dataset",tooltip:"Use Fides Classify to suggest labels based on your data."}):null,(0,r.jsx)(n.xuv,{children:(0,r.jsx)(n.wpx,{type:"primary",htmlType:"submit",loading:t||f,disabled:t||f,"data-testid":"create-dataset-btn",children:"Generate dataset"})})]}),(0,r.jsx)(m.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:()=>{i({values:{...s,classifyConfirmed:!1}})},onConfirm:()=>{o("classifyConfirmed",!0),setTimeout(()=>{l()},0)}})]})}})},S=a(66527),k=a(17245),D=a(41207),E=a(39715),P=()=>{let[e]=(0,x.IR)(),[t,a]=(0,s.useState)(!0),[l,o]=(0,s.useState)(!1),[u,c]=(0,s.useState)(!1),f=(0,s.useRef)(null),h=(0,d.useRouter)(),p=(0,n.pmc)(),{errorAlert:m}=(0,k.VY)(),[b,_]=(0,s.useState)(void 0),v=e=>{S.ZP.load(e,{json:!0}),_(void 0)},j=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)},w=e=>{p((0,g.t5)("Successfully loaded new dataset YAML")),(0,x.Zl)(e.fides_key),h.push({pathname:i.o5,query:{datasetId:e.fides_key}})},C=async()=>{o(!0);let e=f.current.getValue(),t=S.ZP.load(e,{json:!0}),a=await j(t);(0,y.D4)(a)?p((0,g.Vo)((0,y.e$)(a.error))):"data"in a&&w(a.data),o(!1)};return(0,r.jsxs)(n.kCb,{gap:"97px",children:[(0,r.jsxs)(n.xuv,{w:"75%",children:[(0,r.jsx)(n.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,r.jsxs)(n.gCW,{align:"stretch",children:[(0,r.jsx)(n.izJ,{color:"gray.100"}),(0,r.jsx)(D.M,{defaultLanguage:"yaml",height:"calc(100vh - 515px)",onChange:e=>{try{c(!0),v(e),a(!!(!e||""===e.trim()))}catch(e){(0,D.F)(e)?_(e):m("Could not parse the supplied YAML")}},onMount:e=>{f.current=e,f.current.focus()},options:{fontFamily:"Menlo",fontSize:13,minimap:{enabled:!0}},theme:"light"}),(0,r.jsx)(n.izJ,{color:"gray.100"}),(0,r.jsx)(n.wpx,{type:"primary",disabled:t||!!b||l,loading:l,onClick:C,htmlType:"submit",className:"mt-6 w-fit",children:"Create dataset"})]})]}),(0,r.jsx)(n.xuv,{children:u&&(t||b)&&(0,r.jsx)(E.Z,{isEmptyState:t,yamlError:b})})]})},A=()=>{let[e,t]=(0,s.useState)(null);return(0,r.jsxs)(l.Z,{title:"Create New Dataset",children:[(0,r.jsx)(o.Z,{heading:"Datasets",breadcrumbItems:[{title:"All datasets",href:i.$m},{title:"Create new"}]}),(0,r.jsxs)(n.Kqy,{spacing:8,children:[(0,r.jsxs)(n.xuv,{children:[(0,r.jsx)(n.wpx,{onClick:()=>t("yaml"),"data-testid":"upload-yaml-btn",className:"mr-2",children:"Upload a Dataset YAML"}),(0,r.jsx)(n.wpx,{onClick:()=>t("database"),ghost:"database"===e,className:"mr-2","data-testid":"connect-db-btn",children:"Connect to a database"})]}),"database"===e&&(0,r.jsx)(n.xuv,{w:{base:"100%",lg:"50%"},children:(0,r.jsx)(O,{})}),"yaml"===e&&(0,r.jsx)(n.xuv,{w:{base:"100%"},children:(0,r.jsx)(P,{})})]})]})}},76737:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var a in t)Object.defineProperty(e,a,{enumerable:!0,get:t[a]})}(t,{default:function(){return i},noSSR:function(){return l}});let r=a(51538);a(24246),a(27378);let n=r._(a(21887));function s(e){return{default:(null==e?void 0:e.default)||e}}function l(e,t){return delete t.webpack,delete t.modules,e(t)}function i(e,t){let a=n.default,r={loading:e=>{let{error:t,isLoading:a,pastDelay:r}=e;return null}};e instanceof Promise?r.loader=()=>e:"function"==typeof e?r.loader=e:"object"==typeof e&&(r={...r,...e});let i=(r={...r,...t}).loader;return(r.loadableGenerated&&(r={...r,...r.loadableGenerated},delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr)?a({...r,loader:()=>null!=i?i().then(s):Promise.resolve(s(()=>null))}):(delete r.webpack,delete r.modules,l(a,r))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28438:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return r}});let r=a(51538)._(a(27378)).default.createContext(null)},21887:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let r=a(51538)._(a(27378)),n=a(28438),s=[],l=[],i=!1;function o(e){let t=e(),a={loading:!0,loaded:null,error:null};return a.promise=t.then(e=>(a.loading=!1,a.loaded=e,e)).catch(e=>{throw a.loading=!1,a.error=e,e}),a}class u{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function d(e){return function(e,t){let a=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),s=null;function o(){if(!s){let t=new u(e,a);s={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return s.promise()}if(!i){let e=a.webpack?a.webpack():a.modules;e&&l.push(t=>{for(let a of e)if(t.includes(a))return o()})}function d(e,t){!function(){o();let e=r.default.useContext(n.LoadableContext);e&&Array.isArray(a.modules)&&a.modules.forEach(t=>{e(t)})}();let l=r.default.useSyncExternalStore(s.subscribe,s.getCurrentValue,s.getCurrentValue);return r.default.useImperativeHandle(t,()=>({retry:s.retry}),[]),r.default.useMemo(()=>{var t;return l.loading||l.error?r.default.createElement(a.loading,{isLoading:l.loading,pastDelay:l.pastDelay,timedOut:l.timedOut,error:l.error,retry:s.retry}):l.loaded?r.default.createElement((t=l.loaded)&&t.default?t.default:t,e):null},[e,l])}return d.preload=()=>o(),d.displayName="LoadableComponent",r.default.forwardRef(d)}(o,e)}function c(e,t){let a=[];for(;e.length;){let r=e.pop();a.push(r(t))}return Promise.all(a).then(()=>{if(e.length)return c(e,t)})}d.preloadAll=()=>new Promise((e,t)=>{c(s).then(e,t)}),d.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let a=()=>(i=!0,t());c(l,e).then(a,a)})),window.__NEXT_PRELOADREADY=d.preloadReady;let f=d},65218:function(e,t,a){e.exports=a(76737)}},function(e){e.O(0,[431,6527,5574,2888,9774,179],function(){return e(e.s=73846)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8473],{64902:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset",function(){return a(91949)}])},79806:function(e,t,a){"use strict";a.d(t,{Gn:function(){return r},zR:function(){return n}});var s=a(24246),l=a(96306),i=a(56358);let n=e=>{let{title:t}=e;return(0,s.jsx)(l.OXI,{py:0,display:"flex",alignItems:"flex-start",children:(0,s.jsx)(l.xvT,{mr:"2",color:"gray.700",fontSize:"lg",lineHeight:1.8,children:t})})},r=e=>{let{onDelete:t,onEditYaml:a,formId:n,isSaving:r}=e;return(0,s.jsxs)(l.zeN,{justifyContent:"space-between",children:[t?(0,s.jsx)(l.wpx,{"aria-label":"delete",icon:(0,s.jsx)(i.q,{fontSize:"small"}),onClick:t,"data-testid":"delete-btn"}):null,(0,s.jsxs)("div",{className:"flex gap-2",children:[a&&(0,s.jsx)(l.wpx,{onClick:a,"data-testid":"edit-yaml-btn",children:"Edit YAML"}),(0,s.jsx)(l.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",form:n,loading:r,children:"Save"})]})]})};t.ZP=e=>{let{header:t,description:a,isOpen:i,onClose:n,children:r,footer:o}=e;return(0,s.jsxs)(l.dys,{placement:"right",isOpen:i,onClose:n,size:"md",children:[(0,s.jsx)(l.P1B,{}),(0,s.jsxs)(l.scA,{"data-testid":"edit-drawer-content",py:2,children:[(0,s.jsxs)(l.xuv,{display:"flex",justifyContent:"space-between",alignItems:"top",mr:2,py:2,gap:2,children:[(0,s.jsx)(l.xuv,{flex:1,minH:8,children:t}),(0,s.jsx)(l.xuv,{display:"flex",justifyContent:"flex-end",mr:2,children:(0,s.jsx)(l.wpx,{"aria-label":"Close editor",onClick:n,"data-testid":"close-drawer-btn",icon:(0,s.jsx)(l.Two,{fontSize:"smaller"})})})]}),(0,s.jsxs)(l.Ng0,{pt:1,children:[a?(0,s.jsx)(l.xvT,{fontSize:"sm",mb:4,color:"gray.600",children:a}):null,r]}),o]})]})}},56358:function(e,t,a){"use strict";a.d(t,{q:function(){return l}});var s=a(24246);let l=(0,a(96306).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,s.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"})})},8133:function(e,t,a){"use strict";var s=a(24246),l=a(96306);t.Z=e=>{let{title:t,children:a,isOpen:i,onClose:n,modalContentProps:r,showCloseButton:o=!1,footer:d,...u}=e;return(0,s.jsxs)(l.u_l,{isOpen:i,onClose:n,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...u,children:[(0,s.jsx)(l.ZAr,{}),(0,s.jsxs)(l.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...r,children:[o&&(0,s.jsx)(l.olH,{}),(0,s.jsx)(l.xBx,{p:0,children:(0,s.jsx)(l.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,s.jsx)(l.X6q,{as:"h3",size:"sm",children:t})})}),(0,s.jsx)(l.fef,{pb:4,overflow:"auto",children:a}),d&&(0,s.jsx)(l.mzw,{children:d})]})]})}},56026:function(e,t,a){"use strict";a.d(t,{QL:function(){return i},du:function(){return l},tz:function(){return s}});let s={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."}},l={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."}},i={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,a){"use strict";a.r(t),a.d(t,{default:function(){return N}});var s=a(24246),l=a(92222),i=a(59003),n=a(96306),r=a(79894),o=a.n(r),d=a(86677),u=a(27378),c=a(16125),p=a(32885),f=a(21910);let h=e=>{let{resourceType:t,fidesKeys:a,skip:s}=e,[l,i]=(0,u.useState)(!0),n=(0,p.Wm)({resource_type:t,fides_keys:a},{skip:s,pollingInterval:l?3e3:void 0}),r=!!n.data&&n.data.every(e=>e.status===f.Wg.COMPLETE||e.status===f.Wg.FAILED||e.status===f.Wg.REVIEWED);return(0,u.useEffect)(()=>{r&&i(!1)},[r]),{...n,isClassificationFinished:r}};var m=a(25980),x=a(77213),y=a(77830),g=a(58754),b=a(47935),j=a(20386),C=a(79806),_=a(812),v=a(46628),w=a(8133),k=a(84306),S=a(66527),O=a(41207),z=a(39715),D=a(41966),P=e=>{let{data:t=[],isSubmitting:a=!1,onCancel:l,onSubmit:i,disabled:r,isLoading:o,onChange:d}=e,c=(0,u.useRef)(null),{errorAlert:p}=(0,k.V)(),f=t.length>0?S.ZP.dump(t):void 0,[h,m]=(0,u.useState)(void 0),[x,y]=(0,u.useState)(!1),[g,b]=(0,u.useState)(!f),{data:j}=(0,D.LH)({minimal:!0}),[C,_]=(0,u.useState)([]),v=e=>{S.ZP.load(e,{json:!0}),m(void 0)},w=()=>{if(j&&j.length){let e=c.current.getValue();_(j.filter(t=>e.includes("fides_key: ".concat(t.fides_key,"\n"))).map(e=>e.fides_key))}},P=r||g||!x||!!h||a;return(0,s.jsxs)(n.kCb,{gap:"97px",children:[(0,s.jsxs)(n.gCW,{align:"stretch",w:"800px",children:[(0,s.jsx)(O.M,{defaultLanguage:"yaml",defaultValue:f,height:"calc(100vh - 526px)",onChange:e=>{try{y(!0),v(e),b(!e||""===e.trim());let t=S.ZP.load(e||"",{json:!0});Array.isArray(t)?d(t[0]):d(t),w()}catch(e){(0,O.F)(e)?m(e):p("Could not parse the supplied YAML")}},onMount:(e,t)=>{c.current=e,c.current.focus()},options:{fontFamily:"Menlo",fontSize:13,minimap:{enabled:!1},readOnly:r},theme:"light"}),C.length>0?(0,s.jsxs)(n.xvT,{children:["You are about to overwrite the dataset",C.length>1?"s":""," ",C.map((e,t)=>{let a=t===C.length-1;return(0,s.jsxs)(u.Fragment,{children:[(0,s.jsx)(n.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:e}),a?".":", "]},e)})]}):null,(0,s.jsx)(n.mzw,{children:(0,s.jsxs)("div",{className:"flex w-full justify-end gap-4",children:[l&&(0,s.jsx)(n.wpx,{onClick:l,"data-testid":"cancel-btn",disabled:o,children:"Cancel"}),(0,s.jsx)(n.wpx,{type:"primary",onClick:()=>{null==i||i(),null==l||l()},"data-testid":"continue-btn",disabled:P,loading:a||o,children:"Confirm"})]})})]}),x&&(g||h)&&(0,s.jsx)(z.Z,{isEmptyState:g,yamlError:h})]})},E=e=>{let{isOpen:t,onClose:a,title:l,isLoading:i,returnFocusOnClose:r,isDatasetSelected:o,dataset:d,onChange:u,onSubmit:c}=e;return(0,s.jsx)(w.Z,{isOpen:t,onClose:a,size:"3xl",returnFocusOnClose:null==r||r,isCentered:!0,title:null!=l?l:"Edit Dataset",children:(0,s.jsx)(n.xuv,{"data-testid":"yaml-editor-section",children:(0,s.jsx)(P,{data:d?[d]:[],onSubmit:c,isSubmitting:!1,disabled:o,onChange:u,isLoading:i,onCancel:a})})})},T=a(34090),A=a(40324),R=a(56026);let V="edit-field-drawer";var M=e=>{var t,a;let{values:l,onSubmit:i}=e,r={name:null!==(t=l.name)&&void 0!==t?t:"",description:null!==(a=l.description)&&void 0!==a?a:"",data_categories:l.data_categories};return(0,s.jsx)(T.J9,{initialValues:r,onSubmit:e=>{i({...e,data_categories:l.data_categories||[]})},children:(0,s.jsx)(T.l0,{id:V,children:(0,s.jsxs)(n.Kqy,{spacing:"3",children:[(0,s.jsx)(A.j0,{name:"name",label:"Name",tooltip:R.tz.name.tooltip,"data-testid":"name-input",variant:"block"}),(0,s.jsx)(A.j0,{name:"description",label:"Description",tooltip:R.tz.description.tooltip,"data-testid":"description-input",variant:"block"})]})})})},H=e=>{let{dataset:t,isOpen:a,onClose:l}=e,[i,{isLoading:r}]=(0,j.TG)(),[o]=(0,j.QY)(),c=(0,d.useRouter)(),p=(0,n.pmc)(),{isOpen:f,onOpen:h,onClose:m}=(0,n.qY0)(),{isOpen:x,onOpen:y,onClose:g}=(0,n.qY0)(),[b,w]=(0,u.useState)(void 0),k=async e=>{let a={...t,...e};try{let e=await i(a);(0,_.D4)(e)?p((0,v.Vo)((0,_.e$)(e.error))):p((0,v.t5)("Successfully modified dataset"))}catch(e){p((0,v.Vo)(e))}l()},S=async()=>{let{fides_key:e}=t,a=await o(e);(0,_.D4)(a)?p((0,v.Vo)((0,_.e$)(a.error))):p((0,v.t5)("Successfully deleted dataset")),(0,j.Zl)(void 0),c.push("/dataset"),l(),m()};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(C.ZP,{isOpen:a,onClose:l,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,s.jsx)(C.zR,{title:"Edit: ".concat(null==t?void 0:t.name)}),footer:(0,s.jsx)(C.Gn,{onClose:l,onDelete:h,onEditYaml:()=>y(),formId:V}),children:[(0,s.jsx)(E,{isOpen:x,onClose:g,onChange:w,onSubmit:()=>k(b),title:"Edit dataset YAML",isLoading:r,isDatasetSelected:!1,dataset:t}),(0,s.jsx)(M,{values:t,onSubmit:k})]}),(0,s.jsx)(n.cVQ,{isOpen:f,onClose:m,onConfirm:S,title:"Delete Dataset",message:(0,s.jsxs)(n.xvT,{children:["You are about to permanently delete the dataset named"," ",(0,s.jsx)(n.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==t?void 0:t.name}),". Are you sure you would like to continue?"]})})]})};let L=(0,l.Cl)(),Z={items:[],total:0,page:1,size:25,pages:1},I=()=>(0,s.jsx)(n.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,s.jsxs)(n.gCW,{children:[(0,s.jsx)(n.xvT,{fontSize:"md",fontWeight:"600",children:"No datasets found."}),(0,s.jsx)(n.xvT,{fontSize:"sm",children:'Click "Create new dataset" to add your first dataset to Fides.'})]})});var N=()=>{let e=(0,c.I0)(),t=(0,d.useRouter)(),[a,r]=(0,u.useState)(!1),[p,C]=(0,u.useState)(),{PAGE_SIZES:_,pageSize:v,setPageSize:w,onPreviousPageClick:k,isPreviousPageDisabled:S,onNextPageClick:O,isNextPageDisabled:z,startRange:D,endRange:P,pageIndex:E,setTotalPages:T,resetPageIndexToDefault:A}=(0,b.oi)(),[R,V]=(0,u.useState)(),M=(0,u.useCallback)(e=>{A(),V(e)},[A,V]),{data:N,isLoading:F,isFetching:W}=(0,j.rt)({page:E,size:v,search:R,exclude_saas_datasets:!0}),{items:Y,total:G,pages:q}=(0,u.useMemo)(()=>null!=N?N:Z,[N]);(0,u.useEffect)(()=>{T(q)},[q,T]);let B=(0,u.useCallback)(a=>{e((0,j.Zl)(a.fides_key)),t.push({pathname:y.o5,query:{datasetId:encodeURIComponent(a.fides_key)}})},[e,t]),X=(0,m.hz)();h({resourceType:f.j.DATASETS,skip:!X.plus});let Q=(0,u.useMemo)(()=>[L.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(b.G3,{value:e.getValue(),fontWeight:"semibold"}),header:e=>(0,s.jsx)(b.Rr,{value:"Dataset Name",...e}),size:180}),L.accessor(e=>e.fides_key,{id:"fides_key",cell:e=>(0,s.jsx)(b.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(b.Rr,{value:"Fides Key",...e}),size:150}),L.accessor(e=>e.description,{id:"description",cell:e=>(0,s.jsx)(b.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,s.jsx)(b.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),L.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,a=t.original;return(0,s.jsx)(n.Ugi,{spacing:0,"data-testid":"dataset-".concat(a.fides_key),children:(0,s.jsx)(n.wpx,{size:"small",icon:(0,s.jsx)(n.dY8,{}),onClick:()=>{C(a),r(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})].filter(Boolean),[]),U=(0,i.b7)({getCoreRowModel:(0,l.sC)(),getFilteredRowModel:(0,l.vL)(),getSortedRowModel:(0,l.tj)(),columns:Q,data:Y,columnResizeMode:"onChange"});return(0,s.jsx)(x.Z,{title:"Datasets",children:(0,s.jsxs)(n.xuv,{"data-testid":"system-management",children:[(0,s.jsx)(g.Z,{heading:"Datasets",breadcrumbItems:[{title:"All datasets"}],rightContent:(0,s.jsx)(o(),{href:"/dataset/new",passHref:!0,legacyBehavior:!0,children:(0,s.jsx)(n.wpx,{"data-testid":"create-dataset-btn",children:"+ Add dataset"})})}),F?(0,s.jsx)(b.I4,{rowHeight:36,numRows:15}):(0,s.jsxs)(n.xuv,{"data-testid":"dataset-table",children:[(0,s.jsx)(b.Q$,{children:(0,s.jsx)(b.HO,{globalFilter:R,setGlobalFilter:M,placeholder:"Search",testid:"dataset-search"})}),(0,s.jsx)(b.ZK,{tableInstance:U,emptyTableNotice:(0,s.jsx)(I,{}),onRowClick:B})]}),(0,s.jsx)(b.s8,{totalRows:G||0,pageSizes:_,setPageSize:w,onPreviousPageClick:k,isPreviousPageDisabled:S||W,onNextPageClick:O,isNextPageDisabled:z||W,startRange:D,endRange:P}),(0,s.jsx)(H,{dataset:p,isOpen:a,onClose:()=>{C(void 0),r(!1)}})]})})}},76737:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var a in t)Object.defineProperty(e,a,{enumerable:!0,get:t[a]})}(t,{default:function(){return r},noSSR:function(){return n}});let s=a(51538);a(24246),a(27378);let l=s._(a(21887));function i(e){return{default:(null==e?void 0:e.default)||e}}function n(e,t){return delete t.webpack,delete t.modules,e(t)}function r(e,t){let a=l.default,s={loading:e=>{let{error:t,isLoading:a,pastDelay:s}=e;return null}};e instanceof Promise?s.loader=()=>e:"function"==typeof e?s.loader=e:"object"==typeof e&&(s={...s,...e});let r=(s={...s,...t}).loader;return(s.loadableGenerated&&(s={...s,...s.loadableGenerated},delete s.loadableGenerated),"boolean"!=typeof s.ssr||s.ssr)?a({...s,loader:()=>null!=r?r().then(i):Promise.resolve(i(()=>null))}):(delete s.webpack,delete s.modules,n(a,s))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28438:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return s}});let s=a(51538)._(a(27378)).default.createContext(null)},21887:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return p}});let s=a(51538)._(a(27378)),l=a(28438),i=[],n=[],r=!1;function o(e){let t=e(),a={loading:!0,loaded:null,error:null};return a.promise=t.then(e=>(a.loading=!1,a.loaded=e,e)).catch(e=>{throw a.loading=!1,a.error=e,e}),a}class d{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function u(e){return function(e,t){let a=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),i=null;function o(){if(!i){let t=new d(e,a);i={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return i.promise()}if(!r){let e=a.webpack?a.webpack():a.modules;e&&n.push(t=>{for(let a of e)if(t.includes(a))return o()})}function u(e,t){!function(){o();let e=s.default.useContext(l.LoadableContext);e&&Array.isArray(a.modules)&&a.modules.forEach(t=>{e(t)})}();let n=s.default.useSyncExternalStore(i.subscribe,i.getCurrentValue,i.getCurrentValue);return s.default.useImperativeHandle(t,()=>({retry:i.retry}),[]),s.default.useMemo(()=>{var t;return n.loading||n.error?s.default.createElement(a.loading,{isLoading:n.loading,pastDelay:n.pastDelay,timedOut:n.timedOut,error:n.error,retry:i.retry}):n.loaded?s.default.createElement((t=n.loaded)&&t.default?t.default:t,e):null},[e,n])}return u.preload=()=>o(),u.displayName="LoadableComponent",s.default.forwardRef(u)}(o,e)}function c(e,t){let a=[];for(;e.length;){let s=e.pop();a.push(s(t))}return Promise.all(a).then(()=>{if(e.length)return c(e,t)})}u.preloadAll=()=>new Promise((e,t)=>{c(i).then(e,t)}),u.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let a=()=>(r=!0,t());c(n,e).then(a,a)})),window.__NEXT_PRELOADREADY=u.preloadReady;let p=u},65218:function(e,t,a){e.exports=a(76737)}},function(e){e.O(0,[6527,5574,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]-816e02b6cbe4a684.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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(96306),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.Z,{data: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(21910),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,[8765,431,699,6527,1467,5574,4608,2888,9774,179],function(){return e(e.s=10463)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-b6838162200141b3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6050],{91747:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/datastore-connection/new",function(){return n(7936)}])},19904:function(e,t,n){"use strict";n.d(t,{Tg:function(){return s}});var i=n(24246),r=n(16134),l=n(31793);let s=e=>(0,r.C)(l.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return s(t)?(0,i.jsx)(i.Fragment,{children:n}):null}},96718:function(e,t,n){"use strict";n.d(t,{z:function(){return l}});var i=n(24246),r=n(96306);let l=e=>{let{...t}=e;return(0,i.jsx)(r.WPr,{defaultActiveFirstOption:!1,maxTagCount:"responsive",allowClear:!0,styles:t.mode?void 0:{popup:{root:{width:"auto",minWidth:"200px"}}},className:"w-auto","data-testid":"filter-select",...t})}},44553:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var i=n(24246),r=n(96306),l=n(27378),s=n(45277),a=n(16125),o=n(812),c=n(46628),u=n(20682),d=n(54427),p=n(52253),h=n(78780);let{reducer:x}=(0,d.oM)({name:"connectorTemplate",initialState:{},reducers:{}}),{useRegisterConnectorTemplateMutation:f}=h.u.injectEndpoints({endpoints:e=>({registerConnectorTemplate:e.mutation({query:e=>{let t=new FormData;return t.append("file",e),{url:"".concat(p.o4,"/register"),method:"POST",body:t}},invalidatesTags:()=>["Connection Type"]})})});var m=e=>{let{isOpen:t,onClose:n,testId:d="connector-template-modal"}=e,p=(0,a.I0)(),[h,x]=(0,l.useState)(null),m=(0,r.pmc)(),{getRootProps:y,getInputProps:j,isDragActive:g}=(0,s.uI)({onDrop:e=>{var t;if("zip"!==(null===(t=e[0].name.split(".").pop())||void 0===t?void 0:t.toLowerCase())){m((0,c.Vo)("Only zip files are allowed."));return}x(e[0])}}),[v,{isLoading:C}]=f(),{refetch:b}=(0,u.$I)({search:""},{skip:!1}),w=async()=>{if(h)try{var e;await v(h).unwrap(),m((0,c.t5)("Integration template uploaded successfully."));let{data:t}=await b();p((0,u.fP)(null!==(e=null==t?void 0:t.items)&&void 0!==e?e:[])),n()}catch(e){m((0,c.Vo)((0,o.e$)(e)))}finally{x(null)}};return(0,i.jsxs)(r.u_l,{isOpen:t,onClose:n,size:"2xl",children:[(0,i.jsx)(r.ZAr,{}),(0,i.jsxs)(r.hzk,{textAlign:"left",p:2,"data-testid":d,children:[(0,i.jsx)(r.xBx,{children:"Upload integration template"}),(0,i.jsxs)(r.fef,{children:[(0,i.jsx)(r.xvT,{fontSize:"sm",mb:4,children:"Drag and drop your integration template zip file here, or click to browse your files."}),(0,i.jsxs)(r.xuv,{...y(),bg:g?"gray.100":"gray.50",border:"2px dashed",borderColor:g?"gray.300":"gray.200",borderRadius:"md",cursor:"pointer",minHeight:"150px",display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",children:[(0,i.jsx)("input",{...j()}),h?(0,i.jsx)(r.xvT,{children:h.name}):g?(0,i.jsx)(r.xvT,{children:"Drop the file here..."}):(0,i.jsx)(r.xvT,{children:"Click or drag and drop your file here."})]}),(0,i.jsx)(r.xvT,{fontSize:"sm",mt:4,children:"An integration template zip file must include a SaaS config and dataset, but may also contain an icon (.svg) as an optional file."})]}),(0,i.jsxs)(r.mzw,{className:"flex w-full justify-end gap-2",children:[(0,i.jsx)(r.wpx,{onClick:n,"data-testid":"cancel-btn",disabled:C,children:"Cancel"}),(0,i.jsx)(r.wpx,{type:"primary",htmlType:"submit",disabled:!h||C,onClick:w,"data-testid":"submit-btn",children:"Submit"})]})]})]})}},7936:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return O}});var i=n(24246),r=n(96356),l=n(41337),s=n(96306),a=n(86677),o=n(27378),c=n(16125),u=n(16134),d=n(77830),p=n(58754),h=n(16394),x=n(19904),f=n(44553),m=n(21910),y=n(96718),j=n(26788),g=()=>{let e=(0,c.I0)(),t=(0,o.useRef)(!1);(0,o.useEffect)(()=>(t.current=!0,()=>{e((0,r.zq)(j.gA)),t.current=!1}),[e]);let n=(0,o.useRef)([...j.yI].map(e=>{let[t,n]=e;return{value:null==n?void 0:n.value,label:t}}));return(0,i.jsx)(y.z,{allowClear:!1,options:n.current,onChange:t=>{e((0,r.zq)(t||j.gA))},defaultValue:"","data-testid":"connection-type-filter"})},v=n(79894),C=n.n(v),b=e=>{let{items:t}=e;return(0,i.jsx)(s.MIq,{columns:4,spacingX:"16px",spacingY:"16px",children:t.map(e=>(0,i.jsx)(C(),{href:{pathname:window.location.pathname,query:{step:2,connectorType:JSON.stringify(e)}},children:(0,i.jsx)(s.xuv,{boxShadow:"base",borderRadius:"5px",maxWidth:"331px",overflow:"hidden",_hover:{boxShadow:"lg",cursor:"pointer"},"data-testid":"".concat(e.identifier,"-item"),children:(0,i.jsxs)(s.kCb,{alignItems:"center",justifyContent:"start",pl:"24px",pr:"24px",color:"gray.700",fontSize:"14px",fontStyle:"normal",fontWeight:"600",lineHeight:"20px",h:"80px",children:[(0,i.jsx)(l.Z,{data:e}),(0,i.jsx)(s.xvT,{ml:"12px",children:e.human_readable})]})})},e.identifier))})},w=()=>{let e=(0,c.I0)(),t=(0,o.useRef)(!1),{step:n}=(0,u.C)(r.ZZ),l=(0,u.C)(r.pw),{data:a,isFetching:d,isLoading:p,isSuccess:y}=(0,r.$I)(l),[j,v]=(0,o.useState)(!1),C=(0,o.useCallback)(t=>{(0===t.target.value.length||t.target.value.length>1)&&e((0,r.qP)(t.target.value))},[e]),w=(0,o.useMemo)(()=>(0,h.Ds)(C,250),[C]),T=(0,o.useMemo)(()=>(null==a?void 0:a.items)&&[...a.items].sort((e,t)=>e.human_readable>t.human_readable?1:-1),[a]);return(0,o.useEffect)(()=>(t.current=!0,()=>{e((0,r.qP)("")),t.current=!1}),[e]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.kCb,{minWidth:"fit-content",children:(0,i.jsx)(s.xuv,{color:"gray.700",fontSize:"14px",maxHeight:"80px",maxWidth:"474px",mb:"24px",children:n.description})}),(0,i.jsxs)(s.kCb,{alignItems:"center",gap:"4",mb:"24px",minWidth:"fit-content",children:[(0,i.jsx)(g,{}),(0,i.jsxs)(s.BZy,{size:"sm",children:[(0,i.jsx)(s.Z8_,{pointerEvents:"none",children:(0,i.jsx)(s.PTu,{color:"gray.300",h:"17px",w:"17px"})}),(0,i.jsx)(s.IIB,{autoComplete:"off",autoFocus:!0,borderRadius:"md",name:"search",onChange:w,placeholder:"Search integrations",size:"sm",type:"search"})]}),(0,i.jsx)(x.ZP,{scopes:[m.Sh.CONNECTOR_TEMPLATE_REGISTER],children:(0,i.jsx)(s.wpx,{onClick:()=>{v(!0)},type:"primary",htmlType:"submit","data-testid":"upload-btn",children:"Upload connector"})})]}),(0,i.jsx)(f.Z,{isOpen:j,onClose:()=>v(!1)}),(d||p)&&(0,i.jsx)(s.M5Y,{children:(0,i.jsx)(s.$jN,{})}),y&&T?(0,i.jsx)(b,{items:T}):null]})},T=n(11274),S=n(38212),I=n(50881),k=()=>{let e=(0,c.I0)(),t=(0,o.useRef)(!1),[n,l]=(0,o.useState)(!1),{connection:a,connectionOption:d}=(0,u.C)(r.ZZ),p=j.IM.find(e=>e.type===(null==d?void 0:d.type)),[h,x]=(0,o.useState)(null==p?void 0:p.options[0]),f=()=>{l(!0)},y=(0,o.useMemo)(()=>{let e=[];return(null==p?void 0:p.options)&&p.options.forEach(t=>{let n;switch(t){case j.H5.CONNECTOR_PARAMETERS:n={label:t,key:t,children:(0,i.jsx)(T.s,{onConnectionCreated:f})};break;case j.H5.DATASET_CONFIGURATION:n=(null==a?void 0:a.key)?{label:t,key:t,children:(0,i.jsx)(S.Z,{})}:void 0;break;case j.H5.DSR_CUSTOMIZATION:n=(null==a?void 0:a.key)?{label:t,key:t,children:(0,i.jsx)(I.Z,{})}:void 0}n&&e.push(n)}),e},[null==a?void 0:a.key,null==p?void 0:p.options]),g=(0,o.useCallback)(t=>{switch(t){case j.H5.DATASET_CONFIGURATION:case j.H5.DSR_CUSTOMIZATION:e((0,r.nj)(j.Ss[3]));break;case j.H5.CONNECTOR_PARAMETERS:default:e((0,r.nj)(j.Ss[2]))}x(t)},[e]);return(0,o.useEffect)(()=>(t.current=!0,()=>{t.current=!1,e((0,r.mc)())}),[e]),(0,o.useEffect)(()=>{(null==a?void 0:a.key)&&(g((null==d?void 0:d.type)!==m.Zi.MANUAL?j.H5.DATASET_CONFIGURATION:j.H5.DSR_CUSTOMIZATION),n&&l(!1))},[n,null==a?void 0:a.key,null==d?void 0:d.type,null==p?void 0:p.options,g]),(0,i.jsx)(s.gCW,{alignItems:"stretch",gap:"18px",children:(0,i.jsx)(s.A5g,{items:y,activeKey:h,onChange:g})})};let A=(e,t)=>{let n="".concat(window.location.origin+t,"&key=").concat(e);window.location.href.toLowerCase()!==n.toLowerCase()&&window.history.replaceState(null,"",n)},{Title:N}=s.AntTypography;var _=()=>{let e=(0,c.I0)(),t=(0,a.useRouter)(),{connectorType:n,step:h}=t.query,{connection:x,connectionOption:f,step:m}=(0,u.C)(r.ZZ);(0,o.useEffect)(()=>{if(n&&e((0,r.yA)(JSON.parse(n))),t.query.step){let t=j.Ss.find(e=>e.stepId===Number(h));e((0,r.nj)(t||j.Ss[1]))}return!t.query.id&&(null==x?void 0:x.key)&&A(x.key,m.href),()=>{}},[null==x?void 0:x.key,n,h,e,t.query.id,t.query.step,m.href]);let y=(0,o.useCallback)(e=>{let t="";switch(e.stepId){case 2:case 3:t=e.label.replace("{identifier}",f.human_readable);break;default:t=e.label}return t},[f]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p.Z,{heading:"Connections",breadcrumbItems:[{title:"Unlinked connections",href:d.JR},{title:"New connection"}],children:(0,i.jsx)(N,{level:3,style:{marginBottom:0},className:"mt-4",children:f?(0,i.jsxs)(s.vyj,{children:[(0,i.jsx)(l.Z,{data:f}),y(m)]}):y(m)})}),(()=>{switch(m.stepId){case 1:default:return(0,i.jsx)(w,{});case 2:case 3:return(0,i.jsx)(k,{})}})()]})},E=n(1226),O=()=>(0,i.jsx)(E.Z,{children:(0,i.jsx)(_,{})})}},function(e){e.O(0,[8765,431,699,6527,5277,1467,5574,4608,2888,9774,179],function(){return e(e.s=91747)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-223c2d1ded51bfb1.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1850],{75733:function(e){e.exports=function(e,n,t){var i=-1,r=e.length;n<0&&(n=-n>r?0:r+n),(t=t>r?r:t)<0&&(t+=r),r=n>t?0:t-n>>>0,n>>>=0;for(var s=Array(r);++i<r;)s[i]=e[i+n];return s}},74833:function(e,n,t){var i=t(56127),r=/^\s+/;e.exports=function(e){return e?e.slice(0,i(e)+1).replace(r,""):e}},42383:function(e){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var i=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==i||"symbol"!=i&&n.test(e))&&e>-1&&e%1==0&&e<t}},57535:function(e,n,t){var i=t(85638),r=t(80068),s=t(42383),o=t(11611);e.exports=function(e,n,t){if(!o(t))return!1;var a=typeof n;return("number"==a?!!(r(t)&&s(n,t.length)):"string"==a&&n in t)&&i(t[n],e)}},56127:function(e){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},92875:function(e,n,t){var i=t(75733),r=t(57535),s=t(47991),o=Math.ceil,a=Math.max;e.exports=function(e,n,t){n=(t?r(e,n,t):void 0===n)?1:a(s(n),0);var l=null==e?0:e.length;if(!l||n<1)return[];for(var c=0,u=0,d=Array(o(l/n));c<l;)d[u++]=i(e,c,c+=n);return d}},85638:function(e){e.exports=function(e,n){return e===n||e!=e&&n!=n}},80068:function(e,n,t){var i=t(28338),r=t(84194);e.exports=function(e){return null!=e&&r(e.length)&&!i(e)}},28338:function(e,n,t){var i=t(99736),r=t(11611);e.exports=function(e){if(!r(e))return!1;var n=i(e);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},84194:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},11611:function(e){e.exports=function(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)}},55193:function(e,n,t){var i=t(99736),r=t(92360);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==i(e)}},94919:function(e,n,t){var i=t(91936),r=1/0;e.exports=function(e){return e?(e=i(e))===r||e===-r?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,n,t){var i=t(94919);e.exports=function(e){var n=i(e),t=n%1;return n==n?t?n-t:n:0}},91936:function(e,n,t){var i=t(74833),r=t(11611),s=t(55193),o=0/0,a=/^[-+]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(s(e))return o;if(r(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=r(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var t=l.test(e);return t||c.test(e)?u(e.slice(2),t?2:8):a.test(e)?o:+e}},98720:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/datastore-connection",function(){return t(22285)}])},77867:function(e,n,t){"use strict";var i=t(24246),r=t(96306);n.Z=e=>{let{connected:n,...t}=e,s="red.500";return null==n?s="gray.300":n&&(s="green.500"),(0,i.jsx)(r.xuv,{width:"12px",height:"12px",borderRadius:"6px",backgroundColor:s,...t})}},77213:function(e,n,t){"use strict";t.d(n,{Z:function(){return x}});var i=t(24246),r=t(96306),s=t(88038),o=t.n(s),a=t(86677);t(27378);var l=t(25980),c=t(90867),u=t(42478),d=t(77830),g=()=>{let e=(0,a.useRouter)();return(0,i.jsx)(r.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(r.xuv,{children:[(0,i.jsxs)(r.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(r.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(r.wpx,{onClick:()=>{e.push(d.AD)},children:"Configure"})]}),(0,i.jsxs)(r.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},x=e=>{let{children:n,title:t,padded:s=!0,mainProps:d}=e,x=(0,l.hz)(),f=(0,a.useRouter)(),h="/privacy-requests"===f.pathname||"/datastore-connection"===f.pathname,p=!(x.flags.messagingConfiguration&&h),{data:m}=(0,u.JE)(void 0,{skip:p}),{data:v}=(0,c.PW)(void 0,{skip:p}),y=x.flags.messagingConfiguration&&(!m||!v)&&h;return(0,i.jsxs)(r.kCb,{"data-testid":t,direction:"column",h:"100vh",children:[(0,i.jsxs)(o(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",t]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(r.kCb,{as:"main",direction:"column",py:s?6:0,px:s?10:0,h:s?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[y?(0,i.jsx)(g,{}):null,n]})]})}},58754:function(e,n,t){"use strict";var i=t(24246),r=t(96306),s=t(70788);n.Z=e=>{let{heading:n,breadcrumbItems:t,isSticky:o=!0,children:a,rightContent:l,style:c,...u}=e;return(0,i.jsxs)("div",{...u,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,i.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof n?(0,i.jsx)(r.lQT,{className:t||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:n}):n,l&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!t&&(0,i.jsx)(s.m,{className:a?"pb-4":void 0,items:t,"data-testid":"page-breadcrumb"}),a]})}},96718:function(e,n,t){"use strict";t.d(n,{z:function(){return s}});var i=t(24246),r=t(96306);let s=e=>{let{...n}=e;return(0,i.jsx)(r.WPr,{defaultActiveFirstOption:!1,maxTagCount:"responsive",allowClear:!0,styles:n.mode?void 0:{popup:{root:{width:"auto",minWidth:"200px"}}},className:"w-auto","data-testid":"filter-select",...n})}},70788:function(e,n,t){"use strict";t.d(n,{m:function(){return c}});var i=t(24246),r=t(96306),s=t(79894),o=t.n(s),a=t(27378);let{Text:l}=r.AntTypography,c=e=>{let{items:n,...t}=e,s=(0,a.useMemo)(()=>null==n?void 0:n.map((e,t)=>{let s=t===n.length-1,a={...e},c=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,i.jsx)(l,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,id:s?"breadcrumb-current-page":void 0,children:a.title})),c)?a.title=(0,i.jsx)(r.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,i.jsx)(o(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[n]);return(0,i.jsx)(r.zrq,{items:s,...t})}},41337:function(e,n,t){"use strict";var i=t(24246),r=t(96306);t(27378);var s=t(88337),o=t(16394),a=t(14746);let l=a.Ny+a.iW.get(s.R.WEBSITE),c=e=>void 0!==e.connection_type,u=e=>void 0!==e.encoded_icon,d=e=>(null==e?void 0:e.connection_type)===s.R.WEBSITE,g=e=>(null==e?void 0:e.connection_type)===s.R.SAAS;n.Z=e=>{let{data:n,...t}=e;return(0,i.jsx)(r.Eep,{boxSize:"32px",objectFit:"cover",src:(()=>{var e,t;let i;if(u(n)&&n.encoded_icon)return"data:image/svg+xml;base64,".concat(n.encoded_icon);if(d(n)){let t=null===(e=n.secrets)||void 0===e?void 0:e.url;if(!t)return l;let i=(0,o.ge)(t);return(0,o.tl)(i,100)}if(c(n)){if(g(n)&&(null===(t=n.saas_config)||void 0===t?void 0:t.type)){let e=n.saas_config.type,t=a.LN.get(e);return t?a.Ny+t:a.Ny+a.iW.get(s.R.SAAS)}i=[...a.iW].find(e=>{let[t]=e;return n.connection_type.toString()===t.toString()})}else if(u(n)){let{identifier:e}=n;i=[...a.iW].find(n=>{let[t]=n;return t.toLowerCase()===e.toLowerCase()})}return i?a.Ny+i[1]:a.VD})(),fallbackSrc:d(n)?l:a.VD,alt:(()=>{if(c(n)){var e;return null!==(e=n.name)&&void 0!==e?e:n.key}return u(n)?n.human_readable:n})(),...t})}},1226:function(e,n,t){"use strict";var i=t(24246);t(27378);var r=t(77213);n.Z=e=>{let{children:n}=e;return(0,i.jsx)(r.Z,{title:"Connections",children:n})}},15872:function(e,n,t){"use strict";var i=t(24246),r=t(96306),s=t(86677);t(27378);var o=t(77830),a=t(14207);n.Z=e=>{let{connection_key:n,showMenu:t}=e,{isOpen:l,onOpen:c,onClose:u}=(0,r.qY0)(),[d,g]=(0,a.R5)(),x=(0,s.useRouter)(),f=()=>{g.isLoading||u()};return(0,i.jsxs)(i.Fragment,{children:[t&&(0,i.jsx)(r.sNh,{_focus:{color:"complimentary.500",bg:"gray.100"},onClick:c,children:(0,i.jsx)(r.xvT,{fontSize:"sm",children:"Delete"})}),!t&&(0,i.jsx)(r.wpx,{onClick:c,children:"Delete integration"}),(0,i.jsxs)(r.u_l,{isCentered:!0,isOpen:l,onClose:f,children:[(0,i.jsx)(r.ZAr,{}),(0,i.jsxs)(r.hzk,{children:[(0,i.jsx)(r.xBx,{children:"Delete integration"}),(0,i.jsx)(r.olH,{}),(0,i.jsx)(r.fef,{pb:6,children:(0,i.jsx)(r.Kqy,{direction:"column",spacing:"15px",children:(0,i.jsx)(r.xvT,{color:"gray.600",fontSize:"sm",fontWeight:"sm",lineHeight:"20px",children:"Deleting an integration may impact any privacy request that is currently in progress. Do you wish to proceed?"})})}),(0,i.jsxs)(r.mzw,{className:"flex gap-4",children:[(0,i.jsx)(r.wpx,{onClick:f,className:"w-1/2",children:"Cancel"}),(0,i.jsx)(r.wpx,{onClick:()=>{n&&(d(n),t||x.push(o.KH))},loading:g.isLoading,type:"primary",className:"w-1/2",children:"Delete integration"})]})]})]})]})}},73183:function(e,n,t){"use strict";var i=t(24246),r=t(96306);t(27378);var s=t(14207);n.Z=e=>{let{connection_key:n,disabled:t,name:o,access_type:a,connection_type:l,isSwitch:c}=e,{isOpen:u,onOpen:d,onClose:g}=(0,r.qY0)(),[x,f]=(0,s.XX)(),h=async()=>{await x({key:n,name:o,disabled:!t,access:a,connection_type:l}),g()},p=()=>{f.isLoading||g()};return(0,i.jsxs)(i.Fragment,{children:[c?(0,i.jsxs)(r.kCb,{justifyContent:"space-between",alignItems:"center",children:[(0,i.jsx)(r.xvT,{fontSize:"sm",children:"Enable integration"}),(0,i.jsx)(r.rAg,{className:"ml-2",checked:!t,onChange:()=>d()})]}):(0,i.jsx)(r.sNh,{_focus:{color:"complimentary.500",bg:"gray.100"},onClick:d,children:(0,i.jsx)(r.xvT,{fontSize:"sm",children:t?"Enable":"Disable"})}),(0,i.jsxs)(r.u_l,{isCentered:!0,isOpen:u,onClose:p,children:[(0,i.jsx)(r.ZAr,{}),(0,i.jsxs)(r.hzk,{children:[(0,i.jsxs)(r.xBx,{children:[t?"Enable":"Disable"," Connection"]}),(0,i.jsx)(r.olH,{}),(0,i.jsx)(r.fef,{pb:6,children:(0,i.jsx)(r.Kqy,{direction:"column",spacing:"15px",children:(0,i.jsxs)(r.xvT,{color:"gray.600",fontSize:"sm",fontWeight:"sm",lineHeight:"20px",children:[t?"Enabling":"Disabling"," a connection may impact any privacy request that is currently in progress. Do you wish to proceed?"]})})}),(0,i.jsxs)(r.mzw,{className:"flex gap-4",children:[(0,i.jsx)(r.wpx,{onClick:p,className:"w-1/2",children:"Cancel"}),(0,i.jsxs)(r.wpx,{onClick:h,loading:f.isLoading,className:"w-1/2",children:[t?"Enable":"Disable"," Connection"]})]})]})]})]})}},8627:function(e,n,t){"use strict";t.d(n,{s:function(){return a}});var i=t(24246),r=t(96306),s=t(77867),o=t(16394);let a=e=>{let{succeeded:n,timestamp:t}=e,a=t?(0,o.p6)(t):"";return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.Z,{connected:n}),(0,i.jsx)(r.xvT,{color:"gray.500",fontSize:"xs",fontWeight:"semibold",lineHeight:"16px",ml:"10px",children:t?"Last tested on ".concat(a):"This connection has not been tested yet"})]})}},42478:function(e,n,t){"use strict";t.d(n,{FU:function(){return c},JE:function(){return r},Ki:function(){return d},SU:function(){return g},W:function(){return x},h9:function(){return s},jc:function(){return i},qt:function(){return l},sn:function(){return u}});let{useGetEmailInviteStatusQuery:i,useGetActiveMessagingProviderQuery:r,useCreateMessagingConfigurationMutation:s,useCreateMessagingConfigurationSecretsMutation:o,useGetMessagingConfigurationDetailsQuery:a,useGetMessagingConfigurationsQuery:l,useGetMessagingConfigurationByKeyQuery:c,useUpdateMessagingConfigurationByKeyMutation:u,useUpdateMessagingConfigurationSecretsByKeyMutation:d,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:x}=t(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,n,t,i)=>{let r=await i({url:"messaging/default/active"});return r.error&&404===r.error.status?{data:null}:r},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"]})})})},22285:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return K}});var i=t(24246),r=t(16394),s=t(96306),o=t(27378),a=t(16134),l=t(20682),c=t(16125),u=t(14207),d=t(96718),g=()=>{let{connectionOptions:e}=(0,a.C)(l.ZZ),{connection_type:n}=(0,a.C)(u.dR),t=(0,o.useCallback)(()=>{let t=new Map;return e.forEach(e=>{let i=!1;(null==n?void 0:n.includes(e.identifier))&&(i=!0),t.set(e.human_readable,i)}),t},[e,n]),r=[...(0,o.useMemo)(()=>t(),[t])].map(e=>{let[n]=e;return{value:n,label:n}}),s=(0,a.T)();return(0,i.jsx)(d.z,{mode:"multiple",placeholder:"Connection Type",options:r,onChange:n=>{let t=e.filter(e=>n.includes(e.human_readable));s((0,u.Iw)(t.map(e=>e.identifier)))},defaultValue:(null==n?void 0:n.length)?n:[],className:"w-60","data-testid":"connection-type-filter"})},x=t(14746),f=()=>{let{disabled_status:e}=(0,c.v9)(u.dR),n=()=>{let e=new Map;return Object.values(x.QI).sort().forEach(n=>{e.set((0,r.kC)(n),{value:n})}),e},t=[...(0,o.useMemo)(()=>n(),[])].map(e=>{let[n,t]=e;return{value:t.value,label:n}}),s=(0,c.I0)();return(0,i.jsx)(d.z,{placeholder:"Status",options:t,onChange:e=>{s((0,u.Ru)(e||""))},defaultValue:(null==e?void 0:e.toString())||void 0,"data-testid":"disabled-status-filter"})},h=t(26788),p=()=>{let{system_type:e}=(0,c.v9)(u.dR),n=new Map(h.yI);n.delete("Show all");let t=[...n].map(e=>{let[n,t]=e;return{value:t.value,label:n}}),r=(0,a.T)();return(0,i.jsx)(d.z,{placeholder:"System Type",options:t,onChange:e=>{r((0,u.zq)(e||""))},defaultValue:(null==e?void 0:e.toString())||void 0,"data-testid":"system-type-filter"})},m=()=>{let{test_status:e}=(0,c.v9)(u.dR),n=()=>{let e=new Map;return Object.values(x.i0).sort().forEach(n=>{e.set((0,r.kC)(n),{value:n})}),e},t=[...(0,o.useMemo)(()=>n(),[])].map(e=>{let[n,t]=e;return{value:t.value,label:n}}),s=(0,c.I0)();return(0,i.jsx)(d.z,{placeholder:"Testing Status",options:t,onChange:e=>{s((0,u.Ri)(e||""))},defaultValue:(null==e?void 0:e.toString())||void 0,"data-testid":"testing-status-filter"})};let v=()=>{let e=(0,c.v9)(u.dR),n=(0,c.I0)();return{handleSearchChange:e=>n((0,u.qP)(e.target.value)),...e}};var y=()=>{let{handleSearchChange:e,search:n}=v();return(0,i.jsxs)(s.kCb,{minWidth:"fit-content",alignItems:"center",gap:"4",mb:6,flexWrap:"wrap",children:[(0,i.jsxs)(s.BZy,{size:"sm",minWidth:"308px",children:[(0,i.jsx)(s.Z8_,{pointerEvents:"none",children:(0,i.jsx)(s.PTu,{color:"gray.300",w:"17px",h:"17px"})}),(0,i.jsx)(s.IIB,{autoComplete:"off",autoFocus:!0,type:"search",minWidth:200,placeholder:"Search connection name or description",size:"sm",borderRadius:"md",value:n,name:"search",onChange:e})]}),(0,i.jsx)(g,{}),(0,i.jsx)(p,{}),(0,i.jsx)(m,{}),(0,i.jsx)(f,{})]})},j=e=>{let{page:n,size:t,total:r,handleNextPage:o,handlePreviousPage:a}=e,l=(n-1)*t+1,c=Math.min(r,n*t);return(0,i.jsxs)(s.kCb,{justifyContent:"space-between",mt:6,children:[(0,i.jsx)(s.xvT,{fontSize:"xs",color:"gray.600",children:r>0?(0,i.jsxs)(i.Fragment,{children:["Showing ",Number.isNaN(l)?0:l," to"," ",Number.isNaN(c)?0:c," of"," ",Number.isNaN(r)?0:r," results"]}):"0 results"}),(0,i.jsxs)("div",{children:[(0,i.jsx)(s.wpx,{disabled:n<=1,onClick:a,className:"mr-2",children:"Previous"}),(0,i.jsx)(s.wpx,{disabled:n*t>=r,onClick:o,children:"Next"})]})]})},b=t(92875),C=t.n(b),w=t(40542),_=t.n(w),k=t(79894),S=t.n(k),T=t(77830),N=t(15872),z=t(73183),M=e=>{let{connection_key:n,disabled:t,connection_type:r,access_type:o,name:a}=e;return(0,i.jsxs)(s.v2r,{children:[(0,i.jsx)(s.j2t,{as:s.zxk,size:"xs",bg:"white","data-testid":"connection-menu-btn",children:(0,i.jsx)(s.nXP,{color:"gray.700",w:18,h:18})}),(0,i.jsx)(s.h_i,{children:(0,i.jsxs)(s.qyq,{fontSize:"sm",shadow:"xl","data-testid":"connection-menu-".concat(a),children:[(0,i.jsx)(s.sNh,{as:S(),href:"".concat(T.JR,"/").concat(encodeURIComponent(n)),_focus:{color:"complimentary.500",bg:"gray.100"},"data-testid":"configure-btn",children:"Configure"}),(0,i.jsx)(z.Z,{connection_key:n,disabled:t,connection_type:r,access_type:o,name:a,isSwitch:!1}),(0,i.jsx)(N.Z,{showMenu:!0,connection_key:n})]})})]})},q=e=>{let{disabled:n}=e;return(0,i.jsx)(s.j8w,{color:n?"marble":"success",className:"mr-1 text-center",children:n?"DISABLED":"ACTIVE"})},E=t(41337),Z=t(8627),I=e=>{var n;let{connectionData:t}=e,[c,d]=(0,u.h2)(),{connectionOptions:g}=(0,a.C)(l.ZZ),x=(0,o.useMemo)(()=>g.find(e=>e.identifier===t.connection_type||t.saas_config&&e.identifier===t.saas_config.type)||"ethyca",[t,g]);return(0,i.jsxs)(s.xuv,{width:"100%",height:136,p:"18px 16px 16px 16px","data-testid":"connection-grid-item-".concat(t.name),children:[(0,i.jsxs)(s.kCb,{justifyContent:"center",alignItems:"center",children:[(0,i.jsx)(E.Z,{data:x}),(0,i.jsx)(s.xvT,{color:"gray.900",fontSize:"md",fontWeight:"medium",m:"8px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",children:t.name}),(0,i.jsx)(s.LZC,{}),(0,i.jsx)(q,{disabled:!!t.disabled}),(0,i.jsx)(M,{connection_key:t.key,disabled:!!t.disabled,name:null!==(n=t.name)&&void 0!==n?n:t.key,connection_type:t.connection_type,access_type:t.access})]}),(0,i.jsx)(s.xvT,{color:"gray.600",fontSize:"sm",fontWeight:"sm",lineHeight:"20px",children:t.description?t.description:(0,i.jsx)("br",{})}),(0,i.jsxs)(s.xvT,{color:"gray.600",fontSize:"sm",fontWeight:"sm",lineHeight:"20px",children:["Edited on ",(0,r.p6)(t.updated_at)]}),(0,i.jsxs)(s.kCb,{mt:"0px",justifyContent:"center",alignItems:"center",children:[(0,i.jsx)(Z.s,{succeeded:t.last_test_succeeded,timestamp:t.last_test_timestamp||""}),(0,i.jsx)(s.LZC,{}),(0,i.jsx)(s.wpx,{size:"small",onClick:()=>{c(t.key)},loading:d.isLoading||d.isFetching,children:"Test"})]})]})};let R=()=>{let e=(0,c.I0)(),n=(0,a.C)(u.dR);return{...n,handleNextPage:()=>{e((0,u.YA)(n.page+1))},handlePreviousPage:()=>{e((0,u.YA)(n.page-1))}}};var W=e=>{let{items:n=[],total:t=0}=e,{page:r,size:o,handleNextPage:a,handlePreviousPage:l}=R(),c=C()(n,3);return(0,i.jsxs)(i.Fragment,{children:[c.map((e,n,t)=>{let{length:r}=t;return(0,i.jsx)(s.xuv,{className:_()["grid-row"],borderBottomWidth:r>1&&n===r-1&&3===e.length?"0.5px":void 0,"data-testid":"connection-grid",children:(0,i.jsx)(s.MIq,{columns:3,children:e.map(e=>(0,i.jsx)(s.xuv,{className:_()["grid-item"],children:(0,i.jsx)(I,{connectionData:e})},e.key))})},JSON.stringify(e))}),(0,i.jsx)(j,{page:r,size:o,total:t,handleNextPage:a,handlePreviousPage:l})]})},P=e=>{let{hasFilters:n}=e;return(0,i.jsxs)(s.kCb,{bg:"gray.50",width:"100%",height:"340px",justifyContent:"center",alignItems:"center",flexDirection:"column","data-testid":"connections-empty-state",children:[(0,i.jsx)(s.xvT,{color:"black",fontSize:"x-large",lineHeight:"32px",fontWeight:"600",mb:"7px",children:n?"No connections found":"All of your connections have been linked!"}),(0,i.jsx)(s.xvT,{color:"gray.600",fontSize:"sm",lineHeight:"20px",mb:"11px",children:n?"Modify your search parameters":"You are ready to upgrade Fides"})]})},A=t(25980),D=t(58754),F=t(86677),B=()=>{let e=(0,F.useRouter)();return(0,i.jsx)(s.wpx,{onClick:()=>e.push(h.Ss[1].href),type:"primary",children:"Create new connection"})},L=()=>{let e=(0,A.hz)();return(0,i.jsx)(D.Z,{heading:"Unlinked Connections",rightContent:e.flags.standaloneConnections&&(0,i.jsx)(B,{}),children:(0,i.jsx)(s.xuv,{maxWidth:"450px",children:(0,i.jsxs)(s.xvT,{fontSize:"sm",children:["Connections are now created in the"," ",(0,i.jsx)(s.rUS,{color:"complimentary.500",href:T.xo,children:"system configuration"})," ","section. You can link existing connections to a new or existing system."]})})})},O=()=>{var e;let n=(0,o.useRef)(!1),t=(0,a.T)(),{connectionOptions:c}=(0,a.C)(l.ZZ),d=(0,a.C)(u.dR),[g,x]=(0,o.useState)(d),f=(0,o.useRef)((0,r.Ds)(e=>x(e),250)),{data:h}=(0,l.$I)({search:""},{skip:c.length>0}),{data:p,isFetching:m,isLoading:v,isSuccess:j}=(0,u.AZ)(g),b=(null==p?void 0:null===(e=p.items)||void 0===e?void 0:e.length)>0,C=!!d.search||!!d.connection_type||!!d.system_type||!!d.disabled_status||!!d.test_status;return(0,o.useEffect)(()=>{t((0,u.um)(!0))},[t]),(0,o.useEffect)(()=>(n.current=!0,0===c.length&&(null==h?void 0:h.items)&&t((0,l.fP)(h.items)),f.current(d),()=>{n.current=!1}),[c.length,null==h?void 0:h.items,t,d]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(L,{}),n.current&&(0,i.jsx)(y,{}),(m||v)&&(0,i.jsx)(s.M5Y,{children:(0,i.jsx)(s.$jN,{})}),n.current&&j&&(b?(0,i.jsx)(W,{items:null==p?void 0:p.items,total:null==p?void 0:p.total}):(0,i.jsx)(P,{hasFilters:C}))]})},H=t(1226),K=()=>(0,i.jsx)(H.Z,{children:(0,i.jsx)(O,{})})},40542:function(e){e.exports={"grid-row":"ConnectionGrid_grid-row__Cv_Zf","grid-item":"ConnectionGrid_grid-item__xP7eK"}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=98720)}),_N_E=e.O()}]);
|