ethyca-fides 2.68.1b3__py2.py3-none-any.whl → 2.69.0__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ethyca-fides might be problematic. Click here for more details.
- {ethyca_fides-2.68.1b3.dist-info → ethyca_fides-2.69.0.dist-info}/METADATA +1 -1
- {ethyca_fides-2.68.1b3.dist-info → ethyca_fides-2.69.0.dist-info}/RECORD +249 -243
- fides/_version.py +3 -3
- fides/api/alembic/migrations/versions/b1a2c3d4e5f6_add_location_to_privacy_request.py +26 -0
- fides/api/api/v1/api.py +2 -0
- fides/api/api/v1/endpoints/dsr_package_link.py +169 -0
- fides/api/api/v1/endpoints/oauth_endpoints.py +1 -0
- fides/api/api/v1/endpoints/privacy_request_endpoints.py +32 -1
- fides/api/api/v1/endpoints/user_endpoints.py +4 -0
- fides/api/models/privacy_request/privacy_request.py +1 -0
- fides/api/models/privacy_request/webhook.py +33 -1
- fides/api/oauth/utils.py +118 -50
- fides/api/schemas/application_config.py +7 -0
- fides/api/schemas/connection_configuration/connection_type_system_map.py +6 -0
- fides/api/schemas/enums/__init__.py +0 -0
- fides/api/schemas/enums/connection_category.py +20 -0
- fides/api/schemas/enums/integration_feature.py +26 -0
- fides/api/schemas/external_https.py +9 -0
- fides/api/schemas/privacy_request.py +16 -0
- fides/api/schemas/saas/connector_template.py +5 -0
- fides/api/schemas/saas/display_info.py +19 -0
- fides/api/schemas/saas/saas_config.py +2 -0
- fides/api/schemas/storage/storage.py +2 -0
- fides/api/service/connectors/saas/connector_registry_service.py +7 -0
- fides/api/service/privacy_request/dsr_package/dsr_report_builder.py +253 -71
- fides/api/service/privacy_request/dsr_package/templates/attachments_index.html +4 -2
- fides/api/service/privacy_request/dsr_package/templates/collection_index.html +3 -1
- fides/api/service/privacy_request/dsr_package/templates/dataset_index.html +1 -1
- fides/api/service/privacy_request/request_runner_service.py +52 -6
- fides/api/service/privacy_request/request_service.py +18 -1
- fides/api/service/storage/storage_uploader_service.py +1 -21
- fides/api/service/storage/streaming/dsr_storage.py +1 -5
- fides/api/service/storage/streaming/s3/s3_storage_client.py +78 -40
- fides/api/service/storage/streaming/s3/streaming_s3.py +9 -21
- fides/api/service/storage/streaming/smart_open_client.py +8 -7
- fides/api/service/storage/streaming/smart_open_streaming_storage.py +109 -196
- fides/api/service/storage/streaming/storage_client_factory.py +7 -3
- fides/api/service/storage/util.py +579 -0
- fides/api/task/manual/manual_task_graph_task.py +11 -9
- fides/api/util/connection_type.py +3 -0
- fides/api/util/saas_util.py +12 -1
- fides/api/util/text.py +51 -0
- fides/common/api/v1/urn_registry.py +3 -0
- fides/service/privacy_request/privacy_request_service.py +83 -0
- fides/ui-build/static/admin/404.html +1 -1
- fides/ui-build/static/admin/_next/static/Pc_eOxj5LbY3XOShbrjSX/_buildManifest.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/1099-79646e64f26d62fa.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{1345-ab756811e19ff4fc.js → 1345-5e1c5b66e25c566e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{1817-fd21f1f5ef0faffa.js → 1817-3d9e110e007853f0.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{1975.16126463309143e3.js → 1975.78e719130cfe3fd6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{2921-0e5cc63a82e31830.js → 2921-52328140bc420d0f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3620-6cceae71bae5b531.js → 3620-31ebb43dba84cbbd.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/3729-a1ca1608efc11ac4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3847-230bf61b053bc706.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{3855-64541570e2f838fb.js → 3855-ef5194cdb228beb6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3872-7a18d18a5e287e4e.js → 3872-a91143aa35fa8ef8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3923-5c87b3d7f1626678.js → 3923-bb2417b8dcade7a4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{401-3902e3e98790d401.js → 401-4af0a912e249d30f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{4121-64ef70ef906bbdd0.js → 4121-c8d5d717e31899e1.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/4164-355644b916ae0094.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{4608-70521532195124de.js → 4608-23bbd4c3c4a59f42.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/4786-0827aae7aceadd22.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4808-78ca630f2d2503cd.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{4844-351f99b6644b654e.js → 4844-46324c3d848b8b6a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5258-c6f96dc740eb5fb1.js → 5258-b0de22a8521686ab.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5487-338800277d36b8d7.js → 5487-8c635883dcaa9c2a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/549-38ea1d91ee2addaa.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{6084-da63f20d9416a982.js → 6084-0096d7de64ef8015.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6853-1d947b75eb07188c.js → 6853-b17673391117c976.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6954-24f9a4f27d67b732.js → 6954-9d46e2276c461c26.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{7476-a0dd03bfccf60d0c.js → 7476-d1b0af9ade392e5b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{7630-9fbe06cfb98266fe.js → 7630-da0a7ce4e3a0d62c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{787-3dd31844cf7fec55.js → 787-3499983fa346b380.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{79-dcd20e8b09501c17.js → 79-f197fc4db8d530e5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{796-8773e04b64ce2260.js → 796-db1e30119ea973c7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/8002-971e29181f72edd1.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{9046-57eab238570b8bf4.js → 9046-712156d461165f56.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9676.bf0a8a6ff6dfd2af.js → 9676.9fd9552ef744c717.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9826-756c958aecab59a2.js → 9826-b0b3d3cfb13bfbc1.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9951-cdf73904a3adb27b.js → 9951-a88367a129b724ba.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{404-dd625a559ada46ca.js → 404-471a6b18e712f050.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{_app-b6b09b2878b77b21.js → _app-ef8e1c986bc5b795.js} +12 -12
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-92cf5e313be1f9e2.js → manual-9dc7e70ab5b05723.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-d6c525ee731a2993.js → multiple-4b79a1652297ed9a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{add-systems-5664a3ea796e5ffb.js → add-systems-1632a59203fe8eab.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-78f13de90111fd80.js → add-vendors-1ca9df7ca91bd101.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-0fc678f3d6d2fcec.js → configure-07bdbc9ae4137db4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-126db59dc25ca326.js → [id]-f80cf2d3966816fd.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-289605267d6cce7e.js → privacy-experience-2795cd4115a77c94.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-e9fd9b28ac9705af.js → [id]-e02921dc82dccbb1.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-28c003b6043bd16c.js → new-98f9e4ba3610628a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-c643eff04525298e.js → privacy-notices-17ed82777810d1c6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-3ef5d01779a26455.js → properties-226efa1dcd41437f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-28b192e2c074b0f3.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{consent-8d4be9e7ec7d2a35.js → consent-09610b10923d9268.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/{[resourceUrn]-f27ec4578c674181.js → [resourceUrn]-da1a48336daff6f8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-27b6c255bd9e73b6.js → [projectUrn]-d8e776f1e64e4ba8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-0f66dac32040519c.js → projects-75b9629b0d9cdf96.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/{[resourceUrn]-3b938562df81c4b0.js → [resourceUrn]-470da05db63767cd.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-6984c033b8fe3a13.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-2f0a33ef9ba1f1da.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-e9d4f25b20ff6781.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-9c428d3ef0985915.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{activity-21c141279e66237a.js → activity-b6ae7adb8ef0b525.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-3bc6a207693fd175.js → [resourceUrn]-c3a97e6721ca0abe.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-da16e73df395ad1d.js → detection-a0a7de552ef71f5b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-04b242632a114405.js → [resourceUrn]-109754fec0755339.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-900fe50183a40d72.js → discovery-88654783b06b3b21.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{datamap-4f1f7c3a9531a8f4.js → datamap-89136e6800dc9369.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-343294dcb10d9532.js → [...subfieldNames]-8f58192dcb54883d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-1c097a0809fa5b6f.js → [collectionName]-dcb4ab380a77aa1e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-b47fa2498b534719.js → [datasetId]-6f16d43071fb9c11.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{new-a31f881cab25704a.js → new-97f06e21580f1f6a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{dataset-858c59c9e67e318d.js → dataset-674bb3940f088ecc.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-16c28d272225afb6.js → [id]-6f77d8647fca71e0.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-821dd1269834cfa2.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-23e4caf79faa8106.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{index-fec557d99211f577.js → index-23eb64eed81dcb69.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-3a4cd3fe9094fba3.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations-57e618d7b16ac69a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{[id]-4a08ca7762a19700.js → [id]-c9a323eb6a929476.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{add-template-343a965dcdb3d11e.js → add-template-b9bb09e46921a590.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{messaging-3ade4c54b1c8a11e.js → messaging-82c631a12b5a008c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/{ant-components-9103bfb854f71410.js → ant-components-bc0e2adf6e0d3ac7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{AntForm-3b97029bd4d3c3ea.js → AntForm-86ffcc1ad3fa912e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikAntFormItem-9d9beb8f0d8a278c.js → FormikAntFormItem-ec04f595465bdf69.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikControlled-84a4d8fc60f839ed.js → FormikControlled-41d309754ff0c1de.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikField-1fccf542ab2e33bf.js → FormikField-cab1f78cec7808f9.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/{forms-aa75263ae1ba67bb.js → forms-eb6058221403b156.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/{table-migration-db334a1cbb102255.js → table-migration-38360083348c3d6c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{[id]-11c1e4545c8f528c.js → [id]-0d0bb9eb004a3336.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{messaging-192a986f61c23268.js → messaging-f9320a58f489f5b7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{storage-9216ac993d71387e.js → storage-d0cfa8aeddd43a40.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-e55ec84d5380401d.js → configure-72ca94ec5ed85733.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-5a5edc8a4aa7c30a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-a74b51b704b80cb2.js → [id]-5ec775c4904fdbfe.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-8d23f0c55ff6510a.js → add-property-a6812c0916f2949e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{properties-77acceac4f99e7af.js → properties-da734840e4f9d04b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-6903f42a0412bfa6.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/about/{alpha-6aad3f563ed03b3f.js → alpha-3e72e9f91991c119.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{about-c1b8f3606d160bb1.js → about-6aab092f4871cecb.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/{[purpose_id]-d9f7f78810d58d08.js → [purpose_id]-9495e2eb506606c7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{consent-ee2c7dde99b1dafb.js → consent-be47008304106395.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-ae1b57589da7b175.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-31c270d228e00581.js → domain-records-23a6d7a921150188.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domains-996b3f250dd3ea1f.js → domains-2a9e8859ab4d9de6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-ee94981326ddcbf4.js → email-templates-4f9f0fdf9925ae90.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-0b831c58966782b8.js → locations-46f7af35cee4a8bb.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-94271ba4a224a353.js → organization-a596a96cb8d0aa8e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-41b8136e50320fd3.js → regulations-6ed5fc2410e00857.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/{test-datasets-52b45569cbc82e60.js → test-datasets-86811e3cda277e77.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-36d74e93e54aabaf.js → [id]-5a43f108d8047d5b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{systems-24dfc8e2279ced2e.js → systems-045a841e22e85ea8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{taxonomy-d9675cf5e6083b27.js → taxonomy-1b3f2d4bcb0e164d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-866826d7959df487.js → [id]-05d61c80a556b2d5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-e63b61a8f99ccd57.js → user-management-2cab41659f1ee7da.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{webpack-6d0a487039bcf30c.js → webpack-678e89d68dbcd94f.js} +1 -1
- fides/ui-build/static/admin/_next/static/css/650df9c348000a26.css +1 -0
- fides/ui-build/static/admin/_next/static/css/{dbcf63488933a4d5.css → 98fab0b3e6aa43ed.css} +1 -1
- fides/ui-build/static/admin/add-systems/manual.html +1 -1
- fides/ui-build/static/admin/add-systems/multiple.html +1 -1
- fides/ui-build/static/admin/add-systems.html +1 -1
- fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
- fides/ui-build/static/admin/consent/configure.html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
- fides/ui-build/static/admin/consent/properties.html +1 -1
- fides/ui-build/static/admin/consent/reporting.html +1 -1
- fides/ui-build/static/admin/consent.html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
- fides/ui-build/static/admin/data-catalog.html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
- fides/ui-build/static/admin/data-discovery/activity.html +1 -1
- fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-discovery/detection.html +1 -1
- fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
- fides/ui-build/static/admin/datamap.html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
- fides/ui-build/static/admin/dataset/new.html +1 -1
- fides/ui-build/static/admin/dataset.html +1 -1
- fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
- fides/ui-build/static/admin/datastore-connection/new.html +1 -1
- fides/ui-build/static/admin/datastore-connection.html +1 -1
- fides/ui-build/static/admin/index.html +1 -1
- fides/ui-build/static/admin/integrations/[id].html +1 -1
- fides/ui-build/static/admin/integrations.html +1 -1
- fides/ui-build/static/admin/lib/fides-ext-gpp.js +1 -1
- fides/ui-build/static/admin/lib/fides-headless.js +1 -1
- fides/ui-build/static/admin/lib/fides-preview.js +1 -1
- fides/ui-build/static/admin/lib/fides-tcf.js +2 -2
- fides/ui-build/static/admin/lib/fides.js +2 -2
- fides/ui-build/static/admin/login/[provider].html +1 -1
- fides/ui-build/static/admin/login.html +1 -1
- fides/ui-build/static/admin/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/poc/ant-components.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/AntForm.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikAntFormItem.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikControlled.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikField.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikSpreadField.html +1 -1
- fides/ui-build/static/admin/poc/forms.html +1 -1
- fides/ui-build/static/admin/poc/table-migration.html +1 -1
- fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure/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/alpha.html +1 -1
- fides/ui-build/static/admin/settings/about.html +1 -1
- fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +1 -1
- fides/ui-build/static/admin/settings/consent.html +1 -1
- fides/ui-build/static/admin/settings/custom-fields.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/ui-build/static/admin/_next/static/_BLI2ArqQzY5XnXbrcxa2/_buildManifest.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1099-7b2085a3931da9e4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1138-0d846ffef62c580f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3729-7d2d52400f1f7413.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4786-53ef1662f2d0d98c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4808-8713433c84a62efe.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/549-e6453a3526023e85.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/602-80d113e801d7407d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/8002-dcd02da6e5649a1c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-baa4a2f8f08ac224.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-ebf5e7fa4e2ffb49.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-b27c660039d951c9.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-8ce5d24af470888e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-8e35e33928abbcdc.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-68f502d8b0b5792c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-1eb9acb17b133fd1.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-e613543818d6cbd2.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations-8069f7c33695fd45.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-48f447b31c786b80.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-e60d398e255f4e00.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-a4dad8ca9de2d07b.js +0 -1
- fides/ui-build/static/admin/_next/static/css/92441453b27e9c34.css +0 -1
- {ethyca_fides-2.68.1b3.dist-info → ethyca_fides-2.69.0.dist-info}/WHEEL +0 -0
- {ethyca_fides-2.68.1b3.dist-info → ethyca_fides-2.69.0.dist-info}/entry_points.txt +0 -0
- {ethyca_fides-2.68.1b3.dist-info → ethyca_fides-2.69.0.dist-info}/licenses/LICENSE +0 -0
- {ethyca_fides-2.68.1b3.dist-info → ethyca_fides-2.69.0.dist-info}/top_level.txt +0 -0
- /fides/ui-build/static/admin/_next/static/{_BLI2ArqQzY5XnXbrcxa2 → Pc_eOxj5LbY3XOShbrjSX}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7630],{77213:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(24246),i=n(39941),s=n(88038),a=n.n(s),l=n(86677);n(27378);var o=n(25980),c=n(90867),u=n(77830),d=()=>{let e=(0,l.useRouter)();return(0,r.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,r.jsxs)(i.xuv,{children:[(0,r.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,r.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,r.jsx)(i.wpx,{onClick:()=>{e.push(u.fz)},children:"Configure"})]}),(0,r.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:n,padded:s=!0,mainProps:u}=e,p=(0,o.hz)(),m=(0,l.useRouter)(),g="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,x=!(p.flags.privacyRequestsConfiguration&&g),{data:f}=(0,c.JE)(void 0,{skip:x}),{data:h}=(0,c.PW)(void 0,{skip:x}),v=p.flags.privacyRequestsConfiguration&&(!f||!h)&&g;return(0,r.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,r.jsxs)(a(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsxs)(i.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",...u,children:[v?(0,r.jsx)(d,{}):null,t]})]})}},58754:function(e,t,n){var r=n(24246),i=n(39941),s=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:a=!0,children:l,rightContent:o,style:c,...u}=e;return(0,r.jsxs)("div",{...u,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,r.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,r.jsx)(i.lQT,{className:n||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,r.jsx)(s.m,{className:l?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),l]})}},51472:function(e,t,n){var r=n(24246),i=n(39941),s=n(47397),a=n(7078),l=n(18397),o=n(11055),c=n(27378),u=n(40324),d=n(46238);let p=e=>{let{item:t,label:n,draggable:l,onDeleteItem:o,onEditItem:c,tooltip:u,onRowClick:p,maxH:m=10,rowTestId:g}=e,x=(0,s.o)(),f=(0,r.jsxs)(i.kCb,{direction:"row",gap:2,maxH:m,w:"full",px:2,align:"center",role:"group",className:"group",borderY:"1px",my:"-1px",borderColor:"gray.200",_hover:p?{bgColor:"gray.100"}:void 0,bgColor:"white",position:"relative",children:[l&&(0,r.jsx)(i.VVU,{onPointerDown:e=>x.start(e),cursor:"grab"}),(0,r.jsxs)(i.kCb,{direction:"row",gap:2,p:2,align:"center",w:"full",cursor:p?"pointer":"auto",onClick:()=>{p&&p(t)},overflow:"clip","data-testid":g,children:[(0,r.jsx)(i.xvT,{fontSize:"sm",userSelect:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",children:n}),(0,r.jsx)(d.b,{label:u})]}),(0,r.jsxs)(i.vyj,{className:"invisible absolute right-2 bg-white group-hover:visible",children:[c&&(0,r.jsx)(i.wpx,{"aria-label":"Edit",onClick:()=>c(t),icon:(0,r.jsx)(i.PJP.I8b,{}),size:"small","data-testid":"edit-".concat(g)}),o&&(0,r.jsx)(i.wpx,{"aria-label":"Delete",onClick:()=>o(t),icon:(0,r.jsx)(i.PJP.ZNm,{}),size:"small","data-testid":"delete-".concat(g)})]})]});return l?(0,r.jsx)(a.e,{value:t,dragListener:!1,dragControls:x,children:f}):f},m=e=>{let{label:t,options:n,onOptionSelected:s,baseTestId:a}=e,[l,o]=(0,c.useState)(!1),[u,d]=(0,c.useState)(void 0);return l?(0,r.jsx)(i.xuv,{w:"full",children:(0,r.jsx)(i.WPr,{labelInValue:!0,placeholder:"Select...",filterOption:(e,t)=>{var n;return(null!==(n=null==t?void 0:t.label)&&void 0!==n?n:"").toLowerCase().includes(e.toLowerCase())},value:u,options:n,onChange:e=>{s(e),o(!1),d(void 0)},className:"w-full","data-testid":"select-".concat(a)})}):(0,r.jsx)(i.wpx,{onClick:()=>o(!0),"data-testid":"add-".concat(a),block:!0,icon:(0,r.jsx)(i.jBn,{boxSize:4}),iconPosition:"end",children:t})};t.Z=e=>{let{label:t,tooltip:n,draggable:s,addButtonLabel:a,allItems:c,idField:g,nameField:x=g,values:f,setValues:h,canDeleteItem:v,getTooltip:y,onRowClick:b,onEditItem:j,selectOnAdd:E,getItemLabel:C,createNewValue:T,maxHeight:w=36,baseTestId:_}=e,R=e=>e instanceof Object&&g&&g in e?e[g]:e,I=c.every(e=>"string"==typeof e)?c.filter(e=>f.every(t=>t!==e)):c.filter(e=>f.every(t=>R(t)!==R(e))),S=e=>{h(f.filter(t=>t!==e).slice())},P=null!=C?C:e=>e instanceof Object&&g&&g in e?x&&x in e?e[x]:e[g]:e,q=e=>{let t=e instanceof Object&&g&&g in e?e[g]:e;return{label:P(e),value:t}},k=e=>c.every(e=>"string"==typeof e)?e.value:c.find(t=>t[g]===e.value),A=e=>{let t=T?T(e):k(e);h([t,...f.slice()]),E&&b&&b(t),E&&j&&j(t)},M={border:"1px",borderColor:"gray.200",borderRadius:"md",w:"full",maxH:"8.5rem",overflowY:"auto"},V=s?(0,r.jsx)(i.xuv,{as:l.E.div,layoutScroll:!0,...M,children:(0,r.jsx)(o.M,{values:f,onReorder:e=>h(e.slice()),children:f.map(e=>{let t=R(e);return(0,r.jsx)(p,{item:e,label:P(e),onDeleteItem:!v||v&&v(e)?S:void 0,onEditItem:j,onRowClick:b,draggable:!0,maxH:w,rowTestId:"".concat(_,"-row-").concat(t),tooltip:y&&y(e)?y(e):void 0},t)})})}):(0,r.jsx)(i.xuv,{...M,children:(0,r.jsx)(i.aVo,{children:f.map(e=>{let t=R(e);return(0,r.jsx)(p,{item:e,label:P(e),onRowClick:b,onDeleteItem:S,tooltip:y&&y(e)?y(e):void 0,maxH:w,rowTestId:"".concat(_,"-row-").concat(t)},t)})})});return f.length?(0,r.jsxs)(i.kCb,{align:"start",direction:"column",w:"full",gap:4,children:[t?(0,r.jsx)(u.__,{htmlFor:"test",fontSize:"xs",my:0,mr:1,children:t}):null,(0,r.jsx)(d.b,{label:n}),V,I.length?(0,r.jsx)(m,{label:null!=a?a:"Add new",options:I.map(e=>q(e)),onOptionSelected:A,baseTestId:_}):null]}):(0,r.jsx)(m,{label:null!=a?a:"Add new",options:I.map(e=>q(e)),onOptionSelected:A,baseTestId:_})}},10342:function(e,t,n){var r=n(24246),i=n(39941),s=n(46238);t.Z=e=>{let{title:t,tooltip:n,children:a,...l}=e;return(0,r.jsxs)(i.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...l,children:[(0,r.jsxs)(i.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,n?(0,r.jsx)(i.xvT,{as:"span",mx:1,children:(0,r.jsx)(s.b,{label:n})}):void 0]}),(0,r.jsx)(i.Kqy,{p:6,spacing:6,children:a})]})}},70788:function(e,t,n){n.d(t,{m:function(){return c}});var r=n(24246),i=n(39941),s=n(79894),a=n.n(s),l=n(27378);let{Text:o}=i.AntTypography,c=e=>{let{items:t,...n}=e,s=(0,l.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let s=n===t.length-1,l={...e},c=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,r.jsx)(o,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,id:s?"breadcrumb-current-page":void 0,children:l.title})),c)?l.title=(0,r.jsx)(i.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,r.jsx)(a(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,r.jsx)(i.zrq,{items:s,...n})}},67810:function(e,t,n){n.d(t,{Z:function(){return s}}),(r=i||(i={})).PRIVACY_REQUEST_REVIEW_APPROVE="privacy_request_review_approve",r.PRIVACY_REQUEST_REVIEW_DENY="privacy_request_review_deny",r.PRIVACY_REQUEST_RECEIPT="privacy_request_receipt",r.PRIVACY_REQUEST_COMPLETE_ACCESS="privacy_request_complete_access",r.PRIVACY_REQUEST_COMPLETE_DELETION="privacy_request_complete_deletion",r.SUBJECT_IDENTITY_VERIFICATION="subject_identity_verification";var r,i,s={[i.PRIVACY_REQUEST_COMPLETE_ACCESS]:"Access request completed",[i.PRIVACY_REQUEST_COMPLETE_DELETION]:"Erasure request completed",[i.PRIVACY_REQUEST_RECEIPT]:"Privacy request received",[i.PRIVACY_REQUEST_REVIEW_APPROVE]:"Privacy request approved",[i.PRIVACY_REQUEST_REVIEW_DENY]:"Privacy request denied",[i.SUBJECT_IDENTITY_VERIFICATION]:"Subject identity verification"}},20149:function(e,t,n){var r=n(24246),i=n(77830),s=n(39941),a=n(34090),l=n(86677),o=n(16134),c=n(10342),u=n(40324),d=n(51472),p=n(67810),m=n(64826);let g=()=>{var e;let t=(0,o.C)(m.Zp),n=(0,o.C)(m.G1);(0,m.gz)({page:t,size:n});let i=(0,o.C)(m.YO),{values:s,setFieldValue:l}=(0,a.u6)();return(0,r.jsx)(d.Z,{label:"Associated properties",addButtonLabel:"Add property",idField:"id",nameField:"name",allItems:i.map(e=>({id:e.id,name:e.name})),values:null!==(e=s.properties)&&void 0!==e?e:[],setValues:e=>l("properties",e),draggable:!0,maxHeight:100,baseTestId:"property"})};t.Z=e=>{let{template:t,handleSubmit:n,handleDelete:o}=e,d=(0,l.useRouter)(),m=()=>{d.push(i.q)},x={type:t.type,content:t.content,properties:t.properties||[],is_enabled:t.is_enabled,id:t.id||""};return(0,r.jsx)(a.J9,{enableReinitialize:!0,initialValues:x,onSubmit:n,children:e=>{let{dirty:t,isValid:n,isSubmitting:i}=e;return(0,r.jsxs)(a.l0,{style:{paddingTop:"12px",paddingBottom:"12px"},children:[(0,r.jsx)(s.xuv,{py:3,children:(0,r.jsxs)(c.Z,{title:"".concat(p.Z[x.type]),children:[(0,r.jsx)(u.j0,{isRequired:!0,label:"Email subject",name:"content.subject",variant:"stacked"}),(0,r.jsx)(u.Ks,{isRequired:!0,label:"Message body",name:"content.body",value:"test",variant:"stacked",resize:!0}),(0,r.jsx)(s.xuv,{py:3,children:(0,r.jsx)(g,{})}),(0,r.jsx)(u.w8,{name:"is_enabled",label:"Enable message",variant:"switchFirst"})]})}),(0,r.jsxs)(s.kCb,{justifyContent:"space-between",width:"100%",paddingTop:2,children:[x.id&&o&&(0,r.jsx)(s.wpx,{"data-testid":"delete-template-button",loading:!1,className:"mr-3",onClick:o,children:"Delete"}),(0,r.jsxs)(s.kCb,{justifyContent:"right",width:"100%",paddingTop:2,children:[(0,r.jsx)(s.wpx,{loading:!1,className:"mr-3",onClick:m,children:"Cancel"}),(0,r.jsx)(s.wpx,{htmlType:"submit",type:"primary",disabled:i||!t||!n,loading:i,"data-testid":"submit-btn",children:"Save"})]})]})]})}})}},5058:function(e,t,n){n.d(t,{Vw:function(){return s},ms:function(){return r},pS:function(){return i},vm:function(){return a}});let{useGetSummaryMessagingTemplatesQuery:r,usePutMessagingTemplateByIdMutation:i,useCreateMessagingTemplateByTypeMutation:s,usePatchMessagingTemplateByIdMutation:a}=n(78780).u.injectEndpoints({endpoints:e=>({getSummaryMessagingTemplates:e.query({query:e=>({method:"GET",url:"plus/messaging/templates/summary",params:e}),providesTags:()=>["Property-Specific Messaging Templates"]}),putMessagingTemplateById:e.mutation({query:e=>{let{templateId:t,template:n}=e;return{url:"plus/messaging/templates/".concat(t),method:"PUT",body:n}},invalidatesTags:()=>["Property-Specific Messaging Templates"]}),patchMessagingTemplateById:e.mutation({query:e=>{let{templateId:t,template:n}=e;return{url:"plus/messaging/templates/".concat(t),method:"PATCH",body:n}},invalidatesTags:()=>["Property-Specific Messaging Templates"]}),createMessagingTemplateByType:e.mutation({query:e=>{let{templateType:t,template:n}=e;return{url:"plus/messaging/templates/".concat(t),method:"POST",body:n}},invalidatesTags:()=>["Property-Specific Messaging Templates"]})})})},47466:function(e,t,n){n.d(t,{KC:function(){return a},ew:function(){return l},gQ:function(){return s},jM:function(){return r},lE:function(){return i}});let{useGetMessagingTemplatesQuery:r,useUpdateMessagingTemplatesMutation:i,useGetMessagingTemplateByIdQuery:s,useGetMessagingTemplateDefaultQuery:a,useDeleteMessagingTemplateByIdMutation:l}=n(78780).u.injectEndpoints({endpoints:e=>({getMessagingTemplates:e.query({query:()=>({url:"messaging/templates"}),providesTags:()=>["Messaging Templates"]}),updateMessagingTemplates:e.mutation({query:e=>({url:"messaging/templates",method:"PUT",body:e}),invalidatesTags:()=>["Messaging Templates"]}),getMessagingTemplateById:e.query({query:e=>({url:"/messaging/templates/".concat(e)}),providesTags:()=>["Property-Specific Messaging Templates"]}),getMessagingTemplateDefault:e.query({query:e=>({url:"/messaging/templates/default/".concat(e)})}),deleteMessagingTemplateById:e.mutation({query:e=>({url:"/messaging/templates/".concat(e),method:"DELETE"}),invalidatesTags:()=>["Property-Specific Messaging Templates"]})})})},31883:function(e,t,n){n.d(t,{Bw:function(){return r.Bw},D4:function(){return r.D4}});var r=n(19043)},11055:function(e,t,n){n.d(t,{M:function(){return d}});var r=n(24246),i=n(29427),s=n(27378),a=n(40976),l=n(18397),o=n(42308),c=n(25431),u=n(39556);let d=(0,s.forwardRef)(function({children:e,as:t="ul",axis:n="y",onReorder:d,values:g,...x},f){let h=(0,o.h)(()=>l.E[t]),v=[],y=(0,s.useRef)(!1);return(0,i.k)(!!g,"Reorder.Group must be provided a values prop"),(0,s.useEffect)(()=>{y.current=!1}),(0,r.jsx)(h,{...x,ref:f,ignoreStrict:!0,children:(0,r.jsx)(a.Y.Provider,{value:{axis:n,registerItem:(e,t)=>{let r=v.findIndex(t=>e===t.value);-1!==r?v[r].layout=t[n]:v.push({value:e,layout:t[n]}),v.sort(m)},updateOrder:(e,t,n)=>{if(y.current)return;let r=function(e,t,n,r){if(!r)return e;let i=e.findIndex(e=>e.value===t);if(-1===i)return e;let s=r>0?1:-1,a=e[i+s];if(!a)return e;let l=e[i],o=a.layout,d=(0,u.t)(o.min,o.max,.5);return 1===s&&l.layout.max+n>d||-1===s&&l.layout.min+n<d?(0,c.uo)(e,i,i+s):e}(v,e,t,n);v!==r&&(y.current=!0,d(r.map(p).filter(e=>-1!==g.indexOf(e))))}},children:e})})});function p(e){return e.value}function m(e,t){return e.layout.min-t.layout.min}},7078:function(e,t,n){n.d(t,{e:function(){return j}});var r=n(24246),i=n(29427),s=n(27378),a=n(40976),l=n(18397),o=n(42308),c=n(69222),u=n(67412);function d(e){let t=(0,o.h)(()=>(0,c.BX)(e)),{isStatic:n}=(0,s.useContext)(u._);if(n){let[,n]=(0,s.useState)(e);(0,s.useEffect)(()=>t.on("change",n),[])}return t}var p=n(13998);let m=e=>e&&"object"==typeof e&&e.mix,g=e=>m(e)?e.mix:void 0;var x=n(64306),f=n(95984);function h(e,t){let n=d(t()),r=()=>n.set(t());return r(),(0,x.L)(()=>{let t=()=>f.Wi.preRender(r,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(e=>e()),(0,f.Pn)(r)}}),n}function v(e,t){let n=(0,o.h)(()=>[]);return h(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}var y=n(3522);function b(e,t=0){return(0,y.i)(e)?e:d(t)}let j=(0,s.forwardRef)(function({children:e,style:t={},value:n,as:u="li",onDrag:d,layout:m=!0,...x},f){let y=(0,o.h)(()=>l.E[u]),j=(0,s.useContext)(a.Y),E={x:b(t.x),y:b(t.y)},C=function(e,t,n,r){if("function"==typeof e)return function(e){c.S1.current=[],e();let t=h(c.S1.current,e);return c.S1.current=void 0,t}(e);let i="function"==typeof t?t:function(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],s=e[2+n],a=e[3+n],l=(0,p.s)(i,s,{mixer:g(s[0]),...a});return t?l(r):l}(t,void 0,void 0);return Array.isArray(e)?v(e,i):v([e],([e])=>i(e))}([E.x,E.y],([e,t])=>e||t?1:"unset");(0,i.k)(!!j,"Reorder.Item must be a child of Reorder.Group");let{axis:T,registerItem:w,updateOrder:_}=j;return(0,r.jsx)(y,{drag:T,...x,dragSnapToOrigin:!0,style:{...t,x:E.x,y:E.y,zIndex:C},layout:m,onDrag:(e,t)=>{let{velocity:r}=t;r[T]&&_(n,E[T].get(),r[T]),d&&d(e,t)},onLayoutMeasure:e=>w(n,e),ref:f,ignoreStrict:!0,children:e})})},40976:function(e,t,n){n.d(t,{Y:function(){return r}});let r=(0,n(27378).createContext)(null)},47397:function(e,t,n){n.d(t,{o:function(){return a}});var r=n(42308);class i{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}}let s=()=>new i;function a(){return(0,r.h)(s)}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7630],{77213:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(24246),i=n(96306),s=n(88038),a=n.n(s),l=n(86677);n(27378);var o=n(25980),c=n(90867),u=n(77830),d=()=>{let e=(0,l.useRouter)();return(0,r.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,r.jsxs)(i.xuv,{children:[(0,r.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,r.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,r.jsx)(i.wpx,{onClick:()=>{e.push(u.fz)},children:"Configure"})]}),(0,r.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:n,padded:s=!0,mainProps:u}=e,p=(0,o.hz)(),m=(0,l.useRouter)(),g="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,x=!(p.flags.privacyRequestsConfiguration&&g),{data:f}=(0,c.JE)(void 0,{skip:x}),{data:h}=(0,c.PW)(void 0,{skip:x}),v=p.flags.privacyRequestsConfiguration&&(!f||!h)&&g;return(0,r.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,r.jsxs)(a(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsxs)(i.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",...u,children:[v?(0,r.jsx)(d,{}):null,t]})]})}},58754:function(e,t,n){var r=n(24246),i=n(96306),s=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:a=!0,children:l,rightContent:o,style:c,...u}=e;return(0,r.jsxs)("div",{...u,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,r.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,r.jsx)(i.lQT,{className:n||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,r.jsx)(s.m,{className:l?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),l]})}},51472:function(e,t,n){var r=n(24246),i=n(96306),s=n(47397),a=n(7078),l=n(18397),o=n(11055),c=n(27378),u=n(40324),d=n(46238);let p=e=>{let{item:t,label:n,draggable:l,onDeleteItem:o,onEditItem:c,tooltip:u,onRowClick:p,maxH:m=10,rowTestId:g}=e,x=(0,s.o)(),f=(0,r.jsxs)(i.kCb,{direction:"row",gap:2,maxH:m,w:"full",px:2,align:"center",role:"group",className:"group",borderY:"1px",my:"-1px",borderColor:"gray.200",_hover:p?{bgColor:"gray.100"}:void 0,bgColor:"white",position:"relative",children:[l&&(0,r.jsx)(i.VVU,{onPointerDown:e=>x.start(e),cursor:"grab"}),(0,r.jsxs)(i.kCb,{direction:"row",gap:2,p:2,align:"center",w:"full",cursor:p?"pointer":"auto",onClick:()=>{p&&p(t)},overflow:"clip","data-testid":g,children:[(0,r.jsx)(i.xvT,{fontSize:"sm",userSelect:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",children:n}),(0,r.jsx)(d.b,{label:u})]}),(0,r.jsxs)(i.vyj,{className:"invisible absolute right-2 bg-white group-hover:visible",children:[c&&(0,r.jsx)(i.wpx,{"aria-label":"Edit",onClick:()=>c(t),icon:(0,r.jsx)(i.PJP.I8b,{}),size:"small","data-testid":"edit-".concat(g)}),o&&(0,r.jsx)(i.wpx,{"aria-label":"Delete",onClick:()=>o(t),icon:(0,r.jsx)(i.PJP.ZNm,{}),size:"small","data-testid":"delete-".concat(g)})]})]});return l?(0,r.jsx)(a.e,{value:t,dragListener:!1,dragControls:x,children:f}):f},m=e=>{let{label:t,options:n,onOptionSelected:s,baseTestId:a}=e,[l,o]=(0,c.useState)(!1),[u,d]=(0,c.useState)(void 0);return l?(0,r.jsx)(i.xuv,{w:"full",children:(0,r.jsx)(i.WPr,{labelInValue:!0,placeholder:"Select...",filterOption:(e,t)=>{var n;return(null!==(n=null==t?void 0:t.label)&&void 0!==n?n:"").toLowerCase().includes(e.toLowerCase())},value:u,options:n,onChange:e=>{s(e),o(!1),d(void 0)},className:"w-full","data-testid":"select-".concat(a)})}):(0,r.jsx)(i.wpx,{onClick:()=>o(!0),"data-testid":"add-".concat(a),block:!0,icon:(0,r.jsx)(i.jBn,{boxSize:4}),iconPosition:"end",children:t})};t.Z=e=>{let{label:t,tooltip:n,draggable:s,addButtonLabel:a,allItems:c,idField:g,nameField:x=g,values:f,setValues:h,canDeleteItem:v,getTooltip:y,onRowClick:b,onEditItem:j,selectOnAdd:E,getItemLabel:C,createNewValue:T,maxHeight:w=36,baseTestId:_}=e,R=e=>e instanceof Object&&g&&g in e?e[g]:e,I=c.every(e=>"string"==typeof e)?c.filter(e=>f.every(t=>t!==e)):c.filter(e=>f.every(t=>R(t)!==R(e))),S=e=>{h(f.filter(t=>t!==e).slice())},P=null!=C?C:e=>e instanceof Object&&g&&g in e?x&&x in e?e[x]:e[g]:e,q=e=>{let t=e instanceof Object&&g&&g in e?e[g]:e;return{label:P(e),value:t}},k=e=>c.every(e=>"string"==typeof e)?e.value:c.find(t=>t[g]===e.value),A=e=>{let t=T?T(e):k(e);h([t,...f.slice()]),E&&b&&b(t),E&&j&&j(t)},M={border:"1px",borderColor:"gray.200",borderRadius:"md",w:"full",maxH:"8.5rem",overflowY:"auto"},V=s?(0,r.jsx)(i.xuv,{as:l.E.div,layoutScroll:!0,...M,children:(0,r.jsx)(o.M,{values:f,onReorder:e=>h(e.slice()),children:f.map(e=>{let t=R(e);return(0,r.jsx)(p,{item:e,label:P(e),onDeleteItem:!v||v&&v(e)?S:void 0,onEditItem:j,onRowClick:b,draggable:!0,maxH:w,rowTestId:"".concat(_,"-row-").concat(t),tooltip:y&&y(e)?y(e):void 0},t)})})}):(0,r.jsx)(i.xuv,{...M,children:(0,r.jsx)(i.aVo,{children:f.map(e=>{let t=R(e);return(0,r.jsx)(p,{item:e,label:P(e),onRowClick:b,onDeleteItem:S,tooltip:y&&y(e)?y(e):void 0,maxH:w,rowTestId:"".concat(_,"-row-").concat(t)},t)})})});return f.length?(0,r.jsxs)(i.kCb,{align:"start",direction:"column",w:"full",gap:4,children:[t?(0,r.jsx)(u.__,{htmlFor:"test",fontSize:"xs",my:0,mr:1,children:t}):null,(0,r.jsx)(d.b,{label:n}),V,I.length?(0,r.jsx)(m,{label:null!=a?a:"Add new",options:I.map(e=>q(e)),onOptionSelected:A,baseTestId:_}):null]}):(0,r.jsx)(m,{label:null!=a?a:"Add new",options:I.map(e=>q(e)),onOptionSelected:A,baseTestId:_})}},10342:function(e,t,n){var r=n(24246),i=n(96306),s=n(46238);t.Z=e=>{let{title:t,tooltip:n,children:a,...l}=e;return(0,r.jsxs)(i.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...l,children:[(0,r.jsxs)(i.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,n?(0,r.jsx)(i.xvT,{as:"span",mx:1,children:(0,r.jsx)(s.b,{label:n})}):void 0]}),(0,r.jsx)(i.Kqy,{p:6,spacing:6,children:a})]})}},70788:function(e,t,n){n.d(t,{m:function(){return c}});var r=n(24246),i=n(96306),s=n(79894),a=n.n(s),l=n(27378);let{Text:o}=i.AntTypography,c=e=>{let{items:t,...n}=e,s=(0,l.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let s=n===t.length-1,l={...e},c=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,r.jsx)(o,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,id:s?"breadcrumb-current-page":void 0,children:l.title})),c)?l.title=(0,r.jsx)(i.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,r.jsx)(a(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,r.jsx)(i.zrq,{items:s,...n})}},67810:function(e,t,n){n.d(t,{Z:function(){return s}}),(r=i||(i={})).PRIVACY_REQUEST_REVIEW_APPROVE="privacy_request_review_approve",r.PRIVACY_REQUEST_REVIEW_DENY="privacy_request_review_deny",r.PRIVACY_REQUEST_RECEIPT="privacy_request_receipt",r.PRIVACY_REQUEST_COMPLETE_ACCESS="privacy_request_complete_access",r.PRIVACY_REQUEST_COMPLETE_DELETION="privacy_request_complete_deletion",r.SUBJECT_IDENTITY_VERIFICATION="subject_identity_verification";var r,i,s={[i.PRIVACY_REQUEST_COMPLETE_ACCESS]:"Access request completed",[i.PRIVACY_REQUEST_COMPLETE_DELETION]:"Erasure request completed",[i.PRIVACY_REQUEST_RECEIPT]:"Privacy request received",[i.PRIVACY_REQUEST_REVIEW_APPROVE]:"Privacy request approved",[i.PRIVACY_REQUEST_REVIEW_DENY]:"Privacy request denied",[i.SUBJECT_IDENTITY_VERIFICATION]:"Subject identity verification"}},20149:function(e,t,n){var r=n(24246),i=n(77830),s=n(96306),a=n(34090),l=n(86677),o=n(16134),c=n(10342),u=n(40324),d=n(51472),p=n(67810),m=n(64826);let g=()=>{var e;let t=(0,o.C)(m.Zp),n=(0,o.C)(m.G1);(0,m.gz)({page:t,size:n});let i=(0,o.C)(m.YO),{values:s,setFieldValue:l}=(0,a.u6)();return(0,r.jsx)(d.Z,{label:"Associated properties",addButtonLabel:"Add property",idField:"id",nameField:"name",allItems:i.map(e=>({id:e.id,name:e.name})),values:null!==(e=s.properties)&&void 0!==e?e:[],setValues:e=>l("properties",e),draggable:!0,maxHeight:100,baseTestId:"property"})};t.Z=e=>{let{template:t,handleSubmit:n,handleDelete:o}=e,d=(0,l.useRouter)(),m=()=>{d.push(i.q)},x={type:t.type,content:t.content,properties:t.properties||[],is_enabled:t.is_enabled,id:t.id||""};return(0,r.jsx)(a.J9,{enableReinitialize:!0,initialValues:x,onSubmit:n,children:e=>{let{dirty:t,isValid:n,isSubmitting:i}=e;return(0,r.jsxs)(a.l0,{style:{paddingTop:"12px",paddingBottom:"12px"},children:[(0,r.jsx)(s.xuv,{py:3,children:(0,r.jsxs)(c.Z,{title:"".concat(p.Z[x.type]),children:[(0,r.jsx)(u.j0,{isRequired:!0,label:"Email subject",name:"content.subject",variant:"stacked"}),(0,r.jsx)(u.Ks,{isRequired:!0,label:"Message body",name:"content.body",value:"test",variant:"stacked",resize:!0}),(0,r.jsx)(s.xuv,{py:3,children:(0,r.jsx)(g,{})}),(0,r.jsx)(u.w8,{name:"is_enabled",label:"Enable message",variant:"switchFirst"})]})}),(0,r.jsxs)(s.kCb,{justifyContent:"space-between",width:"100%",paddingTop:2,children:[x.id&&o&&(0,r.jsx)(s.wpx,{"data-testid":"delete-template-button",loading:!1,className:"mr-3",onClick:o,children:"Delete"}),(0,r.jsxs)(s.kCb,{justifyContent:"right",width:"100%",paddingTop:2,children:[(0,r.jsx)(s.wpx,{loading:!1,className:"mr-3",onClick:m,children:"Cancel"}),(0,r.jsx)(s.wpx,{htmlType:"submit",type:"primary",disabled:i||!t||!n,loading:i,"data-testid":"submit-btn",children:"Save"})]})]})]})}})}},5058:function(e,t,n){n.d(t,{Vw:function(){return s},ms:function(){return r},pS:function(){return i},vm:function(){return a}});let{useGetSummaryMessagingTemplatesQuery:r,usePutMessagingTemplateByIdMutation:i,useCreateMessagingTemplateByTypeMutation:s,usePatchMessagingTemplateByIdMutation:a}=n(78780).u.injectEndpoints({endpoints:e=>({getSummaryMessagingTemplates:e.query({query:e=>({method:"GET",url:"plus/messaging/templates/summary",params:e}),providesTags:()=>["Property-Specific Messaging Templates"]}),putMessagingTemplateById:e.mutation({query:e=>{let{templateId:t,template:n}=e;return{url:"plus/messaging/templates/".concat(t),method:"PUT",body:n}},invalidatesTags:()=>["Property-Specific Messaging Templates"]}),patchMessagingTemplateById:e.mutation({query:e=>{let{templateId:t,template:n}=e;return{url:"plus/messaging/templates/".concat(t),method:"PATCH",body:n}},invalidatesTags:()=>["Property-Specific Messaging Templates"]}),createMessagingTemplateByType:e.mutation({query:e=>{let{templateType:t,template:n}=e;return{url:"plus/messaging/templates/".concat(t),method:"POST",body:n}},invalidatesTags:()=>["Property-Specific Messaging Templates"]})})})},47466:function(e,t,n){n.d(t,{KC:function(){return a},ew:function(){return l},gQ:function(){return s},jM:function(){return r},lE:function(){return i}});let{useGetMessagingTemplatesQuery:r,useUpdateMessagingTemplatesMutation:i,useGetMessagingTemplateByIdQuery:s,useGetMessagingTemplateDefaultQuery:a,useDeleteMessagingTemplateByIdMutation:l}=n(78780).u.injectEndpoints({endpoints:e=>({getMessagingTemplates:e.query({query:()=>({url:"messaging/templates"}),providesTags:()=>["Messaging Templates"]}),updateMessagingTemplates:e.mutation({query:e=>({url:"messaging/templates",method:"PUT",body:e}),invalidatesTags:()=>["Messaging Templates"]}),getMessagingTemplateById:e.query({query:e=>({url:"/messaging/templates/".concat(e)}),providesTags:()=>["Property-Specific Messaging Templates"]}),getMessagingTemplateDefault:e.query({query:e=>({url:"/messaging/templates/default/".concat(e)})}),deleteMessagingTemplateById:e.mutation({query:e=>({url:"/messaging/templates/".concat(e),method:"DELETE"}),invalidatesTags:()=>["Property-Specific Messaging Templates"]})})})},31883:function(e,t,n){n.d(t,{Bw:function(){return r.Bw},D4:function(){return r.D4}});var r=n(19043)},11055:function(e,t,n){n.d(t,{M:function(){return d}});var r=n(24246),i=n(29427),s=n(27378),a=n(40976),l=n(18397),o=n(42308),c=n(25431),u=n(39556);let d=(0,s.forwardRef)(function({children:e,as:t="ul",axis:n="y",onReorder:d,values:g,...x},f){let h=(0,o.h)(()=>l.E[t]),v=[],y=(0,s.useRef)(!1);return(0,i.k)(!!g,"Reorder.Group must be provided a values prop"),(0,s.useEffect)(()=>{y.current=!1}),(0,r.jsx)(h,{...x,ref:f,ignoreStrict:!0,children:(0,r.jsx)(a.Y.Provider,{value:{axis:n,registerItem:(e,t)=>{let r=v.findIndex(t=>e===t.value);-1!==r?v[r].layout=t[n]:v.push({value:e,layout:t[n]}),v.sort(m)},updateOrder:(e,t,n)=>{if(y.current)return;let r=function(e,t,n,r){if(!r)return e;let i=e.findIndex(e=>e.value===t);if(-1===i)return e;let s=r>0?1:-1,a=e[i+s];if(!a)return e;let l=e[i],o=a.layout,d=(0,u.t)(o.min,o.max,.5);return 1===s&&l.layout.max+n>d||-1===s&&l.layout.min+n<d?(0,c.uo)(e,i,i+s):e}(v,e,t,n);v!==r&&(y.current=!0,d(r.map(p).filter(e=>-1!==g.indexOf(e))))}},children:e})})});function p(e){return e.value}function m(e,t){return e.layout.min-t.layout.min}},7078:function(e,t,n){n.d(t,{e:function(){return j}});var r=n(24246),i=n(29427),s=n(27378),a=n(40976),l=n(18397),o=n(42308),c=n(69222),u=n(67412);function d(e){let t=(0,o.h)(()=>(0,c.BX)(e)),{isStatic:n}=(0,s.useContext)(u._);if(n){let[,n]=(0,s.useState)(e);(0,s.useEffect)(()=>t.on("change",n),[])}return t}var p=n(13998);let m=e=>e&&"object"==typeof e&&e.mix,g=e=>m(e)?e.mix:void 0;var x=n(64306),f=n(95984);function h(e,t){let n=d(t()),r=()=>n.set(t());return r(),(0,x.L)(()=>{let t=()=>f.Wi.preRender(r,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(e=>e()),(0,f.Pn)(r)}}),n}function v(e,t){let n=(0,o.h)(()=>[]);return h(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}var y=n(3522);function b(e,t=0){return(0,y.i)(e)?e:d(t)}let j=(0,s.forwardRef)(function({children:e,style:t={},value:n,as:u="li",onDrag:d,layout:m=!0,...x},f){let y=(0,o.h)(()=>l.E[u]),j=(0,s.useContext)(a.Y),E={x:b(t.x),y:b(t.y)},C=function(e,t,n,r){if("function"==typeof e)return function(e){c.S1.current=[],e();let t=h(c.S1.current,e);return c.S1.current=void 0,t}(e);let i="function"==typeof t?t:function(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],s=e[2+n],a=e[3+n],l=(0,p.s)(i,s,{mixer:g(s[0]),...a});return t?l(r):l}(t,void 0,void 0);return Array.isArray(e)?v(e,i):v([e],([e])=>i(e))}([E.x,E.y],([e,t])=>e||t?1:"unset");(0,i.k)(!!j,"Reorder.Item must be a child of Reorder.Group");let{axis:T,registerItem:w,updateOrder:_}=j;return(0,r.jsx)(y,{drag:T,...x,dragSnapToOrigin:!0,style:{...t,x:E.x,y:E.y,zIndex:C},layout:m,onDrag:(e,t)=>{let{velocity:r}=t;r[T]&&_(n,E[T].get(),r[T]),d&&d(e,t)},onLayoutMeasure:e=>w(n,e),ref:f,ignoreStrict:!0,children:e})})},40976:function(e,t,n){n.d(t,{Y:function(){return r}});let r=(0,n(27378).createContext)(null)},47397:function(e,t,n){n.d(t,{o:function(){return a}});var r=n(42308);class i{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}}let s=()=>new i;function a(){return(0,r.h)(s)}}}]);
|
fides/ui-build/static/admin/_next/static/chunks/{787-3dd31844cf7fec55.js → 787-3499983fa346b380.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[787],{77213:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(24246),i=n(39941),l=n(88038),o=n.n(l),a=n(86677);n(27378);var s=n(25980),d=n(90867),c=n(77830),u=()=>{let e=(0,a.useRouter)();return(0,r.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,r.jsxs)(i.xuv,{children:[(0,r.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,r.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,r.jsx)(i.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,r.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:n,padded:l=!0,mainProps:c}=e,p=(0,s.hz)(),x=(0,a.useRouter)(),m="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,h=!(p.flags.privacyRequestsConfiguration&&m),{data:f}=(0,d.JE)(void 0,{skip:h}),{data:v}=(0,d.PW)(void 0,{skip:h}),g=p.flags.privacyRequestsConfiguration&&(!f||!v)&&m;return(0,r.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,r.jsxs)(o(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsxs)(i.kCb,{as:"main",direction:"column",py:l?6:0,px:l?10:0,h:l?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[g?(0,r.jsx)(u,{}):null,t]})]})}},58754:function(e,t,n){var r=n(24246),i=n(39941),l=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:o=!0,children:a,rightContent:s,style:d,...c}=e;return(0,r.jsxs)("div",{...c,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,r.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,r.jsx)(i.lQT,{className:n||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,s&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:s})]}),!!n&&(0,r.jsx)(l.m,{className:a?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),a]})}},19904:function(e,t,n){n.d(t,{Tg:function(){return o}});var r=n(24246),i=n(16134),l=n(31793);let o=e=>(0,i.C)(l.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return o(t)?(0,r.jsx)(r.Fragment,{children:n}):null}},51472:function(e,t,n){var r=n(24246),i=n(39941),l=n(47397),o=n(7078),a=n(18397),s=n(11055),d=n(27378),c=n(40324),u=n(46238);let p=e=>{let{item:t,label:n,draggable:a,onDeleteItem:s,onEditItem:d,tooltip:c,onRowClick:p,maxH:x=10,rowTestId:m}=e,h=(0,l.o)(),f=(0,r.jsxs)(i.kCb,{direction:"row",gap:2,maxH:x,w:"full",px:2,align:"center",role:"group",className:"group",borderY:"1px",my:"-1px",borderColor:"gray.200",_hover:p?{bgColor:"gray.100"}:void 0,bgColor:"white",position:"relative",children:[a&&(0,r.jsx)(i.VVU,{onPointerDown:e=>h.start(e),cursor:"grab"}),(0,r.jsxs)(i.kCb,{direction:"row",gap:2,p:2,align:"center",w:"full",cursor:p?"pointer":"auto",onClick:()=>{p&&p(t)},overflow:"clip","data-testid":m,children:[(0,r.jsx)(i.xvT,{fontSize:"sm",userSelect:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",children:n}),(0,r.jsx)(u.b,{label:c})]}),(0,r.jsxs)(i.vyj,{className:"invisible absolute right-2 bg-white group-hover:visible",children:[d&&(0,r.jsx)(i.wpx,{"aria-label":"Edit",onClick:()=>d(t),icon:(0,r.jsx)(i.PJP.I8b,{}),size:"small","data-testid":"edit-".concat(m)}),s&&(0,r.jsx)(i.wpx,{"aria-label":"Delete",onClick:()=>s(t),icon:(0,r.jsx)(i.PJP.ZNm,{}),size:"small","data-testid":"delete-".concat(m)})]})]});return a?(0,r.jsx)(o.e,{value:t,dragListener:!1,dragControls:h,children:f}):f},x=e=>{let{label:t,options:n,onOptionSelected:l,baseTestId:o}=e,[a,s]=(0,d.useState)(!1),[c,u]=(0,d.useState)(void 0);return a?(0,r.jsx)(i.xuv,{w:"full",children:(0,r.jsx)(i.WPr,{labelInValue:!0,placeholder:"Select...",filterOption:(e,t)=>{var n;return(null!==(n=null==t?void 0:t.label)&&void 0!==n?n:"").toLowerCase().includes(e.toLowerCase())},value:c,options:n,onChange:e=>{l(e),s(!1),u(void 0)},className:"w-full","data-testid":"select-".concat(o)})}):(0,r.jsx)(i.wpx,{onClick:()=>s(!0),"data-testid":"add-".concat(o),block:!0,icon:(0,r.jsx)(i.jBn,{boxSize:4}),iconPosition:"end",children:t})};t.Z=e=>{let{label:t,tooltip:n,draggable:l,addButtonLabel:o,allItems:d,idField:m,nameField:h=m,values:f,setValues:v,canDeleteItem:g,getTooltip:j,onRowClick:b,onEditItem:y,selectOnAdd:C,getItemLabel:w,createNewValue:k,maxHeight:R=36,baseTestId:I}=e,S=e=>e instanceof Object&&m&&m in e?e[m]:e,T=d.every(e=>"string"==typeof e)?d.filter(e=>f.every(t=>t!==e)):d.filter(e=>f.every(t=>S(t)!==S(e))),P=e=>{v(f.filter(t=>t!==e).slice())},E=null!=w?w:e=>e instanceof Object&&m&&m in e?h&&h in e?e[h]:e[m]:e,q=e=>{let t=e instanceof Object&&m&&m in e?e[m]:e;return{label:E(e),value:t}},N=e=>d.every(e=>"string"==typeof e)?e.value:d.find(t=>t[m]===e.value),Z=e=>{let t=k?k(e):N(e);v([t,...f.slice()]),C&&b&&b(t),C&&y&&y(t)},O={border:"1px",borderColor:"gray.200",borderRadius:"md",w:"full",maxH:"8.5rem",overflowY:"auto"},z=l?(0,r.jsx)(i.xuv,{as:a.E.div,layoutScroll:!0,...O,children:(0,r.jsx)(s.M,{values:f,onReorder:e=>v(e.slice()),children:f.map(e=>{let t=S(e);return(0,r.jsx)(p,{item:e,label:E(e),onDeleteItem:!g||g&&g(e)?P:void 0,onEditItem:y,onRowClick:b,draggable:!0,maxH:R,rowTestId:"".concat(I,"-row-").concat(t),tooltip:j&&j(e)?j(e):void 0},t)})})}):(0,r.jsx)(i.xuv,{...O,children:(0,r.jsx)(i.aVo,{children:f.map(e=>{let t=S(e);return(0,r.jsx)(p,{item:e,label:E(e),onRowClick:b,onDeleteItem:P,tooltip:j&&j(e)?j(e):void 0,maxH:R,rowTestId:"".concat(I,"-row-").concat(t)},t)})})});return f.length?(0,r.jsxs)(i.kCb,{align:"start",direction:"column",w:"full",gap:4,children:[t?(0,r.jsx)(c.__,{htmlFor:"test",fontSize:"xs",my:0,mr:1,children:t}):null,(0,r.jsx)(u.b,{label:n}),z,T.length?(0,r.jsx)(x,{label:null!=o?o:"Add new",options:T.map(e=>q(e)),onOptionSelected:Z,baseTestId:I}):null]}):(0,r.jsx)(x,{label:null!=o?o:"Add new",options:T.map(e=>q(e)),onOptionSelected:Z,baseTestId:I})}},97181:function(e,t,n){n.d(t,{d:function(){return d}});var r=n(24246),i=n(39941),l=n(34090),o=n(27378),a=n(46238),s=n(40324);let d=e=>{let{name:t,label:n,labelProps:d,tooltip:c,isRequired:u,layout:p="inline",helperText:x,...m}=e,[h,f,{setValue:v}]=(0,l.U$)(t),g=!!(f.touched&&f.error),[j,b]=(0,o.useState)("");h.value||"tags"!==m.mode&&"multiple"!==m.mode||(h.value=[]),"tags"===m.mode&&"string"==typeof h.value&&(h.value=[h.value]);let y="tags"===m.mode?(e,t)=>e?e.value!==j||h.value.includes(j)?m.optionRender?m.optionRender(e,t):e.label:'Create "'.concat(j,'"'):void 0:m.optionRender||void 0,C=e=>{b(e),m.onSearch&&m.onSearch(e)},w=(e,t)=>{v(e),m.onChange&&m.onChange(e,t)};return"inline"===p?(0,r.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,r.jsxs)(i.rjZ,{templateColumns:n?"1fr 3fr":"1fr",children:[n?(0,r.jsx)(s.__,{htmlFor:m.id||t,...d,children:n}):null,(0,r.jsxs)(i.jqI,{align:"center",children:[(0,r.jsxs)(i.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,r.jsx)(i.WPr,{...h,id:m.id||t,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:y,onSearch:"tags"===m.mode?C:void 0,onChange:w,value:h.value||void 0,status:g?"error":void 0}),x&&(0,r.jsx)(i.Q6r,{children:x}),(0,r.jsx)(s.Bc,{isInvalid:g,message:f.error,fieldName:h.name})]}),(0,r.jsx)(a.b,{label:c,className:g?"mt-2 self-start":void 0})]})]})}):(0,r.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,r.jsxs)(i.gCW,{alignItems:"start",children:[(0,r.jsxs)(i.jqI,{align:"center",children:[n?(0,r.jsx)(s.__,{htmlFor:m.id||t,fontSize:"xs",my:0,mr:1,...d,children:n}):null,(0,r.jsx)(a.b,{label:c})]}),(0,r.jsx)(i.WPr,{...h,id:m.id||t,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:y,onSearch:"tags"===m.mode?C:void 0,onChange:w,value:h.value||void 0,status:g?"error":void 0}),x&&(0,r.jsx)(i.Q6r,{style:{marginTop:0},children:x}),(0,r.jsx)(s.Bc,{isInvalid:g,message:f.error,fieldName:h.name})]})})}},10342:function(e,t,n){var r=n(24246),i=n(39941),l=n(46238);t.Z=e=>{let{title:t,tooltip:n,children:o,...a}=e;return(0,r.jsxs)(i.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...a,children:[(0,r.jsxs)(i.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,n?(0,r.jsx)(i.xvT,{as:"span",mx:1,children:(0,r.jsx)(l.b,{label:n})}):void 0]}),(0,r.jsx)(i.Kqy,{p:6,spacing:6,children:o})]})}},70788:function(e,t,n){n.d(t,{m:function(){return d}});var r=n(24246),i=n(39941),l=n(79894),o=n.n(l),a=n(27378);let{Text:s}=i.AntTypography,d=e=>{let{items:t,...n}=e,l=(0,a.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let l=n===t.length-1,a={...e},d=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,r.jsx)(s,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,id:l?"breadcrumb-current-page":void 0,children:a.title})),d)?a.title=(0,r.jsx)(i.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,r.jsx)(o(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,r.jsx)(i.zrq,{items:l,...n})}},3642:function(e,t,n){var r=n(24246),i=n(39941),l=n(86677),o=n.n(l),a=n(27378),s=n(812),d=n(58452),c=n(77830),u=n(19904),p=n(46628),x=n(98795),m=n(54682);t.Z=e=>{let{property:t,triggerComponent:n}=e,l=(0,i.pmc)(),h=(0,i.qY0)(),[f]=(0,x.YW)(),v=t.experiences.length>0,g=async()=>{h.onClose();let e=await f(t.id);if((0,s.D4)(e)){l((0,p.Vo)((0,s.e$)(e.error)));return}o().push("".concat(c.ru)),l((0,p.t5)("Property ".concat(t.name," deleted successfully")))};return(0,r.jsxs)(u.ZP,{scopes:[m.Sh.PROPERTY_DELETE],children:[(0,r.jsx)(i.esZ,{title:v?"All of the experiences on this property must be unlinked before the property can be deleted.":void 0,placement:"right",children:(0,r.jsx)("span",{children:a.cloneElement(n,{onClick:e=>{e.stopPropagation(),v||h.onOpen()},disabled:v})})}),(0,r.jsx)(d.Z,{isOpen:h.isOpen,onClose:h.onClose,onConfirm:g,title:"Delete ".concat(t.name),message:(0,r.jsxs)(i.xvT,{color:"gray.500",children:["You are about to delete property ",t.name,". This action is not reversible and will result in ",t.name," no longer being available for your data governance. Are you sure you want to proceed?"]}),continueButtonText:"Ok",isCentered:!0,icon:(0,r.jsx)(i.aNP,{})})]})}},18880:function(e,t,n){var r=n(24246),i=n(39941),l=n(34090),o=n(86677),a=n(27378),s=n(16134),d=n(10342),c=n(40324),u=n(812),p=n(77830),x=n(51472),m=n(94315),h=n(54682),f=n(97181),v=n(3642);let g=()=>{var e;let t=(0,s.C)(m.Zp),n=(0,s.C)(m.G1);(0,m.cq)({page:t,size:n});let i=(0,s.C)(m.w4),{values:o,setFieldValue:a}=(0,l.u6)();return(0,r.jsx)(d.Z,{title:"Experiences",children:(0,r.jsx)(x.Z,{addButtonLabel:"Add experience",idField:"id",nameField:"name",allItems:i.map(e=>({id:e.id,name:e.name})),values:null!==(e=o.experiences)&&void 0!==e?e:[],setValues:e=>a("experiences",e),draggable:!0,baseTestId:"experience"})})};t.Z=e=>{let{property:t,handleSubmit:n}=e,s=(0,o.useRouter)(),x=()=>{s.push(p.ru)},m=(0,a.useMemo)(()=>t||{name:"",type:h.uS.WEBSITE,experiences:[],messaging_templates:[],paths:[]},[t]);return(0,r.jsx)(l.J9,{enableReinitialize:!0,initialValues:m,onSubmit:n,children:e=>{let{dirty:n,isValid:o,isSubmitting:a}=e;return(0,r.jsxs)(l.l0,{style:{paddingTop:"12px",paddingBottom:"12px"},children:[(0,r.jsx)(i.xuv,{py:3,children:(0,r.jsxs)(d.Z,{title:"Property details",children:[(0,r.jsx)(c.j0,{isRequired:!0,label:"Property name",name:"name",tooltip:"Unique name to identify this property",variant:"stacked"}),(0,r.jsx)(f.d,{isRequired:!0,label:"Type",name:"type",options:(0,u.MM)(h.uS),layout:"stacked"})]})}),(0,r.jsx)(i.xuv,{py:3,children:(0,r.jsx)(g,{})}),t&&(0,r.jsx)(i.xuv,{py:3,children:(0,r.jsx)(d.Z,{title:"Advanced settings",children:(0,r.jsx)(c.Io,{label:"Property ID",name:"id",tooltip:"Automatically generated unique ID for this property, used for developer configurations",variant:"stacked",readOnly:!0})})}),(0,r.jsxs)(i.kCb,{justifyContent:"space-between",width:"100%",paddingTop:2,children:[t&&(0,r.jsx)(v.Z,{property:t,triggerComponent:(0,r.jsx)(i.wpx,{"data-testid":"delete-property-button",loading:!1,className:"mr-3",children:"Delete"})}),(0,r.jsxs)(i.kCb,{justifyContent:"right",width:"100%",paddingTop:2,children:[(0,r.jsx)(i.wpx,{onClick:x,loading:!1,className:"mr-3",children:"Cancel"}),(0,r.jsx)(i.wpx,{htmlType:"submit",type:"primary",disabled:a||!n||!o,loading:a,children:"Save"})]})]})]})}})}},31883:function(e,t,n){n.d(t,{Bw:function(){return r.Bw},D4:function(){return r.D4}});var r=n(19043)},11055:function(e,t,n){n.d(t,{M:function(){return u}});var r=n(24246),i=n(29427),l=n(27378),o=n(40976),a=n(18397),s=n(42308),d=n(25431),c=n(39556);let u=(0,l.forwardRef)(function({children:e,as:t="ul",axis:n="y",onReorder:u,values:m,...h},f){let v=(0,s.h)(()=>a.E[t]),g=[],j=(0,l.useRef)(!1);return(0,i.k)(!!m,"Reorder.Group must be provided a values prop"),(0,l.useEffect)(()=>{j.current=!1}),(0,r.jsx)(v,{...h,ref:f,ignoreStrict:!0,children:(0,r.jsx)(o.Y.Provider,{value:{axis:n,registerItem:(e,t)=>{let r=g.findIndex(t=>e===t.value);-1!==r?g[r].layout=t[n]:g.push({value:e,layout:t[n]}),g.sort(x)},updateOrder:(e,t,n)=>{if(j.current)return;let r=function(e,t,n,r){if(!r)return e;let i=e.findIndex(e=>e.value===t);if(-1===i)return e;let l=r>0?1:-1,o=e[i+l];if(!o)return e;let a=e[i],s=o.layout,u=(0,c.t)(s.min,s.max,.5);return 1===l&&a.layout.max+n>u||-1===l&&a.layout.min+n<u?(0,d.uo)(e,i,i+l):e}(g,e,t,n);g!==r&&(j.current=!0,u(r.map(p).filter(e=>-1!==m.indexOf(e))))}},children:e})})});function p(e){return e.value}function x(e,t){return e.layout.min-t.layout.min}},7078:function(e,t,n){n.d(t,{e:function(){return y}});var r=n(24246),i=n(29427),l=n(27378),o=n(40976),a=n(18397),s=n(42308),d=n(69222),c=n(67412);function u(e){let t=(0,s.h)(()=>(0,d.BX)(e)),{isStatic:n}=(0,l.useContext)(c._);if(n){let[,n]=(0,l.useState)(e);(0,l.useEffect)(()=>t.on("change",n),[])}return t}var p=n(13998);let x=e=>e&&"object"==typeof e&&e.mix,m=e=>x(e)?e.mix:void 0;var h=n(64306),f=n(95984);function v(e,t){let n=u(t()),r=()=>n.set(t());return r(),(0,h.L)(()=>{let t=()=>f.Wi.preRender(r,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(e=>e()),(0,f.Pn)(r)}}),n}function g(e,t){let n=(0,s.h)(()=>[]);return v(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}var j=n(3522);function b(e,t=0){return(0,j.i)(e)?e:u(t)}let y=(0,l.forwardRef)(function({children:e,style:t={},value:n,as:c="li",onDrag:u,layout:x=!0,...h},f){let j=(0,s.h)(()=>a.E[c]),y=(0,l.useContext)(o.Y),C={x:b(t.x),y:b(t.y)},w=function(e,t,n,r){if("function"==typeof e)return function(e){d.S1.current=[],e();let t=v(d.S1.current,e);return d.S1.current=void 0,t}(e);let i="function"==typeof t?t:function(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],l=e[2+n],o=e[3+n],a=(0,p.s)(i,l,{mixer:m(l[0]),...o});return t?a(r):a}(t,void 0,void 0);return Array.isArray(e)?g(e,i):g([e],([e])=>i(e))}([C.x,C.y],([e,t])=>e||t?1:"unset");(0,i.k)(!!y,"Reorder.Item must be a child of Reorder.Group");let{axis:k,registerItem:R,updateOrder:I}=y;return(0,r.jsx)(j,{drag:k,...h,dragSnapToOrigin:!0,style:{...t,x:C.x,y:C.y,zIndex:w},layout:x,onDrag:(e,t)=>{let{velocity:r}=t;r[k]&&I(n,C[k].get(),r[k]),u&&u(e,t)},onLayoutMeasure:e=>R(n,e),ref:f,ignoreStrict:!0,children:e})})},40976:function(e,t,n){n.d(t,{Y:function(){return r}});let r=(0,n(27378).createContext)(null)},47397:function(e,t,n){n.d(t,{o:function(){return o}});var r=n(42308);class i{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}}let l=()=>new i;function o(){return(0,r.h)(l)}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[787],{77213:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(24246),i=n(96306),l=n(88038),o=n.n(l),a=n(86677);n(27378);var s=n(25980),d=n(90867),c=n(77830),u=()=>{let e=(0,a.useRouter)();return(0,r.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,r.jsxs)(i.xuv,{children:[(0,r.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,r.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,r.jsx)(i.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,r.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:n,padded:l=!0,mainProps:c}=e,p=(0,s.hz)(),x=(0,a.useRouter)(),m="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,h=!(p.flags.privacyRequestsConfiguration&&m),{data:f}=(0,d.JE)(void 0,{skip:h}),{data:v}=(0,d.PW)(void 0,{skip:h}),g=p.flags.privacyRequestsConfiguration&&(!f||!v)&&m;return(0,r.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,r.jsxs)(o(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsxs)(i.kCb,{as:"main",direction:"column",py:l?6:0,px:l?10:0,h:l?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[g?(0,r.jsx)(u,{}):null,t]})]})}},58754:function(e,t,n){var r=n(24246),i=n(96306),l=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:o=!0,children:a,rightContent:s,style:d,...c}=e;return(0,r.jsxs)("div",{...c,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,r.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,r.jsx)(i.lQT,{className:n||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,s&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:s})]}),!!n&&(0,r.jsx)(l.m,{className:a?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),a]})}},19904:function(e,t,n){n.d(t,{Tg:function(){return o}});var r=n(24246),i=n(16134),l=n(31793);let o=e=>(0,i.C)(l.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return o(t)?(0,r.jsx)(r.Fragment,{children:n}):null}},51472:function(e,t,n){var r=n(24246),i=n(96306),l=n(47397),o=n(7078),a=n(18397),s=n(11055),d=n(27378),c=n(40324),u=n(46238);let p=e=>{let{item:t,label:n,draggable:a,onDeleteItem:s,onEditItem:d,tooltip:c,onRowClick:p,maxH:x=10,rowTestId:m}=e,h=(0,l.o)(),f=(0,r.jsxs)(i.kCb,{direction:"row",gap:2,maxH:x,w:"full",px:2,align:"center",role:"group",className:"group",borderY:"1px",my:"-1px",borderColor:"gray.200",_hover:p?{bgColor:"gray.100"}:void 0,bgColor:"white",position:"relative",children:[a&&(0,r.jsx)(i.VVU,{onPointerDown:e=>h.start(e),cursor:"grab"}),(0,r.jsxs)(i.kCb,{direction:"row",gap:2,p:2,align:"center",w:"full",cursor:p?"pointer":"auto",onClick:()=>{p&&p(t)},overflow:"clip","data-testid":m,children:[(0,r.jsx)(i.xvT,{fontSize:"sm",userSelect:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",children:n}),(0,r.jsx)(u.b,{label:c})]}),(0,r.jsxs)(i.vyj,{className:"invisible absolute right-2 bg-white group-hover:visible",children:[d&&(0,r.jsx)(i.wpx,{"aria-label":"Edit",onClick:()=>d(t),icon:(0,r.jsx)(i.PJP.I8b,{}),size:"small","data-testid":"edit-".concat(m)}),s&&(0,r.jsx)(i.wpx,{"aria-label":"Delete",onClick:()=>s(t),icon:(0,r.jsx)(i.PJP.ZNm,{}),size:"small","data-testid":"delete-".concat(m)})]})]});return a?(0,r.jsx)(o.e,{value:t,dragListener:!1,dragControls:h,children:f}):f},x=e=>{let{label:t,options:n,onOptionSelected:l,baseTestId:o}=e,[a,s]=(0,d.useState)(!1),[c,u]=(0,d.useState)(void 0);return a?(0,r.jsx)(i.xuv,{w:"full",children:(0,r.jsx)(i.WPr,{labelInValue:!0,placeholder:"Select...",filterOption:(e,t)=>{var n;return(null!==(n=null==t?void 0:t.label)&&void 0!==n?n:"").toLowerCase().includes(e.toLowerCase())},value:c,options:n,onChange:e=>{l(e),s(!1),u(void 0)},className:"w-full","data-testid":"select-".concat(o)})}):(0,r.jsx)(i.wpx,{onClick:()=>s(!0),"data-testid":"add-".concat(o),block:!0,icon:(0,r.jsx)(i.jBn,{boxSize:4}),iconPosition:"end",children:t})};t.Z=e=>{let{label:t,tooltip:n,draggable:l,addButtonLabel:o,allItems:d,idField:m,nameField:h=m,values:f,setValues:v,canDeleteItem:g,getTooltip:j,onRowClick:b,onEditItem:y,selectOnAdd:C,getItemLabel:w,createNewValue:k,maxHeight:R=36,baseTestId:I}=e,S=e=>e instanceof Object&&m&&m in e?e[m]:e,T=d.every(e=>"string"==typeof e)?d.filter(e=>f.every(t=>t!==e)):d.filter(e=>f.every(t=>S(t)!==S(e))),P=e=>{v(f.filter(t=>t!==e).slice())},E=null!=w?w:e=>e instanceof Object&&m&&m in e?h&&h in e?e[h]:e[m]:e,q=e=>{let t=e instanceof Object&&m&&m in e?e[m]:e;return{label:E(e),value:t}},N=e=>d.every(e=>"string"==typeof e)?e.value:d.find(t=>t[m]===e.value),Z=e=>{let t=k?k(e):N(e);v([t,...f.slice()]),C&&b&&b(t),C&&y&&y(t)},O={border:"1px",borderColor:"gray.200",borderRadius:"md",w:"full",maxH:"8.5rem",overflowY:"auto"},z=l?(0,r.jsx)(i.xuv,{as:a.E.div,layoutScroll:!0,...O,children:(0,r.jsx)(s.M,{values:f,onReorder:e=>v(e.slice()),children:f.map(e=>{let t=S(e);return(0,r.jsx)(p,{item:e,label:E(e),onDeleteItem:!g||g&&g(e)?P:void 0,onEditItem:y,onRowClick:b,draggable:!0,maxH:R,rowTestId:"".concat(I,"-row-").concat(t),tooltip:j&&j(e)?j(e):void 0},t)})})}):(0,r.jsx)(i.xuv,{...O,children:(0,r.jsx)(i.aVo,{children:f.map(e=>{let t=S(e);return(0,r.jsx)(p,{item:e,label:E(e),onRowClick:b,onDeleteItem:P,tooltip:j&&j(e)?j(e):void 0,maxH:R,rowTestId:"".concat(I,"-row-").concat(t)},t)})})});return f.length?(0,r.jsxs)(i.kCb,{align:"start",direction:"column",w:"full",gap:4,children:[t?(0,r.jsx)(c.__,{htmlFor:"test",fontSize:"xs",my:0,mr:1,children:t}):null,(0,r.jsx)(u.b,{label:n}),z,T.length?(0,r.jsx)(x,{label:null!=o?o:"Add new",options:T.map(e=>q(e)),onOptionSelected:Z,baseTestId:I}):null]}):(0,r.jsx)(x,{label:null!=o?o:"Add new",options:T.map(e=>q(e)),onOptionSelected:Z,baseTestId:I})}},97181:function(e,t,n){n.d(t,{d:function(){return d}});var r=n(24246),i=n(96306),l=n(34090),o=n(27378),a=n(46238),s=n(40324);let d=e=>{let{name:t,label:n,labelProps:d,tooltip:c,isRequired:u,layout:p="inline",helperText:x,...m}=e,[h,f,{setValue:v}]=(0,l.U$)(t),g=!!(f.touched&&f.error),[j,b]=(0,o.useState)("");h.value||"tags"!==m.mode&&"multiple"!==m.mode||(h.value=[]),"tags"===m.mode&&"string"==typeof h.value&&(h.value=[h.value]);let y="tags"===m.mode?(e,t)=>e?e.value!==j||h.value.includes(j)?m.optionRender?m.optionRender(e,t):e.label:'Create "'.concat(j,'"'):void 0:m.optionRender||void 0,C=e=>{b(e),m.onSearch&&m.onSearch(e)},w=(e,t)=>{v(e),m.onChange&&m.onChange(e,t)};return"inline"===p?(0,r.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,r.jsxs)(i.rjZ,{templateColumns:n?"1fr 3fr":"1fr",children:[n?(0,r.jsx)(s.__,{htmlFor:m.id||t,...d,children:n}):null,(0,r.jsxs)(i.jqI,{align:"center",children:[(0,r.jsxs)(i.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,r.jsx)(i.WPr,{...h,id:m.id||t,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:y,onSearch:"tags"===m.mode?C:void 0,onChange:w,value:h.value||void 0,status:g?"error":void 0}),x&&(0,r.jsx)(i.Q6r,{children:x}),(0,r.jsx)(s.Bc,{isInvalid:g,message:f.error,fieldName:h.name})]}),(0,r.jsx)(a.b,{label:c,className:g?"mt-2 self-start":void 0})]})]})}):(0,r.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,r.jsxs)(i.gCW,{alignItems:"start",children:[(0,r.jsxs)(i.jqI,{align:"center",children:[n?(0,r.jsx)(s.__,{htmlFor:m.id||t,fontSize:"xs",my:0,mr:1,...d,children:n}):null,(0,r.jsx)(a.b,{label:c})]}),(0,r.jsx)(i.WPr,{...h,id:m.id||t,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:y,onSearch:"tags"===m.mode?C:void 0,onChange:w,value:h.value||void 0,status:g?"error":void 0}),x&&(0,r.jsx)(i.Q6r,{style:{marginTop:0},children:x}),(0,r.jsx)(s.Bc,{isInvalid:g,message:f.error,fieldName:h.name})]})})}},10342:function(e,t,n){var r=n(24246),i=n(96306),l=n(46238);t.Z=e=>{let{title:t,tooltip:n,children:o,...a}=e;return(0,r.jsxs)(i.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...a,children:[(0,r.jsxs)(i.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,n?(0,r.jsx)(i.xvT,{as:"span",mx:1,children:(0,r.jsx)(l.b,{label:n})}):void 0]}),(0,r.jsx)(i.Kqy,{p:6,spacing:6,children:o})]})}},70788:function(e,t,n){n.d(t,{m:function(){return d}});var r=n(24246),i=n(96306),l=n(79894),o=n.n(l),a=n(27378);let{Text:s}=i.AntTypography,d=e=>{let{items:t,...n}=e,l=(0,a.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let l=n===t.length-1,a={...e},d=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,r.jsx)(s,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,id:l?"breadcrumb-current-page":void 0,children:a.title})),d)?a.title=(0,r.jsx)(i.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,r.jsx)(o(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,r.jsx)(i.zrq,{items:l,...n})}},3642:function(e,t,n){var r=n(24246),i=n(96306),l=n(86677),o=n.n(l),a=n(27378),s=n(812),d=n(58452),c=n(77830),u=n(19904),p=n(46628),x=n(98795),m=n(54682);t.Z=e=>{let{property:t,triggerComponent:n}=e,l=(0,i.pmc)(),h=(0,i.qY0)(),[f]=(0,x.YW)(),v=t.experiences.length>0,g=async()=>{h.onClose();let e=await f(t.id);if((0,s.D4)(e)){l((0,p.Vo)((0,s.e$)(e.error)));return}o().push("".concat(c.ru)),l((0,p.t5)("Property ".concat(t.name," deleted successfully")))};return(0,r.jsxs)(u.ZP,{scopes:[m.Sh.PROPERTY_DELETE],children:[(0,r.jsx)(i.esZ,{title:v?"All of the experiences on this property must be unlinked before the property can be deleted.":void 0,placement:"right",children:(0,r.jsx)("span",{children:a.cloneElement(n,{onClick:e=>{e.stopPropagation(),v||h.onOpen()},disabled:v})})}),(0,r.jsx)(d.Z,{isOpen:h.isOpen,onClose:h.onClose,onConfirm:g,title:"Delete ".concat(t.name),message:(0,r.jsxs)(i.xvT,{color:"gray.500",children:["You are about to delete property ",t.name,". This action is not reversible and will result in ",t.name," no longer being available for your data governance. Are you sure you want to proceed?"]}),continueButtonText:"Ok",isCentered:!0,icon:(0,r.jsx)(i.aNP,{})})]})}},18880:function(e,t,n){var r=n(24246),i=n(96306),l=n(34090),o=n(86677),a=n(27378),s=n(16134),d=n(10342),c=n(40324),u=n(812),p=n(77830),x=n(51472),m=n(94315),h=n(54682),f=n(97181),v=n(3642);let g=()=>{var e;let t=(0,s.C)(m.Zp),n=(0,s.C)(m.G1);(0,m.cq)({page:t,size:n});let i=(0,s.C)(m.w4),{values:o,setFieldValue:a}=(0,l.u6)();return(0,r.jsx)(d.Z,{title:"Experiences",children:(0,r.jsx)(x.Z,{addButtonLabel:"Add experience",idField:"id",nameField:"name",allItems:i.map(e=>({id:e.id,name:e.name})),values:null!==(e=o.experiences)&&void 0!==e?e:[],setValues:e=>a("experiences",e),draggable:!0,baseTestId:"experience"})})};t.Z=e=>{let{property:t,handleSubmit:n}=e,s=(0,o.useRouter)(),x=()=>{s.push(p.ru)},m=(0,a.useMemo)(()=>t||{name:"",type:h.uS.WEBSITE,experiences:[],messaging_templates:[],paths:[]},[t]);return(0,r.jsx)(l.J9,{enableReinitialize:!0,initialValues:m,onSubmit:n,children:e=>{let{dirty:n,isValid:o,isSubmitting:a}=e;return(0,r.jsxs)(l.l0,{style:{paddingTop:"12px",paddingBottom:"12px"},children:[(0,r.jsx)(i.xuv,{py:3,children:(0,r.jsxs)(d.Z,{title:"Property details",children:[(0,r.jsx)(c.j0,{isRequired:!0,label:"Property name",name:"name",tooltip:"Unique name to identify this property",variant:"stacked"}),(0,r.jsx)(f.d,{isRequired:!0,label:"Type",name:"type",options:(0,u.MM)(h.uS),layout:"stacked"})]})}),(0,r.jsx)(i.xuv,{py:3,children:(0,r.jsx)(g,{})}),t&&(0,r.jsx)(i.xuv,{py:3,children:(0,r.jsx)(d.Z,{title:"Advanced settings",children:(0,r.jsx)(c.Io,{label:"Property ID",name:"id",tooltip:"Automatically generated unique ID for this property, used for developer configurations",variant:"stacked",readOnly:!0})})}),(0,r.jsxs)(i.kCb,{justifyContent:"space-between",width:"100%",paddingTop:2,children:[t&&(0,r.jsx)(v.Z,{property:t,triggerComponent:(0,r.jsx)(i.wpx,{"data-testid":"delete-property-button",loading:!1,className:"mr-3",children:"Delete"})}),(0,r.jsxs)(i.kCb,{justifyContent:"right",width:"100%",paddingTop:2,children:[(0,r.jsx)(i.wpx,{onClick:x,loading:!1,className:"mr-3",children:"Cancel"}),(0,r.jsx)(i.wpx,{htmlType:"submit",type:"primary",disabled:a||!n||!o,loading:a,children:"Save"})]})]})]})}})}},31883:function(e,t,n){n.d(t,{Bw:function(){return r.Bw},D4:function(){return r.D4}});var r=n(19043)},11055:function(e,t,n){n.d(t,{M:function(){return u}});var r=n(24246),i=n(29427),l=n(27378),o=n(40976),a=n(18397),s=n(42308),d=n(25431),c=n(39556);let u=(0,l.forwardRef)(function({children:e,as:t="ul",axis:n="y",onReorder:u,values:m,...h},f){let v=(0,s.h)(()=>a.E[t]),g=[],j=(0,l.useRef)(!1);return(0,i.k)(!!m,"Reorder.Group must be provided a values prop"),(0,l.useEffect)(()=>{j.current=!1}),(0,r.jsx)(v,{...h,ref:f,ignoreStrict:!0,children:(0,r.jsx)(o.Y.Provider,{value:{axis:n,registerItem:(e,t)=>{let r=g.findIndex(t=>e===t.value);-1!==r?g[r].layout=t[n]:g.push({value:e,layout:t[n]}),g.sort(x)},updateOrder:(e,t,n)=>{if(j.current)return;let r=function(e,t,n,r){if(!r)return e;let i=e.findIndex(e=>e.value===t);if(-1===i)return e;let l=r>0?1:-1,o=e[i+l];if(!o)return e;let a=e[i],s=o.layout,u=(0,c.t)(s.min,s.max,.5);return 1===l&&a.layout.max+n>u||-1===l&&a.layout.min+n<u?(0,d.uo)(e,i,i+l):e}(g,e,t,n);g!==r&&(j.current=!0,u(r.map(p).filter(e=>-1!==m.indexOf(e))))}},children:e})})});function p(e){return e.value}function x(e,t){return e.layout.min-t.layout.min}},7078:function(e,t,n){n.d(t,{e:function(){return y}});var r=n(24246),i=n(29427),l=n(27378),o=n(40976),a=n(18397),s=n(42308),d=n(69222),c=n(67412);function u(e){let t=(0,s.h)(()=>(0,d.BX)(e)),{isStatic:n}=(0,l.useContext)(c._);if(n){let[,n]=(0,l.useState)(e);(0,l.useEffect)(()=>t.on("change",n),[])}return t}var p=n(13998);let x=e=>e&&"object"==typeof e&&e.mix,m=e=>x(e)?e.mix:void 0;var h=n(64306),f=n(95984);function v(e,t){let n=u(t()),r=()=>n.set(t());return r(),(0,h.L)(()=>{let t=()=>f.Wi.preRender(r,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(e=>e()),(0,f.Pn)(r)}}),n}function g(e,t){let n=(0,s.h)(()=>[]);return v(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}var j=n(3522);function b(e,t=0){return(0,j.i)(e)?e:u(t)}let y=(0,l.forwardRef)(function({children:e,style:t={},value:n,as:c="li",onDrag:u,layout:x=!0,...h},f){let j=(0,s.h)(()=>a.E[c]),y=(0,l.useContext)(o.Y),C={x:b(t.x),y:b(t.y)},w=function(e,t,n,r){if("function"==typeof e)return function(e){d.S1.current=[],e();let t=v(d.S1.current,e);return d.S1.current=void 0,t}(e);let i="function"==typeof t?t:function(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],l=e[2+n],o=e[3+n],a=(0,p.s)(i,l,{mixer:m(l[0]),...o});return t?a(r):a}(t,void 0,void 0);return Array.isArray(e)?g(e,i):g([e],([e])=>i(e))}([C.x,C.y],([e,t])=>e||t?1:"unset");(0,i.k)(!!y,"Reorder.Item must be a child of Reorder.Group");let{axis:k,registerItem:R,updateOrder:I}=y;return(0,r.jsx)(j,{drag:k,...h,dragSnapToOrigin:!0,style:{...t,x:C.x,y:C.y,zIndex:w},layout:x,onDrag:(e,t)=>{let{velocity:r}=t;r[k]&&I(n,C[k].get(),r[k]),u&&u(e,t)},onLayoutMeasure:e=>R(n,e),ref:f,ignoreStrict:!0,children:e})})},40976:function(e,t,n){n.d(t,{Y:function(){return r}});let r=(0,n(27378).createContext)(null)},47397:function(e,t,n){n.d(t,{o:function(){return o}});var r=n(42308);class i{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}}let l=()=>new i;function o(){return(0,r.h)(l)}}}]);
|
fides/ui-build/static/admin/_next/static/chunks/{79-dcd20e8b09501c17.js → 79-f197fc4db8d530e5.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[79],{56358:function(e,t,n){n.d(t,{q:function(){return i}});var s=n(24246);let i=(0,n(39941).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,s.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},77213:function(e,t,n){n.d(t,{Z:function(){return u}});var s=n(24246),i=n(39941),r=n(88038),a=n.n(r),o=n(86677);n(27378);var l=n(25980),c=n(90867),d=n(77830),p=()=>{let e=(0,o.useRouter)();return(0,s.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,s.jsxs)(i.xuv,{children:[(0,s.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,s.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,s.jsx)(i.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,s.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},u=e=>{let{children:t,title:n,padded:r=!0,mainProps:d}=e,u=(0,l.hz)(),x=(0,o.useRouter)(),h="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,g=!(u.flags.privacyRequestsConfiguration&&h),{data:m}=(0,c.JE)(void 0,{skip:g}),{data:j}=(0,c.PW)(void 0,{skip:g}),f=u.flags.privacyRequestsConfiguration&&(!m||!j)&&h;return(0,s.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,s.jsxs)(a(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsxs)(i.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[f?(0,s.jsx)(p,{}):null,t]})]})}},58754:function(e,t,n){var s=n(24246),i=n(39941),r=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:a=!0,children:o,rightContent:l,style:c,...d}=e;return(0,s.jsxs)("div",{...d,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,s.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(i.lQT,{className:n||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,s.jsx)(r.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},19904:function(e,t,n){n.d(t,{Tg:function(){return a}});var s=n(24246),i=n(16134),r=n(31793);let a=e=>(0,i.C)(r.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return a(t)?(0,s.jsx)(s.Fragment,{children:n}):null}},70788:function(e,t,n){n.d(t,{m:function(){return c}});var s=n(24246),i=n(39941),r=n(79894),a=n.n(r),o=n(27378);let{Text:l}=i.AntTypography,c=e=>{let{items:t,...n}=e,r=(0,o.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let r=n===t.length-1,o={...e},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,s.jsx)(l,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,id:r?"breadcrumb-current-page":void 0,children:o.title})),c)?o.title=(0,s.jsx)(i.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,s.jsx)(a(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,s.jsx)(i.zrq,{items:r,...n})}},3642:function(e,t,n){var s=n(24246),i=n(39941),r=n(86677),a=n.n(r),o=n(27378),l=n(812),c=n(58452),d=n(77830),p=n(19904),u=n(46628),x=n(98795),h=n(54682);t.Z=e=>{let{property:t,triggerComponent:n}=e,r=(0,i.pmc)(),g=(0,i.qY0)(),[m]=(0,x.YW)(),j=t.experiences.length>0,f=async()=>{g.onClose();let e=await m(t.id);if((0,l.D4)(e)){r((0,u.Vo)((0,l.e$)(e.error)));return}a().push("".concat(d.ru)),r((0,u.t5)("Property ".concat(t.name," deleted successfully")))};return(0,s.jsxs)(p.ZP,{scopes:[h.Sh.PROPERTY_DELETE],children:[(0,s.jsx)(i.esZ,{title:j?"All of the experiences on this property must be unlinked before the property can be deleted.":void 0,placement:"right",children:(0,s.jsx)("span",{children:o.cloneElement(n,{onClick:e=>{e.stopPropagation(),j||g.onOpen()},disabled:j})})}),(0,s.jsx)(c.Z,{isOpen:g.isOpen,onClose:g.onClose,onConfirm:f,title:"Delete ".concat(t.name),message:(0,s.jsxs)(i.xvT,{color:"gray.500",children:["You are about to delete property ",t.name,". This action is not reversible and will result in ",t.name," no longer being available for your data governance. Are you sure you want to proceed?"]}),continueButtonText:"Ok",isCentered:!0,icon:(0,s.jsx)(i.aNP,{})})]})}},25783:function(e,t,n){n.d(t,{V:function(){return M}});var s=n(24246),i=n(92222),r=n(59003),a=n(47935),o=n(39941),l=n(98784),c=n.n(l),d=n(86677),p=n(27378),u=n(77830),x=n(19904),h=n(32885),g=n(98795),m=n(54682),j=e=>{let{buttonLabel:t,buttonProps:n}=e,i=(0,d.useRouter)();return(0,s.jsx)(o.wpx,{onClick:()=>i.push(u.B9),"data-testid":"add-property-button",...n,children:t})},f=n(56358),y=n(88340),C=n(25980),b=n(14048);let v="{privacy-center-hostname-and-path}",w="{property-unique-id}",P='<script src="https://'.concat(v,"/fides.js?property_id=").concat(w,'"></script>'),R="<script>Fides.gtm()</script>";var T=e=>{let{property:t}=e,n=(0,o.qY0)(),i=(0,p.useRef)(null),{fidesCloud:r}=(0,C.hz)(),{data:a,isSuccess:l}=(0,h.Vh)(void 0,{skip:!r}),c=(0,p.useMemo)(()=>{let e=P.replace(w,t.id.toString());return r&&l&&(null==a?void 0:a.privacy_center_url)&&e.replace(v,a.privacy_center_url),e},[null==a?void 0:a.privacy_center_url,r,l,t]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.wpx,{"aria-label":"Install property",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(b.A5,{}),onClick:e=>{e.stopPropagation(),n.onOpen()}}),(0,s.jsxs)(o.u_l,{isOpen:n.isOpen,onClose:n.onClose,isCentered:!0,size:"xl",initialFocusRef:i,children:[(0,s.jsx)(o.ZAr,{}),(0,s.jsxs)(o.hzk,{"data-testid":"copy-js-tag-modal",children:[(0,s.jsx)(o.xBx,{tabIndex:-1,ref:i,pb:0,children:"Install Fides Consent Manager"}),(0,s.jsx)(o.fef,{pt:3,pb:6,fontSize:"14px",fontWeight:500,children:(0,s.jsxs)(o.Kqy,{spacing:3,children:[(0,s.jsxs)(o.xvT,{children:["Copy the code below and paste it onto every page of the"," ",t.name," property."]}),(0,s.jsxs)(o.xvT,{children:["1. Paste this code as high in the ",(0,s.jsx)("b",{children:"<head>"})," of the page as possible:"]}),(0,s.jsxs)(o.EKh,{display:"flex",justifyContent:"space-between",alignItems:"top",p:0,children:[(0,s.jsx)(o.xvT,{p:4,children:c}),(0,s.jsx)(y.Z,{copyText:c})]}),(0,s.jsx)(o.xvT,{children:"2. Optionally, you can enable Google Tag Manager for managing tags on your website by including the script tag below along with the Fides.js tag. Place it below the Fides.js script tag."}),(0,s.jsxs)(o.EKh,{display:"flex",justifyContent:"space-between",alignItems:"center",p:0,children:[(0,s.jsx)(o.xvT,{p:4,children:R}),(0,s.jsx)(y.Z,{copyText:R})]}),(0,s.jsxs)(o.xvT,{children:["For more information about adding a JavaScript tag to your website, please visit"," ",(0,s.jsx)(o.rUS,{color:"complimentary.500",href:"https://docs.ethyca.com/tutorials/consent-management-configuration/install-fides#install-fidesjs-script-on-your-website",isExternal:!0,children:"docs.ethyca.com"})]})]})})]})]})]})},k=n(3642),E=e=>{let{property:t}=e,n=(0,d.useRouter)(),i=()=>{n.push("".concat(u.ru,"/").concat(t.id))};return(0,s.jsxs)(o.xuv,{py:2,children:[(0,s.jsx)(T,{property:t}),(0,s.jsx)(x.ZP,{scopes:[m.Sh.PROPERTY_UPDATE],children:(0,s.jsx)(o.wpx,{"aria-label":"Edit property","data-testid":"edit-property-button",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(o.dY8,{}),onClick:e=>{e.stopPropagation(),i()}})}),(0,s.jsx)(k.Z,{property:t,triggerComponent:(0,s.jsx)(o.wpx,{"aria-label":"Delete property","data-testid":"delete-property-button",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(f.q,{})})})]})};let z=(0,i.Cl)(),Z={items:[],total:0,page:1,size:25,pages:1},H=()=>(0,s.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:(0,s.jsxs)(o.gCW,{children:[(0,s.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No properties found."}),(0,s.jsxs)(x.ZP,{scopes:[m.Sh.PROPERTY_CREATE],children:[(0,s.jsx)(o.xvT,{fontSize:"sm",children:"Click “Add property” to add your first property to Fides."}),(0,s.jsx)(j,{buttonLabel:"Add property",buttonProps:{type:"primary"}})]})]})}),M=()=>{let{isLoading:e}=(0,h.x8)(),t=(0,x.Tg)([m.Sh.PROPERTY_UPDATE]),{PAGE_SIZES:n,pageSize:l,setPageSize:f,onPreviousPageClick:y,isPreviousPageDisabled:C,onNextPageClick:b,isNextPageDisabled:v,startRange:w,endRange:P,pageIndex:R,setTotalPages:T,resetPageIndexToDefault:k}=(0,a.oi)(),M=(0,d.useRouter)(),[V,_]=(0,p.useState)(),N=(0,p.useCallback)(e=>{k(),_(e)},[k,_]),{isFetching:S,isLoading:q,data:O}=(0,g.gz)({page:R,size:l,search:V}),{items:A,total:F,pages:I}=(0,p.useMemo)(()=>O||Z,[O]);(0,p.useEffect)(()=>{T(I)},[I,T]);let L=(0,p.useMemo)(()=>[z.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(a.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(a.Rr,{value:"Property",...e})}),z.accessor(e=>e.type,{id:"type",cell:e=>(0,s.jsx)(a.G3,{value:c().capitalize(e.getValue())}),header:e=>(0,s.jsx)(a.Rr,{value:"Type",...e})}),z.accessor(e=>e.experiences.map(e=>e.name),{id:"experiences",cell:e=>(0,s.jsx)(a.WP,{suffix:"experiences",value:e.getValue(),...e}),header:e=>(0,s.jsx)(a.Rr,{value:"Experience",...e}),meta:{showHeaderMenu:!0}}),z.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e;return(0,s.jsx)(E,{property:t.original})}})],[]),W=(0,r.b7)({getCoreRowModel:(0,i.sC)(),getGroupedRowModel:(0,i.qe)(),getExpandedRowModel:(0,i.rV)(),columns:L,manualPagination:!0,data:A,state:{expanded:!0},columnResizeMode:"onChange"});return q||e?(0,s.jsx)(a.I4,{rowHeight:36,numRows:15}):(0,s.jsx)("div",{children:(0,s.jsxs)(o.kCb,{flex:1,direction:"column",overflow:"auto",children:[(0,s.jsxs)(a.Q$,{children:[(0,s.jsx)(a.HO,{globalFilter:V,setGlobalFilter:N,placeholder:"Search property"}),(0,s.jsx)(o.Ugi,{alignItems:"center",spacing:4,children:(0,s.jsx)(x.ZP,{scopes:[m.Sh.PROPERTY_CREATE],children:(0,s.jsx)(j,{buttonLabel:"Add property"})})})]}),(0,s.jsx)(a.ZK,{tableInstance:W,onRowClick:e=>{t&&M.push({pathname:u.D3,query:{id:e.id}})},emptyTableNotice:(0,s.jsx)(H,{})}),(0,s.jsx)(a.s8,{totalRows:F||0,pageSizes:n,setPageSize:f,onPreviousPageClick:y,isPreviousPageDisabled:C||S,onNextPageClick:b,isNextPageDisabled:v||S,startRange:w,endRange:P})]})})}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[79],{56358:function(e,t,n){n.d(t,{q:function(){return i}});var s=n(24246);let i=(0,n(96306).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,s.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},77213:function(e,t,n){n.d(t,{Z:function(){return u}});var s=n(24246),i=n(96306),r=n(88038),a=n.n(r),o=n(86677);n(27378);var l=n(25980),c=n(90867),d=n(77830),p=()=>{let e=(0,o.useRouter)();return(0,s.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,s.jsxs)(i.xuv,{children:[(0,s.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,s.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,s.jsx)(i.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,s.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},u=e=>{let{children:t,title:n,padded:r=!0,mainProps:d}=e,u=(0,l.hz)(),x=(0,o.useRouter)(),h="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,g=!(u.flags.privacyRequestsConfiguration&&h),{data:m}=(0,c.JE)(void 0,{skip:g}),{data:j}=(0,c.PW)(void 0,{skip:g}),f=u.flags.privacyRequestsConfiguration&&(!m||!j)&&h;return(0,s.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,s.jsxs)(a(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsxs)(i.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[f?(0,s.jsx)(p,{}):null,t]})]})}},58754:function(e,t,n){var s=n(24246),i=n(96306),r=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:a=!0,children:o,rightContent:l,style:c,...d}=e;return(0,s.jsxs)("div",{...d,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,s.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(i.lQT,{className:n||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,s.jsx)(r.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},19904:function(e,t,n){n.d(t,{Tg:function(){return a}});var s=n(24246),i=n(16134),r=n(31793);let a=e=>(0,i.C)(r.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return a(t)?(0,s.jsx)(s.Fragment,{children:n}):null}},70788:function(e,t,n){n.d(t,{m:function(){return c}});var s=n(24246),i=n(96306),r=n(79894),a=n.n(r),o=n(27378);let{Text:l}=i.AntTypography,c=e=>{let{items:t,...n}=e,r=(0,o.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let r=n===t.length-1,o={...e},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,s.jsx)(l,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,id:r?"breadcrumb-current-page":void 0,children:o.title})),c)?o.title=(0,s.jsx)(i.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,s.jsx)(a(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,s.jsx)(i.zrq,{items:r,...n})}},3642:function(e,t,n){var s=n(24246),i=n(96306),r=n(86677),a=n.n(r),o=n(27378),l=n(812),c=n(58452),d=n(77830),p=n(19904),u=n(46628),x=n(98795),h=n(54682);t.Z=e=>{let{property:t,triggerComponent:n}=e,r=(0,i.pmc)(),g=(0,i.qY0)(),[m]=(0,x.YW)(),j=t.experiences.length>0,f=async()=>{g.onClose();let e=await m(t.id);if((0,l.D4)(e)){r((0,u.Vo)((0,l.e$)(e.error)));return}a().push("".concat(d.ru)),r((0,u.t5)("Property ".concat(t.name," deleted successfully")))};return(0,s.jsxs)(p.ZP,{scopes:[h.Sh.PROPERTY_DELETE],children:[(0,s.jsx)(i.esZ,{title:j?"All of the experiences on this property must be unlinked before the property can be deleted.":void 0,placement:"right",children:(0,s.jsx)("span",{children:o.cloneElement(n,{onClick:e=>{e.stopPropagation(),j||g.onOpen()},disabled:j})})}),(0,s.jsx)(c.Z,{isOpen:g.isOpen,onClose:g.onClose,onConfirm:f,title:"Delete ".concat(t.name),message:(0,s.jsxs)(i.xvT,{color:"gray.500",children:["You are about to delete property ",t.name,". This action is not reversible and will result in ",t.name," no longer being available for your data governance. Are you sure you want to proceed?"]}),continueButtonText:"Ok",isCentered:!0,icon:(0,s.jsx)(i.aNP,{})})]})}},25783:function(e,t,n){n.d(t,{V:function(){return M}});var s=n(24246),i=n(92222),r=n(59003),a=n(47935),o=n(96306),l=n(98784),c=n.n(l),d=n(86677),p=n(27378),u=n(77830),x=n(19904),h=n(32885),g=n(98795),m=n(54682),j=e=>{let{buttonLabel:t,buttonProps:n}=e,i=(0,d.useRouter)();return(0,s.jsx)(o.wpx,{onClick:()=>i.push(u.B9),"data-testid":"add-property-button",...n,children:t})},f=n(56358),y=n(88340),C=n(25980),b=n(14048);let v="{privacy-center-hostname-and-path}",w="{property-unique-id}",P='<script src="https://'.concat(v,"/fides.js?property_id=").concat(w,'"></script>'),R="<script>Fides.gtm()</script>";var T=e=>{let{property:t}=e,n=(0,o.qY0)(),i=(0,p.useRef)(null),{fidesCloud:r}=(0,C.hz)(),{data:a,isSuccess:l}=(0,h.Vh)(void 0,{skip:!r}),c=(0,p.useMemo)(()=>{let e=P.replace(w,t.id.toString());return r&&l&&(null==a?void 0:a.privacy_center_url)&&e.replace(v,a.privacy_center_url),e},[null==a?void 0:a.privacy_center_url,r,l,t]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.wpx,{"aria-label":"Install property",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(b.A5,{}),onClick:e=>{e.stopPropagation(),n.onOpen()}}),(0,s.jsxs)(o.u_l,{isOpen:n.isOpen,onClose:n.onClose,isCentered:!0,size:"xl",initialFocusRef:i,children:[(0,s.jsx)(o.ZAr,{}),(0,s.jsxs)(o.hzk,{"data-testid":"copy-js-tag-modal",children:[(0,s.jsx)(o.xBx,{tabIndex:-1,ref:i,pb:0,children:"Install Fides Consent Manager"}),(0,s.jsx)(o.fef,{pt:3,pb:6,fontSize:"14px",fontWeight:500,children:(0,s.jsxs)(o.Kqy,{spacing:3,children:[(0,s.jsxs)(o.xvT,{children:["Copy the code below and paste it onto every page of the"," ",t.name," property."]}),(0,s.jsxs)(o.xvT,{children:["1. Paste this code as high in the ",(0,s.jsx)("b",{children:"<head>"})," of the page as possible:"]}),(0,s.jsxs)(o.EKh,{display:"flex",justifyContent:"space-between",alignItems:"top",p:0,children:[(0,s.jsx)(o.xvT,{p:4,children:c}),(0,s.jsx)(y.Z,{copyText:c})]}),(0,s.jsx)(o.xvT,{children:"2. Optionally, you can enable Google Tag Manager for managing tags on your website by including the script tag below along with the Fides.js tag. Place it below the Fides.js script tag."}),(0,s.jsxs)(o.EKh,{display:"flex",justifyContent:"space-between",alignItems:"center",p:0,children:[(0,s.jsx)(o.xvT,{p:4,children:R}),(0,s.jsx)(y.Z,{copyText:R})]}),(0,s.jsxs)(o.xvT,{children:["For more information about adding a JavaScript tag to your website, please visit"," ",(0,s.jsx)(o.rUS,{color:"complimentary.500",href:"https://docs.ethyca.com/tutorials/consent-management-configuration/install-fides#install-fidesjs-script-on-your-website",isExternal:!0,children:"docs.ethyca.com"})]})]})})]})]})]})},k=n(3642),E=e=>{let{property:t}=e,n=(0,d.useRouter)(),i=()=>{n.push("".concat(u.ru,"/").concat(t.id))};return(0,s.jsxs)(o.xuv,{py:2,children:[(0,s.jsx)(T,{property:t}),(0,s.jsx)(x.ZP,{scopes:[m.Sh.PROPERTY_UPDATE],children:(0,s.jsx)(o.wpx,{"aria-label":"Edit property","data-testid":"edit-property-button",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(o.dY8,{}),onClick:e=>{e.stopPropagation(),i()}})}),(0,s.jsx)(k.Z,{property:t,triggerComponent:(0,s.jsx)(o.wpx,{"aria-label":"Delete property","data-testid":"delete-property-button",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(f.q,{})})})]})};let z=(0,i.Cl)(),Z={items:[],total:0,page:1,size:25,pages:1},H=()=>(0,s.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:(0,s.jsxs)(o.gCW,{children:[(0,s.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No properties found."}),(0,s.jsxs)(x.ZP,{scopes:[m.Sh.PROPERTY_CREATE],children:[(0,s.jsx)(o.xvT,{fontSize:"sm",children:"Click “Add property” to add your first property to Fides."}),(0,s.jsx)(j,{buttonLabel:"Add property",buttonProps:{type:"primary"}})]})]})}),M=()=>{let{isLoading:e}=(0,h.x8)(),t=(0,x.Tg)([m.Sh.PROPERTY_UPDATE]),{PAGE_SIZES:n,pageSize:l,setPageSize:f,onPreviousPageClick:y,isPreviousPageDisabled:C,onNextPageClick:b,isNextPageDisabled:v,startRange:w,endRange:P,pageIndex:R,setTotalPages:T,resetPageIndexToDefault:k}=(0,a.oi)(),M=(0,d.useRouter)(),[V,_]=(0,p.useState)(),N=(0,p.useCallback)(e=>{k(),_(e)},[k,_]),{isFetching:S,isLoading:q,data:O}=(0,g.gz)({page:R,size:l,search:V}),{items:A,total:F,pages:I}=(0,p.useMemo)(()=>O||Z,[O]);(0,p.useEffect)(()=>{T(I)},[I,T]);let L=(0,p.useMemo)(()=>[z.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(a.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(a.Rr,{value:"Property",...e})}),z.accessor(e=>e.type,{id:"type",cell:e=>(0,s.jsx)(a.G3,{value:c().capitalize(e.getValue())}),header:e=>(0,s.jsx)(a.Rr,{value:"Type",...e})}),z.accessor(e=>e.experiences.map(e=>e.name),{id:"experiences",cell:e=>(0,s.jsx)(a.WP,{suffix:"experiences",value:e.getValue(),...e}),header:e=>(0,s.jsx)(a.Rr,{value:"Experience",...e}),meta:{showHeaderMenu:!0}}),z.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e;return(0,s.jsx)(E,{property:t.original})}})],[]),W=(0,r.b7)({getCoreRowModel:(0,i.sC)(),getGroupedRowModel:(0,i.qe)(),getExpandedRowModel:(0,i.rV)(),columns:L,manualPagination:!0,data:A,state:{expanded:!0},columnResizeMode:"onChange"});return q||e?(0,s.jsx)(a.I4,{rowHeight:36,numRows:15}):(0,s.jsx)("div",{children:(0,s.jsxs)(o.kCb,{flex:1,direction:"column",overflow:"auto",children:[(0,s.jsxs)(a.Q$,{children:[(0,s.jsx)(a.HO,{globalFilter:V,setGlobalFilter:N,placeholder:"Search property"}),(0,s.jsx)(o.Ugi,{alignItems:"center",spacing:4,children:(0,s.jsx)(x.ZP,{scopes:[m.Sh.PROPERTY_CREATE],children:(0,s.jsx)(j,{buttonLabel:"Add property"})})})]}),(0,s.jsx)(a.ZK,{tableInstance:W,onRowClick:e=>{t&&M.push({pathname:u.D3,query:{id:e.id}})},emptyTableNotice:(0,s.jsx)(H,{})}),(0,s.jsx)(a.s8,{totalRows:F||0,pageSizes:n,setPageSize:f,onPreviousPageClick:y,isPreviousPageDisabled:C||S,onNextPageClick:b,isNextPageDisabled:v||S,startRange:w,endRange:P})]})})}}}]);
|
fides/ui-build/static/admin/_next/static/chunks/{796-8773e04b64ce2260.js → 796-db1e30119ea973c7.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[796],{77213:function(e,t,n){n.d(t,{Z:function(){return g}});var i=n(24246),l=n(39941),s=n(88038),o=n.n(s),a=n(86677);n(27378);var r=n(25980),d=n(90867),c=n(77830),u=()=>{let e=(0,a.useRouter)();return(0,i.jsx)(l.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(l.xuv,{children:[(0,i.jsxs)(l.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(l.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(l.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,i.jsxs)(l.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},g=e=>{let{children:t,title:n,padded:s=!0,mainProps:c}=e,g=(0,r.hz)(),h=(0,a.useRouter)(),x="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,m=!(g.flags.privacyRequestsConfiguration&&x),{data:p}=(0,d.JE)(void 0,{skip:m}),{data:j}=(0,d.PW)(void 0,{skip:m}),f=g.flags.privacyRequestsConfiguration&&(!p||!j)&&x;return(0,i.jsxs)(l.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)(l.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:[f?(0,i.jsx)(u,{}):null,t]})]})}},58754:function(e,t,n){var i=n(24246),l=n(39941),s=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:o=!0,children:a,rightContent:r,style:d,...c}=e;return(0,i.jsxs)("div",{...c,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,i.jsxs)(l.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(l.lQT,{className:n||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,r&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:r})]}),!!n&&(0,i.jsx)(s.m,{className:a?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),a]})}},70788:function(e,t,n){n.d(t,{m:function(){return d}});var i=n(24246),l=n(39941),s=n(79894),o=n.n(s),a=n(27378);let{Text:r}=l.AntTypography,d=e=>{let{items:t,...n}=e,s=(0,a.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let s=n===t.length-1,a={...e},d=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,i.jsx)(r,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,id:s?"breadcrumb-current-page":void 0,children:a.title})),d)?a.title=(0,i.jsx)(l.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}),[t]);return(0,i.jsx)(l.zrq,{items:s,...n})}},15826:function(e,t,n){n.d(t,{$:function(){return k}});var i=n(24246),l=n(92222),s=n(59003),o=n(25980),a=n(812),r=n(47935),d=n(46628),c=n(39941),u=n(86677),g=n(27378),h=n(16134),x=n(58452),m=n(77830),p=n(23923),j=n(32885);let f=e=>{let{onChange:t,displayText:n,isChecked:l,value:s}=e;return(0,i.jsx)(c.XZJ,{id:"checkbox-".concat(s),value:s,height:"20px",mb:3,isChecked:l,onChange:t,colorScheme:"complimentary",mr:5,children:(0,i.jsx)(c.xvT,{fontSize:"sm",lineHeight:5,height:"20px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",children:n})},s)},b={GVL:!1,AC:!1,COMPASS:!1};var v=e=>{let{isOpen:t,onClose:n,tableInstance:l}=e,[s,o]=(0,g.useState)(b);return(0,g.useMemo)(()=>{let e={id:"vendor_id",value:[]};s.GVL&&e.value.push("gvl"),s.AC&&e.value.push("gacp"),l.setColumnFilters([e])},[s,l]),(0,i.jsxs)(c.u_l,{isOpen:t,onClose:n,isCentered:!0,size:"2xl",children:[(0,i.jsx)(c.ZAr,{}),(0,i.jsxs)(c.hzk,{children:[(0,i.jsx)(c.xBx,{children:"Filters"}),(0,i.jsx)(c.olH,{}),(0,i.jsx)(c.izJ,{}),(0,i.jsxs)(c.fef,{maxH:"85vh",px:6,py:4,overflowX:"auto",children:[(0,i.jsx)(c.xvT,{fontSize:"md",fontWeight:"bold",mb:2,children:"Sources"}),(0,i.jsx)(f,{onChange:()=>{o(e=>({...e,GVL:!e.GVL}))},displayText:a.iC.gvl.fullName,isChecked:s.GVL,value:"gvl"}),(0,i.jsx)(f,{onChange:()=>{o(e=>({...e,AC:!e.AC}))},displayText:a.iC.gacp.fullName,isChecked:s.AC,value:"gacp"})]}),(0,i.jsx)(c.mzw,{children:(0,i.jsxs)(c.xuv,{display:"flex",justifyContent:"space-between",width:"100%",children:[(0,i.jsx)(c.wpx,{onClick:()=>{l.setColumnFilters([]),o(b)},className:"mr-3 grow",children:"Reset Filters"}),(0,i.jsx)(c.wpx,{"data-testid":"filter-done-btn",type:"primary",onClick:n,className:"grow",children:"Done"})]})})]})]})};let C=e=>{var t;let{value:n}=e,l=(0,a.cj)(n),s=null!==(t=a.iC[l])&&void 0!==t?t:{label:"",fullName:""};return(0,i.jsx)(c.kCb,{alignItems:"center",justifyContent:"center",height:"100%",mr:"2",children:(0,i.jsx)(c.esZ,{title:s.fullName,children:(0,i.jsx)(c.j8w,{children:s.label})})})},w=(0,l.Cl)(),y=()=>(0,i.jsxs)(c.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:[(0,i.jsxs)(c.gCW,{children:[(0,i.jsx)(c.xvT,{fontSize:"md",fontWeight:"600",children:"No results found."}),(0,i.jsx)(c.xvT,{fontSize:"sm",children:'Can\'t find the vendor you are looking for? Add custom systems or unlisted\n vendors by selecting the "Add custom vendor" button below.'})]}),(0,i.jsx)(p.Z,{buttonLabel:"Add custom vendor",buttonProps:{type:"primary"}})]}),S="Vendor",k=e=>{let{redirectRoute:t}=e,n=(0,c.pmc)(),{dictionaryService:f,tcf:b}=(0,o.hz)(),{isLoading:k}=(0,j.x8)(),R=(0,u.useRouter)(),{isLoading:L}=(0,j.iN)(void 0,{skip:!f}),[z,{isLoading:N,isSuccess:I}]=(0,j.Qk)(),A=(0,h.C)(j.gG),[F,T]=(0,g.useState)(),{isOpen:_,onOpen:P,onClose:M}=(0,c.qY0)(),{isOpen:W,onClose:G,onOpen:V}=(0,c.qY0)(),[O,Z]=(0,g.useState)(!1),q=A.every(e=>e.linked_system),D=(0,g.useMemo)(()=>[w.display({id:"select",header:e=>{let{table:t}=e;return(0,i.jsx)(r.k,{dataTestId:"select-page-checkbox",isChecked:t.getIsAllPageRowsSelected(),isDisabled:q||t.getPaginationRowModel().rows.filter(e=>e.original.linked_system).length===t.getState().pagination.pageSize,isIndeterminate:t.getPaginationRowModel().rows.filter(e=>e.getCanSelect()).some(e=>!e.getIsSelected()),onChange:()=>{t.setRowSelection(e=>{let n={...e};return t.getRowModel().rows.forEach(e=>{e.getCanSelect()&&(n[e.id]=!n[e.id])}),n}),Z(e=>!e)}})},cell:e=>{let{row:t}=e;return(0,i.jsx)(r.k,{isChecked:t.getIsSelected(),isDisabled:!t.getCanSelect(),isIndeterminate:t.getIsSomeSelected(),onChange:t.getToggleSelectedHandler()})}}),w.accessor(e=>e.vendor_id,{id:"id",cell:e=>(0,i.jsx)(r.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(r.Rr,{value:"ID",...e}),enableColumnFilter:b}),w.accessor(e=>e.name,{id:"name",cell:e=>(0,i.jsx)(r.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(r.Rr,{value:"Name",...e})}),w.accessor(e=>e.vendor_id,{id:"source",cell:e=>(0,i.jsx)(C,{value:e.getValue()}),header:e=>(0,i.jsx)(r.Rr,{value:"Source",...e}),enableColumnFilter:b,filterFn:"arrIncludesSome"})],[q,b]),E=(0,s.b7)({columns:D,data:A,getCoreRowModel:(0,l.sC)(),getSortedRowModel:(0,l.tj)(),getFilteredRowModel:(0,l.vL)(),getPaginationRowModel:(0,l.G_)(),onGlobalFilterChange:T,enableRowSelection:e=>!e.original.linked_system,enableSorting:!0,enableGlobalFilter:!0,state:{globalFilter:F,columnVisibility:{id:b,source:b}},initialState:{pagination:{pageSize:r.W3[0]},columnSizing:{select:0,id:0,source:0,name:0}},enableColumnResizing:!0,columnResizeMode:"onChange"});(0,g.useEffect)(()=>{let e={};A.forEach((t,n)=>{t.linked_system&&(e[n]=!0)}),Object.keys(e).length&&E.setRowSelection(e)},[A,E]);let{totalRows:H,onPreviousPageClick:B,isPreviousPageDisabled:Y,onNextPageClick:$,isNextPageDisabled:J,setPageSize:Q,startRange:X,endRange:K}=(0,r.bX)(E),U=async()=>{let e=E.getSelectedRowModel().rows.filter(e=>!e.original.linked_system).map(e=>e.original.vendor_id);if(e.length>0){let i=await z(e);R.push(t),(0,a.D4)(i)?n((0,d.Vo)((0,a.e$)(i.error))):n((0,d.t5)("Successfully added ".concat(e.length," ").concat(S.toLocaleLowerCase()).concat(e.length>1?"s":"")))}},ee=E.getSelectedRowModel().rows.some(e=>!e.original.linked_system);if(!f&&!k)return R.push(m.gp),null;if(N||I)return(0,i.jsx)(c.kCb,{height:"100%",justifyContent:"center",alignItems:"center",children:(0,i.jsx)(c.$jN,{})});if(L)return(0,i.jsx)(r.I4,{rowHeight:36,numRows:15});let et=q?"All ".concat(S.toLocaleLowerCase(),"s have already been added"):"Select a ".concat(S.toLocaleLowerCase()," "),en=E.getSelectedRowModel().rows.filter(e=>!e.original.linked_system).length,ei=E.getState().columnFilters.length>0?E.getState().columnFilters.filter(e=>"vendor_id"===e.id)[0].value.length:0;return(0,i.jsxs)(c.kCb,{flex:1,direction:"column",overflow:"auto","data-testid":"add-multiple-systems-tbl",children:[(0,i.jsx)(x.Z,{isOpen:W,isCentered:!0,onCancel:G,onClose:G,onConfirm:U,title:"Confirmation",message:"You are about to add ".concat(en.toLocaleString("en")," ").concat(S.toLocaleLowerCase()).concat(en>1?"s":"")}),(0,i.jsx)(v,{isOpen:_,onClose:M,tableInstance:E}),(0,i.jsxs)(r.Q$,{children:[(0,i.jsxs)(c.kCb,{alignItems:"center",grow:1,children:[(0,i.jsx)(c.xuv,{maxW:"420px",width:"100%",children:(0,i.jsx)(r.HO,{globalFilter:F,setGlobalFilter:T,placeholder:"Search"})}),en>0?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(c.xvT,{fontWeight:"700",fontSize:"sm",lineHeight:"2",ml:4,children:[en.toLocaleString("en")," selected"]}),(0,i.jsx)(c.esZ,{title:et,children:(0,i.jsx)(c.wpx,{onClick:V,"data-testid":"add-multiple-systems-btn",disabled:!ee,className:"ml-4",children:"Add"})})]}):null]}),(0,i.jsxs)(c.Ugi,{spacing:4,alignItems:"center",children:[(0,i.jsx)(p.Z,{buttonLabel:"Add custom vendor"}),b?(0,i.jsx)("span",{children:(0,i.jsxs)(c.wpx,{onClick:P,"data-testid":"filter-multiple-systems-btn",children:["Filter",ei>0?(0,i.jsx)(c.j8w,{className:"mr-0",children:ei}):null]})}):null]})]}),(0,i.jsx)(r.ZK,{tableInstance:E,rowActionBar:(0,i.jsx)(r.AA,{tableInstance:E,selectedRows:en,isOpen:O}),renderRowTooltipLabel:e=>{if(!e.getCanSelect())return"This vendor has already been added. You can view the properties of this vendor by going to the System Inventory."},emptyTableNotice:(0,i.jsx)(y,{})}),(0,i.jsx)(r.s8,{pageSizes:r.W3,totalRows:H||0,onPreviousPageClick:B,isPreviousPageDisabled:Y,onNextPageClick:$,isNextPageDisabled:J,setPageSize:Q,startRange:X,endRange:K})]})}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[796],{77213:function(e,t,n){n.d(t,{Z:function(){return g}});var i=n(24246),l=n(96306),s=n(88038),o=n.n(s),a=n(86677);n(27378);var r=n(25980),d=n(90867),c=n(77830),u=()=>{let e=(0,a.useRouter)();return(0,i.jsx)(l.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(l.xuv,{children:[(0,i.jsxs)(l.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(l.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(l.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,i.jsxs)(l.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},g=e=>{let{children:t,title:n,padded:s=!0,mainProps:c}=e,g=(0,r.hz)(),h=(0,a.useRouter)(),x="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,m=!(g.flags.privacyRequestsConfiguration&&x),{data:p}=(0,d.JE)(void 0,{skip:m}),{data:j}=(0,d.PW)(void 0,{skip:m}),f=g.flags.privacyRequestsConfiguration&&(!p||!j)&&x;return(0,i.jsxs)(l.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)(l.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:[f?(0,i.jsx)(u,{}):null,t]})]})}},58754:function(e,t,n){var i=n(24246),l=n(96306),s=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:o=!0,children:a,rightContent:r,style:d,...c}=e;return(0,i.jsxs)("div",{...c,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,i.jsxs)(l.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(l.lQT,{className:n||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,r&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:r})]}),!!n&&(0,i.jsx)(s.m,{className:a?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),a]})}},70788:function(e,t,n){n.d(t,{m:function(){return d}});var i=n(24246),l=n(96306),s=n(79894),o=n.n(s),a=n(27378);let{Text:r}=l.AntTypography,d=e=>{let{items:t,...n}=e,s=(0,a.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let s=n===t.length-1,a={...e},d=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,i.jsx)(r,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,id:s?"breadcrumb-current-page":void 0,children:a.title})),d)?a.title=(0,i.jsx)(l.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}),[t]);return(0,i.jsx)(l.zrq,{items:s,...n})}},15826:function(e,t,n){n.d(t,{$:function(){return k}});var i=n(24246),l=n(92222),s=n(59003),o=n(25980),a=n(812),r=n(47935),d=n(46628),c=n(96306),u=n(86677),g=n(27378),h=n(16134),x=n(58452),m=n(77830),p=n(23923),j=n(32885);let f=e=>{let{onChange:t,displayText:n,isChecked:l,value:s}=e;return(0,i.jsx)(c.XZJ,{id:"checkbox-".concat(s),value:s,height:"20px",mb:3,isChecked:l,onChange:t,colorScheme:"complimentary",mr:5,children:(0,i.jsx)(c.xvT,{fontSize:"sm",lineHeight:5,height:"20px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",children:n})},s)},b={GVL:!1,AC:!1,COMPASS:!1};var v=e=>{let{isOpen:t,onClose:n,tableInstance:l}=e,[s,o]=(0,g.useState)(b);return(0,g.useMemo)(()=>{let e={id:"vendor_id",value:[]};s.GVL&&e.value.push("gvl"),s.AC&&e.value.push("gacp"),l.setColumnFilters([e])},[s,l]),(0,i.jsxs)(c.u_l,{isOpen:t,onClose:n,isCentered:!0,size:"2xl",children:[(0,i.jsx)(c.ZAr,{}),(0,i.jsxs)(c.hzk,{children:[(0,i.jsx)(c.xBx,{children:"Filters"}),(0,i.jsx)(c.olH,{}),(0,i.jsx)(c.izJ,{}),(0,i.jsxs)(c.fef,{maxH:"85vh",px:6,py:4,overflowX:"auto",children:[(0,i.jsx)(c.xvT,{fontSize:"md",fontWeight:"bold",mb:2,children:"Sources"}),(0,i.jsx)(f,{onChange:()=>{o(e=>({...e,GVL:!e.GVL}))},displayText:a.iC.gvl.fullName,isChecked:s.GVL,value:"gvl"}),(0,i.jsx)(f,{onChange:()=>{o(e=>({...e,AC:!e.AC}))},displayText:a.iC.gacp.fullName,isChecked:s.AC,value:"gacp"})]}),(0,i.jsx)(c.mzw,{children:(0,i.jsxs)(c.xuv,{display:"flex",justifyContent:"space-between",width:"100%",children:[(0,i.jsx)(c.wpx,{onClick:()=>{l.setColumnFilters([]),o(b)},className:"mr-3 grow",children:"Reset Filters"}),(0,i.jsx)(c.wpx,{"data-testid":"filter-done-btn",type:"primary",onClick:n,className:"grow",children:"Done"})]})})]})]})};let C=e=>{var t;let{value:n}=e,l=(0,a.cj)(n),s=null!==(t=a.iC[l])&&void 0!==t?t:{label:"",fullName:""};return(0,i.jsx)(c.kCb,{alignItems:"center",justifyContent:"center",height:"100%",mr:"2",children:(0,i.jsx)(c.esZ,{title:s.fullName,children:(0,i.jsx)(c.j8w,{children:s.label})})})},w=(0,l.Cl)(),y=()=>(0,i.jsxs)(c.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:[(0,i.jsxs)(c.gCW,{children:[(0,i.jsx)(c.xvT,{fontSize:"md",fontWeight:"600",children:"No results found."}),(0,i.jsx)(c.xvT,{fontSize:"sm",children:'Can\'t find the vendor you are looking for? Add custom systems or unlisted\n vendors by selecting the "Add custom vendor" button below.'})]}),(0,i.jsx)(p.Z,{buttonLabel:"Add custom vendor",buttonProps:{type:"primary"}})]}),S="Vendor",k=e=>{let{redirectRoute:t}=e,n=(0,c.pmc)(),{dictionaryService:f,tcf:b}=(0,o.hz)(),{isLoading:k}=(0,j.x8)(),R=(0,u.useRouter)(),{isLoading:L}=(0,j.iN)(void 0,{skip:!f}),[z,{isLoading:N,isSuccess:I}]=(0,j.Qk)(),A=(0,h.C)(j.gG),[F,T]=(0,g.useState)(),{isOpen:_,onOpen:P,onClose:M}=(0,c.qY0)(),{isOpen:W,onClose:G,onOpen:V}=(0,c.qY0)(),[O,Z]=(0,g.useState)(!1),q=A.every(e=>e.linked_system),D=(0,g.useMemo)(()=>[w.display({id:"select",header:e=>{let{table:t}=e;return(0,i.jsx)(r.k,{dataTestId:"select-page-checkbox",isChecked:t.getIsAllPageRowsSelected(),isDisabled:q||t.getPaginationRowModel().rows.filter(e=>e.original.linked_system).length===t.getState().pagination.pageSize,isIndeterminate:t.getPaginationRowModel().rows.filter(e=>e.getCanSelect()).some(e=>!e.getIsSelected()),onChange:()=>{t.setRowSelection(e=>{let n={...e};return t.getRowModel().rows.forEach(e=>{e.getCanSelect()&&(n[e.id]=!n[e.id])}),n}),Z(e=>!e)}})},cell:e=>{let{row:t}=e;return(0,i.jsx)(r.k,{isChecked:t.getIsSelected(),isDisabled:!t.getCanSelect(),isIndeterminate:t.getIsSomeSelected(),onChange:t.getToggleSelectedHandler()})}}),w.accessor(e=>e.vendor_id,{id:"id",cell:e=>(0,i.jsx)(r.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(r.Rr,{value:"ID",...e}),enableColumnFilter:b}),w.accessor(e=>e.name,{id:"name",cell:e=>(0,i.jsx)(r.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(r.Rr,{value:"Name",...e})}),w.accessor(e=>e.vendor_id,{id:"source",cell:e=>(0,i.jsx)(C,{value:e.getValue()}),header:e=>(0,i.jsx)(r.Rr,{value:"Source",...e}),enableColumnFilter:b,filterFn:"arrIncludesSome"})],[q,b]),E=(0,s.b7)({columns:D,data:A,getCoreRowModel:(0,l.sC)(),getSortedRowModel:(0,l.tj)(),getFilteredRowModel:(0,l.vL)(),getPaginationRowModel:(0,l.G_)(),onGlobalFilterChange:T,enableRowSelection:e=>!e.original.linked_system,enableSorting:!0,enableGlobalFilter:!0,state:{globalFilter:F,columnVisibility:{id:b,source:b}},initialState:{pagination:{pageSize:r.W3[0]},columnSizing:{select:0,id:0,source:0,name:0}},enableColumnResizing:!0,columnResizeMode:"onChange"});(0,g.useEffect)(()=>{let e={};A.forEach((t,n)=>{t.linked_system&&(e[n]=!0)}),Object.keys(e).length&&E.setRowSelection(e)},[A,E]);let{totalRows:H,onPreviousPageClick:B,isPreviousPageDisabled:Y,onNextPageClick:$,isNextPageDisabled:J,setPageSize:Q,startRange:X,endRange:K}=(0,r.bX)(E),U=async()=>{let e=E.getSelectedRowModel().rows.filter(e=>!e.original.linked_system).map(e=>e.original.vendor_id);if(e.length>0){let i=await z(e);R.push(t),(0,a.D4)(i)?n((0,d.Vo)((0,a.e$)(i.error))):n((0,d.t5)("Successfully added ".concat(e.length," ").concat(S.toLocaleLowerCase()).concat(e.length>1?"s":"")))}},ee=E.getSelectedRowModel().rows.some(e=>!e.original.linked_system);if(!f&&!k)return R.push(m.gp),null;if(N||I)return(0,i.jsx)(c.kCb,{height:"100%",justifyContent:"center",alignItems:"center",children:(0,i.jsx)(c.$jN,{})});if(L)return(0,i.jsx)(r.I4,{rowHeight:36,numRows:15});let et=q?"All ".concat(S.toLocaleLowerCase(),"s have already been added"):"Select a ".concat(S.toLocaleLowerCase()," "),en=E.getSelectedRowModel().rows.filter(e=>!e.original.linked_system).length,ei=E.getState().columnFilters.length>0?E.getState().columnFilters.filter(e=>"vendor_id"===e.id)[0].value.length:0;return(0,i.jsxs)(c.kCb,{flex:1,direction:"column",overflow:"auto","data-testid":"add-multiple-systems-tbl",children:[(0,i.jsx)(x.Z,{isOpen:W,isCentered:!0,onCancel:G,onClose:G,onConfirm:U,title:"Confirmation",message:"You are about to add ".concat(en.toLocaleString("en")," ").concat(S.toLocaleLowerCase()).concat(en>1?"s":"")}),(0,i.jsx)(v,{isOpen:_,onClose:M,tableInstance:E}),(0,i.jsxs)(r.Q$,{children:[(0,i.jsxs)(c.kCb,{alignItems:"center",grow:1,children:[(0,i.jsx)(c.xuv,{maxW:"420px",width:"100%",children:(0,i.jsx)(r.HO,{globalFilter:F,setGlobalFilter:T,placeholder:"Search"})}),en>0?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(c.xvT,{fontWeight:"700",fontSize:"sm",lineHeight:"2",ml:4,children:[en.toLocaleString("en")," selected"]}),(0,i.jsx)(c.esZ,{title:et,children:(0,i.jsx)(c.wpx,{onClick:V,"data-testid":"add-multiple-systems-btn",disabled:!ee,className:"ml-4",children:"Add"})})]}):null]}),(0,i.jsxs)(c.Ugi,{spacing:4,alignItems:"center",children:[(0,i.jsx)(p.Z,{buttonLabel:"Add custom vendor"}),b?(0,i.jsx)("span",{children:(0,i.jsxs)(c.wpx,{onClick:P,"data-testid":"filter-multiple-systems-btn",children:["Filter",ei>0?(0,i.jsx)(c.j8w,{className:"mr-0",children:ei}):null]})}):null]})]}),(0,i.jsx)(r.ZK,{tableInstance:E,rowActionBar:(0,i.jsx)(r.AA,{tableInstance:E,selectedRows:en,isOpen:O}),renderRowTooltipLabel:e=>{if(!e.getCanSelect())return"This vendor has already been added. You can view the properties of this vendor by going to the System Inventory."},emptyTableNotice:(0,i.jsx)(y,{})}),(0,i.jsx)(r.s8,{pageSizes:r.W3,totalRows:H||0,onPreviousPageClick:B,isPreviousPageDisabled:Y,onNextPageClick:$,isNextPageDisabled:J,setPageSize:Q,startRange:X,endRange:K})]})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8002],{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),l=Math.max,o=Math.min;t.exports=function(t,e,n){var c,u,a,d,f,v,x=0,h=!1,I=!1,E=!0;if("function"!=typeof t)throw TypeError("Expected a function");function j(e){var n=c,i=u;return c=u=void 0,x=e,d=t.apply(i,n)}function L(t){var n=t-v,i=t-x;return void 0===v||n>=e||n<0||I&&i>=a}function _(){var t,n,i,s=r();if(L(s))return A(s);f=setTimeout(_,(t=s-v,n=s-x,i=e-t,I?o(i,a-n):i))}function A(t){return(f=void 0,E&&c)?j(t):(c=u=void 0,d)}function C(){var t,n=r(),i=L(n);if(c=arguments,u=this,v=n,i){if(void 0===f)return x=t=v,f=setTimeout(_,e),h?j(t):d;if(I)return clearTimeout(f),f=setTimeout(_,e),j(v)}return void 0===f&&(f=setTimeout(_,e)),d}return e=s(e)||0,i(n)&&(h=!!n.leading,a=(I="maxWait"in n)?l(s(n.maxWait)||0,e):a,E="trailing"in n?!!n.trailing:E),C.cancel=function(){void 0!==f&&clearTimeout(f),x=0,c=v=u=f=void 0},C.flush=function(){return void 0===f?d:A(r())},C}},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),l=0/0,o=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,a=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(s(t))return l;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=c.test(t);return n||u.test(t)?a(t.slice(2),n?2:8):o.test(t)?l:+t}},30952:function(t,e,n){"use strict";n.d(e,{f:function(){return c}});var i=n(24246),r=n(66726),s=n.n(r),l=n(27378),o=n(26917);let c=t=>{let{value:e,onChange:n,placeholder:r,...c}=t,[u,a]=(0,l.useState)(e);(0,l.useEffect)(()=>{a(e||"")},[e]);let d=s()(n,500),f=(0,l.useCallback)(t=>{a(t),d(t)},[]);return(0,i.jsx)(o.Z,{value:u,onChange:f,onClear:()=>{a(""),n("")},placeholder:r,...c})}},35287:function(t,e,n){"use strict";var i=n(24246),r=n(96306),s=n(88038),l=n.n(s);n(27378),e.Z=t=>{let{children:e,title:n,mainProps:s}=t;return(0,i.jsxs)(r.kCb,{"data-testid":n,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,i.jsxs)(l(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsx)(r.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...s,children:e})]})}},79494:function(t,e,n){"use strict";var i=n(24246),r=n(96306);e.Z=t=>{let{title:e,icon:n,type:s,...l}=t;return(0,i.jsx)(r.wpx,{size:"small",type:s,"data-testid":"action-".concat(e),icon:n,iconPosition:"start",...l,children:e})}},38347:function(t,e,n){"use strict";n.d(e,{a:function(){return l}});var i=n(24246),r=n(96306),s=n(76904);let l=()=>{let t=(0,i.jsx)("div",{style:{maxWidth:300},children:(0,i.jsxs)(r.bue,{gutter:[16,8],children:[(0,i.jsx)(r.JGx,{span:12,children:(0,i.jsxs)(r.vyj,{children:[(0,i.jsx)(s.Rv,{}),(0,i.jsx)("div",{children:"Change detected"})]})}),(0,i.jsx)(r.JGx,{span:12,children:(0,i.jsxs)(r.vyj,{children:[(0,i.jsx)(s.$P,{}),(0,i.jsx)("div",{children:"Data labeled"})]})}),(0,i.jsx)(r.JGx,{span:12,children:(0,i.jsxs)(r.vyj,{children:[(0,i.jsx)(s.zj,{}),(0,i.jsx)("div",{children:"Monitoring"})]})}),(0,i.jsx)(r.JGx,{span:12,children:(0,i.jsxs)(r.vyj,{children:[(0,i.jsx)(s.dK,{}),(0,i.jsx)("div",{children:"Addition detected"})]})}),(0,i.jsx)(r.JGx,{span:12,children:(0,i.jsxs)(r.vyj,{children:[(0,i.jsx)(s.Kr,{}),(0,i.jsx)("div",{children:"Unmonitored"})]})}),(0,i.jsx)(r.JGx,{span:12,children:(0,i.jsxs)(r.vyj,{children:[(0,i.jsx)(s.q1,{}),(0,i.jsx)("div",{children:"Removal detected"})]})})]})});return(0,i.jsx)(r.bPF,{content:t,title:"Activity legend:",trigger:["hover","focus"],children:(0,i.jsx)(r.PJP.QKH,{style:{color:"var(--fidesui-neutral-400)",cursor:"pointer"},tabIndex:0})})}},47182:function(t,e,n){"use strict";var i=n(86677),r=n(77830);e.Z=()=>{let t=(0,i.useRouter)();return{monitorId:t.query.monitorId,resourceUrn:t.query.resourceUrn,navigateToDetectionResults:e=>{let{resourceUrn:n,filterTab:i}=e;t.push({pathname:r.dS,query:{resourceUrn:n},hash:i})},navigateToDiscoveryResults:e=>{let{resourceUrn:n,filterTab:i}=e;t.push({pathname:r.Sj,query:{resourceUrn:n},hash:i})}}}},76904:function(t,e,n){"use strict";n.d(e,{dK:function(){return d},Rv:function(){return h},$P:function(){return v},zj:function(){return I},Kr:function(){return E},q1:function(){return f},QL:function(){return j}});var i=n(24246),r=n(96306),s=n(3124),l=n.n(s);let o=t=>{let{...e}=t;return(0,i.jsx)("svg",{viewBox:"0 0 8 8",focusable:"false",...e,children:(0,i.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"})})},c=t=>{let{...e}=t;return(0,i.jsx)("svg",{viewBox:"0 0 8 8",focusable:"false",...e,children:(0,i.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"})})},u=t=>{let{...e}=t;return(0,i.jsx)("svg",{viewBox:"0 0 9 10",focusable:"false",...e,children:(0,i.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 a=n(28278);let d=()=>(0,i.jsx)(c,{style:{color:l().FIDESUI_SUCCESS},className:"size-2","data-testid":"add-icon"}),f=()=>(0,i.jsx)(o,{style:{color:l().FIDESUI_ERROR},className:"size-2","data-testid":"remove-icon"}),v=()=>(0,i.jsx)(u,{style:{color:l().FIDESUI_WARNING},className:"size-3","data-testid":"classify-icon"}),x=t=>{let{color:e,...n}=t;return(0,i.jsx)(r.PJP.fRw,{style:{color:e},className:"size-2",...n})},h=()=>(0,i.jsx)(x,{color:l().FIDESUI_INFO,"data-testid":"change-icon"}),I=()=>(0,i.jsx)(x,{color:l().FIDESUI_SUCCESS,"data-testid":"monitored-icon"}),E=()=>(0,i.jsx)(x,{color:l().FIDESUI_ERROR,"data-testid":"muted-icon"}),j={[a.E.ADDITION]:(0,i.jsx)(d,{}),[a.E.REMOVAL]:(0,i.jsx)(f,{}),[a.E.CLASSIFICATION]:(0,i.jsx)(v,{}),[a.E.CHANGE]:(0,i.jsx)(h,{}),[a.E.MONITORED]:(0,i.jsx)(I,{}),[a.E.MUTED]:(0,i.jsx)(E,{}),[a.E.IN_PROGRESS]:(0,i.jsx)(()=>(0,i.jsx)(x,{color:l().FIDESUI_WARNING,"data-testid":"in-progress-icon"}),{}),[a.E.NONE]:null}},87667:function(t,e,n){"use strict";var i=n(24246),r=n(96306),s=n(76904),l=n(20449),o=n(98559),c=n(80356);e.Z=t=>{let{result:e,changeTypeOverride:n}=t,u=null!=n?n:(0,l.Z)(e);return(0,i.jsxs)(r.vyj,{className:"h-full",children:[(0,i.jsx)(r.esZ,{title:u,children:(0,i.jsx)("span",{children:s.QL[u]})}),(0,i.jsx)(r.xvT,{fontSize:"xs",lineHeight:4,fontWeight:(0,c.Z)(e)?"semibold":"normal",overflow:"hidden",textOverflow:"ellipsis",children:(0,o.Z)(e)})]})}},50169:function(t,e,n){"use strict";var i=n(24246),r=n(47935),s=n(28278),l=n(20449);let o={[s.E.MUTED]:{color:"marble",label:"Unmonitored"},[s.E.MONITORED]:{color:"success",label:"Monitoring"},[s.E.IN_PROGRESS]:{color:"info",label:"Classifying"}};e.Z=t=>{var e,n,s,c,u;let{result:a,changeTypeOverride:d}=t;if(null===(e=a.user_assigned_data_categories)||void 0===e?void 0:e.length)return(0,i.jsx)(r.A4,{color:"success",value:"Reviewed"});let f=null!=d?d:(0,l.Z)(a);return(0,i.jsx)(r.A4,{color:null!==(c=null===(n=o[f])||void 0===n?void 0:n.color)&&void 0!==c?c:"warning",value:null!==(u=null===(s=o[f])||void 0===s?void 0:s.label)&&void 0!==u?u:"Pending review"})}},28278:function(t,e,n){"use strict";var i,r;n.d(e,{E:function(){return i}}),(r=i||(i={})).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(t,e){"use strict";e.Z=t=>{let e=t.split(".");return e.length>1?e[1]:""}},20449:function(t,e,n){"use strict";var i=n(28278),r=n(54682);e.Z=t=>t.diff_status===r.LL.ADDITION?i.E.ADDITION:t.diff_status===r.LL.REMOVAL?i.E.REMOVAL:t.diff_status===r.LL.CLASSIFYING||t.diff_status===r.LL.CLASSIFICATION_QUEUED?i.E.IN_PROGRESS:t.diff_status===r.LL.CLASSIFICATION_ADDITION||t.diff_status===r.LL.CLASSIFICATION_UPDATE?i.E.CLASSIFICATION:t.child_diff_statuses?t.child_diff_statuses[r.LL.CLASSIFYING]||t.child_diff_statuses[r.LL.CLASSIFICATION_QUEUED]?i.E.IN_PROGRESS:t.child_diff_statuses[r.LL.CLASSIFICATION_ADDITION]||t.child_diff_statuses[r.LL.CLASSIFICATION_UPDATE]?i.E.CLASSIFICATION:t.child_diff_statuses[r.LL.ADDITION]||t.child_diff_statuses[r.LL.REMOVAL]?i.E.CHANGE:t.diff_status===r.LL.MONITORED?i.E.MONITORED:t.diff_status===r.LL.MUTED?i.E.MUTED:i.E.NONE:i.E.NONE},7940:function(t,e,n){"use strict";n.d(e,{G:function(){return r}});var i=n(54682);let r=t=>{var e,n,r;return t?t.resource_type?t.resource_type:(null===(e=t.schemas)||void 0===e?void 0:e.length)?i.D$.DATABASE:(null===(n=t.tables)||void 0===n?void 0:n.length)?i.D$.SCHEMA:(null===(r=t.fields)||void 0===r?void 0:r.length)?i.D$.TABLE:i.D$.FIELD:void 0}},98559:function(t,e){"use strict";e.Z=t=>{let{name:e,urn:n,monitor_config_id:i,database_name:r,schema_name:s,table_name:l,top_level_field_name:o,top_level_field_urn:c}=t;if(!o)return e;let u=n.split(".");return c?n.replace("".concat(c).concat("."),""):([i,r,s,l,o].forEach(t=>{if(t){let e=u.indexOf(t);e>-1&&u.splice(e,1)}}),u.join("."))}},80285:function(t,e){"use strict";e.Z=t=>t.urn},36168:function(t,e){"use strict";e.Z=t=>{var e;return!!t.parent_table_urn&&null!==(e=t.sub_field_urns)&&void 0!==e&&!!e.length&&!t.top_level_field_name}},80356:function(t,e,n){"use strict";var i=n(7940),r=n(36168),s=n(54682);e.Z=t=>(0,i.G)(t)!==s.D$.FIELD||(0,r.Z)(t)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9046],{14908:function(e,s,a){var i=a(86677),t=a(27378);let l=e=>e.startsWith("#")?e.slice(1):e;s.Z=e=>{let{tabKeys:s,initialTab:a}=e,r=(0,i.useRouter)(),n=r.asPath.split("#")[1]||s[0],[o,d]=(0,t.useState)(n);return(0,t.useEffect)(()=>{a&&s.includes(a)&&d(a)},[a,s,r.isReady]),{activeTab:o,onTabChange:(0,t.useCallback)(async e=>{if(!s.includes(e)){await r.replace({pathname:r.pathname,query:r.query,hash:void 0}),d(s[0]);return}r.isReady&&(await r.replace({pathname:r.pathname,query:r.query,hash:l(e)},void 0,{shallow:!0}),d(e))},[r,s])}}},69828:function(e,s,a){a.d(s,{Y:function(){return r}});var i=a(24246),t=a(39941),l=a(70788);let r=[(0,i.jsx)(t.PJP.S9g,{},"layers"),(0,i.jsx)(t.PJP.ehp,{},"dataset"),(0,i.jsx)(t.PJP.iA_,{},"table"),(0,i.jsx)(t.PJP.$4y,{style:{transform:"rotate(-90deg)"}},"field")];s.Z=e=>{let{resourceUrn:s,parentLink:a,onPathClick:t=()=>{}}=e,n=[];if(s||n.push({title:"All activity"}),s){n.push({title:"All activity",href:a});let e=s.split(".");e.forEach((s,a)=>{0!==a&&n.push({title:s,icon:r[a-1],onClick:s=>{s.preventDefault(),t(e.slice(0,a+1).join("."))}})})}return(0,i.jsx)(l.m,{"data-testid":"results-breadcrumb",items:n})}},11904:function(e,s,a){a.d(s,{Z:function(){return E}});var i,t,l=a(24246),r=a(59003),n=a(92222),o=a(39941),d=a(27378),c=a(47935),u=a(70675),g=a(72625),x=a(79947),j=a(50169),h=a(28278),m=a(74241),p=a(54682),I=a(91761),C=a(61099),f=a(87667),y=e=>{let{resourceType:s}=e,a=(0,n.Cl)();return s===p.D$.SCHEMA?{columns:[a.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(f.Z,{result:e.row.original,changeTypeOverride:h.E.CLASSIFICATION}),header:e=>(0,l.jsx)(c.Rr,{value:"Name",...e}),size:300}),a.accessor(e=>e.urn,{id:"project",cell:e=>(0,l.jsx)(c.G3,{value:(0,m.Z)(e.getValue())}),header:e=>(0,l.jsx)(c.Rr,{value:"Project",...e})}),a.display({id:"status",cell:e=>(0,l.jsx)(j.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Status",...e})}),a.accessor(e=>e.system,{id:"system",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"System",...e})}),a.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"Detected by",...e})}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(g.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"When",...e})}),a.display({id:"action",cell:e=>e.row.original.diff_status!==p.LL.MUTED?(0,l.jsx)(I.Z,{resource:e.row.original}):(0,l.jsx)(c.G3,{value:"--"}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===p.D$.TABLE?{columns:[a.display({id:"select",cell:e=>{var s;let{row:a}=e;return(0,l.jsx)(g.k,{isChecked:a.getIsSelected(),onChange:a.getToggleSelectedHandler(),dataTestId:"select-".concat(null!==(s=a.original.name)&&void 0!==s?s:a.id)})},header:e=>{let{table:s}=e;return(0,l.jsx)(g.k,{isChecked:s.getIsAllPageRowsSelected(),isIndeterminate:s.getIsSomeRowsSelected(),onChange:s.getToggleAllRowsSelectedHandler(),dataTestId:"select-all-rows"})},maxSize:40}),a.accessor(e=>e.name,{id:"tables",cell:e=>(0,l.jsx)(f.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Table name",...e}),size:300}),a.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(c.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),a.display({id:"status",cell:e=>(0,l.jsx)(j.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Status",...e})}),a.display({id:"type",cell:()=>(0,l.jsx)(c.G3,{value:"Table"}),header:"Type"}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(g.Cy,{time:e.getValue()}),header:"Time"}),a.display({id:"actions",cell:e=>(0,l.jsx)(I.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===p.D$.FIELD?{columns:[a.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(f.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Field name",...e}),size:300}),a.accessor(e=>e.source_data_type,{id:"data-type",cell:e=>(0,l.jsx)(x.Z,{type:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"Data type",...e})}),a.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(c.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),a.display({id:"status",cell:e=>(0,l.jsx)(j.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Status",...e})}),a.display({id:"type",cell:()=>(0,l.jsx)(c.G3,{value:"Field"}),header:"Type"}),a.display({id:"classifications",cell:e=>{let{row:s}=e;return(0,l.jsx)(C.Z,{resource:s.original})},meta:{overflow:"visible",disableRowClick:!0},header:"Data category",minSize:280}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(g.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"When",...e})}),a.display({id:"actions",cell:e=>(0,l.jsx)(I.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===p.D$.ENDPOINT?{columns:[a.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(f.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Object",...e}),size:300}),a.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(c.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),a.display({id:"status",cell:e=>(0,l.jsx)(j.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Status",...e})}),a.display({id:"type",cell:()=>(0,l.jsx)(c.G3,{value:"Endpoint"}),header:"Type"}),a.display({id:"classifications",cell:e=>{let{row:s}=e;return(0,l.jsx)(C.Z,{resource:s.original})},meta:{overflow:"visible",disableRowClick:!0},header:"Data category",minSize:280}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(g.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"When",...e})}),a.display({id:"actions",cell:e=>(0,l.jsx)(I.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:{columns:[]}},v=a(14908);(i=t||(t={})).ACTION_REQUIRED="action-required",i.IN_PROGRESS="in-progress",i.UNMONITORED="unmonitored";let L={"action-required":{label:"Action Required",key:"action-required",filters:[p.LL.CLASSIFICATION_ADDITION,p.LL.CLASSIFICATION_UPDATE],childFilters:[p.LL.CLASSIFICATION_ADDITION,p.LL.CLASSIFICATION_UPDATE]},"in-progress":{label:"In progress",key:"in-progress",filters:[p.LL.CLASSIFYING,p.LL.CLASSIFICATION_QUEUED],childFilters:[p.LL.CLASSIFYING,p.LL.CLASSIFICATION_QUEUED]},unmonitored:{label:"Unmonitored",key:"unmonitored",filters:[p.LL.MUTED],childFilters:[]}};var S=()=>{var e,s;let{activeTab:a,onTabChange:i}=(0,v.Z)({tabKeys:Object.values(t)});return{filterTabs:Object.values(L),activeTab:a,onTabChange:i,activeDiffFilters:null===(e=L[a])||void 0===e?void 0:e.filters,activeChildDiffFilters:null===(s=L[a])||void 0===s?void 0:s.childFilters}},_=a(47182),b=a(38347),w=a(79494),A=e=>{let{resourceUrn:s}=e,[a,{isLoading:i}]=(0,u.Hf)(),[t,{isLoading:r}]=(0,u.zV)(),n=i||r,d=async e=>{await t({staged_resource_urns:e})},c=async e=>{await a({staged_resource_urns:e})};return(0,l.jsx)(o.jqI,{"data-testid":"bulk-actions-menu",children:(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(w.Z,{title:"Confirm all",icon:(0,l.jsx)(o.nQG,{}),onClick:()=>c([s]),disabled:n,loading:i,type:"primary",size:"middle"}),(0,l.jsx)(w.Z,{title:"Ignore all",icon:(0,l.jsx)(o.tpL,{}),onClick:()=>d([s]),disabled:n,loading:r,size:"middle"})]})})},R=e=>{let{selectedUrns:s}=e,[a,{isLoading:i}]=(0,u.Hf)(),[t,{isLoading:r}]=(0,u.zV)(),n=i||r,d=async e=>{await a({staged_resource_urns:e})},c=async e=>{await t({staged_resource_urns:e})};return s.length?(0,l.jsxs)(o.jqI,{className:"items-center","data-testid":"bulk-actions-menu",children:[(0,l.jsx)(o.xvT,{fontSize:"xs",fontWeight:"semibold",minW:16,mr:4,children:"".concat(s.length," selected")}),(0,l.jsxs)(o.jqI,{className:"gap-2",children:[(0,l.jsx)(w.Z,{title:"Confirm",icon:(0,l.jsx)(o.nQG,{}),onClick:()=>d(s),disabled:n,loading:i,type:"primary",size:"middle"}),(0,l.jsx)(w.Z,{title:"Ignore",icon:(0,l.jsx)(o.tpL,{}),disabled:n,loading:r,onClick:()=>c(s),size:"middle"})]})]}):null},T=a(7940),D=a(80285),k=a(36168),N=a(30952);let F={items:[],total:0,page:1,size:50,pages:1},Z=()=>(0,l.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,l.jsxs)(o.gCW,{children:[(0,l.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,l.jsx)(o.xvT,{fontSize:"sm",children:"You're up to date!"})]})});var E=e=>{let{resourceUrn:s}=e,[a,i]=(0,d.useState)(""),{filterTabs:t,activeTab:g,onTabChange:x,activeDiffFilters:j,activeChildDiffFilters:h}=S(),[m,I]=(0,d.useState)({}),{PAGE_SIZES:C,pageSize:f,setPageSize:v,onPreviousPageClick:L,isPreviousPageDisabled:w,onNextPageClick:E,isNextPageDisabled:P,startRange:O,endRange:z,pageIndex:G,setTotalPages:U,resetPageIndexToDefault:M}=(0,c.oi)();(0,d.useEffect)(()=>{M()},[s,a,M,j,h]);let{isFetching:V,isLoading:q,data:$}=(0,u.z8)({staged_resource_urn:s,page:G,size:f,child_diff_status:h,diff_status:j,search:a}),W=(0,T.G)(null==$?void 0:$.items[0]),{items:H,total:Q,pages:Y}=(0,d.useMemo)(()=>null!=$?$:F,[$]);(0,d.useEffect)(()=>{U(Y)},[Y,U]);let{columns:J}=y({resourceType:W}),K=(0,d.useMemo)(()=>J,[J]),{navigateToDiscoveryResults:B}=(0,_.Z)(),X=(0,r.b7)({getCoreRowModel:(0,n.sC)(),getGroupedRowModel:(0,n.qe)(),getExpandedRowModel:(0,n.rV)(),columns:K,manualPagination:!0,onRowSelectionChange:I,state:{rowSelection:m},getRowId:D.Z,data:H,columnResizeMode:"onChange"}),ee=Object.keys(m).filter(e=>m[e]);return q?(0,l.jsx)(c.I4,{rowHeight:36,numRows:36}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.A5g,{items:t.map(e=>({key:e.key,label:e.label})),activeKey:g,onChange:e=>x(e)}),(0,l.jsxs)(c.Q$,{children:[(0,l.jsxs)(o.kCb,{gap:6,align:"center",children:[(0,l.jsx)(o.xuv,{flexShrink:0,children:(0,l.jsx)(N.f,{value:a,onChange:i})}),(0,l.jsx)(b.Z,{})]}),W===p.D$.TABLE&&!!ee.length&&(0,l.jsx)(R,{selectedUrns:ee}),W===p.D$.FIELD&&"unmonitored"!==g&&(0,l.jsx)(A,{resourceUrn:s})]}),(0,l.jsx)(c.ZK,{tableInstance:X,onRowClick:e=>B({resourceUrn:e.urn,filterTab:g}),getRowIsClickable:e=>W!==p.D$.FIELD||(0,k.Z)(e),emptyTableNotice:(0,l.jsx)(Z,{})}),(0,l.jsx)(c.s8,{totalRows:Q||0,pageSizes:C,setPageSize:v,onPreviousPageClick:L,isPreviousPageDisabled:w||V,onNextPageClick:E,isNextPageDisabled:P||V,startRange:O,endRange:z})]})}},91761:function(e,s,a){var i=a(24246),t=a(39941),l=a(812),r=a(25010),n=a(7940),o=a(98559),d=a(54682),c=a(79494),u=a(70675);s.Z=e=>{let{resource:s}=e,[a,{isLoading:g}]=(0,u.v8)(),[x,{isLoading:j}]=(0,u.cM)(),[h,{isLoading:m}]=(0,u.vi)(),p=j||m||g,{diff_status:I,child_diff_statuses:C,top_level_field_name:f}=s,{successAlert:y,errorAlert:v}=(0,r.VY)(),L=I===d.LL.CLASSIFICATION_ADDITION||I===d.LL.CLASSIFICATION_UPDATE,S=C&&(C[d.LL.CLASSIFICATION_ADDITION]||C[d.LL.CLASSIFICATION_UPDATE]),_=(L||S)&&!f,b=L||S,w=(0,n.G)(s)!==d.D$.FIELD,A=_&&b&&w,R=async()=>{let e=await x({staged_resource_urn:s.urn});(0,l.D4)(e)?v((0,l.e$)(e.error),"Failed to promote resource"):y('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},T=async()=>{let e=await h({staged_resource_urn:s.urn});(0,l.D4)(e)?v((0,l.e$)(e.error),"Failed to mute resource"):y("Ignored changes will not be added to a Fides dataset.","".concat(s.name||"Changes"," ignored"))},D=async()=>{let e=await a({staged_resource_urn:s.urn,monitor_config_id:s.monitor_config_id,start_classification:!0,diff_statuses_to_classify:[d.LL.CLASSIFICATION_ADDITION,d.LL.CLASSIFICATION_UPDATE,d.LL.CLASSIFYING,d.LL.CLASSIFICATION_QUEUED]});(0,l.D4)(e)?v((0,l.e$)(e.error),"Failed to reclassify resource"):y("Reclassification of ".concat((0,o.Z)(s)||"the resource"," has begun. The results may take some time to appear in the “Data discovery“ tab."),"Reclassification started")};return(0,i.jsxs)(t.Ugi,{gap:2,children:[_&&(0,i.jsx)(c.Z,{title:"Confirm",icon:(0,i.jsx)(t.nQG,{}),onClick:R,disabled:p,loading:j}),b&&(0,i.jsx)(c.Z,{title:"Ignore",icon:(0,i.jsx)(t.tpL,{}),onClick:T,disabled:p,loading:m}),w&&!A&&(0,i.jsx)(c.Z,{title:"Reclassify",icon:(0,i.jsx)(t.nyI,{}),onClick:D,disabled:p,loading:g}),A&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.LZC,{}),(0,i.jsxs)(t.v2r,{children:[(0,i.jsx)(t.j2t,{as:t.wpx,size:"small",type:"text",icon:(0,i.jsx)(t.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-overflow-btn"}),(0,i.jsx)(t.qyq,{children:(0,i.jsx)(t.sNh,{onClick:D,icon:(0,i.jsx)(t.nyI,{}),"data-testid":"action-reclassify",children:"Reclassify"})})]})]})]})}},79947:function(e,s,a){var i=a(24246),t=a(39941);s.Z=e=>{let{type:s}=e;return(0,i.jsx)(t.kCb,{align:"center",h:"full",children:!!s&&(0,i.jsx)(t.j8w,{children:s})})}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9046],{14908:function(e,s,a){var i=a(86677),t=a(27378);let l=e=>e.startsWith("#")?e.slice(1):e;s.Z=e=>{let{tabKeys:s,initialTab:a}=e,r=(0,i.useRouter)(),n=r.asPath.split("#")[1]||s[0],[o,d]=(0,t.useState)(n);return(0,t.useEffect)(()=>{a&&s.includes(a)&&d(a)},[a,s,r.isReady]),{activeTab:o,onTabChange:(0,t.useCallback)(async e=>{if(!s.includes(e)){await r.replace({pathname:r.pathname,query:r.query,hash:void 0}),d(s[0]);return}r.isReady&&(await r.replace({pathname:r.pathname,query:r.query,hash:l(e)},void 0,{shallow:!0}),d(e))},[r,s])}}},69828:function(e,s,a){a.d(s,{Y:function(){return r}});var i=a(24246),t=a(96306),l=a(70788);let r=[(0,i.jsx)(t.PJP.S9g,{},"layers"),(0,i.jsx)(t.PJP.ehp,{},"dataset"),(0,i.jsx)(t.PJP.iA_,{},"table"),(0,i.jsx)(t.PJP.$4y,{style:{transform:"rotate(-90deg)"}},"field")];s.Z=e=>{let{resourceUrn:s,parentLink:a,onPathClick:t=()=>{}}=e,n=[];if(s||n.push({title:"All activity"}),s){n.push({title:"All activity",href:a});let e=s.split(".");e.forEach((s,a)=>{0!==a&&n.push({title:s,icon:r[a-1],onClick:s=>{s.preventDefault(),t(e.slice(0,a+1).join("."))}})})}return(0,i.jsx)(l.m,{"data-testid":"results-breadcrumb",items:n})}},11904:function(e,s,a){a.d(s,{Z:function(){return E}});var i,t,l=a(24246),r=a(59003),n=a(92222),o=a(96306),d=a(27378),c=a(47935),u=a(70675),g=a(72625),x=a(79947),j=a(50169),h=a(28278),m=a(74241),p=a(54682),I=a(91761),C=a(61099),f=a(87667),y=e=>{let{resourceType:s}=e,a=(0,n.Cl)();return s===p.D$.SCHEMA?{columns:[a.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(f.Z,{result:e.row.original,changeTypeOverride:h.E.CLASSIFICATION}),header:e=>(0,l.jsx)(c.Rr,{value:"Name",...e}),size:300}),a.accessor(e=>e.urn,{id:"project",cell:e=>(0,l.jsx)(c.G3,{value:(0,m.Z)(e.getValue())}),header:e=>(0,l.jsx)(c.Rr,{value:"Project",...e})}),a.display({id:"status",cell:e=>(0,l.jsx)(j.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Status",...e})}),a.accessor(e=>e.system,{id:"system",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"System",...e})}),a.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"Detected by",...e})}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(g.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"When",...e})}),a.display({id:"action",cell:e=>e.row.original.diff_status!==p.LL.MUTED?(0,l.jsx)(I.Z,{resource:e.row.original}):(0,l.jsx)(c.G3,{value:"--"}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===p.D$.TABLE?{columns:[a.display({id:"select",cell:e=>{var s;let{row:a}=e;return(0,l.jsx)(g.k,{isChecked:a.getIsSelected(),onChange:a.getToggleSelectedHandler(),dataTestId:"select-".concat(null!==(s=a.original.name)&&void 0!==s?s:a.id)})},header:e=>{let{table:s}=e;return(0,l.jsx)(g.k,{isChecked:s.getIsAllPageRowsSelected(),isIndeterminate:s.getIsSomeRowsSelected(),onChange:s.getToggleAllRowsSelectedHandler(),dataTestId:"select-all-rows"})},maxSize:40}),a.accessor(e=>e.name,{id:"tables",cell:e=>(0,l.jsx)(f.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Table name",...e}),size:300}),a.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(c.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),a.display({id:"status",cell:e=>(0,l.jsx)(j.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Status",...e})}),a.display({id:"type",cell:()=>(0,l.jsx)(c.G3,{value:"Table"}),header:"Type"}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(g.Cy,{time:e.getValue()}),header:"Time"}),a.display({id:"actions",cell:e=>(0,l.jsx)(I.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===p.D$.FIELD?{columns:[a.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(f.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Field name",...e}),size:300}),a.accessor(e=>e.source_data_type,{id:"data-type",cell:e=>(0,l.jsx)(x.Z,{type:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"Data type",...e})}),a.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(c.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),a.display({id:"status",cell:e=>(0,l.jsx)(j.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Status",...e})}),a.display({id:"type",cell:()=>(0,l.jsx)(c.G3,{value:"Field"}),header:"Type"}),a.display({id:"classifications",cell:e=>{let{row:s}=e;return(0,l.jsx)(C.Z,{resource:s.original})},meta:{overflow:"visible",disableRowClick:!0},header:"Data category",minSize:280}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(g.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"When",...e})}),a.display({id:"actions",cell:e=>(0,l.jsx)(I.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===p.D$.ENDPOINT?{columns:[a.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(f.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Object",...e}),size:300}),a.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(c.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),a.display({id:"status",cell:e=>(0,l.jsx)(j.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Status",...e})}),a.display({id:"type",cell:()=>(0,l.jsx)(c.G3,{value:"Endpoint"}),header:"Type"}),a.display({id:"classifications",cell:e=>{let{row:s}=e;return(0,l.jsx)(C.Z,{resource:s.original})},meta:{overflow:"visible",disableRowClick:!0},header:"Data category",minSize:280}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(g.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"When",...e})}),a.display({id:"actions",cell:e=>(0,l.jsx)(I.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:{columns:[]}},v=a(14908);(i=t||(t={})).ACTION_REQUIRED="action-required",i.IN_PROGRESS="in-progress",i.UNMONITORED="unmonitored";let L={"action-required":{label:"Action Required",key:"action-required",filters:[p.LL.CLASSIFICATION_ADDITION,p.LL.CLASSIFICATION_UPDATE],childFilters:[p.LL.CLASSIFICATION_ADDITION,p.LL.CLASSIFICATION_UPDATE]},"in-progress":{label:"In progress",key:"in-progress",filters:[p.LL.CLASSIFYING,p.LL.CLASSIFICATION_QUEUED],childFilters:[p.LL.CLASSIFYING,p.LL.CLASSIFICATION_QUEUED]},unmonitored:{label:"Unmonitored",key:"unmonitored",filters:[p.LL.MUTED],childFilters:[]}};var S=()=>{var e,s;let{activeTab:a,onTabChange:i}=(0,v.Z)({tabKeys:Object.values(t)});return{filterTabs:Object.values(L),activeTab:a,onTabChange:i,activeDiffFilters:null===(e=L[a])||void 0===e?void 0:e.filters,activeChildDiffFilters:null===(s=L[a])||void 0===s?void 0:s.childFilters}},_=a(47182),b=a(38347),w=a(79494),A=e=>{let{resourceUrn:s}=e,[a,{isLoading:i}]=(0,u.Hf)(),[t,{isLoading:r}]=(0,u.zV)(),n=i||r,d=async e=>{await t({staged_resource_urns:e})},c=async e=>{await a({staged_resource_urns:e})};return(0,l.jsx)(o.jqI,{"data-testid":"bulk-actions-menu",children:(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(w.Z,{title:"Confirm all",icon:(0,l.jsx)(o.nQG,{}),onClick:()=>c([s]),disabled:n,loading:i,type:"primary",size:"middle"}),(0,l.jsx)(w.Z,{title:"Ignore all",icon:(0,l.jsx)(o.tpL,{}),onClick:()=>d([s]),disabled:n,loading:r,size:"middle"})]})})},R=e=>{let{selectedUrns:s}=e,[a,{isLoading:i}]=(0,u.Hf)(),[t,{isLoading:r}]=(0,u.zV)(),n=i||r,d=async e=>{await a({staged_resource_urns:e})},c=async e=>{await t({staged_resource_urns:e})};return s.length?(0,l.jsxs)(o.jqI,{className:"items-center","data-testid":"bulk-actions-menu",children:[(0,l.jsx)(o.xvT,{fontSize:"xs",fontWeight:"semibold",minW:16,mr:4,children:"".concat(s.length," selected")}),(0,l.jsxs)(o.jqI,{className:"gap-2",children:[(0,l.jsx)(w.Z,{title:"Confirm",icon:(0,l.jsx)(o.nQG,{}),onClick:()=>d(s),disabled:n,loading:i,type:"primary",size:"middle"}),(0,l.jsx)(w.Z,{title:"Ignore",icon:(0,l.jsx)(o.tpL,{}),disabled:n,loading:r,onClick:()=>c(s),size:"middle"})]})]}):null},T=a(7940),D=a(80285),k=a(36168),N=a(30952);let F={items:[],total:0,page:1,size:50,pages:1},Z=()=>(0,l.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,l.jsxs)(o.gCW,{children:[(0,l.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,l.jsx)(o.xvT,{fontSize:"sm",children:"You're up to date!"})]})});var E=e=>{let{resourceUrn:s}=e,[a,i]=(0,d.useState)(""),{filterTabs:t,activeTab:g,onTabChange:x,activeDiffFilters:j,activeChildDiffFilters:h}=S(),[m,I]=(0,d.useState)({}),{PAGE_SIZES:C,pageSize:f,setPageSize:v,onPreviousPageClick:L,isPreviousPageDisabled:w,onNextPageClick:E,isNextPageDisabled:P,startRange:O,endRange:z,pageIndex:G,setTotalPages:U,resetPageIndexToDefault:M}=(0,c.oi)();(0,d.useEffect)(()=>{M()},[s,a,M,j,h]);let{isFetching:V,isLoading:q,data:$}=(0,u.z8)({staged_resource_urn:s,page:G,size:f,child_diff_status:h,diff_status:j,search:a}),W=(0,T.G)(null==$?void 0:$.items[0]),{items:H,total:Q,pages:Y}=(0,d.useMemo)(()=>null!=$?$:F,[$]);(0,d.useEffect)(()=>{U(Y)},[Y,U]);let{columns:J}=y({resourceType:W}),K=(0,d.useMemo)(()=>J,[J]),{navigateToDiscoveryResults:B}=(0,_.Z)(),X=(0,r.b7)({getCoreRowModel:(0,n.sC)(),getGroupedRowModel:(0,n.qe)(),getExpandedRowModel:(0,n.rV)(),columns:K,manualPagination:!0,onRowSelectionChange:I,state:{rowSelection:m},getRowId:D.Z,data:H,columnResizeMode:"onChange"}),ee=Object.keys(m).filter(e=>m[e]);return q?(0,l.jsx)(c.I4,{rowHeight:36,numRows:36}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.A5g,{items:t.map(e=>({key:e.key,label:e.label})),activeKey:g,onChange:e=>x(e)}),(0,l.jsxs)(c.Q$,{children:[(0,l.jsxs)(o.kCb,{gap:6,align:"center",children:[(0,l.jsx)(o.xuv,{flexShrink:0,children:(0,l.jsx)(N.f,{value:a,onChange:i})}),(0,l.jsx)(b.a,{})]}),W===p.D$.TABLE&&!!ee.length&&(0,l.jsx)(R,{selectedUrns:ee}),W===p.D$.FIELD&&"unmonitored"!==g&&(0,l.jsx)(A,{resourceUrn:s})]}),(0,l.jsx)(c.ZK,{tableInstance:X,onRowClick:e=>B({resourceUrn:e.urn,filterTab:g}),getRowIsClickable:e=>W!==p.D$.FIELD||(0,k.Z)(e),emptyTableNotice:(0,l.jsx)(Z,{})}),(0,l.jsx)(c.s8,{totalRows:Q||0,pageSizes:C,setPageSize:v,onPreviousPageClick:L,isPreviousPageDisabled:w||V,onNextPageClick:E,isNextPageDisabled:P||V,startRange:O,endRange:z})]})}},91761:function(e,s,a){var i=a(24246),t=a(96306),l=a(812),r=a(41841),n=a(7940),o=a(98559),d=a(54682),c=a(79494),u=a(70675);s.Z=e=>{let{resource:s}=e,[a,{isLoading:g}]=(0,u.v8)(),[x,{isLoading:j}]=(0,u.cM)(),[h,{isLoading:m}]=(0,u.vi)(),p=j||m||g,{diff_status:I,child_diff_statuses:C,top_level_field_name:f}=s,{successAlert:y,errorAlert:v}=(0,r.VY)(),L=I===d.LL.CLASSIFICATION_ADDITION||I===d.LL.CLASSIFICATION_UPDATE,S=C&&(C[d.LL.CLASSIFICATION_ADDITION]||C[d.LL.CLASSIFICATION_UPDATE]),_=(L||S)&&!f,b=L||S,w=(0,n.G)(s)!==d.D$.FIELD,A=_&&b&&w,R=async()=>{let e=await x({staged_resource_urn:s.urn});(0,l.D4)(e)?v((0,l.e$)(e.error),"Failed to promote resource"):y('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},T=async()=>{let e=await h({staged_resource_urn:s.urn});(0,l.D4)(e)?v((0,l.e$)(e.error),"Failed to mute resource"):y("Ignored changes will not be added to a Fides dataset.","".concat(s.name||"Changes"," ignored"))},D=async()=>{let e=await a({staged_resource_urn:s.urn,monitor_config_id:s.monitor_config_id,start_classification:!0,diff_statuses_to_classify:[d.LL.CLASSIFICATION_ADDITION,d.LL.CLASSIFICATION_UPDATE,d.LL.CLASSIFYING,d.LL.CLASSIFICATION_QUEUED]});(0,l.D4)(e)?v((0,l.e$)(e.error),"Failed to reclassify resource"):y("Reclassification of ".concat((0,o.Z)(s)||"the resource"," has begun. The results may take some time to appear in the “Data discovery“ tab."),"Reclassification started")};return(0,i.jsxs)(t.Ugi,{gap:2,children:[_&&(0,i.jsx)(c.Z,{title:"Confirm",icon:(0,i.jsx)(t.nQG,{}),onClick:R,disabled:p,loading:j}),b&&(0,i.jsx)(c.Z,{title:"Ignore",icon:(0,i.jsx)(t.tpL,{}),onClick:T,disabled:p,loading:m}),w&&!A&&(0,i.jsx)(c.Z,{title:"Reclassify",icon:(0,i.jsx)(t.nyI,{}),onClick:D,disabled:p,loading:g}),A&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.LZC,{}),(0,i.jsxs)(t.v2r,{children:[(0,i.jsx)(t.j2t,{as:t.wpx,size:"small",type:"text",icon:(0,i.jsx)(t.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-overflow-btn"}),(0,i.jsx)(t.qyq,{children:(0,i.jsx)(t.sNh,{onClick:D,icon:(0,i.jsx)(t.nyI,{}),"data-testid":"action-reclassify",children:"Reclassify"})})]})]})]})}},79947:function(e,s,a){var i=a(24246),t=a(96306);s.Z=e=>{let{type:s}=e;return(0,i.jsx)(t.kCb,{align:"center",h:"full",children:!!s&&(0,i.jsx)(t.j8w,{children:s})})}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9676],{59676:function(e,i,r){r.r(i),r.d(i,{default:function(){return j}});var t=r(24246),s=r(
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9676],{59676:function(e,i,r){r.r(i),r.d(i,{default:function(){return j}});var t=r(24246),s=r(96306),n=r(16134),a=r(27378),l=r(812),o=r(41841),d=r(90867);let u=(0,s.Gpc)((e,i)=>{let{handleBlur:r,subjectRequest:u}=e,c=(0,n.T)(),[f,m]=(0,a.useState)(!1),{errorAlert:h,successAlert:x}=(0,o.VY)(),{errorRequests:p}=(0,n.C)(d.fe),[g]=(0,d.JD)(),[j]=(0,d.Fq)(),y=async()=>{m(!0);let e=await g(p);(0,l.D4)(e)?(c((0,d.uT)({checkAll:!1,errorRequests:[]})),h((0,l.e$)(e.error),"DSR batch automation has failed due to the following:",{duration:null})):(e.data.failed.length>0&&h((0,t.jsxs)(s.xuv,{children:["DSR automation has failed for"," ",(0,t.jsx)(s.xvT,{as:"span",fontWeight:"semibold",children:e.data.failed.length})," ","privacy request(s). Please review the event log for further details."]}),void 0,{containerStyle:{maxWidth:"max-content"},duration:null}),e.data.succeeded.length>0&&x("Privacy request(s) are now being reprocessed.")),m(!1)},v=async()=>{if(!u)return;m(!0);let e=await j(u);(0,l.D4)(e)?h((0,l.e$)(e.error),"DSR automation has failed for this privacy request due to the following:",{duration:null}):x("Privacy request is now being reprocessed."),m(!1),r&&r(i)};return(0,t.jsx)(s.wpx,{disabled:f,loading:f,onClick:u?v:y,ref:i,size:"small",icon:(0,t.jsx)(s.AyE,{}),children:"Reprocess"})});var c=r(34090),f=r(55484);let m=/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i,h=e=>m.test(e),x=(0,s.Gpc)((e,i)=>{let{isRequired:r=!1,...n}=e,{emails:l}=n.form.values,[o,d]=(0,a.useState)(""),u=e=>l.includes(e),c=e=>{e.map(e=>e.trim()).filter(e=>h(e)&&!u(e)).forEach(e=>n.push(e)),d("")};return(0,t.jsxs)(s.NIc,{alignItems:"baseline",display:"inline-flex",isInvalid:!!n.form.errors[n.name],isRequired:r,children:[(0,t.jsx)(s.lXp,{fontSize:"md",htmlFor:"email",children:"Email"}),(0,t.jsxs)(s.gCW,{align:"flex-start",w:"inherit",children:[(0,t.jsx)(s.IIB,{autoComplete:"off",placeholder:"Type or paste email addresses separated by commas and press `Enter` or `Tab`...",onChange:e=>{d(e.target.value)},onKeyDown:e=>{["Enter","Tab",","].includes(e.key)&&(e.preventDefault(),c([o]))},onPaste:e=>{e.preventDefault(),c(e.clipboardData.getData("text").split(","))},ref:i,size:"sm",type:"email",value:o}),(0,t.jsx)(s.J1D,{children:n.form.errors[n.name]}),l.length>0&&(0,t.jsx)(s.Eq9,{spacing:1,mb:3,pt:"8px",children:l.map((e,i)=>(0,t.jsxs)(s.Vp9,{borderRadius:"full",backgroundColor:"primary.400",color:"white",size:"sm",variant:"solid",children:[(0,t.jsx)(s.Sn0,{children:e}),(0,t.jsx)(s.SD9,{onClick:()=>{n.remove(i)}})]},e))})]})]})}),p=f.Ry().shape({emails:f.IX(f.Z_()).when(["notify"],{is:!0,then:()=>f.IX(f.Z_()).min(1,"Must enter at least one valid email").label("Email")}),notify:f.O7(),minErrorCount:f.Rx().required()});var g=()=>{let{isOpen:e,onOpen:i,onClose:r}=(0,s.qY0)(),[n,u]=(0,a.useState)({emails:[],notify:!1,minErrorCount:1}),f=(0,a.useRef)(null),{errorAlert:m,successAlert:h}=(0,o.VY)(),[g,j]=(0,a.useState)(!0),{data:y}=(0,d.tE)(void 0,{skip:g}),[v]=(0,d.SC)(),C=async(e,i)=>{i.setSubmitting(!0);let t=await v({email_addresses:e.emails,notify_after_failures:e.notify?e.minErrorCount:0});(0,l.D4)(t)?m((0,l.e$)(t.error),"Configure alerts and notifications has failed to save due to the following:"):h("Configure alerts and notifications saved successfully."),i.setSubmitting(!1),r()};return(0,a.useEffect)(()=>{e&&j(!1),y&&u({emails:y.email_addresses,notify:0!==y.notify_after_failures,minErrorCount:y.notify_after_failures})},[y,e]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.wpx,{onClick:i,title:"Configure alerts","aria-label":"Configure alerts",icon:(0,t.jsx)(s.Dkj,{})}),(0,t.jsx)(c.J9,{enableReinitialize:!0,initialValues:n,onSubmit:C,validationSchema:p,children:i=>(0,t.jsxs)(s.dys,{isOpen:e,placement:"right",initialFocusRef:f,onClose:()=>{i.resetForm(),r()},size:"lg",children:[(0,t.jsx)(s.P1B,{}),(0,t.jsxs)(s.scA,{color:"gray.900",children:[(0,t.jsx)(s.cCv,{}),(0,t.jsxs)(s.OXI,{color:"gray.900",children:[(0,t.jsx)(s.xvT,{fontSize:"2xl",fontWeight:"normal",mb:4,children:"Configure alerts and notifications"}),(0,t.jsx)(s.xuv,{mt:"26px",children:(0,t.jsx)(s.xvT,{fontSize:"md",fontWeight:"normal",children:"Setup your alerts to send you a notification when there are any processing failures. You can also setup a threshold for connector failures for Fides to notify you after X amount of failures have occurred."})})]}),(0,t.jsx)(s.Ng0,{mt:"20px",children:(0,t.jsxs)(c.l0,{id:"configure-alerts-form",noValidate:!0,children:[(0,t.jsx)(s.xvT,{fontSize:"md",children:"Contact details"}),(0,t.jsxs)(s.gCW,{align:"stretch",gap:"29px",mt:"14px",children:[(0,t.jsx)(s.Ugi,{children:(0,t.jsx)(c.F2,{name:"emails",render:e=>(0,t.jsx)(x,{...e,isRequired:i.values.notify,ref:f})})}),(0,t.jsx)(s.Ugi,{children:(0,t.jsx)(c.gN,{id:"notify",name:"notify",children:e=>{let{field:r}=e;return(0,t.jsxs)(s.NIc,{alignItems:"center",display:"flex",mt:"45px",children:[(0,t.jsx)(s.lXp,{fontSize:"md",mb:"0",children:"Notify me immediately if there are any DSR processing errors"}),(0,t.jsx)(s.rAg,{checked:i.values.notify,onChange:(e,t)=>{r.onChange(t),i.setFieldValue(r.name,e),i.setFieldValue("minErrorCount",1),e||setTimeout(()=>{i.setFieldTouched("emails",!1)},0)}})]})}})})]}),(0,t.jsx)(s.xvT,{color:"#757575",fontSize:"sm",mt:"11px",children:"If selected, then Fides will notify you by your chosen method of communication every time the system encounters a data subject request processing error. You can turn this off anytime and setup a more suitable notification method below if you wish."}),i.values.notify&&(0,t.jsx)(s.Ugi,{mt:"34px",children:(0,t.jsx)(c.gN,{id:"minErrorCount",name:"minErrorCount",children:e=>{let{field:r,meta:n}=e;return(0,t.jsxs)(s.NIc,{alignItems:"center",display:"flex",isInvalid:!!(n.error&&n.touched),isRequired:!0,children:[(0,t.jsx)(s.xvT,{children:"Notify me after"}),(0,t.jsxs)(s.Y2U,{allowMouseWheel:!0,color:"gray.700",defaultValue:i.values.minErrorCount||1,min:1,ml:"8px",mr:"8px",onChange:(e,r)=>{i.setFieldValue("minErrorCount",r)},size:"sm",w:"80px",children:[(0,t.jsx)(s.zuI,{...r}),(0,t.jsxs)(s.FiK,{children:[(0,t.jsx)(s.WQu,{}),(0,t.jsx)(s.Y_d,{})]})]}),(0,t.jsx)(s.xvT,{children:"DSR processing errors "})]})}})})]})}),(0,t.jsx)(s.zeN,{justifyContent:"flex-start",children:(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(s.wpx,{onClick:()=>{i.resetForm(),r()},children:"Cancel"}),(0,t.jsx)(s.wpx,{form:"configure-alerts-form",disabled:i.isSubmitting,loading:i.isSubmitting,htmlType:"submit",children:"Save"})]})})]})]})})]})},j=()=>{let{errorRequests:e}=(0,n.C)(d.fe);return(0,t.jsxs)(s.kCb,{gap:4,children:[(null==e?void 0:e.length)>0&&(0,t.jsx)(u,{}),(0,t.jsx)(g,{})]})}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9826],{77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var i=n(24246),r=n(
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9826],{77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var i=n(24246),r=n(96306),l=n(88038),s=n.n(l),o=n(86677);n(27378);var a=n(25980),d=n(90867),c=n(77830),u=()=>{let e=(0,o.useRouter)();return(0,i.jsx)(r.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(r.xuv,{children:[(0,i.jsxs)(r.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(r.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(r.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,i.jsxs)(r.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},h=e=>{let{children:t,title:n,padded:l=!0,mainProps:c}=e,h=(0,a.hz)(),m=(0,o.useRouter)(),p="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,x=!(h.flags.privacyRequestsConfiguration&&p),{data:g}=(0,d.JE)(void 0,{skip:x}),{data:f}=(0,d.PW)(void 0,{skip:x}),b=h.flags.privacyRequestsConfiguration&&(!g||!f)&&p;return(0,i.jsxs)(r.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(s(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(r.kCb,{as:"main",direction:"column",py:l?6:0,px:l?10:0,h:l?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[b?(0,i.jsx)(u,{}):null,t]})]})}},58754:function(e,t,n){"use strict";var i=n(24246),r=n(96306),l=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:s=!0,children:o,rightContent:a,style:d,...c}=e;return(0,i.jsxs)("div",{...c,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,i.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(r.lQT,{className:n||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,a&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:a})]}),!!n&&(0,i.jsx)(l.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},61524:function(e,t,n){"use strict";n.d(t,{I_:function(){return s}});var i=n(24246),r=n(96306),l=n(67991);let s=5,o=e=>{let{title:t,children:n}=e;return(0,i.jsx)(r.xuv,{p:4,display:"flex",alignItems:"flex-start",gap:"4px",borderRadius:"4px",boxShadow:"0px 1px 2px 0px rgba(0, 0, 0, 0.06), 0px 1px 3px 0px rgba(0, 0, 0, 0.1)",fontSize:"sm","data-testid":"picker-card-".concat(t),children:n})},a=e=>{let{title:t,items:n,selected:o,indeterminate:a,onChange:d,toggle:c,onViewMore:u,numSelected:h,variant:m="default"}=e,p=u?n.slice(0,s):n,{allSelected:x,someSelected:g,handleToggleAll:f,handleToggleSelection:b}=(0,l.QZ)({items:n,selected:o,onChange:d});return(0,i.jsxs)(r.gCW,{alignItems:"flex-start",spacing:3,width:"100%",height:"100%",children:[(0,i.jsxs)(r.kCb,{justifyContent:"space-between",width:"100%",children:[(0,i.jsx)(r.XZJ,{fontSize:"md",textTransform:"emphasize"===m?"capitalize":void 0,fontWeight:"emphasize"===m?"semibold":"auto",isChecked:x,size:"md",mr:"2",onChange:f,colorScheme:"complimentary","data-testid":"select-all",isIndeterminate:!x&&g,children:t}),null!=c?c:null]}),h>0?(0,i.jsxs)(r.j8w,{className:"w-fit","data-testid":"num-selected-badge",children:[h," selected"]}):null,(0,i.jsx)(r.gCW,{paddingLeft:"6",fontSize:"sm",alignItems:"start",spacing:"2",children:(0,i.jsx)(r.cOn,{colorScheme:"complimentary",children:p.map(e=>(0,i.jsx)(r.kCb,{alignItems:"center",gap:"8px",children:(0,i.jsx)(r.XZJ,{isChecked:o.includes(e.id),isIndeterminate:a.includes(e.id),size:"md",fontWeight:"emphasize"===m?"500":"auto",onChange:()=>b(e.id),"data-testid":"".concat(e.name,"-checkbox"),children:e.name},e.id)},e.id))})}),u?(0,i.jsx)(r.wpx,{size:"small",onClick:u,type:"text","data-testid":"view-more-btn",children:"View more"}):null]})};t.ZP=e=>{let{...t}=e;return(0,i.jsx)(o,{title:t.title,children:(0,i.jsx)(a,{...t,variant:"emphasize"})})}},26089:function(e,t,n){"use strict";var i=n(24246),r=n(96306),l=n(99830),s=n.n(l);t.Z=e=>{let{onClick:t,children:n}=e;return(0,i.jsx)(r.wpx,{onClick:t,type:"link",role:"link",size:"small",className:s().toastLink,children:n})}},67991:function(e,t,n){"use strict";n.d(t,{Od:function(){return l},QZ:function(){return r}});var i=n(27378);let r=e=>{let{items:t,selected:n,onChange:i}=e,r=t.every(e=>n.includes(e.id))&&!!t.length;return{allSelected:r,someSelected:t.some(e=>n.includes(e.id))&&!!t.length,handleToggleAll:()=>{r?i([]):i(t.map(e=>e.id))},handleToggleSelection:e=>{n.includes(e)?i(n.filter(t=>t!==e)):i([...n,e])}}},l=e=>{let{initialSelected:t,initialExcluded:n,initialAllSelected:r,itemCount:l}=e,[s,o]=(0,i.useState)(t),[a,d]=(0,i.useState)(n),[c,u]=(0,i.useState)(r||s.length===l),h=!!s.length||!!a.length;return{selected:s,excluded:a,allSelected:c,someSelected:h,handleToggleAll:()=>{c?(d([]),a.length||u(!1)):(o([]),u(!0))},handleToggleItemSelected:e=>{if(c)d(a.includes(e)?a.filter(t=>t!==e):[...a,e]);else{let t=s.includes(e)?s.filter(t=>t!==e):[...s,e];o(t),t.length===l&&u(!0)}}}}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return d}});var i=n(24246),r=n(96306),l=n(79894),s=n.n(l),o=n(27378);let{Text:a}=r.AntTypography,d=e=>{let{items:t,...n}=e,l=(0,o.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let l=n===t.length-1,o={...e},d=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,i.jsx)(a,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,id:l?"breadcrumb-current-page":void 0,children:o.title})),d)?o.title=(0,i.jsx)(r.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,i.jsx)(s(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,i.jsx)(r.zrq,{items:l,...n})}},12282:function(e,t,n){"use strict";n.d(t,{$_:function(){return o},h4:function(){return l},x$:function(){return s}});var i=n(24246),r=n(96306);let l=e=>{let{title:t}=e;return(0,i.jsx)(r.xBx,{fontSize:"lg",fontWeight:"semibold",pt:5,paddingInline:6,pb:5,backgroundColor:"gray.50",borderTopRadius:"md",borderBottom:"1px solid",borderColor:"gray.200",children:t})},s=e=>{let{title:t,allSelected:n,numSelected:l,onToggleAll:s,children:o}=e;return(0,i.jsxs)(r.kCb,{justifyContent:"space-between",mb:4,children:[(0,i.jsxs)(r.xuv,{children:[(0,i.jsx)(r.XZJ,{colorScheme:"complimentary",size:"md",isChecked:n,isIndeterminate:!n&&l>0,onChange:s,mr:3,"data-testid":"select-all",children:(0,i.jsx)(r.xvT,{fontWeight:"semibold",fontSize:"md",children:t})}),(0,i.jsxs)(r.j8w,{color:"minos",className:"w-fit","data-testid":"num-selected-badge",children:[l," selected"]})]}),o]})},o=e=>{let{onApply:t,onClose:n}=e;return(0,i.jsx)(r.mzw,{justifyContent:"center",children:(0,i.jsxs)("div",{className:"flex w-full justify-between",children:[(0,i.jsx)(r.wpx,{onClick:n,"data-testid":"cancel-btn",children:"Cancel"}),(0,i.jsx)(r.wpx,{type:"primary",onClick:t,"data-testid":"apply-btn",children:"Apply"})]})})}},85759:function(e,t,n){"use strict";n.d(t,{$q:function(){return s},F7:function(){return r},Il:function(){return i},VT:function(){return l},ji:function(){return o}});let i=(e,t)=>{let n={};return new Set(e.map(e=>e.continent).sort()).forEach(i=>{n[i]={locationGroups:t.filter(e=>e.continent===i).sort((e,t)=>e.name.localeCompare(t.name)),locations:e.filter(e=>e.continent===i).sort((e,t)=>e.name.localeCompare(t.name))}}),n},r=e=>{let t={};return new Set(e.map(e=>e.continent).sort()).forEach(n=>{t[n]=e.filter(e=>e.continent===n).sort((e,t)=>e.name.localeCompare(t.name))}),t},l=e=>{let t={};new Set(e.map(e=>e.belongs_to).flat().sort()).forEach(n=>{n&&(t[n]=e.filter(e=>{var t;return null===(t=e.belongs_to)||void 0===t?void 0:t.includes(n)}).sort((e,t)=>e.name.localeCompare(t.name)))});let n=e.filter(e=>!e.belongs_to||0===e.belongs_to.length);return n.length&&(t.Other=n),t},s=(e,t)=>{var n;return null!==(n=e.regulation)&&void 0!==n&&!!n.length||t.filter(t=>{var n;return null===(n=t.belongs_to)||void 0===n?void 0:n.includes(e.id)}).some(e=>{var t;return null===(t=e.regulation)||void 0===t?void 0:t.length})},o=e=>{let{group:t,selected:n,locations:i}=e,r=i.filter(e=>{var n;return null===(n=e.belongs_to)||void 0===n?void 0:n.includes(t.id)});return 0===r.length?"unchecked":r.every(e=>n.includes(e.id))?"checked":r.every(e=>!n.includes(e.id))?"unchecked":"indeterminate"}},31883:function(e,t,n){"use strict";n.d(t,{Bw:function(){return i.Bw},D4:function(){return i.D4}});var i=n(19043)},99830:function(e){e.exports={toastLink:"ToastLink_toastLink__OLSeq"}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9951],{95492:function(e,t,s){s.d(t,{l:function(){return n}});var i=s(24246);let n=(0,s(39941).IUT)({displayName:"TrashCanSolidIcon",viewBox:"0 0 12 15",path:(0,i.jsx)("path",{d:"M8.37857 1.18083C8.23393 0.892838 7.93661 0.710938 7.6125 0.710938H4.3875C4.06339 0.710938 3.76607 0.892838 3.62143 1.18083L3.42857 1.56094H0.857143C0.383036 1.56094 -1.19209e-07 1.94158 -1.19209e-07 2.41094C-1.19209e-07 2.8803 0.383036 3.26094 0.857143 3.26094H11.1429C11.6162 3.26094 12 2.8803 12 2.41094C12 1.94158 11.6162 1.56094 11.1429 1.56094H8.57143L8.37857 1.18083ZM11.167 4.11094H0.857143V12.6109C0.857143 13.5486 1.62589 14.3109 2.57143 14.3109H9.45268C10.3754 14.3109 11.167 13.5486 11.167 12.6109V4.11094ZM9.02411 6.23594V12.1859C9.02411 12.4197 8.80714 12.6109 8.59554 12.6109C8.33571 12.6109 8.16696 12.4197 8.16696 12.1859V6.23594C8.16696 6.00219 8.33571 5.81094 8.59554 5.81094C8.80714 5.81094 9.02411 6.00219 9.02411 6.23594ZM6.45268 6.23594V12.1859C6.45268 12.4197 6.23571 12.6109 6.02411 12.6109C5.76429 12.6109 5.57143 12.4197 5.57143 12.1859V6.23594C5.57143 6.00219 5.76429 5.81094 6.02411 5.81094C6.23571 5.81094 6.45268 6.00219 6.45268 6.23594ZM3.85714 6.23594V12.1859C3.85714 12.4197 3.66429 12.6109 3.42857 12.6109C3.19286 12.6109 3 12.4197 3 12.1859V6.23594C3 6.00219 3.19286 5.81094 3.42857 5.81094C3.66429 5.81094 3.85714 6.00219 3.85714 6.23594Z",fill:"currentColor"})})},94799:function(e,t,s){s.d(t,{k:function(){return l}});var i=s(76649);let n=e=>(0,i.Ln)({id:"string"},e),l=e=>(null!=e?e:[]).filter(n)},30320:function(e,t,s){s.d(t,{m:function(){return o}});var i=s(27378),n=s(25980),l=s(25010),a=s(32885),r=s(94799);let o=e=>{let{resourceFidesKey:t,resourceType:s}=e,{errorAlert:o}=(0,l.VY)(),{plus:d}=(0,n.hz)(),c=(0,i.useMemo)(()=>null!=t?t:"",[]),u=(0,a.YU)(!0,{skip:!d}),m=(0,a.VN)(s,{skip:!d}),{data:f,isLoading:x,error:h,isError:y}=(0,a.PV)(null!=t?t:"",{skip:""!==c&&!(d&&c)}),[p]=(0,a._D)(),g=u.isLoading||m.isLoading||x,C=(0,i.useMemo)(()=>new Map((0,r.k)(u.data).map(e=>{var t;return[e.id,{...e,options:(null!==(t=e.allowed_values)&&void 0!==t?t:[]).map(e=>({value:e,label:e}))}]})),[u.data]),j=(0,i.useMemo)(()=>{var e;return null===(e=m.data)||void 0===e?void 0:e.filter(e=>e.active)},[m.data]),_=(0,i.useMemo)(()=>new Map((0,r.k)(j).map(e=>[e.id,e])),[j]),v=(0,i.useMemo)(()=>y&&(null==h?void 0:h.status)===404?new Map:new Map((0,r.k)(f).map(e=>[e.custom_field_definition_id,e])),[f,y,h]),k=(0,i.useMemo)(()=>{let e=[..._.keys()];return e.sort(),e},[_]),S=(0,i.useMemo)(()=>{let e={};return j&&v&&j.forEach(t=>{let s=v.get(t.id||"");s&&(t.allow_list_id&&"string[]"===t.field_type?e[s.custom_field_definition_id]=s.value:e[s.custom_field_definition_id]=s.value.toString())}),e},[j,v]),T=(0,i.useCallback)(async e=>{if(!d)return;let i="fides_key"in e&&""!==e.fides_key?e.fides_key:t;if(!i)return;let{customFieldValues:n}=e;if(!n||0===Object.keys(n).length)return;let l=[],a=[];k.forEach(e=>{let t=v.get(e),s=n[e];void 0===s||""===s||Array.isArray(s)&&0===s.length?(null==t?void 0:t.id)&&a.push(t.id):l.push({custom_field_definition_id:e,resource_id:i,id:null==t?void 0:t.id,value:s})});try{await p({resource_type:s,resource_id:i,upsert:l,delete:a})}catch(e){o("One or more custom fields have failed to save, please try again."),console.error(e)}},[d,v,o,t,k,p,s]);return{customFieldValues:S,definitionIdToCustomField:v,idToAllowListWithOptions:C,idToCustomFieldDefinition:_,isEnabled:d,isLoading:g,sortedCustomFieldDefinitionIds:k,upsertCustomFields:T}}},95346:function(e,t,s){s.d(t,{uc:function(){return p},Hn:function(){return o},Uv:function(){return a},C7:function(){return d},mZ:function(){return y.m}});var i,n,l,a,r=s(54682);(i=l||(l={}))[i.CREATE_CUSTOM_FIELDS=0]="CREATE_CUSTOM_FIELDS",i[i.CREATE_CUSTOM_LISTS=1]="CREATE_CUSTOM_LISTS",i[i.CHOOSE_FROM_LIBRARY=2]="CHOOSE_FROM_LIBRARY",r.AL.STRING,r.AL.STRING,r.AL.STRING_,(n=a||(a={})).SINGLE_SELECT="singleSelect",n.MULTIPLE_SELECT="multipleSelect",n.LOCATION_SELECT="locationSelect",n.OPEN_TEXT="openText";let o=[{label:"Single select",value:"singleSelect"},{label:"Multiple select",value:"multipleSelect"},{label:"Location select",value:"locationSelect"},{label:"Open Text",value:"openText"}],d=[{label:"taxonomy:".concat(r.P6.DATA_CATEGORY),value:r.P6.DATA_CATEGORY},{label:"taxonomy:".concat(r.P6.DATA_SUBJECT),value:r.P6.DATA_SUBJECT},{label:"taxonomy:".concat(r.P6.DATA_USE),value:r.P6.DATA_USE},{label:"".concat(r.P6.SYSTEM,":information"),value:r.P6.SYSTEM},{label:"system:data use",value:r.P6.PRIVACY_DECLARATION}];var c=s(24246),u=s(39941),m=s(34090),f=s(30234),x=s(97181),h=s(40324),y=s(30320);let p=e=>{let{resourceFidesKey:t,resourceType:s}=e,{idToAllowListWithOptions:i,idToCustomFieldDefinition:n,isEnabled:l,isLoading:a,sortedCustomFieldDefinitionIds:o}=(0,y.m)({resourceFidesKey:t,resourceType:s});return l&&0!==o.length?(0,c.jsx)(f.Z,{heading:"Custom fields",children:(0,c.jsx)(u.kCb,{flexDir:"column","data-testid":"custom-fields-list",children:(0,c.jsx)(u.kCb,{flexDir:"column",gap:"24px",children:a?(0,c.jsx)(u.M5Y,{children:(0,c.jsx)(u.$jN,{})}):o.length>0&&(0,c.jsx)(u.kCb,{flexDirection:"column",gap:"12px",paddingBottom:"24px",children:o.map(e=>{let t=n.get(e);if(!t)return null;let s="customFieldValues.".concat(t.id);if(!t.allow_list_id&&t.field_type===r.AL.STRING)return(0,c.jsx)(m.gN,{name:s,children:e=>{let{field:s}=e;return(0,c.jsx)(h.j0,{...s,label:t.name,tooltip:t.description,variant:"stacked"})}},e);let l=i.get(t.allow_list_id);if(!l)return null;let{options:a}=l;return(0,c.jsx)(x.d,{name:s,allowClear:!0,mode:t.field_type!==r.AL.STRING?"multiple":void 0,label:t.name,options:a,tooltip:t.description,layout:"stacked",className:"w-full"},e)})})})})}):null};s(94799)},45938:function(e,t,s){s.d(t,{Gt:function(){return m},eB:function(){return f},oI:function(){return u}});var i=s(24246),n=s(34090),l=s(27378),a=s(16134),r=s(38602),o=s(58452);let d=(0,l.createRef)(),c=(0,l.createRef)(),u=()=>{let e=(0,a.T)(),t=(0,a.C)(r.DB),s=(0,l.useCallback)(()=>{c.current=void 0,d.current=void 0},[]),i=(0,l.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!0),s())},[e,s]),n=(0,l.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!1),s())},[e,s]);return{attemptAction:(0,l.useCallback)(()=>t?(e((0,r.h7)()),d.current||(d.current=new Promise(e=>{c.current=e})),d.current):Promise.resolve(!0),[t,e]),onConfirm:i,onClose:n}},m=e=>{let{id:t,name:s}=e,{dirty:i}=(0,n.u6)(),o=(0,a.T)();return(0,l.useEffect)(()=>(o((0,r.Zu)({id:t,name:s})),()=>{o((0,r.dz)({id:t}))}),[o,t,s]),(0,l.useEffect)(()=>{o((0,r.$p)({id:t,isDirty:i}))},[i,o,t]),null},f=()=>{let{onConfirm:e,onClose:t}=u(),s=(0,a.C)(r.uv);return(0,i.jsx)(o.Z,{isOpen:s,onClose:t,onConfirm:e,isCentered:!0,title:"Unsaved Changes",message:"You have unsaved changes"})}},84720:function(e,t,s){s.d(t,{q:function(){return j}});var i=s(24246),n=s(39941),l=s(27378),a=s(34090),r=s(812),o=s(45938),d=s(14048),c=s(95492);let u=e=>{let{systems:t,dataFlows:s,onDataFlowSystemChange:l}=e,{setFieldValue:r}=(0,a.u6)(),o=s.map(e=>e.fides_key),d=e=>{let t=s.filter(t=>t.fides_key!==e.fides_key);r("dataFlowSystems",t),l(t)};return(0,i.jsxs)(n.iA_,{size:"sm","data-testid":"assign-systems-delete-table",children:[(0,i.jsx)(n.hrZ,{children:(0,i.jsxs)(n.Tr,{children:[(0,i.jsx)(n.Th,{children:"System"}),(0,i.jsx)(n.Th,{})]})}),(0,i.jsx)(n.p3B,{children:t.filter(e=>o.includes(e.fides_key)).map(e=>(0,i.jsxs)(n.Tr,{_hover:{bg:"gray.50"},"data-testid":"row-".concat(e.fides_key),children:[(0,i.jsx)(n.Td,{children:(0,i.jsx)(n.xvT,{fontSize:"xs",lineHeight:4,fontWeight:"medium",children:e.name})}),(0,i.jsx)(n.Td,{textAlign:"end",children:(0,i.jsx)(n.wpx,{"aria-label":"Unassign data flow from system",icon:(0,i.jsx)(c.l,{}),onClick:()=>d(e),"data-testid":"unassign-btn"})})]},e.fides_key))})]})};var m=s(26917),f=e=>{let{allSystems:t,dataFlowSystems:s,onChange:l,flowType:r}=e,{setFieldValue:o}=(0,a.u6)(),d=e=>{if(s.find(t=>t.fides_key===e.fides_key)){let t=s.filter(t=>t.fides_key!==e.fides_key);o("dataFlowSystems",t),l(t)}else{let t=[...s,{fides_key:e.fides_key,type:"system"}];o("dataFlowSystems",t),l(t)}};return(0,i.jsx)(n.xuv,{overflowY:"auto",maxHeight:"300px",children:(0,i.jsxs)(n.iA_,{size:"sm","data-testid":"assign-systems-table",maxHeight:"50vh",overflowY:"scroll",children:[(0,i.jsx)(n.hrZ,{position:"sticky",top:0,background:"white",zIndex:1,children:(0,i.jsxs)(n.Tr,{children:[(0,i.jsx)(n.Th,{children:"System"}),(0,i.jsxs)(n.Th,{textAlign:"right",children:["Set as ",r]})]})}),(0,i.jsx)(n.p3B,{children:t.map(e=>{let t=!!s.find(t=>t.fides_key===e.fides_key);return(0,i.jsxs)(n.Tr,{_hover:{bg:"gray.50"},"data-testid":"row-".concat(e.fides_key),children:[(0,i.jsx)(n.Td,{children:(0,i.jsx)(n.xvT,{fontSize:"xs",lineHeight:4,fontWeight:"medium",children:e.name})}),(0,i.jsx)(n.Td,{textAlign:"right",children:(0,i.jsx)(n.rAg,{checked:t,onChange:()=>d(e),"data-testid":"assign-switch"})})]},e.fides_key)})})]})})};let x=(e,t)=>{var s,i;return(null===(s=e.name)||void 0===s?void 0:s.toLocaleLowerCase().includes(t.toLocaleLowerCase()))||(null===(i=e.description)||void 0===i?void 0:i.toLocaleLowerCase().includes(t.toLocaleLowerCase()))};var h=e=>{let{currentSystem:t,systems:s,isOpen:r,onClose:o,dataFlowSystems:d,onDataFlowSystemChange:c,flowType:u}=e,{setFieldValue:h}=(0,a.u6)(),[y,p]=(0,l.useState)(""),[g,C]=(0,l.useState)(d),j=async()=>{c(g),o()},_=0===s.length,v=(0,l.useMemo)(()=>s?s.filter(e=>e.fides_key!==t.fides_key).filter(e=>x(e,y)):[],[s,t.fides_key,y]),k=(0,l.useMemo)(()=>{let e=new Set(g.map(e=>e.fides_key));return v.every(t=>e.has(t.fides_key))},[v,g]);return(0,i.jsxs)(n.u_l,{isOpen:r,onClose:o,size:"2xl",isCentered:!0,children:[(0,i.jsx)(n.ZAr,{}),(0,i.jsxs)(n.hzk,{p:8,"data-testid":"confirmation-modal",children:[(0,i.jsxs)(n.xBx,{fontWeight:"medium",display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,i.jsxs)(n.xvT,{fontSize:"2xl",lineHeight:8,fontWeight:"semibold",children:["Configure ",u.toLocaleLowerCase()," systems"]}),(0,i.jsxs)(n.j8w,{color:"success",children:["Assigned to ",g.length," systems"]})]}),(0,i.jsx)(n.fef,{"data-testid":"assign-systems-modal-body",children:_?(0,i.jsx)(n.xvT,{children:"No systems found"}):(0,i.jsxs)(n.Kqy,{spacing:4,children:[(0,i.jsxs)(n.kCb,{justifyContent:"space-between",children:[(0,i.jsx)(n.xvT,{fontSize:"sm",flexGrow:1,fontWeight:"medium",children:"Add or remove destination systems from your data map"}),(0,i.jsx)(n.xuv,{children:(0,i.jsxs)(n.NIc,{display:"flex",alignItems:"center",children:[(0,i.jsx)(n.lXp,{fontSize:"sm",htmlFor:"assign-all-systems",mb:"0",children:"Assign all systems"}),(0,i.jsx)(n.rAg,{size:"small",id:"assign-all-systems",checked:k,onChange:e=>{if(e&&s){let e=v.map(e=>({fides_key:e.fides_key,type:"system"}));h("dataFlowSystems",e),C(e)}else C([])},"data-testid":"assign-all-systems-toggle"})]})})]}),(0,i.jsx)(m.Z,{value:y,onChange:p,placeholder:"Search for systems","data-testid":"system-search",withIcon:!0}),(0,i.jsx)(f,{flowType:u,allSystems:v,dataFlowSystems:g,onChange:C})]})}),(0,i.jsxs)(n.mzw,{justifyContent:"flex-start",children:[(0,i.jsx)(n.wpx,{onClick:o,className:"mr-2","data-testid":"cancel-btn",children:"Cancel"}),!_&&(0,i.jsx)(n.wpx,{type:"primary",onClick:j,"data-testid":"confirm-btn",children:"Confirm"})]})]})]})},y=s(46628),p=s(1315);let g={dataFlowSystems:[]},C=e=>{let{system:t,isIngress:s,isSystemTab:c}=e,m=(0,n.pmc)(),f=s?"Source":"Destination",x="".concat(f,"s"),C=(0,n.qY0)(),[j]=(0,p.qQ)(),{data:_=[]}=(0,p.K3)(),v=(0,l.useMemo)(()=>{let e=s?t.ingress:t.egress;e||(e=[]);let i=_?_.map(e=>e.fides_key):[];return e.filter(e=>i.includes(e.fides_key))},[s,t,_]),[k,S]=(0,l.useState)(v);(0,l.useEffect)(()=>{S(v)},[v]);let T=async(e,i)=>{let{dataFlowSystems:n}=e,{resetForm:l}=i,a={...t,ingress:s?n:t.ingress,egress:s?t.egress:n},o=await j(a);(0,r.D4)(o)?m((0,y.Vo)("Failed to update data flows")):m((0,y.t5)("".concat(x," updated"))),l({values:{dataFlowSystems:n}})};return(0,i.jsxs)(n.Qdk,{children:[(0,i.jsx)(n.KFZ,{height:"68px",paddingLeft:c?6:2,"data-testid":"data-flow-button-".concat(f),children:(0,i.jsxs)(n.kCb,{alignItems:"center",justifyContent:"start",flex:1,textAlign:"left",children:[(0,i.jsx)(n.xvT,{fontSize:"sm",lineHeight:5,fontWeight:"semibold",mr:2,children:x}),(0,i.jsx)(n.Vp9,{ml:2,backgroundColor:"primary.400",borderRadius:"6px",color:"white",children:k.length}),(0,i.jsx)(n.LZC,{}),(0,i.jsx)(n.XEm,{})]})}),(0,i.jsx)(n.Hk3,{backgroundColor:"gray.50",padding:6,"data-testid":"data-flow-panel-".concat(f),children:(0,i.jsx)(n.Kqy,{borderRadius:"md",backgroundColor:"gray.50","aria-selected":"true",spacing:4,"data-testid":"selected",children:(0,i.jsx)(a.J9,{initialValues:g,onSubmit:T,children:e=>{let{isSubmitting:s,dirty:l,resetForm:r}=e;return(0,i.jsxs)(a.l0,{children:[(0,i.jsx)(o.Gt,{id:"".concat(t.fides_key,":").concat(f),name:"".concat(f," Data Flow")}),(0,i.jsx)(n.wpx,{onClick:C.onOpen,type:"primary",size:"small",icon:(0,i.jsx)(d.A5,{}),iconPosition:"end",className:"mb-4","data-testid":"assign-systems-btn",children:"Configure ".concat(x.toLocaleLowerCase())}),(0,i.jsx)(u,{systems:_,dataFlows:k,onDataFlowSystemChange:S}),(0,i.jsxs)("div",{className:"mt-6 flex gap-2",children:[(0,i.jsx)(n.wpx,{disabled:!l&&k===v,onClick:()=>{S(v),r({values:{dataFlowSystems:v}})},"data-testid":"cancel-btn",children:"Cancel"}),(0,i.jsx)(n.wpx,{type:"primary",htmlType:"submit",loading:s,disabled:!l&&k===v,"data-testid":"save-btn",children:"Save"})]}),C.isOpen?(0,i.jsx)(h,{currentSystem:t,systems:_,isOpen:C.isOpen,onClose:C.onClose,dataFlowSystems:k,onDataFlowSystemChange:S,flowType:f}):null]})}})})})]})},j=e=>{let{system:t,isSystemTab:s}=e;return(0,i.jsxs)(n.UQy,{allowToggle:!0,"data-testid":"data-flow-accordion",children:[(0,i.jsx)(C,{system:t,isIngress:!0,isSystemTab:s}),(0,i.jsx)(C,{system:t,isSystemTab:s})]})}},30234:function(e,t,s){var i=s(24246),n=s(39941);t.Z=e=>{let{heading:t,HeadingButton:s,children:l}=e;return(0,i.jsx)(n.Kqy,{spacing:4,children:(0,i.jsxs)(n.xuv,{maxWidth:"720px",border:"1px",borderColor:"gray.200",borderRadius:6,overflow:"visible",mt:6,children:[(0,i.jsxs)(n.xuv,{backgroundColor:"gray.50",px:6,py:4,display:"flex",flexDirection:"row",alignItems:"center",borderBottom:"1px",borderColor:"gray.200",borderTopRadius:6,children:[(0,i.jsx)(n.X6q,{as:"h3",size:"xs",children:t}),s?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.LZC,{}),(0,i.jsx)(s,{})]}):null]}),(0,i.jsx)(n.Kqy,{spacing:4,px:6,py:6,children:l})]})})}},52368:function(e,t,s){s.d(t,{f:function(){return o}});var i=s(16134),n=s(30002),l=s(28079),a=s(41966),r=s(57072);let o=e=>{let{includeDatasets:t,includeDisabled:s}=e,{isLoading:o}=(0,r.MO)(),{isLoading:d}=(0,n.te)(),{isLoading:c}=(0,l.fd)(),{isLoading:u}=(0,a.LH)({onlyUnlinkedDatasets:!1,minimal:!0},{skip:!t}),m=(0,i.C)(r.qb),f=(0,i.C)(r.Bd),x=(0,i.C)(n.ZL),h=(0,i.C)(n.H7),y=(0,i.C)(l.U3),p=(0,i.C)(l.jp),g=(0,i.C)(a.Q4);return{allDataCategories:s?m:f,allDataSubjects:s?x:h,allDataUses:s?y:p,allDatasets:t?g:void 0,isLoading:o||d||c||u}}},31883:function(e,t,s){s.d(t,{Bw:function(){return i.Bw},D4:function(){return i.D4}});var i=s(19043)}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9951],{95492:function(e,t,s){s.d(t,{l:function(){return n}});var i=s(24246);let n=(0,s(96306).IUT)({displayName:"TrashCanSolidIcon",viewBox:"0 0 12 15",path:(0,i.jsx)("path",{d:"M8.37857 1.18083C8.23393 0.892838 7.93661 0.710938 7.6125 0.710938H4.3875C4.06339 0.710938 3.76607 0.892838 3.62143 1.18083L3.42857 1.56094H0.857143C0.383036 1.56094 -1.19209e-07 1.94158 -1.19209e-07 2.41094C-1.19209e-07 2.8803 0.383036 3.26094 0.857143 3.26094H11.1429C11.6162 3.26094 12 2.8803 12 2.41094C12 1.94158 11.6162 1.56094 11.1429 1.56094H8.57143L8.37857 1.18083ZM11.167 4.11094H0.857143V12.6109C0.857143 13.5486 1.62589 14.3109 2.57143 14.3109H9.45268C10.3754 14.3109 11.167 13.5486 11.167 12.6109V4.11094ZM9.02411 6.23594V12.1859C9.02411 12.4197 8.80714 12.6109 8.59554 12.6109C8.33571 12.6109 8.16696 12.4197 8.16696 12.1859V6.23594C8.16696 6.00219 8.33571 5.81094 8.59554 5.81094C8.80714 5.81094 9.02411 6.00219 9.02411 6.23594ZM6.45268 6.23594V12.1859C6.45268 12.4197 6.23571 12.6109 6.02411 12.6109C5.76429 12.6109 5.57143 12.4197 5.57143 12.1859V6.23594C5.57143 6.00219 5.76429 5.81094 6.02411 5.81094C6.23571 5.81094 6.45268 6.00219 6.45268 6.23594ZM3.85714 6.23594V12.1859C3.85714 12.4197 3.66429 12.6109 3.42857 12.6109C3.19286 12.6109 3 12.4197 3 12.1859V6.23594C3 6.00219 3.19286 5.81094 3.42857 5.81094C3.66429 5.81094 3.85714 6.00219 3.85714 6.23594Z",fill:"currentColor"})})},94799:function(e,t,s){s.d(t,{k:function(){return l}});var i=s(76649);let n=e=>(0,i.Ln)({id:"string"},e),l=e=>(null!=e?e:[]).filter(n)},30320:function(e,t,s){s.d(t,{m:function(){return o}});var i=s(27378),n=s(25980),l=s(41841),a=s(32885),r=s(94799);let o=e=>{let{resourceFidesKey:t,resourceType:s}=e,{errorAlert:o}=(0,l.VY)(),{plus:d}=(0,n.hz)(),c=(0,i.useMemo)(()=>null!=t?t:"",[]),u=(0,a.YU)(!0,{skip:!d}),m=(0,a.VN)(s,{skip:!d}),{data:f,isLoading:x,error:h,isError:y}=(0,a.PV)(null!=t?t:"",{skip:""!==c&&!(d&&c)}),[p]=(0,a._D)(),g=u.isLoading||m.isLoading||x,C=(0,i.useMemo)(()=>new Map((0,r.k)(u.data).map(e=>{var t;return[e.id,{...e,options:(null!==(t=e.allowed_values)&&void 0!==t?t:[]).map(e=>({value:e,label:e}))}]})),[u.data]),j=(0,i.useMemo)(()=>{var e;return null===(e=m.data)||void 0===e?void 0:e.filter(e=>e.active)},[m.data]),_=(0,i.useMemo)(()=>new Map((0,r.k)(j).map(e=>[e.id,e])),[j]),v=(0,i.useMemo)(()=>y&&(null==h?void 0:h.status)===404?new Map:new Map((0,r.k)(f).map(e=>[e.custom_field_definition_id,e])),[f,y,h]),k=(0,i.useMemo)(()=>{let e=[..._.keys()];return e.sort(),e},[_]),S=(0,i.useMemo)(()=>{let e={};return j&&v&&j.forEach(t=>{let s=v.get(t.id||"");s&&(t.allow_list_id&&"string[]"===t.field_type?e[s.custom_field_definition_id]=s.value:e[s.custom_field_definition_id]=s.value.toString())}),e},[j,v]),T=(0,i.useCallback)(async e=>{if(!d)return;let i="fides_key"in e&&""!==e.fides_key?e.fides_key:t;if(!i)return;let{customFieldValues:n}=e;if(!n||0===Object.keys(n).length)return;let l=[],a=[];k.forEach(e=>{let t=v.get(e),s=n[e];void 0===s||""===s||Array.isArray(s)&&0===s.length?(null==t?void 0:t.id)&&a.push(t.id):l.push({custom_field_definition_id:e,resource_id:i,id:null==t?void 0:t.id,value:s})});try{await p({resource_type:s,resource_id:i,upsert:l,delete:a})}catch(e){o("One or more custom fields have failed to save, please try again."),console.error(e)}},[d,v,o,t,k,p,s]);return{customFieldValues:S,definitionIdToCustomField:v,idToAllowListWithOptions:C,idToCustomFieldDefinition:_,isEnabled:d,isLoading:g,sortedCustomFieldDefinitionIds:k,upsertCustomFields:T}}},95346:function(e,t,s){s.d(t,{uc:function(){return p},Hn:function(){return o},Uv:function(){return a},C7:function(){return d},mZ:function(){return y.m}});var i,n,l,a,r=s(54682);(i=l||(l={}))[i.CREATE_CUSTOM_FIELDS=0]="CREATE_CUSTOM_FIELDS",i[i.CREATE_CUSTOM_LISTS=1]="CREATE_CUSTOM_LISTS",i[i.CHOOSE_FROM_LIBRARY=2]="CHOOSE_FROM_LIBRARY",r.AL.STRING,r.AL.STRING,r.AL.STRING_,(n=a||(a={})).SINGLE_SELECT="singleSelect",n.MULTIPLE_SELECT="multipleSelect",n.LOCATION_SELECT="locationSelect",n.OPEN_TEXT="openText";let o=[{label:"Single select",value:"singleSelect"},{label:"Multiple select",value:"multipleSelect"},{label:"Location select",value:"locationSelect"},{label:"Open Text",value:"openText"}],d=[{label:"taxonomy:".concat(r.P6.DATA_CATEGORY),value:r.P6.DATA_CATEGORY},{label:"taxonomy:".concat(r.P6.DATA_SUBJECT),value:r.P6.DATA_SUBJECT},{label:"taxonomy:".concat(r.P6.DATA_USE),value:r.P6.DATA_USE},{label:"".concat(r.P6.SYSTEM,":information"),value:r.P6.SYSTEM},{label:"system:data use",value:r.P6.PRIVACY_DECLARATION}];var c=s(24246),u=s(96306),m=s(34090),f=s(30234),x=s(97181),h=s(40324),y=s(30320);let p=e=>{let{resourceFidesKey:t,resourceType:s}=e,{idToAllowListWithOptions:i,idToCustomFieldDefinition:n,isEnabled:l,isLoading:a,sortedCustomFieldDefinitionIds:o}=(0,y.m)({resourceFidesKey:t,resourceType:s});return l&&0!==o.length?(0,c.jsx)(f.Z,{heading:"Custom fields",children:(0,c.jsx)(u.kCb,{flexDir:"column","data-testid":"custom-fields-list",children:(0,c.jsx)(u.kCb,{flexDir:"column",gap:"24px",children:a?(0,c.jsx)(u.M5Y,{children:(0,c.jsx)(u.$jN,{})}):o.length>0&&(0,c.jsx)(u.kCb,{flexDirection:"column",gap:"12px",paddingBottom:"24px",children:o.map(e=>{let t=n.get(e);if(!t)return null;let s="customFieldValues.".concat(t.id);if(!t.allow_list_id&&t.field_type===r.AL.STRING)return(0,c.jsx)(m.gN,{name:s,children:e=>{let{field:s}=e;return(0,c.jsx)(h.j0,{...s,label:t.name,tooltip:t.description,variant:"stacked"})}},e);let l=i.get(t.allow_list_id);if(!l)return null;let{options:a}=l;return(0,c.jsx)(x.d,{name:s,allowClear:!0,mode:t.field_type!==r.AL.STRING?"multiple":void 0,label:t.name,options:a,tooltip:t.description,layout:"stacked",className:"w-full"},e)})})})})}):null};s(94799)},45938:function(e,t,s){s.d(t,{Gt:function(){return m},eB:function(){return f},oI:function(){return u}});var i=s(24246),n=s(34090),l=s(27378),a=s(16134),r=s(38602),o=s(58452);let d=(0,l.createRef)(),c=(0,l.createRef)(),u=()=>{let e=(0,a.T)(),t=(0,a.C)(r.DB),s=(0,l.useCallback)(()=>{c.current=void 0,d.current=void 0},[]),i=(0,l.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!0),s())},[e,s]),n=(0,l.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!1),s())},[e,s]);return{attemptAction:(0,l.useCallback)(()=>t?(e((0,r.h7)()),d.current||(d.current=new Promise(e=>{c.current=e})),d.current):Promise.resolve(!0),[t,e]),onConfirm:i,onClose:n}},m=e=>{let{id:t,name:s}=e,{dirty:i}=(0,n.u6)(),o=(0,a.T)();return(0,l.useEffect)(()=>(o((0,r.Zu)({id:t,name:s})),()=>{o((0,r.dz)({id:t}))}),[o,t,s]),(0,l.useEffect)(()=>{o((0,r.$p)({id:t,isDirty:i}))},[i,o,t]),null},f=()=>{let{onConfirm:e,onClose:t}=u(),s=(0,a.C)(r.uv);return(0,i.jsx)(o.Z,{isOpen:s,onClose:t,onConfirm:e,isCentered:!0,title:"Unsaved Changes",message:"You have unsaved changes"})}},84720:function(e,t,s){s.d(t,{q:function(){return j}});var i=s(24246),n=s(96306),l=s(27378),a=s(34090),r=s(812),o=s(45938),d=s(14048),c=s(95492);let u=e=>{let{systems:t,dataFlows:s,onDataFlowSystemChange:l}=e,{setFieldValue:r}=(0,a.u6)(),o=s.map(e=>e.fides_key),d=e=>{let t=s.filter(t=>t.fides_key!==e.fides_key);r("dataFlowSystems",t),l(t)};return(0,i.jsxs)(n.iA_,{size:"sm","data-testid":"assign-systems-delete-table",children:[(0,i.jsx)(n.hrZ,{children:(0,i.jsxs)(n.Tr,{children:[(0,i.jsx)(n.Th,{children:"System"}),(0,i.jsx)(n.Th,{})]})}),(0,i.jsx)(n.p3B,{children:t.filter(e=>o.includes(e.fides_key)).map(e=>(0,i.jsxs)(n.Tr,{_hover:{bg:"gray.50"},"data-testid":"row-".concat(e.fides_key),children:[(0,i.jsx)(n.Td,{children:(0,i.jsx)(n.xvT,{fontSize:"xs",lineHeight:4,fontWeight:"medium",children:e.name})}),(0,i.jsx)(n.Td,{textAlign:"end",children:(0,i.jsx)(n.wpx,{"aria-label":"Unassign data flow from system",icon:(0,i.jsx)(c.l,{}),onClick:()=>d(e),"data-testid":"unassign-btn"})})]},e.fides_key))})]})};var m=s(26917),f=e=>{let{allSystems:t,dataFlowSystems:s,onChange:l,flowType:r}=e,{setFieldValue:o}=(0,a.u6)(),d=e=>{if(s.find(t=>t.fides_key===e.fides_key)){let t=s.filter(t=>t.fides_key!==e.fides_key);o("dataFlowSystems",t),l(t)}else{let t=[...s,{fides_key:e.fides_key,type:"system"}];o("dataFlowSystems",t),l(t)}};return(0,i.jsx)(n.xuv,{overflowY:"auto",maxHeight:"300px",children:(0,i.jsxs)(n.iA_,{size:"sm","data-testid":"assign-systems-table",maxHeight:"50vh",overflowY:"scroll",children:[(0,i.jsx)(n.hrZ,{position:"sticky",top:0,background:"white",zIndex:1,children:(0,i.jsxs)(n.Tr,{children:[(0,i.jsx)(n.Th,{children:"System"}),(0,i.jsxs)(n.Th,{textAlign:"right",children:["Set as ",r]})]})}),(0,i.jsx)(n.p3B,{children:t.map(e=>{let t=!!s.find(t=>t.fides_key===e.fides_key);return(0,i.jsxs)(n.Tr,{_hover:{bg:"gray.50"},"data-testid":"row-".concat(e.fides_key),children:[(0,i.jsx)(n.Td,{children:(0,i.jsx)(n.xvT,{fontSize:"xs",lineHeight:4,fontWeight:"medium",children:e.name})}),(0,i.jsx)(n.Td,{textAlign:"right",children:(0,i.jsx)(n.rAg,{checked:t,onChange:()=>d(e),"data-testid":"assign-switch"})})]},e.fides_key)})})]})})};let x=(e,t)=>{var s,i;return(null===(s=e.name)||void 0===s?void 0:s.toLocaleLowerCase().includes(t.toLocaleLowerCase()))||(null===(i=e.description)||void 0===i?void 0:i.toLocaleLowerCase().includes(t.toLocaleLowerCase()))};var h=e=>{let{currentSystem:t,systems:s,isOpen:r,onClose:o,dataFlowSystems:d,onDataFlowSystemChange:c,flowType:u}=e,{setFieldValue:h}=(0,a.u6)(),[y,p]=(0,l.useState)(""),[g,C]=(0,l.useState)(d),j=async()=>{c(g),o()},_=0===s.length,v=(0,l.useMemo)(()=>s?s.filter(e=>e.fides_key!==t.fides_key).filter(e=>x(e,y)):[],[s,t.fides_key,y]),k=(0,l.useMemo)(()=>{let e=new Set(g.map(e=>e.fides_key));return v.every(t=>e.has(t.fides_key))},[v,g]);return(0,i.jsxs)(n.u_l,{isOpen:r,onClose:o,size:"2xl",isCentered:!0,children:[(0,i.jsx)(n.ZAr,{}),(0,i.jsxs)(n.hzk,{p:8,"data-testid":"confirmation-modal",children:[(0,i.jsxs)(n.xBx,{fontWeight:"medium",display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,i.jsxs)(n.xvT,{fontSize:"2xl",lineHeight:8,fontWeight:"semibold",children:["Configure ",u.toLocaleLowerCase()," systems"]}),(0,i.jsxs)(n.j8w,{color:"success",children:["Assigned to ",g.length," systems"]})]}),(0,i.jsx)(n.fef,{"data-testid":"assign-systems-modal-body",children:_?(0,i.jsx)(n.xvT,{children:"No systems found"}):(0,i.jsxs)(n.Kqy,{spacing:4,children:[(0,i.jsxs)(n.kCb,{justifyContent:"space-between",children:[(0,i.jsx)(n.xvT,{fontSize:"sm",flexGrow:1,fontWeight:"medium",children:"Add or remove destination systems from your data map"}),(0,i.jsx)(n.xuv,{children:(0,i.jsxs)(n.NIc,{display:"flex",alignItems:"center",children:[(0,i.jsx)(n.lXp,{fontSize:"sm",htmlFor:"assign-all-systems",mb:"0",children:"Assign all systems"}),(0,i.jsx)(n.rAg,{size:"small",id:"assign-all-systems",checked:k,onChange:e=>{if(e&&s){let e=v.map(e=>({fides_key:e.fides_key,type:"system"}));h("dataFlowSystems",e),C(e)}else C([])},"data-testid":"assign-all-systems-toggle"})]})})]}),(0,i.jsx)(m.Z,{value:y,onChange:p,placeholder:"Search for systems","data-testid":"system-search",withIcon:!0}),(0,i.jsx)(f,{flowType:u,allSystems:v,dataFlowSystems:g,onChange:C})]})}),(0,i.jsxs)(n.mzw,{justifyContent:"flex-start",children:[(0,i.jsx)(n.wpx,{onClick:o,className:"mr-2","data-testid":"cancel-btn",children:"Cancel"}),!_&&(0,i.jsx)(n.wpx,{type:"primary",onClick:j,"data-testid":"confirm-btn",children:"Confirm"})]})]})]})},y=s(46628),p=s(1315);let g={dataFlowSystems:[]},C=e=>{let{system:t,isIngress:s,isSystemTab:c}=e,m=(0,n.pmc)(),f=s?"Source":"Destination",x="".concat(f,"s"),C=(0,n.qY0)(),[j]=(0,p.qQ)(),{data:_=[]}=(0,p.K3)(),v=(0,l.useMemo)(()=>{let e=s?t.ingress:t.egress;e||(e=[]);let i=_?_.map(e=>e.fides_key):[];return e.filter(e=>i.includes(e.fides_key))},[s,t,_]),[k,S]=(0,l.useState)(v);(0,l.useEffect)(()=>{S(v)},[v]);let T=async(e,i)=>{let{dataFlowSystems:n}=e,{resetForm:l}=i,a={...t,ingress:s?n:t.ingress,egress:s?t.egress:n},o=await j(a);(0,r.D4)(o)?m((0,y.Vo)("Failed to update data flows")):m((0,y.t5)("".concat(x," updated"))),l({values:{dataFlowSystems:n}})};return(0,i.jsxs)(n.Qdk,{children:[(0,i.jsx)(n.KFZ,{height:"68px",paddingLeft:c?6:2,"data-testid":"data-flow-button-".concat(f),children:(0,i.jsxs)(n.kCb,{alignItems:"center",justifyContent:"start",flex:1,textAlign:"left",children:[(0,i.jsx)(n.xvT,{fontSize:"sm",lineHeight:5,fontWeight:"semibold",mr:2,children:x}),(0,i.jsx)(n.Vp9,{ml:2,backgroundColor:"primary.400",borderRadius:"6px",color:"white",children:k.length}),(0,i.jsx)(n.LZC,{}),(0,i.jsx)(n.XEm,{})]})}),(0,i.jsx)(n.Hk3,{backgroundColor:"gray.50",padding:6,"data-testid":"data-flow-panel-".concat(f),children:(0,i.jsx)(n.Kqy,{borderRadius:"md",backgroundColor:"gray.50","aria-selected":"true",spacing:4,"data-testid":"selected",children:(0,i.jsx)(a.J9,{initialValues:g,onSubmit:T,children:e=>{let{isSubmitting:s,dirty:l,resetForm:r}=e;return(0,i.jsxs)(a.l0,{children:[(0,i.jsx)(o.Gt,{id:"".concat(t.fides_key,":").concat(f),name:"".concat(f," Data Flow")}),(0,i.jsx)(n.wpx,{onClick:C.onOpen,type:"primary",size:"small",icon:(0,i.jsx)(d.A5,{}),iconPosition:"end",className:"mb-4","data-testid":"assign-systems-btn",children:"Configure ".concat(x.toLocaleLowerCase())}),(0,i.jsx)(u,{systems:_,dataFlows:k,onDataFlowSystemChange:S}),(0,i.jsxs)("div",{className:"mt-6 flex gap-2",children:[(0,i.jsx)(n.wpx,{disabled:!l&&k===v,onClick:()=>{S(v),r({values:{dataFlowSystems:v}})},"data-testid":"cancel-btn",children:"Cancel"}),(0,i.jsx)(n.wpx,{type:"primary",htmlType:"submit",loading:s,disabled:!l&&k===v,"data-testid":"save-btn",children:"Save"})]}),C.isOpen?(0,i.jsx)(h,{currentSystem:t,systems:_,isOpen:C.isOpen,onClose:C.onClose,dataFlowSystems:k,onDataFlowSystemChange:S,flowType:f}):null]})}})})})]})},j=e=>{let{system:t,isSystemTab:s}=e;return(0,i.jsxs)(n.UQy,{allowToggle:!0,"data-testid":"data-flow-accordion",children:[(0,i.jsx)(C,{system:t,isIngress:!0,isSystemTab:s}),(0,i.jsx)(C,{system:t,isSystemTab:s})]})}},30234:function(e,t,s){var i=s(24246),n=s(96306);t.Z=e=>{let{heading:t,HeadingButton:s,children:l}=e;return(0,i.jsx)(n.Kqy,{spacing:4,children:(0,i.jsxs)(n.xuv,{maxWidth:"720px",border:"1px",borderColor:"gray.200",borderRadius:6,overflow:"visible",mt:6,children:[(0,i.jsxs)(n.xuv,{backgroundColor:"gray.50",px:6,py:4,display:"flex",flexDirection:"row",alignItems:"center",borderBottom:"1px",borderColor:"gray.200",borderTopRadius:6,children:[(0,i.jsx)(n.X6q,{as:"h3",size:"xs",children:t}),s?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.LZC,{}),(0,i.jsx)(s,{})]}):null]}),(0,i.jsx)(n.Kqy,{spacing:4,px:6,py:6,children:l})]})})}},52368:function(e,t,s){s.d(t,{f:function(){return o}});var i=s(16134),n=s(30002),l=s(28079),a=s(41966),r=s(57072);let o=e=>{let{includeDatasets:t,includeDisabled:s}=e,{isLoading:o}=(0,r.MO)(),{isLoading:d}=(0,n.te)(),{isLoading:c}=(0,l.fd)(),{isLoading:u}=(0,a.LH)({onlyUnlinkedDatasets:!1,minimal:!0},{skip:!t}),m=(0,i.C)(r.qb),f=(0,i.C)(r.Bd),x=(0,i.C)(n.ZL),h=(0,i.C)(n.H7),y=(0,i.C)(l.U3),p=(0,i.C)(l.jp),g=(0,i.C)(a.Q4);return{allDataCategories:s?m:f,allDataSubjects:s?x:h,allDataUses:s?y:p,allDatasets:t?g:void 0,isLoading:o||d||c||u}}},31883:function(e,t,s){s.d(t,{Bw:function(){return i.Bw},D4:function(){return i.D4}});var i=s(19043)}}]);
|