ethyca-fides 2.72.3rc1__py2.py3-none-any.whl → 2.73.0rc0__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.72.3rc1.dist-info → ethyca_fides-2.73.0rc0.dist-info}/METADATA +2 -2
- {ethyca_fides-2.72.3rc1.dist-info → ethyca_fides-2.73.0rc0.dist-info}/RECORD +271 -259
- fides/_version.py +3 -3
- fides/api/alembic/migrations/versions/a55e12c2c2df_add_tagging_instructions_to_data_.py +29 -0
- fides/api/api/v1/endpoints/generic_overrides.py +70 -1
- fides/api/models/privacy_preference.py +1 -0
- fides/api/models/sql_models.py +3 -0
- fides/api/schemas/taxonomy_extensions.py +8 -0
- fides/api/service/async_dsr/strategies/async_dsr_strategy_polling.py +1 -0
- fides/api/service/connectors/query_configs/saas_query_config.py +141 -78
- fides/api/service/connectors/saas_connector.py +26 -39
- fides/api/service/privacy_request/request_service.py +1 -1
- fides/api/util/saas_util.py +27 -1
- fides/config/execution_settings.py +1 -1
- fides/ui-build/static/admin/404.html +1 -1
- fides/ui-build/static/admin/_next/static/Y4fC3QVMk1ujcOb92jMd8/_buildManifest.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{1099-d1b22e891705eaf8.js → 1099-fa8b82f521b23cce.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{1115-584dac093cef6cc3.js → 1115-d7ce851b36722c41.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{1437-4604a69888906ec0.js → 1438-62df8751f76235e7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{1817-bfe4139324aa0279.js → 1817-0de0312294019817.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{1975.50599b6774562644.js → 1975.6ca0e76b5a3d1955.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{2040-8eead9d29546a50f.js → 2040-a18cc21821e2d121.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{2397-92f628c53688925b.js → 2397-b9c1b4a7f11e862d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/2921-a5dac2eacdcc32ff.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/2962-342ad1b4ab402ded.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3080-218ac9199ab43f37.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{3377-80612c111e047cb6.js → 3377-c2c9eb177bec8719.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/3446-f40c352c43ac950c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{3696-e4abb6a922b954a2.js → 3696-21e3dec6c2023875.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3700-1f9f6e5ebfa3ab0a.js → 3700-940e5630ee5efe10.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/3729-a1aaa30987ee9f28.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{3772-b945c6839e43c753.js → 3772-bb84842df51d3f3f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/3872-25c16c5a21152b31.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3873-d759bbe7137ae8c2.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{3923-c1e41661ebf57178.js → 3923-7f0aa36c9e09cedf.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{401-c2f1e4ea077f1f26.js → 401-874303feb3899562.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/4322-2b986cc150c42771.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{4496-8204168bae78092d.js → 4496-903c81292ffd8f91.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5185-bf5655b5d697b714.js → 5185-fc171b6acce9f915.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5258-63325c03319e87dc.js → 5258-cf0d2c4c4d55a94b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/5327-282ef735516d3b89.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{549-3e3b8d01bc984f96.js → 549-2d9bde37e5fe13eb.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5643-7800464c8df7a78e.js → 5643-48a5e0ad8b9fc3f7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5783-7deeb7de5d2db4c4.js → 5783-63912bab7f80b0f8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/6084-023f8c6e65faeb9c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6419-11d67f7fd4e2f247.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6853-c348f6e95f987cbf.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6882-ec4429aef277a3a4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{6954-8b106311a3be35f4.js → 6954-c44ac4e70e777c2f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/7170-4ac982fffdba3a55.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7245-120f536e09decb85.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{7476-08717f00da5f89ab.js → 7476-4234fb244676ec13.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{7488-bad160a2bfd89871.js → 7488-2db0992474f8056e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{7630-775c578fa8109b0f.js → 7630-d7bd74d0cfdb22df.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{7773-24899908bf8ff659.js → 7773-6dce6187fe2c6984.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{796-6fe49d134f660156.js → 796-fae64888b8b2f369.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{8011-c23d609ed3f0efa5.js → 8011-6e40c969c9fa7d35.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{8212-67ac884660ddb63a.js → 8212-18d8da0f9208f978.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/8373-d6c02a17fb0b118e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/8563-fe06e1fa6d795938.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/8853-28242f6079441663.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{9676.1ea49d4b6e0541f2.js → 9676.704cc210f59d0083.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9826-1f42934a2863992e.js → 9826-aecc5ddec86989dc.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9899-63998972698a49fb.js → 9899-303921e3d0697960.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{404-962d132471cd41ba.js → 404-c31cef0ce3fbeebf.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{_app-9de54d6135682f7b.js → _app-6f721c56270cb96e.js} +11 -11
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-b9dbc9ac030f0490.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-e2a5c951347195e3.js → multiple-f706664770dd3e7f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-3f0d8698f01aabc5.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-7c829e58485fc821.js → add-vendors-fcd031b2b775e4f3.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-5c58b69dd473cc06.js → configure-0bd2eb0110873c4d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-58460ac9c1dface5.js → [id]-53f6037b25dd5ccb.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{new-a5e738a234dadc7e.js → new-e74cb5ea87f15b40.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-b6b2d50d894cefa5.js → privacy-experience-ae8dff75e1c6c413.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-25ce8366e689363b.js → [id]-b40fa30ca73e50c2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-faa457089616711a.js → new-7197fadcd57b623d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-30cecb4656886008.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-45a2901a35edc8f7.js → properties-5cba88e6839a087d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-f2690c381c1d1a52.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{consent-a7a4e419e4086033.js → consent-289d21aa6c42828b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]-89f202662b70059a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-6c19b6be18db5972.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-aac70cc10a651e80.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/[resourceUrn]-14dd38964617db2b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources-8e1d671ff51386ff.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{data-catalog-79d06a04698c47c0.js → data-catalog-75403467491a251b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/datastore/[monitorId]-fb69b66faffc8f4a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/datastore-1b0ed3b3ceedfd94.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/[monitorId]/[systemId]-2978a8aa990ec3a9.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/[monitorId]-968e1c27b0970d67.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website-60ad14c879b4fe27.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-46b2cdceea3993c8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-4c18f83478bf5db2.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-260f5deb68966b70.js → [resourceUrn]-27227f5c402b3a92.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-d735dab3d9f3adc5.js → detection-1fe30896a5df2b9a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-c7f055275a2c503f.js → [resourceUrn]-e17f809058842014.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-b1cfd55c7e127865.js → discovery-2f73cff60a628e42.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datamap-d1bb19fe4ef393dc.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-e04a4e16ccf32aef.js → [...subfieldNames]-58c3f4c0b490264b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-a40c4febe16a0a6d.js → [collectionName]-74290432e74fcdc5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-f500a77eefb057e7.js → [datasetId]-8dad45f070a06609.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{new-5c20080cdb053b1d.js → new-6aed6dc24c3be001.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{dataset-96355a68e8c28fe8.js → dataset-fdaec997c1b0753f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-448729ee9d1d78c3.js → [id]-63c4805e40673c60.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-42c720ec5c941573.js → new-b5a49743387eecef.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-8f0804d9a38688a4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{index-ca794e85c16cba67.js → index-363b091a4d1d70ad.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-d26992b1651b74ae.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations-401b0b6b9d447d00.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/new-privacy-requests-d1152cbc3c1bbbbb.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests/{[id]-058125922d1eaeec.js → [id]-0e4e4e7110362022.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests/{new-7a5f76708c79f714.js → new-2e15f6272e9aaeb6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/{digests-31bed1f86b89d1d8.js → digests-65626dfcfacdc605.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers/{[key]-d08f3a7cd2d011ec.js → [key]-768c4e2f6b05304c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers/{new-cb2c7fbc26886052.js → new-2d57a70e4d32e651.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers-e71a1d0f7633a968.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates/{[id]-a6ae72abe59ff830.js → [id]-1b31764f520fbbc5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates/{add-template-a3e4b5b575b31be1.js → add-template-4c74456b6677bf07.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates-5deb80abd6156f7f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{notifications-9644c0f088a01fea.js → notifications-8d8716dda9a6f277.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/ant-components-52b1572442a20ab4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/AntForm-a0437ba647d59799.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikAntFormItem-87285c544450ec46.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikControlled-57997dbd451a6eed.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikField-65009783e0404153.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/forms-eafef007c179340f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/{table-migration-11a70bcfa672ce8f.js → table-migration-7933a824a45d0ee6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-27c56466eab98b15.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{storage-24a8c2ab57625556.js → storage-16f77a6291bb02fe.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-1926359bdf5d6c30.js → configure-d2b3293ab496f7bc.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-af4f48d10926e4a4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-47118b9976ad7212.js → [id]-dd3c3d780533a9c2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-2e6b0d8b409ba1fd.js → add-property-d1af260c3ddbf68b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{properties-32486c25255c9cb1.js → properties-9bb7fe3577402008.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-479401ebaf1160ab.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-35626e9d8e0a3ca2.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-38b4b0d710d162bc.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/{[id]-a270325109398f48.js → [id]-b5140de4431a7ff5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/{new-2e0c8e249f286427.js → new-dcc16459e754fbbd.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-4171abc37fe1475c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-e3dcef1ec8cf8b9e.js → domain-records-3843fbaf5bc433f1.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domains-2e88cc7a6074a28b.js → domains-ea549fabce96fde4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-7469d2f85396c693.js → email-templates-0fe318a9dfc1f593.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-20789aa0c84d544e.js → locations-c42c856510cad6fd.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-f84a13eb9688cb5f.js → organization-e4c552a5797c3fa5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{privacy-requests-b72df6f3d460125f.js → privacy-requests-2790d31b59cc3c74.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-aa02bc818e089c49.js → regulations-3c608512c415fca4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/{test-datasets-5be9ce7a745ce908.js → test-datasets-e0e1a5142e41e9f2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-2fc7c0d3988427b3.js → [id]-70820c4199cb11cb.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems-753ee6b9bb80a657.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-0cae23a599830708.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-6217433a26599521.js → [id]-75d96422db98196f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-b6c4bf35c003965d.js → user-management-598f98fd88505e1e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{webpack-8eac1ea5c825c8b4.js → webpack-0a3b419ab682b8f9.js} +1 -1
- fides/ui-build/static/admin/_next/static/css/012b10627a654d5c.css +1 -0
- fides/ui-build/static/admin/_next/static/css/{f38242c11f7fea64.css → 05d05fc31d09638b.css} +1 -1
- fides/ui-build/static/admin/_next/static/css/0fd6e0884cfcc5f3.css +1 -0
- fides/ui-build/static/admin/_next/static/css/14ba79c49597d37a.css +1 -0
- fides/ui-build/static/admin/_next/static/css/{34a7eb08b86ddb57.css → 3d6582469f7d56e0.css} +1 -1
- fides/ui-build/static/admin/_next/static/css/4861ca3e088f2d05.css +1 -0
- fides/ui-build/static/admin/_next/static/css/8317e07483c73e4f.css +1 -0
- fides/ui-build/static/admin/_next/static/css/a1800714b486e230.css +1 -0
- fides/ui-build/static/admin/_next/static/css/af32fcac7a177a0e.css +1 -0
- fides/ui-build/static/admin/_next/static/css/cb417f0587918f85.css +1 -0
- fides/ui-build/static/admin/_next/static/css/dd15c278b964de80.css +1 -0
- fides/ui-build/static/admin/_next/static/css/{5f393dea1c0d031c.css → f89607996ad54f4b.css} +1 -1
- fides/ui-build/static/admin/_next/static/css/f9a2a44d3d34c904.css +1 -0
- fides/ui-build/static/admin/add-systems/manual.html +1 -1
- fides/ui-build/static/admin/add-systems/multiple.html +1 -1
- fides/ui-build/static/admin/add-systems.html +1 -1
- fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
- fides/ui-build/static/admin/consent/configure.html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
- fides/ui-build/static/admin/consent/properties.html +1 -1
- fides/ui-build/static/admin/consent/reporting.html +1 -1
- fides/ui-build/static/admin/consent.html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
- fides/ui-build/static/admin/data-catalog.html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/datastore/[monitorId].html +1 -0
- fides/ui-build/static/admin/data-discovery/action-center/datastore.html +1 -0
- fides/ui-build/static/admin/data-discovery/action-center/website/[monitorId]/[systemId].html +1 -0
- fides/ui-build/static/admin/data-discovery/action-center/website/[monitorId].html +1 -0
- fides/ui-build/static/admin/data-discovery/action-center/website.html +1 -0
- fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
- fides/ui-build/static/admin/data-discovery/activity.html +1 -1
- fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-discovery/detection.html +1 -1
- fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
- fides/ui-build/static/admin/datamap.html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
- fides/ui-build/static/admin/dataset/new.html +1 -1
- fides/ui-build/static/admin/dataset.html +1 -1
- fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
- fides/ui-build/static/admin/datastore-connection/new.html +1 -1
- fides/ui-build/static/admin/datastore-connection.html +1 -1
- fides/ui-build/static/admin/index.html +1 -1
- fides/ui-build/static/admin/integrations/[id].html +1 -1
- fides/ui-build/static/admin/integrations.html +1 -1
- fides/ui-build/static/admin/lib/fides-ext-gpp.js +1 -1
- fides/ui-build/static/admin/lib/fides-headless.js +1 -1
- fides/ui-build/static/admin/lib/fides-preview.js +1 -1
- fides/ui-build/static/admin/lib/fides-tcf.js +3 -3
- fides/ui-build/static/admin/lib/fides.js +3 -3
- fides/ui-build/static/admin/login/[provider].html +1 -1
- fides/ui-build/static/admin/login.html +1 -1
- fides/ui-build/static/admin/new-privacy-requests.html +1 -0
- fides/ui-build/static/admin/notifications/digests/[id].html +1 -1
- fides/ui-build/static/admin/notifications/digests/new.html +1 -1
- fides/ui-build/static/admin/notifications/digests.html +1 -1
- fides/ui-build/static/admin/notifications/providers/[key].html +1 -1
- fides/ui-build/static/admin/notifications/providers/new.html +1 -1
- fides/ui-build/static/admin/notifications/providers.html +1 -1
- fides/ui-build/static/admin/notifications/templates/[id].html +1 -1
- fides/ui-build/static/admin/notifications/templates/add-template.html +1 -1
- fides/ui-build/static/admin/notifications/templates.html +1 -1
- fides/ui-build/static/admin/notifications.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/storage.html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
- fides/ui-build/static/admin/privacy-requests.html +1 -1
- fides/ui-build/static/admin/properties/[id].html +1 -1
- fides/ui-build/static/admin/properties/add-property.html +1 -1
- fides/ui-build/static/admin/properties.html +1 -1
- fides/ui-build/static/admin/reporting/datamap.html +1 -1
- fides/ui-build/static/admin/settings/about/alpha.html +1 -1
- fides/ui-build/static/admin/settings/about.html +1 -1
- fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +1 -1
- fides/ui-build/static/admin/settings/consent.html +1 -1
- fides/ui-build/static/admin/settings/custom-fields/[id].html +1 -1
- fides/ui-build/static/admin/settings/custom-fields/new.html +1 -1
- fides/ui-build/static/admin/settings/custom-fields.html +1 -1
- fides/ui-build/static/admin/settings/domain-records.html +1 -1
- fides/ui-build/static/admin/settings/domains.html +1 -1
- fides/ui-build/static/admin/settings/email-templates.html +1 -1
- fides/ui-build/static/admin/settings/locations.html +1 -1
- fides/ui-build/static/admin/settings/organization.html +1 -1
- fides/ui-build/static/admin/settings/privacy-requests.html +1 -1
- fides/ui-build/static/admin/settings/regulations.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id].html +1 -1
- fides/ui-build/static/admin/systems.html +1 -1
- fides/ui-build/static/admin/taxonomy.html +1 -1
- fides/ui-build/static/admin/user-management/new.html +1 -1
- fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
- fides/ui-build/static/admin/user-management.html +1 -1
- fides/ui-build/static/admin/_next/static/chunks/155-bf4e3ffb18f29226.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1896-49010da5c2705fc5.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/2150-930ffaf2c4718edc.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/255-1bc0cbef7a59cdc6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/2921-9b596ba7f5267afc.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/2962-e92d525bf570a9a3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3550-83cb70e80cbe41ba.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4817-066598cef25d7e88.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5279-a05b93a8db6a3e79.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6277-970bb31d9b0c0007.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6315-4a2151f87c7eefb6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6419-9b3a86af57c86791.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6853-6d64d627df6f8194.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7245-53a20677c49b41c8.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/8373-43b6df89a2085d6b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9046-3a08a09a598396ca.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9070-6d3aaaf5aa5913ba.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9330-6eb11127296c54c2.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9682-65d253d54f84f6f2.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9965-4709f43bf62af9a9.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-055d058d16c02957.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-0058fe05f2d23d1a.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-a7fe3925771bb6c3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-e9ec351281c54822.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]-3b59925f6c9a13a9.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-ffb6e0fe6712342e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-3c935e93208d2bdd.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/[resourceUrn]-8d7d9152e215c3b6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources-96be972a983616e3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-e50e9c8e11412b2a.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/data-explorer-09a3a992e564f971.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-878aa4ab0746df5b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-a2e9c0bfa67c633d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-6cc1ba1f102ae77d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datamap-18f255a8bbeecaa4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-a8fc95a46de38b35.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-2f1dc17eba11fb4e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations-bbec0140433a199b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers-40b9f1f70d27b660.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates-4918f86f7300ac9b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/ant-components-39b5586d9c8b64aa.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/AntForm-5163f3213377bd35.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikAntFormItem-0b1547cd9b114c6b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikControlled-da562cba4cffd6bb.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikField-3a587676869d2ef6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/forms-defc3b917306a6d8.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-787621468b5a7619.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-da634187d8201ab3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-e410d13a2b35cff4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-aec1bf8a409ec75f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-4c20c08ca7ea8cff.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-8e4a76376927afd5.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems-86f5557384124f79.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-2589729c47976357.js +0 -1
- fides/ui-build/static/admin/_next/static/css/23cf870196941c9a.css +0 -1
- fides/ui-build/static/admin/_next/static/css/304c6f148886a8d4.css +0 -1
- fides/ui-build/static/admin/_next/static/css/de09ed8a0adf1ca2.css +0 -1
- fides/ui-build/static/admin/_next/static/hRLR7azkI57zC2PfdYodO/_buildManifest.js +0 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +0 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/data-explorer.html +0 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +0 -1
- {ethyca_fides-2.72.3rc1.dist-info → ethyca_fides-2.73.0rc0.dist-info}/WHEEL +0 -0
- {ethyca_fides-2.72.3rc1.dist-info → ethyca_fides-2.73.0rc0.dist-info}/entry_points.txt +0 -0
- {ethyca_fides-2.72.3rc1.dist-info → ethyca_fides-2.73.0rc0.dist-info}/licenses/LICENSE +0 -0
- {ethyca_fides-2.72.3rc1.dist-info → ethyca_fides-2.73.0rc0.dist-info}/top_level.txt +0 -0
- /fides/ui-build/static/admin/_next/static/{hRLR7azkI57zC2PfdYodO → Y4fC3QVMk1ujcOb92jMd8}/_ssgManifest.js +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/user-management/{new-e399005c3bb4db1b.js → new-bc1568bb47d198a9.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5023],{74245:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/add-systems",function(){return n(5923)}])},69e3:function(e,t,n){"use strict";var s=n(24246),i=n(20595),a=n(91507),r=n.n(a);t.Z=e=>{let{color:t,description:n,title:a,icon:l}=e;return(0,s.jsx)(i.xuv,{borderLeft:"9px solid ".concat(t),borderRadius:"6px",className:r().container,children:(0,s.jsxs)(i.V4A,{className:r().card,"data-testid":"tile-".concat(a),children:[(0,s.jsxs)("div",{className:"mb-1 flex items-center gap-1.5",children:[l,(0,s.jsx)(i.AntTypography.Title,{level:3,children:a})]}),(0,s.jsx)(i.AntTypography.Text,{children:n})]})})}},77867:function(e,t,n){"use strict";var s=n(24246),i=n(20595);t.Z=e=>{let{connected:t,...n}=e,a="red.500";return null==t?a="gray.300":t&&(a="green.500"),(0,s.jsx)(i.xuv,{width:"12px",height:"12px",borderRadius:"6px",backgroundColor:a,...n})}},59301:function(e,t,n){"use strict";var s=n(24246);let{Link:i}=n(20595).AntTypography;t.Z=e=>{let{children:t,...n}=e;return(0,s.jsx)(i,{target:"_blank",rel:"noopener noreferrer",...n,children:t})}},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var s=n(24246),i=n(20595),a=n(88038),r=n.n(a),l=n(86677);n(27378);var o=n(25980),c=n(90867),d=n(42478),u=n(77830),m=()=>{let e=(0,l.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(u.AD)},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."," "]})]})})},h=e=>{let{children:t,title:n,padded:a=!0,mainProps:u}=e,h=(0,o.hz)(),x=(0,l.useRouter)(),g="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,p=!(h.flags.messagingConfiguration&&g),{data:y}=(0,d.JE)(void 0,{skip:p}),{data:f}=(0,c.PW)(void 0,{skip:p}),j=h.flags.messagingConfiguration&&(!y||!f)&&g;return(0,s.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,s.jsxs)(r(),{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:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[j?(0,s.jsx)(m,{}):null,t]})]})}},58754:function(e,t,n){"use strict";var s=n(24246),i=n(20595),a=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:r=!0,children:l,rightContent:o,style:c,...d}=e;return(0,s.jsxs)("div",{...d,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,s.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(i.lQT,{className:n||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,s.jsx)(a.m,{className:l?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),l]})}},97181:function(e,t,n){"use strict";n.d(t,{d:function(){return c}});var s=n(24246),i=n(20595),a=n(34090),r=n(27378),l=n(46238),o=n(40324);let c=e=>{let{name:t,label:n,labelProps:c,tooltip:d,isRequired:u,layout:m="inline",helperText:h,...x}=e,[g,p,{setValue:y}]=(0,a.U$)(t),f=!!(p.touched&&p.error),[j,v]=(0,r.useState)("");g.value||"tags"!==x.mode&&"multiple"!==x.mode||(g.value=[]),"tags"===x.mode&&"string"==typeof g.value&&(g.value=[g.value]);let b="tags"===x.mode?(e,t)=>e?e.value!==j||g.value.includes(j)?x.optionRender?x.optionRender(e,t):e.label:'Create "'.concat(j,'"'):void 0:x.optionRender||void 0,C=e=>{v(e),x.onSearch&&x.onSearch(e)},w=(e,t)=>{y(e),x.onChange&&x.onChange(e,t)};return"inline"===m?(0,s.jsx)(i.NIc,{isInvalid:f,isRequired:u,children:(0,s.jsxs)(i.rjZ,{templateColumns:n?"1fr 3fr":"1fr",children:[n?(0,s.jsx)(o.__,{htmlFor:x.id||t,...c,children:n}):null,(0,s.jsxs)(i.jqI,{align:"center",children:[(0,s.jsxs)(i.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,s.jsx)(i.WPr,{...g,id:x.id||t,"data-testid":"controlled-select-".concat(g.name),...x,optionRender:b,onSearch:"tags"===x.mode?C:void 0,onChange:w,value:g.value||void 0,status:f?"error":void 0}),h&&(0,s.jsx)(i.Q6r,{children:h}),(0,s.jsx)(o.Bc,{isInvalid:f,message:p.error,fieldName:g.name})]}),(0,s.jsx)(l.b,{label:d,className:f?"mt-2 self-start":void 0})]})]})}):(0,s.jsx)(i.NIc,{isInvalid:f,isRequired:u,children:(0,s.jsxs)(i.gCW,{alignItems:"start",children:[(0,s.jsxs)(i.jqI,{align:"center",children:[n?(0,s.jsx)(o.__,{htmlFor:x.id||t,fontSize:"xs",my:0,mr:1,...c,children:n}):null,(0,s.jsx)(l.b,{label:d})]}),(0,s.jsx)(i.WPr,{...g,id:x.id||t,"data-testid":"controlled-select-".concat(g.name),...x,optionRender:b,onSearch:"tags"===x.mode?C:void 0,onChange:w,value:g.value||void 0,status:f?"error":void 0}),h&&(0,s.jsx)(i.Q6r,{style:{marginTop:0},children:h}),(0,s.jsx)(o.Bc,{isInvalid:f,message:p.error,fieldName:g.name})]})})}},16220:function(e,t,n){"use strict";n.d(t,{V:function(){return a}});var s=n(25980),i=n(77830);let a=()=>({systemOrDatamapRoute:(0,s.hz)().plus?i.oG:i.So})},57899:function(e,t,n){"use strict";var s=n(24246),i=n(20595),a=n(27378);t.Z=e=>{let{handleConfirm:t,isOpen:n,onClose:r,title:l,message:o,confirmButtonText:c="Continue",cancelButtonText:d="Cancel"}=e,u=(0,a.useRef)(null);return(0,s.jsx)(i.aRR,{isOpen:n,leastDestructiveRef:u,onClose:r,children:(0,s.jsx)(i.dhV,{children:(0,s.jsxs)(i._Tf,{alignItems:"center",textAlign:"center",children:[(0,s.jsx)(i.aNP,{marginTop:3}),(0,s.jsx)(i.fYl,{fontSize:"lg",fontWeight:"bold",children:l}),(0,s.jsx)(i.iPF,{pt:0,children:o}),(0,s.jsxs)(i.xoY,{children:[(0,s.jsx)(i.wpx,{ref:u,onClick:r,size:"large",children:d}),(0,s.jsx)(i.wpx,{onClick:()=>t(),type:"primary",size:"large",className:"ml-3","data-testid":"warning-modal-confirm-btn",children:c})]})]})})})}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return c}});var s=n(24246),i=n(20595),a=n(79894),r=n.n(a),l=n(27378);let{Text:o}=i.AntTypography,c=e=>{let{items:t,...n}=e,a=(0,l.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let a=n===t.length-1,l={...e},c=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,s.jsx)(o,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,id:a?"breadcrumb-current-page":void 0,children:l.title})),c)?l.title=(0,s.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,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,s.jsx)(r(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,s.jsx)(i.zrq,{items:a,...n})}},42478:function(e,t,n){"use strict";n.d(t,{FU:function(){return c},JE:function(){return i},Ki:function(){return u},SU:function(){return m},W:function(){return h},h9:function(){return a},jc:function(){return s},qt:function(){return o},sn:function(){return d}});let{useGetEmailInviteStatusQuery:s,useGetActiveMessagingProviderQuery:i,useCreateMessagingConfigurationMutation:a,useCreateMessagingConfigurationSecretsMutation:r,useGetMessagingConfigurationDetailsQuery:l,useGetMessagingConfigurationsQuery:o,useGetMessagingConfigurationByKeyQuery:c,useUpdateMessagingConfigurationByKeyMutation:d,useUpdateMessagingConfigurationSecretsByKeyMutation:u,useCreateTestConnectionMessageMutation:m,useDeleteMessagingConfigurationByKeyMutation:h}=n(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,t,n,s)=>{let i=await s({url:"messaging/default/active"});return i.error&&404===i.error.status?{data:null}:i},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},5923:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return eu}});var s=n(24246),i=n(27378),a=n(16134),r=n(77213),l=n(58754),o=n(15677),c=n(20595),d=n(3124),u=n.n(d),m=n(86677),h=n(25980),x=n(14048),g=n(58452);let p=e=>{let{onCancel:t,onConfirm:n,isOpen:i,onClose:a}=e;return(0,s.jsx)(g.Z,{isOpen:i,onClose:a,onCancel:t,isCentered:!0,title:"Upgrade to choose vendors",message:"To choose vendors and have system information auto-populated using Fides Compass, you will need to upgrade Fides. Meanwhile, you can manually add individual systems using the button below.",cancelButtonText:"Add vendors manually",continueButtonText:"Upgrade",onConfirm:n})};var y=n(77830),f=n(39449),j=n(69e3),v=n(77867),b=n(32885),C=e=>{var t;let{onClick:n}=e,{plus:i,dataFlowScanning:r}=(0,h.hz)(),l=(0,a.C)(b.bw),o=null!==(t=null==l?void 0:l.cluster_health)&&void 0!==t?t:"unknown",d=o===f.wW.HEALTHY;if(!i)return null;let m=null;return r?d||(m="Your cluster appears not to be healthy. Its status is ".concat(o,".")):m="The data flow scanner is not enabled, please check your configuration.",(0,s.jsxs)(c.xuv,{position:"relative",children:[(0,s.jsx)(c.esZ,{title:m,popupVisible:!!m,children:(0,s.jsx)("button",{disabled:!r||!d,type:"button","aria-label":"Data flow scan",className:"text-left",onClick:n,children:(0,s.jsx)(j.Z,{title:"Data flow scan",color:u().FIDESUI_NECTAR,description:"Automatically discover new systems in your Kubernetes infrastructure",icon:(0,s.jsx)(x.pt,{boxSize:6}),"data-testid":"data-flow-scan-btn"})})}),r?(0,s.jsx)(v.Z,{connected:d,title:d?"Cluster is connected and healthy":"Cluster is ".concat(o),position:"absolute",right:-1,top:-1,"data-testid":"cluster-health-indicator"}):null]})},w=n(38764);let T=e=>{let{children:t}=e;return(0,s.jsx)(c.X6q,{as:"h4",size:"xs",fontWeight:"semibold",color:"gray.600",textTransform:"uppercase",mb:4,children:t})};var S=()=>{let e=(0,a.T)(),t=(0,m.useRouter)(),{isOpen:n,onClose:i,onOpen:r}=(0,c.qY0)(),{dictionaryService:l}=(0,h.hz)();return(0,s.jsxs)(c.Kqy,{spacing:9,"data-testid":"add-systems",children:[(0,s.jsxs)(c.Kqy,{spacing:6,maxWidth:"600px",children:[(0,s.jsx)(c.X6q,{as:"h3",size:"md",fontWeight:"semibold",children:"Fides helps you map your systems to manage your privacy"}),(0,s.jsx)(c.xvT,{children:"In Fides, systems describe any services that store or process data for your organization, including third-party APIs, web applications, databases, and data warehouses."}),(0,s.jsx)(c.xvT,{children:"Fides can automatically discover new systems in your AWS infrastructure or Okta accounts. For services not covered by the automated scanners or analog processes, you may also manually add new systems to your map."})]}),(0,s.jsx)(p,{isOpen:n,onConfirm:()=>{window.open("https://fid.es/upgrade-compass")},onCancel:()=>{t.push(y.N5)},onClose:i}),(0,s.jsxs)(c.xuv,{"data-testid":"manual-options",children:[(0,s.jsx)(T,{children:"Manually add systems"}),(0,s.jsxs)(c.MIq,{columns:{base:1,md:2,xl:3},spacing:"4",children:[(0,s.jsx)("button",{className:"flex flex-col text-left",type:"button","aria-label":"Add a system",onClick:()=>{e((0,o.CQ)(w.D.MANUAL)),t.push(y.N5)},"data-testid":"manual-btn",children:(0,s.jsx)(j.Z,{title:"Add a system",color:u().FIDESUI_SANDSTONE,icon:(0,s.jsx)(x.P$,{boxSize:6}),description:"Manually add a system for services not covered by automated scanners"})}),(0,s.jsx)("button",{className:"flex flex-col text-left",type:"button","aria-label":"Add multiple systems",onClick:()=>{l?(e((0,o.CQ)(w.D.MANUAL)),t.push(y.bJ)):r()},"data-testid":"multiple-btn",children:(0,s.jsx)(j.Z,{title:"Add multiple systems",color:u().FIDESUI_OLIVE,icon:(0,s.jsx)(x.P$,{boxSize:6}),description:"Choose vendors and automatically populate system details"})})]})]}),(0,s.jsxs)(c.xuv,{"data-testid":"automated-options",children:[(0,s.jsx)(T,{children:"Automated infrastructure scanning"}),(0,s.jsxs)(c.MIq,{columns:{base:1,md:2,xl:3},spacing:"4",children:[(0,s.jsx)("button",{className:"flex flex-col text-left",type:"button","aria-label":"Scan your infrastructure (AWS)",onClick:()=>{e((0,o.CQ)(f.GC.AWS)),e((0,o.sz)())},"data-testid":"aws-btn",children:(0,s.jsx)(j.Z,{title:"Scan your infrastructure (AWS)",color:u().FIDESUI_TERRACOTTA,description:"Automatically discover new systems in your AWS infrastructure",icon:(0,s.jsx)(x.bj,{boxSize:6})})}),(0,s.jsx)("button",{className:"flex flex-col text-left",type:"button","aria-label":"Scan your Sign On Provider (Okta)",onClick:()=>{e((0,o.CQ)(f.GC.OKTA)),e((0,o.sz)())},"data-testid":"okta-btn",children:(0,s.jsx)(j.Z,{title:"Scan your Sign On Provider (Okta)",color:u().FIDESUI_MINOS,description:"Automatically discover new systems in your Okta infrastructure",icon:(0,s.jsx)(x.tb,{boxSize:6})})}),(0,s.jsx)(C,{onClick:()=>{e((0,o.sz)()),e((0,o.CQ)(w.D.DATA_FLOW))}})]})]})]})},k=n(34090),_=n(55484),A=n(40324),q=n(812),z=n(17245),I=n(97181),O=n(70788),N=n(28416);let D=e=>"system_type"in e,{useGenerateMutation:F}=n(78780).u.injectEndpoints({endpoints:e=>({generate:e.mutation({query:e=>({url:"generate",method:"POST",body:e})})})});var W=n(59301);let M=e=>{let{message:t}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.izJ,{}),(0,s.jsx)(c.W20,{maxH:"50vh",overflow:"auto",children:(0,s.jsx)(c.xvT,{as:"pre","data-testid":"error-log",children:t})}),(0,s.jsx)(c.izJ,{})]})};var R=e=>{let{error:t,scanType:n=""}=e;return(0,s.jsxs)(c.Kqy,{"data-testid":"scanner-error",spacing:"4",children:[(0,s.jsxs)(c.Ugi,{children:[(0,s.jsx)(c.j8w,{color:"error",children:"Error"}),(0,s.jsx)(c.X6q,{color:"red.500",size:"lg",children:"Failed to Scan"})]}),403===t.status&&n===f.GC.AWS?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.xvT,{"data-testid":"permission-msg",children:"Fides was unable to scan AWS. It appears that the credentials were valid to login but they did not have adequate permission to complete the scan."}),(0,s.jsxs)(c.xvT,{children:["To fix this issue, double check that you have granted"," ",(0,s.jsx)(W.Z,{href:N.zu,children:"the required permissions"})," ","to these credentials as part of your IAM policy. If you need more help in configuring IAM policies, you can read about them in the"," ",(0,s.jsx)(W.Z,{href:"https://docs.aws.amazon.com/IAM/latest/UserGuide/introduction_access-management.html",children:"AWS documentation"}),"."]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.xvT,{"data-testid":"generic-msg",children:"Fides was unable to scan your infrastructure. Please ensure your credentials are accurate and inspect the error log below for more details."}),(0,s.jsx)(M,{message:t.message}),(0,s.jsxs)(c.xvT,{children:["If this error does not clarify why scanning failed, please"," ",(0,s.jsx)(W.Z,{href:N.we,children:"create a new issue"}),"."]})]})]})},E=n(57899);let K=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.xvT,{color:"gray.500",mb:3,children:"Warning, you are about to cancel the scan!"}),(0,s.jsx)(c.xvT,{color:"gray.500",mb:3,children:"If you cancel scanning, the scanner will stop and no systems will be returned."}),(0,s.jsx)(c.xvT,{color:"gray.500",mb:3,children:"Are you sure you want to cancel?"})]});var Z=e=>{let{title:t,onClose:n}=e,{isOpen:i,onOpen:a,onClose:r}=(0,c.qY0)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.Kqy,{spacing:8,"data-testid":"scanner-loading",children:[(0,s.jsxs)(c.Ugi,{children:[(0,s.jsx)(c.xvT,{alignItems:"center",as:"b",color:"gray.900",display:"flex",fontSize:"xl",children:t}),(0,s.jsx)(c.PZ7,{"data-testid":"close-scan-in-progress",display:"inline-block",onClick:a})]}),(0,s.jsx)(c.Kqy,{alignItems:"center",children:(0,s.jsx)(c.$jN,{thickness:"4px",speed:"0.65s",emptyColor:"gray.200",color:"green.300",size:"xl"})})]}),(0,s.jsx)(E.Z,{isOpen:i,onClose:r,handleConfirm:n,title:"Cancel Scan!",message:K,confirmButtonText:"Yes, Cancel",cancelButtonText:"No, Continue Scanning"})]})};let U={aws_access_key_id:"",aws_secret_access_key:"",aws_session_token:"",region_name:""},B=_.Ry().shape({aws_access_key_id:_.Z_().required().trim().matches(/^\w+$/,"Cannot contain spaces or special characters").label("Access Key ID"),aws_secret_access_key:_.Z_().required().trim().matches(/^[^\s]+$/,"Cannot contain spaces").label("Secret"),aws_session_token:_.Z_().optional().trim().matches(/^[^\s]+$/,"Cannot contain spaces").label("Session Token (for temporary credentials)"),region_name:_.Z_().required().label("Default Region")});var P=()=>{let e=(0,a.C)(o.De),t=(0,a.T)(),{successAlert:n}=(0,z.VY)(),[r,l]=(0,i.useState)(),d=e=>{let s=(null!=e?e:[]).filter(D);t((0,o.un)(s)),t((0,o.sz)()),n("Your scan was successfully completed, with ".concat(s.length," new systems detected!"),"Scan Successfully Completed",{isClosable:!0})},u=e=>{l((0,q.nU)(e,{status:500,message:"Our system encountered a problem while connecting to AWS."}))},m=()=>{t((0,o.sz)(2))},[h,{isLoading:x}]=F(),g=async t=>{l(void 0);let n=await h({organization_key:e,generate:{config:t,target:f.GC.AWS,type:f.j.SYSTEMS}});(0,q.D4)(n)?u(n.error):d(n.data.generate_results)};return(0,s.jsx)(k.J9,{initialValues:U,validationSchema:B,onSubmit:g,children:e=>{let{isValid:t,isSubmitting:n,dirty:i}=e;return(0,s.jsx)(k.l0,{"data-testid":"authenticate-aws-form",children:(0,s.jsxs)(c.Kqy,{spacing:10,children:[n?(0,s.jsx)(Z,{title:"System scanning in progress",onClose:m}):null,r?(0,s.jsx)(R,{error:r,scanType:"aws"}):null,n||r?null:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.xuv,{children:[(0,s.jsx)(O.m,{className:"mb-4",items:[{title:"Add systems",href:"",onClick:e=>{e.preventDefault(),m()}},{title:"Authenticate AWS Scanner"}]}),(0,s.jsx)(c.xvT,{children:"To use the scanner to inventory systems in AWS, you must first authenticate to your AWS cloud by providing the following information:"})]}),(0,s.jsxs)(c.Kqy,{children:[(0,s.jsx)(A.j0,{name:"aws_access_key_id",label:"Access Key ID",tooltip:"The Access Key ID created by the cloud hosting provider.",isRequired:!0}),(0,s.jsx)(A.j0,{type:"password",name:"aws_secret_access_key",label:"Secret",tooltip:"The secret associated with the Access Key ID used for authentication.",isRequired:!0}),(0,s.jsx)(A.j0,{type:"password",name:"aws_session_token",label:"Session Token",tooltip:"The session token when using temporary credentials."}),(0,s.jsx)(I.d,{name:"region_name",label:"AWS Region",tooltip:"The geographic region of the cloud hosting provider you would like to scan.",options:N.xO,isRequired:!0,placeholder:"Select a region"})]})]}),n?null:(0,s.jsxs)(c.Ugi,{children:[(0,s.jsx)(c.wpx,{onClick:m,children:"Cancel"}),(0,s.jsx)(c.wpx,{htmlType:"submit",type:"primary",disabled:!i||!t,loading:x,"data-testid":"submit-btn",children:"Save and continue"})]})]})})}})};let Y={orgUrl:"",token:""},L=_.Ry().shape({orgUrl:_.Z_().required().trim().url().label("URL"),token:_.Z_().required().trim().matches(/^[^\s]+$/,"Cannot contain spaces").label("Token")});var X=()=>{let e=(0,a.C)(o.De),t=(0,a.T)(),{successAlert:n}=(0,z.VY)(),[r,l]=(0,i.useState)(),d=e=>{let s=(null!=e?e:[]).filter(D);t((0,o.un)(s)),t((0,o.sz)()),n("Your scan was successfully completed, with ".concat(s.length," new systems detected!"),"Scan Successfully Completed",{isClosable:!0})},u=e=>{l((0,q.nU)(e,{status:500,message:"Our system encountered a problem while connecting to Okta."}))},m=()=>{t((0,o.sz)(2))},[h,{isLoading:x}]=F(),g=async t=>{l(void 0);let n=await h({organization_key:e,generate:{config:t,target:f.GC.OKTA,type:f.j.SYSTEMS}});(0,q.D4)(n)?u(n.error):d(n.data.generate_results)};return(0,s.jsx)(k.J9,{initialValues:Y,validationSchema:L,onSubmit:g,children:e=>{let{isValid:t,isSubmitting:n,dirty:i}=e;return(0,s.jsx)(k.l0,{"data-testid":"authenticate-okta-form",children:(0,s.jsxs)(c.Kqy,{spacing:10,children:[n?(0,s.jsx)(Z,{title:"System scanning in progress",onClose:m}):null,r?(0,s.jsx)(R,{error:r}):null,n||r?null:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.xuv,{children:[(0,s.jsx)(O.m,{className:"mb-4",items:[{title:"Add systems",href:"",onClick:e=>{e.preventDefault(),m()}},{title:"Authenticate Okta Scanner"}]}),(0,s.jsx)(c.xvT,{children:"To use the scanner to inventory systems in Okta, you must first authenticate to your Okta account by providing the following information:"})]}),(0,s.jsxs)(c.Kqy,{children:[(0,s.jsx)(A.j0,{name:"orgUrl",label:"Domain",tooltip:"The URL for your organization's account on Okta"}),(0,s.jsx)(A.j0,{name:"token",label:"Okta token",type:"password",tooltip:"The token generated by Okta for your account."})]})]}),n?null:(0,s.jsxs)(c.Ugi,{children:[(0,s.jsx)(c.wpx,{onClick:m,children:"Cancel"}),(0,s.jsx)(c.wpx,{htmlType:"submit",type:"primary",disabled:!i||!t,loading:x,"data-testid":"submit-btn",children:"Save and continue"})]})]})})}})},J=n(46628),$=n(31883),V=()=>{let e=(0,a.T)(),t=(0,c.pmc)(),[n]=(0,b.J9)(),[r,{data:l}]=(0,b.KW)(),[d,u]=(0,i.useState)(),[m,h]=(0,i.useState)(!1),x=e=>{u((0,q.nU)(e,{status:500,message:"Our system encountered a problem while scanning your infrastructure."}))};(0,i.useEffect)(()=>{(async()=>{let{error:e}=await n();h(!(e&&(0,$.Bw)(e)&&404===e.status));let t=await r({classify:!0});(0,q.D4)(t)&&x(t.error)})()},[r,n]),(0,i.useEffect)(()=>{(async()=>{if(l){let{data:s}=await n(),i=m?(null==s?void 0:s.added_systems)||[]:l.systems;t((0,J.t5)("Your scan was successfully completed, with ".concat(i.length," new systems detected!"))),e((0,o.un)(i)),e((0,o.sz)())}})()},[l,t,e,m,n]);let g=()=>{e((0,o.sz)(2))};return d?(0,s.jsxs)(c.Kqy,{children:[(0,s.jsx)(R,{error:d}),(0,s.jsx)(c.xuv,{children:(0,s.jsx)(c.wpx,{onClick:g,"data-testid":"cancel-btn",children:"Cancel"})})]}):(0,s.jsx)(Z,{title:"Infrastructure scanning in progress",onClose:g})},G=()=>{let e=(0,a.C)(o.Ll);return(0,s.jsxs)(c.xuv,{w:"40%",children:[e===f.GC.AWS?(0,s.jsx)(P,{}):null,e===f.GC.OKTA?(0,s.jsx)(X,{}):null,e===w.D.DATA_FLOW?(0,s.jsx)(V,{}):null]})},Q=n(83265),H=n(46238);let ee=()=>{var e,t;let n=(0,a.T)(),s=e=>{n((0,o.nD)(e)),n((0,o.sz)())},[r]=(0,Q.vz)(),[l]=(0,Q.$f)(),{data:d,isLoading:u}=(0,Q.GQ)(Q.Av),[m,h]=(0,i.useState)(!1);(0,i.useEffect)(()=>{!u&&!m&&(null==d?void 0:d.name)&&(null==d?void 0:d.description)&&n((0,o.sz)())},[u,d,n,m]);let x=(0,c.pmc)();return(0,k.TA)({initialValues:{name:null!==(e=null==d?void 0:d.name)&&void 0!==e?e:"",description:null!==(t=null==d?void 0:d.description)&&void 0!==t?t:""},onSubmit:async e=>{var t,n,i;h(!0);let a={name:null!==(t=e.name)&&void 0!==t?t:null==d?void 0:d.name,description:null!==(n=e.description)&&void 0!==n?n:null==d?void 0:d.description,fides_key:null!==(i=null==d?void 0:d.fides_key)&&void 0!==i?i:Q.Av,organization_fides_key:Q.Av};if(d){let e=await l(a);if((0,q.D4)(e)){x({status:"error",description:(0,q.e$)(e.error)});return}x.closeAll(),s(a)}else{let e=await r(a);if((0,q.D4)(e)){x({status:"error",description:(0,q.e$)(e.error)});return}x.closeAll(),s(a)}},enableReinitialize:!0,validate:e=>{let t={};return e.name||(t.name="Organization name is required"),e.description||(t.description="Organization description is required"),t}})};var et=()=>{let{errors:e,handleBlur:t,handleChange:n,handleSubmit:i,touched:a,values:r,isSubmitting:l}=ee();return(0,s.jsx)(c.m$N.form,{onSubmit:i,w:"40%","data-testid":"organization-info-form",children:(0,s.jsxs)(c.Kqy,{spacing:10,children:[(0,s.jsx)(c.X6q,{as:"h3",size:"lg",children:"Create your Organization"}),(0,s.jsx)("div",{children:"Provide your organization information. This information is used to configure your organization in Fides for data map reporting purposes."}),(0,s.jsx)(c.Kqy,{children:(0,s.jsxs)(c.NIc,{children:[(0,s.jsxs)(c.Kqy,{direction:"row",mb:5,justifyContent:"flex-end",children:[(0,s.jsx)(c.lXp,{w:"100%",children:"Organization name"}),(0,s.jsx)(c.IIB,{type:"text",id:"name",name:"name",focusBorderColor:"gray.700",onChange:n,onBlur:t,value:r.name,isInvalid:a.name&&!!e.name,minW:"65%",w:"65%","data-testid":"input-name"}),(0,s.jsx)(H.b,{label:"The legal name of your organization"})]}),(0,s.jsxs)(c.Kqy,{direction:"row",justifyContent:"flex-end",children:[(0,s.jsx)(c.lXp,{w:"100%",children:"Description"}),(0,s.jsx)(c.IIB,{type:"text",id:"description",name:"description",focusBorderColor:"gray.700",onChange:n,onBlur:t,value:r.description,isInvalid:a.description&&!!e.description,minW:"65%",w:"65%","data-testid":"input-description"}),(0,s.jsx)(H.b,{label:'An explanation of the type of organization and primary activity. For example "Acme Inc. is an e-commerce company that sells scarves."'})]})]})}),(0,s.jsx)(c.wpx,{type:"primary",htmlType:"submit",disabled:!r.name||!r.description,loading:l,"data-testid":"submit-btn",children:"Save and continue"})]})})},en=e=>{let{allColumns:t,selectedColumns:n,onChange:a}=e,r=(0,i.useMemo)(()=>{let e=new Map;return t.forEach(t=>e.set(t.name,!!n.find(e=>e.name===t.name))),e},[t,n]),l=()=>{r.forEach((e,t)=>r.set(t,!1)),a([])},o=e=>{var n;let s=null!==(n=r.get(e.name))&&void 0!==n&&n;r.set(e.name,!s),a(t.filter(e=>r.get(e.name)))};return(0,s.jsx)(c.v2r,{children:e=>{let{onClose:i}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.j2t,{as:c.wpx,icon:(0,s.jsx)(c.mCO,{}),fontWeight:"normal","data-testid":"column-dropdown",children:"Columns"}),(0,s.jsx)(c.qyq,{children:(0,s.jsxs)(c.xuv,{px:2,children:[(0,s.jsxs)(c.xuv,{display:"flex",justifyContent:"space-between",mb:2,children:[(0,s.jsx)(c.wpx,{size:"small",onClick:l,"data-testid":"column-clear-btn",children:"Clear"}),(0,s.jsx)(c.wpx,{type:"primary",size:"small",onClick:i,"data-testid":"column-done-btn",children:"Done"})]}),(0,s.jsx)(c.cOn,{colorScheme:"complimentary",children:(0,s.jsx)(c.Kqy,{children:t.map(e=>{let t=n.filter(t=>t.name===e.name).length>0;return(0,s.jsx)(c.XZJ,{id:e.name,_hover:{bg:"gray.100"},isChecked:t,onChange:()=>o(e),"data-testid":"checkbox-".concat(e.name),children:e.name},e.name)})})})]})})]})}})},es=n(16220);let ei=(e,t)=>t.split(".").reduce((e,t)=>e?e[t]:void 0,e),ea=e=>{let{system:t,attribute:n}=e;if("name"===n)return(0,s.jsx)("label",{htmlFor:"checkbox-".concat(t.fides_key),children:t.name});if("fidesctl_meta.resource_id"===n){var i,a;return(0,s.jsx)(c.xuv,{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",title:(null===(i=t.fidesctl_meta)||void 0===i?void 0:i.resource_id)||"",children:null===(a=t.fidesctl_meta)||void 0===a?void 0:a.resource_id})}return(0,s.jsx)(s.Fragment,{children:ei(t,n)})},er=e=>{let{allSystems:t,checked:n,onChange:i,columns:a,tableHeadProps:r}=e,l=e=>{n.indexOf(e)>=0?i(n.filter(t=>t.fides_key!==e.fides_key)):i([...n,e])},o=t.length===n.length;return 0===a.length?(0,s.jsx)(c.xvT,{children:"No columns selected to display"}):(0,s.jsxs)(c.iA_,{size:"sm",sx:{tableLayout:"fixed"},children:[(0,s.jsx)(c.hrZ,{...r,children:(0,s.jsxs)(c.Tr,{children:[(0,s.jsx)(c.Th,{width:"15px",children:(0,s.jsx)(c.XZJ,{colorScheme:"complimentary",title:"Select All",isChecked:o,onChange:e=>{e.target.checked?i(t):i([])},"data-testid":"select-all"})}),a.map(e=>(0,s.jsx)(c.Th,{children:e.name},e.attribute))]})}),(0,s.jsx)(c.p3B,{children:t.map(e=>(0,s.jsxs)(c.Tr,{children:[(0,s.jsx)(c.Td,{children:(0,s.jsx)(c.XZJ,{colorScheme:"complimentary",value:e.fides_key,isChecked:n.indexOf(e)>=0,onChange:()=>l(e),"data-testid":"checkbox-".concat(e.fides_key)})}),a.map(t=>(0,s.jsx)(c.Td,{children:(0,s.jsx)(ea,{system:e,attribute:t.attribute})},t.attribute))]},e.fides_key))})]})};var el=n(1315);let eo=[{name:"Name",attribute:"name"},{name:"System type",attribute:"system_type"},{name:"Resource ID",attribute:"fidesctl_meta.resource_id"}];var ec=()=>{let e=(0,a.C)(o.j4),t=(0,a.T)(),n=(0,m.useRouter)(),{systemOrDatamapRoute:r}=(0,es.V)(),{isOpen:l,onOpen:d,onClose:u}=(0,c.qY0)(),[h]=(0,el.dB)(),[x,g]=(0,i.useState)(e),[p,y]=(0,i.useState)(eo),{handleError:f}=(0,z.HK)(),j=e=>{n.push(e).then(()=>{t((0,o.mc)())})},v=async()=>{let e=await h(x);return(0,q.D4)(e)?f(e.error):j(r)},b=()=>{t((0,o.sz)(2))},C=(0,s.jsxs)(c.xvT,{color:"gray.500",mb:3,children:["You’re registering ",x.length," of ",e.length," systems available. Do you want to continue with registration or cancel and register all systems now?"]});return(0,s.jsxs)(c.xuv,{maxW:"full",children:[(0,s.jsxs)(c.Kqy,{spacing:10,"data-testid":"scan-results",children:[(0,s.jsx)(O.m,{className:"mb-4",items:[{title:"Add systems",href:"",onClick:e=>{e.preventDefault(),b()}},{title:"Authenticate"},{title:"Scan results"}]}),0===e.length?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.xvT,{"data-testid":"no-results",children:"No results were found for your infrastructure scan."}),(0,s.jsx)(c.Ugi,{children:(0,s.jsx)(c.wpx,{onClick:b,"data-testid":"back-btn",children:"Back"})})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.xuv,{children:[(0,s.jsx)(c.xvT,{children:"Below are the results of your infrastructure scan. To continue, select the systems you would like registered in your data map and reports."}),(0,s.jsx)(c.xuv,{display:"flex",justifyContent:"end",children:(0,s.jsx)(en,{allColumns:eo,selectedColumns:p,onChange:y})})]}),(0,s.jsx)(er,{allSystems:e,checked:x,onChange:g,columns:p}),(0,s.jsxs)(c.Ugi,{children:[(0,s.jsx)(c.wpx,{onClick:b,children:"Back"}),(0,s.jsx)(c.wpx,{onClick:()=>{e.length>x.length?d():v()},type:"primary",disabled:0===x.length,"data-testid":"register-btn",children:"Register selected systems"})]})]})]}),(0,s.jsx)(E.Z,{title:"Warning",message:C,handleConfirm:v,isOpen:l,onClose:u})]})},ed=()=>{let e=(0,a.C)(o.xx);return(0,s.jsx)(c.Kqy,{direction:["column","row"],bg:"white",children:(0,s.jsxs)(c.xuv,{display:"flex",justifyContent:"flex-start",w:"100%",children:[1===e?(0,s.jsx)(et,{}):null,2===e?(0,s.jsx)(S,{}):null,3===e?(0,s.jsx)(G,{}):null,4===e?(0,s.jsx)(c.xuv,{pr:10,children:(0,s.jsx)(ec,{})}):null]})})},eu=()=>{let e=(0,a.T)();return(0,i.useEffect)(()=>{e((0,o.sz)(2))},[e]),(0,s.jsxs)(r.Z,{title:"Add systems",children:[(0,s.jsx)(l.Z,{heading:"Add systems"}),(0,s.jsx)(ed,{})]})}},31883:function(e,t,n){"use strict";n.d(t,{Bw:function(){return s.Bw},D4:function(){return s.D4}});var s=n(19043)},91507:function(e){e.exports={container:"CalloutNavCard_container__DXPJb",card:"CalloutNavCard_card__q_XX6"}}},function(e){e.O(0,[431,7245,2888,9774,179],function(){return e(e.s=74245)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-a7fe3925771bb6c3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7262],{81575:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/privacy-notices",function(){return a(13089)}])},58754:function(e,t,a){"use strict";var l=a(24246),i=a(20595),n=a(70788);t.Z=e=>{let{heading:t,breadcrumbItems:a,isSticky:s=!0,children:r,rightContent:o,style:c,...d}=e;return(0,l.jsxs)("div",{...d,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,l.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,l.jsx)(i.lQT,{className:a||r?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,l.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!a&&(0,l.jsx)(n.m,{className:r?"pb-4":void 0,items:a,"data-testid":"page-breadcrumb"}),r]})}},70788:function(e,t,a){"use strict";a.d(t,{m:function(){return c}});var l=a(24246),i=a(20595),n=a(79894),s=a.n(n),r=a(27378);let{Text:o}=i.AntTypography,c=e=>{let{items:t,...a}=e,n=(0,r.useMemo)(()=>null==t?void 0:t.map((e,a)=>{let n=a===t.length-1,r={...e},c=r.onClick&&!r.href;return("string"==typeof r.title&&(r.title=(0,l.jsx)(o,{style:{color:"inherit",maxWidth:n?void 0:400},ellipsis:!n,id:n?"breadcrumb-current-page":void 0,children:r.title})),c)?r.title=(0,l.jsx)(i.wpx,{type:"text",size:"small",icon:r.icon,onClick:r.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:r.title}):(r.icon&&(r.title=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"anticon align-text-bottom",children:r.icon}),r.title]})),r.href&&r.title&&(r.title=(0,l.jsx)(s(),{href:r.href,className:"ant-breadcrumb-link",children:r.title}),delete r.href)),r}),[t]);return(0,l.jsx)(i.zrq,{items:n,...a})}},2525:function(e,t,a){"use strict";a.d(t,{Q:function(){return r}});var l=a(24246),i=a(20595),n=a(27378),s=a(3110);let r=e=>{let{values:t,columnState:a,tagProps:r,onTagClose:o,onStateChange:c,...d}=e,{isExpanded:u,isWrapped:p,version:h}=a||{},[x,g]=(0,n.useState)(!u),[m,v]=(0,n.useState)(!!p),[f,j]=(0,n.useState)(u?t:null==t?void 0:t.slice(0,2));(0,n.useEffect)(()=>{g(!u)},[u,h]),(0,n.useEffect)(()=>{v(!!p)},[p]),(0,n.useEffect)(()=>{(null==t?void 0:t.length)?j(x?t.slice(0,2):t):j(t)},[x,t,c]),(0,n.useEffect)(()=>{(null==t?void 0:t.length)&&t.length<=2&&!x&&(g(!0),null==c||c(!1))},[t,c,x]);let b=(0,n.useCallback)(()=>{j(null==t?void 0:t.slice(0,2)),g(!0),null==c||c(!1)},[t,c]),y=(0,n.useCallback)(()=>{g(!1),null==c||c(!0)},[c]),w=(0,n.useCallback)(()=>{x?y():b()},[x,y,b]);return(0,n.useMemo)(()=>(null==f?void 0:f.length)?(0,l.jsxs)(i.jqI,{align:x?"center":"start",wrap:m?"wrap":"nowrap",vertical:!x,gap:"small","data-testid":"tag-expandable-cell",style:{overflowX:"auto",...d.style},...d,children:[f.map(e=>(0,l.jsx)(i.j8w,{color:"white","data-testid":e.key,onClose:o?()=>o(e.key):void 0,...r,...e.tagProps,children:(0,l.jsx)(i.lKn,{ellipsis:!!x&&{tooltip:!0},style:{color:"inherit",maxWidth:x?s.TD:void 0},children:e.label})},e.key)),t&&t.length>2&&(0,l.jsx)(i.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),w()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:x?"+".concat(t.length-2," more"):s.T5})]}):(0,l.jsx)("span",{"data-testid":"tag-expandable-cell-empty"}),[f,x,m,d,t,r,o,w])}},3110:function(e,t,a){"use strict";a.d(t,{DI:function(){return r},T5:function(){return n},TD:function(){return s}});var l=a(24246),i=a(20595);let n="show less",s=150,r=[{key:"expand-all",label:"Expand all",icon:(0,l.jsx)(i.PJP.jbG,{})},{key:"collapse-all",label:"Collapse all",icon:(0,l.jsx)(i.PJP.MVB,{})}]},26070:function(e,t,a){"use strict";a.d(t,{v:function(){return o},Q:function(){return c.Q}});var l=a(24246),i=a(20595),n=a(27378),s=a(3110);let{Text:r}=i.AntTypography,o=e=>{let{values:t,valueSuffix:a,columnState:o}=e,{isExpanded:c,version:d}=o||{},[u,p]=(0,n.useState)(!c);(0,n.useEffect)(()=>{p(!c)},[c,d]);let h=(0,n.useCallback)(()=>{p(!0)},[]),x=(0,n.useCallback)(()=>{p(!1)},[]),g=(0,n.useCallback)(()=>{u?x():h()},[u,x,h]);return(0,n.useMemo)(()=>(null==t?void 0:t.length)?1===t.length?(0,l.jsx)(r,{ellipsis:!0,"data-testid":"list-expandable-cell-single",children:t[0]}):(0,l.jsxs)(i.jqI,{align:u?"center":"flex-start",vertical:!u,gap:u?"small":"none","data-testid":"list-expandable-cell",children:[u?(0,l.jsxs)(r,{ellipsis:!0,children:[t.length," ",a]}):(0,l.jsx)(i.krs,{dataSource:t,renderItem:e=>(0,l.jsx)("li",{children:e})}),(0,l.jsx)(i.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),g()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:u?"view":s.T5})]}):null,[u,t,a,g])};var c=a(2525)},13089:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return T}});var l=a(24246),i=a(20595),n=a(27378),s=a(35287),r=a(58754),o=a(92222),c=a(59003),d=a(47935),u=a(79894),p=a.n(u),h=a(86677),x=a(77830),g=a(8411),m=a(19904),v=a(32885),f=a(22286),j=a(65063),b=a(71922),y=a(39449),w=a(26070);let k={items:[],total:0,page:1,size:25,pages:1},C=()=>(0,l.jsxs)(i.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:[(0,l.jsxs)(i.gCW,{children:[(0,l.jsx)(i.xvT,{fontSize:"md",fontWeight:"600",children:"No privacy notices found."}),(0,l.jsx)(i.xvT,{fontSize:"sm",children:'Click "Add a privacy notice" to add your first privacy notice to Fides.'})]}),(0,l.jsx)(i.wpx,{href:"".concat(x.IT,"/new"),role:"link",size:"small",type:"primary","data-testid":"add-privacy-notice-btn",children:"Add a privacy notice +"})]}),P=(0,o.Cl)(),R=()=>{let{isLoading:e}=(0,v.x8)(),t=(0,h.useRouter)(),a=(0,m.Tg)([y.Sh.PRIVACY_NOTICE_UPDATE]),{PAGE_SIZES:s,pageSize:r,setPageSize:u,onPreviousPageClick:R,isPreviousPageDisabled:T,onNextPageClick:N,isNextPageDisabled:z,startRange:E,endRange:_,pageIndex:S,setTotalPages:M}=(0,d.oi)(),{isFetching:I,isLoading:V,data:A}=(0,b.J6)({page:S,size:r}),{items:q,total:Q,pages:W}=(0,n.useMemo)(()=>A||k,[A]);(0,n.useEffect)(()=>{M(W)},[W,M]);let D=(0,n.useMemo)(()=>[P.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(d.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(d.Rr,{value:"Title",...e})}),P.accessor(e=>e.consent_mechanism,{id:"consent_mechanism",cell:e=>(0,f.JA)(e.getValue()),header:e=>(0,l.jsx)(d.Rr,{value:"Mechanism",...e})}),P.accessor(e=>e.configured_regions,{id:"regions",cell:e=>{var t,a;return(0,l.jsx)(w.Q,{values:null!==(a=null===(t=e.getValue())||void 0===t?void 0:t.map(e=>{var t;let a=(0,i.QCN)(e);return{label:a?(0,i.c1K)({isoEntry:a,showFlag:!0}):null!==(t=g.Z8[e])&&void 0!==t?t:e,key:e}}))&&void 0!==a?a:[]})},header:e=>(0,l.jsx)(d.Rr,{value:"Locations",...e}),meta:{disableRowClick:!0}}),P.accessor(e=>e.disabled,{id:"status",cell:e=>(0,f.jN)(e),header:e=>(0,l.jsx)(d.Rr,{value:"Status",...e})}),P.accessor(e=>e.framework,{id:"framework",cell:e=>e.getValue()?(0,l.jsx)(d.A4,{value:j.Ep.get(e.getValue())}):null,header:e=>(0,l.jsx)(d.Rr,{value:"Framework",...e})}),P.accessor(e=>e.children,{id:"children",cell:e=>{var t;return(null===(t=(0,f.Mq)(e.getValue()))||void 0===t?void 0:t.length)?(0,l.jsx)(d.WP,{suffix:"Children",value:(0,f.Mq)(e.getValue()),...e}):(0,l.jsx)(d.G3,{value:"Unassigned"})},header:e=>(0,l.jsx)(d.Rr,{value:"Children",...e}),meta:{showHeaderMenu:!0}}),a&&P.accessor(e=>e.disabled,{id:"enable",cell:f.PS,header:e=>(0,l.jsx)(d.Rr,{value:"Enable",...e}),meta:{disableRowClick:!0}})].filter(Boolean),[a]),B=(0,c.b7)({getCoreRowModel:(0,o.sC)(),getGroupedRowModel:(0,o.qe)(),getExpandedRowModel:(0,o.rV)(),columns:D,manualPagination:!0,data:q,state:{expanded:!0},columnResizeMode:"onChange"});return V||e?(0,l.jsx)(d.I4,{rowHeight:36,numRows:15}):(0,l.jsx)("div",{children:(0,l.jsxs)(i.kCb,{flex:1,direction:"column",overflow:"auto",children:[a&&(0,l.jsx)(d.Q$,{children:(0,l.jsx)(i.Ugi,{alignItems:"center",spacing:4,marginLeft:"auto",children:(0,l.jsx)(p(),{href:"".concat(x.IT,"/new"),passHref:!0,legacyBehavior:!0,children:(0,l.jsx)(i.wpx,{type:"primary","data-testid":"add-privacy-notice-btn",children:"Add a privacy notice +"})})})}),(0,l.jsx)(d.ZK,{tableInstance:B,onRowClick:a?e=>{let{id:l}=e;a&&t.push("".concat(x.IT,"/").concat(l))}:void 0,emptyTableNotice:(0,l.jsx)(C,{})}),(0,l.jsx)(d.s8,{totalRows:Q||0,pageSizes:s,setPageSize:u,onPreviousPageClick:R,isPreviousPageDisabled:T||I,onNextPageClick:N,isNextPageDisabled:z||I,startRange:E,endRange:_})]})})};var T=()=>(0,l.jsxs)(s.Z,{title:"Privacy notices",children:[(0,l.jsx)(r.Z,{heading:"Privacy Notices",children:(0,l.jsx)(i.xvT,{fontSize:"sm",mb:8,width:{base:"100%",lg:"50%"},children:"Manage the privacy notices and mechanisms that are displayed to your users based on their location, what information you collect about them, and how you use that data."})}),(0,l.jsx)(i.xuv,{"data-testid":"privacy-notices-page",children:(0,l.jsx)(R,{})})]})}},function(e){e.O(0,[6853,2888,9774,179],function(){return e(e.s=81575)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3422],{15806:function(e,a,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/reporting",function(){return n(45113)}])},35287:function(e,a,n){"use strict";var r=n(24246),i=n(20595),t=n(88038),s=n.n(t);n(27378),a.Z=e=>{let{children:a,title:n,mainProps:t}=e;return(0,r.jsxs)(i.kCb,{"data-testid":n,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,r.jsxs)(s(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsx)(i.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...t,children:a})]})}},58754:function(e,a,n){"use strict";var r=n(24246),i=n(20595),t=n(70788);a.Z=e=>{let{heading:a,breadcrumbItems:n,isSticky:s=!0,children:o,rightContent:l,style:_,...c}=e;return(0,r.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",..._}:{paddingBottom:"24px",..._},children:[(0,r.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof a?(0,r.jsx)(i.lQT,{className:n||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:a}):a,l&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,r.jsx)(t.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},70788:function(e,a,n){"use strict";n.d(a,{m:function(){return _}});var r=n(24246),i=n(20595),t=n(79894),s=n.n(t),o=n(27378);let{Text:l}=i.AntTypography,_=e=>{let{items:a,...n}=e,t=(0,o.useMemo)(()=>null==a?void 0:a.map((e,n)=>{let t=n===a.length-1,o={...e},_=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,r.jsx)(l,{style:{color:"inherit",maxWidth:t?void 0:400},ellipsis:!t,id:t?"breadcrumb-current-page":void 0,children:o.title})),_)?o.title=(0,r.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,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,r.jsx)(s(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[a]);return(0,r.jsx)(i.zrq,{items:t,...n})}},8411:function(e,a,n){"use strict";n.d(a,{NA:function(){return t},Z8:function(){return i}});var r=n(39449);let i={[r._F.ER]:"Eritrea",[r._F.DJ]:"Djibouti",[r._F.MR]:"Mauritania",[r._F.NA]:"Namibia",[r._F.GH]:"Ghana",[r._F.SS]:"South Sudan",[r._F.SC]:"Seychelles",[r._F.IO]:"British Indian Ocean Territory",[r._F.GQ]:"Equatorial Guinea",[r._F.AO]:"Angola",[r._F.CG]:"Republic of the Congo",[r._F.BW]:"Botswana",[r._F.BI]:"Burundi",[r._F.DZ]:"Algeria",[r._F.TD]:"Chad",[r._F.NG]:"Nigeria",[r._F.TZ]:"Tanzania",[r._F.EH]:"Western Sahara",[r._F.SN]:"Senegal",[r._F.LR]:"Liberia",[r._F.ZA]:"South Africa",[r._F.CV]:"Cape Verde",[r._F.GM]:"Gambia",[r._F.SD]:"Sudan",[r._F.KM]:"Comoros",[r._F.SZ]:"Eswatini",[r._F.UG]:"Uganda",[r._F.MG]:"Madagascar",[r._F.RW]:"Rwanda",[r._F.CD]:"DR Congo",[r._F.CM]:"Cameroon",[r._F.SH]:"Saint Helena, Ascension and Tristan da Cunha",[r._F.TG]:"Togo",[r._F.MU]:"Mauritius",[r._F.NE]:"Niger",[r._F.BJ]:"Benin",[r._F.EG]:"Egypt",[r._F.LS]:"Lesotho",[r._F.ET]:"Ethiopia",[r._F.MA]:"Morocco",[r._F.YT]:"Mayotte",[r._F.BF]:"Burkina Faso",[r._F.RE]:"R\xe9union",[r._F.ST]:"S\xe3o Tom\xe9 and Pr\xedncipe",[r._F.CF]:"Central African Republic",[r._F.MZ]:"Mozambique",[r._F.MW]:"Malawi",[r._F.ML]:"Mali",[r._F.ZM]:"Zambia",[r._F.LY]:"Libya",[r._F.GW]:"Guinea-Bissau",[r._F.SO]:"Somalia",[r._F.KE]:"Kenya",[r._F.GN]:"Guinea",[r._F.ZW]:"Zimbabwe",[r._F.TN]:"Tunisia",[r._F.SL]:"Sierra Leone",[r._F.GA]:"Gabon",[r._F.CI]:"Ivory Coast",[r._F.JO]:"Jordan",[r._F.PK]:"Pakistan",[r._F.KP]:"North Korea",[r._F.MO]:"Macau",[r._F.AM]:"Armenia",[r._F.SY]:"Syria",[r._F.TJ]:"Tajikistan",[r._F.SA]:"Saudi Arabia",[r._F.KR]:"South Korea",[r._F.NP]:"Nepal",[r._F.PH]:"Philippines",[r._F.IQ]:"Iraq",[r._F.LB]:"Lebanon",[r._F.MN]:"Mongolia",[r._F.PS]:"Palestine",[r._F.YE]:"Yemen",[r._F.JP]:"Japan",[r._F.KZ]:"Kazakhstan",[r._F.LK]:"Sri Lanka",[r._F.MM]:"Myanmar",[r._F.KG]:"Kyrgyzstan",[r._F.CN]:"China",[r._F.AF]:"Afghanistan",[r._F.OM]:"Oman",[r._F.IN]:"India",[r._F.LA]:"Laos",[r._F.UZ]:"Uzbekistan",[r._F.MV]:"Maldives",[r._F.ID]:"Indonesia",[r._F.VN]:"Vietnam",[r._F.MY]:"Malaysia",[r._F.TW]:"Taiwan",[r._F.KH]:"Cambodia",[r._F.AE]:"United Arab Emirates",[r._F.HK]:"Hong Kong",[r._F.GE]:"Georgia (Country)",[r._F.BD]:"Bangladesh",[r._F.KW]:"Kuwait",[r._F.TM]:"Turkmenistan",[r._F.QA]:"Qatar",[r._F.BH]:"Bahrain",[r._F.BN]:"Brunei",[r._F.TH]:"Thailand",[r._F.BT]:"Bhutan",[r._F.SG]:"Singapore",[r._F.IL]:"Israel",[r._F.AZ]:"Azerbaijan",[r._F.TL]:"Timor-Leste",[r._F.IR]:"Iran",[r._F.TR]:"Turkey",[r._F.MK]:"North Macedonia",[r._F.IE]:"Ireland",[r._F.DK]:"Denmark",[r._F.SK]:"Slovakia",[r._F.MD]:"Moldova",[r._F.AX]:"\xc5land Islands",[r._F.PL]:"Poland",[r._F.BA]:"Bosnia and Herzegovina",[r._F.SM]:"San Marino",[r._F.CZ]:"Czechia",[r._F.EE]:"Estonia",[r._F.XK]:"Kosovo",[r._F.FO]:"Faroe Islands",[r._F.SJ]:"Svalbard and Jan Mayen",[r._F.GG]:"Guernsey",[r._F.FR]:"France",[r._F.NL]:"Netherlands",[r._F.FI]:"Finland",[r._F.PT]:"Portugal",[r._F.DE]:"Germany",[r._F.MT]:"Malta",[r._F.JE]:"Jersey",[r._F.IS]:"Iceland",[r._F.ES]:"Spain",[r._F.GI]:"Gibraltar",[r._F.NO]:"Norway",[r._F.CY]:"Cyprus",[r._F.RS]:"Serbia",[r._F.LT]:"Lithuania",[r._F.MC]:"Monaco",[r._F.LU]:"Luxembourg",[r._F.UA]:"Ukraine",[r._F.IM]:"Isle of Man",[r._F.RO]:"Romania",[r._F.BE]:"Belgium",[r._F.SE]:"Sweden",[r._F.ME]:"Montenegro",[r._F.LV]:"Latvia",[r._F.VA]:"Vatican City",[r._F.AT]:"Austria",[r._F.AL]:"Albania",[r._F.LI]:"Liechtenstein",[r._F.GR]:"Greece",[r._F.IT]:"Italy",[r._F.AD]:"Andorra",[r._F.GB]:"United Kingdom",[r._F.RU]:"Russia",[r._F.SI]:"Slovenia",[r._F.BY]:"Belarus",[r._F.CH]:"Switzerland",[r._F.HU]:"Hungary",[r._F.BG]:"Bulgaria",[r._F.HR]:"Croatia",[r._F.TC]:"Turks and Caicos Islands",[r._F.CW]:"Cura\xe7ao",[r._F.GP]:"Guadeloupe",[r._F.UM]:"United States Minor Outlying Islands",[r._F.GT]:"Guatemala",[r._F.PM]:"Saint Pierre and Miquelon",[r._F.BQ]:"Caribbean Netherlands",[r._F.GL]:"Greenland",[r._F.SX]:"Sint Maarten",[r._F.PA]:"Panama",[r._F.AW]:"Aruba",[r._F.MQ]:"Martinique",[r._F.AG]:"Antigua and Barbuda",[r._F.BM]:"Bermuda",[r._F.CU]:"Cuba",[r._F.GD]:"Grenada",[r._F.NI]:"Nicaragua",[r._F.LC]:"Saint Lucia",[r._F.KN]:"Saint Kitts and Nevis",[r._F.DO]:"Dominican Republic",[r._F.VC]:"Saint Vincent and the Grenadines",[r._F.BZ]:"Belize",[r._F.HT]:"Haiti",[r._F.JM]:"Jamaica",[r._F.BS]:"Bahamas",[r._F.MX]:"Mexico",[r._F.MF]:"Saint Martin",[r._F.SV]:"El Salvador",[r._F.BL]:"Saint Barth\xe9lemy",[r._F.AI]:"Anguilla",[r._F.MS]:"Montserrat",[r._F.VG]:"British Virgin Islands",[r._F.BB]:"Barbados",[r._F.HN]:"Honduras",[r._F.KY]:"Cayman Islands",[r._F.DM]:"Dominica",[r._F.TT]:"Trinidad and Tobago",[r._F.CR]:"Costa Rica",[r._F.SR]:"Suriname",[r._F.CX]:"Christmas Island",[r._F.WS]:"Samoa",[r._F.PF]:"French Polynesia",[r._F.AS]:"American Samoa",[r._F.NC]:"New Caledonia",[r._F.TK]:"Tokelau",[r._F.PW]:"Palau",[r._F.KI]:"Kiribati",[r._F.VU]:"Vanuatu",[r._F.PN]:"Pitcairn Islands",[r._F.CK]:"Cook Islands",[r._F.FJ]:"Fiji",[r._F.PG]:"Papua New Guinea",[r._F.MP]:"Northern Mariana Islands",[r._F.NU]:"Niue",[r._F.TV]:"Tuvalu",[r._F.NF]:"Norfolk Island",[r._F.TO]:"Tonga",[r._F.FM]:"Micronesia",[r._F.SB]:"Solomon Islands",[r._F.NR]:"Nauru",[r._F.WF]:"Wallis and Futuna",[r._F.GU]:"Guam",[r._F.AU]:"Australia",[r._F.NZ]:"New Zealand",[r._F.MH]:"Marshall Islands",[r._F.CC]:"Cocos (Keeling) Islands",[r._F.VE]:"Venezuela",[r._F.PY]:"Paraguay",[r._F.BR]:"Brazil",[r._F.CO]:"Colombia",[r._F.PE]:"Peru",[r._F.CL]:"Chile",[r._F.UY]:"Uruguay",[r._F.AR]:"Argentina",[r._F.GY]:"Guyana",[r._F.BO]:"Bolivia",[r._F.GF]:"French Guiana",[r._F.EC]:"Ecuador",[r._F.FK]:"Falkland Islands",[r._F.US_AL]:"Alabama",[r._F.US_AK]:"Alaska",[r._F.US_AZ]:"Arizona",[r._F.US_AR]:"Arkansas",[r._F.US_CA]:"California",[r._F.US_CO]:"Colorado",[r._F.US_CT]:"Connecticut",[r._F.US_DE]:"Delaware",[r._F.US_DC]:"District of Columbia (DC)",[r._F.US_FL]:"Florida",[r._F.US_GA]:"Georgia",[r._F.US_HI]:"Hawaii",[r._F.US_ID]:"Idaho",[r._F.US_IL]:"Illinois",[r._F.US_IN]:"Indiana",[r._F.US_IA]:"Iowa",[r._F.US_KS]:"Kansas",[r._F.US_KY]:"Kentucky",[r._F.US_LA]:"Louisiana",[r._F.US_ME]:"Maine",[r._F.US_MD]:"Maryland",[r._F.US_MA]:"Massachusetts",[r._F.US_MI]:"Michigan",[r._F.US_MN]:"Minnesota",[r._F.US_MS]:"Mississippi",[r._F.US_MO]:"Missouri",[r._F.US_MT]:"Montana",[r._F.US_NE]:"Nebraska",[r._F.US_NV]:"Nevada",[r._F.US_NH]:"New Hampshire",[r._F.US_NJ]:"New Jersey",[r._F.US_NM]:"New Mexico",[r._F.US_NY]:"New York",[r._F.US_NC]:"North Carolina",[r._F.US_ND]:"North Dakota",[r._F.US_OH]:"Ohio",[r._F.US_OK]:"Oklahoma",[r._F.US_OR]:"Oregon",[r._F.US_PA]:"Pennsylvania",[r._F.US_PR]:"Puerto Rico",[r._F.US_RI]:"Rhode Island",[r._F.US_SC]:"South Carolina",[r._F.US_SD]:"South Dakota",[r._F.US_TN]:"Tennessee",[r._F.US_TX]:"Texas",[r._F.US_UT]:"Utah",[r._F.US_VA]:"Virginia",[r._F.US_VI]:"United States Virgin Islands",[r._F.US_VT]:"Vermont",[r._F.US_WA]:"Washington",[r._F.US_WV]:"West Virginia",[r._F.US_WI]:"Wisconsin",[r._F.US_WY]:"Wyoming",[r._F.CA_AB]:"Alberta",[r._F.CA_BC]:"British Columbia",[r._F.CA_MB]:"Manitoba",[r._F.CA_NB]:"New Brunswick",[r._F.CA_NL]:"Newfoundland and Labrador",[r._F.CA_NS]:"Nova Scotia",[r._F.CA_ON]:"Ontario",[r._F.CA_PE]:"Prince Edward Island",[r._F.CA_QC]:"Quebec",[r._F.CA_SK]:"Saskatchewan",[r._F.CA_NT]:"Northwest Territories",[r._F.CA_NU]:"Nunavut",[r._F.CA_YT]:"Yukon",[r._F.CA]:"Canada",[r._F.US]:"United States",[r._F.MEXICO_CENTRAL_AMERICA]:"Mexico and Central America",[r._F.CARIBBEAN]:"Caribbean",[r._F.EEA]:"European Economic Area (EEA)",[r._F.NON_EEA]:"Non European Economic Area",[r._F.GLOBAL]:"Global"},t=new Map(Object.entries(i));Object.entries(i).map(e=>({value:e[0],label:e[1]}))},45113:function(e,a,n){"use strict";n.r(a),n.d(a,{default:function(){return V}});var r=n(24246),i=n(59003),t=n(92222),s=n(27693),o=n.n(s),l=n(20595),_=n(27378),c=n(35287),d=n(17245),u=n(58754);let F=e=>{let{disableNext:a,pagination:n}=e;return(0,r.jsxs)(l.jqI,{gap:"middle",align:"center",justify:"right",children:[(0,r.jsx)(l.wpx,{onClick:n.previousPage,disabled:1===n.pageIndex,icon:(0,r.jsx)(l.PJP.s$$,{"aria-hidden":!0}),"aria-label":"Previous"}),(0,r.jsx)("span",{"aria-label":"Page ".concat(n.pageIndex),children:n.pageIndex}),(0,r.jsx)(l.wpx,{onClick:n.nextPage,disabled:a,icon:(0,r.jsx)(l.PJP._Qn,{"aria-hidden":!0}),"aria-label":"Next"}),(0,r.jsx)(l.WPr,{className:"w-auto",value:n.pageSize,onChange:n.updatePageSize,options:n.pageSizeOptions.map(e=>({label:e,value:e})),labelRender:e=>{let{value:a}=e;return(0,r.jsxs)("span",{children:[a," / page"]})},"aria-label":"Select page size"})]})};var p=n(47935),h=n(46628),m=n(78780);let g=e=>{var a,n;return null==e?void 0:null===(n=e.startOf("day"))||void 0===n?void 0:null===(a=n.utc())||void 0===a?void 0:a.toISOString()},S=e=>{var a,n;return null==e?void 0:null===(n=e.endOf("day"))||void 0===n?void 0:null===(a=n.utc())||void 0===a?void 0:a.toISOString()},{useLazyDownloadReportQuery:x,useGetAllHistoricalPrivacyPreferencesQuery:C,useLazyGetCurrentPrivacyPreferencesQuery:j}=m.u.injectEndpoints({endpoints:e=>({getCurrentPrivacyPreferences:e.query({query:e=>{let{search:a}=e;return{url:"current-privacy-preferences",params:{email:a,phone_number:a,fides_user_device_id:a,external_id:a}}},providesTags:["Current Privacy Preferences"]}),downloadReport:e.query({query:e=>{let{startDate:a,endDate:n}=e;return{url:"plus/consent_reporting",params:{created_gt:g(a),created_lt:S(n),download_csv:"true"},responseHandler:"content-type"}},providesTags:["Consent Reporting Export"]}),getAllHistoricalPrivacyPreferences:e.query({query:e=>{let{page:a,size:n,startDate:r,endDate:i,includeTotal:t=!0}=e;return{url:"historical-privacy-preferences",params:{page:a,size:n,request_timestamp_gt:g(r),request_timestamp_lt:S(i),include_total:t}}},providesTags:["Consent Reporting"]})})});var v=n(90104),b=n.n(v),A=n(812),y=n(39449);let N={[y.pq.OPT_IN]:"Opt in",[y.pq.OPT_OUT]:"Opt out",[y.pq.ACKNOWLEDGE]:"Acknowledge",[y.pq.TCF]:"TCF"},I={[y.pq.OPT_IN]:"success",[y.pq.OPT_OUT]:"error",[y.pq.ACKNOWLEDGE]:"default",[y.pq.TCF]:"sandstone"},M={[y.jP.ACCEPT]:"Accept",[y.jP.BUTTON]:"Button",[y.jP.DISMISS]:"Dismiss",[y.jP.GPC]:"GPC",[y.jP.REJECT]:"Reject",[y.jP.SAVE]:"Save",[y.jP.SCRIPT]:"Script",[y.jP.INDIVIDUAL_NOTICE]:"Individual Notice",[y.jP.ACKNOWLEDGE]:"Acknowledge"},f={[y.Tz.API]:"API",[y.Tz.BANNER_AND_MODAL]:"Banner and Modal",[y.Tz.MODAL]:"Modal",[y.Tz.OVERLAY]:"Overlay",[y.Tz.PRIVACY_CENTER]:"Privacy Center",[y.Tz.TCF_OVERLAY]:"TCF Overlay"},P=(0,t.Cl)();var T=()=>(0,_.useMemo)(()=>[P.accessor(e=>e.notice_name,{id:"notice_name",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(p.G3,{value:a()})},header:e=>(0,r.jsx)(p.Rr,{value:"Privacy notice",...e}),enableSorting:!1}),P.accessor(e=>e.notice_key,{id:"notice_key",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(p.G3,{value:a()})},header:e=>(0,r.jsx)(p.Rr,{value:"Notice Key",...e}),enableSorting:!1}),P.accessor(e=>e.preference,{id:"preference",cell:e=>{let{getValue:a}=e,n=a(),i=n&&N[n]||n,t=n&&I[n]||"";return(0,r.jsx)(p.A4,{color:t,value:i})},header:e=>(0,r.jsx)(p.Rr,{value:"Preference",...e}),enableSorting:!1,size:100}),P.accessor(e=>e.privacy_notice_history_id,{id:"privacy_notice_history_id",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(p.G3,{value:a()})},header:e=>(0,r.jsx)(p.Rr,{value:"Privacy Notice History Id",...e}),enableSorting:!1})],[]),E=n(47003),U=n.n(E);let R=(0,t.Cl)();var w=()=>{let e=(0,_.useCallback)(e=>{let a=[];if(e){let{preferences:n,...r}=e;U()(r,(e,n)=>{e&&e.forEach(e=>{a.push({key:n,id:e.id,preference:e.preference})})})}return a},[]),a=(0,_.useCallback)(e=>e.filter(e=>!(e.key.startsWith("system_")||e.key.startsWith("vendor_"))),[]);return{tcfColumns:(0,_.useMemo)(()=>[R.accessor(e=>e.key,{id:"key",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(p.G3,{value:a()})},header:e=>(0,r.jsx)(p.Rr,{value:"Type",...e}),enableSorting:!1}),R.accessor(e=>e.id,{id:"id",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(p.G3,{value:a()})},header:e=>(0,r.jsx)(p.Rr,{value:"ID",...e}),enableSorting:!1}),R.accessor(e=>e.preference,{id:"preference",cell:e=>{let{getValue:a}=e,n=a(),i=n&&N[n]||n,t=n&&I[n]||"";return(0,r.jsx)(p.A4,{color:t,value:i})},header:e=>(0,r.jsx)(p.Rr,{value:"Preference",...e}),enableSorting:!1,size:100})],[]),mapTcfPreferencesToRowColumns:e,filterTcfConsentPreferences:a}},k=e=>{let{isOpen:a,onClose:n}=e,[s,o]=(0,_.useState)(!1),[c,d]=(0,_.useState)(),[u]=j(),F=(0,l.pmc)();(0,_.useEffect)(()=>{a||(d(void 0),o(!1))},[a]);let h=async e=>{o(!0);let{data:a,isError:n,error:r}=await u({search:e}),i=r&&"status"in r&&(null==r?void 0:r.status);n&&404!==i?F({status:"error",description:(0,A.e$)(r,"A problem occurred while looking up the preferences.")}):d(a||null),o(!1)},m=T(),g=(null==c?void 0:c.preferences)||[],S=!b()(g),x=(0,i.b7)({getCoreRowModel:(0,t.sC)(),data:g,columns:m,getRowId:e=>"".concat(e.privacy_notice_history_id),manualPagination:!0}),{tcfColumns:C,mapTcfPreferencesToRowColumns:v,filterTcfConsentPreferences:y}=w(),N=y(v(c)),I=!b()(N),M=(0,i.b7)({getCoreRowModel:(0,t.sC)(),data:N,columns:C,getRowId:e=>"".concat(e.key,"-").concat(e.id),manualPagination:!0});return(0,r.jsxs)(l.u_l,{id:"consent-lookup-modal",isOpen:a,onClose:n,size:"6xl",returnFocusOnClose:!1,isCentered:!0,children:[(0,r.jsx)(l.ZAr,{}),(0,r.jsxs)(l.hzk,{children:[(0,r.jsx)(l.olH,{}),(0,r.jsx)(l.xBx,{pb:2,children:"Consent preference lookup"}),(0,r.jsxs)(l.fef,{children:[(0,r.jsx)(l.AntTypography.Paragraph,{children:"Use this search to look up an individual's latest consent record. You can search by phone number, email, external ID or device ID to retrieve the most recent consent preference associated with that exact identifier."}),(0,r.jsxs)(l.AntTypography.Paragraph,{children:[(0,r.jsx)("strong",{children:"Note:"})," This is an exact match search—partial entries or similar results will not be returned. This lookup retrieves only the most recent consent preference, not the full consent history."]}),(0,r.jsx)(l.PPS,{layout:"vertical",className:"w-1/2",children:(0,r.jsx)(l.PPS.Item,{label:"Subject search",className:"mb-4 mt-6",children:(0,r.jsx)(l.AntInput.Search,{"data-testid":"subject-search-input",placeholder:"Enter email, phone number, external ID or device ID",enterButton:"Search",onSearch:h,loading:s})})}),(0,r.jsxs)("div",{className:"mb-4",children:[(!I||S)&&(0,r.jsx)(p.ZK,{tableInstance:x,emptyTableNotice:(0,r.jsx)(l.oj8,{description:void 0===c?"Search for an email, phone number, or device ID.":"No results found.",image:l.oj8.PRESENTED_IMAGE_SIMPLE,imageStyle:{marginBottom:15}})}),I&&(0,r.jsx)("div",{className:"mt-4",children:(0,r.jsx)(p.ZK,{tableInstance:M})})]})]})]})]})},G=()=>{let e=(0,l.pmc)(),[a,{isFetching:n}]=x();return{downloadReport:async n=>{let{startDate:r,endDate:i}=n,t=await a({startDate:r,endDate:i});if(t.isError)e({status:"error",description:(0,A.e$)(t.error,"A problem occurred while generating your consent report. Please try again.")});else{let e=document.createElement("a"),a=new Blob([t.data],{type:"text/csv"}),n=window.URL.createObjectURL(a);e.href=n,e.download="consent-reports.csv",e.click(),window.URL.revokeObjectURL(n)}},isDownloadingReport:n}},B=e=>{let{isOpen:a,onClose:n,startDate:i,endDate:t}=e,{downloadReport:s,isDownloadingReport:o}=G(),_=async()=>{await s({startDate:i,endDate:t}),n()};return(0,r.jsxs)(l.u_l,{id:"consent-report-download-modal",isOpen:a,onClose:n,size:"xl",returnFocusOnClose:!1,isCentered:!0,children:[(0,r.jsx)(l.ZAr,{}),(0,r.jsxs)(l.hzk,{children:[(0,r.jsx)(l.olH,{}),(0,r.jsx)(l.xBx,{pb:2,children:"Download consent report"}),(0,r.jsxs)(l.fef,{children:[(0,r.jsx)(l.AntTypography.Paragraph,{children:"The downloaded CSV may differ from the UI in Fides, including column order and naming."}),(0,r.jsx)(l.AntTypography.Paragraph,{children:'For large datasets, file generation may take a few minutes after selecting "Download".'}),(0,r.jsx)(l.jqI,{justify:"flex-end",children:(0,r.jsx)(l.wpx,{loading:o,onClick:_,"data-testid":"download-report-btn",type:"primary",className:"mb-2",children:"Download"})})]})]})]})},O=e=>{let{isOpen:a,onClose:n,tcfPreferences:s}=e,{tcfColumns:o,mapTcfPreferencesToRowColumns:_,filterTcfConsentPreferences:c}=w(),d=c(_(s)),u=(0,i.b7)({getCoreRowModel:(0,t.sC)(),data:d||[],columns:o,getRowId:e=>"".concat(e.key,"-").concat(e.id),manualPagination:!0});return(0,r.jsxs)(l.u_l,{id:"consent-lookup-modal",isOpen:a,onClose:n,size:"4xl",returnFocusOnClose:!1,isCentered:!0,children:[(0,r.jsx)(l.ZAr,{}),(0,r.jsxs)(l.hzk,{"data-testid":"consent-tcf-detail-modal",children:[(0,r.jsx)(l.olH,{}),(0,r.jsx)(l.xBx,{pb:2,children:"TCF Consent Details"}),(0,r.jsx)(l.fef,{children:(0,r.jsx)("div",{className:"mb-4",children:(0,r.jsx)(p.ZK,{tableInstance:u,emptyTableNotice:(0,r.jsx)(l.oj8,{description:" No data found",image:l.oj8.PRESENTED_IMAGE_SIMPLE,imageStyle:{marginBottom:15}})})})})]})]})},L=n(8411),D=n(72625);let K=(0,t.Cl)();var z=e=>{let{onTcfDetailViewClick:a}=e;return(0,_.useMemo)(()=>[K.accessor(e=>e.fides_user_device_id,{id:"fides_user_device_id",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(p.G3,{value:a()})},header:e=>(0,r.jsx)(p.Rr,{value:"User device ID",...e}),enableSorting:!1}),K.accessor(e=>e.user_geography,{id:"user_geography",cell:e=>{let{getValue:a}=e,n=a(),i=n&&(0,l.QCN)(n),t=n&&L.Z8[n]||n,s=i?(0,l.c1K)({isoEntry:i}):t;return(0,r.jsx)(p.G3,{value:s})},header:e=>(0,r.jsx)(p.Rr,{value:"User geography",...e}),enableSorting:!1}),K.accessor(e=>e.preference,{id:"preference",cell:e=>{let{getValue:n,row:i}=e,t=n(),s=t&&N[t]||t,o=t&&I[t]||"";return"tcf"===t&&i.original.tcf_preferences?(0,r.jsx)(l.j8w,{color:o,closeIcon:(0,r.jsx)(l.PJP.daM,{}),closeButtonLabel:"View details",onClose:()=>a(i.original.tcf_preferences),children:s}):(0,r.jsx)(p.A4,{color:o,value:s})},header:e=>(0,r.jsx)(p.Rr,{value:"Preference",...e}),enableSorting:!1,size:100}),K.accessor(e=>e.notice_name,{id:"notice_name",cell:e=>{let{getValue:a}=e,n=a(),i="tcf"===n?n.toUpperCase():n;return(0,r.jsx)(p.G3,{value:i})},header:e=>(0,r.jsx)(p.Rr,{value:"Privacy notice",...e}),enableSorting:!1}),K.accessor(e=>e.method,{id:"method",cell:e=>{let{getValue:a}=e,n=a(),i=n&&M[n]||n;return(0,r.jsx)(p.G3,{value:i})},header:e=>(0,r.jsx)(p.Rr,{value:"Method",...e}),enableSorting:!1,size:100}),K.accessor(e=>e.request_origin,{id:"request_origin",cell:e=>{let{getValue:a}=e,n=a(),i=n&&f[n]||n;return(0,r.jsx)(p.G3,{value:i})},header:e=>(0,r.jsx)(p.Rr,{value:"Request origin",...e}),enableSorting:!1,size:120}),K.accessor(e=>e.request_timestamp,{id:"request_timestamp",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(D.Cy,{time:a()})},header:e=>(0,r.jsx)(p.Rr,{value:"Request timestamp",...e}),size:120}),K.accessor(e=>e.url_recorded,{id:"url_recorded",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(p.G3,{value:a()})},header:e=>(0,r.jsx)(p.Rr,{value:"Recorded URL",...e})}),K.accessor(e=>e.external_id,{id:"external_id",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(p.G3,{value:a()})},header:e=>(0,r.jsx)(p.Rr,{value:"External ID",...e}),enableSorting:!1}),K.accessor(e=>e.email,{id:"email",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(p.G3,{value:(0,r.jsx)(l.AntTypography.Link,{href:"mailto:".concat(a()),children:a()})})},header:e=>(0,r.jsx)(p.Rr,{value:"Email",...e}),enableSorting:!1}),K.accessor(e=>e.id,{id:"id",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(p.G3,{value:a()})},header:e=>(0,r.jsx)(p.Rr,{value:"Preference ID",...e}),enableSorting:!1})],[a])},V=()=>{var e,a;let n=(0,d.h0)(),{pageIndex:s,pageSize:m,updatePageIndex:g}=n,S=(0,_.useMemo)(()=>o()(),[]),[x,j]=(0,_.useState)(null),[v,b]=(0,_.useState)(null),[A,y]=(0,_.useState)(!1),[N,I]=(0,_.useState)(!1),[M,f]=(0,_.useState)(!1),[P,T]=(0,_.useState)(),E=(0,l.pmc)(),{data:U,isLoading:R,isFetching:w,refetch:G}=C({page:s,size:m,startDate:x,endDate:v,includeTotal:!1}),{items:L}=(0,_.useMemo)(()=>U||{items:[],total:0,pages:0},[U]),D=z({onTcfDetailViewClick:e=>{f(!0),T(e)}}),K=(0,i.b7)({getCoreRowModel:(0,t.sC)(),data:L,columns:D,getRowId:e=>"".concat(e.id),manualPagination:!0}),V=async()=>{g(1),await G(),E((0,h.t5)("Consent report refreshed successfully.","Report Refreshed"))};return(0,r.jsxs)(c.Z,{title:"Consent reporting",children:[(0,r.jsx)(u.Z,{heading:"Consent reporting",rightContent:(0,r.jsx)(l.wpx,{type:"primary",onClick:V,loading:w,children:"Refresh"})}),(0,r.jsx)("div",{"data-testid":"consent-reporting",className:"overflow-auto",children:(0,r.jsxs)(l.jqI,{vertical:!0,gap:"middle",children:[R?(0,r.jsx)("div",{className:"border p-2",children:(0,r.jsx)(p.I4,{rowHeight:26,numRows:10})}):(0,r.jsxs)("div",{children:[(0,r.jsxs)(p.Q$,{children:[(0,r.jsx)(l.gwi,{placeholder:["From","To"],maxDate:S,"data-testid":"input-date-range",onChange:e=>{j(e&&e[0]),b(e&&e[1])}}),(0,r.jsxs)(l.jqI,{gap:12,children:[(0,r.jsx)(l.wpx,{icon:(0,r.jsx)(l.PJP.UWx,{}),"data-testid":"download-btn",onClick:()=>I(!0),"aria-label":"Download Consent Report"}),(0,r.jsx)(l.S0p,{menu:{items:[{key:"1",label:(0,r.jsx)("span",{"data-testid":"consent-preference-lookup-btn",children:"Consent preference lookup"}),onClick:()=>y(!0)}]},overlayStyle:{width:"220px"},trigger:["click"],children:(0,r.jsx)(l.wpx,{"aria-label":"Menu",icon:(0,r.jsx)(l.PJP.r43,{}),"data-testid":"consent-reporting-dropdown-btn"})})]})]}),(0,r.jsx)(p.ZK,{tableInstance:K,emptyTableNotice:(0,r.jsx)(l.oj8,{description:"No results.",image:l.oj8.PRESENTED_IMAGE_SIMPLE,styles:{image:{marginBottom:15}}})})]}),(0,r.jsx)(F,{disableNext:(null!==(a=null==U?void 0:null===(e=U.items)||void 0===e?void 0:e.length)&&void 0!==a?a:0)<m,pagination:n})]})}),(0,r.jsx)(k,{isOpen:A,onClose:()=>y(!1)}),(0,r.jsx)(B,{isOpen:N,onClose:()=>I(!1),startDate:x,endDate:v}),(0,r.jsx)(O,{isOpen:M,onClose:()=>{f(!1),T(void 0)},tcfPreferences:P})]})}}},function(e){e.O(0,[431,2150,7245,2888,9774,179],function(){return e(e.s=15806)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3296],{92812:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]",function(){return n(93251)}])},93251:function(e,t,n){"use strict";n.r(t);var r=n(24246),c=n(86677),o=n(18225),s=n(77213),a=n(77830),u=n(58754),l=n(25077),i=n(94780),d=n(1315);t.default=()=>{var e,t;let{query:n}=(0,c.useRouter)(),_=n.systemId,f=n.projectUrn,m=n.resourceUrn,{data:p,isLoading:h}=(0,d.rn)(_),j=(0,c.useRouter)(),k=null!==(e=(0,i.X5)(m,"".concat(a.mX,"/").concat(_,"/projects")))&&void 0!==e?e:[];return h?(0,r.jsx)(o.Z,{}):(0,r.jsxs)(s.Z,{title:"Data catalog",children:[(0,r.jsx)(u.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:a.mX},{title:null!==(t=null==p?void 0:p.name)&&void 0!==t?t:null==p?void 0:p.fides_key,href:a.mX},...k]}),(0,r.jsx)(l.Z,{resourceUrn:m,onRowClick:e=>j.push("".concat(a.mX,"/").concat(p.fides_key,"/projects/").concat(f,"/").concat(e.urn))})]})}}},function(e){e.O(0,[431,8765,9278,5163,7245,9682,1099,9330,2888,9774,179],function(){return e(e.s=92812)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7818],{50481:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/projects/[projectUrn]",function(){return s(32065)}])},98800:function(e,t,s){"use strict";var n=s(24246),i=s(20595),a=s(79789);t.Z=e=>{var t;let{dataset:s,onClose:r}=e;return(0,n.jsxs)(i.dys,{isOpen:!!s,onClose:r,size:"md",children:[(0,n.jsx)(i.P1B,{}),(0,n.jsxs)(i.scA,{children:[(0,n.jsx)(i.OXI,{children:(null==s?void 0:s.name)||(null==s?void 0:s.urn)}),(0,n.jsx)(i.cCv,{}),(0,n.jsxs)(i.Ng0,{children:[(0,n.jsx)(a.cB,{text:"Title",mt:0}),(0,n.jsx)(a.XU,{children:null!==(t=null==s?void 0:s.name)&&void 0!==t?t:null==s?void 0:s.urn}),(null==s?void 0:s.description)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.cB,{text:"Description"}),(0,n.jsx)(a.XU,{children:null==s?void 0:s.description})]})]})]})]})}},81406:function(e,t,s){"use strict";var n=s(24246),i=s(20595);t.Z=()=>(0,n.jsxs)(i.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:[(0,n.jsx)(i.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"}),(0,n.jsx)(i.xvT,{fontSize:"sm",children:"You're up to date!"})]})},69172:function(e,t,s){"use strict";var n=s(24246),i=s(92222),a=s(20595),r=s(27378),l=s(47935),o=s(72625),c=s(89200),d=s(5945),u=s(8151);let x=(0,i.Cl)(),g=e=>{let{onDetailClick:t}=e;return(0,n.jsxs)(a.v2r,{children:[(0,n.jsx)(a.j2t,{as:a.wpx,size:"small",type:"text",icon:(0,n.jsx)(a.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"dataset-actions"}),(0,n.jsx)(a.qyq,{children:(0,n.jsx)(a.sNh,{"data-testid":"view-dataset-details",onClick:t,children:"View details"})})]})};t.Z=e=>{let{onDetailClick:t}=e;return(0,r.useMemo)(()=>[x.accessor(e=>e.name,{id:"name",cell:e=>(0,n.jsx)(c.Z,{resource:e.row.original}),header:"Dataset"}),x.display({id:"status",cell:e=>{let{row:t}=e;return(0,n.jsx)(d.Z,{status:(0,u.u)(t.original)})},header:"Status"}),x.accessor(e=>e.description,{id:"description",cell:e=>(0,n.jsx)(l.G3,{value:e.getValue()}),header:"Description"}),x.accessor(e=>e.updated_at,{id:"lastUpdated",cell:e=>(0,n.jsx)(o.Cy,{time:e.getValue()}),header:"Updated"}),x.display({id:"actions",cell:e=>{let{row:s}=e;return(0,n.jsx)(g,{onDetailClick:()=>t(s.original)})},size:25,meta:{disableRowClick:!0}})],[t])}},94780:function(e,t,s){"use strict";s.d(t,{X5:function(){return l},pN:function(){return o},sv:function(){return a}});var n=s(24246),i=s(20595);let a=e=>e.split(".")[1],r=[(0,n.jsx)(i.PJP.S9g,{},"layers"),(0,n.jsx)(i.PJP.iA_,{},"table"),(0,n.jsx)(i.PJP.$4y,{style:{transform:"rotate(-90deg)"}},"field")],l=(e,t)=>{if(!e)return[];let s=e.split(".");if(s.length<2)return[];let l=s.splice(0,2).join("."),o=[];return s.reduce((e,n,i)=>{let a=i===s.length-1,c="".concat(e).concat(".").concat(n);return o.push({title:n,href:a?void 0:"".concat(t,"/").concat(l,"/").concat(c),icon:r[i]}),c},l),[{title:a(l),href:"".concat(t,"/").concat(l),icon:(0,n.jsx)(i.PJP.ehp,{})},...o]},o=(e,t)=>{if(!e)return[];let s=e.split(".");if(s.length<2)return[];let n=s.shift(),i=[];return s.reduce((e,n,a)=>{let l=a===s.length-1,o="".concat(e).concat(".").concat(n);return i.push({title:n,href:l?void 0:"".concat(t,"/").concat(o),icon:r[a]}),o},n),i}},32065:function(e,t,s){"use strict";s.r(t);var n=s(24246),i=s(59003),a=s(92222),r=s(20595),l=s(86677),o=s(27378),c=s(77213),d=s(77830),u=s(58754),x=s(47935),g=s(98800),p=s(81406),j=s(69172),h=s(94780),m=s(70675),f=s(1315);let v={items:[],total:0,page:1,size:50,pages:1};t.default=()=>{let{query:e,push:t}=(0,l.useRouter)(),s=e.systemId,P=e.projectUrn,[w,C]=(0,o.useState)(void 0),{data:_,isLoading:y}=(0,f.rn)(s),{PAGE_SIZES:b,pageSize:N,setPageSize:R,onPreviousPageClick:k,isPreviousPageDisabled:z,onNextPageClick:Z,isNextPageDisabled:X,startRange:D,endRange:S,pageIndex:E,setTotalPages:I}=(0,x.oi)(),{isFetching:M,isLoading:T,data:U}=(0,m.z8)({staged_resource_urn:P,page:E,size:N}),{items:J,total:O,pages:V}=(0,o.useMemo)(()=>null!=U?U:v,[U]);(0,o.useEffect)(()=>{I(V)},[V,I]);let q=(0,j.Z)({onDetailClick:e=>C(e)}),A=(0,i.b7)({getCoreRowModel:(0,a.sC)(),getGroupedRowModel:(0,a.qe)(),getExpandedRowModel:(0,a.rV)(),columns:q,manualPagination:!0,data:J,columnResizeMode:"onChange"}),B=!T&&!y&&!M;return(0,n.jsxs)(c.Z,{title:"Data catalog",children:[(0,n.jsx)(u.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:d.mX},{title:(null==_?void 0:_.name)||s,href:d.mX},{title:(0,h.sv)(P),icon:(0,n.jsx)(r.PJP.ehp,{})}]}),!B&&(0,n.jsx)(x.I4,{rowHeight:36,numRows:36}),B&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.ZK,{tableInstance:A,emptyTableNotice:(0,n.jsx)(p.Z,{}),onRowClick:e=>t("".concat(d.mX,"/").concat(s,"/projects/").concat(P,"/").concat(e.urn,"/"))}),(0,n.jsx)(x.s8,{totalRows:O||0,pageSizes:b,setPageSize:R,onPreviousPageClick:k,isPreviousPageDisabled:z,onNextPageClick:Z,isNextPageDisabled:X,startRange:D,endRange:S}),(0,n.jsx)(g.Z,{dataset:w,onClose:()=>C(void 0)})]})]})}}},function(e){e.O(0,[9682,2888,9774,179],function(){return e(e.s=50481)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[165],{74833:function(e,t,s){var r=s(56127),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},56127:function(e){var t=/\s/;e.exports=function(e){for(var s=e.length;s--&&t.test(e.charAt(s)););return s}},91936:function(e,t,s){var r=s(74833),i=s(11611),n=s(55193),a=0/0,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(n(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var s=l.test(e);return s||c.test(e)?u(e.slice(2),s?2:8):o.test(e)?a:+e}},21865:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/projects",function(){return s(98791)}])},18225:function(e,t,s){"use strict";var r=s(24246),i=s(20595);t.Z=e=>{let{alignment:t="center",...s}=e;return(0,r.jsx)(i.kCb,{boxSize:"full",align:"center",justify:t,children:(0,r.jsx)(i.$jN,{color:"primary",...s})})}},79609:function(e,t,s){"use strict";s.d(t,{N4:function(){return a},UG:function(){return i},xw:function(){return n}});var r=s(54427);let{useGetCatalogSystemsQuery:i,useGetCatalogProjectsQuery:n,useGetCatalogDatasetsQuery:a}=s(78780).u.injectEndpoints({endpoints:e=>({getCatalogSystems:e.query({query:e=>({method:"GET",url:"/plus/data-catalog/system",params:e}),providesTags:["Catalog Systems","System"]}),getCatalogProjects:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/project",params:t}},providesTags:["Discovery Monitor Results"]}),getCatalogDatasets:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/dataset",params:t}},providesTags:["Discovery Monitor Results"]})})});(0,r.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},99763:function(e,t,s){"use strict";var r=s(24246),i=s(20595),n=s(79789),a=s(8151),o=s(61099),l=s(7940),c=s(39449);t.Z=e=>{var t;let{resource:s,onClose:u}=e,d=(0,l.G)(s),g=(0,a.u)(s),x=(d===c.D$.FIELD||d===c.D$.TABLE)&&g===a.e.IN_REVIEW;return(0,r.jsxs)(i.dys,{isOpen:!!s,onClose:u,size:"md",children:[(0,r.jsx)(i.P1B,{}),(0,r.jsxs)(i.scA,{"data-testid":"resource-details",children:[(0,r.jsx)(i.OXI,{children:(null==s?void 0:s.name)||(null==s?void 0:s.urn)}),(0,r.jsx)(i.cCv,{}),(0,r.jsxs)(i.Ng0,{children:[(0,r.jsx)(n.cB,{text:"Title",mt:0}),(0,r.jsx)(n.XU,{children:null!==(t=null==s?void 0:s.name)&&void 0!==t?t:null==s?void 0:s.urn}),(null==s?void 0:s.description)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.cB,{text:"Description"}),(0,r.jsx)(n.XU,{children:null==s?void 0:s.description})]}),x&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.cB,{text:"Data categories"}),(0,r.jsx)(o.Z,{resource:s})]})]})]})]})}},28976:function(e,t,s){"use strict";var r=s(24246),i=s(20595);t.Z=e=>{let{onHideClick:t,onDetailClick:s}=e;return(0,r.jsxs)(i.v2r,{children:[(0,r.jsx)(i.j2t,{as:i.wpx,size:"small",type:"text",icon:(0,r.jsx)(i.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-menu"}),(0,r.jsxs)(i.qyq,{children:[s&&(0,r.jsx)(i.sNh,{onClick:s,"data-testid":"view-resource-details",children:"View details"}),t&&(0,r.jsx)(i.sNh,{onClick:t,"data-testid":"hide-resource",children:"Hide"})]})]})}},98791:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return N}});var r=s(24246),i=s(86677),n=s(18225),a=s(77213),o=s(77830),l=s(58754),c=s(92222),u=s(59003),d=s(20595),g=s(27378),x=s(47935),p=s(72625),m=s(89200),f=s(5945),j=s(79609),h=s(99763),v=s(28976),y=s(8151);let C={items:[],total:0,page:1,size:50,pages:1},w=()=>(0,r.jsx)(d.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,r.jsx)(d.gCW,{children:(0,r.jsx)(d.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"})})}),_=(0,c.Cl)();var R=e=>{let{systemKey:t,monitorConfigIds:s}=e,[n,a]=(0,g.useState)({}),{PAGE_SIZES:l,pageSize:d,setPageSize:R,onPreviousPageClick:b,isPreviousPageDisabled:N,onNextPageClick:D,isNextPageDisabled:E,startRange:P,endRange:S,pageIndex:k,setTotalPages:I}=(0,x.oi)(),{isFetching:T,isLoading:Z,data:z}=(0,j.xw)({page:k,size:d,monitor_config_ids:s}),q=(0,i.useRouter)(),{items:M,total:G,pages:X}=(0,g.useMemo)(()=>null!=z?z:C,[z]);(0,g.useEffect)(()=>{I(X)},[X,I]);let[O,V]=(0,g.useState)(void 0),$=(0,g.useMemo)(()=>[_.accessor(e=>e.name,{id:"name",cell:e=>(0,r.jsx)(m.Z,{resource:e.row.original}),header:"Project"}),_.display({id:"status",cell:e=>{let{row:t}=e;return(0,r.jsx)(f.Z,{status:(0,y.u)(t.original)})},header:"Status"}),_.accessor(e=>e.monitor_config_id,{id:"monitorConfigId",cell:e=>(0,r.jsx)(x.G3,{value:e.getValue()}),header:"Detected by"}),_.accessor(e=>e.description,{id:"description",cell:e=>(0,r.jsx)(x.G3,{value:e.getValue()}),header:"Description"}),_.accessor(e=>e.updated_at,{id:"lastUpdated",cell:e=>(0,r.jsx)(p.Cy,{time:e.getValue()}),header:"Updated",meta:{cellProps:{borderRight:"none"}}}),_.display({id:"actions",cell:e=>{let{row:t}=e;return(0,r.jsx)(v.Z,{onDetailClick:()=>V(t.original)})},size:25,meta:{disableRowClick:!0}})],[]),B=(0,u.b7)({getCoreRowModel:(0,c.sC)(),getGroupedRowModel:(0,c.qe)(),getExpandedRowModel:(0,c.rV)(),manualPagination:!0,columnResizeMode:"onChange",columns:$,data:M,getRowId:e=>e.urn,onRowSelectionChange:a,state:{rowSelection:n}});return Z||T?(0,r.jsx)(x.I4,{rowHeight:36,numRows:36}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.ZK,{tableInstance:B,emptyTableNotice:(0,r.jsx)(w,{}),onRowClick:e=>q.push("".concat(o.mX,"/").concat(t,"/projects/").concat(e.urn))}),(0,r.jsx)(x.s8,{totalRows:G||0,pageSizes:l,setPageSize:R,onPreviousPageClick:b,isPreviousPageDisabled:N,onNextPageClick:D,isNextPageDisabled:E,startRange:P,endRange:S}),(0,r.jsx)(h.Z,{resource:O,onClose:()=>V(void 0)})]})},b=s(1315),N=()=>{var e;let{query:t}=(0,i.useRouter)(),s=t.systemId,c=t.monitor_config_ids,{data:u,isLoading:d}=(0,b.rn)(s);return d?(0,r.jsx)(n.Z,{}):(0,r.jsxs)(a.Z,{title:"Data catalog",children:[(0,r.jsx)(l.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:o.mX},{title:null!==(e=null==u?void 0:u.name)&&void 0!==e?e:null==u?void 0:u.fides_key}]}),(0,r.jsx)(R,{systemKey:s,monitorConfigIds:c})]})}}},function(e){e.O(0,[8765,9278,5163,9682,1099,2888,9774,179],function(){return e(e.s=21865)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4745],{37441:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/resources/[resourceUrn]",function(){return n(51887)}])},51887:function(e,t,n){"use strict";n.r(t);var r=n(24246),s=n(86677),c=n(18225),u=n(77213),o=n(77830),a=n(58754),l=n(25077),i=n(94780),d=n(1315);t.default=()=>{var e;let{query:t}=(0,s.useRouter)(),n=t.systemId,_=t.resourceUrn,{data:f,isLoading:m}=(0,d.rn)(n),h=(0,s.useRouter)(),k=(0,i.pN)(_,"".concat(o.mX,"/").concat(n,"/resources"));return m?(0,r.jsx)(c.Z,{}):(0,r.jsxs)(u.Z,{title:"Data catalog",children:[(0,r.jsx)(a.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:o.mX},{title:null!==(e=null==f?void 0:f.name)&&void 0!==e?e:null==f?void 0:f.fides_key,href:"".concat(o.mX)},...k]}),(0,r.jsx)(l.Z,{resourceUrn:_,onRowClick:e=>h.push("".concat(o.mX,"/").concat(f.fides_key,"/resources/").concat(e.urn))})]})}}},function(e){e.O(0,[431,8765,9278,5163,7245,9682,1099,9330,2888,9774,179],function(){return e(e.s=37441)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5158],{57300:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/resources",function(){return s(21174)}])},79609:function(e,t,s){"use strict";s.d(t,{N4:function(){return o},UG:function(){return i},xw:function(){return n}});var a=s(54427);let{useGetCatalogSystemsQuery:i,useGetCatalogProjectsQuery:n,useGetCatalogDatasetsQuery:o}=s(78780).u.injectEndpoints({endpoints:e=>({getCatalogSystems:e.query({query:e=>({method:"GET",url:"/plus/data-catalog/system",params:e}),providesTags:["Catalog Systems","System"]}),getCatalogProjects:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/project",params:t}},providesTags:["Discovery Monitor Results"]}),getCatalogDatasets:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/dataset",params:t}},providesTags:["Discovery Monitor Results"]})})});(0,a.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},98800:function(e,t,s){"use strict";var a=s(24246),i=s(20595),n=s(79789);t.Z=e=>{var t;let{dataset:s,onClose:o}=e;return(0,a.jsxs)(i.dys,{isOpen:!!s,onClose:o,size:"md",children:[(0,a.jsx)(i.P1B,{}),(0,a.jsxs)(i.scA,{children:[(0,a.jsx)(i.OXI,{children:(null==s?void 0:s.name)||(null==s?void 0:s.urn)}),(0,a.jsx)(i.cCv,{}),(0,a.jsxs)(i.Ng0,{children:[(0,a.jsx)(n.cB,{text:"Title",mt:0}),(0,a.jsx)(n.XU,{children:null!==(t=null==s?void 0:s.name)&&void 0!==t?t:null==s?void 0:s.urn}),(null==s?void 0:s.description)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.cB,{text:"Description"}),(0,a.jsx)(n.XU,{children:null==s?void 0:s.description})]})]})]})]})}},81406:function(e,t,s){"use strict";var a=s(24246),i=s(20595);t.Z=()=>(0,a.jsxs)(i.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:[(0,a.jsx)(i.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"}),(0,a.jsx)(i.xvT,{fontSize:"sm",children:"You're up to date!"})]})},69172:function(e,t,s){"use strict";var a=s(24246),i=s(92222),n=s(20595),o=s(27378),r=s(47935),l=s(72625),d=s(89200),c=s(5945),u=s(8151);let g=(0,i.Cl)(),m=e=>{let{onDetailClick:t}=e;return(0,a.jsxs)(n.v2r,{children:[(0,a.jsx)(n.j2t,{as:n.wpx,size:"small",type:"text",icon:(0,a.jsx)(n.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"dataset-actions"}),(0,a.jsx)(n.qyq,{children:(0,a.jsx)(n.sNh,{"data-testid":"view-dataset-details",onClick:t,children:"View details"})})]})};t.Z=e=>{let{onDetailClick:t}=e;return(0,o.useMemo)(()=>[g.accessor(e=>e.name,{id:"name",cell:e=>(0,a.jsx)(d.Z,{resource:e.row.original}),header:"Dataset"}),g.display({id:"status",cell:e=>{let{row:t}=e;return(0,a.jsx)(c.Z,{status:(0,u.u)(t.original)})},header:"Status"}),g.accessor(e=>e.description,{id:"description",cell:e=>(0,a.jsx)(r.G3,{value:e.getValue()}),header:"Description"}),g.accessor(e=>e.updated_at,{id:"lastUpdated",cell:e=>(0,a.jsx)(l.Cy,{time:e.getValue()}),header:"Updated"}),g.display({id:"actions",cell:e=>{let{row:s}=e;return(0,a.jsx)(m,{onDetailClick:()=>t(s.original)})},size:25,meta:{disableRowClick:!0}})],[t])}},21174:function(e,t,s){"use strict";s.r(t);var a=s(24246),i=s(59003),n=s(92222),o=s(86677),r=s(27378),l=s(77213),d=s(77830),c=s(58754),u=s(47935),g=s(79609),m=s(98800),x=s(81406),p=s(69172),j=s(1315);let h={items:[],total:0,page:1,size:50,pages:1};t.default=()=>{let{query:e,push:t}=(0,o.useRouter)(),s=e.systemId,v=e.monitor_config_ids,{data:f,isLoading:y}=(0,j.rn)(s),{PAGE_SIZES:C,pageSize:w,setPageSize:_,onPreviousPageClick:N,isPreviousPageDisabled:R,onNextPageClick:P,isNextPageDisabled:b,startRange:D,endRange:S,pageIndex:T,setTotalPages:k}=(0,u.oi)(),{isFetching:z,isLoading:E,data:Z}=(0,g.N4)({page:T,size:w,monitor_config_ids:v}),{items:q,total:M,pages:X}=(0,r.useMemo)(()=>null!=Z?Z:h,[Z]);(0,r.useEffect)(()=>{k(X)},[X,k]);let[G,I]=(0,r.useState)(void 0),U=(0,p.Z)({onDetailClick:e=>I(e)}),O=(0,i.b7)({getCoreRowModel:(0,n.sC)(),getGroupedRowModel:(0,n.qe)(),getExpandedRowModel:(0,n.rV)(),columns:U,manualPagination:!0,data:q,columnResizeMode:"onChange"}),V=!E&&!y&&!z;return(0,a.jsxs)(l.Z,{title:"Data catalog",children:[(0,a.jsx)(c.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:d.mX},{title:(null==f?void 0:f.name)||s}]}),!V&&(0,a.jsx)(u.I4,{rowHeight:36,numRows:36}),V&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.ZK,{tableInstance:O,emptyTableNotice:(0,a.jsx)(x.Z,{}),onRowClick:e=>t("".concat(d.mX,"/").concat(s,"/resources/").concat(e.urn))}),(0,a.jsx)(u.s8,{totalRows:M||0,pageSizes:C,setPageSize:_,onPreviousPageClick:N,isPreviousPageDisabled:R,onNextPageClick:P,isNextPageDisabled:b,startRange:D,endRange:S}),(0,a.jsx)(m.Z,{dataset:G,onClose:()=>I(void 0)})]})]})}}},function(e){e.O(0,[9682,2888,9774,179],function(){return e(e.s=57300)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4154],{58095:function(e,t,n){var s=n(8817);e.exports=function(e,t){return!!(null==e?0:e.length)&&s(e,t,0)>-1}},21796:function(e){e.exports=function(e,t,n){for(var s=-1,a=null==e?0:e.length;++s<a;)if(n(t,e[s]))return!0;return!1}},8817:function(e,t,n){var s=n(95372),a=n(1129),l=n(58263);e.exports=function(e,t,n){return t==t?l(e,t,n):s(e,a,n)}},1129:function(e){e.exports=function(e){return e!=e}},92198:function(e,t,n){var s=n(52485),a=n(58095),l=n(21796),i=n(65581),r=n(47111),o=n(43735);e.exports=function(e,t,n){var d=-1,c=a,u=e.length,p=!0,g=[],h=g;if(n)p=!1,c=l;else if(u>=200){var m=t?null:r(e);if(m)return o(m);p=!1,c=i,h=new s}else h=t?[]:g;e:for(;++d<u;){var f=e[d],y=t?t(f):f;if(f=n||0!==f?f:0,p&&y==y){for(var v=h.length;v--;)if(h[v]===y)continue e;t&&h.push(y),g.push(f)}else c(h,y,n)||(h!==g&&h.push(y),g.push(f))}return g}},47111:function(e,t,n){var s=n(46151),a=n(50344),l=n(43735),i=s&&1/l(new s([,-0]))[1]==1/0?function(e){return new s(e)}:a;e.exports=i},58263:function(e){e.exports=function(e,t,n){for(var s=n-1,a=e.length;++s<a;)if(e[s]===t)return s;return -1}},50344:function(e){e.exports=function(){}},83766:function(e,t,n){var s=n(92198);e.exports=function(e){return e&&e.length?s(e):[]}},25654:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/[monitorId]/[systemId]",function(){return n(16877)}])},35287:function(e,t,n){"use strict";var s=n(24246),a=n(20595),l=n(88038),i=n.n(l);n(27378),t.Z=e=>{let{children:t,title:n,mainProps:l}=e;return(0,s.jsxs)(a.kCb,{"data-testid":n,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,s.jsxs)(i(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsx)(a.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...l,children:t})]})}},58754:function(e,t,n){"use strict";var s=n(24246),a=n(20595),l=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:i=!0,children:r,rightContent:o,style:d,...c}=e;return(0,s.jsxs)("div",{...c,style:i?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,s.jsxs)(a.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(a.lQT,{className:n||r?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,s.jsx)(l.m,{className:r?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),r]})}},45938:function(e,t,n){"use strict";n.d(t,{Gt:function(){return p},eB:function(){return g},oI:function(){return u}});var s=n(24246),a=n(34090),l=n(27378),i=n(16134),r=n(38602),o=n(58452);let d=(0,l.createRef)(),c=(0,l.createRef)(),u=()=>{let e=(0,i.T)(),t=(0,i.C)(r.DB),n=(0,l.useCallback)(()=>{c.current=void 0,d.current=void 0},[]),s=(0,l.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!0),n())},[e,n]),a=(0,l.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!1),n())},[e,n]);return{attemptAction:(0,l.useCallback)(()=>t?(e((0,r.h7)()),d.current||(d.current=new Promise(e=>{c.current=e})),d.current):Promise.resolve(!0),[t,e]),onConfirm:s,onClose:a}},p=e=>{let{id:t,name:n}=e,{dirty:s}=(0,a.u6)(),o=(0,i.T)();return(0,l.useEffect)(()=>(o((0,r.Zu)({id:t,name:n})),()=>{o((0,r.dz)({id:t}))}),[o,t,n]),(0,l.useEffect)(()=>{o((0,r.$p)({id:t,isDirty:s}))},[s,o,t]),null},g=()=>{let{onConfirm:e,onClose:t}=u(),n=(0,i.C)(r.uv);return(0,s.jsx)(o.Z,{isOpen:n,onClose:t,onConfirm:e,isCentered:!0,title:"Unsaved Changes",message:"You have unsaved changes"})}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return d}});var s=n(24246),a=n(20595),l=n(79894),i=n.n(l),r=n(27378);let{Text:o}=a.AntTypography,d=e=>{let{items:t,...n}=e,l=(0,r.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let l=n===t.length-1,r={...e},d=r.onClick&&!r.href;return("string"==typeof r.title&&(r.title=(0,s.jsx)(o,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,id:l?"breadcrumb-current-page":void 0,children:r.title})),d)?r.title=(0,s.jsx)(a.wpx,{type:"text",size:"small",icon:r.icon,onClick:r.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:r.title}):(r.icon&&(r.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:r.icon}),r.title]})),r.href&&r.title&&(r.title=(0,s.jsx)(i(),{href:r.href,className:"ant-breadcrumb-link",children:r.title}),delete r.href)),r}),[t]);return(0,s.jsx)(a.zrq,{items:l,...n})}},25415:function(e,t,n){"use strict";n.d(t,{a:function(){return l}});var s=n(24246);let{Text:a}=n(20595).AntTypography,l=e=>{let{count:t}=e;return(0,s.jsx)(a,{size:"sm",strong:!0,"data-testid":"selected-count",children:"".concat(t," selected")})}},2525:function(e,t,n){"use strict";n.d(t,{Q:function(){return r}});var s=n(24246),a=n(20595),l=n(27378),i=n(3110);let r=e=>{let{values:t,columnState:n,tagProps:r,onTagClose:o,onStateChange:d,...c}=e,{isExpanded:u,isWrapped:p,version:g}=n||{},[h,m]=(0,l.useState)(!u),[f,y]=(0,l.useState)(!!p),[v,x]=(0,l.useState)(u?t:null==t?void 0:t.slice(0,2));(0,l.useEffect)(()=>{m(!u)},[u,g]),(0,l.useEffect)(()=>{y(!!p)},[p]),(0,l.useEffect)(()=>{(null==t?void 0:t.length)?x(h?t.slice(0,2):t):x(t)},[h,t,d]),(0,l.useEffect)(()=>{(null==t?void 0:t.length)&&t.length<=2&&!h&&(m(!0),null==d||d(!1))},[t,d,h]);let j=(0,l.useCallback)(()=>{x(null==t?void 0:t.slice(0,2)),m(!0),null==d||d(!1)},[t,d]),b=(0,l.useCallback)(()=>{m(!1),null==d||d(!0)},[d]),C=(0,l.useCallback)(()=>{h?b():j()},[h,b,j]);return(0,l.useMemo)(()=>(null==v?void 0:v.length)?(0,s.jsxs)(a.jqI,{align:h?"center":"start",wrap:f?"wrap":"nowrap",vertical:!h,gap:"small","data-testid":"tag-expandable-cell",style:{overflowX:"auto",...c.style},...c,children:[v.map(e=>(0,s.jsx)(a.j8w,{color:"white","data-testid":e.key,onClose:o?()=>o(e.key):void 0,...r,...e.tagProps,children:(0,s.jsx)(a.lKn,{ellipsis:!!h&&{tooltip:!0},style:{color:"inherit",maxWidth:h?i.TD:void 0},children:e.label})},e.key)),t&&t.length>2&&(0,s.jsx)(a.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),C()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:h?"+".concat(t.length-2," more"):i.T5})]}):(0,s.jsx)("span",{"data-testid":"tag-expandable-cell-empty"}),[v,h,f,c,t,r,o,C])}},3110:function(e,t,n){"use strict";n.d(t,{DI:function(){return r},T5:function(){return l},TD:function(){return i}});var s=n(24246),a=n(20595);let l="show less",i=150,r=[{key:"expand-all",label:"Expand all",icon:(0,s.jsx)(a.PJP.jbG,{})},{key:"collapse-all",label:"Collapse all",icon:(0,s.jsx)(a.PJP.MVB,{})}]},26070:function(e,t,n){"use strict";n.d(t,{v:function(){return o},Q:function(){return d.Q}});var s=n(24246),a=n(20595),l=n(27378),i=n(3110);let{Text:r}=a.AntTypography,o=e=>{let{values:t,valueSuffix:n,columnState:o}=e,{isExpanded:d,version:c}=o||{},[u,p]=(0,l.useState)(!d);(0,l.useEffect)(()=>{p(!d)},[d,c]);let g=(0,l.useCallback)(()=>{p(!0)},[]),h=(0,l.useCallback)(()=>{p(!1)},[]),m=(0,l.useCallback)(()=>{u?h():g()},[u,h,g]);return(0,l.useMemo)(()=>(null==t?void 0:t.length)?1===t.length?(0,s.jsx)(r,{ellipsis:!0,"data-testid":"list-expandable-cell-single",children:t[0]}):(0,s.jsxs)(a.jqI,{align:u?"center":"flex-start",vertical:!u,gap:u?"small":"none","data-testid":"list-expandable-cell",children:[u?(0,s.jsxs)(r,{ellipsis:!0,children:[t.length," ",n]}):(0,s.jsx)(a.krs,{dataSource:t,renderItem:e=>(0,s.jsx)("li",{children:e})}),(0,s.jsx)(a.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),m()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:u?"view":i.T5})]}):null,[u,t,n,m])};var d=n(2525)},8125:function(e,t,n){"use strict";n.d(t,{V:function(){return l},o:function(){return d}});var s=n(27378),a=n(32735);let l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{enableSelection:n=!1,getRowKey:l,bulkActions:i,isLoading:r=!1,isFetching:o=!1,dataSource:d=[],totalRows:c=0,currentPage:u,pageSize:p,customTableProps:g={}}=t,h=(0,s.useCallback)(e=>{if(e&&"object"==typeof e){if(e.id)return String(e.id);if(e.key)return String(e.key)}return String(e)},[]),m=l||h,[f,y]=(0,s.useState)([]),[v,x]=(0,s.useState)([]),j=(0,s.useCallback)(()=>{y([]),x([])},[]),b=(0,s.useMemo)(()=>({selectedRowKeys:f,selectedRows:v,resetSelections:j}),[f,v,j]),C=(0,s.useMemo)(()=>{if(n)return{selectedRowKeys:f,onChange:(e,t)=>{y(e),x(t)}}},[n,f]),k=(0,s.useCallback)((t,n,s)=>{var a,l;let i=null!==(a=t.current)&&void 0!==a?a:e.pageIndex,r=null!==(l=t.pageSize)&&void 0!==l?l:e.pageSize,o=i!==e.pageIndex||r!==e.pageSize;o?(t.current&&t.current!==e.pageIndex&&e.updatePageIndex(t.current),t.pageSize&&t.pageSize!==e.pageSize&&e.updatePageSize(t.pageSize)):e.updateFilters(n||{});let d=s&&!Array.isArray(s)?s.field:void 0,c=s&&!Array.isArray(s)&&null!==s.order?s.order:void 0;o||e.updateSorting(d,c)},[e]),S=(0,s.useMemo)(()=>{var t,n,s,l,i;return{current:null!=u?u:e.pageIndex,pageSize:null!=p?p:e.pageSize,total:c,showSizeChanger:null===(l=null===(t=e.paginationConfig)||void 0===t?void 0:t.showSizeChanger)||void 0===l||l,pageSizeOptions:null!==(i=null===(s=e.paginationConfig)||void 0===s?void 0:null===(n=s.pageSizeOptions)||void 0===n?void 0:n.map(String))&&void 0!==i?i:a.VZ}},[u,e.pageIndex,p,e.pageSize,c,e.paginationConfig]),w=(0,s.useMemo)(()=>({dataSource:d,loading:r||o,pagination:S,onChange:k,rowKey:m,scroll:{x:"max-content",scrollToFirstRowOnChange:!0},size:"small",bordered:!0,...g}),[d,r,o,S,k,m,g]),_=f.map(String),E=v.length>0,A=(0,s.useCallback)(e=>{let t=null==i?void 0:i.actions.find(t=>t.key===e);return t?{disabled:!E||!!t.disabled&&t.disabled(v),loading:t.loading||!1,onClick:()=>t.onClick(v)}:{disabled:!0,loading:!1}},[i,E,v]);return(0,s.useMemo)(()=>({tableProps:w,selectionProps:C,selectionState:b,selectedRows:v,selectedKeys:_,hasSelectedRows:E,resetSelections:j,getBulkActionProps:A,isLoadingOrFetching:r||o,hasData:d.length>0}),[w,C,b,v,_,E,j,A,r,o,d.length])};var i=n(40431),r=n(17245);let o=()=>({filters:(0,i.WJ)(e=>e).withDefault({})}),d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{pagination:t={},sorting:n={},search:a={},onStateChange:l,disableUrlState:d=!1}=e,{pageIndex:c,pageSize:u,resetPagination:p,updatePageIndex:g,updatePageSize:h,pageSizeOptions:m,showSizeChanger:f}=(0,r.h0)({...t,disableUrlState:d}),{sortKey:y,sortOrder:v,updateSorting:x,resetSorting:j}=(0,r.rK)({...n,disableUrlState:d}),{searchQuery:b,updateSearch:C,resetSearch:k}=(0,r.Rx)({...a,disableUrlState:d}),[S,w]=(0,s.useState)({}),_=(0,s.useMemo)(()=>d?null:o(),[d]),[E,A]=(0,i.XI)(null!=_?_:{},{history:"push"}),I=(0,s.useMemo)(()=>{var e;return{pageIndex:c,pageSize:u,sortKey:y,sortOrder:v,columnFilters:d?S:null!==(e=E.filters)&&void 0!==e?e:{},searchQuery:b}},[d,S,E,c,u,y,v,b]),T=(0,s.useCallback)((e,t)=>{x(e,t),p()},[x,p]),N=(0,s.useCallback)(e=>{if(d)w(e);else{let t=Object.fromEntries(Object.entries(e).filter(e=>{let[,t]=e;return null!=t}));A({filters:Object.keys(t).length>0?t:null})}p()},[d,A,p]),D=(0,s.useCallback)(e=>{C(e),p()},[C,p]),O=(0,s.useCallback)(()=>{d?w({}):A({filters:null}),p(),j(),k()},[d,A,p,j,k]);return(0,s.useEffect)(()=>{l&&l(I)},[I,l]),{state:I,pageIndex:I.pageIndex,pageSize:I.pageSize,updatePageIndex:g,updatePageSize:h,sortKey:I.sortKey,sortOrder:I.sortOrder,updateSorting:T,columnFilters:I.columnFilters,updateFilters:N,searchQuery:I.searchQuery,updateSearch:D,resetState:O,paginationConfig:{pageSizeOptions:m,showSizeChanger:f}}}},9320:function(e,t,n){"use strict";n.d(t,{_:function(){return l}});var s=n(24246),a=n(26089);let l=(e,t)=>(0,s.jsxs)(s.Fragment,{children:[e," ",t&&(0,s.jsx)(a.Z,{onClick:t,children:"View"})]})},88708:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var s,a,l=n(27378),i=n(14908),r=n(39449);(s=a||(a={})).ATTENTION_REQUIRED="attention-required",s.ADDED="added",s.IGNORED="ignored",t.Z=e=>{let{activeTab:t,onTabChange:n}=(0,i.Z)({tabKeys:Object.values(a)}),s=(0,l.useMemo)(()=>[{label:"Attention required",params:{diff_status:[r.LL.ADDITION],system:e},hash:"attention-required"},{label:"Added",params:{diff_status:[r.LL.MONITORED]},hash:"added"},{label:"Ignored",params:{diff_status:[r.LL.MUTED],system:e},hash:"ignored"}],[e]),{diff_status:o,system:d}=(0,l.useMemo)(()=>{var e;return null!==(e=s.find(e=>e.hash===t))&&void 0!==e?e:s[0]},[s,t]).params,c=(0,l.useMemo)(()=>o.includes(r.LL.MONITORED),[o]);return{filterTabs:s,activeTab:t,onTabChange:n,activeParams:(0,l.useMemo)(()=>e?{diff_status:o,system:d}:{diff_status:o},[e,o,d]),actionsDisabled:c}}},78238:function(e,t,n){"use strict";n.d(t,{g:function(){return s}});let s=["essential","functional.service.improve","personalize","analytics","marketing.advertising.first_party.targeted","marketing.advertising.third_party.targeted"];t.Z=e=>s.includes(e)},57072:function(e,t,n){"use strict";n.d(t,{Bd:function(){return s.Bd},L5:function(){return s.L5},MO:function(){return s.MO},qb:function(){return s.qb}});var s=n(5785)},16877:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return er}});var s=n(24246),a=n(86677),l=n(35287),i=n(77830),r=n(58754),o=n(37059),d=n(20595),c=n(27378),u=n(25415),p=n(39449),g=n(30952),h=n(8133),m=n(79283),f=n(34929),y=n(78238),v=e=>{let{selectedTaxonomies:t,...n}=e,{getDataUseDisplayNameProps:a,getDataUses:l}=(0,f.Z)(),i=[...l()].filter(e=>!(null==t?void 0:t.includes(e.fides_key))).sort(),r=i.filter(e=>e.active&&y.g.includes(e.fides_key)),o=i.map(e=>{let{name:t,primaryName:n}=a(e.fides_key);return{value:e.fides_key,name:t,primaryName:n,description:e.description||""}}),u=(0,c.useMemo)(()=>{let e=[],t=[];return o.forEach(n=>{r.some(e=>e.fides_key===n.value)?e.push(n):t.push(n)}),{suggested:e,all:t}},[o,r]),p=u.suggested.length?[{label:(0,s.jsxs)(d.vyj,{children:[(0,s.jsx)(d.QMR,{size:14}),(0,s.jsx)("span",{children:"Categories of consent"}),(0,s.jsx)("em",{className:"font-normal",children:"Recommended"})]}),options:u.suggested},{label:(0,s.jsxs)(d.vyj,{children:[(0,s.jsx)(d.PJP.BBB,{}),(0,s.jsx)("span",{children:"Other data uses"})]}),options:u.all}]:u.all;return(0,s.jsx)(m.l,{options:p,...n})};let{Text:x}=d.AntTypography;var j=e=>{let{onSave:t,isSaving:n,onClose:a,...l}=e,[i,r]=(0,c.useState)([]),o=()=>{r([]),a()};return(0,s.jsxs)(h.Z,{title:"Add consent category",...l,onClose:o,children:[(0,s.jsxs)(d.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,s.jsx)(x,{children:"Assign consent categories to selected assets. This configures the system for consent management. Consent categories apply to both individual assets and the system."}),(0,s.jsx)(v,{mode:"tags",onSelect:(e,t)=>r([...i,t.value]),variant:"outlined"})]}),(0,s.jsxs)(d.jqI,{justify:"space-between",children:[(0,s.jsx)(d.wpx,{htmlType:"reset",onClick:o,"data-testid":"cancel-btn",children:"Cancel"}),(0,s.jsx)(d.wpx,{htmlType:"submit",type:"primary",disabled:!i.length,loading:n,onClick:()=>{t(i),o()},"data-testid":"save-btn",children:"Save"})]})]})},b=n(29850),C=n(77685);let{Text:k}=d.AntTypography,S=e=>{let{onSave:t,isSaving:n,...a}=e,[l,i]=(0,c.useState)(),[r,o]=(0,c.useState)(!1),u=(0,c.useCallback)(e=>{e.preventDefault(),o(!0)},[]),p=()=>{o(!1)},g=()=>{i(void 0),a.onClose()};return(0,s.jsxs)(h.Z,{title:"Assign system",...a,onClose:g,children:[(0,s.jsxs)(d.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,s.jsx)(k,{children:"Assign a system to the selected assets. If no system exists, select 'Add new system' to create one."}),(0,s.jsx)(b.R,{placeholder:"Search or select...",onSelect:(e,t)=>{i(t)},onAddSystem:u,value:l})]})," ",(0,s.jsxs)(d.jqI,{justify:"space-between",children:[(0,s.jsx)(d.wpx,{htmlType:"reset",onClick:g,"data-testid":"cancel-btn",children:"Cancel"}),(0,s.jsx)(d.wpx,{htmlType:"submit",type:"primary",disabled:!l,loading:n,onClick:()=>{t(l),g()},"data-testid":"save-btn",children:"Save"})]}),r&&(0,s.jsx)(C.i,{isOpen:!0,onClose:p,onSuccessfulSubmit:(e,t)=>{p(),i({label:t,value:e})},toastOnSuccess:!0})]})};var w=n(8411),_=n(32735),E=n(8125),A=n(16394),I=n(98145);let{Link:T}=d.AntTypography,N=e=>{let{stagedResource:t}=e,n=(0,E.o)({pagination:{defaultPageSize:10,pageSizeOptions:[10,..._.VZ]},disableUrlState:!0}),{pageIndex:a,pageSize:l}=n,{data:i,isFetching:r,isError:u}=(0,o.mi)({stagedResourceUrn:t.urn,statuses:I.LM,page:a,size:l}),{items:p,total:g}=(0,c.useMemo)(()=>i||{items:[],total:0,pages:0,filterOptions:{assigned_users:[],systems:[]}},[i]),h=(0,c.useMemo)(()=>({enableSelection:!1,getRowKey:e=>"".concat(e.location,"-").concat(e.page),isLoading:r,dataSource:p,totalRows:null!=g?g:0,customTableProps:{scroll:{scrollToFirstRowOnChange:!0},tableLayout:"fixed"}}),[r,p,g]),m=(0,E.V)(n,h);return{columns:(0,c.useMemo)(()=>[{title:"Location",dataIndex:I.EI.LOCATION,key:I.EI.LOCATION,render:e=>{var t;let n=(0,d.QCN)(e),a=n?(0,d.c1K)({isoEntry:n,showFlag:!0}):null!==(t=null===w.Z8||void 0===w.Z8?void 0:w.Z8[e])&&void 0!==t?t:e;return(0,s.jsx)(d.AntTypography.Text,{ellipsis:{tooltip:e},children:a})},width:180},{title:"Page",dataIndex:I.EI.PAGE,key:I.EI.PAGE,render:e=>{let t=(0,A.hL)(e,50);return(0,s.jsx)(T,{href:e,target:"_blank",rel:"noopener noreferrer",variant:"primary",children:(0,s.jsx)(d.AntTypography.Text,{ellipsis:{tooltip:e},unStyled:!0,children:t})})},minWidth:100},{title:"Compliance",dataIndex:I.EI.STATUS,key:I.EI.STATUS,width:160,render:e=>{let t=I.Vq[e];return(0,s.jsx)(d.esZ,{title:t,children:(0,s.jsx)(d.j8w,{color:"error","data-testid":"status-badge_".concat(e.replace(/_/g,"-")),children:I.X1[e]})})}}],[]),data:i,isLoading:r,isError:u,totalRows:g,tableProps:m.tableProps,hasData:p.length>0}},{Paragraph:D,Text:O}=d.AntTypography,L=e=>{var t,n,a;let{isOpen:l,stagedResource:i,onCancel:r,onDownload:o}=e,{columns:c,tableProps:u,isError:p}=N({stagedResource:i});return(0,s.jsx)(d.$zI,{title:"Compliance issues",width:768,open:l,onCancel:r,footer:[(0,s.jsx)(d.wpx,{onClick:r,children:"Cancel"},"cancel"),!!o&&(0,s.jsx)(d.wpx,{type:"primary",onClick:o,children:"Download"},"download")],"data-testid":"consent-breakdown-modal",children:(0,s.jsxs)(d.jqI,{vertical:!0,className:"gap-6","data-testid":"consent-breakdown-modal-content",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(D,{children:"View all instances where this asset was detected with consent compliance issues, organized by location and page. This includes assets loaded without consent, before consent, or when CMP failed."}),(0,s.jsxs)(D,{children:[(0,s.jsx)(O,{strong:!0,children:"Asset name:"})," ",null!==(t=i.name)&&void 0!==t?t:(0,s.jsx)(O,{italic:!0,children:"Unknown"}),","," ",(0,s.jsx)(O,{strong:!0,children:"System:"})," ",null!==(n=i.system)&&void 0!==n?n:(0,s.jsx)(O,{italic:!0,children:"Unassigned"}),","," ",(0,s.jsx)(O,{strong:!0,children:"Domain:"})," ",null!==(a=i.domain)&&void 0!==a?a:(0,s.jsx)(O,{italic:!0,children:"Unknown"})]})]}),p?(0,s.jsx)(d.DUx,{type:"error",message:"Error fetching data",description:"Please try again later.",showIcon:!0}):(0,s.jsx)(d.V5H,{...u,columns:c,"data-testid":"consent-breakdown-modal-table"})]})})};var P=n(83766),z=n.n(P),M=n(62165),R=n(812),V=n(26070),Z=n(3110),U=n(46628),G=n(54762),K=n(9320),q=n(26092),B=n.n(q),F=n(88708),Q=e=>!!e&&I.LM.includes(e);let $=e=>{let{asset:t,onTabChange:n,showComplianceIssueDetails:l}=e,{flags:r}=(0,M.hz)(),{assetConsentStatusLabels:c}=r,[u,{isLoading:g}]=(0,o.EY)(),[h,{isLoading:m}]=(0,o.nS)(),[f,{isLoading:y}]=(0,o.Tj)(),v=(0,d.pmc)(),x=(0,a.useRouter)(),j=g||m||y,{urn:b,name:C,resource_type:k,diff_status:S,system_key:w,user_assigned_system_key:_,consent_aggregated:E}=t,A=B()(C||"",{length:50}),I=Q(E),T=async()=>{let e=await u({urnList:[b]});if((0,R.D4)(e))v((0,U.Vo)((0,R.e$)(e.error)));else{let e=_||w,t="".concat(i.So,"/configure/").concat(e,"#assets");v((0,U.t5)((0,K._)("".concat(k,' "').concat(A,'" has been added to the system inventory.'),e?()=>x.push(t):void 0)))}},N=async()=>{let e=await h({urnList:[b]});(0,R.D4)(e)?v((0,U.Vo)((0,R.e$)(e.error))):v((0,U.t5)((0,K._)("".concat(k,' "').concat(A,'" has been ignored and will not appear in future scans.'),async()=>{await n(F.A.IGNORED)})))},D=async()=>{let e=await f({urnList:[b]});(0,R.D4)(e)?v((0,U.Vo)((0,R.e$)(e.error))):v((0,U.t5)("".concat(k,' "').concat(A,'" is no longer ignored and will appear in future scans.')))};return(0,s.jsxs)(d.vyj,{children:[S!==p.LL.MUTED&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.esZ,{title:t.system?void 0:"This asset requires a system before you can add it to the inventory.",children:(0,s.jsx)(d.wpx,{"data-testid":"add-btn",size:"small",onClick:T,disabled:!t.system||j,loading:g,children:"Add"})}),(0,s.jsx)(d.wpx,{"data-testid":"ignore-btn",size:"small",onClick:N,disabled:j,loading:m,children:"Ignore"}),I&&c&&(0,s.jsx)(d.wpx,{"data-testid":"view-compliance-details-btn",size:"small",onClick:()=>{null==l||l(t)},disabled:j,loading:y,icon:(0,s.jsx)(d.PJP.OdJ,{style:{color:"var(--fidesui-error)",width:14}}),title:"View compliance issue","aria-label":"View compliance issue"})]}),S===p.LL.MUTED&&(0,s.jsx)(d.wpx,{"data-testid":"restore-btn",size:"small",onClick:D,disabled:j,loading:y,children:"Restore"})]})};var J=n(17245),W=n(18992),Y=n.n(W),X=n(2525),H=n(31883),ee=e=>{let{asset:t,readonly:n,columnState:a,onChange:l}=e,[i,r]=(0,c.useState)(!1),[u,p]=(0,c.useState)((null==a?void 0:a.isExpanded)||!1),[g]=(0,o.Ak)(),{successAlert:h,errorAlert:m}=(0,J.VY)(),{getDataUseDisplayName:y}=(0,f.Z)(),x=[...t.preferred_data_uses||[]].sort(),j=B()(t.name||"",{length:50}),b=async e=>{let n=await g({monitorId:t.monitor_config_id,urnList:[t.urn],dataUses:[...x,e]});(0,H.D4)(n)?m((0,R.e$)(n.error)):(h("Consent category added to ".concat(t.resource_type,' "').concat(j,'".'),"Confirmed"),null==l||l([...x,e])),r(!1)},C=async e=>{let n=await g({monitorId:t.monitor_config_id,urnList:[t.urn],dataUses:x.filter(t=>t!==e)});(0,H.D4)(n)?m((0,R.e$)(n.error)):(h("Consent category removed from ".concat(t.resource_type,' "').concat(j,'".'),"Confirmed"),null==l||l(x.filter(t=>t!==e)))};return((0,c.useEffect)(()=>{p((null==a?void 0:a.isExpanded)||!1)},[null==a?void 0:a.isExpanded]),n)?(0,s.jsx)(X.Q,{values:null==x?void 0:x.map(e=>({label:y(e),key:e})),columnState:a,onStateChange:p}):(0,s.jsxs)(s.Fragment,{children:[!i&&(0,s.jsxs)(d.vyj,{align:"start",children:[(0,s.jsx)(d.j8w,{onClick:()=>r(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"}),(0,s.jsx)(X.Q,{values:null==x?void 0:x.map(e=>({label:y(e),key:e})),columnState:{...a,isExpanded:u},tagProps:{closable:!0,closeButtonLabel:"Remove data use"},onTagClose:C,onStateChange:p})]}),i&&(0,s.jsx)("div",{className:Y().cellBleed,style:{backgroundColor:"var(--fides-color-white)"},children:(0,s.jsx)(v,{selectedTaxonomies:x,onSelect:b,onBlur:()=>r(!1),onKeyDown:e=>{"Escape"===e.key&&r(!1)},open:!0})})]})};let et=e=>{let{consentAggregated:t,stagedResource:n}=e,a=I.LM.includes(t);if(!(a||t===p.lg.UNKNOWN))return null;let l=!!n.data_uses&&n.data_uses.length>0,i=I.Vq[t];return t!==p.lg.UNKNOWN||l||(i="Add a category of consent to this asset to find consent information."),(0,s.jsx)(d.esZ,{title:i,children:(0,s.jsx)(d.j8w,{color:a?"error":void 0,"data-testid":"status-badge_".concat(t.replace(/_/g,"-")),children:I.X1[t]})})};var en=n(70675);let es=e=>{let{aggregateSystem:t,monitorConfigId:n,readonly:a,onChange:l}=e,{resource_type:i,name:r,urn:o,system:u,user_assigned_system_key:p,system_key:g}=t,h=B()(r||"",{length:50}),[m,f]=(0,c.useState)(!1),[y,v]=(0,c.useState)(!1),[x,{isLoading:j}]=(0,en.NA)(),{successAlert:k,errorAlert:S}=(0,J.VY)(),w=(0,c.useCallback)(e=>{e.preventDefault(),v(!0)},[]),_=async(e,t,s)=>{let a=await x({staged_resource_urn:o,monitor_config_id:n,user_assigned_system_key:e}),r=B()(t,{length:50});(0,R.D4)(a)?S((0,R.e$)(a.error)):(k(s?"".concat(r," has been added to your system inventory and the ").concat(i,' "').concat(h,'" has been assigned to that system.'):"".concat(i,' "').concat(h,'" has been assigned to ').concat(r,"."),"Confirmed"),null==l||l(e)),f(!1)};return a?u?(0,s.jsx)(d.j8w,{"data-testid":"system-badge",color:"white",children:u}):null:(0,s.jsxs)(s.Fragment,{children:[!m&&(u?(0,s.jsxs)(d.j8w,{onClick:()=>f(!0),"data-testid":"system-badge",children:[u,(0,s.jsx)(d.PJP.I8b,{})]}):(0,s.jsx)(d.j8w,{onClick:()=>f(!0),"data-testid":"add-system-btn",addable:!0})),!!m&&(0,s.jsx)("div",{className:Y().cellBleed,children:(0,s.jsx)(b.R,{variant:"borderless",autoFocus:!0,defaultOpen:!0,defaultValue:p||g,onBlur:e=>{var t;(null===(t=e.relatedTarget)||void 0===t?void 0:t.getAttribute("id"))!=="add-new-system"&&f(!1)},onAddSystem:w,onSelect:(e,t)=>_(e,t.label),loading:j})}),y&&(0,s.jsx)(C.i,{isOpen:!0,onClose:()=>{v(!1)},onSuccessfulSubmit:(e,t)=>_(e,t,!0)})]})},ea=e=>{let{monitorId:t,systemId:n,consentStatus:l,onShowComplianceIssueDetails:r}=e,u=(0,a.useRouter)(),g=(0,d.pmc)(),[h,m]=(0,c.useState)(n),[f,v]=(0,c.useState)(!1),[x,j]=(0,c.useState)(!1),[b,C]=(0,c.useState)(!1),[k,S]=(0,c.useState)(0),[_,T]=(0,c.useState)(0),[N,D]=(0,c.useState)(0),{flags:O}=(0,M.hz)(),{assetConsentStatusLabels:L}=O,{filterTabs:P,activeTab:q,onTabChange:B,activeParams:Q,actionsDisabled:J}=(0,F.Z)(n),W=(0,E.o)({sorting:{validColumns:Object.values(I.r6)}}),{columnFilters:Y,pageIndex:X,pageSize:H,resetState:en,sortKey:ea,sortOrder:el,searchQuery:ei,updateSearch:er,updateFilters:eo,updateSorting:ed,updatePageIndex:ec,updatePageSize:eu}=W,{data:ep,isLoading:eg,isFetching:eh}=(0,o.WJ)({key:t,page:X,size:H,search:ei,sort_by:ea?[ea]:[I.r6.NAME],sort_asc:"descend"!==el,...Q,...Y}),[em,{isLoading:ef}]=(0,o.EY)(),[ey,{isLoading:ev}]=(0,o.nS)(),[ex,{isLoading:ej}]=(0,o.rs)(),[eb,{isLoading:eC}]=(0,o.sX)(),[ek,{isLoading:eS}]=(0,o.Vr)(),[ew,{isLoading:e_}]=(0,o.Tj)(),eE=ef||ev||ej||eC||e_||eS,eA=eE||n===i.Kl,{data:eI}=(0,o.ut)({monitor_config_id:t,resolved_system_id:n,diff_status:null==Q?void 0:Q.diff_status,search:ei,...Y}),eT=(0,c.useMemo)(()=>({enableSelection:q!==F.A.ADDED,getRowKey:e=>e.urn,isLoading:eg,isFetching:eh,dataSource:(null==ep?void 0:ep.items)||[],totalRows:(null==ep?void 0:ep.total)||0,sortBy:[I.r6.NAME],sortAsc:!0,customTableProps:{locale:{emptyText:(0,s.jsx)("div",{children:(0,s.jsx)("div",{children:"All caught up!"})})}}}),[q,eg,eh,null==ep?void 0:ep.items,null==ep?void 0:ep.total]),eN=(0,E.V)(W,eT),{selectedKeys:eD,selectedRows:eO,resetSelections:eL}=eN,eP=(0,c.useMemo)(()=>{var e;let t=[{title:"Asset",dataIndex:I.r6.NAME,key:I.r6.NAME,sorter:!0,sortOrder:ea===I.r6.NAME?el:null,render:e=>(0,s.jsx)(d.lKn,{ellipsis:{tooltip:!0},style:{maxWidth:300},children:e}),fixed:"left"},{title:"Type",dataIndex:I.r6.RESOURCE_TYPE,key:I.r6.RESOURCE_TYPE,sorter:!0,sortOrder:ea===I.r6.RESOURCE_TYPE?el:null,filters:(0,A.nZ)(null==eI?void 0:eI.resource_type),filteredValue:(null==Y?void 0:Y.resource_type)||null},{title:"System",dataIndex:I.r6.SYSTEM,key:I.r6.SYSTEM,render:(e,t)=>!!t.monitor_config_id&&(0,s.jsx)(es,{aggregateSystem:t,monitorConfigId:t.monitor_config_id,readonly:J||q===F.A.IGNORED,onChange:()=>{eL()}})},{title:"Categories of consent",key:I.r6.DATA_USES,menu:{items:Z.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?(C(!0),D(e=>e+1)):"collapse-all"===e.key&&(C(!1),D(e=>e+1))}},filters:(0,A.nZ)(null==eI?void 0:null===(e=eI.data_uses)||void 0===e?void 0:e.filter(e=>(0,y.Z)(e))),filteredValue:(null==Y?void 0:Y.data_uses)||null,render:(e,t)=>(0,s.jsx)(ee,{asset:t,readonly:J||q===F.A.IGNORED,columnState:{isExpanded:b,version:N},onChange:()=>{eL()}})},{title:"Locations",dataIndex:I.r6.LOCATIONS,key:I.r6.LOCATIONS,menu:{items:Z.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?(v(!0),S(e=>e+1)):"collapse-all"===e.key&&(v(!1),S(e=>e+1))}},filters:(0,A.nZ)(null==eI?void 0:eI.locations,e=>{var t;let n=(0,d.QCN)(e);return n?(0,d.c1K)({isoEntry:n}):null!==(t=w.Z8[e])&&void 0!==t?t:e}),filteredValue:(null==Y?void 0:Y.locations)||null,render:e=>{var t;return(0,s.jsx)(V.Q,{values:null!==(t=null==e?void 0:e.map(e=>{var t;let n=(0,d.QCN)(e);return{label:n?(0,d.c1K)({isoEntry:n}):null!==(t=w.Z8[e])&&void 0!==t?t:e,key:e}}))&&void 0!==t?t:[],columnState:{isExpanded:f,version:k}})}},{title:"Domain",dataIndex:I.r6.DOMAIN,key:I.r6.DOMAIN},{title:"Detected on",dataIndex:I.r6.PAGE,menu:{items:Z.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?(j(!0),T(e=>e+1)):"collapse-all"===e.key&&(j(!1),T(e=>e+1))}},key:I.r6.PAGE,render:e=>(0,s.jsx)(V.v,{values:e,valueSuffix:"pages",columnState:{isExpanded:x,version:_}})}];return L&&t.push({title:()=>(0,s.jsxs)(d.vyj,{children:[(0,s.jsx)("div",{children:"Compliance"}),(null==l?void 0:l.status)===p.pF.ALERT&&(0,s.jsx)(G.l,{consentStatus:l})]}),dataIndex:I.r6.CONSENT_AGGREGATED,key:I.r6.CONSENT_AGGREGATED,sorter:!0,sortOrder:ea===I.r6.CONSENT_AGGREGATED?el:null,filters:(0,A.nZ)(null==eI?void 0:eI[I.r6.CONSENT_AGGREGATED],e=>{var t;return null!==(t=I.X1[e])&&void 0!==t?t:e}),filteredValue:(null==Y?void 0:Y[I.r6.CONSENT_AGGREGATED])||null,render:(e,t)=>(0,s.jsx)(et,{consentAggregated:null!=e?e:p.lg.UNKNOWN,stagedResource:t})}),J||t.push({title:"Actions",key:I.r6.ACTIONS,fixed:"right",render:(e,t)=>(0,s.jsx)($,{asset:t,onTabChange:B,showComplianceIssueDetails:r})}),t},[ea,el,eI,Y,L,J,q,b,N,eL,f,k,x,_,l,B,r]);(0,c.useEffect)(()=>{if(ep){var e;m((null===(e=ep.items[0])||void 0===e?void 0:e.system)||h||n||"")}},[ep,n,h]);let ez=(0,c.useCallback)(async()=>{var e,t;let n=await em({urnList:eD}),s=(null===(e=eO[0])||void 0===e?void 0:e.user_assigned_system_key)||(null===(t=eO[0])||void 0===t?void 0:t.system_key),a=eO.every(e=>(e.user_assigned_system_key||e.system_key)===s)?s:void 0;(0,R.D4)(n)?g((0,U.Vo)((0,R.e$)(n.error))):(g((0,U.t5)((0,K._)("".concat(eD.length," assets from ").concat(h," have been added to the system inventory."),a?()=>u.push("".concat(i.So,"/configure/").concat(a,"#assets")):()=>u.push(i.So)))),eL())},[em,eD,eO,h,g,u,eL]),eM=(0,c.useCallback)(async e=>{if("string"==typeof(null==e?void 0:e.value)){let n=await eb({monitorId:t,urnList:eD,systemKey:e.value});(0,R.D4)(n)?g((0,U.Vo)((0,R.e$)(n.error))):(g((0,U.t5)("".concat(eD.length," assets have been assigned to ").concat(e.label,"."),"Confirmed")),eL())}},[eb,t,eD,g,eL]),eR=(0,c.useCallback)(async e=>{if(!eO.length)return;let n=eO.map(t=>{let n=z()([...t.preferred_data_uses||[],...e]);return{urn:t.urn,user_assigned_data_uses:n}}),s=await ek({monitorId:t,assets:n});(0,R.D4)(s)?g((0,U.Vo)((0,R.e$)(s.error))):(g((0,U.t5)("Consent categories added to ".concat(eD.length," assets").concat(h?" from ".concat(h):"","."),"Confirmed")),eL())},[eO,ek,t,eD,h,g,eL]),eV=(0,c.useCallback)(async()=>{let e=await ey({urnList:eD});(0,R.D4)(e)?g((0,U.Vo)((0,R.e$)(e.error))):(g((0,U.t5)(h===i.Kl?"".concat(eD.length," uncategorized assets have been ignored and will not appear in future scans."):"".concat(eD.length," assets from ").concat(h," have been ignored and will not appear in future scans."),"Confirmed")),eL())},[ey,eD,h,g,eL]),eZ=(0,c.useCallback)(async()=>{let e=await ew({urnList:eD});(0,R.D4)(e)?g((0,U.Vo)((0,R.e$)(e.error))):(g((0,U.t5)("".concat(eD.length," assets have been restored and will appear in future scans."),"Confirmed")),eL())},[ew,eD,g,eL]),eU=(0,c.useCallback)(async()=>{let e=(null==ep?void 0:ep.items.length)||0,s=await ex({monitor_config_key:t,resolved_system_ids:[n]});(0,R.D4)(s)?g((0,U.Vo)((0,R.e$)(s.error))):(u.push("".concat(i.vi,"/").concat(t)),g((0,U.t5)("".concat(e," assets from ").concat(h," have been added to the system inventory."),"Confirmed")),eL())},[null==ep?void 0:ep.items.length,ex,t,n,u,g,h,eL]),eG=(0,c.useCallback)(async e=>{await B(e),en(),eL()},[B,en,eL]);return{columns:eP,data:ep,isLoading:eg,isFetching:eh,tableState:W,searchQuery:ei,updateSearch:er,updateFilters:eo,updateSorting:ed,updatePageIndex:ec,updatePageSize:eu,resetState:en,tableProps:eN.tableProps,selectionProps:eN.selectionProps,filterTabs:P,activeTab:q,handleTabChange:eG,activeParams:Q,actionsDisabled:J,selectedRows:eO,selectedUrns:eD,hasSelectedRows:eN.hasSelectedRows,resetSelections:eL,systemName:h,consentStatus:l,handleBulkAdd:ez,handleBulkAssignSystem:eM,handleBulkAddDataUse:eR,handleBulkIgnore:eV,handleBulkRestore:eZ,handleAddAll:eU,anyBulkActionIsLoading:eE,isAddingResults:ef,isIgnoringResults:ev,isAddingAllResults:ej,isBulkUpdatingSystem:eC,isBulkAddingDataUses:eS,isRestoringResults:e_,disableAddAll:eA}},el=e=>{var t;let{monitorId:n,systemId:a,consentStatus:l}=e,[i,r]=(0,c.useState)(!1),[o,h]=(0,c.useState)(!1),[m,f]=(0,c.useState)(null),{columns:y,searchQuery:v,updateSearch:x,resetState:b,tableProps:C,selectionProps:k,filterTabs:w,activeTab:_,handleTabChange:E,activeParams:A,actionsDisabled:I,selectedUrns:T,hasSelectedRows:N,resetSelections:D,handleBulkAdd:O,handleBulkAssignSystem:P,handleBulkAddDataUse:z,handleBulkIgnore:M,handleBulkRestore:R,handleAddAll:V,anyBulkActionIsLoading:Z,isAddingAllResults:U,isBulkUpdatingSystem:G,isBulkAddingDataUses:K,disableAddAll:q}=ea({monitorId:n,systemId:a,consentStatus:l,onShowComplianceIssueDetails:e=>{f(e)}}),B=async e=>{await P(e),r(!1)},F=async e=>{await z(e),h(!1)};return n&&a?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.Niu,{"aria-label":"Asset state filter",mode:"horizontal",items:w.map(e=>({key:e.hash,label:e.label})),selectedKeys:[_],onClick:async e=>{await E(e.key)},className:"mb-4","data-testid":"asset-state-filter"}),(0,s.jsxs)(d.jqI,{justify:"space-between",align:"center",className:"mb-4",children:[(0,s.jsx)(g.f,{value:v,onChange:x,placeholder:"Search by asset name..."}),(0,s.jsxs)(d.vyj,{size:"large",children:[N&&(0,s.jsx)(u.a,{count:T.length}),(0,s.jsxs)(d.vyj,{size:"small",children:[(0,s.jsx)(d.wpx,{onClick:()=>{b(),D()},"data-testid":"clear-filters",children:"Clear filters"}),(0,s.jsx)(d.S0p,{overlayClassName:"bulk-actions-menu-dropdown",menu:{items:[...(null==A?void 0:null===(t=A.diff_status)||void 0===t?void 0:t.includes(p.LL.MUTED))?[{key:"restore",label:"Restore",onClick:R}]:[{key:"add",label:"Add",onClick:O},{key:"add-data-use",label:"Add consent category",onClick:()=>h(!0)},{key:"assign-system",label:"Assign system",onClick:()=>r(!0)},{type:"divider"},{key:"ignore",label:"Ignore",onClick:M}]]},trigger:["click"],children:(0,s.jsx)(d.wpx,{icon:(0,s.jsx)(d.PJP._ME,{}),iconPosition:"end",loading:Z,"data-testid":"bulk-actions-menu",disabled:!N||Z||I,type:"primary",children:"Actions"})}),(0,s.jsx)(d.esZ,{title:q?"These assets require a system before you can add them to the inventory.":void 0,children:(0,s.jsx)(d.wpx,{onClick:V,disabled:q,loading:U,type:"primary",icon:(0,s.jsx)(d.PJP.MCw,{}),iconPosition:"end","data-testid":"add-all",children:"Add all"})})]})]})]}),(0,s.jsx)(d.V5H,{...C,columns:y,rowSelection:k,locale:{emptyText:(0,s.jsx)(d.oj8,{image:d.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})},"aria-labelledby":"breadcrumb-current-page"}),(0,s.jsx)(S,{isOpen:i,onClose:()=>{r(!1)},onSave:B,isSaving:G}),(0,s.jsx)(j,{isOpen:o,onClose:()=>{h(!1)},onSave:F,isSaving:K}),m&&(0,s.jsx)(L,{isOpen:!!m,stagedResource:m,onCancel:()=>{f(null)}})]}):null};var ei=n(98243),er=()=>{var e;let t=(0,a.useRouter)(),n=decodeURIComponent(t.query.monitorId),d=decodeURIComponent(t.query.systemId),{data:c}=(0,o.wi)({key:n,page:1,size:1,search:"",diff_status:[ei.L.ADDITION],resolved_system_id:d}),u=null==c?void 0:c.items[0];return(0,s.jsxs)(l.Z,{title:"Action center - Discovered assets",children:[(0,s.jsx)(r.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:i.vi},{title:n,href:"".concat(i.vi,"/").concat(n)},{title:d===i.Kl?"Uncategorized assets":null!==(e=null==u?void 0:u.name)&&void 0!==e?e:d}]}),(0,s.jsx)(el,{monitorId:n,systemId:d,consentStatus:null==u?void 0:u.consent_status})]})}},31883:function(e,t,n){"use strict";n.d(t,{Bw:function(){return s.Bw},D4:function(){return s.D4}});var s=n(19043)},18992:function(e){e.exports={cellBleed:"Cells_cellBleed__dik43"}}},function(e){e.O(0,[431,8765,9278,5163,6344,7245,401,1437,9070,2888,9774,179],function(){return e(e.s=25654)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1961],{85630:function(e){e.exports=function(e){return e.split("")}},75733:function(e){e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},74833:function(e,t,n){var r=n(56127),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},39158:function(e,t,n){var r=n(75733);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},62690:function(e,t,n){var r=n(39158),i=n(25348),o=n(63528),s=n(65567);e.exports=function(e){return function(t){var n=i(t=s(t))?o(t):void 0,a=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return a[e]()+l}}},56632:function(e,t,n){var r=n(89278),i=n(80068),o=n(50098);e.exports=function(e){return function(t,n,s){var a=Object(t);if(!i(t)){var l=r(n,3);t=o(t),n=function(e){return l(a[e],e,a)}}var c=e(t,n,s);return c>-1?a[l?t[c]:c]:void 0}}},25348:function(e){var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},63528:function(e,t,n){var r=n(85630),i=n(25348),o=n(84890);e.exports=function(e){return i(e)?o(e):r(e)}},56127:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},84890:function(e){var t="\ud800-\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\ud83c[\udffb-\udfff]",i="[^"+t+"]",o="(?:\ud83c[\udde6-\uddff]){2}",s="[\ud800-\udbff][\udc00-\udfff]",a="(?:"+n+"|"+r+")?",l="[\\ufe0e\\ufe0f]?",c="(?:\\u200d(?:"+[i,o,s].join("|")+")"+l+a+")*",u=RegExp(r+"(?="+r+")|(?:"+[i+n+"?",n,o,s,"["+t+"]"].join("|")+")"+(l+a+c),"g");e.exports=function(e){return e.match(u)||[]}},98052:function(e,t,n){var r=n(65567),i=n(76744);e.exports=function(e){return i(r(e).toLowerCase())}},66726:function(e,t,n){var r=n(11611),i=n(82846),o=n(91936),s=Math.max,a=Math.min;e.exports=function(e,t,n){var l,c,u,d,p,f,m=0,g=!1,v=!1,h=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=l,r=c;return l=c=void 0,m=t,d=e.apply(r,n)}function x(e){var n=e-f,r=e-m;return void 0===f||n>=t||n<0||v&&r>=u}function j(){var e,n,r,o=i();if(x(o))return _(o);p=setTimeout(j,(e=o-f,n=o-m,r=t-e,v?a(r,u-n):r))}function _(e){return(p=void 0,h&&l)?y(e):(l=c=void 0,d)}function S(){var e,n=i(),r=x(n);if(l=arguments,c=this,f=n,r){if(void 0===p)return m=e=f,p=setTimeout(j,t),g?y(e):d;if(v)return clearTimeout(p),p=setTimeout(j,t),y(f)}return void 0===p&&(p=setTimeout(j,t)),d}return t=o(t)||0,r(n)&&(g=!!n.leading,u=(v="maxWait"in n)?s(o(n.maxWait)||0,t):u,h="trailing"in n?!!n.trailing:h),S.cancel=function(){void 0!==p&&clearTimeout(p),m=0,l=f=c=p=void 0},S.flush=function(){return void 0===p?d:_(i())},S}},64925:function(e,t,n){var r=n(56632)(n(66259));e.exports=r},66259:function(e,t,n){var r=n(95372),i=n(89278),o=n(47991),s=Math.max;e.exports=function(e,t,n){var a=null==e?0:e.length;if(!a)return -1;var l=null==n?0:o(n);return l<0&&(l=s(a+l,0)),r(e,i(t,3),l)}},82846:function(e,t,n){var r=n(77400);e.exports=function(){return r.Date.now()}},94919:function(e,t,n){var r=n(91936),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,n){var r=n(94919);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},91936:function(e,t,n){var r=n(74833),i=n(11611),o=n(55193),s=0/0,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return s;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):a.test(e)?s:+e}},76744:function(e,t,n){var r=n(62690)("toUpperCase");e.exports=r},19174:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/[monitorId]/data-explorer",function(){return n(12591)}])},30952:function(e,t,n){"use strict";n.d(t,{f:function(){return l}});var r=n(24246),i=n(66726),o=n.n(i),s=n(27378),a=n(26917);let l=e=>{let{value:t,onChange:n,placeholder:i,...l}=e,[c,u]=(0,s.useState)(t);(0,s.useEffect)(()=>{u(t||"")},[t]);let d=o()(n,500),p=(0,s.useCallback)(e=>{u(e),d(e)},[]);return(0,r.jsx)(a.Z,{value:c,onChange:p,onClear:()=>{u(""),n("")},placeholder:i,...l})}},35287:function(e,t,n){"use strict";var r=n(24246),i=n(20595),o=n(88038),s=n.n(o);n(27378),t.Z=e=>{let{children:t,title:n,mainProps:o}=e;return(0,r.jsxs)(i.kCb,{"data-testid":n,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,r.jsxs)(s(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsx)(i.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...o,children:t})]})}},58754:function(e,t,n){"use strict";var r=n(24246),i=n(20595),o=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:s=!0,children:a,rightContent:l,style:c,...u}=e;return(0,r.jsxs)("div",{...u,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,r.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,r.jsx)(i.lQT,{className:n||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,r.jsx)(o.m,{className:a?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),a]})}},79283:function(e,t,n){"use strict";n.d(t,{l:function(){return u}});var r=n(24246),i=n(20595),o=n(72707),s=n.n(o);let a=e=>{let{data:{formattedTitle:t,description:n,name:o,primaryName:s}}=e;return(0,r.jsxs)(i.jqI,{gap:12,title:"".concat(t," - ").concat(n),children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("strong",{children:s||o}),s&&": ".concat(o)]}),(0,r.jsx)("em",{children:n})]})},l=e=>"options"in e&&Array.isArray(e.options),c=e=>({...e,className:s().option,formattedTitle:e.formattedTitle||[e.primaryName,e.name].filter(e=>e).join(": ")}),u=e=>{let{options:t,...n}=e,o=null==t?void 0:t.map(e=>l(e)?{...e,options:e.options.map(c)}:c(e));return(0,r.jsx)(i.WPr,{options:o,filterOption:(e,t)=>{var n,r;return(null==t?void 0:null===(n=t.formattedTitle)||void 0===n?void 0:n.toLowerCase().includes(e.toLowerCase()))||(null==t?void 0:null===(r=t.value)||void 0===r?void 0:r.toLowerCase().includes(e.toLowerCase()))||!1},optionFilterProp:"label",autoFocus:!0,variant:"borderless",optionRender:a,styles:{popup:{root:{minWidth:"500px"}}},className:"w-full p-0","data-testid":"taxonomy-select",...n})}},34929:function(e,t,n){"use strict";var r=n(24246),i=n(64925),o=n.n(i),s=n(27378),a=n(16134),l=n(30002),c=n(28079),u=n(57072);let d=()=>{let{isLoading:e}=(0,c.fd)(),t=(0,a.C)(c.U3),{isLoading:n}=(0,u.MO)(),r=(0,a.C)(u.qb),{isLoading:i}=(0,l.te)();return{dataUses:t,dataSubjects:(0,a.C)(l.ZL),dataCategories:r,isLoading:e||n||i}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:n,isLoading:i}=d(),a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},l=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=t(e);if(!r)return{};let i=t(a(e,n)),o=!!r.parent_key;return{name:r.name||void 0,primaryName:o&&(null==i?void 0:i.name)!==r.name&&(null==i?void 0:i.name)||void 0}},c=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:i,primaryName:o}=l(e,t,n);return i?o?(0,r.jsxs)(s.Fragment,{children:[(0,r.jsxs)("strong",{children:[o,":"]})," ",i]},e):(0,r.jsx)("strong",{children:i},e):e},u=t=>o()(e,{fides_key:t}),p=e=>o()(t,{fides_key:e}),f=e=>o()(n,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:u,getDataUseDisplayName:e=>c(e,u,1),getDataUseDisplayNameProps:e=>l(e,u,1),getDataCategories:()=>t,getDataCategoryByKey:p,getDataCategoryDisplayName:e=>c(e,p,2),getDataCategoryDisplayNameProps:e=>l(e,p,2),getDataSubjects:()=>n,getDataSubjectByKey:f,getDataSubjectDisplayName:e=>{let t=f(e);return t?t.name:e},getPrimaryKey:a,isLoading:i}}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return c}});var r=n(24246),i=n(20595),o=n(79894),s=n.n(o),a=n(27378);let{Text:l}=i.AntTypography,c=e=>{let{items:t,...n}=e,o=(0,a.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let o=n===t.length-1,a={...e},c=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,r.jsx)(l,{style:{color:"inherit",maxWidth:o?void 0:400},ellipsis:!o,id:o?"breadcrumb-current-page":void 0,children:a.title})),c)?a.title=(0,r.jsx)(i.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,r.jsx)(s(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,r.jsx)(i.zrq,{items:o,...n})}},9270:function(e,t,n){"use strict";n.d(t,{S:function(){return o}});var r=n(27378),i=n(36866);let o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,i.h)(e),{pageIndex:n,pageSize:o,updatePageIndex:s,updatePageSize:a,pageSizeOptions:l,showSizeChanger:c}=t,u=(0,r.useMemo)(()=>({current:n,pageSize:o,showSizeChanger:c,pageSizeOptions:l.map(String),onChange:s,onShowSizeChange:(e,t)=>{a(t)}}),[n,o,c,l,s,a]);return{...t,paginationProps:u}}},37059:function(e,t,n){"use strict";n.d(t,{$h:function(){return j},Ak:function(){return v},Av:function(){return R},EY:function(){return p},Fp:function(){return C},QC:function(){return S},RV:function(){return w},S0:function(){return P},Tj:function(){return m},Ud:function(){return a},Vr:function(){return h},WJ:function(){return c},mL:function(){return _},mi:function(){return y},nP:function(){return d},nS:function(){return f},rs:function(){return u},sX:function(){return g},ut:function(){return x},vc:function(){return N},wi:function(){return l}});var r=n(78780),i=n(16394),o=n(39449),s=n(98145);let{useGetAggregateMonitorResultsQuery:a,useGetDiscoveredSystemAggregateQuery:l,useGetDiscoveredAssetsQuery:c,useAddMonitorResultSystemsMutation:u,useIgnoreMonitorResultSystemsMutation:d,useAddMonitorResultAssetsMutation:p,useIgnoreMonitorResultAssetsMutation:f,useRestoreMonitorResultAssetsMutation:m,useUpdateAssetsSystemMutation:g,useUpdateAssetsDataUseMutation:v,useUpdateAssetsMutation:h,useGetConsentBreakdownQuery:y,useGetWebsiteMonitorResourceFiltersQuery:x,useGetInProgressMonitorTasksQuery:j,useRetryMonitorTaskMutation:_,useDismissMonitorTaskMutation:S,useUndismissMonitorTaskMutation:b,useGetMonitorTreeQuery:T,useLazyGetMonitorTreeQuery:w,useGetMonitorFieldsQuery:C,useGetMonitorConfigQuery:N,useGetDatastoreFiltersQuery:P,useClassifyStagedResourcesMutation:R}=r.u.injectEndpoints({endpoints:e=>({getAggregateMonitorResults:e.query({query:e=>{let{page:t=1,size:n=20,search:r}=e;return{url:"/plus/discovery-monitor/aggregate-results",params:{page:t,size:n,search:r,diff_status:"addition"}}},providesTags:["Discovery Monitor Results"]}),getMonitorConfig:e.query({query:e=>{let{monitor_config_id:t}=e;return{url:"/plus/discovery-monitor/".concat(t)}}}),getDatastoreFilters:e.query({query:e=>{let{monitor_config_id:t}=e;return{url:"/plus/filters/datastore_monitor_resources/?monitor_config_id=".concat(t)}}}),getMonitorTree:e.query({query:e=>{let{page:t=1,size:n=20,monitor_config_id:r,staged_resource_urn:i}=e;return{url:"/plus/discovery-monitor/".concat(r,"/tree").concat(i?"?staged_resource_urn=".concat(i):""),params:{page:t,size:n}}}}),getMonitorFields:e.query({query:e=>{let{page:t=1,size:n=20,monitor_config_id:r,search:o,diff_status:s,confidence_score:a,...l}=e,c=(0,i.$J)({...l,...o?{search:[o]}:{},...s?{diff_status:s}:{},...a?{confidence_score:a}:{}});return{url:"/plus/discovery-monitor/".concat(r,"/fields?").concat(null==c?void 0:c.toString()),params:{page:t,size:n}}},providesTags:["Monitor Field Results"]}),getDiscoveredSystemAggregate:e.query({query:e=>{let{key:t,resolved_system_id:n,page:r=1,size:i=20,search:o,diff_status:s}=e;return{url:"/plus/discovery-monitor/system-aggregate-results",params:{monitor_config_id:t,resolved_system_id:n,page:r,size:i,search:o,diff_status:s}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredAssets:e.query({query:e=>{let{key:t,system:n,page:r=1,size:a=20,search:l,diff_status:c=[o.LL.ADDITION],sort_by:u=[s.r6.NAME],sort_asc:d=!0,resource_type:p,data_uses:f,locations:m,consent_aggregated:g}=e,v=Array.isArray(u)?u:[u],h=(0,i.$J)({sort_by:v,resource_type:p,data_uses:f,locations:m,consent_aggregated:g});return{url:"/plus/discovery-monitor/".concat(t,"/results?").concat(h.toString()),params:{resolved_system_id:n,page:r,size:a,search:l,diff_status:c,sort_asc:d}}},providesTags:()=>["Discovery Monitor Results"]}),addMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:n}=e,r=(0,i.du)(n,"resolved_system_ids");return{url:"/plus/discovery-monitor/".concat(t,"/promote"),method:"POST",params:r?new URLSearchParams(r):new URLSearchParams}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:n}=e,r=(0,i.du)(n,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(t,"/mute?").concat(r)}},invalidatesTags:["Discovery Monitor Results"]}),addMonitorResultAssets:e.mutation({query:e=>{var t;let n=new URLSearchParams;return null===(t=e.urnList)||void 0===t||t.forEach(e=>n.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/promote?".concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultAssets:e.mutation({query:e=>({method:"POST",url:"/plus/discovery-monitor/mute",body:{staged_resource_urns:e.urnList}}),invalidatesTags:["Discovery Monitor Results","Monitor Field Results"]}),restoreMonitorResultAssets:e.mutation({query:e=>{var t;let n=new URLSearchParams({status_to_set:o.LL.ADDITION});return null===(t=e.urnList)||void 0===t||t.forEach(e=>n.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/un-mute?".concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),updateAssetsSystem:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.urnList.map(t=>({urn:t,user_assigned_system_key:e.systemKey}))}),invalidatesTags:["Discovery Monitor Results","System Assets"]}),updateAssetsDataUse:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.urnList.map(t=>({urn:t,user_assigned_data_uses:e.dataUses}))}),invalidatesTags:["Discovery Monitor Results"]}),updateAssets:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.assets}),invalidatesTags:["Discovery Monitor Results"]}),getConsentBreakdown:e.query({query:e=>{let{stagedResourceUrn:t,statuses:n,page:r=1,size:i=20}=e,o=new URLSearchParams;return o.append("page",String(r)),o.append("size",String(i)),n.forEach(e=>{o.append("status",e)}),{url:"/plus/discovery-monitor/staged_resource/".concat(encodeURIComponent(t),"/consent"),params:o}}}),getWebsiteMonitorResourceFilters:e.query({query:e=>{let{monitor_config_id:t,resolved_system_id:n,diff_status:r=[o.LL.ADDITION],search:s,resource_type:a,data_uses:l,locations:c,consent_aggregated:u}=e,d={monitor_config_id:t,resolved_system_id:n,diff_status:r};s&&(d.search=s);let p=(0,i.$J)({resource_type:a,data_uses:l,locations:c,consent_aggregated:u}).toString();return{url:p?"/plus/filters/website_monitor_resources?".concat(p):"/plus/filters/website_monitor_resources",params:d}},providesTags:["Discovery Monitor Results"]}),getInProgressMonitorTasks:e.query({query:e=>{let{page:t=1,size:n=20,search:r,task_types:i,statuses:o,return_dismissed:s=!1}=e,a=new URLSearchParams({page:t.toString(),size:n.toString(),return_dismissed:s.toString()});return r&&a.append("search",r),(null==i?void 0:i.length)&&i.forEach(e=>a.append("action_type",e)),(null==o?void 0:o.length)&&o.forEach(e=>a.append("status",e)),{url:"/plus/discovery-monitor/tasks?".concat(a.toString())}},providesTags:["Monitor Tasks"]}),retryMonitorTask:e.mutation({query:e=>{let{taskId:t}=e;return{url:"/plus/discovery-monitor/tasks/".concat(t,"/retry"),method:"POST"}},invalidatesTags:["Monitor Tasks"]}),dismissMonitorTask:e.mutation({query:e=>{let{taskId:t}=e;return{url:"/plus/discovery-monitor/tasks/".concat(t,"/dismissed"),method:"POST"}},invalidatesTags:["Monitor Tasks"]}),undismissMonitorTask:e.mutation({query:e=>{let{taskId:t}=e;return{url:"/plus/discovery-monitor/tasks/".concat(t,"/dismissed"),method:"DELETE"}},invalidatesTags:["Monitor Tasks"]}),classifyStagedResources:e.mutation({query:e=>{let{monitor_config_key:t,...n}=e;return{url:"/plus/discovery-monitor/".concat(t,"/classify"),method:"POST",body:n}},invalidatesTags:["Monitor Field Results"]})})})},98145:function(e,t,n){"use strict";n.d(t,{EI:function(){return l},LM:function(){return p},Vq:function(){return d},X1:function(){return u},r6:function(){return s},vQ:function(){return a}});var r,i,o,s,a,l,c=n(39449);let u={[c.lg.WITH_CONSENT]:"Consent respected",[c.lg.WITHOUT_CONSENT]:"Consent ignored",[c.lg.EXEMPT]:"Exempt",[c.lg.UNKNOWN]:"Unknown",[c.lg.PRE_CONSENT]:"Pre-Consent",[c.lg.CMP_ERROR]:"CMP failure",[c.lg.NOT_APPLICABLE]:"Not applicable"},d={[c.lg.WITH_CONSENT]:"Asset was detected after the user gave consent",[c.lg.WITHOUT_CONSENT]:"The user explicitly opted out, but this asset still loaded. This is a serious compliance issue and may indicate that consent settings are not being enforced.",[c.lg.EXEMPT]:"Asset is valid regardless of consent",[c.lg.UNKNOWN]:"Did not find consent information for this asset. You may need to re-run the monitor.",[c.lg.PRE_CONSENT]:"Assets loaded before the user had a chance to give consent. This violates opt-in compliance requirements if your CMP is configured for explicit consent.",[c.lg.CMP_ERROR]:"The Consent Management Platform (CMP) was not detected when the service ran. It likely failed to load or wasn't available.",[c.lg.NOT_APPLICABLE]:"No privacy notices apply to this asset"},p=[c.lg.WITHOUT_CONSENT,c.lg.PRE_CONSENT,c.lg.CMP_ERROR];(r=s||(s={})).NAME="name",r.RESOURCE_TYPE="resource_type",r.SYSTEM="system",r.DATA_USES="data_uses",r.LOCATIONS="locations",r.DOMAIN="domain",r.PAGE="page",r.CONSENT_AGGREGATED="consent_aggregated",r.ACTIONS="actions",(i=a||(a={})).SYSTEM_NAME="system_name",i.TOTAL_UPDATES="total_updates",i.DATA_USE="data_use",i.LOCATIONS="locations",i.DOMAINS="domains",i.ACTIONS="actions",(o=l||(l={})).LOCATION="location",o.PAGE="page",o.STATUS="status"},57072:function(e,t,n){"use strict";n.d(t,{Bd:function(){return r.Bd},L5:function(){return r.L5},MO:function(){return r.MO},qb:function(){return r.qb}});var r=n(5785)},12591:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return K}});var r,i,o=n(24246),s=n(20595),a=n(25980),l=n(86677),c=n(27378),u=n(30952),d=n(35287),p=n(812),f=n(17245),m=n(77830),g=n(58754),v=n(9270),h=n(46628),y=n(37059),x=n(70675),j=n(39449),_=n(31883),S=n(98052),b=n.n(S);(r=i||(i={})).LOW="low",r.HIGH="high",r.MANUAL="manual";var T=n(40431);let w=["Attention Required","In Review","Classifying","Approved","Unmonitored","Confirmed","Removed"],C=()=>{let[e,t]=(0,T.v1)("resourceStatus",(0,T.S$)((0,T.km)(w))),[n,r]=(0,T.v1)("confidenceScore",(0,T.S$)((0,T.jx)(Object.values(i)))),[o,s]=(0,T.v1)("dataCategory",(0,T.S$)(T.Oi));return{resourceStatus:e,setResourceStatus:t,confidenceScore:n,setConfidenceScore:r,dataCategory:o,setDataCategory:s,reset:()=>{t(null),r(null),s(null)}}},N=e=>{var t;let{resourceStatus:n,setResourceStatus:r,confidenceScore:a,setConfidenceScore:l,dataCategory:c,setDataCategory:u,reset:d,monitorId:p}=e,{data:f}=(0,y.S0)({monitor_config_id:p});return(0,o.jsx)("div",{className:"rounded-[var(--ant-border-radius)] bg-[var(--ant-color-bg-base)] shadow-md",children:(0,o.jsx)(s.vyj,{size:"middle",className:"p-[var(--ant-padding)]",children:(0,o.jsxs)(s.PPS,{layout:"vertical",children:[(0,o.jsx)(s.PPS.Item,{label:"Status",className:"w-min whitespace-nowrap",children:(0,o.jsx)(s.E_O.Group,{value:n||[],onChange:e=>r(e.length>0?e:null),children:(0,o.jsx)(s.bue,{children:w.map(e=>(0,o.jsx)(s.JGx,{span:24,children:(0,o.jsx)(s.E_O,{value:e,children:e})},e))})})}),(0,o.jsx)(s.PPS.Item,{label:"Confidence Score",className:"w-min whitespace-nowrap",children:(0,o.jsx)(s.E_O.Group,{value:a||[],onChange:e=>l(e.length>0?e:null),children:(0,o.jsx)(s.bue,{children:Object.values(i).map(e=>(0,o.jsx)(s.JGx,{span:24,children:(0,o.jsx)(s.E_O,{value:e,children:b()(e)})},e))})})}),(null==f?void 0:f.data_category)&&(null==f?void 0:null===(t=f.data_category)||void 0===t?void 0:t.length)>0&&(0,o.jsx)(s.PPS.Item,{label:"Data Category",className:"w-min whitespace-nowrap",children:(0,o.jsx)(s.E_O.Group,{value:c||[],onChange:e=>u(e.length>0?e:null),children:(0,o.jsx)(s.bue,{children:f.data_category.map(e=>(0,o.jsx)(s.JGx,{span:24,children:(0,o.jsx)(s.E_O,{value:e,children:b()(e)})},e))})})}),(0,o.jsx)(s.wpx,{onClick:()=>{d()},children:"Clear"})]})})})};var P=n(16394),R=n(79283),I=n(34929),A=e=>{let{...t}=e,{getDataUseDisplayNameProps:n,getDataUses:r}=(0,I.Z)(),i=r(),[a,l]=(0,c.useState)(!1),u=i.map(e=>{let{name:t,primaryName:r}=n(e.fides_key);return{value:e.fides_key,label:(0,o.jsxs)("div",{children:[(0,o.jsx)("strong",{children:r||t}),r&&": ".concat(t)]}),name:t,primaryName:r,description:e.description||""}});return(0,o.jsx)(R.l,{options:u,prefix:(0,o.jsx)(s.wpx,{"aria-label":"Add Data Category",type:"text",size:"small",icon:(0,o.jsx)(s.PJP.mm_,{})}),placeholder:"",suffixIcon:null,classNames:{root:"w-full max-w-full overflow-hidden p-0 cursor-pointer"},variant:"borderless",autoFocus:!1,maxTagCount:"responsive",open:a,onOpenChange:e=>l(e),onSelect:(e,n)=>{t.onSelect&&t.onSelect(e,n),l(!1)},...t})};let k={classifying:{label:"Classifying",color:"blue"},classification_queued:{label:"Classifying",color:"blue"},classification_update:{label:"In Review",color:"nectar"},classification_addition:{label:"In Review",color:"blue"},addition:{label:"Attention Required",color:"blue"},muted:{label:"Unmonitored",color:"nectar"},removal:{label:"Removed",color:"red"},removing:{label:"In Review",color:"nectar"},promoting:{label:"In Review",color:"nectar"},monitored:{label:"Confirmed",color:"nectar"},approved:{label:"Approved",color:"green"}},E=e=>{let{label:t,closable:n,onClose:r,isFromClassifier:i}=e;return(0,o.jsx)(s.j8w,{color:"white",bordered:!0,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},closable:n,onClose:r,style:{marginInlineEnd:"calc((var(--ant-padding-xs) * 0.5))"},icon:i&&(0,o.jsx)(s.QMR,{}),children:(0,o.jsx)(s.lKn,{size:"sm",children:t})})};var M=e=>{var t,n;let{urn:r,classifications:a,name:l,diff_status:c,selected:u,onSelect:d,onSetDataUses:p,user_assigned_data_categories:f,onIgnore:m}=e;return(0,o.jsx)(s.krs.Item,{actions:[a&&a.length>0&&(0,o.jsxs)(s.jqI,{gap:"small",align:"center",className:"pr-[var(--ant-padding-xl)]",children:[(0,o.jsx)(s.HwE,{percent:a.find(e=>e.confidence_score===i.HIGH)?100:25,percentPosition:{align:"start",type:"outer"},strokeColor:a.find(e=>e.confidence_score===i.HIGH)?"var(--ant-color-success-text)":"var(--ant-color-warning-text)",steps:2,showInfo:!1,strokeLinecap:"round",size:[24,8]}),(0,o.jsx)(s.lKn,{size:"sm",type:"secondary",className:"font-normal",children:(0,P.kC)(a.find(e=>e.confidence_score===i.HIGH)?i.HIGH:i.LOW)})]},"progress"),a&&a.length>0&&(0,o.jsx)(s.wpx,{"aria-label":"Approve",icon:(0,o.jsx)(s.PJP.MCw,{}),size:"small"},"approve"),c!==j.LL.MUTED&&(0,o.jsx)(s.wpx,{icon:(0,o.jsx)(s.PJP.uzw,{}),size:"small","aria-label":"Ignore",onClick:()=>m(r)},"ignore"),(0,o.jsx)(s.wpx,{"aria-label":"Reclassify",icon:(0,o.jsx)(s.QMR,{}),size:"small"},"reclassify")],children:(0,o.jsx)(s.krs.Item.Meta,{avatar:(0,o.jsx)(s.E_O,{checked:u,onChange:e=>d&&d(r,e.target.checked)}),title:(0,o.jsx)(s.jqI,{justify:"space-between",children:(0,o.jsxs)(s.jqI,{gap:"small",align:"center",className:"w-full",children:[l,c&&(0,o.jsx)(s.j8w,{bordered:!1,color:k[c].color,className:"font-normal text-[var(--ant-font-size-sm)]",children:k[c].label}),(0,o.jsx)(s.lKn,{size:"sm",type:"secondary",className:"overflow-hidden font-normal",ellipsis:{tooltip:r},children:r})]})}),description:(0,o.jsx)(A,{mode:"tags",value:[...null!==(t=null==a?void 0:a.map(e=>{let{label:t}=e;return t}))&&void 0!==t?t:[],...null!==(n=null==f?void 0:f.map(e=>e))&&void 0!==n?n:[]],tagRender:e=>E({...e,isFromClassifier:!!(null==a?void 0:a.find(t=>t.label===e.value))}),onChange:e=>{p(e.flatMap(e=>(null==a?void 0:a.find(t=>t.label!==e))?[]:[e]),r)}})})},r)};let O="load_more",L="skeleton",D=(e,t)=>e.find(e=>{let{children:n}=e;return n&&!!n.find(e=>e.key.toString()===t)}),q=(e,t)=>e.reduce((e,n)=>{if(n.children){var r;return null!==(r=D(n.children,t))&&void 0!==r?r:q(n.children,t)}return e},null),U=e=>{let{node:t,treeData:n,onLoadMore:r}=e;if(t.key.toString().startsWith(O)){let e=q(n,t.key.toString());return(0,o.jsx)(s.wpx,{type:"link",block:!0,onClick:()=>{(null==e?void 0:e.key)&&r(null==e?void 0:e.key.toString())},className:"p-0",children:"function"==typeof t.title?t.title(t):t.title})}return t.key.toString().startsWith(L)?(0,o.jsx)(s.N_L,{paragraph:!1,title:{width:"80px"},active:!0,children:"function"==typeof t.title?t.title(t):t.title}):(0,o.jsx)(s.lKn,{ellipsis:{tooltip:"function"==typeof t.title?t.title(t):t.title},children:"function"==typeof t.title?t.title(t):t.title})},z=(e,t)=>{var n;let r=e.items.map(e=>({title:e.name,key:e.urn,selectable:e.has_children,icon:()=>{switch(e.resource_type){case"Database":return(0,o.jsx)(s.PJP.ehp,{className:"h-full"});case"Table":return(0,o.jsx)(s.PJP.iA_,{className:"h-full"});case"Field":return(0,o.jsx)(s.PJP.$4y,{className:"h-full"});default:return null}},isLeaf:!e.has_children}));return(null!==(n=null==r?void 0:r.length)&&void 0!==n?n:0)<100?r:[...r,{title:"Load more...",key:"".concat(O,"-").concat(e.page,"-").concat(t),selectable:!1,isLeaf:!0}]},W=(e,t,n)=>e.map(e=>{if(e.key===t){var r,i;return{...e,children:[...null!==(i=null===(r=e.children)||void 0===r?void 0:r.filter(e=>!(e.key.toString().startsWith(O)||e.key.toString().startsWith(L))))&&void 0!==i?i:[],...n]}}return e.children?{...e,children:W(e.children,t,n)}:e}),F=(e,t,n)=>e.map(e=>e.key===t?{...e,children:n}:e.children?{...e,children:F(e.children,t,n)}:e);var H=e=>{let{selectedNodeKeys:t,setSelectedNodeKeys:n,onClickClassifyButton:r}=e,i=decodeURIComponent((0,l.useRouter)().query.monitorId),[a]=(0,y.RV)(),[u,d]=(0,c.useState)({}),[p,f]=(0,c.useState)([]),m=e=>{let t=null==u?void 0:u[e];if(t){let n=t.pageIndex+1;f(t=>W(t,e,[...Array(100)].map((t,n)=>({key:"".concat(L,"-").concat(e,"-").concat(n),title:"SKELETON",isLeaf:!0})))),a({monitor_config_id:i,staged_resource_urn:e,size:100,page:n}).then(t=>{let{data:r}=t;r&&(f(t=>W(t,e,z(r,e))),d({...u,[e]:{pageSize:100,pageIndex:n}}))})}};return(0,c.useEffect)(()=>{(async()=>{let{data:e}=await a({monitor_config_id:i,size:100});e&&p.length<=0&&f(z(e))})()},[f]),(0,o.jsxs)(s.jqI,{gap:"middle",vertical:!0,className:"h-full",children:[(0,o.jsx)(s.lQT,{level:3,className:"sticky top-0",children:"Schema explorer"}),(0,o.jsx)(s.a$q,{loadData:e=>{let{children:t,key:n}=e;return new Promise(e=>{if(t){e();return}a({monitor_config_id:i,staged_resource_urn:n.toString(),size:100}).then(e=>{let{data:t}=e;t&&(f(e=>F(e,n,z(t,n.toString()))),d({...u,[n.toString()]:{pageSize:100,pageIndex:1}}))}),e()})},treeData:p,onSelect:(e,t)=>n(t.selectedNodes.map(e=>{let{key:t}=e;return t})),showIcon:!0,showLine:!0,blockNode:!0,multiple:!0,rootClassName:"h-full overflow-x-hidden",titleRender:e=>(0,o.jsx)(U,{node:e,treeData:p,onLoadMore:m})}),t.length>0&&(0,o.jsxs)(s.jqI,{justify:"space-between",align:"center",children:[(0,o.jsxs)("span",{children:[t.length," selected"]}),(0,o.jsx)(s.wpx,{"aria-label":"Classify Selected Nodes",icon:(0,o.jsx)(s.QMR,{}),size:"small",onClick:r})]})]})};let G={classifying:{label:"Classifying",color:"blue"},classification_queued:{label:"Classifying",color:"blue"},classification_update:{label:"In Review",color:"nectar"},classification_addition:{label:"In Review",color:"blue"},addition:{label:"Attention Required",color:"blue"},muted:{label:"Unmonitored",color:"nectar"},removal:{label:"Removed",color:"red"},removing:{label:"In Review",color:"nectar"},promoting:{label:"In Review",color:"nectar"},monitored:{label:"Confirmed",color:"nectar"},approved:{label:"Approved",color:"green"}},$=e=>Object.values(j.LL).flatMap(t=>G[t].label===e?[t]:[]);var J=()=>{let e=decodeURIComponent((0,l.useRouter)().query.monitorId),{paginationProps:t,pageIndex:n,pageSize:r,resetPagination:i}=(0,v.S)({defaultPageSize:25}),a=(0,f.Rx)(),{resourceStatus:j,confidenceScore:S,...b}=C(),{data:T}=(0,y.vc)({monitor_config_id:e}),[w,P]=(0,c.useState)([]),[R,I]=(0,c.useState)([]),{data:A}=(0,y.Fp)({monitor_config_id:e,size:r,page:n,staged_resource_urn:w.map(e=>e.toString()),search:a.searchProps.value,diff_status:j?j.flatMap($):void 0,confidence_score:S||void 0}),k=(0,s.pmc)(),[E]=(0,y.Av)(),[O]=(0,x.NA)(),[L]=(0,y.nS)(),{errorAlert:D}=(0,f.VY)(),[q]=(0,x.Hf)(),U=async(t,n)=>{let r=await O({monitor_config_id:e,staged_resource_urn:n,user_assigned_data_categories:t});(0,_.D4)(r)&&D((0,p.e$)(r.error))},z=async e=>{let t=await L({urnList:[e]});(0,_.D4)(t)&&D((0,p.e$)(t.error))},W=async e=>{let t=await q({staged_resource_urns:e});(0,_.D4)(t)&&D((0,p.e$)(t.error))},F=async()=>{let t=await E({monitor_config_key:e,staged_resource_urns:w.flatMap(e=>"bigint"!=typeof e?[e.toString()]:[])});if((0,_.D4)(t)){k((0,h.Vo)((0,p.e$)(t.error)));return}k((0,h.t5)("Classifying initiated"))};return(0,c.useEffect)(()=>{i()},[j,S,w,a.searchQuery]),(0,o.jsxs)(d.Z,{title:"Action center - Discovered assets by system",mainProps:{overflow:"hidden"},children:[(0,o.jsx)(g.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:m.vi},{title:e}],isSticky:!1}),(0,o.jsxs)(s.LgQ,{className:"h-[calc(100%-48px)] overflow-hidden",children:[(0,o.jsx)(s.LgQ.Panel,{defaultSize:250,style:{paddingRight:"var(--ant-padding-md)"},children:(0,o.jsx)(H,{selectedNodeKeys:w,setSelectedNodeKeys:P,onClickClassifyButton:F})}),(0,o.jsx)(s.LgQ.Panel,{style:{paddingLeft:"var(--ant-padding-md)"},children:(0,o.jsxs)(s.jqI,{vertical:!0,gap:"middle",className:"h-full overflow-hidden",children:[(0,o.jsxs)(s.jqI,{justify:"space-between",children:[(0,o.jsx)(s.lQT,{level:2,children:"Monitor results"}),(0,o.jsx)(s.jqI,{align:"center",children:(null==T?void 0:T.last_monitored)&&(0,o.jsxs)(s.lKn,{type:"secondary",children:["Last scan:"," ",new Date(null==T?void 0:T.last_monitored).toLocaleString()]})})]}),(0,o.jsxs)(s.jqI,{justify:"space-between",children:[(0,o.jsx)(u.f,{value:a.searchQuery,onChange:a.updateSearch,placeholder:"Search"}),(0,o.jsxs)(s.jqI,{gap:"small",children:[(0,o.jsx)(s.S0p,{trigger:["click"],popupRender:()=>(0,o.jsx)(N,{resourceStatus:j,confidenceScore:S,...b,monitorId:e}),children:(0,o.jsx)(s.wpx,{icon:(0,o.jsx)(s.PJP._ME,{}),iconPosition:"end",children:"Filter"})}),(0,o.jsx)(s.S0p,{menu:{items:[{key:"promote",onClick:()=>W(R),label:"Promote"}]},disabled:R.length<=0,children:(0,o.jsx)(s.wpx,{type:"primary",icon:(0,o.jsx)(s.PJP._ME,{}),iconPosition:"end",children:"Actions"})})]})]}),(0,o.jsx)(s.krs,{dataSource:null==A?void 0:A.items,className:"overflow-scroll",renderItem:e=>M({...e,selected:R.includes(e.urn),onSelect:(e,t)=>t?I([...R,e]):I(R.filter(t=>t!==e)),onSetDataUses:U,onIgnore:z})}),(0,o.jsx)(s.B7X,{...t,showSizeChanger:!1,total:(null==A?void 0:A.total)||0})]})})]})]})};let Q=()=>(0,o.jsxs)(o.Fragment,{children:["Attempting to access the alpha version of monitor results without setting the ",(0,o.jsx)(s.lKn,{code:!0,children:"alphaFullActionCenter"})," flag"]});var K=()=>{let{flags:e}=(0,a.hz)();return e.alphaFullActionCenter?(0,o.jsx)(J,{}):(0,o.jsx)(s.ux6,{status:"error",title:(0,o.jsx)(Q,{})})}},31883:function(e,t,n){"use strict";n.d(t,{Bw:function(){return r.Bw},D4:function(){return r.D4}});var r=n(19043)},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}}},function(e){e.O(0,[431,8765,9278,5163,7245,2888,9774,179],function(){return e(e.s=19174)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2423],{56632:function(a,e,n){var t=n(89278),i=n(80068),s=n(50098);a.exports=function(a){return function(e,n,o){var r=Object(e);if(!i(e)){var _=t(n,3);e=s(e),n=function(a){return _(r[a],a,r)}}var l=a(e,n,o);return l>-1?r[_?e[l]:l]:void 0}}},64925:function(a,e,n){var t=n(56632)(n(66259));a.exports=t},66259:function(a,e,n){var t=n(95372),i=n(89278),s=n(47991),o=Math.max;a.exports=function(a,e,n){var r=null==a?0:a.length;if(!r)return -1;var _=null==n?0:s(n);return _<0&&(_=o(r+_,0)),t(a,i(e,3),_)}},94919:function(a,e,n){var t=n(91936),i=1/0;a.exports=function(a){return a?(a=t(a))===i||a===-i?(a<0?-1:1)*17976931348623157e292:a==a?a:0:0===a?a:0}},47991:function(a,e,n){var t=n(94919);a.exports=function(a){var e=t(a),n=e%1;return e==e?n?e-n:e:0}},86850:function(a,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/[monitorId]",function(){return n(12109)}])},26089:function(a,e,n){"use strict";var t=n(24246),i=n(20595),s=n(99830),o=n.n(s);e.Z=a=>{let{onClick:e,children:n}=a;return(0,t.jsx)(i.wpx,{onClick:e,type:"link",role:"link",size:"small",className:o().toastLink,children:n})}},8411:function(a,e,n){"use strict";n.d(e,{NA:function(){return s},Z8:function(){return i}});var t=n(39449);let i={[t._F.ER]:"Eritrea",[t._F.DJ]:"Djibouti",[t._F.MR]:"Mauritania",[t._F.NA]:"Namibia",[t._F.GH]:"Ghana",[t._F.SS]:"South Sudan",[t._F.SC]:"Seychelles",[t._F.IO]:"British Indian Ocean Territory",[t._F.GQ]:"Equatorial Guinea",[t._F.AO]:"Angola",[t._F.CG]:"Republic of the Congo",[t._F.BW]:"Botswana",[t._F.BI]:"Burundi",[t._F.DZ]:"Algeria",[t._F.TD]:"Chad",[t._F.NG]:"Nigeria",[t._F.TZ]:"Tanzania",[t._F.EH]:"Western Sahara",[t._F.SN]:"Senegal",[t._F.LR]:"Liberia",[t._F.ZA]:"South Africa",[t._F.CV]:"Cape Verde",[t._F.GM]:"Gambia",[t._F.SD]:"Sudan",[t._F.KM]:"Comoros",[t._F.SZ]:"Eswatini",[t._F.UG]:"Uganda",[t._F.MG]:"Madagascar",[t._F.RW]:"Rwanda",[t._F.CD]:"DR Congo",[t._F.CM]:"Cameroon",[t._F.SH]:"Saint Helena, Ascension and Tristan da Cunha",[t._F.TG]:"Togo",[t._F.MU]:"Mauritius",[t._F.NE]:"Niger",[t._F.BJ]:"Benin",[t._F.EG]:"Egypt",[t._F.LS]:"Lesotho",[t._F.ET]:"Ethiopia",[t._F.MA]:"Morocco",[t._F.YT]:"Mayotte",[t._F.BF]:"Burkina Faso",[t._F.RE]:"R\xe9union",[t._F.ST]:"S\xe3o Tom\xe9 and Pr\xedncipe",[t._F.CF]:"Central African Republic",[t._F.MZ]:"Mozambique",[t._F.MW]:"Malawi",[t._F.ML]:"Mali",[t._F.ZM]:"Zambia",[t._F.LY]:"Libya",[t._F.GW]:"Guinea-Bissau",[t._F.SO]:"Somalia",[t._F.KE]:"Kenya",[t._F.GN]:"Guinea",[t._F.ZW]:"Zimbabwe",[t._F.TN]:"Tunisia",[t._F.SL]:"Sierra Leone",[t._F.GA]:"Gabon",[t._F.CI]:"Ivory Coast",[t._F.JO]:"Jordan",[t._F.PK]:"Pakistan",[t._F.KP]:"North Korea",[t._F.MO]:"Macau",[t._F.AM]:"Armenia",[t._F.SY]:"Syria",[t._F.TJ]:"Tajikistan",[t._F.SA]:"Saudi Arabia",[t._F.KR]:"South Korea",[t._F.NP]:"Nepal",[t._F.PH]:"Philippines",[t._F.IQ]:"Iraq",[t._F.LB]:"Lebanon",[t._F.MN]:"Mongolia",[t._F.PS]:"Palestine",[t._F.YE]:"Yemen",[t._F.JP]:"Japan",[t._F.KZ]:"Kazakhstan",[t._F.LK]:"Sri Lanka",[t._F.MM]:"Myanmar",[t._F.KG]:"Kyrgyzstan",[t._F.CN]:"China",[t._F.AF]:"Afghanistan",[t._F.OM]:"Oman",[t._F.IN]:"India",[t._F.LA]:"Laos",[t._F.UZ]:"Uzbekistan",[t._F.MV]:"Maldives",[t._F.ID]:"Indonesia",[t._F.VN]:"Vietnam",[t._F.MY]:"Malaysia",[t._F.TW]:"Taiwan",[t._F.KH]:"Cambodia",[t._F.AE]:"United Arab Emirates",[t._F.HK]:"Hong Kong",[t._F.GE]:"Georgia (Country)",[t._F.BD]:"Bangladesh",[t._F.KW]:"Kuwait",[t._F.TM]:"Turkmenistan",[t._F.QA]:"Qatar",[t._F.BH]:"Bahrain",[t._F.BN]:"Brunei",[t._F.TH]:"Thailand",[t._F.BT]:"Bhutan",[t._F.SG]:"Singapore",[t._F.IL]:"Israel",[t._F.AZ]:"Azerbaijan",[t._F.TL]:"Timor-Leste",[t._F.IR]:"Iran",[t._F.TR]:"Turkey",[t._F.MK]:"North Macedonia",[t._F.IE]:"Ireland",[t._F.DK]:"Denmark",[t._F.SK]:"Slovakia",[t._F.MD]:"Moldova",[t._F.AX]:"\xc5land Islands",[t._F.PL]:"Poland",[t._F.BA]:"Bosnia and Herzegovina",[t._F.SM]:"San Marino",[t._F.CZ]:"Czechia",[t._F.EE]:"Estonia",[t._F.XK]:"Kosovo",[t._F.FO]:"Faroe Islands",[t._F.SJ]:"Svalbard and Jan Mayen",[t._F.GG]:"Guernsey",[t._F.FR]:"France",[t._F.NL]:"Netherlands",[t._F.FI]:"Finland",[t._F.PT]:"Portugal",[t._F.DE]:"Germany",[t._F.MT]:"Malta",[t._F.JE]:"Jersey",[t._F.IS]:"Iceland",[t._F.ES]:"Spain",[t._F.GI]:"Gibraltar",[t._F.NO]:"Norway",[t._F.CY]:"Cyprus",[t._F.RS]:"Serbia",[t._F.LT]:"Lithuania",[t._F.MC]:"Monaco",[t._F.LU]:"Luxembourg",[t._F.UA]:"Ukraine",[t._F.IM]:"Isle of Man",[t._F.RO]:"Romania",[t._F.BE]:"Belgium",[t._F.SE]:"Sweden",[t._F.ME]:"Montenegro",[t._F.LV]:"Latvia",[t._F.VA]:"Vatican City",[t._F.AT]:"Austria",[t._F.AL]:"Albania",[t._F.LI]:"Liechtenstein",[t._F.GR]:"Greece",[t._F.IT]:"Italy",[t._F.AD]:"Andorra",[t._F.GB]:"United Kingdom",[t._F.RU]:"Russia",[t._F.SI]:"Slovenia",[t._F.BY]:"Belarus",[t._F.CH]:"Switzerland",[t._F.HU]:"Hungary",[t._F.BG]:"Bulgaria",[t._F.HR]:"Croatia",[t._F.TC]:"Turks and Caicos Islands",[t._F.CW]:"Cura\xe7ao",[t._F.GP]:"Guadeloupe",[t._F.UM]:"United States Minor Outlying Islands",[t._F.GT]:"Guatemala",[t._F.PM]:"Saint Pierre and Miquelon",[t._F.BQ]:"Caribbean Netherlands",[t._F.GL]:"Greenland",[t._F.SX]:"Sint Maarten",[t._F.PA]:"Panama",[t._F.AW]:"Aruba",[t._F.MQ]:"Martinique",[t._F.AG]:"Antigua and Barbuda",[t._F.BM]:"Bermuda",[t._F.CU]:"Cuba",[t._F.GD]:"Grenada",[t._F.NI]:"Nicaragua",[t._F.LC]:"Saint Lucia",[t._F.KN]:"Saint Kitts and Nevis",[t._F.DO]:"Dominican Republic",[t._F.VC]:"Saint Vincent and the Grenadines",[t._F.BZ]:"Belize",[t._F.HT]:"Haiti",[t._F.JM]:"Jamaica",[t._F.BS]:"Bahamas",[t._F.MX]:"Mexico",[t._F.MF]:"Saint Martin",[t._F.SV]:"El Salvador",[t._F.BL]:"Saint Barth\xe9lemy",[t._F.AI]:"Anguilla",[t._F.MS]:"Montserrat",[t._F.VG]:"British Virgin Islands",[t._F.BB]:"Barbados",[t._F.HN]:"Honduras",[t._F.KY]:"Cayman Islands",[t._F.DM]:"Dominica",[t._F.TT]:"Trinidad and Tobago",[t._F.CR]:"Costa Rica",[t._F.SR]:"Suriname",[t._F.CX]:"Christmas Island",[t._F.WS]:"Samoa",[t._F.PF]:"French Polynesia",[t._F.AS]:"American Samoa",[t._F.NC]:"New Caledonia",[t._F.TK]:"Tokelau",[t._F.PW]:"Palau",[t._F.KI]:"Kiribati",[t._F.VU]:"Vanuatu",[t._F.PN]:"Pitcairn Islands",[t._F.CK]:"Cook Islands",[t._F.FJ]:"Fiji",[t._F.PG]:"Papua New Guinea",[t._F.MP]:"Northern Mariana Islands",[t._F.NU]:"Niue",[t._F.TV]:"Tuvalu",[t._F.NF]:"Norfolk Island",[t._F.TO]:"Tonga",[t._F.FM]:"Micronesia",[t._F.SB]:"Solomon Islands",[t._F.NR]:"Nauru",[t._F.WF]:"Wallis and Futuna",[t._F.GU]:"Guam",[t._F.AU]:"Australia",[t._F.NZ]:"New Zealand",[t._F.MH]:"Marshall Islands",[t._F.CC]:"Cocos (Keeling) Islands",[t._F.VE]:"Venezuela",[t._F.PY]:"Paraguay",[t._F.BR]:"Brazil",[t._F.CO]:"Colombia",[t._F.PE]:"Peru",[t._F.CL]:"Chile",[t._F.UY]:"Uruguay",[t._F.AR]:"Argentina",[t._F.GY]:"Guyana",[t._F.BO]:"Bolivia",[t._F.GF]:"French Guiana",[t._F.EC]:"Ecuador",[t._F.FK]:"Falkland Islands",[t._F.US_AL]:"Alabama",[t._F.US_AK]:"Alaska",[t._F.US_AZ]:"Arizona",[t._F.US_AR]:"Arkansas",[t._F.US_CA]:"California",[t._F.US_CO]:"Colorado",[t._F.US_CT]:"Connecticut",[t._F.US_DE]:"Delaware",[t._F.US_DC]:"District of Columbia (DC)",[t._F.US_FL]:"Florida",[t._F.US_GA]:"Georgia",[t._F.US_HI]:"Hawaii",[t._F.US_ID]:"Idaho",[t._F.US_IL]:"Illinois",[t._F.US_IN]:"Indiana",[t._F.US_IA]:"Iowa",[t._F.US_KS]:"Kansas",[t._F.US_KY]:"Kentucky",[t._F.US_LA]:"Louisiana",[t._F.US_ME]:"Maine",[t._F.US_MD]:"Maryland",[t._F.US_MA]:"Massachusetts",[t._F.US_MI]:"Michigan",[t._F.US_MN]:"Minnesota",[t._F.US_MS]:"Mississippi",[t._F.US_MO]:"Missouri",[t._F.US_MT]:"Montana",[t._F.US_NE]:"Nebraska",[t._F.US_NV]:"Nevada",[t._F.US_NH]:"New Hampshire",[t._F.US_NJ]:"New Jersey",[t._F.US_NM]:"New Mexico",[t._F.US_NY]:"New York",[t._F.US_NC]:"North Carolina",[t._F.US_ND]:"North Dakota",[t._F.US_OH]:"Ohio",[t._F.US_OK]:"Oklahoma",[t._F.US_OR]:"Oregon",[t._F.US_PA]:"Pennsylvania",[t._F.US_PR]:"Puerto Rico",[t._F.US_RI]:"Rhode Island",[t._F.US_SC]:"South Carolina",[t._F.US_SD]:"South Dakota",[t._F.US_TN]:"Tennessee",[t._F.US_TX]:"Texas",[t._F.US_UT]:"Utah",[t._F.US_VA]:"Virginia",[t._F.US_VI]:"United States Virgin Islands",[t._F.US_VT]:"Vermont",[t._F.US_WA]:"Washington",[t._F.US_WV]:"West Virginia",[t._F.US_WI]:"Wisconsin",[t._F.US_WY]:"Wyoming",[t._F.CA_AB]:"Alberta",[t._F.CA_BC]:"British Columbia",[t._F.CA_MB]:"Manitoba",[t._F.CA_NB]:"New Brunswick",[t._F.CA_NL]:"Newfoundland and Labrador",[t._F.CA_NS]:"Nova Scotia",[t._F.CA_ON]:"Ontario",[t._F.CA_PE]:"Prince Edward Island",[t._F.CA_QC]:"Quebec",[t._F.CA_SK]:"Saskatchewan",[t._F.CA_NT]:"Northwest Territories",[t._F.CA_NU]:"Nunavut",[t._F.CA_YT]:"Yukon",[t._F.CA]:"Canada",[t._F.US]:"United States",[t._F.MEXICO_CENTRAL_AMERICA]:"Mexico and Central America",[t._F.CARIBBEAN]:"Caribbean",[t._F.EEA]:"European Economic Area (EEA)",[t._F.NON_EEA]:"Non European Economic Area",[t._F.GLOBAL]:"Global"},s=new Map(Object.entries(i));Object.entries(i).map(a=>({value:a[0],label:a[1]}))},25415:function(a,e,n){"use strict";n.d(e,{a:function(){return s}});var t=n(24246);let{Text:i}=n(20595).AntTypography,s=a=>{let{count:e}=a;return(0,t.jsx)(i,{size:"sm",strong:!0,"data-testid":"selected-count",children:"".concat(e," selected")})}},14908:function(a,e,n){"use strict";var t=n(86677),i=n(27378);let s=a=>a.startsWith("#")?a.slice(1):a;e.Z=a=>{let{tabKeys:e,initialTab:n}=a,o=(0,t.useRouter)(),r=o.asPath.split("#")[1]||e[0],[_,l]=(0,i.useState)(r);return(0,i.useEffect)(()=>{n&&e.includes(n)&&l(n)},[n,e,o.isReady]),{activeTab:_,onTabChange:(0,i.useCallback)(async a=>{if(!e.includes(a)){await o.replace({pathname:o.pathname,query:o.query,hash:void 0}),l(e[0]);return}o.isReady&&(await o.replace({pathname:o.pathname,query:o.query,hash:s(a)},void 0,{shallow:!0}),l(a))},[o,e]),setActiveTab:l}}},9320:function(a,e,n){"use strict";n.d(e,{_:function(){return s}});var t=n(24246),i=n(26089);let s=(a,e)=>(0,t.jsxs)(t.Fragment,{children:[a," ",e&&(0,t.jsx)(i.Z,{onClick:e,children:"View"})]})},88708:function(a,e,n){"use strict";n.d(e,{A:function(){return i}});var t,i,s=n(27378),o=n(14908),r=n(39449);(t=i||(i={})).ATTENTION_REQUIRED="attention-required",t.ADDED="added",t.IGNORED="ignored",e.Z=a=>{let{activeTab:e,onTabChange:n}=(0,o.Z)({tabKeys:Object.values(i)}),t=(0,s.useMemo)(()=>[{label:"Attention required",params:{diff_status:[r.LL.ADDITION],system:a},hash:"attention-required"},{label:"Added",params:{diff_status:[r.LL.MONITORED]},hash:"added"},{label:"Ignored",params:{diff_status:[r.LL.MUTED],system:a},hash:"ignored"}],[a]),{diff_status:_,system:l}=(0,s.useMemo)(()=>{var a;return null!==(a=t.find(a=>a.hash===e))&&void 0!==a?a:t[0]},[t,e]).params,F=(0,s.useMemo)(()=>_.includes(r.LL.MONITORED),[_]);return{filterTabs:t,activeTab:e,onTabChange:n,activeParams:(0,s.useMemo)(()=>a?{diff_status:_,system:l}:{diff_status:_},[a,_,l]),actionsDisabled:F}}},78238:function(a,e,n){"use strict";n.d(e,{g:function(){return t}});let t=["essential","functional.service.improve","personalize","analytics","marketing.advertising.first_party.targeted","marketing.advertising.third_party.targeted"];e.Z=a=>t.includes(a)},12109:function(a,e,n){"use strict";n.r(e),n.d(e,{default:function(){return G}});var t=n(24246),i=n(86677),s=n(35287),o=n(77830),r=n(58754),_=n(20595),l=n(25415),F=n(39449),d=n(30952),u=n(27378),c=n(812),S=n(8125),m=n(46628),h=n(37059),v=n(98145),y=n(9320),C=n(88708),A=n(8411),M=n(26070),p=n(3110),g=n(54762);let N=a=>{let{monitorId:e,system:n,allowIgnore:s,onTabChange:r}=a,[l,{isLoading:F}]=(0,h.rs)(),[d,{isLoading:u}]=(0,h.nP)(),S=(0,i.useRouter)(),v=(0,_.pmc)(),A=F||u,{id:M,name:p,system_key:g,total_updates:N}=n,b=async()=>{let a=await l({monitor_config_key:e,resolved_system_ids:[M]});if((0,c.D4)(a))v((0,m.Vo)((0,c.e$)(a.error)));else{let a="".concat(o.So,"/configure/").concat(g,"#assets");v((0,m.t5)((0,y._)(g?"".concat(N," assets from ").concat(p," have been added to the system inventory."):"".concat(p," and ").concat(N," assets have been added to the system inventory. ").concat(p," is now configured for consent."),g?()=>S.push(a):void 0)))}},I=async()=>{let a=await d({monitor_config_key:e,resolved_system_ids:[M||o.Kl]});(0,c.D4)(a)?v((0,m.Vo)((0,c.e$)(a.error))):v((0,m.t5)((0,y._)(p?"".concat(N," assets from ").concat(p," have been ignored and will not appear in future scans."):"".concat(N," uncategorized assets have been ignored and will not appear in future scans."),async()=>{await r(C.A.IGNORED)})))};return(0,t.jsxs)(_.vyj,{children:[(0,t.jsx)(_.esZ,{title:n.id?void 0:"These assets must be categorized before you can add them to the inventory.",children:(0,t.jsx)(_.wpx,{"data-testid":"add-btn",size:"small",onClick:b,disabled:!n.id||A,loading:F,children:"Add"})}),s&&(0,t.jsx)(_.wpx,{"data-testid":"ignore-btn",size:"small",onClick:I,disabled:A,loading:u,children:"Ignore"})]})};var b=n(99640),I=n(76904);let f=a=>{let{system:e,rowClickUrl:n}=a,i=null==n?void 0:n(e);return(0,t.jsxs)(_.vyj,{className:"max-w-[250px] flex-nowrap",children:[!e.system_key&&(0,t.jsx)(_.esZ,{title:"New system",children:(0,t.jsx)("span",{children:I.QL.Change})}),(0,t.jsx)(b.Z,{href:i,"data-testid":i?"system-name-link":"system-name-text",children:e.name||"Uncategorized assets"}),(0,t.jsx)(g.l,{consentStatus:e.consent_status})]})};var U=n(34929),E=n(2525),k=n(78238),T=a=>{var e,n;let{system:i,columnState:s}=a,{getDataUseDisplayName:o}=(0,U.Z)(),r=(null!==(n=null===(e=i.data_uses)||void 0===e?void 0:e.filter(a=>(0,k.Z)(a)))&&void 0!==n?n:[]).map(a=>({label:o(a),key:a}));return(0,t.jsx)(E.Q,{values:r,columnState:s})};let L=a=>{let{monitorId:e,readonly:n,allowIgnore:i,onTabChange:s,consentStatus:o,rowClickUrl:r}=a,[l,F]=(0,u.useState)(!1),[d,c]=(0,u.useState)(!1),[S,m]=(0,u.useState)(!1),[h,y]=(0,u.useState)(0),[C,b]=(0,u.useState)(0),[I,U]=(0,u.useState)(0);return{columns:(0,u.useMemo)(()=>{let a=[{title:()=>(0,t.jsxs)(_.vyj,{children:[(0,t.jsx)("div",{children:"System"}),(0,t.jsx)(g.l,{consentStatus:o})]}),dataIndex:"name",key:v.vQ.SYSTEM_NAME,fixed:"left",render:(a,e)=>(0,t.jsx)(f,{system:e,rowClickUrl:r})},{title:"Assets",dataIndex:"total_updates",key:v.vQ.TOTAL_UPDATES},{title:"Categories of consent",key:v.vQ.DATA_USE,menu:{items:p.DI,onClick:a=>{a.domEvent.stopPropagation(),"expand-all"===a.key?(m(!0),U(a=>a+1)):"collapse-all"===a.key&&(m(!1),U(a=>a+1))}},render:(a,e)=>(0,t.jsx)(T,{system:e,columnState:{isExpanded:S,version:I}})},{title:"Locations",menu:{items:p.DI,onClick:a=>{a.domEvent.stopPropagation(),"expand-all"===a.key?(F(!0),y(a=>a+1)):"collapse-all"===a.key&&(F(!1),y(a=>a+1))}},dataIndex:"locations",key:v.vQ.LOCATIONS,render:a=>{var e;return(0,t.jsx)(M.Q,{values:null!==(e=null==a?void 0:a.map(a=>{var e;let n=(0,_.QCN)(a);return{label:n?(0,_.c1K)({isoEntry:n}):null!==(e=A.Z8[a])&&void 0!==e?e:a,key:a}}))&&void 0!==e?e:[],columnState:{isExpanded:l,isWrapped:!0,version:h}})}},{title:"Domains",menu:{items:p.DI,onClick:a=>{a.domEvent.stopPropagation(),"expand-all"===a.key?(c(!0),b(a=>a+1)):"collapse-all"===a.key&&(c(!1),b(a=>a+1))}},dataIndex:"domains",key:v.vQ.DOMAINS,render:a=>(0,t.jsx)(M.v,{values:a,valueSuffix:"domains",columnState:{isExpanded:d,version:C}})}];return n||a.push({title:"Actions",key:v.vQ.ACTIONS,fixed:"right",render:(a,n)=>(0,t.jsx)(N,{system:n,monitorId:e,allowIgnore:i,onTabChange:s})}),a},[n,o,r,S,l,d,I,h,C,e,i,s])}},x=a=>{let{monitorId:e}=a,n=(0,i.useRouter)(),s=(0,_.pmc)(),[r,l]=(0,u.useState)(),{filterTabs:d,activeTab:A,onTabChange:M,activeParams:p,actionsDisabled:g}=(0,C.Z)(),N=(0,S.o)({sorting:{validColumns:Object.values(v.vQ)}}),{pageIndex:b,pageSize:I,searchQuery:f,updateSearch:U,resetState:E}=N,{data:k,isLoading:T,isFetching:x}=(0,h.wi)({key:e,page:b,size:I,search:f,...p}),[w,{isLoading:G}]=(0,h.rs)(),[P,{isLoading:B}]=(0,h.nP)(),D=(0,u.useCallback)(a=>{var e,n,t;return null!==(t=null!==(n=null!==(e=a.id)&&void 0!==e?e:a.vendor_id)&&void 0!==n?n:a.name)&&void 0!==t?t:o.Kl},[]),R=(0,u.useCallback)(a=>{var n;return"".concat(o.vi,"/").concat(e,"/").concat(null!==(n=a.id)&&void 0!==n?n:o.Kl).concat(A?"#".concat(A):"")},[e,A]),j=(0,u.useMemo)(()=>({enableSelection:!0,getRowKey:D,isLoading:T,isFetching:x,dataSource:(null==k?void 0:k.items)||[],totalRows:(null==k?void 0:k.total)||0,customTableProps:{locale:{emptyText:(0,t.jsx)(_.oj8,{image:_.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})}}}),[D,T,x,null==k?void 0:k.items,null==k?void 0:k.total]),O=(0,S.V)(N,j),{selectedRows:K,resetSelections:V}=O,Z=(0,u.useCallback)(async a=>{l(void 0),await M(a),E(),V()},[M,E,V]),{columns:H}=L({monitorId:e,onTabChange:Z,readonly:g,allowIgnore:!p.diff_status.includes(F.LL.MUTED),consentStatus:r,rowClickUrl:R});(0,u.useEffect)(()=>{if((null==k?void 0:k.items)&&!r){var a;let e=null===(a=k.items.find(a=>{var e;return(null===(e=a.consent_status)||void 0===e?void 0:e.status)===F.pF.ALERT}))||void 0===a?void 0:a.consent_status;l(null!=e?e:void 0)}},[k,r]);let z=(0,u.useCallback)(async()=>{let a=K.reduce((a,e)=>a+e.total_updates,0),t=await w({monitor_config_key:e,resolved_system_ids:K.map(a=>a.id)});(0,c.D4)(t)?s((0,m.Vo)((0,c.e$)(t.error))):(s((0,m.t5)((0,y._)("".concat(a," assets have been added to the system inventory."),()=>n.push(o.So)))),V())},[K,w,e,s,n,V]),W=(0,u.useCallback)(async()=>{let a=K.reduce((a,e)=>a+e.total_updates,0),n=await P({monitor_config_key:e,resolved_system_ids:K.map(a=>{var e;return null!==(e=a.id)&&void 0!==e?e:o.Kl})});(0,c.D4)(n)?s((0,m.Vo)((0,c.e$)(n.error))):(s((0,m.t5)((0,y._)("".concat(a," assets have been ignored and will not appear in future scans."),async()=>{await M(C.A.IGNORED)}))),V())},[K,P,e,s,M,V]),Q=K.some(a=>null===a.id);return{columns:H,data:k,isLoading:T,isFetching:x,searchQuery:f,updateSearch:U,resetState:E,tableProps:O.tableProps,selectionProps:O.selectionProps,filterTabs:d,activeTab:A,handleTabChange:Z,activeParams:p,actionsDisabled:g,selectedRows:K,hasSelectedRows:O.hasSelectedRows,resetSelections:V,uncategorizedIsSelected:Q,handleBulkAdd:z,handleBulkIgnore:W,anyBulkActionIsLoading:G||B,isAddingResults:G,isIgnoringResults:B}},w=a=>{let{monitorId:e}=a,{columns:n,searchQuery:i,updateSearch:s,tableProps:o,selectionProps:r,filterTabs:u,activeTab:c,handleTabChange:S,activeParams:m,selectedRows:h,hasSelectedRows:v,uncategorizedIsSelected:y,handleBulkAdd:C,handleBulkIgnore:A,anyBulkActionIsLoading:M}=x({monitorId:e});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(_.Niu,{"aria-label":"Asset state filter",mode:"horizontal",items:u.map(a=>({key:a.hash,label:a.label})),selectedKeys:[c],onClick:async a=>{await S(a.key)},className:"mb-4","data-testid":"asset-state-filter"}),(0,t.jsxs)(_.jqI,{justify:"space-between",align:"center",className:"mb-4",children:[(0,t.jsx)(d.f,{value:i,onChange:s}),(0,t.jsxs)(_.vyj,{size:"large",children:[v&&(0,t.jsx)(l.a,{count:h.length}),(0,t.jsx)(_.S0p,{menu:{items:[{key:"add",label:(0,t.jsx)(_.esZ,{title:y?"Uncategorized assets can't be added to the inventory":null,placement:"left",children:"Add"}),onClick:C,disabled:y},m.diff_status.includes(F.LL.MUTED)?null:{key:"ignore",label:"Ignore",onClick:A}]},trigger:["click"],children:(0,t.jsx)(_.wpx,{type:"primary",icon:(0,t.jsx)(_.PJP._ME,{}),iconPosition:"end",loading:M,disabled:!v,"data-testid":"bulk-actions-menu",children:"Actions"})})]})]}),(0,t.jsx)(_.V5H,{...o,columns:n,rowSelection:r})]})};var G=()=>{let a=decodeURIComponent((0,i.useRouter)().query.monitorId);return(0,t.jsxs)(s.Z,{title:"Action center - Discovered assets by system",children:[(0,t.jsx)(r.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:o.vi},{title:a}]}),(0,t.jsx)(w,{monitorId:a})]})}},99830:function(a){a.exports={toastLink:"ToastLink_toastLink__OLSeq"}}},function(a){a.O(0,[431,8765,9278,5163,7245,4817,9070,9965,2888,9774,179],function(){return a(a.s=86850)}),_N_E=a.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8443],{74833:function(e,t,n){var i=n(56127),s=/^\s+/;e.exports=function(e){return e?e.slice(0,i(e)+1).replace(s,""):e}},56127:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},66726:function(e,t,n){var i=n(11611),s=n(82846),a=n(91936),r=Math.max,o=Math.min;e.exports=function(e,t,n){var l,c,u,d,g,p,m=0,f=!1,h=!1,x=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=l,i=c;return l=c=void 0,m=t,d=e.apply(i,n)}function v(e){var n=e-p,i=e-m;return void 0===p||n>=t||n<0||h&&i>=u}function j(){var e,n,i,a=s();if(v(a))return b(a);g=setTimeout(j,(e=a-p,n=a-m,i=t-e,h?o(i,u-n):i))}function b(e){return(g=void 0,x&&l)?y(e):(l=c=void 0,d)}function k(){var e,n=s(),i=v(n);if(l=arguments,c=this,p=n,i){if(void 0===g)return m=e=p,g=setTimeout(j,t),f?y(e):d;if(h)return clearTimeout(g),g=setTimeout(j,t),y(p)}return void 0===g&&(g=setTimeout(j,t)),d}return t=a(t)||0,i(n)&&(f=!!n.leading,u=(h="maxWait"in n)?r(a(n.maxWait)||0,t):u,x="trailing"in n?!!n.trailing:x),k.cancel=function(){void 0!==g&&clearTimeout(g),m=0,l=p=c=g=void 0},k.flush=function(){return void 0===g?d:b(s())},k}},11611:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},55193:function(e,t,n){var i=n(99736),s=n(92360);e.exports=function(e){return"symbol"==typeof e||s(e)&&"[object Symbol]"==i(e)}},82846:function(e,t,n){var i=n(77400);e.exports=function(){return i.Date.now()}},91936:function(e,t,n){var i=n(74833),s=n(11611),a=n(55193),r=0/0,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return r;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var n=l.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):o.test(e)?r:+e}},40741:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center",function(){return n(80349)}])},30952:function(e,t,n){"use strict";n.d(t,{f:function(){return l}});var i=n(24246),s=n(66726),a=n.n(s),r=n(27378),o=n(26917);let l=e=>{let{value:t,onChange:n,placeholder:s,...l}=e,[c,u]=(0,r.useState)(t);(0,r.useEffect)(()=>{u(t||"")},[t]);let d=a()(n,500),g=(0,r.useCallback)(e=>{u(e),d(e)},[]);return(0,i.jsx)(o.Z,{value:c,onChange:g,onClear:()=>{u(""),n("")},placeholder:s,...l})}},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var i=n(24246),s=n(20595),a=n(88038),r=n.n(a),o=n(86677);n(27378);var l=n(25980),c=n(90867),u=n(42478),d=n(77830),g=()=>{let e=(0,o.useRouter)();return(0,i.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(s.xuv,{children:[(0,i.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(s.wpx,{onClick:()=>{e.push(d.AD)},children:"Configure"})]}),(0,i.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:n,padded:a=!0,mainProps:d}=e,p=(0,l.hz)(),m=(0,o.useRouter)(),f="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,h=!(p.flags.messagingConfiguration&&f),{data:x}=(0,u.JE)(void 0,{skip:h}),{data:y}=(0,c.PW)(void 0,{skip:h}),v=p.flags.messagingConfiguration&&(!x||!y)&&f;return(0,i.jsxs)(s.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(r(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(s.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[v?(0,i.jsx)(g,{}):null,t]})]})}},58754:function(e,t,n){"use strict";var i=n(24246),s=n(20595),a=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:r=!0,children:o,rightContent:l,style:c,...u}=e;return(0,i.jsxs)("div",{...u,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,i.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(s.lQT,{className:n||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,i.jsx)(a.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return c}});var i=n(24246),s=n(20595),a=n(79894),r=n.n(a),o=n(27378);let{Text:l}=s.AntTypography,c=e=>{let{items:t,...n}=e,a=(0,o.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let a=n===t.length-1,o={...e},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,i.jsx)(l,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,id:a?"breadcrumb-current-page":void 0,children:o.title})),c)?o.title=(0,i.jsx)(s.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,i.jsx)(r(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,i.jsx)(s.zrq,{items:a,...n})}},14908:function(e,t,n){"use strict";var i=n(86677),s=n(27378);let a=e=>e.startsWith("#")?e.slice(1):e;t.Z=e=>{let{tabKeys:t,initialTab:n}=e,r=(0,i.useRouter)(),o=r.asPath.split("#")[1]||t[0],[l,c]=(0,s.useState)(o);return(0,s.useEffect)(()=>{n&&t.includes(n)&&c(n)},[n,t,r.isReady]),{activeTab:l,onTabChange:(0,s.useCallback)(async e=>{if(!t.includes(e)){await r.replace({pathname:r.pathname,query:r.query,hash:void 0}),c(t[0]);return}r.isReady&&(await r.replace({pathname:r.pathname,query:r.query,hash:a(e)},void 0,{shallow:!0}),c(e))},[r,t]),setActiveTab:c}}},42478:function(e,t,n){"use strict";n.d(t,{FU:function(){return c},JE:function(){return s},Ki:function(){return d},SU:function(){return g},W:function(){return p},h9:function(){return a},jc:function(){return i},qt:function(){return l},sn:function(){return u}});let{useGetEmailInviteStatusQuery:i,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:a,useCreateMessagingConfigurationSecretsMutation:r,useGetMessagingConfigurationDetailsQuery:o,useGetMessagingConfigurationsQuery:l,useGetMessagingConfigurationByKeyQuery:c,useUpdateMessagingConfigurationByKeyMutation:u,useUpdateMessagingConfigurationSecretsByKeyMutation:d,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:p}=n(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,t,n,i)=>{let s=await i({url:"messaging/default/active"});return s.error&&404===s.error.status?{data:null}:s},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},80349:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Z}});var i,s,a=n(24246),r=n(20595),o=n(79894),l=n.n(o),c=n(27378),u=n(30952),d=n(25980),g=n(77213),p=n(77830),m=n(58754),f=n(47935),h=n(7426),x=n(37059),y=n(16394),v=n(17245),j=n(67359);let b=()=>{let{pageIndex:e,pageSize:t,updatePageIndex:n,resetPagination:i,showSizeChanger:s}=(0,v.h0)({defaultPageSize:20,showSizeChanger:!1}),{searchQuery:o,updateSearch:l}=(0,v.Rx)(),[u,d]=(0,c.useState)([j.n.PENDING,j.n.IN_PROCESSING,j.n.PAUSED,j.n.RETRYING,j.n.ERROR]),[g,p]=(0,c.useState)(!1),m=(0,c.useCallback)(e=>{l(e),n(1)},[l,n]),f=(0,c.useCallback)(e=>{d(e),n(1)},[n]),h=(0,c.useCallback)(e=>{p(e),n(1)},[n]),y=(0,c.useCallback)(()=>{d([j.n.PENDING,j.n.IN_PROCESSING,j.n.PAUSED,j.n.RETRYING,j.n.ERROR]),p(!1),i()},[i]),b=(0,c.useCallback)(()=>{d([]),p(!0),i()},[i]),k=[j.n.PENDING,j.n.IN_PROCESSING,j.n.COMPLETE,j.n.ERROR,j.n.PAUSED,j.n.RETRYING,j.n.SKIPPED],{data:C,isLoading:_,isFetching:w}=(0,x.$h)({page:e,size:t,search:o,statuses:u.length>0?u:void 0,return_dismissed:g});return{searchQuery:o,updateSearch:m,statusFilters:u,updateStatusFilters:f,showDismissed:g,updateShowDismissed:h,resetToDefault:y,clearAllFilters:b,availableStatuses:k,listProps:(0,c.useMemo)(()=>({dataSource:(null==C?void 0:C.items)||[],loading:_||w,locale:{emptyText:(0,a.jsx)(r.oj8,{image:r.oj8.PRESENTED_IMAGE_SIMPLE,description:"No tasks in progress"})},pagination:{current:e,pageSize:t,total:null==C?void 0:C.total,showSizeChanger:s,showQuickJumper:!1,onChange:e=>n(e)}}),[null==C?void 0:C.items,null==C?void 0:C.total,_,w,e,t,s,n]),isLoading:_,isFetching:w}};var k=n(10969),C=n(60145),_=n(11558),w=n(70641),E=n(7317),S=n(85302),N=n(64892);function T(e,t,n){let i;let s=(0,C.j)(),a=n?.locale??s.locale??k._,r=(0,S.U)(e,t);if(isNaN(r))throw RangeError("Invalid time value");let o=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:r}),[l,c]=(0,E.d)(n?.in,...r>0?[t,e]:[e,t]),u=(0,_.u)(n?.roundingMethod??"round"),d=c.getTime()-l.getTime(),g=d/N.yJ,p=(d-((0,w.D)(c)-(0,w.D)(l)))/N.yJ,m=n?.unit;if("second"===(i=m||(g<1?"second":g<60?"minute":g<N.H_?"hour":p<N.fH?"day":p<N.UU?"month":"year"))){let e=u(d/1e3);return a.formatDistance("xSeconds",e,o)}if("minute"===i){let e=u(g);return a.formatDistance("xMinutes",e,o)}if("hour"===i){let e=u(g/60);return a.formatDistance("xHours",e,o)}if("day"===i){let e=u(p/N.H_);return a.formatDistance("xDays",e,o)}if("month"===i){let e=u(p/N.fH);return 12===e&&"month"!==m?a.formatDistance("xYears",1,o):a.formatDistance("xMonths",e,o)}{let e=u(p/N.UU);return a.formatDistance("xYears",e,o)}}var P=n(41337);let{Text:I,Title:R}=r.AntTypography,M=e=>"paused"===e?"Awaiting Processing":e.split("_").map(y.kC).join(" "),D=e=>{var t,n,i,s,o,l,c,u,d,g;let{task:p,...m}=e,f=(0,r.pmc)(),[h,{isLoading:y}]=(0,x.mL)(),[v,{isLoading:j}]=(0,x.QC)(),b=!!p.dismissed_in_activity_view,k="error"===p.status&&"detection"!==p.action_type,{data:C}=(0,x.Ud)({page:1,size:1e3}),_=p.monitor_config_id?null==C?void 0:null===(t=C.items)||void 0===t?void 0:t.find(e=>e.key===p.monitor_config_id):void 0,w=_?(0,P.AZ)({connection_type:_.connection_type,name:null!==(s=_.name)&&void 0!==s?s:null,key:null!==(o=_.key)&&void 0!==o?o:null,saas_config:_.saas_config?{type:null!==(l=_.saas_config.type)&&void 0!==l?l:null,name:null!==(c=_.saas_config.name)&&void 0!==c?c:null,fides_key:null!==(u=_.saas_config.fides_key)&&void 0!==u?u:null}:null,secrets:(null===(i=_.secrets)||void 0===i?void 0:i.url)?{url:_.secrets.url}:null}):p.connection_type?(0,P.AZ)({connection_type:p.connection_type,name:null!==(d=p.connection_name)&&void 0!==d?d:p.connection_type?p.connection_type.toString():null,key:null,saas_config:null,secrets:null}):void 0,E=(null===(n=p.staged_resource_urns)||void 0===n?void 0:n.length)||0,S=["pending","in_processing","paused","retrying"].includes((p.status||"").toLowerCase()),N=(()=>{if("classification"===p.action_type){let e="complete"===p.status?"Classified":"Classifying";return"".concat(e," ").concat(E," ").concat(1===E?"field":"fields")}return"detection"===p.action_type?"complete"===p.status?"Monitor scanned":"Monitor scanning":"promotion"===p.action_type?"complete"===p.status?"Promoted":"Promoting":p.action_type?p.action_type.replace(/_/g," "):"Task"})(),D=(p.connection_type||"").toString().toUpperCase().includes("WEBSITE")?"Product monitor":"Analytics monitor",q=async()=>{try{await h({taskId:p.id}).unwrap(),f({status:"success",description:"Task retry initiated successfully"})}catch(n){var e;let t=(null==n?void 0:null===(e=n.data)||void 0===e?void 0:e.detail)||(null==n?void 0:n.message)||"Unknown error occurred";f({status:"error",description:"Failed to retry task: ".concat(t)})}},A=async()=>{try{await v({taskId:p.id}).unwrap(),f({status:"success",description:"Task dismissed successfully"})}catch(n){var e;let t=(null==n?void 0:null===(e=n.data)||void 0===e?void 0:e.detail)||(null==n?void 0:n.message)||"Unknown error occurred";f({status:"error",description:"Failed to dismiss task: ".concat(t)})}};return(0,a.jsx)("div",{...m,className:"w-full",children:(0,a.jsxs)(r.bue,{gutter:12,className:"w-full",children:[(0,a.jsx)(r.JGx,{span:17,className:"align-middle",children:(0,a.jsxs)(r.vyj,{align:"center",size:8,wrap:!0,children:[w&&(0,a.jsx)(P.ZP,{data:w,boxSize:"24px"}),(0,a.jsx)(R,{level:5,className:"m-0",children:N}),!S&&(0,a.jsx)(r.j8w,{color:(e=>{switch(e){case"pending":case"retrying":return"orange";case"in_processing":return"processing";case"complete":return"green";case"error":return"red";case"paused":return"purple";default:return"gray"}})(p.status),children:(g=p.status)?M(g):"Unknown"}),"error"===p.status&&(0,a.jsxs)(a.Fragment,{children:[k&&(0,a.jsx)(r.wpx,{size:"small",type:"primary",loading:y,onClick:q,children:"Retry"}),!b&&(0,a.jsx)(r.wpx,{size:"small",loading:j,onClick:A,children:"Dismiss"}),(0,a.jsx)(r.bPF,{content:(0,a.jsx)("div",{className:"max-w-[360px]",children:p.message}),title:null,trigger:"click",children:(0,a.jsx)(r.wpx,{type:"link",size:"small",children:"Failure reason"})})]})]})}),(0,a.jsx)(r.JGx,{span:4,className:"flex items-center justify-end",children:(0,a.jsx)(I,{type:"secondary",size:"sm",children:D})}),(0,a.jsx)(r.JGx,{span:3,className:"flex items-center justify-end",children:S?(0,a.jsx)(r.$jN,{size:"sm",color:"primary",thickness:"2px",speed:"0.6s"}):(0,a.jsx)(I,{type:"secondary",size:"sm",children:T(new Date(p.updated_at),new Date,{addSuffix:!0})})})]})})},q=e=>"paused"===e?"Awaiting Processing":e.split("_").map(y.kC).join(" "),A=()=>{let{searchQuery:e,updateSearch:t,statusFilters:n,updateStatusFilters:i,showDismissed:s,updateShowDismissed:o,resetToDefault:l,clearAllFilters:d,availableStatuses:g,listProps:p}=b(),m=(0,c.useCallback)(e=>{i(e)},[i]),f=(0,a.jsxs)("div",{className:"min-w-[220px] space-y-3 p-2",children:[(0,a.jsx)(r.E_O.Group,{value:n,onChange:m,className:"flex flex-col gap-2",children:g.map(e=>(0,a.jsx)(r.E_O,{value:e,children:q(e)},e))}),(0,a.jsx)(r.E_O,{checked:s,onChange:e=>o(e.target.checked),className:"mb-2",children:"Show dismissed tasks"}),(0,a.jsxs)(r.vyj,{children:[(0,a.jsx)(r.wpx,{size:"small",onClick:l,children:"Default"}),(0,a.jsx)(r.wpx,{size:"small",onClick:d,children:"Clear"})]})]});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(r.jqI,{justify:"space-between",align:"center",className:"mb-4",children:[(0,a.jsx)("div",{className:"min-w-[300px]",children:(0,a.jsx)(u.f,{value:null!=e?e:"",onChange:t,placeholder:"Search by monitor name..."})}),(0,a.jsx)(r.bPF,{content:f,trigger:"click",placement:"bottomRight",children:(0,a.jsx)(r.wpx,{className:"flex items-center gap-2",children:"Filter"})})]}),(0,a.jsx)(r.krs,{...p,renderItem:e=>(0,a.jsx)(r.krs.Item,{children:(0,a.jsx)(D,{task:e})})})]})},z=e=>{let{isConfigLoading:t}=e;return(0,a.jsx)(g.Z,{title:"Action center",mainProps:{className:"h-full"},children:(0,a.jsx)(r.jqI,{justify:"center",align:"center",className:"h-full",children:t?(0,a.jsx)(r.$jN,{color:"primary.900"}):(0,a.jsx)(r.DUx,{message:"Coming soon...",description:"Action center is currently disabled.",type:"info",showIcon:!0})})})},O=()=>(0,a.jsx)(r.oj8,{image:r.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up! Set up an integration monitor to track your infrastructure in greater detail.",children:(0,a.jsx)(l(),{href:p.KH,passHref:!0,legacyBehavior:!0,children:(0,a.jsx)(r.wpx,{type:"primary",children:"Visit integrations"})})});var U=n(14908);(i=s||(s={})).ATTENTION_REQUIRED="attention-required",i.IN_PROGRESS="in-progress";var G=()=>{let{flags:e}=(0,d.hz)(),t=!!e.alphaFullActionCenter,n=(0,c.useMemo)(()=>t?Object.values(s):["attention-required"],[t]),{activeTab:i,onTabChange:a}=(0,U.Z)({tabKeys:n});return{tabs:(0,c.useMemo)(()=>{let e=[{label:"Attention required",hash:"attention-required"}];return t&&e.push({label:"Activity",hash:"in-progress"}),e},[t]),activeTab:i,onTabChange:a}},F=n(39449),B=n(54762);let{Text:L}=r.AntTypography,W=e=>{let{monitorSummary:t,showSkeleton:n,href:i,...s}=e,{name:o,consent_status:u,total_updates:d,updates:g,last_monitored:p,secrets:m,key:f,connection_type:h}=t,x=(0,c.useMemo)(()=>(null==m?void 0:m.url)?(0,y.ge)(m.url):void 0,[null==m?void 0:m.url]),v=(0,c.useMemo)(()=>x?(0,y.tl)(x,60):void 0,[x]),j=Object.entries(g).map(e=>"".concat(e[1]," ").concat(e[0],"s")).join(", "),b=p?(0,y.p6)(new Date(p)):void 0,k=p?T(new Date(p),new Date,{addSuffix:!0}):void 0;return(0,a.jsx)(r.krs.Item,{"data-testid":"monitor-result-".concat(f),...s,children:(0,a.jsx)(r.N_L,{avatar:!0,title:!1,loading:n,active:!0,children:(0,a.jsxs)(r.bue,{gutter:12,className:"w-full",children:[(0,a.jsx)(r.JGx,{span:17,className:"align-middle",children:(0,a.jsx)(r.krs.Item.Meta,{avatar:(0,a.jsx)(r.t3Z,{src:v,size:30,icon:(0,a.jsx)(r.PJP.huD,{size:30}),style:{backgroundColor:"transparent",color:"var(--ant-color-text)"},alt:"".concat(x," icon")}),title:(0,a.jsxs)(r.jqI,{align:"center",gap:4,children:[(0,a.jsx)(l(),{href:i,className:"whitespace-nowrap",children:"".concat(d," assets detected").concat(x?" on ".concat(x):"")}),(0,a.jsx)(B.l,{consentStatus:u}),h===F.Rj.TEST_WEBSITE&&(0,a.jsx)(r.j8w,{color:"nectar",style:{fontWeight:"normal"},children:"test monitor"})]}),description:"".concat(j," detected.")})}),(0,a.jsx)(r.JGx,{span:4,className:"flex items-center justify-end",children:(0,a.jsx)(L,{ellipsis:{tooltip:o},children:o})}),(0,a.jsx)(r.JGx,{span:3,className:"flex items-center justify-end",children:!!k&&(0,a.jsx)(L,{"data-testid":"monitor-date",ellipsis:{tooltip:b},children:k})})]})})})},J=(e,t,n)=>e&&t!==F.Rj.TEST_WEBSITE&&e&&t!==F.Rj.WEBSITE?"".concat(p.vi,"/").concat(n,"/data-explorer"):"".concat(p.vi,"/").concat(n);var Z=()=>{var e,t;let n=(0,r.pmc)(),{tabs:i,activeTab:o,onTabChange:p}=G(),{flags:y}=(0,d.hz)(),{PAGE_SIZES:v,pageSize:j,setPageSize:b,onPreviousPageClick:k,isPreviousPageDisabled:C,onNextPageClick:_,isNextPageDisabled:w,startRange:E,endRange:S,pageIndex:N,setTotalPages:T,resetPageIndexToDefault:P}=(0,f.oi)(),[I,R]=(0,c.useState)(""),{data:M,isLoading:D}=(0,h.tB)({api_set:!1}),q=!!(null==M?void 0:null===(e=M.detection_discovery)||void 0===e?void 0:e.website_monitor_enabled);(0,c.useEffect)(()=>{P()},[I,P]);let{data:U,isError:F,isLoading:B,isFetching:L}=(0,x.Ud)({page:N,size:j,search:I},{skip:D||!q});(0,c.useEffect)(()=>{F&&n&&q&&n({title:"Error fetching data",description:"Please try again later",status:"error"})},[F,n,q]),(0,c.useEffect)(()=>{if(U){var e;T(null!==(e=U.total)&&void 0!==e?e:1)}},[U,T]);let Z=(null==U?void 0:null===(t=U.items)||void 0===t?void 0:t.flatMap(e=>e.key&&void 0!==e.key?[e]:[]))||[],K=L?Array.from({length:j},(e,t)=>({key:t.toString(),updates:[],last_monitored:null})):[],H=(0,c.useCallback)((e,t)=>[(0,a.jsx)(l(),{href:null!=t?t:"",passHref:!0,legacyBehavior:!0,children:(0,a.jsx)(r.wpx,{type:"link",className:"p-0","data-testid":"review-button-".concat(e),children:"Review"})},"review")],[]);return q?(0,a.jsxs)(g.Z,{title:"Action center",children:[(0,a.jsx)(m.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity"}]}),(0,a.jsx)(r.Niu,{"aria-label":"Action center tabs",mode:"horizontal",items:i.map(e=>({key:e.hash,label:e.label})),selectedKeys:[o],onClick:async e=>{let t=Object.values(s).find(t=>t===e.key);t&&await p(t)},className:"mb-4","data-testid":"action-center-tabs"}),o===s.IN_PROGRESS?(0,a.jsx)(A,{}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.jqI,{className:"justify-between py-6",children:(0,a.jsx)(u.f,{value:I,onChange:R})}),(0,a.jsx)(r.krs,{loading:B,dataSource:Z||K,locale:{emptyText:(0,a.jsx)(O,{})},renderItem:e=>{let t=e.key?J(y.alphaFullActionCenter,e.connection_type,e.key):"";return!!(null==e?void 0:e.key)&&(0,a.jsx)(W,{showSkeleton:L,monitorSummary:e,href:t,actions:H(e.key,t)},e.key)}}),!!Z&&!!(null==U?void 0:U.total)&&U.total>j&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.htM,{className:"mb-6 mt-0"}),(0,a.jsx)(f.s8,{totalRows:(null==U?void 0:U.total)||0,pageSizes:v,setPageSize:b,onPreviousPageClick:k,isPreviousPageDisabled:C||L,onNextPageClick:_,isNextPageDisabled:w||L,startRange:E,endRange:S})]})]})]}):(0,a.jsx)(z,{isConfigLoading:D})}}},function(e){e.O(0,[431,7245,9070,2888,9774,179],function(){return e(e.s=40741)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-6cc1ba1f102ae77d.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7477],{45550:function(e,s,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/activity",function(){return a(3680)}])},91761:function(e,s,a){"use strict";var t=a(24246),i=a(20595),r=a(812),n=a(17245),o=a(7940),l=a(98559),c=a(39449),d=a(79494),u=a(70675);s.Z=e=>{let{resource:s}=e,[a,{isLoading:g}]=(0,u.v8)(),[I,{isLoading:L}]=(0,u.cM)(),[x,{isLoading:A}]=(0,u.vi)(),C=L||A||g,{diff_status:j,child_diff_statuses:f,top_level_field_name:h}=s,{successAlert:_,errorAlert:S}=(0,n.VY)(),T=j===c.LL.CLASSIFICATION_ADDITION||j===c.LL.CLASSIFICATION_UPDATE||j===c.LL.APPROVED,m=f&&(f[c.LL.CLASSIFICATION_ADDITION]||f[c.LL.CLASSIFICATION_UPDATE]||f[c.LL.APPROVED]),D=(T||m)&&!h,N=T||m,v=(0,o.G)(s)!==c.D$.FIELD,p=D&&N&&v,y=async()=>{let e=await I({staged_resource_urn:s.urn});(0,r.D4)(e)?S((0,r.e$)(e.error),"Failed to promote resource"):_('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},O=async()=>{let e=await x({staged_resource_urn:s.urn});(0,r.D4)(e)?S((0,r.e$)(e.error),"Failed to mute resource"):_("Ignored changes will not be added to a Fides dataset.","".concat(s.name||"Changes"," ignored"))},R=async()=>{let e=await a({staged_resource_urn:s.urn,monitor_config_id:s.monitor_config_id,start_classification:!0,diff_statuses_to_classify:[c.LL.CLASSIFICATION_ADDITION,c.LL.CLASSIFICATION_UPDATE,c.LL.CLASSIFYING,c.LL.CLASSIFICATION_QUEUED]});(0,r.D4)(e)?S((0,r.e$)(e.error),"Failed to reclassify resource"):_("Reclassification of ".concat((0,l.Z)(s)||"the resource"," has begun. The results may take some time to appear in the “Data discovery“ tab."),"Reclassification started")};return(0,t.jsxs)(i.Ugi,{gap:2,children:[D&&(0,t.jsx)(d.Z,{title:"Confirm",icon:(0,t.jsx)(i.nQG,{}),onClick:y,disabled:C,loading:L}),N&&(0,t.jsx)(d.Z,{title:"Ignore",icon:(0,t.jsx)(i.tpL,{}),onClick:O,disabled:C,loading:A}),v&&!p&&(0,t.jsx)(d.Z,{title:"Reclassify",icon:(0,t.jsx)(i.nyI,{}),onClick:R,disabled:C,loading:g}),p&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.LZC,{}),(0,t.jsxs)(i.v2r,{children:[(0,t.jsx)(i.j2t,{as:i.wpx,size:"small",type:"text",icon:(0,t.jsx)(i.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-overflow-btn"}),(0,t.jsx)(i.qyq,{children:(0,t.jsx)(i.sNh,{onClick:R,icon:(0,t.jsx)(i.nyI,{}),"data-testid":"action-reclassify",children:"Reclassify"})})]})]})]})}},3680:function(e,s,a){"use strict";a.r(s),a.d(s,{default:function(){return w}});var t,i,r=a(24246),n=a(27378),o=a(35287),l=a(58754),c=a(47182),d=a(92222),u=a(59003),g=a(20595),I=a(47935),L=a(72625),x=a(70675),A=a(38347),C=a(87667),j=a(50169),f=a(80285),h=a(30952);(t=i||(i={})).DATASET="Dataset",t.CLASSIFICATION="Classification";var _=a(74241),S=a(28278),T=a(20449),m=e=>(0,T.Z)(e)===S.E.CLASSIFICATION?i.CLASSIFICATION:i.DATASET,D=a(54409),N=a(91761);let v={items:[],total:0,page:1,size:50,pages:1},p=()=>(0,r.jsx)(g.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,r.jsxs)(g.gCW,{children:[(0,r.jsx)(g.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,r.jsx)(g.xvT,{fontSize:"sm",children:"You're up to date!"})]})}),y=(0,d.Cl)();var O=e=>{let{onRowClick:s,statusFilters:a,childsStatusFilters:t}=e,[o,l]=(0,n.useState)(""),{PAGE_SIZES:c,pageSize:S,setPageSize:T,onPreviousPageClick:O,isPreviousPageDisabled:R,onNextPageClick:w,isNextPageDisabled:F,startRange:E,endRange:P,pageIndex:b,setTotalPages:Z}=(0,I.oi)(),{isFetching:k,isLoading:V,data:M}=(0,x.z8)({diff_status:a,child_diff_status:t,page:b,size:S,search:o}),{items:U,total:z,pages:G}=(0,n.useMemo)(()=>null!=M?M:v,[M]);(0,n.useEffect)(()=>{Z(G)},[G,Z]);let W=(0,n.useMemo)(()=>[y.accessor(e=>e.name,{id:"name",cell:e=>(0,r.jsx)(C.Z,{result:e.row.original}),header:e=>(0,r.jsx)(I.Rr,{value:"Name",...e})}),y.accessor(e=>e.urn,{id:"project",cell:e=>(0,r.jsx)(I.G3,{value:(0,_.Z)(e.getValue())}),header:e=>(0,r.jsx)(I.Rr,{value:"Project",...e})}),y.display({id:"status",cell:e=>(0,r.jsx)(j.Z,{result:e.row.original}),header:e=>(0,r.jsx)(I.Rr,{value:"Status",...e})}),y.accessor(e=>e.system,{id:"system",cell:e=>(0,r.jsx)(I.G3,{value:e.getValue()}),header:e=>(0,r.jsx)(I.Rr,{value:"System",...e})}),y.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,r.jsx)(I.G3,{value:e.getValue()}),header:e=>(0,r.jsx)(I.Rr,{value:"Detected by",...e})}),y.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,r.jsx)(L.Cy,{time:e.getValue()}),header:e=>(0,r.jsx)(I.Rr,{value:"When",...e})}),y.accessor(e=>e,{id:"action",cell:e=>m(e.getValue())===i.DATASET?(0,r.jsx)(D.Z,{resource:e.getValue()}):(0,r.jsx)(N.Z,{resource:e.getValue()}),header:e=>(0,r.jsx)(I.Rr,{value:"Action",...e})})],[]),$=(0,u.b7)({getCoreRowModel:(0,d.sC)(),getGroupedRowModel:(0,d.qe)(),getExpandedRowModel:(0,d.rV)(),getRowId:f.Z,columns:W,manualPagination:!0,data:U,columnResizeMode:"onChange"});return V?(0,r.jsx)(I.I4,{rowHeight:36,numRows:36}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(I.Q$,{children:(0,r.jsxs)(g.kCb,{gap:6,align:"center",children:[(0,r.jsx)(g.xuv,{flexShrink:0,children:(0,r.jsx)(h.f,{value:o,onChange:l})}),(0,r.jsx)(A.a,{})]})}),(0,r.jsx)(I.ZK,{tableInstance:$,onRowClick:s,emptyTableNotice:(0,r.jsx)(p,{})}),(0,r.jsx)(I.s8,{totalRows:z||0,pageSizes:c,setPageSize:T,onPreviousPageClick:O,isPreviousPageDisabled:R||k,onNextPageClick:w,isNextPageDisabled:F||k,startRange:E,endRange:P})]})},R=a(39449),w=()=>{let{navigateToDetectionResults:e,navigateToDiscoveryResults:s}=(0,c.Z)();return(0,r.jsxs)(o.Z,{title:"Data discovery",children:[(0,r.jsx)(l.Z,{heading:"All activity"}),(0,r.jsx)(O,{onRowClick:a=>{if(m(a)===i.DATASET){e({resourceUrn:a.urn});return}s({resourceUrn:a.urn})},statusFilters:[R.LL.ADDITION,R.LL.REMOVAL,R.LL.CLASSIFICATION_ADDITION,R.LL.CLASSIFICATION_UPDATE],childsStatusFilters:[R.LL.ADDITION,R.LL.REMOVAL,R.LL.CLASSIFICATION_ADDITION,R.LL.CLASSIFICATION_UPDATE]})]})}}},function(e){e.O(0,[431,7245,4817,6315,2888,9774,179],function(){return e(e.s=45550)}),_N_E=e.O()}]);
|