ethyca-fides 2.57.1b9__py2.py3-none-any.whl → 2.57.1rc0__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ethyca_fides-2.57.1b9.dist-info → ethyca_fides-2.57.1rc0.dist-info}/METADATA +1 -1
- {ethyca_fides-2.57.1b9.dist-info → ethyca_fides-2.57.1rc0.dist-info}/RECORD +228 -243
- fides/_version.py +3 -3
- fides/api/api/v1/endpoints/config_endpoints.py +2 -4
- fides/api/api/v1/endpoints/generic_overrides.py +6 -48
- fides/api/models/asset.py +18 -37
- fides/api/models/attachment.py +13 -11
- fides/api/models/comment.py +17 -17
- fides/api/models/connectionconfig.py +1 -1
- fides/api/models/detection_discovery.py +0 -12
- fides/api/models/location_regulation_selections.py +0 -1
- fides/api/models/{privacy_request/privacy_request.py → privacy_request.py} +691 -82
- fides/api/models/sql_models.py +5 -28
- fides/api/oauth/jwt.py +0 -18
- fides/api/oauth/utils.py +11 -11
- fides/api/schemas/dataset.py +2 -22
- fides/api/schemas/saas/strategy_configuration.py +0 -1
- fides/api/service/pagination/pagination_strategy_cursor.py +1 -15
- fides/api/service/pagination/pagination_strategy_link.py +1 -1
- fides/api/tasks/storage.py +111 -12
- fides/config/__init__.py +1 -1
- fides/data/language/languages.yml +0 -2
- fides/data/location/locations.yml +1 -244
- fides/ui-build/static/admin/404.html +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{1150-035a721a04f4451e.js → 1150-73440d7b319558e8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/1995-0e4fc4f7b44ed72b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{2397-ee53235fb21b5e97.js → 2397-7177ecf4ebe68feb.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{255-7db55b0e3a0f9dea.js → 255-bf1797f78249d090.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/2780-8328de94968d05e4.js +4 -0
- fides/ui-build/static/admin/_next/static/chunks/3005-373de16453ed7eea.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{3086-b5054ec2c75700b9.js → 3086-be6b52546c3efc90.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/3320-87c75df57a47487e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3627-fb83adac32c128e6.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3662-420d9807c30008ab.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{3855-b6b7865dedd7bc2a.js → 3855-5c7b11871f59e0e0.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3872-4e053c20d546f027.js → 3872-f3d5054bdc584eaa.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/3949-9888699e2ac564c4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3967-845c902667e47c4f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3e38ba78-4487e45fd4ed2479.js +2 -0
- fides/ui-build/static/admin/_next/static/chunks/4481-ca8d2c75d634b6bc.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4723-81d28e5be5c7b6d7.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4833-a85bd5d25ebc40c4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5246-9fc6af1a6499e0a4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{5258-0658dc2274df6832.js → 5258-3a650be9142cf914.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5480-f49696df5e8ae500.js → 5480-f5bec5e881f72f8d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5487-3ad50d21cdbc9209.js → 5487-d96e1abc93f92631.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/5574-a4047e826a8cd4c3.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{5826-e5dcb4e68cfe6289.js → 5826-16e497af363a0cbc.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/5834-bd9ed01c4ab2ef5c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{9014-eeae6f581158e645.js → 5908-532dfbc9d930f635.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/5960-8895f51b30c35798.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{5973-9c58e4cce2f343a8.js → 5973-67c7562997f7d5cb.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/6277-515c922445b8edc5.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{6315-fa1519cdf080f42d.js → 6315-dee79f6861c94d2d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6372-ca9c12ac8902365b.js → 6372-f1b54f3cb4888660.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6853-8941824350c3c1a8.js → 6853-cacea421af3bfc26.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/6954-6eb480eb132239c3.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7044-9dc90893067f38ae.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{7088.eb76fca286e5f2e6.js → 7088.0e7c92a7cbb57562.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{7751-a8f31c062d4cb09d.js → 7751-25e0c1307988ffd7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{79-f9b948ebb186900f.js → 79-ba88d0cf4c65aaa2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/7980-2597c279c30fbcda.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7c79804f.26834f883d5ad770.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{8433-b3008ecaf9834e7f.js → 8433-969280d321d1c3a2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{8499-43606100edf42fdf.js → 8499-07507004e8275df2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/8837-cf26e5ca1ae5aaf5.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{9046-04bd7becea207cb1.js → 9046-80f1ea44f89fe32c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/9282-1a5a2f6f4d9ed586.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{9392.da35a8e778812d91.js → 9392.97b2e3327dceb7c9.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/9676.f4d5977a5f148797.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9767-4c591bd478c72650.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{9999-637e0e5341f15f4a.js → 9999-f2e40d5b13343220.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{main-app-94a0711202e08b15.js → main-app-2650f704701c6a7b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/main-ce7f38a12ea8c223.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{404-b202c0d8f6fc75c3.js → 404-1087258931760074.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/_app-9ceff88561dc1250.js +909 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-c2705210ce986109.js → manual-d7f60624cbc12217.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-ba975134a85588f8.js → multiple-18b0b521255289a3.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-136bcbd20ac59bf5.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{ant-poc-b9932971a479f3a7.js → ant-poc-b3b4d0a98450ffd1.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-b34e5324461d0c87.js → add-vendors-64f83e9a2b777bf3.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure-e11ace4f273ebb47.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-cf51752eb0902233.js → [id]-443e6dd191ce5588.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{new-be194737b41ccec9.js → new-36162d5bea29dcc2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-c946b33b0322b8ad.js → privacy-experience-35e9df60b21e21a6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-72251b48e2e03a1e.js → [id]-2d651499c07d12d9.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-9611dd42856d6062.js → new-36e57d2f2446be82.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-ea57f9d6ad17e957.js → privacy-notices-da37afbe5ec81339.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-e5748812ba055a56.js → properties-c57b209feef7c2da.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{reporting-ae66e1a7e146a4de.js → reporting-97fea4ac45093cbd.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{consent-39d65f13cc8f1cf8.js → consent-24bef021ee71e36c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/{[resourceUrn]-ac033a16f043e6f9.js → [resourceUrn]-6cbd79481199812d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-a29850536c85d4b8.js → [projectUrn]-46b9790da2fec05a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-c44ce244122e96d5.js → projects-1f965b9c496071d1.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/{[resourceUrn]-71e26d262afcaea5.js → [resourceUrn]-e7833c1c606081a9.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{resources-305555b74c357bf2.js → resources-bed368d048ea6883.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-942d68a88b321067.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-00526324583139ab.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-f0ab51d0d5f995de.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-2220c30c3863b5a5.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{activity-11b3ce9f61d9bfe9.js → activity-1d7936f05d23097f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-054ca46a782e99a5.js → [resourceUrn]-68122dbf449a11b4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-b75dd3e4306ac18e.js → detection-0ceaf3c555e84714.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-1da20aeb6fc995e4.js → [resourceUrn]-22c27fe0f898ad2a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-cad50b0cc6d1050c.js → discovery-8f2b102e19b0b8f2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{datamap-8cb714cdd44ac40e.js → datamap-9cd0c40bef77b120.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-ab9bc1a3640547db.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]-17ec8385bb1fa6d4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-6ba18f92ba561114.js → [datasetId]-e14c1c07658f8a10.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-740824dfa6823e26.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset-5541ecd2f62711a5.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-bbe1ca2793798e6b.js → [id]-0616437e1a82d3ed.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-abc17fef69cd951b.js → new-f8218440494e8532.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-b8eaa9b9d3832b30.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{index-bfaacdb55a5a6c9f.js → index-94e6d589c4edf360.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-a6448ce6ba7f0cf5.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations-1a6965d78bfb26b0.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{[id]-ad02e019b2467958.js → [id]-6b032de0a6c2c400.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{add-template-f9693cb6a0b7ded8.js → add-template-c0d6ae68ff7979c6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging-f263e6bacf0f2d19.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{[id]-fe765154315782cf.js → [id]-bbe5854b7d19b7e9.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-b96ee3fea3920fcf.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-1b0f9469cb65abfc.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-2987edc77388e85a.js → configure-4bad69cd42c9722c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-eebd2f4ead19cfd6.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-94e2faa73dd6a3e6.js → [id]-b4c808a8a0287d11.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-630a6a3dd6502ba6.js → add-property-5a701477b006a63b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{properties-20ca2f963906674b.js → properties-9a1899dfe052023e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-a3fa3ad77730a03b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{about-a49d0f84cf0cf05e.js → about-d073be113e9ca7b0.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-4769f55b138073f7.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{custom-fields-52d030b1db2ca1b9.js → custom-fields-744e7bbc200557e7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-fa42d8f18df44927.js → domain-records-c5cd5fb578de9515.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-775f55b3f80cd452.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-6fd6071e2009b8f2.js → email-templates-39c7ae3602ac69b2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-66c757325cb58467.js → locations-45e33ba111f8f8b0.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-14def4ca3cc9cda5.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-c6c239996cfa6ae8.js → regulations-94975aeab348528e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-21f26c0dc4d09e9f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-d3ea9034461511cd.js → [id]-82d9af34546adaa2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{systems-abd68fc5ddde5482.js → systems-c320df35d51dc537.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{taxonomy-16b4d75c49276add.js → taxonomy-181ea5b0ac975239.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-78eaf933f755bfe8.js → [id]-622e16a17a11c096.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-6c9ad62479a7d03e.js → user-management-aa872b21bb835d34.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{webpack-2c7ccac5843c4d8e.js → webpack-4df2ba5ee2d40f0a.js} +1 -1
- fides/ui-build/static/admin/_next/static/css/957d0e4fea846ff0.css +1 -0
- fides/ui-build/static/admin/_next/static/rOPehh5NMs1hjog7nTw1q/_buildManifest.js +1 -0
- fides/ui-build/static/admin/_next/static/rOPehh5NMs1hjog7nTw1q/_ssgManifest.js +1 -0
- fides/ui-build/static/admin/add-systems/manual.html +1 -1
- fides/ui-build/static/admin/add-systems/multiple.html +1 -1
- fides/ui-build/static/admin/add-systems.html +1 -1
- fides/ui-build/static/admin/ant-poc.html +1 -1
- fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
- fides/ui-build/static/admin/consent/configure.html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
- fides/ui-build/static/admin/consent/properties.html +1 -1
- fides/ui-build/static/admin/consent/reporting.html +1 -1
- fides/ui-build/static/admin/consent.html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
- fides/ui-build/static/admin/data-catalog.html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
- fides/ui-build/static/admin/data-discovery/activity.html +1 -1
- fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-discovery/detection.html +1 -1
- fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
- fides/ui-build/static/admin/datamap.html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
- fides/ui-build/static/admin/dataset/new.html +1 -1
- fides/ui-build/static/admin/dataset.html +1 -1
- fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
- fides/ui-build/static/admin/datastore-connection/new.html +1 -1
- fides/ui-build/static/admin/datastore-connection.html +1 -1
- fides/ui-build/static/admin/index.html +1 -1
- fides/ui-build/static/admin/integrations/[id].html +1 -1
- fides/ui-build/static/admin/integrations.html +1 -1
- fides/ui-build/static/admin/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-tcf.js +3 -3
- fides/ui-build/static/admin/lib/fides.js +2 -2
- fides/ui-build/static/admin/login/[provider].html +1 -1
- fides/ui-build/static/admin/login.html +1 -1
- fides/ui-build/static/admin/messaging/[id].html +1 -1
- fides/ui-build/static/admin/messaging/add-template.html +1 -1
- fides/ui-build/static/admin/messaging.html +1 -1
- fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure/messaging.html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
- fides/ui-build/static/admin/privacy-requests.html +1 -1
- fides/ui-build/static/admin/properties/[id].html +1 -1
- fides/ui-build/static/admin/properties/add-property.html +1 -1
- fides/ui-build/static/admin/properties.html +1 -1
- fides/ui-build/static/admin/reporting/datamap.html +1 -1
- fides/ui-build/static/admin/settings/about.html +1 -1
- fides/ui-build/static/admin/settings/consent.html +1 -1
- fides/ui-build/static/admin/settings/custom-fields.html +1 -1
- fides/ui-build/static/admin/settings/domain-records.html +1 -1
- fides/ui-build/static/admin/settings/domains.html +1 -1
- fides/ui-build/static/admin/settings/email-templates.html +1 -1
- fides/ui-build/static/admin/settings/locations.html +1 -1
- fides/ui-build/static/admin/settings/organization.html +1 -1
- fides/ui-build/static/admin/settings/regulations.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id].html +1 -1
- fides/ui-build/static/admin/systems.html +1 -1
- fides/ui-build/static/admin/taxonomy.html +1 -1
- fides/ui-build/static/admin/user-management/new.html +1 -1
- fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
- fides/ui-build/static/admin/user-management.html +1 -1
- fides/api/alembic/migrations/versions/1d2f04ac19f2_add_page_column_to_asset_table.py +0 -49
- fides/api/alembic/migrations/versions/7c3fbee90c78_add_user_assigned_data_uses_and_system_.py +0 -54
- fides/api/alembic/migrations/versions/9a1eacd2666b_add_description_column_to_asset.py +0 -25
- fides/api/models/privacy_request/__init__.py +0 -44
- fides/api/models/privacy_request/consent.py +0 -155
- fides/api/models/privacy_request/execution_log.py +0 -108
- fides/api/models/privacy_request/provided_identity.py +0 -149
- fides/api/models/privacy_request/request_task.py +0 -284
- fides/api/models/privacy_request/webhook.py +0 -94
- fides/api/service/storage/s3.py +0 -193
- fides/api/service/storage/util.py +0 -10
- fides/ui-build/static/admin/_next/static/chunks/1100-053fc6b76c65a00f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1376-5cea5ef9362215e8.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/2fbcc6de-a6c61724c327e9fa.js +0 -8
- fides/ui-build/static/admin/_next/static/chunks/3320-5dd62a256ecfc9c3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/355-8a77c9a1cd027f2e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3615-5e2d062d684b8fa1.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4060-8d165e1236ea521a.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4481-142e5a922d5a5548.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4723-0a3c5e2ce143a7d0.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5277-e8a036319456127f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/570-c99f07161bd339cd.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/605-e692e9cfea2e2cb8.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6060-cb1ab5be7067bf7b.js +0 -4
- fides/ui-build/static/admin/_next/static/chunks/6527-0eed08abe252a918.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/678d4732-50255cc09048e643.js +0 -2
- fides/ui-build/static/admin/_next/static/chunks/6954-3b887fb444f9228c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7434-e6fc02c2dd852991.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7980-4bd08957448dea32.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7c79804f.7a7112aece470725.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/8702-d1c8296f9f6afc10.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/905-8ab919e7b274ed50.js +0 -8
- fides/ui-build/static/admin/_next/static/chunks/9187-851756440f79cd75.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9282-2bfbdca45e84e810.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9327-2cba327d10586683.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9676.f297a1347ac09c56.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9767-1a23925d2cb27b51.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/e3251fe7-5777b5d778e6fffa.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/main-24f422f93845a596.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/_app-44256886387d7e3e.js +0 -923
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-d258f0c25fa020bf.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure-723cc3d4f5740ea6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-900004e402c31797.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-5182d356672a3b02.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-7c74373a4d666a3d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-02439d3aeecfb4b9.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-d79551d4c64c398c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]-7e5df4a0de7540bb.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-803c1b577ab17ae3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset-fa743ddc7f89d76b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-a78a73b65929853a.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/fides-js-docs-80b241bf6cddb72e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-d4329043219fed9b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations-adb6aced3bdb4899.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging-1e60754abec1ee6b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-f5f7a8069909ef24.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-9f7eaad05e5b9292.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-d85c0d16ba09ba35.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-afedc48ef4e7f858.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-89524101b7279f6e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-24cba38685dc872c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-a08693d0d1e10bc8.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-151571cff4e85894.js +0 -1
- fides/ui-build/static/admin/_next/static/css/113d823fe71f6af0.css +0 -1
- fides/ui-build/static/admin/_next/static/css/ab65b8cc3144bfc8.css +0 -1
- fides/ui-build/static/admin/_next/static/yhm3LM_VFpK2KeFRFEQyN/_buildManifest.js +0 -1
- fides/ui-build/static/admin/_next/static/yhm3LM_VFpK2KeFRFEQyN/_ssgManifest.js +0 -1
- {ethyca_fides-2.57.1b9.dist-info → ethyca_fides-2.57.1rc0.dist-info}/LICENSE +0 -0
- {ethyca_fides-2.57.1b9.dist-info → ethyca_fides-2.57.1rc0.dist-info}/WHEEL +0 -0
- {ethyca_fides-2.57.1b9.dist-info → ethyca_fides-2.57.1rc0.dist-info}/entry_points.txt +0 -0
- {ethyca_fides-2.57.1b9.dist-info → ethyca_fides-2.57.1rc0.dist-info}/top_level.txt +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/user-management/{new-be690621a944bfe2.js → new-d6717378b42982d5.js} +0 -0
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5158],{57300:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/resources",function(){return a(21174)}])},79609:function(e,t,a){"use strict";a.d(t,{N4:function(){return i},UG:function(){return o},xw:function(){return n}});var s=a(
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5158],{57300:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/resources",function(){return a(21174)}])},79609:function(e,t,a){"use strict";a.d(t,{N4:function(){return i},UG:function(){return o},xw:function(){return n}});var s=a(89319);let{useGetCatalogSystemsQuery:o,useGetCatalogProjectsQuery:n,useGetCatalogDatasetsQuery:i}=a(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,s.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},21174:function(e,t,a){"use strict";a.r(t);var s=a(24246),o=a(59003),n=a(92222),i=a(86677),r=a(27378),l=a(77213),u=a(77830),c=a(58754),d=a(14481),g=a(79609),m=a(98800),p=a(81406),f=a(69172),y=a(1315);let _={items:[],total:0,page:1,size:50,pages:1};t.default=()=>{let{query:e,push:t}=(0,i.useRouter)(),a=e.systemId,C=e.monitor_config_ids,{data:w,isLoading:h}=(0,y.rn)(a),{PAGE_SIZES:v,pageSize:x,setPageSize:R,onPreviousPageClick:j,isPreviousPageDisabled:E,onNextPageClick:P,isNextPageDisabled:N,startRange:b,endRange:T,pageIndex:k,setTotalPages:D}=(0,d.oi)(),{isFetching:M,isLoading:S,data:q}=(0,g.N4)({page:k,size:x,monitor_config_ids:C}),{items:z,total:Z,pages:G}=(0,r.useMemo)(()=>null!=q?q:_,[q]);(0,r.useEffect)(()=>{D(G)},[G,D]);let[I,X]=(0,r.useState)(void 0),O=(0,f.Z)({onDetailClick:e=>X(e)}),A=(0,o.b7)({getCoreRowModel:(0,n.sC)(),getGroupedRowModel:(0,n.qe)(),getExpandedRowModel:(0,n.rV)(),columns:O,manualPagination:!0,data:z,columnResizeMode:"onChange"}),F=!S&&!h&&!M;return(0,s.jsxs)(l.Z,{title:"Data catalog",children:[(0,s.jsx)(c.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:u.mX},{title:(null==w?void 0:w.name)||a}]}),!F&&(0,s.jsx)(d.I4,{rowHeight:36,numRows:36}),F&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.ZK,{tableInstance:A,emptyTableNotice:(0,s.jsx)(p.Z,{}),onRowClick:e=>t("".concat(u.mX,"/").concat(a,"/resources/").concat(e.urn))}),(0,s.jsx)(d.s8,{totalRows:Z||0,pageSizes:v,setPageSize:R,onPreviousPageClick:j,isPreviousPageDisabled:E,onNextPageClick:P,isNextPageDisabled:N,startRange:b,endRange:T}),(0,s.jsx)(m.Z,{dataset:I,onClose:()=>X(void 0)})]})]})}}},function(e){e.O(0,[8033,2780,4481,3872,2888,9774,179],function(){return e(e.s=57300)}),_N_E=e.O()}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4231],{95372:function(e){e.exports=function(e,t,a,s){for(var i=e.length,n=a+(s?1:-1);s?n--:++n<i;)if(t(e[n],n,e))return n;return -1}},74833:function(e,t,a){var s=a(56127),i=/^\s+/;e.exports=function(e){return e?e.slice(0,s(e)+1).replace(i,""):e}},56632:function(e,t,a){var s=a(89278),i=a(80068),n=a(50098);e.exports=function(e){return function(t,a,r){var l=Object(t);if(!i(t)){var o=s(a,3);t=n(t),a=function(e){return o(l[e],e,l)}}var d=e(t,a,r);return d>-1?l[o?t[d]:d]:void 0}}},56127:function(e){var t=/\s/;e.exports=function(e){for(var a=e.length;a--&&t.test(e.charAt(a)););return a}},64925:function(e,t,a){var s=a(56632)(a(66259));e.exports=s},66259:function(e,t,a){var s=a(95372),i=a(89278),n=a(47991),r=Math.max;e.exports=function(e,t,a){var l=null==e?0:e.length;if(!l)return -1;var o=null==a?0:n(a);return o<0&&(o=r(l+o,0)),s(e,i(t,3),o)}},94919:function(e,t,a){var s=a(91936),i=1/0;e.exports=function(e){return e?(e=s(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,a){var s=a(94919);e.exports=function(e){var t=s(e),a=t%1;return t==t?a?t-a:t:0}},91936:function(e,t,a){var s=a(74833),i=a(11611),n=a(55193),r=0/0,l=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,d=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(n(e))return r;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=s(e);var a=o.test(e);return a||d.test(e)?c(e.slice(2),a?2:8):l.test(e)?r:+e}},66248:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog",function(){return a(99188)}])},77213:function(e,t,a){"use strict";a.d(t,{Z:function(){return p}});var s=a(24246),i=a(56351),n=a(88038),r=a.n(n),l=a(86677);a(27378);var o=a(25980),d=a(90867),c=a(77830),u=()=>{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(c.fz)},children:"Configure"})]}),(0,s.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:a,padded:n=!0,mainProps:c}=e,p=(0,o.hz)(),m=(0,l.useRouter)(),x="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,f=!(p.flags.privacyRequestsConfiguration&&x),{data:h}=(0,d.JE)(void 0,{skip:f}),{data:g}=(0,d.PW)(void 0,{skip:f}),v=p.flags.privacyRequestsConfiguration&&(!h||!g)&&x;return(0,s.jsxs)(i.kCb,{"data-testid":a,direction:"column",h:"100vh",children:[(0,s.jsxs)(r(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",a]}),(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:n?6:0,px:n?10:0,h:n?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[v?(0,s.jsx)(u,{}):null,t]})]})}},58754:function(e,t,a){"use strict";var s=a(24246),i=a(56351),n=a(70788);t.Z=e=>{let{heading:t,breadcrumbItems:a,isSticky:r=!0,children:l,rightContent:o,style:d,...c}=e;return(0,s.jsxs)("div",{...c,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",...d}:{paddingBottom:"24px",...d},children:[(0,s.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(i.X6q,{className:a||l?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,o&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!a&&(0,s.jsx)(n.m,{className:l?"pb-4":void 0,items:a,"data-testid":"page-breadcrumb"}),l]})}},79789:function(e,t,a){"use strict";a.d(t,{Hn:function(){return l},XU:function(){return r},Z5:function(){return o},aG:function(){return u},cB:function(){return n},hX:function(){return c},vQ:function(){return d}});var s=a(24246),i=a(56351);let n=e=>{let{text:t,...a}=e;return(0,s.jsx)(i.X6q,{fontSize:"sm",mt:4,mb:1,...a,children:t})},r=e=>{let{children:t}=e;return(0,s.jsx)(i.xvT,{fontSize:"14px",mb:4,children:t})},l=e=>{let{children:t,href:a}=e;return(0,s.jsx)(i.rUS,{href:a,textDecoration:"underline",isExternal:!0,children:t})},o=e=>{let{children:t}=e;return(0,s.jsx)(i.QI$,{fontSize:"14px",mb:4,children:t})},d=e=>{let{children:t}=e;return(0,s.jsx)(i.GSI,{fontSize:"14px",mb:4,ml:6,children:t})},c=e=>{let{children:t}=e;return(0,s.jsx)(i.EKh,{display:"block",whiteSpace:"pre",p:4,mb:4,overflowX:"scroll",children:t})},u=e=>{let{data:t}=e;return(0,s.jsxs)(i.iA_,{fontSize:"14px",children:[(0,s.jsx)(i.hrZ,{children:(0,s.jsxs)(i.Tr,{children:[(0,s.jsx)(i.Th,{children:"Permission"}),(0,s.jsx)(i.Th,{children:"Description"})]})}),(0,s.jsx)(i.p3B,{children:t.map(e=>(0,s.jsxs)(i.Tr,{children:[(0,s.jsx)(i.Td,{children:(0,s.jsx)(i.Vp9,{children:e.permission})}),(0,s.jsx)(i.Td,{children:e.description})]},e.permission))})]})}},79283:function(e,t,a){"use strict";a.d(t,{l:function(){return o}});var s=a(24246),i=a(56351),n=a(72707),r=a.n(n);let l=e=>{let{data:t}=e;return(0,s.jsxs)(i.jqI,{gap:12,title:"".concat(t.primaryName||"").concat(t.primaryName?": ":"").concat(t.name," - ").concat(t.description),children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:t.primaryName||t.name}),t.primaryName&&": ".concat(t.name)]}),(0,s.jsx)("em",{children:t.description})]})},o=e=>{let{options:t,...a}=e,n=null==t?void 0:t.map(e=>({...e,className:r().option}));return(0,s.jsx)(i.WPr,{options:n,autoFocus:!0,variant:"borderless",optionRender:l,dropdownStyle:{minWidth:"500px"},className:"w-full p-0","data-testid":"taxonomy-select",...a})}},97181:function(e,t,a){"use strict";a.d(t,{d:function(){return d}});var s=a(24246),i=a(56351),n=a(34090),r=a(27378),l=a(91613),o=a(40324);let d=e=>{let{name:t,label:a,labelProps:d,tooltip:c,isRequired:u,layout:p="inline",...m}=e,[x,f,{setValue:h}]=(0,n.U$)(t),g=!!(f.touched&&f.error),[v,j]=(0,r.useState)("");x.value||"tags"!==m.mode&&"multiple"!==m.mode||(x.value=[]),"tags"===m.mode&&"string"==typeof x.value&&(x.value=[x.value]);let y="tags"===m.mode?(e,t)=>e?e.value!==v||x.value.includes(v)?m.optionRender?m.optionRender(e,t):e.label:'Create "'.concat(v,'"'):void 0:m.optionRender||void 0,b=e=>{j(e),m.onSearch&&m.onSearch(e)},_=(e,t)=>{h(e),m.onChange&&m.onChange(e,t)};return"inline"===p?(0,s.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,s.jsxs)(i.rjZ,{templateColumns:a?"1fr 3fr":"1fr",children:[a?(0,s.jsx)(o.__,{htmlFor:m.id||t,...d,children:a}):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,{...x,id:m.id||t,"data-testid":"controlled-select-".concat(x.name),...m,optionRender:y,onSearch:"tags"===m.mode?b:void 0,onChange:_,value:x.value||void 0}),(0,s.jsx)(o.Bc,{isInvalid:g,message:f.error,fieldName:x.name})]}),c?(0,s.jsx)(l.Z,{label:c}):null]})]})}):(0,s.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,s.jsxs)(i.gCW,{alignItems:"start",children:[(0,s.jsxs)(i.jqI,{align:"center",children:[a?(0,s.jsx)(o.__,{htmlFor:m.id||t,fontSize:"xs",my:0,mr:1,...d,children:a}):null,c?(0,s.jsx)(l.Z,{label:c}):null]}),(0,s.jsx)(i.WPr,{...x,id:m.id||t,"data-testid":"controlled-select-".concat(x.name),...m,optionRender:y,onSearch:"tags"===m.mode?b:void 0,onChange:_,value:x.value||void 0}),(0,s.jsx)(o.Bc,{isInvalid:g,message:f.error,fieldName:x.name})]})})}},34929:function(e,t,a){"use strict";var s=a(24246),i=a(64925),n=a.n(i),r=a(27378),l=a(16134),o=a(30002),d=a(28079),c=a(57072);let u=()=>{let{isLoading:e}=(0,d.fd)(),t=(0,l.C)(d.U3),{isLoading:a}=(0,c.MO)(),s=(0,l.C)(c.qb),{isLoading:i}=(0,o.te)();return{dataUses:t,dataSubjects:(0,l.C)(o.ZL),dataCategories:s,isLoading:e||a||i}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:a,isLoading:i}=u(),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},o=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=t(e);if(!s)return{};let i=t(l(e,a)),n=!!s.parent_key;return{name:s.name||void 0,primaryName:n&&(null==i?void 0:i.name)!==s.name&&(null==i?void 0:i.name)||void 0}},d=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:i,primaryName:n}=o(e,t,a);return i?n?(0,s.jsxs)(r.Fragment,{children:[(0,s.jsxs)("strong",{children:[n,":"]})," ",i]},e):(0,s.jsx)("strong",{children:i},e):e},c=t=>n()(e,{fides_key:t}),p=e=>n()(t,{fides_key:e}),m=e=>n()(a,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:c,getDataUseDisplayName:e=>d(e,c,1),getDataUseDisplayNameProps:e=>o(e,c,1),getDataCategories:()=>t,getDataCategoryByKey:p,getDataCategoryDisplayName:e=>d(e,p,2),getDataCategoryDisplayNameProps:e=>o(e,p,2),getDataSubjects:()=>a,getDataSubjectByKey:m,getDataSubjectDisplayName:e=>{let t=m(e);return t?t.name:e},getPrimaryKey:l,isLoading:i}}},8133:function(e,t,a){"use strict";var s=a(24246),i=a(56351);t.Z=e=>{let{title:t,children:a,isOpen:n,onClose:r,...l}=e;return(0,s.jsxs)(i.u_l,{isOpen:n,onClose:r,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...l,children:[(0,s.jsx)(i.ZAr,{}),(0,s.jsxs)(i.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",children:[(0,s.jsx)(i.xBx,{p:0,children:(0,s.jsx)(i.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,s.jsx)(i.X6q,{as:"h3",size:"sm",children:t})})}),(0,s.jsx)(i.fef,{pb:4,overflow:"auto",children:a})]})]})}},70788:function(e,t,a){"use strict";a.d(t,{m:function(){return d}});var s=a(24246),i=a(56351),n=a(79894),r=a.n(n),l=a(27378);let{Text:o}=i.AntTypography,d=e=>{let{items:t,...a}=e,n=(0,l.useMemo)(()=>null==t?void 0:t.map((e,a)=>{let n=a===t.length-1,l={...e},d=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,s.jsx)(o,{style:{color:"inherit",maxWidth:n?void 0:400},ellipsis:!n,children:l.title})),d)?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:n,...a})}},79609:function(e,t,a){"use strict";a.d(t,{N4:function(){return r},UG:function(){return i},xw:function(){return n}});var s=a(89319);let{useGetCatalogSystemsQuery:i,useGetCatalogProjectsQuery:n,useGetCatalogDatasetsQuery:r}=a(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,s.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},81406:function(e,t,a){"use strict";var s=a(24246),i=a(56351);t.Z=()=>(0,s.jsxs)(i.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:[(0,s.jsx)(i.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"}),(0,s.jsx)(i.xvT,{fontSize:"sm",children:"You're up to date!"})]})},26183:function(e,t,a){"use strict";var s=a(24246);a(27378),t.Z=e=>{let{children:t,className:a,...i}=e;return(0,s.jsx)("div",{className:"relative flex w-full flex-wrap items-center gap-2 overflow-x-auto py-2 ".concat(a||""),...i,children:t})}},3765:function(e,t,a){"use strict";var s=a(56351),i=a(812),n=a(46628),r=a(1315),l=a(31883);t.Z=e=>{let t=(0,s.pmc)(),[a]=(0,r.qQ)(),o=a=>!!e.privacy_declarations.find(e=>e.data_use===a.data_use&&e.name===a.name)&&(t((0,n.Vo)("A declaration already exists with that data use in this system. Please supply a different data use.")),!0),d=(e,a)=>{if((0,l.D4)(e)){let a=(0,i.e$)(e.error,"An unexpected error occurred while updating the system. Please try again.");t((0,n.Vo)(a));return}return t.closeAll(),t((0,n.t5)(a?"Data use deleted":"Data use saved")),e.data.privacy_declarations},c=async(t,s)=>{let i=t.map(e=>{var t;return{...e,name:null!==(t=e.name)&&void 0!==t?t:""}}),n={...e,privacy_declarations:i};return d(await a(n),s)};return{createDataUse:async a=>{if(!o(a))return t.closeAll(),c([...e.privacy_declarations,a])},updateDataUse:async(t,a)=>{if(!(a.id!==t.id&&o(a)))return c(e.privacy_declarations.map(e=>e.id===t.id?a:e))},deleteDataUse:async t=>c(e.privacy_declarations.filter(e=>e.id!==t.id),!0),deleteDeclarationByDataUse:async t=>c(e.privacy_declarations.filter(e=>e.data_use!==t),!0)}}},54748:function(e,t,a){"use strict";var s=a(27378),i=a(21702);t.Z=()=>({legalBasisOptions:(0,s.useMemo)(()=>Object.keys(i.gP).map(e=>({value:i.gP[e],label:i.gP[e]})),[])})},28325:function(e,t,a){"use strict";var s=a(27378),i=a(21702);t.Z=()=>({specialCategoryLegalBasisOptions:(0,s.useMemo)(()=>Object.keys(i.nV).map(e=>({value:i.nV[e],label:i.nV[e]})),[])})},99188:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return A}});var s=a(24246),i=a(77213),n=a(58754),r=a(92222),l=a(59003),o=a(86677),d=a(27378),c=a(77830),u=a(14481),p=a(16394),m=a(79609),x=a(81406),f=a(56351),h=a(79789),g=a(79283),v=a(34929),j=e=>{let{selectedTaxonomies:t,showDisabled:a=!1,...i}=e,{getDataUseDisplayNameProps:n,getDataUses:r}=(0,v.Z)(),l=(a?r():r().filter(e=>e.active)).filter(e=>!t.includes(e.fides_key)).map(e=>{let{name:t,primaryName:a}=n(e.fides_key);return{value:e.fides_key,name:t,primaryName:a,description:e.description||""}});return(0,s.jsx)(g.l,{options:l,...i})},y=a(34090),b=a(59389),_=a(97181),w=a(40324),C=a(8133),k=a(54748),N=a(28325),S=a(34151),D=a.n(S);let R=b.Ry().shape({data_use:b.Z_().required("Data use is required")});var q=e=>{let{isOpen:t,onClose:a,onSave:i,declaration:n}=e,{getDataUses:r,getDataCategories:l,getDataSubjects:o}=(0,v.Z)(),{isOpen:d,onToggle:c}=(0,f.qY0)(),u=r().map(e=>({label:e.fides_key,value:e.fides_key})),p=l().map(e=>({label:e.fides_key,value:e.fides_key})),m=o().map(e=>({label:e.fides_key,value:e.fides_key})),{legalBasisOptions:x}=(0,k.Z)(),{specialCategoryLegalBasisOptions:h}=(0,N.Z)();return(0,s.jsx)(y.J9,{initialValues:n,enableReinitialize:!0,onSubmit:e=>{i(e),a()},validationSchema:R,children:e=>{let{dirty:i,isValid:n,values:r,resetForm:l}=e;return(0,s.jsx)(C.Z,{title:"Edit data use",isOpen:t,onClose:a,children:(0,s.jsxs)(y.l0,{children:[(0,s.jsxs)(f.jqI,{vertical:!0,className:"gap-6 py-4",children:[(0,s.jsx)(_.d,{name:"data_use",label:"Data use",options:u,layout:"stacked",isRequired:!0}),(0,s.jsx)(_.d,{name:"data_categories",label:"Data categories",options:p,mode:"multiple",layout:"stacked"}),(0,s.jsx)(_.d,{name:"data_subjects",label:"Data subjects",options:m,mode:"multiple",layout:"stacked"}),(0,s.jsx)(w.j0,{name:"name",label:"Declaration name",variant:"stacked"}),(0,s.jsxs)(f.jqI,{vertical:!0,className:"gap-6 p-4 ".concat(D().advancedSettings),children:[(0,s.jsxs)(f.jqI,{className:"cursor-pointer justify-between",onClick:c,children:[(0,s.jsx)(f.xvT,{fontSize:"xs",children:"Advanced settings"}),(0,s.jsx)(f.v4q,{className:d?"rotate-180":void 0})]}),(0,s.jsx)(f.UO1,{in:d,children:(0,s.jsxs)(f.jqI,{vertical:!0,className:"gap-4",children:[(0,s.jsx)(_.d,{name:"legal_basis_for_processing",label:"Legal basis for processing",options:x,layout:"stacked"}),(0,s.jsx)(f.UO1,{in:(null==r?void 0:r.legal_basis_for_processing)==="Legitimate interests",animateOpacity:!0,style:{overflow:"visible"},children:(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(w.j0,{name:"impact_assessment_location",label:"Impact assessment location",tooltip:"Where is the legitimate interest impact assessment stored?",variant:"stacked"})})}),(0,s.jsx)(w.w8,{name:"flexible_legal_basis_for_processing",label:"This legal basis is flexible",tooltip:"Has the vendor declared that the legal basis may be overridden?",variant:"stacked"}),(0,s.jsx)(w.j0,{name:"retention_period",label:"Retention period (days)",tooltip:"How long is personal data retained for this purpose?",variant:"stacked"}),(0,s.jsxs)(f.Kqy,{spacing:0,children:[(0,s.jsx)(w.w8,{name:"processes_special_category_data",label:"This system processes special category data",tooltip:"Is this system processing special category data as defined by GDPR Article 9?",variant:"stacked"}),(0,s.jsx)(f.UO1,{in:null==r?void 0:r.processes_special_category_data,animateOpacity:!0,style:{overflow:"visible"},children:(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(_.d,{isRequired:!0,name:"special_category_legal_basis",label:"Legal basis for processing",options:h,tooltip:"What is the legal basis under which the special category data is processed?",layout:"stacked"})})})]})]})})]})]}),(0,s.jsxs)("div",{className:"flex w-full justify-between",children:[(0,s.jsx)(f.wpx,{onClick:()=>{l(),a()},children:"Cancel"}),(0,s.jsx)(f.wpx,{type:"primary",htmlType:"submit",disabled:!i||!n,loading:!1,"data-testid":"save-btn",children:"Save"})]})]})})}})},z=a(26183),I=a(3765);let T=e=>({data_use:e,data_categories:["system"]});var P=e=>{var t,a;let{system:i}=e,[n,r]=(0,d.useState)(!1),[l,o]=(0,d.useState)(void 0),{getDataUseDisplayName:c}=(0,v.Z)(),{isOpen:u,onOpen:p,onClose:m}=(0,f.qY0)(),x=e=>{o(e),p()},{createDataUse:h,deleteDeclarationByDataUse:g,updateDataUse:y}=(0,I.Z)(i),b=null!==(a=null===(t=i.privacy_declarations)||void 0===t?void 0:t.map(e=>e.data_use))&&void 0!==a?a:[];return(0,s.jsxs)(z.Z,{children:[!n&&(0,s.jsxs)(s.Fragment,{children:[b.map((e,t)=>(0,s.jsxs)(f.j8w,{"data-testid":"data-use-".concat(e),color:"white",onClick:()=>x(i.privacy_declarations[t]),closable:!0,onClose:()=>g(e),closeButtonLabel:"Remove data use",children:[(0,s.jsx)(f.PJP.I8b,{size:10}),c(e)]},e)),(0,s.jsx)(f.j8w,{onClick:()=>r(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"}),(0,s.jsx)(q,{isOpen:u,onClose:m,onSave:e=>y(l,e),declaration:l})]}),n&&(0,s.jsx)(f.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,s.jsx)(j,{onChange:e=>{h(T(e)),r(!1)},selectedTaxonomies:b,onBlur:()=>r(!1),open:!0})})]})},Z=e=>{var t;let{system:a,onEdit:i,onClose:n}=e;return(0,s.jsxs)(f.dys,{isOpen:!!a,onClose:n,size:"md",children:[(0,s.jsx)(f.P1B,{}),(0,s.jsxs)(f.scA,{"data-testid":"system-details",children:[(0,s.jsx)(f.OXI,{children:(null==a?void 0:a.name)||(null==a?void 0:a.fides_key)}),(0,s.jsx)(f.cCv,{}),(0,s.jsxs)(f.Ng0,{children:[(0,s.jsx)(h.cB,{text:"Title",mt:0}),(0,s.jsx)(h.XU,{children:null!==(t=null==a?void 0:a.name)&&void 0!==t?t:null==a?void 0:a.fides_key}),(null==a?void 0:a.description)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h.cB,{text:"Description"}),(0,s.jsx)(h.XU,{children:null==a?void 0:a.description})]}),(0,s.jsx)(h.cB,{text:"Data uses"}),(0,s.jsx)(P,{system:a})]}),(0,s.jsx)(f.zeN,{children:(0,s.jsx)(f.wpx,{onClick:i,"data-testid":"edit-system-btn",children:"Edit system"})})]})]})},O=e=>{let{onDetailClick:t}=e;return(0,s.jsxs)(f.v2r,{children:[(0,s.jsx)(f.j2t,{as:f.wpx,size:"small",type:"text",className:"max-w-4",icon:(0,s.jsx)(f.nXP,{transform:"rotate(90deg)",ml:2}),"data-testid":"system-actions-menu"}),(0,s.jsx)(f.qyq,{children:t&&(0,s.jsx)(f.sNh,{onClick:t,"data-testid":"view-system-details",children:"View details"})})]})},B=a(70675);let U={items:[],total:0,page:1,size:50,pages:1},E=(0,r.Cl)();var M=()=>{let[e,t]=(0,d.useState)({}),a=(0,o.useRouter)(),{PAGE_SIZES:i,pageSize:n,setPageSize:f,onPreviousPageClick:h,isPreviousPageDisabled:g,onNextPageClick:v,isNextPageDisabled:j,startRange:y,endRange:b,pageIndex:_,setTotalPages:w}=(0,u.oi)(),{data:C,isLoading:k}=(0,m.UG)({page:_,size:n,show_hidden:!1}),[N]=(0,B.j3)(),{items:S,total:D,pages:R}=(0,d.useMemo)(()=>null!=C?C:U,[C]);(0,d.useEffect)(()=>{w(R)},[R,w]);let[q,z]=(0,d.useState)(void 0),I=(0,d.useMemo)(()=>S.find(e=>e.fides_key===q),[S,q]),T=async e=>{var t,s;let i=await N({connection_config_key:e.connection_configs.key,page:1,size:1}),n=!!(null==i?void 0:null===(t=i.data)||void 0===t?void 0:t.total),r=(0,p.du)(null!==(s=e.monitor_config_keys)&&void 0!==s?s:[],"monitor_config_ids"),l="".concat(c.mX,"/").concat(e.fides_key,"/").concat(n?"projects":"resources","?").concat(r);a.push(l)},M=(0,d.useMemo)(()=>[E.accessor(e=>e.name,{id:"name",cell:e=>{var t;let{getValue:a,row:i}=e;return(0,s.jsx)(u.G3,{value:a(),fontWeight:(null===(t=i.original.connection_configs)||void 0===t?void 0:t.key)?"semibold":"normal"})},header:e=>(0,s.jsx)(u.Rr,{value:"Name",...e})}),E.display({id:"data-uses",cell:e=>{let{row:t}=e;return(0,s.jsx)(P,{system:t.original})},header:e=>(0,s.jsx)(u.Rr,{value:"Data uses",...e}),meta:{disableRowClick:!0},minSize:280}),E.display({id:"actions",cell:e=>(0,s.jsx)(O,{onDetailClick:()=>z(e.row.original.fides_key)}),maxSize:20,enableResizing:!1,meta:{cellProps:{borderLeft:"none"},disableRowClick:!0}})],[]),A=(0,l.b7)({getCoreRowModel:(0,r.sC)(),getGroupedRowModel:(0,r.qe)(),getExpandedRowModel:(0,r.rV)(),getRowId:e=>e.fides_key,manualPagination:!0,columnResizeMode:"onChange",columns:M,data:S,onRowSelectionChange:t,state:{rowSelection:e}});return k?(0,s.jsx)(u.I4,{rowHeight:36,numRows:36}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u.ZK,{tableInstance:A,emptyTableNotice:(0,s.jsx)(x.Z,{}),onRowClick:T,getRowIsClickable:e=>{var t;return!!(null===(t=e.connection_configs)||void 0===t?void 0:t.key)}}),(0,s.jsx)(u.s8,{totalRows:D||0,pageSizes:i,setPageSize:f,onPreviousPageClick:h,isPreviousPageDisabled:g,onNextPageClick:v,isNextPageDisabled:j,startRange:y,endRange:b}),(0,s.jsx)(Z,{system:I,onClose:()=>z(void 0),onEdit:()=>a.push({pathname:c.Dv,query:{id:q}})})]})},A=()=>(0,s.jsxs)(i.Z,{title:"Data catalog",children:[(0,s.jsx)(n.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems"}]}),(0,s.jsx)(M,{})]})},31883:function(e,t,a){"use strict";a.d(t,{Bw:function(){return s.Bw},D4:function(){return s.D4}});var s=a(19043)},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}},34151:function(e){e.exports={advancedSettings:"EditMinimalDataUseModal_advancedSettings___i9jS"}}},function(e){e.O(0,[8033,2780,2858,2866,9278,4481,2888,9774,179],function(){return e(e.s=66248)}),_N_E=e.O()}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4154],{58095:function(e,t,s){var n=s(8817);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},21796:function(e){e.exports=function(e,t,s){for(var n=-1,i=null==e?0:e.length;++n<i;)if(s(t,e[n]))return!0;return!1}},8817:function(e,t,s){var n=s(95372),i=s(1129),a=s(58263);e.exports=function(e,t,s){return t==t?a(e,t,s):n(e,i,s)}},1129:function(e){e.exports=function(e){return e!=e}},92198:function(e,t,s){var n=s(52485),i=s(58095),a=s(21796),r=s(65581),o=s(47111),l=s(43735);e.exports=function(e,t,s){var d=-1,c=i,u=e.length,m=!0,h=[],p=h;if(s)m=!1,c=a;else if(u>=200){var v=t?null:o(e);if(v)return l(v);m=!1,c=r,p=new n}else p=t?[]:h;e:for(;++d<u;){var g=e[d],y=t?t(g):g;if(g=s||0!==g?g:0,m&&y==y){for(var x=p.length;x--;)if(p[x]===y)continue e;t&&p.push(y),h.push(g)}else c(p,y,s)||(p!==h&&p.push(y),h.push(g))}return h}},47111:function(e,t,s){var n=s(46151),i=s(50344),a=s(43735),r=n&&1/a(new n([,-0]))[1]==1/0?function(e){return new n(e)}:i;e.exports=r},58263:function(e){e.exports=function(e,t,s){for(var n=s-1,i=e.length;++n<i;)if(e[n]===t)return n;return -1}},50344:function(e){e.exports=function(){}},83766:function(e,t,s){var n=s(92198);e.exports=function(e){return e&&e.length?n(e):[]}},25654:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/[monitorId]/[systemId]",function(){return s(58955)}])},35287:function(e,t,s){"use strict";var n=s(24246),i=s(56351),a=s(88038),r=s.n(a);s(27378),t.Z=e=>{let{children:t,title:s,mainProps:a}=e;return(0,n.jsxs)(i.kCb,{"data-testid":s,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,n.jsxs)(r(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",s]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsx)(i.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...a,children:t})]})}},58754:function(e,t,s){"use strict";var n=s(24246),i=s(56351),a=s(70788);t.Z=e=>{let{heading:t,breadcrumbItems:s,isSticky:r=!0,children:o,rightContent:l,style:d,...c}=e;return(0,n.jsxs)("div",{...c,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",...d}:{paddingBottom:"24px",...d},children:[(0,n.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(i.X6q,{className:s||o?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,l&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!s&&(0,n.jsx)(a.m,{className:o?"pb-4":void 0,items:s,"data-testid":"page-breadcrumb"}),o]})}},79283:function(e,t,s){"use strict";s.d(t,{l:function(){return l}});var n=s(24246),i=s(56351),a=s(72707),r=s.n(a);let o=e=>{let{data:t}=e;return(0,n.jsxs)(i.jqI,{gap:12,title:"".concat(t.primaryName||"").concat(t.primaryName?": ":"").concat(t.name," - ").concat(t.description),children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("strong",{children:t.primaryName||t.name}),t.primaryName&&": ".concat(t.name)]}),(0,n.jsx)("em",{children:t.description})]})},l=e=>{let{options:t,...s}=e,a=null==t?void 0:t.map(e=>({...e,className:r().option}));return(0,n.jsx)(i.WPr,{options:a,autoFocus:!0,variant:"borderless",optionRender:o,dropdownStyle:{minWidth:"500px"},className:"w-full p-0","data-testid":"taxonomy-select",...s})}},97181:function(e,t,s){"use strict";s.d(t,{d:function(){return d}});var n=s(24246),i=s(56351),a=s(34090),r=s(27378),o=s(91613),l=s(40324);let d=e=>{let{name:t,label:s,labelProps:d,tooltip:c,isRequired:u,layout:m="inline",...h}=e,[p,v,{setValue:g}]=(0,a.U$)(t),y=!!(v.touched&&v.error),[x,f]=(0,r.useState)("");p.value||"tags"!==h.mode&&"multiple"!==h.mode||(p.value=[]),"tags"===h.mode&&"string"==typeof p.value&&(p.value=[p.value]);let j="tags"===h.mode?(e,t)=>e?e.value!==x||p.value.includes(x)?h.optionRender?h.optionRender(e,t):e.label:'Create "'.concat(x,'"'):void 0:h.optionRender||void 0,b=e=>{f(e),h.onSearch&&h.onSearch(e)},w=(e,t)=>{g(e),h.onChange&&h.onChange(e,t)};return"inline"===m?(0,n.jsx)(i.NIc,{isInvalid:y,isRequired:u,children:(0,n.jsxs)(i.rjZ,{templateColumns:s?"1fr 3fr":"1fr",children:[s?(0,n.jsx)(l.__,{htmlFor:h.id||t,...d,children:s}):null,(0,n.jsxs)(i.jqI,{align:"center",children:[(0,n.jsxs)(i.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,n.jsx)(i.WPr,{...p,id:h.id||t,"data-testid":"controlled-select-".concat(p.name),...h,optionRender:j,onSearch:"tags"===h.mode?b:void 0,onChange:w,value:p.value||void 0}),(0,n.jsx)(l.Bc,{isInvalid:y,message:v.error,fieldName:p.name})]}),c?(0,n.jsx)(o.Z,{label:c}):null]})]})}):(0,n.jsx)(i.NIc,{isInvalid:y,isRequired:u,children:(0,n.jsxs)(i.gCW,{alignItems:"start",children:[(0,n.jsxs)(i.jqI,{align:"center",children:[s?(0,n.jsx)(l.__,{htmlFor:h.id||t,fontSize:"xs",my:0,mr:1,...d,children:s}):null,c?(0,n.jsx)(o.Z,{label:c}):null]}),(0,n.jsx)(i.WPr,{...p,id:h.id||t,"data-testid":"controlled-select-".concat(p.name),...h,optionRender:j,onSearch:"tags"===h.mode?b:void 0,onChange:w,value:p.value||void 0}),(0,n.jsx)(l.Bc,{isInvalid:y,message:v.error,fieldName:p.name})]})})}},14047:function(e,t,s){"use strict";s.d(t,{H:function(){return a},V:function(){return n.V}});var n=s(84306),i=s(812);let a=()=>{let{errorAlert:e}=(0,n.V)();return{handleError:t=>{let s="An unexpected error occurred. Please try again.";(0,i.Ot)(t)?s=t.data.detail:(0,i.tB)(t)&&(s=t.data.detail[0].msg),e(s)}}}},84306:function(e,t,s){"use strict";s.d(t,{V:function(){return a}});var n=s(24246),i=s(56351);let a=()=>{let e=(0,i.pmc)();return{errorAlert:(t,s,a)=>{let r={...a,position:(null==a?void 0:a.position)||"top",render:e=>{let{onClose:a}=e;return(0,n.jsxs)(i.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,n.jsx)(i.zMQ,{}),(0,n.jsxs)(i.xuv,{children:[s&&(0,n.jsx)(i.CdC,{children:s}),(0,n.jsx)(i.XaZ,{children:t})]}),(0,n.jsx)(i.PZ7,{onClick:a,position:"relative",right:0,size:"sm",top:-1})]})}};(null==a?void 0:a.id)&&e.isActive(a.id)?e.update(a.id,r):e(r)},successAlert:(t,s,a)=>{let r={...a,position:(null==a?void 0:a.position)||"top",render:e=>{let{onClose:a}=e;return(0,n.jsxs)(i.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,n.jsx)(i.zMQ,{}),(0,n.jsxs)(i.xuv,{children:[s&&(0,n.jsx)(i.CdC,{children:s}),(0,n.jsx)(i.XaZ,{children:t})]}),(0,n.jsx)(i.PZ7,{onClick:a,position:"relative",right:0,size:"sm",top:-1})]})}};(null==a?void 0:a.id)&&e.isActive(a.id)?e.update(a.id,r):e(r)}}}},45938:function(e,t,s){"use strict";s.d(t,{Gt:function(){return m},eB:function(){return h},oI:function(){return u}});var n=s(24246),i=s(34090),a=s(27378),r=s(16134),o=s(38602),l=s(58452);let d=(0,a.createRef)(),c=(0,a.createRef)(),u=()=>{let e=(0,r.T)(),t=(0,r.C)(o.DB),s=(0,a.useCallback)(()=>{c.current=void 0,d.current=void 0},[]),n=(0,a.useCallback)(()=>{e((0,o.Mr)()),c.current&&(c.current(!0),s())},[e,s]),i=(0,a.useCallback)(()=>{e((0,o.Mr)()),c.current&&(c.current(!1),s())},[e,s]);return{attemptAction:(0,a.useCallback)(()=>t?(e((0,o.h7)()),d.current||(d.current=new Promise(e=>{c.current=e})),d.current):Promise.resolve(!0),[t,e]),onConfirm:n,onClose:i}},m=e=>{let{id:t,name:s}=e,{dirty:n}=(0,i.u6)(),l=(0,r.T)();return(0,a.useEffect)(()=>(l((0,o.Zu)({id:t,name:s})),()=>{l((0,o.dz)({id:t}))}),[l,t,s]),(0,a.useEffect)(()=>{l((0,o.$p)({id:t,isDirty:n}))},[n,l,t]),null},h=()=>{let{onConfirm:e,onClose:t}=u(),s=(0,r.C)(o.uv);return(0,n.jsx)(l.Z,{isOpen:s,onClose:t,onConfirm:e,isCentered:!0,title:"Unsaved Changes",message:"You have unsaved changes"})}},8133:function(e,t,s){"use strict";var n=s(24246),i=s(56351);t.Z=e=>{let{title:t,children:s,isOpen:a,onClose:r,...o}=e;return(0,n.jsxs)(i.u_l,{isOpen:a,onClose:r,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...o,children:[(0,n.jsx)(i.ZAr,{}),(0,n.jsxs)(i.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",children:[(0,n.jsx)(i.xBx,{p:0,children:(0,n.jsx)(i.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,n.jsx)(i.X6q,{as:"h3",size:"sm",children:t})})}),(0,n.jsx)(i.fef,{pb:4,overflow:"auto",children:s})]})]})}},70788:function(e,t,s){"use strict";s.d(t,{m:function(){return d}});var n=s(24246),i=s(56351),a=s(79894),r=s.n(a),o=s(27378);let{Text:l}=i.AntTypography,d=e=>{let{items:t,...s}=e,a=(0,o.useMemo)(()=>null==t?void 0:t.map((e,s)=>{let a=s===t.length-1,o={...e},d=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,n.jsx)(l,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,children:o.title})),d)?o.title=(0,n.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,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,n.jsx)(r(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,n.jsx)(i.zrq,{items:a,...s})}},37059:function(e,t,s){"use strict";s.d(t,{Ak:function(){return h},EY:function(){return c},Ud:function(){return a},Vr:function(){return p},WJ:function(){return o},nP:function(){return d},nS:function(){return u},rs:function(){return l},sX:function(){return m},wi:function(){return r}});var n=s(78780),i=s(16394);let{useGetAggregateMonitorResultsQuery:a,useGetDiscoveredSystemAggregateQuery:r,useGetDiscoveredAssetsQuery:o,useAddMonitorResultSystemsMutation:l,useIgnoreMonitorResultSystemsMutation:d,useAddMonitorResultAssetsMutation:c,useIgnoreMonitorResultAssetsMutation:u,useUpdateAssetsSystemMutation:m,useUpdateAssetsDataUseMutation:h,useUpdateAssetsMutation:p}=n.u.injectEndpoints({endpoints:e=>({getAggregateMonitorResults:e.query({query:e=>{let{page:t=1,size:s=20,search:n}=e;return{url:"/plus/discovery-monitor/aggregate-results",params:{page:t,size:s,search:n,diff_status:"addition"}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredSystemAggregate:e.query({query:e=>{let{key:t,page:s=1,size:n=20,search:i}=e;return{url:"/plus/discovery-monitor/system-aggregate-results",params:{monitor_config_id:t,page:s,size:n,search:i,diff_status:"addition"}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredAssets:e.query({query:e=>{let{key:t,system:s,page:n=1,size:i=20,search:a}=e;return{url:"/plus/discovery-monitor/".concat(t,"/results"),params:{resolved_system_id:s,page:n,size:i,search:a,diff_status:"addition"}}},providesTags:()=>["Discovery Monitor Results"]}),addMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:s}=e,n=(0,i.du)(s,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(t,"/promote?").concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:s}=e,n=(0,i.du)(s,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(t,"/mute?").concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),addMonitorResultAssets:e.mutation({query:e=>{var t;let s=new URLSearchParams;return null===(t=e.urnList)||void 0===t||t.forEach(e=>s.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/promote?".concat(s)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultAssets:e.mutation({query:e=>{var t;let s=new URLSearchParams;return null===(t=e.urnList)||void 0===t||t.forEach(e=>s.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/mute?".concat(s)}},invalidatesTags:["Discovery Monitor Results"]}),updateAssetsSystem:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.urnList.map(t=>({urn:t,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,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"]})})})},78238:function(e,t,s){"use strict";s.d(t,{g:function(){return n}});let n=["essential","functional.service.improve","personalize","analytics","marketing.advertising.first_party.targeted","marketing.advertising.third_party.targeted"];t.Z=e=>n.includes(e)},26183:function(e,t,s){"use strict";var n=s(24246);s(27378),t.Z=e=>{let{children:t,className:s,...i}=e;return(0,n.jsx)("div",{className:"relative flex w-full flex-wrap items-center gap-2 overflow-x-auto py-2 ".concat(s||""),...i,children:t})}},33335:function(e,t,s){"use strict";s.d(t,{E:function(){return n}});let n=e=>e.toLowerCase().replace(/ /g,"_").replace(/[^a-zA-Z0-9._<>-]/g,"")},36345:function(e,t,s){"use strict";s.d(t,{Z:function(){return g}});var n=s(24246),i=s(56351),a=s(34090),r=s(27378),o=s(16134),l=s(40324);let d=(0,i.IUT)({displayName:"CompassIcon",viewBox:"0 0 512 512",path:(0,n.jsx)("path",{fill:"currentColor",d:"M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm306.7 69.1L162.4 380.6c-19.4 7.5-38.5-11.6-31-31l55.5-144.3c3.3-8.5 9.9-15.1 18.4-18.4l144.3-55.5c19.4-7.5 38.5 11.6 31 31L325.1 306.7c-3.2 8.5-9.9 15.1-18.4 18.4zM288 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"})});var c=s(91613),u=s(57865);let{Text:m}=i.AntTypography,h=e=>{let{searchText:t,suggestion:s,...i}=e;return t&&s?(0,n.jsxs)(m,{"aria-hidden":!0,style:{pointerEvents:"none",position:"absolute",zIndex:10,top:"var(--ant-line-width)",bottom:"var(--ant-line-width)",left:"var(--ant-padding-sm)",lineHeight:"calc(var(--ant-control-height) - var(--ant-line-width))"},...i,children:[(0,n.jsx)(m,{className:"text-transparent",children:t}),(0,n.jsx)(m,{type:"secondary",children:s.substring(t.length)})]}):null},p="Create new system",v=e=>{let{active:t,disabled:s,onRefreshSuggestions:a}=e,r={bg:t?"complimentary.500":"gray.100"};return(0,n.jsxs)(i.gCW,{children:[(0,n.jsx)(i.LZC,{minHeight:"18px"}),(0,n.jsxs)(i.v2r,{children:[(0,n.jsx)(i.j2t,{as:i.hU,size:"sm",isDisabled:s,icon:(0,n.jsx)(d,{color:t?"white":"gray.700",boxSize:4}),"aria-label":"Update information from Compass","data-testid":"refresh-suggestions-btn",_hover:{_disabled:r},...r}),(0,n.jsx)(i.qyq,{children:(0,n.jsx)(i.sNh,{onClick:a,children:(0,n.jsx)(i.xvT,{fontSize:"xs",lineHeight:4,children:"Reset to Compass defaults"})})})]})]})};var g=e=>{var t,s;let{label:d,isCreate:m,lockedForGVL:g,options:y,isLoading:x,onVendorSelected:f}=e,j=(0,o.C)(u.bN),[b,w,{setValue:C}]=(0,a.U$)("name"),S=!!(w.touched&&w.error),_={...b,value:null!==(t=b.value)&&void 0!==t?t:""},{touched:k,values:I,setTouched:R,setFieldValue:A,validateForm:T}=(0,a.u6)(),[N,P]=(0,r.useState)(!0),z=null!==(s=y.find(e=>e.value===_.value))&&void 0!==s?s:{label:_.value,value:_.value,description:""},q=(e,t)=>!!(null==t?void 0:t.label.toLowerCase().startsWith(e.toLowerCase())),[D,Z]=(0,r.useState)(""),M=(0,r.useMemo)(()=>y.filter(e=>q(D,e)),[y,D]),E=(0,r.useMemo)(()=>{let e=y;return m&&D&&(e=[...y,{label:"".concat(p,' "').concat(D,'"...'),value:D}]),e},[m,y,D]),L=!!D&&M.length>0,W=g&&!m;(0,r.useEffect)(()=>{P(!_.value&&!I.vendor_id)},[_.value,I.vendor_id,P]),(0,r.useEffect)(()=>{T()},[N,T]);let U=async()=>{Z(""),A("vendor_id",void 0),await C(""),R({...k,vendor_id:!1,name:!1}),f(void 0)},V=async e=>{if(e){let t=y.some(t=>t.value===e.value)?e.value:void 0;A("vendor_id",t),await C(e.label.startsWith(p)?e.value:e.label),R({...k,vendor_id:!0,name:!0}),f(t)}},B=async e=>{_.onBlur(e),D&&await C(D),R({...k,name:!0})},F=async e=>{M.length>0&&D!==M[0].label?(e.preventDefault(),Z(M[0].label),A("vendor_id",M[0].value),await C(M[0].label),f(M[0].value)):(A("vendor_id",void 0),await C(D)),R({...k,name:!0})},O=(0,n.jsx)(i.NIc,{isInvalid:S,isRequired:!0,width:"100%",children:(0,n.jsxs)(i.gCW,{alignItems:"start",position:"relative",width:"100%",children:[(0,n.jsxs)(i.Ugi,{spacing:1,children:[(0,n.jsx)(l.__,{htmlFor:"vendorName",fontSize:"xs",my:0,mr:1,children:d}),(0,n.jsx)(c.Z,{label:"Enter the system name"})]}),(0,n.jsxs)(i.xuv,{width:"100%",className:"relative",children:[(0,n.jsx)(i.WPr,{id:"vendorName",labelInValue:!0,autoFocus:!0,allowClear:!0,options:E,loading:x,filterOption:(e,t)=>q(e,t)||!!(null==t?void 0:t.label.startsWith(p)),optionFilterProp:"label",value:z,placeholder:"Enter system name...",disabled:W,onChange:V,onSearch:Z,onClear:U,onBlur:B,onInputKeyDown:e=>{D&&"Tab"===e.key&&F(e)},status:S?"error":void 0,"data-testid":"vendor-name-select"}),(0,n.jsx)(h,{searchText:D,suggestion:M.length?M[0].label:""})]}),(0,n.jsx)(l.Bc,{isInvalid:S,message:w.error,fieldName:"name"})]})});return(0,n.jsxs)(i.Ugi,{alignItems:"flex-start",width:"full",children:[N?O:(0,n.jsx)(l.j0,{autoFocus:!0,id:"name",name:"name",label:"System name",tooltip:"Enter the system name",variant:"stacked",disabled:W,isRequired:!0,inputRightElement:W?null:(0,n.jsx)(i.PZ7,{onClick:U,size:"sm","data-testid":"clear-btn"})}),(0,n.jsx)(v,{active:!!I.vendor_id||L,disabled:!I.vendor_id||"showing"===j,onRefreshSuggestions:()=>f(I.vendor_id)})]})}},58955:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return en}});var n=s(24246),i=s(86677),a=s(27378),r=s(35287),o=s(77830),l=s(58754),d=s(59003),c=s(92222),u=s(56351),m=s(83766),h=s.n(m),p=s(812),v=s(14047),g=s(14481),y=s(37059),x=s(8133),f=s(79283),j=s(34929),b=s(78238),w=e=>{let{selectedTaxonomies:t,...s}=e,{getDataUseDisplayNameProps:i,getDataUses:a}=(0,j.Z)(),r=a().filter(e=>e.active&&b.g.includes(e.fides_key)).filter(e=>!t.includes(e.fides_key)).map(e=>{let{name:t,primaryName:s}=i(e.fides_key);return{value:e.fides_key,name:t,primaryName:s,description:e.description||""}});return(0,n.jsx)(f.l,{options:r,...s})};let{Text:C}=u.AntTypography;var S=e=>{let{onSave:t,isSaving:s,onClose:i,...r}=e,[o,l]=(0,a.useState)([]),d=()=>{l([]),i()};return(0,n.jsxs)(x.Z,{title:"Add consent category",...r,onClose:d,children:[(0,n.jsxs)(u.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,n.jsx)(C,{children:"Assign consent categories to selected assets. This configures the system for consent management. Consent categories apply to both individual assets and the system."}),(0,n.jsx)(w,{mode:"tags",selectedTaxonomies:o,onSelect:(e,t)=>l([...o,t.value]),variant:"outlined"})]}),(0,n.jsxs)(u.jqI,{justify:"space-between",children:[(0,n.jsx)(u.wpx,{htmlType:"reset",onClick:d,"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(u.wpx,{htmlType:"submit",type:"primary",disabled:!o.length,loading:s,onClick:()=>t(o),"data-testid":"save-btn",children:"Save"})]})]})},_=s(57454),k=s(65450);let I=e=>{let{children:t,className:s,style:i,...a}=e;return(0,n.jsx)(u.wpx,{...a,type:"text",className:"w-full justify-start ".concat(s),style:{fontWeight:600,padding:"var(--ant-select-option-padding)",backgroundColor:"var(--ant-select-option-selected-bg)",...i},children:t})};var R=s(16394);let A=(e,t)=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(I,{onClick:t,"data-testid":"add-new-system",id:"add-new-system",children:"Add new system +"}),e]}),T=e=>{var t;let{onAddSystem:s,...i}=e,[r,o]=(0,a.useState)(),{data:l,isFetching:d}=(0,k.xF)({page:1,size:25,search:r||void 0}),c=null==l?void 0:null===(t=l.items)||void 0===t?void 0:t.map(e=>({value:e.fides_key,label:e.name})),m=(0,a.useCallback)(e=>{(null==e?void 0:e.length)>1&&o(e),(null==e?void 0:e.length)===0&&o(void 0)},[o]),h=(0,a.useMemo)(()=>(0,R.Ds)(m,300),[m]);return(0,n.jsx)(u.WPr,{placeholder:"Search...","aria-label":"Search for a system to select",dropdownStyle:{minWidth:"500px"},dropdownRender:s?e=>A(e,s):void 0,"data-testid":"system-select",...i,filterOption:!1,options:c,onSearch:h,loading:i.loading||d})};var N=s(34090),P=s(59389),z=s(16134),q=s(25980),D=s(97181),Z=s(40324),M=s(45938),E=s(33335),L=s(32885),W=s(57865),U=s(93237),V=s(36345);let{Text:B}=u.AntTypography,F={name:"",vendor_id:void 0,description:"",tags:[]},O=e=>{let{onSuccessfulSubmit:t,toastOnSuccess:s,...i}=e,[r,o]=(0,a.useState)(!1),l=(0,z.T)(),{tcf:d,dictionaryService:c}=(0,q.hz)(),{isLoading:m}=(0,L.Rd)(void 0,{skip:!c}),h=(0,z.C)(L.o),g=(0,z.C)(W.gU),[y]=(0,k.in)(),[f]=(0,L.Qk)(),[j]=(0,k.f7)(),{successAlert:b,errorAlert:w}=(0,v.V)(),{setSuggestions:C,setLockedForGVL:S}=W.dictSuggestionsSlice.actions,_=(0,a.useRef)(null),I=(0,a.useMemo)(()=>P.Ry().shape({name:P.Z_().required().label("System name").test("is-unique","",async(e,t)=>{let{data:s}=await y({page:1,size:10,search:e});return!((null==s?void 0:s.items)||[]).filter(t=>t.name===e).some(t=>t.name===e)||t.createError({message:'You already have a system called "'.concat(e,'". Please specify a unique name for this system.')})})}),[y]),R=e=>{if(c){if(!e){l(C("hiding")),l(S(!1));return}l(C("showing")),d&&(0,p.cj)(e)===p.c6.GVL?l(S(!0)):l(S(!1))}},A=()=>{i.onClose(),l(C("initial")),l(S(!1))},T=async e=>{if(o(!0),e.vendor_id){let n=await f([e.vendor_id]);if((0,p.D4)(n))w((0,p.e$)(n.error));else{let{data:e}=n,i=e.systems[0];null==t||t(i.fides_key,i.name),s&&b("".concat(e.name," has been added to your system inventory."))}}else{let n={...e,fides_key:(0,E.E)(e.name),system_type:"",body:"",privacy_declarations:[]},i=await j(n);if((0,p.D4)(i))w((0,p.e$)(i.error));else{let{fides_key:n,name:a}=i.data;null==t||t(n,a),s&&b("".concat(e.name," has been added to your system inventory."))}A()}o(!1)};return(0,n.jsx)(x.Z,{title:"Add New System",...i,onClose:A,children:(0,n.jsx)(N.J9,{initialValues:F,onSubmit:T,validationSchema:I,innerRef:_,children:e=>{let{dirty:t,isValid:s}=e;return(0,n.jsxs)(N.l0,{children:[(0,n.jsx)(M.Gt,{id:"new-system-modal",name:"Add New System"}),(0,n.jsxs)(u.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,n.jsx)(B,{children:"Fides will add this system to your inventory and configure it for consent using the categories of consent listed below. Optionally, you can check if this system is listed within the Fides compass library by selecting the compass icon below."}),c?(0,n.jsx)(V.Z,{label:"System name",options:h,onVendorSelected:R,isCreate:!0,lockedForGVL:g,isLoading:m}):(0,n.jsx)(Z.j0,{id:"name",name:"name",label:"System name",tooltip:"Give the system a unique, and relevant name for reporting purposes. e.g. “Email Data Warehouse”",variant:"stacked",isRequired:!0}),(0,n.jsx)(U.Sv,{id:"description",name:"description",label:"Description",tooltip:"What services does this system perform?",disabled:g}),(0,n.jsx)(D.d,{mode:"tags",id:"tags",name:"tags",label:"System Tags",options:[],layout:"stacked",tooltip:"Are there any tags to associate with this system?",disabled:g})]}),(0,n.jsxs)(u.jqI,{justify:"space-between",children:[(0,n.jsx)(u.wpx,{htmlType:"reset",onClick:A,disabled:m||!t||!s,"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(u.wpx,{htmlType:"submit",type:"primary",disabled:m||!t||!s,loading:r,"data-testid":"save-btn",children:"Save"})]})]})}})})},{Text:$}=u.AntTypography,G=e=>{let{onSave:t,isSaving:s,...i}=e,[r,o]=(0,a.useState)(),[l,d]=(0,a.useState)(!1),c=(0,a.useCallback)(e=>{e.preventDefault(),d(!0)},[]),m=()=>{d(!1)},h=()=>{o(void 0),i.onClose()};return(0,n.jsxs)(x.Z,{title:"Assign system",...i,onClose:h,children:[(0,n.jsxs)(u.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,n.jsx)($,{children:"Assign a system to the selected assets. If no system exists, select 'Add new system' to create one."}),(0,n.jsx)(T,{placeholder:"Search or select...",onSelect:(e,t)=>{o(t)},onAddSystem:c,value:r})]})," ",(0,n.jsxs)(u.jqI,{justify:"space-between",children:[(0,n.jsx)(u.wpx,{htmlType:"reset",onClick:h,"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(u.wpx,{htmlType:"submit",type:"primary",disabled:!r,loading:s,onClick:()=>{t(r)},"data-testid":"save-btn",children:"Save"})]}),l&&(0,n.jsx)(O,{isOpen:!0,onClose:m,onSuccessfulSubmit:(e,t)=>{m(),o({label:t,value:e})},toastOnSuccess:!0})]})};var H=s(26183),X=s(31883),J=e=>{var t;let{asset:s}=e,[i,r]=(0,a.useState)(!1),[o]=(0,y.Ak)(),{successAlert:l,errorAlert:d}=(0,v.V)(),{getDataUseDisplayName:c}=(0,j.Z)(),m=async e=>{let t=s.data_uses||[],n=await o({monitorId:s.monitor_config_id,urnList:[s.urn],dataUses:[...t,e]});(0,X.D4)(n)?d((0,p.e$)(n.error)):l("Consent category added to ".concat(s.resource_type,' "').concat(s.name,'" .'),"Confirmed"),r(!1)},h=async e=>{let t=s.data_uses||[],n=await o({monitorId:s.monitor_config_id,urnList:[s.urn],dataUses:t.filter(t=>t!==e)});(0,X.D4)(n)?d((0,p.e$)(n.error)):l("Consent category removed from ".concat(s.resource_type,' "').concat(s.name,'".'),"Confirmed")},g=null===(t=s.data_uses)||void 0===t?void 0:t.filter(e=>(0,b.Z)(e));return(0,n.jsxs)(H.Z,{children:[!i&&(0,n.jsxs)(n.Fragment,{children:[null==g?void 0:g.map(e=>(0,n.jsx)(u.j8w,{"data-testid":"data-use-".concat(e),color:"white",closable:!0,onClose:()=>h(e),closeButtonLabel:"Remove data use",children:c(e)},e)),(0,n.jsx)(u.j8w,{onClick:()=>r(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"})]}),i&&(0,n.jsx)(u.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,n.jsx)(w,{selectedTaxonomies:g||[],onSelect:m,onBlur:()=>r(!1),open:!0})})]})};let K=e=>{let{asset:t}=e,[s,{isLoading:i}]=(0,y.EY)(),[a,{isLoading:r}]=(0,y.nS)(),{successAlert:o,errorAlert:l}=(0,v.V)(),d=i||r,{urn:c,name:m,resource_type:h}=t,g=async()=>{let e=await s({urnList:[c]});(0,p.D4)(e)?l((0,p.e$)(e.error)):o("".concat(h,' "').concat(m,'" has been added to the system inventory.'),"Confirmed")},x=async()=>{let e=await a({urnList:[c]});(0,p.D4)(e)?l((0,p.e$)(e.error)):o("".concat(h,' "').concat(m,'" has been ignored and will not appear in future scans.'),"Ignored")};return(0,n.jsxs)(u.vyj,{children:[(0,n.jsx)(u.esZ,{title:t.system?void 0:"This asset requires a system before you can add it to the inventory.",children:(0,n.jsx)(u.wpx,{"data-testid":"add-btn",size:"small",onClick:g,disabled:!t.system||d,loading:i,children:"Add"})}),(0,n.jsx)(u.wpx,{"data-testid":"ignore-btn",size:"small",onClick:x,disabled:d,loading:r,children:"Ignore"})]})};var Y=s(43862),Q=s(70675);let ee=e=>{let{aggregateSystem:t,monitorConfigId:s}=e,{resource_type:i,name:r,urn:o,system:l}=t,[d,c]=(0,a.useState)(!1),[m,h]=(0,a.useState)(!1),[g,{isLoading:y}]=(0,Q.NA)(),{successAlert:x,errorAlert:f}=(0,v.V)(),j=(0,a.useCallback)(e=>{e.preventDefault(),h(!0)},[]),b=async(e,t,n)=>{let a=await g({staged_resource_urn:o,monitor_config_id:s,system_key:e});(0,p.D4)(a)?f((0,p.e$)(a.error)):x(n?"".concat(t," has been added to your system inventory and the ").concat(i,' "').concat(r,'" has been assigned to that system.'):"".concat(i,' "').concat(r,'" has been assigned to ').concat(t,"."),"Confirmed"),c(!1)};return(0,n.jsxs)(n.Fragment,{children:[!d&&(0,n.jsx)("div",{style:(0,Y.J9)(),children:l?(0,n.jsxs)(u.j8w,{onClick:()=>c(!0),"data-testid":"system-badge",children:[l,(0,n.jsx)(u.PJP.I8b,{})]}):(0,n.jsx)(u.j8w,{onClick:()=>c(!0),"data-testid":"add-system-btn",addable:!0})}),!!d&&(0,n.jsx)(T,{variant:"borderless",className:"w-full",autoFocus:!0,defaultOpen:!0,onBlur:e=>{var t;(null===(t=e.relatedTarget)||void 0===t?void 0:t.getAttribute("id"))!=="add-new-system"&&c(!1)},onAddSystem:j,onSelect:(e,t)=>b(e,t.label),loading:y}),m&&(0,n.jsx)(O,{isOpen:!0,onClose:()=>{h(!1)},onSuccessfulSubmit:(e,t)=>b(e,t,!0)})]})},et=()=>{let e=(0,c.Cl)();return{columns:[e.display({id:"select",cell:e=>{let{row:t}=e;return(0,n.jsx)(g.k,{isChecked:t.getIsSelected(),onChange:t.getToggleSelectedHandler(),dataTestId:"select-".concat(t.original.name||t.id)})},header:e=>{let{table:t}=e;return(0,n.jsx)(g.k,{isChecked:t.getIsAllPageRowsSelected(),isIndeterminate:t.getIsSomeRowsSelected(),onChange:t.getToggleAllRowsSelectedHandler(),dataTestId:"select-all-rows"})},maxSize:40}),e.accessor(e=>e.name,{id:"name",cell:e=>(0,n.jsx)(g.G3,{value:e.getValue()}),header:"Asset",size:300}),e.accessor(e=>e.resource_type,{id:"resource_type",cell:e=>(0,n.jsx)(g.G3,{value:e.getValue()}),header:"Type"}),e.accessor(e=>e.system,{id:"system",cell:e=>!!e.row.original.monitor_config_id&&(0,n.jsx)(ee,{aggregateSystem:e.row.original,monitorConfigId:e.row.original.monitor_config_id}),header:"System",size:200,meta:{noPadding:!0}}),e.display({id:"data_use",cell:e=>(0,n.jsx)(J,{asset:e.row.original}),header:"Categories of consent",size:400,meta:{disableRowClick:!0}}),e.accessor(e=>e.locations,{id:"locations",cell:e=>(0,n.jsx)(g.G3,{value:e.getValue().length>1?"".concat(e.getValue().length," locations"):e.getValue()[0]}),header:"Locations"}),e.accessor(e=>e.domain,{id:"domain",cell:e=>(0,n.jsx)(g.G3,{value:e.getValue()}),header:"Domain"}),e.display({id:"actions",cell:e=>(0,n.jsx)(K,{asset:e.row.original}),header:"Actions",meta:{disableRowClick:!0}})]}},es=e=>{let{monitorId:t,systemId:s,onSystemName:r}=e,l=(0,i.useRouter)(),[m,x]=(0,a.useState)(s),[f,j]=(0,a.useState)({}),[b,w]=(0,a.useState)(!1),[C,k]=(0,a.useState)(!1),[I,{isLoading:R}]=(0,y.EY)(),[A,{isLoading:T}]=(0,y.nS)(),[N,{isLoading:P}]=(0,y.rs)(),[z,{isLoading:q}]=(0,y.sX)(),[D,{isLoading:Z}]=(0,y.Vr)(),M=R||T||P||q,E=M||s===o.Kl,{PAGE_SIZES:L,pageSize:W,setPageSize:U,onPreviousPageClick:V,isPreviousPageDisabled:B,onNextPageClick:F,isNextPageDisabled:O,startRange:$,endRange:H,pageIndex:X,setTotalPages:J,resetPageIndexToDefault:K}=(0,g.oi)(),[Y,Q]=(0,a.useState)(""),{successAlert:ee,errorAlert:es}=(0,v.V)();(0,a.useEffect)(()=>{K()},[t,Y,K]);let{data:en,isLoading:ei,isFetching:ea}=(0,y.WJ)({key:t,system:s,page:X,size:W,search:Y});(0,a.useEffect)(()=>{if(en){var e;let t=(null===(e=en.items[0])||void 0===e?void 0:e.system)||s||"";J(en.pages||1),x(t),null==r||r(t)}},[en,s,r,J]);let{columns:er}=et(),eo=(0,d.b7)({getCoreRowModel:(0,c.sC)(),columns:er,manualPagination:!0,data:(null==en?void 0:en.items)||[],columnResizeMode:"onChange",onRowSelectionChange:j,state:{rowSelection:f}}),el=eo.getSelectedRowModel().rows.map(e=>e.original.urn),ed=async()=>{let e=await I({urnList:el});(0,p.D4)(e)?es((0,p.e$)(e.error)):(eo.resetRowSelection(),ee("".concat(el.length," assets from ").concat(m," have been added to the system inventory."),"Confirmed"))},ec=async e=>{if("string"==typeof(null==e?void 0:e.value)){let s=await z({monitorId:t,urnList:el,systemKey:e.value});(0,p.D4)(s)?es((0,p.e$)(s.error)):(eo.resetRowSelection(),ee("".concat(el.length," assets have been assigned to ").concat(e.label,"."),"Confirmed"))}w(!1)},eu=async e=>{let s=null==en?void 0:en.items.filter(e=>el.includes(e.urn));if(!s)return;let n=s.map(t=>{let s=h()([...t.data_uses||[],...e]);return{urn:t.urn,data_uses:s}}),i=await D({monitorId:t,assets:n});(0,p.D4)(i)?es((0,p.e$)(i.error)):(eo.resetRowSelection(),ee("Consent categories added to ".concat(el.length," assets from ").concat(m,"."),"Confirmed"))},em=async()=>{let e=await A({urnList:el});(0,p.D4)(e)?es((0,p.e$)(e.error)):(eo.resetRowSelection(),ee("".concat(el.length," assets from ").concat(m," have been ignored and will not appear in future scans."),"Confirmed"))},eh=async()=>{let e=(null==en?void 0:en.items.length)||0,n=await N({monitor_config_key:t,resolved_system_ids:[s]});(0,p.D4)(n)?es((0,p.e$)(n.error)):(l.push("".concat(o.vi,"/").concat(t)),ee("".concat(e," assets from ").concat(m," have been added to the system inventory."),"Confirmed"))};return t&&s?ei?(0,n.jsx)(g.I4,{rowHeight:36,numRows:36}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(g.Q$,{children:[(0,n.jsx)(_.M,{value:Y,onChange:Q}),(0,n.jsxs)(u.kCb,{alignItems:"center",children:[!!el.length&&(0,n.jsx)(u.xvT,{fontSize:"xs",fontWeight:"semibold",minW:16,mr:6,"data-testid":"selected-count",children:"".concat(el.length," selected")}),(0,n.jsxs)(u.Ugi,{children:[(0,n.jsxs)(u.v2r,{children:[(0,n.jsx)(u.j2t,{as:u.wpx,icon:(0,n.jsx)(u.PJP._ME,{}),iconPosition:"end",loading:M,"data-testid":"bulk-actions-menu",disabled:!el.length||M,type:"primary",children:"Actions"}),(0,n.jsxs)(u.qyq,{children:[(0,n.jsx)(u.sNh,{fontSize:"small",onClick:ed,"data-testid":"bulk-add",children:"Add"}),(0,n.jsx)(u.sNh,{fontSize:"small",onClick:()=>k(!0),"data-testid":"bulk-add-data-use",children:"Add consent category"}),(0,n.jsx)(u.sNh,{fontSize:"small",onClick:()=>{w(!0)},"data-testid":"bulk-assign-system",children:"Assign system"}),(0,n.jsx)(u.RaW,{}),(0,n.jsx)(u.sNh,{fontSize:"small",onClick:em,"data-testid":"bulk-ignore",children:"Ignore"})]})]}),(0,n.jsx)(u.esZ,{title:E?"These assets require a system before you can add them to the inventory.":void 0,children:(0,n.jsx)(u.wpx,{onClick:eh,disabled:E,loading:P,type:"primary",icon:(0,n.jsx)(u.PJP.MCw,{}),iconPosition:"end","data-testid":"add-all",children:"Add all"})})]})]})]}),(0,n.jsx)(g.ZK,{tableInstance:eo,emptyTableNotice:(0,n.jsx)(u.oj8,{image:u.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})}),(0,n.jsx)(g.s8,{totalRows:(null==en?void 0:en.total)||0,pageSizes:L,setPageSize:U,onPreviousPageClick:V,isPreviousPageDisabled:B||ea,onNextPageClick:F,isNextPageDisabled:O||ea,startRange:$,endRange:H}),(0,n.jsx)(G,{isOpen:b,onClose:()=>{w(!1)},onSave:ec,isSaving:q}),(0,n.jsx)(S,{isOpen:C,onClose:()=>{k(!1)},onSave:eu,isSaving:Z})]}):null};var en=()=>{let e=(0,i.useRouter)(),t=decodeURIComponent(e.query.monitorId),s=decodeURIComponent(e.query.systemId),[d,c]=(0,a.useState)(s===o.Kl?"Uncategorized assets":s);return(0,n.jsxs)(r.Z,{title:"Action center - Discovered assets",children:[(0,n.jsx)(l.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:o.vi},{title:t,href:"".concat(o.vi,"/").concat(t)},{title:s===o.Kl?"Uncategorized assets":d}]}),(0,n.jsx)(es,{monitorId:t,systemId:s,onSystemName:c})]})}},31883:function(e,t,s){"use strict";s.d(t,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=s(19043)},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}}},function(e){e.O(0,[8033,2780,2858,2866,9278,4481,3627,2888,9774,179],function(){return e(e.s=25654)}),_N_E=e.O()}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2423],{95372:function(e){e.exports=function(e,t,s,n){for(var i=e.length,r=s+(n?1:-1);n?r--:++r<i;)if(t(e[r],r,e))return r;return -1}},56632:function(e,t,s){var n=s(89278),i=s(80068),r=s(50098);e.exports=function(e){return function(t,s,o){var a=Object(t);if(!i(t)){var l=n(s,3);t=r(t),s=function(e){return l(a[e],e,a)}}var d=e(t,s,o);return d>-1?a[l?t[d]:d]:void 0}}},64925:function(e,t,s){var n=s(56632)(s(66259));e.exports=n},66259:function(e,t,s){var n=s(95372),i=s(89278),r=s(47991),o=Math.max;e.exports=function(e,t,s){var a=null==e?0:e.length;if(!a)return -1;var l=null==s?0:r(s);return l<0&&(l=o(a+l,0)),n(e,i(t,3),l)}},94919:function(e,t,s){var n=s(91936),i=1/0;e.exports=function(e){return e?(e=n(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,s){var n=s(94919);e.exports=function(e){var t=n(e),s=t%1;return t==t?s?t-s:t:0}},86850:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/[monitorId]",function(){return s(56856)}])},34929:function(e,t,s){"use strict";var n=s(24246),i=s(64925),r=s.n(i),o=s(27378),a=s(16134),l=s(30002),d=s(28079),c=s(57072);let u=()=>{let{isLoading:e}=(0,d.fd)(),t=(0,a.C)(d.U3),{isLoading:s}=(0,c.MO)(),n=(0,a.C)(c.qb),{isLoading:i}=(0,l.te)();return{dataUses:t,dataSubjects:(0,a.C)(l.ZL),dataCategories:n,isLoading:e||s||i}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:s,isLoading:i}=u(),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 s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=t(e);if(!n)return{};let i=t(a(e,s)),r=!!n.parent_key;return{name:n.name||void 0,primaryName:r&&(null==i?void 0:i.name)!==n.name&&(null==i?void 0:i.name)||void 0}},d=function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:i,primaryName:r}=l(e,t,s);return i?r?(0,n.jsxs)(o.Fragment,{children:[(0,n.jsxs)("strong",{children:[r,":"]})," ",i]},e):(0,n.jsx)("strong",{children:i},e):e},c=t=>r()(e,{fides_key:t}),g=e=>r()(t,{fides_key:e}),m=e=>r()(s,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:c,getDataUseDisplayName:e=>d(e,c,1),getDataUseDisplayNameProps:e=>l(e,c,1),getDataCategories:()=>t,getDataCategoryByKey:g,getDataCategoryDisplayName:e=>d(e,g,2),getDataCategoryDisplayNameProps:e=>l(e,g,2),getDataSubjects:()=>s,getDataSubjectByKey:m,getDataSubjectDisplayName:e=>{let t=m(e);return t?t.name:e},getPrimaryKey:a,isLoading:i}}},37059:function(e,t,s){"use strict";s.d(t,{Ak:function(){return m},EY:function(){return c},Ud:function(){return r},Vr:function(){return v},WJ:function(){return a},nP:function(){return d},nS:function(){return u},rs:function(){return l},sX:function(){return g},wi:function(){return o}});var n=s(78780),i=s(16394);let{useGetAggregateMonitorResultsQuery:r,useGetDiscoveredSystemAggregateQuery:o,useGetDiscoveredAssetsQuery:a,useAddMonitorResultSystemsMutation:l,useIgnoreMonitorResultSystemsMutation:d,useAddMonitorResultAssetsMutation:c,useIgnoreMonitorResultAssetsMutation:u,useUpdateAssetsSystemMutation:g,useUpdateAssetsDataUseMutation:m,useUpdateAssetsMutation:v}=n.u.injectEndpoints({endpoints:e=>({getAggregateMonitorResults:e.query({query:e=>{let{page:t=1,size:s=20,search:n}=e;return{url:"/plus/discovery-monitor/aggregate-results",params:{page:t,size:s,search:n,diff_status:"addition"}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredSystemAggregate:e.query({query:e=>{let{key:t,page:s=1,size:n=20,search:i}=e;return{url:"/plus/discovery-monitor/system-aggregate-results",params:{monitor_config_id:t,page:s,size:n,search:i,diff_status:"addition"}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredAssets:e.query({query:e=>{let{key:t,system:s,page:n=1,size:i=20,search:r}=e;return{url:"/plus/discovery-monitor/".concat(t,"/results"),params:{resolved_system_id:s,page:n,size:i,search:r,diff_status:"addition"}}},providesTags:()=>["Discovery Monitor Results"]}),addMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:s}=e,n=(0,i.du)(s,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(t,"/promote?").concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:s}=e,n=(0,i.du)(s,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(t,"/mute?").concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),addMonitorResultAssets:e.mutation({query:e=>{var t;let s=new URLSearchParams;return null===(t=e.urnList)||void 0===t||t.forEach(e=>s.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/promote?".concat(s)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultAssets:e.mutation({query:e=>{var t;let s=new URLSearchParams;return null===(t=e.urnList)||void 0===t||t.forEach(e=>s.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/mute?".concat(s)}},invalidatesTags:["Discovery Monitor Results"]}),updateAssetsSystem:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.urnList.map(t=>({urn:t,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,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"]})})})},78238:function(e,t,s){"use strict";s.d(t,{g:function(){return n}});let n=["essential","functional.service.improve","personalize","analytics","marketing.advertising.first_party.targeted","marketing.advertising.third_party.targeted"];t.Z=e=>n.includes(e)},56856:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return R}});var n=s(24246),i=s(86677),r=s(35287),o=s(77830),a=s(58754),l=s(59003),d=s(92222),c=s(56351),u=s(27378),g=s(812),m=s(14047),v=s(14481),y=s(37059),h=s(31883),f=s(57454),p=s(34929),_=s(72625),x=s(78238),j=e=>{var t,s;let{system:i}=e,{getDataUseDisplayName:r}=(0,p.Z)(),o=(null!==(s=null===(t=i.data_uses)||void 0===t?void 0:t.filter(e=>(0,x.Z)(e)))&&void 0!==s?s:[]).map(e=>({label:r(e),key:e}));return(0,n.jsx)(_.mb,{values:o})};let b=e=>{let{monitorId:t,system:s}=e,[i,{isLoading:r}]=(0,y.rs)(),[a,{isLoading:l}]=(0,y.nP)(),{successAlert:d,errorAlert:u}=(0,m.V)(),v=r||l,{id:h,name:f,system_key:p,total_updates:_}=s,x=async()=>{let e=await i({monitor_config_key:t,resolved_system_ids:[h]});(0,g.D4)(e)?u((0,g.e$)(e.error)):d(p?"".concat(_," assets from ").concat(f," have been added to the system inventory."):"".concat(f," and ").concat(_," assets have been added to the system inventory. ").concat(f," is now configured for consent."),"Confirmed")},j=async()=>{let e=await a({monitor_config_key:t,resolved_system_ids:[h||o.Kl]});(0,g.D4)(e)?u((0,g.e$)(e.error)):d(f?"".concat(_," assets from ").concat(f," have been ignored and will not appear in future scans."):"".concat(_," uncategorized assets have been ignored and will not appear in future scans."),"Confirmed")};return(0,n.jsxs)(c.vyj,{children:[(0,n.jsx)(c.esZ,{title:s.id?void 0:"These assets must be categorized before you can add them to the inventory.",children:(0,n.jsx)(c.wpx,{"data-testid":"add-btn",size:"small",onClick:x,disabled:!s.id||v,loading:r,children:"Add"})}),(0,n.jsx)(c.wpx,{"data-testid":"ignore-btn",size:"small",onClick:j,disabled:v,loading:l,children:"Ignore"})]})};var w=s(56839);let k=e=>{let{system:t}=e;return(0,n.jsxs)(c.kCb,{alignItems:"center",height:"100%",children:[!(null==t?void 0:t.system_key)&&(0,n.jsx)(c.ua7,{label:"New system",children:(0,n.jsx)("span",{children:w.QL.Change})}),(0,n.jsx)(c.xvT,{fontSize:"xs",fontWeight:"semibold",lineHeight:4,overflow:"hidden",textOverflow:"ellipsis",children:(null==t?void 0:t.name)||"Uncategorized assets"})]})},C=e=>{let t=(0,d.Cl)();return{columns:[t.display({id:"select",cell:e=>{let{row:t}=e;return(0,n.jsx)(v.k,{isChecked:t.getIsSelected(),onChange:t.getToggleSelectedHandler(),dataTestId:"select-".concat(t.original.name||t.id)})},header:e=>{let{table:t}=e;return(0,n.jsx)(v.k,{isChecked:t.getIsAllPageRowsSelected(),isIndeterminate:t.getIsSomeRowsSelected(),onChange:t.getToggleAllRowsSelectedHandler(),dataTestId:"select-all-rows"})},maxSize:40,meta:{disableRowClick:!0}}),t.accessor(e=>e.name,{id:"system_name",cell:e=>(0,n.jsx)(k,{system:e.row.original}),header:"System",size:300}),t.accessor(e=>e.total_updates,{id:"total_updates",cell:e=>(0,n.jsx)(v.G3,{value:e.getValue()}),header:"Assets",size:80}),t.display({id:"data_use",cell:e=>(0,n.jsx)(j,{system:e.row.original}),header:"Categories of consent",size:400,meta:{disableRowClick:!0}}),t.accessor(e=>e.locations,{id:"locations",cell:e=>(0,n.jsx)(v.G3,{value:e.getValue().length>1?"".concat(e.getValue().length," locations"):e.getValue()[0]}),header:"Locations"}),t.accessor(e=>e.domains,{id:"domains",cell:e=>(0,n.jsx)(v.G3,{value:e.getValue().length>1?"".concat(e.getValue().length," domains"):e.getValue()[0]}),header:"Domains"}),t.display({id:"actions",cell:t=>(0,n.jsx)(b,{system:t.row.original,monitorId:e}),header:"Actions",meta:{disableRowClick:!0}})]}},D=e=>{let{monitorId:t}=e,s=(0,i.useRouter)(),{PAGE_SIZES:r,pageSize:a,setPageSize:p,onPreviousPageClick:_,isPreviousPageDisabled:x,onNextPageClick:j,isNextPageDisabled:b,startRange:w,endRange:k,pageIndex:D,setTotalPages:R,resetPageIndexToDefault:S}=(0,v.oi)(),[P,{isLoading:T}]=(0,y.rs)(),[A,{isLoading:M}]=(0,y.nP)(),{successAlert:I,errorAlert:z}=(0,m.V)(),[L,N]=(0,u.useState)(""),[q,E]=(0,u.useState)({});(0,u.useEffect)(()=>{S()},[t,L,S]);let{data:U,isLoading:V,isFetching:Z}=(0,y.wi)({key:t,page:D,size:a,search:L});(0,u.useEffect)(()=>{U&&R(U.pages||1)},[U,R]);let{columns:O}=C(t),H=(0,l.b7)({getCoreRowModel:(0,d.sC)(),columns:O,manualPagination:!0,data:(null==U?void 0:U.items)||[],columnResizeMode:"onChange",onRowSelectionChange:E,state:{rowSelection:q}}),K=H.getSelectedRowModel().rows,$=K.some(e=>null===e.original.id);if(V)return(0,n.jsx)(v.I4,{rowHeight:36,numRows:36});let G=async()=>{let e=K.reduce((e,t)=>e+t.original.total_updates,0),s=await P({monitor_config_key:t,resolved_system_ids:K.map(e=>e.original.id)});(0,h.D4)(s)?z((0,g.e$)(s.error)):(I("".concat(e," assets have been added to the system inventory.")),E({}))},W=async()=>{let e=K.reduce((e,t)=>e+t.original.total_updates,0),s=await A({monitor_config_key:t,resolved_system_ids:K.map(e=>{var t;return null!==(t=e.original.id)&&void 0!==t?t:o.Kl})});(0,h.D4)(s)?z((0,g.e$)(s.error)):(I("".concat(e," assets have been ignored and will not appear in future scans.")),E({}))};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v.Q$,{children:(0,n.jsxs)(c.kCb,{direction:"row",alignItems:"center",justifyContent:"space-between",width:"full",children:[(0,n.jsx)(c.kCb,{gap:6,align:"center",children:(0,n.jsx)(c.xuv,{flexShrink:0,children:(0,n.jsx)(f.M,{value:L,onChange:N})})}),(0,n.jsxs)(c.kCb,{align:"center",children:[!!K.length&&(0,n.jsx)(c.xvT,{fontSize:"xs",fontWeight:"semibold",minW:16,mr:6,"data-testid":"selected-count",children:"".concat(K.length," selected")}),(0,n.jsxs)(c.v2r,{children:[(0,n.jsx)(c.j2t,{as:c.wpx,icon:(0,n.jsx)(c.PJP._ME,{}),iconPosition:"end",loading:T||M,"data-testid":"bulk-actions-menu",disabled:!K.length,type:"primary",children:"Actions"}),(0,n.jsxs)(c.qyq,{children:[(0,n.jsx)(c.esZ,{title:$?"Uncategorized assets can't be added to the inventory":null,placement:"left",children:(0,n.jsx)(c.sNh,{fontSize:"small",onClick:G,"data-testid":"bulk-add",isDisabled:$,children:"Add"})}),(0,n.jsx)(c.sNh,{fontSize:"small",onClick:W,"data-testid":"bulk-ignore",children:"Ignore"})]})]})]})]})}),(0,n.jsx)(v.ZK,{tableInstance:H,onRowClick:e=>{var n;s.push("".concat(o.vi,"/").concat(t,"/").concat(null!==(n=e.id)&&void 0!==n?n:o.Kl))},emptyTableNotice:(0,n.jsx)(c.oj8,{image:c.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})}),(0,n.jsx)(v.s8,{totalRows:(null==U?void 0:U.total)||0,pageSizes:r,setPageSize:p,onPreviousPageClick:_,isPreviousPageDisabled:x||Z,onNextPageClick:j,isNextPageDisabled:b||Z,startRange:w,endRange:k})]})};var R=()=>{let e=decodeURIComponent((0,i.useRouter)().query.monitorId);return(0,n.jsxs)(r.Z,{title:"Action center - Discovered assets by system",children:[(0,n.jsx)(a.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:o.vi},{title:e}]}),(0,n.jsx)(D,{monitorId:e})]})}},31883:function(e,t,s){"use strict";s.d(t,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=s(19043)}},function(e){e.O(0,[8033,2780,2858,2866,9278,4481,9999,2888,9774,179],function(){return e(e.s=86850)}),_N_E=e.O()}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8443],{74833:function(t,e,n){var r=n(56127),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},56127:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},66726:function(t,e,n){var r=n(11611),i=n(82846),s=n(91936),o=Math.max,a=Math.min;t.exports=function(t,e,n){var c,l,u,d,m,p,f=0,v=!1,g=!1,y=!0;if("function"!=typeof t)throw TypeError("Expected a function");function h(e){var n=c,r=l;return c=l=void 0,f=e,d=t.apply(r,n)}function x(t){var n=t-p,r=t-f;return void 0===p||n>=e||n<0||g&&r>=u}function j(){var t,n,r,s=i();if(x(s))return b(s);m=setTimeout(j,(t=s-p,n=s-f,r=e-t,g?a(r,u-n):r))}function b(t){return(m=void 0,y&&c)?h(t):(c=l=void 0,d)}function _(){var t,n=i(),r=x(n);if(c=arguments,l=this,p=n,r){if(void 0===m)return f=t=p,m=setTimeout(j,e),v?h(t):d;if(g)return clearTimeout(m),m=setTimeout(j,e),h(p)}return void 0===m&&(m=setTimeout(j,e)),d}return e=s(e)||0,r(n)&&(v=!!n.leading,u=(g="maxWait"in n)?o(s(n.maxWait)||0,e):u,y="trailing"in n?!!n.trailing:y),_.cancel=function(){void 0!==m&&clearTimeout(m),f=0,c=p=l=m=void 0},_.flush=function(){return void 0===m?d:b(i())},_}},11611:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},55193:function(t,e,n){var r=n(99736),i=n(92360);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},82846:function(t,e,n){var r=n(77400);t.exports=function(){return r.Date.now()}},91936:function(t,e,n){var r=n(74833),i=n(11611),s=n(55193),o=0/0,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(s(t))return o;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=c.test(t);return n||l.test(t)?u(t.slice(2),n?2:8):a.test(t)?o:+t}},40741:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center",function(){return n(51500)}])},77213:function(t,e,n){"use strict";n.d(e,{Z:function(){return m}});var r=n(24246),i=n(56351),s=n(88038),o=n.n(s),a=n(86677);n(27378);var c=n(25980),l=n(90867),u=n(77830),d=()=>{let t=(0,a.useRouter)();return(0,r.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,r.jsxs)(i.xuv,{children:[(0,r.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,r.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,r.jsx)(i.wpx,{onClick:()=>{t.push(u.fz)},children:"Configure"})]}),(0,r.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=t=>{let{children:e,title:n,padded:s=!0,mainProps:u}=t,m=(0,c.hz)(),p=(0,a.useRouter)(),f="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,v=!(m.flags.privacyRequestsConfiguration&&f),{data:g}=(0,l.JE)(void 0,{skip:v}),{data:y}=(0,l.PW)(void 0,{skip:v}),h=m.flags.privacyRequestsConfiguration&&(!g||!y)&&f;return(0,r.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,r.jsxs)(o(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsxs)(i.kCb,{as:"main",direction:"column",py:s?6:0,px:s?10:0,h:s?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[h?(0,r.jsx)(d,{}):null,e]})]})}},58754:function(t,e,n){"use strict";var r=n(24246),i=n(56351),s=n(70788);e.Z=t=>{let{heading:e,breadcrumbItems:n,isSticky:o=!0,children:a,rightContent:c,style:l,...u}=t;return(0,r.jsxs)("div",{...u,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...l}:{paddingBottom:"24px",...l},children:[(0,r.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof e?(0,r.jsx)(i.X6q,{className:n||a?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:e}):e,c&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:c})]}),!!n&&(0,r.jsx)(s.m,{className:a?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),a]})}},70788:function(t,e,n){"use strict";n.d(e,{m:function(){return l}});var r=n(24246),i=n(56351),s=n(79894),o=n.n(s),a=n(27378);let{Text:c}=i.AntTypography,l=t=>{let{items:e,...n}=t,s=(0,a.useMemo)(()=>null==e?void 0:e.map((t,n)=>{let s=n===e.length-1,a={...t},l=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,r.jsx)(c,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:a.title})),l)?a.title=(0,r.jsx)(i.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,r.jsx)(o(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[e]);return(0,r.jsx)(i.zrq,{items:s,...n})}},57454:function(t,e,n){"use strict";n.d(e,{M:function(){return c}});var r=n(24246),i=n(66726),s=n.n(i),o=n(27378),a=n(86780);let c=t=>{let{value:e,onChange:n}=t,[i,c]=(0,o.useState)(e),l=s()(n,500),u=(0,o.useCallback)(t=>{c(t),l(t)},[]);return(0,r.jsx)(a.Z,{search:i,onChange:u,onClear:()=>{c(""),n("")}})}},37059:function(t,e,n){"use strict";n.d(e,{Ak:function(){return p},EY:function(){return u},Ud:function(){return s},Vr:function(){return f},WJ:function(){return a},nP:function(){return l},nS:function(){return d},rs:function(){return c},sX:function(){return m},wi:function(){return o}});var r=n(78780),i=n(16394);let{useGetAggregateMonitorResultsQuery:s,useGetDiscoveredSystemAggregateQuery:o,useGetDiscoveredAssetsQuery:a,useAddMonitorResultSystemsMutation:c,useIgnoreMonitorResultSystemsMutation:l,useAddMonitorResultAssetsMutation:u,useIgnoreMonitorResultAssetsMutation:d,useUpdateAssetsSystemMutation:m,useUpdateAssetsDataUseMutation:p,useUpdateAssetsMutation:f}=r.u.injectEndpoints({endpoints:t=>({getAggregateMonitorResults:t.query({query:t=>{let{page:e=1,size:n=20,search:r}=t;return{url:"/plus/discovery-monitor/aggregate-results",params:{page:e,size:n,search:r,diff_status:"addition"}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredSystemAggregate:t.query({query:t=>{let{key:e,page:n=1,size:r=20,search:i}=t;return{url:"/plus/discovery-monitor/system-aggregate-results",params:{monitor_config_id:e,page:n,size:r,search:i,diff_status:"addition"}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredAssets:t.query({query:t=>{let{key:e,system:n,page:r=1,size:i=20,search:s}=t;return{url:"/plus/discovery-monitor/".concat(e,"/results"),params:{resolved_system_id:n,page:r,size:i,search:s,diff_status:"addition"}}},providesTags:()=>["Discovery Monitor Results"]}),addMonitorResultSystems:t.mutation({query:t=>{let{monitor_config_key:e,resolved_system_ids:n}=t,r=(0,i.du)(n,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(e,"/promote?").concat(r)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultSystems:t.mutation({query:t=>{let{monitor_config_key:e,resolved_system_ids:n}=t,r=(0,i.du)(n,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(e,"/mute?").concat(r)}},invalidatesTags:["Discovery Monitor Results"]}),addMonitorResultAssets:t.mutation({query:t=>{var e;let n=new URLSearchParams;return null===(e=t.urnList)||void 0===e||e.forEach(t=>n.append("staged_resource_urns",t)),{method:"POST",url:"/plus/discovery-monitor/promote?".concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultAssets:t.mutation({query:t=>{var e;let n=new URLSearchParams;return null===(e=t.urnList)||void 0===e||e.forEach(t=>n.append("staged_resource_urns",t)),{method:"POST",url:"/plus/discovery-monitor/mute?".concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),updateAssetsSystem:t.mutation({query:t=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(t.monitorId,"/results"),body:t.urnList.map(e=>({urn:e,system_key:t.systemKey}))}),invalidatesTags:["Discovery Monitor Results","System Assets"]}),updateAssetsDataUse:t.mutation({query:t=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(t.monitorId,"/results"),body:t.urnList.map(e=>({urn:e,data_uses:t.dataUses}))}),invalidatesTags:["Discovery Monitor Results"]}),updateAssets:t.mutation({query:t=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(t.monitorId,"/results"),body:t.assets}),invalidatesTags:["Discovery Monitor Results"]})})})},51500:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return b}});var r=n(24246),i=n(56351),s=n(79894),o=n.n(s),a=n(27378),c=n(77213),l=n(77830),u=n(58754),d=n(14481),m=n(37059);let p=t=>{let{isConfigLoading:e}=t;return(0,r.jsx)(c.Z,{title:"Action center",mainProps:{className:"h-full"},children:(0,r.jsx)(i.jqI,{justify:"center",align:"center",className:"h-full",children:e?(0,r.jsx)(i.$jN,{color:"primary.900"}):(0,r.jsx)(i.DUx,{message:"Coming soon...",description:"Action center is currently disabled.",type:"info",showIcon:!0})})})},f=()=>(0,r.jsx)(i.oj8,{image:i.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up! Set up an integration monitor to track your infrastructure in greater detail.",children:(0,r.jsx)(o(),{href:l.KH,passHref:!0,legacyBehavior:!0,children:(0,r.jsx)(i.wpx,{type:"primary",children:"Visit integrations"})})});var v=n(7195),g=n(16394);let{Text:y}=i.AntTypography,h=t=>{let{monitorSummary:e,showSkeleton:n,...s}=t,[c,u]=(0,a.useState)(void 0),{name:d,property:m,total_updates:p,updates:f,last_monitored:h,warning:x,key:j}=e,b=Object.entries(f).map(t=>"".concat(t[1]," ").concat(t[0],"s")).join(", "),_=h?(0,v.B)(new Date(h),new Date,{addSuffix:!0}):void 0;return(0,a.useEffect)(()=>{m&&u((0,g.tl)(m))},[m]),(0,r.jsx)(i.krs.Item,{"data-testid":"monitor-result-".concat(j),...s,children:(0,r.jsxs)(i.N_L,{avatar:!0,title:!1,loading:n,active:!0,children:[(0,r.jsx)(i.krs.Item.Meta,{avatar:(0,r.jsx)(i.t3Z,{src:c,size:"small",icon:(0,r.jsx)(i.PJP.huD,{}),style:{backgroundColor:"transparent",color:"var(--ant-color-text)"}}),title:(0,r.jsxs)(o(),{href:"".concat(l.vi,"/").concat(j),className:"whitespace-nowrap",children:["".concat(p," assets detected").concat(m?" on ".concat(m):""),!!x&&(0,r.jsx)(i.esZ,{title:"string"==typeof x?x:void 0,children:(0,r.jsx)(i.PJP.OdJ,{className:"ml-1 inline-block align-middle",style:{color:"var(--fidesui-error)"}})})]}),description:"".concat(b," detected.")}),(0,r.jsxs)(i.jqI,{className:"gap-12",children:[(0,r.jsx)(y,{style:{maxWidth:300},ellipsis:{tooltip:d},children:d}),!!_&&(0,r.jsx)(i.esZ,{title:(0,g.p6)(h),children:(0,r.jsx)(y,{"data-testid":"monitor-date",children:_})})]})]})})};var x=n(57454),j=n(99716),b=()=>{var t;let e=(0,i.pmc)(),{PAGE_SIZES:n,pageSize:s,setPageSize:v,onPreviousPageClick:g,isPreviousPageDisabled:y,onNextPageClick:b,isNextPageDisabled:_,startRange:w,endRange:T,pageIndex:k,setTotalPages:P,resetPageIndexToDefault:C}=(0,d.oi)(),[R,S]=(0,a.useState)(""),{data:A,isLoading:q}=(0,j.tB)({api_set:!1}),M=!!(null==A?void 0:null===(t=A.detection_discovery)||void 0===t?void 0:t.website_monitor_enabled);(0,a.useEffect)(()=>{C()},[R,C]);let{data:E,isError:N,isLoading:D,isFetching:I}=(0,m.Ud)({page:k,size:s,search:R},{skip:q||!M});(0,a.useEffect)(()=>{N&&e&&M&&e({title:"Error fetching data",description:"Please try again later",status:"error"})},[N,e,M]),(0,a.useEffect)(()=>{E&&P(E.total||1)},[E,P]);let L=(null==E?void 0:E.items)||[],z=I?Array.from({length:s},(t,e)=>({key:e.toString(),updates:[],last_monitored:null})):[],O=(0,a.useCallback)(t=>[(0,r.jsx)(o(),{href:"".concat(l.vi,"/").concat(t),passHref:!0,legacyBehavior:!0,children:(0,r.jsx)(i.wpx,{type:"link",className:"p-0","data-testid":"review-button-".concat(t),children:"Review"})},"review")],[]);return M?(0,r.jsxs)(c.Z,{title:"Action center",children:[(0,r.jsx)(u.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity"}]}),(0,r.jsx)(i.jqI,{className:"justify-between py-6",children:(0,r.jsx)(x.M,{value:R,onChange:S})}),(0,r.jsx)(i.krs,{loading:D,dataSource:L||z,locale:{emptyText:(0,r.jsx)(f,{})},renderItem:t=>!!t&&(0,r.jsx)(h,{showSkeleton:I,monitorSummary:t,actions:O(t.key)},t.key)}),!!L&&!!(null==E?void 0:E.total)&&E.total>s&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.htM,{className:"mb-6 mt-0"}),(0,r.jsx)(d.s8,{totalRows:(null==E?void 0:E.total)||0,pageSizes:n,setPageSize:v,onPreviousPageClick:g,isPreviousPageDisabled:y||I,onNextPageClick:b,isNextPageDisabled:_||I,startRange:w,endRange:T})]})]}):(0,r.jsx)(p,{isConfigLoading:q})}}},function(t){t.O(0,[8033,2780,4481,2888,9774,179],function(){return t(t.s=40741)}),_N_E=t.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7477],{45550:function(e,s,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/activity",function(){return a(3680)}])},91761:function(e,s,a){"use strict";var t=a(24246),i=a(
|
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(56351),n=a(14047),r=a(98559),o=a(21702),l=a(79494),c=a(70675);s.Z=e=>{let{resource:s}=e,[a,{isLoading:d}]=(0,c.v8)(),[u,{isLoading:g}]=(0,c.cM)(),[x,{isLoading:I}]=(0,c.vi)(),j=g||I||d,{diff_status:h,child_diff_statuses:C,top_level_field_name:A}=s,{successAlert:f}=(0,n.V)(),L=h===o.LL.CLASSIFICATION_ADDITION||h===o.LL.CLASSIFICATION_UPDATE,_=C&&(C[o.LL.CLASSIFICATION_ADDITION]||C[o.LL.CLASSIFICATION_UPDATE]),m=(L||_)&&!A,T=L||_,S=m&&T,v=async()=>{await u({staged_resource_urn:s.urn}),f('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},N=async()=>{await x({staged_resource_urn:s.urn}),f("Ignored changes will not be added to a Fides dataset.","".concat(s.name||"Changes"," ignored"))},p=async()=>{await a({staged_resource_urn:s.urn,monitor_config_id:s.monitor_config_id,start_classification:!0,classify_monitored_resources:!0}),f("Reclassification of ".concat((0,r.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:[m&&(0,t.jsx)(l.Z,{title:"Confirm",icon:(0,t.jsx)(i.nQG,{}),onClick:v,disabled:j,loading:g}),T&&(0,t.jsx)(l.Z,{title:"Ignore",icon:(0,t.jsx)(i.tpL,{}),onClick:N,disabled:j,loading:I}),!S&&(0,t.jsx)(l.Z,{title:"Reclassify",icon:(0,t.jsx)(i.nyI,{}),onClick:p,disabled:j,loading:d}),(0,t.jsx)(i.LZC,{}),S&&(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:p,icon:(0,t.jsx)(i.nyI,{}),"data-testid":"action-reclassify",children:"Reclassify"})})]})]})}},3680:function(e,s,a){"use strict";a.r(s),a.d(s,{default:function(){return O}});var t,i,n=a(24246),r=a(27378),o=a(35287),l=a(58754),c=a(47182),d=a(92222),u=a(59003),g=a(56351),x=a(14481),I=a(72625),j=a(70675),h=a(38347),C=a(87667),A=a(50169),f=a(80285),L=a(57454);(t=i||(i={})).DATASET="Dataset",t.CLASSIFICATION="Classification";var _=a(74241),m=a(28278),T=a(20449),S=e=>(0,T.Z)(e)===m.E.CLASSIFICATION?i.CLASSIFICATION:i.DATASET,v=a(54409),N=a(91761);let p={items:[],total:0,page:1,size:50,pages:1},y=()=>(0,n.jsx)(g.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,n.jsxs)(g.gCW,{children:[(0,n.jsx)(g.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,n.jsx)(g.xvT,{fontSize:"sm",children:"You're up to date!"})]})}),D=(0,d.Cl)();var w=e=>{let{onRowClick:s,statusFilters:a,childsStatusFilters:t}=e,[o,l]=(0,r.useState)(""),{PAGE_SIZES:c,pageSize:m,setPageSize:T,onPreviousPageClick:w,isPreviousPageDisabled:R,onNextPageClick:O,isNextPageDisabled:b,startRange:E,endRange:Z,pageIndex:F,setTotalPages:P}=(0,x.oi)(),{isFetching:k,isLoading:M,data:V}=(0,j.z8)({diff_status:a,child_diff_status:t,page:F,size:m,search:o}),{items:z,total:U,pages:G}=(0,r.useMemo)(()=>null!=V?V:p,[V]);(0,r.useEffect)(()=>{P(G)},[G,P]);let W=(0,r.useMemo)(()=>[D.accessor(e=>e.name,{id:"name",cell:e=>(0,n.jsx)(C.Z,{result:e.row.original}),header:e=>(0,n.jsx)(x.Rr,{value:"Name",...e})}),D.accessor(e=>e.urn,{id:"project",cell:e=>(0,n.jsx)(x.G3,{value:(0,_.Z)(e.getValue())}),header:e=>(0,n.jsx)(x.Rr,{value:"Project",...e})}),D.display({id:"status",cell:e=>(0,n.jsx)(A.Z,{result:e.row.original}),header:e=>(0,n.jsx)(x.Rr,{value:"Status",...e})}),D.accessor(e=>e.system,{id:"system",cell:e=>(0,n.jsx)(x.G3,{value:e.getValue()}),header:e=>(0,n.jsx)(x.Rr,{value:"System",...e})}),D.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,n.jsx)(x.G3,{value:e.getValue()}),header:e=>(0,n.jsx)(x.Rr,{value:"Detected by",...e})}),D.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,n.jsx)(I.Cy,{time:e.getValue()}),header:e=>(0,n.jsx)(x.Rr,{value:"When",...e})}),D.accessor(e=>e,{id:"action",cell:e=>S(e.getValue())===i.DATASET?(0,n.jsx)(v.Z,{resource:e.getValue()}):(0,n.jsx)(N.Z,{resource:e.getValue()}),header:e=>(0,n.jsx)(x.Rr,{value:"Action",...e})})],[]),q=(0,u.b7)({getCoreRowModel:(0,d.sC)(),getGroupedRowModel:(0,d.qe)(),getExpandedRowModel:(0,d.rV)(),getRowId:f.Z,columns:W,manualPagination:!0,data:z,columnResizeMode:"onChange"});return M?(0,n.jsx)(x.I4,{rowHeight:36,numRows:36}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.Q$,{children:(0,n.jsxs)(g.kCb,{gap:6,align:"center",children:[(0,n.jsx)(g.xuv,{flexShrink:0,children:(0,n.jsx)(L.M,{value:o,onChange:l})}),(0,n.jsx)(h.Z,{})]})}),(0,n.jsx)(x.ZK,{tableInstance:q,onRowClick:s,emptyTableNotice:(0,n.jsx)(y,{})}),(0,n.jsx)(x.s8,{totalRows:U||0,pageSizes:c,setPageSize:T,onPreviousPageClick:w,isPreviousPageDisabled:R||k,onNextPageClick:O,isNextPageDisabled:b||k,startRange:E,endRange:Z})]})},R=a(21702),O=()=>{let{navigateToDetectionResults:e,navigateToDiscoveryResults:s}=(0,c.Z)();return(0,n.jsxs)(o.Z,{title:"Data discovery",children:[(0,n.jsx)(l.Z,{heading:"All activity"}),(0,n.jsx)(w,{onRowClick:a=>{if(S(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,[8033,2780,4481,9999,6315,2888,9774,179],function(){return e(e.s=45550)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5744],{24354:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/detection/[resourceUrn]",function(){return r(42705)}])},42705:function(e,n,r){"use strict";r.r(n);var t=r(24246);r(27378);var c=r(35287),i=r(77830),u=r(58754),s=r(69828),o=r(47182),a=r(1039);n.default=()=>{let{resourceUrn:e,navigateToDetectionResults:n}=(0,o.Z)();return(0,t.jsxs)(c.Z,{title:"Data detection",children:[(0,t.jsx)(u.Z,{heading:"Data detection",children:(0,t.jsx)(s.Z,{parentLink:i.XY,resourceUrn:e,onPathClick:e=>n({resourceUrn:e})})}),(0,t.jsx)(a.Z,{resourceUrn:e})]})}}},function(e){e.O(0,[8033,
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5744],{24354:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/detection/[resourceUrn]",function(){return r(42705)}])},42705:function(e,n,r){"use strict";r.r(n);var t=r(24246);r(27378);var c=r(35287),i=r(77830),u=r(58754),s=r(69828),o=r(47182),a=r(1039);n.default=()=>{let{resourceUrn:e,navigateToDetectionResults:n}=(0,o.Z)();return(0,t.jsxs)(c.Z,{title:"Data detection",children:[(0,t.jsx)(u.Z,{heading:"Data detection",children:(0,t.jsx)(s.Z,{parentLink:i.XY,resourceUrn:e,onPathClick:e=>n({resourceUrn:e})})}),(0,t.jsx)(a.Z,{resourceUrn:e})]})}}},function(e){e.O(0,[8033,2780,4481,9999,6315,2397,2888,9774,179],function(){return e(e.s=24354)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3453],{35041:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/detection",function(){return e(82660)}])},82660:function(n,t,e){"use strict";e.r(t);var i=e(24246);e(27378);var c=e(35287),a=e(77830),s=e(58754),u=e(69828),r=e(1039);t.default=()=>(0,i.jsxs)(c.Z,{title:"Data detection",children:[(0,i.jsx)(s.Z,{heading:"Data detection",children:(0,i.jsx)(u.Z,{parentLink:a.XY})}),(0,i.jsx)(r.Z,{})]})}},function(n){n.O(0,[8033,
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3453],{35041:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/detection",function(){return e(82660)}])},82660:function(n,t,e){"use strict";e.r(t);var i=e(24246);e(27378);var c=e(35287),a=e(77830),s=e(58754),u=e(69828),r=e(1039);t.default=()=>(0,i.jsxs)(c.Z,{title:"Data detection",children:[(0,i.jsx)(s.Z,{heading:"Data detection",children:(0,i.jsx)(u.Z,{parentLink:a.XY})}),(0,i.jsx)(r.Z,{})]})}},function(n){n.O(0,[8033,2780,4481,9999,6315,2397,2888,9774,179],function(){return n(n.s=35041)}),_N_E=n.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1571],{11207:function(r,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/discovery/[resourceUrn]",function(){return n(55124)}])},55124:function(r,e,n){"use strict";n.r(e);var s=n(24246);n(27378);var c=n(35287),t=n(77830),i=n(58754),u=n(69828),o=n(47182),a=n(11904);e.default=()=>{let{resourceUrn:r,navigateToDiscoveryResults:e}=(0,o.Z)();return(0,s.jsxs)(c.Z,{title:"Data discovery",children:[(0,s.jsx)(i.Z,{heading:"Data discovery",children:(0,s.jsx)(u.Z,{parentLink:t.zE,resourceUrn:r,onPathClick:r=>e({resourceUrn:r})})}),(0,s.jsx)(a.Z,{resourceUrn:r})]})}}},function(r){r.O(0,[8033,
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1571],{11207:function(r,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/discovery/[resourceUrn]",function(){return n(55124)}])},55124:function(r,e,n){"use strict";n.r(e);var s=n(24246);n(27378);var c=n(35287),t=n(77830),i=n(58754),u=n(69828),o=n(47182),a=n(11904);e.default=()=>{let{resourceUrn:r,navigateToDiscoveryResults:e}=(0,o.Z)();return(0,s.jsxs)(c.Z,{title:"Data discovery",children:[(0,s.jsx)(i.Z,{heading:"Data discovery",children:(0,s.jsx)(u.Z,{parentLink:t.zE,resourceUrn:r,onPathClick:r=>e({resourceUrn:r})})}),(0,s.jsx)(a.Z,{resourceUrn:r})]})}}},function(r){r.O(0,[8033,2780,2858,2866,9278,4481,9999,6372,9046,2888,9774,179],function(){return r(r.s=11207)}),_N_E=r.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2320],{48570:function(n,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/discovery",function(){return i(49730)}])},49730:function(n,e,i){"use strict";i.r(e);var s=i(24246);i(27378);var t=i(35287),r=i(77830),c=i(58754),a=i(69828),u=i(11904);e.default=()=>(0,s.jsxs)(t.Z,{title:"Data discovery",children:[(0,s.jsx)(c.Z,{heading:"Data discovery",children:(0,s.jsx)(a.Z,{parentLink:r.zE})}),(0,s.jsx)(u.Z,{})]})}},function(n){n.O(0,[8033,
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2320],{48570:function(n,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/discovery",function(){return i(49730)}])},49730:function(n,e,i){"use strict";i.r(e);var s=i(24246);i(27378);var t=i(35287),r=i(77830),c=i(58754),a=i(69828),u=i(11904);e.default=()=>(0,s.jsxs)(t.Z,{title:"Data discovery",children:[(0,s.jsx)(c.Z,{heading:"Data discovery",children:(0,s.jsx)(a.Z,{parentLink:r.zE})}),(0,s.jsx)(u.Z,{})]})}},function(n){n.O(0,[8033,2780,2858,2866,9278,4481,9999,6372,9046,2888,9774,179],function(){return n(n.s=48570)}),_N_E=n.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9738],{53910:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/datamap",function(){return n(18839)}])},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var l=n(24246),i=n(77181),r=n(88038),s=n.n(r),a=n(86677);n(27378);var o=n(25980),d=n(90867),c=n(77830),u=()=>{let e=(0,a.useRouter)();return(0,l.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,l.jsxs)(i.xuv,{children:[(0,l.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,l.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,l.jsx)(i.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,l.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},x=e=>{let{children:t,title:n,padded:r=!0,mainProps:c}=e,x=(0,o.hz)(),h=(0,a.useRouter)(),m="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,g=!(x.flags.privacyRequestsConfiguration&&m),{data:p}=(0,d.JE)(void 0,{skip:g}),{data:f}=(0,d.PW)(void 0,{skip:g}),j=x.flags.privacyRequestsConfiguration&&(!p||!f)&&m;return(0,l.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,l.jsxs)(s(),{children:[(0,l.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,l.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,l.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,l.jsxs)(i.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[j?(0,l.jsx)(u,{}):null,t]})]})}},54349:function(e,t,n){"use strict";n.d(t,{Y:function(){return s}});var l=n(24246),i=n(27378);let r=(0,i.createRef)(),s=(0,i.createContext)(r);t.Z=e=>{let{children:t}=e;return(0,l.jsx)(s.Provider,{value:r,children:t})}},99811:function(e,t,n){"use strict";n.d(t,{m:function(){return i}});var l=n(27378);class i{updateTableInstance(e){this.tableInstance=e}constructor(e=null){this.tableInstance=e,this.updateTableInstance=this.updateTableInstance.bind(this)}}let r=l.createContext(new i);t.Z=r},18839:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return H}});var l=n(24246),i=n(27378),r=n(45938),s=n(77213),a=n(58754),o=n(77181),d=n(65218),c=n.n(d),u=n(16134),x=n(35258),h=n(54349),m=n(92222),g=n(59003),p=n(30002),f=n(28079),j=n(49600),v=n(99811);let y=e=>{var t;let{column:n}=e,{tableInstance:l}=(0,i.useContext)(v.Z),r=i.useMemo(()=>Array.from(n.getFacetedUniqueValues().keys()),[n]),s=i.useMemo(()=>{let e={};return r.forEach(t=>{e[t]=!1}),e},[r]);return{filterValue:null!==(t=n.getFilterValue())&&void 0!==t?t:s,clearFilterOptions:()=>{let e={};r.forEach(t=>{e[t]=!1}),n.setFilterValue(e)},toggleFilterOption:(e,t)=>{var i;let r={...null!==(i=n.getFilterValue())&&void 0!==i?i:s,[e]:t};Object.values(r).every(e=>!e)?null==l||l.setColumnFilters(null==l?void 0:l.getState().columnFilters.filter(e=>e.id!==n.id)):n.setFilterValue(r)},options:r,header:n.columnDef.header}};var b=n(57072);let w=(0,m.Cl)(),C={multifield:(e,t,n)=>n[e.original[t]]},k=()=>{let e=(0,u.T)(),{updateTableInstance:t}=(0,i.useContext)(v.Z),n=(0,u.C)(j.eo),{data:l,isLoading:r}=(0,j.Ex)({organizationName:"default_organization"});(0,b.MO)(),(0,f.fd)(),(0,p.te)();let s=(0,i.useRef)(!1);(0,i.useEffect)(()=>{if(l){let{columns:t,rows:n}=l;e((0,j.dd)(t)),s.current||(s.current=!0,0===n.length?e((0,j.ym)(!0)):e((0,j.ym)(!1)))}},[l,e]);let a=(0,i.useMemo)(()=>l?l.rows:[],[l]),o=(0,i.useMemo)(()=>(n||[]).map(e=>{let{text:t,value:n}=e;return w.accessor(e=>e[n],{id:n,header:t,cell:e=>{let{getValue:t}=e,n=t();return Array.isArray(n)?n.join(", "):n},filterFn:C.multifield})}),[n]),d=(0,g.b7)({columns:o,data:a,filterFns:C,getCoreRowModel:(0,m.sC)(),getFilteredRowModel:(0,m.vL)(),getFacetedRowModel:(0,m.o6)(),getFacetedUniqueValues:(0,m.JG)(),manualPagination:!0,columnResizeMode:"onChange"});return(0,i.useEffect)(()=>t(d),[d,t]),{...d,isLoading:r}};var F=n(83766),S=n.n(F),I=n(25980),O=n(91613),R=n(14481),M=n(22968);let Z=e=>{var t,n,i;let{option:r,columnId:s,filterValue:a,toggleFilterOption:d}=e,c=(0,u.C)(b.L5),x=s===M.Ux&&null!==(n=null===(t=c.get(r))||void 0===t?void 0:t.name)&&void 0!==n?n:r;return(0,l.jsx)(o.XZJ,{value:r,width:"193px",height:"20px",mb:"25px",isChecked:null!==(i=a[r])&&void 0!==i&&i,onChange:e=>{let{target:t}=e;d(r,t.checked)},_focusWithin:{bg:"gray.100"},colorScheme:"complimentary",children:(0,l.jsx)(o.xvT,{fontSize:"sm",lineHeight:5,height:"20px",width:"170px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",children:x})},r)};var _=e=>{let{column:t}=e,{filterValue:n,toggleFilterOption:r,options:s}=y({column:t}),[a,d]=(0,i.useState)(!1),c=a?s:s.slice(0,15),u=s.length>15;return(0,l.jsx)(o.UQy,{width:"100%",allowToggle:!0,children:(0,l.jsxs)(o.Qdk,{border:"0px",children:[(0,l.jsx)(o.X6q,{height:"56px",children:(0,l.jsxs)(o.KFZ,{height:"100%",children:[(0,l.jsx)(o.xuv,{flex:"1",alignItems:"center",justifyContent:"center",textAlign:"left",children:t.columnDef.header}),(0,l.jsx)(o.XEm,{})]})}),(0,l.jsxs)(o.Hk3,{children:[(0,l.jsx)(o.MIq,{columns:3,children:c.map(e=>(0,l.jsx)(Z,{columnId:t.id,option:e,filterValue:n,toggleFilterOption:r},e))}),!a&&u?(0,l.jsx)(o.wpx,{type:"text",onClick:()=>{d(!0)},children:"View more"}):null,a&&u?(0,l.jsx)(o.wpx,{type:"text",onClick:()=>{d(!1)},children:"View less"}):null]})]})},t.id)};let T=e=>{let{heading:t,children:n}=e;return(0,l.jsxs)(o.xuv,{padding:"24px 8px 8px 24px",children:[(0,l.jsx)(o.X6q,{size:"md",lineHeight:6,fontWeight:"bold",mb:2,children:t}),n]})};var z=e=>{let t,{isOpen:n,onClose:r}=e,{tableInstance:s}=(0,i.useContext)(v.Z),a=null==s?void 0:s.getHeaderGroups(),d=(e,t)=>e.filter(e=>e.id===t).map(e=>(0,l.jsx)(_,{column:e.column},t)),c=(0,i.useMemo)(()=>(null==a?void 0:a[0].headers)||[],[a]);return(0,l.jsxs)(o.u_l,{isOpen:n,onClose:r,isCentered:!0,size:"2xl",children:[(0,l.jsx)(o.ZAr,{}),(0,l.jsxs)(o.hzk,{children:[(0,l.jsx)(o.xBx,{children:"Filters"}),(0,l.jsx)(o.olH,{}),(0,l.jsx)(o.izJ,{}),(0,l.jsx)(o.fef,{maxH:"85vh",padding:"0px",overflowX:"auto",children:(t=[M.vy,M.Ux,M.OL],c.some(e=>t.indexOf(e.id)>-1))?(0,l.jsxs)(T,{heading:"Privacy attributes",children:[d(c,M.vy),d(c,M.Ux),d(c,M.OL)]}):null}),(0,l.jsx)(o.mzw,{children:(0,l.jsxs)(o.xuv,{display:"flex",justifyContent:"space-between",width:"100%",children:[(0,l.jsx)(o.wpx,{onClick:()=>{null==s||s.resetColumnFilters()},className:"mr-3 grow",children:"Reset Filters"}),(0,l.jsx)(o.wpx,{onClick:r,type:"primary",className:"grow",children:"Done"})]})})]})]})};let E=()=>{let{isOpen:e,onOpen:t,onClose:n}=(0,o.qY0)();return{isFilterModalOpen:e,onFilterModalOpen:t,onFilterModalClose:n}};var P=()=>{let{isFilterModalOpen:e,onFilterModalOpen:t,onFilterModalClose:n}=E(),{tableInstance:r}=(0,i.useContext)(v.Z),{systemsCount:s,dictionaryService:a}=(0,I.hz)(),d=null==r?void 0:r.getRowModel(),c=(0,i.useMemo)(()=>{let e=(null==d?void 0:d.rows)||[];return S()(null==e?void 0:e.map(e=>e.original["system.fides_key"]))},[d]);if(!r)return null;let u=c.length,x=r.getState().columnFilters.length;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(o.kCb,{justifyContent:"flex-end",flexDirection:"row",alignItems:"center",flexWrap:"wrap",rowGap:4,columnGap:4,children:[(0,l.jsx)(o.kCb,{flexGrow:1,children:(0,l.jsx)(R.HO,{globalFilter:r.getState().globalFilter,setGlobalFilter:r.setGlobalFilter})}),(0,l.jsxs)(o.kCb,{children:[s>0?(0,l.jsxs)(o.kCb,{alignItems:"center",borderRadius:"md",gap:1,marginRight:4,children:[(0,l.jsxs)(o.xvT,{fontSize:"xs",children:[u," of ",s," systems displayed"]}),a?(0,l.jsx)(O.Z,{label:"Note that Global Vendor List (GVL) and Additional Consent (AC) systems are not currently included in these reports"}):null]}):null,(0,l.jsxs)(o.wpx,{"aria-label":"Open Filter Settings",onClick:t,children:["Filter",x>0?(0,l.jsx)(o.j8w,{className:"ml-2",children:x}):null]})]})]}),(0,l.jsx)(z,{isOpen:e,onClose:n})]})},q=n(38943),N=n(77830),V=()=>(0,l.jsx)(o.M5Y,{flex:1,"data-testid":"get-started-modal",backgroundColor:"gray.100",children:(0,l.jsx)(o.xuv,{backgroundColor:"white",p:10,borderRadius:"6px",boxShadow:"0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06)",maxWidth:{base:"80%",lg:"60%",xl:"50%"},maxHeight:"90%",textAlign:"center",children:(0,l.jsxs)(o.Kqy,{spacing:4,children:[(0,l.jsx)(o.xvT,{color:"gray.700",fontWeight:"600",children:"Privacy engineering can seem like an endlessly complex confluence of legal and data engineering terminology—fear not—Fides is here to simplify this."}),(0,l.jsx)(o.xvT,{children:"Start by scanning your infrastructure. The scanner will connect to your infrastructure to automatically scan and create a list of all systems available and then classify each system containing PII."}),(0,l.jsx)(o.xvT,{children:"Let's get started!"}),(0,l.jsx)(o.xuv,{children:(0,l.jsx)(o.wpx,{href:N.xo,role:"link",type:"primary",className:"w-fit","data-testid":"add-systems-btn",children:"Add Systems"})})]})})});let W=c()(()=>Promise.all([n.e(5199),n.e(4804),n.e(9392)]).then(n.bind(n,19392)),{loadableGenerated:{webpack:()=>[19392]},ssr:!1}),A=()=>{let e=(0,u.C)(q.Xt),t=(0,i.useContext)(h.Y),{attemptAction:n}=(0,r.oI)(),[l,s]=(0,i.useState)(),a=(0,i.useCallback)(e=>{n().then(t=>{t&&s(e)})},[n,s]),o=(0,i.useCallback)(()=>{n().then(e=>{if(e&&l){if(t.current){var n;null===(n=t.current)||void 0===n||n.$id(l).unselect()}s(void 0)}})},[n,t,l]);return{isGettingStarted:e,selectedSystemId:l,setSelectedSystemId:a,resetSelectedSystemId:o}};var G=()=>{let{isGettingStarted:e,setSelectedSystemId:t,selectedSystemId:n,resetSelectedSystemId:i}=A(),{isLoading:r}=k();return r?(0,l.jsx)(o.M5Y,{width:"100%",flex:"1",children:(0,l.jsx)(o.$jN,{})}):e?(0,l.jsx)(V,{}):(0,l.jsxs)(o.kCb,{direction:"column",height:"100%",children:[(0,l.jsx)(o.xuv,{marginBottom:3,marginRight:10,children:(0,l.jsx)(P,{})}),(0,l.jsxs)(o.kCb,{position:"relative",flex:1,direction:"row",overflow:"auto",borderWidth:"1px",borderStyle:"solid",borderColor:"gray.200",children:[(0,l.jsx)(o.xuv,{flex:1,minWidth:"50%",maxWidth:"100%",children:(0,l.jsx)(W,{setSelectedSystemId:t})}),(0,l.jsx)(x.Z,{selectedSystemId:n,resetSelectedSystemId:i})]})]})},H=()=>{let e=(0,i.useMemo)(()=>new v.m,[]);return(0,l.jsxs)(s.Z,{title:"Data lineage",mainProps:{padding:"24px 0 0 40px"},children:[(0,l.jsx)(a.Z,{style:{paddingLeft:0},heading:"Data lineage"}),(0,l.jsx)(v.Z.Provider,{value:e,children:(0,l.jsxs)(h.Z,{children:[(0,l.jsx)(G,{}),(0,l.jsx)(r.eB,{})]})})]})}}},function(e){e.O(0,[8033,6060,255,4481,7980,8499,5258,2888,9774,179],function(){return e(e.s=53910)}),_N_E=e.O()}]);
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9738],{53910:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/datamap",function(){return n(18839)}])},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var l=n(24246),i=n(56351),r=n(88038),s=n.n(r),a=n(86677);n(27378);var o=n(25980),d=n(90867),c=n(77830),u=()=>{let e=(0,a.useRouter)();return(0,l.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,l.jsxs)(i.xuv,{children:[(0,l.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,l.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,l.jsx)(i.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,l.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},x=e=>{let{children:t,title:n,padded:r=!0,mainProps:c}=e,x=(0,o.hz)(),h=(0,a.useRouter)(),m="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,g=!(x.flags.privacyRequestsConfiguration&&m),{data:p}=(0,d.JE)(void 0,{skip:g}),{data:f}=(0,d.PW)(void 0,{skip:g}),j=x.flags.privacyRequestsConfiguration&&(!p||!f)&&m;return(0,l.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,l.jsxs)(s(),{children:[(0,l.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,l.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,l.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,l.jsxs)(i.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[j?(0,l.jsx)(u,{}):null,t]})]})}},54349:function(e,t,n){"use strict";n.d(t,{Y:function(){return s}});var l=n(24246),i=n(27378);let r=(0,i.createRef)(),s=(0,i.createContext)(r);t.Z=e=>{let{children:t}=e;return(0,l.jsx)(s.Provider,{value:r,children:t})}},99811:function(e,t,n){"use strict";n.d(t,{m:function(){return i}});var l=n(27378);class i{updateTableInstance(e){this.tableInstance=e}constructor(e=null){this.tableInstance=e,this.updateTableInstance=this.updateTableInstance.bind(this)}}let r=l.createContext(new i);t.Z=r},18839:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return H}});var l=n(24246),i=n(27378),r=n(45938),s=n(77213),a=n(58754),o=n(56351),d=n(65218),c=n.n(d),u=n(16134),x=n(35258),h=n(54349),m=n(92222),g=n(59003),p=n(30002),f=n(28079),j=n(49600),v=n(99811);let y=e=>{var t;let{column:n}=e,{tableInstance:l}=(0,i.useContext)(v.Z),r=i.useMemo(()=>Array.from(n.getFacetedUniqueValues().keys()),[n]),s=i.useMemo(()=>{let e={};return r.forEach(t=>{e[t]=!1}),e},[r]);return{filterValue:null!==(t=n.getFilterValue())&&void 0!==t?t:s,clearFilterOptions:()=>{let e={};r.forEach(t=>{e[t]=!1}),n.setFilterValue(e)},toggleFilterOption:(e,t)=>{var i;let r={...null!==(i=n.getFilterValue())&&void 0!==i?i:s,[e]:t};Object.values(r).every(e=>!e)?null==l||l.setColumnFilters(null==l?void 0:l.getState().columnFilters.filter(e=>e.id!==n.id)):n.setFilterValue(r)},options:r,header:n.columnDef.header}};var b=n(57072);let w=(0,m.Cl)(),C={multifield:(e,t,n)=>n[e.original[t]]},k=()=>{let e=(0,u.T)(),{updateTableInstance:t}=(0,i.useContext)(v.Z),n=(0,u.C)(j.eo),{data:l,isLoading:r}=(0,j.Ex)({organizationName:"default_organization"});(0,b.MO)(),(0,f.fd)(),(0,p.te)();let s=(0,i.useRef)(!1);(0,i.useEffect)(()=>{if(l){let{columns:t,rows:n}=l;e((0,j.dd)(t)),s.current||(s.current=!0,0===n.length?e((0,j.ym)(!0)):e((0,j.ym)(!1)))}},[l,e]);let a=(0,i.useMemo)(()=>l?l.rows:[],[l]),o=(0,i.useMemo)(()=>(n||[]).map(e=>{let{text:t,value:n}=e;return w.accessor(e=>e[n],{id:n,header:t,cell:e=>{let{getValue:t}=e,n=t();return Array.isArray(n)?n.join(", "):n},filterFn:C.multifield})}),[n]),d=(0,g.b7)({columns:o,data:a,filterFns:C,getCoreRowModel:(0,m.sC)(),getFilteredRowModel:(0,m.vL)(),getFacetedRowModel:(0,m.o6)(),getFacetedUniqueValues:(0,m.JG)(),manualPagination:!0,columnResizeMode:"onChange"});return(0,i.useEffect)(()=>t(d),[d,t]),{...d,isLoading:r}};var F=n(83766),S=n.n(F),I=n(25980),O=n(91613),R=n(14481),M=n(22968);let Z=e=>{var t,n,i;let{option:r,columnId:s,filterValue:a,toggleFilterOption:d}=e,c=(0,u.C)(b.L5),x=s===M.Ux&&null!==(n=null===(t=c.get(r))||void 0===t?void 0:t.name)&&void 0!==n?n:r;return(0,l.jsx)(o.XZJ,{value:r,width:"193px",height:"20px",mb:"25px",isChecked:null!==(i=a[r])&&void 0!==i&&i,onChange:e=>{let{target:t}=e;d(r,t.checked)},_focusWithin:{bg:"gray.100"},colorScheme:"complimentary",children:(0,l.jsx)(o.xvT,{fontSize:"sm",lineHeight:5,height:"20px",width:"170px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",children:x})},r)};var _=e=>{let{column:t}=e,{filterValue:n,toggleFilterOption:r,options:s}=y({column:t}),[a,d]=(0,i.useState)(!1),c=a?s:s.slice(0,15),u=s.length>15;return(0,l.jsx)(o.UQy,{width:"100%",allowToggle:!0,children:(0,l.jsxs)(o.Qdk,{border:"0px",children:[(0,l.jsx)(o.X6q,{height:"56px",children:(0,l.jsxs)(o.KFZ,{height:"100%",children:[(0,l.jsx)(o.xuv,{flex:"1",alignItems:"center",justifyContent:"center",textAlign:"left",children:t.columnDef.header}),(0,l.jsx)(o.XEm,{})]})}),(0,l.jsxs)(o.Hk3,{children:[(0,l.jsx)(o.MIq,{columns:3,children:c.map(e=>(0,l.jsx)(Z,{columnId:t.id,option:e,filterValue:n,toggleFilterOption:r},e))}),!a&&u?(0,l.jsx)(o.wpx,{type:"text",onClick:()=>{d(!0)},children:"View more"}):null,a&&u?(0,l.jsx)(o.wpx,{type:"text",onClick:()=>{d(!1)},children:"View less"}):null]})]})},t.id)};let T=e=>{let{heading:t,children:n}=e;return(0,l.jsxs)(o.xuv,{padding:"24px 8px 8px 24px",children:[(0,l.jsx)(o.X6q,{size:"md",lineHeight:6,fontWeight:"bold",mb:2,children:t}),n]})};var z=e=>{let t,{isOpen:n,onClose:r}=e,{tableInstance:s}=(0,i.useContext)(v.Z),a=null==s?void 0:s.getHeaderGroups(),d=(e,t)=>e.filter(e=>e.id===t).map(e=>(0,l.jsx)(_,{column:e.column},t)),c=(0,i.useMemo)(()=>(null==a?void 0:a[0].headers)||[],[a]);return(0,l.jsxs)(o.u_l,{isOpen:n,onClose:r,isCentered:!0,size:"2xl",children:[(0,l.jsx)(o.ZAr,{}),(0,l.jsxs)(o.hzk,{children:[(0,l.jsx)(o.xBx,{children:"Filters"}),(0,l.jsx)(o.olH,{}),(0,l.jsx)(o.izJ,{}),(0,l.jsx)(o.fef,{maxH:"85vh",padding:"0px",overflowX:"auto",children:(t=[M.vy,M.Ux,M.OL],c.some(e=>t.indexOf(e.id)>-1))?(0,l.jsxs)(T,{heading:"Privacy attributes",children:[d(c,M.vy),d(c,M.Ux),d(c,M.OL)]}):null}),(0,l.jsx)(o.mzw,{children:(0,l.jsxs)(o.xuv,{display:"flex",justifyContent:"space-between",width:"100%",children:[(0,l.jsx)(o.wpx,{onClick:()=>{null==s||s.resetColumnFilters()},className:"mr-3 grow",children:"Reset Filters"}),(0,l.jsx)(o.wpx,{onClick:r,type:"primary",className:"grow",children:"Done"})]})})]})]})};let E=()=>{let{isOpen:e,onOpen:t,onClose:n}=(0,o.qY0)();return{isFilterModalOpen:e,onFilterModalOpen:t,onFilterModalClose:n}};var P=()=>{let{isFilterModalOpen:e,onFilterModalOpen:t,onFilterModalClose:n}=E(),{tableInstance:r}=(0,i.useContext)(v.Z),{systemsCount:s,dictionaryService:a}=(0,I.hz)(),d=null==r?void 0:r.getRowModel(),c=(0,i.useMemo)(()=>{let e=(null==d?void 0:d.rows)||[];return S()(null==e?void 0:e.map(e=>e.original["system.fides_key"]))},[d]);if(!r)return null;let u=c.length,x=r.getState().columnFilters.length;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(o.kCb,{justifyContent:"flex-end",flexDirection:"row",alignItems:"center",flexWrap:"wrap",rowGap:4,columnGap:4,children:[(0,l.jsx)(o.kCb,{flexGrow:1,children:(0,l.jsx)(R.HO,{globalFilter:r.getState().globalFilter,setGlobalFilter:r.setGlobalFilter})}),(0,l.jsxs)(o.kCb,{children:[s>0?(0,l.jsxs)(o.kCb,{alignItems:"center",borderRadius:"md",gap:1,marginRight:4,children:[(0,l.jsxs)(o.xvT,{fontSize:"xs",children:[u," of ",s," systems displayed"]}),a?(0,l.jsx)(O.Z,{label:"Note that Global Vendor List (GVL) and Additional Consent (AC) systems are not currently included in these reports"}):null]}):null,(0,l.jsxs)(o.wpx,{"aria-label":"Open Filter Settings",onClick:t,children:["Filter",x>0?(0,l.jsx)(o.j8w,{className:"ml-2",children:x}):null]})]})]}),(0,l.jsx)(z,{isOpen:e,onClose:n})]})},q=n(38943),N=n(77830),V=()=>(0,l.jsx)(o.M5Y,{flex:1,"data-testid":"get-started-modal",backgroundColor:"gray.100",children:(0,l.jsx)(o.xuv,{backgroundColor:"white",p:10,borderRadius:"6px",boxShadow:"0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06)",maxWidth:{base:"80%",lg:"60%",xl:"50%"},maxHeight:"90%",textAlign:"center",children:(0,l.jsxs)(o.Kqy,{spacing:4,children:[(0,l.jsx)(o.xvT,{color:"gray.700",fontWeight:"600",children:"Privacy engineering can seem like an endlessly complex confluence of legal and data engineering terminology—fear not—Fides is here to simplify this."}),(0,l.jsx)(o.xvT,{children:"Start by scanning your infrastructure. The scanner will connect to your infrastructure to automatically scan and create a list of all systems available and then classify each system containing PII."}),(0,l.jsx)(o.xvT,{children:"Let's get started!"}),(0,l.jsx)(o.xuv,{children:(0,l.jsx)(o.wpx,{href:N.xo,role:"link",type:"primary",className:"w-fit","data-testid":"add-systems-btn",children:"Add Systems"})})]})})});let W=c()(()=>Promise.all([n.e(5199),n.e(4804),n.e(9392)]).then(n.bind(n,19392)),{loadableGenerated:{webpack:()=>[19392]},ssr:!1}),A=()=>{let e=(0,u.C)(q.Xt),t=(0,i.useContext)(h.Y),{attemptAction:n}=(0,r.oI)(),[l,s]=(0,i.useState)(),a=(0,i.useCallback)(e=>{n().then(t=>{t&&s(e)})},[n,s]),o=(0,i.useCallback)(()=>{n().then(e=>{if(e&&l){if(t.current){var n;null===(n=t.current)||void 0===n||n.$id(l).unselect()}s(void 0)}})},[n,t,l]);return{isGettingStarted:e,selectedSystemId:l,setSelectedSystemId:a,resetSelectedSystemId:o}};var G=()=>{let{isGettingStarted:e,setSelectedSystemId:t,selectedSystemId:n,resetSelectedSystemId:i}=A(),{isLoading:r}=k();return r?(0,l.jsx)(o.M5Y,{width:"100%",flex:"1",children:(0,l.jsx)(o.$jN,{})}):e?(0,l.jsx)(V,{}):(0,l.jsxs)(o.kCb,{direction:"column",height:"100%",children:[(0,l.jsx)(o.xuv,{marginBottom:3,marginRight:10,children:(0,l.jsx)(P,{})}),(0,l.jsxs)(o.kCb,{position:"relative",flex:1,direction:"row",overflow:"auto",borderWidth:"1px",borderStyle:"solid",borderColor:"gray.200",children:[(0,l.jsx)(o.xuv,{flex:1,minWidth:"50%",maxWidth:"100%",children:(0,l.jsx)(W,{setSelectedSystemId:t})}),(0,l.jsx)(x.Z,{selectedSystemId:n,resetSelectedSystemId:i})]})]})},H=()=>{let e=(0,i.useMemo)(()=>new v.m,[]);return(0,l.jsxs)(s.Z,{title:"Data lineage",mainProps:{padding:"24px 0 0 40px"},children:[(0,l.jsx)(a.Z,{style:{paddingLeft:0},heading:"Data lineage"}),(0,l.jsx)(v.Z.Provider,{value:e,children:(0,l.jsxs)(h.Z,{children:[(0,l.jsx)(G,{}),(0,l.jsx)(r.eB,{})]})})]})}}},function(e){e.O(0,[8033,2780,255,4481,7980,8499,5258,2888,9774,179],function(){return e(e.s=53910)}),_N_E=e.O()}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2096],{16383:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]/[collectionName]/[...subfieldNames]",function(){return a(26052)}])},12627:function(e,t,a){"use strict";var i=a(24246),l=a(79283),n=a(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:a=!1,...o}=e,{getDataCategoryDisplayNameProps:s,getDataCategories:r}=(0,n.Z)(),d=(a?r():r().filter(e=>e.active)).filter(e=>!t.includes(e.fides_key)).map(e=>{let{name:t,primaryName:a}=s(e.fides_key);return{value:e.fides_key,name:t,primaryName:a,description:e.description||""}});return(0,i.jsx)(l.l,{options:d,...o})}},79283:function(e,t,a){"use strict";a.d(t,{l:function(){return r}});var i=a(24246),l=a(56351),n=a(72707),o=a.n(n);let s=e=>{let{data:t}=e;return(0,i.jsxs)(l.jqI,{gap:12,title:"".concat(t.primaryName||"").concat(t.primaryName?": ":"").concat(t.name," - ").concat(t.description),children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("strong",{children:t.primaryName||t.name}),t.primaryName&&": ".concat(t.name)]}),(0,i.jsx)("em",{children:t.description})]})},r=e=>{let{options:t,...a}=e,n=null==t?void 0:t.map(e=>({...e,className:o().option}));return(0,i.jsx)(l.WPr,{options:n,autoFocus:!0,variant:"borderless",optionRender:s,dropdownStyle:{minWidth:"500px"},className:"w-full p-0","data-testid":"taxonomy-select",...a})}},34929:function(e,t,a){"use strict";var i=a(24246),l=a(64925),n=a.n(l),o=a(27378),s=a(16134),r=a(30002),d=a(28079),c=a(57072);let u=()=>{let{isLoading:e}=(0,d.fd)(),t=(0,s.C)(d.U3),{isLoading:a}=(0,c.MO)(),i=(0,s.C)(c.qb),{isLoading:l}=(0,r.te)();return{dataUses:t,dataSubjects:(0,s.C)(r.ZL),dataCategories:i,isLoading:e||a||l}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:a,isLoading:l}=u(),s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},r=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=t(e);if(!i)return{};let l=t(s(e,a)),n=!!i.parent_key;return{name:i.name||void 0,primaryName:n&&(null==l?void 0:l.name)!==i.name&&(null==l?void 0:l.name)||void 0}},d=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:l,primaryName:n}=r(e,t,a);return l?n?(0,i.jsxs)(o.Fragment,{children:[(0,i.jsxs)("strong",{children:[n,":"]})," ",l]},e):(0,i.jsx)("strong",{children:l},e):e},c=t=>n()(e,{fides_key:t}),m=e=>n()(t,{fides_key:e}),f=e=>n()(a,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:c,getDataUseDisplayName:e=>d(e,c,1),getDataUseDisplayNameProps:e=>r(e,c,1),getDataCategories:()=>t,getDataCategoryByKey:m,getDataCategoryDisplayName:e=>d(e,m,2),getDataCategoryDisplayNameProps:e=>r(e,m,2),getDataSubjects:()=>a,getDataSubjectByKey:f,getDataSubjectDisplayName:e=>{let t=f(e);return t?t.name:e},getPrimaryKey:s,isLoading:l}}},66112:function(e,t,a){"use strict";var i=a(24246),l=a(56351),n=a(27378),o=a(12627),s=a(34929),r=a(26183);t.Z=e=>{let{selectedTaxonomies:t,onAddTaxonomy:a,onRemoveTaxonomy:d}=e,[c,u]=(0,n.useState)(!1),{getDataCategoryDisplayName:m}=(0,s.Z)();return(0,i.jsxs)(r.Z,{children:[t.map(e=>(0,i.jsx)(l.j8w,{"data-testid":"classification-".concat(e),color:"white",closable:!0,onClose:()=>d(e),closeButtonLabel:"Remove category",children:m(e)},e)),(0,i.jsx)(l.j8w,{onClick:()=>u(!0),"data-testid":"add-category-btn",addable:!0,"aria-label":"Add category"}),c&&(0,i.jsx)(l.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,i.jsx)(o.Z,{selectedTaxonomies:t,onChange:e=>{u(!1),a(e)},onBlur:()=>u(!1),open:c})})]})}},26183:function(e,t,a){"use strict";var i=a(24246);a(27378),t.Z=e=>{let{children:t,className:a,...l}=e;return(0,i.jsx)("div",{className:"relative flex w-full flex-wrap items-center gap-2 overflow-x-auto py-2 ".concat(a||""),...l,children:t})}},76252:function(e,t,a){"use strict";var i=a(24246),l=a(56351),n=a(30454),o=a.n(n),s=a(47215),r=a.n(s),d=a(90271),c=a.n(d),u=a(79806),m=a(20386),f=a(63927),p=a(69435);t.Z=e=>{let{field:t,isOpen:a,onClose:n,dataset:s,collectionName:d,subfields:g}=e,[h]=(0,m.TG)(),{isOpen:x,onOpen:v,onClose:j}=(0,l.qY0)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.ZP,{isOpen:a,onClose:n,description:"Fields are an array of objects that describe the collection's fields. Provide additional context to this field by filling out the fields below.",header:(0,i.jsx)(u.zR,{title:"Field Name: ".concat(null==t?void 0:t.name)}),footer:(0,i.jsx)(u.Gn,{onClose:n,onDelete:v,formId:f.e}),children:(0,i.jsx)(f.Z,{values:t,onSubmit:e=>{let a=(0,p.Fk)({dataset:s,collectionName:d,subfields:g?[...g,(null==t?void 0:t.name)||""]:[(null==t?void 0:t.name)||""]}),i={...t,...e},l=o()(s);r()(l,a,i),h(l),n()},dataType:"field"})}),(0,i.jsx)(l.cVQ,{isOpen:x,onClose:j,onConfirm:()=>{let e=(0,p.Fk)({dataset:s,collectionName:d,subfields:g}),a=o()(s);c()(a,e,e=>({...e,fields:e.fields.filter(e=>e.name!==(null==t?void 0:t.name))})),h(a),n(),j()},title:"Delete Field",message:(0,i.jsxs)(l.xvT,{children:["You are about to permanently delete the field named"," ",(0,i.jsx)(l.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==t?void 0:t.name})," ","from this dataset. Are you sure you would like to continue?"]})})]})}},26052:function(e,t,a){"use strict";a.r(t);var i=a(24246),l=a(92222),n=a(59003),o=a(56351),s=a(30454),r=a.n(s),d=a(47215),c=a.n(d),u=a(86677),m=a(27378),f=a(77213),p=a(77830),g=a(58754),h=a(14481),x=a(66112),v=a(69828),j=a(41966),y=a(76252),b=a(69435);let C=(0,l.Cl)(),w=()=>(0,i.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,i.jsx)(o.gCW,{children:(0,i.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No fields found."})})});t.default=()=>{let e=(0,u.useRouter)(),[t]=(0,j.TG)(),a=decodeURIComponent(e.query.datasetId),s=decodeURIComponent(e.query.collectionName),d=e.query.subfieldNames.map(decodeURIComponent),{isLoading:N,data:_}=(0,j.oM)(a),k=(0,m.useMemo)(()=>(null==_?void 0:_.collections)||[],[_]).find(e=>e.name===s),R=(0,m.useMemo)(()=>(null==k?void 0:k.fields)||[],[k]),D=(0,m.useMemo)(()=>{let e=R;return d.forEach(t=>{let a=e.find(e=>e.name===t);e=(null==a?void 0:a.fields)||[]}),e},[R,d]),[Z,F]=(0,m.useState)(),T=(0,m.useCallback)(e=>{let{dataCategory:a,field:i}=e,l=i.data_categories||[],n=(0,b.Fk)({dataset:_,collectionName:s,subfields:[...d,i.name]}),o=r()(_);c()(o,"".concat(n,".data_categories"),[...l,a]),t(o)},[_,t,s,d]),I=(0,m.useCallback)(e=>{let{dataCategory:a,field:i}=e,l=i.data_categories||[],n=(0,b.Fk)({dataset:_,collectionName:s,subfields:[...d,null==i?void 0:i.name]}),o=r()(_);c()(o,"".concat(n,".data_categories"),l.filter(e=>e!==a)),t(o)},[_,t,s,d]),S=(0,m.useCallback)(t=>{let i=[...d.map(encodeURIComponent),t.name];e.push({pathname:p.y1,query:{datasetId:a,collectionName:s,subfieldNames:i}})},[a,e,s,d]),M=(0,m.useMemo)(()=>[C.accessor(e=>e.name,{id:"name",cell:e=>{var t;let a=e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0;return(0,i.jsx)(h.G3,{fontWeight:a?"semibold":"normal",value:e.getValue()})},header:e=>(0,i.jsx)(h.Rr,{value:"Field Name",...e}),size:180}),C.accessor(e=>{var t;return null===(t=e.fides_meta)||void 0===t?void 0:t.data_type},{id:"type",cell:e=>e.getValue()?(0,i.jsx)(h.A4,{value:e.getValue()}):(0,i.jsx)(h.G3,{value:void 0}),header:e=>(0,i.jsx)(h.Rr,{value:"Type",...e}),size:80}),C.accessor(e=>e.description,{id:"description",cell:e=>(0,i.jsx)(h.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,i.jsx)(h.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),C.accessor(e=>e.data_categories,{id:"data_categories",cell:e=>{var t;let a=e.row.original;return!(e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0)&&(0,i.jsx)(x.Z,{selectedTaxonomies:e.getValue()||[],onAddTaxonomy:e=>T({dataCategory:e,field:a}),onRemoveTaxonomy:e=>I({dataCategory:e,field:a})})},header:e=>(0,i.jsx)(h.Rr,{value:"Data categories",...e}),size:300,meta:{disableRowClick:!0}}),C.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,a=t.original;return(0,i.jsx)(o.Ugi,{spacing:0,"data-testid":"field-".concat(a.name),children:(0,i.jsx)(o.wpx,{size:"small",icon:(0,i.jsx)(o.dY8,{}),onClick:()=>{E(a),L(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[T,I]),q=(0,m.useMemo)(()=>Z?D.filter(e=>e.name.toLowerCase().includes(Z.toLowerCase())):D,[D,Z]),U=(0,n.b7)({getCoreRowModel:(0,l.sC)(),getFilteredRowModel:(0,l.vL)(),getSortedRowModel:(0,l.tj)(),columns:M,data:q,columnResizeMode:"onChange"}),[z,L]=(0,m.useState)(!1),[O,E]=(0,m.useState)(),P=(0,m.useMemo)(()=>{let e=[{title:"All datasets",href:p.$m},{title:a,href:{pathname:p.o5,query:{datasetId:a}},icon:v.Y[1]},{title:s,icon:v.Y[2],href:{pathname:p.RF,query:{datasetId:a,collectionName:s}}}];return d.forEach((t,i)=>{e.push({title:t,href:i<d.length-1?{pathname:p.y1,query:{datasetId:a,collectionName:s,subfieldNames:d.slice(0,i+1).map(encodeURIComponent)}}:void 0,icon:v.Y[3]})}),e},[a,s,d]);return(0,i.jsxs)(f.Z,{title:"Dataset - ".concat(a),children:[(0,i.jsx)(g.Z,{heading:"Datasets",breadcrumbItems:P}),N?(0,i.jsx)(h.I4,{rowHeight:36,numRows:15}):(0,i.jsxs)(o.xuv,{"data-testid":"fields-table",children:[(0,i.jsx)(h.Q$,{children:(0,i.jsx)(h.HO,{globalFilter:Z,setGlobalFilter:F,placeholder:"Search",testid:"fields-search"})}),(0,i.jsx)(h.ZK,{tableInstance:U,emptyTableNotice:(0,i.jsx)(w,{}),onRowClick:S,getRowIsClickable:e=>{var t;return!!(e.fields&&(null===(t=e.fields)||void 0===t?void 0:t.length)>0)}}),(0,i.jsx)(y.Z,{isOpen:z,onClose:()=>{L(!1),E(void 0)},field:O,dataset:_,collectionName:s,subfields:d})]})]})}},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}}},function(e){e.O(0,[8033,2780,2858,2866,9278,1995,4481,5487,2888,9774,179],function(){return e(e.s=16383)}),_N_E=e.O()}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6556],{59972:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]/[collectionName]",function(){return a(47355)}])},12627:function(e,t,a){"use strict";var i=a(24246),n=a(79283),l=a(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:a=!1,...o}=e,{getDataCategoryDisplayNameProps:s,getDataCategories:r}=(0,l.Z)(),d=(a?r():r().filter(e=>e.active)).filter(e=>!t.includes(e.fides_key)).map(e=>{let{name:t,primaryName:a}=s(e.fides_key);return{value:e.fides_key,name:t,primaryName:a,description:e.description||""}});return(0,i.jsx)(n.l,{options:d,...o})}},79283:function(e,t,a){"use strict";a.d(t,{l:function(){return r}});var i=a(24246),n=a(56351),l=a(72707),o=a.n(l);let s=e=>{let{data:t}=e;return(0,i.jsxs)(n.jqI,{gap:12,title:"".concat(t.primaryName||"").concat(t.primaryName?": ":"").concat(t.name," - ").concat(t.description),children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("strong",{children:t.primaryName||t.name}),t.primaryName&&": ".concat(t.name)]}),(0,i.jsx)("em",{children:t.description})]})},r=e=>{let{options:t,...a}=e,l=null==t?void 0:t.map(e=>({...e,className:o().option}));return(0,i.jsx)(n.WPr,{options:l,autoFocus:!0,variant:"borderless",optionRender:s,dropdownStyle:{minWidth:"500px"},className:"w-full p-0","data-testid":"taxonomy-select",...a})}},34929:function(e,t,a){"use strict";var i=a(24246),n=a(64925),l=a.n(n),o=a(27378),s=a(16134),r=a(30002),d=a(28079),c=a(57072);let u=()=>{let{isLoading:e}=(0,d.fd)(),t=(0,s.C)(d.U3),{isLoading:a}=(0,c.MO)(),i=(0,s.C)(c.qb),{isLoading:n}=(0,r.te)();return{dataUses:t,dataSubjects:(0,s.C)(r.ZL),dataCategories:i,isLoading:e||a||n}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:a,isLoading:n}=u(),s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},r=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=t(e);if(!i)return{};let n=t(s(e,a)),l=!!i.parent_key;return{name:i.name||void 0,primaryName:l&&(null==n?void 0:n.name)!==i.name&&(null==n?void 0:n.name)||void 0}},d=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:n,primaryName:l}=r(e,t,a);return n?l?(0,i.jsxs)(o.Fragment,{children:[(0,i.jsxs)("strong",{children:[l,":"]})," ",n]},e):(0,i.jsx)("strong",{children:n},e):e},c=t=>l()(e,{fides_key:t}),m=e=>l()(t,{fides_key:e}),f=e=>l()(a,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:c,getDataUseDisplayName:e=>d(e,c,1),getDataUseDisplayNameProps:e=>r(e,c,1),getDataCategories:()=>t,getDataCategoryByKey:m,getDataCategoryDisplayName:e=>d(e,m,2),getDataCategoryDisplayNameProps:e=>r(e,m,2),getDataSubjects:()=>a,getDataSubjectByKey:f,getDataSubjectDisplayName:e=>{let t=f(e);return t?t.name:e},getPrimaryKey:s,isLoading:n}}},66112:function(e,t,a){"use strict";var i=a(24246),n=a(56351),l=a(27378),o=a(12627),s=a(34929),r=a(26183);t.Z=e=>{let{selectedTaxonomies:t,onAddTaxonomy:a,onRemoveTaxonomy:d}=e,[c,u]=(0,l.useState)(!1),{getDataCategoryDisplayName:m}=(0,s.Z)();return(0,i.jsxs)(r.Z,{children:[t.map(e=>(0,i.jsx)(n.j8w,{"data-testid":"classification-".concat(e),color:"white",closable:!0,onClose:()=>d(e),closeButtonLabel:"Remove category",children:m(e)},e)),(0,i.jsx)(n.j8w,{onClick:()=>u(!0),"data-testid":"add-category-btn",addable:!0,"aria-label":"Add category"}),c&&(0,i.jsx)(n.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,i.jsx)(o.Z,{selectedTaxonomies:t,onChange:e=>{u(!1),a(e)},onBlur:()=>u(!1),open:c})})]})}},26183:function(e,t,a){"use strict";var i=a(24246);a(27378),t.Z=e=>{let{children:t,className:a,...n}=e;return(0,i.jsx)("div",{className:"relative flex w-full flex-wrap items-center gap-2 overflow-x-auto py-2 ".concat(a||""),...n,children:t})}},76252:function(e,t,a){"use strict";var i=a(24246),n=a(56351),l=a(30454),o=a.n(l),s=a(47215),r=a.n(s),d=a(90271),c=a.n(d),u=a(79806),m=a(20386),f=a(63927),p=a(69435);t.Z=e=>{let{field:t,isOpen:a,onClose:l,dataset:s,collectionName:d,subfields:g}=e,[x]=(0,m.TG)(),{isOpen:h,onOpen:v,onClose:j}=(0,n.qY0)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.ZP,{isOpen:a,onClose:l,description:"Fields are an array of objects that describe the collection's fields. Provide additional context to this field by filling out the fields below.",header:(0,i.jsx)(u.zR,{title:"Field Name: ".concat(null==t?void 0:t.name)}),footer:(0,i.jsx)(u.Gn,{onClose:l,onDelete:v,formId:f.e}),children:(0,i.jsx)(f.Z,{values:t,onSubmit:e=>{let a=(0,p.Fk)({dataset:s,collectionName:d,subfields:g?[...g,(null==t?void 0:t.name)||""]:[(null==t?void 0:t.name)||""]}),i={...t,...e},n=o()(s);r()(n,a,i),x(n),l()},dataType:"field"})}),(0,i.jsx)(n.cVQ,{isOpen:h,onClose:j,onConfirm:()=>{let e=(0,p.Fk)({dataset:s,collectionName:d,subfields:g}),a=o()(s);c()(a,e,e=>({...e,fields:e.fields.filter(e=>e.name!==(null==t?void 0:t.name))})),x(a),l(),j()},title:"Delete Field",message:(0,i.jsxs)(n.xvT,{children:["You are about to permanently delete the field named"," ",(0,i.jsx)(n.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==t?void 0:t.name})," ","from this dataset. Are you sure you would like to continue?"]})})]})}},47355:function(e,t,a){"use strict";a.r(t);var i=a(24246),n=a(92222),l=a(59003),o=a(56351),s=a(86677),r=a(27378),d=a(77213),c=a(77830),u=a(58754),m=a(14481),f=a(66112),p=a(69828),g=a(41966),x=a(76252),h=a(69435);let v=(0,n.Cl)(),j=()=>(0,i.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,i.jsx)(o.gCW,{children:(0,i.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No fields found."})})});t.default=()=>{let e=(0,s.useRouter)(),[t]=(0,g.TG)(),a=decodeURIComponent(e.query.datasetId),y=decodeURIComponent(e.query.collectionName),{isLoading:b,data:C}=(0,g.oM)(a),w=(0,r.useMemo)(()=>(null==C?void 0:C.collections)||[],[C]),_=w.find(e=>e.name===y),N=(0,r.useMemo)(()=>(null==_?void 0:_.fields)||[],[_]),[R,k]=(0,r.useState)(),D=(0,r.useCallback)(e=>{let{dataCategory:a,field:i}=e,n=i.data_categories||[],l={...i,data_categories:[...n,a]},o=w.indexOf(_),s=_.fields.indexOf(i);t((0,h._n)(C,l,o,s))},[_,w,C,t]),Z=(0,r.useCallback)(e=>{var a;let{dataCategory:i,field:n}=e,l={...n,data_categories:null===(a=n.data_categories)||void 0===a?void 0:a.filter(e=>e!==i)},o=w.indexOf(_),s=_.fields.indexOf(n);t((0,h._n)(C,l,o,s))},[_,w,C,t]),I=(0,r.useCallback)(t=>{e.push({pathname:c.y1,query:{datasetId:encodeURIComponent(a),collectionName:encodeURIComponent(y),subfieldNames:encodeURIComponent(t.name)}})},[a,e,y]),T=(0,r.useMemo)(()=>[v.accessor(e=>e.name,{id:"name",cell:e=>{var t;let a=e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0;return(0,i.jsx)(m.G3,{fontWeight:a?"semibold":"normal",value:e.getValue()})},header:e=>(0,i.jsx)(m.Rr,{value:"Field Name",...e}),size:180}),v.accessor(e=>{var t;return null===(t=e.fides_meta)||void 0===t?void 0:t.data_type},{id:"type",cell:e=>e.getValue()?(0,i.jsx)(m.A4,{value:e.getValue()}):(0,i.jsx)(m.G3,{value:void 0}),header:e=>(0,i.jsx)(m.Rr,{value:"Type",...e}),size:80}),v.accessor(e=>e.description,{id:"description",cell:e=>(0,i.jsx)(m.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,i.jsx)(m.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),v.accessor(e=>e.data_categories,{id:"data_categories",cell:e=>{var t;let a=e.row.original;return!(e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0)&&(0,i.jsx)(f.Z,{selectedTaxonomies:e.getValue()||[],onAddTaxonomy:e=>D({dataCategory:e,field:a}),onRemoveTaxonomy:e=>Z({dataCategory:e,field:a})})},header:e=>(0,i.jsx)(m.Rr,{value:"Data categories",...e}),size:300,meta:{disableRowClick:!0}}),v.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,a=t.original;return(0,i.jsx)(o.Ugi,{spacing:0,"data-testid":"field-".concat(a.name),children:(0,i.jsx)(o.wpx,{size:"small",icon:(0,i.jsx)(o.dY8,{}),onClick:()=>{z(a),M(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[D,Z]),S=(0,r.useMemo)(()=>R?N.filter(e=>e.name.toLowerCase().includes(R.toLowerCase())):N,[N,R]),O=(0,l.b7)({getCoreRowModel:(0,n.sC)(),getFilteredRowModel:(0,n.vL)(),getSortedRowModel:(0,n.tj)(),columns:T,data:S,columnResizeMode:"onChange"}),[F,M]=(0,r.useState)(!1),[U,z]=(0,r.useState)(),L=(0,r.useMemo)(()=>[{title:"All datasets",href:c.$m},{title:a,href:{pathname:c.o5,query:{datasetId:a}},icon:p.Y[1]},{title:y,icon:p.Y[2]}],[a,y]);return(0,i.jsxs)(d.Z,{title:"Dataset - ".concat(a),children:[(0,i.jsx)(u.Z,{heading:"Datasets",breadcrumbItems:L}),b?(0,i.jsx)(m.I4,{rowHeight:36,numRows:15}):(0,i.jsxs)(o.xuv,{"data-testid":"fields-table",children:[(0,i.jsx)(m.Q$,{children:(0,i.jsx)(m.HO,{globalFilter:R,setGlobalFilter:k,placeholder:"Search",testid:"fields-search"})}),(0,i.jsx)(m.ZK,{tableInstance:O,emptyTableNotice:(0,i.jsx)(j,{}),onRowClick:I,getRowIsClickable:e=>{var t;return!!(e.fields&&(null===(t=e.fields)||void 0===t?void 0:t.length)>0)}}),(0,i.jsx)(x.Z,{isOpen:F,onClose:()=>{M(!1),z(void 0)},field:U,dataset:C,collectionName:y})]})]})}},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}}},function(e){e.O(0,[8033,2780,2858,2866,9278,1995,4481,5487,2888,9774,179],function(){return e(e.s=59972)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9340],{33187:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]",function(){return o(1016)}])},1016:function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return y}});var l=o(24246),n=o(92222),s=o(59003),i=o(
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9340],{33187:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]",function(){return o(1016)}])},1016:function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return y}});var l=o(24246),n=o(92222),s=o(59003),i=o(56351),a=o(86677),c=o(27378),d=o(77213),r=o(77830),u=o(58754),m=o(14481),h=o(69828),x=o(41966),p=o(46628),j=o(79806),f=o(20386),C=o(63927),g=o(69435),w=e=>{let{dataset:t,collection:o,isOpen:n,onClose:s}=e,a=(0,c.useMemo)(()=>null==t?void 0:t.collections.indexOf(o),[]),[d]=(0,f.TG)(),r=(0,i.pmc)(),{isOpen:u,onOpen:m,onClose:h}=(0,i.qY0)(),x=async e=>{let l={...o,...e},n=(0,g.jC)(t,l,a);try{await d(n),r((0,p.t5)("Successfully modified collection"))}catch(e){r((0,p.Vo)(e))}s()},w=async()=>{if(t&&void 0!==a){let e=(0,g.qe)(t,a);try{await d(e),r((0,p.t5)("Successfully deleted collection"))}catch(e){r((0,p.Vo)(e))}s(),h()}};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(j.ZP,{isOpen:n,onClose:s,description:"Collections are an array of objects that describe the Dataset's collections. Provide additional context to this collection by filling out the fields below.",header:(0,l.jsx)(j.zR,{title:"Collection Name: ".concat(null==o?void 0:o.name)}),footer:(0,l.jsx)(j.Gn,{onClose:s,onDelete:m,formId:C.e}),children:(0,l.jsx)(C.Z,{values:o,onSubmit:x,dataType:"collection",showDataCategories:!1})}),(0,l.jsx)(i.cVQ,{isOpen:u,onClose:h,onConfirm:w,title:"Delete Collection",message:(0,l.jsxs)(i.xvT,{children:["You are about to permanently delete the collection named"," ",(0,l.jsx)(i.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==o?void 0:o.name})," ","from this dataset. Are you sure you would like to continue?"]})})]})};let b=(0,n.Cl)(),v=()=>(0,l.jsx)(i.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,l.jsx)(i.gCW,{children:(0,l.jsx)(i.xvT,{fontSize:"md",fontWeight:"600",children:"No collections found."})})});var y=()=>{let e=(0,a.useRouter)(),t=decodeURIComponent(e.query.datasetId),{isLoading:o,data:p}=(0,x.oM)(t),j=(0,c.useMemo)(()=>(null==p?void 0:p.collections)||[],[p]),[f,C]=(0,c.useState)(!1),[g,y]=(0,c.useState)(),[R,_]=(0,c.useState)(),M=(0,c.useMemo)(()=>[b.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(m.G3,{value:e.getValue(),fontWeight:"semibold"}),header:e=>(0,l.jsx)(m.Rr,{value:"Collection Name",...e}),size:180}),b.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(m.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(m.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),b.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,o=t.original;return(0,l.jsx)(i.Ugi,{spacing:0,"data-testid":"collection-".concat(o.name),children:(0,l.jsx)(i.wpx,{size:"small",icon:(0,l.jsx)(i.dY8,{}),onClick:()=>{y(o),C(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[]),I=(0,c.useMemo)(()=>R?j.filter(e=>e.name.toLowerCase().includes(R.toLowerCase())):j,[j,R]),N=(0,s.b7)({getCoreRowModel:(0,n.sC)(),getFilteredRowModel:(0,n.vL)(),getSortedRowModel:(0,n.tj)(),columns:M,data:I,columnResizeMode:"onChange"}),S=(0,c.useMemo)(()=>[{title:"All datasets",href:r.$m},{title:t,icon:h.Y[1]}],[t]);return(0,l.jsxs)(d.Z,{title:"Dataset - ".concat(t),children:[(0,l.jsx)(u.Z,{heading:"Datasets",breadcrumbItems:S}),o?(0,l.jsx)(m.I4,{rowHeight:36,numRows:15}):(0,l.jsxs)(i.xuv,{"data-testid":"collections-table",children:[(0,l.jsx)(m.Q$,{children:(0,l.jsx)(m.HO,{globalFilter:R,setGlobalFilter:_,placeholder:"Search",testid:"collections-search"})}),(0,l.jsx)(m.ZK,{tableInstance:N,emptyTableNotice:(0,l.jsx)(v,{}),onRowClick:o=>{e.push({pathname:r.RF,query:{datasetId:encodeURIComponent(t),collectionName:encodeURIComponent(o.name)}})}})]}),p&&g&&(0,l.jsx)(w,{dataset:p,collection:g,isOpen:f,onClose:()=>C(!1)})]})}}},function(e){e.O(0,[8033,2780,9729,4481,5487,2888,9774,179],function(){return e(e.s=33187)}),_N_E=e.O()}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8538],{73846:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/new",function(){return a(17294)}])},812:function(e,t,a){"use strict";a.d(t,{D4:function(){return s.D4},MM:function(){return f},Ot:function(){return u},c6:function(){return r},cj:function(){return g},e$:function(){return l},fn:function(){return o},iC:function(){return y},nU:function(){return d},tB:function(){return c}});var n,r,s=a(19043);let i="An unexpected error occurred. Please try again.",l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if((0,s.Bw)(e)){if((0,s.hE)(e.data))return e.data.detail;if((0,s.cz)(e.data)){var a;let t=null===(a=e.data.detail)||void 0===a?void 0:a[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,s.Dy)(e.data)||404===e.status&&(0,s.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function o(e){return"object"==typeof e&&null!=e&&"status"in e}function u(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:i};if((0,s.oK)(e))return{status:e.originalStatus,message:e.data};if((0,s.Bw)(e)){let{status:a}=e;return{status:a,message:l(e,t.message)}}return t},f=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(n=r||(r={})).GVL="gvl",n.AC="gacp",n.COMPASS="compass";let y={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},g=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},14047:function(e,t,a){"use strict";a.d(t,{H:function(){return s},V:function(){return n.V}});var n=a(84306),r=a(812);let s=()=>{let{errorAlert:e}=(0,n.V)();return{handleError:t=>{let a="An unexpected error occurred. Please try again.";(0,r.Ot)(t)?a=t.data.detail:(0,r.tB)(t)&&(a=t.data.detail[0].msg),e(a)}}}},58452:function(e,t,a){"use strict";var n=a(24246),r=a(56351);t.Z=e=>{let{isOpen:t,onClose:a,onConfirm:s,onCancel:i,title:l,message:o,cancelButtonText:u,continueButtonText:c,isLoading:d,returnFocusOnClose:f,isCentered:y,testId:g="confirmation-modal",icon:h}=e;return(0,n.jsxs)(r.u_l,{isOpen:t,onClose:a,size:"lg",returnFocusOnClose:null==f||f,isCentered:y,children:[(0,n.jsx)(r.ZAr,{}),(0,n.jsxs)(r.hzk,{textAlign:"center",p:6,"data-testid":g,children:[h?(0,n.jsx)(r.M5Y,{mb:2,children:h}):null,l?(0,n.jsx)(r.xBx,{fontWeight:"medium",pb:0,children:l}):null,o?(0,n.jsx)(r.fef,{children:o}):null,(0,n.jsx)(r.mzw,{children:(0,n.jsxs)(r.MIq,{columns:2,width:"100%",children:[(0,n.jsx)(r.wpx,{onClick:()=>{i&&i(),a()},size:"large",className:"mr-3","data-testid":"cancel-btn",disabled:d,children:u||"Cancel"}),(0,n.jsx)(r.wpx,{type:"primary",size:"large",onClick:s,"data-testid":"continue-btn",loading:d,children:c||"Continue"})]})})]})]})}},46628:function(e,t,a){"use strict";a.d(t,{MA:function(){return l},Vo:function(){return u},t5:function(){return o}});var n=a(24246),r=a(56351);let s=e=>{let{children:t,title:a="Success"}=e;return(0,n.jsxs)(r.xvT,{"data-testid":"toast-success-msg",children:[(0,n.jsxs)("strong",{children:[a,":"]})," ",t]})},i=e=>{let{children:t}=e;return(0,n.jsxs)(r.xvT,{"data-testid":"toast-error-msg",children:[(0,n.jsx)("strong",{children:"Error:"})," ",t]})},l={variant:"subtle",position:"top",description:"",duration:5e3,status:"success",isClosable:!0},o=(e,t)=>{let a=(0,n.jsx)(s,{title:t,children:e});return{...l,description:a}},u=e=>{let t=(0,n.jsx)(i,{children:e});return{...l,description:t,status:"error"}}},17294:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return O}});var n=a(24246),r=a(56351),s=a(27378),i=a(25980),l=a(77213),o=a(77830),u=a(58754),c=a(91613),d=a(34090),f=a(86677),y=a(45007),g=a(59389),h=a(40324),m=a(812),p=a(58452),x=a(46628),b=a(83265),v=a(32885),j=a(21702),w=a(20386);let C=e=>!("system_type"in e),_={url:"",classify:!1,classifyConfirmed:!1},A=g.Ry().shape({url:g.Z_().required().label("Database URL"),classify:g.O7(),classifyConfirmed:g.O7().when(["url","classify"],{is:(e,t)=>e&&t,then:()=>g.O7().equals([!0])})});var D=()=>{let[e,{isLoading:t}]=(0,w.pR)(),[a,{isLoading:s}]=(0,w.IR)(),[l,{isLoading:u}]=(0,v.Du)(),c=t||s||u,g=(0,r.pmc)(),D=(0,f.useRouter)(),L=(0,i.hz)(),S=(0,y.I0)(),k=async t=>{var a;let n=await e({organization_key:b.Av,generate:{config:{connection_string:t.url},target:j.GC.DB,type:j.j.DATASETS}});if("error"in n)return{error:(0,m.e$)(n.error)};let r=(null!==(a=n.data.generate_results)&&void 0!==a?a:[]).filter(C);return r&&r.length>0?{datasets:r}:{error:"Unable to generate a dataset with this connection."}},N=async e=>{let t=await a(e);return"error"in t?{error:(0,m.e$)(t.error)}:{dataset:t.data}},E=async e=>{let{values:t,datasets:a}=e,n=await l({dataset_schemas:a.map(e=>{let{name:t,fides_key:a}=e;return{fides_key:a,name:t}}),schema_config:{organization_key:b.Av,generate:{config:{connection_string:t.url},target:j.GC.DB,type:j.j.DATASETS}}});return"error"in n?{error:(0,m.e$)(n.error)}:{classifyInstances:n.data.classify_instances}},O=async e=>{var t;let a=await k(e);if("error"in a){g((0,x.Vo)(a.error));return}let n=await Promise.all(a.datasets.map(e=>N(e))),r=null!==(t=n.find(e=>"error"in e))&&void 0!==t?t:n[0];if("error"in r){g((0,x.Vo)(r.error));return}if(!e.classify){g((0,x.t5)("Generated ".concat(r.dataset.name," dataset"))),D.push({pathname:o.o5,query:{datasetId:r.dataset.fides_key}});return}let s=await E({values:e,datasets:a.datasets});if("error"in s){g((0,x.Vo)(s.error));return}g((0,x.t5)("Generate and classify are now in progress")),S((0,w.Zl)(r.dataset.fides_key)),D.push("/dataset")};return(0,n.jsx)(d.J9,{initialValues:{..._,classify:L.plus},validationSchema:A,onSubmit:O,validateOnChange:!1,validateOnBlur:!1,children:e=>{let{isSubmitting:t,errors:a,values:s,submitForm:i,resetForm:l,setFieldValue:o}=e;return(0,n.jsxs)(d.l0,{children:[(0,n.jsxs)(r.gCW,{spacing:8,align:"left",children:[(0,n.jsx)(r.xvT,{size:"sm",color:"gray.700",children:"Connect to a database using the connection URL. You may have received this URL from a colleague or your Ethyca developer support engineer."}),(0,n.jsx)(r.xuv,{children:(0,n.jsx)(h.j0,{name:"url",label:"Database URL"})}),L.plus?(0,n.jsx)(h.w8,{name:"classify",label:"Classify dataset",tooltip:"Use Fides Classify to suggest labels based on your data."}):null,(0,n.jsx)(r.xuv,{children:(0,n.jsx)(r.wpx,{type:"primary",htmlType:"submit",loading:t||c,disabled:t||c,"data-testid":"create-dataset-btn",children:"Generate dataset"})})]}),(0,n.jsx)(p.Z,{title:"Generate and classify this dataset",message:"You have chosen to generate and classify this dataset. This process may take several minutes. In the meantime you can continue using Fides. You will receive a notification when the process is complete.",isOpen:void 0!==a.classifyConfirmed,onClose:()=>{l({values:{...s,classifyConfirmed:!1}})},onConfirm:()=>{o("classifyConfirmed",!0),setTimeout(()=>{i()},0)}})]})}})},L=a(66527),S=a(14047),k=a(41207),N=a(39715),E=()=>{let[e]=(0,w.IR)(),[t,a]=(0,s.useState)(!0),[i,l]=(0,s.useState)(!1),[u,c]=(0,s.useState)(!1),d=(0,s.useRef)(null),y=(0,f.useRouter)(),g=(0,r.pmc)(),{errorAlert:h}=(0,S.V)(),[p,b]=(0,s.useState)(void 0),v=e=>{L.ZP.load(e,{json:!0}),b(void 0)},j=async t=>{let a;return"object"==typeof t&&null!=t&&"dataset"in t&&Array.isArray(t.dataset)?[a]=t.dataset:Array.isArray(t)?[a]=t:a=t,e(a)},C=e=>{g((0,x.t5)("Successfully loaded new dataset YAML")),(0,w.Zl)(e.fides_key),y.push({pathname:o.o5,query:{datasetId:e.fides_key}})},_=async()=>{l(!0);let e=d.current.getValue(),t=L.ZP.load(e,{json:!0}),a=await j(t);(0,m.D4)(a)?g((0,x.Vo)((0,m.e$)(a.error))):"data"in a&&C(a.data),l(!1)};return(0,n.jsxs)(r.kCb,{gap:"97px",children:[(0,n.jsxs)(r.xuv,{w:"75%",children:[(0,n.jsx)(r.xuv,{color:"gray.700",fontSize:"14px",mb:4,children:"Get started creating your first dataset by pasting your dataset yaml below! You may have received this yaml from a colleague or your Ethyca developer support engineer."}),(0,n.jsxs)(r.gCW,{align:"stretch",children:[(0,n.jsx)(r.izJ,{color:"gray.100"}),(0,n.jsx)(k.M,{defaultLanguage:"yaml",height:"calc(100vh - 515px)",onChange:e=>{try{c(!0),v(e),a(!!(!e||""===e.trim()))}catch(e){(0,k.F)(e)?b(e):h("Could not parse the supplied YAML")}},onMount:e=>{d.current=e,d.current.focus()},options:{fontFamily:"Menlo",fontSize:13,minimap:{enabled:!0}},theme:"light"}),(0,n.jsx)(r.izJ,{color:"gray.100"}),(0,n.jsx)(r.wpx,{type:"primary",disabled:t||!!p||i,loading:i,onClick:_,htmlType:"submit",className:"mt-6 w-fit",children:"Create dataset"})]})]}),(0,n.jsx)(r.xuv,{children:u&&(t||p)&&(0,n.jsx)(N.Z,{isEmptyState:t,yamlError:p})})]})},O=()=>{let e=(0,i.hz)(),[t,a]=(0,s.useState)(null);return(0,n.jsxs)(l.Z,{title:"Create New Dataset",children:[(0,n.jsx)(u.Z,{heading:"Datasets",breadcrumbItems:[{title:"All datasets",href:o.$m},{title:"Create new"}]}),(0,n.jsxs)(r.Kqy,{spacing:8,children:[(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(r.wpx,{onClick:()=>a("yaml"),"data-testid":"upload-yaml-btn",className:"mr-2",children:"Upload a Dataset YAML"}),(0,n.jsx)(r.wpx,{onClick:()=>a("database"),ghost:"database"===t,disabled:e.flags.dataDiscoveryAndDetection,className:"mr-2","data-testid":"connect-db-btn",children:"Connect to a database"}),e.flags.dataDiscoveryAndDetection?(0,n.jsx)(c.Z,{label:"Creating a dataset via a database connection is disabled when the 'detection & discovery' beta feature is enabled"}):null]}),"database"===t&&(0,n.jsx)(r.xuv,{w:{base:"100%",lg:"50%"},children:(0,n.jsx)(D,{})}),"yaml"===t&&(0,n.jsx)(r.xuv,{w:{base:"100%"},children:(0,n.jsx)(E,{})})]})]})}},19043:function(e,t,a){"use strict";a.d(t,{Bw:function(){return i},D4:function(){return r},Dy:function(){return o},XD:function(){return u},cz:function(){return c},hE:function(){return l},oK:function(){return s}});var n=a(76649);let r=e=>"error"in e,s=e=>(0,n.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,i=e=>(0,n.Ln)({status:"number",data:{}},e),l=e=>(0,n.Ln)({detail:"string"},e),o=e=>(0,n.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),u=e=>(0,n.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,n.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)},76649:function(e,t,a){"use strict";a.d(t,{Ln:function(){return n}});let n=(e,t)=>s(e,t),r=Symbol("SOME"),s=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?r in e?e.some(e=>s(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>s(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,a])=>s(a,t[e]));class i{static narrow(e){return new i(t=>n(e,t))}constructor(e){this.NF=void 0,this.NF=e}satisfied(e){return this.NF(e)}build(e){return e}and(e){let t=this.NF,a=e instanceof i?e.NF:e instanceof Function?e:t=>n(e,t);return new i(e=>t(e)&&a(e))}}new i(e=>!0)}},function(e){e.O(0,[3005,5574,2888,9774,179],function(){return e(e.s=73846)}),_N_E=e.O()}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8473],{64902:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset",function(){return a(91949)}])},79806:function(e,t,a){"use strict";a.d(t,{Gn:function(){return o},zR:function(){return l}});var s=a(24246),i=a(56351),n=a(56358);let l=e=>{let{title:t}=e;return(0,s.jsx)(i.OXI,{py:0,display:"flex",alignItems:"flex-start",children:(0,s.jsx)(i.xvT,{mr:"2",color:"gray.700",fontSize:"lg",lineHeight:1.8,children:t})})},o=e=>{let{onDelete:t,onEditYaml:a,formId:l,isSaving:o}=e;return(0,s.jsxs)(i.zeN,{justifyContent:"space-between",children:[t?(0,s.jsx)(i.wpx,{"aria-label":"delete",icon:(0,s.jsx)(n.q,{fontSize:"small"}),onClick:t,"data-testid":"delete-btn"}):null,(0,s.jsxs)("div",{className:"flex gap-2",children:[a&&(0,s.jsx)(i.wpx,{onClick:a,"data-testid":"edit-yaml-btn",children:"Edit YAML"}),(0,s.jsx)(i.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",form:l,loading:o,children:"Save"})]})]})};t.ZP=e=>{let{header:t,description:a,isOpen:n,onClose:l,children:o,footer:d}=e;return(0,s.jsxs)(i.dys,{placement:"right",isOpen:n,onClose:l,size:"md",children:[(0,s.jsx)(i.P1B,{}),(0,s.jsxs)(i.scA,{"data-testid":"edit-drawer-content",py:2,children:[(0,s.jsxs)(i.xuv,{display:"flex",justifyContent:"space-between",alignItems:"top",mr:2,py:2,gap:2,children:[(0,s.jsx)(i.xuv,{flex:1,minH:8,children:t}),(0,s.jsx)(i.xuv,{display:"flex",justifyContent:"flex-end",mr:2,children:(0,s.jsx)(i.wpx,{"aria-label":"Close editor",onClick:l,"data-testid":"close-drawer-btn",icon:(0,s.jsx)(i.Two,{fontSize:"smaller"})})})]}),(0,s.jsxs)(i.Ng0,{pt:1,children:[a?(0,s.jsx)(i.xvT,{fontSize:"sm",mb:4,color:"gray.600",children:a}):null,o]}),d]})]})}},56358:function(e,t,a){"use strict";a.d(t,{q:function(){return i}});var s=a(24246);let i=(0,a(56351).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,s.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},8133:function(e,t,a){"use strict";var s=a(24246),i=a(56351);t.Z=e=>{let{title:t,children:a,isOpen:n,onClose:l,...o}=e;return(0,s.jsxs)(i.u_l,{isOpen:n,onClose:l,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...o,children:[(0,s.jsx)(i.ZAr,{}),(0,s.jsxs)(i.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",children:[(0,s.jsx)(i.xBx,{p:0,children:(0,s.jsx)(i.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,s.jsx)(i.X6q,{as:"h3",size:"sm",children:t})})}),(0,s.jsx)(i.fef,{pb:4,overflow:"auto",children:a})]})]})}},56026:function(e,t,a){"use strict";a.d(t,{QL:function(){return n},du:function(){return i},tz:function(){return s}});let s={name:{tooltip:"A UI-friendly label for the Dataset."},description:{tooltip:"A human-readable description of the Dataset."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to all collections in the Dataset."}},i={description:{tooltip:"A human-readable description of the collection."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to all fields in the collection."}},n={description:{tooltip:"A human-readable description of the field."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to this field."}}},91949:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return L}});var s=a(24246),i=a(92222),n=a(59003),l=a(56351),o=a(79894),d=a.n(o),r=a(86677),c=a(27378),u=a(45007),p=a(32885),x=a(21702);let h=e=>{let{resourceType:t,fidesKeys:a,skip:s}=e,[i,n]=(0,c.useState)(!0),l=(0,p.Wm)({resource_type:t,fides_keys:a},{skip:s,pollingInterval:i?3e3:void 0}),o=!!l.data&&l.data.every(e=>e.status===x.Wg.COMPLETE||e.status===x.Wg.FAILED||e.status===x.Wg.REVIEWED);return(0,c.useEffect)(()=>{o&&n(!1)},[o]),{...l,isClassificationFinished:o}};var f=a(25980),m=a(77213),g=a(77830),j=a(58754),C=a(14481),y=a(20386),b=a(79806),v=a(812),w=a(46628),k=a(8133),_=a(84306),S=a(66527),z=a(41207),A=a(39715),D=a(41966),R=e=>{let{data:t=[],isSubmitting:a=!1,onCancel:i,onSubmit:n,disabled:o,isLoading:d,onChange:r}=e,u=(0,c.useRef)(null),{errorAlert:p}=(0,_.V)(),x=t.length>0?S.ZP.dump(t):void 0,[h,f]=(0,c.useState)(void 0),[m,g]=(0,c.useState)(!1),[j,C]=(0,c.useState)(!x),{data:y}=(0,D.NR)(),[b,v]=(0,c.useState)([]),w=e=>{S.ZP.load(e,{json:!0}),f(void 0)},k=()=>{if(y&&y.length){let e=u.current.getValue();v(y.filter(t=>e.includes("fides_key: ".concat(t.fides_key,"\n"))).map(e=>e.fides_key))}},R=o||j||!m||!!h||a;return(0,s.jsxs)(l.kCb,{gap:"97px",children:[(0,s.jsxs)(l.gCW,{align:"stretch",w:"800px",children:[(0,s.jsx)(z.M,{defaultLanguage:"yaml",defaultValue:x,height:"calc(100vh - 526px)",onChange:e=>{try{g(!0),w(e),C(!e||""===e.trim());let t=S.ZP.load(e||"",{json:!0});Array.isArray(t)?r(t[0]):r(t),k()}catch(e){(0,z.F)(e)?f(e):p("Could not parse the supplied YAML")}},onMount:(e,t)=>{u.current=e,u.current.focus()},options:{fontFamily:"Menlo",fontSize:13,minimap:{enabled:!1},readOnly:o},theme:"light"}),b.length>0?(0,s.jsxs)(l.xvT,{children:["You are about to overwrite the dataset",b.length>1?"s":""," ",b.map((e,t)=>{let a=t===b.length-1;return(0,s.jsxs)(c.Fragment,{children:[(0,s.jsx)(l.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:e}),a?".":", "]},e)})]}):null,(0,s.jsx)(l.mzw,{children:(0,s.jsxs)("div",{className:"flex w-full justify-end gap-4",children:[i&&(0,s.jsx)(l.wpx,{onClick:i,"data-testid":"cancel-btn",disabled:d,children:"Cancel"}),(0,s.jsx)(l.wpx,{type:"primary",onClick:()=>{null==n||n(),null==i||i()},"data-testid":"continue-btn",disabled:R,loading:a||d,children:"Confirm"})]})})]}),m&&(j||h)&&(0,s.jsx)(A.Z,{isEmptyState:j,yamlError:h})]})},E=e=>{let{isOpen:t,onClose:a,title:i,isLoading:n,returnFocusOnClose:o,isDatasetSelected:d,dataset:r,onChange:c,onSubmit:u}=e;return(0,s.jsx)(k.Z,{isOpen:t,onClose:a,size:"3xl",returnFocusOnClose:null==o||o,isCentered:!0,title:null!=i?i:"Edit Dataset",children:(0,s.jsx)(l.xuv,{"data-testid":"yaml-editor-section",children:(0,s.jsx)(R,{data:r?[r]:[],onSubmit:u,isSubmitting:!1,disabled:d,onChange:c,isLoading:n,onCancel:a})})})},V=a(34090),H=a(40324),T=a(56026);let M="edit-field-drawer";var Z=e=>{var t,a;let{values:i,onSubmit:n}=e,o={name:null!==(t=i.name)&&void 0!==t?t:"",description:null!==(a=i.description)&&void 0!==a?a:"",data_categories:i.data_categories};return(0,s.jsx)(V.J9,{initialValues:o,onSubmit:e=>{n({...e,data_categories:i.data_categories||[]})},children:(0,s.jsx)(V.l0,{id:M,children:(0,s.jsxs)(l.Kqy,{spacing:"3",children:[(0,s.jsx)(H.j0,{name:"name",label:"Name",tooltip:T.tz.name.tooltip,"data-testid":"name-input",variant:"block"}),(0,s.jsx)(H.j0,{name:"description",label:"Description",tooltip:T.tz.description.tooltip,"data-testid":"description-input",variant:"block"})]})})})},O=e=>{let{dataset:t,isOpen:a,onClose:i}=e,[n,{isLoading:o}]=(0,y.TG)(),[d]=(0,y.QY)(),u=(0,r.useRouter)(),p=(0,l.pmc)(),{isOpen:x,onOpen:h,onClose:f}=(0,l.qY0)(),{isOpen:m,onOpen:g,onClose:j}=(0,l.qY0)(),[C,k]=(0,c.useState)(void 0),_=async e=>{let a={...t,...e};try{let e=await n(a);(0,v.D4)(e)?p((0,w.Vo)((0,v.e$)(e.error))):p((0,w.t5)("Successfully modified dataset"))}catch(e){p((0,w.Vo)(e))}i()},S=async()=>{let{fides_key:e}=t,a=await d(e);(0,v.D4)(a)?p((0,w.Vo)((0,v.e$)(a.error))):p((0,w.t5)("Successfully deleted dataset")),(0,y.Zl)(void 0),u.push("/dataset"),i(),f()};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(b.ZP,{isOpen:a,onClose:i,description:"A Dataset takes a database schema (tables and columns) and adds Fides privacy categorizations. Provide additional context to this dataset by filling out the fields below.",header:(0,s.jsx)(b.zR,{title:"Edit: ".concat(null==t?void 0:t.name)}),footer:(0,s.jsx)(b.Gn,{onClose:i,onDelete:h,onEditYaml:()=>g(),formId:M}),children:[(0,s.jsx)(E,{isOpen:m,onClose:j,onChange:k,onSubmit:()=>_(C),title:"Edit dataset YAML",isLoading:o,isDatasetSelected:!1,dataset:t}),(0,s.jsx)(Z,{values:t,onSubmit:_})]}),(0,s.jsx)(l.cVQ,{isOpen:x,onClose:f,onConfirm:S,title:"Delete Dataset",message:(0,s.jsxs)(l.xvT,{children:["You are about to permanently delete the dataset named"," ",(0,s.jsx)(l.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==t?void 0:t.name}),". Are you sure you would like to continue?"]})})]})};let P=(0,i.Cl)(),I={items:[],total:0,page:1,size:25,pages:1},N=()=>(0,s.jsx)(l.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,s.jsxs)(l.gCW,{children:[(0,s.jsx)(l.xvT,{fontSize:"md",fontWeight:"600",children:"No datasets found."}),(0,s.jsx)(l.xvT,{fontSize:"sm",children:'Click "Create new dataset" to add your first dataset to Fides.'})]})});var L=()=>{let e=(0,u.I0)(),t=(0,r.useRouter)(),[a,o]=(0,c.useState)(!1),[p,b]=(0,c.useState)(),{PAGE_SIZES:v,pageSize:w,setPageSize:k,onPreviousPageClick:_,isPreviousPageDisabled:S,onNextPageClick:z,isNextPageDisabled:A,startRange:D,endRange:R,pageIndex:E,setTotalPages:V,resetPageIndexToDefault:H}=(0,C.oi)(),[T,M]=(0,c.useState)(),Z=(0,c.useCallback)(e=>{H(),M(e)},[H,M]),{data:L,isLoading:W,isFetching:F}=(0,y.rt)({page:E,size:w,search:T,exclude_saas_datasets:!0}),{items:Y,total:q,pages:G}=(0,c.useMemo)(()=>null!=L?L:I,[L]);(0,c.useEffect)(()=>{V(G)},[G,V]);let B=(0,c.useCallback)(a=>{e((0,y.Zl)(a.fides_key)),t.push({pathname:g.o5,query:{datasetId:encodeURIComponent(a.fides_key)}})},[e,t]),Q=(0,f.hz)();h({resourceType:x.j.DATASETS,skip:!Q.plus});let U=(0,c.useMemo)(()=>[P.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(C.G3,{value:e.getValue(),fontWeight:"semibold"}),header:e=>(0,s.jsx)(C.Rr,{value:"Dataset Name",...e}),size:180}),P.accessor(e=>e.fides_key,{id:"fides_key",cell:e=>(0,s.jsx)(C.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(C.Rr,{value:"Fides Key",...e}),size:150}),P.accessor(e=>e.description,{id:"description",cell:e=>(0,s.jsx)(C.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,s.jsx)(C.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),P.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,a=t.original;return(0,s.jsx)(l.Ugi,{spacing:0,"data-testid":"dataset-".concat(a.fides_key),children:(0,s.jsx)(l.wpx,{size:"small",icon:(0,s.jsx)(l.dY8,{}),onClick:()=>{b(a),o(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})].filter(Boolean),[]),X=(0,n.b7)({getCoreRowModel:(0,i.sC)(),getFilteredRowModel:(0,i.vL)(),getSortedRowModel:(0,i.tj)(),columns:U,data:Y,columnResizeMode:"onChange"});return(0,s.jsx)(m.Z,{title:"Datasets",children:(0,s.jsxs)(l.xuv,{"data-testid":"system-management",children:[(0,s.jsx)(j.Z,{heading:"Datasets",breadcrumbItems:[{title:"All datasets"}],rightContent:(0,s.jsx)(d(),{href:"/dataset/new",passHref:!0,legacyBehavior:!0,children:(0,s.jsx)(l.wpx,{"data-testid":"create-dataset-btn",children:"+ Add dataset"})})}),W?(0,s.jsx)(C.I4,{rowHeight:36,numRows:15}):(0,s.jsxs)(l.xuv,{"data-testid":"dataset-table",children:[(0,s.jsx)(C.Q$,{children:(0,s.jsx)(C.HO,{globalFilter:T,setGlobalFilter:Z,placeholder:"Search",testid:"dataset-search"})}),(0,s.jsx)(C.ZK,{tableInstance:X,emptyTableNotice:(0,s.jsx)(N,{}),onRowClick:B})]}),(0,s.jsx)(C.s8,{totalRows:q||0,pageSizes:v,setPageSize:k,onPreviousPageClick:_,isPreviousPageDisabled:S||F,onNextPageClick:z,isNextPageDisabled:A||F,startRange:D,endRange:R}),(0,s.jsx)(O,{dataset:p,isOpen:a,onClose:()=>{b(void 0),o(!1)}})]})})}}},function(e){e.O(0,[8033,2780,3005,4481,5574,2888,9774,179],function(){return e(e.s=64902)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6446],{10463:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/datastore-connection/[id]",function(){return n(88228)}])},88228:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return w}});var i=n(24246),l=n(1226),s=n(
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6446],{10463:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/datastore-connection/[id]",function(){return n(88228)}])},88228:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return w}});var i=n(24246),l=n(1226),s=n(56351),a=n(86677),r=n(27378),o=n(16134),c=n(14047),u=n(77830),d=n(20682),f=n(94725),h=n(7617),x=n(58754),p=n(11274),v=n(26788),j=n(38212),y=n(50881),m=n(41337),_=()=>{let e=(0,o.T)(),{connection:t,connectionOption:n}=(0,o.C)(d.ZZ),[l,a]=(0,r.useState)(void 0),c=(0,r.useMemo)(()=>()=>{let e=[];return(null==l?void 0:l.options)&&l.options.forEach(n=>{let l;switch(n){case v.H5.CONNECTOR_PARAMETERS:l={label:n,content:(0,i.jsx)(p.s,{})};break;case v.H5.DATASET_CONFIGURATION:l=(null==t?void 0:t.key)?{label:n,content:(0,i.jsx)(j.Z,{})}:void 0;break;case v.H5.DSR_CUSTOMIZATION:l=(null==t?void 0:t.key)?{label:n,content:(0,i.jsx)(y.Z,{})}:void 0}l&&e.push(l)}),e},[null==t?void 0:t.key,null==l?void 0:l.options]);return(0,r.useEffect)(()=>{if(n){let t=v.IM.find(e=>e.type===(null==n?void 0:n.type));t&&(a(t),e((0,d.nj)(v.Ss[2])))}return()=>{e((0,d.mc)())}},[n,e]),t&&n?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.Z,{heading:"Connection manager",breadcrumbItems:[{title:"All connections",href:u.JR},{title:t.name}]}),(0,i.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",maxHeight:"40px",mb:"4px",whiteSpace:"nowrap",children:(0,i.jsxs)(s.xuv,{alignItems:"center",display:"flex",children:[(0,i.jsx)(m.Z,{data:n}),(0,i.jsx)(s.xvT,{ml:"8px",children:t.name})]})}),(0,i.jsx)(s.gCW,{alignItems:"stretch",flex:"1",gap:"18px",children:(0,i.jsx)(h.Z,{data:c(),flexGrow:1,isLazy:!0})})]}):null},g=n(21702),w=()=>{let e=(0,o.T)(),t=(0,a.useRouter)(),{id:n}=t.query,{errorAlert:h}=(0,c.V)(),x=(0,o.C)(d.y_),[p,v]=(0,r.useState)(!0),j=(e,t)=>t.find(t=>{var n;return t.identifier===e.connection_type&&t.identifier!==g.Rj.SAAS||t.identifier===(null===(n=e.saas_config)||void 0===n?void 0:n.type)});return(0,r.useEffect)(()=>{let i=()=>{h("An error occurred while loading ".concat(t.query.id)),t.push(u.JR,void 0,{shallow:!0})},l=async t=>{try{let n=[];n.push(e(f.DM.endpoints.getDatastoreConnectionByKey.initiate(t))),0===x.length&&n.push(e(d.d8.endpoints.getAllConnectionTypes.initiate({search:""})));let l=await Promise.allSettled(n);if(l.every(e=>"fulfilled"===e.status)){e((0,d.lm)(l[0].value.data));let t=[...l[1]?l[1].value.data.items:x],n=j(l[0].value.data,t);e((0,d.yA)(n)),v(!1)}else i()}catch(e){i()}};return n&&l(n),()=>{}},[n]),(0,i.jsxs)(i.Fragment,{children:[p&&(0,i.jsx)(s.xuv,{display:"flex",h:"100vh",justifyContent:"center",children:(0,i.jsx)(s.M5Y,{children:(0,i.jsx)(s.$jN,{})})}),!p&&(0,i.jsx)(l.Z,{children:(0,i.jsx)(_,{})})]})}}},function(e){e.O(0,[3005,5574,9767,2888,9774,179],function(){return e(e.s=10463)}),_N_E=e.O()}]);
|