ethyca-fides 2.71.1rc2__py2.py3-none-any.whl → 2.72.0__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.1rc2.dist-info → ethyca_fides-2.72.0.dist-info}/METADATA +2 -2
- {ethyca_fides-2.71.1rc2.dist-info → ethyca_fides-2.72.0.dist-info}/RECORD +272 -253
- fides/_version.py +3 -3
- fides/api/api/v1/endpoints/connection_endpoints.py +38 -45
- fides/api/api/v1/endpoints/generic_overrides.py +9 -3
- 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 +4 -0
- 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/models/detection_discovery/monitor_task.py +1 -0
- fides/api/models/digest/digest_execution.py +11 -1
- fides/api/models/event_audit.py +9 -0
- fides/api/models/messaging_template.py +7 -0
- fides/api/models/privacy_request/privacy_request.py +1 -1
- fides/api/schemas/connection_configuration/connection_config.py +1 -30
- fides/api/schemas/messaging/messaging.py +15 -0
- fides/api/service/connectors/query_configs/saas_query_config.py +16 -0
- fides/api/service/connectors/saas/connector_registry_service.py +1 -138
- fides/api/service/connectors/saas_connector.py +9 -1
- fides/api/service/deps.py +8 -0
- fides/api/service/messaging/message_dispatch_service.py +38 -1
- fides/api/service/privacy_request/request_runner_service.py +32 -1
- 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/masking_util.py +31 -0
- fides/api/util/saas_config_updater.py +66 -0
- fides/api/util/saas_util.py +1 -0
- fides/data/language/languages.yml +2 -0
- fides/service/connection/__init__.py +0 -0
- fides/service/connection/connection_service.py +651 -0
- fides/service/dataset/dataset_service.py +39 -0
- fides/service/event_audit_service.py +16 -22
- fides/service/privacy_request/privacy_request_service.py +103 -48
- fides/ui-build/static/admin/404.html +1 -1
- fides/ui-build/static/admin/_next/static/BOxlzhSs4KC4KKoRi_z4Y/_buildManifest.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/1099-d1b22e891705eaf8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{1115-90baef2a89f361ad.js → 1115-584dac093cef6cc3.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/1437-4604a69888906ec0.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/155-bf4e3ffb18f29226.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{1817-1ad037b7d6d2f6d2.js → 1817-6a6b4aea9d242c5b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{1975.78e719130cfe3fd6.js → 1975.50599b6774562644.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{2040-fdecc41a18e40bdc.js → 2040-8eead9d29546a50f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/2397-92f628c53688925b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/2921-9b596ba7f5267afc.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3377-80612c111e047cb6.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{3696-90c8b336bbc46782.js → 3696-e4abb6a922b954a2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/3700-1f9f6e5ebfa3ab0a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3772-b945c6839e43c753.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{3923-98bea73b618292aa.js → 3923-c1e41661ebf57178.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/401-c2f1e4ea077f1f26.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-8204168bae78092d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4817-066598cef25d7e88.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5185-bf5655b5d697b714.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5258-63325c03319e87dc.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{5279-12c9cbdc67ad7b14.js → 5279-fcac4a8575f41ecc.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/549-3e3b8d01bc984f96.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5643-7800464c8df7a78e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{5783-d119cb132abd8a91.js → 5783-7deeb7de5d2db4c4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/6277-0ab2a15c37b83b8d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6315-d0b886d849c2e5e3.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6344-ca66a6e10d128179.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{6853-7004a8c420b1ca02.js → 6853-6d64d627df6f8194.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/6954-8b106311a3be35f4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7245-53a20677c49b41c8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{7476-d055aa931da47ac0.js → 7476-08717f00da5f89ab.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/7488-bad160a2bfd89871.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7630-775c578fa8109b0f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7773-24899908bf8ff659.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{796-02086581996a0548.js → 796-6fe49d134f660156.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/8011-c23d609ed3f0efa5.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/8212-67ac884660ddb63a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/8373-43b6df89a2085d6b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9046-28fe0723e3b6584f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9070-6d3aaaf5aa5913ba.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9330-6eb11127296c54c2.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{9676.b86ecbcfe5afd25d.js → 9676.1ea49d4b6e0541f2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/9682-65d253d54f84f6f2.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{9826-ccedc28e978ca9e1.js → 9826-1f42934a2863992e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/9899-63998972698a49fb.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9965-4709f43bf62af9a9.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{404-2eb8aed4939f1142.js → 404-962d132471cd41ba.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{_app-a7c02dd2ff07f9e1.js → _app-4f697016cf2fb1bb.js} +43 -43
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-055d058d16c02957.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/multiple-e2a5c951347195e3.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-0058fe05f2d23d1a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-7a258b7ecd6da4b8.js → add-vendors-7c829e58485fc821.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-fb5017ff5fa54fcc.js → configure-5c58b69dd473cc06.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-e1e2fd704ac2d71d.js → [id]-58460ac9c1dface5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience-b6b2d50d894cefa5.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-5fc78b78a51c239c.js → [id]-25ce8366e689363b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-b79bcb93b5f4c734.js → new-faa457089616711a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-a7fe3925771bb6c3.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-069f4e3ee96ebf77.js → properties-45a2901a35edc8f7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-e9ec351281c54822.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{consent-d2bf72508c3cad55.js → consent-a7a4e419e4086033.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/{[resourceUrn]-2fa4b3a58f75f81d.js → [resourceUrn]-3b59925f6c9a13a9.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-ffb6e0fe6712342e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-3c935e93208d2bdd.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/{[resourceUrn]-5b31e3d7727b917a.js → [resourceUrn]-8d7d9152e215c3b6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources-96be972a983616e3.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-79d06a04698c47c0.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-e50e9c8e11412b2a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/data-explorer-dd93cffd6744837d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-878aa4ab0746df5b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-a2e9c0bfa67c633d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-70ca690b253a118e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-844a8de0d1b506e2.js → [resourceUrn]-260f5deb68966b70.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-11b07cf2d91b17ef.js → detection-d735dab3d9f3adc5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-5525cf287d4ab493.js → [resourceUrn]-c7f055275a2c503f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-ed4723e1b67d890e.js → discovery-b1cfd55c7e127865.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datamap-18f255a8bbeecaa4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-e04a4e16ccf32aef.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]-a40c4febe16a0a6d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-f500a77eefb057e7.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-5c20080cdb053b1d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset-96355a68e8c28fe8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/[id]-448729ee9d1d78c3.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-42c720ec5c941573.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-a8fc95a46de38b35.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{index-b74d1e8608ae5b5d.js → index-ca794e85c16cba67.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-2f1dc17eba11fb4e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations-bbec0140433a199b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests/[id]-058125922d1eaeec.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests/new-7a5f76708c79f714.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests-31bed1f86b89d1d8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers/[key]-d08f3a7cd2d011ec.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers/new-cb2c7fbc26886052.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers-40b9f1f70d27b660.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates/[id]-a6ae72abe59ff830.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates/add-template-a3e4b5b575b31be1.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates-4918f86f7300ac9b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications-9644c0f088a01fea.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/ant-components-39b5586d9c8b64aa.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/AntForm-5163f3213377bd35.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikAntFormItem-0b1547cd9b114c6b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikControlled-da562cba4cffd6bb.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikField-3a587676869d2ef6.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/forms-defc3b917306a6d8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/{table-migration-29fb7b39f8962650.js → table-migration-11a70bcfa672ce8f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-787621468b5a7619.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-24a8c2ab57625556.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-8f577df28ebca869.js → configure-1926359bdf5d6c30.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-da634187d8201ab3.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-57a75c7e9659271a.js → [id]-47118b9976ad7212.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-8964c2300206bc89.js → add-property-2e6b0d8b409ba1fd.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{properties-08472b2a6bf1d392.js → properties-32486c25255c9cb1.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-e410d13a2b35cff4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-aec1bf8a409ec75f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-4c20c08ca7ea8cff.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-8e4a76376927afd5.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-744f669431b84f71.js → domain-records-e3dcef1ec8cf8b9e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-2e88cc7a6074a28b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-604790638c656fbd.js → email-templates-7469d2f85396c693.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-be2a885150adc133.js → locations-20789aa0c84d544e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-3c86162afe9759df.js → organization-f84a13eb9688cb5f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/privacy-requests-b72df6f3d460125f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-4fe3b90747d885e5.js → regulations-aa02bc818e089c49.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-5be9ce7a745ce908.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-4d470bbf199a2f9c.js → [id]-2fc7c0d3988427b3.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems-86f5557384124f79.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-2589729c47976357.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-98f737e735eaa0f0.js → [id]-6217433a26599521.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-562624e5461083ec.js → user-management-b6c4bf35c003965d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{webpack-2766492c5dbceb0a.js → webpack-8eac1ea5c825c8b4.js} +1 -1
- fides/ui-build/static/admin/_next/static/css/de09ed8a0adf1ca2.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/[monitorId]/[systemId].html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/data-explorer.html +1 -0
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
- 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-preview.js +1 -1
- fides/ui-build/static/admin/lib/fides-tcf.js +2 -2
- fides/ui-build/static/admin/lib/fides.js +2 -2
- fides/ui-build/static/admin/login/[provider].html +1 -1
- fides/ui-build/static/admin/login.html +1 -1
- 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/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/ui-build/static/admin/_next/static/ayPtYqII_BsdUxHOkbH2k/_buildManifest.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/155-c1ae010c664e2245.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/2921-66f65496c3a09316.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3585-efd5d41f08e180c4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3855-12ee1dfbbe47fd28.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-c1256ecda1b15db6.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-de5ced790b3380dc.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4608-a9941d0c236ebca1.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4718-6585c97c26647e65.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/502-d3ecae97b67befbd.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/504-88caa30c03374e9b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5185-51eaa78e3ed6bfb7.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/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/6882-10296485ec326e6b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6954-4b24e1731c1cc3b3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7045-f15044a4d4525946.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7079-bbc7b856802a4834.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/9046-2a332fe338535c84.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9226-4a7027057f55ca2a.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-58920afe2b67f952.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-ae4909cad9b67822.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-56fd0f3e465e52b6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-29c1fb777bd464e0.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-2635ef588bf06145.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datamap-15616bea02397ef4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-d4031e438c363fff.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]-9463af37079762d0.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-ea198c4a7869f402.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-f682b1def859931e.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]-febf156d2977f3ac.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-648d775d0fce49dc.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-5edfec10a945ca43.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-8cbdfd08e0fa88fb.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-0f1d833282f09684.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-a8cfa7de4948b374.js +0 -1
- fides/ui-build/static/admin/_next/static/css/64fac6fb884435c2.css +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.1rc2.dist-info → ethyca_fides-2.72.0.dist-info}/WHEEL +0 -0
- {ethyca_fides-2.71.1rc2.dist-info → ethyca_fides-2.72.0.dist-info}/entry_points.txt +0 -0
- {ethyca_fides-2.71.1rc2.dist-info → ethyca_fides-2.72.0.dist-info}/licenses/LICENSE +0 -0
- {ethyca_fides-2.71.1rc2.dist-info → ethyca_fides-2.72.0.dist-info}/top_level.txt +0 -0
- /fides/ui-build/static/admin/_next/static/{ayPtYqII_BsdUxHOkbH2k → BOxlzhSs4KC4KKoRi_z4Y}/_ssgManifest.js +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/{[id]-bd1042a0e9be6aff.js → [id]-a270325109398f48.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/{new-469ad83c8cfa1290.js → new-2e0c8e249f286427.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/user-management/{new-629c88e90699369b.js → new-e399005c3bb4db1b.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4154],{58095:function(e,t,n){var s=n(8817);e.exports=function(e,t){return!!(null==e?0:e.length)&&s(e,t,0)>-1}},21796:function(e){e.exports=function(e,t,n){for(var s=-1,a=null==e?0:e.length;++s<a;)if(n(t,e[s]))return!0;return!1}},8817:function(e,t,n){var s=n(95372),a=n(1129),l=n(58263);e.exports=function(e,t,n){return t==t?l(e,t,n):s(e,a,n)}},1129:function(e){e.exports=function(e){return e!=e}},92198:function(e,t,n){var s=n(52485),a=n(58095),l=n(21796),i=n(65581),r=n(47111),o=n(43735);e.exports=function(e,t,n){var d=-1,c=a,u=e.length,p=!0,g=[],h=g;if(n)p=!1,c=l;else if(u>=200){var m=t?null:r(e);if(m)return o(m);p=!1,c=i,h=new s}else h=t?[]:g;e:for(;++d<u;){var f=e[d],y=t?t(f):f;if(f=n||0!==f?f:0,p&&y==y){for(var v=h.length;v--;)if(h[v]===y)continue e;t&&h.push(y),g.push(f)}else c(h,y,n)||(h!==g&&h.push(y),g.push(f))}return g}},47111:function(e,t,n){var s=n(46151),a=n(50344),l=n(43735),i=s&&1/l(new s([,-0]))[1]==1/0?function(e){return new s(e)}:a;e.exports=i},58263:function(e){e.exports=function(e,t,n){for(var s=n-1,a=e.length;++s<a;)if(e[s]===t)return s;return -1}},50344:function(e){e.exports=function(){}},83766:function(e,t,n){var s=n(92198);e.exports=function(e){return e&&e.length?s(e):[]}},25654:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/[monitorId]/[systemId]",function(){return n(16877)}])},35287:function(e,t,n){"use strict";var s=n(24246),a=n(20595),l=n(88038),i=n.n(l);n(27378),t.Z=e=>{let{children:t,title:n,mainProps:l}=e;return(0,s.jsxs)(a.kCb,{"data-testid":n,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,s.jsxs)(i(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsx)(a.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...l,children:t})]})}},58754:function(e,t,n){"use strict";var s=n(24246),a=n(20595),l=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:i=!0,children:r,rightContent:o,style:d,...c}=e;return(0,s.jsxs)("div",{...c,style:i?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,s.jsxs)(a.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(a.lQT,{className:n||r?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,s.jsx)(l.m,{className:r?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),r]})}},45938:function(e,t,n){"use strict";n.d(t,{Gt:function(){return p},eB:function(){return g},oI:function(){return u}});var s=n(24246),a=n(34090),l=n(27378),i=n(16134),r=n(38602),o=n(58452);let d=(0,l.createRef)(),c=(0,l.createRef)(),u=()=>{let e=(0,i.T)(),t=(0,i.C)(r.DB),n=(0,l.useCallback)(()=>{c.current=void 0,d.current=void 0},[]),s=(0,l.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!0),n())},[e,n]),a=(0,l.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!1),n())},[e,n]);return{attemptAction:(0,l.useCallback)(()=>t?(e((0,r.h7)()),d.current||(d.current=new Promise(e=>{c.current=e})),d.current):Promise.resolve(!0),[t,e]),onConfirm:s,onClose:a}},p=e=>{let{id:t,name:n}=e,{dirty:s}=(0,a.u6)(),o=(0,i.T)();return(0,l.useEffect)(()=>(o((0,r.Zu)({id:t,name:n})),()=>{o((0,r.dz)({id:t}))}),[o,t,n]),(0,l.useEffect)(()=>{o((0,r.$p)({id:t,isDirty:s}))},[s,o,t]),null},g=()=>{let{onConfirm:e,onClose:t}=u(),n=(0,i.C)(r.uv);return(0,s.jsx)(o.Z,{isOpen:n,onClose:t,onConfirm:e,isCentered:!0,title:"Unsaved Changes",message:"You have unsaved changes"})}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return d}});var s=n(24246),a=n(20595),l=n(79894),i=n.n(l),r=n(27378);let{Text:o}=a.AntTypography,d=e=>{let{items:t,...n}=e,l=(0,r.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let l=n===t.length-1,r={...e},d=r.onClick&&!r.href;return("string"==typeof r.title&&(r.title=(0,s.jsx)(o,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,id:l?"breadcrumb-current-page":void 0,children:r.title})),d)?r.title=(0,s.jsx)(a.wpx,{type:"text",size:"small",icon:r.icon,onClick:r.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:r.title}):(r.icon&&(r.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:r.icon}),r.title]})),r.href&&r.title&&(r.title=(0,s.jsx)(i(),{href:r.href,className:"ant-breadcrumb-link",children:r.title}),delete r.href)),r}),[t]);return(0,s.jsx)(a.zrq,{items:l,...n})}},25415:function(e,t,n){"use strict";n.d(t,{a:function(){return l}});var s=n(24246);let{Text:a}=n(20595).AntTypography,l=e=>{let{count:t}=e;return(0,s.jsx)(a,{size:"sm",strong:!0,"data-testid":"selected-count",children:"".concat(t," selected")})}},2525:function(e,t,n){"use strict";n.d(t,{Q:function(){return r}});var s=n(24246),a=n(20595),l=n(27378),i=n(3110);let r=e=>{let{values:t,columnState:n,tagProps:r,onTagClose:o,onStateChange:d,...c}=e,{isExpanded:u,isWrapped:p,version:g}=n||{},[h,m]=(0,l.useState)(!u),[f,y]=(0,l.useState)(!!p),[v,x]=(0,l.useState)(u?t:null==t?void 0:t.slice(0,2));(0,l.useEffect)(()=>{m(!u)},[u,g]),(0,l.useEffect)(()=>{y(!!p)},[p]),(0,l.useEffect)(()=>{(null==t?void 0:t.length)?x(h?t.slice(0,2):t):x(t)},[h,t,d]),(0,l.useEffect)(()=>{(null==t?void 0:t.length)&&t.length<=2&&!h&&(m(!0),null==d||d(!1))},[t,d,h]);let j=(0,l.useCallback)(()=>{x(null==t?void 0:t.slice(0,2)),m(!0),null==d||d(!1)},[t,d]),b=(0,l.useCallback)(()=>{m(!1),null==d||d(!0)},[d]),C=(0,l.useCallback)(()=>{h?b():j()},[h,b,j]);return(0,l.useMemo)(()=>(null==v?void 0:v.length)?(0,s.jsxs)(a.jqI,{align:h?"center":"start",wrap:f?"wrap":"nowrap",vertical:!h,gap:"small","data-testid":"tag-expandable-cell",style:{overflowX:"auto",...c.style},...c,children:[v.map(e=>(0,s.jsx)(a.j8w,{color:"white","data-testid":e.key,onClose:o?()=>o(e.key):void 0,...r,...e.tagProps,children:(0,s.jsx)(a.lKn,{ellipsis:!!h&&{tooltip:!0},style:{color:"inherit",maxWidth:h?i.TD:void 0},children:e.label})},e.key)),t&&t.length>2&&(0,s.jsx)(a.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),C()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:h?"+".concat(t.length-2," more"):i.T5})]}):(0,s.jsx)("span",{"data-testid":"tag-expandable-cell-empty"}),[v,h,f,c,t,r,o,C])}},3110:function(e,t,n){"use strict";n.d(t,{DI:function(){return r},T5:function(){return l},TD:function(){return i}});var s=n(24246),a=n(20595);let l="show less",i=150,r=[{key:"expand-all",label:"Expand all",icon:(0,s.jsx)(a.PJP.jbG,{})},{key:"collapse-all",label:"Collapse all",icon:(0,s.jsx)(a.PJP.MVB,{})}]},26070:function(e,t,n){"use strict";n.d(t,{v:function(){return o},Q:function(){return d.Q}});var s=n(24246),a=n(20595),l=n(27378),i=n(3110);let{Text:r}=a.AntTypography,o=e=>{let{values:t,valueSuffix:n,columnState:o}=e,{isExpanded:d,version:c}=o||{},[u,p]=(0,l.useState)(!d);(0,l.useEffect)(()=>{p(!d)},[d,c]);let g=(0,l.useCallback)(()=>{p(!0)},[]),h=(0,l.useCallback)(()=>{p(!1)},[]),m=(0,l.useCallback)(()=>{u?h():g()},[u,h,g]);return(0,l.useMemo)(()=>(null==t?void 0:t.length)?1===t.length?(0,s.jsx)(r,{ellipsis:!0,"data-testid":"list-expandable-cell-single",children:t[0]}):(0,s.jsxs)(a.jqI,{align:u?"center":"flex-start",vertical:!u,gap:u?"small":"none","data-testid":"list-expandable-cell",children:[u?(0,s.jsxs)(r,{ellipsis:!0,children:[t.length," ",n]}):(0,s.jsx)(a.krs,{dataSource:t,renderItem:e=>(0,s.jsx)("li",{children:e})}),(0,s.jsx)(a.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),m()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:u?"view":i.T5})]}):null,[u,t,n,m])};var d=n(2525)},8125:function(e,t,n){"use strict";n.d(t,{V:function(){return l},o:function(){return d}});var s=n(27378),a=n(32735);let l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{enableSelection:n=!1,getRowKey:l,bulkActions:i,isLoading:r=!1,isFetching:o=!1,dataSource:d=[],totalRows:c=0,currentPage:u,pageSize:p,customTableProps:g={}}=t,h=(0,s.useCallback)(e=>{if(e&&"object"==typeof e){if(e.id)return String(e.id);if(e.key)return String(e.key)}return String(e)},[]),m=l||h,[f,y]=(0,s.useState)([]),[v,x]=(0,s.useState)([]),j=(0,s.useCallback)(()=>{y([]),x([])},[]),b=(0,s.useMemo)(()=>({selectedRowKeys:f,selectedRows:v,resetSelections:j}),[f,v,j]),C=(0,s.useMemo)(()=>{if(n)return{selectedRowKeys:f,onChange:(e,t)=>{y(e),x(t)}}},[n,f]),k=(0,s.useCallback)((t,n,s)=>{var a,l;let i=null!==(a=t.current)&&void 0!==a?a:e.pageIndex,r=null!==(l=t.pageSize)&&void 0!==l?l:e.pageSize,o=i!==e.pageIndex||r!==e.pageSize;o?(t.current&&t.current!==e.pageIndex&&e.updatePageIndex(t.current),t.pageSize&&t.pageSize!==e.pageSize&&e.updatePageSize(t.pageSize)):e.updateFilters(n||{});let d=s&&!Array.isArray(s)?s.field:void 0,c=s&&!Array.isArray(s)&&null!==s.order?s.order:void 0;o||e.updateSorting(d,c)},[e]),S=(0,s.useMemo)(()=>{var t,n,s,l,i;return{current:null!=u?u:e.pageIndex,pageSize:null!=p?p:e.pageSize,total:c,showSizeChanger:null===(l=null===(t=e.paginationConfig)||void 0===t?void 0:t.showSizeChanger)||void 0===l||l,pageSizeOptions:null!==(i=null===(s=e.paginationConfig)||void 0===s?void 0:null===(n=s.pageSizeOptions)||void 0===n?void 0:n.map(String))&&void 0!==i?i:a.VZ}},[u,e.pageIndex,p,e.pageSize,c,e.paginationConfig]),w=(0,s.useMemo)(()=>({dataSource:d,loading:r||o,pagination:S,onChange:k,rowKey:m,scroll:{x:"max-content",scrollToFirstRowOnChange:!0},size:"small",bordered:!0,...g}),[d,r,o,S,k,m,g]),_=f.map(String),E=v.length>0,A=(0,s.useCallback)(e=>{let t=null==i?void 0:i.actions.find(t=>t.key===e);return t?{disabled:!E||!!t.disabled&&t.disabled(v),loading:t.loading||!1,onClick:()=>t.onClick(v)}:{disabled:!0,loading:!1}},[i,E,v]);return(0,s.useMemo)(()=>({tableProps:w,selectionProps:C,selectionState:b,selectedRows:v,selectedKeys:_,hasSelectedRows:E,resetSelections:j,getBulkActionProps:A,isLoadingOrFetching:r||o,hasData:d.length>0}),[w,C,b,v,_,E,j,A,r,o,d.length])};var i=n(40431),r=n(17245);let o=()=>({filters:(0,i.WJ)(e=>e).withDefault({})}),d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{pagination:t={},sorting:n={},search:a={},onStateChange:l,disableUrlState:d=!1}=e,{pageIndex:c,pageSize:u,resetPagination:p,updatePageIndex:g,updatePageSize:h,pageSizeOptions:m,showSizeChanger:f}=(0,r.h0)({...t,disableUrlState:d}),{sortKey:y,sortOrder:v,updateSorting:x,resetSorting:j}=(0,r.rK)({...n,disableUrlState:d}),{searchQuery:b,updateSearch:C,resetSearch:k}=(0,r.Rx)({...a,disableUrlState:d}),[S,w]=(0,s.useState)({}),_=(0,s.useMemo)(()=>d?null:o(),[d]),[E,A]=(0,i.XI)(null!=_?_:{},{history:"push"}),I=(0,s.useMemo)(()=>{var e;return{pageIndex:c,pageSize:u,sortKey:y,sortOrder:v,columnFilters:d?S:null!==(e=E.filters)&&void 0!==e?e:{},searchQuery:b}},[d,S,E,c,u,y,v,b]),T=(0,s.useCallback)((e,t)=>{x(e,t),p()},[x,p]),N=(0,s.useCallback)(e=>{if(d)w(e);else{let t=Object.fromEntries(Object.entries(e).filter(e=>{let[,t]=e;return null!=t}));A({filters:Object.keys(t).length>0?t:null})}p()},[d,A,p]),D=(0,s.useCallback)(e=>{C(e),p()},[C,p]),O=(0,s.useCallback)(()=>{d?w({}):A({filters:null}),p(),j(),k()},[d,A,p,j,k]);return(0,s.useEffect)(()=>{l&&l(I)},[I,l]),{state:I,pageIndex:I.pageIndex,pageSize:I.pageSize,updatePageIndex:g,updatePageSize:h,sortKey:I.sortKey,sortOrder:I.sortOrder,updateSorting:T,columnFilters:I.columnFilters,updateFilters:N,searchQuery:I.searchQuery,updateSearch:D,resetState:O,paginationConfig:{pageSizeOptions:m,showSizeChanger:f}}}},9320:function(e,t,n){"use strict";n.d(t,{_:function(){return l}});var s=n(24246),a=n(26089);let l=(e,t)=>(0,s.jsxs)(s.Fragment,{children:[e," ",t&&(0,s.jsx)(a.Z,{onClick:t,children:"View"})]})},88708:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var s,a,l=n(27378),i=n(14908),r=n(39449);(s=a||(a={})).ATTENTION_REQUIRED="attention-required",s.ADDED="added",s.IGNORED="ignored",t.Z=e=>{let{activeTab:t,onTabChange:n}=(0,i.Z)({tabKeys:Object.values(a)}),s=(0,l.useMemo)(()=>[{label:"Attention required",params:{diff_status:[r.LL.ADDITION],system:e},hash:"attention-required"},{label:"Added",params:{diff_status:[r.LL.MONITORED]},hash:"added"},{label:"Ignored",params:{diff_status:[r.LL.MUTED],system:e},hash:"ignored"}],[e]),{diff_status:o,system:d}=(0,l.useMemo)(()=>{var e;return null!==(e=s.find(e=>e.hash===t))&&void 0!==e?e:s[0]},[s,t]).params,c=(0,l.useMemo)(()=>o.includes(r.LL.MONITORED),[o]);return{filterTabs:s,activeTab:t,onTabChange:n,activeParams:(0,l.useMemo)(()=>e?{diff_status:o,system:d}:{diff_status:o},[e,o,d]),actionsDisabled:c}}},78238:function(e,t,n){"use strict";n.d(t,{g:function(){return s}});let s=["essential","functional.service.improve","personalize","analytics","marketing.advertising.first_party.targeted","marketing.advertising.third_party.targeted"];t.Z=e=>s.includes(e)},57072:function(e,t,n){"use strict";n.d(t,{Bd:function(){return s.Bd},L5:function(){return s.L5},MO:function(){return s.MO},qb:function(){return s.qb}});var s=n(5785)},16877:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return er}});var s=n(24246),a=n(86677),l=n(35287),i=n(77830),r=n(58754),o=n(37059),d=n(20595),c=n(27378),u=n(25415),p=n(39449),g=n(30952),h=n(8133),m=n(79283),f=n(34929),y=n(78238),v=e=>{let{selectedTaxonomies:t,...n}=e,{getDataUseDisplayNameProps:a,getDataUses:l}=(0,f.Z)(),i=[...l()].filter(e=>!(null==t?void 0:t.includes(e.fides_key))).sort(),r=i.filter(e=>e.active&&y.g.includes(e.fides_key)),o=i.map(e=>{let{name:t,primaryName:n}=a(e.fides_key);return{value:e.fides_key,name:t,primaryName:n,description:e.description||""}}),u=(0,c.useMemo)(()=>{let e=[],t=[];return o.forEach(n=>{r.some(e=>e.fides_key===n.value)?e.push(n):t.push(n)}),{suggested:e,all:t}},[o,r]),p=u.suggested.length?[{label:(0,s.jsxs)(d.vyj,{children:[(0,s.jsx)(d.QMR,{size:14}),(0,s.jsx)("span",{children:"Categories of consent"}),(0,s.jsx)("em",{className:"font-normal",children:"Recommended"})]}),options:u.suggested},{label:(0,s.jsxs)(d.vyj,{children:[(0,s.jsx)(d.PJP.BBB,{}),(0,s.jsx)("span",{children:"Other data uses"})]}),options:u.all}]:u.all;return(0,s.jsx)(m.l,{options:p,...n})};let{Text:x}=d.AntTypography;var j=e=>{let{onSave:t,isSaving:n,onClose:a,...l}=e,[i,r]=(0,c.useState)([]),o=()=>{r([]),a()};return(0,s.jsxs)(h.Z,{title:"Add consent category",...l,onClose:o,children:[(0,s.jsxs)(d.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,s.jsx)(x,{children:"Assign consent categories to selected assets. This configures the system for consent management. Consent categories apply to both individual assets and the system."}),(0,s.jsx)(v,{mode:"tags",onSelect:(e,t)=>r([...i,t.value]),variant:"outlined"})]}),(0,s.jsxs)(d.jqI,{justify:"space-between",children:[(0,s.jsx)(d.wpx,{htmlType:"reset",onClick:o,"data-testid":"cancel-btn",children:"Cancel"}),(0,s.jsx)(d.wpx,{htmlType:"submit",type:"primary",disabled:!i.length,loading:n,onClick:()=>{t(i),o()},"data-testid":"save-btn",children:"Save"})]})]})},b=n(29850),C=n(77685);let{Text:k}=d.AntTypography,S=e=>{let{onSave:t,isSaving:n,...a}=e,[l,i]=(0,c.useState)(),[r,o]=(0,c.useState)(!1),u=(0,c.useCallback)(e=>{e.preventDefault(),o(!0)},[]),p=()=>{o(!1)},g=()=>{i(void 0),a.onClose()};return(0,s.jsxs)(h.Z,{title:"Assign system",...a,onClose:g,children:[(0,s.jsxs)(d.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,s.jsx)(k,{children:"Assign a system to the selected assets. If no system exists, select 'Add new system' to create one."}),(0,s.jsx)(b.R,{placeholder:"Search or select...",onSelect:(e,t)=>{i(t)},onAddSystem:u,value:l})]})," ",(0,s.jsxs)(d.jqI,{justify:"space-between",children:[(0,s.jsx)(d.wpx,{htmlType:"reset",onClick:g,"data-testid":"cancel-btn",children:"Cancel"}),(0,s.jsx)(d.wpx,{htmlType:"submit",type:"primary",disabled:!l,loading:n,onClick:()=>{t(l),g()},"data-testid":"save-btn",children:"Save"})]}),r&&(0,s.jsx)(C.i,{isOpen:!0,onClose:p,onSuccessfulSubmit:(e,t)=>{p(),i({label:t,value:e})},toastOnSuccess:!0})]})};var w=n(8411),_=n(32735),E=n(8125),A=n(16394),I=n(98145);let{Link:T}=d.AntTypography,N=e=>{let{stagedResource:t}=e,n=(0,E.o)({pagination:{defaultPageSize:10,pageSizeOptions:[10,..._.VZ]},disableUrlState:!0}),{pageIndex:a,pageSize:l}=n,{data:i,isFetching:r,isError:u}=(0,o.mi)({stagedResourceUrn:t.urn,statuses:I.LM,page:a,size:l}),{items:p,total:g}=(0,c.useMemo)(()=>i||{items:[],total:0,pages:0,filterOptions:{assigned_users:[],systems:[]}},[i]),h=(0,c.useMemo)(()=>({enableSelection:!1,getRowKey:e=>"".concat(e.location,"-").concat(e.page),isLoading:r,dataSource:p,totalRows:null!=g?g:0,customTableProps:{scroll:{scrollToFirstRowOnChange:!0},tableLayout:"fixed"}}),[r,p,g]),m=(0,E.V)(n,h);return{columns:(0,c.useMemo)(()=>[{title:"Location",dataIndex:I.EI.LOCATION,key:I.EI.LOCATION,render:e=>{var t;let n=(0,d.QCN)(e),a=n?(0,d.c1K)({isoEntry:n,showFlag:!0}):null!==(t=null===w.Z8||void 0===w.Z8?void 0:w.Z8[e])&&void 0!==t?t:e;return(0,s.jsx)(d.AntTypography.Text,{ellipsis:{tooltip:e},children:a})},width:180},{title:"Page",dataIndex:I.EI.PAGE,key:I.EI.PAGE,render:e=>{let t=(0,A.hL)(e,50);return(0,s.jsx)(T,{href:e,target:"_blank",rel:"noopener noreferrer",variant:"primary",children:(0,s.jsx)(d.AntTypography.Text,{ellipsis:{tooltip:e},unStyled:!0,children:t})})},minWidth:100},{title:"Compliance",dataIndex:I.EI.STATUS,key:I.EI.STATUS,width:160,render:e=>{let t=I.Vq[e];return(0,s.jsx)(d.esZ,{title:t,children:(0,s.jsx)(d.j8w,{color:"error","data-testid":"status-badge_".concat(e.replace(/_/g,"-")),children:I.X1[e]})})}}],[]),data:i,isLoading:r,isError:u,totalRows:g,tableProps:m.tableProps,hasData:p.length>0}},{Paragraph:D,Text:O}=d.AntTypography,L=e=>{var t,n,a;let{isOpen:l,stagedResource:i,onCancel:r,onDownload:o}=e,{columns:c,tableProps:u,isError:p}=N({stagedResource:i});return(0,s.jsx)(d.$zI,{title:"Compliance issues",width:768,open:l,onCancel:r,footer:[(0,s.jsx)(d.wpx,{onClick:r,children:"Cancel"},"cancel"),!!o&&(0,s.jsx)(d.wpx,{type:"primary",onClick:o,children:"Download"},"download")],"data-testid":"consent-breakdown-modal",children:(0,s.jsxs)(d.jqI,{vertical:!0,className:"gap-6","data-testid":"consent-breakdown-modal-content",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(D,{children:"View all instances where this asset was detected with consent compliance issues, organized by location and page. This includes assets loaded without consent, before consent, or when CMP failed."}),(0,s.jsxs)(D,{children:[(0,s.jsx)(O,{strong:!0,children:"Asset name:"})," ",null!==(t=i.name)&&void 0!==t?t:(0,s.jsx)(O,{italic:!0,children:"Unknown"}),","," ",(0,s.jsx)(O,{strong:!0,children:"System:"})," ",null!==(n=i.system)&&void 0!==n?n:(0,s.jsx)(O,{italic:!0,children:"Unassigned"}),","," ",(0,s.jsx)(O,{strong:!0,children:"Domain:"})," ",null!==(a=i.domain)&&void 0!==a?a:(0,s.jsx)(O,{italic:!0,children:"Unknown"})]})]}),p?(0,s.jsx)(d.DUx,{type:"error",message:"Error fetching data",description:"Please try again later.",showIcon:!0}):(0,s.jsx)(d.V5H,{...u,columns:c,"data-testid":"consent-breakdown-modal-table"})]})})};var P=n(83766),z=n.n(P),M=n(62165),R=n(812),V=n(26070),Z=n(3110),U=n(46628),G=n(54762),K=n(9320),q=n(26092),B=n.n(q),F=n(88708),Q=e=>!!e&&I.LM.includes(e);let $=e=>{let{asset:t,onTabChange:n,showComplianceIssueDetails:l}=e,{flags:r}=(0,M.hz)(),{assetConsentStatusLabels:c}=r,[u,{isLoading:g}]=(0,o.EY)(),[h,{isLoading:m}]=(0,o.nS)(),[f,{isLoading:y}]=(0,o.Tj)(),v=(0,d.pmc)(),x=(0,a.useRouter)(),j=g||m||y,{urn:b,name:C,resource_type:k,diff_status:S,system_key:w,user_assigned_system_key:_,consent_aggregated:E}=t,A=B()(C||"",{length:50}),I=Q(E),T=async()=>{let e=await u({urnList:[b]});if((0,R.D4)(e))v((0,U.Vo)((0,R.e$)(e.error)));else{let e=_||w,t="".concat(i.So,"/configure/").concat(e,"#assets");v((0,U.t5)((0,K._)("".concat(k,' "').concat(A,'" has been added to the system inventory.'),e?()=>x.push(t):void 0)))}},N=async()=>{let e=await h({urnList:[b]});(0,R.D4)(e)?v((0,U.Vo)((0,R.e$)(e.error))):v((0,U.t5)((0,K._)("".concat(k,' "').concat(A,'" has been ignored and will not appear in future scans.'),async()=>{await n(F.A.IGNORED)})))},D=async()=>{let e=await f({urnList:[b]});(0,R.D4)(e)?v((0,U.Vo)((0,R.e$)(e.error))):v((0,U.t5)("".concat(k,' "').concat(A,'" is no longer ignored and will appear in future scans.')))};return(0,s.jsxs)(d.vyj,{children:[S!==p.LL.MUTED&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.esZ,{title:t.system?void 0:"This asset requires a system before you can add it to the inventory.",children:(0,s.jsx)(d.wpx,{"data-testid":"add-btn",size:"small",onClick:T,disabled:!t.system||j,loading:g,children:"Add"})}),(0,s.jsx)(d.wpx,{"data-testid":"ignore-btn",size:"small",onClick:N,disabled:j,loading:m,children:"Ignore"}),I&&c&&(0,s.jsx)(d.wpx,{"data-testid":"view-compliance-details-btn",size:"small",onClick:()=>{null==l||l(t)},disabled:j,loading:y,icon:(0,s.jsx)(d.PJP.OdJ,{style:{color:"var(--fidesui-error)",width:14}}),title:"View compliance issue","aria-label":"View compliance issue"})]}),S===p.LL.MUTED&&(0,s.jsx)(d.wpx,{"data-testid":"restore-btn",size:"small",onClick:D,disabled:j,loading:y,children:"Restore"})]})};var J=n(17245),W=n(18992),Y=n.n(W),X=n(2525),H=n(31883),ee=e=>{let{asset:t,readonly:n,columnState:a,onChange:l}=e,[i,r]=(0,c.useState)(!1),[u,p]=(0,c.useState)((null==a?void 0:a.isExpanded)||!1),[g]=(0,o.Ak)(),{successAlert:h,errorAlert:m}=(0,J.VY)(),{getDataUseDisplayName:y}=(0,f.Z)(),x=[...t.preferred_data_uses||[]].sort(),j=B()(t.name||"",{length:50}),b=async e=>{let n=await g({monitorId:t.monitor_config_id,urnList:[t.urn],dataUses:[...x,e]});(0,H.D4)(n)?m((0,R.e$)(n.error)):(h("Consent category added to ".concat(t.resource_type,' "').concat(j,'".'),"Confirmed"),null==l||l([...x,e])),r(!1)},C=async e=>{let n=await g({monitorId:t.monitor_config_id,urnList:[t.urn],dataUses:x.filter(t=>t!==e)});(0,H.D4)(n)?m((0,R.e$)(n.error)):(h("Consent category removed from ".concat(t.resource_type,' "').concat(j,'".'),"Confirmed"),null==l||l(x.filter(t=>t!==e)))};return((0,c.useEffect)(()=>{p((null==a?void 0:a.isExpanded)||!1)},[null==a?void 0:a.isExpanded]),n)?(0,s.jsx)(X.Q,{values:null==x?void 0:x.map(e=>({label:y(e),key:e})),columnState:a,onStateChange:p}):(0,s.jsxs)(s.Fragment,{children:[!i&&(0,s.jsxs)(d.vyj,{align:"start",children:[(0,s.jsx)(d.j8w,{onClick:()=>r(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"}),(0,s.jsx)(X.Q,{values:null==x?void 0:x.map(e=>({label:y(e),key:e})),columnState:{...a,isExpanded:u},tagProps:{closable:!0,closeButtonLabel:"Remove data use"},onTagClose:C,onStateChange:p})]}),i&&(0,s.jsx)("div",{className:Y().cellBleed,style:{backgroundColor:"var(--fides-color-white)"},children:(0,s.jsx)(v,{selectedTaxonomies:x,onSelect:b,onBlur:()=>r(!1),onKeyDown:e=>{"Escape"===e.key&&r(!1)},open:!0})})]})};let et=e=>{let{consentAggregated:t,stagedResource:n}=e,a=I.LM.includes(t);if(!(a||t===p.lg.UNKNOWN))return null;let l=!!n.data_uses&&n.data_uses.length>0,i=I.Vq[t];return t!==p.lg.UNKNOWN||l||(i="Add a category of consent to this asset to find consent information."),(0,s.jsx)(d.esZ,{title:i,children:(0,s.jsx)(d.j8w,{color:a?"error":void 0,"data-testid":"status-badge_".concat(t.replace(/_/g,"-")),children:I.X1[t]})})};var en=n(70675);let es=e=>{let{aggregateSystem:t,monitorConfigId:n,readonly:a,onChange:l}=e,{resource_type:i,name:r,urn:o,system:u,user_assigned_system_key:p,system_key:g}=t,h=B()(r||"",{length:50}),[m,f]=(0,c.useState)(!1),[y,v]=(0,c.useState)(!1),[x,{isLoading:j}]=(0,en.NA)(),{successAlert:k,errorAlert:S}=(0,J.VY)(),w=(0,c.useCallback)(e=>{e.preventDefault(),v(!0)},[]),_=async(e,t,s)=>{let a=await x({staged_resource_urn:o,monitor_config_id:n,user_assigned_system_key:e}),r=B()(t,{length:50});(0,R.D4)(a)?S((0,R.e$)(a.error)):(k(s?"".concat(r," has been added to your system inventory and the ").concat(i,' "').concat(h,'" has been assigned to that system.'):"".concat(i,' "').concat(h,'" has been assigned to ').concat(r,"."),"Confirmed"),null==l||l(e)),f(!1)};return a?u?(0,s.jsx)(d.j8w,{"data-testid":"system-badge",color:"white",children:u}):null:(0,s.jsxs)(s.Fragment,{children:[!m&&(u?(0,s.jsxs)(d.j8w,{onClick:()=>f(!0),"data-testid":"system-badge",children:[u,(0,s.jsx)(d.PJP.I8b,{})]}):(0,s.jsx)(d.j8w,{onClick:()=>f(!0),"data-testid":"add-system-btn",addable:!0})),!!m&&(0,s.jsx)("div",{className:Y().cellBleed,children:(0,s.jsx)(b.R,{variant:"borderless",autoFocus:!0,defaultOpen:!0,defaultValue:p||g,onBlur:e=>{var t;(null===(t=e.relatedTarget)||void 0===t?void 0:t.getAttribute("id"))!=="add-new-system"&&f(!1)},onAddSystem:w,onSelect:(e,t)=>_(e,t.label),loading:j})}),y&&(0,s.jsx)(C.i,{isOpen:!0,onClose:()=>{v(!1)},onSuccessfulSubmit:(e,t)=>_(e,t,!0)})]})},ea=e=>{let{monitorId:t,systemId:n,consentStatus:l,onShowComplianceIssueDetails:r}=e,u=(0,a.useRouter)(),g=(0,d.pmc)(),[h,m]=(0,c.useState)(n),[f,v]=(0,c.useState)(!1),[x,j]=(0,c.useState)(!1),[b,C]=(0,c.useState)(!1),[k,S]=(0,c.useState)(0),[_,T]=(0,c.useState)(0),[N,D]=(0,c.useState)(0),{flags:O}=(0,M.hz)(),{assetConsentStatusLabels:L}=O,{filterTabs:P,activeTab:q,onTabChange:B,activeParams:Q,actionsDisabled:J}=(0,F.Z)(n),W=(0,E.o)({sorting:{validColumns:Object.values(I.r6)}}),{columnFilters:Y,pageIndex:X,pageSize:H,resetState:en,sortKey:ea,sortOrder:el,searchQuery:ei,updateSearch:er,updateFilters:eo,updateSorting:ed,updatePageIndex:ec,updatePageSize:eu}=W,{data:ep,isLoading:eg,isFetching:eh}=(0,o.WJ)({key:t,page:X,size:H,search:ei,sort_by:ea?[ea]:[I.r6.NAME],sort_asc:"descend"!==el,...Q,...Y}),[em,{isLoading:ef}]=(0,o.EY)(),[ey,{isLoading:ev}]=(0,o.nS)(),[ex,{isLoading:ej}]=(0,o.rs)(),[eb,{isLoading:eC}]=(0,o.sX)(),[ek,{isLoading:eS}]=(0,o.Vr)(),[ew,{isLoading:e_}]=(0,o.Tj)(),eE=ef||ev||ej||eC||e_||eS,eA=eE||n===i.Kl,{data:eI}=(0,o.ut)({monitor_config_id:t,resolved_system_id:n,diff_status:null==Q?void 0:Q.diff_status,search:ei,...Y}),eT=(0,c.useMemo)(()=>({enableSelection:q!==F.A.ADDED,getRowKey:e=>e.urn,isLoading:eg,isFetching:eh,dataSource:(null==ep?void 0:ep.items)||[],totalRows:(null==ep?void 0:ep.total)||0,sortBy:[I.r6.NAME],sortAsc:!0,customTableProps:{locale:{emptyText:(0,s.jsx)("div",{children:(0,s.jsx)("div",{children:"All caught up!"})})}}}),[q,eg,eh,null==ep?void 0:ep.items,null==ep?void 0:ep.total]),eN=(0,E.V)(W,eT),{selectedKeys:eD,selectedRows:eO,resetSelections:eL}=eN,eP=(0,c.useMemo)(()=>{var e;let t=[{title:"Asset",dataIndex:I.r6.NAME,key:I.r6.NAME,sorter:!0,sortOrder:ea===I.r6.NAME?el:null,render:e=>(0,s.jsx)(d.lKn,{ellipsis:{tooltip:!0},style:{maxWidth:300},children:e}),fixed:"left"},{title:"Type",dataIndex:I.r6.RESOURCE_TYPE,key:I.r6.RESOURCE_TYPE,sorter:!0,sortOrder:ea===I.r6.RESOURCE_TYPE?el:null,filters:(0,A.nZ)(null==eI?void 0:eI.resource_type),filteredValue:(null==Y?void 0:Y.resource_type)||null},{title:"System",dataIndex:I.r6.SYSTEM,key:I.r6.SYSTEM,render:(e,t)=>!!t.monitor_config_id&&(0,s.jsx)(es,{aggregateSystem:t,monitorConfigId:t.monitor_config_id,readonly:J||q===F.A.IGNORED,onChange:()=>{eL()}})},{title:"Categories of consent",key:I.r6.DATA_USES,menu:{items:Z.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,A.nZ)(null==eI?void 0:null===(e=eI.data_uses)||void 0===e?void 0:e.filter(e=>(0,y.Z)(e))),filteredValue:(null==Y?void 0:Y.data_uses)||null,render:(e,t)=>(0,s.jsx)(ee,{asset:t,readonly:J||q===F.A.IGNORED,columnState:{isExpanded:b,version:N},onChange:()=>{eL()}})},{title:"Locations",dataIndex:I.r6.LOCATIONS,key:I.r6.LOCATIONS,menu:{items:Z.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?(v(!0),S(e=>e+1)):"collapse-all"===e.key&&(v(!1),S(e=>e+1))}},filters:(0,A.nZ)(null==eI?void 0:eI.locations,e=>{var t;let n=(0,d.QCN)(e);return n?(0,d.c1K)({isoEntry:n}):null!==(t=w.Z8[e])&&void 0!==t?t:e}),filteredValue:(null==Y?void 0:Y.locations)||null,render:e=>{var t;return(0,s.jsx)(V.Q,{values:null!==(t=null==e?void 0:e.map(e=>{var t;let n=(0,d.QCN)(e);return{label:n?(0,d.c1K)({isoEntry:n}):null!==(t=w.Z8[e])&&void 0!==t?t:e,key:e}}))&&void 0!==t?t:[],columnState:{isExpanded:f,version:k}})}},{title:"Domain",dataIndex:I.r6.DOMAIN,key:I.r6.DOMAIN},{title:"Detected on",dataIndex:I.r6.PAGE,menu:{items:Z.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?(j(!0),T(e=>e+1)):"collapse-all"===e.key&&(j(!1),T(e=>e+1))}},key:I.r6.PAGE,render:e=>(0,s.jsx)(V.v,{values:e,valueSuffix:"pages",columnState:{isExpanded:x,version:_}})}];return L&&t.push({title:()=>(0,s.jsxs)(d.vyj,{children:[(0,s.jsx)("div",{children:"Compliance"}),(null==l?void 0:l.status)===p.pF.ALERT&&(0,s.jsx)(G.l,{consentStatus:l})]}),dataIndex:I.r6.CONSENT_AGGREGATED,key:I.r6.CONSENT_AGGREGATED,sorter:!0,sortOrder:ea===I.r6.CONSENT_AGGREGATED?el:null,filters:(0,A.nZ)(null==eI?void 0:eI[I.r6.CONSENT_AGGREGATED],e=>{var t;return null!==(t=I.X1[e])&&void 0!==t?t:e}),filteredValue:(null==Y?void 0:Y[I.r6.CONSENT_AGGREGATED])||null,render:(e,t)=>(0,s.jsx)(et,{consentAggregated:null!=e?e:p.lg.UNKNOWN,stagedResource:t})}),J||t.push({title:"Actions",key:I.r6.ACTIONS,fixed:"right",render:(e,t)=>(0,s.jsx)($,{asset:t,onTabChange:B,showComplianceIssueDetails:r})}),t},[ea,el,eI,Y,L,J,q,b,N,eL,f,k,x,_,l,B,r]);(0,c.useEffect)(()=>{if(ep){var e;m((null===(e=ep.items[0])||void 0===e?void 0:e.system)||h||n||"")}},[ep,n,h]);let ez=(0,c.useCallback)(async()=>{var e,t;let n=await em({urnList:eD}),s=(null===(e=eO[0])||void 0===e?void 0:e.user_assigned_system_key)||(null===(t=eO[0])||void 0===t?void 0:t.system_key),a=eO.every(e=>(e.user_assigned_system_key||e.system_key)===s)?s:void 0;(0,R.D4)(n)?g((0,U.Vo)((0,R.e$)(n.error))):(g((0,U.t5)((0,K._)("".concat(eD.length," assets from ").concat(h," have been added to the system inventory."),a?()=>u.push("".concat(i.So,"/configure/").concat(a,"#assets")):()=>u.push(i.So)))),eL())},[em,eD,eO,h,g,u,eL]),eM=(0,c.useCallback)(async e=>{if("string"==typeof(null==e?void 0:e.value)){let n=await eb({monitorId:t,urnList:eD,systemKey:e.value});(0,R.D4)(n)?g((0,U.Vo)((0,R.e$)(n.error))):(g((0,U.t5)("".concat(eD.length," assets have been assigned to ").concat(e.label,"."),"Confirmed")),eL())}},[eb,t,eD,g,eL]),eR=(0,c.useCallback)(async e=>{if(!eO.length)return;let n=eO.map(t=>{let n=z()([...t.preferred_data_uses||[],...e]);return{urn:t.urn,user_assigned_data_uses:n}}),s=await ek({monitorId:t,assets:n});(0,R.D4)(s)?g((0,U.Vo)((0,R.e$)(s.error))):(g((0,U.t5)("Consent categories added to ".concat(eD.length," assets").concat(h?" from ".concat(h):"","."),"Confirmed")),eL())},[eO,ek,t,eD,h,g,eL]),eV=(0,c.useCallback)(async()=>{let e=await ey({urnList:eD});(0,R.D4)(e)?g((0,U.Vo)((0,R.e$)(e.error))):(g((0,U.t5)(h===i.Kl?"".concat(eD.length," uncategorized assets have been ignored and will not appear in future scans."):"".concat(eD.length," assets from ").concat(h," have been ignored and will not appear in future scans."),"Confirmed")),eL())},[ey,eD,h,g,eL]),eZ=(0,c.useCallback)(async()=>{let e=await ew({urnList:eD});(0,R.D4)(e)?g((0,U.Vo)((0,R.e$)(e.error))):(g((0,U.t5)("".concat(eD.length," assets have been restored and will appear in future scans."),"Confirmed")),eL())},[ew,eD,g,eL]),eU=(0,c.useCallback)(async()=>{let e=(null==ep?void 0:ep.items.length)||0,s=await ex({monitor_config_key:t,resolved_system_ids:[n]});(0,R.D4)(s)?g((0,U.Vo)((0,R.e$)(s.error))):(u.push("".concat(i.vi,"/").concat(t)),g((0,U.t5)("".concat(e," assets from ").concat(h," have been added to the system inventory."),"Confirmed")),eL())},[null==ep?void 0:ep.items.length,ex,t,n,u,g,h,eL]),eG=(0,c.useCallback)(async e=>{await B(e),en(),eL()},[B,en,eL]);return{columns:eP,data:ep,isLoading:eg,isFetching:eh,tableState:W,searchQuery:ei,updateSearch:er,updateFilters:eo,updateSorting:ed,updatePageIndex:ec,updatePageSize:eu,resetState:en,tableProps:eN.tableProps,selectionProps:eN.selectionProps,filterTabs:P,activeTab:q,handleTabChange:eG,activeParams:Q,actionsDisabled:J,selectedRows:eO,selectedUrns:eD,hasSelectedRows:eN.hasSelectedRows,resetSelections:eL,systemName:h,consentStatus:l,handleBulkAdd:ez,handleBulkAssignSystem:eM,handleBulkAddDataUse:eR,handleBulkIgnore:eV,handleBulkRestore:eZ,handleAddAll:eU,anyBulkActionIsLoading:eE,isAddingResults:ef,isIgnoringResults:ev,isAddingAllResults:ej,isBulkUpdatingSystem:eC,isBulkAddingDataUses:eS,isRestoringResults:e_,disableAddAll:eA}},el=e=>{var t;let{monitorId:n,systemId:a,consentStatus:l}=e,[i,r]=(0,c.useState)(!1),[o,h]=(0,c.useState)(!1),[m,f]=(0,c.useState)(null),{columns:y,searchQuery:v,updateSearch:x,resetState:b,tableProps:C,selectionProps:k,filterTabs:w,activeTab:_,handleTabChange:E,activeParams:A,actionsDisabled:I,selectedUrns:T,hasSelectedRows:N,resetSelections:D,handleBulkAdd:O,handleBulkAssignSystem:P,handleBulkAddDataUse:z,handleBulkIgnore:M,handleBulkRestore:R,handleAddAll:V,anyBulkActionIsLoading:Z,isAddingAllResults:U,isBulkUpdatingSystem:G,isBulkAddingDataUses:K,disableAddAll:q}=ea({monitorId:n,systemId:a,consentStatus:l,onShowComplianceIssueDetails:e=>{f(e)}}),B=async e=>{await P(e),r(!1)},F=async e=>{await z(e),h(!1)};return n&&a?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.Niu,{"aria-label":"Asset state filter",mode:"horizontal",items:w.map(e=>({key:e.hash,label:e.label})),selectedKeys:[_],onClick:async e=>{await E(e.key)},className:"mb-4","data-testid":"asset-state-filter"}),(0,s.jsxs)(d.jqI,{justify:"space-between",align:"center",className:"mb-4",children:[(0,s.jsx)(g.f,{value:v,onChange:x,placeholder:"Search by asset name..."}),(0,s.jsxs)(d.vyj,{size:"large",children:[N&&(0,s.jsx)(u.a,{count:T.length}),(0,s.jsxs)(d.vyj,{size:"small",children:[(0,s.jsx)(d.wpx,{onClick:()=>{b(),D()},"data-testid":"clear-filters",children:"Clear filters"}),(0,s.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(p.LL.MUTED))?[{key:"restore",label:"Restore",onClick:R}]:[{key:"add",label:"Add",onClick:O},{key:"add-data-use",label:"Add consent category",onClick:()=>h(!0)},{key:"assign-system",label:"Assign system",onClick:()=>r(!0)},{type:"divider"},{key:"ignore",label:"Ignore",onClick:M}]]},trigger:["click"],children:(0,s.jsx)(d.wpx,{icon:(0,s.jsx)(d.PJP._ME,{}),iconPosition:"end",loading:Z,"data-testid":"bulk-actions-menu",disabled:!N||Z||I,type:"primary",children:"Actions"})}),(0,s.jsx)(d.esZ,{title:q?"These assets require a system before you can add them to the inventory.":void 0,children:(0,s.jsx)(d.wpx,{onClick:V,disabled:q,loading:U,type:"primary",icon:(0,s.jsx)(d.PJP.MCw,{}),iconPosition:"end","data-testid":"add-all",children:"Add all"})})]})]})]}),(0,s.jsx)(d.V5H,{...C,columns:y,rowSelection:k,locale:{emptyText:(0,s.jsx)(d.oj8,{image:d.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})},"aria-labelledby":"breadcrumb-current-page"}),(0,s.jsx)(S,{isOpen:i,onClose:()=>{r(!1)},onSave:B,isSaving:G}),(0,s.jsx)(j,{isOpen:o,onClose:()=>{h(!1)},onSave:F,isSaving:K}),m&&(0,s.jsx)(L,{isOpen:!!m,stagedResource:m,onCancel:()=>{f(null)}})]}):null};var ei=n(98243),er=()=>{var e;let t=(0,a.useRouter)(),n=decodeURIComponent(t.query.monitorId),d=decodeURIComponent(t.query.systemId),{data:c}=(0,o.wi)({key:n,page:1,size:1,search:"",diff_status:[ei.L.ADDITION],resolved_system_id:d}),u=null==c?void 0:c.items[0];return(0,s.jsxs)(l.Z,{title:"Action center - Discovered assets",children:[(0,s.jsx)(r.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:i.vi},{title:n,href:"".concat(i.vi,"/").concat(n)},{title:d===i.Kl?"Uncategorized assets":null!==(e=null==u?void 0:u.name)&&void 0!==e?e:d}]}),(0,s.jsx)(el,{monitorId:n,systemId:d,consentStatus:null==u?void 0:u.consent_status})]})}},31883:function(e,t,n){"use strict";n.d(t,{Bw:function(){return s.Bw},D4:function(){return s.D4}});var s=n(19043)},18992:function(e){e.exports={cellBleed:"Cells_cellBleed__dik43"}}},function(e){e.O(0,[431,8765,9278,5163,6344,7245,401,1437,9070,2888,9774,179],function(){return e(e.s=25654)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1961],{85630:function(e){e.exports=function(e){return e.split("")}},75733:function(e){e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},74833:function(e,t,n){var r=n(56127),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},39158:function(e,t,n){var r=n(75733);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},62690:function(e,t,n){var r=n(39158),i=n(25348),o=n(63528),s=n(65567);e.exports=function(e){return function(t){var n=i(t=s(t))?o(t):void 0,a=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return a[e]()+l}}},56632:function(e,t,n){var r=n(89278),i=n(80068),o=n(50098);e.exports=function(e){return function(t,n,s){var a=Object(t);if(!i(t)){var l=r(n,3);t=o(t),n=function(e){return l(a[e],e,a)}}var c=e(t,n,s);return c>-1?a[l?t[c]:c]:void 0}}},25348:function(e){var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},63528:function(e,t,n){var r=n(85630),i=n(25348),o=n(84890);e.exports=function(e){return i(e)?o(e):r(e)}},56127:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},84890:function(e){var t="\ud800-\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\ud83c[\udffb-\udfff]",i="[^"+t+"]",o="(?:\ud83c[\udde6-\uddff]){2}",s="[\ud800-\udbff][\udc00-\udfff]",a="(?:"+n+"|"+r+")?",l="[\\ufe0e\\ufe0f]?",c="(?:\\u200d(?:"+[i,o,s].join("|")+")"+l+a+")*",u=RegExp(r+"(?="+r+")|(?:"+[i+n+"?",n,o,s,"["+t+"]"].join("|")+")"+(l+a+c),"g");e.exports=function(e){return e.match(u)||[]}},98052:function(e,t,n){var r=n(65567),i=n(76744);e.exports=function(e){return i(r(e).toLowerCase())}},66726:function(e,t,n){var r=n(11611),i=n(82846),o=n(91936),s=Math.max,a=Math.min;e.exports=function(e,t,n){var l,c,u,d,f,p,m=0,g=!1,v=!1,h=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=l,r=c;return l=c=void 0,m=t,d=e.apply(r,n)}function x(e){var n=e-p,r=e-m;return void 0===p||n>=t||n<0||v&&r>=u}function j(){var e,n,r,o=i();if(x(o))return _(o);f=setTimeout(j,(e=o-p,n=o-m,r=t-e,v?a(r,u-n):r))}function _(e){return(f=void 0,h&&l)?y(e):(l=c=void 0,d)}function S(){var e,n=i(),r=x(n);if(l=arguments,c=this,p=n,r){if(void 0===f)return m=e=p,f=setTimeout(j,t),g?y(e):d;if(v)return clearTimeout(f),f=setTimeout(j,t),y(p)}return void 0===f&&(f=setTimeout(j,t)),d}return t=o(t)||0,r(n)&&(g=!!n.leading,u=(v="maxWait"in n)?s(o(n.maxWait)||0,t):u,h="trailing"in n?!!n.trailing:h),S.cancel=function(){void 0!==f&&clearTimeout(f),m=0,l=p=c=f=void 0},S.flush=function(){return void 0===f?d:_(i())},S}},64925:function(e,t,n){var r=n(56632)(n(66259));e.exports=r},66259:function(e,t,n){var r=n(95372),i=n(89278),o=n(47991),s=Math.max;e.exports=function(e,t,n){var a=null==e?0:e.length;if(!a)return -1;var l=null==n?0:o(n);return l<0&&(l=s(a+l,0)),r(e,i(t,3),l)}},82846:function(e,t,n){var r=n(77400);e.exports=function(){return r.Date.now()}},94919:function(e,t,n){var r=n(91936),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,n){var r=n(94919);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},91936:function(e,t,n){var r=n(74833),i=n(11611),o=n(55193),s=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(o(e))return s;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):a.test(e)?s:+e}},76744:function(e,t,n){var r=n(62690)("toUpperCase");e.exports=r},19174:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/[monitorId]/data-explorer",function(){return n(12591)}])},30952:function(e,t,n){"use strict";n.d(t,{f:function(){return l}});var r=n(24246),i=n(66726),o=n.n(i),s=n(27378),a=n(26917);let l=e=>{let{value:t,onChange:n,placeholder:i,...l}=e,[c,u]=(0,s.useState)(t);(0,s.useEffect)(()=>{u(t||"")},[t]);let d=o()(n,500),f=(0,s.useCallback)(e=>{u(e),d(e)},[]);return(0,r.jsx)(a.Z,{value:c,onChange:f,onClear:()=>{u(""),n("")},placeholder:i,...l})}},35287:function(e,t,n){"use strict";var r=n(24246),i=n(20595),o=n(88038),s=n.n(o);n(27378),t.Z=e=>{let{children:t,title:n,mainProps:o}=e;return(0,r.jsxs)(i.kCb,{"data-testid":n,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,r.jsxs)(s(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsx)(i.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...o,children:t})]})}},58754:function(e,t,n){"use strict";var r=n(24246),i=n(20595),o=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:s=!0,children:a,rightContent:l,style:c,...u}=e;return(0,r.jsxs)("div",{...u,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,r.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,r.jsx)(i.lQT,{className:n||a?"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})]}),!!n&&(0,r.jsx)(o.m,{className:a?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),a]})}},79283:function(e,t,n){"use strict";n.d(t,{l:function(){return u}});var r=n(24246),i=n(20595),o=n(72707),s=n.n(o);let a=e=>{let{data:{formattedTitle:t,description:n,name:o,primaryName:s}}=e;return(0,r.jsxs)(i.jqI,{gap:12,title:"".concat(t," - ").concat(n),children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("strong",{children:s||o}),s&&": ".concat(o)]}),(0,r.jsx)("em",{children:n})]})},l=e=>"options"in e&&Array.isArray(e.options),c=e=>({...e,className:s().option,formattedTitle:e.formattedTitle||[e.primaryName,e.name].filter(e=>e).join(": ")}),u=e=>{let{options:t,...n}=e,o=null==t?void 0:t.map(e=>l(e)?{...e,options:e.options.map(c)}:c(e));return(0,r.jsx)(i.WPr,{options:o,filterOption:(e,t)=>{var n,r;return(null==t?void 0:null===(n=t.formattedTitle)||void 0===n?void 0:n.toLowerCase().includes(e.toLowerCase()))||(null==t?void 0:null===(r=t.value)||void 0===r?void 0:r.toLowerCase().includes(e.toLowerCase()))||!1},optionFilterProp:"label",autoFocus:!0,variant:"borderless",optionRender:a,styles:{popup:{root:{minWidth:"500px"}}},className:"w-full p-0","data-testid":"taxonomy-select",...n})}},34929:function(e,t,n){"use strict";var r=n(24246),i=n(64925),o=n.n(i),s=n(27378),a=n(16134),l=n(30002),c=n(28079),u=n(57072);let d=()=>{let{isLoading:e}=(0,c.fd)(),t=(0,a.C)(c.U3),{isLoading:n}=(0,u.MO)(),r=(0,a.C)(u.qb),{isLoading:i}=(0,l.te)();return{dataUses:t,dataSubjects:(0,a.C)(l.ZL),dataCategories:r,isLoading:e||n||i}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:n,isLoading:i}=d(),a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},l=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=t(e);if(!r)return{};let i=t(a(e,n)),o=!!r.parent_key;return{name:r.name||void 0,primaryName:o&&(null==i?void 0:i.name)!==r.name&&(null==i?void 0:i.name)||void 0}},c=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:i,primaryName:o}=l(e,t,n);return i?o?(0,r.jsxs)(s.Fragment,{children:[(0,r.jsxs)("strong",{children:[o,":"]})," ",i]},e):(0,r.jsx)("strong",{children:i},e):e},u=t=>o()(e,{fides_key:t}),f=e=>o()(t,{fides_key:e}),p=e=>o()(n,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:u,getDataUseDisplayName:e=>c(e,u,1),getDataUseDisplayNameProps:e=>l(e,u,1),getDataCategories:()=>t,getDataCategoryByKey:f,getDataCategoryDisplayName:e=>c(e,f,2),getDataCategoryDisplayNameProps:e=>l(e,f,2),getDataSubjects:()=>n,getDataSubjectByKey:p,getDataSubjectDisplayName:e=>{let t=p(e);return t?t.name:e},getPrimaryKey:a,isLoading:i}}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return c}});var r=n(24246),i=n(20595),o=n(79894),s=n.n(o),a=n(27378);let{Text:l}=i.AntTypography,c=e=>{let{items:t,...n}=e,o=(0,a.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let o=n===t.length-1,a={...e},c=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,r.jsx)(l,{style:{color:"inherit",maxWidth:o?void 0:400},ellipsis:!o,id:o?"breadcrumb-current-page":void 0,children:a.title})),c)?a.title=(0,r.jsx)(i.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,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,r.jsx)(s(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,r.jsx)(i.zrq,{items:o,...n})}},9270:function(e,t,n){"use strict";n.d(t,{S:function(){return o}});var r=n(27378),i=n(36866);let o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,i.h)(e),{pageIndex:n,pageSize:o,updatePageIndex:s,updatePageSize:a,pageSizeOptions:l,showSizeChanger:c}=t,u=(0,r.useMemo)(()=>({current:n,pageSize:o,showSizeChanger:c,pageSizeOptions:l.map(String),onChange:s,onShowSizeChange:(e,t)=>{a(t)}}),[n,o,c,l,s,a]);return{...t,paginationProps:u}}},37059:function(e,t,n){"use strict";n.d(t,{$h:function(){return j},Ak:function(){return v},Av:function(){return A},EY:function(){return f},Fp:function(){return C},QC:function(){return S},RV:function(){return w},S0:function(){return P},Tj:function(){return m},Ud:function(){return a},Vr:function(){return h},WJ:function(){return c},mL:function(){return _},mi:function(){return y},nP:function(){return d},nS:function(){return p},rs:function(){return u},sX:function(){return g},ut:function(){return x},vc:function(){return N},wi:function(){return l}});var r=n(78780),i=n(16394),o=n(39449),s=n(98145);let{useGetAggregateMonitorResultsQuery:a,useGetDiscoveredSystemAggregateQuery:l,useGetDiscoveredAssetsQuery:c,useAddMonitorResultSystemsMutation:u,useIgnoreMonitorResultSystemsMutation:d,useAddMonitorResultAssetsMutation:f,useIgnoreMonitorResultAssetsMutation:p,useRestoreMonitorResultAssetsMutation:m,useUpdateAssetsSystemMutation:g,useUpdateAssetsDataUseMutation:v,useUpdateAssetsMutation:h,useGetConsentBreakdownQuery:y,useGetWebsiteMonitorResourceFiltersQuery:x,useGetInProgressMonitorTasksQuery:j,useRetryMonitorTaskMutation:_,useDismissMonitorTaskMutation:S,useUndismissMonitorTaskMutation:b,useGetMonitorTreeQuery:T,useLazyGetMonitorTreeQuery:w,useGetMonitorFieldsQuery:C,useGetMonitorConfigQuery:N,useGetDatastoreFiltersQuery:P,useClassifyStagedResourcesMutation:A}=r.u.injectEndpoints({endpoints:e=>({getAggregateMonitorResults:e.query({query:e=>{let{page:t=1,size:n=20,search:r}=e;return{url:"/plus/discovery-monitor/aggregate-results",params:{page:t,size:n,search:r,diff_status:"addition"}}},providesTags:["Discovery Monitor Results"]}),getMonitorConfig:e.query({query:e=>{let{monitor_config_id:t}=e;return{url:"/plus/discovery-monitor/".concat(t)}}}),getDatastoreFilters:e.query({query:e=>{let{monitor_config_id:t}=e;return{url:"/plus/filters/datastore_monitor_resources/?monitor_config_id=".concat(t)}}}),getMonitorTree:e.query({query:e=>{let{page:t=1,size:n=20,monitor_config_id:r,staged_resource_urn:i}=e;return{url:"/plus/discovery-monitor/".concat(r,"/tree").concat(i?"?staged_resource_urn=".concat(i):""),params:{page:t,size:n}}}}),getMonitorFields:e.query({query:e=>{let{page:t=1,size:n=20,monitor_config_id:r,search:o,diff_status:s,confidence_score:a,...l}=e,c=(0,i.$J)({...l,...o?{search:[o]}:{},...s?{diff_status:s}:{},...a?{confidence_score:a}:{}});return{url:"/plus/discovery-monitor/".concat(r,"/fields?").concat(null==c?void 0:c.toString()),params:{page:t,size:n}}},providesTags:["Monitor Field Results"]}),getDiscoveredSystemAggregate:e.query({query:e=>{let{key:t,resolved_system_id:n,page:r=1,size:i=20,search:o,diff_status:s}=e;return{url:"/plus/discovery-monitor/system-aggregate-results",params:{monitor_config_id:t,resolved_system_id:n,page:r,size:i,search:o,diff_status:s}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredAssets:e.query({query:e=>{let{key:t,system:n,page:r=1,size:a=20,search:l,diff_status:c=[o.LL.ADDITION],sort_by:u=[s.r6.NAME],sort_asc:d=!0,resource_type:f,data_uses:p,locations:m,consent_aggregated:g}=e,v=Array.isArray(u)?u:[u],h=(0,i.$J)({sort_by:v,resource_type:f,data_uses:p,locations:m,consent_aggregated:g});return{url:"/plus/discovery-monitor/".concat(t,"/results?").concat(h.toString()),params:{resolved_system_id:n,page:r,size:a,search:l,diff_status:c,sort_asc:d}}},providesTags:()=>["Discovery Monitor Results"]}),addMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:n}=e,r=(0,i.du)(n,"resolved_system_ids");return{url:"/plus/discovery-monitor/".concat(t,"/promote"),method:"POST",params:r?new URLSearchParams(r):new URLSearchParams}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:n}=e,r=(0,i.du)(n,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(t,"/mute?").concat(r)}},invalidatesTags:["Discovery Monitor Results"]}),addMonitorResultAssets:e.mutation({query:e=>{var t;let n=new URLSearchParams;return null===(t=e.urnList)||void 0===t||t.forEach(e=>n.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/promote?".concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultAssets:e.mutation({query:e=>({method:"POST",url:"/plus/discovery-monitor/mute",body:{staged_resource_urns:e.urnList}}),invalidatesTags:["Discovery Monitor Results","Monitor Field Results"]}),restoreMonitorResultAssets:e.mutation({query:e=>{var t;let n=new URLSearchParams({status_to_set:o.LL.ADDITION});return null===(t=e.urnList)||void 0===t||t.forEach(e=>n.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/un-mute?".concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),updateAssetsSystem:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.urnList.map(t=>({urn:t,user_assigned_system_key:e.systemKey}))}),invalidatesTags:["Discovery Monitor Results","System Assets"]}),updateAssetsDataUse:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.urnList.map(t=>({urn:t,user_assigned_data_uses:e.dataUses}))}),invalidatesTags:["Discovery Monitor Results"]}),updateAssets:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.assets}),invalidatesTags:["Discovery Monitor Results"]}),getConsentBreakdown:e.query({query:e=>{let{stagedResourceUrn:t,statuses:n,page:r=1,size:i=20}=e,o=new URLSearchParams;return o.append("page",String(r)),o.append("size",String(i)),n.forEach(e=>{o.append("status",e)}),{url:"/plus/discovery-monitor/staged_resource/".concat(encodeURIComponent(t),"/consent"),params:o}}}),getWebsiteMonitorResourceFilters:e.query({query:e=>{let{monitor_config_id:t,resolved_system_id:n,diff_status:r=[o.LL.ADDITION],search:s,resource_type:a,data_uses:l,locations:c,consent_aggregated:u}=e,d={monitor_config_id:t,resolved_system_id:n,diff_status:r};s&&(d.search=s);let f=(0,i.$J)({resource_type:a,data_uses:l,locations:c,consent_aggregated:u}).toString();return{url:f?"/plus/filters/website_monitor_resources?".concat(f):"/plus/filters/website_monitor_resources",params:d}},providesTags:["Discovery Monitor Results"]}),getInProgressMonitorTasks:e.query({query:e=>{let{page:t=1,size:n=20,search:r,task_types:i,statuses:o,return_dismissed:s=!1}=e,a=new URLSearchParams({page:t.toString(),size:n.toString(),return_dismissed:s.toString()});return r&&a.append("search",r),(null==i?void 0:i.length)&&i.forEach(e=>a.append("action_type",e)),(null==o?void 0:o.length)&&o.forEach(e=>a.append("status",e)),{url:"/plus/discovery-monitor/tasks?".concat(a.toString())}},providesTags:["Monitor Tasks"]}),retryMonitorTask:e.mutation({query:e=>{let{taskId:t}=e;return{url:"/plus/discovery-monitor/tasks/".concat(t,"/retry"),method:"POST"}},invalidatesTags:["Monitor Tasks"]}),dismissMonitorTask:e.mutation({query:e=>{let{taskId:t}=e;return{url:"/plus/discovery-monitor/tasks/".concat(t,"/dismissed"),method:"POST"}},invalidatesTags:["Monitor Tasks"]}),undismissMonitorTask:e.mutation({query:e=>{let{taskId:t}=e;return{url:"/plus/discovery-monitor/tasks/".concat(t,"/dismissed"),method:"DELETE"}},invalidatesTags:["Monitor Tasks"]}),classifyStagedResources:e.mutation({query:e=>{let{monitor_config_key:t,...n}=e;return{url:"/plus/discovery-monitor/".concat(t,"/classify"),method:"POST",body:n}},invalidatesTags:["Monitor Field Results"]})})})},98145:function(e,t,n){"use strict";n.d(t,{EI:function(){return l},LM:function(){return f},Vq:function(){return d},X1:function(){return u},r6:function(){return s},vQ:function(){return a}});var r,i,o,s,a,l,c=n(39449);let u={[c.lg.WITH_CONSENT]:"Consent respected",[c.lg.WITHOUT_CONSENT]:"Consent ignored",[c.lg.EXEMPT]:"Exempt",[c.lg.UNKNOWN]:"Unknown",[c.lg.PRE_CONSENT]:"Pre-Consent",[c.lg.CMP_ERROR]:"CMP failure",[c.lg.NOT_APPLICABLE]:"Not applicable"},d={[c.lg.WITH_CONSENT]:"Asset was detected after the user gave consent",[c.lg.WITHOUT_CONSENT]:"The user explicitly opted out, but this asset still loaded. This is a serious compliance issue and may indicate that consent settings are not being enforced.",[c.lg.EXEMPT]:"Asset is valid regardless of consent",[c.lg.UNKNOWN]:"Did not find consent information for this asset. You may need to re-run the monitor.",[c.lg.PRE_CONSENT]:"Assets loaded before the user had a chance to give consent. This violates opt-in compliance requirements if your CMP is configured for explicit consent.",[c.lg.CMP_ERROR]:"The Consent Management Platform (CMP) was not detected when the service ran. It likely failed to load or wasn't available.",[c.lg.NOT_APPLICABLE]:"No privacy notices apply to this asset"},f=[c.lg.WITHOUT_CONSENT,c.lg.PRE_CONSENT,c.lg.CMP_ERROR];(r=s||(s={})).NAME="name",r.RESOURCE_TYPE="resource_type",r.SYSTEM="system",r.DATA_USES="data_uses",r.LOCATIONS="locations",r.DOMAIN="domain",r.PAGE="page",r.CONSENT_AGGREGATED="consent_aggregated",r.ACTIONS="actions",(i=a||(a={})).SYSTEM_NAME="system_name",i.TOTAL_UPDATES="total_updates",i.DATA_USE="data_use",i.LOCATIONS="locations",i.DOMAINS="domains",i.ACTIONS="actions",(o=l||(l={})).LOCATION="location",o.PAGE="page",o.STATUS="status"},57072:function(e,t,n){"use strict";n.d(t,{Bd:function(){return r.Bd},L5:function(){return r.L5},MO:function(){return r.MO},qb:function(){return r.qb}});var r=n(5785)},12591:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return K}});var r,i,o=n(24246),s=n(20595),a=n(25980),l=n(86677),c=n(27378),u=n(30952),d=n(35287),f=n(812),p=n(17245),m=n(77830),g=n(58754),v=n(9270),h=n(46628),y=n(37059),x=n(70675),j=n(39449),_=n(31883),S=n(98052),b=n.n(S);(r=i||(i={})).LOW="low",r.HIGH="high",r.MANUAL="manual";var T=n(40431);let w=["Attention Required","In Review","Classifying","Approved","Unmonitored"],C=()=>{let[e,t]=(0,T.v1)("resourceStatus",(0,T.S$)((0,T.km)(w))),[n,r]=(0,T.v1)("confidenceScore",(0,T.S$)((0,T.jx)(Object.values(i)))),[o,s]=(0,T.v1)("dataCategory",(0,T.S$)(T.Oi));return{resourceStatus:e,setResourceStatus:t,confidenceScore:n,setConfidenceScore:r,dataCategory:o,setDataCategory:s,reset:()=>{t(null),r(null),s(null)}}},N=e=>{var t;let{resourceStatus:n,setResourceStatus:r,confidenceScore:a,setConfidenceScore:l,dataCategory:c,setDataCategory:u,reset:d,monitorId:f}=e,{data:p}=(0,y.S0)({monitor_config_id:f});return(0,o.jsx)("div",{className:"rounded-[var(--ant-border-radius)] bg-[var(--ant-color-bg-base)] shadow-md",children:(0,o.jsx)(s.vyj,{size:"middle",className:"p-[var(--ant-padding)]",children:(0,o.jsxs)(s.PPS,{layout:"vertical",children:[(0,o.jsx)(s.PPS.Item,{label:"Status",className:"w-min whitespace-nowrap",children:(0,o.jsx)(s.E_O.Group,{value:n||[],onChange:e=>r(e.length>0?e:null),children:(0,o.jsx)(s.bue,{children:w.map(e=>(0,o.jsx)(s.JGx,{span:24,children:(0,o.jsx)(s.E_O,{value:e,children:e})},e))})})}),(0,o.jsx)(s.PPS.Item,{label:"Confidence Score",className:"w-min whitespace-nowrap",children:(0,o.jsx)(s.E_O.Group,{value:a||[],onChange:e=>l(e.length>0?e:null),children:(0,o.jsx)(s.bue,{children:Object.values(i).map(e=>(0,o.jsx)(s.JGx,{span:24,children:(0,o.jsx)(s.E_O,{value:e,children:b()(e)})},e))})})}),(null==p?void 0:p.data_category)&&(null==p?void 0:null===(t=p.data_category)||void 0===t?void 0:t.length)>0&&(0,o.jsx)(s.PPS.Item,{label:"Data Category",className:"w-min whitespace-nowrap",children:(0,o.jsx)(s.E_O.Group,{value:c||[],onChange:e=>u(e.length>0?e:null),children:(0,o.jsx)(s.bue,{children:p.data_category.map(e=>(0,o.jsx)(s.JGx,{span:24,children:(0,o.jsx)(s.E_O,{value:e,children:b()(e)})},e))})})}),(0,o.jsx)(s.wpx,{onClick:()=>{d()},children:"Clear"})]})})})};var P=n(16394),A=n(79283),R=n(34929),I=e=>{let{...t}=e,{getDataUseDisplayNameProps:n,getDataUses:r}=(0,R.Z)(),i=r(),[a,l]=(0,c.useState)(!1),u=i.map(e=>{let{name:t,primaryName:r}=n(e.fides_key);return{value:e.fides_key,label:(0,o.jsxs)("div",{children:[(0,o.jsx)("strong",{children:r||t}),r&&": ".concat(t)]}),name:t,primaryName:r,description:e.description||""}});return(0,o.jsx)(A.l,{options:u,prefix:(0,o.jsx)(s.wpx,{"aria-label":"Add Data Category",type:"text",size:"small",icon:(0,o.jsx)(s.PJP.mm_,{})}),placeholder:"",suffixIcon:null,classNames:{root:"w-full max-w-full overflow-hidden p-0 cursor-pointer"},variant:"borderless",autoFocus:!1,maxTagCount:"responsive",open:a,onOpenChange:e=>l(e),onSelect:(e,n)=>{t.onSelect&&t.onSelect(e,n),l(!1)},...t})};let k={classifying:{label:"Classifying",color:"blue"},classification_queued:{label:"Classifying",color:"blue"},classification_update:{label:"Classifying",color:"nectar"},classification_addition:{label:"In Review",color:"blue"},addition:{label:"Attention Required",color:"blue"},muted:{label:"Unmonitored",color:"nectar"},removal:{label:"Attention Required",color:"red"},removing:{label:"In Review",color:"nectar"},promoting:{label:"In Review",color:"nectar"},monitored:{label:"Approved",color:"nectar"}},E=e=>{let{label:t,closable:n,onClose:r,isFromClassifier:i}=e;return(0,o.jsx)(s.j8w,{color:"white",bordered:!0,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},closable:n,onClose:r,style:{marginInlineEnd:"calc((var(--ant-padding-xs) * 0.5))"},icon:i&&(0,o.jsx)(s.QMR,{}),children:(0,o.jsx)(s.lKn,{size:"sm",children:t})})};var M=e=>{var t,n;let{urn:r,classifications:a,name:l,diff_status:c,selected:u,onSelect:d,onSetDataUses:f,user_assigned_data_categories:p,onIgnore:m}=e;return(0,o.jsx)(s.krs.Item,{actions:[a&&a.length>0&&(0,o.jsxs)(s.jqI,{gap:"small",align:"center",className:"pr-[var(--ant-padding-xl)]",children:[(0,o.jsx)(s.HwE,{percent:a.find(e=>e.confidence_score===i.HIGH)?100:25,percentPosition:{align:"start",type:"outer"},strokeColor:a.find(e=>e.confidence_score===i.HIGH)?"var(--ant-color-success-text)":"var(--ant-color-warning-text)",steps:2,showInfo:!1,strokeLinecap:"round",size:[24,8]}),(0,o.jsx)(s.lKn,{size:"sm",type:"secondary",className:"font-normal",children:(0,P.kC)(a.find(e=>e.confidence_score===i.HIGH)?i.HIGH:i.LOW)})]},"progress"),a&&a.length>0&&(0,o.jsx)(s.wpx,{"aria-label":"Approve",icon:(0,o.jsx)(s.PJP.MCw,{}),size:"small"},"approve"),c!==j.LL.MUTED&&(0,o.jsx)(s.wpx,{icon:(0,o.jsx)(s.PJP.uzw,{}),size:"small","aria-label":"Ignore",onClick:()=>m(r)},"ignore"),(0,o.jsx)(s.wpx,{"aria-label":"Reclassify",icon:(0,o.jsx)(s.QMR,{}),size:"small"},"reclassify")],children:(0,o.jsx)(s.krs.Item.Meta,{avatar:(0,o.jsx)(s.E_O,{checked:u,onChange:e=>d&&d(r,e.target.checked)}),title:(0,o.jsx)(s.jqI,{justify:"space-between",children:(0,o.jsxs)(s.jqI,{gap:"small",align:"center",className:"w-full",children:[l,c&&(0,o.jsx)(s.j8w,{bordered:!1,color:k[c].color,className:"font-normal text-[var(--ant-font-size-sm)]",children:k[c].label}),(0,o.jsx)(s.lKn,{size:"sm",type:"secondary",className:"overflow-hidden font-normal",ellipsis:{tooltip:r},children:r})]})}),description:(0,o.jsx)(I,{mode:"tags",value:[...null!==(t=null==a?void 0:a.map(e=>{let{label:t}=e;return t}))&&void 0!==t?t:[],...null!==(n=null==p?void 0:p.map(e=>e))&&void 0!==n?n:[]],tagRender:e=>E({...e,isFromClassifier:!!(null==a?void 0:a.find(t=>t.label===e.value))}),onChange:e=>{f(e.flatMap(e=>(null==a?void 0:a.find(t=>t.label!==e))?[]:[e]),r)}})})},r)};let O="load_more",L="skeleton",D=(e,t)=>e.find(e=>{let{children:n}=e;return n&&!!n.find(e=>e.key.toString()===t)}),q=(e,t)=>e.reduce((e,n)=>{if(n.children){var r;return null!==(r=D(n.children,t))&&void 0!==r?r:q(n.children,t)}return e},null),U=e=>{let{node:t,treeData:n,onLoadMore:r}=e;if(t.key.toString().startsWith(O)){let e=q(n,t.key.toString());return(0,o.jsx)(s.wpx,{type:"link",block:!0,onClick:()=>{(null==e?void 0:e.key)&&r(null==e?void 0:e.key.toString())},className:"p-0",children:"function"==typeof t.title?t.title(t):t.title})}return t.key.toString().startsWith(L)?(0,o.jsx)(s.N_L,{paragraph:!1,title:{width:"80px"},active:!0,children:"function"==typeof t.title?t.title(t):t.title}):(0,o.jsx)(s.lKn,{ellipsis:{tooltip:"function"==typeof t.title?t.title(t):t.title},children:"function"==typeof t.title?t.title(t):t.title})},z=(e,t)=>{var n;let r=e.items.map(e=>({title:e.name,key:e.urn,selectable:e.has_children,icon:()=>{switch(e.resource_type){case"Database":return(0,o.jsx)(s.PJP.ehp,{className:"h-full"});case"Table":return(0,o.jsx)(s.PJP.iA_,{className:"h-full"});case"Field":return(0,o.jsx)(s.PJP.$4y,{className:"h-full"});default:return null}},isLeaf:!e.has_children}));return(null!==(n=null==r?void 0:r.length)&&void 0!==n?n:0)<100?r:[...r,{title:"Load more...",key:"".concat(O,"-").concat(e.page,"-").concat(t),selectable:!1,isLeaf:!0}]},W=(e,t,n)=>e.map(e=>{if(e.key===t){var r,i;return{...e,children:[...null!==(i=null===(r=e.children)||void 0===r?void 0:r.filter(e=>!(e.key.toString().startsWith(O)||e.key.toString().startsWith(L))))&&void 0!==i?i:[],...n]}}return e.children?{...e,children:W(e.children,t,n)}:e}),F=(e,t,n)=>e.map(e=>e.key===t?{...e,children:n}:e.children?{...e,children:F(e.children,t,n)}:e);var H=e=>{let{selectedNodeKeys:t,setSelectedNodeKeys:n,onClickClassifyButton:r}=e,i=decodeURIComponent((0,l.useRouter)().query.monitorId),[a]=(0,y.RV)(),[u,d]=(0,c.useState)({}),[f,p]=(0,c.useState)([]),m=e=>{let t=null==u?void 0:u[e];if(t){let n=t.pageIndex+1;p(t=>W(t,e,[...Array(100)].map((t,n)=>({key:"".concat(L,"-").concat(e,"-").concat(n),title:"SKELETON",isLeaf:!0})))),a({monitor_config_id:i,staged_resource_urn:e,size:100,page:n}).then(t=>{let{data:r}=t;r&&(p(t=>W(t,e,z(r,e))),d({...u,[e]:{pageSize:100,pageIndex:n}}))})}};return(0,c.useEffect)(()=>{(async()=>{let{data:e}=await a({monitor_config_id:i,size:100});e&&f.length<=0&&p(z(e))})()},[p]),(0,o.jsxs)(s.jqI,{gap:"middle",vertical:!0,className:"h-full",children:[(0,o.jsx)(s.lQT,{level:3,className:"sticky top-0",children:"Schema explorer"}),(0,o.jsx)(s.a$q,{loadData:e=>{let{children:t,key:n}=e;return new Promise(e=>{if(t){e();return}a({monitor_config_id:i,staged_resource_urn:n.toString(),size:100}).then(e=>{let{data:t}=e;t&&(p(e=>F(e,n,z(t,n.toString()))),d({...u,[n.toString()]:{pageSize:100,pageIndex:1}}))}),e()})},treeData:f,onSelect:(e,t)=>n(t.selectedNodes.map(e=>{let{key:t}=e;return t})),showIcon:!0,showLine:!0,blockNode:!0,multiple:!0,rootClassName:"h-full overflow-x-hidden",titleRender:e=>(0,o.jsx)(U,{node:e,treeData:f,onLoadMore:m})}),t.length>0&&(0,o.jsxs)(s.jqI,{justify:"space-between",align:"center",children:[(0,o.jsxs)("span",{children:[t.length," selected"]}),(0,o.jsx)(s.wpx,{"aria-label":"Classify Selected Nodes",icon:(0,o.jsx)(s.QMR,{}),size:"small",onClick:r})]})]})};let G={classifying:{label:"Classifying",color:"blue"},classification_queued:{label:"Classifying",color:"blue"},classification_update:{label:"Classifying",color:"nectar"},classification_addition:{label:"In Review",color:"blue"},addition:{label:"Attention Required",color:"blue"},muted:{label:"Unmonitored",color:"nectar"},removal:{label:"Attention Required",color:"red"},removing:{label:"In Review",color:"nectar"},promoting:{label:"In Review",color:"nectar"},monitored:{label:"Approved",color:"nectar"}},$=e=>Object.values(j.LL).flatMap(t=>G[t].label===e?[t]:[]);var J=()=>{let e=decodeURIComponent((0,l.useRouter)().query.monitorId),{paginationProps:t,pageIndex:n,pageSize:r,resetPagination:i}=(0,v.S)({defaultPageSize:25}),a=(0,p.Rx)(),{resourceStatus:j,confidenceScore:S,...b}=C(),{data:T}=(0,y.vc)({monitor_config_id:e}),[w,P]=(0,c.useState)([]),[A,R]=(0,c.useState)([]),{data:I}=(0,y.Fp)({monitor_config_id:e,size:r,page:n,staged_resource_urn:w.map(e=>e.toString()),search:a.searchProps.value,diff_status:j?j.flatMap($):void 0,confidence_score:S||void 0}),k=(0,s.pmc)(),[E]=(0,y.Av)(),[O]=(0,x.NA)(),[L]=(0,y.nS)(),{errorAlert:D}=(0,p.VY)(),[q]=(0,x.Hf)(),U=async(t,n)=>{let r=await O({monitor_config_id:e,staged_resource_urn:n,user_assigned_data_categories:t});(0,_.D4)(r)&&D((0,f.e$)(r.error))},z=async e=>{let t=await L({urnList:[e]});(0,_.D4)(t)&&D((0,f.e$)(t.error))},W=async e=>{let t=await q({staged_resource_urns:e});(0,_.D4)(t)&&D((0,f.e$)(t.error))},F=async()=>{let t=await E({monitor_config_key:e,staged_resource_urns:w.flatMap(e=>"bigint"!=typeof e?[e.toString()]:[])});if((0,_.D4)(t)){k((0,h.Vo)((0,f.e$)(t.error)));return}k((0,h.t5)("Classifying initiated"))};return(0,c.useEffect)(()=>{i()},[j,S,w,a.searchQuery]),(0,o.jsxs)(d.Z,{title:"Action center - Discovered assets by system",mainProps:{overflow:"hidden"},children:[(0,o.jsx)(g.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:m.vi},{title:e}],isSticky:!1}),(0,o.jsxs)(s.LgQ,{className:"h-[calc(100%-48px)] overflow-hidden",children:[(0,o.jsx)(s.LgQ.Panel,{defaultSize:250,style:{paddingRight:"var(--ant-padding-md)"},children:(0,o.jsx)(H,{selectedNodeKeys:w,setSelectedNodeKeys:P,onClickClassifyButton:F})}),(0,o.jsx)(s.LgQ.Panel,{style:{paddingLeft:"var(--ant-padding-md)"},children:(0,o.jsxs)(s.jqI,{vertical:!0,gap:"middle",className:"h-full overflow-hidden",children:[(0,o.jsxs)(s.jqI,{justify:"space-between",children:[(0,o.jsx)(s.lQT,{level:2,children:"Monitor results"}),(0,o.jsx)(s.jqI,{align:"center",children:(null==T?void 0:T.last_monitored)&&(0,o.jsxs)(s.lKn,{type:"secondary",children:["Last scan:"," ",new Date(null==T?void 0:T.last_monitored).toLocaleString()]})})]}),(0,o.jsxs)(s.jqI,{justify:"space-between",children:[(0,o.jsx)(u.f,{value:a.searchQuery,onChange:a.updateSearch,placeholder:"Search"}),(0,o.jsxs)(s.jqI,{gap:"small",children:[(0,o.jsx)(s.S0p,{trigger:["click"],popupRender:()=>(0,o.jsx)(N,{resourceStatus:j,confidenceScore:S,...b,monitorId:e}),children:(0,o.jsx)(s.wpx,{icon:(0,o.jsx)(s.PJP._ME,{}),iconPosition:"end",children:"Filter"})}),(0,o.jsx)(s.S0p,{menu:{items:[{key:"promote",onClick:()=>W(A),label:"Promote"}]},disabled:A.length<=0,children:(0,o.jsx)(s.wpx,{type:"primary",icon:(0,o.jsx)(s.PJP._ME,{}),iconPosition:"end",children:"Actions"})})]})]}),(0,o.jsx)(s.krs,{dataSource:null==I?void 0:I.items,className:"overflow-scroll",renderItem:e=>M({...e,selected:A.includes(e.urn),onSelect:(e,t)=>t?R([...A,e]):R(A.filter(t=>t!==e)),onSetDataUses:U,onIgnore:z})}),(0,o.jsx)(s.B7X,{...t,showSizeChanger:!1,total:(null==I?void 0:I.total)||0})]})})]})]})};let Q=()=>(0,o.jsxs)(o.Fragment,{children:["Attempting to access the alpha version of monitor results without setting the ",(0,o.jsx)(s.lKn,{code:!0,children:"alphaFullActionCenter"})," flag"]});var K=()=>{let{flags:e}=(0,a.hz)();return e.alphaFullActionCenter?(0,o.jsx)(J,{}):(0,o.jsx)(s.ux6,{status:"error",title:(0,o.jsx)(Q,{})})}},31883:function(e,t,n){"use strict";n.d(t,{Bw:function(){return r.Bw},D4:function(){return r.D4}});var r=n(19043)},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}}},function(e){e.O(0,[431,8765,9278,5163,7245,2888,9774,179],function(){return e(e.s=19174)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2423],{56632:function(a,e,n){var t=n(89278),i=n(80068),s=n(50098);a.exports=function(a){return function(e,n,o){var r=Object(e);if(!i(e)){var _=t(n,3);e=s(e),n=function(a){return _(r[a],a,r)}}var l=a(e,n,o);return l>-1?r[_?e[l]:l]:void 0}}},64925:function(a,e,n){var t=n(56632)(n(66259));a.exports=t},66259:function(a,e,n){var t=n(95372),i=n(89278),s=n(47991),o=Math.max;a.exports=function(a,e,n){var r=null==a?0:a.length;if(!r)return -1;var _=null==n?0:s(n);return _<0&&(_=o(r+_,0)),t(a,i(e,3),_)}},94919:function(a,e,n){var t=n(91936),i=1/0;a.exports=function(a){return a?(a=t(a))===i||a===-i?(a<0?-1:1)*17976931348623157e292:a==a?a:0:0===a?a:0}},47991:function(a,e,n){var t=n(94919);a.exports=function(a){var e=t(a),n=e%1;return e==e?n?e-n:e:0}},86850:function(a,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/[monitorId]",function(){return n(12109)}])},26089:function(a,e,n){"use strict";var t=n(24246),i=n(20595),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(39449);let i={[t._F.ER]:"Eritrea",[t._F.DJ]:"Djibouti",[t._F.MR]:"Mauritania",[t._F.NA]:"Namibia",[t._F.GH]:"Ghana",[t._F.SS]:"South Sudan",[t._F.SC]:"Seychelles",[t._F.IO]:"British Indian Ocean Territory",[t._F.GQ]:"Equatorial Guinea",[t._F.AO]:"Angola",[t._F.CG]:"Republic of the Congo",[t._F.BW]:"Botswana",[t._F.BI]:"Burundi",[t._F.DZ]:"Algeria",[t._F.TD]:"Chad",[t._F.NG]:"Nigeria",[t._F.TZ]:"Tanzania",[t._F.EH]:"Western Sahara",[t._F.SN]:"Senegal",[t._F.LR]:"Liberia",[t._F.ZA]:"South Africa",[t._F.CV]:"Cape Verde",[t._F.GM]:"Gambia",[t._F.SD]:"Sudan",[t._F.KM]:"Comoros",[t._F.SZ]:"Eswatini",[t._F.UG]:"Uganda",[t._F.MG]:"Madagascar",[t._F.RW]:"Rwanda",[t._F.CD]:"DR Congo",[t._F.CM]:"Cameroon",[t._F.SH]:"Saint Helena, Ascension and Tristan da Cunha",[t._F.TG]:"Togo",[t._F.MU]:"Mauritius",[t._F.NE]:"Niger",[t._F.BJ]:"Benin",[t._F.EG]:"Egypt",[t._F.LS]:"Lesotho",[t._F.ET]:"Ethiopia",[t._F.MA]:"Morocco",[t._F.YT]:"Mayotte",[t._F.BF]:"Burkina Faso",[t._F.RE]:"R\xe9union",[t._F.ST]:"S\xe3o Tom\xe9 and Pr\xedncipe",[t._F.CF]:"Central African Republic",[t._F.MZ]:"Mozambique",[t._F.MW]:"Malawi",[t._F.ML]:"Mali",[t._F.ZM]:"Zambia",[t._F.LY]:"Libya",[t._F.GW]:"Guinea-Bissau",[t._F.SO]:"Somalia",[t._F.KE]:"Kenya",[t._F.GN]:"Guinea",[t._F.ZW]:"Zimbabwe",[t._F.TN]:"Tunisia",[t._F.SL]:"Sierra Leone",[t._F.GA]:"Gabon",[t._F.CI]:"Ivory Coast",[t._F.JO]:"Jordan",[t._F.PK]:"Pakistan",[t._F.KP]:"North Korea",[t._F.MO]:"Macau",[t._F.AM]:"Armenia",[t._F.SY]:"Syria",[t._F.TJ]:"Tajikistan",[t._F.SA]:"Saudi Arabia",[t._F.KR]:"South Korea",[t._F.NP]:"Nepal",[t._F.PH]:"Philippines",[t._F.IQ]:"Iraq",[t._F.LB]:"Lebanon",[t._F.MN]:"Mongolia",[t._F.PS]:"Palestine",[t._F.YE]:"Yemen",[t._F.JP]:"Japan",[t._F.KZ]:"Kazakhstan",[t._F.LK]:"Sri Lanka",[t._F.MM]:"Myanmar",[t._F.KG]:"Kyrgyzstan",[t._F.CN]:"China",[t._F.AF]:"Afghanistan",[t._F.OM]:"Oman",[t._F.IN]:"India",[t._F.LA]:"Laos",[t._F.UZ]:"Uzbekistan",[t._F.MV]:"Maldives",[t._F.ID]:"Indonesia",[t._F.VN]:"Vietnam",[t._F.MY]:"Malaysia",[t._F.TW]:"Taiwan",[t._F.KH]:"Cambodia",[t._F.AE]:"United Arab Emirates",[t._F.HK]:"Hong Kong",[t._F.GE]:"Georgia (Country)",[t._F.BD]:"Bangladesh",[t._F.KW]:"Kuwait",[t._F.TM]:"Turkmenistan",[t._F.QA]:"Qatar",[t._F.BH]:"Bahrain",[t._F.BN]:"Brunei",[t._F.TH]:"Thailand",[t._F.BT]:"Bhutan",[t._F.SG]:"Singapore",[t._F.IL]:"Israel",[t._F.AZ]:"Azerbaijan",[t._F.TL]:"Timor-Leste",[t._F.IR]:"Iran",[t._F.TR]:"Turkey",[t._F.MK]:"North Macedonia",[t._F.IE]:"Ireland",[t._F.DK]:"Denmark",[t._F.SK]:"Slovakia",[t._F.MD]:"Moldova",[t._F.AX]:"\xc5land Islands",[t._F.PL]:"Poland",[t._F.BA]:"Bosnia and Herzegovina",[t._F.SM]:"San Marino",[t._F.CZ]:"Czechia",[t._F.EE]:"Estonia",[t._F.XK]:"Kosovo",[t._F.FO]:"Faroe Islands",[t._F.SJ]:"Svalbard and Jan Mayen",[t._F.GG]:"Guernsey",[t._F.FR]:"France",[t._F.NL]:"Netherlands",[t._F.FI]:"Finland",[t._F.PT]:"Portugal",[t._F.DE]:"Germany",[t._F.MT]:"Malta",[t._F.JE]:"Jersey",[t._F.IS]:"Iceland",[t._F.ES]:"Spain",[t._F.GI]:"Gibraltar",[t._F.NO]:"Norway",[t._F.CY]:"Cyprus",[t._F.RS]:"Serbia",[t._F.LT]:"Lithuania",[t._F.MC]:"Monaco",[t._F.LU]:"Luxembourg",[t._F.UA]:"Ukraine",[t._F.IM]:"Isle of Man",[t._F.RO]:"Romania",[t._F.BE]:"Belgium",[t._F.SE]:"Sweden",[t._F.ME]:"Montenegro",[t._F.LV]:"Latvia",[t._F.VA]:"Vatican City",[t._F.AT]:"Austria",[t._F.AL]:"Albania",[t._F.LI]:"Liechtenstein",[t._F.GR]:"Greece",[t._F.IT]:"Italy",[t._F.AD]:"Andorra",[t._F.GB]:"United Kingdom",[t._F.RU]:"Russia",[t._F.SI]:"Slovenia",[t._F.BY]:"Belarus",[t._F.CH]:"Switzerland",[t._F.HU]:"Hungary",[t._F.BG]:"Bulgaria",[t._F.HR]:"Croatia",[t._F.TC]:"Turks and Caicos Islands",[t._F.CW]:"Cura\xe7ao",[t._F.GP]:"Guadeloupe",[t._F.UM]:"United States Minor Outlying Islands",[t._F.GT]:"Guatemala",[t._F.PM]:"Saint Pierre and Miquelon",[t._F.BQ]:"Caribbean Netherlands",[t._F.GL]:"Greenland",[t._F.SX]:"Sint Maarten",[t._F.PA]:"Panama",[t._F.AW]:"Aruba",[t._F.MQ]:"Martinique",[t._F.AG]:"Antigua and Barbuda",[t._F.BM]:"Bermuda",[t._F.CU]:"Cuba",[t._F.GD]:"Grenada",[t._F.NI]:"Nicaragua",[t._F.LC]:"Saint Lucia",[t._F.KN]:"Saint Kitts and Nevis",[t._F.DO]:"Dominican Republic",[t._F.VC]:"Saint Vincent and the Grenadines",[t._F.BZ]:"Belize",[t._F.HT]:"Haiti",[t._F.JM]:"Jamaica",[t._F.BS]:"Bahamas",[t._F.MX]:"Mexico",[t._F.MF]:"Saint Martin",[t._F.SV]:"El Salvador",[t._F.BL]:"Saint Barth\xe9lemy",[t._F.AI]:"Anguilla",[t._F.MS]:"Montserrat",[t._F.VG]:"British Virgin Islands",[t._F.BB]:"Barbados",[t._F.HN]:"Honduras",[t._F.KY]:"Cayman Islands",[t._F.DM]:"Dominica",[t._F.TT]:"Trinidad and Tobago",[t._F.CR]:"Costa Rica",[t._F.SR]:"Suriname",[t._F.CX]:"Christmas Island",[t._F.WS]:"Samoa",[t._F.PF]:"French Polynesia",[t._F.AS]:"American Samoa",[t._F.NC]:"New Caledonia",[t._F.TK]:"Tokelau",[t._F.PW]:"Palau",[t._F.KI]:"Kiribati",[t._F.VU]:"Vanuatu",[t._F.PN]:"Pitcairn Islands",[t._F.CK]:"Cook Islands",[t._F.FJ]:"Fiji",[t._F.PG]:"Papua New Guinea",[t._F.MP]:"Northern Mariana Islands",[t._F.NU]:"Niue",[t._F.TV]:"Tuvalu",[t._F.NF]:"Norfolk Island",[t._F.TO]:"Tonga",[t._F.FM]:"Micronesia",[t._F.SB]:"Solomon Islands",[t._F.NR]:"Nauru",[t._F.WF]:"Wallis and Futuna",[t._F.GU]:"Guam",[t._F.AU]:"Australia",[t._F.NZ]:"New Zealand",[t._F.MH]:"Marshall Islands",[t._F.CC]:"Cocos (Keeling) Islands",[t._F.VE]:"Venezuela",[t._F.PY]:"Paraguay",[t._F.BR]:"Brazil",[t._F.CO]:"Colombia",[t._F.PE]:"Peru",[t._F.CL]:"Chile",[t._F.UY]:"Uruguay",[t._F.AR]:"Argentina",[t._F.GY]:"Guyana",[t._F.BO]:"Bolivia",[t._F.GF]:"French Guiana",[t._F.EC]:"Ecuador",[t._F.FK]:"Falkland Islands",[t._F.US_AL]:"Alabama",[t._F.US_AK]:"Alaska",[t._F.US_AZ]:"Arizona",[t._F.US_AR]:"Arkansas",[t._F.US_CA]:"California",[t._F.US_CO]:"Colorado",[t._F.US_CT]:"Connecticut",[t._F.US_DE]:"Delaware",[t._F.US_DC]:"District of Columbia (DC)",[t._F.US_FL]:"Florida",[t._F.US_GA]:"Georgia",[t._F.US_HI]:"Hawaii",[t._F.US_ID]:"Idaho",[t._F.US_IL]:"Illinois",[t._F.US_IN]:"Indiana",[t._F.US_IA]:"Iowa",[t._F.US_KS]:"Kansas",[t._F.US_KY]:"Kentucky",[t._F.US_LA]:"Louisiana",[t._F.US_ME]:"Maine",[t._F.US_MD]:"Maryland",[t._F.US_MA]:"Massachusetts",[t._F.US_MI]:"Michigan",[t._F.US_MN]:"Minnesota",[t._F.US_MS]:"Mississippi",[t._F.US_MO]:"Missouri",[t._F.US_MT]:"Montana",[t._F.US_NE]:"Nebraska",[t._F.US_NV]:"Nevada",[t._F.US_NH]:"New Hampshire",[t._F.US_NJ]:"New Jersey",[t._F.US_NM]:"New Mexico",[t._F.US_NY]:"New York",[t._F.US_NC]:"North Carolina",[t._F.US_ND]:"North Dakota",[t._F.US_OH]:"Ohio",[t._F.US_OK]:"Oklahoma",[t._F.US_OR]:"Oregon",[t._F.US_PA]:"Pennsylvania",[t._F.US_PR]:"Puerto Rico",[t._F.US_RI]:"Rhode Island",[t._F.US_SC]:"South Carolina",[t._F.US_SD]:"South Dakota",[t._F.US_TN]:"Tennessee",[t._F.US_TX]:"Texas",[t._F.US_UT]:"Utah",[t._F.US_VA]:"Virginia",[t._F.US_VI]:"United States Virgin Islands",[t._F.US_VT]:"Vermont",[t._F.US_WA]:"Washington",[t._F.US_WV]:"West Virginia",[t._F.US_WI]:"Wisconsin",[t._F.US_WY]:"Wyoming",[t._F.CA_AB]:"Alberta",[t._F.CA_BC]:"British Columbia",[t._F.CA_MB]:"Manitoba",[t._F.CA_NB]:"New Brunswick",[t._F.CA_NL]:"Newfoundland and Labrador",[t._F.CA_NS]:"Nova Scotia",[t._F.CA_ON]:"Ontario",[t._F.CA_PE]:"Prince Edward Island",[t._F.CA_QC]:"Quebec",[t._F.CA_SK]:"Saskatchewan",[t._F.CA_NT]:"Northwest Territories",[t._F.CA_NU]:"Nunavut",[t._F.CA_YT]:"Yukon",[t._F.CA]:"Canada",[t._F.US]:"United States",[t._F.MEXICO_CENTRAL_AMERICA]:"Mexico and Central America",[t._F.CARIBBEAN]:"Caribbean",[t._F.EEA]:"European Economic Area (EEA)",[t._F.NON_EEA]:"Non European Economic Area",[t._F.GLOBAL]:"Global"},s=new Map(Object.entries(i));Object.entries(i).map(a=>({value:a[0],label:a[1]}))},25415:function(a,e,n){"use strict";n.d(e,{a:function(){return s}});var t=n(24246);let{Text:i}=n(20595).AntTypography,s=a=>{let{count:e}=a;return(0,t.jsx)(i,{size:"sm",strong:!0,"data-testid":"selected-count",children:"".concat(e," selected")})}},14908:function(a,e,n){"use strict";var t=n(86677),i=n(27378);let s=a=>a.startsWith("#")?a.slice(1):a;e.Z=a=>{let{tabKeys:e,initialTab:n}=a,o=(0,t.useRouter)(),r=o.asPath.split("#")[1]||e[0],[_,l]=(0,i.useState)(r);return(0,i.useEffect)(()=>{n&&e.includes(n)&&l(n)},[n,e,o.isReady]),{activeTab:_,onTabChange:(0,i.useCallback)(async a=>{if(!e.includes(a)){await o.replace({pathname:o.pathname,query:o.query,hash:void 0}),l(e[0]);return}o.isReady&&(await o.replace({pathname:o.pathname,query:o.query,hash:s(a)},void 0,{shallow:!0}),l(a))},[o,e]),setActiveTab:l}}},9320:function(a,e,n){"use strict";n.d(e,{_:function(){return s}});var t=n(24246),i=n(26089);let s=(a,e)=>(0,t.jsxs)(t.Fragment,{children:[a," ",e&&(0,t.jsx)(i.Z,{onClick:e,children:"View"})]})},88708:function(a,e,n){"use strict";n.d(e,{A:function(){return i}});var t,i,s=n(27378),o=n(14908),r=n(39449);(t=i||(i={})).ATTENTION_REQUIRED="attention-required",t.ADDED="added",t.IGNORED="ignored",e.Z=a=>{let{activeTab:e,onTabChange:n}=(0,o.Z)({tabKeys:Object.values(i)}),t=(0,s.useMemo)(()=>[{label:"Attention required",params:{diff_status:[r.LL.ADDITION],system:a},hash:"attention-required"},{label:"Added",params:{diff_status:[r.LL.MONITORED]},hash:"added"},{label:"Ignored",params:{diff_status:[r.LL.MUTED],system:a},hash:"ignored"}],[a]),{diff_status:_,system:l}=(0,s.useMemo)(()=>{var a;return null!==(a=t.find(a=>a.hash===e))&&void 0!==a?a:t[0]},[t,e]).params,F=(0,s.useMemo)(()=>_.includes(r.LL.MONITORED),[_]);return{filterTabs:t,activeTab:e,onTabChange:n,activeParams:(0,s.useMemo)(()=>a?{diff_status:_,system:l}:{diff_status:_},[a,_,l]),actionsDisabled:F}}},78238:function(a,e,n){"use strict";n.d(e,{g:function(){return t}});let t=["essential","functional.service.improve","personalize","analytics","marketing.advertising.first_party.targeted","marketing.advertising.third_party.targeted"];e.Z=a=>t.includes(a)},12109:function(a,e,n){"use strict";n.r(e),n.d(e,{default:function(){return G}});var t=n(24246),i=n(86677),s=n(35287),o=n(77830),r=n(58754),_=n(20595),l=n(25415),F=n(39449),d=n(30952),u=n(27378),c=n(812),S=n(8125),m=n(46628),h=n(37059),v=n(98145),y=n(9320),C=n(88708),A=n(8411),M=n(26070),p=n(3110),g=n(54762);let N=a=>{let{monitorId:e,system:n,allowIgnore:s,onTabChange:r}=a,[l,{isLoading:F}]=(0,h.rs)(),[d,{isLoading:u}]=(0,h.nP)(),S=(0,i.useRouter)(),v=(0,_.pmc)(),A=F||u,{id:M,name:p,system_key:g,total_updates:N}=n,b=async()=>{let a=await l({monitor_config_key:e,resolved_system_ids:[M]});if((0,c.D4)(a))v((0,m.Vo)((0,c.e$)(a.error)));else{let a="".concat(o.So,"/configure/").concat(g,"#assets");v((0,m.t5)((0,y._)(g?"".concat(N," assets from ").concat(p," have been added to the system inventory."):"".concat(p," and ").concat(N," assets have been added to the system inventory. ").concat(p," is now configured for consent."),g?()=>S.push(a):void 0)))}},I=async()=>{let a=await d({monitor_config_key:e,resolved_system_ids:[M||o.Kl]});(0,c.D4)(a)?v((0,m.Vo)((0,c.e$)(a.error))):v((0,m.t5)((0,y._)(p?"".concat(N," assets from ").concat(p," have been ignored and will not appear in future scans."):"".concat(N," uncategorized assets have been ignored and will not appear in future scans."),async()=>{await r(C.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:b,disabled:!n.id||A,loading:F,children:"Add"})}),s&&(0,t.jsx)(_.wpx,{"data-testid":"ignore-btn",size:"small",onClick:I,disabled:A,loading:u,children:"Ignore"})]})};var b=n(99640),I=n(76904);let f=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:I.QL.Change})}),(0,t.jsx)(b.Z,{href:i,"data-testid":i?"system-name-link":"system-name-text",children:e.name||"Uncategorized assets"}),(0,t.jsx)(g.l,{consentStatus:e.consent_status})]})};var U=n(34929),E=n(2525),k=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,k.Z)(a)))&&void 0!==n?n:[]).map(a=>({label:o(a),key:a}));return(0,t.jsx)(E.Q,{values:r,columnState:s})};let L=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),[h,y]=(0,u.useState)(0),[C,b]=(0,u.useState)(0),[I,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)(g.l,{consentStatus:o})]}),dataIndex:"name",key:v.vQ.SYSTEM_NAME,fixed:"left",render:(a,e)=>(0,t.jsx)(f,{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:p.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:I}})},{title:"Locations",menu:{items:p.DI,onClick:a=>{a.domEvent.stopPropagation(),"expand-all"===a.key?(F(!0),y(a=>a+1)):"collapse-all"===a.key&&(F(!1),y(a=>a+1))}},dataIndex:"locations",key:v.vQ.LOCATIONS,render:a=>{var e;return(0,t.jsx)(M.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=A.Z8[a])&&void 0!==e?e:a,key:a}}))&&void 0!==e?e:[],columnState:{isExpanded:l,isWrapped:!0,version:h}})}},{title:"Domains",menu:{items:p.DI,onClick:a=>{a.domEvent.stopPropagation(),"expand-all"===a.key?(c(!0),b(a=>a+1)):"collapse-all"===a.key&&(c(!1),b(a=>a+1))}},dataIndex:"domains",key:v.vQ.DOMAINS,render:a=>(0,t.jsx)(M.v,{values:a,valueSuffix:"domains",columnState:{isExpanded:d,version:C}})}];return n||a.push({title:"Actions",key:v.vQ.ACTIONS,fixed:"right",render:(a,n)=>(0,t.jsx)(N,{system:n,monitorId:e,allowIgnore:i,onTabChange:s})}),a},[n,o,r,S,l,d,I,h,C,e,i,s])}},x=a=>{let{monitorId:e}=a,n=(0,i.useRouter)(),s=(0,_.pmc)(),[r,l]=(0,u.useState)(),{filterTabs:d,activeTab:A,onTabChange:M,activeParams:p,actionsDisabled:g}=(0,C.Z)(),N=(0,S.o)({sorting:{validColumns:Object.values(v.vQ)}}),{pageIndex:b,pageSize:I,searchQuery:f,updateSearch:U,resetState:E}=N,{data:k,isLoading:T,isFetching:x}=(0,h.wi)({key:e,page:b,size:I,search:f,...p}),[w,{isLoading:G}]=(0,h.rs)(),[P,{isLoading:B}]=(0,h.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},[]),R=(0,u.useCallback)(a=>{var n;return"".concat(o.vi,"/").concat(e,"/").concat(null!==(n=a.id)&&void 0!==n?n:o.Kl).concat(A?"#".concat(A):"")},[e,A]),j=(0,u.useMemo)(()=>({enableSelection:!0,getRowKey:D,isLoading:T,isFetching:x,dataSource:(null==k?void 0:k.items)||[],totalRows:(null==k?void 0:k.total)||0,customTableProps:{locale:{emptyText:(0,t.jsx)(_.oj8,{image:_.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})}}}),[D,T,x,null==k?void 0:k.items,null==k?void 0:k.total]),O=(0,S.V)(N,j),{selectedRows:K,resetSelections:V}=O,Z=(0,u.useCallback)(async a=>{l(void 0),await M(a),E(),V()},[M,E,V]),{columns:H}=L({monitorId:e,onTabChange:Z,readonly:g,allowIgnore:!p.diff_status.includes(F.LL.MUTED),consentStatus:r,rowClickUrl:R});(0,u.useEffect)(()=>{if((null==k?void 0:k.items)&&!r){var a;let e=null===(a=k.items.find(a=>{var e;return(null===(e=a.consent_status)||void 0===e?void 0:e.status)===F.pF.ALERT}))||void 0===a?void 0:a.consent_status;l(null!=e?e:void 0)}},[k,r]);let z=(0,u.useCallback)(async()=>{let a=K.reduce((a,e)=>a+e.total_updates,0),t=await w({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,y._)("".concat(a," assets have been added to the system inventory."),()=>n.push(o.So)))),V())},[K,w,e,s,n,V]),W=(0,u.useCallback)(async()=>{let a=K.reduce((a,e)=>a+e.total_updates,0),n=await P({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,y._)("".concat(a," assets have been ignored and will not appear in future scans."),async()=>{await M(C.A.IGNORED)}))),V())},[K,P,e,s,M,V]),Q=K.some(a=>null===a.id);return{columns:H,data:k,isLoading:T,isFetching:x,searchQuery:f,updateSearch:U,resetState:E,tableProps:O.tableProps,selectionProps:O.selectionProps,filterTabs:d,activeTab:A,handleTabChange:Z,activeParams:p,actionsDisabled:g,selectedRows:K,hasSelectedRows:O.hasSelectedRows,resetSelections:V,uncategorizedIsSelected:Q,handleBulkAdd:z,handleBulkIgnore:W,anyBulkActionIsLoading:G||B,isAddingResults:G,isIgnoringResults:B}},w=a=>{let{monitorId:e}=a,{columns:n,searchQuery:i,updateSearch:s,tableProps:o,selectionProps:r,filterTabs:u,activeTab:c,handleTabChange:S,activeParams:m,selectedRows:h,hasSelectedRows:v,uncategorizedIsSelected:y,handleBulkAdd:C,handleBulkIgnore:A,anyBulkActionIsLoading:M}=x({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:h.length}),(0,t.jsx)(_.S0p,{menu:{items:[{key:"add",label:(0,t.jsx)(_.esZ,{title:y?"Uncategorized assets can't be added to the inventory":null,placement:"left",children:"Add"}),onClick:C,disabled:y},m.diff_status.includes(F.LL.MUTED)?null:{key:"ignore",label:"Ignore",onClick:A}]},trigger:["click"],children:(0,t.jsx)(_.wpx,{type:"primary",icon:(0,t.jsx)(_.PJP._ME,{}),iconPosition:"end",loading:M,disabled:!v,"data-testid":"bulk-actions-menu",children:"Actions"})})]})]}),(0,t.jsx)(_.V5H,{...o,columns:n,rowSelection:r})]})};var G=()=>{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)(w,{monitorId:a})]})}},99830:function(a){a.exports={toastLink:"ToastLink_toastLink__OLSeq"}}},function(a){a.O(0,[431,8765,9278,5163,7245,4817,9070,9965,2888,9774,179],function(){return a(a.s=86850)}),_N_E=a.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8443],{74833:function(e,t,n){var i=n(56127),s=/^\s+/;e.exports=function(e){return e?e.slice(0,i(e)+1).replace(s,""):e}},56127:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},66726:function(e,t,n){var i=n(11611),s=n(82846),a=n(91936),r=Math.max,o=Math.min;e.exports=function(e,t,n){var l,c,u,d,g,p,m=0,f=!1,h=!1,x=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=l,i=c;return l=c=void 0,m=t,d=e.apply(i,n)}function v(e){var n=e-p,i=e-m;return void 0===p||n>=t||n<0||h&&i>=u}function j(){var e,n,i,a=s();if(v(a))return b(a);g=setTimeout(j,(e=a-p,n=a-m,i=t-e,h?o(i,u-n):i))}function b(e){return(g=void 0,x&&l)?y(e):(l=c=void 0,d)}function k(){var e,n=s(),i=v(n);if(l=arguments,c=this,p=n,i){if(void 0===g)return m=e=p,g=setTimeout(j,t),f?y(e):d;if(h)return clearTimeout(g),g=setTimeout(j,t),y(p)}return void 0===g&&(g=setTimeout(j,t)),d}return t=a(t)||0,i(n)&&(f=!!n.leading,u=(h="maxWait"in n)?r(a(n.maxWait)||0,t):u,x="trailing"in n?!!n.trailing:x),k.cancel=function(){void 0!==g&&clearTimeout(g),m=0,l=p=c=g=void 0},k.flush=function(){return void 0===g?d:b(s())},k}},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()}},91936:function(e,t,n){var i=n(74833),s=n(11611),a=n(55193),r=0/0,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return r;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var n=l.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):o.test(e)?r:+e}},40741:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center",function(){return n(80349)}])},30952:function(e,t,n){"use strict";n.d(t,{f:function(){return l}});var i=n(24246),s=n(66726),a=n.n(s),r=n(27378),o=n(26917);let l=e=>{let{value:t,onChange:n,placeholder:s,...l}=e,[c,u]=(0,r.useState)(t);(0,r.useEffect)(()=>{u(t||"")},[t]);let d=a()(n,500),g=(0,r.useCallback)(e=>{u(e),d(e)},[]);return(0,i.jsx)(o.Z,{value:c,onChange:g,onClear:()=>{u(""),n("")},placeholder:s,...l})}},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var i=n(24246),s=n(20595),a=n(88038),r=n.n(a),o=n(86677);n(27378);var l=n(25980),c=n(90867),u=n(42478),d=n(77830),g=()=>{let e=(0,o.useRouter)();return(0,i.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(s.xuv,{children:[(0,i.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(s.wpx,{onClick:()=>{e.push(d.AD)},children:"Configure"})]}),(0,i.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:n,padded:a=!0,mainProps:d}=e,p=(0,l.hz)(),m=(0,o.useRouter)(),f="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,h=!(p.flags.messagingConfiguration&&f),{data:x}=(0,u.JE)(void 0,{skip:h}),{data:y}=(0,c.PW)(void 0,{skip:h}),v=p.flags.messagingConfiguration&&(!x||!y)&&f;return(0,i.jsxs)(s.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(r(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(s.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[v?(0,i.jsx)(g,{}):null,t]})]})}},58754:function(e,t,n){"use strict";var i=n(24246),s=n(20595),a=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:r=!0,children:o,rightContent:l,style:c,...u}=e;return(0,i.jsxs)("div",{...u,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,i.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(s.lQT,{className:n||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,i.jsx)(a.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return c}});var i=n(24246),s=n(20595),a=n(79894),r=n.n(a),o=n(27378);let{Text:l}=s.AntTypography,c=e=>{let{items:t,...n}=e,a=(0,o.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let a=n===t.length-1,o={...e},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,i.jsx)(l,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,id:a?"breadcrumb-current-page":void 0,children:o.title})),c)?o.title=(0,i.jsx)(s.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,i.jsx)(r(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,i.jsx)(s.zrq,{items:a,...n})}},14908:function(e,t,n){"use strict";var i=n(86677),s=n(27378);let a=e=>e.startsWith("#")?e.slice(1):e;t.Z=e=>{let{tabKeys:t,initialTab:n}=e,r=(0,i.useRouter)(),o=r.asPath.split("#")[1]||t[0],[l,c]=(0,s.useState)(o);return(0,s.useEffect)(()=>{n&&t.includes(n)&&c(n)},[n,t,r.isReady]),{activeTab:l,onTabChange:(0,s.useCallback)(async e=>{if(!t.includes(e)){await r.replace({pathname:r.pathname,query:r.query,hash:void 0}),c(t[0]);return}r.isReady&&(await r.replace({pathname:r.pathname,query:r.query,hash:a(e)},void 0,{shallow:!0}),c(e))},[r,t]),setActiveTab:c}}},42478:function(e,t,n){"use strict";n.d(t,{FU:function(){return c},JE:function(){return s},Ki:function(){return d},SU:function(){return g},W:function(){return p},h9:function(){return a},jc:function(){return i},qt:function(){return l},sn:function(){return u}});let{useGetEmailInviteStatusQuery:i,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:a,useCreateMessagingConfigurationSecretsMutation:r,useGetMessagingConfigurationDetailsQuery:o,useGetMessagingConfigurationsQuery:l,useGetMessagingConfigurationByKeyQuery:c,useUpdateMessagingConfigurationByKeyMutation:u,useUpdateMessagingConfigurationSecretsByKeyMutation:d,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:p}=n(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,t,n,i)=>{let s=await i({url:"messaging/default/active"});return s.error&&404===s.error.status?{data:null}:s},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},80349:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Z}});var i,s,a=n(24246),r=n(20595),o=n(79894),l=n.n(o),c=n(27378),u=n(30952),d=n(25980),g=n(77213),p=n(77830),m=n(58754),f=n(47935),h=n(7426),x=n(37059),y=n(16394),v=n(17245),j=n(67359);let b=()=>{let{pageIndex:e,pageSize:t,updatePageIndex:n,resetPagination:i,showSizeChanger:s}=(0,v.h0)({defaultPageSize:20,showSizeChanger:!1}),{searchQuery:o,updateSearch:l}=(0,v.Rx)(),[u,d]=(0,c.useState)([j.n.PENDING,j.n.IN_PROCESSING,j.n.PAUSED,j.n.RETRYING,j.n.ERROR]),[g,p]=(0,c.useState)(!1),m=(0,c.useCallback)(e=>{l(e),n(1)},[l,n]),f=(0,c.useCallback)(e=>{d(e),n(1)},[n]),h=(0,c.useCallback)(e=>{p(e),n(1)},[n]),y=(0,c.useCallback)(()=>{d([j.n.PENDING,j.n.IN_PROCESSING,j.n.PAUSED,j.n.RETRYING,j.n.ERROR]),p(!1),i()},[i]),b=(0,c.useCallback)(()=>{d([]),p(!0),i()},[i]),k=[j.n.PENDING,j.n.IN_PROCESSING,j.n.COMPLETE,j.n.ERROR,j.n.PAUSED,j.n.RETRYING,j.n.SKIPPED],{data:C,isLoading:_,isFetching:w}=(0,x.$h)({page:e,size:t,search:o,statuses:u.length>0?u:void 0,return_dismissed:g});return{searchQuery:o,updateSearch:m,statusFilters:u,updateStatusFilters:f,showDismissed:g,updateShowDismissed:h,resetToDefault:y,clearAllFilters:b,availableStatuses:k,listProps:(0,c.useMemo)(()=>({dataSource:(null==C?void 0:C.items)||[],loading:_||w,locale:{emptyText:(0,a.jsx)(r.oj8,{image:r.oj8.PRESENTED_IMAGE_SIMPLE,description:"No tasks in progress"})},pagination:{current:e,pageSize:t,total:null==C?void 0:C.total,showSizeChanger:s,showQuickJumper:!1,onChange:e=>n(e)}}),[null==C?void 0:C.items,null==C?void 0:C.total,_,w,e,t,s,n]),isLoading:_,isFetching:w}};var k=n(10969),C=n(60145),_=n(11558),w=n(70641),E=n(7317),S=n(85302),N=n(64892);function T(e,t,n){let i;let s=(0,C.j)(),a=n?.locale??s.locale??k._,r=(0,S.U)(e,t);if(isNaN(r))throw RangeError("Invalid time value");let o=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:r}),[l,c]=(0,E.d)(n?.in,...r>0?[t,e]:[e,t]),u=(0,_.u)(n?.roundingMethod??"round"),d=c.getTime()-l.getTime(),g=d/N.yJ,p=(d-((0,w.D)(c)-(0,w.D)(l)))/N.yJ,m=n?.unit;if("second"===(i=m||(g<1?"second":g<60?"minute":g<N.H_?"hour":p<N.fH?"day":p<N.UU?"month":"year"))){let e=u(d/1e3);return a.formatDistance("xSeconds",e,o)}if("minute"===i){let e=u(g);return a.formatDistance("xMinutes",e,o)}if("hour"===i){let e=u(g/60);return a.formatDistance("xHours",e,o)}if("day"===i){let e=u(p/N.H_);return a.formatDistance("xDays",e,o)}if("month"===i){let e=u(p/N.fH);return 12===e&&"month"!==m?a.formatDistance("xYears",1,o):a.formatDistance("xMonths",e,o)}{let e=u(p/N.UU);return a.formatDistance("xYears",e,o)}}var P=n(41337);let{Text:I,Title:R}=r.AntTypography,M=e=>"paused"===e?"Awaiting Processing":e.split("_").map(y.kC).join(" "),D=e=>{var t,n,i,s,o,l,c,u,d,g;let{task:p,...m}=e,f=(0,r.pmc)(),[h,{isLoading:y}]=(0,x.mL)(),[v,{isLoading:j}]=(0,x.QC)(),b=!!p.dismissed_in_activity_view,k="error"===p.status&&"detection"!==p.action_type,{data:C}=(0,x.Ud)({page:1,size:1e3}),_=p.monitor_config_id?null==C?void 0:null===(t=C.items)||void 0===t?void 0:t.find(e=>e.key===p.monitor_config_id):void 0,w=_?(0,P.AZ)({connection_type:_.connection_type,name:null!==(s=_.name)&&void 0!==s?s:null,key:null!==(o=_.key)&&void 0!==o?o:null,saas_config:_.saas_config?{type:null!==(l=_.saas_config.type)&&void 0!==l?l:null,name:null!==(c=_.saas_config.name)&&void 0!==c?c:null,fides_key:null!==(u=_.saas_config.fides_key)&&void 0!==u?u:null}:null,secrets:(null===(i=_.secrets)||void 0===i?void 0:i.url)?{url:_.secrets.url}:null}):p.connection_type?(0,P.AZ)({connection_type:p.connection_type,name:null!==(d=p.connection_name)&&void 0!==d?d:p.connection_type?p.connection_type.toString():null,key:null,saas_config:null,secrets:null}):void 0,E=(null===(n=p.staged_resource_urns)||void 0===n?void 0:n.length)||0,S=["pending","in_processing","paused","retrying"].includes((p.status||"").toLowerCase()),N=(()=>{if("classification"===p.action_type){let e="complete"===p.status?"Classified":"Classifying";return"".concat(e," ").concat(E," ").concat(1===E?"field":"fields")}return"detection"===p.action_type?"complete"===p.status?"Monitor scanned":"Monitor scanning":"promotion"===p.action_type?"complete"===p.status?"Promoted":"Promoting":p.action_type?p.action_type.replace(/_/g," "):"Task"})(),D=(p.connection_type||"").toString().toUpperCase().includes("WEBSITE")?"Product monitor":"Analytics monitor",q=async()=>{try{await h({taskId:p.id}).unwrap(),f({status:"success",description:"Task retry initiated successfully"})}catch(n){var e;let t=(null==n?void 0:null===(e=n.data)||void 0===e?void 0:e.detail)||(null==n?void 0:n.message)||"Unknown error occurred";f({status:"error",description:"Failed to retry task: ".concat(t)})}},A=async()=>{try{await v({taskId:p.id}).unwrap(),f({status:"success",description:"Task dismissed successfully"})}catch(n){var e;let t=(null==n?void 0:null===(e=n.data)||void 0===e?void 0:e.detail)||(null==n?void 0:n.message)||"Unknown error occurred";f({status:"error",description:"Failed to dismiss task: ".concat(t)})}};return(0,a.jsx)("div",{...m,className:"w-full",children:(0,a.jsxs)(r.bue,{gutter:12,className:"w-full",children:[(0,a.jsx)(r.JGx,{span:17,className:"align-middle",children:(0,a.jsxs)(r.vyj,{align:"center",size:8,wrap:!0,children:[w&&(0,a.jsx)(P.ZP,{data:w,boxSize:"24px"}),(0,a.jsx)(R,{level:5,className:"m-0",children:N}),!S&&(0,a.jsx)(r.j8w,{color:(e=>{switch(e){case"pending":case"retrying":return"orange";case"in_processing":return"processing";case"complete":return"green";case"error":return"red";case"paused":return"purple";default:return"gray"}})(p.status),children:(g=p.status)?M(g):"Unknown"}),"error"===p.status&&(0,a.jsxs)(a.Fragment,{children:[k&&(0,a.jsx)(r.wpx,{size:"small",type:"primary",loading:y,onClick:q,children:"Retry"}),!b&&(0,a.jsx)(r.wpx,{size:"small",loading:j,onClick:A,children:"Dismiss"}),(0,a.jsx)(r.bPF,{content:(0,a.jsx)("div",{className:"max-w-[360px]",children:p.message}),title:null,trigger:"click",children:(0,a.jsx)(r.wpx,{type:"link",size:"small",children:"Failure reason"})})]})]})}),(0,a.jsx)(r.JGx,{span:4,className:"flex items-center justify-end",children:(0,a.jsx)(I,{type:"secondary",size:"sm",children:D})}),(0,a.jsx)(r.JGx,{span:3,className:"flex items-center justify-end",children:S?(0,a.jsx)(r.$jN,{size:"sm",color:"primary",thickness:"2px",speed:"0.6s"}):(0,a.jsx)(I,{type:"secondary",size:"sm",children:T(new Date(p.updated_at),new Date,{addSuffix:!0})})})]})})},q=e=>"paused"===e?"Awaiting Processing":e.split("_").map(y.kC).join(" "),A=()=>{let{searchQuery:e,updateSearch:t,statusFilters:n,updateStatusFilters:i,showDismissed:s,updateShowDismissed:o,resetToDefault:l,clearAllFilters:d,availableStatuses:g,listProps:p}=b(),m=(0,c.useCallback)(e=>{i(e)},[i]),f=(0,a.jsxs)("div",{className:"min-w-[220px] space-y-3 p-2",children:[(0,a.jsx)(r.E_O.Group,{value:n,onChange:m,className:"flex flex-col gap-2",children:g.map(e=>(0,a.jsx)(r.E_O,{value:e,children:q(e)},e))}),(0,a.jsx)(r.E_O,{checked:s,onChange:e=>o(e.target.checked),className:"mb-2",children:"Show dismissed tasks"}),(0,a.jsxs)(r.vyj,{children:[(0,a.jsx)(r.wpx,{size:"small",onClick:l,children:"Default"}),(0,a.jsx)(r.wpx,{size:"small",onClick:d,children:"Clear"})]})]});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(r.jqI,{justify:"space-between",align:"center",className:"mb-4",children:[(0,a.jsx)("div",{className:"min-w-[300px]",children:(0,a.jsx)(u.f,{value:null!=e?e:"",onChange:t,placeholder:"Search by monitor name..."})}),(0,a.jsx)(r.bPF,{content:f,trigger:"click",placement:"bottomRight",children:(0,a.jsx)(r.wpx,{className:"flex items-center gap-2",children:"Filter"})})]}),(0,a.jsx)(r.krs,{...p,renderItem:e=>(0,a.jsx)(r.krs.Item,{children:(0,a.jsx)(D,{task:e})})})]})},z=e=>{let{isConfigLoading:t}=e;return(0,a.jsx)(g.Z,{title:"Action center",mainProps:{className:"h-full"},children:(0,a.jsx)(r.jqI,{justify:"center",align:"center",className:"h-full",children:t?(0,a.jsx)(r.$jN,{color:"primary.900"}):(0,a.jsx)(r.DUx,{message:"Coming soon...",description:"Action center is currently disabled.",type:"info",showIcon:!0})})})},O=()=>(0,a.jsx)(r.oj8,{image:r.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up! Set up an integration monitor to track your infrastructure in greater detail.",children:(0,a.jsx)(l(),{href:p.KH,passHref:!0,legacyBehavior:!0,children:(0,a.jsx)(r.wpx,{type:"primary",children:"Visit integrations"})})});var U=n(14908);(i=s||(s={})).ATTENTION_REQUIRED="attention-required",i.IN_PROGRESS="in-progress";var G=()=>{let{flags:e}=(0,d.hz)(),t=!!e.alphaFullActionCenter,n=(0,c.useMemo)(()=>t?Object.values(s):["attention-required"],[t]),{activeTab:i,onTabChange:a}=(0,U.Z)({tabKeys:n});return{tabs:(0,c.useMemo)(()=>{let e=[{label:"Attention required",hash:"attention-required"}];return t&&e.push({label:"Activity",hash:"in-progress"}),e},[t]),activeTab:i,onTabChange:a}},F=n(39449),B=n(54762);let{Text:L}=r.AntTypography,W=e=>{let{monitorSummary:t,showSkeleton:n,href:i,...s}=e,{name:o,consent_status:u,total_updates:d,updates:g,last_monitored:p,secrets:m,key:f,connection_type:h}=t,x=(0,c.useMemo)(()=>(null==m?void 0:m.url)?(0,y.ge)(m.url):void 0,[null==m?void 0:m.url]),v=(0,c.useMemo)(()=>x?(0,y.tl)(x,60):void 0,[x]),j=Object.entries(g).map(e=>"".concat(e[1]," ").concat(e[0],"s")).join(", "),b=p?(0,y.p6)(new Date(p)):void 0,k=p?T(new Date(p),new Date,{addSuffix:!0}):void 0;return(0,a.jsx)(r.krs.Item,{"data-testid":"monitor-result-".concat(f),...s,children:(0,a.jsx)(r.N_L,{avatar:!0,title:!1,loading:n,active:!0,children:(0,a.jsxs)(r.bue,{gutter:12,className:"w-full",children:[(0,a.jsx)(r.JGx,{span:17,className:"align-middle",children:(0,a.jsx)(r.krs.Item.Meta,{avatar:(0,a.jsx)(r.t3Z,{src:v,size:30,icon:(0,a.jsx)(r.PJP.huD,{size:30}),style:{backgroundColor:"transparent",color:"var(--ant-color-text)"},alt:"".concat(x," icon")}),title:(0,a.jsxs)(r.jqI,{align:"center",gap:4,children:[(0,a.jsx)(l(),{href:i,className:"whitespace-nowrap",children:"".concat(d," assets detected").concat(x?" on ".concat(x):"")}),(0,a.jsx)(B.l,{consentStatus:u}),h===F.Rj.TEST_WEBSITE&&(0,a.jsx)(r.j8w,{color:"nectar",style:{fontWeight:"normal"},children:"test monitor"})]}),description:"".concat(j," detected.")})}),(0,a.jsx)(r.JGx,{span:4,className:"flex items-center justify-end",children:(0,a.jsx)(L,{ellipsis:{tooltip:o},children:o})}),(0,a.jsx)(r.JGx,{span:3,className:"flex items-center justify-end",children:!!k&&(0,a.jsx)(L,{"data-testid":"monitor-date",ellipsis:{tooltip:b},children:k})})]})})})},J=(e,t,n)=>e&&t!==F.Rj.TEST_WEBSITE&&e&&t!==F.Rj.WEBSITE?"".concat(p.vi,"/").concat(n,"/data-explorer"):"".concat(p.vi,"/").concat(n);var Z=()=>{var e,t;let n=(0,r.pmc)(),{tabs:i,activeTab:o,onTabChange:p}=G(),{flags:y}=(0,d.hz)(),{PAGE_SIZES:v,pageSize:j,setPageSize:b,onPreviousPageClick:k,isPreviousPageDisabled:C,onNextPageClick:_,isNextPageDisabled:w,startRange:E,endRange:S,pageIndex:N,setTotalPages:T,resetPageIndexToDefault:P}=(0,f.oi)(),[I,R]=(0,c.useState)(""),{data:M,isLoading:D}=(0,h.tB)({api_set:!1}),q=!!(null==M?void 0:null===(e=M.detection_discovery)||void 0===e?void 0:e.website_monitor_enabled);(0,c.useEffect)(()=>{P()},[I,P]);let{data:U,isError:F,isLoading:B,isFetching:L}=(0,x.Ud)({page:N,size:j,search:I},{skip:D||!q});(0,c.useEffect)(()=>{F&&n&&q&&n({title:"Error fetching data",description:"Please try again later",status:"error"})},[F,n,q]),(0,c.useEffect)(()=>{if(U){var e;T(null!==(e=U.total)&&void 0!==e?e:1)}},[U,T]);let Z=(null==U?void 0:null===(t=U.items)||void 0===t?void 0:t.flatMap(e=>e.key&&void 0!==e.key?[e]:[]))||[],K=L?Array.from({length:j},(e,t)=>({key:t.toString(),updates:[],last_monitored:null})):[],H=(0,c.useCallback)((e,t)=>[(0,a.jsx)(l(),{href:null!=t?t:"",passHref:!0,legacyBehavior:!0,children:(0,a.jsx)(r.wpx,{type:"link",className:"p-0","data-testid":"review-button-".concat(e),children:"Review"})},"review")],[]);return q?(0,a.jsxs)(g.Z,{title:"Action center",children:[(0,a.jsx)(m.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity"}]}),(0,a.jsx)(r.Niu,{"aria-label":"Action center tabs",mode:"horizontal",items:i.map(e=>({key:e.hash,label:e.label})),selectedKeys:[o],onClick:async e=>{let t=Object.values(s).find(t=>t===e.key);t&&await p(t)},className:"mb-4","data-testid":"action-center-tabs"}),o===s.IN_PROGRESS?(0,a.jsx)(A,{}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.jqI,{className:"justify-between py-6",children:(0,a.jsx)(u.f,{value:I,onChange:R})}),(0,a.jsx)(r.krs,{loading:B,dataSource:Z||K,locale:{emptyText:(0,a.jsx)(O,{})},renderItem:e=>{let t=e.key?J(y.alphaFullActionCenter,e.connection_type,e.key):"";return!!(null==e?void 0:e.key)&&(0,a.jsx)(W,{showSkeleton:L,monitorSummary:e,href:t,actions:H(e.key,t)},e.key)}}),!!Z&&!!(null==U?void 0:U.total)&&U.total>j&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.htM,{className:"mb-6 mt-0"}),(0,a.jsx)(f.s8,{totalRows:(null==U?void 0:U.total)||0,pageSizes:v,setPageSize:b,onPreviousPageClick:k,isPreviousPageDisabled:C||L,onNextPageClick:_,isNextPageDisabled:w||L,startRange:E,endRange:S})]})]})]}):(0,a.jsx)(z,{isConfigLoading:D})}}},function(e){e.O(0,[431,7245,9070,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-70ca690b253a118e.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7477],{45550:function(e,s,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/activity",function(){return a(3680)}])},91761:function(e,s,a){"use strict";var t=a(24246),i=a(20595),r=a(812),n=a(17245),o=a(7940),l=a(98559),c=a(39449),d=a(79494),u=a(70675);s.Z=e=>{let{resource:s}=e,[a,{isLoading:g}]=(0,u.v8)(),[I,{isLoading:x}]=(0,u.cM)(),[L,{isLoading:A}]=(0,u.vi)(),C=x||A||g,{diff_status:j,child_diff_statuses:f,top_level_field_name:h}=s,{successAlert:_,errorAlert:S}=(0,n.VY)(),T=j===c.LL.CLASSIFICATION_ADDITION||j===c.LL.CLASSIFICATION_UPDATE,m=f&&(f[c.LL.CLASSIFICATION_ADDITION]||f[c.LL.CLASSIFICATION_UPDATE]),D=(T||m)&&!h,N=T||m,v=(0,o.G)(s)!==c.D$.FIELD,p=D&&N&&v,y=async()=>{let e=await I({staged_resource_urn:s.urn});(0,r.D4)(e)?S((0,r.e$)(e.error),"Failed to promote resource"):_('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},w=async()=>{let e=await L({staged_resource_urn:s.urn});(0,r.D4)(e)?S((0,r.e$)(e.error),"Failed to mute resource"):_("Ignored changes will not be added to a Fides dataset.","".concat(s.name||"Changes"," ignored"))},F=async()=>{let e=await a({staged_resource_urn:s.urn,monitor_config_id:s.monitor_config_id,start_classification:!0,diff_statuses_to_classify:[c.LL.CLASSIFICATION_ADDITION,c.LL.CLASSIFICATION_UPDATE,c.LL.CLASSIFYING,c.LL.CLASSIFICATION_QUEUED]});(0,r.D4)(e)?S((0,r.e$)(e.error),"Failed to reclassify resource"):_("Reclassification of ".concat((0,l.Z)(s)||"the resource"," has begun. The results may take some time to appear in the “Data discovery“ tab."),"Reclassification started")};return(0,t.jsxs)(i.Ugi,{gap:2,children:[D&&(0,t.jsx)(d.Z,{title:"Confirm",icon:(0,t.jsx)(i.nQG,{}),onClick:y,disabled:C,loading:x}),N&&(0,t.jsx)(d.Z,{title:"Ignore",icon:(0,t.jsx)(i.tpL,{}),onClick:w,disabled:C,loading:A}),v&&!p&&(0,t.jsx)(d.Z,{title:"Reclassify",icon:(0,t.jsx)(i.nyI,{}),onClick:F,disabled:C,loading:g}),p&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.LZC,{}),(0,t.jsxs)(i.v2r,{children:[(0,t.jsx)(i.j2t,{as:i.wpx,size:"small",type:"text",icon:(0,t.jsx)(i.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-overflow-btn"}),(0,t.jsx)(i.qyq,{children:(0,t.jsx)(i.sNh,{onClick:F,icon:(0,t.jsx)(i.nyI,{}),"data-testid":"action-reclassify",children:"Reclassify"})})]})]})]})}},3680:function(e,s,a){"use strict";a.r(s),a.d(s,{default:function(){return O}});var t,i,r=a(24246),n=a(27378),o=a(35287),l=a(58754),c=a(47182),d=a(92222),u=a(59003),g=a(20595),I=a(47935),x=a(72625),L=a(70675),A=a(38347),C=a(87667),j=a(50169),f=a(80285),h=a(30952);(t=i||(i={})).DATASET="Dataset",t.CLASSIFICATION="Classification";var _=a(74241),S=a(28278),T=a(20449),m=e=>(0,T.Z)(e)===S.E.CLASSIFICATION?i.CLASSIFICATION:i.DATASET,D=a(54409),N=a(91761);let v={items:[],total:0,page:1,size:50,pages:1},p=()=>(0,r.jsx)(g.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,r.jsxs)(g.gCW,{children:[(0,r.jsx)(g.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,r.jsx)(g.xvT,{fontSize:"sm",children:"You're up to date!"})]})}),y=(0,d.Cl)();var w=e=>{let{onRowClick:s,statusFilters:a,childsStatusFilters:t}=e,[o,l]=(0,n.useState)(""),{PAGE_SIZES:c,pageSize:S,setPageSize:T,onPreviousPageClick:w,isPreviousPageDisabled:F,onNextPageClick:O,isNextPageDisabled:R,startRange:E,endRange:b,pageIndex:P,setTotalPages:Z}=(0,I.oi)(),{isFetching:k,isLoading:V,data:M}=(0,L.z8)({diff_status:a,child_diff_status:t,page:P,size:S,search:o}),{items:U,total:z,pages:G}=(0,n.useMemo)(()=>null!=M?M:v,[M]);(0,n.useEffect)(()=>{Z(G)},[G,Z]);let W=(0,n.useMemo)(()=>[y.accessor(e=>e.name,{id:"name",cell:e=>(0,r.jsx)(C.Z,{result:e.row.original}),header:e=>(0,r.jsx)(I.Rr,{value:"Name",...e})}),y.accessor(e=>e.urn,{id:"project",cell:e=>(0,r.jsx)(I.G3,{value:(0,_.Z)(e.getValue())}),header:e=>(0,r.jsx)(I.Rr,{value:"Project",...e})}),y.display({id:"status",cell:e=>(0,r.jsx)(j.Z,{result:e.row.original}),header:e=>(0,r.jsx)(I.Rr,{value:"Status",...e})}),y.accessor(e=>e.system,{id:"system",cell:e=>(0,r.jsx)(I.G3,{value:e.getValue()}),header:e=>(0,r.jsx)(I.Rr,{value:"System",...e})}),y.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,r.jsx)(I.G3,{value:e.getValue()}),header:e=>(0,r.jsx)(I.Rr,{value:"Detected by",...e})}),y.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,r.jsx)(x.Cy,{time:e.getValue()}),header:e=>(0,r.jsx)(I.Rr,{value:"When",...e})}),y.accessor(e=>e,{id:"action",cell:e=>m(e.getValue())===i.DATASET?(0,r.jsx)(D.Z,{resource:e.getValue()}):(0,r.jsx)(N.Z,{resource:e.getValue()}),header:e=>(0,r.jsx)(I.Rr,{value:"Action",...e})})],[]),$=(0,u.b7)({getCoreRowModel:(0,d.sC)(),getGroupedRowModel:(0,d.qe)(),getExpandedRowModel:(0,d.rV)(),getRowId:f.Z,columns:W,manualPagination:!0,data:U,columnResizeMode:"onChange"});return V?(0,r.jsx)(I.I4,{rowHeight:36,numRows:36}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(I.Q$,{children:(0,r.jsxs)(g.kCb,{gap:6,align:"center",children:[(0,r.jsx)(g.xuv,{flexShrink:0,children:(0,r.jsx)(h.f,{value:o,onChange:l})}),(0,r.jsx)(A.a,{})]})}),(0,r.jsx)(I.ZK,{tableInstance:$,onRowClick:s,emptyTableNotice:(0,r.jsx)(p,{})}),(0,r.jsx)(I.s8,{totalRows:z||0,pageSizes:c,setPageSize:T,onPreviousPageClick:w,isPreviousPageDisabled:F||k,onNextPageClick:O,isNextPageDisabled:R||k,startRange:E,endRange:b})]})},F=a(39449),O=()=>{let{navigateToDetectionResults:e,navigateToDiscoveryResults:s}=(0,c.Z)();return(0,r.jsxs)(o.Z,{title:"Data discovery",children:[(0,r.jsx)(l.Z,{heading:"All activity"}),(0,r.jsx)(w,{onRowClick:a=>{if(m(a)===i.DATASET){e({resourceUrn:a.urn});return}s({resourceUrn:a.urn})},statusFilters:[F.LL.ADDITION,F.LL.REMOVAL,F.LL.CLASSIFICATION_ADDITION,F.LL.CLASSIFICATION_UPDATE],childsStatusFilters:[F.LL.ADDITION,F.LL.REMOVAL,F.LL.CLASSIFICATION_ADDITION,F.LL.CLASSIFICATION_UPDATE]})]})}}},function(e){e.O(0,[431,7245,4817,6315,2888,9774,179],function(){return e(e.s=45550)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5744],{24354:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/detection/[resourceUrn]",function(){return r(42705)}])},42705:function(e,n,r){"use strict";r.r(n);var t=r(24246);r(27378);var c=r(35287),i=r(77830),u=r(58754),s=r(69828),o=r(47182),a=r(1039);n.default=()=>{let{resourceUrn:e,navigateToDetectionResults:n}=(0,o.Z)();return(0,t.jsxs)(c.Z,{title:"Data detection",children:[(0,t.jsx)(u.Z,{heading:"Data detection",children:(0,t.jsx)(s.Z,{parentLink:i.XY,resourceUrn:e,onPathClick:e=>n({resourceUrn:e})})}),(0,t.jsx)(a.Z,{resourceUrn:e})]})}}},function(e){e.O(0,[431,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5744],{24354:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/detection/[resourceUrn]",function(){return r(42705)}])},42705:function(e,n,r){"use strict";r.r(n);var t=r(24246);r(27378);var c=r(35287),i=r(77830),u=r(58754),s=r(69828),o=r(47182),a=r(1039);n.default=()=>{let{resourceUrn:e,navigateToDetectionResults:n}=(0,o.Z)();return(0,t.jsxs)(c.Z,{title:"Data detection",children:[(0,t.jsx)(u.Z,{heading:"Data detection",children:(0,t.jsx)(s.Z,{parentLink:i.XY,resourceUrn:e,onPathClick:e=>n({resourceUrn:e})})}),(0,t.jsx)(a.Z,{resourceUrn:e})]})}}},function(e){e.O(0,[431,7245,4817,6315,2397,2888,9774,179],function(){return e(e.s=24354)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3453],{35041:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/detection",function(){return e(82660)}])},82660:function(n,t,e){"use strict";e.r(t);var i=e(24246);e(27378);var c=e(35287),a=e(77830),s=e(58754),u=e(69828),r=e(1039);t.default=()=>(0,i.jsxs)(c.Z,{title:"Data detection",children:[(0,i.jsx)(s.Z,{heading:"Data detection",children:(0,i.jsx)(u.Z,{parentLink:a.XY})}),(0,i.jsx)(r.Z,{})]})}},function(n){n.O(0,[431,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3453],{35041:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/detection",function(){return e(82660)}])},82660:function(n,t,e){"use strict";e.r(t);var i=e(24246);e(27378);var c=e(35287),a=e(77830),s=e(58754),u=e(69828),r=e(1039);t.default=()=>(0,i.jsxs)(c.Z,{title:"Data detection",children:[(0,i.jsx)(s.Z,{heading:"Data detection",children:(0,i.jsx)(u.Z,{parentLink:a.XY})}),(0,i.jsx)(r.Z,{})]})}},function(n){n.O(0,[431,7245,4817,6315,2397,2888,9774,179],function(){return n(n.s=35041)}),_N_E=n.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1571],{11207:function(r,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/discovery/[resourceUrn]",function(){return n(55124)}])},55124:function(r,e,n){"use strict";n.r(e);var s=n(24246);n(27378);var c=n(35287),t=n(77830),i=n(58754),u=n(69828),o=n(47182),a=n(11904);e.default=()=>{let{resourceUrn:r,navigateToDiscoveryResults:e}=(0,o.Z)();return(0,s.jsxs)(c.Z,{title:"Data discovery",children:[(0,s.jsx)(i.Z,{heading:"Data discovery",children:(0,s.jsx)(u.Z,{parentLink:t.zE,resourceUrn:r,onPathClick:r=>e({resourceUrn:r})})}),(0,s.jsx)(a.Z,{resourceUrn:r})]})}}},function(r){r.O(0,[8765,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1571],{11207:function(r,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/discovery/[resourceUrn]",function(){return n(55124)}])},55124:function(r,e,n){"use strict";n.r(e);var s=n(24246);n(27378);var c=n(35287),t=n(77830),i=n(58754),u=n(69828),o=n(47182),a=n(11904);e.default=()=>{let{resourceUrn:r,navigateToDiscoveryResults:e}=(0,o.Z)();return(0,s.jsxs)(c.Z,{title:"Data discovery",children:[(0,s.jsx)(i.Z,{heading:"Data discovery",children:(0,s.jsx)(u.Z,{parentLink:t.zE,resourceUrn:r,onPathClick:r=>e({resourceUrn:r})})}),(0,s.jsx)(a.Z,{resourceUrn:r})]})}}},function(r){r.O(0,[431,8765,9278,5163,7245,4817,1099,9046,2888,9774,179],function(){return r(r.s=11207)}),_N_E=r.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2320],{48570:function(n,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/discovery",function(){return i(49730)}])},49730:function(n,e,i){"use strict";i.r(e);var s=i(24246);i(27378);var t=i(35287),r=i(77830),c=i(58754),a=i(69828),u=i(11904);e.default=()=>(0,s.jsxs)(t.Z,{title:"Data discovery",children:[(0,s.jsx)(c.Z,{heading:"Data discovery",children:(0,s.jsx)(a.Z,{parentLink:r.zE})}),(0,s.jsx)(u.Z,{})]})}},function(n){n.O(0,[8765,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2320],{48570:function(n,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/discovery",function(){return i(49730)}])},49730:function(n,e,i){"use strict";i.r(e);var s=i(24246);i(27378);var t=i(35287),r=i(77830),c=i(58754),a=i(69828),u=i(11904);e.default=()=>(0,s.jsxs)(t.Z,{title:"Data discovery",children:[(0,s.jsx)(c.Z,{heading:"Data discovery",children:(0,s.jsx)(a.Z,{parentLink:r.zE})}),(0,s.jsx)(u.Z,{})]})}},function(n){n.O(0,[431,8765,9278,5163,7245,4817,1099,9046,2888,9774,179],function(){return n(n.s=48570)}),_N_E=n.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9738],{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),s=n(20595),r=n(88038),l=n.n(r),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)(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(c.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."," "]})]})})},x=e=>{let{children:t,title:n,padded:r=!0,mainProps:c}=e,x=(0,o.hz)(),h=(0,a.useRouter)(),f="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,m=!(x.flags.messagingConfiguration&&f),{data:p}=(0,u.JE)(void 0,{skip:m}),{data:y}=(0,d.PW)(void 0,{skip:m}),j=x.flags.messagingConfiguration&&(!p||!y)&&f;return(0,i.jsxs)(s.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)(s.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[j?(0,i.jsx)(g,{}):null,t]})]})}},99811:function(e,t,n){"use strict";n.d(t,{m:function(){return s}});var i=n(27378);class s{updateTableInstance(e){this.tableInstance=e}constructor(e=null){this.tableInstance=e,this.updateTableInstance=this.updateTableInstance.bind(this)}}let r=i.createContext(new s);t.Z=r},42478:function(e,t,n){"use strict";n.d(t,{FU:function(){return d},JE:function(){return s},Ki:function(){return c},SU:function(){return g},W:function(){return x},h9:function(){return r},jc:function(){return i},qt:function(){return o},sn:function(){return u}});let{useGetEmailInviteStatusQuery:i,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:r,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 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"]})})})},18839:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return U}});var i=n(24246),s=n(27378),r=n(45938),l=n(77213),a=n(58754),o=n(20595),d=n(65218),u=n.n(d),c=n(16134),g=n(35258),x=n(92222),h=n(59003),f=n(30002),m=n(28079),p=n(49600),y=n(99811);let j=e=>{var t;let{column:n}=e,{tableInstance:i}=(0,s.useContext)(y.Z),r=s.useMemo(()=>Array.from(n.getFacetedUniqueValues().keys()),[n]),l=s.useMemo(()=>{let e={};return r.forEach(t=>{e[t]=!1}),e},[r]);return{filterValue:null!==(t=n.getFilterValue())&&void 0!==t?t:l,clearFilterOptions:()=>{let e={};r.forEach(t=>{e[t]=!1}),n.setFilterValue(e)},toggleFilterOption:(e,t)=>{var s;let r={...null!==(s=n.getFilterValue())&&void 0!==s?s:l,[e]:t};Object.values(r).every(e=>!e)?null==i||i.setColumnFilters(null==i?void 0:i.getState().columnFilters.filter(e=>e.id!==n.id)):n.setFilterValue(r)},options:r,header:n.columnDef.header}};var v=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,s.useContext)(y.Z),n=(0,c.C)(p.eo),{data:i,isLoading:r}=(0,p.Ex)({organizationName:"default_organization"});(0,v.MO)(),(0,m.fd)(),(0,f.te)();let l=(0,s.useRef)(!1);(0,s.useEffect)(()=>{if(i){let{columns:t,rows:n}=i;e((0,p.dd)(t)),l.current||(l.current=!0,0===n.length?e((0,p.ym)(!0)):e((0,p.ym)(!1)))}},[i,e]);let a=(0,s.useMemo)(()=>i?i.rows:[],[i]),o=(0,s.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,s.useEffect)(()=>t(d),[d,t]),{...d,isLoading:r}};var k=n(83766),M=n.n(k),S=n(25980),T=n(46238),F=n(47935),q=n(22968);let E=e=>{var t,n,s;let{option:r,columnId:l,filterValue:a,toggleFilterOption:d}=e,u=(0,c.C)(v.L5),g=l===q.Ux&&null!==(n=null===(t=u.get(r))||void 0===t?void 0:t.name)&&void 0!==n?n:r;return(0,i.jsx)(o.XZJ,{value:r,width:"193px",height:"20px",mb:"25px",isChecked:null!==(s=a[r])&&void 0!==s&&s,onChange:e=>{let{target:t}=e;d(r,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})},r)};var I=e=>{let{column:t}=e,{filterValue:n,toggleFilterOption:r,options:l}=j({column:t}),[a,d]=(0,s.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)(E,{columnId:t.id,option:e,filterValue:n,toggleFilterOption:r},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:r}=e,{tableInstance:l}=(0,s.useContext)(y.Z),a=null==l?void 0:l.getHeaderGroups(),d=(e,t)=>e.filter(e=>e.id===t).map(e=>(0,i.jsx)(I,{column:e.column},t)),u=(0,s.useMemo)(()=>(null==a?void 0:a[0].headers)||[],[a]);return(0,i.jsxs)(o.u_l,{isOpen:n,onClose:r,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=[q.vy,q.Ux,q.OL],u.some(e=>t.indexOf(e.id)>-1))?(0,i.jsxs)(O,{heading:"Privacy attributes",children:[d(u,q.vy),d(u,q.Ux),d(u,q.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:r,type:"primary",className:"grow",children:"Done"})]})})]})]})};let _=()=>{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}=_(),{tableInstance:r}=(0,s.useContext)(y.Z),{systemsCount:l,dictionaryService:a}=(0,S.hz)(),d=null==r?void 0:r.getRowModel(),u=(0,s.useMemo)(()=>{let e=(null==d?void 0:d.rows)||[];return M()(null==e?void 0:e.map(e=>e.original["system.fides_key"]))},[d]);if(!r)return null;let c=u.length,g=r.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)(F.HO,{globalFilter:r.getState().globalFilter,setGlobalFilter:r.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)(T.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})]})},A=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 z=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,{})})}),V=()=>{let e=(0,c.C)(A.Xt),{attemptAction:t}=(0,r.oI)(),[n,i]=(0,s.useState)(),l=(0,s.useCallback)(e=>{t().then(t=>{t&&i(e)})},[t,i]),a=(0,s.useCallback)(()=>{t().then(e=>{e&&n&&i(void 0)})},[t,n]);return{isGettingStarted:e,selectedSystemId:n,setSelectedSystemId:l,resetSelectedSystemId:a}};var W=()=>{let{isGettingStarted:e,setSelectedSystemId:t,selectedSystemId:n,resetSelectedSystemId:s}=V(),{isLoading:r}=w();return r?(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)(z,{setSelectedSystemId:t,selectedSystemId:n})}),(0,i.jsx)(g.Z,{selectedSystemId:n,resetSelectedSystemId:s})]})]})},U=()=>{let e=(0,s.useMemo)(()=>new y.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)(y.Z.Provider,{value:e,children:[(0,i.jsx)(W,{}),(0,i.jsx)(r.eB,{})]})]})}}},function(e){e.O(0,[431,5163,255,7245,9899,5258,2888,9774,179],function(){return e(e.s=53910)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2096],{16383:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]/[collectionName]/[...subfieldNames]",function(){return t(26052)}])},26052:function(e,a,t){"use strict";t.r(a);var l=t(24246),s=t(92222),i=t(59003),o=t(20595),n=t(30454),d=t.n(n),r=t(47215),c=t.n(r),u=t(86677),m=t(27378),f=t(77213),h=t(77830),g=t(58754),p=t(47935),v=t(66112),x=t(69828),b=t(41966),j=t(76252),w=t(69435);let C=(0,s.Cl)(),R=()=>(0,l.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,l.jsx)(o.gCW,{children:(0,l.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No fields found."})})});a.default=()=>{let e=(0,u.useRouter)(),[a]=(0,b.TG)(),t=decodeURIComponent(e.query.datasetId),n=decodeURIComponent(e.query.collectionName),r=e.query.subfieldNames.map(decodeURIComponent),{isLoading:_,data:y}=(0,b.oM)(t),N=(0,m.useMemo)(()=>(null==y?void 0:y.collections)||[],[y]).find(e=>e.name===n),k=(0,m.useMemo)(()=>(null==N?void 0:N.fields)||[],[N]),M=(0,m.useMemo)(()=>{let e=k;return r.forEach(a=>{let t=e.find(e=>e.name===a);e=(null==t?void 0:t.fields)||[]}),e},[k,r]),[I,T]=(0,m.useState)(),E=(0,m.useCallback)(e=>{let{dataCategory:t,field:l}=e,s=l.data_categories||[],i=(0,w.Fk)({dataset:y,collectionName:n,subfields:[...r,l.name]}),o=d()(y);c()(o,"".concat(i,".data_categories"),[...s,t]),a(o)},[y,a,n,r]),q=(0,m.useCallback)(e=>{let{dataCategory:t,field:l}=e,s=l.data_categories||[],i=(0,w.Fk)({dataset:y,collectionName:n,subfields:[...r,null==l?void 0:l.name]}),o=d()(y);c()(o,"".concat(i,".data_categories"),s.filter(e=>e!==t)),a(o)},[y,a,n,r]),z=(0,m.useCallback)(a=>{let l=[...r.map(encodeURIComponent),a.name];e.push({pathname:h.y1,query:{datasetId:t,collectionName:n,subfieldNames:l}})},[t,e,n,r]),F=(0,m.useMemo)(()=>[C.accessor(e=>e.name,{id:"name",cell:e=>{var a;let t=e.row.original.fields&&(null===(a=e.row.original.fields)||void 0===a?void 0:a.length)>0;return(0,l.jsx)(p.G3,{fontWeight:t?"semibold":"normal",value:e.getValue()})},header:e=>(0,l.jsx)(p.Rr,{value:"Field Name",...e}),size:180}),C.accessor(e=>{var a;return null===(a=e.fides_meta)||void 0===a?void 0:a.data_type},{id:"type",cell:e=>e.getValue()?(0,l.jsx)(p.A4,{value:e.getValue()}):(0,l.jsx)(p.G3,{value:void 0}),header:e=>(0,l.jsx)(p.Rr,{value:"Type",...e}),size:80}),C.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(p.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(p.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),C.accessor(e=>e.data_categories,{id:"data_categories",cell:e=>{var a;let t=e.row.original;return!(e.row.original.fields&&(null===(a=e.row.original.fields)||void 0===a?void 0:a.length)>0)&&(0,l.jsx)(v.Z,{selectedTaxonomies:e.getValue()||[],onAddTaxonomy:e=>E({dataCategory:e,field:t}),onRemoveTaxonomy:e=>q({dataCategory:e,field:t})})},header:e=>(0,l.jsx)(p.Rr,{value:"Data categories",...e}),size:300,meta:{disableRowClick:!0}}),C.display({id:"actions",header:"Actions",cell:e=>{let{row:a}=e,t=a.original;return(0,l.jsx)(o.Ugi,{spacing:0,"data-testid":"field-".concat(t.name),children:(0,l.jsx)(o.wpx,{size:"small",icon:(0,l.jsx)(o.dY8,{}),onClick:()=>{W(t),G(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[E,q]),S=(0,m.useMemo)(()=>I?M.filter(e=>e.name.toLowerCase().includes(I.toLowerCase())):M,[M,I]),U=(0,i.b7)({getCoreRowModel:(0,s.sC)(),getFilteredRowModel:(0,s.vL)(),getSortedRowModel:(0,s.tj)(),columns:F,data:S,columnResizeMode:"onChange"}),[A,G]=(0,m.useState)(!1),[V,W]=(0,m.useState)(),Z=(0,m.useMemo)(()=>{let e=[{title:"All datasets",href:h.$m},{title:t,href:{pathname:h.o5,query:{datasetId:t}},icon:x.Y[1]},{title:n,icon:x.Y[2],href:{pathname:h.RF,query:{datasetId:t,collectionName:n}}}];return r.forEach((a,l)=>{e.push({title:a,href:l<r.length-1?{pathname:h.y1,query:{datasetId:t,collectionName:n,subfieldNames:r.slice(0,l+1).map(encodeURIComponent)}}:void 0,icon:x.Y[3]})}),e},[t,n,r]);return(0,l.jsxs)(f.Z,{title:"Dataset - ".concat(t),children:[(0,l.jsx)(g.Z,{heading:"Datasets",breadcrumbItems:Z}),_?(0,l.jsx)(p.I4,{rowHeight:36,numRows:15}):(0,l.jsxs)(o.xuv,{"data-testid":"fields-table",children:[(0,l.jsx)(p.Q$,{children:(0,l.jsx)(p.HO,{globalFilter:I,setGlobalFilter:T,placeholder:"Search",testid:"fields-search"})}),(0,l.jsx)(p.ZK,{tableInstance:U,emptyTableNotice:(0,l.jsx)(R,{}),onRowClick:z,getRowIsClickable:e=>{var a;return!!(e.fields&&(null===(a=e.fields)||void 0===a?void 0:a.length)>0)}}),(0,l.jsx)(j.Z,{isOpen:A,onClose:()=>{G(!1),W(void 0)},field:V,dataset:y,collectionName:n,subfields:r})]})]})}}},function(e){e.O(0,[8765,9278,5163,699,3772,7488,549,2888,9774,179],function(){return e(e.s=16383)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6556],{59972:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]/[collectionName]",function(){return a(47355)}])},47355:function(e,t,a){"use strict";a.r(t);var l=a(24246),i=a(92222),o=a(59003),s=a(20595),n=a(86677),d=a(27378),r=a(77213),c=a(77830),u=a(58754),m=a(47935),g=a(66112),f=a(69828),x=a(41966),h=a(76252),v=a(69435);let p=(0,i.Cl)(),j=()=>(0,l.jsx)(s.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,l.jsx)(s.gCW,{children:(0,l.jsx)(s.xvT,{fontSize:"md",fontWeight:"600",children:"No fields found."})})});t.default=()=>{let e=(0,n.useRouter)(),[t]=(0,x.TG)(),a=decodeURIComponent(e.query.datasetId),w=decodeURIComponent(e.query.collectionName),{isLoading:C,data:_}=(0,x.oM)(a),R=(0,d.useMemo)(()=>(null==_?void 0:_.collections)||[],[_]),b=R.find(e=>e.name===w),N=(0,d.useMemo)(()=>(null==b?void 0:b.fields)||[],[b]),[k,y]=(0,d.useState)(),I=(0,d.useCallback)(e=>{let{dataCategory:a,field:l}=e,i=l.data_categories||[],o={...l,data_categories:[...i,a]},s=R.indexOf(b),n=b.fields.indexOf(l);t((0,v._n)(_,o,s,n))},[b,R,_,t]),M=(0,d.useCallback)(e=>{var a;let{dataCategory:l,field:i}=e,o={...i,data_categories:null===(a=i.data_categories)||void 0===a?void 0:a.filter(e=>e!==l)},s=R.indexOf(b),n=b.fields.indexOf(i);t((0,v._n)(_,o,s,n))},[b,R,_,t]),T=(0,d.useCallback)(t=>{e.push({pathname:c.y1,query:{datasetId:encodeURIComponent(a),collectionName:encodeURIComponent(w),subfieldNames:encodeURIComponent(t.name)}})},[a,e,w]),O=(0,d.useMemo)(()=>[p.accessor(e=>e.name,{id:"name",cell:e=>{var t;let a=e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0;return(0,l.jsx)(m.G3,{fontWeight:a?"semibold":"normal",value:e.getValue()})},header:e=>(0,l.jsx)(m.Rr,{value:"Field Name",...e}),size:180}),p.accessor(e=>{var t;return null===(t=e.fides_meta)||void 0===t?void 0:t.data_type},{id:"type",cell:e=>e.getValue()?(0,l.jsx)(m.A4,{value:e.getValue()}):(0,l.jsx)(m.G3,{value:void 0}),header:e=>(0,l.jsx)(m.Rr,{value:"Type",...e}),size:80}),p.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(m.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(m.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),p.accessor(e=>e.data_categories,{id:"data_categories",cell:e=>{var t;let a=e.row.original;return!(e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0)&&(0,l.jsx)(g.Z,{selectedTaxonomies:e.getValue()||[],onAddTaxonomy:e=>I({dataCategory:e,field:a}),onRemoveTaxonomy:e=>M({dataCategory:e,field:a})})},header:e=>(0,l.jsx)(m.Rr,{value:"Data categories",...e}),size:300,meta:{disableRowClick:!0}}),p.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,a=t.original;return(0,l.jsx)(s.Ugi,{spacing:0,"data-testid":"field-".concat(a.name),children:(0,l.jsx)(s.wpx,{size:"small",icon:(0,l.jsx)(s.dY8,{}),onClick:()=>{G(a),U(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[I,M]),z=(0,d.useMemo)(()=>k?N.filter(e=>e.name.toLowerCase().includes(k.toLowerCase())):N,[N,k]),S=(0,o.b7)({getCoreRowModel:(0,i.sC)(),getFilteredRowModel:(0,i.vL)(),getSortedRowModel:(0,i.tj)(),columns:O,data:z,columnResizeMode:"onChange"}),[E,U]=(0,d.useState)(!1),[A,G]=(0,d.useState)(),V=(0,d.useMemo)(()=>[{title:"All datasets",href:c.$m},{title:a,href:{pathname:c.o5,query:{datasetId:a}},icon:f.Y[1]},{title:w,icon:f.Y[2]}],[a,w]);return(0,l.jsxs)(r.Z,{title:"Dataset - ".concat(a),children:[(0,l.jsx)(u.Z,{heading:"Datasets",breadcrumbItems:V}),C?(0,l.jsx)(m.I4,{rowHeight:36,numRows:15}):(0,l.jsxs)(s.xuv,{"data-testid":"fields-table",children:[(0,l.jsx)(m.Q$,{children:(0,l.jsx)(m.HO,{globalFilter:k,setGlobalFilter:y,placeholder:"Search",testid:"fields-search"})}),(0,l.jsx)(m.ZK,{tableInstance:S,emptyTableNotice:(0,l.jsx)(j,{}),onRowClick:T,getRowIsClickable:e=>{var t;return!!(e.fields&&(null===(t=e.fields)||void 0===t?void 0:t.length)>0)}}),(0,l.jsx)(h.Z,{isOpen:E,onClose:()=>{U(!1),G(void 0)},field:A,dataset:_,collectionName:w})]})]})}}},function(e){e.O(0,[8765,9278,5163,699,3772,7488,549,2888,9774,179],function(){return e(e.s=59972)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9340],{33187:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]",function(){return o(1016)}])},1016:function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return y}});var l=o(24246),n=o(92222),s=o(59003),i=o(20595),a=o(86677),c=o(27378),d=o(77213),r=o(77830),u=o(58754),m=o(47935),h=o(69828),x=o(41966),p=o(46628),j=o(79806),f=o(20386),C=o(63927),g=o(69435),w=e=>{let{dataset:t,collection:o,isOpen:n,onClose:s}=e,a=(0,c.useMemo)(()=>null==t?void 0:t.collections.indexOf(o),[]),[d]=(0,f.TG)(),r=(0,i.pmc)(),{isOpen:u,onOpen:m,onClose:h}=(0,i.qY0)(),x=async e=>{let l={...o,...e},n=(0,g.jC)(t,l,a);try{await d(n),r((0,p.t5)("Successfully modified collection"))}catch(e){r((0,p.Vo)(e))}s()},w=async()=>{if(t&&void 0!==a){let e=(0,g.qe)(t,a);try{await d(e),r((0,p.t5)("Successfully deleted collection"))}catch(e){r((0,p.Vo)(e))}s(),h()}};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(j.ZP,{isOpen:n,onClose:s,description:"Collections are an array of objects that describe the Dataset's collections. Provide additional context to this collection by filling out the fields below.",header:(0,l.jsx)(j.zR,{title:"Collection Name: ".concat(null==o?void 0:o.name)}),footer:(0,l.jsx)(j.Gn,{onClose:s,onDelete:m,formId:C.e}),children:(0,l.jsx)(C.Z,{values:o,onSubmit:x,dataType:"collection",showDataCategories:!1})}),(0,l.jsx)(i.cVQ,{isOpen:u,onClose:h,onConfirm:w,title:"Delete Collection",message:(0,l.jsxs)(i.xvT,{children:["You are about to permanently delete the collection named"," ",(0,l.jsx)(i.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==o?void 0:o.name})," ","from this dataset. Are you sure you would like to continue?"]})})]})};let b=(0,n.Cl)(),v=()=>(0,l.jsx)(i.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,l.jsx)(i.gCW,{children:(0,l.jsx)(i.xvT,{fontSize:"md",fontWeight:"600",children:"No collections found."})})});var y=()=>{let e=(0,a.useRouter)(),t=decodeURIComponent(e.query.datasetId),{isLoading:o,data:p}=(0,x.oM)(t),j=(0,c.useMemo)(()=>(null==p?void 0:p.collections)||[],[p]),[f,C]=(0,c.useState)(!1),[g,y]=(0,c.useState)(),[R,_]=(0,c.useState)(),M=(0,c.useMemo)(()=>[b.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(m.G3,{value:e.getValue(),fontWeight:"semibold"}),header:e=>(0,l.jsx)(m.Rr,{value:"Collection Name",...e}),size:180}),b.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(m.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(m.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),b.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,o=t.original;return(0,l.jsx)(i.Ugi,{spacing:0,"data-testid":"collection-".concat(o.name),children:(0,l.jsx)(i.wpx,{size:"small",icon:(0,l.jsx)(i.dY8,{}),onClick:()=>{y(o),C(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[]),I=(0,c.useMemo)(()=>R?j.filter(e=>e.name.toLowerCase().includes(R.toLowerCase())):j,[j,R]),N=(0,s.b7)({getCoreRowModel:(0,n.sC)(),getFilteredRowModel:(0,n.vL)(),getSortedRowModel:(0,n.tj)(),columns:M,data:I,columnResizeMode:"onChange"}),S=(0,c.useMemo)(()=>[{title:"All datasets",href:r.$m},{title:t,icon:h.Y[1]}],[t]);return(0,l.jsxs)(d.Z,{title:"Dataset - ".concat(t),children:[(0,l.jsx)(u.Z,{heading:"Datasets",breadcrumbItems:S}),o?(0,l.jsx)(m.I4,{rowHeight:36,numRows:15}):(0,l.jsxs)(i.xuv,{"data-testid":"collections-table",children:[(0,l.jsx)(m.Q$,{children:(0,l.jsx)(m.HO,{globalFilter:R,setGlobalFilter:_,placeholder:"Search",testid:"collections-search"})}),(0,l.jsx)(m.ZK,{tableInstance:N,emptyTableNotice:(0,l.jsx)(v,{}),onRowClick:o=>{e.push({pathname:r.RF,query:{datasetId:encodeURIComponent(t),collectionName:encodeURIComponent(o.name)}})}})]}),p&&g&&(0,l.jsx)(w,{dataset:p,collection:g,isOpen:f,onClose:()=>C(!1)})]})}}},function(e){e.O(0,[9729,3772,7488,2888,9774,179],function(){return e(e.s=33187)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8538],{73846:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/new",function(){return n(17294)}])},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var a=n(24246),r=n(20595),s=n(88038),i=n.n(s),o=n(86677);n(27378);var l=n(25980),u=n(90867),d=n(42478),c=n(77830),g=()=>{let e=(0,o.useRouter)();return(0,a.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,a.jsxs)(r.xuv,{children:[(0,a.jsxs)(r.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,a.jsx)(r.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,a.jsx)(r.wpx,{onClick:()=>{e.push(c.AD)},children:"Configure"})]}),(0,a.jsxs)(r.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:s=!0,mainProps:c}=e,f=(0,l.hz)(),m=(0,o.useRouter)(),h="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,p=!(f.flags.messagingConfiguration&&h),{data:y}=(0,d.JE)(void 0,{skip:p}),{data:x}=(0,u.PW)(void 0,{skip:p}),b=f.flags.messagingConfiguration&&(!y||!x)&&h;return(0,a.jsxs)(r.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,a.jsxs)(i(),{children:[(0,a.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,a.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,a.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,a.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:[b?(0,a.jsx)(g,{}):null,t]})]})}},58754:function(e,t,n){"use strict";var a=n(24246),r=n(20595),s=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:i=!0,children:o,rightContent:l,style:u,...d}=e;return(0,a.jsxs)("div",{...d,style:i?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...u}:{paddingBottom:"24px",...u},children:[(0,a.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,a.jsx)(r.lQT,{className:n||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,a.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,a.jsx)(s.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return u}});var a=n(24246),r=n(20595),s=n(79894),i=n.n(s),o=n(27378);let{Text:l}=r.AntTypography,u=e=>{let{items:t,...n}=e,s=(0,o.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let s=n===t.length-1,o={...e},u=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,a.jsx)(l,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,id:s?"breadcrumb-current-page":void 0,children:o.title})),u)?o.title=(0,a.jsx)(r.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,a.jsx)(i(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,a.jsx)(r.zrq,{items:s,...n})}},39715:function(e,t,n){"use strict";var a=n(24246),r=n(20595);n(27378),t.Z=e=>{let{isEmptyState:t,yamlError:n}=e;return(0,a.jsx)(r.Rg9,{in:!0,children:(0,a.jsxs)(r.xuv,{w:"fit-content",bg:"white",p:3,borderRadius:3,children:[(0,a.jsxs)(r.Ugi,{children:[(0,a.jsx)(r.X6q,{as:"h5",color:"gray.700",size:"xs",children:"YAML"}),(0,a.jsx)(r.Vp9,{colorScheme:"red",size:"sm",variant:"solid",children:"Error"})]}),(0,a.jsx)(r.xuv,{bg:"red.50",border:"1px solid",borderColor:"red.300",color:"red.300",mt:"16px",borderRadius:"6px",children:(0,a.jsxs)(r.Ugi,{alignItems:"flex-start",margin:["14px","17px","14px","17px"],children:[(0,a.jsx)(r.f9v,{}),t&&(0,a.jsxs)(r.xuv,{children:[(0,a.jsx)(r.X6q,{as:"h5",color:"red.500",fontWeight:"semibold",size:"xs",children:"Error message:"}),(0,a.jsx)(r.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:"Yaml system is required"})]}),n&&(0,a.jsxs)(r.xuv,{children:[(0,a.jsx)(r.X6q,{as:"h5",color:"red.500",fontWeight:"semibold",size:"xs",children:"Error message:"}),(0,a.jsx)(r.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:n.message}),(0,a.jsx)(r.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:n.reason}),(0,a.jsxs)(r.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:["Ln ",(0,a.jsx)("b",{children:n.mark.line}),", Col"," ",(0,a.jsx)("b",{children:n.mark.column}),", Pos"," ",(0,a.jsx)("b",{children:n.mark.position})]})]})]})})]})})}},41207:function(e,t,n){"use strict";n.d(t,{F:function(){return i},M:function(){return s}});var a=n(76649),r=n(65218);let s=n.n(r)()(()=>n.e(7088).then(n.bind(n,57088)).then(e=>e.default),{loadableGenerated:{webpack:()=>[57088]},ssr:!1}),i=e=>(0,a.Ln)({name:"string"},e)&&"YAMLException"===e.name},42478:function(e,t,n){"use strict";n.d(t,{FU:function(){return u},JE:function(){return r},Ki:function(){return c},SU:function(){return g},W:function(){return f},h9:function(){return s},jc:function(){return a},qt:function(){return l},sn:function(){return d}});let{useGetEmailInviteStatusQuery:a,useGetActiveMessagingProviderQuery:r,useCreateMessagingConfigurationMutation:s,useCreateMessagingConfigurationSecretsMutation:i,useGetMessagingConfigurationDetailsQuery:o,useGetMessagingConfigurationsQuery:l,useGetMessagingConfigurationByKeyQuery:u,useUpdateMessagingConfigurationByKeyMutation:d,useUpdateMessagingConfigurationSecretsByKeyMutation:c,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,a)=>{let r=await a({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"]})})})},17294:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return P}});var a=n(24246),r=n(20595),s=n(27378),i=n(77213),o=n(77830),l=n(58754),u=n(34090),d=n(86677),c=n(16125),g=n(55484),f=n(25980),m=n(40324),h=n(812),p=n(58452),y=n(46628),x=n(83265),b=n(32885),v=n(39449),j=n(20386);let _=e=>!("system_type"in e),C={url:"",classify:!1,classifyConfirmed:!1},w=g.Ry().shape({url:g.Z_().required().label("Database URL"),classify:g.O7(),classifyConfirmed:g.O7().when(["url","classify"],{is:(e,t)=>e&&t,then:()=>g.O7().equals([!0])})});var T=()=>{let[e,{isLoading:t}]=(0,j.pR)(),[n,{isLoading:s}]=(0,j.IR)(),[i,{isLoading:l}]=(0,b.Du)(),g=t||s||l,T=(0,r.pmc)(),k=(0,d.useRouter)(),S=(0,f.hz)(),M=(0,c.I0)(),E=async t=>{var n;let a=await e({organization_key:x.Av,generate:{config:{connection_string:t.url},target:v.GC.DB,type:v.j.DATASETS}});if((0,h.D4)(a))return{error:(0,h.e$)(a.error)};let r=(null!==(n=a.data.generate_results)&&void 0!==n?n:[]).filter(_);return r&&r.length>0?{datasets:r}:{error:"Unable to generate a dataset with this connection."}},q=async e=>{let t=await n(e);return(0,h.D4)(t)?{error:(0,h.e$)(t.error)}:{dataset:t.data}},P=async e=>{let{values:t,datasets:n}=e,a=await i({dataset_schemas:n.map(e=>{let{name:t,fides_key:n}=e;return{fides_key:n,name:t}}),schema_config:{organization_key:x.Av,generate:{config:{connection_string:t.url},target:v.GC.DB,type:v.j.DATASETS}}});return(0,h.D4)(a)?{error:(0,h.e$)(a.error)}:{classifyInstances:a.data.classify_instances}},A=async e=>{var t;let n=await E(e);if("error"in n){T((0,y.Vo)(n.error));return}let a=await Promise.all(n.datasets.map(e=>q(e))),r=null!==(t=a.find(e=>"error"in e))&&void 0!==t?t:a[0];if("error"in r){T((0,y.Vo)(r.error));return}if(!e.classify){T((0,y.t5)("Generated ".concat(r.dataset.name," dataset"))),k.push({pathname:o.o5,query:{datasetId:r.dataset.fides_key}});return}let s=await P({values:e,datasets:n.datasets});if("error"in s){T((0,y.Vo)(s.error));return}T((0,y.t5)("Generate and classify are now in progress")),M((0,j.Zl)(r.dataset.fides_key)),k.push("/dataset")};return(0,a.jsx)(u.J9,{initialValues:{...C,classify:S.plus},validationSchema:w,onSubmit:A,validateOnChange:!1,validateOnBlur:!1,children:e=>{let{isSubmitting:t,errors:n,values:s,submitForm:i,resetForm:o,setFieldValue:l}=e;return(0,a.jsxs)(u.l0,{children:[(0,a.jsxs)(r.gCW,{spacing:8,align:"left",children:[(0,a.jsx)(r.xvT,{size:"sm",color:"gray.700",children:"Connect to a database using the connection URL. You may have received this URL from a colleague or your Ethyca developer support engineer."}),(0,a.jsx)(r.xuv,{children:(0,a.jsx)(m.j0,{name:"url",label:"Database URL"})}),S.plus?(0,a.jsx)(m.w8,{name:"classify",label:"Classify dataset",tooltip:"Use Fides Classify to suggest labels based on your data."}):null,(0,a.jsx)(r.xuv,{children:(0,a.jsx)(r.wpx,{type:"primary",htmlType:"submit",loading:t||g,disabled:t||g,"data-testid":"create-dataset-btn",children:"Generate dataset"})})]}),(0,a.jsx)(p.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!==n.classifyConfirmed,onClose:()=>{o({values:{...s,classifyConfirmed:!1}})},onConfirm:()=>{l("classifyConfirmed",!0),setTimeout(()=>{i()},0)}})]})}})},k=n(66527),S=n(17245),M=n(41207),E=n(39715),q=()=>{let[e]=(0,j.IR)(),[t,n]=(0,s.useState)(!0),[i,l]=(0,s.useState)(!1),[u,c]=(0,s.useState)(!1),g=(0,s.useRef)(null),f=(0,d.useRouter)(),m=(0,r.pmc)(),{errorAlert:p}=(0,S.VY)(),[x,b]=(0,s.useState)(void 0),v=e=>{k.ZP.load(e,{json:!0}),b(void 0)},_=async t=>{let n;return"object"==typeof t&&null!=t&&"dataset"in t&&Array.isArray(t.dataset)?[n]=t.dataset:Array.isArray(t)?[n]=t:n=t,e(n)},C=e=>{m((0,y.t5)("Successfully loaded new dataset YAML")),(0,j.Zl)(e.fides_key),f.push({pathname:o.o5,query:{datasetId:e.fides_key}})},w=async()=>{l(!0);let e=g.current.getValue(),t=k.ZP.load(e,{json:!0}),n=await _(t);(0,h.D4)(n)?m((0,y.Vo)((0,h.e$)(n.error))):"data"in n&&C(n.data),l(!1)};return(0,a.jsxs)(r.kCb,{gap:"97px",children:[(0,a.jsxs)(r.xuv,{w:"75%",children:[(0,a.jsx)(r.xuv,{color:"gray.700",fontSize:"14px",mb:4,children:"Get started creating your first dataset by pasting your dataset yaml below! You may have received this yaml from a colleague or your Ethyca developer support engineer."}),(0,a.jsxs)(r.gCW,{align:"stretch",children:[(0,a.jsx)(r.izJ,{color:"gray.100"}),(0,a.jsx)(M.M,{defaultLanguage:"yaml",height:"calc(100vh - 515px)",onChange:e=>{try{c(!0),v(e),n(!!(!e||""===e.trim()))}catch(e){(0,M.F)(e)?b(e):p("Could not parse the supplied YAML")}},onMount:e=>{g.current=e,g.current.focus()},options:{fontFamily:"Menlo",fontSize:13,minimap:{enabled:!0}},theme:"light"}),(0,a.jsx)(r.izJ,{color:"gray.100"}),(0,a.jsx)(r.wpx,{type:"primary",disabled:t||!!x||i,loading:i,onClick:w,htmlType:"submit",className:"mt-6 w-fit",children:"Create dataset"})]})]}),(0,a.jsx)(r.xuv,{children:u&&(t||x)&&(0,a.jsx)(E.Z,{isEmptyState:t,yamlError:x})})]})},P=()=>{let[e,t]=(0,s.useState)(null);return(0,a.jsxs)(i.Z,{title:"Create New Dataset",children:[(0,a.jsx)(l.Z,{heading:"Datasets",breadcrumbItems:[{title:"All datasets",href:o.$m},{title:"Create new"}]}),(0,a.jsxs)(r.Kqy,{spacing:8,children:[(0,a.jsxs)(r.xuv,{children:[(0,a.jsx)(r.wpx,{onClick:()=>t("yaml"),"data-testid":"upload-yaml-btn",className:"mr-2",children:"Upload a Dataset YAML"}),(0,a.jsx)(r.wpx,{onClick:()=>t("database"),ghost:"database"===e,className:"mr-2","data-testid":"connect-db-btn",children:"Connect to a database"})]}),"database"===e&&(0,a.jsx)(r.xuv,{w:{base:"100%",lg:"50%"},children:(0,a.jsx)(T,{})}),"yaml"===e&&(0,a.jsx)(r.xuv,{w:{base:"100%"},children:(0,a.jsx)(q,{})})]})]})}},76737:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return o},noSSR:function(){return i}});let a=n(51538);n(24246),n(27378);let r=a._(n(21887));function s(e){return{default:(null==e?void 0:e.default)||e}}function i(e,t){return delete t.webpack,delete t.modules,e(t)}function o(e,t){let n=r.default,a={loading:e=>{let{error:t,isLoading:n,pastDelay:a}=e;return null}};e instanceof Promise?a.loader=()=>e:"function"==typeof e?a.loader=e:"object"==typeof e&&(a={...a,...e});let o=(a={...a,...t}).loader;return(a.loadableGenerated&&(a={...a,...a.loadableGenerated},delete a.loadableGenerated),"boolean"!=typeof a.ssr||a.ssr)?n({...a,loader:()=>null!=o?o().then(s):Promise.resolve(s(()=>null))}):(delete a.webpack,delete a.modules,i(n,a))}("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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return a}});let a=n(51538)._(n(27378)).default.createContext(null)},21887:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return g}});let a=n(51538)._(n(27378)),r=n(28438),s=[],i=[],o=!1;function l(e){let t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}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 n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),s=null;function l(){if(!s){let t=new u(e,n);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(!o){let e=n.webpack?n.webpack():n.modules;e&&i.push(t=>{for(let n of e)if(t.includes(n))return l()})}function d(e,t){!function(){l();let e=a.default.useContext(r.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach(t=>{e(t)})}();let i=a.default.useSyncExternalStore(s.subscribe,s.getCurrentValue,s.getCurrentValue);return a.default.useImperativeHandle(t,()=>({retry:s.retry}),[]),a.default.useMemo(()=>{var t;return i.loading||i.error?a.default.createElement(n.loading,{isLoading:i.loading,pastDelay:i.pastDelay,timedOut:i.timedOut,error:i.error,retry:s.retry}):i.loaded?a.default.createElement((t=i.loaded)&&t.default?t.default:t,e):null},[e,i])}return d.preload=()=>l(),d.displayName="LoadableComponent",a.default.forwardRef(d)}(l,e)}function c(e,t){let n=[];for(;e.length;){let a=e.pop();n.push(a(t))}return Promise.all(n).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 n=()=>(o=!0,t());c(i,e).then(n,n)})),window.__NEXT_PRELOADREADY=d.preloadReady;let g=d},65218:function(e,t,n){e.exports=n(76737)}},function(e){e.O(0,[431,6527,7245,2888,9774,179],function(){return e(e.s=73846)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8473],{64902:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset",function(){return s(91949)}])},84306:function(e,t,s){"use strict";s.d(t,{V:function(){return l}});var a=s(24246),i=s(20595);let l=()=>{let e=(0,i.pmc)();return{errorAlert:(t,s,l)=>{let n={...l,position:(null==l?void 0:l.position)||"top",render:e=>{let{onClose:l}=e;return(0,a.jsxs)(i.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,a.jsx)(i.zMQ,{}),(0,a.jsxs)(i.xuv,{children:[s&&(0,a.jsx)(i.CdC,{children:s}),(0,a.jsx)(i.XaZ,{children:t})]}),(0,a.jsx)(i.PZ7,{onClick:l,position:"relative",right:0,size:"sm",top:-1})]})}};(null==l?void 0:l.id)&&e.isActive(l.id)?e.update(l.id,n):e(n)},successAlert:(t,s,l)=>{let n={...l,position:(null==l?void 0:l.position)||"top",render:e=>{let{onClose:l}=e;return(0,a.jsxs)(i.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,a.jsx)(i.zMQ,{}),(0,a.jsxs)(i.xuv,{children:[s&&(0,a.jsx)(i.CdC,{children:s}),(0,a.jsx)(i.XaZ,{children:t})]}),(0,a.jsx)(i.PZ7,{onClick:l,position:"relative",right:0,size:"sm",top:-1})]})}};(null==l?void 0:l.id)&&e.isActive(l.id)?e.update(l.id,n):e(n)}}}},8133:function(e,t,s){"use strict";var a=s(24246),i=s(20595);t.Z=e=>{let{title:t,children:s,isOpen:l,onClose:n,modalContentProps:r,showCloseButton:o=!1,footer:d,...u}=e;return(0,a.jsxs)(i.u_l,{isOpen:l,onClose:n,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...u,children:[(0,a.jsx)(i.ZAr,{}),(0,a.jsxs)(i.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...r,children:[o&&(0,a.jsx)(i.olH,{}),(0,a.jsx)(i.xBx,{p:0,children:(0,a.jsx)(i.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,a.jsx)(i.X6q,{as:"h3",size:"sm",children:t})})}),(0,a.jsx)(i.fef,{pb:4,overflow:"auto",children:s}),d&&(0,a.jsx)(i.mzw,{children:d})]})]})}},39715:function(e,t,s){"use strict";var a=s(24246),i=s(20595);s(27378),t.Z=e=>{let{isEmptyState:t,yamlError:s}=e;return(0,a.jsx)(i.Rg9,{in:!0,children:(0,a.jsxs)(i.xuv,{w:"fit-content",bg:"white",p:3,borderRadius:3,children:[(0,a.jsxs)(i.Ugi,{children:[(0,a.jsx)(i.X6q,{as:"h5",color:"gray.700",size:"xs",children:"YAML"}),(0,a.jsx)(i.Vp9,{colorScheme:"red",size:"sm",variant:"solid",children:"Error"})]}),(0,a.jsx)(i.xuv,{bg:"red.50",border:"1px solid",borderColor:"red.300",color:"red.300",mt:"16px",borderRadius:"6px",children:(0,a.jsxs)(i.Ugi,{alignItems:"flex-start",margin:["14px","17px","14px","17px"],children:[(0,a.jsx)(i.f9v,{}),t&&(0,a.jsxs)(i.xuv,{children:[(0,a.jsx)(i.X6q,{as:"h5",color:"red.500",fontWeight:"semibold",size:"xs",children:"Error message:"}),(0,a.jsx)(i.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:"Yaml system is required"})]}),s&&(0,a.jsxs)(i.xuv,{children:[(0,a.jsx)(i.X6q,{as:"h5",color:"red.500",fontWeight:"semibold",size:"xs",children:"Error message:"}),(0,a.jsx)(i.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:s.message}),(0,a.jsx)(i.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:s.reason}),(0,a.jsxs)(i.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:["Ln ",(0,a.jsx)("b",{children:s.mark.line}),", Col"," ",(0,a.jsx)("b",{children:s.mark.column}),", Pos"," ",(0,a.jsx)("b",{children:s.mark.position})]})]})]})})]})})}},41207:function(e,t,s){"use strict";s.d(t,{F:function(){return n},M:function(){return l}});var a=s(76649),i=s(65218);let l=s.n(i)()(()=>s.e(7088).then(s.bind(s,57088)).then(e=>e.default),{loadableGenerated:{webpack:()=>[57088]},ssr:!1}),n=e=>(0,a.Ln)({name:"string"},e)&&"YAMLException"===e.name},56026:function(e,t,s){"use strict";s.d(t,{QL:function(){return l},du:function(){return i},tz:function(){return a}});let a={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."}},i={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."}},l={description:{tooltip:"A human-readable description of the field."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to this field."}}},91949:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return F}});var a=s(24246),i=s(92222),l=s(59003),n=s(20595),r=s(79894),o=s.n(r),d=s(86677),u=s(27378),c=s(16125),h=s(32885),p=s(39449);let f=e=>{let{resourceType:t,fidesKeys:s,skip:a}=e,[i,l]=(0,u.useState)(!0),n=(0,h.Wm)({resource_type:t,fides_keys:s},{skip:a,pollingInterval:i?3e3:void 0}),r=!!n.data&&n.data.every(e=>e.status===p.Wg.COMPLETE||e.status===p.Wg.FAILED||e.status===p.Wg.REVIEWED);return(0,u.useEffect)(()=>{r&&l(!1)},[r]),{...n,isClassificationFinished:r}};var m=s(25980),x=s(77213),g=s(77830),b=s(58754),j=s(47935),y=s(20386),_=s(79806),v=s(812),C=s(46628),k=s(8133),w=s(84306),S=s(66527),z=s(41207),A=s(39715),E=s(41966),P=e=>{let{data:t=[],isSubmitting:s=!1,onCancel:i,onSubmit:l,disabled:r,isLoading:o,onChange:d}=e,c=(0,u.useRef)(null),{errorAlert:h}=(0,w.V)(),p=t.length>0?S.ZP.dump(t):void 0,[f,m]=(0,u.useState)(void 0),[x,g]=(0,u.useState)(!1),[b,j]=(0,u.useState)(!p),{data:y}=(0,E.LH)({minimal:!0}),[_,v]=(0,u.useState)([]),C=e=>{S.ZP.load(e,{json:!0}),m(void 0)},k=()=>{if(y&&y.length){let e=c.current.getValue();v(y.filter(t=>e.includes("fides_key: ".concat(t.fides_key,"\n"))).map(e=>e.fides_key))}},P=r||b||!x||!!f||s;return(0,a.jsxs)(n.kCb,{gap:"97px",children:[(0,a.jsxs)(n.gCW,{align:"stretch",w:"800px",children:[(0,a.jsx)(z.M,{defaultLanguage:"yaml",defaultValue:p,height:"calc(100vh - 526px)",onChange:e=>{try{g(!0),C(e),j(!e||""===e.trim());let t=S.ZP.load(e||"",{json:!0});Array.isArray(t)?d(t[0]):d(t),k()}catch(e){(0,z.F)(e)?m(e):h("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"}),_.length>0?(0,a.jsxs)(n.xvT,{children:["You are about to overwrite the dataset",_.length>1?"s":""," ",_.map((e,t)=>{let s=t===_.length-1;return(0,a.jsxs)(u.Fragment,{children:[(0,a.jsx)(n.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:e}),s?".":", "]},e)})]}):null,(0,a.jsx)(n.mzw,{children:(0,a.jsxs)("div",{className:"flex w-full justify-end gap-4",children:[i&&(0,a.jsx)(n.wpx,{onClick:i,"data-testid":"cancel-btn",disabled:o,children:"Cancel"}),(0,a.jsx)(n.wpx,{type:"primary",onClick:()=>{null==l||l(),null==i||i()},"data-testid":"continue-btn",disabled:P,loading:s||o,children:"Confirm"})]})})]}),x&&(b||f)&&(0,a.jsx)(A.Z,{isEmptyState:b,yamlError:f})]})},D=e=>{let{isOpen:t,onClose:s,title:i,isLoading:l,returnFocusOnClose:r,isDatasetSelected:o,dataset:d,onChange:u,onSubmit:c}=e;return(0,a.jsx)(k.Z,{isOpen:t,onClose:s,size:"3xl",returnFocusOnClose:null==r||r,isCentered:!0,title:null!=i?i:"Edit Dataset",children:(0,a.jsx)(n.xuv,{"data-testid":"yaml-editor-section",children:(0,a.jsx)(P,{data:d?[d]:[],onSubmit:c,isSubmitting:!1,disabled:o,onChange:u,isLoading:l,onCancel:s})})})},O=s(34090),R=s(40324),T=s(56026);let M="edit-field-drawer";var Z=e=>{var t,s;let{values:i,onSubmit:l}=e,r={name:null!==(t=i.name)&&void 0!==t?t:"",description:null!==(s=i.description)&&void 0!==s?s:"",data_categories:i.data_categories};return(0,a.jsx)(O.J9,{initialValues:r,onSubmit:e=>{l({...e,data_categories:i.data_categories||[]})},children:(0,a.jsx)(O.l0,{id:M,children:(0,a.jsxs)(n.Kqy,{spacing:"3",children:[(0,a.jsx)(R.j0,{name:"name",label:"Name",tooltip:T.tz.name.tooltip,"data-testid":"name-input",variant:"block"}),(0,a.jsx)(R.j0,{name:"description",label:"Description",tooltip:T.tz.description.tooltip,"data-testid":"description-input",variant:"block"})]})})})},L=e=>{let{dataset:t,isOpen:s,onClose:i}=e,[l,{isLoading:r}]=(0,y.TG)(),[o]=(0,y.QY)(),c=(0,d.useRouter)(),h=(0,n.pmc)(),{isOpen:p,onOpen:f,onClose:m}=(0,n.qY0)(),{isOpen:x,onOpen:g,onClose:b}=(0,n.qY0)(),[j,k]=(0,u.useState)(void 0),w=async e=>{let s={...t,...e};try{let e=await l(s);(0,v.D4)(e)?h((0,C.Vo)((0,v.e$)(e.error))):h((0,C.t5)("Successfully modified dataset"))}catch(e){h((0,C.Vo)(e))}i()},S=async()=>{let{fides_key:e}=t,s=await o(e);(0,v.D4)(s)?h((0,C.Vo)((0,v.e$)(s.error))):h((0,C.t5)("Successfully deleted dataset")),(0,y.Zl)(void 0),c.push("/dataset"),i(),m()};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(_.ZP,{isOpen:s,onClose:i,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,a.jsx)(_.zR,{title:"Edit: ".concat(null==t?void 0:t.name)}),footer:(0,a.jsx)(_.Gn,{onClose:i,onDelete:f,onEditYaml:()=>g(),formId:M}),children:[(0,a.jsx)(D,{isOpen:x,onClose:b,onChange:k,onSubmit:()=>w(j),title:"Edit dataset YAML",isLoading:r,isDatasetSelected:!1,dataset:t}),(0,a.jsx)(Z,{values:t,onSubmit:w})]}),(0,a.jsx)(n.cVQ,{isOpen:p,onClose:m,onConfirm:S,title:"Delete Dataset",message:(0,a.jsxs)(n.xvT,{children:["You are about to permanently delete the dataset named"," ",(0,a.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 V=(0,i.Cl)(),W={items:[],total:0,page:1,size:25,pages:1},I=()=>(0,a.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,a.jsxs)(n.gCW,{children:[(0,a.jsx)(n.xvT,{fontSize:"md",fontWeight:"600",children:"No datasets found."}),(0,a.jsx)(n.xvT,{fontSize:"sm",children:'Click "Create new dataset" to add your first dataset to Fides.'})]})});var F=()=>{let e=(0,c.I0)(),t=(0,d.useRouter)(),[s,r]=(0,u.useState)(!1),[h,_]=(0,u.useState)(),{PAGE_SIZES:v,pageSize:C,setPageSize:k,onPreviousPageClick:w,isPreviousPageDisabled:S,onNextPageClick:z,isNextPageDisabled:A,startRange:E,endRange:P,pageIndex:D,setTotalPages:O,resetPageIndexToDefault:R}=(0,j.oi)(),[T,M]=(0,u.useState)(),Z=(0,u.useCallback)(e=>{R(),M(e)},[R,M]),{data:F,isLoading:N,isFetching:Y}=(0,y.rt)({page:D,size:C,search:T,exclude_saas_datasets:!0}),{items:G,total:q,pages:X}=(0,u.useMemo)(()=>null!=F?F:W,[F]);(0,u.useEffect)(()=>{O(X)},[X,O]);let H=(0,u.useCallback)(s=>{e((0,y.Zl)(s.fides_key)),t.push({pathname:g.o5,query:{datasetId:encodeURIComponent(s.fides_key)}})},[e,t]),Q=(0,m.hz)();f({resourceType:p.j.DATASETS,skip:!Q.plus});let U=(0,u.useMemo)(()=>[V.accessor(e=>e.name,{id:"name",cell:e=>(0,a.jsx)(j.G3,{value:e.getValue(),fontWeight:"semibold"}),header:e=>(0,a.jsx)(j.Rr,{value:"Dataset Name",...e}),size:180}),V.accessor(e=>e.fides_key,{id:"fides_key",cell:e=>(0,a.jsx)(j.G3,{value:e.getValue()}),header:e=>(0,a.jsx)(j.Rr,{value:"Fides Key",...e}),size:150}),V.accessor(e=>e.description,{id:"description",cell:e=>(0,a.jsx)(j.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,a.jsx)(j.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),V.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,s=t.original;return(0,a.jsx)(n.Ugi,{spacing:0,"data-testid":"dataset-".concat(s.fides_key),children:(0,a.jsx)(n.wpx,{size:"small",icon:(0,a.jsx)(n.dY8,{}),onClick:()=>{_(s),r(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})].filter(Boolean),[]),B=(0,l.b7)({getCoreRowModel:(0,i.sC)(),getFilteredRowModel:(0,i.vL)(),getSortedRowModel:(0,i.tj)(),columns:U,data:G,columnResizeMode:"onChange"});return(0,a.jsx)(x.Z,{title:"Datasets",children:(0,a.jsxs)(n.xuv,{"data-testid":"system-management",children:[(0,a.jsx)(b.Z,{heading:"Datasets",breadcrumbItems:[{title:"All datasets"}],rightContent:(0,a.jsx)(o(),{href:"/dataset/new",passHref:!0,legacyBehavior:!0,children:(0,a.jsx)(n.wpx,{"data-testid":"create-dataset-btn",children:"+ Add dataset"})})}),N?(0,a.jsx)(j.I4,{rowHeight:36,numRows:15}):(0,a.jsxs)(n.xuv,{"data-testid":"dataset-table",children:[(0,a.jsx)(j.Q$,{children:(0,a.jsx)(j.HO,{globalFilter:T,setGlobalFilter:Z,placeholder:"Search",testid:"dataset-search"})}),(0,a.jsx)(j.ZK,{tableInstance:B,emptyTableNotice:(0,a.jsx)(I,{}),onRowClick:H})]}),(0,a.jsx)(j.s8,{totalRows:q||0,pageSizes:v,setPageSize:k,onPreviousPageClick:w,isPreviousPageDisabled:S||Y,onNextPageClick:z,isNextPageDisabled:A||Y,startRange:E,endRange:P}),(0,a.jsx)(L,{dataset:h,isOpen:s,onClose:()=>{_(void 0),r(!1)}})]})})}},76737:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var s in t)Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}(t,{default:function(){return r},noSSR:function(){return n}});let a=s(51538);s(24246),s(27378);let i=a._(s(21887));function l(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 s=i.default,a={loading:e=>{let{error:t,isLoading:s,pastDelay:a}=e;return null}};e instanceof Promise?a.loader=()=>e:"function"==typeof e?a.loader=e:"object"==typeof e&&(a={...a,...e});let r=(a={...a,...t}).loader;return(a.loadableGenerated&&(a={...a,...a.loadableGenerated},delete a.loadableGenerated),"boolean"!=typeof a.ssr||a.ssr)?s({...a,loader:()=>null!=r?r().then(l):Promise.resolve(l(()=>null))}):(delete a.webpack,delete a.modules,n(s,a))}("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,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return a}});let a=s(51538)._(s(27378)).default.createContext(null)},21887:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let a=s(51538)._(s(27378)),i=s(28438),l=[],n=[],r=!1;function o(e){let t=e(),s={loading:!0,loaded:null,error:null};return s.promise=t.then(e=>(s.loading=!1,s.loaded=e,e)).catch(e=>{throw s.loading=!1,s.error=e,e}),s}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 s=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),l=null;function o(){if(!l){let t=new d(e,s);l={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return l.promise()}if(!r){let e=s.webpack?s.webpack():s.modules;e&&n.push(t=>{for(let s of e)if(t.includes(s))return o()})}function u(e,t){!function(){o();let e=a.default.useContext(i.LoadableContext);e&&Array.isArray(s.modules)&&s.modules.forEach(t=>{e(t)})}();let n=a.default.useSyncExternalStore(l.subscribe,l.getCurrentValue,l.getCurrentValue);return a.default.useImperativeHandle(t,()=>({retry:l.retry}),[]),a.default.useMemo(()=>{var t;return n.loading||n.error?a.default.createElement(s.loading,{isLoading:n.loading,pastDelay:n.pastDelay,timedOut:n.timedOut,error:n.error,retry:l.retry}):n.loaded?a.default.createElement((t=n.loaded)&&t.default?t.default:t,e):null},[e,n])}return u.preload=()=>o(),u.displayName="LoadableComponent",a.default.forwardRef(u)}(o,e)}function c(e,t){let s=[];for(;e.length;){let a=e.pop();s.push(a(t))}return Promise.all(s).then(()=>{if(e.length)return c(e,t)})}u.preloadAll=()=>new Promise((e,t)=>{c(l).then(e,t)}),u.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let s=()=>(r=!0,t());c(n,e).then(s,s)})),window.__NEXT_PRELOADREADY=u.preloadReady;let h=u},65218:function(e,t,s){e.exports=s(76737)}},function(e){e.O(0,[6527,3772,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]-448729ee9d1d78c3.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6446],{10463:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/datastore-connection/[id]",function(){return i(88228)}])},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return f}});var n=i(24246),s=i(20595),r=i(88038),o=i.n(r),a=i(86677);i(27378);var l=i(25980),u=i(90867),c=i(42478),d=i(77830),g=()=>{let e=(0,a.useRouter)();return(0,n.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,n.jsxs)(s.xuv,{children:[(0,n.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(s.wpx,{onClick:()=>{e.push(d.AD)},children:"Configure"})]}),(0,n.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:i,padded:r=!0,mainProps:d}=e,f=(0,l.hz)(),h=(0,a.useRouter)(),m="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,p=!(f.flags.messagingConfiguration&&m),{data:y}=(0,c.JE)(void 0,{skip:p}),{data:v}=(0,u.PW)(void 0,{skip:p}),x=f.flags.messagingConfiguration&&(!y||!v)&&m;return(0,n.jsxs)(s.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(o(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(s.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[x?(0,n.jsx)(g,{}):null,t]})]})}},46782:function(e,t,i){"use strict";i.d(t,{j:function(){return r},l:function(){return o}});var n=i(30454),s=i.n(n);let r="#/definitions/FidesDatasetReference",o=e=>{let t=(e,t,i)=>{let n;return(void 0===t||""===t||void 0===t)&&(n="".concat(e," is required")),i===r&&((null==t?void 0:t.includes("."))?t.split(".").length<3&&(n="Dataset reference must include at least three parts"):n="Dataset reference must be dot delimited"),n},i=t=>{var i,n;return null!==(n=null==e?void 0:null===(i=e.required)||void 0===i?void 0:i.includes(t))&&void 0!==n&&n};return{validateField:t,isRequiredField:i,getFieldValidation:(e,n)=>{if(i(e))return e=>{var i;return t(n.title,e,null===(i=n.allOf)||void 0===i?void 0:i[0].$ref)}},preprocessValues:t=>{let i=s()(t);return e&&Object.keys(e.properties).forEach(t=>{var n,s;if((null===(n=e.properties[t].allOf)||void 0===n?void 0:n[0].$ref)===r){let e=null===(s=i.secrets[t])||void 0===s?void 0:s.split(".");e&&(i.secrets[t]={dataset:e.shift(),field:e.join("."),direction:"from"})}"WebsiteSchema"!==e.title||"URL"!==e.properties[t].title||i.secrets[t].startsWith("http://")||i.secrets[t].startsWith("https://")||(i.secrets[t]="https://".concat(i.secrets[t])),"integer"===e.properties[t].type&&"string"==typeof i.secrets[t]&&""===i.secrets[t].trim()&&(i.secrets[t]=void 0)}),i}}}},27259:function(e,t,i){"use strict";var n=i(24246),s=i(20595),r=i(34090);t.Z=e=>{let{disabled:t=!1,isRequired:i=!1,label:o,placeholder:a,type:l="text",...u}=e,{id:c,autoFocus:d}=u,[g,f]=(0,r.U$)(u);return(0,n.jsxs)(s.NIc,{display:"flex",isRequired:i,isInvalid:!!(f.error&&f.touched),children:[o&&(0,n.jsx)(s.lXp,{color:"gray.900",fontSize:"14px",fontWeight:"semibold",htmlFor:c,minWidth:"150px",children:o}),(0,n.jsxs)(s.gCW,{align:"flex-start",w:"inherit",children:["number"===l&&(0,n.jsxs)(s.Y2U,{allowMouseWheel:!0,color:"gray.700",defaultValue:0,min:0,size:"sm",children:[(0,n.jsx)(s.zuI,{...g,autoComplete:"off",autoFocus:d}),(0,n.jsxs)(s.FiK,{children:[(0,n.jsx)(s.WQu,{}),(0,n.jsx)(s.Y_d,{})]})]}),"text"===l&&(0,n.jsx)(s.IIB,{...g,autoComplete:"off",autoFocus:d,color:"gray.700",isDisabled:t,placeholder:a,size:"sm"}),"textarea"===l&&(0,n.jsx)(s.gxH,{...g,autoComplete:"off",autoFocus:d,color:"gray.700",placeholder:a,resize:"none",size:"sm",value:g.value||""}),(0,n.jsx)(s.J1D,{children:f.error})]})]})}},42478:function(e,t,i){"use strict";i.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 r},jc:function(){return n},qt:function(){return l},sn:function(){return c}});let{useGetEmailInviteStatusQuery:n,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:r,useCreateMessagingConfigurationSecretsMutation:o,useGetMessagingConfigurationDetailsQuery:a,useGetMessagingConfigurationsQuery:l,useGetMessagingConfigurationByKeyQuery:u,useUpdateMessagingConfigurationByKeyMutation:c,useUpdateMessagingConfigurationSecretsByKeyMutation:d,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:f}=i(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,i,n)=>{let s=await n({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"]})})})},88228:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return C}});var n=i(24246),s=i(1226),r=i(20595),o=i(86677),a=i(27378),l=i(16134),u=i(17245),c=i(77830),d=i(20682),g=i(94725),f=i(58754),h=i(11274),m=i(26788),p=i(38212),y=i(50881),v=i(41337),x=()=>{let e=(0,l.T)(),{connection:t,connectionOption:i}=(0,l.C)(d.ZZ),[s,o]=(0,a.useState)(void 0),u=(0,a.useMemo)(()=>{let e=[];return(null==s?void 0:s.options)&&s.options.forEach(i=>{let s;switch(i){case m.H5.CONNECTOR_PARAMETERS:s={label:i,key:i,children:(0,n.jsx)(h.s,{})};break;case m.H5.DATASET_CONFIGURATION:s=(null==t?void 0:t.key)?{label:i,key:i,children:(0,n.jsx)(p.Z,{})}:void 0;break;case m.H5.DSR_CUSTOMIZATION:s=(null==t?void 0:t.key)?{label:i,key:i,children:(0,n.jsx)(y.Z,{})}:void 0}s&&e.push(s)}),e},[null==t?void 0:t.key,null==s?void 0:s.options]);return(0,a.useEffect)(()=>{if(i){let t=m.IM.find(e=>e.type===(null==i?void 0:i.type));t&&(o(t),e((0,d.nj)(m.Ss[2])))}return()=>{e((0,d.mc)())}},[i,e]),t&&i?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(f.Z,{heading:"Connection manager",breadcrumbItems:[{title:"All connections",href:c.JR},{title:t.name}]}),(0,n.jsx)(r.X6q,{fontSize:"md",fontWeight:"semibold",maxHeight:"40px",mb:"4px",whiteSpace:"nowrap",children:(0,n.jsxs)(r.xuv,{alignItems:"center",display:"flex",children:[(0,n.jsx)(v.ZP,{data:(0,v.PT)(i)}),(0,n.jsx)(r.xvT,{ml:"8px",children:t.name})]})}),(0,n.jsx)(r.gCW,{alignItems:"stretch",flex:"1",gap:"18px",children:(0,n.jsx)(r.A5g,{items:u})})]}):null},j=i(39449),C=()=>{let e=(0,l.T)(),t=(0,o.useRouter)(),{id:i}=t.query,{errorAlert:f}=(0,u.VY)(),h=(0,l.C)(d.y_),[m,p]=(0,a.useState)(!0),y=(e,t)=>t.find(t=>{var i;return t.identifier===e.connection_type&&t.identifier!==j.Rj.SAAS||t.identifier===(null===(i=e.saas_config)||void 0===i?void 0:i.type)});return(0,a.useEffect)(()=>{let n=()=>{f("An error occurred while loading ".concat(t.query.id)),t.push(c.JR,void 0,{shallow:!0})},s=async t=>{try{let i=[];i.push(e(g.DM.endpoints.getDatastoreConnectionByKey.initiate(t))),0===h.length&&i.push(e(d.d8.endpoints.getAllConnectionTypes.initiate({search:""})));let s=await Promise.allSettled(i);if(s.every(e=>"fulfilled"===e.status)){e((0,d.lm)(s[0].value.data));let t=[...s[1]?s[1].value.data.items:h],i=y(s[0].value.data,t);e((0,d.yA)(i)),p(!1)}else n()}catch(e){n()}};return i&&s(i),()=>{}},[i]),(0,n.jsxs)(n.Fragment,{children:[m&&(0,n.jsx)(r.xuv,{display:"flex",h:"100vh",justifyContent:"center",children:(0,n.jsx)(r.M5Y,{children:(0,n.jsx)(r.$jN,{})})}),!m&&(0,n.jsx)(s.Z,{children:(0,n.jsx)(x,{})})]})}}},function(e){e.O(0,[431,8765,699,6527,1467,7245,8011,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-42c720ec5c941573.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
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)}])},96718:function(e,t,n){"use strict";n.d(t,{z:function(){return l}});var s=n(24246),r=n(20595);let l=e=>{let{...t}=e;return(0,s.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})}},7936:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return O}});var s=n(24246),r=n(96356),l=n(41337),i=n(20595),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(39449),j=n(96718),y=n(26788),C=()=>{let e=(0,c.I0)(),t=(0,o.useRef)(!1);(0,o.useEffect)(()=>(t.current=!0,()=>{e((0,r.zq)(y.gA)),t.current=!1}),[e]);let n=(0,o.useRef)([...y.yI].map(e=>{let[t,n]=e;return{value:null==n?void 0:n.value,label:t}}));return(0,s.jsx)(j.z,{allowClear:!1,options:n.current,onChange:t=>{e((0,r.zq)(t||y.gA))},defaultValue:"","data-testid":"connection-type-filter"})},v=n(79894),b=n.n(v),g=e=>{let{items:t}=e;return(0,s.jsx)(i.MIq,{columns:4,spacingX:"16px",spacingY:"16px",children:t.map(e=>(0,s.jsx)(b(),{href:{pathname:window.location.pathname,query:{step:2,connectorType:JSON.stringify(e)}},children:(0,s.jsx)(i.xuv,{boxShadow:"base",borderRadius:"5px",maxWidth:"331px",overflow:"hidden",_hover:{boxShadow:"lg",cursor:"pointer"},"data-testid":"".concat(e.identifier,"-item"),children:(0,s.jsxs)(i.kCb,{alignItems:"center",justifyContent:"start",pl:"24px",pr:"24px",color:"gray.700",fontSize:"14px",fontStyle:"normal",fontWeight:"600",lineHeight:"20px",h:"80px",children:[(0,s.jsx)(l.ZP,{data:(0,l.PT)(e)}),(0,s.jsx)(i.xvT,{ml:"12px",children:e.human_readable})]})})},e.identifier))})},T=()=>{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:j}=(0,r.$I)(l),[y,v]=(0,o.useState)(!1),b=(0,o.useCallback)(t=>{(0===t.target.value.length||t.target.value.length>1)&&e((0,r.qP)(t.target.value))},[e]),T=(0,o.useMemo)(()=>(0,h.Ds)(b,250),[b]),w=(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,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.kCb,{minWidth:"fit-content",children:(0,s.jsx)(i.xuv,{color:"gray.700",fontSize:"14px",maxHeight:"80px",maxWidth:"474px",mb:"24px",children:n.description})}),(0,s.jsxs)(i.kCb,{alignItems:"center",gap:"4",mb:"24px",minWidth:"fit-content",children:[(0,s.jsx)(C,{}),(0,s.jsxs)(i.BZy,{size:"sm",children:[(0,s.jsx)(i.Z8_,{pointerEvents:"none",children:(0,s.jsx)(i.PTu,{color:"gray.300",h:"17px",w:"17px"})}),(0,s.jsx)(i.IIB,{autoComplete:"off",autoFocus:!0,borderRadius:"md",name:"search",onChange:T,placeholder:"Search integrations",size:"sm",type:"search"})]}),(0,s.jsx)(x.ZP,{scopes:[m.Sh.CONNECTOR_TEMPLATE_REGISTER],children:(0,s.jsx)(i.wpx,{onClick:()=>{v(!0)},type:"primary",htmlType:"submit","data-testid":"upload-btn",children:"Upload connector"})})]}),(0,s.jsx)(f.Z,{isOpen:y,onClose:()=>v(!1)}),(d||p)&&(0,s.jsx)(i.M5Y,{children:(0,s.jsx)(i.$jN,{})}),j&&w?(0,s.jsx)(g,{items:w}):null]})},w=n(11274),I=n(38212),S=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=y.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)},j=(0,o.useMemo)(()=>{let e=[];return(null==p?void 0:p.options)&&p.options.forEach(t=>{let n;switch(t){case y.H5.CONNECTOR_PARAMETERS:n={label:t,key:t,children:(0,s.jsx)(w.s,{onConnectionCreated:f})};break;case y.H5.DATASET_CONFIGURATION:n=(null==a?void 0:a.key)?{label:t,key:t,children:(0,s.jsx)(I.Z,{})}:void 0;break;case y.H5.DSR_CUSTOMIZATION:n=(null==a?void 0:a.key)?{label:t,key:t,children:(0,s.jsx)(S.Z,{})}:void 0}n&&e.push(n)}),e},[null==a?void 0:a.key,null==p?void 0:p.options]),C=(0,o.useCallback)(t=>{switch(t){case y.H5.DATASET_CONFIGURATION:case y.H5.DSR_CUSTOMIZATION:e((0,r.nj)(y.Ss[3]));break;case y.H5.CONNECTOR_PARAMETERS:default:e((0,r.nj)(y.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)&&(C((null==d?void 0:d.type)!==m.Zi.MANUAL?y.H5.DATASET_CONFIGURATION:y.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,C]),(0,s.jsx)(i.gCW,{alignItems:"stretch",gap:"18px",children:(0,s.jsx)(i.A5g,{items:j,activeKey:h,onChange:C})})};let N=(e,t)=>{let n="".concat(window.location.origin+t,"&key=").concat(e);window.location.href.toLowerCase()!==n.toLowerCase()&&window.history.replaceState(null,"",n)},{Title:_}=i.AntTypography;var E=()=>{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=y.Ss.find(e=>e.stepId===Number(h));e((0,r.nj)(t||y.Ss[1]))}return!t.query.id&&(null==x?void 0:x.key)&&N(x.key,m.href),()=>{}},[null==x?void 0:x.key,n,h,e,t.query.id,t.query.step,m.href]);let j=(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,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p.Z,{heading:"Connections",breadcrumbItems:[{title:"Unlinked connections",href:d.JR},{title:"New connection"}],children:(0,s.jsx)(_,{level:3,className:"mb-0 mt-4",children:f?(0,s.jsxs)(i.vyj,{children:[(0,s.jsx)(l.ZP,{data:(0,l.PT)(f)}),j(m)]}):j(m)})}),(()=>{switch(m.stepId){case 1:default:return(0,s.jsx)(T,{});case 2:case 3:return(0,s.jsx)(k,{})}})()]})},A=n(1226),O=()=>(0,s.jsx)(A.Z,{children:(0,s.jsx)(E,{})})}},function(e){e.O(0,[431,8765,699,6527,5277,1467,7245,7773,8011,2888,9774,179],function(){return e(e.s=91747)}),_N_E=e.O()}]);
|