ethyca-fides 2.59.2b3__py2.py3-none-any.whl → 2.59.2rc0__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ethyca_fides-2.59.2b3.dist-info → ethyca_fides-2.59.2rc0.dist-info}/METADATA +2 -2
- {ethyca_fides-2.59.2b3.dist-info → ethyca_fides-2.59.2rc0.dist-info}/RECORD +212 -215
- {ethyca_fides-2.59.2b3.dist-info → ethyca_fides-2.59.2rc0.dist-info}/WHEEL +1 -1
- fides/_version.py +3 -3
- fides/api/api/v1/endpoints/storage_endpoints.py +6 -7
- fides/api/db/system.py +121 -1
- fides/api/models/asset.py +2 -1
- fides/api/models/privacy_notice.py +19 -14
- fides/api/models/sql_models.py +51 -0
- fides/api/schemas/application_config.py +0 -1
- fides/api/schemas/connection_configuration/connection_secrets_datahub.py +3 -3
- fides/api/schemas/connection_configuration/connection_secrets_mysql.py +0 -12
- fides/api/schemas/connection_configuration/connection_secrets_postgres.py +4 -0
- fides/api/schemas/consentable_item.py +8 -5
- fides/api/schemas/messaging/messaging.py +2 -9
- fides/api/schemas/storage/storage.py +4 -40
- fides/api/schemas/storage/storage_secrets_docs_only.py +2 -8
- fides/api/schemas/system.py +2 -1
- fides/api/service/connectors/mysql_connector.py +1 -13
- fides/api/service/connectors/postgres_connector.py +4 -2
- fides/api/service/connectors/saas_connector.py +13 -18
- fides/api/service/saas_request/saas_request_override_factory.py +3 -3
- fides/api/service/storage/storage_authenticator_service.py +16 -39
- fides/api/service/storage/storage_uploader_service.py +1 -25
- fides/api/task/graph_task.py +3 -2
- fides/api/tasks/storage.py +2 -50
- fides/api/util/aws_util.py +17 -28
- fides/api/util/consent_util.py +4 -10
- fides/api/util/storage_util.py +0 -2
- fides/service/messaging/aws_ses_service.py +16 -25
- fides/ui-build/static/admin/404.html +1 -1
- fides/ui-build/static/admin/_next/static/P3RkpoojridGfvvbDI91a/_buildManifest.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/1100-45c0634b4f51d10c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/1376-92890c17ce39ca0d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/146-d1820217dc36d46d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{1817-90e54de7c706b571.js → 1817-6abbe957a53026d7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{1904-e1034674c6eef004.js → 1904-281183a117e26585.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{2479-b4f7654c27a15c05.js → 2479-b4f7a1c7c711cb65.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/3086-d1ba90bc6ac9174b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3244-3d94bf3393366412.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{3702-8a6360b2deef2a87.js → 3702-3d814671c31eaca3.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/3855-237afbbea7f54707.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3872-c53d74aebd12cfd3.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/401-50974f107c2712fc.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4060-52fd85fb1e15a2b8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4121-476f657b03a78965.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4481-288d74a33473cff7.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5102-626b9ff42e904276.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5480-1623dbacdf4e6794.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5487-9a2aecb0ec63d567.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{5826-8a035114917033bb.js → 5826-1f4f74bf3b5348e4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/5973-942ce645a4279587.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{6372-3d6d19a89e1d7a37.js → 6372-2aee10b79089521a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/6395-4224d6d26d1e8bb7.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6853-ca5dacd25c9ccb7c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6954-127745bfdc5bc0b3.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7751-3913b8c055f599e5.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/79-77cfed02164241ca.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/8433-c4c765833ab9cc07.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/8934-ffa2b0509bc7a845.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9282-1a48b10b114d01f4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9327-4970d356f7000c0b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{9392.9178313b7a01d889.js → 9392.da35a8e778812d91.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/9572-2b9b10e146130c85.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{9676.d1e42fd1d03c4a76.js → 9676.f297a1347ac09c56.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/9767-bf415d0daea960cd.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{9951-a0ba5bccbbbd5f33.js → 9951-66aad0602aadfbe2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{404-b482dd9e6ba3397d.js → 404-29560aa2e6a60963.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{_app-dc66d9fb6547cb04.js → _app-1ce747bb4aa843da.js} +48 -48
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-58e9256e86916ecd.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-892fc00510cddef8.js → multiple-2392e3a101fae073.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-a6926f7ec7ad10cf.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/ant-poc-404f3c9018952800.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-cc58c1e18966fcfd.js → add-vendors-7dfe37b9f0ff9a3c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-422f4d002822a5ce.js → configure-dba7848b760ba227.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-cd8bb60adf783c4a.js → [id]-78de4bde88e18b0f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{new-300fd2800c417d0b.js → new-c02b14c50b19bd91.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience-7eeeee3769e73f78.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-72dd15bfd87616c9.js → [id]-75c2ed6ba3de48cd.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-8bbccdd747f4100c.js → new-487ae57dc7e2ded2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-65091908d6296afc.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-55cc394ebc428e59.js → properties-f67fda6a71d0a46b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-7a1976c0d1aca8b6.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{consent-ec420ff6cfb82abd.js → consent-75395dfc224cf44b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-b0b976e8dd5e4cd6.js → [projectUrn]-fa65c67ec8c4b5e6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-4ea56a1c3010ba99.js → projects-e76a07ee6ee8d55f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-75989f9732d90793.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-6b3d1fe762c747d8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-61eafb8444bffb76.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-38476c697da53480.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-e7869f658e3017b9.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-10f789d4ab2b8927.js → [resourceUrn]-1bcaa606739ea1c5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-f473b2ee1c67be3c.js → detection-22f55dc12354b4c6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-2569551ae75ea5a2.js → [resourceUrn]-86111c25dc30ef2b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-ad077f30849fdc0a.js → discovery-853be75f08b9ab5c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{datamap-4b12c6b141f6cda3.js → datamap-423172d31de8e9c6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-da407b63cd3f5276.js → [...subfieldNames]-704553f5329fb9d4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-76205fa5ddc5c3ae.js → [collectionName]-06c19dca941edb14.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-ab7c88da427b6396.js → [datasetId]-eac517f43d5f53a8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{new-8dba366b1d55a15c.js → new-5aff1d01c6c30ad6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{dataset-ee98d1a24a68f13b.js → dataset-f4d57b3432c57112.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-e39d66c8dfdc4c6f.js → [id]-b2b1168d0361baa8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-8f2cfc79022cb6d0.js → new-c804349a417a888b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-0faa9b3c4555e585.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/index-e72904e316ede1b0.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-17191a759e167ca8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations-88e51c81a380ebad.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{[id]-1d18e28fa55a149b.js → [id]-66f5fbadd8455805.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{add-template-11bdab1b292c6f89.js → add-template-d441abb1f045940f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging-eef56c95b08aa24c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{[id]-96350050e842bde5.js → [id]-54ea39f203182c53.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-d889076067104e56.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-3355b4803b2916f3.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure-b8c94b10ab90b061.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-3ac47981f1e2b0aa.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-835b7c4dd2240d16.js → [id]-f4fb941df069b7bf.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-984851804558be53.js → add-property-bccb6ffab25aa214.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{properties-d2b95b0ebae06804.js → properties-9a7ac623370b7c00.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-fe743440d7eb007b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/about-4412a7b468b6d4bf.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-cdc866af93898716.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-a7dc8113067dff42.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-87df4b6493ca8162.js → domain-records-d9088f5cd9fb2822.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-2f03e981234c40ad.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/email-templates-cf09ad896c7396a6.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-a8cd013bdd3aef75.js → locations-759564ca0ae62840.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-5bcc7a6976e01a56.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-5abb227df116c9c4.js → regulations-2dce4501fca920b3.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-0b47ff26897c1d9a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-693c726f22ae11c5.js → [id]-dd053a3bf2a9ca6c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems-820893393f1516ee.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-8fccd670220dbf60.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/{new-65ef1bdebb679666.js → new-082c3156175f9267.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-28abb07c95f2c7c2.js → [id]-d527d1d1635541df.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management-facb8c0128a44cb1.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{webpack-cf42f5a0e9af0ace.js → webpack-03e375f6d6b2c71b.js} +1 -1
- fides/ui-build/static/admin/_next/static/css/687135955af5b7e1.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/ant-poc.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].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/login/[provider].html +1 -1
- fides/ui-build/static/admin/login.html +1 -1
- fides/ui-build/static/admin/messaging/[id].html +1 -1
- fides/ui-build/static/admin/messaging/add-template.html +1 -1
- fides/ui-build/static/admin/messaging.html +1 -1
- fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure/messaging.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.html +1 -1
- fides/ui-build/static/admin/settings/consent.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/regulations.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id].html +1 -1
- fides/ui-build/static/admin/systems.html +1 -1
- fides/ui-build/static/admin/taxonomy.html +1 -1
- fides/ui-build/static/admin/user-management/new.html +1 -1
- fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
- fides/ui-build/static/admin/user-management.html +1 -1
- fides/api/alembic/migrations/versions/c9c72b3d550b_data_migration_cookie_asset.py +0 -218
- fides/api/service/storage/gcs.py +0 -38
- fides/ui-build/static/admin/_next/static/WiKelYdZvuyhqjL7rLRaz/_buildManifest.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1100-0046887f49e9e7c7.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3503-2e773a38d4a79c2d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3513-2ee2ff13c15af241.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3855-7a43acdb1f8de2f5.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3872-53b86dcc7ee3ddec.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/401-a15fcc78cc272c09.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4060-93514991b84ca46c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4121-01e2b9f905b8ca29.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4481-c19a0c5e273a3ec7.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5487-b6957c5ba835167b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5835-2e2aa29b4a8bf4e6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5973-4b83cf367b6d82a2.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6277-2f2d89b83a19ee67.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6853-45e8c48ad0fdf1db.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6954-6de30beefefac64a.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7751-f83e9877478aafcf.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/79-576004c5ee5116f6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/8433-234a6feeb457cbb8.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/8934-e357867355f1f924.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9282-c7f853a8175266bc.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9327-0bc418b9b16cc2c5.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9572-c34e18bd40467909.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9719-d3de30714871f267.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9767-ee5b0af0e65d3802.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9965-8880affd11242777.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-e16fcedb2215db13.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-cb85a0014fad7c58.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/ant-poc-2bade915860dd327.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience-046051bb82ec1c53.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-1f402b7525f78140.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-de9118ec446ce994.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-7efbc1558febf026.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-cdd23dc94e1fbf89.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-94308fff1468b5e6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-920ed6df7e0aa3a5.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-7e25ddfe45048b35.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-340e311fa02584dc.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/index-259c1f1281f9b634.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-0fc3ffd11ba163f9.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations-d584110d81e5b395.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging-de5efa1ff6d0e9ea.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-e8e9ae8d58acceb2.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-a76f1d1a19e61fe8.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure-6b9a46fef5031a0b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-630db544f2a27167.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-5d1aededc7523146.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/about-44f96bcf57cd4cbf.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-0ba66c149139737a.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-943dfe977678edb5.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-39d098cbcb33d4f5.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-45a8a86266308028.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/email-templates-272eb2c0b7ffd290.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-aaa200f916ba79d8.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-da1b2dd3ec61a08e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems-5eccb5fe50f7aaa9.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-0611d707ce426ec7.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management-4eb69d5c6af8581b.js +0 -1
- fides/ui-build/static/admin/_next/static/css/e728309361a9758b.css +0 -1
- fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +0 -1
- {ethyca_fides-2.59.2b3.dist-info → ethyca_fides-2.59.2rc0.dist-info}/entry_points.txt +0 -0
- {ethyca_fides-2.59.2b3.dist-info → ethyca_fides-2.59.2rc0.dist-info}/licenses/LICENSE +0 -0
- {ethyca_fides-2.59.2b3.dist-info → ethyca_fides-2.59.2rc0.dist-info}/top_level.txt +0 -0
- /fides/ui-build/static/admin/_next/static/{WiKelYdZvuyhqjL7rLRaz → P3RkpoojridGfvvbDI91a}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2423],{86850:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/[monitorId]",function(){return s(56856)}])},35287:function(e,t,s){"use strict";var n=s(24246),i=s(77181),o=s(88038),a=s.n(o);s(27378),t.Z=e=>{let{children:t,title:s,mainProps:o}=e;return(0,n.jsxs)(i.kCb,{"data-testid":s,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,n.jsxs)(a(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",s]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsx)(i.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...o,children:t})]})}},37059:function(e,t,s){"use strict";s.d(t,{Ak:function(){return g},EY:function(){return c},Ud:function(){return o},Vr:function(){return h},WJ:function(){return r},nP:function(){return d},nS:function(){return u},rs:function(){return l},sX:function(){return m},wi:function(){return a}});var n=s(78780),i=s(16394);let{useGetAggregateMonitorResultsQuery:o,useGetDiscoveredSystemAggregateQuery:a,useGetDiscoveredAssetsQuery:r,useAddMonitorResultSystemsMutation:l,useIgnoreMonitorResultSystemsMutation:d,useAddMonitorResultAssetsMutation:c,useIgnoreMonitorResultAssetsMutation:u,useUpdateAssetsSystemMutation:m,useUpdateAssetsDataUseMutation:g,useUpdateAssetsMutation:h}=n.u.injectEndpoints({endpoints:e=>({getAggregateMonitorResults:e.query({query:e=>{let{page:t=1,size:s=20,search:n}=e;return{url:"/plus/discovery-monitor/aggregate-results",params:{page:t,size:s,search:n,diff_status:"addition"}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredSystemAggregate:e.query({query:e=>{let{key:t,page:s=1,size:n=20,search:i,diff_status:o}=e;return{url:"/plus/discovery-monitor/system-aggregate-results",params:{monitor_config_id:t,page:s,size:n,search:i,diff_status:o}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredAssets:e.query({query:e=>{let{key:t,system:s,page:n=1,size:i=20,search:o,diff_status:a}=e;return{url:"/plus/discovery-monitor/".concat(t,"/results"),params:{resolved_system_id:s,page:n,size:i,search:o,diff_status:a,sort_by:"urn"}}},providesTags:()=>["Discovery Monitor Results"]}),addMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:s}=e,n=(0,i.du)(s,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(t,"/promote?").concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:s}=e,n=(0,i.du)(s,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(t,"/mute?").concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),addMonitorResultAssets:e.mutation({query:e=>{var t;let s=new URLSearchParams;return null===(t=e.urnList)||void 0===t||t.forEach(e=>s.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/promote?".concat(s)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultAssets:e.mutation({query:e=>{var t;let s=new URLSearchParams;return null===(t=e.urnList)||void 0===t||t.forEach(e=>s.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/mute?".concat(s)}},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"]})})})},90057:function(e,t,s){"use strict";var n=s(86677),i=s(27378),o=s(62656);let a={ATTENTION_REQUIRED:{index:0,hash:"#attention-required"},RECENT_ACTIVITY:{index:1,hash:"#recent-activity"},IGNORED:{index:2,hash:"#ignored"}},r=e=>{let t=e.startsWith("#")?e:"#".concat(e);return Object.values(a).find(e=>e.hash===t)},l=e=>Object.values(a).find(t=>t.index===e);t.Z=e=>{var t;let{systemId:s,initialHash:d}=e,c=(0,n.useRouter)(),[u,m]=(0,i.useState)(d?null===(t=r(d))||void 0===t?void 0:t.index:a.ATTENTION_REQUIRED.index),g=(0,i.useCallback)(async e=>{if(m(e),c.isReady){let t=l(e);if(t){let e={...c.query};await c.replace({pathname:c.pathname,query:e,hash:t.hash},void 0,{shallow:!0})}}},[c]),h=[{label:"Attention required",params:{diff_status:[o.LL.ADDITION],system:s}},{label:"Recent activity",params:{diff_status:[o.LL.MONITORED]}},{label:"Ignored",params:{diff_status:[o.LL.MUTED],system:s}}],{diff_status:v,system:y}=h[u].params,p=v.includes(o.LL.MONITORED);return{filterTabs:h,filterTabIndex:u,onTabChange:g,activeParams:s?{diff_status:v,system:y}:{diff_status:v},actionsDisabled:p}}},56839:function(e,t,s){"use strict";s.d(t,{dK:function(){return c},Rv:function(){return g},$P:function(){return m},zj:function(){return h},Kr:function(){return v},q1:function(){return u},QL:function(){return y}});var n=s(24246),i=s(77181);let o=(0,i.IUT)({displayName:"CircleIcon",viewBox:"0 0 200 200",path:(0,n.jsx)("path",{fill:"currentColor",d:"M 100, 100 m -75, 0 a 75,75 0 1,0 150,0 a 75,75 0 1,0 -150,0"})}),a=(0,i.IUT)({displayName:"RightDownArrowIcon",viewBox:"0 0 8 8",path:(0,n.jsx)("path",{fill:"currentColor",d:"M7.23192 8H8V7.23192V1.85539V1.08731H6.46385V1.85539V5.37654L1.62976 0.544855L1.08731 0L0 1.08731L0.542454 1.62976L5.37654 6.46385H1.85539H1.08731V8H1.85539H7.23192Z"})}),r=(0,i.IUT)({displayName:"RightUpArrowIcon",viewBox:"0 0 8 8",path:(0,n.jsx)("path",{fill:"currentColor",d:"M7.23192 0H8V0.768077V6.14461V6.91269H6.46385V6.14461V2.62346L1.62976 7.45515L1.08731 8L0 6.91269L0.542454 6.37024L5.37654 1.53615H1.85539H1.08731V0H1.85539H7.23192Z"})}),l=(0,i.IUT)({displayName:"TagIcon",viewBox:"0 0 9 10",path:(0,n.jsx)("path",{fill:"currentColor",d:"M0 0.5V5L4.5 9.5L9 5L4.5 0.5H0ZM2.25 2.10714C2.4205 2.10714 2.58401 2.17487 2.70457 2.29543C2.82513 2.41599 2.89286 2.5795 2.89286 2.75C2.89286 2.9205 2.82513 3.08401 2.70457 3.20457C2.58401 3.32513 2.4205 3.39286 2.25 3.39286C2.0795 3.39286 1.91599 3.32513 1.79543 3.20457C1.67487 3.08401 1.60714 2.9205 1.60714 2.75C1.60714 2.5795 1.67487 2.41599 1.79543 2.29543C1.91599 2.17487 2.0795 2.10714 2.25 2.10714Z"})});var d=s(28278);let c=()=>(0,n.jsx)(r,{color:"green.400",boxSize:2,mr:2,"data-testid":"add-icon"}),u=()=>(0,n.jsx)(a,{color:"red.400",boxSize:2,mr:2,"data-testid":"remove-icon"}),m=()=>(0,n.jsx)(l,{color:"orange.400",boxSize:3,mr:1,"data-testid":"classify-icon"}),g=()=>(0,n.jsx)(o,{color:"blue.400",boxSize:2.5,mb:"2px",mr:"6px","data-testid":"change-icon"}),h=()=>(0,n.jsx)(o,{color:"green.400",boxSize:2,mr:2,"data-testid":"monitored-icon"}),v=()=>(0,n.jsx)(o,{color:"red.400",boxSize:2,mr:2,"data-testid":"muted-icon"}),y={[d.E.ADDITION]:(0,n.jsx)(c,{}),[d.E.REMOVAL]:(0,n.jsx)(u,{}),[d.E.CLASSIFICATION]:(0,n.jsx)(m,{}),[d.E.CHANGE]:(0,n.jsx)(g,{}),[d.E.MONITORED]:(0,n.jsx)(h,{}),[d.E.MUTED]:(0,n.jsx)(v,{}),[d.E.IN_PROGRESS]:(0,n.jsx)(()=>(0,n.jsx)(o,{color:"orange.400",boxSize:2,mr:2,"data-testid":"in-progress-icon"}),{}),[d.E.NONE]:null}},28278:function(e,t,s){"use strict";var n,i;s.d(t,{E:function(){return n}}),(i=n||(n={})).ADDITION="Addition",i.CHANGE="Change",i.REMOVAL="Removal",i.CLASSIFICATION="Classification",i.IN_PROGRESS="Classifying",i.MONITORED="Monitoring",i.MUTED="Unmonitored",i.NONE="--"},56856:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return A}});var n=s(24246),i=s(86677),o=s(35287),a=s(77830),r=s(58754),l=s(59003),d=s(92222),c=s(77181),u=s(27378),m=s(66379),g=s(812),h=s(14047),v=s(14481),y=s(37059),p=s(90057),f=s(62656),x=s(31883),j=s(57454),_=s(8411),b=s(72625),w=s(34929),C=s(78238),R=e=>{var t,s;let{system:i}=e,{getDataUseDisplayName:o}=(0,w.Z)(),a=(null!==(s=null===(t=i.data_uses)||void 0===t?void 0:t.filter(e=>(0,C.Z)(e)))&&void 0!==s?s:[]).map(e=>({label:o(e),key:e}));return(0,n.jsx)(b.mb,{values:a})};let I=e=>{let{monitorId:t,system:s,allowIgnore:i}=e,[o,{isLoading:r}]=(0,y.rs)(),[l,{isLoading:d}]=(0,y.nP)(),{successAlert:u,errorAlert:m}=(0,h.V)(),v=r||d,{id:p,name:f,system_key:x,total_updates:j}=s,_=async()=>{let e=await o({monitor_config_key:t,resolved_system_ids:[p]});(0,g.D4)(e)?m((0,g.e$)(e.error)):u(x?"".concat(j," assets from ").concat(f," have been added to the system inventory."):"".concat(f," and ").concat(j," assets have been added to the system inventory. ").concat(f," is now configured for consent."),"Confirmed")},b=async()=>{let e=await l({monitor_config_key:t,resolved_system_ids:[p||a.Kl]});(0,g.D4)(e)?m((0,g.e$)(e.error)):u(f?"".concat(j," assets from ").concat(f," have been ignored and will not appear in future scans."):"".concat(j," uncategorized assets have been ignored and will not appear in future scans."),"Confirmed")};return(0,n.jsxs)(c.vyj,{children:[(0,n.jsx)(c.esZ,{title:s.id?void 0:"These assets must be categorized before you can add them to the inventory.",children:(0,n.jsx)(c.wpx,{"data-testid":"add-btn",size:"small",onClick:_,disabled:!s.id||v,loading:r,children:"Add"})}),i&&(0,n.jsx)(c.wpx,{"data-testid":"ignore-btn",size:"small",onClick:b,disabled:v,loading:d,children:"Ignore"})]})};var T=s(56839);let E=e=>{let{system:t}=e;return(0,n.jsxs)(c.kCb,{alignItems:"center",height:"100%",children:[!(null==t?void 0:t.system_key)&&(0,n.jsx)(c.ua7,{label:"New system",children:(0,n.jsx)("span",{children:T.QL.Change})}),(0,n.jsx)(c.xvT,{fontSize:"xs",fontWeight:"semibold",lineHeight:4,overflow:"hidden",textOverflow:"ellipsis",children:(null==t?void 0:t.name)||"Uncategorized assets"})]})},S=e=>{let{monitorId:t,readonly:s,allowIgnore:i}=e,o=(0,d.Cl)(),a=o.display({id:"select",cell:e=>{let{row:t}=e;return(0,n.jsx)(v.k,{isChecked:t.getIsSelected(),onChange:t.getToggleSelectedHandler(),dataTestId:"select-".concat(t.original.name||t.id)})},header:e=>{let{table:t}=e;return(0,n.jsx)(v.k,{isChecked:t.getIsAllPageRowsSelected(),isIndeterminate:t.getIsSomeRowsSelected(),onChange:t.getToggleAllRowsSelectedHandler(),dataTestId:"select-all-rows"})},maxSize:40,meta:{disableRowClick:!0,cellProps:{borderRight:"none"}}}),r=o.accessor(e=>e.name,{id:"system_name",cell:e=>(0,n.jsx)(E,{system:e.row.original}),header:"System",size:300,meta:{headerProps:{paddingLeft:"0px"},cellProps:{padding:"0 !important"}}}),l=o.accessor(e=>e.total_updates,{id:"total_updates",cell:e=>(0,n.jsx)(v.G3,{value:e.getValue()}),header:"Assets",size:80}),c=o.display({id:"data_use",cell:e=>(0,n.jsx)(R,{system:e.row.original}),header:"Categories of consent",size:400,meta:{disableRowClick:!0}}),m=o.accessor(e=>e.locations,{id:"locations",cell:e=>(0,n.jsx)(b.mb,{values:e.getValue().map(e=>({label:_.Z8[e],key:e}))}),header:"Locations",size:300,meta:{showHeaderMenu:!0,disableRowClick:!0}}),g=o.accessor(e=>e.domains,{id:"domains",cell:e=>(0,n.jsx)(b.tc,{values:e.getValue(),valueSuffix:"domains",cellProps:e}),header:"Domains",meta:{showHeaderMenu:!0,disableRowClick:!0}}),h=o.display({id:"actions",cell:e=>(0,n.jsx)(I,{system:e.row.original,monitorId:t,allowIgnore:i}),header:"Actions",meta:{disableRowClick:!0}}),y=(0,u.useMemo)(()=>[r,l,c,m,g],[r,l,c,m,g]);return s?{columns:y}:{columns:[a,...y,h]}},L=e=>{let{monitorId:t}=e,s=(0,i.useRouter)(),o=s.asPath.split("#")[1],{PAGE_SIZES:r,pageSize:_,setPageSize:b,onPreviousPageClick:w,isPreviousPageDisabled:C,onNextPageClick:R,isNextPageDisabled:I,startRange:T,endRange:E,pageIndex:L,setTotalPages:A,resetPageIndexToDefault:D}=(0,v.oi)(),[k,{isLoading:M}]=(0,y.rs)(),[N,{isLoading:P}]=(0,y.nP)(),{successAlert:O,errorAlert:z}=(0,h.V)(),[H,U]=(0,u.useState)(""),[V,q]=(0,u.useState)({});(0,u.useEffect)(()=>{D()},[t,H,D]);let{filterTabs:Z,filterTabIndex:G,onTabChange:K,activeParams:B,actionsDisabled:W}=(0,p.Z)({initialHash:o}),{data:$,isLoading:Q,isFetching:F}=(0,y.wi)({key:t,page:L,size:_,search:H,...B});(0,u.useEffect)(()=>{$&&A($.pages||1)},[$,A]);let{columns:X}=S({monitorId:t,readonly:W,allowIgnore:!B.diff_status.includes(f.LL.MUTED)}),J=(0,l.b7)({getCoreRowModel:(0,d.sC)(),columns:X,manualPagination:!0,data:(null==$?void 0:$.items)||[],columnResizeMode:"onChange",onRowSelectionChange:q,state:{rowSelection:V}}),Y=J.getSelectedRowModel().rows,ee=Y.some(e=>null===e.original.id);if(Q)return(0,n.jsx)(v.I4,{rowHeight:36,numRows:36});let et=async()=>{let e=Y.reduce((e,t)=>e+t.original.total_updates,0),s=await k({monitor_config_key:t,resolved_system_ids:Y.map(e=>e.original.id)});(0,x.D4)(s)?z((0,g.e$)(s.error)):(O("".concat(e," assets have been added to the system inventory.")),q({}))},es=async()=>{let e=Y.reduce((e,t)=>e+t.original.total_updates,0),s=await N({monitor_config_key:t,resolved_system_ids:Y.map(e=>{var t;return null!==(t=e.original.id)&&void 0!==t?t:a.Kl})});(0,x.D4)(s)?z((0,g.e$)(s.error)):(O("".concat(e," assets have been ignored and will not appear in future scans.")),q({}))};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.Z,{data:Z,"data-testid":"filter-tabs",index:G,isLazy:!0,isManual:!0,onChange:e=>{K(e),q({})}}),(0,n.jsx)(v.Q$,{children:(0,n.jsxs)(c.kCb,{direction:"row",alignItems:"center",justifyContent:"space-between",width:"full",children:[(0,n.jsx)(c.kCb,{gap:6,align:"center",children:(0,n.jsx)(c.xuv,{flexShrink:0,children:(0,n.jsx)(j.M,{value:H,onChange:U})})}),(0,n.jsxs)(c.kCb,{align:"center",children:[!!Y.length&&(0,n.jsx)(c.xvT,{fontSize:"xs",fontWeight:"semibold",minW:16,mr:6,"data-testid":"selected-count",children:"".concat(Y.length," selected")}),(0,n.jsxs)(c.v2r,{children:[(0,n.jsx)(c.j2t,{as:c.wpx,icon:(0,n.jsx)(c.PJP._ME,{}),iconPosition:"end",loading:M||P,"data-testid":"bulk-actions-menu",disabled:!Y.length,type:"primary",children:"Actions"}),(0,n.jsxs)(c.qyq,{children:[(0,n.jsx)(c.esZ,{title:ee?"Uncategorized assets can't be added to the inventory":null,placement:"left",children:(0,n.jsx)(c.sNh,{fontSize:"small",onClick:et,"data-testid":"bulk-add",isDisabled:ee,children:"Add"})}),!B.diff_status.includes(f.LL.MUTED)&&(0,n.jsx)(c.sNh,{fontSize:"small",onClick:es,"data-testid":"bulk-ignore",children:"Ignore"})]})]})]})]})}),(0,n.jsx)(v.ZK,{tableInstance:J,onRowClick:e=>{var n;let i="".concat(a.vi,"/").concat(t,"/").concat(null!==(n=e.id)&&void 0!==n?n:a.Kl).concat(o?"#".concat(o):"");s.push(i)},emptyTableNotice:(0,n.jsx)(c.oj8,{image:c.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})}),(0,n.jsx)(v.s8,{totalRows:(null==$?void 0:$.total)||0,pageSizes:r,setPageSize:b,onPreviousPageClick:w,isPreviousPageDisabled:C||F,onNextPageClick:R,isNextPageDisabled:I||F,startRange:T,endRange:E})]})};var A=()=>{let e=decodeURIComponent((0,i.useRouter)().query.monitorId);return(0,n.jsxs)(o.Z,{title:"Action center - Discovered assets by system",children:[(0,n.jsx)(r.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:a.vi},{title:e}]}),(0,n.jsx)(L,{monitorId:e})]})}},31883:function(e,t,s){"use strict";s.d(t,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=s(19043)}},function(e){e.O(0,[8033,6060,2858,2866,9278,4481,6395,146,2888,9774,179],function(){return e(e.s=86850)}),_N_E=e.O()}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8443],{74833:function(t,e,n){var i=n(56127),r=/^\s+/;t.exports=function(t){return t?t.slice(0,i(t)+1).replace(r,""):t}},56127:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},66726:function(t,e,n){var i=n(11611),r=n(82846),s=n(91936),o=Math.max,a=Math.min;t.exports=function(t,e,n){var u,l,c,d,p,g,f=0,m=!1,v=!1,y=!0;if("function"!=typeof t)throw TypeError("Expected a function");function h(e){var n=u,i=l;return u=l=void 0,f=e,d=t.apply(i,n)}function x(t){var n=t-g,i=t-f;return void 0===g||n>=e||n<0||v&&i>=c}function j(){var t,n,i,s=r();if(x(s))return _(s);p=setTimeout(j,(t=s-g,n=s-f,i=e-t,v?a(i,c-n):i))}function _(t){return(p=void 0,y&&u)?h(t):(u=l=void 0,d)}function b(){var t,n=r(),i=x(n);if(u=arguments,l=this,g=n,i){if(void 0===p)return f=t=g,p=setTimeout(j,e),m?h(t):d;if(v)return clearTimeout(p),p=setTimeout(j,e),h(g)}return void 0===p&&(p=setTimeout(j,e)),d}return e=s(e)||0,i(n)&&(m=!!n.leading,c=(v="maxWait"in n)?o(s(n.maxWait)||0,e):c,y="trailing"in n?!!n.trailing:y),b.cancel=function(){void 0!==p&&clearTimeout(p),f=0,u=g=l=p=void 0},b.flush=function(){return void 0===p?d:_(r())},b}},11611:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},55193:function(t,e,n){var i=n(99736),r=n(92360);t.exports=function(t){return"symbol"==typeof t||r(t)&&"[object Symbol]"==i(t)}},82846:function(t,e,n){var i=n(77400);t.exports=function(){return i.Date.now()}},91936:function(t,e,n){var i=n(74833),r=n(11611),s=n(55193),o=0/0,a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(s(t))return o;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=i(t);var n=u.test(t);return n||l.test(t)?c(t.slice(2),n?2:8):a.test(t)?o:+t}},40741:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center",function(){return n(51500)}])},77213:function(t,e,n){"use strict";n.d(e,{Z:function(){return p}});var i=n(24246),r=n(77181),s=n(88038),o=n.n(s),a=n(86677);n(27378);var u=n(25980),l=n(90867),c=n(77830),d=()=>{let t=(0,a.useRouter)();return(0,i.jsx)(r.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(r.xuv,{children:[(0,i.jsxs)(r.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(r.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(r.wpx,{onClick:()=>{t.push(c.fz)},children:"Configure"})]}),(0,i.jsxs)(r.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=t=>{let{children:e,title:n,padded:s=!0,mainProps:c}=t,p=(0,u.hz)(),g=(0,a.useRouter)(),f="/privacy-requests"===g.pathname||"/datastore-connection"===g.pathname,m=!(p.flags.privacyRequestsConfiguration&&f),{data:v}=(0,l.JE)(void 0,{skip:m}),{data:y}=(0,l.PW)(void 0,{skip:m}),h=p.flags.privacyRequestsConfiguration&&(!v||!y)&&f;return(0,i.jsxs)(r.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(o(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(r.kCb,{as:"main",direction:"column",py:s?6:0,px:s?10:0,h:s?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[h?(0,i.jsx)(d,{}):null,e]})]})}},58754:function(t,e,n){"use strict";var i=n(24246),r=n(77181),s=n(70788);e.Z=t=>{let{heading:e,breadcrumbItems:n,isSticky:o=!0,children:a,rightContent:u,style:l,...c}=t;return(0,i.jsxs)("div",{...c,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...l}:{paddingBottom:"24px",...l},children:[(0,i.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof e?(0,i.jsx)(r.X6q,{className:n||a?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:e}):e,u&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:u})]}),!!n&&(0,i.jsx)(s.m,{className:a?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),a]})}},70788:function(t,e,n){"use strict";n.d(e,{m:function(){return l}});var i=n(24246),r=n(77181),s=n(79894),o=n.n(s),a=n(27378);let{Text:u}=r.AntTypography,l=t=>{let{items:e,...n}=t,s=(0,a.useMemo)(()=>null==e?void 0:e.map((t,n)=>{let s=n===e.length-1,a={...t},l=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,i.jsx)(u,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:a.title})),l)?a.title=(0,i.jsx)(r.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,i.jsx)(o(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[e]);return(0,i.jsx)(r.zrq,{items:s,...n})}},7426:function(t,e,n){"use strict";n.d(e,{D2:function(){return p},L:function(){return a},U7:function(){return l},Yh:function(){return f},ak:function(){return u},iR:function(){return v},km:function(){return o},tB:function(){return s}});var i=n(3228);let r=n(78780).u.injectEndpoints({endpoints:t=>({getConfigurationSettings:t.query({query:t=>{let{api_set:e}=t;return{url:"/config",method:"GET",params:{api_set:e}}},providesTags:["Configuration Settings"]}),putConfigurationSettings:t.mutation({query:t=>({url:"/config",method:"PUT",body:t}),invalidatesTags:["Configuration Settings"]}),patchConfigurationSettings:t.mutation({query:t=>({url:"/config",method:"PATCH",body:t}),invalidatesTags:["Configuration Settings","Privacy Notices"]})})}),{useGetConfigurationSettingsQuery:s,usePutConfigurationSettingsMutation:o,usePatchConfigurationSettingsMutation:a}=r,u=(0,i.P1)([t=>t,r.endpoints.getConfigurationSettings.select({api_set:!0}),r.endpoints.getConfigurationSettings.select({api_set:!1})],(t,e,n)=>{var i,r,s;let{data:o}=e,{data:a}=n;return{configSet:{cors_origins:(null==a?void 0:null===(i=a.security)||void 0===i?void 0:i.cors_origins)||[],cors_origin_regex:null==a?void 0:null===(r=a.security)||void 0===r?void 0:r.cors_origin_regex},apiSet:{cors_origins:(null==o?void 0:null===(s=o.security)||void 0===s?void 0:s.cors_origins)||[]}}}),l=()=>(0,i.P1)([t=>t,r.endpoints.getConfigurationSettings.select({api_set:!0})],(t,e)=>{let{data:n}=e;return n}),c={enabled:!1,cmp_api_required:!1},d=(t,e,n,i)=>{let r=n&&n[t],s=i&&i[t];return r&&s?{...i[t],...n[t]}:s?i[t]:r?{...n[t]}:e},p=(0,i.P1)([t=>t,r.endpoints.getConfigurationSettings.select({api_set:!0}),r.endpoints.getConfigurationSettings.select({api_set:!1})],(t,e,n)=>{let{data:i}=e,{data:r}=n;return d("gpp",c,i,r)}),g={tcf_publisher_country_code:null},f=(0,i.P1)([t=>t,r.endpoints.getConfigurationSettings.select({api_set:!0}),r.endpoints.getConfigurationSettings.select({api_set:!1})],(t,e,n)=>{let{data:i}=e,{data:r}=n;return d("plus_consent_settings",g,i,r)}),m={allow_username_password_login:!1},v=(0,i.P1)([t=>t,r.endpoints.getConfigurationSettings.select({api_set:!0}),r.endpoints.getConfigurationSettings.select({api_set:!1})],(t,e,n)=>{let{data:i}=e,{data:r}=n;return d("plus_security_settings",m,i,r)})},57454:function(t,e,n){"use strict";n.d(e,{M:function(){return u}});var i=n(24246),r=n(66726),s=n.n(r),o=n(27378),a=n(86780);let u=t=>{let{value:e,onChange:n}=t,[r,u]=(0,o.useState)(e),l=s()(n,500),c=(0,o.useCallback)(t=>{u(t),l(t)},[]);return(0,i.jsx)(a.Z,{search:r,onChange:c,onClear:()=>{u(""),n("")}})}},37059:function(t,e,n){"use strict";n.d(e,{Ak:function(){return g},EY:function(){return c},Ud:function(){return s},Vr:function(){return f},WJ:function(){return a},nP:function(){return l},nS:function(){return d},rs:function(){return u},sX:function(){return p},wi:function(){return o}});var i=n(78780),r=n(16394);let{useGetAggregateMonitorResultsQuery:s,useGetDiscoveredSystemAggregateQuery:o,useGetDiscoveredAssetsQuery:a,useAddMonitorResultSystemsMutation:u,useIgnoreMonitorResultSystemsMutation:l,useAddMonitorResultAssetsMutation:c,useIgnoreMonitorResultAssetsMutation:d,useUpdateAssetsSystemMutation:p,useUpdateAssetsDataUseMutation:g,useUpdateAssetsMutation:f}=i.u.injectEndpoints({endpoints:t=>({getAggregateMonitorResults:t.query({query:t=>{let{page:e=1,size:n=20,search:i}=t;return{url:"/plus/discovery-monitor/aggregate-results",params:{page:e,size:n,search:i,diff_status:"addition"}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredSystemAggregate:t.query({query:t=>{let{key:e,page:n=1,size:i=20,search:r,diff_status:s}=t;return{url:"/plus/discovery-monitor/system-aggregate-results",params:{monitor_config_id:e,page:n,size:i,search:r,diff_status:s}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredAssets:t.query({query:t=>{let{key:e,system:n,page:i=1,size:r=20,search:s,diff_status:o}=t;return{url:"/plus/discovery-monitor/".concat(e,"/results"),params:{resolved_system_id:n,page:i,size:r,search:s,diff_status:o,sort_by:"urn"}}},providesTags:()=>["Discovery Monitor Results"]}),addMonitorResultSystems:t.mutation({query:t=>{let{monitor_config_key:e,resolved_system_ids:n}=t,i=(0,r.du)(n,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(e,"/promote?").concat(i)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultSystems:t.mutation({query:t=>{let{monitor_config_key:e,resolved_system_ids:n}=t,i=(0,r.du)(n,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(e,"/mute?").concat(i)}},invalidatesTags:["Discovery Monitor Results"]}),addMonitorResultAssets:t.mutation({query:t=>{var e;let n=new URLSearchParams;return null===(e=t.urnList)||void 0===e||e.forEach(t=>n.append("staged_resource_urns",t)),{method:"POST",url:"/plus/discovery-monitor/promote?".concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultAssets:t.mutation({query:t=>{var e;let n=new URLSearchParams;return null===(e=t.urnList)||void 0===e||e.forEach(t=>n.append("staged_resource_urns",t)),{method:"POST",url:"/plus/discovery-monitor/mute?".concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),updateAssetsSystem:t.mutation({query:t=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(t.monitorId,"/results"),body:t.urnList.map(e=>({urn:e,user_assigned_system_key:t.systemKey}))}),invalidatesTags:["Discovery Monitor Results","System Assets"]}),updateAssetsDataUse:t.mutation({query:t=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(t.monitorId,"/results"),body:t.urnList.map(e=>({urn:e,user_assigned_data_uses:t.dataUses}))}),invalidatesTags:["Discovery Monitor Results"]}),updateAssets:t.mutation({query:t=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(t.monitorId,"/results"),body:t.assets}),invalidatesTags:["Discovery Monitor Results"]})})})},51500:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return _}});var i=n(24246),r=n(77181),s=n(79894),o=n.n(s),a=n(27378),u=n(77213),l=n(77830),c=n(58754),d=n(14481),p=n(7426),g=n(37059);let f=t=>{let{isConfigLoading:e}=t;return(0,i.jsx)(u.Z,{title:"Action center",mainProps:{className:"h-full"},children:(0,i.jsx)(r.jqI,{justify:"center",align:"center",className:"h-full",children:e?(0,i.jsx)(r.$jN,{color:"primary.900"}):(0,i.jsx)(r.DUx,{message:"Coming soon...",description:"Action center is currently disabled.",type:"info",showIcon:!0})})})},m=()=>(0,i.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,i.jsx)(o(),{href:l.KH,passHref:!0,legacyBehavior:!0,children:(0,i.jsx)(r.wpx,{type:"primary",children:"Visit integrations"})})});var v=n(7195),y=n(16394);let{Text:h}=r.AntTypography,x=t=>{let{monitorSummary:e,showSkeleton:n,...s}=t,[u,c]=(0,a.useState)(void 0),{name:d,property:p,total_updates:g,updates:f,last_monitored:m,warning:x,secrets:j,key:_}=e,b=Object.entries(f).map(t=>"".concat(t[1]," ").concat(t[0],"s")).join(", "),C=m?(0,y.p6)(new Date(m)):void 0,S=m?(0,v.B)(new Date(m),new Date,{addSuffix:!0}):void 0;return(0,a.useEffect)(()=>{p&&c((0,y.tl)(p,60)),(null==j?void 0:j.url)&&c((0,y.tl)((0,y.ge)(j.url),60))},[p,null==j?void 0:j.url]),(0,i.jsx)(r.krs.Item,{"data-testid":"monitor-result-".concat(_),...s,children:(0,i.jsx)(r.N_L,{avatar:!0,title:!1,loading:n,active:!0,children:(0,i.jsxs)(r.bue,{gutter:12,className:"w-full",children:[(0,i.jsx)(r.JGx,{span:18,className:"align-middle",children:(0,i.jsx)(r.krs.Item.Meta,{avatar:(0,i.jsx)(r.t3Z,{src:u,size:30,icon:(0,i.jsx)(r.PJP.huD,{}),style:{backgroundColor:"transparent",color:"var(--ant-color-text)"}}),title:(0,i.jsxs)(o(),{href:"".concat(l.vi,"/").concat(_),className:"whitespace-nowrap",children:["".concat(g," assets detected").concat(p?" on ".concat(p):""),!!x&&(0,i.jsx)(r.esZ,{title:"string"==typeof x?x:void 0,children:(0,i.jsx)(r.PJP.OdJ,{className:"ml-1 inline-block align-middle",style:{color:"var(--fidesui-error)"}})})]}),description:"".concat(b," detected.")})}),(0,i.jsx)(r.JGx,{span:4,className:"flex items-center justify-end",children:(0,i.jsx)(h,{ellipsis:{tooltip:d},children:d})}),(0,i.jsx)(r.JGx,{span:2,className:"flex items-center justify-end",children:!!S&&(0,i.jsx)(r.esZ,{title:C,children:(0,i.jsx)(h,{"data-testid":"monitor-date",ellipsis:{tooltip:C},children:S})})})]})})})};var j=n(57454),_=()=>{var t;let e=(0,r.pmc)(),{PAGE_SIZES:n,pageSize:s,setPageSize:v,onPreviousPageClick:y,isPreviousPageDisabled:h,onNextPageClick:_,isNextPageDisabled:b,startRange:C,endRange:S,pageIndex:T,setTotalPages:w,resetPageIndexToDefault:P}=(0,d.oi)(),[k,R]=(0,a.useState)(""),{data:q,isLoading:N}=(0,p.tB)({api_set:!1}),A=!!(null==q?void 0:null===(t=q.detection_discovery)||void 0===t?void 0:t.website_monitor_enabled);(0,a.useEffect)(()=>{P()},[k,P]);let{data:E,isError:M,isLoading:D,isFetching:I}=(0,g.Ud)({page:T,size:s,search:k},{skip:N||!A});(0,a.useEffect)(()=>{M&&e&&A&&e({title:"Error fetching data",description:"Please try again later",status:"error"})},[M,e,A]),(0,a.useEffect)(()=>{E&&w(E.total||1)},[E,w]);let L=(null==E?void 0:E.items)||[],z=I?Array.from({length:s},(t,e)=>({key:e.toString(),updates:[],last_monitored:null})):[],O=(0,a.useCallback)(t=>[(0,i.jsx)(o(),{href:"".concat(l.vi,"/").concat(t),passHref:!0,legacyBehavior:!0,children:(0,i.jsx)(r.wpx,{type:"link",className:"p-0","data-testid":"review-button-".concat(t),children:"Review"})},"review")],[]);return A?(0,i.jsxs)(u.Z,{title:"Action center",children:[(0,i.jsx)(c.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity"}]}),(0,i.jsx)(r.jqI,{className:"justify-between py-6",children:(0,i.jsx)(j.M,{value:k,onChange:R})}),(0,i.jsx)(r.krs,{loading:D,dataSource:L||z,locale:{emptyText:(0,i.jsx)(m,{})},renderItem:t=>!!t&&(0,i.jsx)(x,{showSkeleton:I,monitorSummary:t,actions:O(t.key)},t.key)}),!!L&&!!(null==E?void 0:E.total)&&E.total>s&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.htM,{className:"mb-6 mt-0"}),(0,i.jsx)(d.s8,{totalRows:(null==E?void 0:E.total)||0,pageSizes:n,setPageSize:v,onPreviousPageClick:y,isPreviousPageDisabled:h||I,onNextPageClick:_,isNextPageDisabled:b||I,startRange:C,endRange:S})]})]}):(0,i.jsx)(f,{isConfigLoading:N})}}},function(t){t.O(0,[8033,6060,4481,2888,9774,179],function(){return t(t.s=40741)}),_N_E=t.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-e7869f658e3017b9.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7477],{74833:function(e,t,i){var n=i(56127),r=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(r,""):e}},56127:function(e){var t=/\s/;e.exports=function(e){for(var i=e.length;i--&&t.test(e.charAt(i)););return i}},66726:function(e,t,i){var n=i(11611),r=i(82846),s=i(91936),o=Math.max,a=Math.min;e.exports=function(e,t,i){var l,c,d,u,f,x,h=0,L=!1,g=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function m(t){var i=l,n=c;return l=c=void 0,h=t,u=e.apply(n,i)}function j(e){var i=e-x,n=e-h;return void 0===x||i>=t||i<0||g&&n>=d}function p(){var e,i,n,s=r();if(j(s))return I(s);f=setTimeout(p,(e=s-x,i=s-h,n=t-e,g?a(n,d-i):n))}function I(e){return(f=void 0,v&&l)?m(e):(l=c=void 0,u)}function _(){var e,i=r(),n=j(i);if(l=arguments,c=this,x=i,n){if(void 0===f)return h=e=x,f=setTimeout(p,t),L?m(e):u;if(g)return clearTimeout(f),f=setTimeout(p,t),m(x)}return void 0===f&&(f=setTimeout(p,t)),u}return t=s(t)||0,n(i)&&(L=!!i.leading,d=(g="maxWait"in i)?o(s(i.maxWait)||0,t):d,v="trailing"in i?!!i.trailing:v),_.cancel=function(){void 0!==f&&clearTimeout(f),h=0,l=x=c=f=void 0},_.flush=function(){return void 0===f?u:I(r())},_}},11611:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},55193:function(e,t,i){var n=i(99736),r=i(92360);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==n(e)}},82846:function(e,t,i){var n=i(77400);e.exports=function(){return n.Date.now()}},91936:function(e,t,i){var n=i(74833),r=i(11611),s=i(55193),o=0/0,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(s(e))return o;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var i=l.test(e);return i||c.test(e)?d(e.slice(2),i?2:8):a.test(e)?o:+e}},45550:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/activity",function(){return i(3680)}])},35287:function(e,t,i){"use strict";var n=i(24246),r=i(77181),s=i(88038),o=i.n(s);i(27378),t.Z=e=>{let{children:t,title:i,mainProps:s}=e;return(0,n.jsxs)(r.kCb,{"data-testid":i,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",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.jsx)(r.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...s,children:t})]})}},58754:function(e,t,i){"use strict";var n=i(24246),r=i(77181),s=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:o=!0,children:a,rightContent:l,style:c,...d}=e;return(0,n.jsxs)("div",{...d,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,n.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(r.X6q,{className:i||a?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,l&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!i&&(0,n.jsx)(s.m,{className:a?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),a]})}},14047:function(e,t,i){"use strict";i.d(t,{H:function(){return s},V:function(){return n.V}});var n=i(84306),r=i(812);let s=()=>{let{errorAlert:e}=(0,n.V)();return{handleError:t=>{let i="An unexpected error occurred. Please try again.";(0,r.Ot)(t)?i=t.data.detail:(0,r.tB)(t)&&(i=t.data.detail[0].msg),e(i)}}}},84306:function(e,t,i){"use strict";i.d(t,{V:function(){return s}});var n=i(24246),r=i(77181);let s=()=>{let e=(0,r.pmc)();return{errorAlert:(t,i,s)=>{let o={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=e;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:t})]}),(0,n.jsx)(r.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,o):e(o)},successAlert:(t,i,s)=>{let o={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=e;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:t})]}),(0,n.jsx)(r.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,o):e(o)}}}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return c}});var n=i(24246),r=i(77181),s=i(79894),o=i.n(s),a=i(27378);let{Text:l}=r.AntTypography,c=e=>{let{items:t,...i}=e,s=(0,a.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let s=i===t.length-1,a={...e},c=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,n.jsx)(l,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:a.title})),c)?a.title=(0,n.jsx)(r.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,n.jsx)(o(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,n.jsx)(r.zrq,{items:s,...i})}},79494:function(e,t,i){"use strict";var n=i(24246),r=i(77181);t.Z=e=>{let{title:t,icon:i,type:s,...o}=e;return(0,n.jsx)(r.wpx,{size:"small",type:s,"data-testid":"action-".concat(t),icon:i,iconPosition:"start",...o,children:t})}},38347:function(e,t,i){"use strict";var n=i(24246),r=i(77181),s=i(56839);t.Z=()=>(0,n.jsxs)(r.J2e,{isLazy:!0,trigger:"hover",children:[(0,n.jsx)(r.xol,{children:(0,n.jsx)(r.UOT,{color:"gray.400"})}),(0,n.jsxs)(r.yky,{bgColor:"gray.800",color:"white",fontSize:"sm",w:"auto",border:"none",children:[(0,n.jsx)(r.Ytg,{fontWeight:"semibold",border:"none",pb:0,children:"Activity legend:"}),(0,n.jsx)(r.QHN,{bgColor:"gray.800"}),(0,n.jsx)(r.baG,{border:"none",children:(0,n.jsxs)(r.MIq,{columns:2,spacing:2,children:[(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(s.Rv,{})," Change detected"]}),(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(s.$P,{})," Data labeled"]}),(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(s.zj,{})," Monitoring"]}),(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(s.dK,{})," Addition detected"]}),(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(s.Kr,{})," Unmonitored"]}),(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(s.q1,{})," Removal detected"]})]})})]})]})},57454:function(e,t,i){"use strict";i.d(t,{M:function(){return l}});var n=i(24246),r=i(66726),s=i.n(r),o=i(27378),a=i(86780);let l=e=>{let{value:t,onChange:i}=e,[r,l]=(0,o.useState)(t),c=s()(i,500),d=(0,o.useCallback)(e=>{l(e),c(e)},[]);return(0,n.jsx)(a.Z,{search:r,onChange:d,onClear:()=>{l(""),i("")}})}},47182:function(e,t,i){"use strict";var n=i(86677),r=i(77830);t.Z=()=>{let e=(0,n.useRouter)();return{monitorId:e.query.monitorId,resourceUrn:e.query.resourceUrn,navigateToDetectionResults:t=>{let{resourceUrn:i,filterTabIndex:n}=t;e.push({pathname:r.dS,query:{resourceUrn:i,filterTabIndex:n}})},navigateToDiscoveryResults:t=>{let{resourceUrn:i,filterTabIndex:n}=t;e.push({pathname:r.Sj,query:{resourceUrn:i,filterTabIndex:n}})}}}},56839:function(e,t,i){"use strict";i.d(t,{dK:function(){return d},Rv:function(){return x},$P:function(){return f},zj:function(){return h},Kr:function(){return L},q1:function(){return u},QL:function(){return g}});var n=i(24246),r=i(77181);let s=(0,r.IUT)({displayName:"CircleIcon",viewBox:"0 0 200 200",path:(0,n.jsx)("path",{fill:"currentColor",d:"M 100, 100 m -75, 0 a 75,75 0 1,0 150,0 a 75,75 0 1,0 -150,0"})}),o=(0,r.IUT)({displayName:"RightDownArrowIcon",viewBox:"0 0 8 8",path:(0,n.jsx)("path",{fill:"currentColor",d:"M7.23192 8H8V7.23192V1.85539V1.08731H6.46385V1.85539V5.37654L1.62976 0.544855L1.08731 0L0 1.08731L0.542454 1.62976L5.37654 6.46385H1.85539H1.08731V8H1.85539H7.23192Z"})}),a=(0,r.IUT)({displayName:"RightUpArrowIcon",viewBox:"0 0 8 8",path:(0,n.jsx)("path",{fill:"currentColor",d:"M7.23192 0H8V0.768077V6.14461V6.91269H6.46385V6.14461V2.62346L1.62976 7.45515L1.08731 8L0 6.91269L0.542454 6.37024L5.37654 1.53615H1.85539H1.08731V0H1.85539H7.23192Z"})}),l=(0,r.IUT)({displayName:"TagIcon",viewBox:"0 0 9 10",path:(0,n.jsx)("path",{fill:"currentColor",d:"M0 0.5V5L4.5 9.5L9 5L4.5 0.5H0ZM2.25 2.10714C2.4205 2.10714 2.58401 2.17487 2.70457 2.29543C2.82513 2.41599 2.89286 2.5795 2.89286 2.75C2.89286 2.9205 2.82513 3.08401 2.70457 3.20457C2.58401 3.32513 2.4205 3.39286 2.25 3.39286C2.0795 3.39286 1.91599 3.32513 1.79543 3.20457C1.67487 3.08401 1.60714 2.9205 1.60714 2.75C1.60714 2.5795 1.67487 2.41599 1.79543 2.29543C1.91599 2.17487 2.0795 2.10714 2.25 2.10714Z"})});var c=i(28278);let d=()=>(0,n.jsx)(a,{color:"green.400",boxSize:2,mr:2,"data-testid":"add-icon"}),u=()=>(0,n.jsx)(o,{color:"red.400",boxSize:2,mr:2,"data-testid":"remove-icon"}),f=()=>(0,n.jsx)(l,{color:"orange.400",boxSize:3,mr:1,"data-testid":"classify-icon"}),x=()=>(0,n.jsx)(s,{color:"blue.400",boxSize:2.5,mb:"2px",mr:"6px","data-testid":"change-icon"}),h=()=>(0,n.jsx)(s,{color:"green.400",boxSize:2,mr:2,"data-testid":"monitored-icon"}),L=()=>(0,n.jsx)(s,{color:"red.400",boxSize:2,mr:2,"data-testid":"muted-icon"}),g={[c.E.ADDITION]:(0,n.jsx)(d,{}),[c.E.REMOVAL]:(0,n.jsx)(u,{}),[c.E.CLASSIFICATION]:(0,n.jsx)(f,{}),[c.E.CHANGE]:(0,n.jsx)(x,{}),[c.E.MONITORED]:(0,n.jsx)(h,{}),[c.E.MUTED]:(0,n.jsx)(L,{}),[c.E.IN_PROGRESS]:(0,n.jsx)(()=>(0,n.jsx)(s,{color:"orange.400",boxSize:2,mr:2,"data-testid":"in-progress-icon"}),{}),[c.E.NONE]:null}},54409:function(e,t,i){"use strict";i.d(t,{Z:function(){return h}});var n=i(24246),r=i(77181),s=i(812),o=i(14047),a=i(62656),l=i(31883);let c=(0,r.IUT)({displayName:"MonitorOffIcon",viewBox:"0 0 12 12",path:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.47125 1H5.85H6.15H6.51188L6.58875 1.36914L7.52062 5.83268L6.42408 4.98635L6.03375 3.11719L5.8038 4.50761L4.99323 3.882L5.40562 1.38867L5.47125 1ZM4.80795 5.0022L4.67675 5.79545L5.48735 6.42109L5.61854 5.62783L4.80795 5.0022ZM6.73856 6.49227L6.96125 7.55866L8.42407 8.6877L8.69498 8.00228L7.94864 7.42624L7.88625 7.58398L7.83501 7.33853L6.73856 6.49227ZM8.33138 6.45844L9.07755 7.03434L9.30188 6.4668H11.55H12V5.5293H11.55H9H8.69812L8.58375 5.82031L8.33138 6.45844ZM7.27551 9.06443L7.35399 9.125H7.28813L7.27551 9.06443ZM4.49147 6.91566L5.30209 7.54131L4.79437 10.6113L4.72875 11H4.35H4.05H3.69563L3.61313 10.6406L2.64563 6.46875H0.45H0V5.53125H0.45H2.69777L3.49646 6.1477L4.15125 8.97266L4.49147 6.91566Z",fill:"currentColor"}),(0,n.jsx)("g",{"clip-path":"url(#clip0_341_3102)",children:(0,n.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.6755 10.4168L0.164222 2.304L0.775218 1.51237L11.2865 9.62517L10.6755 10.4168Z",fill:"currentColor"})}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"clip0_341_3102",children:(0,n.jsx)("rect",{width:"11.5",height:"9",fill:"white",transform:"translate(0 1.5)"})})})]})}),d=(0,r.IUT)({displayName:"MonitorOnIcon",viewBox:"0 0 12 10",path:(0,n.jsx)("path",{d:"M5.47125 0H5.85H6.15H6.51188L6.58875 0.369141L7.88625 6.58398L8.58375 4.82031L8.69812 4.5293H9H11.55H12V5.4668H11.55H9.30188L8.36625 7.83398L8.25188 8.125H7.95H7.65H7.28813L7.21125 7.75586L6.03375 2.11719L4.79437 9.61133L4.72875 10H4.35H4.05H3.69563L3.61313 9.64062L2.64563 5.46875H0.45H0V4.53125H0.45H3H3.35438L3.43688 4.89062L4.15125 7.97266L5.40562 0.388672L5.47125 0Z",fill:"currentColor"})});var u=i(79494),f=i(70675),x=i(7940),h=e=>{let{resource:t,ignoreChildActions:i=!1}=e,h=(0,x.G)(t),[L,{isLoading:g}]=(0,f.v8)(),[v,{isLoading:m}]=(0,f.vi)(),[j,{isLoading:p}]=(0,f.Tl)(),{successAlert:I,errorAlert:_}=(0,o.V)(),C=async()=>{let e=await L({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id});(0,l.D4)(e)?_((0,s.e$)(e.error,"Failed to confirm resource")):I("Data discovery has started. The results may take some time to appear in the “Data discovery“ tab.","".concat(t.name||"The resource"," is now being monitored."))},A=async()=>{let e=await j({staged_resource_urn:t.urn});(0,l.D4)(e)?_((0,s.e$)(e.error),"Failed to un-mute resource"):I("".concat(t.name||"The resource"," has been un-muted and is now being monitored."))},T=async()=>{let e=await L({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id,unmute_children:!0,classify_monitored_resources:!0});(0,l.D4)(e)?_((0,s.e$)(e.error),"Failed to un-mute resource"):I("Data discovery has started. The results may take some time to appear in the “Data discovery“ tab.","".concat(t.name||"The resource"," is now being monitored."))},D=async()=>{let e=await L({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id});(0,l.D4)(e)?_((0,s.e$)(e.error),"Failed to confirm resource"):I('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},E=async()=>{let e=await v({staged_resource_urn:t.urn});(0,l.D4)(e)?_((0,s.e$)(e.error),"Failed to mute resource"):I("Ignored data will not be monitored for changes or added to Fides datasets.","".concat(t.name||"Resource"," ignored"))},S=g||m||p,{diff_status:b,child_diff_statuses:y}=t,N=h===a.D$.SCHEMA,O=h===a.D$.FIELD,w=N&&void 0===b||!O&&b===a.LL.ADDITION,M=b!==a.LL.MUTED,Z=b===a.LL.MUTED&&!O,R=b===a.LL.MUTED&&O,H=y&&(y[a.LL.ADDITION]||y[a.LL.REMOVAL]),F=b===a.LL.MONITORED&&!i&&H;return(0,n.jsxs)(r.Ugi,{children:[w&&(0,n.jsx)(u.Z,{title:"Monitor",icon:(0,n.jsx)(d,{}),onClick:C,disabled:S,loading:g}),R&&(0,n.jsx)(u.Z,{title:"Un-Mute",icon:(0,n.jsx)(d,{}),onClick:A,disabled:S,loading:g}),Z&&(0,n.jsx)(u.Z,{title:"Monitor",icon:(0,n.jsx)(d,{}),onClick:T,disabled:S,loading:g}),F&&(0,n.jsx)(u.Z,{title:"Confirm",icon:(0,n.jsx)(r.nQG,{}),onClick:D,disabled:S,loading:g}),M&&(0,n.jsx)(u.Z,{title:"Ignore",icon:(0,n.jsx)(c,{}),onClick:E,disabled:S,loading:m})]})}},91761:function(e,t,i){"use strict";var n=i(24246),r=i(77181),s=i(812),o=i(14047),a=i(7940),l=i(98559),c=i(62656),d=i(79494),u=i(70675);t.Z=e=>{let{resource:t}=e,[i,{isLoading:f}]=(0,u.v8)(),[x,{isLoading:h}]=(0,u.cM)(),[L,{isLoading:g}]=(0,u.vi)(),v=h||g||f,{diff_status:m,child_diff_statuses:j,top_level_field_name:p}=t,{successAlert:I,errorAlert:_}=(0,o.V)(),C=m===c.LL.CLASSIFICATION_ADDITION||m===c.LL.CLASSIFICATION_UPDATE,A=j&&(j[c.LL.CLASSIFICATION_ADDITION]||j[c.LL.CLASSIFICATION_UPDATE]),T=(C||A)&&!p,D=C||A,E=(0,a.G)(t)!==c.D$.FIELD,S=T&&D&&E,b=async()=>{let e=await x({staged_resource_urn:t.urn});(0,s.D4)(e)?_((0,s.e$)(e.error),"Failed to promote resource"):I('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},y=async()=>{let e=await L({staged_resource_urn:t.urn});(0,s.D4)(e)?_((0,s.e$)(e.error),"Failed to mute resource"):I("Ignored changes will not be added to a Fides dataset.","".concat(t.name||"Changes"," ignored"))},N=async()=>{let e=await i({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id,start_classification:!0,classify_monitored_resources:!0});(0,s.D4)(e)?_((0,s.e$)(e.error),"Failed to reclassify resource"):I("Reclassification of ".concat((0,l.Z)(t)||"the resource"," has begun. The results may take some time to appear in the “Data discovery“ tab."),"Reclassification started")};return(0,n.jsxs)(r.Ugi,{gap:2,children:[T&&(0,n.jsx)(d.Z,{title:"Confirm",icon:(0,n.jsx)(r.nQG,{}),onClick:b,disabled:v,loading:h}),D&&(0,n.jsx)(d.Z,{title:"Ignore",icon:(0,n.jsx)(r.tpL,{}),onClick:y,disabled:v,loading:g}),E&&!S&&(0,n.jsx)(d.Z,{title:"Reclassify",icon:(0,n.jsx)(r.nyI,{}),onClick:N,disabled:v,loading:f}),S&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.LZC,{}),(0,n.jsxs)(r.v2r,{children:[(0,n.jsx)(r.j2t,{as:r.wpx,size:"small",type:"text",icon:(0,n.jsx)(r.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-overflow-btn"}),(0,n.jsx)(r.qyq,{children:(0,n.jsx)(r.sNh,{onClick:N,icon:(0,n.jsx)(r.nyI,{}),"data-testid":"action-reclassify",children:"Reclassify"})})]})]})]})}},87667:function(e,t,i){"use strict";var n=i(24246),r=i(77181),s=i(56839),o=i(20449),a=i(98559),l=i(80356);t.Z=e=>{let{result:t,changeTypeOverride:i}=e,c=null!=i?i:(0,o.Z)(t);return(0,n.jsxs)(r.kCb,{alignItems:"center",height:"100%",children:[(0,n.jsx)(r.ua7,{label:c,children:(0,n.jsx)("span",{children:s.QL[c]})}),(0,n.jsx)(r.xvT,{fontSize:"xs",lineHeight:4,fontWeight:(0,l.Z)(t)?"semibold":"normal",overflow:"hidden",textOverflow:"ellipsis",children:(0,a.Z)(t)})]})}},50169:function(e,t,i){"use strict";var n=i(24246),r=i(14481),s=i(28278),o=i(20449);let a={[s.E.MUTED]:{color:"marble",label:"Unmonitored"},[s.E.MONITORED]:{color:"success",label:"Monitoring"},[s.E.IN_PROGRESS]:{color:"info",label:"Classifying"}};t.Z=e=>{var t,i,s,l,c;let{result:d,changeTypeOverride:u}=e;if(null===(t=d.user_assigned_data_categories)||void 0===t?void 0:t.length)return(0,n.jsx)(r.A4,{color:"success",value:"Reviewed"});let f=null!=u?u:(0,o.Z)(d);return(0,n.jsx)(r.A4,{color:null!==(l=null===(i=a[f])||void 0===i?void 0:i.color)&&void 0!==l?l:"warning",value:null!==(c=null===(s=a[f])||void 0===s?void 0:s.label)&&void 0!==c?c:"Pending review"})}},28278:function(e,t,i){"use strict";var n,r;i.d(t,{E:function(){return n}}),(r=n||(n={})).ADDITION="Addition",r.CHANGE="Change",r.REMOVAL="Removal",r.CLASSIFICATION="Classification",r.IN_PROGRESS="Classifying",r.MONITORED="Monitoring",r.MUTED="Unmonitored",r.NONE="--"},74241:function(e,t){"use strict";t.Z=e=>{let t=e.split(".");return t.length>1?t[1]:""}},20449:function(e,t,i){"use strict";var n=i(28278),r=i(62656);t.Z=e=>e.diff_status===r.LL.ADDITION?n.E.ADDITION:e.diff_status===r.LL.REMOVAL?n.E.REMOVAL:e.diff_status===r.LL.CLASSIFYING||e.diff_status===r.LL.CLASSIFICATION_QUEUED?n.E.IN_PROGRESS:e.diff_status===r.LL.CLASSIFICATION_ADDITION||e.diff_status===r.LL.CLASSIFICATION_UPDATE?n.E.CLASSIFICATION:e.child_diff_statuses?e.child_diff_statuses[r.LL.CLASSIFYING]||e.child_diff_statuses[r.LL.CLASSIFICATION_QUEUED]?n.E.IN_PROGRESS:e.child_diff_statuses[r.LL.CLASSIFICATION_ADDITION]||e.child_diff_statuses[r.LL.CLASSIFICATION_UPDATE]?n.E.CLASSIFICATION:e.child_diff_statuses[r.LL.ADDITION]||e.child_diff_statuses[r.LL.REMOVAL]?n.E.CHANGE:e.diff_status===r.LL.MONITORED?n.E.MONITORED:e.diff_status===r.LL.MUTED?n.E.MUTED:n.E.NONE:n.E.NONE},7940:function(e,t,i){"use strict";i.d(t,{G:function(){return r}});var n=i(62656);let r=e=>{var t,i,r;return e?e.resource_type?e.resource_type:(null===(t=e.schemas)||void 0===t?void 0:t.length)?n.D$.DATABASE:(null===(i=e.tables)||void 0===i?void 0:i.length)?n.D$.SCHEMA:(null===(r=e.fields)||void 0===r?void 0:r.length)?n.D$.TABLE:n.D$.FIELD:void 0}},98559:function(e,t){"use strict";t.Z=e=>{let{name:t,urn:i,monitor_config_id:n,database_name:r,schema_name:s,table_name:o,top_level_field_name:a,top_level_field_urn:l}=e;if(!a)return t;let c=i.split(".");return l?i.replace("".concat(l).concat("."),""):([n,r,s,o,a].forEach(e=>{if(e){let t=c.indexOf(e);t>-1&&c.splice(t,1)}}),c.join("."))}},80285:function(e,t){"use strict";t.Z=e=>e.urn},36168:function(e,t){"use strict";t.Z=e=>{var t;return!!e.parent_table_urn&&null!==(t=e.sub_field_urns)&&void 0!==t&&!!t.length&&!e.top_level_field_name}},80356:function(e,t,i){"use strict";var n=i(7940),r=i(36168),s=i(62656);t.Z=e=>(0,n.G)(e)!==s.D$.FIELD||(0,r.Z)(e)},3680:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return O}});var n,r,s=i(24246),o=i(27378),a=i(35287),l=i(58754),c=i(47182),d=i(92222),u=i(59003),f=i(77181),x=i(14481),h=i(72625),L=i(70675),g=i(38347),v=i(87667),m=i(50169),j=i(80285),p=i(57454);(n=r||(r={})).DATASET="Dataset",n.CLASSIFICATION="Classification";var I=i(74241),_=i(28278),C=i(20449),A=e=>(0,C.Z)(e)===_.E.CLASSIFICATION?r.CLASSIFICATION:r.DATASET,T=i(54409),D=i(91761);let E={items:[],total:0,page:1,size:50,pages:1},S=()=>(0,s.jsx)(f.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,s.jsxs)(f.gCW,{children:[(0,s.jsx)(f.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,s.jsx)(f.xvT,{fontSize:"sm",children:"You're up to date!"})]})}),b=(0,d.Cl)();var y=e=>{let{onRowClick:t,statusFilters:i,childsStatusFilters:n}=e,[a,l]=(0,o.useState)(""),{PAGE_SIZES:c,pageSize:_,setPageSize:C,onPreviousPageClick:y,isPreviousPageDisabled:N,onNextPageClick:O,isNextPageDisabled:w,startRange:M,endRange:Z,pageIndex:R,setTotalPages:H}=(0,x.oi)(),{isFetching:F,isLoading:V,data:k}=(0,L.z8)({diff_status:i,child_diff_status:n,page:R,size:_,search:a}),{items:U,total:P,pages:z}=(0,o.useMemo)(()=>null!=k?k:E,[k]);(0,o.useEffect)(()=>{H(z)},[z,H]);let $=(0,o.useMemo)(()=>[b.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(v.Z,{result:e.row.original}),header:e=>(0,s.jsx)(x.Rr,{value:"Name",...e})}),b.accessor(e=>e.urn,{id:"project",cell:e=>(0,s.jsx)(x.G3,{value:(0,I.Z)(e.getValue())}),header:e=>(0,s.jsx)(x.Rr,{value:"Project",...e})}),b.display({id:"status",cell:e=>(0,s.jsx)(m.Z,{result:e.row.original}),header:e=>(0,s.jsx)(x.Rr,{value:"Status",...e})}),b.accessor(e=>e.system,{id:"system",cell:e=>(0,s.jsx)(x.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(x.Rr,{value:"System",...e})}),b.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,s.jsx)(x.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(x.Rr,{value:"Detected by",...e})}),b.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,s.jsx)(h.Cy,{time:e.getValue()}),header:e=>(0,s.jsx)(x.Rr,{value:"When",...e})}),b.accessor(e=>e,{id:"action",cell:e=>A(e.getValue())===r.DATASET?(0,s.jsx)(T.Z,{resource:e.getValue()}):(0,s.jsx)(D.Z,{resource:e.getValue()}),header:e=>(0,s.jsx)(x.Rr,{value:"Action",...e})})],[]),G=(0,u.b7)({getCoreRowModel:(0,d.sC)(),getGroupedRowModel:(0,d.qe)(),getExpandedRowModel:(0,d.rV)(),getRowId:j.Z,columns:$,manualPagination:!0,data:U,columnResizeMode:"onChange"});return V?(0,s.jsx)(x.I4,{rowHeight:36,numRows:36}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(x.Q$,{children:(0,s.jsxs)(f.kCb,{gap:6,align:"center",children:[(0,s.jsx)(f.xuv,{flexShrink:0,children:(0,s.jsx)(p.M,{value:a,onChange:l})}),(0,s.jsx)(g.Z,{})]})}),(0,s.jsx)(x.ZK,{tableInstance:G,onRowClick:t,emptyTableNotice:(0,s.jsx)(S,{})}),(0,s.jsx)(x.s8,{totalRows:P||0,pageSizes:c,setPageSize:C,onPreviousPageClick:y,isPreviousPageDisabled:N||F,onNextPageClick:O,isNextPageDisabled:w||F,startRange:M,endRange:Z})]})},N=i(62656),O=()=>{let{navigateToDetectionResults:e,navigateToDiscoveryResults:t}=(0,c.Z)();return(0,s.jsxs)(a.Z,{title:"Data discovery",children:[(0,s.jsx)(l.Z,{heading:"All activity"}),(0,s.jsx)(y,{onRowClick:i=>{if(A(i)===r.DATASET){e({resourceUrn:i.urn});return}t({resourceUrn:i.urn})},statusFilters:[N.LL.ADDITION,N.LL.REMOVAL,N.LL.CLASSIFICATION_ADDITION,N.LL.CLASSIFICATION_UPDATE],childsStatusFilters:[N.LL.ADDITION,N.LL.REMOVAL,N.LL.CLASSIFICATION_ADDITION,N.LL.CLASSIFICATION_UPDATE]})]})}},31883:function(e,t,i){"use strict";i.d(t,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=i(19043)}},function(e){e.O(0,[8033,6060,4481,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,[8033,6060,4481,
|
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,[8033,6060,4481,6395,3702,2479,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,[8033,6060,4481,
|
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,[8033,6060,4481,6395,3702,2479,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,[8033,6060,2858,2866,9278,4481,
|
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,[8033,6060,2858,2866,9278,4481,6395,6372,3702,1904,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,[8033,6060,2858,2866,9278,4481,
|
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,[8033,6060,2858,2866,9278,4481,6395,6372,3702,1904,2888,9774,179],function(){return n(n.s=48570)}),_N_E=n.O()}]);
|
@@ -1 +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 l=n(24246),i=n(91922),r=n(88038),s=n.n(r),a=n(86677);n(27378);var o=n(25980),d=n(90867),c=n(77830),u=()=>{let e=(0,a.useRouter)();return(0,l.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,l.jsxs)(i.xuv,{children:[(0,l.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,l.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,l.jsx)(i.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,l.jsxs)(i.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)(),m="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,g=!(x.flags.privacyRequestsConfiguration&&m),{data:p}=(0,d.JE)(void 0,{skip:g}),{data:f}=(0,d.PW)(void 0,{skip:g}),j=x.flags.privacyRequestsConfiguration&&(!p||!f)&&m;return(0,l.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,l.jsxs)(s(),{children:[(0,l.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,l.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,l.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,l.jsxs)(i.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[j?(0,l.jsx)(u,{}):null,t]})]})}},54349:function(e,t,n){"use strict";n.d(t,{Y:function(){return s}});var l=n(24246),i=n(27378);let r=(0,i.createRef)(),s=(0,i.createContext)(r);t.Z=e=>{let{children:t}=e;return(0,l.jsx)(s.Provider,{value:r,children:t})}},99811:function(e,t,n){"use strict";n.d(t,{m:function(){return i}});var l=n(27378);class i{updateTableInstance(e){this.tableInstance=e}constructor(e=null){this.tableInstance=e,this.updateTableInstance=this.updateTableInstance.bind(this)}}let r=l.createContext(new i);t.Z=r},18839:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return H}});var l=n(24246),i=n(27378),r=n(45938),s=n(77213),a=n(58754),o=n(91922),d=n(65218),c=n.n(d),u=n(16134),x=n(35258),h=n(54349),m=n(92222),g=n(59003),p=n(30002),f=n(28079),j=n(49600),v=n(99811);let y=e=>{var t;let{column:n}=e,{tableInstance:l}=(0,i.useContext)(v.Z),r=i.useMemo(()=>Array.from(n.getFacetedUniqueValues().keys()),[n]),s=i.useMemo(()=>{let e={};return r.forEach(t=>{e[t]=!1}),e},[r]);return{filterValue:null!==(t=n.getFilterValue())&&void 0!==t?t:s,clearFilterOptions:()=>{let e={};r.forEach(t=>{e[t]=!1}),n.setFilterValue(e)},toggleFilterOption:(e,t)=>{var i;let r={...null!==(i=n.getFilterValue())&&void 0!==i?i:s,[e]:t};Object.values(r).every(e=>!e)?null==l||l.setColumnFilters(null==l?void 0:l.getState().columnFilters.filter(e=>e.id!==n.id)):n.setFilterValue(r)},options:r,header:n.columnDef.header}};var b=n(57072);let w=(0,m.Cl)(),C={multifield:(e,t,n)=>n[e.original[t]]},k=()=>{let e=(0,u.T)(),{updateTableInstance:t}=(0,i.useContext)(v.Z),n=(0,u.C)(j.eo),{data:l,isLoading:r}=(0,j.Ex)({organizationName:"default_organization"});(0,b.MO)(),(0,f.fd)(),(0,p.te)();let s=(0,i.useRef)(!1);(0,i.useEffect)(()=>{if(l){let{columns:t,rows:n}=l;e((0,j.dd)(t)),s.current||(s.current=!0,0===n.length?e((0,j.ym)(!0)):e((0,j.ym)(!1)))}},[l,e]);let a=(0,i.useMemo)(()=>l?l.rows:[],[l]),o=(0,i.useMemo)(()=>(n||[]).map(e=>{let{text:t,value:n}=e;return w.accessor(e=>e[n],{id:n,header:t,cell:e=>{let{getValue:t}=e,n=t();return Array.isArray(n)?n.join(", "):n},filterFn:C.multifield})}),[n]),d=(0,g.b7)({columns:o,data:a,filterFns:C,getCoreRowModel:(0,m.sC)(),getFilteredRowModel:(0,m.vL)(),getFacetedRowModel:(0,m.o6)(),getFacetedUniqueValues:(0,m.JG)(),manualPagination:!0,columnResizeMode:"onChange"});return(0,i.useEffect)(()=>t(d),[d,t]),{...d,isLoading:r}};var F=n(83766),S=n.n(F),I=n(25980),O=n(46238),R=n(14481),M=n(22968);let _=e=>{var t,n,i;let{option:r,columnId:s,filterValue:a,toggleFilterOption:d}=e,c=(0,u.C)(b.L5),x=s===M.Ux&&null!==(n=null===(t=c.get(r))||void 0===t?void 0:t.name)&&void 0!==n?n:r;return(0,l.jsx)(o.XZJ,{value:r,width:"193px",height:"20px",mb:"25px",isChecked:null!==(i=a[r])&&void 0!==i&&i,onChange:e=>{let{target:t}=e;d(r,t.checked)},_focusWithin:{bg:"gray.100"},colorScheme:"complimentary",children:(0,l.jsx)(o.xvT,{fontSize:"sm",lineHeight:5,height:"20px",width:"170px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",children:x})},r)};var T=e=>{let{column:t}=e,{filterValue:n,toggleFilterOption:r,options:s}=y({column:t}),[a,d]=(0,i.useState)(!1),c=a?s:s.slice(0,15),u=s.length>15;return(0,l.jsx)(o.UQy,{width:"100%",allowToggle:!0,children:(0,l.jsxs)(o.Qdk,{border:"0px",children:[(0,l.jsx)(o.X6q,{height:"56px",children:(0,l.jsxs)(o.KFZ,{height:"100%",children:[(0,l.jsx)(o.xuv,{flex:"1",alignItems:"center",justifyContent:"center",textAlign:"left",children:t.columnDef.header}),(0,l.jsx)(o.XEm,{})]})}),(0,l.jsxs)(o.Hk3,{children:[(0,l.jsx)(o.MIq,{columns:3,children:c.map(e=>(0,l.jsx)(_,{columnId:t.id,option:e,filterValue:n,toggleFilterOption:r},e))}),!a&&u?(0,l.jsx)(o.wpx,{type:"text",onClick:()=>{d(!0)},children:"View more"}):null,a&&u?(0,l.jsx)(o.wpx,{type:"text",onClick:()=>{d(!1)},children:"View less"}):null]})]})},t.id)};let Z=e=>{let{heading:t,children:n}=e;return(0,l.jsxs)(o.xuv,{padding:"24px 8px 8px 24px",children:[(0,l.jsx)(o.X6q,{size:"md",lineHeight:6,fontWeight:"bold",mb:2,children:t}),n]})};var z=e=>{let t,{isOpen:n,onClose:r}=e,{tableInstance:s}=(0,i.useContext)(v.Z),a=null==s?void 0:s.getHeaderGroups(),d=(e,t)=>e.filter(e=>e.id===t).map(e=>(0,l.jsx)(T,{column:e.column},t)),c=(0,i.useMemo)(()=>(null==a?void 0:a[0].headers)||[],[a]);return(0,l.jsxs)(o.u_l,{isOpen:n,onClose:r,isCentered:!0,size:"2xl",children:[(0,l.jsx)(o.ZAr,{}),(0,l.jsxs)(o.hzk,{children:[(0,l.jsx)(o.xBx,{children:"Filters"}),(0,l.jsx)(o.olH,{}),(0,l.jsx)(o.izJ,{}),(0,l.jsx)(o.fef,{maxH:"85vh",padding:"0px",overflowX:"auto",children:(t=[M.vy,M.Ux,M.OL],c.some(e=>t.indexOf(e.id)>-1))?(0,l.jsxs)(Z,{heading:"Privacy attributes",children:[d(c,M.vy),d(c,M.Ux),d(c,M.OL)]}):null}),(0,l.jsx)(o.mzw,{children:(0,l.jsxs)(o.xuv,{display:"flex",justifyContent:"space-between",width:"100%",children:[(0,l.jsx)(o.wpx,{onClick:()=>{null==s||s.resetColumnFilters()},className:"mr-3 grow",children:"Reset Filters"}),(0,l.jsx)(o.wpx,{onClick:r,type:"primary",className:"grow",children:"Done"})]})})]})]})};let E=()=>{let{isOpen:e,onOpen:t,onClose:n}=(0,o.qY0)();return{isFilterModalOpen:e,onFilterModalOpen:t,onFilterModalClose:n}};var P=()=>{let{isFilterModalOpen:e,onFilterModalOpen:t,onFilterModalClose:n}=E(),{tableInstance:r}=(0,i.useContext)(v.Z),{systemsCount:s,dictionaryService:a}=(0,I.hz)(),d=null==r?void 0:r.getRowModel(),c=(0,i.useMemo)(()=>{let e=(null==d?void 0:d.rows)||[];return S()(null==e?void 0:e.map(e=>e.original["system.fides_key"]))},[d]);if(!r)return null;let u=c.length,x=r.getState().columnFilters.length;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(o.kCb,{justifyContent:"flex-end",flexDirection:"row",alignItems:"center",flexWrap:"wrap",rowGap:4,columnGap:4,children:[(0,l.jsx)(o.kCb,{flexGrow:1,children:(0,l.jsx)(R.HO,{globalFilter:r.getState().globalFilter,setGlobalFilter:r.setGlobalFilter})}),(0,l.jsxs)(o.kCb,{children:[s>0?(0,l.jsxs)(o.kCb,{alignItems:"center",borderRadius:"md",gap:1,marginRight:4,children:[(0,l.jsxs)(o.xvT,{fontSize:"xs",children:[u," of ",s," systems displayed"]}),a?(0,l.jsx)(O.b,{label:"Note that Global Vendor List (GVL) and Additional Consent (AC) systems are not currently included in these reports"}):null]}):null,(0,l.jsxs)(o.wpx,{"aria-label":"Open Filter Settings",onClick:t,children:["Filter",x>0?(0,l.jsx)(o.j8w,{className:"ml-2",children:x}):null]})]})]}),(0,l.jsx)(z,{isOpen:e,onClose:n})]})},q=n(38943),N=n(77830),V=()=>(0,l.jsx)(o.M5Y,{flex:1,"data-testid":"get-started-modal",backgroundColor:"gray.100",children:(0,l.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,l.jsxs)(o.Kqy,{spacing:4,children:[(0,l.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,l.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,l.jsx)(o.xvT,{children:"Let's get started!"}),(0,l.jsx)(o.xuv,{children:(0,l.jsx)(o.wpx,{href:N.xo,role:"link",type:"primary",className:"w-fit","data-testid":"add-systems-btn",children:"Add Systems"})})]})})});let W=c()(()=>Promise.all([n.e(5199),n.e(4804),n.e(9392)]).then(n.bind(n,19392)),{loadableGenerated:{webpack:()=>[19392]},ssr:!1}),A=()=>{let e=(0,u.C)(q.Xt),t=(0,i.useContext)(h.Y),{attemptAction:n}=(0,r.oI)(),[l,s]=(0,i.useState)(),a=(0,i.useCallback)(e=>{n().then(t=>{t&&s(e)})},[n,s]),o=(0,i.useCallback)(()=>{n().then(e=>{if(e&&l){if(t.current){var n;null===(n=t.current)||void 0===n||n.$id(l).unselect()}s(void 0)}})},[n,t,l]);return{isGettingStarted:e,selectedSystemId:l,setSelectedSystemId:a,resetSelectedSystemId:o}};var G=()=>{let{isGettingStarted:e,setSelectedSystemId:t,selectedSystemId:n,resetSelectedSystemId:i}=A(),{isLoading:r}=k();return r?(0,l.jsx)(o.M5Y,{width:"100%",flex:"1",children:(0,l.jsx)(o.$jN,{})}):e?(0,l.jsx)(V,{}):(0,l.jsxs)(o.kCb,{direction:"column",height:"100%",children:[(0,l.jsx)(o.xuv,{marginBottom:3,marginRight:10,children:(0,l.jsx)(P,{})}),(0,l.jsxs)(o.kCb,{position:"relative",flex:1,direction:"row",overflow:"auto",borderWidth:"1px",borderStyle:"solid",borderColor:"gray.200",children:[(0,l.jsx)(o.xuv,{flex:1,minWidth:"50%",maxWidth:"100%",children:(0,l.jsx)(W,{setSelectedSystemId:t})}),(0,l.jsx)(x.Z,{selectedSystemId:n,resetSelectedSystemId:i})]})]})},H=()=>{let e=(0,i.useMemo)(()=>new v.m,[]);return(0,l.jsxs)(s.Z,{title:"Data lineage",mainProps:{padding:"24px 0 0 40px"},children:[(0,l.jsx)(a.Z,{style:{paddingLeft:0},heading:"Data lineage"}),(0,l.jsx)(v.Z.Provider,{value:e,children:(0,l.jsxs)(h.Z,{children:[(0,l.jsx)(G,{}),(0,l.jsx)(r.eB,{})]})})]})}}},function(e){e.O(0,[8033,6060,255,4481,9951,9572,2888,9774,179],function(){return e(e.s=53910)}),_N_E=e.O()}]);
|
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 l=n(24246),i=n(77181),r=n(88038),s=n.n(r),a=n(86677);n(27378);var o=n(25980),d=n(90867),c=n(77830),u=()=>{let e=(0,a.useRouter)();return(0,l.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,l.jsxs)(i.xuv,{children:[(0,l.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,l.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,l.jsx)(i.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,l.jsxs)(i.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)(),m="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,g=!(x.flags.privacyRequestsConfiguration&&m),{data:p}=(0,d.JE)(void 0,{skip:g}),{data:f}=(0,d.PW)(void 0,{skip:g}),j=x.flags.privacyRequestsConfiguration&&(!p||!f)&&m;return(0,l.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,l.jsxs)(s(),{children:[(0,l.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,l.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,l.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,l.jsxs)(i.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[j?(0,l.jsx)(u,{}):null,t]})]})}},54349:function(e,t,n){"use strict";n.d(t,{Y:function(){return s}});var l=n(24246),i=n(27378);let r=(0,i.createRef)(),s=(0,i.createContext)(r);t.Z=e=>{let{children:t}=e;return(0,l.jsx)(s.Provider,{value:r,children:t})}},99811:function(e,t,n){"use strict";n.d(t,{m:function(){return i}});var l=n(27378);class i{updateTableInstance(e){this.tableInstance=e}constructor(e=null){this.tableInstance=e,this.updateTableInstance=this.updateTableInstance.bind(this)}}let r=l.createContext(new i);t.Z=r},18839:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return H}});var l=n(24246),i=n(27378),r=n(45938),s=n(77213),a=n(58754),o=n(77181),d=n(65218),c=n.n(d),u=n(16134),x=n(35258),h=n(54349),m=n(92222),g=n(59003),p=n(30002),f=n(28079),j=n(49600),v=n(99811);let y=e=>{var t;let{column:n}=e,{tableInstance:l}=(0,i.useContext)(v.Z),r=i.useMemo(()=>Array.from(n.getFacetedUniqueValues().keys()),[n]),s=i.useMemo(()=>{let e={};return r.forEach(t=>{e[t]=!1}),e},[r]);return{filterValue:null!==(t=n.getFilterValue())&&void 0!==t?t:s,clearFilterOptions:()=>{let e={};r.forEach(t=>{e[t]=!1}),n.setFilterValue(e)},toggleFilterOption:(e,t)=>{var i;let r={...null!==(i=n.getFilterValue())&&void 0!==i?i:s,[e]:t};Object.values(r).every(e=>!e)?null==l||l.setColumnFilters(null==l?void 0:l.getState().columnFilters.filter(e=>e.id!==n.id)):n.setFilterValue(r)},options:r,header:n.columnDef.header}};var b=n(57072);let w=(0,m.Cl)(),C={multifield:(e,t,n)=>n[e.original[t]]},k=()=>{let e=(0,u.T)(),{updateTableInstance:t}=(0,i.useContext)(v.Z),n=(0,u.C)(j.eo),{data:l,isLoading:r}=(0,j.Ex)({organizationName:"default_organization"});(0,b.MO)(),(0,f.fd)(),(0,p.te)();let s=(0,i.useRef)(!1);(0,i.useEffect)(()=>{if(l){let{columns:t,rows:n}=l;e((0,j.dd)(t)),s.current||(s.current=!0,0===n.length?e((0,j.ym)(!0)):e((0,j.ym)(!1)))}},[l,e]);let a=(0,i.useMemo)(()=>l?l.rows:[],[l]),o=(0,i.useMemo)(()=>(n||[]).map(e=>{let{text:t,value:n}=e;return w.accessor(e=>e[n],{id:n,header:t,cell:e=>{let{getValue:t}=e,n=t();return Array.isArray(n)?n.join(", "):n},filterFn:C.multifield})}),[n]),d=(0,g.b7)({columns:o,data:a,filterFns:C,getCoreRowModel:(0,m.sC)(),getFilteredRowModel:(0,m.vL)(),getFacetedRowModel:(0,m.o6)(),getFacetedUniqueValues:(0,m.JG)(),manualPagination:!0,columnResizeMode:"onChange"});return(0,i.useEffect)(()=>t(d),[d,t]),{...d,isLoading:r}};var F=n(83766),S=n.n(F),I=n(25980),O=n(91613),R=n(14481),M=n(22968);let Z=e=>{var t,n,i;let{option:r,columnId:s,filterValue:a,toggleFilterOption:d}=e,c=(0,u.C)(b.L5),x=s===M.Ux&&null!==(n=null===(t=c.get(r))||void 0===t?void 0:t.name)&&void 0!==n?n:r;return(0,l.jsx)(o.XZJ,{value:r,width:"193px",height:"20px",mb:"25px",isChecked:null!==(i=a[r])&&void 0!==i&&i,onChange:e=>{let{target:t}=e;d(r,t.checked)},_focusWithin:{bg:"gray.100"},colorScheme:"complimentary",children:(0,l.jsx)(o.xvT,{fontSize:"sm",lineHeight:5,height:"20px",width:"170px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",children:x})},r)};var _=e=>{let{column:t}=e,{filterValue:n,toggleFilterOption:r,options:s}=y({column:t}),[a,d]=(0,i.useState)(!1),c=a?s:s.slice(0,15),u=s.length>15;return(0,l.jsx)(o.UQy,{width:"100%",allowToggle:!0,children:(0,l.jsxs)(o.Qdk,{border:"0px",children:[(0,l.jsx)(o.X6q,{height:"56px",children:(0,l.jsxs)(o.KFZ,{height:"100%",children:[(0,l.jsx)(o.xuv,{flex:"1",alignItems:"center",justifyContent:"center",textAlign:"left",children:t.columnDef.header}),(0,l.jsx)(o.XEm,{})]})}),(0,l.jsxs)(o.Hk3,{children:[(0,l.jsx)(o.MIq,{columns:3,children:c.map(e=>(0,l.jsx)(Z,{columnId:t.id,option:e,filterValue:n,toggleFilterOption:r},e))}),!a&&u?(0,l.jsx)(o.wpx,{type:"text",onClick:()=>{d(!0)},children:"View more"}):null,a&&u?(0,l.jsx)(o.wpx,{type:"text",onClick:()=>{d(!1)},children:"View less"}):null]})]})},t.id)};let T=e=>{let{heading:t,children:n}=e;return(0,l.jsxs)(o.xuv,{padding:"24px 8px 8px 24px",children:[(0,l.jsx)(o.X6q,{size:"md",lineHeight:6,fontWeight:"bold",mb:2,children:t}),n]})};var z=e=>{let t,{isOpen:n,onClose:r}=e,{tableInstance:s}=(0,i.useContext)(v.Z),a=null==s?void 0:s.getHeaderGroups(),d=(e,t)=>e.filter(e=>e.id===t).map(e=>(0,l.jsx)(_,{column:e.column},t)),c=(0,i.useMemo)(()=>(null==a?void 0:a[0].headers)||[],[a]);return(0,l.jsxs)(o.u_l,{isOpen:n,onClose:r,isCentered:!0,size:"2xl",children:[(0,l.jsx)(o.ZAr,{}),(0,l.jsxs)(o.hzk,{children:[(0,l.jsx)(o.xBx,{children:"Filters"}),(0,l.jsx)(o.olH,{}),(0,l.jsx)(o.izJ,{}),(0,l.jsx)(o.fef,{maxH:"85vh",padding:"0px",overflowX:"auto",children:(t=[M.vy,M.Ux,M.OL],c.some(e=>t.indexOf(e.id)>-1))?(0,l.jsxs)(T,{heading:"Privacy attributes",children:[d(c,M.vy),d(c,M.Ux),d(c,M.OL)]}):null}),(0,l.jsx)(o.mzw,{children:(0,l.jsxs)(o.xuv,{display:"flex",justifyContent:"space-between",width:"100%",children:[(0,l.jsx)(o.wpx,{onClick:()=>{null==s||s.resetColumnFilters()},className:"mr-3 grow",children:"Reset Filters"}),(0,l.jsx)(o.wpx,{onClick:r,type:"primary",className:"grow",children:"Done"})]})})]})]})};let E=()=>{let{isOpen:e,onOpen:t,onClose:n}=(0,o.qY0)();return{isFilterModalOpen:e,onFilterModalOpen:t,onFilterModalClose:n}};var P=()=>{let{isFilterModalOpen:e,onFilterModalOpen:t,onFilterModalClose:n}=E(),{tableInstance:r}=(0,i.useContext)(v.Z),{systemsCount:s,dictionaryService:a}=(0,I.hz)(),d=null==r?void 0:r.getRowModel(),c=(0,i.useMemo)(()=>{let e=(null==d?void 0:d.rows)||[];return S()(null==e?void 0:e.map(e=>e.original["system.fides_key"]))},[d]);if(!r)return null;let u=c.length,x=r.getState().columnFilters.length;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(o.kCb,{justifyContent:"flex-end",flexDirection:"row",alignItems:"center",flexWrap:"wrap",rowGap:4,columnGap:4,children:[(0,l.jsx)(o.kCb,{flexGrow:1,children:(0,l.jsx)(R.HO,{globalFilter:r.getState().globalFilter,setGlobalFilter:r.setGlobalFilter})}),(0,l.jsxs)(o.kCb,{children:[s>0?(0,l.jsxs)(o.kCb,{alignItems:"center",borderRadius:"md",gap:1,marginRight:4,children:[(0,l.jsxs)(o.xvT,{fontSize:"xs",children:[u," of ",s," systems displayed"]}),a?(0,l.jsx)(O.Z,{label:"Note that Global Vendor List (GVL) and Additional Consent (AC) systems are not currently included in these reports"}):null]}):null,(0,l.jsxs)(o.wpx,{"aria-label":"Open Filter Settings",onClick:t,children:["Filter",x>0?(0,l.jsx)(o.j8w,{className:"ml-2",children:x}):null]})]})]}),(0,l.jsx)(z,{isOpen:e,onClose:n})]})},q=n(38943),N=n(77830),V=()=>(0,l.jsx)(o.M5Y,{flex:1,"data-testid":"get-started-modal",backgroundColor:"gray.100",children:(0,l.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,l.jsxs)(o.Kqy,{spacing:4,children:[(0,l.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,l.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,l.jsx)(o.xvT,{children:"Let's get started!"}),(0,l.jsx)(o.xuv,{children:(0,l.jsx)(o.wpx,{href:N.xo,role:"link",type:"primary",className:"w-fit","data-testid":"add-systems-btn",children:"Add Systems"})})]})})});let W=c()(()=>Promise.all([n.e(5199),n.e(4804),n.e(9392)]).then(n.bind(n,19392)),{loadableGenerated:{webpack:()=>[19392]},ssr:!1}),A=()=>{let e=(0,u.C)(q.Xt),t=(0,i.useContext)(h.Y),{attemptAction:n}=(0,r.oI)(),[l,s]=(0,i.useState)(),a=(0,i.useCallback)(e=>{n().then(t=>{t&&s(e)})},[n,s]),o=(0,i.useCallback)(()=>{n().then(e=>{if(e&&l){if(t.current){var n;null===(n=t.current)||void 0===n||n.$id(l).unselect()}s(void 0)}})},[n,t,l]);return{isGettingStarted:e,selectedSystemId:l,setSelectedSystemId:a,resetSelectedSystemId:o}};var G=()=>{let{isGettingStarted:e,setSelectedSystemId:t,selectedSystemId:n,resetSelectedSystemId:i}=A(),{isLoading:r}=k();return r?(0,l.jsx)(o.M5Y,{width:"100%",flex:"1",children:(0,l.jsx)(o.$jN,{})}):e?(0,l.jsx)(V,{}):(0,l.jsxs)(o.kCb,{direction:"column",height:"100%",children:[(0,l.jsx)(o.xuv,{marginBottom:3,marginRight:10,children:(0,l.jsx)(P,{})}),(0,l.jsxs)(o.kCb,{position:"relative",flex:1,direction:"row",overflow:"auto",borderWidth:"1px",borderStyle:"solid",borderColor:"gray.200",children:[(0,l.jsx)(o.xuv,{flex:1,minWidth:"50%",maxWidth:"100%",children:(0,l.jsx)(W,{setSelectedSystemId:t})}),(0,l.jsx)(x.Z,{selectedSystemId:n,resetSelectedSystemId:i})]})]})},H=()=>{let e=(0,i.useMemo)(()=>new v.m,[]);return(0,l.jsxs)(s.Z,{title:"Data lineage",mainProps:{padding:"24px 0 0 40px"},children:[(0,l.jsx)(a.Z,{style:{paddingLeft:0},heading:"Data lineage"}),(0,l.jsx)(v.Z.Provider,{value:e,children:(0,l.jsxs)(h.Z,{children:[(0,l.jsx)(G,{}),(0,l.jsx)(r.eB,{})]})})]})}}},function(e){e.O(0,[8033,6060,255,4481,9951,9572,2888,9774,179],function(){return e(e.s=53910)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2096],{80396:function(e,t,a){var n=a(79867),i=a(78859);e.exports=function(e,t,a,o){return i(e,t,a(n(e,t)),o)}},62079:function(e,t,a){var n=a(31137);e.exports=function(e){return"function"==typeof e?e:n}},30454:function(e,t,a){var n=a(40699);e.exports=function(e){return n(e,5)}},90271:function(e,t,a){var n=a(80396),i=a(62079);e.exports=function(e,t,a){return null==e?e:n(e,t,i(a))}},16383:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]/[collectionName]/[...subfieldNames]",function(){return a(26052)}])},12627:function(e,t,a){"use strict";var n=a(24246),i=a(79283),o=a(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:a=!1,...l}=e,{getDataCategoryDisplayNameProps:s,getDataCategories:r}=(0,o.Z)(),d=(a?r():r().filter(e=>e.active)).filter(e=>!t.includes(e.fides_key)).map(e=>{let{name:t,primaryName:a}=s(e.fides_key);return{value:e.fides_key,name:t,primaryName:a,description:e.description||""}});return(0,n.jsx)(i.l,{options:d,...l})}},79283:function(e,t,a){"use strict";a.d(t,{l:function(){return r}});var n=a(24246),i=a(91922),o=a(72707),l=a.n(o);let s=e=>{let{data:t}=e;return(0,n.jsxs)(i.jqI,{gap:12,title:"".concat(t.primaryName||"").concat(t.primaryName?": ":"").concat(t.name," - ").concat(t.description),children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("strong",{children:t.primaryName||t.name}),t.primaryName&&": ".concat(t.name)]}),(0,n.jsx)("em",{children:t.description})]})},r=e=>{let{options:t,...a}=e,o=null==t?void 0:t.map(e=>({...e,className:l().option}));return(0,n.jsx)(i.WPr,{options:o,autoFocus:!0,variant:"borderless",optionRender:s,dropdownStyle:{minWidth:"500px"},className:"w-full p-0","data-testid":"taxonomy-select",...a})}},34929:function(e,t,a){"use strict";var n=a(24246),i=a(64925),o=a.n(i),l=a(27378),s=a(16134),r=a(30002),d=a(28079),c=a(57072);let u=()=>{let{isLoading:e}=(0,d.fd)(),t=(0,s.C)(d.U3),{isLoading:a}=(0,c.MO)(),n=(0,s.C)(c.qb),{isLoading:i}=(0,r.te)();return{dataUses:t,dataSubjects:(0,s.C)(r.ZL),dataCategories:n,isLoading:e||a||i}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:a,isLoading:i}=u(),s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},r=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=t(e);if(!n)return{};let i=t(s(e,a)),o=!!n.parent_key;return{name:n.name||void 0,primaryName:o&&(null==i?void 0:i.name)!==n.name&&(null==i?void 0:i.name)||void 0}},d=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:i,primaryName:o}=r(e,t,a);return i?o?(0,n.jsxs)(l.Fragment,{children:[(0,n.jsxs)("strong",{children:[o,":"]})," ",i]},e):(0,n.jsx)("strong",{children:i},e):e},c=t=>o()(e,{fides_key:t}),m=e=>o()(t,{fides_key:e}),f=e=>o()(a,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:c,getDataUseDisplayName:e=>d(e,c,1),getDataUseDisplayNameProps:e=>r(e,c,1),getDataCategories:()=>t,getDataCategoryByKey:m,getDataCategoryDisplayName:e=>d(e,m,2),getDataCategoryDisplayNameProps:e=>r(e,m,2),getDataSubjects:()=>a,getDataSubjectByKey:f,getDataSubjectDisplayName:e=>{let t=f(e);return t?t.name:e},getPrimaryKey:s,isLoading:i}}},66112:function(e,t,a){"use strict";var n=a(24246),i=a(91922),o=a(27378),l=a(12627),s=a(34929),r=a(26183);t.Z=e=>{let{selectedTaxonomies:t,onAddTaxonomy:a,onRemoveTaxonomy:d}=e,[c,u]=(0,o.useState)(!1),{getDataCategoryDisplayName:m}=(0,s.Z)();return(0,n.jsxs)(r.Z,{children:[t.map(e=>(0,n.jsx)(i.j8w,{"data-testid":"classification-".concat(e),color:"white",closable:!0,onClose:()=>d(e),closeButtonLabel:"Remove category",children:m(e)},e)),(0,n.jsx)(i.j8w,{onClick:()=>u(!0),"data-testid":"add-category-btn",addable:!0,"aria-label":"Add category"}),c&&(0,n.jsx)(i.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,n.jsx)(l.Z,{selectedTaxonomies:t,onChange:e=>{u(!1),a(e)},onBlur:()=>u(!1),open:c})})]})}},26183:function(e,t,a){"use strict";var n=a(24246);a(27378),t.Z=e=>{let{children:t,className:a,...i}=e;return(0,n.jsx)("div",{className:"relative flex w-full flex-wrap items-center gap-2 overflow-x-auto py-2 ".concat(a||""),...i,children:t})}},76252:function(e,t,a){"use strict";var n=a(24246),i=a(91922),o=a(30454),l=a.n(o),s=a(47215),r=a.n(s),d=a(90271),c=a.n(d),u=a(79806),m=a(20386),f=a(63927),p=a(69435);t.Z=e=>{let{field:t,isOpen:a,onClose:o,dataset:s,collectionName:d,subfields:g}=e,[h]=(0,m.TG)(),{isOpen:x,onOpen:v,onClose:j}=(0,i.qY0)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.ZP,{isOpen:a,onClose:o,description:"Fields are an array of objects that describe the collection's fields. Provide additional context to this field by filling out the fields below.",header:(0,n.jsx)(u.zR,{title:"Field Name: ".concat(null==t?void 0:t.name)}),footer:(0,n.jsx)(u.Gn,{onClose:o,onDelete:v,formId:f.e}),children:(0,n.jsx)(f.Z,{values:t,onSubmit:e=>{let a=(0,p.Fk)({dataset:s,collectionName:d,subfields:g?[...g,(null==t?void 0:t.name)||""]:[(null==t?void 0:t.name)||""]}),n={...t,...e},i=l()(s);r()(i,a,n),h(i),o()},dataType:"field"})}),(0,n.jsx)(i.cVQ,{isOpen:x,onClose:j,onConfirm:()=>{let e=(0,p.Fk)({dataset:s,collectionName:d,subfields:g}),a=l()(s);c()(a,e,e=>({...e,fields:e.fields.filter(e=>e.name!==(null==t?void 0:t.name))})),h(a),o(),j()},title:"Delete Field",message:(0,n.jsxs)(i.xvT,{children:["You are about to permanently delete the field named"," ",(0,n.jsx)(i.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==t?void 0:t.name})," ","from this dataset. Are you sure you would like to continue?"]})})]})}},26052:function(e,t,a){"use strict";a.r(t);var n=a(24246),i=a(92222),o=a(59003),l=a(91922),s=a(30454),r=a.n(s),d=a(47215),c=a.n(d),u=a(86677),m=a(27378),f=a(77213),p=a(77830),g=a(58754),h=a(14481),x=a(66112),v=a(69828),j=a(41966),y=a(76252),b=a(69435);let C=(0,i.Cl)(),w=()=>(0,n.jsx)(l.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,n.jsx)(l.gCW,{children:(0,n.jsx)(l.xvT,{fontSize:"md",fontWeight:"600",children:"No fields found."})})});t.default=()=>{let e=(0,u.useRouter)(),[t]=(0,j.TG)(),a=decodeURIComponent(e.query.datasetId),s=decodeURIComponent(e.query.collectionName),d=e.query.subfieldNames.map(decodeURIComponent),{isLoading:N,data:_}=(0,j.oM)(a),k=(0,m.useMemo)(()=>(null==_?void 0:_.collections)||[],[_]).find(e=>e.name===s),R=(0,m.useMemo)(()=>(null==k?void 0:k.fields)||[],[k]),D=(0,m.useMemo)(()=>{let e=R;return d.forEach(t=>{let a=e.find(e=>e.name===t);e=(null==a?void 0:a.fields)||[]}),e},[R,d]),[Z,F]=(0,m.useState)(),T=(0,m.useCallback)(e=>{let{dataCategory:a,field:n}=e,i=n.data_categories||[],o=(0,b.Fk)({dataset:_,collectionName:s,subfields:[...d,n.name]}),l=r()(_);c()(l,"".concat(o,".data_categories"),[...i,a]),t(l)},[_,t,s,d]),I=(0,m.useCallback)(e=>{let{dataCategory:a,field:n}=e,i=n.data_categories||[],o=(0,b.Fk)({dataset:_,collectionName:s,subfields:[...d,null==n?void 0:n.name]}),l=r()(_);c()(l,"".concat(o,".data_categories"),i.filter(e=>e!==a)),t(l)},[_,t,s,d]),S=(0,m.useCallback)(t=>{let n=[...d.map(encodeURIComponent),t.name];e.push({pathname:p.y1,query:{datasetId:a,collectionName:s,subfieldNames:n}})},[a,e,s,d]),M=(0,m.useMemo)(()=>[C.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,n.jsx)(h.G3,{fontWeight:a?"semibold":"normal",value:e.getValue()})},header:e=>(0,n.jsx)(h.Rr,{value:"Field Name",...e}),size:180}),C.accessor(e=>{var t;return null===(t=e.fides_meta)||void 0===t?void 0:t.data_type},{id:"type",cell:e=>e.getValue()?(0,n.jsx)(h.A4,{value:e.getValue()}):(0,n.jsx)(h.G3,{value:void 0}),header:e=>(0,n.jsx)(h.Rr,{value:"Type",...e}),size:80}),C.accessor(e=>e.description,{id:"description",cell:e=>(0,n.jsx)(h.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,n.jsx)(h.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),C.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,n.jsx)(x.Z,{selectedTaxonomies:e.getValue()||[],onAddTaxonomy:e=>T({dataCategory:e,field:a}),onRemoveTaxonomy:e=>I({dataCategory:e,field:a})})},header:e=>(0,n.jsx)(h.Rr,{value:"Data categories",...e}),size:300,meta:{disableRowClick:!0}}),C.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,a=t.original;return(0,n.jsx)(l.Ugi,{spacing:0,"data-testid":"field-".concat(a.name),children:(0,n.jsx)(l.wpx,{size:"small",icon:(0,n.jsx)(l.dY8,{}),onClick:()=>{E(a),L(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[T,I]),q=(0,m.useMemo)(()=>Z?D.filter(e=>e.name.toLowerCase().includes(Z.toLowerCase())):D,[D,Z]),U=(0,o.b7)({getCoreRowModel:(0,i.sC)(),getFilteredRowModel:(0,i.vL)(),getSortedRowModel:(0,i.tj)(),columns:M,data:q,columnResizeMode:"onChange"}),[z,L]=(0,m.useState)(!1),[O,E]=(0,m.useState)(),P=(0,m.useMemo)(()=>{let e=[{title:"All datasets",href:p.$m},{title:a,href:{pathname:p.o5,query:{datasetId:a}},icon:v.Y[1]},{title:s,icon:v.Y[2],href:{pathname:p.RF,query:{datasetId:a,collectionName:s}}}];return d.forEach((t,n)=>{e.push({title:t,href:n<d.length-1?{pathname:p.y1,query:{datasetId:a,collectionName:s,subfieldNames:d.slice(0,n+1).map(encodeURIComponent)}}:void 0,icon:v.Y[3]})}),e},[a,s,d]);return(0,n.jsxs)(f.Z,{title:"Dataset - ".concat(a),children:[(0,n.jsx)(g.Z,{heading:"Datasets",breadcrumbItems:P}),N?(0,n.jsx)(h.I4,{rowHeight:36,numRows:15}):(0,n.jsxs)(l.xuv,{"data-testid":"fields-table",children:[(0,n.jsx)(h.Q$,{children:(0,n.jsx)(h.HO,{globalFilter:Z,setGlobalFilter:F,placeholder:"Search",testid:"fields-search"})}),(0,n.jsx)(h.ZK,{tableInstance:U,emptyTableNotice:(0,n.jsx)(w,{}),onRowClick:S,getRowIsClickable:e=>{var t;return!!(e.fields&&(null===(t=e.fields)||void 0===t?void 0:t.length)>0)}}),(0,n.jsx)(y.Z,{isOpen:z,onClose:()=>{L(!1),E(void 0)},field:O,dataset:_,collectionName:s,subfields:d})]})]})}},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}}},function(e){e.O(0,[8033,6060,2858,2866,9278,8702,4481,5487,2888,9774,179],function(){return e(e.s=16383)}),_N_E=e.O()}]);
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2096],{80396:function(e,t,a){var n=a(79867),i=a(78859);e.exports=function(e,t,a,o){return i(e,t,a(n(e,t)),o)}},62079:function(e,t,a){var n=a(31137);e.exports=function(e){return"function"==typeof e?e:n}},30454:function(e,t,a){var n=a(40699);e.exports=function(e){return n(e,5)}},90271:function(e,t,a){var n=a(80396),i=a(62079);e.exports=function(e,t,a){return null==e?e:n(e,t,i(a))}},16383:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]/[collectionName]/[...subfieldNames]",function(){return a(26052)}])},12627:function(e,t,a){"use strict";var n=a(24246),i=a(79283),o=a(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:a=!1,...l}=e,{getDataCategoryDisplayNameProps:s,getDataCategories:r}=(0,o.Z)(),d=(a?r():r().filter(e=>e.active)).filter(e=>!t.includes(e.fides_key)).map(e=>{let{name:t,primaryName:a}=s(e.fides_key);return{value:e.fides_key,name:t,primaryName:a,description:e.description||""}});return(0,n.jsx)(i.l,{options:d,...l})}},79283:function(e,t,a){"use strict";a.d(t,{l:function(){return r}});var n=a(24246),i=a(77181),o=a(72707),l=a.n(o);let s=e=>{let{data:t}=e;return(0,n.jsxs)(i.jqI,{gap:12,title:"".concat(t.primaryName||"").concat(t.primaryName?": ":"").concat(t.name," - ").concat(t.description),children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("strong",{children:t.primaryName||t.name}),t.primaryName&&": ".concat(t.name)]}),(0,n.jsx)("em",{children:t.description})]})},r=e=>{let{options:t,...a}=e,o=null==t?void 0:t.map(e=>({...e,className:l().option}));return(0,n.jsx)(i.WPr,{options:o,autoFocus:!0,variant:"borderless",optionRender:s,dropdownStyle:{minWidth:"500px"},className:"w-full p-0","data-testid":"taxonomy-select",...a})}},34929:function(e,t,a){"use strict";var n=a(24246),i=a(64925),o=a.n(i),l=a(27378),s=a(16134),r=a(30002),d=a(28079),c=a(57072);let u=()=>{let{isLoading:e}=(0,d.fd)(),t=(0,s.C)(d.U3),{isLoading:a}=(0,c.MO)(),n=(0,s.C)(c.qb),{isLoading:i}=(0,r.te)();return{dataUses:t,dataSubjects:(0,s.C)(r.ZL),dataCategories:n,isLoading:e||a||i}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:a,isLoading:i}=u(),s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},r=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=t(e);if(!n)return{};let i=t(s(e,a)),o=!!n.parent_key;return{name:n.name||void 0,primaryName:o&&(null==i?void 0:i.name)!==n.name&&(null==i?void 0:i.name)||void 0}},d=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:i,primaryName:o}=r(e,t,a);return i?o?(0,n.jsxs)(l.Fragment,{children:[(0,n.jsxs)("strong",{children:[o,":"]})," ",i]},e):(0,n.jsx)("strong",{children:i},e):e},c=t=>o()(e,{fides_key:t}),m=e=>o()(t,{fides_key:e}),f=e=>o()(a,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:c,getDataUseDisplayName:e=>d(e,c,1),getDataUseDisplayNameProps:e=>r(e,c,1),getDataCategories:()=>t,getDataCategoryByKey:m,getDataCategoryDisplayName:e=>d(e,m,2),getDataCategoryDisplayNameProps:e=>r(e,m,2),getDataSubjects:()=>a,getDataSubjectByKey:f,getDataSubjectDisplayName:e=>{let t=f(e);return t?t.name:e},getPrimaryKey:s,isLoading:i}}},66112:function(e,t,a){"use strict";var n=a(24246),i=a(77181),o=a(27378),l=a(12627),s=a(34929),r=a(26183);t.Z=e=>{let{selectedTaxonomies:t,onAddTaxonomy:a,onRemoveTaxonomy:d}=e,[c,u]=(0,o.useState)(!1),{getDataCategoryDisplayName:m}=(0,s.Z)();return(0,n.jsxs)(r.Z,{children:[t.map(e=>(0,n.jsx)(i.j8w,{"data-testid":"classification-".concat(e),color:"white",closable:!0,onClose:()=>d(e),closeButtonLabel:"Remove category",children:m(e)},e)),(0,n.jsx)(i.j8w,{onClick:()=>u(!0),"data-testid":"add-category-btn",addable:!0,"aria-label":"Add category"}),c&&(0,n.jsx)(i.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,n.jsx)(l.Z,{selectedTaxonomies:t,onChange:e=>{u(!1),a(e)},onBlur:()=>u(!1),open:c})})]})}},26183:function(e,t,a){"use strict";var n=a(24246);a(27378),t.Z=e=>{let{children:t,className:a,...i}=e;return(0,n.jsx)("div",{className:"relative flex w-full flex-wrap items-center gap-2 overflow-x-auto py-2 ".concat(a||""),...i,children:t})}},76252:function(e,t,a){"use strict";var n=a(24246),i=a(77181),o=a(30454),l=a.n(o),s=a(47215),r=a.n(s),d=a(90271),c=a.n(d),u=a(79806),m=a(20386),f=a(63927),p=a(69435);t.Z=e=>{let{field:t,isOpen:a,onClose:o,dataset:s,collectionName:d,subfields:g}=e,[h]=(0,m.TG)(),{isOpen:x,onOpen:v,onClose:j}=(0,i.qY0)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.ZP,{isOpen:a,onClose:o,description:"Fields are an array of objects that describe the collection's fields. Provide additional context to this field by filling out the fields below.",header:(0,n.jsx)(u.zR,{title:"Field Name: ".concat(null==t?void 0:t.name)}),footer:(0,n.jsx)(u.Gn,{onClose:o,onDelete:v,formId:f.e}),children:(0,n.jsx)(f.Z,{values:t,onSubmit:e=>{let a=(0,p.Fk)({dataset:s,collectionName:d,subfields:g?[...g,(null==t?void 0:t.name)||""]:[(null==t?void 0:t.name)||""]}),n={...t,...e},i=l()(s);r()(i,a,n),h(i),o()},dataType:"field"})}),(0,n.jsx)(i.cVQ,{isOpen:x,onClose:j,onConfirm:()=>{let e=(0,p.Fk)({dataset:s,collectionName:d,subfields:g}),a=l()(s);c()(a,e,e=>({...e,fields:e.fields.filter(e=>e.name!==(null==t?void 0:t.name))})),h(a),o(),j()},title:"Delete Field",message:(0,n.jsxs)(i.xvT,{children:["You are about to permanently delete the field named"," ",(0,n.jsx)(i.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==t?void 0:t.name})," ","from this dataset. Are you sure you would like to continue?"]})})]})}},26052:function(e,t,a){"use strict";a.r(t);var n=a(24246),i=a(92222),o=a(59003),l=a(77181),s=a(30454),r=a.n(s),d=a(47215),c=a.n(d),u=a(86677),m=a(27378),f=a(77213),p=a(77830),g=a(58754),h=a(14481),x=a(66112),v=a(69828),j=a(41966),y=a(76252),b=a(69435);let C=(0,i.Cl)(),w=()=>(0,n.jsx)(l.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,n.jsx)(l.gCW,{children:(0,n.jsx)(l.xvT,{fontSize:"md",fontWeight:"600",children:"No fields found."})})});t.default=()=>{let e=(0,u.useRouter)(),[t]=(0,j.TG)(),a=decodeURIComponent(e.query.datasetId),s=decodeURIComponent(e.query.collectionName),d=e.query.subfieldNames.map(decodeURIComponent),{isLoading:N,data:_}=(0,j.oM)(a),k=(0,m.useMemo)(()=>(null==_?void 0:_.collections)||[],[_]).find(e=>e.name===s),R=(0,m.useMemo)(()=>(null==k?void 0:k.fields)||[],[k]),D=(0,m.useMemo)(()=>{let e=R;return d.forEach(t=>{let a=e.find(e=>e.name===t);e=(null==a?void 0:a.fields)||[]}),e},[R,d]),[Z,F]=(0,m.useState)(),T=(0,m.useCallback)(e=>{let{dataCategory:a,field:n}=e,i=n.data_categories||[],o=(0,b.Fk)({dataset:_,collectionName:s,subfields:[...d,n.name]}),l=r()(_);c()(l,"".concat(o,".data_categories"),[...i,a]),t(l)},[_,t,s,d]),I=(0,m.useCallback)(e=>{let{dataCategory:a,field:n}=e,i=n.data_categories||[],o=(0,b.Fk)({dataset:_,collectionName:s,subfields:[...d,null==n?void 0:n.name]}),l=r()(_);c()(l,"".concat(o,".data_categories"),i.filter(e=>e!==a)),t(l)},[_,t,s,d]),S=(0,m.useCallback)(t=>{let n=[...d.map(encodeURIComponent),t.name];e.push({pathname:p.y1,query:{datasetId:a,collectionName:s,subfieldNames:n}})},[a,e,s,d]),M=(0,m.useMemo)(()=>[C.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,n.jsx)(h.G3,{fontWeight:a?"semibold":"normal",value:e.getValue()})},header:e=>(0,n.jsx)(h.Rr,{value:"Field Name",...e}),size:180}),C.accessor(e=>{var t;return null===(t=e.fides_meta)||void 0===t?void 0:t.data_type},{id:"type",cell:e=>e.getValue()?(0,n.jsx)(h.A4,{value:e.getValue()}):(0,n.jsx)(h.G3,{value:void 0}),header:e=>(0,n.jsx)(h.Rr,{value:"Type",...e}),size:80}),C.accessor(e=>e.description,{id:"description",cell:e=>(0,n.jsx)(h.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,n.jsx)(h.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),C.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,n.jsx)(x.Z,{selectedTaxonomies:e.getValue()||[],onAddTaxonomy:e=>T({dataCategory:e,field:a}),onRemoveTaxonomy:e=>I({dataCategory:e,field:a})})},header:e=>(0,n.jsx)(h.Rr,{value:"Data categories",...e}),size:300,meta:{disableRowClick:!0}}),C.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,a=t.original;return(0,n.jsx)(l.Ugi,{spacing:0,"data-testid":"field-".concat(a.name),children:(0,n.jsx)(l.wpx,{size:"small",icon:(0,n.jsx)(l.dY8,{}),onClick:()=>{E(a),L(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[T,I]),q=(0,m.useMemo)(()=>Z?D.filter(e=>e.name.toLowerCase().includes(Z.toLowerCase())):D,[D,Z]),U=(0,o.b7)({getCoreRowModel:(0,i.sC)(),getFilteredRowModel:(0,i.vL)(),getSortedRowModel:(0,i.tj)(),columns:M,data:q,columnResizeMode:"onChange"}),[z,L]=(0,m.useState)(!1),[O,E]=(0,m.useState)(),P=(0,m.useMemo)(()=>{let e=[{title:"All datasets",href:p.$m},{title:a,href:{pathname:p.o5,query:{datasetId:a}},icon:v.Y[1]},{title:s,icon:v.Y[2],href:{pathname:p.RF,query:{datasetId:a,collectionName:s}}}];return d.forEach((t,n)=>{e.push({title:t,href:n<d.length-1?{pathname:p.y1,query:{datasetId:a,collectionName:s,subfieldNames:d.slice(0,n+1).map(encodeURIComponent)}}:void 0,icon:v.Y[3]})}),e},[a,s,d]);return(0,n.jsxs)(f.Z,{title:"Dataset - ".concat(a),children:[(0,n.jsx)(g.Z,{heading:"Datasets",breadcrumbItems:P}),N?(0,n.jsx)(h.I4,{rowHeight:36,numRows:15}):(0,n.jsxs)(l.xuv,{"data-testid":"fields-table",children:[(0,n.jsx)(h.Q$,{children:(0,n.jsx)(h.HO,{globalFilter:Z,setGlobalFilter:F,placeholder:"Search",testid:"fields-search"})}),(0,n.jsx)(h.ZK,{tableInstance:U,emptyTableNotice:(0,n.jsx)(w,{}),onRowClick:S,getRowIsClickable:e=>{var t;return!!(e.fields&&(null===(t=e.fields)||void 0===t?void 0:t.length)>0)}}),(0,n.jsx)(y.Z,{isOpen:z,onClose:()=>{L(!1),E(void 0)},field:O,dataset:_,collectionName:s,subfields:d})]})]})}},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}}},function(e){e.O(0,[8033,6060,2858,2866,9278,8702,4481,5487,2888,9774,179],function(){return e(e.s=16383)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6556],{80396:function(e,t,a){var n=a(79867),i=a(78859);e.exports=function(e,t,a,o){return i(e,t,a(n(e,t)),o)}},62079:function(e,t,a){var n=a(31137);e.exports=function(e){return"function"==typeof e?e:n}},30454:function(e,t,a){var n=a(40699);e.exports=function(e){return n(e,5)}},90271:function(e,t,a){var n=a(80396),i=a(62079);e.exports=function(e,t,a){return null==e?e:n(e,t,i(a))}},59972:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]/[collectionName]",function(){return a(47355)}])},12627:function(e,t,a){"use strict";var n=a(24246),i=a(79283),o=a(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:a=!1,...l}=e,{getDataCategoryDisplayNameProps:s,getDataCategories:r}=(0,o.Z)(),d=(a?r():r().filter(e=>e.active)).filter(e=>!t.includes(e.fides_key)).map(e=>{let{name:t,primaryName:a}=s(e.fides_key);return{value:e.fides_key,name:t,primaryName:a,description:e.description||""}});return(0,n.jsx)(i.l,{options:d,...l})}},79283:function(e,t,a){"use strict";a.d(t,{l:function(){return r}});var n=a(24246),i=a(
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6556],{80396:function(e,t,a){var n=a(79867),i=a(78859);e.exports=function(e,t,a,o){return i(e,t,a(n(e,t)),o)}},62079:function(e,t,a){var n=a(31137);e.exports=function(e){return"function"==typeof e?e:n}},30454:function(e,t,a){var n=a(40699);e.exports=function(e){return n(e,5)}},90271:function(e,t,a){var n=a(80396),i=a(62079);e.exports=function(e,t,a){return null==e?e:n(e,t,i(a))}},59972:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]/[collectionName]",function(){return a(47355)}])},12627:function(e,t,a){"use strict";var n=a(24246),i=a(79283),o=a(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:a=!1,...l}=e,{getDataCategoryDisplayNameProps:s,getDataCategories:r}=(0,o.Z)(),d=(a?r():r().filter(e=>e.active)).filter(e=>!t.includes(e.fides_key)).map(e=>{let{name:t,primaryName:a}=s(e.fides_key);return{value:e.fides_key,name:t,primaryName:a,description:e.description||""}});return(0,n.jsx)(i.l,{options:d,...l})}},79283:function(e,t,a){"use strict";a.d(t,{l:function(){return r}});var n=a(24246),i=a(77181),o=a(72707),l=a.n(o);let s=e=>{let{data:t}=e;return(0,n.jsxs)(i.jqI,{gap:12,title:"".concat(t.primaryName||"").concat(t.primaryName?": ":"").concat(t.name," - ").concat(t.description),children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("strong",{children:t.primaryName||t.name}),t.primaryName&&": ".concat(t.name)]}),(0,n.jsx)("em",{children:t.description})]})},r=e=>{let{options:t,...a}=e,o=null==t?void 0:t.map(e=>({...e,className:l().option}));return(0,n.jsx)(i.WPr,{options:o,autoFocus:!0,variant:"borderless",optionRender:s,dropdownStyle:{minWidth:"500px"},className:"w-full p-0","data-testid":"taxonomy-select",...a})}},34929:function(e,t,a){"use strict";var n=a(24246),i=a(64925),o=a.n(i),l=a(27378),s=a(16134),r=a(30002),d=a(28079),c=a(57072);let u=()=>{let{isLoading:e}=(0,d.fd)(),t=(0,s.C)(d.U3),{isLoading:a}=(0,c.MO)(),n=(0,s.C)(c.qb),{isLoading:i}=(0,r.te)();return{dataUses:t,dataSubjects:(0,s.C)(r.ZL),dataCategories:n,isLoading:e||a||i}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:a,isLoading:i}=u(),s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},r=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=t(e);if(!n)return{};let i=t(s(e,a)),o=!!n.parent_key;return{name:n.name||void 0,primaryName:o&&(null==i?void 0:i.name)!==n.name&&(null==i?void 0:i.name)||void 0}},d=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:i,primaryName:o}=r(e,t,a);return i?o?(0,n.jsxs)(l.Fragment,{children:[(0,n.jsxs)("strong",{children:[o,":"]})," ",i]},e):(0,n.jsx)("strong",{children:i},e):e},c=t=>o()(e,{fides_key:t}),m=e=>o()(t,{fides_key:e}),f=e=>o()(a,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:c,getDataUseDisplayName:e=>d(e,c,1),getDataUseDisplayNameProps:e=>r(e,c,1),getDataCategories:()=>t,getDataCategoryByKey:m,getDataCategoryDisplayName:e=>d(e,m,2),getDataCategoryDisplayNameProps:e=>r(e,m,2),getDataSubjects:()=>a,getDataSubjectByKey:f,getDataSubjectDisplayName:e=>{let t=f(e);return t?t.name:e},getPrimaryKey:s,isLoading:i}}},66112:function(e,t,a){"use strict";var n=a(24246),i=a(77181),o=a(27378),l=a(12627),s=a(34929),r=a(26183);t.Z=e=>{let{selectedTaxonomies:t,onAddTaxonomy:a,onRemoveTaxonomy:d}=e,[c,u]=(0,o.useState)(!1),{getDataCategoryDisplayName:m}=(0,s.Z)();return(0,n.jsxs)(r.Z,{children:[t.map(e=>(0,n.jsx)(i.j8w,{"data-testid":"classification-".concat(e),color:"white",closable:!0,onClose:()=>d(e),closeButtonLabel:"Remove category",children:m(e)},e)),(0,n.jsx)(i.j8w,{onClick:()=>u(!0),"data-testid":"add-category-btn",addable:!0,"aria-label":"Add category"}),c&&(0,n.jsx)(i.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,n.jsx)(l.Z,{selectedTaxonomies:t,onChange:e=>{u(!1),a(e)},onBlur:()=>u(!1),open:c})})]})}},26183:function(e,t,a){"use strict";var n=a(24246);a(27378),t.Z=e=>{let{children:t,className:a,...i}=e;return(0,n.jsx)("div",{className:"relative flex w-full flex-wrap items-center gap-2 overflow-x-auto py-2 ".concat(a||""),...i,children:t})}},76252:function(e,t,a){"use strict";var n=a(24246),i=a(77181),o=a(30454),l=a.n(o),s=a(47215),r=a.n(s),d=a(90271),c=a.n(d),u=a(79806),m=a(20386),f=a(63927),p=a(69435);t.Z=e=>{let{field:t,isOpen:a,onClose:o,dataset:s,collectionName:d,subfields:x}=e,[g]=(0,m.TG)(),{isOpen:v,onOpen:h,onClose:j}=(0,i.qY0)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.ZP,{isOpen:a,onClose:o,description:"Fields are an array of objects that describe the collection's fields. Provide additional context to this field by filling out the fields below.",header:(0,n.jsx)(u.zR,{title:"Field Name: ".concat(null==t?void 0:t.name)}),footer:(0,n.jsx)(u.Gn,{onClose:o,onDelete:h,formId:f.e}),children:(0,n.jsx)(f.Z,{values:t,onSubmit:e=>{let a=(0,p.Fk)({dataset:s,collectionName:d,subfields:x?[...x,(null==t?void 0:t.name)||""]:[(null==t?void 0:t.name)||""]}),n={...t,...e},i=l()(s);r()(i,a,n),g(i),o()},dataType:"field"})}),(0,n.jsx)(i.cVQ,{isOpen:v,onClose:j,onConfirm:()=>{let e=(0,p.Fk)({dataset:s,collectionName:d,subfields:x}),a=l()(s);c()(a,e,e=>({...e,fields:e.fields.filter(e=>e.name!==(null==t?void 0:t.name))})),g(a),o(),j()},title:"Delete Field",message:(0,n.jsxs)(i.xvT,{children:["You are about to permanently delete the field named"," ",(0,n.jsx)(i.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==t?void 0:t.name})," ","from this dataset. Are you sure you would like to continue?"]})})]})}},47355:function(e,t,a){"use strict";a.r(t);var n=a(24246),i=a(92222),o=a(59003),l=a(77181),s=a(86677),r=a(27378),d=a(77213),c=a(77830),u=a(58754),m=a(14481),f=a(66112),p=a(69828),x=a(41966),g=a(76252),v=a(69435);let h=(0,i.Cl)(),j=()=>(0,n.jsx)(l.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,n.jsx)(l.gCW,{children:(0,n.jsx)(l.xvT,{fontSize:"md",fontWeight:"600",children:"No fields found."})})});t.default=()=>{let e=(0,s.useRouter)(),[t]=(0,x.TG)(),a=decodeURIComponent(e.query.datasetId),y=decodeURIComponent(e.query.collectionName),{isLoading:b,data:C}=(0,x.oM)(a),w=(0,r.useMemo)(()=>(null==C?void 0:C.collections)||[],[C]),_=w.find(e=>e.name===y),N=(0,r.useMemo)(()=>(null==_?void 0:_.fields)||[],[_]),[R,k]=(0,r.useState)(),D=(0,r.useCallback)(e=>{let{dataCategory:a,field:n}=e,i=n.data_categories||[],o={...n,data_categories:[...i,a]},l=w.indexOf(_),s=_.fields.indexOf(n);t((0,v._n)(C,o,l,s))},[_,w,C,t]),Z=(0,r.useCallback)(e=>{var a;let{dataCategory:n,field:i}=e,o={...i,data_categories:null===(a=i.data_categories)||void 0===a?void 0:a.filter(e=>e!==n)},l=w.indexOf(_),s=_.fields.indexOf(i);t((0,v._n)(C,o,l,s))},[_,w,C,t]),I=(0,r.useCallback)(t=>{e.push({pathname:c.y1,query:{datasetId:encodeURIComponent(a),collectionName:encodeURIComponent(y),subfieldNames:encodeURIComponent(t.name)}})},[a,e,y]),T=(0,r.useMemo)(()=>[h.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,n.jsx)(m.G3,{fontWeight:a?"semibold":"normal",value:e.getValue()})},header:e=>(0,n.jsx)(m.Rr,{value:"Field Name",...e}),size:180}),h.accessor(e=>{var t;return null===(t=e.fides_meta)||void 0===t?void 0:t.data_type},{id:"type",cell:e=>e.getValue()?(0,n.jsx)(m.A4,{value:e.getValue()}):(0,n.jsx)(m.G3,{value:void 0}),header:e=>(0,n.jsx)(m.Rr,{value:"Type",...e}),size:80}),h.accessor(e=>e.description,{id:"description",cell:e=>(0,n.jsx)(m.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,n.jsx)(m.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),h.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,n.jsx)(f.Z,{selectedTaxonomies:e.getValue()||[],onAddTaxonomy:e=>D({dataCategory:e,field:a}),onRemoveTaxonomy:e=>Z({dataCategory:e,field:a})})},header:e=>(0,n.jsx)(m.Rr,{value:"Data categories",...e}),size:300,meta:{disableRowClick:!0}}),h.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,a=t.original;return(0,n.jsx)(l.Ugi,{spacing:0,"data-testid":"field-".concat(a.name),children:(0,n.jsx)(l.wpx,{size:"small",icon:(0,n.jsx)(l.dY8,{}),onClick:()=>{z(a),M(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[D,Z]),S=(0,r.useMemo)(()=>R?N.filter(e=>e.name.toLowerCase().includes(R.toLowerCase())):N,[N,R]),O=(0,o.b7)({getCoreRowModel:(0,i.sC)(),getFilteredRowModel:(0,i.vL)(),getSortedRowModel:(0,i.tj)(),columns:T,data:S,columnResizeMode:"onChange"}),[F,M]=(0,r.useState)(!1),[U,z]=(0,r.useState)(),L=(0,r.useMemo)(()=>[{title:"All datasets",href:c.$m},{title:a,href:{pathname:c.o5,query:{datasetId:a}},icon:p.Y[1]},{title:y,icon:p.Y[2]}],[a,y]);return(0,n.jsxs)(d.Z,{title:"Dataset - ".concat(a),children:[(0,n.jsx)(u.Z,{heading:"Datasets",breadcrumbItems:L}),b?(0,n.jsx)(m.I4,{rowHeight:36,numRows:15}):(0,n.jsxs)(l.xuv,{"data-testid":"fields-table",children:[(0,n.jsx)(m.Q$,{children:(0,n.jsx)(m.HO,{globalFilter:R,setGlobalFilter:k,placeholder:"Search",testid:"fields-search"})}),(0,n.jsx)(m.ZK,{tableInstance:O,emptyTableNotice:(0,n.jsx)(j,{}),onRowClick:I,getRowIsClickable:e=>{var t;return!!(e.fields&&(null===(t=e.fields)||void 0===t?void 0:t.length)>0)}}),(0,n.jsx)(g.Z,{isOpen:F,onClose:()=>{M(!1),z(void 0)},field:U,dataset:C,collectionName:y})]})]})}},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}}},function(e){e.O(0,[8033,6060,2858,2866,9278,8702,4481,5487,2888,9774,179],function(){return e(e.s=59972)}),_N_E=e.O()}]);
|
@@ -1 +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(
|
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(77181),a=o(86677),c=o(27378),d=o(77213),r=o(77830),u=o(58754),m=o(14481),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,[8033,6060,9729,4481,5487,2888,9774,179],function(){return e(e.s=33187)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8538],{73846:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/new",function(){return r(17294)}])},812:function(e,t,r){"use strict";r.d(t,{D4:function(){return a.D4},MM:function(){return f},Ot:function(){return c},c6:function(){return s},cj:function(){return g},e$:function(){return l},fn:function(){return o},iC:function(){return h},nU:function(){return u},tB:function(){return d}});var n,s,a=r(19043);let i="An unexpected error occurred. Please try again.",l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if((0,a.Bw)(e)){if((0,a.hE)(e.data))return e.data.detail;if((0,a.cz)(e.data)){var r;let t=null===(r=e.data.detail)||void 0===r?void 0:r[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,a.Dy)(e.data)||404===e.status&&(0,a.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function o(e){return"object"==typeof e&&null!=e&&"status"in e}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function d(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:i};if((0,a.oK)(e))return{status:e.originalStatus,message:e.data};if((0,a.Bw)(e)){let{status:r}=e;return{status:r,message:l(e,t.message)}}return t},f=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(n=s||(s={})).GVL="gvl",n.AC="gacp",n.COMPASS="compass";let h={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},g=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},14047:function(e,t,r){"use strict";r.d(t,{H:function(){return a},V:function(){return n.V}});var n=r(84306),s=r(812);let a=()=>{let{errorAlert:e}=(0,n.V)();return{handleError:t=>{let r="An unexpected error occurred. Please try again.";(0,s.Ot)(t)?r=t.data.detail:(0,s.tB)(t)&&(r=t.data.detail[0].msg),e(r)}}}},84306:function(e,t,r){"use strict";r.d(t,{V:function(){return a}});var n=r(24246),s=r(91922);let a=()=>{let e=(0,s.pmc)();return{errorAlert:(t,r,a)=>{let i={...a,position:(null==a?void 0:a.position)||"top",render:e=>{let{onClose:a}=e;return(0,n.jsxs)(s.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,n.jsx)(s.zMQ,{}),(0,n.jsxs)(s.xuv,{children:[r&&(0,n.jsx)(s.CdC,{children:r}),(0,n.jsx)(s.XaZ,{children:t})]}),(0,n.jsx)(s.PZ7,{onClick:a,position:"relative",right:0,size:"sm",top:-1})]})}};(null==a?void 0:a.id)&&e.isActive(a.id)?e.update(a.id,i):e(i)},successAlert:(t,r,a)=>{let i={...a,position:(null==a?void 0:a.position)||"top",render:e=>{let{onClose:a}=e;return(0,n.jsxs)(s.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,n.jsx)(s.zMQ,{}),(0,n.jsxs)(s.xuv,{children:[r&&(0,n.jsx)(s.CdC,{children:r}),(0,n.jsx)(s.XaZ,{children:t})]}),(0,n.jsx)(s.PZ7,{onClick:a,position:"relative",right:0,size:"sm",top:-1})]})}};(null==a?void 0:a.id)&&e.isActive(a.id)?e.update(a.id,i):e(i)}}}},58452:function(e,t,r){"use strict";var n=r(24246),s=r(91922);t.Z=e=>{let{isOpen:t,onClose:r,onConfirm:a,onCancel:i,title:l,message:o,cancelButtonText:c,continueButtonText:d,isLoading:u,returnFocusOnClose:f,isCentered:h,testId:g="confirmation-modal",icon:x}=e;return(0,n.jsxs)(s.u_l,{isOpen:t,onClose:r,size:"lg",returnFocusOnClose:null==f||f,isCentered:h,children:[(0,n.jsx)(s.ZAr,{}),(0,n.jsxs)(s.hzk,{textAlign:"center",p:6,"data-testid":g,children:[x?(0,n.jsx)(s.M5Y,{mb:2,children:x}):null,l?(0,n.jsx)(s.xBx,{fontWeight:"medium",pb:0,children:l}):null,o?(0,n.jsx)(s.fef,{children:o}):null,(0,n.jsx)(s.mzw,{children:(0,n.jsxs)(s.MIq,{columns:2,width:"100%",children:[(0,n.jsx)(s.wpx,{onClick:()=>{i&&i(),r()},size:"large",className:"mr-3","data-testid":"cancel-btn",disabled:u,children:c||"Cancel"}),(0,n.jsx)(s.wpx,{type:"primary",size:"large",onClick:a,"data-testid":"continue-btn",loading:u,children:d||"Continue"})]})})]})]})}},46628:function(e,t,r){"use strict";r.d(t,{MA:function(){return l},Vo:function(){return c},t5:function(){return o}});var n=r(24246),s=r(91922);let a=e=>{let{children:t,title:r="Success"}=e;return(0,n.jsxs)(s.xvT,{"data-testid":"toast-success-msg",children:[(0,n.jsxs)("strong",{children:[r,":"]})," ",t]})},i=e=>{let{children:t}=e;return(0,n.jsxs)(s.xvT,{"data-testid":"toast-error-msg",children:[(0,n.jsx)("strong",{children:"Error:"})," ",t]})},l={variant:"subtle",position:"top",description:"",duration:5e3,status:"success",isClosable:!0},o=(e,t)=>{let r=(0,n.jsx)(a,{title:t,children:e});return{...l,description:r}},c=e=>{let t=(0,n.jsx)(i,{children:e});return{...l,description:t,status:"error"}}},39715:function(e,t,r){"use strict";var n=r(24246),s=r(91922);r(27378),t.Z=e=>{let{isEmptyState:t,yamlError:r}=e;return(0,n.jsx)(s.Rg9,{in:!0,children:(0,n.jsxs)(s.xuv,{w:"fit-content",bg:"white",p:3,borderRadius:3,children:[(0,n.jsxs)(s.Ugi,{children:[(0,n.jsx)(s.X6q,{as:"h5",color:"gray.700",size:"xs",children:"YAML"}),(0,n.jsx)(s.Vp9,{colorScheme:"red",size:"sm",variant:"solid",children:"Error"})]}),(0,n.jsx)(s.xuv,{bg:"red.50",border:"1px solid",borderColor:"red.300",color:"red.300",mt:"16px",borderRadius:"6px",children:(0,n.jsxs)(s.Ugi,{alignItems:"flex-start",margin:["14px","17px","14px","17px"],children:[(0,n.jsx)(s.f9v,{}),t&&(0,n.jsxs)(s.xuv,{children:[(0,n.jsx)(s.X6q,{as:"h5",color:"red.500",fontWeight:"semibold",size:"xs",children:"Error message:"}),(0,n.jsx)(s.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:"Yaml system is required"})]}),r&&(0,n.jsxs)(s.xuv,{children:[(0,n.jsx)(s.X6q,{as:"h5",color:"red.500",fontWeight:"semibold",size:"xs",children:"Error message:"}),(0,n.jsx)(s.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:r.message}),(0,n.jsx)(s.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:r.reason}),(0,n.jsxs)(s.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:["Ln ",(0,n.jsx)("b",{children:r.mark.line}),", Col"," ",(0,n.jsx)("b",{children:r.mark.column}),", Pos"," ",(0,n.jsx)("b",{children:r.mark.position})]})]})]})})]})})}},17294:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return N}});var n=r(24246),s=r(91922),a=r(27378),i=r(25980),l=r(46238),o=r(77213),c=r(77830),d=r(58754),u=r(34090),f=r(86677),h=r(16125),g=r(55484),x=r(40324),m=r(812),y=r(58452),p=r(46628),j=r(83265),v=r(32885),b=r(16643),C=r(20386);let w=e=>!("system_type"in e),A={url:"",classify:!1,classifyConfirmed:!1},_=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 z=()=>{let[e,{isLoading:t}]=(0,C.pR)(),[r,{isLoading:a}]=(0,C.IR)(),[l,{isLoading:o}]=(0,v.Du)(),d=t||a||o,g=(0,s.pmc)(),z=(0,f.useRouter)(),S=(0,i.hz)(),k=(0,h.I0)(),D=async t=>{var r;let n=await e({organization_key:j.Av,generate:{config:{connection_string:t.url},target:b.GC.DB,type:b.j.DATASETS}});if((0,m.D4)(n))return{error:(0,m.e$)(n.error)};let s=(null!==(r=n.data.generate_results)&&void 0!==r?r:[]).filter(w);return s&&s.length>0?{datasets:s}:{error:"Unable to generate a dataset with this connection."}},L=async e=>{let t=await r(e);return(0,m.D4)(t)?{error:(0,m.e$)(t.error)}:{dataset:t.data}},E=async e=>{let{values:t,datasets:r}=e,n=await l({dataset_schemas:r.map(e=>{let{name:t,fides_key:r}=e;return{fides_key:r,name:t}}),schema_config:{organization_key:j.Av,generate:{config:{connection_string:t.url},target:b.GC.DB,type:b.j.DATASETS}}});return(0,m.D4)(n)?{error:(0,m.e$)(n.error)}:{classifyInstances:n.data.classify_instances}},N=async e=>{var t;let r=await D(e);if("error"in r){g((0,p.Vo)(r.error));return}let n=await Promise.all(r.datasets.map(e=>L(e))),s=null!==(t=n.find(e=>"error"in e))&&void 0!==t?t:n[0];if("error"in s){g((0,p.Vo)(s.error));return}if(!e.classify){g((0,p.t5)("Generated ".concat(s.dataset.name," dataset"))),z.push({pathname:c.o5,query:{datasetId:s.dataset.fides_key}});return}let a=await E({values:e,datasets:r.datasets});if("error"in a){g((0,p.Vo)(a.error));return}g((0,p.t5)("Generate and classify are now in progress")),k((0,C.Zl)(s.dataset.fides_key)),z.push("/dataset")};return(0,n.jsx)(u.J9,{initialValues:{...A,classify:S.plus},validationSchema:_,onSubmit:N,validateOnChange:!1,validateOnBlur:!1,children:e=>{let{isSubmitting:t,errors:r,values:a,submitForm:i,resetForm:l,setFieldValue:o}=e;return(0,n.jsxs)(u.l0,{children:[(0,n.jsxs)(s.gCW,{spacing:8,align:"left",children:[(0,n.jsx)(s.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,n.jsx)(s.xuv,{children:(0,n.jsx)(x.j0,{name:"url",label:"Database URL"})}),S.plus?(0,n.jsx)(x.w8,{name:"classify",label:"Classify dataset",tooltip:"Use Fides Classify to suggest labels based on your data."}):null,(0,n.jsx)(s.xuv,{children:(0,n.jsx)(s.wpx,{type:"primary",htmlType:"submit",loading:t||d,disabled:t||d,"data-testid":"create-dataset-btn",children:"Generate dataset"})})]}),(0,n.jsx)(y.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!==r.classifyConfirmed,onClose:()=>{l({values:{...a,classifyConfirmed:!1}})},onConfirm:()=>{o("classifyConfirmed",!0),setTimeout(()=>{i()},0)}})]})}})},S=r(66527),k=r(14047),D=r(41207),L=r(39715),E=()=>{let[e]=(0,C.IR)(),[t,r]=(0,a.useState)(!0),[i,l]=(0,a.useState)(!1),[o,d]=(0,a.useState)(!1),u=(0,a.useRef)(null),h=(0,f.useRouter)(),g=(0,s.pmc)(),{errorAlert:x}=(0,k.V)(),[y,j]=(0,a.useState)(void 0),v=e=>{S.ZP.load(e,{json:!0}),j(void 0)},b=async t=>{let r;return"object"==typeof t&&null!=t&&"dataset"in t&&Array.isArray(t.dataset)?[r]=t.dataset:Array.isArray(t)?[r]=t:r=t,e(r)},w=e=>{g((0,p.t5)("Successfully loaded new dataset YAML")),(0,C.Zl)(e.fides_key),h.push({pathname:c.o5,query:{datasetId:e.fides_key}})},A=async()=>{l(!0);let e=u.current.getValue(),t=S.ZP.load(e,{json:!0}),r=await b(t);(0,m.D4)(r)?g((0,p.Vo)((0,m.e$)(r.error))):"data"in r&&w(r.data),l(!1)};return(0,n.jsxs)(s.kCb,{gap:"97px",children:[(0,n.jsxs)(s.xuv,{w:"75%",children:[(0,n.jsx)(s.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,n.jsxs)(s.gCW,{align:"stretch",children:[(0,n.jsx)(s.izJ,{color:"gray.100"}),(0,n.jsx)(D.M,{defaultLanguage:"yaml",height:"calc(100vh - 515px)",onChange:e=>{try{d(!0),v(e),r(!!(!e||""===e.trim()))}catch(e){(0,D.F)(e)?j(e):x("Could not parse the supplied YAML")}},onMount:e=>{u.current=e,u.current.focus()},options:{fontFamily:"Menlo",fontSize:13,minimap:{enabled:!0}},theme:"light"}),(0,n.jsx)(s.izJ,{color:"gray.100"}),(0,n.jsx)(s.wpx,{type:"primary",disabled:t||!!y||i,loading:i,onClick:A,htmlType:"submit",className:"mt-6 w-fit",children:"Create dataset"})]})]}),(0,n.jsx)(s.xuv,{children:o&&(t||y)&&(0,n.jsx)(L.Z,{isEmptyState:t,yamlError:y})})]})},N=()=>{let e=(0,i.hz)(),[t,r]=(0,a.useState)(null);return(0,n.jsxs)(o.Z,{title:"Create New Dataset",children:[(0,n.jsx)(d.Z,{heading:"Datasets",breadcrumbItems:[{title:"All datasets",href:c.$m},{title:"Create new"}]}),(0,n.jsxs)(s.Kqy,{spacing:8,children:[(0,n.jsxs)(s.xuv,{children:[(0,n.jsx)(s.wpx,{onClick:()=>r("yaml"),"data-testid":"upload-yaml-btn",className:"mr-2",children:"Upload a Dataset YAML"}),(0,n.jsx)(s.wpx,{onClick:()=>r("database"),ghost:"database"===t,disabled:e.flags.dataDiscoveryAndDetection,className:"mr-2","data-testid":"connect-db-btn",children:"Connect to a database"}),e.flags.dataDiscoveryAndDetection?(0,n.jsx)(l.b,{label:"Creating a dataset via a database connection is disabled when the 'detection & discovery' beta feature is enabled"}):null]}),"database"===t&&(0,n.jsx)(s.xuv,{w:{base:"100%",lg:"50%"},children:(0,n.jsx)(z,{})}),"yaml"===t&&(0,n.jsx)(s.xuv,{w:{base:"100%"},children:(0,n.jsx)(E,{})})]})]})}},19043:function(e,t,r){"use strict";r.d(t,{Bw:function(){return i},D4:function(){return s},Dy:function(){return o},XD:function(){return c},cz:function(){return d},hE:function(){return l},oK:function(){return a}});var n=r(76649);let s=e=>"error"in e,a=e=>(0,n.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,i=e=>(0,n.Ln)({status:"number",data:{}},e),l=e=>(0,n.Ln)({detail:"string"},e),o=e=>(0,n.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,n.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),d=e=>(0,n.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)},76649:function(e,t,r){"use strict";r.d(t,{Ln:function(){return n}});let n=(e,t)=>a(e,t),s=Symbol("SOME"),a=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?s in e?e.some(e=>a(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>a(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,r])=>a(r,t[e]));class i{static narrow(e){return new i(t=>n(e,t))}constructor(e){this.NF=void 0,this.NF=e}satisfied(e){return this.NF(e)}build(e){return e}and(e){let t=this.NF,r=e instanceof i?e.NF:e instanceof Function?e:t=>n(e,t);return new i(e=>t(e)&&r(e))}}new i(e=>!0)}},function(e){e.O(0,[6527,9327,2888,9774,179],function(){return e(e.s=73846)}),_N_E=e.O()}]);
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8538],{73846:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/new",function(){return r(17294)}])},812:function(e,t,r){"use strict";r.d(t,{D4:function(){return a.D4},MM:function(){return f},Ot:function(){return c},c6:function(){return s},cj:function(){return g},e$:function(){return l},fn:function(){return o},iC:function(){return h},nU:function(){return u},tB:function(){return d}});var n,s,a=r(19043);let i="An unexpected error occurred. Please try again.",l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if((0,a.Bw)(e)){if((0,a.hE)(e.data))return e.data.detail;if((0,a.cz)(e.data)){var r;let t=null===(r=e.data.detail)||void 0===r?void 0:r[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,a.Dy)(e.data)||404===e.status&&(0,a.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function o(e){return"object"==typeof e&&null!=e&&"status"in e}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function d(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:i};if((0,a.oK)(e))return{status:e.originalStatus,message:e.data};if((0,a.Bw)(e)){let{status:r}=e;return{status:r,message:l(e,t.message)}}return t},f=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(n=s||(s={})).GVL="gvl",n.AC="gacp",n.COMPASS="compass";let h={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},g=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},14047:function(e,t,r){"use strict";r.d(t,{H:function(){return a},V:function(){return n.V}});var n=r(84306),s=r(812);let a=()=>{let{errorAlert:e}=(0,n.V)();return{handleError:t=>{let r="An unexpected error occurred. Please try again.";(0,s.Ot)(t)?r=t.data.detail:(0,s.tB)(t)&&(r=t.data.detail[0].msg),e(r)}}}},84306:function(e,t,r){"use strict";r.d(t,{V:function(){return a}});var n=r(24246),s=r(77181);let a=()=>{let e=(0,s.pmc)();return{errorAlert:(t,r,a)=>{let i={...a,position:(null==a?void 0:a.position)||"top",render:e=>{let{onClose:a}=e;return(0,n.jsxs)(s.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,n.jsx)(s.zMQ,{}),(0,n.jsxs)(s.xuv,{children:[r&&(0,n.jsx)(s.CdC,{children:r}),(0,n.jsx)(s.XaZ,{children:t})]}),(0,n.jsx)(s.PZ7,{onClick:a,position:"relative",right:0,size:"sm",top:-1})]})}};(null==a?void 0:a.id)&&e.isActive(a.id)?e.update(a.id,i):e(i)},successAlert:(t,r,a)=>{let i={...a,position:(null==a?void 0:a.position)||"top",render:e=>{let{onClose:a}=e;return(0,n.jsxs)(s.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,n.jsx)(s.zMQ,{}),(0,n.jsxs)(s.xuv,{children:[r&&(0,n.jsx)(s.CdC,{children:r}),(0,n.jsx)(s.XaZ,{children:t})]}),(0,n.jsx)(s.PZ7,{onClick:a,position:"relative",right:0,size:"sm",top:-1})]})}};(null==a?void 0:a.id)&&e.isActive(a.id)?e.update(a.id,i):e(i)}}}},58452:function(e,t,r){"use strict";var n=r(24246),s=r(77181);t.Z=e=>{let{isOpen:t,onClose:r,onConfirm:a,onCancel:i,title:l,message:o,cancelButtonText:c,continueButtonText:d,isLoading:u,returnFocusOnClose:f,isCentered:h,testId:g="confirmation-modal",icon:x}=e;return(0,n.jsxs)(s.u_l,{isOpen:t,onClose:r,size:"lg",returnFocusOnClose:null==f||f,isCentered:h,children:[(0,n.jsx)(s.ZAr,{}),(0,n.jsxs)(s.hzk,{textAlign:"center",p:6,"data-testid":g,children:[x?(0,n.jsx)(s.M5Y,{mb:2,children:x}):null,l?(0,n.jsx)(s.xBx,{fontWeight:"medium",pb:0,children:l}):null,o?(0,n.jsx)(s.fef,{children:o}):null,(0,n.jsx)(s.mzw,{children:(0,n.jsxs)(s.MIq,{columns:2,width:"100%",children:[(0,n.jsx)(s.wpx,{onClick:()=>{i&&i(),r()},size:"large",className:"mr-3","data-testid":"cancel-btn",disabled:u,children:c||"Cancel"}),(0,n.jsx)(s.wpx,{type:"primary",size:"large",onClick:a,"data-testid":"continue-btn",loading:u,children:d||"Continue"})]})})]})]})}},46628:function(e,t,r){"use strict";r.d(t,{MA:function(){return l},Vo:function(){return c},t5:function(){return o}});var n=r(24246),s=r(77181);let a=e=>{let{children:t,title:r="Success"}=e;return(0,n.jsxs)(s.xvT,{"data-testid":"toast-success-msg",children:[(0,n.jsxs)("strong",{children:[r,":"]})," ",t]})},i=e=>{let{children:t}=e;return(0,n.jsxs)(s.xvT,{"data-testid":"toast-error-msg",children:[(0,n.jsx)("strong",{children:"Error:"})," ",t]})},l={variant:"subtle",position:"top",description:"",duration:5e3,status:"success",isClosable:!0},o=(e,t)=>{let r=(0,n.jsx)(a,{title:t,children:e});return{...l,description:r}},c=e=>{let t=(0,n.jsx)(i,{children:e});return{...l,description:t,status:"error"}}},39715:function(e,t,r){"use strict";var n=r(24246),s=r(77181);r(27378),t.Z=e=>{let{isEmptyState:t,yamlError:r}=e;return(0,n.jsx)(s.Rg9,{in:!0,children:(0,n.jsxs)(s.xuv,{w:"fit-content",bg:"white",p:3,borderRadius:3,children:[(0,n.jsxs)(s.Ugi,{children:[(0,n.jsx)(s.X6q,{as:"h5",color:"gray.700",size:"xs",children:"YAML"}),(0,n.jsx)(s.Vp9,{colorScheme:"red",size:"sm",variant:"solid",children:"Error"})]}),(0,n.jsx)(s.xuv,{bg:"red.50",border:"1px solid",borderColor:"red.300",color:"red.300",mt:"16px",borderRadius:"6px",children:(0,n.jsxs)(s.Ugi,{alignItems:"flex-start",margin:["14px","17px","14px","17px"],children:[(0,n.jsx)(s.f9v,{}),t&&(0,n.jsxs)(s.xuv,{children:[(0,n.jsx)(s.X6q,{as:"h5",color:"red.500",fontWeight:"semibold",size:"xs",children:"Error message:"}),(0,n.jsx)(s.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:"Yaml system is required"})]}),r&&(0,n.jsxs)(s.xuv,{children:[(0,n.jsx)(s.X6q,{as:"h5",color:"red.500",fontWeight:"semibold",size:"xs",children:"Error message:"}),(0,n.jsx)(s.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:r.message}),(0,n.jsx)(s.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:r.reason}),(0,n.jsxs)(s.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:["Ln ",(0,n.jsx)("b",{children:r.mark.line}),", Col"," ",(0,n.jsx)("b",{children:r.mark.column}),", Pos"," ",(0,n.jsx)("b",{children:r.mark.position})]})]})]})})]})})}},17294:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return N}});var n=r(24246),s=r(77181),a=r(27378),i=r(25980),l=r(77213),o=r(77830),c=r(58754),d=r(91613),u=r(34090),f=r(86677),h=r(16125),g=r(55484),x=r(40324),m=r(812),y=r(58452),p=r(46628),j=r(83265),v=r(32885),b=r(62656),C=r(20386);let w=e=>!("system_type"in e),A={url:"",classify:!1,classifyConfirmed:!1},_=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 z=()=>{let[e,{isLoading:t}]=(0,C.pR)(),[r,{isLoading:a}]=(0,C.IR)(),[l,{isLoading:c}]=(0,v.Du)(),d=t||a||c,g=(0,s.pmc)(),z=(0,f.useRouter)(),S=(0,i.hz)(),k=(0,h.I0)(),D=async t=>{var r;let n=await e({organization_key:j.Av,generate:{config:{connection_string:t.url},target:b.GC.DB,type:b.j.DATASETS}});if((0,m.D4)(n))return{error:(0,m.e$)(n.error)};let s=(null!==(r=n.data.generate_results)&&void 0!==r?r:[]).filter(w);return s&&s.length>0?{datasets:s}:{error:"Unable to generate a dataset with this connection."}},L=async e=>{let t=await r(e);return(0,m.D4)(t)?{error:(0,m.e$)(t.error)}:{dataset:t.data}},E=async e=>{let{values:t,datasets:r}=e,n=await l({dataset_schemas:r.map(e=>{let{name:t,fides_key:r}=e;return{fides_key:r,name:t}}),schema_config:{organization_key:j.Av,generate:{config:{connection_string:t.url},target:b.GC.DB,type:b.j.DATASETS}}});return(0,m.D4)(n)?{error:(0,m.e$)(n.error)}:{classifyInstances:n.data.classify_instances}},N=async e=>{var t;let r=await D(e);if("error"in r){g((0,p.Vo)(r.error));return}let n=await Promise.all(r.datasets.map(e=>L(e))),s=null!==(t=n.find(e=>"error"in e))&&void 0!==t?t:n[0];if("error"in s){g((0,p.Vo)(s.error));return}if(!e.classify){g((0,p.t5)("Generated ".concat(s.dataset.name," dataset"))),z.push({pathname:o.o5,query:{datasetId:s.dataset.fides_key}});return}let a=await E({values:e,datasets:r.datasets});if("error"in a){g((0,p.Vo)(a.error));return}g((0,p.t5)("Generate and classify are now in progress")),k((0,C.Zl)(s.dataset.fides_key)),z.push("/dataset")};return(0,n.jsx)(u.J9,{initialValues:{...A,classify:S.plus},validationSchema:_,onSubmit:N,validateOnChange:!1,validateOnBlur:!1,children:e=>{let{isSubmitting:t,errors:r,values:a,submitForm:i,resetForm:l,setFieldValue:o}=e;return(0,n.jsxs)(u.l0,{children:[(0,n.jsxs)(s.gCW,{spacing:8,align:"left",children:[(0,n.jsx)(s.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,n.jsx)(s.xuv,{children:(0,n.jsx)(x.j0,{name:"url",label:"Database URL"})}),S.plus?(0,n.jsx)(x.w8,{name:"classify",label:"Classify dataset",tooltip:"Use Fides Classify to suggest labels based on your data."}):null,(0,n.jsx)(s.xuv,{children:(0,n.jsx)(s.wpx,{type:"primary",htmlType:"submit",loading:t||d,disabled:t||d,"data-testid":"create-dataset-btn",children:"Generate dataset"})})]}),(0,n.jsx)(y.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!==r.classifyConfirmed,onClose:()=>{l({values:{...a,classifyConfirmed:!1}})},onConfirm:()=>{o("classifyConfirmed",!0),setTimeout(()=>{i()},0)}})]})}})},S=r(66527),k=r(14047),D=r(41207),L=r(39715),E=()=>{let[e]=(0,C.IR)(),[t,r]=(0,a.useState)(!0),[i,l]=(0,a.useState)(!1),[c,d]=(0,a.useState)(!1),u=(0,a.useRef)(null),h=(0,f.useRouter)(),g=(0,s.pmc)(),{errorAlert:x}=(0,k.V)(),[y,j]=(0,a.useState)(void 0),v=e=>{S.ZP.load(e,{json:!0}),j(void 0)},b=async t=>{let r;return"object"==typeof t&&null!=t&&"dataset"in t&&Array.isArray(t.dataset)?[r]=t.dataset:Array.isArray(t)?[r]=t:r=t,e(r)},w=e=>{g((0,p.t5)("Successfully loaded new dataset YAML")),(0,C.Zl)(e.fides_key),h.push({pathname:o.o5,query:{datasetId:e.fides_key}})},A=async()=>{l(!0);let e=u.current.getValue(),t=S.ZP.load(e,{json:!0}),r=await b(t);(0,m.D4)(r)?g((0,p.Vo)((0,m.e$)(r.error))):"data"in r&&w(r.data),l(!1)};return(0,n.jsxs)(s.kCb,{gap:"97px",children:[(0,n.jsxs)(s.xuv,{w:"75%",children:[(0,n.jsx)(s.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,n.jsxs)(s.gCW,{align:"stretch",children:[(0,n.jsx)(s.izJ,{color:"gray.100"}),(0,n.jsx)(D.M,{defaultLanguage:"yaml",height:"calc(100vh - 515px)",onChange:e=>{try{d(!0),v(e),r(!!(!e||""===e.trim()))}catch(e){(0,D.F)(e)?j(e):x("Could not parse the supplied YAML")}},onMount:e=>{u.current=e,u.current.focus()},options:{fontFamily:"Menlo",fontSize:13,minimap:{enabled:!0}},theme:"light"}),(0,n.jsx)(s.izJ,{color:"gray.100"}),(0,n.jsx)(s.wpx,{type:"primary",disabled:t||!!y||i,loading:i,onClick:A,htmlType:"submit",className:"mt-6 w-fit",children:"Create dataset"})]})]}),(0,n.jsx)(s.xuv,{children:c&&(t||y)&&(0,n.jsx)(L.Z,{isEmptyState:t,yamlError:y})})]})},N=()=>{let e=(0,i.hz)(),[t,r]=(0,a.useState)(null);return(0,n.jsxs)(l.Z,{title:"Create New Dataset",children:[(0,n.jsx)(c.Z,{heading:"Datasets",breadcrumbItems:[{title:"All datasets",href:o.$m},{title:"Create new"}]}),(0,n.jsxs)(s.Kqy,{spacing:8,children:[(0,n.jsxs)(s.xuv,{children:[(0,n.jsx)(s.wpx,{onClick:()=>r("yaml"),"data-testid":"upload-yaml-btn",className:"mr-2",children:"Upload a Dataset YAML"}),(0,n.jsx)(s.wpx,{onClick:()=>r("database"),ghost:"database"===t,disabled:e.flags.dataDiscoveryAndDetection,className:"mr-2","data-testid":"connect-db-btn",children:"Connect to a database"}),e.flags.dataDiscoveryAndDetection?(0,n.jsx)(d.Z,{label:"Creating a dataset via a database connection is disabled when the 'detection & discovery' beta feature is enabled"}):null]}),"database"===t&&(0,n.jsx)(s.xuv,{w:{base:"100%",lg:"50%"},children:(0,n.jsx)(z,{})}),"yaml"===t&&(0,n.jsx)(s.xuv,{w:{base:"100%"},children:(0,n.jsx)(E,{})})]})]})}},19043:function(e,t,r){"use strict";r.d(t,{Bw:function(){return i},D4:function(){return s},Dy:function(){return o},XD:function(){return c},cz:function(){return d},hE:function(){return l},oK:function(){return a}});var n=r(76649);let s=e=>"error"in e,a=e=>(0,n.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,i=e=>(0,n.Ln)({status:"number",data:{}},e),l=e=>(0,n.Ln)({detail:"string"},e),o=e=>(0,n.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,n.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),d=e=>(0,n.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)},76649:function(e,t,r){"use strict";r.d(t,{Ln:function(){return n}});let n=(e,t)=>a(e,t),s=Symbol("SOME"),a=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?s in e?e.some(e=>a(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>a(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,r])=>a(r,t[e]));class i{static narrow(e){return new i(t=>n(e,t))}constructor(e){this.NF=void 0,this.NF=e}satisfied(e){return this.NF(e)}build(e){return e}and(e){let t=this.NF,r=e instanceof i?e.NF:e instanceof Function?e:t=>n(e,t);return new i(e=>t(e)&&r(e))}}new i(e=>!0)}},function(e){e.O(0,[6527,9327,2888,9774,179],function(){return e(e.s=73846)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8473],{64902:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset",function(){return s(91949)}])},79806:function(e,t,s){"use strict";s.d(t,{Gn:function(){return r},zR:function(){return l}});var i=s(24246),a=s(91922),n=s(56358);let l=e=>{let{title:t}=e;return(0,i.jsx)(a.OXI,{py:0,display:"flex",alignItems:"flex-start",children:(0,i.jsx)(a.xvT,{mr:"2",color:"gray.700",fontSize:"lg",lineHeight:1.8,children:t})})},r=e=>{let{onDelete:t,onEditYaml:s,formId:l,isSaving:r}=e;return(0,i.jsxs)(a.zeN,{justifyContent:"space-between",children:[t?(0,i.jsx)(a.wpx,{"aria-label":"delete",icon:(0,i.jsx)(n.q,{fontSize:"small"}),onClick:t,"data-testid":"delete-btn"}):null,(0,i.jsxs)("div",{className:"flex gap-2",children:[s&&(0,i.jsx)(a.wpx,{onClick:s,"data-testid":"edit-yaml-btn",children:"Edit YAML"}),(0,i.jsx)(a.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",form:l,loading:r,children:"Save"})]})]})};t.ZP=e=>{let{header:t,description:s,isOpen:n,onClose:l,children:r,footer:o}=e;return(0,i.jsxs)(a.dys,{placement:"right",isOpen:n,onClose:l,size:"md",children:[(0,i.jsx)(a.P1B,{}),(0,i.jsxs)(a.scA,{"data-testid":"edit-drawer-content",py:2,children:[(0,i.jsxs)(a.xuv,{display:"flex",justifyContent:"space-between",alignItems:"top",mr:2,py:2,gap:2,children:[(0,i.jsx)(a.xuv,{flex:1,minH:8,children:t}),(0,i.jsx)(a.xuv,{display:"flex",justifyContent:"flex-end",mr:2,children:(0,i.jsx)(a.wpx,{"aria-label":"Close editor",onClick:l,"data-testid":"close-drawer-btn",icon:(0,i.jsx)(a.Two,{fontSize:"smaller"})})})]}),(0,i.jsxs)(a.Ng0,{pt:1,children:[s?(0,i.jsx)(a.xvT,{fontSize:"sm",mb:4,color:"gray.600",children:s}):null,r]}),o]})]})}},56358:function(e,t,s){"use strict";s.d(t,{q:function(){return a}});var i=s(24246);let a=(0,s(91922).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,i.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},84306:function(e,t,s){"use strict";s.d(t,{V:function(){return n}});var i=s(24246),a=s(91922);let n=()=>{let e=(0,a.pmc)();return{errorAlert:(t,s,n)=>{let l={...n,position:(null==n?void 0:n.position)||"top",render:e=>{let{onClose:n}=e;return(0,i.jsxs)(a.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,i.jsx)(a.zMQ,{}),(0,i.jsxs)(a.xuv,{children:[s&&(0,i.jsx)(a.CdC,{children:s}),(0,i.jsx)(a.XaZ,{children:t})]}),(0,i.jsx)(a.PZ7,{onClick:n,position:"relative",right:0,size:"sm",top:-1})]})}};(null==n?void 0:n.id)&&e.isActive(n.id)?e.update(n.id,l):e(l)},successAlert:(t,s,n)=>{let l={...n,position:(null==n?void 0:n.position)||"top",render:e=>{let{onClose:n}=e;return(0,i.jsxs)(a.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,i.jsx)(a.zMQ,{}),(0,i.jsxs)(a.xuv,{children:[s&&(0,i.jsx)(a.CdC,{children:s}),(0,i.jsx)(a.XaZ,{children:t})]}),(0,i.jsx)(a.PZ7,{onClick:n,position:"relative",right:0,size:"sm",top:-1})]})}};(null==n?void 0:n.id)&&e.isActive(n.id)?e.update(n.id,l):e(l)}}}},8133:function(e,t,s){"use strict";var i=s(24246),a=s(91922);t.Z=e=>{let{title:t,children:s,isOpen:n,onClose:l,...r}=e;return(0,i.jsxs)(a.u_l,{isOpen:n,onClose:l,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...r,children:[(0,i.jsx)(a.ZAr,{}),(0,i.jsxs)(a.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",children:[(0,i.jsx)(a.xBx,{p:0,children:(0,i.jsx)(a.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,i.jsx)(a.X6q,{as:"h3",size:"sm",children:t})})}),(0,i.jsx)(a.fef,{pb:4,overflow:"auto",children:s})]})]})}},39715:function(e,t,s){"use strict";var i=s(24246),a=s(91922);s(27378),t.Z=e=>{let{isEmptyState:t,yamlError:s}=e;return(0,i.jsx)(a.Rg9,{in:!0,children:(0,i.jsxs)(a.xuv,{w:"fit-content",bg:"white",p:3,borderRadius:3,children:[(0,i.jsxs)(a.Ugi,{children:[(0,i.jsx)(a.X6q,{as:"h5",color:"gray.700",size:"xs",children:"YAML"}),(0,i.jsx)(a.Vp9,{colorScheme:"red",size:"sm",variant:"solid",children:"Error"})]}),(0,i.jsx)(a.xuv,{bg:"red.50",border:"1px solid",borderColor:"red.300",color:"red.300",mt:"16px",borderRadius:"6px",children:(0,i.jsxs)(a.Ugi,{alignItems:"flex-start",margin:["14px","17px","14px","17px"],children:[(0,i.jsx)(a.f9v,{}),t&&(0,i.jsxs)(a.xuv,{children:[(0,i.jsx)(a.X6q,{as:"h5",color:"red.500",fontWeight:"semibold",size:"xs",children:"Error message:"}),(0,i.jsx)(a.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:"Yaml system is required"})]}),s&&(0,i.jsxs)(a.xuv,{children:[(0,i.jsx)(a.X6q,{as:"h5",color:"red.500",fontWeight:"semibold",size:"xs",children:"Error message:"}),(0,i.jsx)(a.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:s.message}),(0,i.jsx)(a.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:s.reason}),(0,i.jsxs)(a.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:["Ln ",(0,i.jsx)("b",{children:s.mark.line}),", Col"," ",(0,i.jsx)("b",{children:s.mark.column}),", Pos"," ",(0,i.jsx)("b",{children:s.mark.position})]})]})]})})]})})}},56026:function(e,t,s){"use strict";s.d(t,{QL:function(){return n},du:function(){return a},tz:function(){return i}});let i={name:{tooltip:"A UI-friendly label for the Dataset."},description:{tooltip:"A human-readable description of the Dataset."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to all collections in the Dataset."}},a={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."}},n={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 L}});var i=s(24246),a=s(92222),n=s(59003),l=s(91922),r=s(79894),o=s.n(r),d=s(86677),c=s(27378),u=s(16125),x=s(32885),h=s(16643);let p=e=>{let{resourceType:t,fidesKeys:s,skip:i}=e,[a,n]=(0,c.useState)(!0),l=(0,x.Wm)({resource_type:t,fides_keys:s},{skip:i,pollingInterval:a?3e3:void 0}),r=!!l.data&&l.data.every(e=>e.status===h.Wg.COMPLETE||e.status===h.Wg.FAILED||e.status===h.Wg.REVIEWED);return(0,c.useEffect)(()=>{r&&n(!1)},[r]),{...l,isClassificationFinished:r}};var m=s(25980),j=s(77213),f=s(77830),g=s(58754),C=s(14481),y=s(20386),v=s(79806),b=s(812),w=s(46628),k=s(8133),z=s(84306),S=s(66527),_=s(41207),A=s(39715),Z=s(41966),R=e=>{let{data:t=[],isSubmitting:s=!1,onCancel:a,onSubmit:n,disabled:r,isLoading:o,onChange:d}=e,u=(0,c.useRef)(null),{errorAlert:x}=(0,z.V)(),h=t.length>0?S.ZP.dump(t):void 0,[p,m]=(0,c.useState)(void 0),[j,f]=(0,c.useState)(!1),[g,C]=(0,c.useState)(!h),{data:y}=(0,Z.NR)(),[v,b]=(0,c.useState)([]),w=e=>{S.ZP.load(e,{json:!0}),m(void 0)},k=()=>{if(y&&y.length){let e=u.current.getValue();b(y.filter(t=>e.includes("fides_key: ".concat(t.fides_key,"\n"))).map(e=>e.fides_key))}},R=r||g||!j||!!p||s;return(0,i.jsxs)(l.kCb,{gap:"97px",children:[(0,i.jsxs)(l.gCW,{align:"stretch",w:"800px",children:[(0,i.jsx)(_.M,{defaultLanguage:"yaml",defaultValue:h,height:"calc(100vh - 526px)",onChange:e=>{try{f(!0),w(e),C(!e||""===e.trim());let t=S.ZP.load(e||"",{json:!0});Array.isArray(t)?d(t[0]):d(t),k()}catch(e){(0,_.F)(e)?m(e):x("Could not parse the supplied YAML")}},onMount:(e,t)=>{u.current=e,u.current.focus()},options:{fontFamily:"Menlo",fontSize:13,minimap:{enabled:!1},readOnly:r},theme:"light"}),v.length>0?(0,i.jsxs)(l.xvT,{children:["You are about to overwrite the dataset",v.length>1?"s":""," ",v.map((e,t)=>{let s=t===v.length-1;return(0,i.jsxs)(c.Fragment,{children:[(0,i.jsx)(l.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:e}),s?".":", "]},e)})]}):null,(0,i.jsx)(l.mzw,{children:(0,i.jsxs)("div",{className:"flex w-full justify-end gap-4",children:[a&&(0,i.jsx)(l.wpx,{onClick:a,"data-testid":"cancel-btn",disabled:o,children:"Cancel"}),(0,i.jsx)(l.wpx,{type:"primary",onClick:()=>{null==n||n(),null==a||a()},"data-testid":"continue-btn",disabled:R,loading:s||o,children:"Confirm"})]})})]}),j&&(g||p)&&(0,i.jsx)(A.Z,{isEmptyState:g,yamlError:p})]})},E=e=>{let{isOpen:t,onClose:s,title:a,isLoading:n,returnFocusOnClose:r,isDatasetSelected:o,dataset:d,onChange:c,onSubmit:u}=e;return(0,i.jsx)(k.Z,{isOpen:t,onClose:s,size:"3xl",returnFocusOnClose:null==r||r,isCentered:!0,title:null!=a?a:"Edit Dataset",children:(0,i.jsx)(l.xuv,{"data-testid":"yaml-editor-section",children:(0,i.jsx)(R,{data:d?[d]:[],onSubmit:u,isSubmitting:!1,disabled:o,onChange:c,isLoading:n,onCancel:s})})})},T=s(34090),D=s(40324),V=s(56026);let M="edit-field-drawer";var H=e=>{var t,s;let{values:a,onSubmit:n}=e,r={name:null!==(t=a.name)&&void 0!==t?t:"",description:null!==(s=a.description)&&void 0!==s?s:"",data_categories:a.data_categories};return(0,i.jsx)(T.J9,{initialValues:r,onSubmit:e=>{n({...e,data_categories:a.data_categories||[]})},children:(0,i.jsx)(T.l0,{id:M,children:(0,i.jsxs)(l.Kqy,{spacing:"3",children:[(0,i.jsx)(D.j0,{name:"name",label:"Name",tooltip:V.tz.name.tooltip,"data-testid":"name-input",variant:"block"}),(0,i.jsx)(D.j0,{name:"description",label:"Description",tooltip:V.tz.description.tooltip,"data-testid":"description-input",variant:"block"})]})})})},P=e=>{let{dataset:t,isOpen:s,onClose:a}=e,[n,{isLoading:r}]=(0,y.TG)(),[o]=(0,y.QY)(),u=(0,d.useRouter)(),x=(0,l.pmc)(),{isOpen:h,onOpen:p,onClose:m}=(0,l.qY0)(),{isOpen:j,onOpen:f,onClose:g}=(0,l.qY0)(),[C,k]=(0,c.useState)(void 0),z=async e=>{let s={...t,...e};try{let e=await n(s);(0,b.D4)(e)?x((0,w.Vo)((0,b.e$)(e.error))):x((0,w.t5)("Successfully modified dataset"))}catch(e){x((0,w.Vo)(e))}a()},S=async()=>{let{fides_key:e}=t,s=await o(e);(0,b.D4)(s)?x((0,w.Vo)((0,b.e$)(s.error))):x((0,w.t5)("Successfully deleted dataset")),(0,y.Zl)(void 0),u.push("/dataset"),a(),m()};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(v.ZP,{isOpen:s,onClose:a,description:"A Dataset takes a database schema (tables and columns) and adds Fides privacy categorizations. Provide additional context to this dataset by filling out the fields below.",header:(0,i.jsx)(v.zR,{title:"Edit: ".concat(null==t?void 0:t.name)}),footer:(0,i.jsx)(v.Gn,{onClose:a,onDelete:p,onEditYaml:()=>f(),formId:M}),children:[(0,i.jsx)(E,{isOpen:j,onClose:g,onChange:k,onSubmit:()=>z(C),title:"Edit dataset YAML",isLoading:r,isDatasetSelected:!1,dataset:t}),(0,i.jsx)(H,{values:t,onSubmit:z})]}),(0,i.jsx)(l.cVQ,{isOpen:h,onClose:m,onConfirm:S,title:"Delete Dataset",message:(0,i.jsxs)(l.xvT,{children:["You are about to permanently delete the dataset named"," ",(0,i.jsx)(l.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==t?void 0:t.name}),". Are you sure you would like to continue?"]})})]})};let I=(0,a.Cl)(),O={items:[],total:0,page:1,size:25,pages:1},W=()=>(0,i.jsx)(l.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,i.jsxs)(l.gCW,{children:[(0,i.jsx)(l.xvT,{fontSize:"md",fontWeight:"600",children:"No datasets found."}),(0,i.jsx)(l.xvT,{fontSize:"sm",children:'Click "Create new dataset" to add your first dataset to Fides.'})]})});var L=()=>{let e=(0,u.I0)(),t=(0,d.useRouter)(),[s,r]=(0,c.useState)(!1),[x,v]=(0,c.useState)(),{PAGE_SIZES:b,pageSize:w,setPageSize:k,onPreviousPageClick:z,isPreviousPageDisabled:S,onNextPageClick:_,isNextPageDisabled:A,startRange:Z,endRange:R,pageIndex:E,setTotalPages:T,resetPageIndexToDefault:D}=(0,C.oi)(),[V,M]=(0,c.useState)(),H=(0,c.useCallback)(e=>{D(),M(e)},[D,M]),{data:L,isLoading:N,isFetching:F}=(0,y.rt)({page:E,size:w,search:V,exclude_saas_datasets:!0}),{items:Y,total:q,pages:X}=(0,c.useMemo)(()=>null!=L?L:O,[L]);(0,c.useEffect)(()=>{T(X)},[X,T]);let G=(0,c.useCallback)(s=>{e((0,y.Zl)(s.fides_key)),t.push({pathname:f.o5,query:{datasetId:encodeURIComponent(s.fides_key)}})},[e,t]),B=(0,m.hz)();p({resourceType:h.j.DATASETS,skip:!B.plus});let Q=(0,c.useMemo)(()=>[I.accessor(e=>e.name,{id:"name",cell:e=>(0,i.jsx)(C.G3,{value:e.getValue(),fontWeight:"semibold"}),header:e=>(0,i.jsx)(C.Rr,{value:"Dataset Name",...e}),size:180}),I.accessor(e=>e.fides_key,{id:"fides_key",cell:e=>(0,i.jsx)(C.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(C.Rr,{value:"Fides Key",...e}),size:150}),I.accessor(e=>e.description,{id:"description",cell:e=>(0,i.jsx)(C.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,i.jsx)(C.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),I.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,s=t.original;return(0,i.jsx)(l.Ugi,{spacing:0,"data-testid":"dataset-".concat(s.fides_key),children:(0,i.jsx)(l.wpx,{size:"small",icon:(0,i.jsx)(l.dY8,{}),onClick:()=>{v(s),r(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})].filter(Boolean),[]),U=(0,n.b7)({getCoreRowModel:(0,a.sC)(),getFilteredRowModel:(0,a.vL)(),getSortedRowModel:(0,a.tj)(),columns:Q,data:Y,columnResizeMode:"onChange"});return(0,i.jsx)(j.Z,{title:"Datasets",children:(0,i.jsxs)(l.xuv,{"data-testid":"system-management",children:[(0,i.jsx)(g.Z,{heading:"Datasets",breadcrumbItems:[{title:"All datasets"}],rightContent:(0,i.jsx)(o(),{href:"/dataset/new",passHref:!0,legacyBehavior:!0,children:(0,i.jsx)(l.wpx,{"data-testid":"create-dataset-btn",children:"+ Add dataset"})})}),N?(0,i.jsx)(C.I4,{rowHeight:36,numRows:15}):(0,i.jsxs)(l.xuv,{"data-testid":"dataset-table",children:[(0,i.jsx)(C.Q$,{children:(0,i.jsx)(C.HO,{globalFilter:V,setGlobalFilter:H,placeholder:"Search",testid:"dataset-search"})}),(0,i.jsx)(C.ZK,{tableInstance:U,emptyTableNotice:(0,i.jsx)(W,{}),onRowClick:G})]}),(0,i.jsx)(C.s8,{totalRows:q||0,pageSizes:b,setPageSize:k,onPreviousPageClick:z,isPreviousPageDisabled:S||F,onNextPageClick:_,isNextPageDisabled:A||F,startRange:Z,endRange:R}),(0,i.jsx)(P,{dataset:x,isOpen:s,onClose:()=>{v(void 0),r(!1)}})]})})}}},function(e){e.O(0,[8033,6060,6527,4481,9327,2888,9774,179],function(){return e(e.s=64902)}),_N_E=e.O()}]);
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8473],{64902:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset",function(){return s(91949)}])},79806:function(e,t,s){"use strict";s.d(t,{Gn:function(){return r},zR:function(){return l}});var i=s(24246),a=s(77181),n=s(56358);let l=e=>{let{title:t}=e;return(0,i.jsx)(a.OXI,{py:0,display:"flex",alignItems:"flex-start",children:(0,i.jsx)(a.xvT,{mr:"2",color:"gray.700",fontSize:"lg",lineHeight:1.8,children:t})})},r=e=>{let{onDelete:t,onEditYaml:s,formId:l,isSaving:r}=e;return(0,i.jsxs)(a.zeN,{justifyContent:"space-between",children:[t?(0,i.jsx)(a.wpx,{"aria-label":"delete",icon:(0,i.jsx)(n.q,{fontSize:"small"}),onClick:t,"data-testid":"delete-btn"}):null,(0,i.jsxs)("div",{className:"flex gap-2",children:[s&&(0,i.jsx)(a.wpx,{onClick:s,"data-testid":"edit-yaml-btn",children:"Edit YAML"}),(0,i.jsx)(a.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",form:l,loading:r,children:"Save"})]})]})};t.ZP=e=>{let{header:t,description:s,isOpen:n,onClose:l,children:r,footer:o}=e;return(0,i.jsxs)(a.dys,{placement:"right",isOpen:n,onClose:l,size:"md",children:[(0,i.jsx)(a.P1B,{}),(0,i.jsxs)(a.scA,{"data-testid":"edit-drawer-content",py:2,children:[(0,i.jsxs)(a.xuv,{display:"flex",justifyContent:"space-between",alignItems:"top",mr:2,py:2,gap:2,children:[(0,i.jsx)(a.xuv,{flex:1,minH:8,children:t}),(0,i.jsx)(a.xuv,{display:"flex",justifyContent:"flex-end",mr:2,children:(0,i.jsx)(a.wpx,{"aria-label":"Close editor",onClick:l,"data-testid":"close-drawer-btn",icon:(0,i.jsx)(a.Two,{fontSize:"smaller"})})})]}),(0,i.jsxs)(a.Ng0,{pt:1,children:[s?(0,i.jsx)(a.xvT,{fontSize:"sm",mb:4,color:"gray.600",children:s}):null,r]}),o]})]})}},56358:function(e,t,s){"use strict";s.d(t,{q:function(){return a}});var i=s(24246);let a=(0,s(77181).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,i.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},84306:function(e,t,s){"use strict";s.d(t,{V:function(){return n}});var i=s(24246),a=s(77181);let n=()=>{let e=(0,a.pmc)();return{errorAlert:(t,s,n)=>{let l={...n,position:(null==n?void 0:n.position)||"top",render:e=>{let{onClose:n}=e;return(0,i.jsxs)(a.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,i.jsx)(a.zMQ,{}),(0,i.jsxs)(a.xuv,{children:[s&&(0,i.jsx)(a.CdC,{children:s}),(0,i.jsx)(a.XaZ,{children:t})]}),(0,i.jsx)(a.PZ7,{onClick:n,position:"relative",right:0,size:"sm",top:-1})]})}};(null==n?void 0:n.id)&&e.isActive(n.id)?e.update(n.id,l):e(l)},successAlert:(t,s,n)=>{let l={...n,position:(null==n?void 0:n.position)||"top",render:e=>{let{onClose:n}=e;return(0,i.jsxs)(a.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,i.jsx)(a.zMQ,{}),(0,i.jsxs)(a.xuv,{children:[s&&(0,i.jsx)(a.CdC,{children:s}),(0,i.jsx)(a.XaZ,{children:t})]}),(0,i.jsx)(a.PZ7,{onClick:n,position:"relative",right:0,size:"sm",top:-1})]})}};(null==n?void 0:n.id)&&e.isActive(n.id)?e.update(n.id,l):e(l)}}}},8133:function(e,t,s){"use strict";var i=s(24246),a=s(77181);t.Z=e=>{let{title:t,children:s,isOpen:n,onClose:l,...r}=e;return(0,i.jsxs)(a.u_l,{isOpen:n,onClose:l,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...r,children:[(0,i.jsx)(a.ZAr,{}),(0,i.jsxs)(a.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",children:[(0,i.jsx)(a.xBx,{p:0,children:(0,i.jsx)(a.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,i.jsx)(a.X6q,{as:"h3",size:"sm",children:t})})}),(0,i.jsx)(a.fef,{pb:4,overflow:"auto",children:s})]})]})}},39715:function(e,t,s){"use strict";var i=s(24246),a=s(77181);s(27378),t.Z=e=>{let{isEmptyState:t,yamlError:s}=e;return(0,i.jsx)(a.Rg9,{in:!0,children:(0,i.jsxs)(a.xuv,{w:"fit-content",bg:"white",p:3,borderRadius:3,children:[(0,i.jsxs)(a.Ugi,{children:[(0,i.jsx)(a.X6q,{as:"h5",color:"gray.700",size:"xs",children:"YAML"}),(0,i.jsx)(a.Vp9,{colorScheme:"red",size:"sm",variant:"solid",children:"Error"})]}),(0,i.jsx)(a.xuv,{bg:"red.50",border:"1px solid",borderColor:"red.300",color:"red.300",mt:"16px",borderRadius:"6px",children:(0,i.jsxs)(a.Ugi,{alignItems:"flex-start",margin:["14px","17px","14px","17px"],children:[(0,i.jsx)(a.f9v,{}),t&&(0,i.jsxs)(a.xuv,{children:[(0,i.jsx)(a.X6q,{as:"h5",color:"red.500",fontWeight:"semibold",size:"xs",children:"Error message:"}),(0,i.jsx)(a.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:"Yaml system is required"})]}),s&&(0,i.jsxs)(a.xuv,{children:[(0,i.jsx)(a.X6q,{as:"h5",color:"red.500",fontWeight:"semibold",size:"xs",children:"Error message:"}),(0,i.jsx)(a.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:s.message}),(0,i.jsx)(a.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:s.reason}),(0,i.jsxs)(a.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:["Ln ",(0,i.jsx)("b",{children:s.mark.line}),", Col"," ",(0,i.jsx)("b",{children:s.mark.column}),", Pos"," ",(0,i.jsx)("b",{children:s.mark.position})]})]})]})})]})})}},56026:function(e,t,s){"use strict";s.d(t,{QL:function(){return n},du:function(){return a},tz:function(){return i}});let i={name:{tooltip:"A UI-friendly label for the Dataset."},description:{tooltip:"A human-readable description of the Dataset."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to all collections in the Dataset."}},a={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."}},n={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 L}});var i=s(24246),a=s(92222),n=s(59003),l=s(77181),r=s(79894),o=s.n(r),d=s(86677),c=s(27378),u=s(16125),x=s(32885),h=s(62656);let p=e=>{let{resourceType:t,fidesKeys:s,skip:i}=e,[a,n]=(0,c.useState)(!0),l=(0,x.Wm)({resource_type:t,fides_keys:s},{skip:i,pollingInterval:a?3e3:void 0}),r=!!l.data&&l.data.every(e=>e.status===h.Wg.COMPLETE||e.status===h.Wg.FAILED||e.status===h.Wg.REVIEWED);return(0,c.useEffect)(()=>{r&&n(!1)},[r]),{...l,isClassificationFinished:r}};var m=s(25980),j=s(77213),f=s(77830),g=s(58754),C=s(14481),y=s(20386),v=s(79806),b=s(812),w=s(46628),k=s(8133),z=s(84306),S=s(66527),_=s(41207),A=s(39715),Z=s(41966),R=e=>{let{data:t=[],isSubmitting:s=!1,onCancel:a,onSubmit:n,disabled:r,isLoading:o,onChange:d}=e,u=(0,c.useRef)(null),{errorAlert:x}=(0,z.V)(),h=t.length>0?S.ZP.dump(t):void 0,[p,m]=(0,c.useState)(void 0),[j,f]=(0,c.useState)(!1),[g,C]=(0,c.useState)(!h),{data:y}=(0,Z.NR)(),[v,b]=(0,c.useState)([]),w=e=>{S.ZP.load(e,{json:!0}),m(void 0)},k=()=>{if(y&&y.length){let e=u.current.getValue();b(y.filter(t=>e.includes("fides_key: ".concat(t.fides_key,"\n"))).map(e=>e.fides_key))}},R=r||g||!j||!!p||s;return(0,i.jsxs)(l.kCb,{gap:"97px",children:[(0,i.jsxs)(l.gCW,{align:"stretch",w:"800px",children:[(0,i.jsx)(_.M,{defaultLanguage:"yaml",defaultValue:h,height:"calc(100vh - 526px)",onChange:e=>{try{f(!0),w(e),C(!e||""===e.trim());let t=S.ZP.load(e||"",{json:!0});Array.isArray(t)?d(t[0]):d(t),k()}catch(e){(0,_.F)(e)?m(e):x("Could not parse the supplied YAML")}},onMount:(e,t)=>{u.current=e,u.current.focus()},options:{fontFamily:"Menlo",fontSize:13,minimap:{enabled:!1},readOnly:r},theme:"light"}),v.length>0?(0,i.jsxs)(l.xvT,{children:["You are about to overwrite the dataset",v.length>1?"s":""," ",v.map((e,t)=>{let s=t===v.length-1;return(0,i.jsxs)(c.Fragment,{children:[(0,i.jsx)(l.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:e}),s?".":", "]},e)})]}):null,(0,i.jsx)(l.mzw,{children:(0,i.jsxs)("div",{className:"flex w-full justify-end gap-4",children:[a&&(0,i.jsx)(l.wpx,{onClick:a,"data-testid":"cancel-btn",disabled:o,children:"Cancel"}),(0,i.jsx)(l.wpx,{type:"primary",onClick:()=>{null==n||n(),null==a||a()},"data-testid":"continue-btn",disabled:R,loading:s||o,children:"Confirm"})]})})]}),j&&(g||p)&&(0,i.jsx)(A.Z,{isEmptyState:g,yamlError:p})]})},E=e=>{let{isOpen:t,onClose:s,title:a,isLoading:n,returnFocusOnClose:r,isDatasetSelected:o,dataset:d,onChange:c,onSubmit:u}=e;return(0,i.jsx)(k.Z,{isOpen:t,onClose:s,size:"3xl",returnFocusOnClose:null==r||r,isCentered:!0,title:null!=a?a:"Edit Dataset",children:(0,i.jsx)(l.xuv,{"data-testid":"yaml-editor-section",children:(0,i.jsx)(R,{data:d?[d]:[],onSubmit:u,isSubmitting:!1,disabled:o,onChange:c,isLoading:n,onCancel:s})})})},T=s(34090),D=s(40324),V=s(56026);let M="edit-field-drawer";var H=e=>{var t,s;let{values:a,onSubmit:n}=e,r={name:null!==(t=a.name)&&void 0!==t?t:"",description:null!==(s=a.description)&&void 0!==s?s:"",data_categories:a.data_categories};return(0,i.jsx)(T.J9,{initialValues:r,onSubmit:e=>{n({...e,data_categories:a.data_categories||[]})},children:(0,i.jsx)(T.l0,{id:M,children:(0,i.jsxs)(l.Kqy,{spacing:"3",children:[(0,i.jsx)(D.j0,{name:"name",label:"Name",tooltip:V.tz.name.tooltip,"data-testid":"name-input",variant:"block"}),(0,i.jsx)(D.j0,{name:"description",label:"Description",tooltip:V.tz.description.tooltip,"data-testid":"description-input",variant:"block"})]})})})},P=e=>{let{dataset:t,isOpen:s,onClose:a}=e,[n,{isLoading:r}]=(0,y.TG)(),[o]=(0,y.QY)(),u=(0,d.useRouter)(),x=(0,l.pmc)(),{isOpen:h,onOpen:p,onClose:m}=(0,l.qY0)(),{isOpen:j,onOpen:f,onClose:g}=(0,l.qY0)(),[C,k]=(0,c.useState)(void 0),z=async e=>{let s={...t,...e};try{let e=await n(s);(0,b.D4)(e)?x((0,w.Vo)((0,b.e$)(e.error))):x((0,w.t5)("Successfully modified dataset"))}catch(e){x((0,w.Vo)(e))}a()},S=async()=>{let{fides_key:e}=t,s=await o(e);(0,b.D4)(s)?x((0,w.Vo)((0,b.e$)(s.error))):x((0,w.t5)("Successfully deleted dataset")),(0,y.Zl)(void 0),u.push("/dataset"),a(),m()};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(v.ZP,{isOpen:s,onClose:a,description:"A Dataset takes a database schema (tables and columns) and adds Fides privacy categorizations. Provide additional context to this dataset by filling out the fields below.",header:(0,i.jsx)(v.zR,{title:"Edit: ".concat(null==t?void 0:t.name)}),footer:(0,i.jsx)(v.Gn,{onClose:a,onDelete:p,onEditYaml:()=>f(),formId:M}),children:[(0,i.jsx)(E,{isOpen:j,onClose:g,onChange:k,onSubmit:()=>z(C),title:"Edit dataset YAML",isLoading:r,isDatasetSelected:!1,dataset:t}),(0,i.jsx)(H,{values:t,onSubmit:z})]}),(0,i.jsx)(l.cVQ,{isOpen:h,onClose:m,onConfirm:S,title:"Delete Dataset",message:(0,i.jsxs)(l.xvT,{children:["You are about to permanently delete the dataset named"," ",(0,i.jsx)(l.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==t?void 0:t.name}),". Are you sure you would like to continue?"]})})]})};let I=(0,a.Cl)(),O={items:[],total:0,page:1,size:25,pages:1},W=()=>(0,i.jsx)(l.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,i.jsxs)(l.gCW,{children:[(0,i.jsx)(l.xvT,{fontSize:"md",fontWeight:"600",children:"No datasets found."}),(0,i.jsx)(l.xvT,{fontSize:"sm",children:'Click "Create new dataset" to add your first dataset to Fides.'})]})});var L=()=>{let e=(0,u.I0)(),t=(0,d.useRouter)(),[s,r]=(0,c.useState)(!1),[x,v]=(0,c.useState)(),{PAGE_SIZES:b,pageSize:w,setPageSize:k,onPreviousPageClick:z,isPreviousPageDisabled:S,onNextPageClick:_,isNextPageDisabled:A,startRange:Z,endRange:R,pageIndex:E,setTotalPages:T,resetPageIndexToDefault:D}=(0,C.oi)(),[V,M]=(0,c.useState)(),H=(0,c.useCallback)(e=>{D(),M(e)},[D,M]),{data:L,isLoading:N,isFetching:F}=(0,y.rt)({page:E,size:w,search:V,exclude_saas_datasets:!0}),{items:Y,total:q,pages:X}=(0,c.useMemo)(()=>null!=L?L:O,[L]);(0,c.useEffect)(()=>{T(X)},[X,T]);let G=(0,c.useCallback)(s=>{e((0,y.Zl)(s.fides_key)),t.push({pathname:f.o5,query:{datasetId:encodeURIComponent(s.fides_key)}})},[e,t]),B=(0,m.hz)();p({resourceType:h.j.DATASETS,skip:!B.plus});let Q=(0,c.useMemo)(()=>[I.accessor(e=>e.name,{id:"name",cell:e=>(0,i.jsx)(C.G3,{value:e.getValue(),fontWeight:"semibold"}),header:e=>(0,i.jsx)(C.Rr,{value:"Dataset Name",...e}),size:180}),I.accessor(e=>e.fides_key,{id:"fides_key",cell:e=>(0,i.jsx)(C.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(C.Rr,{value:"Fides Key",...e}),size:150}),I.accessor(e=>e.description,{id:"description",cell:e=>(0,i.jsx)(C.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,i.jsx)(C.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),I.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,s=t.original;return(0,i.jsx)(l.Ugi,{spacing:0,"data-testid":"dataset-".concat(s.fides_key),children:(0,i.jsx)(l.wpx,{size:"small",icon:(0,i.jsx)(l.dY8,{}),onClick:()=>{v(s),r(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})].filter(Boolean),[]),U=(0,n.b7)({getCoreRowModel:(0,a.sC)(),getFilteredRowModel:(0,a.vL)(),getSortedRowModel:(0,a.tj)(),columns:Q,data:Y,columnResizeMode:"onChange"});return(0,i.jsx)(j.Z,{title:"Datasets",children:(0,i.jsxs)(l.xuv,{"data-testid":"system-management",children:[(0,i.jsx)(g.Z,{heading:"Datasets",breadcrumbItems:[{title:"All datasets"}],rightContent:(0,i.jsx)(o(),{href:"/dataset/new",passHref:!0,legacyBehavior:!0,children:(0,i.jsx)(l.wpx,{"data-testid":"create-dataset-btn",children:"+ Add dataset"})})}),N?(0,i.jsx)(C.I4,{rowHeight:36,numRows:15}):(0,i.jsxs)(l.xuv,{"data-testid":"dataset-table",children:[(0,i.jsx)(C.Q$,{children:(0,i.jsx)(C.HO,{globalFilter:V,setGlobalFilter:H,placeholder:"Search",testid:"dataset-search"})}),(0,i.jsx)(C.ZK,{tableInstance:U,emptyTableNotice:(0,i.jsx)(W,{}),onRowClick:G})]}),(0,i.jsx)(C.s8,{totalRows:q||0,pageSizes:b,setPageSize:k,onPreviousPageClick:z,isPreviousPageDisabled:S||F,onNextPageClick:_,isNextPageDisabled:A||F,startRange:Z,endRange:R}),(0,i.jsx)(P,{dataset:x,isOpen:s,onClose:()=>{v(void 0),r(!1)}})]})})}}},function(e){e.O(0,[8033,6060,6527,4481,9327,2888,9774,179],function(){return e(e.s=64902)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6446],{10463:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/datastore-connection/[id]",function(){return n(88228)}])},88228:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return w}});var i=n(24246),l=n(1226),s=n(
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6446],{10463:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/datastore-connection/[id]",function(){return n(88228)}])},88228:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return w}});var i=n(24246),l=n(1226),s=n(77181),a=n(86677),r=n(27378),o=n(16134),c=n(14047),u=n(77830),d=n(20682),f=n(94725),h=n(7617),x=n(58754),p=n(11274),v=n(26788),j=n(38212),y=n(50881),m=n(41337),_=()=>{let e=(0,o.T)(),{connection:t,connectionOption:n}=(0,o.C)(d.ZZ),[l,a]=(0,r.useState)(void 0),c=(0,r.useMemo)(()=>()=>{let e=[];return(null==l?void 0:l.options)&&l.options.forEach(n=>{let l;switch(n){case v.H5.CONNECTOR_PARAMETERS:l={label:n,content:(0,i.jsx)(p.s,{})};break;case v.H5.DATASET_CONFIGURATION:l=(null==t?void 0:t.key)?{label:n,content:(0,i.jsx)(j.Z,{})}:void 0;break;case v.H5.DSR_CUSTOMIZATION:l=(null==t?void 0:t.key)?{label:n,content:(0,i.jsx)(y.Z,{})}:void 0}l&&e.push(l)}),e},[null==t?void 0:t.key,null==l?void 0:l.options]);return(0,r.useEffect)(()=>{if(n){let t=v.IM.find(e=>e.type===(null==n?void 0:n.type));t&&(a(t),e((0,d.nj)(v.Ss[2])))}return()=>{e((0,d.mc)())}},[n,e]),t&&n?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.Z,{heading:"Connection manager",breadcrumbItems:[{title:"All connections",href:u.JR},{title:t.name}]}),(0,i.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",maxHeight:"40px",mb:"4px",whiteSpace:"nowrap",children:(0,i.jsxs)(s.xuv,{alignItems:"center",display:"flex",children:[(0,i.jsx)(m.Z,{data:n}),(0,i.jsx)(s.xvT,{ml:"8px",children:t.name})]})}),(0,i.jsx)(s.gCW,{alignItems:"stretch",flex:"1",gap:"18px",children:(0,i.jsx)(h.Z,{data:c(),flexGrow:1,isLazy:!0})})]}):null},g=n(62656),w=()=>{let e=(0,o.T)(),t=(0,a.useRouter)(),{id:n}=t.query,{errorAlert:h}=(0,c.V)(),x=(0,o.C)(d.y_),[p,v]=(0,r.useState)(!0),j=(e,t)=>t.find(t=>{var n;return t.identifier===e.connection_type&&t.identifier!==g.Rj.SAAS||t.identifier===(null===(n=e.saas_config)||void 0===n?void 0:n.type)});return(0,r.useEffect)(()=>{let i=()=>{h("An error occurred while loading ".concat(t.query.id)),t.push(u.JR,void 0,{shallow:!0})},l=async t=>{try{let n=[];n.push(e(f.DM.endpoints.getDatastoreConnectionByKey.initiate(t))),0===x.length&&n.push(e(d.d8.endpoints.getAllConnectionTypes.initiate({search:""})));let l=await Promise.allSettled(n);if(l.every(e=>"fulfilled"===e.status)){e((0,d.lm)(l[0].value.data));let t=[...l[1]?l[1].value.data.items:x],n=j(l[0].value.data,t);e((0,d.yA)(n)),v(!1)}else i()}catch(e){i()}};return n&&l(n),()=>{}},[n]),(0,i.jsxs)(i.Fragment,{children:[p&&(0,i.jsx)(s.xuv,{display:"flex",h:"100vh",justifyContent:"center",children:(0,i.jsx)(s.M5Y,{children:(0,i.jsx)(s.$jN,{})})}),!p&&(0,i.jsx)(l.Z,{children:(0,i.jsx)(_,{})})]})}}},function(e){e.O(0,[6527,9327,9767,2888,9774,179],function(){return e(e.s=10463)}),_N_E=e.O()}]);
|