ethyca-fides 2.62.1b0__py2.py3-none-any.whl → 2.62.1b2__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.62.1b0.dist-info → ethyca_fides-2.62.1b2.dist-info}/METADATA +1 -1
- {ethyca_fides-2.62.1b0.dist-info → ethyca_fides-2.62.1b2.dist-info}/RECORD +215 -211
- fides/_version.py +3 -3
- fides/api/alembic/migrations/versions/2263583b0e44_add_shared_monitor_config.py +82 -0
- fides/api/models/detection_discovery.py +66 -1
- fides/api/service/connectors/query_configs/saas_query_config.py +3 -8
- fides/api/service/connectors/saas_connector.py +7 -4
- fides/config/config_proxy.py +0 -1
- fides/config/execution_settings.py +0 -4
- fides/ui-build/static/admin/404.html +1 -1
- fides/ui-build/static/admin/_next/static/chunks/1327-da0303f70d12fb20.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/1817-d2543e460cec0dcb.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/1904-25e5d4f1b8146fb3.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{2310-0d63c66c2685e83c.js → 2310-6a5fb2f76f7b6491.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/3119-b5e40d8d24af1e79.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3426-77fccf2c9a5e10cd.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{3513-87b54d931698986f.js → 3513-293b1e54699cf3e7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3872-6b828cb00fb2ce93.js → 3872-99da5bb6140ff810.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/3923-c6dcaeaa3267f254.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/401-a882199f6c94a4dc.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4060-c657e58514e91e91.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4121-ec1d8faa3cf5783c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4481-9357e3930d35073b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5258-49e73e5998c01254.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{5487-62955c11bab63734.js → 5487-218e4847b8250fbb.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/5683-3d5c4194b1b1493e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5973-d776c0029db45971.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6277-db781b6c1dde3c84.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6853-348fe2ba132b400c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{6954-d02d474ba30756b2.js → 6954-04030a21a0c8cf5a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/7553-0f3e9e7eaf1a8b62.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/79-d877d3bde220da44.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/796-7424eb6391142ccd.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7980-041df432c4d3a68b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{9494-0df032fe6ee531a5.js → 9494-d1fd4fb83c3d4836.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/9767-f8ea7d0127f81294.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9965-92f4a28823a5e623.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{_app-371b155655c83a1e.js → _app-94950df9c97cd079.js} +69 -69
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-7d789458fb296270.js → manual-1292fd216f2839c7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-90320455052466cd.js → multiple-2ffc37614e9d1fa9.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-0234733a90ed5127.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-bcc515a765c0119d.js → add-vendors-c8033d6560635046.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure-2ba21b95aa3bb15e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-5ef03041a530b0e2.js → privacy-experience-fd71fb440dbe60e4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-5a63fc903408412e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-ffa15d7ff64a9f05.js → properties-5960170d492acb03.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-80bd51f8217edae4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/{[resourceUrn]-7ddf45ffd49533b0.js → [resourceUrn]-18e3faf7963962e4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-ecf23116a845188a.js → [projectUrn]-a10a0f3e6592f350.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-79f8e613827c55c1.js → projects-6971531bb09dff3a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/{[resourceUrn]-ed213bc1b7041aa2.js → [resourceUrn]-7320524a47104798.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{resources-1f033ca5a0702018.js → resources-51d99174c8006eb5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{data-catalog-e950d41b75f86c85.js → data-catalog-4dbc71d8be9765f3.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-67ddc090cf949af4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-07ff657ee49e5742.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-dbc8c95c22b9f2aa.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{activity-beedbc38ee2b0094.js → activity-db3853a09933097a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-f38b3ef885a29ea6.js → [resourceUrn]-4c526db0c30c488a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-29fd0d5a73f13a00.js → detection-6f27dbb7c8edc69d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-9a80241f1028c470.js → [resourceUrn]-562d2b8ae90dd1f0.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-c58333981b1522c9.js → discovery-fe7f51502eda57c9.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{datamap-2d6f95b2769a0936.js → datamap-3aaa99709d83a1f6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-3536ae978741b659.js → [...subfieldNames]-c08363922838022a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-8b5afe14cf42a4ac.js → [collectionName]-f12df2140e309dfb.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-b8dca4298b5bb085.js → [datasetId]-3f564c8d6cfb03d4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-157b00d23b651d12.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset-9d29dd6cf109891d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-ebf54ea9874c59ae.js → [id]-b078218865a8fd28.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-b01f89d250ff52af.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-9fc15228581786e6.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{index-868b60407eae35da.js → index-2e6ba5382358fcf8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-43abc599f0768331.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations-d69c9f1007e76046.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{messaging-5f41afae411cd8a4.js → messaging-71166bf207804754.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/table-migration-fec150afcfeb3fb5.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-2862630f0e9e484b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-35e58b5ed6b12b2b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-bb02092af39446da.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-6baa485385ce0678.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{properties-f00530710b699afd.js → properties-4a5e8ec41574c6b5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-707551df97d5eebd.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-e4df123bef1ff2b1.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-2fd6b0ff9b6741fc.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-3a829c53d5d723d2.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-0daa256958675a23.js → domain-records-92e8246170b492b5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/locations-4194ce716b81480d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-9404a6b0b2951992.js → organization-b235f961f9ca39a6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/{test-datasets-48be14ad09ed4133.js → test-datasets-99cd1a12ae0373b0.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-b03403fed4dd8805.js → [id]-01006a55ac873135.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{systems-ae591953b24e2fc9.js → systems-45990d85a4c5739b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-ec739e169cd5eafe.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/[id]-603c2bdbd8dc00ca.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management-592e497369673e1a.js +1 -0
- fides/ui-build/static/admin/_next/static/css/{c0c2eb63ad3e7390.css → 1b227ba7eabbfe2f.css} +1 -1
- fides/ui-build/static/admin/_next/static/css/5ded47c57dae5baf.css +1 -0
- fides/ui-build/static/admin/_next/static/ulYEH5vwbFjKDz3nI321R/_buildManifest.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/consent/configure/add-vendors.html +1 -1
- fides/ui-build/static/admin/consent/configure.html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
- fides/ui-build/static/admin/consent/properties.html +1 -1
- fides/ui-build/static/admin/consent/reporting.html +1 -1
- fides/ui-build/static/admin/consent.html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
- fides/ui-build/static/admin/data-catalog.html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
- fides/ui-build/static/admin/data-discovery/activity.html +1 -1
- fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-discovery/detection.html +1 -1
- fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
- fides/ui-build/static/admin/datamap.html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
- fides/ui-build/static/admin/dataset/new.html +1 -1
- fides/ui-build/static/admin/dataset.html +1 -1
- fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
- fides/ui-build/static/admin/datastore-connection/new.html +1 -1
- fides/ui-build/static/admin/datastore-connection.html +1 -1
- fides/ui-build/static/admin/index.html +1 -1
- fides/ui-build/static/admin/integrations/[id].html +1 -1
- fides/ui-build/static/admin/integrations.html +1 -1
- fides/ui-build/static/admin/lib/fides-ext-gpp.js +1 -1
- fides/ui-build/static/admin/lib/fides-headless.js +1 -1
- fides/ui-build/static/admin/lib/fides-preview.js +1 -1
- fides/ui-build/static/admin/lib/fides-tcf.js +2 -2
- fides/ui-build/static/admin/lib/fides.js +2 -2
- fides/ui-build/static/admin/login/[provider].html +1 -1
- fides/ui-build/static/admin/login.html +1 -1
- fides/ui-build/static/admin/messaging/[id].html +1 -1
- fides/ui-build/static/admin/messaging/add-template.html +1 -1
- fides/ui-build/static/admin/messaging.html +1 -1
- fides/ui-build/static/admin/poc/ant-components.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/AntForm.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikAntFormItem.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikControlled.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikField.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikSpreadField.html +1 -1
- fides/ui-build/static/admin/poc/forms.html +1 -1
- fides/ui-build/static/admin/poc/table-migration.html +1 -0
- 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/[configuration_id]/[purpose_id].html +1 -1
- fides/ui-build/static/admin/settings/consent.html +1 -1
- fides/ui-build/static/admin/settings/custom-fields.html +1 -1
- fides/ui-build/static/admin/settings/domain-records.html +1 -1
- fides/ui-build/static/admin/settings/domains.html +1 -1
- fides/ui-build/static/admin/settings/email-templates.html +1 -1
- fides/ui-build/static/admin/settings/locations.html +1 -1
- fides/ui-build/static/admin/settings/organization.html +1 -1
- fides/ui-build/static/admin/settings/regulations.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id].html +1 -1
- fides/ui-build/static/admin/systems.html +1 -1
- fides/ui-build/static/admin/taxonomy.html +1 -1
- fides/ui-build/static/admin/user-management/new.html +1 -1
- fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
- fides/ui-build/static/admin/user-management.html +1 -1
- fides/ui-build/static/admin/_next/static/chunks/1327-92a38135ee8d55ec.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1817-721fdeb29c07c6be.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1904-7e5354990377a849.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3119-e441b14cdab4320e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3426-e49cb4766324b2dd.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/355-e4340980d72b4faa.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4060-9593a3f98e600487.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4121-5c3af879cdd8b3be.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4481-8398edf74aabb8ea.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4723-4c3c7a375e998c15.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5258-e000d07844eccf7e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5626-1b636798faad78e1.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5683-44966a05fa5ad566.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5826-ce34f25ac2eeb807.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5973-56d90405c3616068.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6277-c35c8cc806f7571f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6853-0cee00c9da26a40e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/79-e5884e6878fc1bbb.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7980-e17dda2f50ec76b8.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9767-74320abc2e9a4550.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-a69f8946466471aa.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure-49b9f1b56262dfdc.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-12f3ba4609bc2ba5.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-b959d61c2a3682b3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-84ead584a88ab662.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-90f1975f559fff3e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-4b820a3173f35504.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-1e26702b1a7e0e12.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset-1f0c4e2e5d0b5bf6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-c39e8e2269883796.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-9db81467fa254996.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-ebc41649161f7fb9.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations-b89b9f68ccc69c1b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-928430cd40c35ef2.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-07ef58b04404479d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-595ed9f6ca438020.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-b3384299166bcd1e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-6a6016708efb5f4f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-ba15c12c89ee10f8.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-0f2daeec241bd1a2.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-0401208a3128fa4d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/locations-4fbab6716326060d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-913efe5371344de6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/[id]-dc11ba29dbd4708b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management-c0b2113b44f46112.js +0 -1
- fides/ui-build/static/admin/_next/static/css/b89fc4b36b501cf6.css +0 -1
- fides/ui-build/static/admin/_next/static/yjsK0CvslnuEmY5vNuxQ5/_buildManifest.js +0 -1
- {ethyca_fides-2.62.1b0.dist-info → ethyca_fides-2.62.1b2.dist-info}/WHEEL +0 -0
- {ethyca_fides-2.62.1b0.dist-info → ethyca_fides-2.62.1b2.dist-info}/entry_points.txt +0 -0
- {ethyca_fides-2.62.1b0.dist-info → ethyca_fides-2.62.1b2.dist-info}/licenses/LICENSE +0 -0
- {ethyca_fides-2.62.1b0.dist-info → ethyca_fides-2.62.1b2.dist-info}/top_level.txt +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{1099-98458e8e9ff67508.js → 1099-b652e6f9a0cd778b.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{1100-4106d99f5e1ebd75.js → 1100-e19e94b0a6486255.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{2921-ca04a0476e2e56c5.js → 2921-771dc5d9e95dc6b4.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{3505-e58b93f9c1cbdcad.js → 3505-313087fc1744a0ca.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{69-dc52e39d26a4ad14.js → 69-ef4c11c574b4e6dd.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{8433-a77c2cd1c1a6887e.js → 8433-755359b501d32eaa.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{8499-34a34015c91fc38b.js → 8499-06ab15acbfec037c.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{9327-a25347d72bfbe680.js → 9327-b691be8352e31b58.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/{404-c00773c4c6e930af.js → 404-e868487119cd14fc.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-d4137bb7fdc1ac6e.js → [id]-94391554a7607c5b.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-a5a95ac63b1ce206.js → [id]-596dd2a35b455f21.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-946ce1a2aa1500d4.js → new-fa7f0d2639e12a5a.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/{consent-7797e367dd946a18.js → consent-dd2a0e3b536b8b42.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{[id]-22812f08e81bd4f3.js → [id]-111b07344f1ee9e4.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{add-template-ca22869201847ccc.js → add-template-c41f368fb6b35de4.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/{ant-components-173bd3ad45ea61c6.js → ant-components-3dabaf6828acb2cb.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{AntForm-4dfe984ad80927cd.js → AntForm-784081c774042249.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikAntFormItem-f790e1ea5cbc26c0.js → FormikAntFormItem-63905f2382f158cd.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikControlled-af9e682ec620e990.js → FormikControlled-43f6eab28eae7b56.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikField-6ce407101daa6000.js → FormikField-e4a07abc908fc9b5.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/{forms-9ee8cf14a93eaa4a.js → forms-71a3bfb94280fc49.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-25a3add8e7982e43.js → configure-42213855a0a8c209.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-081f13526443e0a6.js → [id]-d547a1da0b74f00f.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-17fb474e458b63e7.js → add-property-a7de6f8409a76358.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{about-177919b4ccf8f660.js → about-704fc28e61b17247.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domains-26810d1ffedcd156.js → domains-f0e9ee8756a65540.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-eb78b645d0c1d4ea.js → email-templates-a4771098466af1ed.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-0a3aa951ef4a44ba.js → regulations-8cff97fe57f42ed3.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/user-management/{new-69176abe09cf9b52.js → new-b124cc24b930c9e1.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{webpack-abd3efcb23c0bb03.js → webpack-3a61b934ba2fb620.js} +0 -0
- /fides/ui-build/static/admin/_next/static/{yjsK0CvslnuEmY5vNuxQ5 → ulYEH5vwbFjKDz3nI321R}/_ssgManifest.js +0 -0
@@ -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,a=null==e?0:e.length;++n<a;)if(s(t,e[n]))return!0;return!1}},8817:function(e,t,s){var n=s(95372),a=s(1129),i=s(58263);e.exports=function(e,t,s){return t==t?i(e,t,s):n(e,a,s)}},1129:function(e){e.exports=function(e){return e!=e}},92198:function(e,t,s){var n=s(52485),a=s(58095),i=s(21796),o=s(65581),r=s(47111),l=s(43735);e.exports=function(e,t,s){var d=-1,c=a,u=e.length,g=!0,m=[],h=m;if(s)g=!1,c=i;else if(u>=200){var p=t?null:r(e);if(p)return l(p);g=!1,c=o,h=new n}else h=t?[]:m;e:for(;++d<u;){var y=e[d],v=t?t(y):y;if(y=s||0!==y?y:0,g&&v==v){for(var f=h.length;f--;)if(h[f]===v)continue e;t&&h.push(v),m.push(y)}else c(h,v,s)||(h!==m&&h.push(v),m.push(y))}return m}},47111:function(e,t,s){var n=s(46151),a=s(50344),i=s(43735),o=n&&1/i(new n([,-0]))[1]==1/0?function(e){return new n(e)}:a;e.exports=o},58263:function(e){e.exports=function(e,t,s){for(var n=s-1,a=e.length;++n<a;)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(52641)}])},14047:function(e,t,s){"use strict";s.d(t,{H:function(){return i},V:function(){return n.V}});var n=s(84306),a=s(812);let i=()=>{let{errorAlert:e}=(0,n.V)();return{handleError:t=>{let s="An unexpected error occurred. Please try again.";(0,a.Ot)(t)?s=t.data.detail:(0,a.tB)(t)&&(s=t.data.detail[0].msg),e(s)}}}},84306:function(e,t,s){"use strict";s.d(t,{V:function(){return i}});var n=s(24246),a=s(91942);let i=()=>{let e=(0,a.pmc)();return{errorAlert:(t,s,i)=>{let o={...i,position:(null==i?void 0:i.position)||"top",render:e=>{let{onClose:i}=e;return(0,n.jsxs)(a.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,n.jsx)(a.zMQ,{}),(0,n.jsxs)(a.xuv,{children:[s&&(0,n.jsx)(a.CdC,{children:s}),(0,n.jsx)(a.XaZ,{children:t})]}),(0,n.jsx)(a.PZ7,{onClick:i,position:"relative",right:0,size:"sm",top:-1})]})}};(null==i?void 0:i.id)&&e.isActive(i.id)?e.update(i.id,o):e(o)},successAlert:(t,s,i)=>{let o={...i,position:(null==i?void 0:i.position)||"top",render:e=>{let{onClose:i}=e;return(0,n.jsxs)(a.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,n.jsx)(a.zMQ,{}),(0,n.jsxs)(a.xuv,{children:[s&&(0,n.jsx)(a.CdC,{children:s}),(0,n.jsx)(a.XaZ,{children:t})]}),(0,n.jsx)(a.PZ7,{onClick:i,position:"relative",right:0,size:"sm",top:-1})]})}};(null==i?void 0:i.id)&&e.isActive(i.id)?e.update(i.id,o):e(o)}}}},45938:function(e,t,s){"use strict";s.d(t,{Gt:function(){return g},eB:function(){return m},oI:function(){return u}});var n=s(24246),a=s(34090),i=s(27378),o=s(16134),r=s(38602),l=s(58452);let d=(0,i.createRef)(),c=(0,i.createRef)(),u=()=>{let e=(0,o.T)(),t=(0,o.C)(r.DB),s=(0,i.useCallback)(()=>{c.current=void 0,d.current=void 0},[]),n=(0,i.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!0),s())},[e,s]),a=(0,i.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!1),s())},[e,s]);return{attemptAction:(0,i.useCallback)(()=>t?(e((0,r.h7)()),d.current||(d.current=new Promise(e=>{c.current=e})),d.current):Promise.resolve(!0),[t,e]),onConfirm:n,onClose:a}},g=e=>{let{id:t,name:s}=e,{dirty:n}=(0,a.u6)(),l=(0,o.T)();return(0,i.useEffect)(()=>(l((0,r.Zu)({id:t,name:s})),()=>{l((0,r.dz)({id:t}))}),[l,t,s]),(0,i.useEffect)(()=>{l((0,r.$p)({id:t,isDirty:n}))},[n,l,t]),null},m=()=>{let{onConfirm:e,onClose:t}=u(),s=(0,o.C)(r.uv);return(0,n.jsx)(l.Z,{isOpen:s,onClose:t,onConfirm:e,isCentered:!0,title:"Unsaved Changes",message:"You have unsaved changes"})}},52641:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return J}});var n=s(24246),a=s(86677),i=s(27378),o=s(35287),r=s(77830),l=s(58754),d=s(59003),c=s(92222),u=s(91942),g=s(83766),m=s.n(g),h=s(66379),p=s(812),y=s(14481),v=s(46628),f=s(37059),x=s(8133),j=s(79283),b=s(34929),C=s(78238),_=e=>{let{selectedTaxonomies:t,...s}=e,{getDataUseDisplayNameProps:a,getDataUses:i}=(0,b.Z)(),o=i().filter(e=>e.active&&C.g.includes(e.fides_key)).map(e=>{let{name:t,primaryName:s}=a(e.fides_key);return{value:e.fides_key,name:t,primaryName:s,description:e.description||""}});return(0,n.jsx)(j.l,{options:o,...s})};let{Text:w}=u.AntTypography;var k=e=>{let{onSave:t,isSaving:s,onClose:a,...o}=e,[r,l]=(0,i.useState)([]),d=()=>{l([]),a()};return(0,n.jsxs)(x.Z,{title:"Add consent category",...o,onClose:d,children:[(0,n.jsxs)(u.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,n.jsx)(w,{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)(_,{mode:"tags",selectedTaxonomies:r,onSelect:(e,t)=>l([...r,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:!r.length,loading:s,onClick:()=>{t(r),d()},"data-testid":"save-btn",children:"Save"})]})]})},S=s(90057),I=s(96107),R=s(61317),A=s(30952),P=s(29850),T=s(77685);let{Text:L}=u.AntTypography,D=e=>{let{onSave:t,isSaving:s,...a}=e,[o,r]=(0,i.useState)(),[l,d]=(0,i.useState)(!1),c=(0,i.useCallback)(e=>{e.preventDefault(),d(!0)},[]),g=()=>{d(!1)},m=()=>{r(void 0),a.onClose()};return(0,n.jsxs)(x.Z,{title:"Assign system",...a,onClose:m,children:[(0,n.jsxs)(u.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,n.jsx)(L,{children:"Assign a system to the selected assets. If no system exists, select 'Add new system' to create one."}),(0,n.jsx)(P.R,{placeholder:"Search or select...",onSelect:(e,t)=>{r(t)},onAddSystem:c,value:o})]})," ",(0,n.jsxs)(u.jqI,{justify:"space-between",children:[(0,n.jsx)(u.wpx,{htmlType:"reset",onClick:m,"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(u.wpx,{htmlType:"submit",type:"primary",disabled:!o,loading:s,onClick:()=>{t(o),m()},"data-testid":"save-btn",children:"Save"})]}),l&&(0,n.jsx)(T.i,{isOpen:!0,onClose:g,onSuccessfulSubmit:(e,t)=>{g(),r({label:t,value:e})},toastOnSuccess:!0})]})};var z=s(8411),Z=s(72625);let V=e=>{let{asset:t,onTabChange:s}=e,[i,{isLoading:o}]=(0,f.EY)(),[l,{isLoading:d}]=(0,f.nS)(),[c,{isLoading:g}]=(0,f.Tj)(),m=(0,u.pmc)(),h=(0,a.useRouter)(),y=o||d||g,{urn:x,name:j,resource_type:b,diff_status:C,system_key:_,user_assigned_system_key:w}=t,k=async()=>{let e=await i({urnList:[x]});if((0,p.D4)(e))m((0,v.Vo)((0,p.e$)(e.error)));else{var t,s;let n=(null===(s=e.data)||void 0===s?void 0:null===(t=s[0])||void 0===t?void 0:t.promoted_system_key)||w||_,a="".concat(r.So,"/configure/").concat(n,"#assets");m((0,v.t5)((0,I.u)("".concat(b,' "').concat(j,'" has been added to the system inventory.'),n?()=>h.push(a):void 0)))}},A=async()=>{let e=await l({urnList:[x]});(0,p.D4)(e)?m((0,v.Vo)((0,p.e$)(e.error))):m((0,v.t5)((0,I.u)("".concat(b,' "').concat(j,'" has been ignored and will not appear in future scans.'),()=>s((0,S.T)("#ignored")))))},P=async()=>{let e=await c({urnList:[x]});(0,p.D4)(e)?m((0,v.Vo)((0,p.e$)(e.error))):m((0,v.t5)("".concat(b,' "').concat(j,'" is no longer ignored and will appear in future scans.')))};return(0,n.jsxs)(u.vyj,{children:[C!==R.LL.MUTED&&(0,n.jsxs)(n.Fragment,{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:k,disabled:!t.system||y,loading:o,children:"Add"})}),(0,n.jsx)(u.wpx,{"data-testid":"ignore-btn",size:"small",onClick:A,disabled:y,loading:d,children:"Ignore"})]}),C===R.LL.MUTED&&(0,n.jsx)(u.wpx,{"data-testid":"restore-btn",size:"small",onClick:P,disabled:y,loading:g,children:"Restore"})]})};var E=s(14047),M=s(26183),N=s(31883),$=e=>{var t;let{asset:s,readonly:a}=e,[o,r]=(0,i.useState)(!1),[l]=(0,f.Ak)(),{successAlert:d,errorAlert:c}=(0,E.V)(),{getDataUseDisplayName:g}=(0,b.Z)(),m=s.user_assigned_data_uses||s.data_uses||[],h=async e=>{let t=await l({monitorId:s.monitor_config_id,urnList:[s.urn],dataUses:[...m,e]});(0,N.D4)(t)?c((0,p.e$)(t.error)):d("Consent category added to ".concat(s.resource_type,' "').concat(s.name,'" .'),"Confirmed"),r(!1)},y=async e=>{let t=await l({monitorId:s.monitor_config_id,urnList:[s.urn],dataUses:m.filter(t=>t!==e)});(0,N.D4)(t)?c((0,p.e$)(t.error)):d("Consent category removed from ".concat(s.resource_type,' "').concat(s.name,'".'),"Confirmed")},v=(null===(t=s.user_assigned_data_uses)||void 0===t?void 0:t.length)?s.user_assigned_data_uses:s.data_uses,x=null==v?void 0:v.filter(e=>(0,C.Z)(e));return a?(0,n.jsx)(M.Z,{children:null==x?void 0:x.map(e=>(0,n.jsx)(u.j8w,{color:"white",children:g(e)},e))}):(0,n.jsxs)(M.Z,{children:[!o&&(0,n.jsxs)(n.Fragment,{children:[null==x?void 0:x.map(e=>(0,n.jsx)(u.j8w,{"data-testid":"data-use-".concat(e),color:"white",closable:!0,onClose:()=>y(e),closeButtonLabel:"Remove data use",children:g(e)},e)),(0,n.jsx)(u.j8w,{onClick:()=>r(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"})]}),o&&(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)(_,{selectedTaxonomies:x||[],onSelect:h,onBlur:()=>r(!1),open:!0})})]})},U=s(43862),O=s(70675);let q=e=>{let{aggregateSystem:t,monitorConfigId:s,readonly:a}=e,{resource_type:o,name:r,urn:l,system:d,user_assigned_system_key:c,system_key:g}=t,[m,h]=(0,i.useState)(!1),[y,v]=(0,i.useState)(!1),[f,{isLoading:x}]=(0,O.NA)(),{successAlert:j,errorAlert:b}=(0,E.V)(),C=(0,i.useCallback)(e=>{e.preventDefault(),v(!0)},[]),_=async(e,t,n)=>{let a=await f({staged_resource_urn:l,monitor_config_id:s,user_assigned_system_key:e});(0,p.D4)(a)?b((0,p.e$)(a.error)):j(n?"".concat(t," has been added to your system inventory and the ").concat(o,' "').concat(r,'" has been assigned to that system.'):"".concat(o,' "').concat(r,'" has been assigned to ').concat(t,"."),"Confirmed"),h(!1)};return a?(0,n.jsx)("div",{style:(0,U.J9)(),children:(0,n.jsx)(u.j8w,{"data-testid":"system-badge",color:"white",children:d})}):(0,n.jsxs)(n.Fragment,{children:[!m&&(0,n.jsx)("div",{style:(0,U.J9)(),children:d?(0,n.jsxs)(u.j8w,{onClick:()=>h(!0),"data-testid":"system-badge",children:[d,(0,n.jsx)(u.PJP.I8b,{})]}):(0,n.jsx)(u.j8w,{onClick:()=>h(!0),"data-testid":"add-system-btn",addable:!0})}),!!m&&(0,n.jsx)(P.R,{variant:"borderless",className:"w-full",autoFocus:!0,defaultOpen:!0,defaultValue:c||g,onBlur:e=>{var t;(null===(t=e.relatedTarget)||void 0===t?void 0:t.getAttribute("id"))!=="add-new-system"&&h(!1)},onAddSystem:C,onSelect:(e,t)=>_(e,t.label),loading:x}),y&&(0,n.jsx)(T.i,{isOpen:!0,onClose:()=>{v(!1)},onSuccessfulSubmit:(e,t)=>_(e,t,!0)})]})},H=e=>{let{readonly:t,onTabChange:s}=e,a=(0,c.Cl)(),i=[a.accessor(e=>e.name,{id:"name",cell:e=>(0,n.jsx)(y.G3,{value:e.getValue()}),header:"Asset",size:300,meta:{headerProps:t?void 0:{paddingLeft:"0px"},cellProps:t?void 0:{padding:"0 !important"}}}),a.accessor(e=>e.resource_type,{id:"resource_type",cell:e=>(0,n.jsx)(y.G3,{value:e.getValue()}),header:"Type"}),a.accessor(e=>e.system,{id:"system",cell:e=>!!e.row.original.monitor_config_id&&(0,n.jsx)(q,{aggregateSystem:e.row.original,monitorConfigId:e.row.original.monitor_config_id,readonly:t}),header:"System",size:200,meta:{noPadding:!0}}),a.display({id:"data_use",cell:e=>(0,n.jsx)($,{asset:e.row.original,readonly:t}),header:"Categories of consent",size:400,meta:{disableRowClick:!0}}),a.accessor(e=>e.locations,{id:"locations",cell:e=>(0,n.jsx)(Z.mb,{values:e.getValue().map(e=>{var t;return{label:null!==(t=z.Z8[e])&&void 0!==t?t:e,key:e}}),cellProps:e}),header:e=>(0,n.jsx)(Z.Rr,{value:"Locations",...e}),size:300,meta:{showHeaderMenu:!0,disableRowClick:!0}}),a.accessor(e=>e.domain,{id:"domain",cell:e=>(0,n.jsx)(y.G3,{value:e.getValue()}),header:e=>(0,n.jsx)(Z.Rr,{value:"Domain",...e})}),a.accessor(e=>e.page,{id:"page",cell:e=>(0,n.jsx)(Z.tc,{values:e.getValue(),valueSuffix:"pages",cellProps:e}),header:e=>(0,n.jsx)(Z.Rr,{value:"Detected on",...e}),meta:{showHeaderMenu:!0,disableRowClick:!0}})];return t?{columns:i}:{columns:[a.display({id:"select",cell:e=>{let{row:t}=e;return(0,n.jsx)(y.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)(y.k,{isChecked:t.getIsAllPageRowsSelected(),isIndeterminate:t.getIsSomeRowsSelected(),onChange:t.getToggleAllRowsSelectedHandler(),dataTestId:"select-all-rows"})},maxSize:40,meta:{cellProps:{borderRight:"none"}}}),...i,a.display({id:"actions",cell:e=>(0,n.jsx)(V,{asset:e.row.original,onTabChange:s}),header:"Actions",meta:{disableRowClick:!0}})]}},B=e=>{let{monitorId:t,systemId:s,onSystemName:o}=e,l=(0,a.useRouter)(),g=l.asPath.split("#")[1],[x,j]=(0,i.useState)(s),[b,C]=(0,i.useState)({}),[_,w]=(0,i.useState)(!1),[P,T]=(0,i.useState)(!1),[L,{isLoading:z}]=(0,f.EY)(),[Z,{isLoading:V}]=(0,f.nS)(),[E,{isLoading:M}]=(0,f.rs)(),[N,{isLoading:$}]=(0,f.sX)(),[U,{isLoading:O}]=(0,f.Vr)(),[q,{isLoading:B}]=(0,f.Tj)(),J=z||V||M||$||B,K=J||s===r.Kl,{PAGE_SIZES:F,pageSize:G,setPageSize:X,onPreviousPageClick:Q,isPreviousPageDisabled:W,onNextPageClick:Y,isNextPageDisabled:ee,startRange:et,endRange:es,pageIndex:en,setTotalPages:ea,resetPageIndexToDefault:ei}=(0,y.oi)(),[eo,er]=(0,i.useState)(""),el=(0,u.pmc)();(0,i.useEffect)(()=>{ei()},[t,eo,ei]);let{filterTabs:ed,filterTabIndex:ec,onTabChange:eu,activeParams:eg,actionsDisabled:em}=(0,S.Z)({systemId:s,initialHash:g}),{data:eh,isLoading:ep,isFetching:ey}=(0,f.WJ)({key:t,page:en,size:G,search:eo,...eg});(0,i.useEffect)(()=>{if(eh){var e;let t=(null===(e=eh.items[0])||void 0===e?void 0:e.system)||x||s||"";ea(eh.pages||1),j(t),null==o||o(t)}},[eh,s,o,ea,x]);let{columns:ev}=H({readonly:em,onTabChange:eu}),ef=(0,d.b7)({getCoreRowModel:(0,c.sC)(),columns:ev,manualPagination:!0,data:(null==eh?void 0:eh.items)||[],columnResizeMode:"onChange",onRowSelectionChange:C,getRowId:e=>e.urn,state:{rowSelection:b}}),ex=ef.getSelectedRowModel().rows.map(e=>e.original.urn),ej=async()=>{var e,t,s,n,a;let i=await L({urnList:ex}),o=null!==(a=null==eh?void 0:eh.items.filter(e=>ex.includes(e.urn)))&&void 0!==a?a:[],d=(null===(e=o[0])||void 0===e?void 0:e.user_assigned_system_key)||(null===(t=o[0])||void 0===t?void 0:t.system_key),c=o.every(e=>(e.user_assigned_system_key||e.system_key)===d),u=null===(n=i.data)||void 0===n?void 0:null===(s=n[0])||void 0===s?void 0:s.promoted_system_key,g=c?null!=u?u:d:void 0;(0,p.D4)(i)?el((0,v.Vo)((0,p.e$)(i.error))):(ef.resetRowSelection(),el((0,v.t5)((0,I.u)("".concat(ex.length," assets from ").concat(x," have been added to the system inventory."),g?()=>l.push("".concat(r.So,"/configure/").concat(g,"#assets")):()=>l.push(r.So)))))},eb=async e=>{if("string"==typeof(null==e?void 0:e.value)){let s=await N({monitorId:t,urnList:ex,systemKey:e.value});(0,p.D4)(s)?el((0,v.Vo)((0,p.e$)(s.error))):el((0,v.t5)("".concat(ex.length," assets have been assigned to ").concat(e.label,"."),"Confirmed"))}w(!1)},eC=async e=>{let s=null==eh?void 0:eh.items.filter(e=>ex.includes(e.urn));if(!s)return;let n=s.map(t=>{let s=m()([...t.user_assigned_data_uses||t.data_uses||[],...e]);return{urn:t.urn,user_assigned_data_uses:s}}),a=await U({monitorId:t,assets:n});(0,p.D4)(a)?el((0,v.Vo)((0,p.e$)(a.error))):el((0,v.t5)("Consent categories added to ".concat(ex.length," assets").concat(x?" from ".concat(x):"","."),"Confirmed")),T(!1)},e_=async()=>{let e=await Z({urnList:ex});(0,p.D4)(e)?el((0,v.Vo)((0,p.e$)(e.error))):(ef.resetRowSelection(),el((0,v.t5)(x===r.Kl?"".concat(ex.length," uncategorized assets have been ignored and will not appear in future scans."):"".concat(ex.length," assets from ").concat(x," have been ignored and will not appear in future scans."),"Confirmed")))},ew=async()=>{let e=await q({urnList:ex});(0,p.D4)(e)?el((0,v.Vo)((0,p.e$)(e.error))):(ef.resetRowSelection(),el((0,v.t5)("".concat(ex.length," assets have been restored and will appear in future scans."),"Confirmed")))},ek=async()=>{let e=(null==eh?void 0:eh.items.length)||0,n=await E({monitor_config_key:t,resolved_system_ids:[s]});(0,p.D4)(n)?el((0,v.Vo)((0,p.e$)(n.error))):(l.push("".concat(r.vi,"/").concat(t)),el((0,v.t5)("".concat(e," assets from ").concat(x," have been added to the system inventory."),"Confirmed")))};return t&&s?ep?(0,n.jsx)(y.I4,{rowHeight:36,numRows:36}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h.Z,{data:ed,"data-testid":"filter-tabs",index:ec,isLazy:!0,isManual:!0,onChange:e=>{eu(e),C({})}}),(0,n.jsxs)(y.Q$,{children:[(0,n.jsx)(A.f,{value:eo,onChange:er,placeholder:"Search by asset name..."}),(0,n.jsxs)(u.kCb,{alignItems:"center",children:[!!ex.length&&(0,n.jsx)(u.xvT,{fontSize:"xs",fontWeight:"semibold",minW:16,mr:6,"data-testid":"selected-count",children:"".concat(ex.length," selected")}),(0,n.jsxs)(u.Ugi,{children:[(0,n.jsx)(u.S0p,{menu:{items:[{key:"add",label:"Add",onClick:ej},{key:"add-data-use",label:"Add consent category",onClick:()=>T(!0)},{key:"assign-system",label:"Assign system",onClick:()=>w(!0)},...eg.diff_status.includes(R.LL.MUTED)?[{key:"restore",label:"Restore",onClick:ew}]:[{type:"divider"},{key:"ignore",label:"Ignore",onClick:e_}]]},trigger:["click"],children:(0,n.jsx)(u.wpx,{icon:(0,n.jsx)(u.PJP._ME,{}),iconPosition:"end",loading:J,"data-testid":"bulk-actions-menu",disabled:!ex.length||J||em,type:"primary",children:"Actions"})}),(0,n.jsx)(u.esZ,{title:K?"These assets require a system before you can add them to the inventory.":void 0,children:(0,n.jsx)(u.wpx,{onClick:ek,disabled:K,loading:M,type:"primary",icon:(0,n.jsx)(u.PJP.MCw,{}),iconPosition:"end","data-testid":"add-all",children:"Add all"})})]})]})]}),(0,n.jsx)(y.ZK,{tableInstance:ef,emptyTableNotice:(0,n.jsx)(u.oj8,{image:u.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})}),(0,n.jsx)(y.s8,{totalRows:(null==eh?void 0:eh.total)||0,pageSizes:F,setPageSize:X,onPreviousPageClick:Q,isPreviousPageDisabled:W||ey,onNextPageClick:Y,isNextPageDisabled:ee||ey,startRange:et,endRange:es}),(0,n.jsx)(D,{isOpen:_,onClose:()=>{w(!1)},onSave:eb,isSaving:$}),(0,n.jsx)(k,{isOpen:P,onClose:()=>{T(!1)},onSave:eC,isSaving:O})]}):null};var J=()=>{let e=(0,a.useRouter)(),t=decodeURIComponent(e.query.monitorId),s=decodeURIComponent(e.query.systemId),[d,c]=(0,i.useState)(s===r.Kl?"Uncategorized assets":s);return(0,n.jsxs)(o.Z,{title:"Action center - Discovered assets",children:[(0,n.jsx)(l.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:r.vi},{title:t,href:"".concat(r.vi,"/").concat(t)},{title:s===r.Kl?"Uncategorized assets":d}]}),(0,n.jsx)(B,{monitorId:t,systemId:s,onSystemName:c})]})}}},function(e){e.O(0,[8033,6060,2858,2866,9278,7553,4481,401,3426,1327,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,a,n,i){for(var t=e.length,o=n+(i?1:-1);i?o--:++o<t;)if(a(e[o],o,e))return o;return -1}},74833:function(e,a,n){var i=n(56127),t=/^\s+/;e.exports=function(e){return e?e.slice(0,i(e)+1).replace(t,""):e}},56632:function(e,a,n){var i=n(89278),t=n(80068),o=n(50098);e.exports=function(e){return function(a,n,r){var s=Object(a);if(!t(a)){var l=i(n,3);a=o(a),n=function(e){return l(s[e],e,s)}}var _=e(a,n,r);return _>-1?s[l?a[_]:_]:void 0}}},56127:function(e){var a=/\s/;e.exports=function(e){for(var n=e.length;n--&&a.test(e.charAt(n)););return n}},66726:function(e,a,n){var i=n(11611),t=n(82846),o=n(91936),r=Math.max,s=Math.min;e.exports=function(e,a,n){var l,_,d,c,u,F,m=0,g=!1,S=!1,h=!0;if("function"!=typeof e)throw TypeError("Expected a function");function C(a){var n=l,i=_;return l=_=void 0,m=a,c=e.apply(i,n)}function f(e){var n=e-F,i=e-m;return void 0===F||n>=a||n<0||S&&i>=d}function v(){var e,n,i,o=t();if(f(o))return p(o);u=setTimeout(v,(e=o-F,n=o-m,i=a-e,S?s(i,d-n):i))}function p(e){return(u=void 0,h&&l)?C(e):(l=_=void 0,c)}function x(){var e,n=t(),i=f(n);if(l=arguments,_=this,F=n,i){if(void 0===u)return m=e=F,u=setTimeout(v,a),g?C(e):c;if(S)return clearTimeout(u),u=setTimeout(v,a),C(F)}return void 0===u&&(u=setTimeout(v,a)),c}return a=o(a)||0,i(n)&&(g=!!n.leading,d=(S="maxWait"in n)?r(o(n.maxWait)||0,a):d,h="trailing"in n?!!n.trailing:h),x.cancel=function(){void 0!==u&&clearTimeout(u),m=0,l=F=_=u=void 0},x.flush=function(){return void 0===u?c:p(t())},x}},64925:function(e,a,n){var i=n(56632)(n(66259));e.exports=i},66259:function(e,a,n){var i=n(95372),t=n(89278),o=n(47991),r=Math.max;e.exports=function(e,a,n){var s=null==e?0:e.length;if(!s)return -1;var l=null==n?0:o(n);return l<0&&(l=r(s+l,0)),i(e,t(a,3),l)}},82846:function(e,a,n){var i=n(77400);e.exports=function(){return i.Date.now()}},94919:function(e,a,n){var i=n(91936),t=1/0;e.exports=function(e){return e?(e=i(e))===t||e===-t?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,a,n){var i=n(94919);e.exports=function(e){var a=i(e),n=a%1;return a==a?n?a-n:a:0}},91936:function(e,a,n){var i=n(74833),t=n(11611),o=n(55193),r=0/0,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,_=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return r;if(t(e)){var a="function"==typeof e.valueOf?e.valueOf():e;e=t(a)?a+"":a}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var n=l.test(e);return n||_.test(e)?d(e.slice(2),n?2:8):s.test(e)?r:+e}},86850:function(e,a,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/[monitorId]",function(){return n(56856)}])},7617:function(e,a,n){"use strict";n.d(a,{q:function(){return o}});var i=n(24246),t=n(91942);let o=e=>{let{label:a,isDisabled:n,...o}=e;return(0,i.jsx)(t.OK9,{"data-testid":"tab-".concat(a),_selected:{fontWeight:"600",color:"complimentary.500",borderColor:"complimentary.500"},fontSize:o.fontSize,fontWeight:"500",color:"gray.500",isDisabled:n||!1,children:a})};a.Z=e=>{let{data:a,border:n="partial",...r}=e;return(0,i.jsxs)(t.mQc,{colorScheme:"complimentary",...r,children:[(0,i.jsx)(t.tdY,{width:"partial"===n?"max-content":void 0,children:a.map(e=>(0,i.jsx)(o,{label:e.label,isDisabled:e.isDisabled,fontSize:r.fontSize},e.label))}),(0,i.jsx)(t.nPR,{children:a.map(e=>(0,i.jsx)(t.x45,{px:0,"data-testid":"tab-panel-".concat(e.label),children:e.content},e.label))})]})}},30952:function(e,a,n){"use strict";n.d(a,{f:function(){return l}});var i=n(24246),t=n(66726),o=n.n(t),r=n(27378),s=n(26917);let l=e=>{let{value:a,onChange:n,placeholder:t,...l}=e,[_,d]=(0,r.useState)(a),c=o()(n,500),u=(0,r.useCallback)(e=>{d(e),c(e)},[]);return(0,i.jsx)(s.Z,{value:_,onChange:u,onClear:()=>{d(""),n("")},placeholder:t,...l})}},26089:function(e,a,n){"use strict";var i=n(24246),t=n(91942),o=n(99830),r=n.n(o);a.Z=e=>{let{onClick:a,children:n}=e;return(0,i.jsx)(t.wpx,{onClick:a,type:"link",role:"link",size:"small",className:r().toastLink,children:n})}},34929:function(e,a,n){"use strict";var i=n(24246),t=n(64925),o=n.n(t),r=n(27378),s=n(16134),l=n(30002),_=n(28079),d=n(57072);let c=()=>{let{isLoading:e}=(0,_.fd)(),a=(0,s.C)(_.U3),{isLoading:n}=(0,d.MO)(),i=(0,s.C)(d.qb),{isLoading:t}=(0,l.te)();return{dataUses:a,dataSubjects:(0,s.C)(l.ZL),dataCategories:i,isLoading:e||n||t}};a.Z=()=>{let{dataUses:e,dataCategories:a,dataSubjects:n,isLoading:t}=c(),s=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,a).join(".")},l=function(e,a){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=a(e);if(!i)return{};let t=a(s(e,n)),o=!!i.parent_key;return{name:i.name||void 0,primaryName:o&&(null==t?void 0:t.name)!==i.name&&(null==t?void 0:t.name)||void 0}},_=function(e,a){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:t,primaryName:o}=l(e,a,n);return t?o?(0,i.jsxs)(r.Fragment,{children:[(0,i.jsxs)("strong",{children:[o,":"]})," ",t]},e):(0,i.jsx)("strong",{children:t},e):e},d=a=>o()(e,{fides_key:a}),u=e=>o()(a,{fides_key:e}),F=e=>o()(n,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:d,getDataUseDisplayName:e=>_(e,d,1),getDataUseDisplayNameProps:e=>l(e,d,1),getDataCategories:()=>a,getDataCategoryByKey:u,getDataCategoryDisplayName:e=>_(e,u,2),getDataCategoryDisplayNameProps:e=>l(e,u,2),getDataSubjects:()=>n,getDataSubjectByKey:F,getDataSubjectDisplayName:e=>{let a=F(e);return a?a.name:e},getPrimaryKey:s,isLoading:t}}},8411:function(e,a,n){"use strict";n.d(a,{NA:function(){return o},Z8:function(){return t}});var i=n(61317);let t={[i._F.ER]:"Eritrea",[i._F.DJ]:"Djibouti",[i._F.MR]:"Mauritania",[i._F.NA]:"Namibia",[i._F.GH]:"Ghana",[i._F.SS]:"South Sudan",[i._F.SC]:"Seychelles",[i._F.IO]:"British Indian Ocean Territory",[i._F.GQ]:"Equatorial Guinea",[i._F.AO]:"Angola",[i._F.CG]:"Republic of the Congo",[i._F.BW]:"Botswana",[i._F.BI]:"Burundi",[i._F.DZ]:"Algeria",[i._F.TD]:"Chad",[i._F.NG]:"Nigeria",[i._F.TZ]:"Tanzania",[i._F.EH]:"Western Sahara",[i._F.SN]:"Senegal",[i._F.LR]:"Liberia",[i._F.ZA]:"South Africa",[i._F.CV]:"Cape Verde",[i._F.GM]:"Gambia",[i._F.SD]:"Sudan",[i._F.KM]:"Comoros",[i._F.SZ]:"Eswatini",[i._F.UG]:"Uganda",[i._F.MG]:"Madagascar",[i._F.RW]:"Rwanda",[i._F.CD]:"DR Congo",[i._F.CM]:"Cameroon",[i._F.SH]:"Saint Helena, Ascension and Tristan da Cunha",[i._F.TG]:"Togo",[i._F.MU]:"Mauritius",[i._F.NE]:"Niger",[i._F.BJ]:"Benin",[i._F.EG]:"Egypt",[i._F.LS]:"Lesotho",[i._F.ET]:"Ethiopia",[i._F.MA]:"Morocco",[i._F.YT]:"Mayotte",[i._F.BF]:"Burkina Faso",[i._F.RE]:"R\xe9union",[i._F.ST]:"S\xe3o Tom\xe9 and Pr\xedncipe",[i._F.CF]:"Central African Republic",[i._F.MZ]:"Mozambique",[i._F.MW]:"Malawi",[i._F.ML]:"Mali",[i._F.ZM]:"Zambia",[i._F.LY]:"Libya",[i._F.GW]:"Guinea-Bissau",[i._F.SO]:"Somalia",[i._F.KE]:"Kenya",[i._F.GN]:"Guinea",[i._F.ZW]:"Zimbabwe",[i._F.TN]:"Tunisia",[i._F.SL]:"Sierra Leone",[i._F.GA]:"Gabon",[i._F.CI]:"Ivory Coast",[i._F.JO]:"Jordan",[i._F.PK]:"Pakistan",[i._F.KP]:"North Korea",[i._F.MO]:"Macau",[i._F.AM]:"Armenia",[i._F.SY]:"Syria",[i._F.TJ]:"Tajikistan",[i._F.SA]:"Saudi Arabia",[i._F.KR]:"South Korea",[i._F.NP]:"Nepal",[i._F.PH]:"Philippines",[i._F.IQ]:"Iraq",[i._F.LB]:"Lebanon",[i._F.MN]:"Mongolia",[i._F.PS]:"Palestine",[i._F.YE]:"Yemen",[i._F.JP]:"Japan",[i._F.KZ]:"Kazakhstan",[i._F.LK]:"Sri Lanka",[i._F.MM]:"Myanmar",[i._F.KG]:"Kyrgyzstan",[i._F.CN]:"China",[i._F.AF]:"Afghanistan",[i._F.OM]:"Oman",[i._F.IN]:"India",[i._F.LA]:"Laos",[i._F.UZ]:"Uzbekistan",[i._F.MV]:"Maldives",[i._F.ID]:"Indonesia",[i._F.VN]:"Vietnam",[i._F.MY]:"Malaysia",[i._F.TW]:"Taiwan",[i._F.KH]:"Cambodia",[i._F.AE]:"United Arab Emirates",[i._F.HK]:"Hong Kong",[i._F.GE]:"Georgia (Country)",[i._F.BD]:"Bangladesh",[i._F.KW]:"Kuwait",[i._F.TM]:"Turkmenistan",[i._F.QA]:"Qatar",[i._F.BH]:"Bahrain",[i._F.BN]:"Brunei",[i._F.TH]:"Thailand",[i._F.BT]:"Bhutan",[i._F.SG]:"Singapore",[i._F.IL]:"Israel",[i._F.AZ]:"Azerbaijan",[i._F.TL]:"Timor-Leste",[i._F.IR]:"Iran",[i._F.TR]:"Turkey",[i._F.MK]:"North Macedonia",[i._F.IE]:"Ireland",[i._F.DK]:"Denmark",[i._F.SK]:"Slovakia",[i._F.MD]:"Moldova",[i._F.AX]:"\xc5land Islands",[i._F.PL]:"Poland",[i._F.BA]:"Bosnia and Herzegovina",[i._F.SM]:"San Marino",[i._F.CZ]:"Czechia",[i._F.EE]:"Estonia",[i._F.XK]:"Kosovo",[i._F.FO]:"Faroe Islands",[i._F.SJ]:"Svalbard and Jan Mayen",[i._F.GG]:"Guernsey",[i._F.FR]:"France",[i._F.NL]:"Netherlands",[i._F.FI]:"Finland",[i._F.PT]:"Portugal",[i._F.DE]:"Germany",[i._F.MT]:"Malta",[i._F.JE]:"Jersey",[i._F.IS]:"Iceland",[i._F.ES]:"Spain",[i._F.GI]:"Gibraltar",[i._F.NO]:"Norway",[i._F.CY]:"Cyprus",[i._F.RS]:"Serbia",[i._F.LT]:"Lithuania",[i._F.MC]:"Monaco",[i._F.LU]:"Luxembourg",[i._F.UA]:"Ukraine",[i._F.IM]:"Isle of Man",[i._F.RO]:"Romania",[i._F.BE]:"Belgium",[i._F.SE]:"Sweden",[i._F.ME]:"Montenegro",[i._F.LV]:"Latvia",[i._F.VA]:"Vatican City",[i._F.AT]:"Austria",[i._F.AL]:"Albania",[i._F.LI]:"Liechtenstein",[i._F.GR]:"Greece",[i._F.IT]:"Italy",[i._F.AD]:"Andorra",[i._F.GB]:"United Kingdom",[i._F.RU]:"Russia",[i._F.SI]:"Slovenia",[i._F.BY]:"Belarus",[i._F.CH]:"Switzerland",[i._F.HU]:"Hungary",[i._F.BG]:"Bulgaria",[i._F.HR]:"Croatia",[i._F.TC]:"Turks and Caicos Islands",[i._F.CW]:"Cura\xe7ao",[i._F.GP]:"Guadeloupe",[i._F.UM]:"United States Minor Outlying Islands",[i._F.GT]:"Guatemala",[i._F.PM]:"Saint Pierre and Miquelon",[i._F.BQ]:"Caribbean Netherlands",[i._F.GL]:"Greenland",[i._F.SX]:"Sint Maarten",[i._F.PA]:"Panama",[i._F.AW]:"Aruba",[i._F.MQ]:"Martinique",[i._F.AG]:"Antigua and Barbuda",[i._F.BM]:"Bermuda",[i._F.CU]:"Cuba",[i._F.GD]:"Grenada",[i._F.NI]:"Nicaragua",[i._F.LC]:"Saint Lucia",[i._F.KN]:"Saint Kitts and Nevis",[i._F.DO]:"Dominican Republic",[i._F.VC]:"Saint Vincent and the Grenadines",[i._F.BZ]:"Belize",[i._F.HT]:"Haiti",[i._F.JM]:"Jamaica",[i._F.BS]:"Bahamas",[i._F.MX]:"Mexico",[i._F.MF]:"Saint Martin",[i._F.SV]:"El Salvador",[i._F.BL]:"Saint Barth\xe9lemy",[i._F.AI]:"Anguilla",[i._F.MS]:"Montserrat",[i._F.VG]:"British Virgin Islands",[i._F.BB]:"Barbados",[i._F.HN]:"Honduras",[i._F.KY]:"Cayman Islands",[i._F.DM]:"Dominica",[i._F.TT]:"Trinidad and Tobago",[i._F.CR]:"Costa Rica",[i._F.SR]:"Suriname",[i._F.CX]:"Christmas Island",[i._F.WS]:"Samoa",[i._F.PF]:"French Polynesia",[i._F.AS]:"American Samoa",[i._F.NC]:"New Caledonia",[i._F.TK]:"Tokelau",[i._F.PW]:"Palau",[i._F.KI]:"Kiribati",[i._F.VU]:"Vanuatu",[i._F.PN]:"Pitcairn Islands",[i._F.CK]:"Cook Islands",[i._F.FJ]:"Fiji",[i._F.PG]:"Papua New Guinea",[i._F.MP]:"Northern Mariana Islands",[i._F.NU]:"Niue",[i._F.TV]:"Tuvalu",[i._F.NF]:"Norfolk Island",[i._F.TO]:"Tonga",[i._F.FM]:"Micronesia",[i._F.SB]:"Solomon Islands",[i._F.NR]:"Nauru",[i._F.WF]:"Wallis and Futuna",[i._F.GU]:"Guam",[i._F.AU]:"Australia",[i._F.NZ]:"New Zealand",[i._F.MH]:"Marshall Islands",[i._F.CC]:"Cocos (Keeling) Islands",[i._F.VE]:"Venezuela",[i._F.PY]:"Paraguay",[i._F.BR]:"Brazil",[i._F.CO]:"Colombia",[i._F.PE]:"Peru",[i._F.CL]:"Chile",[i._F.UY]:"Uruguay",[i._F.AR]:"Argentina",[i._F.GY]:"Guyana",[i._F.BO]:"Bolivia",[i._F.GF]:"French Guiana",[i._F.EC]:"Ecuador",[i._F.FK]:"Falkland Islands",[i._F.US_AL]:"Alabama",[i._F.US_AK]:"Alaska",[i._F.US_AZ]:"Arizona",[i._F.US_AR]:"Arkansas",[i._F.US_CA]:"California",[i._F.US_CO]:"Colorado",[i._F.US_CT]:"Connecticut",[i._F.US_DE]:"Delaware",[i._F.US_DC]:"District of Columbia (DC)",[i._F.US_FL]:"Florida",[i._F.US_GA]:"Georgia",[i._F.US_HI]:"Hawaii",[i._F.US_ID]:"Idaho",[i._F.US_IL]:"Illinois",[i._F.US_IN]:"Indiana",[i._F.US_IA]:"Iowa",[i._F.US_KS]:"Kansas",[i._F.US_KY]:"Kentucky",[i._F.US_LA]:"Louisiana",[i._F.US_ME]:"Maine",[i._F.US_MD]:"Maryland",[i._F.US_MA]:"Massachusetts",[i._F.US_MI]:"Michigan",[i._F.US_MN]:"Minnesota",[i._F.US_MS]:"Mississippi",[i._F.US_MO]:"Missouri",[i._F.US_MT]:"Montana",[i._F.US_NE]:"Nebraska",[i._F.US_NV]:"Nevada",[i._F.US_NH]:"New Hampshire",[i._F.US_NJ]:"New Jersey",[i._F.US_NM]:"New Mexico",[i._F.US_NY]:"New York",[i._F.US_NC]:"North Carolina",[i._F.US_ND]:"North Dakota",[i._F.US_OH]:"Ohio",[i._F.US_OK]:"Oklahoma",[i._F.US_OR]:"Oregon",[i._F.US_PA]:"Pennsylvania",[i._F.US_PR]:"Puerto Rico",[i._F.US_RI]:"Rhode Island",[i._F.US_SC]:"South Carolina",[i._F.US_SD]:"South Dakota",[i._F.US_TN]:"Tennessee",[i._F.US_TX]:"Texas",[i._F.US_UT]:"Utah",[i._F.US_VA]:"Virginia",[i._F.US_VI]:"United States Virgin Islands",[i._F.US_VT]:"Vermont",[i._F.US_WA]:"Washington",[i._F.US_WV]:"West Virginia",[i._F.US_WI]:"Wisconsin",[i._F.US_WY]:"Wyoming",[i._F.CA_AB]:"Alberta",[i._F.CA_BC]:"British Columbia",[i._F.CA_MB]:"Manitoba",[i._F.CA_NB]:"New Brunswick",[i._F.CA_NL]:"Newfoundland and Labrador",[i._F.CA_NS]:"Nova Scotia",[i._F.CA_ON]:"Ontario",[i._F.CA_PE]:"Prince Edward Island",[i._F.CA_QC]:"Quebec",[i._F.CA_SK]:"Saskatchewan",[i._F.CA_NT]:"Northwest Territories",[i._F.CA_NU]:"Nunavut",[i._F.CA_YT]:"Yukon",[i._F.CA]:"Canada",[i._F.US]:"United States",[i._F.MEXICO_CENTRAL_AMERICA]:"Mexico and Central America",[i._F.CARIBBEAN]:"Caribbean",[i._F.EEA]:"European Economic Area (EEA)",[i._F.NON_EEA]:"Non European Economic Area",[i._F.GLOBAL]:"Global"},o=new Map(Object.entries(t));Object.entries(t).map(e=>({value:e[0],label:e[1]}))},56839:function(e,a,n){"use strict";n.d(a,{dK:function(){return d},Rv:function(){return F},$P:function(){return u},zj:function(){return m},Kr:function(){return g},q1:function(){return c},QL:function(){return S}});var i=n(24246),t=n(91942);let o=(0,t.IUT)({displayName:"CircleIcon",viewBox:"0 0 200 200",path:(0,i.jsx)("path",{fill:"currentColor",d:"M 100, 100 m -75, 0 a 75,75 0 1,0 150,0 a 75,75 0 1,0 -150,0"})}),r=(0,t.IUT)({displayName:"RightDownArrowIcon",viewBox:"0 0 8 8",path:(0,i.jsx)("path",{fill:"currentColor",d:"M7.23192 8H8V7.23192V1.85539V1.08731H6.46385V1.85539V5.37654L1.62976 0.544855L1.08731 0L0 1.08731L0.542454 1.62976L5.37654 6.46385H1.85539H1.08731V8H1.85539H7.23192Z"})}),s=(0,t.IUT)({displayName:"RightUpArrowIcon",viewBox:"0 0 8 8",path:(0,i.jsx)("path",{fill:"currentColor",d:"M7.23192 0H8V0.768077V6.14461V6.91269H6.46385V6.14461V2.62346L1.62976 7.45515L1.08731 8L0 6.91269L0.542454 6.37024L5.37654 1.53615H1.85539H1.08731V0H1.85539H7.23192Z"})}),l=(0,t.IUT)({displayName:"TagIcon",viewBox:"0 0 9 10",path:(0,i.jsx)("path",{fill:"currentColor",d:"M0 0.5V5L4.5 9.5L9 5L4.5 0.5H0ZM2.25 2.10714C2.4205 2.10714 2.58401 2.17487 2.70457 2.29543C2.82513 2.41599 2.89286 2.5795 2.89286 2.75C2.89286 2.9205 2.82513 3.08401 2.70457 3.20457C2.58401 3.32513 2.4205 3.39286 2.25 3.39286C2.0795 3.39286 1.91599 3.32513 1.79543 3.20457C1.67487 3.08401 1.60714 2.9205 1.60714 2.75C1.60714 2.5795 1.67487 2.41599 1.79543 2.29543C1.91599 2.17487 2.0795 2.10714 2.25 2.10714Z"})});var _=n(28278);let d=()=>(0,i.jsx)(s,{color:"green.400",boxSize:2,mr:2,"data-testid":"add-icon"}),c=()=>(0,i.jsx)(r,{color:"red.400",boxSize:2,mr:2,"data-testid":"remove-icon"}),u=()=>(0,i.jsx)(l,{color:"orange.400",boxSize:3,mr:1,"data-testid":"classify-icon"}),F=()=>(0,i.jsx)(o,{color:"blue.400",boxSize:2.5,mb:"2px",mr:"6px","data-testid":"change-icon"}),m=()=>(0,i.jsx)(o,{color:"green.400",boxSize:2,mr:2,"data-testid":"monitored-icon"}),g=()=>(0,i.jsx)(o,{color:"red.400",boxSize:2,mr:2,"data-testid":"muted-icon"}),S={[_.E.ADDITION]:(0,i.jsx)(d,{}),[_.E.REMOVAL]:(0,i.jsx)(c,{}),[_.E.CLASSIFICATION]:(0,i.jsx)(u,{}),[_.E.CHANGE]:(0,i.jsx)(F,{}),[_.E.MONITORED]:(0,i.jsx)(m,{}),[_.E.MUTED]:(0,i.jsx)(g,{}),[_.E.IN_PROGRESS]:(0,i.jsx)(()=>(0,i.jsx)(o,{color:"orange.400",boxSize:2,mr:2,"data-testid":"in-progress-icon"}),{}),[_.E.NONE]:null}},28278:function(e,a,n){"use strict";var i,t;n.d(a,{E:function(){return i}}),(t=i||(i={})).ADDITION="Addition",t.CHANGE="Change",t.REMOVAL="Removal",t.CLASSIFICATION="Classification",t.IN_PROGRESS="Classifying",t.MONITORED="Monitoring",t.MUTED="Unmonitored",t.NONE="--"},56856:function(e,a,n){"use strict";n.r(a),n.d(a,{default:function(){return w}});var i=n(24246),t=n(86677),o=n(35287),r=n(77830),s=n(58754),l=n(59003),_=n(92222),d=n(91942),c=n(27378),u=n(66379),F=n(812),m=n(14481),g=n(46628),S=n(37059),h=n(90057),C=n(96107),f=n(61317),v=n(31883),p=n(30952),x=n(8411),b=n(72625),M=n(34929),y=n(78238),A=e=>{var a,n;let{system:t}=e,{getDataUseDisplayName:o}=(0,M.Z)(),r=(null!==(n=null===(a=t.data_uses)||void 0===a?void 0:a.filter(e=>(0,y.Z)(e)))&&void 0!==n?n:[]).map(e=>({label:o(e),key:e}));return(0,i.jsx)(b.mb,{values:r})};let N=e=>{let{monitorId:a,system:n,allowIgnore:o,onTabChange:s}=e,[l,{isLoading:_}]=(0,S.rs)(),[c,{isLoading:u}]=(0,S.nP)(),m=(0,t.useRouter)(),f=(0,d.pmc)(),v=_||u,{id:p,name:x,system_key:b,total_updates:M}=n,y=async()=>{let e=await l({monitor_config_key:a,resolved_system_ids:[p]});if((0,F.D4)(e))f((0,g.Vo)((0,F.e$)(e.error)));else{var n,i,t;let a=(null===(t=e.data)||void 0===t?void 0:null===(i=t.items)||void 0===i?void 0:null===(n=i[0])||void 0===n?void 0:n.promoted_system_key)||b,o="".concat(r.So,"/configure/").concat(a,"#assets");f((0,g.t5)((0,C.u)(b?"".concat(M," assets from ").concat(x," have been added to the system inventory."):"".concat(x," and ").concat(M," assets have been added to the system inventory. ").concat(x," is now configured for consent."),a?()=>m.push(o):void 0)))}},A=async()=>{let e=await c({monitor_config_key:a,resolved_system_ids:[p||r.Kl]});(0,F.D4)(e)?f((0,g.Vo)((0,F.e$)(e.error))):f((0,g.t5)((0,C.u)(x?"".concat(M," assets from ").concat(x," have been ignored and will not appear in future scans."):"".concat(M," uncategorized assets have been ignored and will not appear in future scans."),()=>s((0,h.T)("#ignored")))))};return(0,i.jsxs)(d.vyj,{children:[(0,i.jsx)(d.esZ,{title:n.id?void 0:"These assets must be categorized before you can add them to the inventory.",children:(0,i.jsx)(d.wpx,{"data-testid":"add-btn",size:"small",onClick:y,disabled:!n.id||v,loading:_,children:"Add"})}),o&&(0,i.jsx)(d.wpx,{"data-testid":"ignore-btn",size:"small",onClick:A,disabled:v,loading:u,children:"Ignore"})]})};var I=n(56839);let U=e=>{let{system:a}=e;return(0,i.jsxs)(d.kCb,{alignItems:"center",height:"100%",children:[!(null==a?void 0:a.system_key)&&(0,i.jsx)(d.esZ,{title:"New system",children:(0,i.jsx)("span",{children:I.QL.Change})}),(0,i.jsx)(d.xvT,{fontSize:"xs",fontWeight:"semibold",lineHeight:4,overflow:"hidden",textOverflow:"ellipsis",children:(null==a?void 0:a.name)||"Uncategorized assets"})]})},T=e=>{let{monitorId:a,readonly:n,allowIgnore:t,onTabChange:o}=e,r=(0,_.Cl)(),s=r.display({id:"select",cell:e=>{let{row:a}=e;return(0,i.jsx)(m.k,{isChecked:a.getIsSelected(),onChange:a.getToggleSelectedHandler(),dataTestId:"select-".concat(a.original.name||a.id)})},header:e=>{let{table:a}=e;return(0,i.jsx)(m.k,{isChecked:a.getIsAllPageRowsSelected(),isIndeterminate:a.getIsSomeRowsSelected(),onChange:a.getToggleAllRowsSelectedHandler(),dataTestId:"select-all-rows"})},maxSize:40,meta:{disableRowClick:!0,cellProps:{borderRight:"none"}}}),l=r.accessor(e=>e.name,{id:"system_name",cell:e=>(0,i.jsx)(U,{system:e.row.original}),header:"System",size:300,meta:{headerProps:n?void 0:{paddingLeft:"0px"},cellProps:n?void 0:{padding:"0 !important"}}}),d=r.accessor(e=>e.total_updates,{id:"total_updates",cell:e=>(0,i.jsx)(m.G3,{value:e.getValue()}),header:"Assets",size:80}),u=r.display({id:"data_use",cell:e=>(0,i.jsx)(A,{system:e.row.original}),header:"Categories of consent",size:400,meta:{disableRowClick:!0}}),F=r.accessor(e=>e.locations,{id:"locations",cell:e=>{var a,n;return(0,i.jsx)(b.mb,{values:null!==(n=null===(a=e.getValue())||void 0===a?void 0:a.map(e=>({label:x.Z8[e],key:e})))&&void 0!==n?n:[]})},header:e=>(0,i.jsx)(b.Rr,{value:"Locations",...e}),size:300,meta:{showHeaderMenu:!0,disableRowClick:!0}}),g=r.accessor(e=>e.domains,{id:"domains",cell:e=>(0,i.jsx)(b.tc,{values:e.getValue(),valueSuffix:"domains",cellProps:e}),header:e=>(0,i.jsx)(b.Rr,{value:"Domains",...e}),meta:{showHeaderMenu:!0,disableRowClick:!0}}),S=r.display({id:"actions",cell:e=>(0,i.jsx)(N,{system:e.row.original,monitorId:a,allowIgnore:t,onTabChange:o}),header:"Actions",meta:{disableRowClick:!0}}),h=(0,c.useMemo)(()=>[l,d,u,F,g],[l,d,u,F,g]);return n?{columns:h}:{columns:[s,...h,S]}},E=e=>{let{monitorId:a}=e,n=(0,t.useRouter)(),o=n.asPath.split("#")[1],{PAGE_SIZES:s,pageSize:x,setPageSize:b,onPreviousPageClick:M,isPreviousPageDisabled:y,onNextPageClick:A,isNextPageDisabled:N,startRange:I,endRange:U,pageIndex:E,setTotalPages:w,resetPageIndexToDefault:L}=(0,m.oi)(),[j,{isLoading:k}]=(0,S.rs)(),[R,{isLoading:D}]=(0,S.nP)(),P=(0,d.pmc)(),[G,B]=(0,c.useState)(""),[O,V]=(0,c.useState)({});(0,c.useEffect)(()=>{L()},[a,G,L]);let{filterTabs:K,filterTabIndex:H,onTabChange:z,activeParams:Z,actionsDisabled:W}=(0,h.Z)({initialHash:o}),{data:Y,isLoading:J,isFetching:Q}=(0,S.wi)({key:a,page:E,size:x,search:G,...Z});(0,c.useEffect)(()=>{Y&&w(Y.pages||1)},[Y,w]);let q=e=>{z(e),V({})},{columns:X}=T({monitorId:a,onTabChange:q,readonly:W,allowIgnore:!Z.diff_status.includes(f.LL.MUTED)}),$=(0,l.b7)({getCoreRowModel:(0,_.sC)(),columns:X,manualPagination:!0,data:(null==Y?void 0:Y.items)||[],columnResizeMode:"onChange",onRowSelectionChange:V,state:{rowSelection:O},getRowId:e=>{var a,n,i;return null!==(i=null!==(n=null!==(a=e.id)&&void 0!==a?a:e.vendor_id)&&void 0!==n?n:e.name)&&void 0!==i?i:r.Kl}}),ee=$.getSelectedRowModel().rows,ea=ee.some(e=>null===e.original.id);if(J)return(0,i.jsx)(m.I4,{rowHeight:36,numRows:36});let en=async()=>{let e=ee.reduce((e,a)=>e+a.original.total_updates,0),i=await j({monitor_config_key:a,resolved_system_ids:ee.map(e=>e.original.id)});(0,v.D4)(i)?P((0,g.Vo)((0,F.e$)(i.error))):(P((0,g.t5)((0,C.u)("".concat(e," assets have been added to the system inventory."),()=>n.push(r.So)))),V({}))},ei=async()=>{let e=ee.reduce((e,a)=>e+a.original.total_updates,0),n=await R({monitor_config_key:a,resolved_system_ids:ee.map(e=>{var a;return null!==(a=e.original.id)&&void 0!==a?a:r.Kl})});(0,v.D4)(n)?P((0,g.Vo)((0,F.e$)(n.error))):(P((0,g.t5)((0,C.u)("".concat(e," assets have been ignored and will not appear in future scans."),()=>z((0,h.T)("#ignored"))))),V({}))};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.Z,{data:K,"data-testid":"filter-tabs",index:H,isLazy:!0,isManual:!0,onChange:q}),(0,i.jsx)(m.Q$,{children:(0,i.jsxs)(d.kCb,{direction:"row",alignItems:"center",justifyContent:"space-between",width:"full",children:[(0,i.jsx)(d.kCb,{gap:6,align:"center",children:(0,i.jsx)(d.xuv,{flexShrink:0,children:(0,i.jsx)(p.f,{value:G,onChange:B})})}),(0,i.jsxs)(d.kCb,{align:"center",children:[!!ee.length&&(0,i.jsx)(d.xvT,{fontSize:"xs",fontWeight:"semibold",minW:16,mr:6,"data-testid":"selected-count",children:"".concat(ee.length," selected")}),(0,i.jsx)(d.S0p,{menu:{items:[{key:"add",label:(0,i.jsx)(d.esZ,{title:ea?"Uncategorized assets can't be added to the inventory":null,placement:"left",children:"Add"}),onClick:en,disabled:ea},Z.diff_status.includes(f.LL.MUTED)?null:{key:"ignore",label:"Ignore",onClick:ei}]},trigger:["click"],children:(0,i.jsx)(d.wpx,{type:"primary",icon:(0,i.jsx)(d.PJP._ME,{}),iconPosition:"end",loading:k||D,disabled:!ee.length,"data-testid":"bulk-actions-menu",children:"Actions"})})]})]})}),(0,i.jsx)(m.ZK,{tableInstance:$,onRowClick:e=>{var i;let t="".concat(r.vi,"/").concat(a,"/").concat(null!==(i=e.id)&&void 0!==i?i:r.Kl).concat(o?"#".concat(o):"");n.push(t)},emptyTableNotice:(0,i.jsx)(d.oj8,{image:d.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})}),(0,i.jsx)(m.s8,{totalRows:(null==Y?void 0:Y.total)||0,pageSizes:s,setPageSize:b,onPreviousPageClick:M,isPreviousPageDisabled:y||Q,onNextPageClick:A,isNextPageDisabled:N||Q,startRange:I,endRange:U})]})};var w=()=>{let e=decodeURIComponent((0,t.useRouter)().query.monitorId);return(0,i.jsxs)(o.Z,{title:"Action center - Discovered assets by system",children:[(0,i.jsx)(s.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:r.vi},{title:e}]}),(0,i.jsx)(E,{monitorId:e})]})}},99830:function(e){e.exports={toastLink:"ToastLink_toastLink__OLSeq"}}},function(e){e.O(0,[8033,6060,2858,2866,9278,7553,4481,1327,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(e,t,r){var n=r(56127),s=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(s,""):e}},56127:function(e){var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},66726:function(e,t,r){var n=r(11611),s=r(82846),i=r(91936),o=Math.max,a=Math.min;e.exports=function(e,t,r){var l,u,c,d,m,p,f=0,v=!1,g=!1,y=!0;if("function"!=typeof e)throw TypeError("Expected a function");function h(t){var r=l,n=u;return l=u=void 0,f=t,d=e.apply(n,r)}function x(e){var r=e-p,n=e-f;return void 0===p||r>=t||r<0||g&&n>=c}function j(){var e,r,n,i=s();if(x(i))return b(i);m=setTimeout(j,(e=i-p,r=i-f,n=t-e,g?a(n,c-r):n))}function b(e){return(m=void 0,y&&l)?h(e):(l=u=void 0,d)}function _(){var e,r=s(),n=x(r);if(l=arguments,u=this,p=r,n){if(void 0===m)return f=e=p,m=setTimeout(j,t),v?h(e):d;if(g)return clearTimeout(m),m=setTimeout(j,t),h(p)}return void 0===m&&(m=setTimeout(j,t)),d}return t=i(t)||0,n(r)&&(v=!!r.leading,c=(g="maxWait"in r)?o(i(r.maxWait)||0,t):c,y="trailing"in r?!!r.trailing:y),_.cancel=function(){void 0!==m&&clearTimeout(m),f=0,l=p=u=m=void 0},_.flush=function(){return void 0===m?d:b(s())},_}},11611:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},55193:function(e,t,r){var n=r(99736),s=r(92360);e.exports=function(e){return"symbol"==typeof e||s(e)&&"[object Symbol]"==n(e)}},82846:function(e,t,r){var n=r(77400);e.exports=function(){return n.Date.now()}},91936:function(e,t,r){var n=r(74833),s=r(11611),i=r(55193),o=0/0,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return o;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=l.test(e);return r||u.test(e)?c(e.slice(2),r?2:8):a.test(e)?o:+e}},40741:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center",function(){return r(51500)}])},30952:function(e,t,r){"use strict";r.d(t,{f:function(){return l}});var n=r(24246),s=r(66726),i=r.n(s),o=r(27378),a=r(26917);let l=e=>{let{value:t,onChange:r,placeholder:s,...l}=e,[u,c]=(0,o.useState)(t),d=i()(r,500),m=(0,o.useCallback)(e=>{c(e),d(e)},[]);return(0,n.jsx)(a.Z,{value:u,onChange:m,onClear:()=>{c(""),r("")},placeholder:s,...l})}},77213:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(24246),s=r(91942),i=r(88038),o=r.n(i),a=r(86677);r(27378);var l=r(25980),u=r(90867),c=r(77830),d=()=>{let e=(0,a.useRouter)();return(0,n.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(s.xuv,{children:[(0,n.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(s.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,n.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=e=>{let{children:t,title:r,padded:i=!0,mainProps:c}=e,m=(0,l.hz)(),p=(0,a.useRouter)(),f="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,v=!(m.flags.privacyRequestsConfiguration&&f),{data:g}=(0,u.JE)(void 0,{skip:v}),{data:y}=(0,u.PW)(void 0,{skip:v}),h=m.flags.privacyRequestsConfiguration&&(!g||!y)&&f;return(0,n.jsxs)(s.kCb,{"data-testid":r,direction:"column",h:"100vh",children:[(0,n.jsxs)(o(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",r]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(s.kCb,{as:"main",direction:"column",py:i?6:0,px:i?10:0,h:i?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[h?(0,n.jsx)(d,{}):null,t]})]})}},58754:function(e,t,r){"use strict";var n=r(24246),s=r(91942),i=r(70788);t.Z=e=>{let{heading:t,breadcrumbItems:r,isSticky:o=!0,children:a,rightContent:l,style:u,...c}=e;return(0,n.jsxs)("div",{...c,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...u}:{paddingBottom:"24px",...u},children:[(0,n.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(s.lQT,{className:r||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!r&&(0,n.jsx)(i.m,{className:a?"pb-4":void 0,items:r,"data-testid":"page-breadcrumb"}),a]})}},70788:function(e,t,r){"use strict";r.d(t,{m:function(){return u}});var n=r(24246),s=r(91942),i=r(79894),o=r.n(i),a=r(27378);let{Text:l}=s.AntTypography,u=e=>{let{items:t,...r}=e,i=(0,a.useMemo)(()=>null==t?void 0:t.map((e,r)=>{let i=r===t.length-1,a={...e},u=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,n.jsx)(l,{style:{color:"inherit",maxWidth:i?void 0:400},ellipsis:!i,children:a.title})),u)?a.title=(0,n.jsx)(s.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,n.jsx)(o(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,n.jsx)(s.zrq,{items:i,...r})}},37059:function(e,t,r){"use strict";r.d(t,{Ak:function(){return v},EY:function(){return d},Tj:function(){return p},Ud:function(){return o},Vr:function(){return g},WJ:function(){return l},nP:function(){return c},nS:function(){return m},rs:function(){return u},sX:function(){return f},wi:function(){return a}});var n=r(78780),s=r(16394),i=r(61317);let{useGetAggregateMonitorResultsQuery:o,useGetDiscoveredSystemAggregateQuery:a,useGetDiscoveredAssetsQuery:l,useAddMonitorResultSystemsMutation:u,useIgnoreMonitorResultSystemsMutation:c,useAddMonitorResultAssetsMutation:d,useIgnoreMonitorResultAssetsMutation:m,useRestoreMonitorResultAssetsMutation:p,useUpdateAssetsSystemMutation:f,useUpdateAssetsDataUseMutation:v,useUpdateAssetsMutation:g}=n.u.injectEndpoints({endpoints:e=>({getAggregateMonitorResults:e.query({query:e=>{let{page:t=1,size:r=20,search:n}=e;return{url:"/plus/discovery-monitor/aggregate-results",params:{page:t,size:r,search:n,diff_status:"addition"}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredSystemAggregate:e.query({query:e=>{let{key:t,page:r=1,size:n=20,search:s,diff_status:i}=e;return{url:"/plus/discovery-monitor/system-aggregate-results",params:{monitor_config_id:t,page:r,size:n,search:s,diff_status:i}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredAssets:e.query({query:e=>{let{key:t,system:r,page:n=1,size:s=20,search:i,diff_status:o}=e;return{url:"/plus/discovery-monitor/".concat(t,"/results"),params:{resolved_system_id:r,page:n,size:s,search:i,diff_status:o,sort_by:"urn"}}},providesTags:()=>["Discovery Monitor Results"]}),addMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:r}=e,n=(0,s.du)(r,"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:r}=e,n=(0,s.du)(r,"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 r=new URLSearchParams;return null===(t=e.urnList)||void 0===t||t.forEach(e=>r.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/promote?".concat(r)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultAssets:e.mutation({query:e=>{var t;let r=new URLSearchParams;return null===(t=e.urnList)||void 0===t||t.forEach(e=>r.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/mute?".concat(r)}},invalidatesTags:["Discovery Monitor Results"]}),restoreMonitorResultAssets:e.mutation({query:e=>{var t;let r=new URLSearchParams({status_to_set:i.LL.ADDITION});return null===(t=e.urnList)||void 0===t||t.forEach(e=>r.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/un-mute?".concat(r)}},invalidatesTags:["Discovery Monitor Results"]}),updateAssetsSystem:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.urnList.map(t=>({urn:t,user_assigned_system_key:e.systemKey}))}),invalidatesTags:["Discovery Monitor Results","System Assets"]}),updateAssetsDataUse:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.urnList.map(t=>({urn:t,user_assigned_data_uses:e.dataUses}))}),invalidatesTags:["Discovery Monitor Results"]}),updateAssets:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.assets}),invalidatesTags:["Discovery Monitor Results"]})})})},51500:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return b}});var n=r(24246),s=r(91942),i=r(79894),o=r.n(i),a=r(27378),l=r(30952),u=r(77213),c=r(77830),d=r(58754),m=r(14481),p=r(7426),f=r(37059);let v=e=>{let{isConfigLoading:t}=e;return(0,n.jsx)(u.Z,{title:"Action center",mainProps:{className:"h-full"},children:(0,n.jsx)(s.jqI,{justify:"center",align:"center",className:"h-full",children:t?(0,n.jsx)(s.$jN,{color:"primary.900"}):(0,n.jsx)(s.DUx,{message:"Coming soon...",description:"Action center is currently disabled.",type:"info",showIcon:!0})})})},g=()=>(0,n.jsx)(s.oj8,{image:s.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up! Set up an integration monitor to track your infrastructure in greater detail.",children:(0,n.jsx)(o(),{href:c.KH,passHref:!0,legacyBehavior:!0,children:(0,n.jsx)(s.wpx,{type:"primary",children:"Visit integrations"})})});var y=r(7195),h=r(16394);let{Text:x}=s.AntTypography,j=e=>{let{monitorSummary:t,showSkeleton:r,...i}=e,[l,u]=(0,a.useState)(void 0),{name:d,property:m,total_updates:p,updates:f,last_monitored:v,warning:g,secrets:j,key:b}=t,_=Object.entries(f).map(e=>"".concat(e[1]," ").concat(e[0],"s")).join(", "),T=v?(0,h.p6)(new Date(v)):void 0,w=v?(0,y.B)(new Date(v),new Date,{addSuffix:!0}):void 0;return(0,a.useEffect)(()=>{m&&u((0,h.tl)(m,60)),(null==j?void 0:j.url)&&u((0,h.tl)((0,h.ge)(j.url),60))},[m,null==j?void 0:j.url]),(0,n.jsx)(s.krs.Item,{"data-testid":"monitor-result-".concat(b),...i,children:(0,n.jsx)(s.N_L,{avatar:!0,title:!1,loading:r,active:!0,children:(0,n.jsxs)(s.bue,{gutter:12,className:"w-full",children:[(0,n.jsx)(s.JGx,{span:18,className:"align-middle",children:(0,n.jsx)(s.krs.Item.Meta,{avatar:(0,n.jsx)(s.t3Z,{src:l,size:30,icon:(0,n.jsx)(s.PJP.huD,{}),style:{backgroundColor:"transparent",color:"var(--ant-color-text)"}}),title:(0,n.jsxs)(o(),{href:"".concat(c.vi,"/").concat(b),className:"whitespace-nowrap",children:["".concat(p," assets detected").concat(m?" on ".concat(m):""),!!g&&(0,n.jsx)(s.esZ,{title:"string"==typeof g?g:void 0,children:(0,n.jsx)(s.PJP.OdJ,{className:"ml-1 inline-block align-middle",style:{color:"var(--fidesui-error)"}})})]}),description:"".concat(_," detected.")})}),(0,n.jsx)(s.JGx,{span:4,className:"flex items-center justify-end",children:(0,n.jsx)(x,{ellipsis:{tooltip:d},children:d})}),(0,n.jsx)(s.JGx,{span:2,className:"flex items-center justify-end",children:!!w&&(0,n.jsx)(s.esZ,{title:T,children:(0,n.jsx)(x,{"data-testid":"monitor-date",ellipsis:{tooltip:T},children:w})})})]})})})};var b=()=>{var e;let t=(0,s.pmc)(),{PAGE_SIZES:r,pageSize:i,setPageSize:y,onPreviousPageClick:h,isPreviousPageDisabled:x,onNextPageClick:b,isNextPageDisabled:_,startRange:T,endRange:w,pageIndex:k,setTotalPages:P,resetPageIndexToDefault:R}=(0,m.oi)(),[C,S]=(0,a.useState)(""),{data:A,isLoading:N}=(0,p.tB)({api_set:!1}),D=!!(null==A?void 0:null===(e=A.detection_discovery)||void 0===e?void 0:e.website_monitor_enabled);(0,a.useEffect)(()=>{R()},[C,R]);let{data:E,isError:M,isLoading:q,isFetching:I}=(0,f.Ud)({page:k,size:i,search:C},{skip:N||!D});(0,a.useEffect)(()=>{M&&t&&D&&t({title:"Error fetching data",description:"Please try again later",status:"error"})},[M,t,D]),(0,a.useEffect)(()=>{E&&P(E.total||1)},[E,P]);let L=(null==E?void 0:E.items)||[],O=I?Array.from({length:i},(e,t)=>({key:t.toString(),updates:[],last_monitored:null})):[],z=(0,a.useCallback)(e=>[(0,n.jsx)(o(),{href:"".concat(c.vi,"/").concat(e),passHref:!0,legacyBehavior:!0,children:(0,n.jsx)(s.wpx,{type:"link",className:"p-0","data-testid":"review-button-".concat(e),children:"Review"})},"review")],[]);return D?(0,n.jsxs)(u.Z,{title:"Action center",children:[(0,n.jsx)(d.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity"}]}),(0,n.jsx)(s.jqI,{className:"justify-between py-6",children:(0,n.jsx)(l.f,{value:C,onChange:S})}),(0,n.jsx)(s.krs,{loading:q,dataSource:L||O,locale:{emptyText:(0,n.jsx)(g,{})},renderItem:e=>!!e&&(0,n.jsx)(j,{showSkeleton:I,monitorSummary:e,actions:z(e.key)},e.key)}),!!L&&!!(null==E?void 0:E.total)&&E.total>i&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.htM,{className:"mb-6 mt-0"}),(0,n.jsx)(m.s8,{totalRows:(null==E?void 0:E.total)||0,pageSizes:r,setPageSize:y,onPreviousPageClick:h,isPreviousPageDisabled:x||I,onNextPageClick:b,isNextPageDisabled:_||I,startRange:T,endRange:w})]})]}):(0,n.jsx)(v,{isConfigLoading:N})}}},function(e){e.O(0,[8033,6060,7553,4481,2888,9774,179],function(){return e(e.s=40741)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7477],{74833:function(e,t,i){var n=i(56127),r=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(r,""):e}},56127:function(e){var t=/\s/;e.exports=function(e){for(var i=e.length;i--&&t.test(e.charAt(i)););return i}},66726:function(e,t,i){var n=i(11611),r=i(82846),s=i(91936),o=Math.max,a=Math.min;e.exports=function(e,t,i){var l,c,d,u,f,x,h=0,L=!1,g=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function m(t){var i=l,n=c;return l=c=void 0,h=t,u=e.apply(n,i)}function j(e){var i=e-x,n=e-h;return void 0===x||i>=t||i<0||g&&n>=d}function p(){var e,i,n,s=r();if(j(s))return I(s);f=setTimeout(p,(e=s-x,i=s-h,n=t-e,g?a(n,d-i):n))}function I(e){return(f=void 0,v&&l)?m(e):(l=c=void 0,u)}function _(){var e,i=r(),n=j(i);if(l=arguments,c=this,x=i,n){if(void 0===f)return h=e=x,f=setTimeout(p,t),L?m(e):u;if(g)return clearTimeout(f),f=setTimeout(p,t),m(x)}return void 0===f&&(f=setTimeout(p,t)),u}return t=s(t)||0,n(i)&&(L=!!i.leading,d=(g="maxWait"in i)?o(s(i.maxWait)||0,t):d,v="trailing"in i?!!i.trailing:v),_.cancel=function(){void 0!==f&&clearTimeout(f),h=0,l=x=c=f=void 0},_.flush=function(){return void 0===f?u:I(r())},_}},11611:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},55193:function(e,t,i){var n=i(99736),r=i(92360);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==n(e)}},82846:function(e,t,i){var n=i(77400);e.exports=function(){return n.Date.now()}},91936:function(e,t,i){var n=i(74833),r=i(11611),s=i(55193),o=0/0,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(s(e))return o;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var i=l.test(e);return i||c.test(e)?d(e.slice(2),i?2:8):a.test(e)?o:+e}},45550:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/activity",function(){return i(3680)}])},30952:function(e,t,i){"use strict";i.d(t,{f:function(){return l}});var n=i(24246),r=i(66726),s=i.n(r),o=i(27378),a=i(26917);let l=e=>{let{value:t,onChange:i,placeholder:r,...l}=e,[c,d]=(0,o.useState)(t),u=s()(i,500),f=(0,o.useCallback)(e=>{d(e),u(e)},[]);return(0,n.jsx)(a.Z,{value:c,onChange:f,onClear:()=>{d(""),i("")},placeholder:r,...l})}},35287:function(e,t,i){"use strict";var n=i(24246),r=i(91942),s=i(88038),o=i.n(s);i(27378),t.Z=e=>{let{children:t,title:i,mainProps:s}=e;return(0,n.jsxs)(r.kCb,{"data-testid":i,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,n.jsxs)(o(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsx)(r.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...s,children:t})]})}},58754:function(e,t,i){"use strict";var n=i(24246),r=i(91942),s=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:o=!0,children:a,rightContent:l,style:c,...d}=e;return(0,n.jsxs)("div",{...d,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,n.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(r.lQT,{className:i||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!i&&(0,n.jsx)(s.m,{className:a?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),a]})}},14047:function(e,t,i){"use strict";i.d(t,{H:function(){return s},V:function(){return n.V}});var n=i(84306),r=i(812);let s=()=>{let{errorAlert:e}=(0,n.V)();return{handleError:t=>{let i="An unexpected error occurred. Please try again.";(0,r.Ot)(t)?i=t.data.detail:(0,r.tB)(t)&&(i=t.data.detail[0].msg),e(i)}}}},84306:function(e,t,i){"use strict";i.d(t,{V:function(){return s}});var n=i(24246),r=i(91942);let s=()=>{let e=(0,r.pmc)();return{errorAlert:(t,i,s)=>{let o={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=e;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:t})]}),(0,n.jsx)(r.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,o):e(o)},successAlert:(t,i,s)=>{let o={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=e;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:t})]}),(0,n.jsx)(r.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,o):e(o)}}}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return c}});var n=i(24246),r=i(91942),s=i(79894),o=i.n(s),a=i(27378);let{Text:l}=r.AntTypography,c=e=>{let{items:t,...i}=e,s=(0,a.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let s=i===t.length-1,a={...e},c=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,n.jsx)(l,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:a.title})),c)?a.title=(0,n.jsx)(r.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,n.jsx)(o(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,n.jsx)(r.zrq,{items:s,...i})}},79494:function(e,t,i){"use strict";var n=i(24246),r=i(91942);t.Z=e=>{let{title:t,icon:i,type:s,...o}=e;return(0,n.jsx)(r.wpx,{size:"small",type:s,"data-testid":"action-".concat(t),icon:i,iconPosition:"start",...o,children:t})}},38347:function(e,t,i){"use strict";var n=i(24246),r=i(91942),s=i(56839);t.Z=()=>(0,n.jsxs)(r.J2e,{isLazy:!0,trigger:"hover",children:[(0,n.jsx)(r.xol,{children:(0,n.jsx)(r.UOT,{color:"gray.400"})}),(0,n.jsxs)(r.yky,{bgColor:"gray.800",color:"white",fontSize:"sm",w:"auto",border:"none",children:[(0,n.jsx)(r.Ytg,{fontWeight:"semibold",border:"none",pb:0,children:"Activity legend:"}),(0,n.jsx)(r.QHN,{bgColor:"gray.800"}),(0,n.jsx)(r.baG,{border:"none",children:(0,n.jsxs)(r.MIq,{columns:2,spacing:2,children:[(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(s.Rv,{})," Change detected"]}),(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(s.$P,{})," Data labeled"]}),(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(s.zj,{})," Monitoring"]}),(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(s.dK,{})," Addition detected"]}),(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(s.Kr,{})," Unmonitored"]}),(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(s.q1,{})," Removal detected"]})]})})]})]})},47182:function(e,t,i){"use strict";var n=i(86677),r=i(77830);t.Z=()=>{let e=(0,n.useRouter)();return{monitorId:e.query.monitorId,resourceUrn:e.query.resourceUrn,navigateToDetectionResults:t=>{let{resourceUrn:i,filterTabIndex:n}=t;e.push({pathname:r.dS,query:{resourceUrn:i,filterTabIndex:n}})},navigateToDiscoveryResults:t=>{let{resourceUrn:i,filterTabIndex:n}=t;e.push({pathname:r.Sj,query:{resourceUrn:i,filterTabIndex:n}})}}}},56839:function(e,t,i){"use strict";i.d(t,{dK:function(){return d},Rv:function(){return x},$P:function(){return f},zj:function(){return h},Kr:function(){return L},q1:function(){return u},QL:function(){return g}});var n=i(24246),r=i(91942);let s=(0,r.IUT)({displayName:"CircleIcon",viewBox:"0 0 200 200",path:(0,n.jsx)("path",{fill:"currentColor",d:"M 100, 100 m -75, 0 a 75,75 0 1,0 150,0 a 75,75 0 1,0 -150,0"})}),o=(0,r.IUT)({displayName:"RightDownArrowIcon",viewBox:"0 0 8 8",path:(0,n.jsx)("path",{fill:"currentColor",d:"M7.23192 8H8V7.23192V1.85539V1.08731H6.46385V1.85539V5.37654L1.62976 0.544855L1.08731 0L0 1.08731L0.542454 1.62976L5.37654 6.46385H1.85539H1.08731V8H1.85539H7.23192Z"})}),a=(0,r.IUT)({displayName:"RightUpArrowIcon",viewBox:"0 0 8 8",path:(0,n.jsx)("path",{fill:"currentColor",d:"M7.23192 0H8V0.768077V6.14461V6.91269H6.46385V6.14461V2.62346L1.62976 7.45515L1.08731 8L0 6.91269L0.542454 6.37024L5.37654 1.53615H1.85539H1.08731V0H1.85539H7.23192Z"})}),l=(0,r.IUT)({displayName:"TagIcon",viewBox:"0 0 9 10",path:(0,n.jsx)("path",{fill:"currentColor",d:"M0 0.5V5L4.5 9.5L9 5L4.5 0.5H0ZM2.25 2.10714C2.4205 2.10714 2.58401 2.17487 2.70457 2.29543C2.82513 2.41599 2.89286 2.5795 2.89286 2.75C2.89286 2.9205 2.82513 3.08401 2.70457 3.20457C2.58401 3.32513 2.4205 3.39286 2.25 3.39286C2.0795 3.39286 1.91599 3.32513 1.79543 3.20457C1.67487 3.08401 1.60714 2.9205 1.60714 2.75C1.60714 2.5795 1.67487 2.41599 1.79543 2.29543C1.91599 2.17487 2.0795 2.10714 2.25 2.10714Z"})});var c=i(28278);let d=()=>(0,n.jsx)(a,{color:"green.400",boxSize:2,mr:2,"data-testid":"add-icon"}),u=()=>(0,n.jsx)(o,{color:"red.400",boxSize:2,mr:2,"data-testid":"remove-icon"}),f=()=>(0,n.jsx)(l,{color:"orange.400",boxSize:3,mr:1,"data-testid":"classify-icon"}),x=()=>(0,n.jsx)(s,{color:"blue.400",boxSize:2.5,mb:"2px",mr:"6px","data-testid":"change-icon"}),h=()=>(0,n.jsx)(s,{color:"green.400",boxSize:2,mr:2,"data-testid":"monitored-icon"}),L=()=>(0,n.jsx)(s,{color:"red.400",boxSize:2,mr:2,"data-testid":"muted-icon"}),g={[c.E.ADDITION]:(0,n.jsx)(d,{}),[c.E.REMOVAL]:(0,n.jsx)(u,{}),[c.E.CLASSIFICATION]:(0,n.jsx)(f,{}),[c.E.CHANGE]:(0,n.jsx)(x,{}),[c.E.MONITORED]:(0,n.jsx)(h,{}),[c.E.MUTED]:(0,n.jsx)(L,{}),[c.E.IN_PROGRESS]:(0,n.jsx)(()=>(0,n.jsx)(s,{color:"orange.400",boxSize:2,mr:2,"data-testid":"in-progress-icon"}),{}),[c.E.NONE]:null}},54409:function(e,t,i){"use strict";i.d(t,{Z:function(){return h}});var n=i(24246),r=i(91942),s=i(812),o=i(14047),a=i(7448),l=i(31883);let c=(0,r.IUT)({displayName:"MonitorOffIcon",viewBox:"0 0 12 12",path:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.47125 1H5.85H6.15H6.51188L6.58875 1.36914L7.52062 5.83268L6.42408 4.98635L6.03375 3.11719L5.8038 4.50761L4.99323 3.882L5.40562 1.38867L5.47125 1ZM4.80795 5.0022L4.67675 5.79545L5.48735 6.42109L5.61854 5.62783L4.80795 5.0022ZM6.73856 6.49227L6.96125 7.55866L8.42407 8.6877L8.69498 8.00228L7.94864 7.42624L7.88625 7.58398L7.83501 7.33853L6.73856 6.49227ZM8.33138 6.45844L9.07755 7.03434L9.30188 6.4668H11.55H12V5.5293H11.55H9H8.69812L8.58375 5.82031L8.33138 6.45844ZM7.27551 9.06443L7.35399 9.125H7.28813L7.27551 9.06443ZM4.49147 6.91566L5.30209 7.54131L4.79437 10.6113L4.72875 11H4.35H4.05H3.69563L3.61313 10.6406L2.64563 6.46875H0.45H0V5.53125H0.45H2.69777L3.49646 6.1477L4.15125 8.97266L4.49147 6.91566Z",fill:"currentColor"}),(0,n.jsx)("g",{"clip-path":"url(#clip0_341_3102)",children:(0,n.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.6755 10.4168L0.164222 2.304L0.775218 1.51237L11.2865 9.62517L10.6755 10.4168Z",fill:"currentColor"})}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"clip0_341_3102",children:(0,n.jsx)("rect",{width:"11.5",height:"9",fill:"white",transform:"translate(0 1.5)"})})})]})}),d=(0,r.IUT)({displayName:"MonitorOnIcon",viewBox:"0 0 12 10",path:(0,n.jsx)("path",{d:"M5.47125 0H5.85H6.15H6.51188L6.58875 0.369141L7.88625 6.58398L8.58375 4.82031L8.69812 4.5293H9H11.55H12V5.4668H11.55H9.30188L8.36625 7.83398L8.25188 8.125H7.95H7.65H7.28813L7.21125 7.75586L6.03375 2.11719L4.79437 9.61133L4.72875 10H4.35H4.05H3.69563L3.61313 9.64062L2.64563 5.46875H0.45H0V4.53125H0.45H3H3.35438L3.43688 4.89062L4.15125 7.97266L5.40562 0.388672L5.47125 0Z",fill:"currentColor"})});var u=i(79494),f=i(70675),x=i(7940),h=e=>{let{resource:t,ignoreChildActions:i=!1}=e,h=(0,x.G)(t),[L,{isLoading:g}]=(0,f.v8)(),[v,{isLoading:m}]=(0,f.vi)(),[j,{isLoading:p}]=(0,f.Tl)(),{successAlert:I,errorAlert:_}=(0,o.V)(),C=async()=>{let e=await L({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id});(0,l.D4)(e)?_((0,s.e$)(e.error,"Failed to confirm resource")):I("Data discovery has started. The results may take some time to appear in the “Data discovery“ tab.","".concat(t.name||"The resource"," is now being monitored."))},A=async()=>{let e=await j({staged_resource_urn:t.urn});(0,l.D4)(e)?_((0,s.e$)(e.error),"Failed to un-mute resource"):I("".concat(t.name||"The resource"," has been un-muted and is now being monitored."))},T=async()=>{let e=await L({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id,unmute_children:!0,classify_monitored_resources:!0});(0,l.D4)(e)?_((0,s.e$)(e.error),"Failed to un-mute resource"):I("Data discovery has started. The results may take some time to appear in the “Data discovery“ tab.","".concat(t.name||"The resource"," is now being monitored."))},D=async()=>{let e=await L({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id});(0,l.D4)(e)?_((0,s.e$)(e.error),"Failed to confirm resource"):I('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},E=async()=>{let e=await v({staged_resource_urn:t.urn});(0,l.D4)(e)?_((0,s.e$)(e.error),"Failed to mute resource"):I("Ignored data will not be monitored for changes or added to Fides datasets.","".concat(t.name||"Resource"," ignored"))},S=g||m||p,{diff_status:b,child_diff_statuses:y}=t,N=h===a.D$.SCHEMA,O=h===a.D$.FIELD,w=N&&void 0===b||!O&&b===a.LL.ADDITION,Z=b!==a.LL.MUTED,M=b===a.LL.MUTED&&!O,R=b===a.LL.MUTED&&O,H=y&&(y[a.LL.ADDITION]||y[a.LL.REMOVAL]),F=b===a.LL.MONITORED&&!i&&H;return(0,n.jsxs)(r.Ugi,{children:[w&&(0,n.jsx)(u.Z,{title:"Monitor",icon:(0,n.jsx)(d,{}),onClick:C,disabled:S,loading:g}),R&&(0,n.jsx)(u.Z,{title:"Un-Mute",icon:(0,n.jsx)(d,{}),onClick:A,disabled:S,loading:g}),M&&(0,n.jsx)(u.Z,{title:"Monitor",icon:(0,n.jsx)(d,{}),onClick:T,disabled:S,loading:g}),F&&(0,n.jsx)(u.Z,{title:"Confirm",icon:(0,n.jsx)(r.nQG,{}),onClick:D,disabled:S,loading:g}),Z&&(0,n.jsx)(u.Z,{title:"Ignore",icon:(0,n.jsx)(c,{}),onClick:E,disabled:S,loading:m})]})}},91761:function(e,t,i){"use strict";var n=i(24246),r=i(91942),s=i(812),o=i(14047),a=i(7940),l=i(98559),c=i(7448),d=i(79494),u=i(70675);t.Z=e=>{let{resource:t}=e,[i,{isLoading:f}]=(0,u.v8)(),[x,{isLoading:h}]=(0,u.cM)(),[L,{isLoading:g}]=(0,u.vi)(),v=h||g||f,{diff_status:m,child_diff_statuses:j,top_level_field_name:p}=t,{successAlert:I,errorAlert:_}=(0,o.V)(),C=m===c.LL.CLASSIFICATION_ADDITION||m===c.LL.CLASSIFICATION_UPDATE,A=j&&(j[c.LL.CLASSIFICATION_ADDITION]||j[c.LL.CLASSIFICATION_UPDATE]),T=(C||A)&&!p,D=C||A,E=(0,a.G)(t)!==c.D$.FIELD,S=T&&D&&E,b=async()=>{let e=await x({staged_resource_urn:t.urn});(0,s.D4)(e)?_((0,s.e$)(e.error),"Failed to promote resource"):I('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},y=async()=>{let e=await L({staged_resource_urn:t.urn});(0,s.D4)(e)?_((0,s.e$)(e.error),"Failed to mute resource"):I("Ignored changes will not be added to a Fides dataset.","".concat(t.name||"Changes"," ignored"))},N=async()=>{let e=await i({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id,start_classification:!0,classify_monitored_resources:!0});(0,s.D4)(e)?_((0,s.e$)(e.error),"Failed to reclassify resource"):I("Reclassification of ".concat((0,l.Z)(t)||"the resource"," has begun. The results may take some time to appear in the “Data discovery“ tab."),"Reclassification started")};return(0,n.jsxs)(r.Ugi,{gap:2,children:[T&&(0,n.jsx)(d.Z,{title:"Confirm",icon:(0,n.jsx)(r.nQG,{}),onClick:b,disabled:v,loading:h}),D&&(0,n.jsx)(d.Z,{title:"Ignore",icon:(0,n.jsx)(r.tpL,{}),onClick:y,disabled:v,loading:g}),E&&!S&&(0,n.jsx)(d.Z,{title:"Reclassify",icon:(0,n.jsx)(r.nyI,{}),onClick:N,disabled:v,loading:f}),S&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.LZC,{}),(0,n.jsxs)(r.v2r,{children:[(0,n.jsx)(r.j2t,{as:r.wpx,size:"small",type:"text",icon:(0,n.jsx)(r.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-overflow-btn"}),(0,n.jsx)(r.qyq,{children:(0,n.jsx)(r.sNh,{onClick:N,icon:(0,n.jsx)(r.nyI,{}),"data-testid":"action-reclassify",children:"Reclassify"})})]})]})]})}},87667:function(e,t,i){"use strict";var n=i(24246),r=i(91942),s=i(56839),o=i(20449),a=i(98559),l=i(80356);t.Z=e=>{let{result:t,changeTypeOverride:i}=e,c=null!=i?i:(0,o.Z)(t);return(0,n.jsxs)(r.kCb,{alignItems:"center",height:"100%",children:[(0,n.jsx)(r.esZ,{title:c,children:(0,n.jsx)("span",{children:s.QL[c]})}),(0,n.jsx)(r.xvT,{fontSize:"xs",lineHeight:4,fontWeight:(0,l.Z)(t)?"semibold":"normal",overflow:"hidden",textOverflow:"ellipsis",children:(0,a.Z)(t)})]})}},50169:function(e,t,i){"use strict";var n=i(24246),r=i(14481),s=i(28278),o=i(20449);let a={[s.E.MUTED]:{color:"marble",label:"Unmonitored"},[s.E.MONITORED]:{color:"success",label:"Monitoring"},[s.E.IN_PROGRESS]:{color:"info",label:"Classifying"}};t.Z=e=>{var t,i,s,l,c;let{result:d,changeTypeOverride:u}=e;if(null===(t=d.user_assigned_data_categories)||void 0===t?void 0:t.length)return(0,n.jsx)(r.A4,{color:"success",value:"Reviewed"});let f=null!=u?u:(0,o.Z)(d);return(0,n.jsx)(r.A4,{color:null!==(l=null===(i=a[f])||void 0===i?void 0:i.color)&&void 0!==l?l:"warning",value:null!==(c=null===(s=a[f])||void 0===s?void 0:s.label)&&void 0!==c?c:"Pending review"})}},28278:function(e,t,i){"use strict";var n,r;i.d(t,{E:function(){return n}}),(r=n||(n={})).ADDITION="Addition",r.CHANGE="Change",r.REMOVAL="Removal",r.CLASSIFICATION="Classification",r.IN_PROGRESS="Classifying",r.MONITORED="Monitoring",r.MUTED="Unmonitored",r.NONE="--"},74241:function(e,t){"use strict";t.Z=e=>{let t=e.split(".");return t.length>1?t[1]:""}},20449:function(e,t,i){"use strict";var n=i(28278),r=i(7448);t.Z=e=>e.diff_status===r.LL.ADDITION?n.E.ADDITION:e.diff_status===r.LL.REMOVAL?n.E.REMOVAL:e.diff_status===r.LL.CLASSIFYING||e.diff_status===r.LL.CLASSIFICATION_QUEUED?n.E.IN_PROGRESS:e.diff_status===r.LL.CLASSIFICATION_ADDITION||e.diff_status===r.LL.CLASSIFICATION_UPDATE?n.E.CLASSIFICATION:e.child_diff_statuses?e.child_diff_statuses[r.LL.CLASSIFYING]||e.child_diff_statuses[r.LL.CLASSIFICATION_QUEUED]?n.E.IN_PROGRESS:e.child_diff_statuses[r.LL.CLASSIFICATION_ADDITION]||e.child_diff_statuses[r.LL.CLASSIFICATION_UPDATE]?n.E.CLASSIFICATION:e.child_diff_statuses[r.LL.ADDITION]||e.child_diff_statuses[r.LL.REMOVAL]?n.E.CHANGE:e.diff_status===r.LL.MONITORED?n.E.MONITORED:e.diff_status===r.LL.MUTED?n.E.MUTED:n.E.NONE:n.E.NONE},7940:function(e,t,i){"use strict";i.d(t,{G:function(){return r}});var n=i(7448);let r=e=>{var t,i,r;return e?e.resource_type?e.resource_type:(null===(t=e.schemas)||void 0===t?void 0:t.length)?n.D$.DATABASE:(null===(i=e.tables)||void 0===i?void 0:i.length)?n.D$.SCHEMA:(null===(r=e.fields)||void 0===r?void 0:r.length)?n.D$.TABLE:n.D$.FIELD:void 0}},98559:function(e,t){"use strict";t.Z=e=>{let{name:t,urn:i,monitor_config_id:n,database_name:r,schema_name:s,table_name:o,top_level_field_name:a,top_level_field_urn:l}=e;if(!a)return t;let c=i.split(".");return l?i.replace("".concat(l).concat("."),""):([n,r,s,o,a].forEach(e=>{if(e){let t=c.indexOf(e);t>-1&&c.splice(t,1)}}),c.join("."))}},80285:function(e,t){"use strict";t.Z=e=>e.urn},36168:function(e,t){"use strict";t.Z=e=>{var t;return!!e.parent_table_urn&&null!==(t=e.sub_field_urns)&&void 0!==t&&!!t.length&&!e.top_level_field_name}},80356:function(e,t,i){"use strict";var n=i(7940),r=i(36168),s=i(7448);t.Z=e=>(0,n.G)(e)!==s.D$.FIELD||(0,r.Z)(e)},3680:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return O}});var n,r,s=i(24246),o=i(27378),a=i(35287),l=i(58754),c=i(47182),d=i(92222),u=i(59003),f=i(91942),x=i(14481),h=i(72625),L=i(70675),g=i(38347),v=i(87667),m=i(50169),j=i(80285),p=i(30952);(n=r||(r={})).DATASET="Dataset",n.CLASSIFICATION="Classification";var I=i(74241),_=i(28278),C=i(20449),A=e=>(0,C.Z)(e)===_.E.CLASSIFICATION?r.CLASSIFICATION:r.DATASET,T=i(54409),D=i(91761);let E={items:[],total:0,page:1,size:50,pages:1},S=()=>(0,s.jsx)(f.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,s.jsxs)(f.gCW,{children:[(0,s.jsx)(f.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,s.jsx)(f.xvT,{fontSize:"sm",children:"You're up to date!"})]})}),b=(0,d.Cl)();var y=e=>{let{onRowClick:t,statusFilters:i,childsStatusFilters:n}=e,[a,l]=(0,o.useState)(""),{PAGE_SIZES:c,pageSize:_,setPageSize:C,onPreviousPageClick:y,isPreviousPageDisabled:N,onNextPageClick:O,isNextPageDisabled:w,startRange:Z,endRange:M,pageIndex:R,setTotalPages:H}=(0,x.oi)(),{isFetching:F,isLoading:V,data:k}=(0,L.z8)({diff_status:i,child_diff_status:n,page:R,size:_,search:a}),{items:U,total:P,pages:z}=(0,o.useMemo)(()=>null!=k?k:E,[k]);(0,o.useEffect)(()=>{H(z)},[z,H]);let $=(0,o.useMemo)(()=>[b.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(v.Z,{result:e.row.original}),header:e=>(0,s.jsx)(x.Rr,{value:"Name",...e})}),b.accessor(e=>e.urn,{id:"project",cell:e=>(0,s.jsx)(x.G3,{value:(0,I.Z)(e.getValue())}),header:e=>(0,s.jsx)(x.Rr,{value:"Project",...e})}),b.display({id:"status",cell:e=>(0,s.jsx)(m.Z,{result:e.row.original}),header:e=>(0,s.jsx)(x.Rr,{value:"Status",...e})}),b.accessor(e=>e.system,{id:"system",cell:e=>(0,s.jsx)(x.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(x.Rr,{value:"System",...e})}),b.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,s.jsx)(x.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(x.Rr,{value:"Detected by",...e})}),b.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,s.jsx)(h.Cy,{time:e.getValue()}),header:e=>(0,s.jsx)(x.Rr,{value:"When",...e})}),b.accessor(e=>e,{id:"action",cell:e=>A(e.getValue())===r.DATASET?(0,s.jsx)(T.Z,{resource:e.getValue()}):(0,s.jsx)(D.Z,{resource:e.getValue()}),header:e=>(0,s.jsx)(x.Rr,{value:"Action",...e})})],[]),G=(0,u.b7)({getCoreRowModel:(0,d.sC)(),getGroupedRowModel:(0,d.qe)(),getExpandedRowModel:(0,d.rV)(),getRowId:j.Z,columns:$,manualPagination:!0,data:U,columnResizeMode:"onChange"});return V?(0,s.jsx)(x.I4,{rowHeight:36,numRows:36}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(x.Q$,{children:(0,s.jsxs)(f.kCb,{gap:6,align:"center",children:[(0,s.jsx)(f.xuv,{flexShrink:0,children:(0,s.jsx)(p.f,{value:a,onChange:l})}),(0,s.jsx)(g.Z,{})]})}),(0,s.jsx)(x.ZK,{tableInstance:G,onRowClick:t,emptyTableNotice:(0,s.jsx)(S,{})}),(0,s.jsx)(x.s8,{totalRows:P||0,pageSizes:c,setPageSize:C,onPreviousPageClick:y,isPreviousPageDisabled:N||F,onNextPageClick:O,isNextPageDisabled:w||F,startRange:Z,endRange:M})]})},N=i(7448),O=()=>{let{navigateToDetectionResults:e,navigateToDiscoveryResults:t}=(0,c.Z)();return(0,s.jsxs)(a.Z,{title:"Data discovery",children:[(0,s.jsx)(l.Z,{heading:"All activity"}),(0,s.jsx)(y,{onRowClick:i=>{if(A(i)===r.DATASET){e({resourceUrn:i.urn});return}t({resourceUrn:i.urn})},statusFilters:[N.LL.ADDITION,N.LL.REMOVAL,N.LL.CLASSIFICATION_ADDITION,N.LL.CLASSIFICATION_UPDATE],childsStatusFilters:[N.LL.ADDITION,N.LL.REMOVAL,N.LL.CLASSIFICATION_ADDITION,N.LL.CLASSIFICATION_UPDATE]})]})}},31883:function(e,t,i){"use strict";i.d(t,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=i(19043)}},function(e){e.O(0,[8033,6060,4481,2888,9774,179],function(){return e(e.s=45550)}),_N_E=e.O()}]);
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7477],{74833:function(e,t,i){var n=i(56127),r=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(r,""):e}},56127:function(e){var t=/\s/;e.exports=function(e){for(var i=e.length;i--&&t.test(e.charAt(i)););return i}},66726:function(e,t,i){var n=i(11611),r=i(82846),s=i(91936),o=Math.max,a=Math.min;e.exports=function(e,t,i){var l,c,d,u,f,x,h=0,L=!1,g=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function m(t){var i=l,n=c;return l=c=void 0,h=t,u=e.apply(n,i)}function j(e){var i=e-x,n=e-h;return void 0===x||i>=t||i<0||g&&n>=d}function p(){var e,i,n,s=r();if(j(s))return I(s);f=setTimeout(p,(e=s-x,i=s-h,n=t-e,g?a(n,d-i):n))}function I(e){return(f=void 0,v&&l)?m(e):(l=c=void 0,u)}function C(){var e,i=r(),n=j(i);if(l=arguments,c=this,x=i,n){if(void 0===f)return h=e=x,f=setTimeout(p,t),L?m(e):u;if(g)return clearTimeout(f),f=setTimeout(p,t),m(x)}return void 0===f&&(f=setTimeout(p,t)),u}return t=s(t)||0,n(i)&&(L=!!i.leading,d=(g="maxWait"in i)?o(s(i.maxWait)||0,t):d,v="trailing"in i?!!i.trailing:v),C.cancel=function(){void 0!==f&&clearTimeout(f),h=0,l=x=c=f=void 0},C.flush=function(){return void 0===f?u:I(r())},C}},11611:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},55193:function(e,t,i){var n=i(99736),r=i(92360);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==n(e)}},82846:function(e,t,i){var n=i(77400);e.exports=function(){return n.Date.now()}},91936:function(e,t,i){var n=i(74833),r=i(11611),s=i(55193),o=0/0,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(s(e))return o;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var i=l.test(e);return i||c.test(e)?d(e.slice(2),i?2:8):a.test(e)?o:+e}},45550:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/activity",function(){return i(3680)}])},30952:function(e,t,i){"use strict";i.d(t,{f:function(){return l}});var n=i(24246),r=i(66726),s=i.n(r),o=i(27378),a=i(26917);let l=e=>{let{value:t,onChange:i,placeholder:r,...l}=e,[c,d]=(0,o.useState)(t),u=s()(i,500),f=(0,o.useCallback)(e=>{d(e),u(e)},[]);return(0,n.jsx)(a.Z,{value:c,onChange:f,onClear:()=>{d(""),i("")},placeholder:r,...l})}},35287:function(e,t,i){"use strict";var n=i(24246),r=i(91942),s=i(88038),o=i.n(s);i(27378),t.Z=e=>{let{children:t,title:i,mainProps:s}=e;return(0,n.jsxs)(r.kCb,{"data-testid":i,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,n.jsxs)(o(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsx)(r.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...s,children:t})]})}},58754:function(e,t,i){"use strict";var n=i(24246),r=i(91942),s=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:o=!0,children:a,rightContent:l,style:c,...d}=e;return(0,n.jsxs)("div",{...d,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,n.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(r.lQT,{className:i||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!i&&(0,n.jsx)(s.m,{className:a?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),a]})}},14047:function(e,t,i){"use strict";i.d(t,{H:function(){return s},V:function(){return n.V}});var n=i(84306),r=i(812);let s=()=>{let{errorAlert:e}=(0,n.V)();return{handleError:t=>{let i="An unexpected error occurred. Please try again.";(0,r.Ot)(t)?i=t.data.detail:(0,r.tB)(t)&&(i=t.data.detail[0].msg),e(i)}}}},84306:function(e,t,i){"use strict";i.d(t,{V:function(){return s}});var n=i(24246),r=i(91942);let s=()=>{let e=(0,r.pmc)();return{errorAlert:(t,i,s)=>{let o={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=e;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:t})]}),(0,n.jsx)(r.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,o):e(o)},successAlert:(t,i,s)=>{let o={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=e;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:t})]}),(0,n.jsx)(r.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,o):e(o)}}}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return c}});var n=i(24246),r=i(91942),s=i(79894),o=i.n(s),a=i(27378);let{Text:l}=r.AntTypography,c=e=>{let{items:t,...i}=e,s=(0,a.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let s=i===t.length-1,a={...e},c=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,n.jsx)(l,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:a.title})),c)?a.title=(0,n.jsx)(r.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,n.jsx)(o(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,n.jsx)(r.zrq,{items:s,...i})}},79494:function(e,t,i){"use strict";var n=i(24246),r=i(91942);t.Z=e=>{let{title:t,icon:i,type:s,...o}=e;return(0,n.jsx)(r.wpx,{size:"small",type:s,"data-testid":"action-".concat(t),icon:i,iconPosition:"start",...o,children:t})}},38347:function(e,t,i){"use strict";var n=i(24246),r=i(91942),s=i(56839);t.Z=()=>(0,n.jsxs)(r.J2e,{isLazy:!0,trigger:"hover",children:[(0,n.jsx)(r.xol,{children:(0,n.jsx)(r.UOT,{color:"gray.400"})}),(0,n.jsxs)(r.yky,{bgColor:"gray.800",color:"white",fontSize:"sm",w:"auto",border:"none",children:[(0,n.jsx)(r.Ytg,{fontWeight:"semibold",border:"none",pb:0,children:"Activity legend:"}),(0,n.jsx)(r.QHN,{bgColor:"gray.800"}),(0,n.jsx)(r.baG,{border:"none",children:(0,n.jsxs)(r.MIq,{columns:2,spacing:2,children:[(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(s.Rv,{})," Change detected"]}),(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(s.$P,{})," Data labeled"]}),(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(s.zj,{})," Monitoring"]}),(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(s.dK,{})," Addition detected"]}),(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(s.Kr,{})," Unmonitored"]}),(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(s.q1,{})," Removal detected"]})]})})]})]})},47182:function(e,t,i){"use strict";var n=i(86677),r=i(77830);t.Z=()=>{let e=(0,n.useRouter)();return{monitorId:e.query.monitorId,resourceUrn:e.query.resourceUrn,navigateToDetectionResults:t=>{let{resourceUrn:i,filterTabIndex:n}=t;e.push({pathname:r.dS,query:{resourceUrn:i,filterTabIndex:n}})},navigateToDiscoveryResults:t=>{let{resourceUrn:i,filterTabIndex:n}=t;e.push({pathname:r.Sj,query:{resourceUrn:i,filterTabIndex:n}})}}}},56839:function(e,t,i){"use strict";i.d(t,{dK:function(){return d},Rv:function(){return x},$P:function(){return f},zj:function(){return h},Kr:function(){return L},q1:function(){return u},QL:function(){return g}});var n=i(24246),r=i(91942);let s=(0,r.IUT)({displayName:"CircleIcon",viewBox:"0 0 200 200",path:(0,n.jsx)("path",{fill:"currentColor",d:"M 100, 100 m -75, 0 a 75,75 0 1,0 150,0 a 75,75 0 1,0 -150,0"})}),o=(0,r.IUT)({displayName:"RightDownArrowIcon",viewBox:"0 0 8 8",path:(0,n.jsx)("path",{fill:"currentColor",d:"M7.23192 8H8V7.23192V1.85539V1.08731H6.46385V1.85539V5.37654L1.62976 0.544855L1.08731 0L0 1.08731L0.542454 1.62976L5.37654 6.46385H1.85539H1.08731V8H1.85539H7.23192Z"})}),a=(0,r.IUT)({displayName:"RightUpArrowIcon",viewBox:"0 0 8 8",path:(0,n.jsx)("path",{fill:"currentColor",d:"M7.23192 0H8V0.768077V6.14461V6.91269H6.46385V6.14461V2.62346L1.62976 7.45515L1.08731 8L0 6.91269L0.542454 6.37024L5.37654 1.53615H1.85539H1.08731V0H1.85539H7.23192Z"})}),l=(0,r.IUT)({displayName:"TagIcon",viewBox:"0 0 9 10",path:(0,n.jsx)("path",{fill:"currentColor",d:"M0 0.5V5L4.5 9.5L9 5L4.5 0.5H0ZM2.25 2.10714C2.4205 2.10714 2.58401 2.17487 2.70457 2.29543C2.82513 2.41599 2.89286 2.5795 2.89286 2.75C2.89286 2.9205 2.82513 3.08401 2.70457 3.20457C2.58401 3.32513 2.4205 3.39286 2.25 3.39286C2.0795 3.39286 1.91599 3.32513 1.79543 3.20457C1.67487 3.08401 1.60714 2.9205 1.60714 2.75C1.60714 2.5795 1.67487 2.41599 1.79543 2.29543C1.91599 2.17487 2.0795 2.10714 2.25 2.10714Z"})});var c=i(28278);let d=()=>(0,n.jsx)(a,{color:"green.400",boxSize:2,mr:2,"data-testid":"add-icon"}),u=()=>(0,n.jsx)(o,{color:"red.400",boxSize:2,mr:2,"data-testid":"remove-icon"}),f=()=>(0,n.jsx)(l,{color:"orange.400",boxSize:3,mr:1,"data-testid":"classify-icon"}),x=()=>(0,n.jsx)(s,{color:"blue.400",boxSize:2.5,mb:"2px",mr:"6px","data-testid":"change-icon"}),h=()=>(0,n.jsx)(s,{color:"green.400",boxSize:2,mr:2,"data-testid":"monitored-icon"}),L=()=>(0,n.jsx)(s,{color:"red.400",boxSize:2,mr:2,"data-testid":"muted-icon"}),g={[c.E.ADDITION]:(0,n.jsx)(d,{}),[c.E.REMOVAL]:(0,n.jsx)(u,{}),[c.E.CLASSIFICATION]:(0,n.jsx)(f,{}),[c.E.CHANGE]:(0,n.jsx)(x,{}),[c.E.MONITORED]:(0,n.jsx)(h,{}),[c.E.MUTED]:(0,n.jsx)(L,{}),[c.E.IN_PROGRESS]:(0,n.jsx)(()=>(0,n.jsx)(s,{color:"orange.400",boxSize:2,mr:2,"data-testid":"in-progress-icon"}),{}),[c.E.NONE]:null}},54409:function(e,t,i){"use strict";i.d(t,{Z:function(){return h}});var n=i(24246),r=i(91942),s=i(812),o=i(14047),a=i(61317),l=i(31883);let c=(0,r.IUT)({displayName:"MonitorOffIcon",viewBox:"0 0 12 12",path:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.47125 1H5.85H6.15H6.51188L6.58875 1.36914L7.52062 5.83268L6.42408 4.98635L6.03375 3.11719L5.8038 4.50761L4.99323 3.882L5.40562 1.38867L5.47125 1ZM4.80795 5.0022L4.67675 5.79545L5.48735 6.42109L5.61854 5.62783L4.80795 5.0022ZM6.73856 6.49227L6.96125 7.55866L8.42407 8.6877L8.69498 8.00228L7.94864 7.42624L7.88625 7.58398L7.83501 7.33853L6.73856 6.49227ZM8.33138 6.45844L9.07755 7.03434L9.30188 6.4668H11.55H12V5.5293H11.55H9H8.69812L8.58375 5.82031L8.33138 6.45844ZM7.27551 9.06443L7.35399 9.125H7.28813L7.27551 9.06443ZM4.49147 6.91566L5.30209 7.54131L4.79437 10.6113L4.72875 11H4.35H4.05H3.69563L3.61313 10.6406L2.64563 6.46875H0.45H0V5.53125H0.45H2.69777L3.49646 6.1477L4.15125 8.97266L4.49147 6.91566Z",fill:"currentColor"}),(0,n.jsx)("g",{clipPath:"url(#clip0_341_3102)",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6755 10.4168L0.164222 2.304L0.775218 1.51237L11.2865 9.62517L10.6755 10.4168Z",fill:"currentColor"})}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"clip0_341_3102",children:(0,n.jsx)("rect",{width:"11.5",height:"9",fill:"white",transform:"translate(0 1.5)"})})})]})}),d=(0,r.IUT)({displayName:"MonitorOnIcon",viewBox:"0 0 12 10",path:(0,n.jsx)("path",{d:"M5.47125 0H5.85H6.15H6.51188L6.58875 0.369141L7.88625 6.58398L8.58375 4.82031L8.69812 4.5293H9H11.55H12V5.4668H11.55H9.30188L8.36625 7.83398L8.25188 8.125H7.95H7.65H7.28813L7.21125 7.75586L6.03375 2.11719L4.79437 9.61133L4.72875 10H4.35H4.05H3.69563L3.61313 9.64062L2.64563 5.46875H0.45H0V4.53125H0.45H3H3.35438L3.43688 4.89062L4.15125 7.97266L5.40562 0.388672L5.47125 0Z",fill:"currentColor"})});var u=i(79494),f=i(70675),x=i(7940),h=e=>{let{resource:t,ignoreChildActions:i=!1}=e,h=(0,x.G)(t),[L,{isLoading:g}]=(0,f.v8)(),[v,{isLoading:m}]=(0,f.vi)(),[j,{isLoading:p}]=(0,f.Tl)(),{successAlert:I,errorAlert:C}=(0,o.V)(),_=async()=>{let e=await L({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id});(0,l.D4)(e)?C((0,s.e$)(e.error,"Failed to confirm resource")):I("Data discovery has started. The results may take some time to appear in the “Data discovery“ tab.","".concat(t.name||"The resource"," is now being monitored."))},A=async()=>{let e=await j({staged_resource_urn:t.urn});(0,l.D4)(e)?C((0,s.e$)(e.error),"Failed to un-mute resource"):I("".concat(t.name||"The resource"," has been un-muted and is now being monitored."))},T=async()=>{let e=await L({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id,unmute_children:!0,classify_monitored_resources:!0});(0,l.D4)(e)?C((0,s.e$)(e.error),"Failed to un-mute resource"):I("Data discovery has started. The results may take some time to appear in the “Data discovery“ tab.","".concat(t.name||"The resource"," is now being monitored."))},D=async()=>{let e=await L({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id});(0,l.D4)(e)?C((0,s.e$)(e.error),"Failed to confirm resource"):I('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},E=async()=>{let e=await v({staged_resource_urn:t.urn});(0,l.D4)(e)?C((0,s.e$)(e.error),"Failed to mute resource"):I("Ignored data will not be monitored for changes or added to Fides datasets.","".concat(t.name||"Resource"," ignored"))},S=g||m||p,{diff_status:N,child_diff_statuses:b}=t,y=h===a.D$.SCHEMA,O=h===a.D$.FIELD,w=b&&(b[a.LL.CLASSIFICATION_ADDITION]||b[a.LL.CLASSIFICATION_UPDATE]),R=y&&void 0===N||!O&&N===a.LL.ADDITION||w,Z=N!==a.LL.MUTED,M=N===a.LL.MUTED&&!O,H=N===a.LL.MUTED&&O,F=b&&(b[a.LL.ADDITION]||b[a.LL.REMOVAL]),V=N===a.LL.MONITORED&&!i&&F&&!w;return(0,n.jsxs)(r.Ugi,{children:[R&&(0,n.jsx)(u.Z,{title:"Monitor",icon:(0,n.jsx)(d,{}),onClick:_,disabled:S,loading:g}),H&&(0,n.jsx)(u.Z,{title:"Un-Mute",icon:(0,n.jsx)(d,{}),onClick:A,disabled:S,loading:g}),M&&(0,n.jsx)(u.Z,{title:"Monitor",icon:(0,n.jsx)(d,{}),onClick:T,disabled:S,loading:g}),V&&(0,n.jsx)(u.Z,{title:"Confirm",icon:(0,n.jsx)(r.nQG,{}),onClick:D,disabled:S,loading:g}),Z&&(0,n.jsx)(u.Z,{title:"Ignore",icon:(0,n.jsx)(c,{}),onClick:E,disabled:S,loading:m})]})}},91761:function(e,t,i){"use strict";var n=i(24246),r=i(91942),s=i(812),o=i(14047),a=i(7940),l=i(98559),c=i(61317),d=i(79494),u=i(70675);t.Z=e=>{let{resource:t}=e,[i,{isLoading:f}]=(0,u.v8)(),[x,{isLoading:h}]=(0,u.cM)(),[L,{isLoading:g}]=(0,u.vi)(),v=h||g||f,{diff_status:m,child_diff_statuses:j,top_level_field_name:p}=t,{successAlert:I,errorAlert:C}=(0,o.V)(),_=m===c.LL.CLASSIFICATION_ADDITION||m===c.LL.CLASSIFICATION_UPDATE,A=j&&(j[c.LL.CLASSIFICATION_ADDITION]||j[c.LL.CLASSIFICATION_UPDATE]),T=(_||A)&&!p,D=_||A,E=(0,a.G)(t)!==c.D$.FIELD,S=T&&D&&E,N=async()=>{let e=await x({staged_resource_urn:t.urn});(0,s.D4)(e)?C((0,s.e$)(e.error),"Failed to promote resource"):I('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},b=async()=>{let e=await L({staged_resource_urn:t.urn});(0,s.D4)(e)?C((0,s.e$)(e.error),"Failed to mute resource"):I("Ignored changes will not be added to a Fides dataset.","".concat(t.name||"Changes"," ignored"))},y=async()=>{let e=await i({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id,start_classification:!0,classify_monitored_resources:!0});(0,s.D4)(e)?C((0,s.e$)(e.error),"Failed to reclassify resource"):I("Reclassification of ".concat((0,l.Z)(t)||"the resource"," has begun. The results may take some time to appear in the “Data discovery“ tab."),"Reclassification started")};return(0,n.jsxs)(r.Ugi,{gap:2,children:[T&&(0,n.jsx)(d.Z,{title:"Confirm",icon:(0,n.jsx)(r.nQG,{}),onClick:N,disabled:v,loading:h}),D&&(0,n.jsx)(d.Z,{title:"Ignore",icon:(0,n.jsx)(r.tpL,{}),onClick:b,disabled:v,loading:g}),E&&!S&&(0,n.jsx)(d.Z,{title:"Reclassify",icon:(0,n.jsx)(r.nyI,{}),onClick:y,disabled:v,loading:f}),S&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.LZC,{}),(0,n.jsxs)(r.v2r,{children:[(0,n.jsx)(r.j2t,{as:r.wpx,size:"small",type:"text",icon:(0,n.jsx)(r.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-overflow-btn"}),(0,n.jsx)(r.qyq,{children:(0,n.jsx)(r.sNh,{onClick:y,icon:(0,n.jsx)(r.nyI,{}),"data-testid":"action-reclassify",children:"Reclassify"})})]})]})]})}},87667:function(e,t,i){"use strict";var n=i(24246),r=i(91942),s=i(56839),o=i(20449),a=i(98559),l=i(80356);t.Z=e=>{let{result:t,changeTypeOverride:i}=e,c=null!=i?i:(0,o.Z)(t);return(0,n.jsxs)(r.kCb,{alignItems:"center",height:"100%",children:[(0,n.jsx)(r.esZ,{title:c,children:(0,n.jsx)("span",{children:s.QL[c]})}),(0,n.jsx)(r.xvT,{fontSize:"xs",lineHeight:4,fontWeight:(0,l.Z)(t)?"semibold":"normal",overflow:"hidden",textOverflow:"ellipsis",children:(0,a.Z)(t)})]})}},50169:function(e,t,i){"use strict";var n=i(24246),r=i(14481),s=i(28278),o=i(20449);let a={[s.E.MUTED]:{color:"marble",label:"Unmonitored"},[s.E.MONITORED]:{color:"success",label:"Monitoring"},[s.E.IN_PROGRESS]:{color:"info",label:"Classifying"}};t.Z=e=>{var t,i,s,l,c;let{result:d,changeTypeOverride:u}=e;if(null===(t=d.user_assigned_data_categories)||void 0===t?void 0:t.length)return(0,n.jsx)(r.A4,{color:"success",value:"Reviewed"});let f=null!=u?u:(0,o.Z)(d);return(0,n.jsx)(r.A4,{color:null!==(l=null===(i=a[f])||void 0===i?void 0:i.color)&&void 0!==l?l:"warning",value:null!==(c=null===(s=a[f])||void 0===s?void 0:s.label)&&void 0!==c?c:"Pending review"})}},28278:function(e,t,i){"use strict";var n,r;i.d(t,{E:function(){return n}}),(r=n||(n={})).ADDITION="Addition",r.CHANGE="Change",r.REMOVAL="Removal",r.CLASSIFICATION="Classification",r.IN_PROGRESS="Classifying",r.MONITORED="Monitoring",r.MUTED="Unmonitored",r.NONE="--"},74241:function(e,t){"use strict";t.Z=e=>{let t=e.split(".");return t.length>1?t[1]:""}},20449:function(e,t,i){"use strict";var n=i(28278),r=i(61317);t.Z=e=>e.diff_status===r.LL.ADDITION?n.E.ADDITION:e.diff_status===r.LL.REMOVAL?n.E.REMOVAL:e.diff_status===r.LL.CLASSIFYING||e.diff_status===r.LL.CLASSIFICATION_QUEUED?n.E.IN_PROGRESS:e.diff_status===r.LL.CLASSIFICATION_ADDITION||e.diff_status===r.LL.CLASSIFICATION_UPDATE?n.E.CLASSIFICATION:e.child_diff_statuses?e.child_diff_statuses[r.LL.CLASSIFYING]||e.child_diff_statuses[r.LL.CLASSIFICATION_QUEUED]?n.E.IN_PROGRESS:e.child_diff_statuses[r.LL.CLASSIFICATION_ADDITION]||e.child_diff_statuses[r.LL.CLASSIFICATION_UPDATE]?n.E.CLASSIFICATION:e.child_diff_statuses[r.LL.ADDITION]||e.child_diff_statuses[r.LL.REMOVAL]?n.E.CHANGE:e.diff_status===r.LL.MONITORED?n.E.MONITORED:e.diff_status===r.LL.MUTED?n.E.MUTED:n.E.NONE:n.E.NONE},7940:function(e,t,i){"use strict";i.d(t,{G:function(){return r}});var n=i(61317);let r=e=>{var t,i,r;return e?e.resource_type?e.resource_type:(null===(t=e.schemas)||void 0===t?void 0:t.length)?n.D$.DATABASE:(null===(i=e.tables)||void 0===i?void 0:i.length)?n.D$.SCHEMA:(null===(r=e.fields)||void 0===r?void 0:r.length)?n.D$.TABLE:n.D$.FIELD:void 0}},98559:function(e,t){"use strict";t.Z=e=>{let{name:t,urn:i,monitor_config_id:n,database_name:r,schema_name:s,table_name:o,top_level_field_name:a,top_level_field_urn:l}=e;if(!a)return t;let c=i.split(".");return l?i.replace("".concat(l).concat("."),""):([n,r,s,o,a].forEach(e=>{if(e){let t=c.indexOf(e);t>-1&&c.splice(t,1)}}),c.join("."))}},80285:function(e,t){"use strict";t.Z=e=>e.urn},36168:function(e,t){"use strict";t.Z=e=>{var t;return!!e.parent_table_urn&&null!==(t=e.sub_field_urns)&&void 0!==t&&!!t.length&&!e.top_level_field_name}},80356:function(e,t,i){"use strict";var n=i(7940),r=i(36168),s=i(61317);t.Z=e=>(0,n.G)(e)!==s.D$.FIELD||(0,r.Z)(e)},3680:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return O}});var n,r,s=i(24246),o=i(27378),a=i(35287),l=i(58754),c=i(47182),d=i(92222),u=i(59003),f=i(91942),x=i(14481),h=i(72625),L=i(70675),g=i(38347),v=i(87667),m=i(50169),j=i(80285),p=i(30952);(n=r||(r={})).DATASET="Dataset",n.CLASSIFICATION="Classification";var I=i(74241),C=i(28278),_=i(20449),A=e=>(0,_.Z)(e)===C.E.CLASSIFICATION?r.CLASSIFICATION:r.DATASET,T=i(54409),D=i(91761);let E={items:[],total:0,page:1,size:50,pages:1},S=()=>(0,s.jsx)(f.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,s.jsxs)(f.gCW,{children:[(0,s.jsx)(f.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,s.jsx)(f.xvT,{fontSize:"sm",children:"You're up to date!"})]})}),N=(0,d.Cl)();var b=e=>{let{onRowClick:t,statusFilters:i,childsStatusFilters:n}=e,[a,l]=(0,o.useState)(""),{PAGE_SIZES:c,pageSize:C,setPageSize:_,onPreviousPageClick:b,isPreviousPageDisabled:y,onNextPageClick:O,isNextPageDisabled:w,startRange:R,endRange:Z,pageIndex:M,setTotalPages:H}=(0,x.oi)(),{isFetching:F,isLoading:V,data:U}=(0,L.z8)({diff_status:i,child_diff_status:n,page:M,size:C,search:a}),{items:k,total:P,pages:z}=(0,o.useMemo)(()=>null!=U?U:E,[U]);(0,o.useEffect)(()=>{H(z)},[z,H]);let $=(0,o.useMemo)(()=>[N.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(v.Z,{result:e.row.original}),header:e=>(0,s.jsx)(x.Rr,{value:"Name",...e})}),N.accessor(e=>e.urn,{id:"project",cell:e=>(0,s.jsx)(x.G3,{value:(0,I.Z)(e.getValue())}),header:e=>(0,s.jsx)(x.Rr,{value:"Project",...e})}),N.display({id:"status",cell:e=>(0,s.jsx)(m.Z,{result:e.row.original}),header:e=>(0,s.jsx)(x.Rr,{value:"Status",...e})}),N.accessor(e=>e.system,{id:"system",cell:e=>(0,s.jsx)(x.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(x.Rr,{value:"System",...e})}),N.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,s.jsx)(x.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(x.Rr,{value:"Detected by",...e})}),N.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,s.jsx)(h.Cy,{time:e.getValue()}),header:e=>(0,s.jsx)(x.Rr,{value:"When",...e})}),N.accessor(e=>e,{id:"action",cell:e=>A(e.getValue())===r.DATASET?(0,s.jsx)(T.Z,{resource:e.getValue()}):(0,s.jsx)(D.Z,{resource:e.getValue()}),header:e=>(0,s.jsx)(x.Rr,{value:"Action",...e})})],[]),G=(0,u.b7)({getCoreRowModel:(0,d.sC)(),getGroupedRowModel:(0,d.qe)(),getExpandedRowModel:(0,d.rV)(),getRowId:j.Z,columns:$,manualPagination:!0,data:k,columnResizeMode:"onChange"});return V?(0,s.jsx)(x.I4,{rowHeight:36,numRows:36}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(x.Q$,{children:(0,s.jsxs)(f.kCb,{gap:6,align:"center",children:[(0,s.jsx)(f.xuv,{flexShrink:0,children:(0,s.jsx)(p.f,{value:a,onChange:l})}),(0,s.jsx)(g.Z,{})]})}),(0,s.jsx)(x.ZK,{tableInstance:G,onRowClick:t,emptyTableNotice:(0,s.jsx)(S,{})}),(0,s.jsx)(x.s8,{totalRows:P||0,pageSizes:c,setPageSize:_,onPreviousPageClick:b,isPreviousPageDisabled:y||F,onNextPageClick:O,isNextPageDisabled:w||F,startRange:R,endRange:Z})]})},y=i(61317),O=()=>{let{navigateToDetectionResults:e,navigateToDiscoveryResults:t}=(0,c.Z)();return(0,s.jsxs)(a.Z,{title:"Data discovery",children:[(0,s.jsx)(l.Z,{heading:"All activity"}),(0,s.jsx)(b,{onRowClick:i=>{if(A(i)===r.DATASET){e({resourceUrn:i.urn});return}t({resourceUrn:i.urn})},statusFilters:[y.LL.ADDITION,y.LL.REMOVAL,y.LL.CLASSIFICATION_ADDITION,y.LL.CLASSIFICATION_UPDATE],childsStatusFilters:[y.LL.ADDITION,y.LL.REMOVAL,y.LL.CLASSIFICATION_ADDITION,y.LL.CLASSIFICATION_UPDATE]})]})}},31883:function(e,t,i){"use strict";i.d(t,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=i(19043)}},function(e){e.O(0,[8033,6060,7553,4481,2888,9774,179],function(){return e(e.s=45550)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5744],{24354:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/detection/[resourceUrn]",function(){return r(42705)}])},42705:function(e,n,r){"use strict";r.r(n);var t=r(24246);r(27378);var c=r(35287),i=r(77830),u=r(58754),s=r(69828),o=r(47182),a=r(1039);n.default=()=>{let{resourceUrn:e,navigateToDetectionResults:n}=(0,o.Z)();return(0,t.jsxs)(c.Z,{title:"Data detection",children:[(0,t.jsx)(u.Z,{heading:"Data detection",children:(0,t.jsx)(s.Z,{parentLink:i.XY,resourceUrn:e,onPathClick:e=>n({resourceUrn:e})})}),(0,t.jsx)(a.Z,{resourceUrn:e})]})}}},function(e){e.O(0,[8033,6060,4481,2310,9494,5683,2888,9774,179],function(){return e(e.s=24354)}),_N_E=e.O()}]);
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5744],{24354:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/detection/[resourceUrn]",function(){return r(42705)}])},42705:function(e,n,r){"use strict";r.r(n);var t=r(24246);r(27378);var c=r(35287),i=r(77830),u=r(58754),s=r(69828),o=r(47182),a=r(1039);n.default=()=>{let{resourceUrn:e,navigateToDetectionResults:n}=(0,o.Z)();return(0,t.jsxs)(c.Z,{title:"Data detection",children:[(0,t.jsx)(u.Z,{heading:"Data detection",children:(0,t.jsx)(s.Z,{parentLink:i.XY,resourceUrn:e,onPathClick:e=>n({resourceUrn:e})})}),(0,t.jsx)(a.Z,{resourceUrn:e})]})}}},function(e){e.O(0,[8033,6060,7553,4481,2310,9494,5683,2888,9774,179],function(){return e(e.s=24354)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3453],{35041:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/detection",function(){return e(82660)}])},82660:function(n,t,e){"use strict";e.r(t);var i=e(24246);e(27378);var c=e(35287),a=e(77830),s=e(58754),u=e(69828),r=e(1039);t.default=()=>(0,i.jsxs)(c.Z,{title:"Data detection",children:[(0,i.jsx)(s.Z,{heading:"Data detection",children:(0,i.jsx)(u.Z,{parentLink:a.XY})}),(0,i.jsx)(r.Z,{})]})}},function(n){n.O(0,[8033,6060,4481,2310,9494,5683,2888,9774,179],function(){return n(n.s=35041)}),_N_E=n.O()}]);
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3453],{35041:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/detection",function(){return e(82660)}])},82660:function(n,t,e){"use strict";e.r(t);var i=e(24246);e(27378);var c=e(35287),a=e(77830),s=e(58754),u=e(69828),r=e(1039);t.default=()=>(0,i.jsxs)(c.Z,{title:"Data detection",children:[(0,i.jsx)(s.Z,{heading:"Data detection",children:(0,i.jsx)(u.Z,{parentLink:a.XY})}),(0,i.jsx)(r.Z,{})]})}},function(n){n.O(0,[8033,6060,7553,4481,2310,9494,5683,2888,9774,179],function(){return n(n.s=35041)}),_N_E=n.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1571],{11207:function(r,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/discovery/[resourceUrn]",function(){return n(55124)}])},55124:function(r,e,n){"use strict";n.r(e);var s=n(24246);n(27378);var c=n(35287),t=n(77830),i=n(58754),u=n(69828),o=n(47182),a=n(11904);e.default=()=>{let{resourceUrn:r,navigateToDiscoveryResults:e}=(0,o.Z)();return(0,s.jsxs)(c.Z,{title:"Data discovery",children:[(0,s.jsx)(i.Z,{heading:"Data discovery",children:(0,s.jsx)(u.Z,{parentLink:t.zE,resourceUrn:r,onPathClick:r=>e({resourceUrn:r})})}),(0,s.jsx)(a.Z,{resourceUrn:r})]})}}},function(r){r.O(0,[8033,6060,2858,2866,9278,4481,2310,1099,9494,1904,2888,9774,179],function(){return r(r.s=11207)}),_N_E=r.O()}]);
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1571],{11207:function(r,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/discovery/[resourceUrn]",function(){return n(55124)}])},55124:function(r,e,n){"use strict";n.r(e);var s=n(24246);n(27378);var c=n(35287),t=n(77830),i=n(58754),u=n(69828),o=n(47182),a=n(11904);e.default=()=>{let{resourceUrn:r,navigateToDiscoveryResults:e}=(0,o.Z)();return(0,s.jsxs)(c.Z,{title:"Data discovery",children:[(0,s.jsx)(i.Z,{heading:"Data discovery",children:(0,s.jsx)(u.Z,{parentLink:t.zE,resourceUrn:r,onPathClick:r=>e({resourceUrn:r})})}),(0,s.jsx)(a.Z,{resourceUrn:r})]})}}},function(r){r.O(0,[8033,6060,2858,2866,9278,7553,4481,2310,1099,9494,1904,2888,9774,179],function(){return r(r.s=11207)}),_N_E=r.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2320],{48570:function(n,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/discovery",function(){return i(49730)}])},49730:function(n,e,i){"use strict";i.r(e);var s=i(24246);i(27378);var t=i(35287),r=i(77830),c=i(58754),a=i(69828),u=i(11904);e.default=()=>(0,s.jsxs)(t.Z,{title:"Data discovery",children:[(0,s.jsx)(c.Z,{heading:"Data discovery",children:(0,s.jsx)(a.Z,{parentLink:r.zE})}),(0,s.jsx)(u.Z,{})]})}},function(n){n.O(0,[8033,6060,2858,2866,9278,4481,2310,1099,9494,1904,2888,9774,179],function(){return n(n.s=48570)}),_N_E=n.O()}]);
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2320],{48570:function(n,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/discovery",function(){return i(49730)}])},49730:function(n,e,i){"use strict";i.r(e);var s=i(24246);i(27378);var t=i(35287),r=i(77830),c=i(58754),a=i(69828),u=i(11904);e.default=()=>(0,s.jsxs)(t.Z,{title:"Data discovery",children:[(0,s.jsx)(c.Z,{heading:"Data discovery",children:(0,s.jsx)(a.Z,{parentLink:r.zE})}),(0,s.jsx)(u.Z,{})]})}},function(n){n.O(0,[8033,6060,2858,2866,9278,7553,4481,2310,1099,9494,1904,2888,9774,179],function(){return n(n.s=48570)}),_N_E=n.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9738],{53910:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/datamap",function(){return n(18839)}])},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var l=n(24246),i=n(91942),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(91942),d=n(65218),c=n.n(d),u=n(16134),x=n(35258),h=n(54349),m=n(92222),g=n(59003),p=n(30002),f=n(28079),j=n(49600),v=n(99811);let y=e=>{var t;let{column:n}=e,{tableInstance:l}=(0,i.useContext)(v.Z),r=i.useMemo(()=>Array.from(n.getFacetedUniqueValues().keys()),[n]),s=i.useMemo(()=>{let e={};return r.forEach(t=>{e[t]=!1}),e},[r]);return{filterValue:null!==(t=n.getFilterValue())&&void 0!==t?t:s,clearFilterOptions:()=>{let e={};r.forEach(t=>{e[t]=!1}),n.setFilterValue(e)},toggleFilterOption:(e,t)=>{var i;let r={...null!==(i=n.getFilterValue())&&void 0!==i?i:s,[e]:t};Object.values(r).every(e=>!e)?null==l||l.setColumnFilters(null==l?void 0:l.getState().columnFilters.filter(e=>e.id!==n.id)):n.setFilterValue(r)},options:r,header:n.columnDef.header}};var b=n(57072);let w=(0,m.Cl)(),C={multifield:(e,t,n)=>n[e.original[t]]},k=()=>{let e=(0,u.T)(),{updateTableInstance:t}=(0,i.useContext)(v.Z),n=(0,u.C)(j.eo),{data:l,isLoading:r}=(0,j.Ex)({organizationName:"default_organization"});(0,b.MO)(),(0,f.fd)(),(0,p.te)();let s=(0,i.useRef)(!1);(0,i.useEffect)(()=>{if(l){let{columns:t,rows:n}=l;e((0,j.dd)(t)),s.current||(s.current=!0,0===n.length?e((0,j.ym)(!0)):e((0,j.ym)(!1)))}},[l,e]);let a=(0,i.useMemo)(()=>l?l.rows:[],[l]),o=(0,i.useMemo)(()=>(n||[]).map(e=>{let{text:t,value:n}=e;return w.accessor(e=>e[n],{id:n,header:t,cell:e=>{let{getValue:t}=e,n=t();return Array.isArray(n)?n.join(", "):n},filterFn:C.multifield})}),[n]),d=(0,g.b7)({columns:o,data:a,filterFns:C,getCoreRowModel:(0,m.sC)(),getFilteredRowModel:(0,m.vL)(),getFacetedRowModel:(0,m.o6)(),getFacetedUniqueValues:(0,m.JG)(),manualPagination:!0,columnResizeMode:"onChange"});return(0,i.useEffect)(()=>t(d),[d,t]),{...d,isLoading:r}};var F=n(83766),S=n.n(F),I=n(25980),O=n(46238),R=n(14481),M=n(22968);let _=e=>{var t,n,i;let{option:r,columnId:s,filterValue:a,toggleFilterOption:d}=e,c=(0,u.C)(b.L5),x=s===M.Ux&&null!==(n=null===(t=c.get(r))||void 0===t?void 0:t.name)&&void 0!==n?n:r;return(0,l.jsx)(o.XZJ,{value:r,width:"193px",height:"20px",mb:"25px",isChecked:null!==(i=a[r])&&void 0!==i&&i,onChange:e=>{let{target:t}=e;d(r,t.checked)},_focusWithin:{bg:"gray.100"},colorScheme:"complimentary",children:(0,l.jsx)(o.xvT,{fontSize:"sm",lineHeight:5,height:"20px",width:"170px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",children:x})},r)};var T=e=>{let{column:t}=e,{filterValue:n,toggleFilterOption:r,options:s}=y({column:t}),[a,d]=(0,i.useState)(!1),c=a?s:s.slice(0,15),u=s.length>15;return(0,l.jsx)(o.UQy,{width:"100%",allowToggle:!0,children:(0,l.jsxs)(o.Qdk,{border:"0px",children:[(0,l.jsx)(o.X6q,{height:"56px",children:(0,l.jsxs)(o.KFZ,{height:"100%",children:[(0,l.jsx)(o.xuv,{flex:"1",alignItems:"center",justifyContent:"center",textAlign:"left",children:t.columnDef.header}),(0,l.jsx)(o.XEm,{})]})}),(0,l.jsxs)(o.Hk3,{children:[(0,l.jsx)(o.MIq,{columns:3,children:c.map(e=>(0,l.jsx)(_,{columnId:t.id,option:e,filterValue:n,toggleFilterOption:r},e))}),!a&&u?(0,l.jsx)(o.wpx,{type:"text",onClick:()=>{d(!0)},children:"View more"}):null,a&&u?(0,l.jsx)(o.wpx,{type:"text",onClick:()=>{d(!1)},children:"View less"}):null]})]})},t.id)};let Z=e=>{let{heading:t,children:n}=e;return(0,l.jsxs)(o.xuv,{padding:"24px 8px 8px 24px",children:[(0,l.jsx)(o.X6q,{size:"md",lineHeight:6,fontWeight:"bold",mb:2,children:t}),n]})};var z=e=>{let t,{isOpen:n,onClose:r}=e,{tableInstance:s}=(0,i.useContext)(v.Z),a=null==s?void 0:s.getHeaderGroups(),d=(e,t)=>e.filter(e=>e.id===t).map(e=>(0,l.jsx)(T,{column:e.column},t)),c=(0,i.useMemo)(()=>(null==a?void 0:a[0].headers)||[],[a]);return(0,l.jsxs)(o.u_l,{isOpen:n,onClose:r,isCentered:!0,size:"2xl",children:[(0,l.jsx)(o.ZAr,{}),(0,l.jsxs)(o.hzk,{children:[(0,l.jsx)(o.xBx,{children:"Filters"}),(0,l.jsx)(o.olH,{}),(0,l.jsx)(o.izJ,{}),(0,l.jsx)(o.fef,{maxH:"85vh",padding:"0px",overflowX:"auto",children:(t=[M.vy,M.Ux,M.OL],c.some(e=>t.indexOf(e.id)>-1))?(0,l.jsxs)(Z,{heading:"Privacy attributes",children:[d(c,M.vy),d(c,M.Ux),d(c,M.OL)]}):null}),(0,l.jsx)(o.mzw,{children:(0,l.jsxs)(o.xuv,{display:"flex",justifyContent:"space-between",width:"100%",children:[(0,l.jsx)(o.wpx,{onClick:()=>{null==s||s.resetColumnFilters()},className:"mr-3 grow",children:"Reset Filters"}),(0,l.jsx)(o.wpx,{onClick:r,type:"primary",className:"grow",children:"Done"})]})})]})]})};let E=()=>{let{isOpen:e,onOpen:t,onClose:n}=(0,o.qY0)();return{isFilterModalOpen:e,onFilterModalOpen:t,onFilterModalClose:n}};var P=()=>{let{isFilterModalOpen:e,onFilterModalOpen:t,onFilterModalClose:n}=E(),{tableInstance:r}=(0,i.useContext)(v.Z),{systemsCount:s,dictionaryService:a}=(0,I.hz)(),d=null==r?void 0:r.getRowModel(),c=(0,i.useMemo)(()=>{let e=(null==d?void 0:d.rows)||[];return S()(null==e?void 0:e.map(e=>e.original["system.fides_key"]))},[d]);if(!r)return null;let u=c.length,x=r.getState().columnFilters.length;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(o.kCb,{justifyContent:"flex-end",flexDirection:"row",alignItems:"center",flexWrap:"wrap",rowGap:4,columnGap:4,children:[(0,l.jsx)(o.kCb,{flexGrow:1,children:(0,l.jsx)(R.HO,{globalFilter:r.getState().globalFilter,setGlobalFilter:r.setGlobalFilter})}),(0,l.jsxs)(o.kCb,{children:[s>0?(0,l.jsxs)(o.kCb,{alignItems:"center",borderRadius:"md",gap:1,marginRight:4,children:[(0,l.jsxs)(o.xvT,{fontSize:"xs",children:[u," of ",s," systems displayed"]}),a?(0,l.jsx)(O.b,{label:"Note that Global Vendor List (GVL) and Additional Consent (AC) systems are not currently included in these reports"}):null]}):null,(0,l.jsxs)(o.wpx,{"aria-label":"Open Filter Settings",onClick:t,children:["Filter",x>0?(0,l.jsx)(o.j8w,{className:"ml-2",children:x}):null]})]})]}),(0,l.jsx)(z,{isOpen:e,onClose:n})]})},q=n(38943),N=n(77830),V=()=>(0,l.jsx)(o.M5Y,{flex:1,"data-testid":"get-started-modal",backgroundColor:"gray.100",children:(0,l.jsx)(o.xuv,{backgroundColor:"white",p:10,borderRadius:"6px",boxShadow:"0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06)",maxWidth:{base:"80%",lg:"60%",xl:"50%"},maxHeight:"90%",textAlign:"center",children:(0,l.jsxs)(o.Kqy,{spacing:4,children:[(0,l.jsx)(o.xvT,{color:"gray.700",fontWeight:"600",children:"Privacy engineering can seem like an endlessly complex confluence of legal and data engineering terminology—fear not—Fides is here to simplify this."}),(0,l.jsx)(o.xvT,{children:"Start by scanning your infrastructure. The scanner will connect to your infrastructure to automatically scan and create a list of all systems available and then classify each system containing PII."}),(0,l.jsx)(o.xvT,{children:"Let's get started!"}),(0,l.jsx)(o.xuv,{children:(0,l.jsx)(o.wpx,{href:N.xo,role:"link",type:"primary",className:"w-fit","data-testid":"add-systems-btn",children:"Add Systems"})})]})})});let W=c()(()=>Promise.all([n.e(5199),n.e(4804),n.e(9392)]).then(n.bind(n,19392)),{loadableGenerated:{webpack:()=>[19392]},ssr:!1}),A=()=>{let e=(0,u.C)(q.Xt),t=(0,i.useContext)(h.Y),{attemptAction:n}=(0,r.oI)(),[l,s]=(0,i.useState)(),a=(0,i.useCallback)(e=>{n().then(t=>{t&&s(e)})},[n,s]),o=(0,i.useCallback)(()=>{n().then(e=>{if(e&&l){if(t.current){var n;null===(n=t.current)||void 0===n||n.$id(l).unselect()}s(void 0)}})},[n,t,l]);return{isGettingStarted:e,selectedSystemId:l,setSelectedSystemId:a,resetSelectedSystemId:o}};var G=()=>{let{isGettingStarted:e,setSelectedSystemId:t,selectedSystemId:n,resetSelectedSystemId:i}=A(),{isLoading:r}=k();return r?(0,l.jsx)(o.M5Y,{width:"100%",flex:"1",children:(0,l.jsx)(o.$jN,{})}):e?(0,l.jsx)(V,{}):(0,l.jsxs)(o.kCb,{direction:"column",height:"100%",children:[(0,l.jsx)(o.xuv,{marginBottom:3,marginRight:10,children:(0,l.jsx)(P,{})}),(0,l.jsxs)(o.kCb,{position:"relative",flex:1,direction:"row",overflow:"auto",borderWidth:"1px",borderStyle:"solid",borderColor:"gray.200",children:[(0,l.jsx)(o.xuv,{flex:1,minWidth:"50%",maxWidth:"100%",children:(0,l.jsx)(W,{setSelectedSystemId:t})}),(0,l.jsx)(x.Z,{selectedSystemId:n,resetSelectedSystemId:i})]})]})},H=()=>{let e=(0,i.useMemo)(()=>new v.m,[]);return(0,l.jsxs)(s.Z,{title:"Data lineage",mainProps:{padding:"24px 0 0 40px"},children:[(0,l.jsx)(a.Z,{style:{paddingLeft:0},heading:"Data lineage"}),(0,l.jsx)(v.Z.Provider,{value:e,children:(0,l.jsxs)(h.Z,{children:[(0,l.jsx)(G,{}),(0,l.jsx)(r.eB,{})]})})]})}}},function(e){e.O(0,[8033,6060,255,4481,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(91942),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(91942),d=n(65218),c=n.n(d),u=n(16134),x=n(35258),h=n(54349),m=n(92222),g=n(59003),p=n(30002),f=n(28079),j=n(49600),v=n(99811);let y=e=>{var t;let{column:n}=e,{tableInstance:l}=(0,i.useContext)(v.Z),r=i.useMemo(()=>Array.from(n.getFacetedUniqueValues().keys()),[n]),s=i.useMemo(()=>{let e={};return r.forEach(t=>{e[t]=!1}),e},[r]);return{filterValue:null!==(t=n.getFilterValue())&&void 0!==t?t:s,clearFilterOptions:()=>{let e={};r.forEach(t=>{e[t]=!1}),n.setFilterValue(e)},toggleFilterOption:(e,t)=>{var i;let r={...null!==(i=n.getFilterValue())&&void 0!==i?i:s,[e]:t};Object.values(r).every(e=>!e)?null==l||l.setColumnFilters(null==l?void 0:l.getState().columnFilters.filter(e=>e.id!==n.id)):n.setFilterValue(r)},options:r,header:n.columnDef.header}};var b=n(57072);let w=(0,m.Cl)(),C={multifield:(e,t,n)=>n[e.original[t]]},k=()=>{let e=(0,u.T)(),{updateTableInstance:t}=(0,i.useContext)(v.Z),n=(0,u.C)(j.eo),{data:l,isLoading:r}=(0,j.Ex)({organizationName:"default_organization"});(0,b.MO)(),(0,f.fd)(),(0,p.te)();let s=(0,i.useRef)(!1);(0,i.useEffect)(()=>{if(l){let{columns:t,rows:n}=l;e((0,j.dd)(t)),s.current||(s.current=!0,0===n.length?e((0,j.ym)(!0)):e((0,j.ym)(!1)))}},[l,e]);let a=(0,i.useMemo)(()=>l?l.rows:[],[l]),o=(0,i.useMemo)(()=>(n||[]).map(e=>{let{text:t,value:n}=e;return w.accessor(e=>e[n],{id:n,header:t,cell:e=>{let{getValue:t}=e,n=t();return Array.isArray(n)?n.join(", "):n},filterFn:C.multifield})}),[n]),d=(0,g.b7)({columns:o,data:a,filterFns:C,getCoreRowModel:(0,m.sC)(),getFilteredRowModel:(0,m.vL)(),getFacetedRowModel:(0,m.o6)(),getFacetedUniqueValues:(0,m.JG)(),manualPagination:!0,columnResizeMode:"onChange"});return(0,i.useEffect)(()=>t(d),[d,t]),{...d,isLoading:r}};var F=n(83766),S=n.n(F),I=n(25980),O=n(46238),R=n(14481),M=n(22968);let _=e=>{var t,n,i;let{option:r,columnId:s,filterValue:a,toggleFilterOption:d}=e,c=(0,u.C)(b.L5),x=s===M.Ux&&null!==(n=null===(t=c.get(r))||void 0===t?void 0:t.name)&&void 0!==n?n:r;return(0,l.jsx)(o.XZJ,{value:r,width:"193px",height:"20px",mb:"25px",isChecked:null!==(i=a[r])&&void 0!==i&&i,onChange:e=>{let{target:t}=e;d(r,t.checked)},_focusWithin:{bg:"gray.100"},colorScheme:"complimentary",children:(0,l.jsx)(o.xvT,{fontSize:"sm",lineHeight:5,height:"20px",width:"170px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",children:x})},r)};var T=e=>{let{column:t}=e,{filterValue:n,toggleFilterOption:r,options:s}=y({column:t}),[a,d]=(0,i.useState)(!1),c=a?s:s.slice(0,15),u=s.length>15;return(0,l.jsx)(o.UQy,{width:"100%",allowToggle:!0,children:(0,l.jsxs)(o.Qdk,{border:"0px",children:[(0,l.jsx)(o.X6q,{height:"56px",children:(0,l.jsxs)(o.KFZ,{height:"100%",children:[(0,l.jsx)(o.xuv,{flex:"1",alignItems:"center",justifyContent:"center",textAlign:"left",children:t.columnDef.header}),(0,l.jsx)(o.XEm,{})]})}),(0,l.jsxs)(o.Hk3,{children:[(0,l.jsx)(o.MIq,{columns:3,children:c.map(e=>(0,l.jsx)(_,{columnId:t.id,option:e,filterValue:n,toggleFilterOption:r},e))}),!a&&u?(0,l.jsx)(o.wpx,{type:"text",onClick:()=>{d(!0)},children:"View more"}):null,a&&u?(0,l.jsx)(o.wpx,{type:"text",onClick:()=>{d(!1)},children:"View less"}):null]})]})},t.id)};let Z=e=>{let{heading:t,children:n}=e;return(0,l.jsxs)(o.xuv,{padding:"24px 8px 8px 24px",children:[(0,l.jsx)(o.X6q,{size:"md",lineHeight:6,fontWeight:"bold",mb:2,children:t}),n]})};var z=e=>{let t,{isOpen:n,onClose:r}=e,{tableInstance:s}=(0,i.useContext)(v.Z),a=null==s?void 0:s.getHeaderGroups(),d=(e,t)=>e.filter(e=>e.id===t).map(e=>(0,l.jsx)(T,{column:e.column},t)),c=(0,i.useMemo)(()=>(null==a?void 0:a[0].headers)||[],[a]);return(0,l.jsxs)(o.u_l,{isOpen:n,onClose:r,isCentered:!0,size:"2xl",children:[(0,l.jsx)(o.ZAr,{}),(0,l.jsxs)(o.hzk,{children:[(0,l.jsx)(o.xBx,{children:"Filters"}),(0,l.jsx)(o.olH,{}),(0,l.jsx)(o.izJ,{}),(0,l.jsx)(o.fef,{maxH:"85vh",padding:"0px",overflowX:"auto",children:(t=[M.vy,M.Ux,M.OL],c.some(e=>t.indexOf(e.id)>-1))?(0,l.jsxs)(Z,{heading:"Privacy attributes",children:[d(c,M.vy),d(c,M.Ux),d(c,M.OL)]}):null}),(0,l.jsx)(o.mzw,{children:(0,l.jsxs)(o.xuv,{display:"flex",justifyContent:"space-between",width:"100%",children:[(0,l.jsx)(o.wpx,{onClick:()=>{null==s||s.resetColumnFilters()},className:"mr-3 grow",children:"Reset Filters"}),(0,l.jsx)(o.wpx,{onClick:r,type:"primary",className:"grow",children:"Done"})]})})]})]})};let E=()=>{let{isOpen:e,onOpen:t,onClose:n}=(0,o.qY0)();return{isFilterModalOpen:e,onFilterModalOpen:t,onFilterModalClose:n}};var P=()=>{let{isFilterModalOpen:e,onFilterModalOpen:t,onFilterModalClose:n}=E(),{tableInstance:r}=(0,i.useContext)(v.Z),{systemsCount:s,dictionaryService:a}=(0,I.hz)(),d=null==r?void 0:r.getRowModel(),c=(0,i.useMemo)(()=>{let e=(null==d?void 0:d.rows)||[];return S()(null==e?void 0:e.map(e=>e.original["system.fides_key"]))},[d]);if(!r)return null;let u=c.length,x=r.getState().columnFilters.length;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(o.kCb,{justifyContent:"flex-end",flexDirection:"row",alignItems:"center",flexWrap:"wrap",rowGap:4,columnGap:4,children:[(0,l.jsx)(o.kCb,{flexGrow:1,children:(0,l.jsx)(R.HO,{globalFilter:r.getState().globalFilter,setGlobalFilter:r.setGlobalFilter})}),(0,l.jsxs)(o.kCb,{children:[s>0?(0,l.jsxs)(o.kCb,{alignItems:"center",borderRadius:"md",gap:1,marginRight:4,children:[(0,l.jsxs)(o.xvT,{fontSize:"xs",children:[u," of ",s," systems displayed"]}),a?(0,l.jsx)(O.b,{label:"Note that Global Vendor List (GVL) and Additional Consent (AC) systems are not currently included in these reports"}):null]}):null,(0,l.jsxs)(o.wpx,{"aria-label":"Open Filter Settings",onClick:t,children:["Filter",x>0?(0,l.jsx)(o.j8w,{className:"ml-2",children:x}):null]})]})]}),(0,l.jsx)(z,{isOpen:e,onClose:n})]})},q=n(38943),N=n(77830),V=()=>(0,l.jsx)(o.M5Y,{flex:1,"data-testid":"get-started-modal",backgroundColor:"gray.100",children:(0,l.jsx)(o.xuv,{backgroundColor:"white",p:10,borderRadius:"6px",boxShadow:"0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06)",maxWidth:{base:"80%",lg:"60%",xl:"50%"},maxHeight:"90%",textAlign:"center",children:(0,l.jsxs)(o.Kqy,{spacing:4,children:[(0,l.jsx)(o.xvT,{color:"gray.700",fontWeight:"600",children:"Privacy engineering can seem like an endlessly complex confluence of legal and data engineering terminology—fear not—Fides is here to simplify this."}),(0,l.jsx)(o.xvT,{children:"Start by scanning your infrastructure. The scanner will connect to your infrastructure to automatically scan and create a list of all systems available and then classify each system containing PII."}),(0,l.jsx)(o.xvT,{children:"Let's get started!"}),(0,l.jsx)(o.xuv,{children:(0,l.jsx)(o.wpx,{href:N.xo,role:"link",type:"primary",className:"w-fit","data-testid":"add-systems-btn",children:"Add Systems"})})]})})});let W=c()(()=>Promise.all([n.e(5199),n.e(4804),n.e(9392)]).then(n.bind(n,19392)),{loadableGenerated:{webpack:()=>[19392]},ssr:!1}),A=()=>{let e=(0,u.C)(q.Xt),t=(0,i.useContext)(h.Y),{attemptAction:n}=(0,r.oI)(),[l,s]=(0,i.useState)(),a=(0,i.useCallback)(e=>{n().then(t=>{t&&s(e)})},[n,s]),o=(0,i.useCallback)(()=>{n().then(e=>{if(e&&l){if(t.current){var n;null===(n=t.current)||void 0===n||n.$id(l).unselect()}s(void 0)}})},[n,t,l]);return{isGettingStarted:e,selectedSystemId:l,setSelectedSystemId:a,resetSelectedSystemId:o}};var G=()=>{let{isGettingStarted:e,setSelectedSystemId:t,selectedSystemId:n,resetSelectedSystemId:i}=A(),{isLoading:r}=k();return r?(0,l.jsx)(o.M5Y,{width:"100%",flex:"1",children:(0,l.jsx)(o.$jN,{})}):e?(0,l.jsx)(V,{}):(0,l.jsxs)(o.kCb,{direction:"column",height:"100%",children:[(0,l.jsx)(o.xuv,{marginBottom:3,marginRight:10,children:(0,l.jsx)(P,{})}),(0,l.jsxs)(o.kCb,{position:"relative",flex:1,direction:"row",overflow:"auto",borderWidth:"1px",borderStyle:"solid",borderColor:"gray.200",children:[(0,l.jsx)(o.xuv,{flex:1,minWidth:"50%",maxWidth:"100%",children:(0,l.jsx)(W,{setSelectedSystemId:t})}),(0,l.jsx)(x.Z,{selectedSystemId:n,resetSelectedSystemId:i})]})]})},H=()=>{let e=(0,i.useMemo)(()=>new v.m,[]);return(0,l.jsxs)(s.Z,{title:"Data lineage",mainProps:{padding:"24px 0 0 40px"},children:[(0,l.jsx)(a.Z,{style:{paddingLeft:0},heading:"Data lineage"}),(0,l.jsx)(v.Z.Provider,{value:e,children:(0,l.jsxs)(h.Z,{children:[(0,l.jsx)(G,{}),(0,l.jsx)(r.eB,{})]})})]})}}},function(e){e.O(0,[8033,6060,255,7553,4481,7980,8499,5258,2888,9774,179],function(){return e(e.s=53910)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2096],{80396:function(e,t,a){var n=a(79867),i=a(78859);e.exports=function(e,t,a,o){return i(e,t,a(n(e,t)),o)}},62079:function(e,t,a){var n=a(31137);e.exports=function(e){return"function"==typeof e?e:n}},30454:function(e,t,a){var n=a(40699);e.exports=function(e){return n(e,5)}},90271:function(e,t,a){var n=a(80396),i=a(62079);e.exports=function(e,t,a){return null==e?e:n(e,t,i(a))}},16383:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]/[collectionName]/[...subfieldNames]",function(){return a(26052)}])},12627:function(e,t,a){"use strict";var n=a(24246),i=a(79283),o=a(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:a=!1,...l}=e,{getDataCategoryDisplayNameProps:s,getDataCategories:r}=(0,o.Z)(),d=(a?r():r().filter(e=>e.active)).filter(e=>!t.includes(e.fides_key)).map(e=>{let{name:t,primaryName:a}=s(e.fides_key);return{value:e.fides_key,name:t,primaryName:a,description:e.description||""}});return(0,n.jsx)(i.l,{options:d,...l})}},79283:function(e,t,a){"use strict";a.d(t,{l:function(){return r}});var n=a(24246),i=a(91942),o=a(72707),l=a.n(o);let s=e=>{let{data:t}=e;return(0,n.jsxs)(i.jqI,{gap:12,title:"".concat(t.primaryName||"").concat(t.primaryName?": ":"").concat(t.name," - ").concat(t.description),children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("strong",{children:t.primaryName||t.name}),t.primaryName&&": ".concat(t.name)]}),(0,n.jsx)("em",{children:t.description})]})},r=e=>{let{options:t,...a}=e,o=null==t?void 0:t.map(e=>({...e,className:l().option}));return(0,n.jsx)(i.WPr,{options:o,autoFocus:!0,variant:"borderless",optionRender:s,dropdownStyle:{minWidth:"500px"},className:"w-full p-0","data-testid":"taxonomy-select",...a})}},34929:function(e,t,a){"use strict";var n=a(24246),i=a(64925),o=a.n(i),l=a(27378),s=a(16134),r=a(30002),d=a(28079),c=a(57072);let u=()=>{let{isLoading:e}=(0,d.fd)(),t=(0,s.C)(d.U3),{isLoading:a}=(0,c.MO)(),n=(0,s.C)(c.qb),{isLoading:i}=(0,r.te)();return{dataUses:t,dataSubjects:(0,s.C)(r.ZL),dataCategories:n,isLoading:e||a||i}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:a,isLoading:i}=u(),s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},r=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=t(e);if(!n)return{};let i=t(s(e,a)),o=!!n.parent_key;return{name:n.name||void 0,primaryName:o&&(null==i?void 0:i.name)!==n.name&&(null==i?void 0:i.name)||void 0}},d=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:i,primaryName:o}=r(e,t,a);return i?o?(0,n.jsxs)(l.Fragment,{children:[(0,n.jsxs)("strong",{children:[o,":"]})," ",i]},e):(0,n.jsx)("strong",{children:i},e):e},c=t=>o()(e,{fides_key:t}),m=e=>o()(t,{fides_key:e}),f=e=>o()(a,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:c,getDataUseDisplayName:e=>d(e,c,1),getDataUseDisplayNameProps:e=>r(e,c,1),getDataCategories:()=>t,getDataCategoryByKey:m,getDataCategoryDisplayName:e=>d(e,m,2),getDataCategoryDisplayNameProps:e=>r(e,m,2),getDataSubjects:()=>a,getDataSubjectByKey:f,getDataSubjectDisplayName:e=>{let t=f(e);return t?t.name:e},getPrimaryKey:s,isLoading:i}}},66112:function(e,t,a){"use strict";var n=a(24246),i=a(91942),o=a(27378),l=a(12627),s=a(34929),r=a(26183);t.Z=e=>{let{selectedTaxonomies:t,onAddTaxonomy:a,onRemoveTaxonomy:d}=e,[c,u]=(0,o.useState)(!1),{getDataCategoryDisplayName:m}=(0,s.Z)();return(0,n.jsxs)(r.Z,{children:[t.map(e=>(0,n.jsx)(i.j8w,{"data-testid":"classification-".concat(e),color:"white",closable:!0,onClose:()=>d(e),closeButtonLabel:"Remove category",children:m(e)},e)),(0,n.jsx)(i.j8w,{onClick:()=>u(!0),"data-testid":"add-category-btn",addable:!0,"aria-label":"Add category"}),c&&(0,n.jsx)(i.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,n.jsx)(l.Z,{selectedTaxonomies:t,onChange:e=>{u(!1),a(e)},onBlur:()=>u(!1),open:c})})]})}},26183:function(e,t,a){"use strict";var n=a(24246);a(27378),t.Z=e=>{let{children:t,className:a,...i}=e;return(0,n.jsx)("div",{className:"relative flex w-full flex-wrap items-center gap-2 overflow-x-auto py-2 ".concat(a||""),...i,children:t})}},76252:function(e,t,a){"use strict";var n=a(24246),i=a(91942),o=a(30454),l=a.n(o),s=a(47215),r=a.n(s),d=a(90271),c=a.n(d),u=a(79806),m=a(20386),f=a(63927),p=a(69435);t.Z=e=>{let{field:t,isOpen:a,onClose:o,dataset:s,collectionName:d,subfields:g}=e,[h]=(0,m.TG)(),{isOpen:x,onOpen:v,onClose:j}=(0,i.qY0)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.ZP,{isOpen:a,onClose:o,description:"Fields are an array of objects that describe the collection's fields. Provide additional context to this field by filling out the fields below.",header:(0,n.jsx)(u.zR,{title:"Field Name: ".concat(null==t?void 0:t.name)}),footer:(0,n.jsx)(u.Gn,{onClose:o,onDelete:v,formId:f.e}),children:(0,n.jsx)(f.Z,{values:t,onSubmit:e=>{let a=(0,p.Fk)({dataset:s,collectionName:d,subfields:g?[...g,(null==t?void 0:t.name)||""]:[(null==t?void 0:t.name)||""]}),n={...t,...e},i=l()(s);r()(i,a,n),h(i),o()},dataType:"field"})}),(0,n.jsx)(i.cVQ,{isOpen:x,onClose:j,onConfirm:()=>{let e=(0,p.Fk)({dataset:s,collectionName:d,subfields:g}),a=l()(s);c()(a,e,e=>({...e,fields:e.fields.filter(e=>e.name!==(null==t?void 0:t.name))})),h(a),o(),j()},title:"Delete Field",message:(0,n.jsxs)(i.xvT,{children:["You are about to permanently delete the field named"," ",(0,n.jsx)(i.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==t?void 0:t.name})," ","from this dataset. Are you sure you would like to continue?"]})})]})}},26052:function(e,t,a){"use strict";a.r(t);var n=a(24246),i=a(92222),o=a(59003),l=a(91942),s=a(30454),r=a.n(s),d=a(47215),c=a.n(d),u=a(86677),m=a(27378),f=a(77213),p=a(77830),g=a(58754),h=a(14481),x=a(66112),v=a(69828),j=a(41966),y=a(76252),b=a(69435);let C=(0,i.Cl)(),w=()=>(0,n.jsx)(l.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,n.jsx)(l.gCW,{children:(0,n.jsx)(l.xvT,{fontSize:"md",fontWeight:"600",children:"No fields found."})})});t.default=()=>{let e=(0,u.useRouter)(),[t]=(0,j.TG)(),a=decodeURIComponent(e.query.datasetId),s=decodeURIComponent(e.query.collectionName),d=e.query.subfieldNames.map(decodeURIComponent),{isLoading:N,data:_}=(0,j.oM)(a),k=(0,m.useMemo)(()=>(null==_?void 0:_.collections)||[],[_]).find(e=>e.name===s),R=(0,m.useMemo)(()=>(null==k?void 0:k.fields)||[],[k]),D=(0,m.useMemo)(()=>{let e=R;return d.forEach(t=>{let a=e.find(e=>e.name===t);e=(null==a?void 0:a.fields)||[]}),e},[R,d]),[Z,F]=(0,m.useState)(),T=(0,m.useCallback)(e=>{let{dataCategory:a,field:n}=e,i=n.data_categories||[],o=(0,b.Fk)({dataset:_,collectionName:s,subfields:[...d,n.name]}),l=r()(_);c()(l,"".concat(o,".data_categories"),[...i,a]),t(l)},[_,t,s,d]),I=(0,m.useCallback)(e=>{let{dataCategory:a,field:n}=e,i=n.data_categories||[],o=(0,b.Fk)({dataset:_,collectionName:s,subfields:[...d,null==n?void 0:n.name]}),l=r()(_);c()(l,"".concat(o,".data_categories"),i.filter(e=>e!==a)),t(l)},[_,t,s,d]),S=(0,m.useCallback)(t=>{let n=[...d.map(encodeURIComponent),t.name];e.push({pathname:p.y1,query:{datasetId:a,collectionName:s,subfieldNames:n}})},[a,e,s,d]),M=(0,m.useMemo)(()=>[C.accessor(e=>e.name,{id:"name",cell:e=>{var t;let a=e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0;return(0,n.jsx)(h.G3,{fontWeight:a?"semibold":"normal",value:e.getValue()})},header:e=>(0,n.jsx)(h.Rr,{value:"Field Name",...e}),size:180}),C.accessor(e=>{var t;return null===(t=e.fides_meta)||void 0===t?void 0:t.data_type},{id:"type",cell:e=>e.getValue()?(0,n.jsx)(h.A4,{value:e.getValue()}):(0,n.jsx)(h.G3,{value:void 0}),header:e=>(0,n.jsx)(h.Rr,{value:"Type",...e}),size:80}),C.accessor(e=>e.description,{id:"description",cell:e=>(0,n.jsx)(h.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,n.jsx)(h.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),C.accessor(e=>e.data_categories,{id:"data_categories",cell:e=>{var t;let a=e.row.original;return!(e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0)&&(0,n.jsx)(x.Z,{selectedTaxonomies:e.getValue()||[],onAddTaxonomy:e=>T({dataCategory:e,field:a}),onRemoveTaxonomy:e=>I({dataCategory:e,field:a})})},header:e=>(0,n.jsx)(h.Rr,{value:"Data categories",...e}),size:300,meta:{disableRowClick:!0}}),C.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,a=t.original;return(0,n.jsx)(l.Ugi,{spacing:0,"data-testid":"field-".concat(a.name),children:(0,n.jsx)(l.wpx,{size:"small",icon:(0,n.jsx)(l.dY8,{}),onClick:()=>{E(a),L(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[T,I]),q=(0,m.useMemo)(()=>Z?D.filter(e=>e.name.toLowerCase().includes(Z.toLowerCase())):D,[D,Z]),U=(0,o.b7)({getCoreRowModel:(0,i.sC)(),getFilteredRowModel:(0,i.vL)(),getSortedRowModel:(0,i.tj)(),columns:M,data:q,columnResizeMode:"onChange"}),[z,L]=(0,m.useState)(!1),[O,E]=(0,m.useState)(),P=(0,m.useMemo)(()=>{let e=[{title:"All datasets",href:p.$m},{title:a,href:{pathname:p.o5,query:{datasetId:a}},icon:v.Y[1]},{title:s,icon:v.Y[2],href:{pathname:p.RF,query:{datasetId:a,collectionName:s}}}];return d.forEach((t,n)=>{e.push({title:t,href:n<d.length-1?{pathname:p.y1,query:{datasetId:a,collectionName:s,subfieldNames:d.slice(0,n+1).map(encodeURIComponent)}}:void 0,icon:v.Y[3]})}),e},[a,s,d]);return(0,n.jsxs)(f.Z,{title:"Dataset - ".concat(a),children:[(0,n.jsx)(g.Z,{heading:"Datasets",breadcrumbItems:P}),N?(0,n.jsx)(h.I4,{rowHeight:36,numRows:15}):(0,n.jsxs)(l.xuv,{"data-testid":"fields-table",children:[(0,n.jsx)(h.Q$,{children:(0,n.jsx)(h.HO,{globalFilter:Z,setGlobalFilter:F,placeholder:"Search",testid:"fields-search"})}),(0,n.jsx)(h.ZK,{tableInstance:U,emptyTableNotice:(0,n.jsx)(w,{}),onRowClick:S,getRowIsClickable:e=>{var t;return!!(e.fields&&(null===(t=e.fields)||void 0===t?void 0:t.length)>0)}}),(0,n.jsx)(y.Z,{isOpen:z,onClose:()=>{L(!1),E(void 0)},field:O,dataset:_,collectionName:s,subfields:d})]})]})}},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}}},function(e){e.O(0,[8033,6060,2858,2866,9278,8702,4481,5487,2888,9774,179],function(){return e(e.s=16383)}),_N_E=e.O()}]);
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2096],{80396:function(e,t,a){var n=a(79867),i=a(78859);e.exports=function(e,t,a,o){return i(e,t,a(n(e,t)),o)}},62079:function(e,t,a){var n=a(31137);e.exports=function(e){return"function"==typeof e?e:n}},30454:function(e,t,a){var n=a(40699);e.exports=function(e){return n(e,5)}},90271:function(e,t,a){var n=a(80396),i=a(62079);e.exports=function(e,t,a){return null==e?e:n(e,t,i(a))}},16383:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]/[collectionName]/[...subfieldNames]",function(){return a(26052)}])},12627:function(e,t,a){"use strict";var n=a(24246),i=a(79283),o=a(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:a=!1,...l}=e,{getDataCategoryDisplayNameProps:s,getDataCategories:r}=(0,o.Z)(),d=(a?r():r().filter(e=>e.active)).filter(e=>!t.includes(e.fides_key)).map(e=>{let{name:t,primaryName:a}=s(e.fides_key);return{value:e.fides_key,name:t,primaryName:a,description:e.description||""}});return(0,n.jsx)(i.l,{options:d,...l})}},79283:function(e,t,a){"use strict";a.d(t,{l:function(){return r}});var n=a(24246),i=a(91942),o=a(72707),l=a.n(o);let s=e=>{let{data:t}=e;return(0,n.jsxs)(i.jqI,{gap:12,title:"".concat(t.primaryName||"").concat(t.primaryName?": ":"").concat(t.name," - ").concat(t.description),children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("strong",{children:t.primaryName||t.name}),t.primaryName&&": ".concat(t.name)]}),(0,n.jsx)("em",{children:t.description})]})},r=e=>{let{options:t,...a}=e,o=null==t?void 0:t.map(e=>({...e,className:l().option}));return(0,n.jsx)(i.WPr,{options:o,autoFocus:!0,variant:"borderless",optionRender:s,dropdownStyle:{minWidth:"500px"},className:"w-full p-0","data-testid":"taxonomy-select",...a})}},34929:function(e,t,a){"use strict";var n=a(24246),i=a(64925),o=a.n(i),l=a(27378),s=a(16134),r=a(30002),d=a(28079),c=a(57072);let u=()=>{let{isLoading:e}=(0,d.fd)(),t=(0,s.C)(d.U3),{isLoading:a}=(0,c.MO)(),n=(0,s.C)(c.qb),{isLoading:i}=(0,r.te)();return{dataUses:t,dataSubjects:(0,s.C)(r.ZL),dataCategories:n,isLoading:e||a||i}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:a,isLoading:i}=u(),s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},r=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=t(e);if(!n)return{};let i=t(s(e,a)),o=!!n.parent_key;return{name:n.name||void 0,primaryName:o&&(null==i?void 0:i.name)!==n.name&&(null==i?void 0:i.name)||void 0}},d=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:i,primaryName:o}=r(e,t,a);return i?o?(0,n.jsxs)(l.Fragment,{children:[(0,n.jsxs)("strong",{children:[o,":"]})," ",i]},e):(0,n.jsx)("strong",{children:i},e):e},c=t=>o()(e,{fides_key:t}),m=e=>o()(t,{fides_key:e}),f=e=>o()(a,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:c,getDataUseDisplayName:e=>d(e,c,1),getDataUseDisplayNameProps:e=>r(e,c,1),getDataCategories:()=>t,getDataCategoryByKey:m,getDataCategoryDisplayName:e=>d(e,m,2),getDataCategoryDisplayNameProps:e=>r(e,m,2),getDataSubjects:()=>a,getDataSubjectByKey:f,getDataSubjectDisplayName:e=>{let t=f(e);return t?t.name:e},getPrimaryKey:s,isLoading:i}}},66112:function(e,t,a){"use strict";var n=a(24246),i=a(91942),o=a(27378),l=a(12627),s=a(34929),r=a(26183);t.Z=e=>{let{selectedTaxonomies:t,onAddTaxonomy:a,onRemoveTaxonomy:d}=e,[c,u]=(0,o.useState)(!1),{getDataCategoryDisplayName:m}=(0,s.Z)();return(0,n.jsxs)(r.Z,{children:[t.map(e=>(0,n.jsx)(i.j8w,{"data-testid":"classification-".concat(e),color:"white",closable:!0,onClose:()=>d(e),closeButtonLabel:"Remove category",children:m(e)},e)),(0,n.jsx)(i.j8w,{onClick:()=>u(!0),"data-testid":"add-category-btn",addable:!0,"aria-label":"Add category"}),c&&(0,n.jsx)(i.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,n.jsx)(l.Z,{selectedTaxonomies:t,onChange:e=>{u(!1),a(e)},onBlur:()=>u(!1),open:c})})]})}},26183:function(e,t,a){"use strict";var n=a(24246);a(27378),t.Z=e=>{let{children:t,className:a,...i}=e;return(0,n.jsx)("div",{className:"relative flex w-full flex-wrap items-center gap-2 overflow-x-auto py-2 ".concat(a||""),...i,children:t})}},76252:function(e,t,a){"use strict";var n=a(24246),i=a(91942),o=a(30454),l=a.n(o),s=a(47215),r=a.n(s),d=a(90271),c=a.n(d),u=a(79806),m=a(20386),f=a(63927),p=a(69435);t.Z=e=>{let{field:t,isOpen:a,onClose:o,dataset:s,collectionName:d,subfields:g}=e,[h]=(0,m.TG)(),{isOpen:x,onOpen:v,onClose:j}=(0,i.qY0)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.ZP,{isOpen:a,onClose:o,description:"Fields are an array of objects that describe the collection's fields. Provide additional context to this field by filling out the fields below.",header:(0,n.jsx)(u.zR,{title:"Field Name: ".concat(null==t?void 0:t.name)}),footer:(0,n.jsx)(u.Gn,{onClose:o,onDelete:v,formId:f.e}),children:(0,n.jsx)(f.Z,{values:t,onSubmit:e=>{let a=(0,p.Fk)({dataset:s,collectionName:d,subfields:g?[...g,(null==t?void 0:t.name)||""]:[(null==t?void 0:t.name)||""]}),n={...t,...e},i=l()(s);r()(i,a,n),h(i),o()},dataType:"field"})}),(0,n.jsx)(i.cVQ,{isOpen:x,onClose:j,onConfirm:()=>{let e=(0,p.Fk)({dataset:s,collectionName:d,subfields:g}),a=l()(s);c()(a,e,e=>({...e,fields:e.fields.filter(e=>e.name!==(null==t?void 0:t.name))})),h(a),o(),j()},title:"Delete Field",message:(0,n.jsxs)(i.xvT,{children:["You are about to permanently delete the field named"," ",(0,n.jsx)(i.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==t?void 0:t.name})," ","from this dataset. Are you sure you would like to continue?"]})})]})}},26052:function(e,t,a){"use strict";a.r(t);var n=a(24246),i=a(92222),o=a(59003),l=a(91942),s=a(30454),r=a.n(s),d=a(47215),c=a.n(d),u=a(86677),m=a(27378),f=a(77213),p=a(77830),g=a(58754),h=a(14481),x=a(66112),v=a(69828),j=a(41966),y=a(76252),b=a(69435);let C=(0,i.Cl)(),w=()=>(0,n.jsx)(l.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,n.jsx)(l.gCW,{children:(0,n.jsx)(l.xvT,{fontSize:"md",fontWeight:"600",children:"No fields found."})})});t.default=()=>{let e=(0,u.useRouter)(),[t]=(0,j.TG)(),a=decodeURIComponent(e.query.datasetId),s=decodeURIComponent(e.query.collectionName),d=e.query.subfieldNames.map(decodeURIComponent),{isLoading:N,data:_}=(0,j.oM)(a),k=(0,m.useMemo)(()=>(null==_?void 0:_.collections)||[],[_]).find(e=>e.name===s),R=(0,m.useMemo)(()=>(null==k?void 0:k.fields)||[],[k]),D=(0,m.useMemo)(()=>{let e=R;return d.forEach(t=>{let a=e.find(e=>e.name===t);e=(null==a?void 0:a.fields)||[]}),e},[R,d]),[Z,F]=(0,m.useState)(),T=(0,m.useCallback)(e=>{let{dataCategory:a,field:n}=e,i=n.data_categories||[],o=(0,b.Fk)({dataset:_,collectionName:s,subfields:[...d,n.name]}),l=r()(_);c()(l,"".concat(o,".data_categories"),[...i,a]),t(l)},[_,t,s,d]),I=(0,m.useCallback)(e=>{let{dataCategory:a,field:n}=e,i=n.data_categories||[],o=(0,b.Fk)({dataset:_,collectionName:s,subfields:[...d,null==n?void 0:n.name]}),l=r()(_);c()(l,"".concat(o,".data_categories"),i.filter(e=>e!==a)),t(l)},[_,t,s,d]),S=(0,m.useCallback)(t=>{let n=[...d.map(encodeURIComponent),t.name];e.push({pathname:p.y1,query:{datasetId:a,collectionName:s,subfieldNames:n}})},[a,e,s,d]),M=(0,m.useMemo)(()=>[C.accessor(e=>e.name,{id:"name",cell:e=>{var t;let a=e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0;return(0,n.jsx)(h.G3,{fontWeight:a?"semibold":"normal",value:e.getValue()})},header:e=>(0,n.jsx)(h.Rr,{value:"Field Name",...e}),size:180}),C.accessor(e=>{var t;return null===(t=e.fides_meta)||void 0===t?void 0:t.data_type},{id:"type",cell:e=>e.getValue()?(0,n.jsx)(h.A4,{value:e.getValue()}):(0,n.jsx)(h.G3,{value:void 0}),header:e=>(0,n.jsx)(h.Rr,{value:"Type",...e}),size:80}),C.accessor(e=>e.description,{id:"description",cell:e=>(0,n.jsx)(h.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,n.jsx)(h.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),C.accessor(e=>e.data_categories,{id:"data_categories",cell:e=>{var t;let a=e.row.original;return!(e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0)&&(0,n.jsx)(x.Z,{selectedTaxonomies:e.getValue()||[],onAddTaxonomy:e=>T({dataCategory:e,field:a}),onRemoveTaxonomy:e=>I({dataCategory:e,field:a})})},header:e=>(0,n.jsx)(h.Rr,{value:"Data categories",...e}),size:300,meta:{disableRowClick:!0}}),C.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,a=t.original;return(0,n.jsx)(l.Ugi,{spacing:0,"data-testid":"field-".concat(a.name),children:(0,n.jsx)(l.wpx,{size:"small",icon:(0,n.jsx)(l.dY8,{}),onClick:()=>{E(a),L(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[T,I]),q=(0,m.useMemo)(()=>Z?D.filter(e=>e.name.toLowerCase().includes(Z.toLowerCase())):D,[D,Z]),U=(0,o.b7)({getCoreRowModel:(0,i.sC)(),getFilteredRowModel:(0,i.vL)(),getSortedRowModel:(0,i.tj)(),columns:M,data:q,columnResizeMode:"onChange"}),[z,L]=(0,m.useState)(!1),[O,E]=(0,m.useState)(),P=(0,m.useMemo)(()=>{let e=[{title:"All datasets",href:p.$m},{title:a,href:{pathname:p.o5,query:{datasetId:a}},icon:v.Y[1]},{title:s,icon:v.Y[2],href:{pathname:p.RF,query:{datasetId:a,collectionName:s}}}];return d.forEach((t,n)=>{e.push({title:t,href:n<d.length-1?{pathname:p.y1,query:{datasetId:a,collectionName:s,subfieldNames:d.slice(0,n+1).map(encodeURIComponent)}}:void 0,icon:v.Y[3]})}),e},[a,s,d]);return(0,n.jsxs)(f.Z,{title:"Dataset - ".concat(a),children:[(0,n.jsx)(g.Z,{heading:"Datasets",breadcrumbItems:P}),N?(0,n.jsx)(h.I4,{rowHeight:36,numRows:15}):(0,n.jsxs)(l.xuv,{"data-testid":"fields-table",children:[(0,n.jsx)(h.Q$,{children:(0,n.jsx)(h.HO,{globalFilter:Z,setGlobalFilter:F,placeholder:"Search",testid:"fields-search"})}),(0,n.jsx)(h.ZK,{tableInstance:U,emptyTableNotice:(0,n.jsx)(w,{}),onRowClick:S,getRowIsClickable:e=>{var t;return!!(e.fields&&(null===(t=e.fields)||void 0===t?void 0:t.length)>0)}}),(0,n.jsx)(y.Z,{isOpen:z,onClose:()=>{L(!1),E(void 0)},field:O,dataset:_,collectionName:s,subfields:d})]})]})}},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}}},function(e){e.O(0,[8033,6060,2858,2866,9278,8702,7553,4481,5487,2888,9774,179],function(){return e(e.s=16383)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6556],{80396:function(e,t,a){var n=a(79867),i=a(78859);e.exports=function(e,t,a,o){return i(e,t,a(n(e,t)),o)}},62079:function(e,t,a){var n=a(31137);e.exports=function(e){return"function"==typeof e?e:n}},30454:function(e,t,a){var n=a(40699);e.exports=function(e){return n(e,5)}},90271:function(e,t,a){var n=a(80396),i=a(62079);e.exports=function(e,t,a){return null==e?e:n(e,t,i(a))}},59972:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]/[collectionName]",function(){return a(47355)}])},12627:function(e,t,a){"use strict";var n=a(24246),i=a(79283),o=a(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:a=!1,...l}=e,{getDataCategoryDisplayNameProps:s,getDataCategories:r}=(0,o.Z)(),d=(a?r():r().filter(e=>e.active)).filter(e=>!t.includes(e.fides_key)).map(e=>{let{name:t,primaryName:a}=s(e.fides_key);return{value:e.fides_key,name:t,primaryName:a,description:e.description||""}});return(0,n.jsx)(i.l,{options:d,...l})}},79283:function(e,t,a){"use strict";a.d(t,{l:function(){return r}});var n=a(24246),i=a(91942),o=a(72707),l=a.n(o);let s=e=>{let{data:t}=e;return(0,n.jsxs)(i.jqI,{gap:12,title:"".concat(t.primaryName||"").concat(t.primaryName?": ":"").concat(t.name," - ").concat(t.description),children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("strong",{children:t.primaryName||t.name}),t.primaryName&&": ".concat(t.name)]}),(0,n.jsx)("em",{children:t.description})]})},r=e=>{let{options:t,...a}=e,o=null==t?void 0:t.map(e=>({...e,className:l().option}));return(0,n.jsx)(i.WPr,{options:o,autoFocus:!0,variant:"borderless",optionRender:s,dropdownStyle:{minWidth:"500px"},className:"w-full p-0","data-testid":"taxonomy-select",...a})}},34929:function(e,t,a){"use strict";var n=a(24246),i=a(64925),o=a.n(i),l=a(27378),s=a(16134),r=a(30002),d=a(28079),c=a(57072);let u=()=>{let{isLoading:e}=(0,d.fd)(),t=(0,s.C)(d.U3),{isLoading:a}=(0,c.MO)(),n=(0,s.C)(c.qb),{isLoading:i}=(0,r.te)();return{dataUses:t,dataSubjects:(0,s.C)(r.ZL),dataCategories:n,isLoading:e||a||i}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:a,isLoading:i}=u(),s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},r=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=t(e);if(!n)return{};let i=t(s(e,a)),o=!!n.parent_key;return{name:n.name||void 0,primaryName:o&&(null==i?void 0:i.name)!==n.name&&(null==i?void 0:i.name)||void 0}},d=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:i,primaryName:o}=r(e,t,a);return i?o?(0,n.jsxs)(l.Fragment,{children:[(0,n.jsxs)("strong",{children:[o,":"]})," ",i]},e):(0,n.jsx)("strong",{children:i},e):e},c=t=>o()(e,{fides_key:t}),m=e=>o()(t,{fides_key:e}),f=e=>o()(a,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:c,getDataUseDisplayName:e=>d(e,c,1),getDataUseDisplayNameProps:e=>r(e,c,1),getDataCategories:()=>t,getDataCategoryByKey:m,getDataCategoryDisplayName:e=>d(e,m,2),getDataCategoryDisplayNameProps:e=>r(e,m,2),getDataSubjects:()=>a,getDataSubjectByKey:f,getDataSubjectDisplayName:e=>{let t=f(e);return t?t.name:e},getPrimaryKey:s,isLoading:i}}},66112:function(e,t,a){"use strict";var n=a(24246),i=a(91942),o=a(27378),l=a(12627),s=a(34929),r=a(26183);t.Z=e=>{let{selectedTaxonomies:t,onAddTaxonomy:a,onRemoveTaxonomy:d}=e,[c,u]=(0,o.useState)(!1),{getDataCategoryDisplayName:m}=(0,s.Z)();return(0,n.jsxs)(r.Z,{children:[t.map(e=>(0,n.jsx)(i.j8w,{"data-testid":"classification-".concat(e),color:"white",closable:!0,onClose:()=>d(e),closeButtonLabel:"Remove category",children:m(e)},e)),(0,n.jsx)(i.j8w,{onClick:()=>u(!0),"data-testid":"add-category-btn",addable:!0,"aria-label":"Add category"}),c&&(0,n.jsx)(i.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,n.jsx)(l.Z,{selectedTaxonomies:t,onChange:e=>{u(!1),a(e)},onBlur:()=>u(!1),open:c})})]})}},26183:function(e,t,a){"use strict";var n=a(24246);a(27378),t.Z=e=>{let{children:t,className:a,...i}=e;return(0,n.jsx)("div",{className:"relative flex w-full flex-wrap items-center gap-2 overflow-x-auto py-2 ".concat(a||""),...i,children:t})}},76252:function(e,t,a){"use strict";var n=a(24246),i=a(91942),o=a(30454),l=a.n(o),s=a(47215),r=a.n(s),d=a(90271),c=a.n(d),u=a(79806),m=a(20386),f=a(63927),p=a(69435);t.Z=e=>{let{field:t,isOpen:a,onClose:o,dataset:s,collectionName:d,subfields:x}=e,[g]=(0,m.TG)(),{isOpen:v,onOpen:h,onClose:j}=(0,i.qY0)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.ZP,{isOpen:a,onClose:o,description:"Fields are an array of objects that describe the collection's fields. Provide additional context to this field by filling out the fields below.",header:(0,n.jsx)(u.zR,{title:"Field Name: ".concat(null==t?void 0:t.name)}),footer:(0,n.jsx)(u.Gn,{onClose:o,onDelete:h,formId:f.e}),children:(0,n.jsx)(f.Z,{values:t,onSubmit:e=>{let a=(0,p.Fk)({dataset:s,collectionName:d,subfields:x?[...x,(null==t?void 0:t.name)||""]:[(null==t?void 0:t.name)||""]}),n={...t,...e},i=l()(s);r()(i,a,n),g(i),o()},dataType:"field"})}),(0,n.jsx)(i.cVQ,{isOpen:v,onClose:j,onConfirm:()=>{let e=(0,p.Fk)({dataset:s,collectionName:d,subfields:x}),a=l()(s);c()(a,e,e=>({...e,fields:e.fields.filter(e=>e.name!==(null==t?void 0:t.name))})),g(a),o(),j()},title:"Delete Field",message:(0,n.jsxs)(i.xvT,{children:["You are about to permanently delete the field named"," ",(0,n.jsx)(i.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==t?void 0:t.name})," ","from this dataset. Are you sure you would like to continue?"]})})]})}},47355:function(e,t,a){"use strict";a.r(t);var n=a(24246),i=a(92222),o=a(59003),l=a(91942),s=a(86677),r=a(27378),d=a(77213),c=a(77830),u=a(58754),m=a(14481),f=a(66112),p=a(69828),x=a(41966),g=a(76252),v=a(69435);let h=(0,i.Cl)(),j=()=>(0,n.jsx)(l.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,n.jsx)(l.gCW,{children:(0,n.jsx)(l.xvT,{fontSize:"md",fontWeight:"600",children:"No fields found."})})});t.default=()=>{let e=(0,s.useRouter)(),[t]=(0,x.TG)(),a=decodeURIComponent(e.query.datasetId),y=decodeURIComponent(e.query.collectionName),{isLoading:b,data:C}=(0,x.oM)(a),w=(0,r.useMemo)(()=>(null==C?void 0:C.collections)||[],[C]),_=w.find(e=>e.name===y),N=(0,r.useMemo)(()=>(null==_?void 0:_.fields)||[],[_]),[R,k]=(0,r.useState)(),D=(0,r.useCallback)(e=>{let{dataCategory:a,field:n}=e,i=n.data_categories||[],o={...n,data_categories:[...i,a]},l=w.indexOf(_),s=_.fields.indexOf(n);t((0,v._n)(C,o,l,s))},[_,w,C,t]),Z=(0,r.useCallback)(e=>{var a;let{dataCategory:n,field:i}=e,o={...i,data_categories:null===(a=i.data_categories)||void 0===a?void 0:a.filter(e=>e!==n)},l=w.indexOf(_),s=_.fields.indexOf(i);t((0,v._n)(C,o,l,s))},[_,w,C,t]),I=(0,r.useCallback)(t=>{e.push({pathname:c.y1,query:{datasetId:encodeURIComponent(a),collectionName:encodeURIComponent(y),subfieldNames:encodeURIComponent(t.name)}})},[a,e,y]),T=(0,r.useMemo)(()=>[h.accessor(e=>e.name,{id:"name",cell:e=>{var t;let a=e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0;return(0,n.jsx)(m.G3,{fontWeight:a?"semibold":"normal",value:e.getValue()})},header:e=>(0,n.jsx)(m.Rr,{value:"Field Name",...e}),size:180}),h.accessor(e=>{var t;return null===(t=e.fides_meta)||void 0===t?void 0:t.data_type},{id:"type",cell:e=>e.getValue()?(0,n.jsx)(m.A4,{value:e.getValue()}):(0,n.jsx)(m.G3,{value:void 0}),header:e=>(0,n.jsx)(m.Rr,{value:"Type",...e}),size:80}),h.accessor(e=>e.description,{id:"description",cell:e=>(0,n.jsx)(m.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,n.jsx)(m.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),h.accessor(e=>e.data_categories,{id:"data_categories",cell:e=>{var t;let a=e.row.original;return!(e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0)&&(0,n.jsx)(f.Z,{selectedTaxonomies:e.getValue()||[],onAddTaxonomy:e=>D({dataCategory:e,field:a}),onRemoveTaxonomy:e=>Z({dataCategory:e,field:a})})},header:e=>(0,n.jsx)(m.Rr,{value:"Data categories",...e}),size:300,meta:{disableRowClick:!0}}),h.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,a=t.original;return(0,n.jsx)(l.Ugi,{spacing:0,"data-testid":"field-".concat(a.name),children:(0,n.jsx)(l.wpx,{size:"small",icon:(0,n.jsx)(l.dY8,{}),onClick:()=>{z(a),M(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[D,Z]),S=(0,r.useMemo)(()=>R?N.filter(e=>e.name.toLowerCase().includes(R.toLowerCase())):N,[N,R]),O=(0,o.b7)({getCoreRowModel:(0,i.sC)(),getFilteredRowModel:(0,i.vL)(),getSortedRowModel:(0,i.tj)(),columns:T,data:S,columnResizeMode:"onChange"}),[F,M]=(0,r.useState)(!1),[U,z]=(0,r.useState)(),L=(0,r.useMemo)(()=>[{title:"All datasets",href:c.$m},{title:a,href:{pathname:c.o5,query:{datasetId:a}},icon:p.Y[1]},{title:y,icon:p.Y[2]}],[a,y]);return(0,n.jsxs)(d.Z,{title:"Dataset - ".concat(a),children:[(0,n.jsx)(u.Z,{heading:"Datasets",breadcrumbItems:L}),b?(0,n.jsx)(m.I4,{rowHeight:36,numRows:15}):(0,n.jsxs)(l.xuv,{"data-testid":"fields-table",children:[(0,n.jsx)(m.Q$,{children:(0,n.jsx)(m.HO,{globalFilter:R,setGlobalFilter:k,placeholder:"Search",testid:"fields-search"})}),(0,n.jsx)(m.ZK,{tableInstance:O,emptyTableNotice:(0,n.jsx)(j,{}),onRowClick:I,getRowIsClickable:e=>{var t;return!!(e.fields&&(null===(t=e.fields)||void 0===t?void 0:t.length)>0)}}),(0,n.jsx)(g.Z,{isOpen:F,onClose:()=>{M(!1),z(void 0)},field:U,dataset:C,collectionName:y})]})]})}},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}}},function(e){e.O(0,[8033,6060,2858,2866,9278,8702,4481,5487,2888,9774,179],function(){return e(e.s=59972)}),_N_E=e.O()}]);
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6556],{80396:function(e,t,a){var n=a(79867),i=a(78859);e.exports=function(e,t,a,o){return i(e,t,a(n(e,t)),o)}},62079:function(e,t,a){var n=a(31137);e.exports=function(e){return"function"==typeof e?e:n}},30454:function(e,t,a){var n=a(40699);e.exports=function(e){return n(e,5)}},90271:function(e,t,a){var n=a(80396),i=a(62079);e.exports=function(e,t,a){return null==e?e:n(e,t,i(a))}},59972:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]/[collectionName]",function(){return a(47355)}])},12627:function(e,t,a){"use strict";var n=a(24246),i=a(79283),o=a(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:a=!1,...l}=e,{getDataCategoryDisplayNameProps:s,getDataCategories:r}=(0,o.Z)(),d=(a?r():r().filter(e=>e.active)).filter(e=>!t.includes(e.fides_key)).map(e=>{let{name:t,primaryName:a}=s(e.fides_key);return{value:e.fides_key,name:t,primaryName:a,description:e.description||""}});return(0,n.jsx)(i.l,{options:d,...l})}},79283:function(e,t,a){"use strict";a.d(t,{l:function(){return r}});var n=a(24246),i=a(91942),o=a(72707),l=a.n(o);let s=e=>{let{data:t}=e;return(0,n.jsxs)(i.jqI,{gap:12,title:"".concat(t.primaryName||"").concat(t.primaryName?": ":"").concat(t.name," - ").concat(t.description),children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("strong",{children:t.primaryName||t.name}),t.primaryName&&": ".concat(t.name)]}),(0,n.jsx)("em",{children:t.description})]})},r=e=>{let{options:t,...a}=e,o=null==t?void 0:t.map(e=>({...e,className:l().option}));return(0,n.jsx)(i.WPr,{options:o,autoFocus:!0,variant:"borderless",optionRender:s,dropdownStyle:{minWidth:"500px"},className:"w-full p-0","data-testid":"taxonomy-select",...a})}},34929:function(e,t,a){"use strict";var n=a(24246),i=a(64925),o=a.n(i),l=a(27378),s=a(16134),r=a(30002),d=a(28079),c=a(57072);let u=()=>{let{isLoading:e}=(0,d.fd)(),t=(0,s.C)(d.U3),{isLoading:a}=(0,c.MO)(),n=(0,s.C)(c.qb),{isLoading:i}=(0,r.te)();return{dataUses:t,dataSubjects:(0,s.C)(r.ZL),dataCategories:n,isLoading:e||a||i}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:a,isLoading:i}=u(),s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},r=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=t(e);if(!n)return{};let i=t(s(e,a)),o=!!n.parent_key;return{name:n.name||void 0,primaryName:o&&(null==i?void 0:i.name)!==n.name&&(null==i?void 0:i.name)||void 0}},d=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:i,primaryName:o}=r(e,t,a);return i?o?(0,n.jsxs)(l.Fragment,{children:[(0,n.jsxs)("strong",{children:[o,":"]})," ",i]},e):(0,n.jsx)("strong",{children:i},e):e},c=t=>o()(e,{fides_key:t}),m=e=>o()(t,{fides_key:e}),f=e=>o()(a,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:c,getDataUseDisplayName:e=>d(e,c,1),getDataUseDisplayNameProps:e=>r(e,c,1),getDataCategories:()=>t,getDataCategoryByKey:m,getDataCategoryDisplayName:e=>d(e,m,2),getDataCategoryDisplayNameProps:e=>r(e,m,2),getDataSubjects:()=>a,getDataSubjectByKey:f,getDataSubjectDisplayName:e=>{let t=f(e);return t?t.name:e},getPrimaryKey:s,isLoading:i}}},66112:function(e,t,a){"use strict";var n=a(24246),i=a(91942),o=a(27378),l=a(12627),s=a(34929),r=a(26183);t.Z=e=>{let{selectedTaxonomies:t,onAddTaxonomy:a,onRemoveTaxonomy:d}=e,[c,u]=(0,o.useState)(!1),{getDataCategoryDisplayName:m}=(0,s.Z)();return(0,n.jsxs)(r.Z,{children:[t.map(e=>(0,n.jsx)(i.j8w,{"data-testid":"classification-".concat(e),color:"white",closable:!0,onClose:()=>d(e),closeButtonLabel:"Remove category",children:m(e)},e)),(0,n.jsx)(i.j8w,{onClick:()=>u(!0),"data-testid":"add-category-btn",addable:!0,"aria-label":"Add category"}),c&&(0,n.jsx)(i.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,n.jsx)(l.Z,{selectedTaxonomies:t,onChange:e=>{u(!1),a(e)},onBlur:()=>u(!1),open:c})})]})}},26183:function(e,t,a){"use strict";var n=a(24246);a(27378),t.Z=e=>{let{children:t,className:a,...i}=e;return(0,n.jsx)("div",{className:"relative flex w-full flex-wrap items-center gap-2 overflow-x-auto py-2 ".concat(a||""),...i,children:t})}},76252:function(e,t,a){"use strict";var n=a(24246),i=a(91942),o=a(30454),l=a.n(o),s=a(47215),r=a.n(s),d=a(90271),c=a.n(d),u=a(79806),m=a(20386),f=a(63927),p=a(69435);t.Z=e=>{let{field:t,isOpen:a,onClose:o,dataset:s,collectionName:d,subfields:x}=e,[g]=(0,m.TG)(),{isOpen:v,onOpen:h,onClose:j}=(0,i.qY0)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.ZP,{isOpen:a,onClose:o,description:"Fields are an array of objects that describe the collection's fields. Provide additional context to this field by filling out the fields below.",header:(0,n.jsx)(u.zR,{title:"Field Name: ".concat(null==t?void 0:t.name)}),footer:(0,n.jsx)(u.Gn,{onClose:o,onDelete:h,formId:f.e}),children:(0,n.jsx)(f.Z,{values:t,onSubmit:e=>{let a=(0,p.Fk)({dataset:s,collectionName:d,subfields:x?[...x,(null==t?void 0:t.name)||""]:[(null==t?void 0:t.name)||""]}),n={...t,...e},i=l()(s);r()(i,a,n),g(i),o()},dataType:"field"})}),(0,n.jsx)(i.cVQ,{isOpen:v,onClose:j,onConfirm:()=>{let e=(0,p.Fk)({dataset:s,collectionName:d,subfields:x}),a=l()(s);c()(a,e,e=>({...e,fields:e.fields.filter(e=>e.name!==(null==t?void 0:t.name))})),g(a),o(),j()},title:"Delete Field",message:(0,n.jsxs)(i.xvT,{children:["You are about to permanently delete the field named"," ",(0,n.jsx)(i.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==t?void 0:t.name})," ","from this dataset. Are you sure you would like to continue?"]})})]})}},47355:function(e,t,a){"use strict";a.r(t);var n=a(24246),i=a(92222),o=a(59003),l=a(91942),s=a(86677),r=a(27378),d=a(77213),c=a(77830),u=a(58754),m=a(14481),f=a(66112),p=a(69828),x=a(41966),g=a(76252),v=a(69435);let h=(0,i.Cl)(),j=()=>(0,n.jsx)(l.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,n.jsx)(l.gCW,{children:(0,n.jsx)(l.xvT,{fontSize:"md",fontWeight:"600",children:"No fields found."})})});t.default=()=>{let e=(0,s.useRouter)(),[t]=(0,x.TG)(),a=decodeURIComponent(e.query.datasetId),y=decodeURIComponent(e.query.collectionName),{isLoading:b,data:C}=(0,x.oM)(a),w=(0,r.useMemo)(()=>(null==C?void 0:C.collections)||[],[C]),_=w.find(e=>e.name===y),N=(0,r.useMemo)(()=>(null==_?void 0:_.fields)||[],[_]),[R,k]=(0,r.useState)(),D=(0,r.useCallback)(e=>{let{dataCategory:a,field:n}=e,i=n.data_categories||[],o={...n,data_categories:[...i,a]},l=w.indexOf(_),s=_.fields.indexOf(n);t((0,v._n)(C,o,l,s))},[_,w,C,t]),Z=(0,r.useCallback)(e=>{var a;let{dataCategory:n,field:i}=e,o={...i,data_categories:null===(a=i.data_categories)||void 0===a?void 0:a.filter(e=>e!==n)},l=w.indexOf(_),s=_.fields.indexOf(i);t((0,v._n)(C,o,l,s))},[_,w,C,t]),I=(0,r.useCallback)(t=>{e.push({pathname:c.y1,query:{datasetId:encodeURIComponent(a),collectionName:encodeURIComponent(y),subfieldNames:encodeURIComponent(t.name)}})},[a,e,y]),T=(0,r.useMemo)(()=>[h.accessor(e=>e.name,{id:"name",cell:e=>{var t;let a=e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0;return(0,n.jsx)(m.G3,{fontWeight:a?"semibold":"normal",value:e.getValue()})},header:e=>(0,n.jsx)(m.Rr,{value:"Field Name",...e}),size:180}),h.accessor(e=>{var t;return null===(t=e.fides_meta)||void 0===t?void 0:t.data_type},{id:"type",cell:e=>e.getValue()?(0,n.jsx)(m.A4,{value:e.getValue()}):(0,n.jsx)(m.G3,{value:void 0}),header:e=>(0,n.jsx)(m.Rr,{value:"Type",...e}),size:80}),h.accessor(e=>e.description,{id:"description",cell:e=>(0,n.jsx)(m.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,n.jsx)(m.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),h.accessor(e=>e.data_categories,{id:"data_categories",cell:e=>{var t;let a=e.row.original;return!(e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0)&&(0,n.jsx)(f.Z,{selectedTaxonomies:e.getValue()||[],onAddTaxonomy:e=>D({dataCategory:e,field:a}),onRemoveTaxonomy:e=>Z({dataCategory:e,field:a})})},header:e=>(0,n.jsx)(m.Rr,{value:"Data categories",...e}),size:300,meta:{disableRowClick:!0}}),h.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,a=t.original;return(0,n.jsx)(l.Ugi,{spacing:0,"data-testid":"field-".concat(a.name),children:(0,n.jsx)(l.wpx,{size:"small",icon:(0,n.jsx)(l.dY8,{}),onClick:()=>{z(a),M(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[D,Z]),S=(0,r.useMemo)(()=>R?N.filter(e=>e.name.toLowerCase().includes(R.toLowerCase())):N,[N,R]),O=(0,o.b7)({getCoreRowModel:(0,i.sC)(),getFilteredRowModel:(0,i.vL)(),getSortedRowModel:(0,i.tj)(),columns:T,data:S,columnResizeMode:"onChange"}),[F,M]=(0,r.useState)(!1),[U,z]=(0,r.useState)(),L=(0,r.useMemo)(()=>[{title:"All datasets",href:c.$m},{title:a,href:{pathname:c.o5,query:{datasetId:a}},icon:p.Y[1]},{title:y,icon:p.Y[2]}],[a,y]);return(0,n.jsxs)(d.Z,{title:"Dataset - ".concat(a),children:[(0,n.jsx)(u.Z,{heading:"Datasets",breadcrumbItems:L}),b?(0,n.jsx)(m.I4,{rowHeight:36,numRows:15}):(0,n.jsxs)(l.xuv,{"data-testid":"fields-table",children:[(0,n.jsx)(m.Q$,{children:(0,n.jsx)(m.HO,{globalFilter:R,setGlobalFilter:k,placeholder:"Search",testid:"fields-search"})}),(0,n.jsx)(m.ZK,{tableInstance:O,emptyTableNotice:(0,n.jsx)(j,{}),onRowClick:I,getRowIsClickable:e=>{var t;return!!(e.fields&&(null===(t=e.fields)||void 0===t?void 0:t.length)>0)}}),(0,n.jsx)(g.Z,{isOpen:F,onClose:()=>{M(!1),z(void 0)},field:U,dataset:C,collectionName:y})]})]})}},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}}},function(e){e.O(0,[8033,6060,2858,2866,9278,8702,7553,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(91942),a=o(86677),c=o(27378),d=o(77213),r=o(77830),u=o(58754),m=o(14481),h=o(69828),x=o(41966),p=o(46628),j=o(79806),f=o(20386),C=o(63927),g=o(69435),w=e=>{let{dataset:t,collection:o,isOpen:n,onClose:s}=e,a=(0,c.useMemo)(()=>null==t?void 0:t.collections.indexOf(o),[]),[d]=(0,f.TG)(),r=(0,i.pmc)(),{isOpen:u,onOpen:m,onClose:h}=(0,i.qY0)(),x=async e=>{let l={...o,...e},n=(0,g.jC)(t,l,a);try{await d(n),r((0,p.t5)("Successfully modified collection"))}catch(e){r((0,p.Vo)(e))}s()},w=async()=>{if(t&&void 0!==a){let e=(0,g.qe)(t,a);try{await d(e),r((0,p.t5)("Successfully deleted collection"))}catch(e){r((0,p.Vo)(e))}s(),h()}};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(j.ZP,{isOpen:n,onClose:s,description:"Collections are an array of objects that describe the Dataset's collections. Provide additional context to this collection by filling out the fields below.",header:(0,l.jsx)(j.zR,{title:"Collection Name: ".concat(null==o?void 0:o.name)}),footer:(0,l.jsx)(j.Gn,{onClose:s,onDelete:m,formId:C.e}),children:(0,l.jsx)(C.Z,{values:o,onSubmit:x,dataType:"collection",showDataCategories:!1})}),(0,l.jsx)(i.cVQ,{isOpen:u,onClose:h,onConfirm:w,title:"Delete Collection",message:(0,l.jsxs)(i.xvT,{children:["You are about to permanently delete the collection named"," ",(0,l.jsx)(i.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==o?void 0:o.name})," ","from this dataset. Are you sure you would like to continue?"]})})]})};let b=(0,n.Cl)(),v=()=>(0,l.jsx)(i.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,l.jsx)(i.gCW,{children:(0,l.jsx)(i.xvT,{fontSize:"md",fontWeight:"600",children:"No collections found."})})});var y=()=>{let e=(0,a.useRouter)(),t=decodeURIComponent(e.query.datasetId),{isLoading:o,data:p}=(0,x.oM)(t),j=(0,c.useMemo)(()=>(null==p?void 0:p.collections)||[],[p]),[f,C]=(0,c.useState)(!1),[g,y]=(0,c.useState)(),[R,_]=(0,c.useState)(),M=(0,c.useMemo)(()=>[b.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(m.G3,{value:e.getValue(),fontWeight:"semibold"}),header:e=>(0,l.jsx)(m.Rr,{value:"Collection Name",...e}),size:180}),b.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(m.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(m.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),b.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,o=t.original;return(0,l.jsx)(i.Ugi,{spacing:0,"data-testid":"collection-".concat(o.name),children:(0,l.jsx)(i.wpx,{size:"small",icon:(0,l.jsx)(i.dY8,{}),onClick:()=>{y(o),C(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[]),I=(0,c.useMemo)(()=>R?j.filter(e=>e.name.toLowerCase().includes(R.toLowerCase())):j,[j,R]),N=(0,s.b7)({getCoreRowModel:(0,n.sC)(),getFilteredRowModel:(0,n.vL)(),getSortedRowModel:(0,n.tj)(),columns:M,data:I,columnResizeMode:"onChange"}),S=(0,c.useMemo)(()=>[{title:"All datasets",href:r.$m},{title:t,icon:h.Y[1]}],[t]);return(0,l.jsxs)(d.Z,{title:"Dataset - ".concat(t),children:[(0,l.jsx)(u.Z,{heading:"Datasets",breadcrumbItems:S}),o?(0,l.jsx)(m.I4,{rowHeight:36,numRows:15}):(0,l.jsxs)(i.xuv,{"data-testid":"collections-table",children:[(0,l.jsx)(m.Q$,{children:(0,l.jsx)(m.HO,{globalFilter:R,setGlobalFilter:_,placeholder:"Search",testid:"collections-search"})}),(0,l.jsx)(m.ZK,{tableInstance:N,emptyTableNotice:(0,l.jsx)(v,{}),onRowClick:o=>{e.push({pathname:r.RF,query:{datasetId:encodeURIComponent(t),collectionName:encodeURIComponent(o.name)}})}})]}),p&&g&&(0,l.jsx)(w,{dataset:p,collection:g,isOpen:f,onClose:()=>C(!1)})]})}}},function(e){e.O(0,[8033,6060,9729,4481,5487,2888,9774,179],function(){return e(e.s=33187)}),_N_E=e.O()}]);
|
1
|
+
(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(91942),a=o(86677),c=o(27378),d=o(77213),r=o(77830),u=o(58754),m=o(14481),h=o(69828),x=o(41966),p=o(46628),j=o(79806),f=o(20386),C=o(63927),g=o(69435),w=e=>{let{dataset:t,collection:o,isOpen:n,onClose:s}=e,a=(0,c.useMemo)(()=>null==t?void 0:t.collections.indexOf(o),[]),[d]=(0,f.TG)(),r=(0,i.pmc)(),{isOpen:u,onOpen:m,onClose:h}=(0,i.qY0)(),x=async e=>{let l={...o,...e},n=(0,g.jC)(t,l,a);try{await d(n),r((0,p.t5)("Successfully modified collection"))}catch(e){r((0,p.Vo)(e))}s()},w=async()=>{if(t&&void 0!==a){let e=(0,g.qe)(t,a);try{await d(e),r((0,p.t5)("Successfully deleted collection"))}catch(e){r((0,p.Vo)(e))}s(),h()}};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(j.ZP,{isOpen:n,onClose:s,description:"Collections are an array of objects that describe the Dataset's collections. Provide additional context to this collection by filling out the fields below.",header:(0,l.jsx)(j.zR,{title:"Collection Name: ".concat(null==o?void 0:o.name)}),footer:(0,l.jsx)(j.Gn,{onClose:s,onDelete:m,formId:C.e}),children:(0,l.jsx)(C.Z,{values:o,onSubmit:x,dataType:"collection",showDataCategories:!1})}),(0,l.jsx)(i.cVQ,{isOpen:u,onClose:h,onConfirm:w,title:"Delete Collection",message:(0,l.jsxs)(i.xvT,{children:["You are about to permanently delete the collection named"," ",(0,l.jsx)(i.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==o?void 0:o.name})," ","from this dataset. Are you sure you would like to continue?"]})})]})};let b=(0,n.Cl)(),v=()=>(0,l.jsx)(i.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,l.jsx)(i.gCW,{children:(0,l.jsx)(i.xvT,{fontSize:"md",fontWeight:"600",children:"No collections found."})})});var y=()=>{let e=(0,a.useRouter)(),t=decodeURIComponent(e.query.datasetId),{isLoading:o,data:p}=(0,x.oM)(t),j=(0,c.useMemo)(()=>(null==p?void 0:p.collections)||[],[p]),[f,C]=(0,c.useState)(!1),[g,y]=(0,c.useState)(),[R,_]=(0,c.useState)(),M=(0,c.useMemo)(()=>[b.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(m.G3,{value:e.getValue(),fontWeight:"semibold"}),header:e=>(0,l.jsx)(m.Rr,{value:"Collection Name",...e}),size:180}),b.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(m.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(m.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),b.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,o=t.original;return(0,l.jsx)(i.Ugi,{spacing:0,"data-testid":"collection-".concat(o.name),children:(0,l.jsx)(i.wpx,{size:"small",icon:(0,l.jsx)(i.dY8,{}),onClick:()=>{y(o),C(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[]),I=(0,c.useMemo)(()=>R?j.filter(e=>e.name.toLowerCase().includes(R.toLowerCase())):j,[j,R]),N=(0,s.b7)({getCoreRowModel:(0,n.sC)(),getFilteredRowModel:(0,n.vL)(),getSortedRowModel:(0,n.tj)(),columns:M,data:I,columnResizeMode:"onChange"}),S=(0,c.useMemo)(()=>[{title:"All datasets",href:r.$m},{title:t,icon:h.Y[1]}],[t]);return(0,l.jsxs)(d.Z,{title:"Dataset - ".concat(t),children:[(0,l.jsx)(u.Z,{heading:"Datasets",breadcrumbItems:S}),o?(0,l.jsx)(m.I4,{rowHeight:36,numRows:15}):(0,l.jsxs)(i.xuv,{"data-testid":"collections-table",children:[(0,l.jsx)(m.Q$,{children:(0,l.jsx)(m.HO,{globalFilter:R,setGlobalFilter:_,placeholder:"Search",testid:"collections-search"})}),(0,l.jsx)(m.ZK,{tableInstance:N,emptyTableNotice:(0,l.jsx)(v,{}),onRowClick:o=>{e.push({pathname:r.RF,query:{datasetId:encodeURIComponent(t),collectionName:encodeURIComponent(o.name)}})}})]}),p&&g&&(0,l.jsx)(w,{dataset:p,collection:g,isOpen:f,onClose:()=>C(!1)})]})}}},function(e){e.O(0,[8033,6060,9729,7553,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,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/new",function(){return r(17294)}])},812:function(e,t,r){"use strict";r.d(t,{D4:function(){return a.D4},MM:function(){return f},Ot:function(){return c},c6:function(){return s},cj:function(){return g},e$:function(){return l},fn:function(){return o},iC:function(){return h},nU:function(){return u},tB:function(){return d}});var n,s,a=r(19043);let i="An unexpected error occurred. Please try again.",l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if((0,a.Bw)(e)){if((0,a.hE)(e.data))return e.data.detail;if((0,a.cz)(e.data)){var r;let t=null===(r=e.data.detail)||void 0===r?void 0:r[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,a.Dy)(e.data)||404===e.status&&(0,a.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function o(e){return"object"==typeof e&&null!=e&&"status"in e}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function d(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:i};if((0,a.oK)(e))return{status:e.originalStatus,message:e.data};if((0,a.Bw)(e)){let{status:r}=e;return{status:r,message:l(e,t.message)}}return t},f=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(n=s||(s={})).GVL="gvl",n.AC="gacp",n.COMPASS="compass";let h={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},g=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},14047:function(e,t,r){"use strict";r.d(t,{H:function(){return a},V:function(){return n.V}});var n=r(84306),s=r(812);let a=()=>{let{errorAlert:e}=(0,n.V)();return{handleError:t=>{let r="An unexpected error occurred. Please try again.";(0,s.Ot)(t)?r=t.data.detail:(0,s.tB)(t)&&(r=t.data.detail[0].msg),e(r)}}}},84306:function(e,t,r){"use strict";r.d(t,{V:function(){return a}});var n=r(24246),s=r(91942);let a=()=>{let e=(0,s.pmc)();return{errorAlert:(t,r,a)=>{let i={...a,position:(null==a?void 0:a.position)||"top",render:e=>{let{onClose:a}=e;return(0,n.jsxs)(s.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,n.jsx)(s.zMQ,{}),(0,n.jsxs)(s.xuv,{children:[r&&(0,n.jsx)(s.CdC,{children:r}),(0,n.jsx)(s.XaZ,{children:t})]}),(0,n.jsx)(s.PZ7,{onClick:a,position:"relative",right:0,size:"sm",top:-1})]})}};(null==a?void 0:a.id)&&e.isActive(a.id)?e.update(a.id,i):e(i)},successAlert:(t,r,a)=>{let i={...a,position:(null==a?void 0:a.position)||"top",render:e=>{let{onClose:a}=e;return(0,n.jsxs)(s.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,n.jsx)(s.zMQ,{}),(0,n.jsxs)(s.xuv,{children:[r&&(0,n.jsx)(s.CdC,{children:r}),(0,n.jsx)(s.XaZ,{children:t})]}),(0,n.jsx)(s.PZ7,{onClick:a,position:"relative",right:0,size:"sm",top:-1})]})}};(null==a?void 0:a.id)&&e.isActive(a.id)?e.update(a.id,i):e(i)}}}},58452:function(e,t,r){"use strict";var n=r(24246),s=r(91942);t.Z=e=>{let{isOpen:t,onClose:r,onConfirm:a,onCancel:i,title:l,message:o,cancelButtonText:c,continueButtonText:d,isLoading:u,returnFocusOnClose:f,isCentered:h,testId:g="confirmation-modal",icon:m}=e;return(0,n.jsxs)(s.u_l,{isOpen:t,onClose:r,size:"lg",returnFocusOnClose:null==f||f,isCentered:h,children:[(0,n.jsx)(s.ZAr,{}),(0,n.jsxs)(s.hzk,{textAlign:"center",p:6,"data-testid":g,children:[m?(0,n.jsx)(s.M5Y,{mb:2,children:m}):null,l?(0,n.jsx)(s.xBx,{fontWeight:"medium",pb:0,children:l}):null,o?(0,n.jsx)(s.fef,{children:o}):null,(0,n.jsx)(s.mzw,{children:(0,n.jsxs)(s.MIq,{columns:2,width:"100%",children:[(0,n.jsx)(s.wpx,{onClick:()=>{i&&i(),r()},size:"large",className:"mr-3","data-testid":"cancel-btn",disabled:u,children:c||"Cancel"}),(0,n.jsx)(s.wpx,{type:"primary",size:"large",onClick:a,"data-testid":"continue-btn",loading:u,children:d||"Continue"})]})})]})]})}},39715:function(e,t,r){"use strict";var n=r(24246),s=r(91942);r(27378),t.Z=e=>{let{isEmptyState:t,yamlError:r}=e;return(0,n.jsx)(s.Rg9,{in:!0,children:(0,n.jsxs)(s.xuv,{w:"fit-content",bg:"white",p:3,borderRadius:3,children:[(0,n.jsxs)(s.Ugi,{children:[(0,n.jsx)(s.X6q,{as:"h5",color:"gray.700",size:"xs",children:"YAML"}),(0,n.jsx)(s.Vp9,{colorScheme:"red",size:"sm",variant:"solid",children:"Error"})]}),(0,n.jsx)(s.xuv,{bg:"red.50",border:"1px solid",borderColor:"red.300",color:"red.300",mt:"16px",borderRadius:"6px",children:(0,n.jsxs)(s.Ugi,{alignItems:"flex-start",margin:["14px","17px","14px","17px"],children:[(0,n.jsx)(s.f9v,{}),t&&(0,n.jsxs)(s.xuv,{children:[(0,n.jsx)(s.X6q,{as:"h5",color:"red.500",fontWeight:"semibold",size:"xs",children:"Error message:"}),(0,n.jsx)(s.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:"Yaml system is required"})]}),r&&(0,n.jsxs)(s.xuv,{children:[(0,n.jsx)(s.X6q,{as:"h5",color:"red.500",fontWeight:"semibold",size:"xs",children:"Error message:"}),(0,n.jsx)(s.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:r.message}),(0,n.jsx)(s.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:r.reason}),(0,n.jsxs)(s.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:["Ln ",(0,n.jsx)("b",{children:r.mark.line}),", Col"," ",(0,n.jsx)("b",{children:r.mark.column}),", Pos"," ",(0,n.jsx)("b",{children:r.mark.position})]})]})]})})]})})}},17294:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return E}});var n=r(24246),s=r(91942),a=r(27378),i=r(77213),l=r(77830),o=r(58754),c=r(34090),d=r(86677),u=r(16125),f=r(55484),h=r(25980),g=r(40324),m=r(812),x=r(58452),y=r(46628),p=r(83265),j=r(32885),v=r(61317),b=r(20386);let C=e=>!("system_type"in e),w={url:"",classify:!1,classifyConfirmed:!1},A=f.Ry().shape({url:f.Z_().required().label("Database URL"),classify:f.O7(),classifyConfirmed:f.O7().when(["url","classify"],{is:(e,t)=>e&&t,then:()=>f.O7().equals([!0])})});var _=()=>{let[e,{isLoading:t}]=(0,b.pR)(),[r,{isLoading:a}]=(0,b.IR)(),[i,{isLoading:o}]=(0,j.Du)(),f=t||a||o,_=(0,s.pmc)(),z=(0,d.useRouter)(),k=(0,h.hz)(),S=(0,u.I0)(),L=async t=>{var r;let n=await e({organization_key:p.Av,generate:{config:{connection_string:t.url},target:v.GC.DB,type:v.j.DATASETS}});if((0,m.D4)(n))return{error:(0,m.e$)(n.error)};let s=(null!==(r=n.data.generate_results)&&void 0!==r?r:[]).filter(C);return s&&s.length>0?{datasets:s}:{error:"Unable to generate a dataset with this connection."}},D=async e=>{let t=await r(e);return(0,m.D4)(t)?{error:(0,m.e$)(t.error)}:{dataset:t.data}},E=async e=>{let{values:t,datasets:r}=e,n=await i({dataset_schemas:r.map(e=>{let{name:t,fides_key:r}=e;return{fides_key:r,name:t}}),schema_config:{organization_key:p.Av,generate:{config:{connection_string:t.url},target:v.GC.DB,type:v.j.DATASETS}}});return(0,m.D4)(n)?{error:(0,m.e$)(n.error)}:{classifyInstances:n.data.classify_instances}},N=async e=>{var t;let r=await L(e);if("error"in r){_((0,y.Vo)(r.error));return}let n=await Promise.all(r.datasets.map(e=>D(e))),s=null!==(t=n.find(e=>"error"in e))&&void 0!==t?t:n[0];if("error"in s){_((0,y.Vo)(s.error));return}if(!e.classify){_((0,y.t5)("Generated ".concat(s.dataset.name," dataset"))),z.push({pathname:l.o5,query:{datasetId:s.dataset.fides_key}});return}let a=await E({values:e,datasets:r.datasets});if("error"in a){_((0,y.Vo)(a.error));return}_((0,y.t5)("Generate and classify are now in progress")),S((0,b.Zl)(s.dataset.fides_key)),z.push("/dataset")};return(0,n.jsx)(c.J9,{initialValues:{...w,classify:k.plus},validationSchema:A,onSubmit:N,validateOnChange:!1,validateOnBlur:!1,children:e=>{let{isSubmitting:t,errors:r,values:a,submitForm:i,resetForm:l,setFieldValue:o}=e;return(0,n.jsxs)(c.l0,{children:[(0,n.jsxs)(s.gCW,{spacing:8,align:"left",children:[(0,n.jsx)(s.xvT,{size:"sm",color:"gray.700",children:"Connect to a database using the connection URL. You may have received this URL from a colleague or your Ethyca developer support engineer."}),(0,n.jsx)(s.xuv,{children:(0,n.jsx)(g.j0,{name:"url",label:"Database URL"})}),k.plus?(0,n.jsx)(g.w8,{name:"classify",label:"Classify dataset",tooltip:"Use Fides Classify to suggest labels based on your data."}):null,(0,n.jsx)(s.xuv,{children:(0,n.jsx)(s.wpx,{type:"primary",htmlType:"submit",loading:t||f,disabled:t||f,"data-testid":"create-dataset-btn",children:"Generate dataset"})})]}),(0,n.jsx)(x.Z,{title:"Generate and classify this dataset",message:"You have chosen to generate and classify this dataset. This process may take several minutes. In the meantime you can continue using Fides. You will receive a notification when the process is complete.",isOpen:void 0!==r.classifyConfirmed,onClose:()=>{l({values:{...a,classifyConfirmed:!1}})},onConfirm:()=>{o("classifyConfirmed",!0),setTimeout(()=>{i()},0)}})]})}})},z=r(66527),k=r(14047),S=r(41207),L=r(39715),D=()=>{let[e]=(0,b.IR)(),[t,r]=(0,a.useState)(!0),[i,o]=(0,a.useState)(!1),[c,u]=(0,a.useState)(!1),f=(0,a.useRef)(null),h=(0,d.useRouter)(),g=(0,s.pmc)(),{errorAlert:x}=(0,k.V)(),[p,j]=(0,a.useState)(void 0),v=e=>{z.ZP.load(e,{json:!0}),j(void 0)},C=async t=>{let r;return"object"==typeof t&&null!=t&&"dataset"in t&&Array.isArray(t.dataset)?[r]=t.dataset:Array.isArray(t)?[r]=t:r=t,e(r)},w=e=>{g((0,y.t5)("Successfully loaded new dataset YAML")),(0,b.Zl)(e.fides_key),h.push({pathname:l.o5,query:{datasetId:e.fides_key}})},A=async()=>{o(!0);let e=f.current.getValue(),t=z.ZP.load(e,{json:!0}),r=await C(t);(0,m.D4)(r)?g((0,y.Vo)((0,m.e$)(r.error))):"data"in r&&w(r.data),o(!1)};return(0,n.jsxs)(s.kCb,{gap:"97px",children:[(0,n.jsxs)(s.xuv,{w:"75%",children:[(0,n.jsx)(s.xuv,{color:"gray.700",fontSize:"14px",mb:4,children:"Get started creating your first dataset by pasting your dataset yaml below! You may have received this yaml from a colleague or your Ethyca developer support engineer."}),(0,n.jsxs)(s.gCW,{align:"stretch",children:[(0,n.jsx)(s.izJ,{color:"gray.100"}),(0,n.jsx)(S.M,{defaultLanguage:"yaml",height:"calc(100vh - 515px)",onChange:e=>{try{u(!0),v(e),r(!!(!e||""===e.trim()))}catch(e){(0,S.F)(e)?j(e):x("Could not parse the supplied YAML")}},onMount:e=>{f.current=e,f.current.focus()},options:{fontFamily:"Menlo",fontSize:13,minimap:{enabled:!0}},theme:"light"}),(0,n.jsx)(s.izJ,{color:"gray.100"}),(0,n.jsx)(s.wpx,{type:"primary",disabled:t||!!p||i,loading:i,onClick:A,htmlType:"submit",className:"mt-6 w-fit",children:"Create dataset"})]})]}),(0,n.jsx)(s.xuv,{children:c&&(t||p)&&(0,n.jsx)(L.Z,{isEmptyState:t,yamlError:p})})]})},E=()=>{let[e,t]=(0,a.useState)(null);return(0,n.jsxs)(i.Z,{title:"Create New Dataset",children:[(0,n.jsx)(o.Z,{heading:"Datasets",breadcrumbItems:[{title:"All datasets",href:l.$m},{title:"Create new"}]}),(0,n.jsxs)(s.Kqy,{spacing:8,children:[(0,n.jsxs)(s.xuv,{children:[(0,n.jsx)(s.wpx,{onClick:()=>t("yaml"),"data-testid":"upload-yaml-btn",className:"mr-2",children:"Upload a Dataset YAML"}),(0,n.jsx)(s.wpx,{onClick:()=>t("database"),ghost:"database"===e,className:"mr-2","data-testid":"connect-db-btn",children:"Connect to a database"})]}),"database"===e&&(0,n.jsx)(s.xuv,{w:{base:"100%",lg:"50%"},children:(0,n.jsx)(_,{})}),"yaml"===e&&(0,n.jsx)(s.xuv,{w:{base:"100%"},children:(0,n.jsx)(D,{})})]})]})}},19043:function(e,t,r){"use strict";r.d(t,{Bw:function(){return i},D4:function(){return s},Dy:function(){return o},XD:function(){return c},cz:function(){return d},hE:function(){return l},oK:function(){return a}});var n=r(76649);let s=e=>"error"in e,a=e=>(0,n.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,i=e=>(0,n.Ln)({status:"number",data:{}},e),l=e=>(0,n.Ln)({detail:"string"},e),o=e=>(0,n.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,n.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),d=e=>(0,n.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)},76649:function(e,t,r){"use strict";r.d(t,{Ln:function(){return n}});let n=(e,t)=>a(e,t),s=Symbol("SOME"),a=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?s in e?e.some(e=>a(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>a(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,r])=>a(r,t[e]));class i{static narrow(e){return new i(t=>n(e,t))}constructor(e){this.NF=void 0,this.NF=e}satisfied(e){return this.NF(e)}build(e){return e}and(e){let t=this.NF,r=e instanceof i?e.NF:e instanceof Function?e:t=>n(e,t);return new i(e=>t(e)&&r(e))}}new i(e=>!0)}},function(e){e.O(0,[6527,9327,2888,9774,179],function(){return e(e.s=73846)}),_N_E=e.O()}]);
|