ethyca-fides 2.71.1rc0__py2.py3-none-any.whl → 2.71.2b0__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ethyca-fides might be problematic. Click here for more details.
- {ethyca_fides-2.71.1rc0.dist-info → ethyca_fides-2.71.2b0.dist-info}/METADATA +2 -2
- {ethyca_fides-2.71.1rc0.dist-info → ethyca_fides-2.71.2b0.dist-info}/RECORD +233 -230
- fides/_version.py +3 -3
- fides/api/api/v1/endpoints/generic_overrides.py +9 -3
- fides/api/models/privacy_notice.py +8 -0
- fides/api/models/privacy_request/privacy_request.py +1 -1
- fides/api/service/connectors/query_configs/saas_query_config.py +16 -0
- fides/api/service/connectors/saas_connector.py +9 -1
- fides/api/util/saas_util.py +1 -0
- fides/data/language/languages.yml +2 -0
- fides/service/dataset/dataset_service.py +39 -0
- fides/service/privacy_request/privacy_request_service.py +103 -48
- fides/ui-build/static/admin/404.html +1 -1
- fides/ui-build/static/admin/_next/static/chunks/1099-27b2d4e59a569b38.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{1115-90baef2a89f361ad.js → 1115-8fb5000847f73ec7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/1437-fb699e9d69c3e325.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/155-3d03f101c662c054.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{1817-1ad037b7d6d2f6d2.js → 1817-10b392e1dd9c4673.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{1975.78e719130cfe3fd6.js → 1975.50599b6774562644.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{2040-fdecc41a18e40bdc.js → 2040-01d5edb1802d3482.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/2397-40506a386a3a469a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{2921-66f65496c3a09316.js → 2921-edfdffa353a611e4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/3377-4c129258b4c4ea28.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{3696-90c8b336bbc46782.js → 3696-259be222ea12392a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/3700-42976bfaad3b91c9.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3772-aa7beafe5df5e656.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{3923-98bea73b618292aa.js → 3923-fa1d71afc7dc9e6e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{401-ffe4e8436e1eceb9.js → 401-5270e3e23b08ab2b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/431-e01ee730c8ad9ece.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4817-5f9b9c9bafe888f1.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{5185-51eaa78e3ed6bfb7.js → 5185-325e5435a0c7dcb7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/5258-2d28b2c64acf5de3.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{5279-12c9cbdc67ad7b14.js → 5279-21929b12c927b022.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/549-c3b4c51f45a84a52.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{5643-10a36584c399526c.js → 5643-7583c1f8dbd83273.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5783-d119cb132abd8a91.js → 5783-55c0387508e50f3e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6277-182efc294d413f64.js → 6277-ca31d48a33202761.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/6315-2d4e86a32fc40458.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6344-ca66a6e10d128179.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{6853-7004a8c420b1ca02.js → 6853-cb15625a713b3ef9.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6954-4b24e1731c1cc3b3.js → 6954-08b59d28d7a2a43b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/7245-895bb7c6a6c797bc.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{7476-d055aa931da47ac0.js → 7476-f25fce73eeb1f9c6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/7488-df17b592fbeaa1eb.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{7630-d0d3a0fe3f95e971.js → 7630-71582de0e818e28f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/7773-98d34d188ae0a694.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{796-02086581996a0548.js → 796-7944f684f8945506.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/8011-56031d82d5428981.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/8373-7f940f5ac9c38b1f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9046-31b16a7e872c22be.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9070-13f237db78da586d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9330-cea1bf40f5d27e53.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{9676.b86ecbcfe5afd25d.js → 9676.1ea49d4b6e0541f2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/9682-2754256aeae141bb.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{9826-ccedc28e978ca9e1.js → 9826-e71887e2c4283249.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/9899-15530c468d5656a1.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9965-54037b6c8f36d14b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{404-2eb8aed4939f1142.js → 404-2014144a1a0fa64f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{_app-a7c02dd2ff07f9e1.js → _app-9e869a44215709ed.js} +9 -9
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-4f3ba02774f27795.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-2ca59996860a33c5.js → multiple-1c9cef80deccb15d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-4adeec3bcec05f7b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-7a258b7ecd6da4b8.js → add-vendors-f7bdc2da53137ffd.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-fb5017ff5fa54fcc.js → configure-a27b220fe76bdc8e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-e1e2fd704ac2d71d.js → [id]-542fd4a4322122f1.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-92182be6603c2842.js → privacy-experience-4254abef7bb52edd.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-5fc78b78a51c239c.js → [id]-d31d1c233e94dc1f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-b79bcb93b5f4c734.js → new-2ea057e6217993f9.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-ab54b19609bff325.js → privacy-notices-8e76cbfaf71fdcb9.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-069f4e3ee96ebf77.js → properties-eb557180eded0abd.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-93730a4316c0d980.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{consent-d2bf72508c3cad55.js → consent-c64589e53338e59a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/{[resourceUrn]-2fa4b3a58f75f81d.js → [resourceUrn]-d3d1841bc8105e56.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-8cd4d1d6ba000333.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-69b429a9d30ebaf1.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/{[resourceUrn]-5b31e3d7727b917a.js → [resourceUrn]-791c522ad1d9a2ce.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources-8c7103ebf01d6e6a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-a53ef0161235ee47.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-f85f4f8fcf1bfbdb.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/data-explorer-3619e454763dba09.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-ace848575e688200.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-53ca31c50c43007f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-f87e4a0f664f4cde.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-844a8de0d1b506e2.js → [resourceUrn]-699762cb8a66237e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-11b07cf2d91b17ef.js → detection-d970d0b82db36c88.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-5525cf287d4ab493.js → [resourceUrn]-a6343038a447699c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-ed4723e1b67d890e.js → discovery-ce82ba79f9bf825c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datamap-ae7a4c1c4eabc0d4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-179e5d09ccff50c1.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]-59466e5e238c59d0.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-36d90c8c39fb0d1c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-db54d01fd8f6df50.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset-55d312af5228e098.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/[id]-488beba62e832660.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-4aad5495f9bf81ce.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-496ec7ecca8259dc.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{index-b74d1e8608ae5b5d.js → index-8a2ba955d92d52ee.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-4580f70eb41b6a7d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations-f69b04d3b4cf43b1.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{[id]-e8d2140787045acd.js → [id]-d6eed2dc5d27f625.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{add-template-e3f93462a08251bf.js → add-template-c7b43fa365f4be10.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{messaging-b5f7d6afdecd013d.js → messaging-c7ba755c2e0e2377.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/{ant-components-248ad9f65a872442.js → ant-components-f14bfd5890a0e939.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{AntForm-aedb66a62042b10a.js → AntForm-e4274a4d5d23eea9.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikAntFormItem-018df38b7cd77fdb.js → FormikAntFormItem-f5bce1ceb0502f04.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikControlled-6ca9099d03aab817.js → FormikControlled-90b4ea9f9deca6e2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikField-0f2c90786ea005a4.js → FormikField-d6043ae8dae6ef7d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/{forms-200b51a725f8b2d1.js → forms-520ba5ae02f47bda.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/{table-migration-29fb7b39f8962650.js → table-migration-b46f432b51421fae.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{[id]-febf156d2977f3ac.js → [id]-fe4ed3ad75151e36.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-de681c2d022c9e0d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-8f577df28ebca869.js → configure-04ebf2fb6fc4358a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-cd8ba2eef9085377.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-57a75c7e9659271a.js → [id]-f75a407d78857ab3.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-8964c2300206bc89.js → add-property-975ff605e1dbc09c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{properties-08472b2a6bf1d392.js → properties-e7fdf3a9a3e8c267.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-764b6ce8e030d4a1.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/{[purpose_id]-f3e6e74e0efb005c.js → [purpose_id]-da78452b3c41b29e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{consent-4d658222ec800511.js → consent-6442e761ecb5c65a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-ea9baf24de35d3b1.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-744f669431b84f71.js → domain-records-44d06e280990854d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domains-a3275554ffe8e640.js → domains-6f61d886aa6f5ce7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-604790638c656fbd.js → email-templates-11148b182370fd83.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-be2a885150adc133.js → locations-33448bf0a1d53870.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/messaging-providers/{[key]-77239269acc2d31a.js → [key]-4a18d8135c0dbf2a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/messaging-providers/{new-8bf1821722b082e9.js → new-41957281b8ec26b1.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/messaging-providers-776258bad0941a7d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-3c86162afe9759df.js → organization-3c315036f1fc9f90.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/privacy-requests-00917525c9245a90.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-4fe3b90747d885e5.js → regulations-5d924b2f1f926b88.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/{test-datasets-2deb6becece69d46.js → test-datasets-8067e12227210f48.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-4d470bbf199a2f9c.js → [id]-1a902922759cae76.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems-277ea1f34c3714cf.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-cecea5832cb1f3b0.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-98f737e735eaa0f0.js → [id]-726fbc0a34ffba1f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-562624e5461083ec.js → user-management-df9b75ab01c1a2ea.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{webpack-2766492c5dbceb0a.js → webpack-118fb4723d13c14f.js} +1 -1
- fides/ui-build/static/admin/_next/static/css/372d6a236c84613f.css +1 -0
- fides/ui-build/static/admin/_next/static/zmEQMSpOBih8kmA1t-EWO/_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]/data-explorer.html +1 -0
- 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-preview.js +1 -1
- fides/ui-build/static/admin/lib/fides-tcf.js +2 -2
- fides/ui-build/static/admin/lib/fides.js +2 -2
- fides/ui-build/static/admin/login/[provider].html +1 -1
- fides/ui-build/static/admin/login.html +1 -1
- fides/ui-build/static/admin/messaging/[id].html +1 -1
- fides/ui-build/static/admin/messaging/add-template.html +1 -1
- fides/ui-build/static/admin/messaging.html +1 -1
- fides/ui-build/static/admin/poc/ant-components.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/AntForm.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikAntFormItem.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikControlled.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikField.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikSpreadField.html +1 -1
- fides/ui-build/static/admin/poc/forms.html +1 -1
- fides/ui-build/static/admin/poc/table-migration.html +1 -1
- fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
- fides/ui-build/static/admin/privacy-requests.html +1 -1
- fides/ui-build/static/admin/properties/[id].html +1 -1
- fides/ui-build/static/admin/properties/add-property.html +1 -1
- fides/ui-build/static/admin/properties.html +1 -1
- fides/ui-build/static/admin/reporting/datamap.html +1 -1
- fides/ui-build/static/admin/settings/about/alpha.html +1 -1
- fides/ui-build/static/admin/settings/about.html +1 -1
- fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +1 -1
- fides/ui-build/static/admin/settings/consent.html +1 -1
- fides/ui-build/static/admin/settings/custom-fields/[id].html +1 -1
- fides/ui-build/static/admin/settings/custom-fields/new.html +1 -1
- fides/ui-build/static/admin/settings/custom-fields.html +1 -1
- fides/ui-build/static/admin/settings/domain-records.html +1 -1
- fides/ui-build/static/admin/settings/domains.html +1 -1
- fides/ui-build/static/admin/settings/email-templates.html +1 -1
- fides/ui-build/static/admin/settings/locations.html +1 -1
- fides/ui-build/static/admin/settings/messaging-providers/[key].html +1 -1
- fides/ui-build/static/admin/settings/messaging-providers/new.html +1 -1
- fides/ui-build/static/admin/settings/messaging-providers.html +1 -1
- fides/ui-build/static/admin/settings/organization.html +1 -1
- fides/ui-build/static/admin/settings/privacy-requests.html +1 -1
- fides/ui-build/static/admin/settings/regulations.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id].html +1 -1
- fides/ui-build/static/admin/systems.html +1 -1
- fides/ui-build/static/admin/taxonomy.html +1 -1
- fides/ui-build/static/admin/user-management/new.html +1 -1
- fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
- fides/ui-build/static/admin/user-management.html +1 -1
- fides/ui-build/static/admin/_next/static/chunks/155-c1ae010c664e2245.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3585-efd5d41f08e180c4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3855-12ee1dfbbe47fd28.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3872-04d3afbfa41a7782.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/409-c1256ecda1b15db6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/431-78bf05f35d7eec4f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4558-de5ced790b3380dc.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4608-a9941d0c236ebca1.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4718-6585c97c26647e65.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/502-d3ecae97b67befbd.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/504-88caa30c03374e9b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5309-3b6cf0cc9d0c6a83.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5574-c31ea831371610d5.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6882-10296485ec326e6b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7045-f15044a4d4525946.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7079-bbc7b856802a4834.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7158-04745cc8d684b2e7.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7218-e2983b96b95e33b4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7725-f2a7be705b75dcc3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7929-0fd0d4948bc8d70e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/8002-ed832921ad190832.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9046-2a332fe338535c84.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9226-4a7027057f55ca2a.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-4ec03eed67572861.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-58920afe2b67f952.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-ae4909cad9b67822.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-4a1af12d2d7cd660.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-99573a1ee3ef8f4c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources-6e429b7511028d60.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-56fd0f3e465e52b6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-29c1fb777bd464e0.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-0d512528b498d75c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-040813022f0890c9.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-2635ef588bf06145.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datamap-15616bea02397ef4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-d4031e438c363fff.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]-9463af37079762d0.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-60a4a9eb4aab4c11.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-ea198c4a7869f402.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset-0e3a6ac4797ffbbb.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/[id]-816e02b6cbe4a684.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-b6838162200141b3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-223c2d1ded51bfb1.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-153eb88ab4e7dc6d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations-f682b1def859931e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-648d775d0fce49dc.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-7af00f72cf694077.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-f7753e9effae3816.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-5edfec10a945ca43.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/messaging-providers-8d92be437793c96f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/privacy-requests-8cbdfd08e0fa88fb.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems-0f1d833282f09684.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-a8cfa7de4948b374.js +0 -1
- fides/ui-build/static/admin/_next/static/css/64fac6fb884435c2.css +0 -1
- fides/ui-build/static/admin/_next/static/vSOB67a-1uIVzRUKBYMSo/_buildManifest.js +0 -1
- {ethyca_fides-2.71.1rc0.dist-info → ethyca_fides-2.71.2b0.dist-info}/WHEEL +0 -0
- {ethyca_fides-2.71.1rc0.dist-info → ethyca_fides-2.71.2b0.dist-info}/entry_points.txt +0 -0
- {ethyca_fides-2.71.1rc0.dist-info → ethyca_fides-2.71.2b0.dist-info}/licenses/LICENSE +0 -0
- {ethyca_fides-2.71.1rc0.dist-info → ethyca_fides-2.71.2b0.dist-info}/top_level.txt +0 -0
- /fides/ui-build/static/admin/_next/static/{vSOB67a-1uIVzRUKBYMSo → zmEQMSpOBih8kmA1t-EWO}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4231],{74833:function(e,t,i){var n=i(56127),s=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(s,""):e}},56632:function(e,t,i){var n=i(89278),s=i(80068),a=i(50098);e.exports=function(e){return function(t,i,r){var o=Object(t);if(!s(t)){var l=n(i,3);t=a(t),i=function(e){return l(o[e],e,o)}}var d=e(t,i,r);return d>-1?o[l?t[d]:d]:void 0}}},56127:function(e){var t=/\s/;e.exports=function(e){for(var i=e.length;i--&&t.test(e.charAt(i)););return i}},64925:function(e,t,i){var n=i(56632)(i(66259));e.exports=n},66259:function(e,t,i){var n=i(95372),s=i(89278),a=i(47991),r=Math.max;e.exports=function(e,t,i){var o=null==e?0:e.length;if(!o)return -1;var l=null==i?0:a(i);return l<0&&(l=r(o+l,0)),n(e,s(t,3),l)}},94919:function(e,t,i){var n=i(91936),s=1/0;e.exports=function(e){return e?(e=n(e))===s||e===-s?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,i){var n=i(94919);e.exports=function(e){var t=n(e),i=t%1;return t==t?i?t-i:t:0}},91936:function(e,t,i){var n=i(74833),s=i(11611),a=i(55193),r=0/0,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,d=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return r;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var i=l.test(e);return i||d.test(e)?c(e.slice(2),i?2:8):o.test(e)?r:+e}},66248:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog",function(){return i(99375)}])},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return p}});var n=i(24246),s=i(20595),a=i(88038),r=i.n(a),o=i(86677);i(27378);var l=i(25980),d=i(90867),c=i(42478),u=i(77830),g=()=>{let e=(0,o.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(u.AD)},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."," "]})]})})},p=e=>{let{children:t,title:i,padded:a=!0,mainProps:u}=e,p=(0,l.hz)(),m=(0,o.useRouter)(),f="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,x=!(p.flags.messagingConfiguration&&f),{data:v}=(0,c.JE)(void 0,{skip:x}),{data:h}=(0,d.PW)(void 0,{skip:x}),y=p.flags.messagingConfiguration&&(!v||!h)&&f;return(0,n.jsxs)(s.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(r(),{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.jsxs)(s.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[y?(0,n.jsx)(g,{}):null,t]})]})}},58754:function(e,t,i){"use strict";var n=i(24246),s=i(20595),a=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:r=!0,children:o,rightContent:l,style:d,...c}=e;return(0,n.jsxs)("div",{...c,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,n.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(s.lQT,{className:i||o?"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)(a.m,{className:o?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),o]})}},79789:function(e,t,i){"use strict";i.d(t,{Hn:function(){return o},XU:function(){return r},Z5:function(){return l},aG:function(){return u},cB:function(){return a},hX:function(){return c},vQ:function(){return d}});var n=i(24246),s=i(20595);let a=e=>{let{text:t,...i}=e;return(0,n.jsx)(s.X6q,{fontSize:"sm",mt:4,mb:1,...i,children:t})},r=e=>{let{children:t}=e;return(0,n.jsx)(s.xvT,{fontSize:"14px",mb:4,children:t})},o=e=>{let{children:t,href:i}=e;return(0,n.jsx)(s.rUS,{href:i,textDecoration:"underline",isExternal:!0,children:t})},l=e=>{let{children:t}=e;return(0,n.jsx)(s.QI$,{fontSize:"14px",mb:4,children:t})},d=e=>{let{children:t}=e;return(0,n.jsx)(s.GSI,{fontSize:"14px",mb:4,ml:6,children:t})},c=e=>{let{children:t}=e;return(0,n.jsx)(s.EKh,{display:"block",whiteSpace:"pre",p:4,mb:4,overflowX:"scroll",children:t})},u=e=>{let{data:t}=e;return(0,n.jsxs)(s.iA_,{fontSize:"14px",children:[(0,n.jsx)(s.hrZ,{children:(0,n.jsxs)(s.Tr,{children:[(0,n.jsx)(s.Th,{children:"Permission"}),(0,n.jsx)(s.Th,{children:"Description"})]})}),(0,n.jsx)(s.p3B,{children:t.map(e=>(0,n.jsxs)(s.Tr,{children:[(0,n.jsx)(s.Td,{children:(0,n.jsx)(s.Vp9,{children:e.permission})}),(0,n.jsx)(s.Td,{children:e.description})]},e.permission))})]})}},83099:function(e,t,i){"use strict";var n=i(24246),s=i(79283),a=i(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:i=!1,...r}=e,{getDataUseDisplayNameProps:o,getDataUses:l}=(0,a.Z)(),d=(i?l():l().filter(e=>e.active)).filter(e=>!(null==t?void 0:t.includes(e.fides_key))).map(e=>{let{name:t,primaryName:i}=o(e.fides_key);return{value:e.fides_key,name:t,primaryName:i,description:e.description||""}});return(0,n.jsx)(s.l,{options:d,...r})}},79283:function(e,t,i){"use strict";i.d(t,{l:function(){return c}});var n=i(24246),s=i(20595),a=i(72707),r=i.n(a);let o=e=>{let{data:{formattedTitle:t,description:i,name:a,primaryName:r}}=e;return(0,n.jsxs)(s.jqI,{gap:12,title:"".concat(t," - ").concat(i),children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("strong",{children:r||a}),r&&": ".concat(a)]}),(0,n.jsx)("em",{children:i})]})},l=e=>"options"in e&&Array.isArray(e.options),d=e=>({...e,className:r().option,formattedTitle:e.formattedTitle||[e.primaryName,e.name].filter(e=>e).join(": ")}),c=e=>{let{options:t,...i}=e,a=null==t?void 0:t.map(e=>l(e)?{...e,options:e.options.map(d)}:d(e));return(0,n.jsx)(s.WPr,{options:a,filterOption:(e,t)=>{var i,n;return(null==t?void 0:null===(i=t.formattedTitle)||void 0===i?void 0:i.toLowerCase().includes(e.toLowerCase()))||(null==t?void 0:null===(n=t.value)||void 0===n?void 0:n.toLowerCase().includes(e.toLowerCase()))||!1},optionFilterProp:"label",autoFocus:!0,variant:"borderless",optionRender:o,styles:{popup:{root:{minWidth:"500px"}}},className:"w-full p-0","data-testid":"taxonomy-select",...i})}},97181:function(e,t,i){"use strict";i.d(t,{d:function(){return d}});var n=i(24246),s=i(20595),a=i(34090),r=i(27378),o=i(46238),l=i(40324);let d=e=>{let{name:t,label:i,labelProps:d,tooltip:c,isRequired:u,layout:g="inline",helperText:p,...m}=e,[f,x,{setValue:v}]=(0,a.U$)(t),h=!!(x.touched&&x.error),[y,j]=(0,r.useState)("");f.value||"tags"!==m.mode&&"multiple"!==m.mode||(f.value=[]),"tags"===m.mode&&"string"==typeof f.value&&(f.value=[f.value]);let b="tags"===m.mode?(e,t)=>e?e.value!==y||f.value.includes(y)?m.optionRender?m.optionRender(e,t):e.label:'Create "'.concat(y,'"'):void 0:m.optionRender||void 0,_=e=>{j(e),m.onSearch&&m.onSearch(e)},C=(e,t)=>{v(e),m.onChange&&m.onChange(e,t)};return"inline"===g?(0,n.jsx)(s.NIc,{isInvalid:h,isRequired:u,children:(0,n.jsxs)(s.rjZ,{templateColumns:i?"1fr 3fr":"1fr",children:[i?(0,n.jsx)(l.__,{htmlFor:m.id||t,...d,children:i}):null,(0,n.jsxs)(s.jqI,{align:"center",children:[(0,n.jsxs)(s.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,n.jsx)(s.WPr,{...f,id:m.id||t,"data-testid":"controlled-select-".concat(f.name),...m,optionRender:b,onSearch:"tags"===m.mode?_:void 0,onChange:C,value:f.value||void 0,status:h?"error":void 0}),p&&(0,n.jsx)(s.Q6r,{children:p}),(0,n.jsx)(l.Bc,{isInvalid:h,message:x.error,fieldName:f.name})]}),(0,n.jsx)(o.b,{label:c,className:h?"mt-2 self-start":void 0})]})]})}):(0,n.jsx)(s.NIc,{isInvalid:h,isRequired:u,children:(0,n.jsxs)(s.gCW,{alignItems:"start",children:[(0,n.jsxs)(s.jqI,{align:"center",children:[i?(0,n.jsx)(l.__,{htmlFor:m.id||t,fontSize:"xs",my:0,mr:1,...d,children:i}):null,(0,n.jsx)(o.b,{label:c})]}),(0,n.jsx)(s.WPr,{...f,id:m.id||t,"data-testid":"controlled-select-".concat(f.name),...m,optionRender:b,onSearch:"tags"===m.mode?_:void 0,onChange:C,value:f.value||void 0,status:h?"error":void 0}),p&&(0,n.jsx)(s.Q6r,{style:{marginTop:0},children:p}),(0,n.jsx)(l.Bc,{isInvalid:h,message:x.error,fieldName:f.name})]})})}},34929:function(e,t,i){"use strict";var n=i(24246),s=i(64925),a=i.n(s),r=i(27378),o=i(16134),l=i(30002),d=i(28079),c=i(57072);let u=()=>{let{isLoading:e}=(0,d.fd)(),t=(0,o.C)(d.U3),{isLoading:i}=(0,c.MO)(),n=(0,o.C)(c.qb),{isLoading:s}=(0,l.te)();return{dataUses:t,dataSubjects:(0,o.C)(l.ZL),dataCategories:n,isLoading:e||i||s}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:i,isLoading:s}=u(),o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},l=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=t(e);if(!n)return{};let s=t(o(e,i)),a=!!n.parent_key;return{name:n.name||void 0,primaryName:a&&(null==s?void 0:s.name)!==n.name&&(null==s?void 0:s.name)||void 0}},d=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:s,primaryName:a}=l(e,t,i);return s?a?(0,n.jsxs)(r.Fragment,{children:[(0,n.jsxs)("strong",{children:[a,":"]})," ",s]},e):(0,n.jsx)("strong",{children:s},e):e},c=t=>a()(e,{fides_key:t}),g=e=>a()(t,{fides_key:e}),p=e=>a()(i,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:c,getDataUseDisplayName:e=>d(e,c,1),getDataUseDisplayNameProps:e=>l(e,c,1),getDataCategories:()=>t,getDataCategoryByKey:g,getDataCategoryDisplayName:e=>d(e,g,2),getDataCategoryDisplayNameProps:e=>l(e,g,2),getDataSubjects:()=>i,getDataSubjectByKey:p,getDataSubjectDisplayName:e=>{let t=p(e);return t?t.name:e},getPrimaryKey:o,isLoading:s}}},8133:function(e,t,i){"use strict";var n=i(24246),s=i(20595);t.Z=e=>{let{title:t,children:i,isOpen:a,onClose:r,modalContentProps:o,showCloseButton:l=!1,footer:d,...c}=e;return(0,n.jsxs)(s.u_l,{isOpen:a,onClose:r,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...c,children:[(0,n.jsx)(s.ZAr,{}),(0,n.jsxs)(s.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...o,children:[l&&(0,n.jsx)(s.olH,{}),(0,n.jsx)(s.xBx,{p:0,children:(0,n.jsx)(s.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,n.jsx)(s.X6q,{as:"h3",size:"sm",children:t})})}),(0,n.jsx)(s.fef,{pb:4,overflow:"auto",children:i}),d&&(0,n.jsx)(s.mzw,{children:d})]})]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return d}});var n=i(24246),s=i(20595),a=i(79894),r=i.n(a),o=i(27378);let{Text:l}=s.AntTypography,d=e=>{let{items:t,...i}=e,a=(0,o.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let a=i===t.length-1,o={...e},d=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,n.jsx)(l,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,id:a?"breadcrumb-current-page":void 0,children:o.title})),d)?o.title=(0,n.jsx)(s.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,n.jsx)(r(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,n.jsx)(s.zrq,{items:a,...i})}},79609:function(e,t,i){"use strict";i.d(t,{N4:function(){return r},UG:function(){return s},xw:function(){return a}});var n=i(54427);let{useGetCatalogSystemsQuery:s,useGetCatalogProjectsQuery:a,useGetCatalogDatasetsQuery:r}=i(78780).u.injectEndpoints({endpoints:e=>({getCatalogSystems:e.query({query:e=>({method:"GET",url:"/plus/data-catalog/system",params:e}),providesTags:["Catalog Systems","System"]}),getCatalogProjects:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/project",params:t}},providesTags:["Discovery Monitor Results"]}),getCatalogDatasets:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/dataset",params:t}},providesTags:["Discovery Monitor Results"]})})});(0,n.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},81406:function(e,t,i){"use strict";var n=i(24246),s=i(20595);t.Z=()=>(0,n.jsxs)(s.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:[(0,n.jsx)(s.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"}),(0,n.jsx)(s.xvT,{fontSize:"sm",children:"You're up to date!"})]})},26183:function(e,t,i){"use strict";var n=i(24246);i(27378),t.Z=e=>{let{children:t,className:i,...s}=e;return(0,n.jsx)("div",{className:"relative flex w-full flex-wrap items-center gap-2 overflow-x-auto py-2 ".concat(i||""),...s,children:t})}},3765:function(e,t,i){"use strict";var n=i(20595),s=i(812),a=i(46628),r=i(32885),o=i(1315),l=i(85054),d=i(31883);let c=(e,t)=>{let i=[],n=[];return Object.entries(e).forEach(e=>{let[s,a]=e;a?i.push({id:s,value:a,resource_id:t,custom_field_definition_id:s}):n.push(s)}),{upsert:i,delete:n,resource_type:l.P6.PRIVACY_DECLARATION,resource_id:t}};t.Z=e=>{let t=(0,n.pmc)(),[i]=(0,o.qQ)(),[l]=(0,r._D)(),u=i=>!!e.privacy_declarations.find(e=>e.data_use===i.data_use&&e.name===i.name)&&(t((0,a.Vo)("A declaration already exists with that data use in this system. Please supply a different data use.")),!0),g=e=>{let{systemResult:i,customFieldsResult:n,isDelete:r}=e;if((0,d.D4)(i)){let e=(0,s.e$)(i.error,"An unexpected error occurred while updating the system. Please try again.");t((0,a.Vo)(e));return}if(n&&(0,d.D4)(n)){let e=(0,s.e$)(n.error,"Data use was updated, but an error occurred while updating custom fields. Please try again.");t((0,a.Vo)(e));return}return t((0,a.t5)(r?"Data use deleted":"Data use saved")),i.data.privacy_declarations},p=async(t,n,s,a)=>{let r;let o=t.map(e=>{var t;return{...e,name:null!==(t=e.name)&&void 0!==t?t:""}}),d={...e,privacy_declarations:o},u=await i(d);if(s&&a){var p,m;let e=null==u?void 0:null===(m=u.data)||void 0===m?void 0:null===(p=m.privacy_declarations)||void 0===p?void 0:p.find(e=>e.data_use===a);if(e){let t=c(s,e.id);r=await l(t)}}return g({systemResult:u,customFieldsResult:r,isDelete:n})};return{createDataUse:async i=>{if(u(i))return;let{customFieldValues:n,...s}=i;return t.closeAll(),p([...e.privacy_declarations,s],!1,n,s.data_use)},updateDataUse:async(t,i)=>{if(i.id!==t.id&&u(i))return;let{customFieldValues:n,...s}=i;return p(e.privacy_declarations.map(e=>e.id===t.id?s:e),!1,n,s.data_use)},deleteDataUse:async t=>p(e.privacy_declarations.filter(e=>e.id!==t.id),!0),deleteDeclarationByDataUse:async t=>p(e.privacy_declarations.filter(e=>e.data_use!==t),!0)}}},42478:function(e,t,i){"use strict";i.d(t,{FU:function(){return d},JE:function(){return s},Ki:function(){return u},SU:function(){return g},W:function(){return p},h9:function(){return a},jc:function(){return n},qt:function(){return l},sn:function(){return c}});let{useGetEmailInviteStatusQuery:n,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:a,useCreateMessagingConfigurationSecretsMutation:r,useGetMessagingConfigurationDetailsQuery:o,useGetMessagingConfigurationsQuery:l,useGetMessagingConfigurationByKeyQuery:d,useUpdateMessagingConfigurationByKeyMutation:c,useUpdateMessagingConfigurationSecretsByKeyMutation:u,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:p}=i(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,t,i,n)=>{let s=await n({url:"messaging/default/active"});return s.error&&404===s.error.status?{data:null}:s},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},54748:function(e,t,i){"use strict";var n=i(27378),s=i(85054);t.Z=()=>({legalBasisOptions:(0,n.useMemo)(()=>Object.keys(s.gP).map(e=>({value:s.gP[e],label:s.gP[e]})),[])})},28325:function(e,t,i){"use strict";var n=i(27378),s=i(85054);t.Z=()=>({specialCategoryLegalBasisOptions:(0,n.useMemo)(()=>Object.keys(s.nV).map(e=>({value:s.nV[e],label:s.nV[e]})),[])})},57072:function(e,t,i){"use strict";i.d(t,{Bd:function(){return n.Bd},L5:function(){return n.L5},MO:function(){return n.MO},qb:function(){return n.qb}});var n=i(5785)},99375:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return U}});var n=i(24246),s=i(77213),a=i(58754),r=i(92222),o=i(59003),l=i(86677),d=i(27378),c=i(77830),u=i(47935),g=i(16394),p=i(79609),m=i(81406),f=i(20595),x=i(79789),v=i(83099),h=i(34929),y=i(34090),j=i(55484),b=i(97181),_=i(40324),C=i(8133),w=i(54748),k=i(28325),S=i(34151),q=i.n(S);let T=j.Ry().shape({data_use:j.Z_().required("Data use is required")});var D=e=>{let{isOpen:t,onClose:i,onSave:s,declaration:a}=e,{getDataUses:r,getDataCategories:o,getDataSubjects:l}=(0,h.Z)(),{isOpen:d,onToggle:c}=(0,f.qY0)(),u=r().map(e=>({label:e.fides_key,value:e.fides_key})),g=o().map(e=>({label:e.fides_key,value:e.fides_key})),p=l().map(e=>({label:e.fides_key,value:e.fides_key})),{legalBasisOptions:m}=(0,w.Z)(),{specialCategoryLegalBasisOptions:x}=(0,k.Z)();return(0,n.jsx)(y.J9,{initialValues:a,enableReinitialize:!0,onSubmit:e=>{s(e),i()},validationSchema:T,children:e=>{let{dirty:s,isValid:a,values:r,resetForm:o}=e;return(0,n.jsx)(C.Z,{title:"Edit data use",isOpen:t,onClose:i,children:(0,n.jsxs)(y.l0,{children:[(0,n.jsxs)(f.jqI,{vertical:!0,className:"gap-6 py-4",children:[(0,n.jsx)(b.d,{name:"data_use",label:"Data use",options:u,layout:"stacked",isRequired:!0}),(0,n.jsx)(b.d,{name:"data_categories",label:"Data categories",options:g,mode:"multiple",layout:"stacked"}),(0,n.jsx)(b.d,{name:"data_subjects",label:"Data subjects",options:p,mode:"multiple",layout:"stacked"}),(0,n.jsx)(_.j0,{name:"name",label:"Declaration name",variant:"stacked"}),(0,n.jsxs)(f.jqI,{vertical:!0,className:"gap-6 p-4 ".concat(q().advancedSettings),children:[(0,n.jsxs)(f.jqI,{className:"cursor-pointer justify-between",onClick:c,children:[(0,n.jsx)(f.xvT,{fontSize:"xs",children:"Advanced settings"}),(0,n.jsx)(f.v4q,{className:d?"rotate-180":void 0})]}),(0,n.jsx)(f.UO1,{in:d,children:(0,n.jsxs)(f.jqI,{vertical:!0,className:"gap-4",children:[(0,n.jsx)(b.d,{name:"legal_basis_for_processing",label:"Legal basis for processing",options:m,layout:"stacked"}),(0,n.jsx)(f.UO1,{in:(null==r?void 0:r.legal_basis_for_processing)==="Legitimate interests",animateOpacity:!0,style:{overflow:"visible"},children:(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(_.j0,{name:"impact_assessment_location",label:"Impact assessment location",tooltip:"Where is the legitimate interest impact assessment stored?",variant:"stacked"})})}),(0,n.jsx)(_.w8,{name:"flexible_legal_basis_for_processing",label:"This legal basis is flexible",tooltip:"Has the vendor declared that the legal basis may be overridden?",variant:"stacked"}),(0,n.jsx)(_.j0,{name:"retention_period",label:"Retention period (days)",tooltip:"How long is personal data retained for this purpose?",variant:"stacked"}),(0,n.jsxs)(f.Kqy,{spacing:0,children:[(0,n.jsx)(_.w8,{name:"processes_special_category_data",label:"This system processes special category data",tooltip:"Is this system processing special category data as defined by GDPR Article 9?",variant:"stacked"}),(0,n.jsx)(f.UO1,{in:null==r?void 0:r.processes_special_category_data,animateOpacity:!0,style:{overflow:"visible"},children:(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(b.d,{isRequired:!0,name:"special_category_legal_basis",label:"Legal basis for processing",options:x,tooltip:"What is the legal basis under which the special category data is processed?",layout:"stacked"})})})]})]})})]})]}),(0,n.jsxs)("div",{className:"flex w-full justify-between",children:[(0,n.jsx)(f.wpx,{onClick:()=>{o(),i()},children:"Cancel"}),(0,n.jsx)(f.wpx,{type:"primary",htmlType:"submit",disabled:!s||!a,loading:!1,"data-testid":"save-btn",children:"Save"})]})]})})}})},N=i(26183),R=i(3765);let P=e=>({data_use:e,data_categories:["system"]});var M=e=>{var t,i;let{system:s}=e,[a,r]=(0,d.useState)(!1),[o,l]=(0,d.useState)(void 0),{getDataUseDisplayName:c}=(0,h.Z)(),{isOpen:u,onOpen:g,onClose:p}=(0,f.qY0)(),m=e=>{l(e),g()},{createDataUse:x,deleteDeclarationByDataUse:y,updateDataUse:j}=(0,R.Z)(s),b=null!==(i=null===(t=s.privacy_declarations)||void 0===t?void 0:t.map(e=>e.data_use))&&void 0!==i?i:[];return(0,n.jsxs)(N.Z,{children:[!a&&(0,n.jsxs)(n.Fragment,{children:[b.map((e,t)=>(0,n.jsxs)(f.j8w,{"data-testid":"data-use-".concat(e),color:"white",onClick:()=>m(s.privacy_declarations[t]),closable:!0,onClose:()=>y(e),closeButtonLabel:"Remove data use",children:[(0,n.jsx)(f.PJP.I8b,{size:10}),c(e)]},e)),(0,n.jsx)(f.j8w,{onClick:()=>r(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"}),(0,n.jsx)(D,{isOpen:u,onClose:p,onSave:e=>j(o,e),declaration:o})]}),a&&(0,n.jsx)(f.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,n.jsx)(v.Z,{onChange:e=>{x(P(e)),r(!1)},selectedTaxonomies:b,onBlur:()=>r(!1),open:!0})})]})},I=e=>{var t;let{system:i,onEdit:s,onClose:a}=e;return(0,n.jsxs)(f.dys,{isOpen:!!i,onClose:a,size:"md",children:[(0,n.jsx)(f.P1B,{}),(0,n.jsxs)(f.scA,{"data-testid":"system-details",children:[(0,n.jsx)(f.OXI,{children:(null==i?void 0:i.name)||(null==i?void 0:i.fides_key)}),(0,n.jsx)(f.cCv,{}),(0,n.jsxs)(f.Ng0,{children:[(0,n.jsx)(x.cB,{text:"Title",mt:0}),(0,n.jsx)(x.XU,{children:null!==(t=null==i?void 0:i.name)&&void 0!==t?t:null==i?void 0:i.fides_key}),(null==i?void 0:i.description)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.cB,{text:"Description"}),(0,n.jsx)(x.XU,{children:null==i?void 0:i.description})]}),(0,n.jsx)(x.cB,{text:"Data uses"}),(0,n.jsx)(M,{system:i})]}),(0,n.jsx)(f.zeN,{children:(0,n.jsx)(f.wpx,{onClick:s,"data-testid":"edit-system-btn",children:"Edit system"})})]})]})},z=e=>{let{onDetailClick:t}=e;return(0,n.jsxs)(f.v2r,{children:[(0,n.jsx)(f.j2t,{as:f.wpx,size:"small",type:"text",className:"max-w-4",icon:(0,n.jsx)(f.nXP,{transform:"rotate(90deg)",ml:2}),"data-testid":"system-actions-menu"}),(0,n.jsx)(f.qyq,{children:t&&(0,n.jsx)(f.sNh,{onClick:t,"data-testid":"view-system-details",children:"View details"})})]})},Z=i(70675);let E={items:[],total:0,page:1,size:50,pages:1},O=(0,r.Cl)();var B=()=>{let[e,t]=(0,d.useState)({}),i=(0,l.useRouter)(),{PAGE_SIZES:s,pageSize:a,setPageSize:f,onPreviousPageClick:x,isPreviousPageDisabled:v,onNextPageClick:h,isNextPageDisabled:y,startRange:j,endRange:b,pageIndex:_,setTotalPages:C}=(0,u.oi)(),{data:w,isLoading:k}=(0,p.UG)({page:_,size:a,show_hidden:!1}),[S]=(0,Z.j3)(),{items:q,total:T,pages:D}=(0,d.useMemo)(()=>null!=w?w:E,[w]);(0,d.useEffect)(()=>{C(D)},[D,C]);let[N,R]=(0,d.useState)(void 0),P=(0,d.useMemo)(()=>q.find(e=>e.fides_key===N),[q,N]),B=async e=>{var t,n;let s=await S({connection_config_key:e.connection_configs.key,page:1,size:1}),a=!!(null==s?void 0:null===(t=s.data)||void 0===t?void 0:t.total),r=(0,g.du)(null!==(n=e.monitor_config_keys)&&void 0!==n?n:[],"monitor_config_ids"),o="".concat(c.mX,"/").concat(e.fides_key,"/").concat(a?"projects":"resources","?").concat(r);i.push(o)},U=(0,d.useMemo)(()=>[O.accessor(e=>e.name,{id:"name",cell:e=>{var t;let{getValue:i,row:s}=e;return(0,n.jsx)(u.G3,{value:i(),fontWeight:(null===(t=s.original.connection_configs)||void 0===t?void 0:t.key)?"semibold":"normal"})},header:e=>(0,n.jsx)(u.Rr,{value:"Name",...e})}),O.display({id:"data-uses",cell:e=>{let{row:t}=e;return(0,n.jsx)(M,{system:t.original})},header:e=>(0,n.jsx)(u.Rr,{value:"Data uses",...e}),meta:{disableRowClick:!0},minSize:280}),O.display({id:"actions",cell:e=>(0,n.jsx)(z,{onDetailClick:()=>R(e.row.original.fides_key)}),maxSize:20,enableResizing:!1,meta:{cellProps:{borderLeft:"none"},disableRowClick:!0}})],[]),A=(0,o.b7)({getCoreRowModel:(0,r.sC)(),getGroupedRowModel:(0,r.qe)(),getExpandedRowModel:(0,r.rV)(),getRowId:e=>e.fides_key,manualPagination:!0,columnResizeMode:"onChange",columns:U,data:q,onRowSelectionChange:t,state:{rowSelection:e}});return k?(0,n.jsx)(u.I4,{rowHeight:36,numRows:36}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.ZK,{tableInstance:A,emptyTableNotice:(0,n.jsx)(m.Z,{}),onRowClick:B,getRowIsClickable:e=>{var t;return!!(null===(t=e.connection_configs)||void 0===t?void 0:t.key)}}),(0,n.jsx)(u.s8,{totalRows:T||0,pageSizes:s,setPageSize:f,onPreviousPageClick:x,isPreviousPageDisabled:v,onNextPageClick:h,isNextPageDisabled:y,startRange:j,endRange:b}),(0,n.jsx)(I,{system:P,onClose:()=>R(void 0),onEdit:()=>i.push({pathname:c.Dv,query:{id:N}})})]})},U=()=>(0,n.jsxs)(s.Z,{title:"Data catalog",children:[(0,n.jsx)(a.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems"}]}),(0,n.jsx)(B,{})]})},31883:function(e,t,i){"use strict";i.d(t,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=i(19043)},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}},34151:function(e){e.exports={advancedSettings:"EditMinimalDataUseModal_advancedSettings___i9jS"}}},function(e){e.O(0,[8765,9278,5163,2888,9774,179],function(){return e(e.s=66248)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4154],{58095:function(e,t,n){var s=n(8817);e.exports=function(e,t){return!!(null==e?0:e.length)&&s(e,t,0)>-1}},21796:function(e){e.exports=function(e,t,n){for(var s=-1,a=null==e?0:e.length;++s<a;)if(n(t,e[s]))return!0;return!1}},8817:function(e,t,n){var s=n(95372),a=n(1129),l=n(58263);e.exports=function(e,t,n){return t==t?l(e,t,n):s(e,a,n)}},1129:function(e){e.exports=function(e){return e!=e}},92198:function(e,t,n){var s=n(52485),a=n(58095),l=n(21796),i=n(65581),r=n(47111),o=n(43735);e.exports=function(e,t,n){var d=-1,c=a,u=e.length,g=!0,p=[],m=p;if(n)g=!1,c=l;else if(u>=200){var h=t?null:r(e);if(h)return o(h);g=!1,c=i,m=new s}else m=t?[]:p;e:for(;++d<u;){var f=e[d],y=t?t(f):f;if(f=n||0!==f?f:0,g&&y==y){for(var v=m.length;v--;)if(m[v]===y)continue e;t&&m.push(y),p.push(f)}else c(m,y,n)||(m!==p&&m.push(y),p.push(f))}return p}},47111:function(e,t,n){var s=n(46151),a=n(50344),l=n(43735),i=s&&1/l(new s([,-0]))[1]==1/0?function(e){return new s(e)}:a;e.exports=i},58263:function(e){e.exports=function(e,t,n){for(var s=n-1,a=e.length;++s<a;)if(e[s]===t)return s;return -1}},50344:function(e){e.exports=function(){}},83766:function(e,t,n){var s=n(92198);e.exports=function(e){return e&&e.length?s(e):[]}},25654:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/[monitorId]/[systemId]",function(){return n(74473)}])},35287:function(e,t,n){"use strict";var s=n(24246),a=n(20595),l=n(88038),i=n.n(l);n(27378),t.Z=e=>{let{children:t,title:n,mainProps:l}=e;return(0,s.jsxs)(a.kCb,{"data-testid":n,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,s.jsxs)(i(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsx)(a.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...l,children:t})]})}},58754:function(e,t,n){"use strict";var s=n(24246),a=n(20595),l=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:i=!0,children:r,rightContent:o,style:d,...c}=e;return(0,s.jsxs)("div",{...c,style:i?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,s.jsxs)(a.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(a.lQT,{className:n||r?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,s.jsx)(l.m,{className:r?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),r]})}},45938:function(e,t,n){"use strict";n.d(t,{Gt:function(){return g},eB:function(){return p},oI:function(){return u}});var s=n(24246),a=n(34090),l=n(27378),i=n(16134),r=n(38602),o=n(58452);let d=(0,l.createRef)(),c=(0,l.createRef)(),u=()=>{let e=(0,i.T)(),t=(0,i.C)(r.DB),n=(0,l.useCallback)(()=>{c.current=void 0,d.current=void 0},[]),s=(0,l.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!0),n())},[e,n]),a=(0,l.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!1),n())},[e,n]);return{attemptAction:(0,l.useCallback)(()=>t?(e((0,r.h7)()),d.current||(d.current=new Promise(e=>{c.current=e})),d.current):Promise.resolve(!0),[t,e]),onConfirm:s,onClose:a}},g=e=>{let{id:t,name:n}=e,{dirty:s}=(0,a.u6)(),o=(0,i.T)();return(0,l.useEffect)(()=>(o((0,r.Zu)({id:t,name:n})),()=>{o((0,r.dz)({id:t}))}),[o,t,n]),(0,l.useEffect)(()=>{o((0,r.$p)({id:t,isDirty:s}))},[s,o,t]),null},p=()=>{let{onConfirm:e,onClose:t}=u(),n=(0,i.C)(r.uv);return(0,s.jsx)(o.Z,{isOpen:n,onClose:t,onConfirm:e,isCentered:!0,title:"Unsaved Changes",message:"You have unsaved changes"})}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return d}});var s=n(24246),a=n(20595),l=n(79894),i=n.n(l),r=n(27378);let{Text:o}=a.AntTypography,d=e=>{let{items:t,...n}=e,l=(0,r.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let l=n===t.length-1,r={...e},d=r.onClick&&!r.href;return("string"==typeof r.title&&(r.title=(0,s.jsx)(o,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,id:l?"breadcrumb-current-page":void 0,children:r.title})),d)?r.title=(0,s.jsx)(a.wpx,{type:"text",size:"small",icon:r.icon,onClick:r.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:r.title}):(r.icon&&(r.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:r.icon}),r.title]})),r.href&&r.title&&(r.title=(0,s.jsx)(i(),{href:r.href,className:"ant-breadcrumb-link",children:r.title}),delete r.href)),r}),[t]);return(0,s.jsx)(a.zrq,{items:l,...n})}},25415:function(e,t,n){"use strict";n.d(t,{a:function(){return l}});var s=n(24246);let{Text:a}=n(20595).AntTypography,l=e=>{let{count:t}=e;return(0,s.jsx)(a,{size:"sm",strong:!0,"data-testid":"selected-count",children:"".concat(t," selected")})}},2525:function(e,t,n){"use strict";n.d(t,{Q:function(){return r}});var s=n(24246),a=n(20595),l=n(27378),i=n(3110);let r=e=>{let{values:t,columnState:n,tagProps:r,onTagClose:o,...d}=e,{isExpanded:c,isWrapped:u,version:g}=n||{},[p,m]=(0,l.useState)(!c),[h,f]=(0,l.useState)(!!u),[y,v]=(0,l.useState)(c?t:null==t?void 0:t.slice(0,2));(0,l.useEffect)(()=>{m(!c)},[c,g]),(0,l.useEffect)(()=>{f(!!u)},[u]),(0,l.useEffect)(()=>{(null==t?void 0:t.length)?v(p?t.slice(0,2):t):v(t)},[p,t]);let x=(0,l.useCallback)(()=>{v(null==t?void 0:t.slice(0,2)),m(!0)},[t]),j=(0,l.useCallback)(()=>{m(!1)},[]),b=(0,l.useCallback)(()=>{p?j():x()},[p,j,x]);return(0,l.useMemo)(()=>(null==y?void 0:y.length)?(0,s.jsxs)(a.jqI,{align:p?"center":"start",wrap:h?"wrap":"nowrap",vertical:!p,gap:"small","data-testid":"tag-expandable-cell",style:{overflowX:"auto",...d.style},...d,children:[y.map(e=>(0,s.jsx)(a.j8w,{color:"white","data-testid":e.key,onClose:o?()=>o(e.key):void 0,...r,...e.tagProps,children:(0,s.jsx)(a.lKn,{ellipsis:!!p&&{tooltip:!0},style:{color:"inherit",maxWidth:p?i.TD:void 0},children:e.label})},e.key)),t&&t.length>2&&(0,s.jsx)(a.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),b()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:p?"+".concat(t.length-2," more"):i.T5})]}):(0,s.jsx)("span",{"data-testid":"tag-expandable-cell-empty"}),[y,p,h,d,t,r,o,b])}},3110:function(e,t,n){"use strict";n.d(t,{DI:function(){return r},T5:function(){return l},TD:function(){return i}});var s=n(24246),a=n(20595);let l="show less",i=150,r=[{key:"expand-all",label:"Expand all",icon:(0,s.jsx)(a.PJP.jbG,{})},{key:"collapse-all",label:"Collapse all",icon:(0,s.jsx)(a.PJP.MVB,{})}]},26070:function(e,t,n){"use strict";n.d(t,{v:function(){return o},Q:function(){return d.Q}});var s=n(24246),a=n(20595),l=n(27378),i=n(3110);let{Text:r}=a.AntTypography,o=e=>{let{values:t,valueSuffix:n,columnState:o}=e,{isExpanded:d,version:c}=o||{},[u,g]=(0,l.useState)(!d);(0,l.useEffect)(()=>{g(!d)},[d,c]);let p=(0,l.useCallback)(()=>{g(!0)},[]),m=(0,l.useCallback)(()=>{g(!1)},[]),h=(0,l.useCallback)(()=>{u?m():p()},[u,m,p]);return(0,l.useMemo)(()=>(null==t?void 0:t.length)?1===t.length?(0,s.jsx)(r,{ellipsis:!0,"data-testid":"list-expandable-cell-single",children:t[0]}):(0,s.jsxs)(a.jqI,{align:u?"center":"flex-start",vertical:!u,gap:u?"small":"none","data-testid":"list-expandable-cell",children:[u?(0,s.jsxs)(r,{ellipsis:!0,children:[t.length," ",n]}):(0,s.jsx)(a.krs,{dataSource:t,renderItem:e=>(0,s.jsx)("li",{children:e})}),(0,s.jsx)(a.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),h()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:u?"view":i.T5})]}):null,[u,t,n,h])};var d=n(2525)},8125:function(e,t,n){"use strict";n.d(t,{V:function(){return l},o:function(){return d}});var s=n(27378),a=n(32735);let l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{enableSelection:n=!1,getRowKey:l,bulkActions:i,isLoading:r=!1,isFetching:o=!1,dataSource:d=[],totalRows:c=0,currentPage:u,pageSize:g,customTableProps:p={}}=t,m=(0,s.useCallback)(e=>{if(e&&"object"==typeof e){if(e.id)return String(e.id);if(e.key)return String(e.key)}return String(e)},[]),h=l||m,[f,y]=(0,s.useState)([]),[v,x]=(0,s.useState)([]),j=(0,s.useCallback)(()=>{y([]),x([])},[]),b=(0,s.useMemo)(()=>({selectedRowKeys:f,selectedRows:v,resetSelections:j}),[f,v,j]),C=(0,s.useMemo)(()=>{if(n)return{selectedRowKeys:f,onChange:(e,t)=>{y(e),x(t)}}},[n,f]),k=(0,s.useCallback)((t,n,s)=>{var a,l;let i=null!==(a=t.current)&&void 0!==a?a:e.pageIndex,r=null!==(l=t.pageSize)&&void 0!==l?l:e.pageSize,o=i!==e.pageIndex||r!==e.pageSize;o?(t.current&&t.current!==e.pageIndex&&e.updatePageIndex(t.current),t.pageSize&&t.pageSize!==e.pageSize&&e.updatePageSize(t.pageSize)):e.updateFilters(n||{});let d=s&&!Array.isArray(s)?s.field:void 0,c=s&&!Array.isArray(s)&&null!==s.order?s.order:void 0;o||e.updateSorting(d,c)},[e]),S=(0,s.useMemo)(()=>{var t,n,s,l,i;return{current:null!=u?u:e.pageIndex,pageSize:null!=g?g:e.pageSize,total:c,showSizeChanger:null===(l=null===(t=e.paginationConfig)||void 0===t?void 0:t.showSizeChanger)||void 0===l||l,pageSizeOptions:null!==(i=null===(s=e.paginationConfig)||void 0===s?void 0:null===(n=s.pageSizeOptions)||void 0===n?void 0:n.map(String))&&void 0!==i?i:a.VZ}},[u,e.pageIndex,g,e.pageSize,c,e.paginationConfig]),w=(0,s.useMemo)(()=>({dataSource:d,loading:r||o,pagination:S,onChange:k,rowKey:h,scroll:{x:"max-content",scrollToFirstRowOnChange:!0},size:"small",bordered:!0,...p}),[d,r,o,S,k,h,p]),_=f.map(String),E=v.length>0,A=(0,s.useCallback)(e=>{let t=null==i?void 0:i.actions.find(t=>t.key===e);return t?{disabled:!E||!!t.disabled&&t.disabled(v),loading:t.loading||!1,onClick:()=>t.onClick(v)}:{disabled:!0,loading:!1}},[i,E,v]);return(0,s.useMemo)(()=>({tableProps:w,selectionProps:C,selectionState:b,selectedRows:v,selectedKeys:_,hasSelectedRows:E,resetSelections:j,getBulkActionProps:A,isLoadingOrFetching:r||o,hasData:d.length>0}),[w,C,b,v,_,E,j,A,r,o,d.length])};var i=n(40431),r=n(17245);let o=()=>({filters:(0,i.WJ)(e=>e).withDefault({})}),d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{pagination:t={},sorting:n={},search:a={},onStateChange:l}=e,{pageIndex:d,pageSize:c,resetPagination:u,updatePageIndex:g,updatePageSize:p,pageSizeOptions:m,showSizeChanger:h}=(0,r.h0)(t),{sortKey:f,sortOrder:y,updateSorting:v,resetSorting:x}=(0,r.rK)(n),{searchQuery:j,updateSearch:b,resetSearch:C}=(0,r.Rx)(a),k=(0,s.useMemo)(()=>o(),[]),[S,w]=(0,i.XI)(k,{history:"push"}),_=(0,s.useMemo)(()=>{var e;return{pageIndex:d,pageSize:c,sortKey:f,sortOrder:y,columnFilters:null!==(e=S.filters)&&void 0!==e?e:{},searchQuery:j}},[S,d,c,f,y,j]),E=(0,s.useCallback)((e,t)=>{v(e,t),u()},[v,u]),A=(0,s.useCallback)(e=>{let t=Object.fromEntries(Object.entries(e).filter(e=>{let[,t]=e;return null!=t}));w({filters:Object.keys(t).length>0?t:null}),u()},[w,u]),I=(0,s.useCallback)(e=>{b(e),u()},[b,u]),T=(0,s.useCallback)(()=>{w({filters:null}),u(),x(),C()},[w,u,x,C]);return(0,s.useEffect)(()=>{l&&l(_)},[_,l]),{state:_,pageIndex:_.pageIndex,pageSize:_.pageSize,updatePageIndex:g,updatePageSize:p,sortKey:_.sortKey,sortOrder:_.sortOrder,updateSorting:E,columnFilters:_.columnFilters,updateFilters:A,searchQuery:_.searchQuery,updateSearch:I,resetState:T,paginationConfig:{pageSizeOptions:m,showSizeChanger:h}}}},9320:function(e,t,n){"use strict";n.d(t,{_:function(){return l}});var s=n(24246),a=n(26089);let l=(e,t)=>(0,s.jsxs)(s.Fragment,{children:[e," ",t&&(0,s.jsx)(a.Z,{onClick:t,children:"View"})]})},88708:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var s,a,l=n(27378),i=n(14908),r=n(85054);(s=a||(a={})).ATTENTION_REQUIRED="attention-required",s.ADDED="added",s.IGNORED="ignored",t.Z=e=>{let{activeTab:t,onTabChange:n}=(0,i.Z)({tabKeys:Object.values(a)}),s=(0,l.useMemo)(()=>[{label:"Attention required",params:{diff_status:[r.LL.ADDITION],system:e},hash:"attention-required"},{label:"Added",params:{diff_status:[r.LL.MONITORED]},hash:"added"},{label:"Ignored",params:{diff_status:[r.LL.MUTED],system:e},hash:"ignored"}],[e]),{diff_status:o,system:d}=(0,l.useMemo)(()=>{var e;return null!==(e=s.find(e=>e.hash===t))&&void 0!==e?e:s[0]},[s,t]).params,c=(0,l.useMemo)(()=>o.includes(r.LL.MONITORED),[o]);return{filterTabs:s,activeTab:t,onTabChange:n,activeParams:(0,l.useMemo)(()=>e?{diff_status:o,system:d}:{diff_status:o},[e,o,d]),actionsDisabled:c}}},78238:function(e,t,n){"use strict";n.d(t,{g:function(){return s}});let s=["essential","functional.service.improve","personalize","analytics","marketing.advertising.first_party.targeted","marketing.advertising.third_party.targeted"];t.Z=e=>s.includes(e)},57072:function(e,t,n){"use strict";n.d(t,{Bd:function(){return s.Bd},L5:function(){return s.L5},MO:function(){return s.MO},qb:function(){return s.qb}});var s=n(5785)},74473:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return el}});var s=n(24246),a=n(86677),l=n(27378),i=n(35287),r=n(77830),o=n(58754),d=n(20595),c=n(25415),u=n(85054),g=n(30952),p=n(8133),m=n(79283),h=n(34929),f=n(78238),y=e=>{let{...t}=e,{getDataUseDisplayNameProps:n,getDataUses:a}=(0,h.Z)(),i=a(),r=i.filter(e=>e.active&&f.g.includes(e.fides_key)),o=i.map(e=>{let{name:t,primaryName:s}=n(e.fides_key);return{value:e.fides_key,name:t,primaryName:s,description:e.description||""}}),c=(0,l.useMemo)(()=>{let e=[],t=[];return o.forEach(n=>{r.some(e=>e.fides_key===n.value)?e.push(n):t.push(n)}),{suggested:e,all:t}},[o,r]),u=c.suggested.length?[{label:(0,s.jsxs)(d.vyj,{children:[(0,s.jsx)(d.QMR,{size:14}),(0,s.jsx)("span",{children:"Categories of consent"}),(0,s.jsx)("em",{className:"font-normal",children:"Recommended"})]}),options:c.suggested},{label:(0,s.jsxs)(d.vyj,{children:[(0,s.jsx)(d.PJP.BBB,{}),(0,s.jsx)("span",{children:"Other data uses"})]}),options:c.all}]:c.all;return(0,s.jsx)(m.l,{options:u,...t})};let{Text:v}=d.AntTypography;var x=e=>{let{onSave:t,isSaving:n,onClose:a,...i}=e,[r,o]=(0,l.useState)([]),c=()=>{o([]),a()};return(0,s.jsxs)(p.Z,{title:"Add consent category",...i,onClose:c,children:[(0,s.jsxs)(d.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,s.jsx)(v,{children:"Assign consent categories to selected assets. This configures the system for consent management. Consent categories apply to both individual assets and the system."}),(0,s.jsx)(y,{mode:"tags",onSelect:(e,t)=>o([...r,t.value]),variant:"outlined"})]}),(0,s.jsxs)(d.jqI,{justify:"space-between",children:[(0,s.jsx)(d.wpx,{htmlType:"reset",onClick:c,"data-testid":"cancel-btn",children:"Cancel"}),(0,s.jsx)(d.wpx,{htmlType:"submit",type:"primary",disabled:!r.length,loading:n,onClick:()=>{t(r),c()},"data-testid":"save-btn",children:"Save"})]})]})},j=n(29850),b=n(77685);let{Text:C}=d.AntTypography,k=e=>{let{onSave:t,isSaving:n,...a}=e,[i,r]=(0,l.useState)(),[o,c]=(0,l.useState)(!1),u=(0,l.useCallback)(e=>{e.preventDefault(),c(!0)},[]),g=()=>{c(!1)},m=()=>{r(void 0),a.onClose()};return(0,s.jsxs)(p.Z,{title:"Assign system",...a,onClose:m,children:[(0,s.jsxs)(d.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,s.jsx)(C,{children:"Assign a system to the selected assets. If no system exists, select 'Add new system' to create one."}),(0,s.jsx)(j.R,{placeholder:"Search or select...",onSelect:(e,t)=>{r(t)},onAddSystem:u,value:i})]})," ",(0,s.jsxs)(d.jqI,{justify:"space-between",children:[(0,s.jsx)(d.wpx,{htmlType:"reset",onClick:m,"data-testid":"cancel-btn",children:"Cancel"}),(0,s.jsx)(d.wpx,{htmlType:"submit",type:"primary",disabled:!i,loading:n,onClick:()=>{t(i),m()},"data-testid":"save-btn",children:"Save"})]}),o&&(0,s.jsx)(b.i,{isOpen:!0,onClose:g,onSuccessfulSubmit:(e,t)=>{g(),r({label:t,value:e})},toastOnSuccess:!0})]})};var S=n(8411),w=n(32735),_=n(8125),E=n(37059),A=n(98145);let{Link:I}=d.AntTypography,T=e=>{let{stagedResource:t,status:n}=e,a=(0,_.o)({pagination:{defaultPageSize:10,pageSizeOptions:[10,...w.VZ],pageQueryKey:"modalPage",sizeQueryKey:"modalSize"}}),{pageIndex:i,pageSize:r}=a,{data:o,isFetching:c,isError:u}=(0,E.mi)({stagedResourceUrn:t.urn,status:n,page:i,size:r}),{items:g,total:p}=(0,l.useMemo)(()=>o||{items:[],total:0,pages:0,filterOptions:{assigned_users:[],systems:[]}},[o]),m=(0,l.useMemo)(()=>({enableSelection:!1,getRowKey:e=>"".concat(e.location,"-").concat(e.page),isLoading:c,dataSource:g,totalRows:null!=p?p:0}),[c,g,p]),h=(0,_.V)(a,m);return{columns:(0,l.useMemo)(()=>[{title:"Location",dataIndex:A.EI.LOCATION,key:A.EI.LOCATION,render:e=>{var t;let n=(0,d.QCN)(e);return n?(0,d.c1K)({isoEntry:n,showFlag:!0}):null!==(t=null===S.Z8||void 0===S.Z8?void 0:S.Z8[e])&&void 0!==t?t:e}},{title:"Page",dataIndex:A.EI.PAGE,key:A.EI.PAGE,render:e=>(0,s.jsx)(I,{href:e,target:"_blank",rel:"noopener noreferrer",children:e})}],[]),data:o,isLoading:c,isError:u,totalRows:p,tableProps:h.tableProps,hasData:g.length>0}},{Paragraph:N,Text:O}=d.AntTypography,D=e=>{var t,n,a;let{isOpen:l,stagedResource:i,status:r,onCancel:o,onDownload:c}=e,{columns:u,tableProps:g,isError:p}=T({stagedResource:i,status:r});return(0,s.jsx)(d.$zI,{title:"Consent discovery",width:768,open:l,onCancel:o,footer:[(0,s.jsx)(d.wpx,{onClick:o,children:"Cancel"},"cancel"),!!c&&(0,s.jsx)(d.wpx,{type:"primary",onClick:c,children:"Download"},"download")],"data-testid":"consent-breakdown-modal",children:(0,s.jsxs)(d.jqI,{vertical:!0,className:"gap-6","data-testid":"consent-breakdown-modal-content",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(N,{children:"View all instances where this asset was detected without consent, organized by location and page. Use this to investigate potential compliance issues."}),(0,s.jsxs)(N,{children:[(0,s.jsx)(O,{strong:!0,children:"Asset name:"})," ",null!==(t=i.name)&&void 0!==t?t:(0,s.jsx)(O,{italic:!0,children:"Unknown"}),","," ",(0,s.jsx)(O,{strong:!0,children:"System:"})," ",null!==(n=i.system)&&void 0!==n?n:(0,s.jsx)(O,{italic:!0,children:"Unassigned"}),","," ",(0,s.jsx)(O,{strong:!0,children:"Domain:"})," ",null!==(a=i.domain)&&void 0!==a?a:(0,s.jsx)(O,{italic:!0,children:"Unknown"})]})]}),p?(0,s.jsx)(d.DUx,{type:"error",message:"Error fetching data",description:"Please try again later.",showIcon:!0}):(0,s.jsx)(d.V5H,{...g,columns:u,"data-testid":"consent-breakdown-modal-table"})]})})};var P=n(83766),z=n.n(P),L=n(62165),R=n(812),M=n(26070),V=n(3110),Z=n(46628),G=n(16394),U=n(54762),K=n(9320),q=n(26092),B=n.n(q),F=n(88708);let Q=e=>{let{asset:t,onTabChange:n,showComplianceIssueDetails:l,showWarningForConsentIssues:i}=e,[o,{isLoading:c}]=(0,E.EY)(),[g,{isLoading:p}]=(0,E.nS)(),[m,{isLoading:h}]=(0,E.Tj)(),f=(0,d.pmc)(),y=(0,a.useRouter)(),v=c||p||h,{urn:x,name:j,resource_type:b,diff_status:C,system_key:k,user_assigned_system_key:S,consent_aggregated:w}=t,_=B()(j||"",{length:50}),I=!!w&&A.LM.includes(w),T=async()=>{let e=await o({urnList:[x]});if((0,R.D4)(e))f((0,Z.Vo)((0,R.e$)(e.error)));else{let e=S||k,t="".concat(r.So,"/configure/").concat(e,"#assets");f((0,Z.t5)((0,K._)("".concat(b,' "').concat(_,'" has been added to the system inventory.'),e?()=>y.push(t):void 0)))}},N=async()=>{let e=await g({urnList:[x]});(0,R.D4)(e)?f((0,Z.Vo)((0,R.e$)(e.error))):f((0,Z.t5)((0,K._)("".concat(b,' "').concat(_,'" has been ignored and will not appear in future scans.'),async()=>{await n(F.A.IGNORED)})))},O=async()=>{let e=await m({urnList:[x]});(0,R.D4)(e)?f((0,Z.Vo)((0,R.e$)(e.error))):f((0,Z.t5)("".concat(b,' "').concat(_,'" is no longer ignored and will appear in future scans.')))};return(0,s.jsxs)(d.vyj,{children:[C!==u.LL.MUTED&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.esZ,{title:t.system?void 0:"This asset requires a system before you can add it to the inventory.",children:(0,s.jsx)(d.wpx,{"data-testid":"add-btn",size:"small",onClick:T,disabled:!t.system||v,loading:c,children:"Add"})}),(0,s.jsx)(d.wpx,{"data-testid":"ignore-btn",size:"small",onClick:N,disabled:v,loading:p,children:"Ignore"}),I&&i&&(0,s.jsx)(d.wpx,{"data-testid":"view-compliance-details-btn",size:"small",onClick:()=>{null==l||l(t,null!=w?w:u.lg.UNKNOWN)},disabled:v,loading:h,icon:(0,s.jsx)(d.PJP.OdJ,{style:{color:"var(--fidesui-error)",width:14}}),title:"View compliance issue","aria-label":"View compliance issue"})]}),C===u.LL.MUTED&&(0,s.jsx)(d.wpx,{"data-testid":"restore-btn",size:"small",onClick:O,disabled:v,loading:h,children:"Restore"})]})};var $=n(17245),W=n(18992),J=n.n(W),Y=n(2525),X=n(31883),H=e=>{let{asset:t,readonly:n,columnState:a,onChange:i}=e,[r,o]=(0,l.useState)(!1),[c]=(0,E.Ak)(),{successAlert:u,errorAlert:g}=(0,$.VY)(),{getDataUseDisplayName:p}=(0,h.Z)(),m=t.preferred_data_uses||[],f=B()(t.name||"",{length:50}),v=async e=>{let n=await c({monitorId:t.monitor_config_id,urnList:[t.urn],dataUses:[...m,e]});(0,X.D4)(n)?g((0,R.e$)(n.error)):(u("Consent category added to ".concat(t.resource_type,' "').concat(f,'".'),"Confirmed"),null==i||i([...m,e])),o(!1)},x=async e=>{let n=await c({monitorId:t.monitor_config_id,urnList:[t.urn],dataUses:m.filter(t=>t!==e)});(0,X.D4)(n)?g((0,R.e$)(n.error)):(u("Consent category removed from ".concat(t.resource_type,' "').concat(f,'".'),"Confirmed"),null==i||i(m.filter(t=>t!==e)))};return n?(0,s.jsx)(Y.Q,{values:null==m?void 0:m.map(e=>({label:p(e),key:e})),columnState:a}):(0,s.jsxs)(s.Fragment,{children:[!r&&(0,s.jsxs)(d.vyj,{align:"start",children:[(0,s.jsx)(d.j8w,{onClick:()=>o(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"}),(0,s.jsx)(Y.Q,{values:null==m?void 0:m.map(e=>({label:p(e),key:e})),columnState:a,tagProps:{closable:!0,closeButtonLabel:"Remove data use"},onTagClose:x})]}),r&&(0,s.jsx)("div",{className:J().cellBleed,style:{backgroundColor:"var(--fides-color-white)"},children:(0,s.jsx)(y,{onSelect:v,onBlur:()=>o(!1),onKeyDown:e=>{"Escape"===e.key&&o(!1)},open:!0})})]})};let ee=e=>{let{consentAggregated:t,stagedResource:n}=e,a=A.LM.includes(t);if(!(a||t===u.lg.UNKNOWN))return null;let l=!!n.data_uses&&n.data_uses.length>0,i=A.Vq[t];return t!==u.lg.UNKNOWN||l||(i="Add a category of consent to this asset to find consent information."),(0,s.jsx)(d.esZ,{title:i,children:(0,s.jsx)(d.j8w,{color:a?"error":void 0,"data-testid":"status-badge_".concat(t.replace(/_/g,"-")),children:A.X1[t]})})};var et=n(70675);let en=e=>{let{aggregateSystem:t,monitorConfigId:n,readonly:a,onChange:i}=e,{resource_type:r,name:o,urn:c,system:u,user_assigned_system_key:g,system_key:p}=t,m=B()(o||"",{length:50}),[h,f]=(0,l.useState)(!1),[y,v]=(0,l.useState)(!1),[x,{isLoading:C}]=(0,et.NA)(),{successAlert:k,errorAlert:S}=(0,$.VY)(),w=(0,l.useCallback)(e=>{e.preventDefault(),v(!0)},[]),_=async(e,t,s)=>{let a=await x({staged_resource_urn:c,monitor_config_id:n,user_assigned_system_key:e}),l=B()(t,{length:50});(0,R.D4)(a)?S((0,R.e$)(a.error)):(k(s?"".concat(l," has been added to your system inventory and the ").concat(r,' "').concat(m,'" has been assigned to that system.'):"".concat(r,' "').concat(m,'" has been assigned to ').concat(l,"."),"Confirmed"),null==i||i(e)),f(!1)};return a?u?(0,s.jsx)(d.j8w,{"data-testid":"system-badge",color:"white",children:u}):null:(0,s.jsxs)(s.Fragment,{children:[!h&&(u?(0,s.jsxs)(d.j8w,{onClick:()=>f(!0),"data-testid":"system-badge",children:[u,(0,s.jsx)(d.PJP.I8b,{})]}):(0,s.jsx)(d.j8w,{onClick:()=>f(!0),"data-testid":"add-system-btn",addable:!0})),!!h&&(0,s.jsx)("div",{className:J().cellBleed,children:(0,s.jsx)(j.R,{variant:"borderless",autoFocus:!0,defaultOpen:!0,defaultValue:g||p,onBlur:e=>{var t;(null===(t=e.relatedTarget)||void 0===t?void 0:t.getAttribute("id"))!=="add-new-system"&&f(!1)},onAddSystem:w,onSelect:(e,t)=>_(e,t.label),loading:C})}),y&&(0,s.jsx)(b.i,{isOpen:!0,onClose:()=>{v(!1)},onSuccessfulSubmit:(e,t)=>_(e,t,!0)})]})},es=e=>{let{monitorId:t,systemId:n,onSystemName:i,onShowComplianceIssueDetails:o}=e,c=(0,a.useRouter)(),g=(0,d.pmc)(),[p,m]=(0,l.useState)(n),[h,y]=(0,l.useState)(),[v,x]=(0,l.useState)(!1),[j,b]=(0,l.useState)(!1),[C,k]=(0,l.useState)(!1),[w,I]=(0,l.useState)(0),[T,N]=(0,l.useState)(0),[O,D]=(0,l.useState)(0),{flags:P}=(0,L.hz)(),{assetConsentStatusLabels:q}=P,{filterTabs:B,activeTab:$,onTabChange:W,activeParams:J,actionsDisabled:Y}=(0,F.Z)(n),X=(0,_.o)({sorting:{validColumns:Object.values(A.r6)}}),{columnFilters:et,pageIndex:es,pageSize:ea,resetState:el,sortKey:ei,sortOrder:er,searchQuery:eo,updateSearch:ed,updateFilters:ec,updateSorting:eu,updatePageIndex:eg,updatePageSize:ep}=X,{data:em,isLoading:eh,isFetching:ef}=(0,E.WJ)({key:t,page:es,size:ea,search:eo,sort_by:ei?[ei]:[A.r6.CONSENT_AGGREGATED,"urn"],sort_asc:"descend"!==er,...J,...et}),[ey,{isLoading:ev}]=(0,E.EY)(),[ex,{isLoading:ej}]=(0,E.nS)(),[eb,{isLoading:eC}]=(0,E.rs)(),[ek,{isLoading:eS}]=(0,E.sX)(),[ew,{isLoading:e_}]=(0,E.Vr)(),[eE,{isLoading:eA}]=(0,E.Tj)(),eI=ev||ej||eC||eS||eA||e_,eT=eI||n===r.Kl,{data:eN}=(0,E.ut)({monitor_config_id:t,resolved_system_id:n,diff_status:null==J?void 0:J.diff_status,search:eo,...et}),eO=(0,l.useMemo)(()=>({enableSelection:$!==F.A.ADDED,getRowKey:e=>e.urn,isLoading:eh,isFetching:ef,dataSource:(null==em?void 0:em.items)||[],totalRows:(null==em?void 0:em.total)||0,customTableProps:{locale:{emptyText:(0,s.jsx)("div",{children:(0,s.jsx)("div",{children:"All caught up!"})})}}}),[$,eh,ef,null==em?void 0:em.items,null==em?void 0:em.total]),eD=(0,_.V)(X,eO),{selectedKeys:eP,selectedRows:ez,resetSelections:eL}=eD,eR=(0,l.useMemo)(()=>{var e;let t=[{title:"Asset",dataIndex:A.r6.NAME,key:A.r6.NAME,sorter:!0,sortOrder:ei===A.r6.NAME?er:null,render:e=>(0,s.jsx)(d.lKn,{ellipsis:{tooltip:!0},style:{maxWidth:300},children:e}),fixed:"left"},{title:"Type",dataIndex:A.r6.RESOURCE_TYPE,key:A.r6.RESOURCE_TYPE,sorter:!0,sortOrder:ei===A.r6.RESOURCE_TYPE?er:null,filters:(0,G.nZ)(null==eN?void 0:eN.resource_type),filteredValue:(null==et?void 0:et.resource_type)||null},{title:"System",dataIndex:A.r6.SYSTEM,key:A.r6.SYSTEM,render:(e,t)=>!!t.monitor_config_id&&(0,s.jsx)(en,{aggregateSystem:t,monitorConfigId:t.monitor_config_id,readonly:Y||$===F.A.IGNORED,onChange:()=>{eL()}})},{title:"Categories of consent",key:A.r6.DATA_USES,menu:{items:V.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?(k(!0),D(e=>e+1)):"collapse-all"===e.key&&(k(!1),D(e=>e+1))}},filters:(0,G.nZ)(null==eN?void 0:null===(e=eN.data_uses)||void 0===e?void 0:e.filter(e=>(0,f.Z)(e))),filteredValue:(null==et?void 0:et.data_uses)||null,render:(e,t)=>(0,s.jsx)(H,{asset:t,readonly:Y||$===F.A.IGNORED,columnState:{isExpanded:C,version:O},onChange:()=>{eL()}})},{title:"Locations",dataIndex:A.r6.LOCATIONS,key:A.r6.LOCATIONS,menu:{items:V.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?(x(!0),I(e=>e+1)):"collapse-all"===e.key&&(x(!1),I(e=>e+1))}},filters:(0,G.nZ)(null==eN?void 0:eN.locations,e=>{var t;let n=(0,d.QCN)(e);return n?(0,d.c1K)({isoEntry:n}):null!==(t=S.Z8[e])&&void 0!==t?t:e}),filteredValue:(null==et?void 0:et.locations)||null,render:e=>{var t;return(0,s.jsx)(M.Q,{values:null!==(t=null==e?void 0:e.map(e=>{var t;let n=(0,d.QCN)(e);return{label:n?(0,d.c1K)({isoEntry:n}):null!==(t=S.Z8[e])&&void 0!==t?t:e,key:e}}))&&void 0!==t?t:[],columnState:{isExpanded:v,version:w}})}},{title:"Domain",dataIndex:A.r6.DOMAIN,key:A.r6.DOMAIN},{title:"Detected on",dataIndex:A.r6.PAGE,menu:{items:V.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?(b(!0),N(e=>e+1)):"collapse-all"===e.key&&(b(!1),N(e=>e+1))}},key:A.r6.PAGE,render:e=>(0,s.jsx)(M.v,{values:e,valueSuffix:"pages",columnState:{isExpanded:j,version:T}})}];return q&&t.push({title:()=>(0,s.jsxs)(d.vyj,{children:[(0,s.jsx)("div",{children:"Compliance"}),h===u.lg.WITHOUT_CONSENT&&(0,s.jsx)(U.l,{consentStatus:{status:u.pF.ALERT,message:"One or more assets were detected without consent"}})]}),dataIndex:A.r6.CONSENT_AGGREGATED,key:A.r6.CONSENT_AGGREGATED,sorter:!0,sortOrder:ei===A.r6.CONSENT_AGGREGATED?er:null,filters:(0,G.nZ)(null==eN?void 0:eN[A.r6.CONSENT_AGGREGATED],e=>{var t;return null!==(t=A.X1[e])&&void 0!==t?t:e}),filteredValue:(null==et?void 0:et[A.r6.CONSENT_AGGREGATED])||null,render:(e,t)=>(0,s.jsx)(ee,{consentAggregated:null!=e?e:u.lg.UNKNOWN,stagedResource:t})}),Y||t.push({title:"Actions",key:A.r6.ACTIONS,fixed:"right",render:(e,t)=>(0,s.jsx)(Q,{asset:t,onTabChange:W,showComplianceIssueDetails:o,showWarningForConsentIssues:q})}),t},[ei,er,eN,et,q,Y,$,C,O,eL,v,w,j,T,h,W,o]);(0,l.useEffect)(()=>{if(em){var e;let t=(null===(e=em.items[0])||void 0===e?void 0:e.system)||p||n||"";m(t),null==i||i(t)}},[em,n,i,p]),(0,l.useEffect)(()=>{if((null==em?void 0:em.items)&&!h){var e;y(null===(e=em.items.find(e=>e.consent_aggregated===u.lg.WITHOUT_CONSENT))||void 0===e?void 0:e.consent_aggregated)}},[em,h]);let eM=(0,l.useCallback)(async()=>{var e,t;let n=await ey({urnList:eP}),s=(null===(e=ez[0])||void 0===e?void 0:e.user_assigned_system_key)||(null===(t=ez[0])||void 0===t?void 0:t.system_key),a=ez.every(e=>(e.user_assigned_system_key||e.system_key)===s)?s:void 0;(0,R.D4)(n)?g((0,Z.Vo)((0,R.e$)(n.error))):(g((0,Z.t5)((0,K._)("".concat(eP.length," assets from ").concat(p," have been added to the system inventory."),a?()=>c.push("".concat(r.So,"/configure/").concat(a,"#assets")):()=>c.push(r.So)))),eL())},[ey,eP,ez,p,g,c,eL]),eV=(0,l.useCallback)(async e=>{if("string"==typeof(null==e?void 0:e.value)){let n=await ek({monitorId:t,urnList:eP,systemKey:e.value});(0,R.D4)(n)?g((0,Z.Vo)((0,R.e$)(n.error))):(g((0,Z.t5)("".concat(eP.length," assets have been assigned to ").concat(e.label,"."),"Confirmed")),eL())}},[ek,t,eP,g,eL]),eZ=(0,l.useCallback)(async e=>{if(!ez.length)return;let n=ez.map(t=>{let n=z()([...t.preferred_data_uses||[],...e]);return{urn:t.urn,user_assigned_data_uses:n}}),s=await ew({monitorId:t,assets:n});(0,R.D4)(s)?g((0,Z.Vo)((0,R.e$)(s.error))):(g((0,Z.t5)("Consent categories added to ".concat(eP.length," assets").concat(p?" from ".concat(p):"","."),"Confirmed")),eL())},[ez,ew,t,eP,p,g,eL]),eG=(0,l.useCallback)(async()=>{let e=await ex({urnList:eP});(0,R.D4)(e)?g((0,Z.Vo)((0,R.e$)(e.error))):(g((0,Z.t5)(p===r.Kl?"".concat(eP.length," uncategorized assets have been ignored and will not appear in future scans."):"".concat(eP.length," assets from ").concat(p," have been ignored and will not appear in future scans."),"Confirmed")),eL())},[ex,eP,p,g,eL]),eU=(0,l.useCallback)(async()=>{let e=await eE({urnList:eP});(0,R.D4)(e)?g((0,Z.Vo)((0,R.e$)(e.error))):(g((0,Z.t5)("".concat(eP.length," assets have been restored and will appear in future scans."),"Confirmed")),eL())},[eE,eP,g,eL]),eK=(0,l.useCallback)(async()=>{let e=(null==em?void 0:em.items.length)||0,s=await eb({monitor_config_key:t,resolved_system_ids:[n]});(0,R.D4)(s)?g((0,Z.Vo)((0,R.e$)(s.error))):(c.push("".concat(r.vi,"/").concat(t)),g((0,Z.t5)("".concat(e," assets from ").concat(p," have been added to the system inventory."),"Confirmed")),eL())},[null==em?void 0:em.items.length,eb,t,n,c,g,p,eL]),eq=(0,l.useCallback)(async e=>{await W(e),el(),eL()},[W,el,eL]);return{columns:eR,data:em,isLoading:eh,isFetching:ef,tableState:X,searchQuery:eo,updateSearch:ed,updateFilters:ec,updateSorting:eu,updatePageIndex:eg,updatePageSize:ep,resetState:el,tableProps:eD.tableProps,selectionProps:eD.selectionProps,filterTabs:B,activeTab:$,handleTabChange:eq,activeParams:J,actionsDisabled:Y,selectedRows:ez,selectedUrns:eP,hasSelectedRows:eD.hasSelectedRows,resetSelections:eL,systemName:p,firstItemConsentStatus:h,handleBulkAdd:eM,handleBulkAssignSystem:eV,handleBulkAddDataUse:eZ,handleBulkIgnore:eG,handleBulkRestore:eU,handleAddAll:eK,anyBulkActionIsLoading:eI,isAddingResults:ev,isIgnoringResults:ej,isAddingAllResults:eC,isBulkUpdatingSystem:eS,isBulkAddingDataUses:e_,isRestoringResults:eA,disableAddAll:eT}},ea=e=>{var t;let{monitorId:n,systemId:a,onSystemName:i}=e,[r,o]=(0,l.useState)(!1),[p,m]=(0,l.useState)(!1),[h,f]=(0,l.useState)(null),{columns:y,searchQuery:v,updateSearch:j,resetState:b,tableProps:C,selectionProps:S,filterTabs:w,activeTab:_,handleTabChange:E,activeParams:A,actionsDisabled:I,selectedUrns:T,hasSelectedRows:N,resetSelections:O,handleBulkAdd:P,handleBulkAssignSystem:z,handleBulkAddDataUse:L,handleBulkIgnore:R,handleBulkRestore:M,handleAddAll:V,anyBulkActionIsLoading:Z,isAddingAllResults:G,isBulkUpdatingSystem:U,isBulkAddingDataUses:K,disableAddAll:q}=es({monitorId:n,systemId:a,onSystemName:i,onShowComplianceIssueDetails:(e,t)=>{f({stagedResource:e,status:t})}}),B=async e=>{await z(e),o(!1)},F=async e=>{await L(e),m(!1)};return n&&a?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.Niu,{"aria-label":"Asset state filter",mode:"horizontal",items:w.map(e=>({key:e.hash,label:e.label})),selectedKeys:[_],onClick:async e=>{await E(e.key)},className:"mb-4","data-testid":"asset-state-filter"}),(0,s.jsxs)(d.jqI,{justify:"space-between",align:"center",className:"mb-4",children:[(0,s.jsx)(g.f,{value:v,onChange:j,placeholder:"Search by asset name..."}),(0,s.jsxs)(d.vyj,{size:"large",children:[N&&(0,s.jsx)(c.a,{count:T.length}),(0,s.jsxs)(d.vyj,{size:"small",children:[(0,s.jsx)(d.wpx,{onClick:()=>{b(),O()},"data-testid":"clear-filters",children:"Clear filters"}),(0,s.jsx)(d.S0p,{overlayClassName:"bulk-actions-menu-dropdown",menu:{items:[...(null==A?void 0:null===(t=A.diff_status)||void 0===t?void 0:t.includes(u.LL.MUTED))?[{key:"restore",label:"Restore",onClick:M}]:[{key:"add",label:"Add",onClick:P},{key:"add-data-use",label:"Add consent category",onClick:()=>m(!0)},{key:"assign-system",label:"Assign system",onClick:()=>o(!0)},{type:"divider"},{key:"ignore",label:"Ignore",onClick:R}]]},trigger:["click"],children:(0,s.jsx)(d.wpx,{icon:(0,s.jsx)(d.PJP._ME,{}),iconPosition:"end",loading:Z,"data-testid":"bulk-actions-menu",disabled:!N||Z||I,type:"primary",children:"Actions"})}),(0,s.jsx)(d.esZ,{title:q?"These assets require a system before you can add them to the inventory.":void 0,children:(0,s.jsx)(d.wpx,{onClick:V,disabled:q,loading:G,type:"primary",icon:(0,s.jsx)(d.PJP.MCw,{}),iconPosition:"end","data-testid":"add-all",children:"Add all"})})]})]})]}),(0,s.jsx)(d.V5H,{...C,columns:y,rowSelection:S,locale:{emptyText:(0,s.jsx)(d.oj8,{image:d.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})},"aria-labelledby":"breadcrumb-current-page"}),(0,s.jsx)(k,{isOpen:r,onClose:()=>{o(!1)},onSave:B,isSaving:U}),(0,s.jsx)(x,{isOpen:p,onClose:()=>{m(!1)},onSave:F,isSaving:K}),h&&(0,s.jsx)(D,{isOpen:!!h,stagedResource:h.stagedResource,status:h.status,onCancel:()=>{f(null)}})]}):null};var el=()=>{let e=(0,a.useRouter)(),t=decodeURIComponent(e.query.monitorId),n=decodeURIComponent(e.query.systemId),[d,c]=(0,l.useState)(n===r.Kl?"Uncategorized assets":n);return(0,s.jsxs)(i.Z,{title:"Action center - Discovered assets",children:[(0,s.jsx)(o.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:r.vi},{title:t,href:"".concat(r.vi,"/").concat(t)},{title:n===r.Kl?"Uncategorized assets":d}]}),(0,s.jsx)(ea,{monitorId:t,systemId:n,onSystemName:c})]})}},31883:function(e,t,n){"use strict";n.d(t,{Bw:function(){return s.Bw},D4:function(){return s.D4}});var s=n(19043)},18992:function(e){e.exports={cellBleed:"Cells_cellBleed__dik43"}}},function(e){e.O(0,[431,8765,9278,5163,6344,7245,401,1437,9070,2888,9774,179],function(){return e(e.s=25654)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1961],{66070:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},85630:function(e){e.exports=function(e){return e.split("")}},75733:function(e){e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},34282:function(e,t,n){var r=n(96539),i=n(66070),o=n(19785),s=n(55193),a=1/0,l=r?r.prototype:void 0,c=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(s(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-a?"-0":n}},74833:function(e,t,n){var r=n(56127),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},39158:function(e,t,n){var r=n(75733);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},62690:function(e,t,n){var r=n(39158),i=n(25348),o=n(63528),s=n(65567);e.exports=function(e){return function(t){var n=i(t=s(t))?o(t):void 0,a=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return a[e]()+l}}},25348:function(e){var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},63528:function(e,t,n){var r=n(85630),i=n(25348),o=n(84890);e.exports=function(e){return i(e)?o(e):r(e)}},56127:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},84890:function(e){var t="\ud800-\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\ud83c[\udffb-\udfff]",i="[^"+t+"]",o="(?:\ud83c[\udde6-\uddff]){2}",s="[\ud800-\udbff][\udc00-\udfff]",a="(?:"+n+"|"+r+")?",l="[\\ufe0e\\ufe0f]?",c="(?:\\u200d(?:"+[i,o,s].join("|")+")"+l+a+")*",u=RegExp(r+"(?="+r+")|(?:"+[i+n+"?",n,o,s,"["+t+"]"].join("|")+")"+(l+a+c),"g");e.exports=function(e){return e.match(u)||[]}},98052:function(e,t,n){var r=n(65567),i=n(76744);e.exports=function(e){return i(r(e).toLowerCase())}},66726:function(e,t,n){var r=n(11611),i=n(82846),o=n(91936),s=Math.max,a=Math.min;e.exports=function(e,t,n){var l,c,u,d,f,p,m=0,h=!1,g=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=l,r=c;return l=c=void 0,m=t,d=e.apply(r,n)}function x(e){var n=e-p,r=e-m;return void 0===p||n>=t||n<0||g&&r>=u}function j(){var e,n,r,o=i();if(x(o))return _(o);f=setTimeout(j,(e=o-p,n=o-m,r=t-e,g?a(r,u-n):r))}function _(e){return(f=void 0,v&&l)?y(e):(l=c=void 0,d)}function S(){var e,n=i(),r=x(n);if(l=arguments,c=this,p=n,r){if(void 0===f)return m=e=p,f=setTimeout(j,t),h?y(e):d;if(g)return clearTimeout(f),f=setTimeout(j,t),y(p)}return void 0===f&&(f=setTimeout(j,t)),d}return t=o(t)||0,r(n)&&(h=!!n.leading,u=(g="maxWait"in n)?s(o(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),S.cancel=function(){void 0!==f&&clearTimeout(f),m=0,l=p=c=f=void 0},S.flush=function(){return void 0===f?d:_(i())},S}},19785:function(e){var t=Array.isArray;e.exports=t},11611:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},55193:function(e,t,n){var r=n(99736),i=n(92360);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},82846:function(e,t,n){var r=n(77400);e.exports=function(){return r.Date.now()}},91936:function(e,t,n){var r=n(74833),i=n(11611),o=n(55193),s=0/0,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return s;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):a.test(e)?s:+e}},65567:function(e,t,n){var r=n(34282);e.exports=function(e){return null==e?"":r(e)}},76744:function(e,t,n){var r=n(62690)("toUpperCase");e.exports=r},19174:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/[monitorId]/data-explorer",function(){return n(64695)}])},30952:function(e,t,n){"use strict";n.d(t,{f:function(){return l}});var r=n(24246),i=n(66726),o=n.n(i),s=n(27378),a=n(26917);let l=e=>{let{value:t,onChange:n,placeholder:i,...l}=e,[c,u]=(0,s.useState)(t);(0,s.useEffect)(()=>{u(t||"")},[t]);let d=o()(n,500),f=(0,s.useCallback)(e=>{u(e),d(e)},[]);return(0,r.jsx)(a.Z,{value:c,onChange:f,onClear:()=>{u(""),n("")},placeholder:i,...l})}},35287:function(e,t,n){"use strict";var r=n(24246),i=n(20595),o=n(88038),s=n.n(o);n(27378),t.Z=e=>{let{children:t,title:n,mainProps:o}=e;return(0,r.jsxs)(i.kCb,{"data-testid":n,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,r.jsxs)(s(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsx)(i.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...o,children:t})]})}},58754:function(e,t,n){"use strict";var r=n(24246),i=n(20595),o=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:s=!0,children:a,rightContent:l,style:c,...u}=e;return(0,r.jsxs)("div",{...u,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,r.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,r.jsx)(i.lQT,{className:n||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,r.jsx)(o.m,{className:a?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),a]})}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return c}});var r=n(24246),i=n(20595),o=n(79894),s=n.n(o),a=n(27378);let{Text:l}=i.AntTypography,c=e=>{let{items:t,...n}=e,o=(0,a.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let o=n===t.length-1,a={...e},c=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,r.jsx)(l,{style:{color:"inherit",maxWidth:o?void 0:400},ellipsis:!o,id:o?"breadcrumb-current-page":void 0,children:a.title})),c)?a.title=(0,r.jsx)(i.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,r.jsx)(s(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,r.jsx)(i.zrq,{items:o,...n})}},9270:function(e,t,n){"use strict";n.d(t,{S:function(){return o}});var r=n(27378),i=n(36866);let o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,i.h)(e),{pageIndex:n,pageSize:o,updatePageIndex:s,updatePageSize:a,pageSizeOptions:l,showSizeChanger:c}=t,u=(0,r.useMemo)(()=>({current:n,pageSize:o,showSizeChanger:c,pageSizeOptions:l.map(String),onChange:s,onShowSizeChange:(e,t)=>{a(t)}}),[n,o,c,l,s,a]);return{...t,paginationProps:u}}},37059:function(e,t,n){"use strict";n.d(t,{$h:function(){return j},Ak:function(){return g},EY:function(){return f},Fp:function(){return N},QC:function(){return S},RV:function(){return w},S0:function(){return C},Tj:function(){return m},Ud:function(){return a},Vr:function(){return v},WJ:function(){return c},mL:function(){return _},mi:function(){return y},nP:function(){return d},nS:function(){return p},rs:function(){return u},sX:function(){return h},ut:function(){return x},vc:function(){return P},wi:function(){return l}});var r=n(78780),i=n(16394),o=n(85054),s=n(98145);let{useGetAggregateMonitorResultsQuery:a,useGetDiscoveredSystemAggregateQuery:l,useGetDiscoveredAssetsQuery:c,useAddMonitorResultSystemsMutation:u,useIgnoreMonitorResultSystemsMutation:d,useAddMonitorResultAssetsMutation:f,useIgnoreMonitorResultAssetsMutation:p,useRestoreMonitorResultAssetsMutation:m,useUpdateAssetsSystemMutation:h,useUpdateAssetsDataUseMutation:g,useUpdateAssetsMutation:v,useGetConsentBreakdownQuery:y,useGetWebsiteMonitorResourceFiltersQuery:x,useGetInProgressMonitorTasksQuery:j,useRetryMonitorTaskMutation:_,useDismissMonitorTaskMutation:S,useUndismissMonitorTaskMutation:b,useGetMonitorTreeQuery:T,useLazyGetMonitorTreeQuery:w,useGetMonitorFieldsQuery:N,useGetMonitorConfigQuery:P,useGetDatastoreFiltersQuery:C}=r.u.injectEndpoints({endpoints:e=>({getAggregateMonitorResults:e.query({query:e=>{let{page:t=1,size:n=20,search:r}=e;return{url:"/plus/discovery-monitor/aggregate-results",params:{page:t,size:n,search:r,diff_status:"addition"}}},providesTags:["Discovery Monitor Results"]}),getMonitorConfig:e.query({query:e=>{let{monitor_config_id:t}=e;return{url:"/plus/discovery-monitor/".concat(t)}}}),getDatastoreFilters:e.query({query:e=>{let{monitor_config_id:t}=e;return{url:"/plus/filters/datastore_monitor_resources/?monitor_config_id=".concat(t)}}}),getMonitorTree:e.query({query:e=>{let{page:t=1,size:n=20,monitor_config_id:r,staged_resource_urn:i}=e;return{url:"/plus/discovery-monitor/".concat(r,"/tree").concat(i?"?staged_resource_urn=".concat(i):""),params:{page:t,size:n}}}}),getMonitorFields:e.query({query:e=>{let{page:t=1,size:n=20,monitor_config_id:r,search:o,diff_status:s,confidence_score:a,...l}=e,c=(0,i.$J)({...l,...o?{search:[o]}:{},...s?{diff_status:s}:{},...a?{confidence_score:a}:{}});return{url:"/plus/discovery-monitor/".concat(r,"/fields?").concat(null==c?void 0:c.toString()),params:{page:t,size:n}}}}),getDiscoveredSystemAggregate:e.query({query:e=>{let{key:t,page:n=1,size:r=20,search:i,diff_status:o}=e;return{url:"/plus/discovery-monitor/system-aggregate-results",params:{monitor_config_id:t,page:n,size:r,search:i,diff_status:o}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredAssets:e.query({query:e=>{let{key:t,system:n,page:r=1,size:a=20,search:l,diff_status:c=[o.LL.ADDITION],sort_by:u=[s.r6.CONSENT_AGGREGATED,"urn"],sort_asc:d=!0,resource_type:f,data_uses:p,locations:m,consent_aggregated:h}=e,g=Array.isArray(u)?u:[u],v=(0,i.$J)({sort_by:g,resource_type:f,data_uses:p,locations:m,consent_aggregated:h});return{url:"/plus/discovery-monitor/".concat(t,"/results?").concat(v.toString()),params:{resolved_system_id:n,page:r,size:a,search:l,diff_status:c,sort_asc:d}}},providesTags:()=>["Discovery Monitor Results"]}),addMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:n}=e,r=(0,i.du)(n,"resolved_system_ids");return{url:"/plus/discovery-monitor/".concat(t,"/promote"),method:"POST",params:r?new URLSearchParams(r):new URLSearchParams}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:n}=e,r=(0,i.du)(n,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(t,"/mute?").concat(r)}},invalidatesTags:["Discovery Monitor Results"]}),addMonitorResultAssets:e.mutation({query:e=>{var t;let n=new URLSearchParams;return null===(t=e.urnList)||void 0===t||t.forEach(e=>n.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/promote?".concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultAssets:e.mutation({query:e=>{var t;let n=new URLSearchParams;return null===(t=e.urnList)||void 0===t||t.forEach(e=>n.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/mute?".concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),restoreMonitorResultAssets:e.mutation({query:e=>{var t;let n=new URLSearchParams({status_to_set:o.LL.ADDITION});return null===(t=e.urnList)||void 0===t||t.forEach(e=>n.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/un-mute?".concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),updateAssetsSystem:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.urnList.map(t=>({urn:t,user_assigned_system_key:e.systemKey}))}),invalidatesTags:["Discovery Monitor Results","System Assets"]}),updateAssetsDataUse:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.urnList.map(t=>({urn:t,user_assigned_data_uses:e.dataUses}))}),invalidatesTags:["Discovery Monitor Results"]}),updateAssets:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.assets}),invalidatesTags:["Discovery Monitor Results"]}),getConsentBreakdown:e.query({query:e=>{let{stagedResourceUrn:t,status:n,page:r=1,size:i=20}=e;return{url:"/plus/discovery-monitor/staged_resource/".concat(encodeURIComponent(t),"/consent"),params:{status:n,page:r,size:i}}}}),getWebsiteMonitorResourceFilters:e.query({query:e=>{let{monitor_config_id:t,resolved_system_id:n,diff_status:r=[o.LL.ADDITION],search:s,resource_type:a,data_uses:l,locations:c,consent_aggregated:u}=e,d={monitor_config_id:t,resolved_system_id:n,diff_status:r};s&&(d.search=s);let f=(0,i.$J)({resource_type:a,data_uses:l,locations:c,consent_aggregated:u}).toString();return{url:f?"/plus/filters/website_monitor_resources?".concat(f):"/plus/filters/website_monitor_resources",params:d}},providesTags:["Discovery Monitor Results"]}),getInProgressMonitorTasks:e.query({query:e=>{let{page:t=1,size:n=20,search:r,task_types:i,statuses:o,return_dismissed:s=!1}=e,a=new URLSearchParams({page:t.toString(),size:n.toString(),return_dismissed:s.toString()});return r&&a.append("search",r),(null==i?void 0:i.length)&&i.forEach(e=>a.append("action_type",e)),(null==o?void 0:o.length)&&o.forEach(e=>a.append("status",e)),{url:"/plus/discovery-monitor/tasks?".concat(a.toString())}},providesTags:["Monitor Tasks"]}),retryMonitorTask:e.mutation({query:e=>{let{taskId:t}=e;return{url:"/plus/discovery-monitor/tasks/".concat(t,"/retry"),method:"POST"}},invalidatesTags:["Monitor Tasks"]}),dismissMonitorTask:e.mutation({query:e=>{let{taskId:t}=e;return{url:"/plus/discovery-monitor/tasks/".concat(t,"/dismissed"),method:"POST"}},invalidatesTags:["Monitor Tasks"]}),undismissMonitorTask:e.mutation({query:e=>{let{taskId:t}=e;return{url:"/plus/discovery-monitor/tasks/".concat(t,"/dismissed"),method:"DELETE"}},invalidatesTags:["Monitor Tasks"]})})})},98145:function(e,t,n){"use strict";n.d(t,{EI:function(){return l},LM:function(){return f},Vq:function(){return d},X1:function(){return u},r6:function(){return s},vQ:function(){return a}});var r,i,o,s,a,l,c=n(85054);let u={[c.lg.WITH_CONSENT]:"Consent respected",[c.lg.WITHOUT_CONSENT]:"Consent ignored",[c.lg.EXEMPT]:"Exempt",[c.lg.UNKNOWN]:"Unknown",[c.lg.PRE_CONSENT]:"Pre-Consent",[c.lg.CMP_ERROR]:"CMP failure",[c.lg.NOT_APPLICABLE]:"Not applicable"},d={[c.lg.WITH_CONSENT]:"Asset was detected after the user gave consent",[c.lg.WITHOUT_CONSENT]:"The user explicitly opted out, but this asset still loaded. This is a serious compliance issue and may indicate that consent settings are not being enforced.",[c.lg.EXEMPT]:"Asset is valid regardless of consent",[c.lg.UNKNOWN]:"Did not find consent information for this asset. You may need to re-run the monitor.",[c.lg.PRE_CONSENT]:"Assets loaded before the user had a chance to give consent. This violates opt-in compliance requirements if your CMP is configured for explicit consent.",[c.lg.CMP_ERROR]:"The Consent Management Platform (CMP) was not detected when the service ran. It likely failed to load or wasn't available.",[c.lg.NOT_APPLICABLE]:"No privacy notices apply to this asset"},f=[c.lg.WITHOUT_CONSENT,c.lg.PRE_CONSENT,c.lg.CMP_ERROR];(r=s||(s={})).NAME="name",r.RESOURCE_TYPE="resource_type",r.SYSTEM="system",r.DATA_USES="data_uses",r.LOCATIONS="locations",r.DOMAIN="domain",r.PAGE="page",r.CONSENT_AGGREGATED="consent_aggregated",r.ACTIONS="actions",(i=a||(a={})).SYSTEM_NAME="system_name",i.TOTAL_UPDATES="total_updates",i.DATA_USE="data_use",i.LOCATIONS="locations",i.DOMAINS="domains",i.ACTIONS="actions",(o=l||(l={})).LOCATION="location",o.PAGE="page"},64695:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return z}});var r,i,o=n(24246),s=n(20595),a=n(25980),l=n(86677),c=n(27378),u=n(30952),d=n(35287),f=n(17245),p=n(77830),m=n(58754),h=n(9270),g=n(37059),v=n(85054),y=n(98052),x=n.n(y);(r=i||(i={})).LOW="low",r.HIGH="high",r.MANUAL="manual";var j=n(40431);let _=["Attention Required","In Review","Classifying","Approved","Unmonitored"],S=()=>{let[e,t]=(0,j.v1)("resourceStatus",(0,j.S$)((0,j.km)(_))),[n,r]=(0,j.v1)("confidenceScore",(0,j.S$)((0,j.jx)(Object.values(i)))),[o,s]=(0,j.v1)("dataCategory",(0,j.S$)(j.Oi));return{resourceStatus:e,setResourceStatus:t,confidenceScore:n,setConfidenceScore:r,dataCategory:o,setDataCategory:s,reset:()=>{t(null),r(null),s(null)}}},b=e=>{var t;let{resourceStatus:n,setResourceStatus:r,confidenceScore:a,setConfidenceScore:l,dataCategory:c,setDataCategory:u,reset:d,monitorId:f}=e,{data:p}=(0,g.S0)({monitor_config_id:f});return(0,o.jsx)("div",{className:"rounded-[var(--ant-border-radius)] bg-[var(--ant-color-bg-base)] shadow-md",children:(0,o.jsx)(s.vyj,{size:"middle",className:"p-[var(--ant-padding)]",children:(0,o.jsxs)(s.PPS,{layout:"vertical",children:[(0,o.jsx)(s.PPS.Item,{label:"Status",className:"w-min whitespace-nowrap",children:(0,o.jsx)(s.E_O.Group,{value:n||[],onChange:e=>r(e.length>0?e:null),children:(0,o.jsx)(s.bue,{children:_.map(e=>(0,o.jsx)(s.JGx,{span:24,children:(0,o.jsx)(s.E_O,{value:e,children:e})},e))})})}),(0,o.jsx)(s.PPS.Item,{label:"Confidence Score",className:"w-min whitespace-nowrap",children:(0,o.jsx)(s.E_O.Group,{value:a||[],onChange:e=>l(e.length>0?e:null),children:(0,o.jsx)(s.bue,{children:Object.values(i).map(e=>(0,o.jsx)(s.JGx,{span:24,children:(0,o.jsx)(s.E_O,{value:e,children:x()(e)})},e))})})}),(null==p?void 0:p.data_category)&&(null==p?void 0:null===(t=p.data_category)||void 0===t?void 0:t.length)>0&&(0,o.jsx)(s.PPS.Item,{label:"Data Category",className:"w-min whitespace-nowrap",children:(0,o.jsx)(s.E_O.Group,{value:c||[],onChange:e=>u(e.length>0?e:null),children:(0,o.jsx)(s.bue,{children:p.data_category.map(e=>(0,o.jsx)(s.JGx,{span:24,children:(0,o.jsx)(s.E_O,{value:e,children:x()(e)})},e))})})}),(0,o.jsx)(s.wpx,{onClick:()=>{d()},children:"Clear"})]})})})};var T=n(16394);let w={classifying:{label:"Classifying",color:"blue"},classification_queued:{label:"Classifying",color:"blue"},classification_update:{label:"Classifying",color:"nectar"},classification_addition:{label:"In Review",color:"blue"},addition:{label:"In Review",color:"blue"},muted:{label:"Unmonitored",color:"nectar"},removal:{label:"Attention Required",color:"red"},removing:{label:"In Review",color:"nectar"},promoting:{label:"In Review",color:"nectar"},monitored:{label:"Approved",color:"nectar"}};var N=e=>{let{urn:t,classifications:n,name:r,diff_status:a,user_assigned_data_categories:l}=e;return(0,o.jsx)(s.krs.Item,{actions:[n&&n.length>0&&(0,o.jsxs)(s.jqI,{gap:"small",align:"center",className:"pr-[var(--ant-padding-xl)]",children:[(0,o.jsx)(s.HwE,{percent:n.find(e=>e.confidence_score===i.HIGH)?100:25,percentPosition:{align:"start",type:"outer"},strokeColor:n.find(e=>e.confidence_score===i.HIGH)?"var(--ant-color-success-text)":"var(--ant-color-warning-text)",steps:2,showInfo:!1,strokeLinecap:"round",size:[24,8]}),(0,o.jsx)(s.lKn,{size:"sm",type:"secondary",className:"font-normal",children:(0,T.kC)(n.find(e=>e.confidence_score===i.HIGH)?i.HIGH:i.LOW)})]},"progress"),n&&n.length>0&&(0,o.jsx)(s.wpx,{icon:(0,o.jsx)(s.PJP.MCw,{}),size:"small"},"approve"),n&&n.length>0&&(0,o.jsx)(s.wpx,{icon:(0,o.jsx)(s.PJP.x8P,{}),size:"small"},"deny"),(0,o.jsx)(s.wpx,{icon:(0,o.jsx)(s.QMR,{}),size:"small"},"reclassify")],children:(0,o.jsx)(s.krs.Item.Meta,{avatar:(0,o.jsx)(s.E_O,{}),title:(0,o.jsx)(s.jqI,{justify:"space-between",children:(0,o.jsxs)(s.jqI,{gap:"small",align:"center",className:"w-full",children:[r,a&&(0,o.jsx)(s.j8w,{bordered:!1,color:w[a].color,className:"font-normal text-[var(--ant-font-size-sm)]",children:w[a].label}),(0,o.jsx)(s.lKn,{size:"sm",type:"secondary",className:"overflow-hidden font-normal",ellipsis:{tooltip:t},children:t})]})}),description:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s.wpx,{type:"text",icon:(0,o.jsx)(s.PJP.mm_,{}),size:"small"}),null==n?void 0:n.map(e=>(0,o.jsx)(s.j8w,{bordered:!0,color:"white",closable:!0,icon:(0,o.jsx)(s.QMR,{}),className:"text-[var(--ant-color-text)]",children:e.label},e.label)),null==l?void 0:l.map(e=>(0,o.jsx)(s.j8w,{bordered:!0,color:"white",closable:!0,className:"text-[var(--ant-color-text)]",children:e},e))]})})},t)};let P="load_more",C="skeleton",E=(e,t)=>e.find(e=>{let{children:n}=e;return n&&!!n.find(e=>e.key.toString()===t)}),I=(e,t)=>e.reduce((e,n)=>{if(n.children){var r;return null!==(r=E(n.children,t))&&void 0!==r?r:I(n.children,t)}return e},null),A=e=>{let{node:t,treeData:n,onLoadMore:r}=e;if(t.key.toString().startsWith(P)){let e=I(n,t.key.toString());return(0,o.jsx)(s.wpx,{type:"link",block:!0,onClick:()=>{(null==e?void 0:e.key)&&r(null==e?void 0:e.key.toString())},className:"p-0",children:"function"==typeof t.title?t.title(t):t.title})}return t.key.toString().startsWith(C)?(0,o.jsx)(s.N_L,{paragraph:!1,title:{width:"80px"},active:!0,children:"function"==typeof t.title?t.title(t):t.title}):(0,o.jsx)(s.lKn,{ellipsis:{tooltip:"function"==typeof t.title?t.title(t):t.title},children:"function"==typeof t.title?t.title(t):t.title})},R=(e,t)=>{var n;let r=e.items.map(e=>({title:e.name,key:e.urn,selectable:e.has_children,icon:()=>{switch(e.resource_type){case"Database":return(0,o.jsx)(s.PJP.ehp,{className:"h-full"});case"Table":return(0,o.jsx)(s.PJP.iA_,{className:"h-full"});case"Field":return(0,o.jsx)(s.PJP.$4y,{className:"h-full"});default:return null}},isLeaf:!e.has_children}));return(null!==(n=null==r?void 0:r.length)&&void 0!==n?n:0)<100?r:[...r,{title:"Load more...",key:"".concat(P,"-").concat(e.page,"-").concat(t),selectable:!1,isLeaf:!0}]},M=(e,t,n)=>e.map(e=>{if(e.key===t){var r,i;return{...e,children:[...null!==(i=null===(r=e.children)||void 0===r?void 0:r.filter(e=>!(e.key.toString().startsWith(P)||e.key.toString().startsWith(C))))&&void 0!==i?i:[],...n]}}return e.children?{...e,children:M(e.children,t,n)}:e}),k=(e,t,n)=>e.map(e=>e.key===t?{...e,children:n}:e.children?{...e,children:k(e.children,t,n)}:e);var O=e=>{let{selectedNodeKeys:t,setSelectedNodeKeys:n}=e,r=decodeURIComponent((0,l.useRouter)().query.monitorId),[i]=(0,g.RV)(),[a,u]=(0,c.useState)({}),[d,f]=(0,c.useState)([]),p=e=>{let t=null==a?void 0:a[e];if(t){let n=t.pageIndex+1;f(t=>M(t,e,[...Array(100)].map((t,n)=>({key:"".concat(C,"-").concat(e,"-").concat(n),title:"SKELETON",isLeaf:!0})))),i({monitor_config_id:r,staged_resource_urn:e,size:100,page:n}).then(t=>{let{data:r}=t;r&&(f(t=>M(t,e,R(r,e))),u({...a,[e]:{pageSize:100,pageIndex:n}}))})}};return(0,c.useEffect)(()=>{(async()=>{let{data:e}=await i({monitor_config_id:r,size:100});e&&d.length<=0&&f(R(e))})()},[f]),(0,o.jsxs)(s.jqI,{gap:"middle",vertical:!0,className:"h-full",children:[(0,o.jsx)(s.lQT,{level:3,className:"sticky top-0",children:"Schema explorer"}),(0,o.jsx)(s.a$q,{loadData:e=>{let{children:t,key:n}=e;return new Promise(e=>{if(t){e();return}i({monitor_config_id:r,staged_resource_urn:n.toString(),size:100}).then(e=>{let{data:t}=e;t&&(f(e=>k(e,n,R(t,n.toString()))),u({...a,[n.toString()]:{pageSize:100,pageIndex:1}}))}),e()})},treeData:d,onSelect:(e,t)=>n(t.selectedNodes.map(e=>{let{key:t}=e;return t})),showIcon:!0,showLine:!0,blockNode:!0,multiple:!0,rootClassName:"h-full overflow-x-hidden",titleRender:e=>(0,o.jsx)(A,{node:e,treeData:d,onLoadMore:p})}),t.length>0&&(0,o.jsxs)(s.jqI,{justify:"space-between",align:"center",children:[(0,o.jsxs)("span",{children:[t.length," selected"]}),(0,o.jsx)(s.wpx,{icon:(0,o.jsx)(s.QMR,{}),size:"small"})]})]})};let q={classifying:{label:"Classifying",color:"blue"},classification_queued:{label:"Classifying",color:"blue"},classification_update:{label:"Classifying",color:"nectar"},classification_addition:{label:"In Review",color:"blue"},addition:{label:"In Review",color:"blue"},muted:{label:"Unmonitored",color:"nectar"},removal:{label:"Attention Required",color:"red"},removing:{label:"In Review",color:"nectar"},promoting:{label:"In Review",color:"nectar"},monitored:{label:"Approved",color:"nectar"}},L=e=>Object.values(v.LL).flatMap(t=>q[t].label===e?[t]:[]);var D=()=>{let e=decodeURIComponent((0,l.useRouter)().query.monitorId),{paginationProps:t,pageIndex:n,pageSize:r,resetPagination:i}=(0,h.S)({defaultPageSize:25}),a=(0,f.Rx)(),{resourceStatus:v,confidenceScore:y,...x}=S(),{data:j}=(0,g.vc)({monitor_config_id:e}),[_,T]=(0,c.useState)([]),{data:w}=(0,g.Fp)({monitor_config_id:e,size:r,page:n,staged_resource_urn:_.map(e=>e.toString()),search:a.searchProps.value,diff_status:v?v.flatMap(L):void 0,confidence_score:y||void 0});return(0,c.useEffect)(()=>{i()},[v,y,_,a.searchQuery]),(0,o.jsxs)(d.Z,{title:"Action center - Discovered assets by system",mainProps:{overflow:"hidden"},children:[(0,o.jsx)(m.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:p.vi},{title:e}],isSticky:!1}),(0,o.jsxs)(s.LgQ,{className:"h-[calc(100%-48px)] overflow-hidden",children:[(0,o.jsx)(s.LgQ.Panel,{defaultSize:250,style:{paddingRight:"var(--ant-padding-md)"},children:(0,o.jsx)(O,{selectedNodeKeys:_,setSelectedNodeKeys:T})}),(0,o.jsx)(s.LgQ.Panel,{style:{paddingLeft:"var(--ant-padding-md)"},children:(0,o.jsxs)(s.jqI,{vertical:!0,gap:"middle",className:"h-full overflow-hidden",children:[(0,o.jsxs)(s.jqI,{justify:"space-between",children:[(0,o.jsx)(s.lQT,{level:2,children:"Monitor results"}),(0,o.jsx)(s.jqI,{align:"center",children:(null==j?void 0:j.last_monitored)&&(0,o.jsxs)(s.lKn,{type:"secondary",children:["Last scan:"," ",new Date(null==j?void 0:j.last_monitored).toLocaleString()]})})]}),(0,o.jsxs)(s.jqI,{justify:"space-between",children:[(0,o.jsx)(u.f,{value:a.searchQuery,onChange:a.updateSearch,placeholder:"Search"}),(0,o.jsxs)(s.jqI,{gap:"small",children:[(0,o.jsx)(s.S0p,{trigger:["click"],popupRender:()=>(0,o.jsx)(b,{resourceStatus:v,confidenceScore:y,...x,monitorId:e}),children:(0,o.jsx)(s.wpx,{icon:(0,o.jsx)(s.PJP._ME,{}),iconPosition:"end",children:"Filter"})}),(0,o.jsx)(s.S0p,{menu:{items:[]},children:(0,o.jsx)(s.wpx,{type:"primary",icon:(0,o.jsx)(s.PJP._ME,{}),iconPosition:"end",children:"Actions"})})]})]}),(0,o.jsx)(s.krs,{dataSource:null==w?void 0:w.items,className:"overflow-scroll",renderItem:N}),(0,o.jsx)(s.B7X,{...t,showSizeChanger:!1,total:(null==w?void 0:w.total)||0})]})})]})]})};let U=()=>(0,o.jsxs)(o.Fragment,{children:["Attempting to access the alpha version of monitor results without setting the ",(0,o.jsx)(s.lKn,{code:!0,children:"alphaFullActionCenter"})," flag"]});var z=()=>{let{flags:e}=(0,a.hz)();return e.alphaFullActionCenter?(0,o.jsx)(D,{}):(0,o.jsx)(s.ux6,{status:"error",title:(0,o.jsx)(U,{})})}}},function(e){e.O(0,[431,7245,2888,9774,179],function(){return e(e.s=19174)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2423],{56632:function(a,e,n){var t=n(89278),i=n(80068),s=n(50098);a.exports=function(a){return function(e,n,o){var r=Object(e);if(!i(e)){var _=t(n,3);e=s(e),n=function(a){return _(r[a],a,r)}}var l=a(e,n,o);return l>-1?r[_?e[l]:l]:void 0}}},64925:function(a,e,n){var t=n(56632)(n(66259));a.exports=t},66259:function(a,e,n){var t=n(95372),i=n(89278),s=n(47991),o=Math.max;a.exports=function(a,e,n){var r=null==a?0:a.length;if(!r)return -1;var _=null==n?0:s(n);return _<0&&(_=o(r+_,0)),t(a,i(e,3),_)}},94919:function(a,e,n){var t=n(91936),i=1/0;a.exports=function(a){return a?(a=t(a))===i||a===-i?(a<0?-1:1)*17976931348623157e292:a==a?a:0:0===a?a:0}},47991:function(a,e,n){var t=n(94919);a.exports=function(a){var e=t(a),n=e%1;return e==e?n?e-n:e:0}},86850:function(a,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/[monitorId]",function(){return n(12109)}])},26089:function(a,e,n){"use strict";var t=n(24246),i=n(20595),s=n(99830),o=n.n(s);e.Z=a=>{let{onClick:e,children:n}=a;return(0,t.jsx)(i.wpx,{onClick:e,type:"link",role:"link",size:"small",className:o().toastLink,children:n})}},8411:function(a,e,n){"use strict";n.d(e,{NA:function(){return s},Z8:function(){return i}});var t=n(85054);let i={[t._F.ER]:"Eritrea",[t._F.DJ]:"Djibouti",[t._F.MR]:"Mauritania",[t._F.NA]:"Namibia",[t._F.GH]:"Ghana",[t._F.SS]:"South Sudan",[t._F.SC]:"Seychelles",[t._F.IO]:"British Indian Ocean Territory",[t._F.GQ]:"Equatorial Guinea",[t._F.AO]:"Angola",[t._F.CG]:"Republic of the Congo",[t._F.BW]:"Botswana",[t._F.BI]:"Burundi",[t._F.DZ]:"Algeria",[t._F.TD]:"Chad",[t._F.NG]:"Nigeria",[t._F.TZ]:"Tanzania",[t._F.EH]:"Western Sahara",[t._F.SN]:"Senegal",[t._F.LR]:"Liberia",[t._F.ZA]:"South Africa",[t._F.CV]:"Cape Verde",[t._F.GM]:"Gambia",[t._F.SD]:"Sudan",[t._F.KM]:"Comoros",[t._F.SZ]:"Eswatini",[t._F.UG]:"Uganda",[t._F.MG]:"Madagascar",[t._F.RW]:"Rwanda",[t._F.CD]:"DR Congo",[t._F.CM]:"Cameroon",[t._F.SH]:"Saint Helena, Ascension and Tristan da Cunha",[t._F.TG]:"Togo",[t._F.MU]:"Mauritius",[t._F.NE]:"Niger",[t._F.BJ]:"Benin",[t._F.EG]:"Egypt",[t._F.LS]:"Lesotho",[t._F.ET]:"Ethiopia",[t._F.MA]:"Morocco",[t._F.YT]:"Mayotte",[t._F.BF]:"Burkina Faso",[t._F.RE]:"R\xe9union",[t._F.ST]:"S\xe3o Tom\xe9 and Pr\xedncipe",[t._F.CF]:"Central African Republic",[t._F.MZ]:"Mozambique",[t._F.MW]:"Malawi",[t._F.ML]:"Mali",[t._F.ZM]:"Zambia",[t._F.LY]:"Libya",[t._F.GW]:"Guinea-Bissau",[t._F.SO]:"Somalia",[t._F.KE]:"Kenya",[t._F.GN]:"Guinea",[t._F.ZW]:"Zimbabwe",[t._F.TN]:"Tunisia",[t._F.SL]:"Sierra Leone",[t._F.GA]:"Gabon",[t._F.CI]:"Ivory Coast",[t._F.JO]:"Jordan",[t._F.PK]:"Pakistan",[t._F.KP]:"North Korea",[t._F.MO]:"Macau",[t._F.AM]:"Armenia",[t._F.SY]:"Syria",[t._F.TJ]:"Tajikistan",[t._F.SA]:"Saudi Arabia",[t._F.KR]:"South Korea",[t._F.NP]:"Nepal",[t._F.PH]:"Philippines",[t._F.IQ]:"Iraq",[t._F.LB]:"Lebanon",[t._F.MN]:"Mongolia",[t._F.PS]:"Palestine",[t._F.YE]:"Yemen",[t._F.JP]:"Japan",[t._F.KZ]:"Kazakhstan",[t._F.LK]:"Sri Lanka",[t._F.MM]:"Myanmar",[t._F.KG]:"Kyrgyzstan",[t._F.CN]:"China",[t._F.AF]:"Afghanistan",[t._F.OM]:"Oman",[t._F.IN]:"India",[t._F.LA]:"Laos",[t._F.UZ]:"Uzbekistan",[t._F.MV]:"Maldives",[t._F.ID]:"Indonesia",[t._F.VN]:"Vietnam",[t._F.MY]:"Malaysia",[t._F.TW]:"Taiwan",[t._F.KH]:"Cambodia",[t._F.AE]:"United Arab Emirates",[t._F.HK]:"Hong Kong",[t._F.GE]:"Georgia (Country)",[t._F.BD]:"Bangladesh",[t._F.KW]:"Kuwait",[t._F.TM]:"Turkmenistan",[t._F.QA]:"Qatar",[t._F.BH]:"Bahrain",[t._F.BN]:"Brunei",[t._F.TH]:"Thailand",[t._F.BT]:"Bhutan",[t._F.SG]:"Singapore",[t._F.IL]:"Israel",[t._F.AZ]:"Azerbaijan",[t._F.TL]:"Timor-Leste",[t._F.IR]:"Iran",[t._F.TR]:"Turkey",[t._F.MK]:"North Macedonia",[t._F.IE]:"Ireland",[t._F.DK]:"Denmark",[t._F.SK]:"Slovakia",[t._F.MD]:"Moldova",[t._F.AX]:"\xc5land Islands",[t._F.PL]:"Poland",[t._F.BA]:"Bosnia and Herzegovina",[t._F.SM]:"San Marino",[t._F.CZ]:"Czechia",[t._F.EE]:"Estonia",[t._F.XK]:"Kosovo",[t._F.FO]:"Faroe Islands",[t._F.SJ]:"Svalbard and Jan Mayen",[t._F.GG]:"Guernsey",[t._F.FR]:"France",[t._F.NL]:"Netherlands",[t._F.FI]:"Finland",[t._F.PT]:"Portugal",[t._F.DE]:"Germany",[t._F.MT]:"Malta",[t._F.JE]:"Jersey",[t._F.IS]:"Iceland",[t._F.ES]:"Spain",[t._F.GI]:"Gibraltar",[t._F.NO]:"Norway",[t._F.CY]:"Cyprus",[t._F.RS]:"Serbia",[t._F.LT]:"Lithuania",[t._F.MC]:"Monaco",[t._F.LU]:"Luxembourg",[t._F.UA]:"Ukraine",[t._F.IM]:"Isle of Man",[t._F.RO]:"Romania",[t._F.BE]:"Belgium",[t._F.SE]:"Sweden",[t._F.ME]:"Montenegro",[t._F.LV]:"Latvia",[t._F.VA]:"Vatican City",[t._F.AT]:"Austria",[t._F.AL]:"Albania",[t._F.LI]:"Liechtenstein",[t._F.GR]:"Greece",[t._F.IT]:"Italy",[t._F.AD]:"Andorra",[t._F.GB]:"United Kingdom",[t._F.RU]:"Russia",[t._F.SI]:"Slovenia",[t._F.BY]:"Belarus",[t._F.CH]:"Switzerland",[t._F.HU]:"Hungary",[t._F.BG]:"Bulgaria",[t._F.HR]:"Croatia",[t._F.TC]:"Turks and Caicos Islands",[t._F.CW]:"Cura\xe7ao",[t._F.GP]:"Guadeloupe",[t._F.UM]:"United States Minor Outlying Islands",[t._F.GT]:"Guatemala",[t._F.PM]:"Saint Pierre and Miquelon",[t._F.BQ]:"Caribbean Netherlands",[t._F.GL]:"Greenland",[t._F.SX]:"Sint Maarten",[t._F.PA]:"Panama",[t._F.AW]:"Aruba",[t._F.MQ]:"Martinique",[t._F.AG]:"Antigua and Barbuda",[t._F.BM]:"Bermuda",[t._F.CU]:"Cuba",[t._F.GD]:"Grenada",[t._F.NI]:"Nicaragua",[t._F.LC]:"Saint Lucia",[t._F.KN]:"Saint Kitts and Nevis",[t._F.DO]:"Dominican Republic",[t._F.VC]:"Saint Vincent and the Grenadines",[t._F.BZ]:"Belize",[t._F.HT]:"Haiti",[t._F.JM]:"Jamaica",[t._F.BS]:"Bahamas",[t._F.MX]:"Mexico",[t._F.MF]:"Saint Martin",[t._F.SV]:"El Salvador",[t._F.BL]:"Saint Barth\xe9lemy",[t._F.AI]:"Anguilla",[t._F.MS]:"Montserrat",[t._F.VG]:"British Virgin Islands",[t._F.BB]:"Barbados",[t._F.HN]:"Honduras",[t._F.KY]:"Cayman Islands",[t._F.DM]:"Dominica",[t._F.TT]:"Trinidad and Tobago",[t._F.CR]:"Costa Rica",[t._F.SR]:"Suriname",[t._F.CX]:"Christmas Island",[t._F.WS]:"Samoa",[t._F.PF]:"French Polynesia",[t._F.AS]:"American Samoa",[t._F.NC]:"New Caledonia",[t._F.TK]:"Tokelau",[t._F.PW]:"Palau",[t._F.KI]:"Kiribati",[t._F.VU]:"Vanuatu",[t._F.PN]:"Pitcairn Islands",[t._F.CK]:"Cook Islands",[t._F.FJ]:"Fiji",[t._F.PG]:"Papua New Guinea",[t._F.MP]:"Northern Mariana Islands",[t._F.NU]:"Niue",[t._F.TV]:"Tuvalu",[t._F.NF]:"Norfolk Island",[t._F.TO]:"Tonga",[t._F.FM]:"Micronesia",[t._F.SB]:"Solomon Islands",[t._F.NR]:"Nauru",[t._F.WF]:"Wallis and Futuna",[t._F.GU]:"Guam",[t._F.AU]:"Australia",[t._F.NZ]:"New Zealand",[t._F.MH]:"Marshall Islands",[t._F.CC]:"Cocos (Keeling) Islands",[t._F.VE]:"Venezuela",[t._F.PY]:"Paraguay",[t._F.BR]:"Brazil",[t._F.CO]:"Colombia",[t._F.PE]:"Peru",[t._F.CL]:"Chile",[t._F.UY]:"Uruguay",[t._F.AR]:"Argentina",[t._F.GY]:"Guyana",[t._F.BO]:"Bolivia",[t._F.GF]:"French Guiana",[t._F.EC]:"Ecuador",[t._F.FK]:"Falkland Islands",[t._F.US_AL]:"Alabama",[t._F.US_AK]:"Alaska",[t._F.US_AZ]:"Arizona",[t._F.US_AR]:"Arkansas",[t._F.US_CA]:"California",[t._F.US_CO]:"Colorado",[t._F.US_CT]:"Connecticut",[t._F.US_DE]:"Delaware",[t._F.US_DC]:"District of Columbia (DC)",[t._F.US_FL]:"Florida",[t._F.US_GA]:"Georgia",[t._F.US_HI]:"Hawaii",[t._F.US_ID]:"Idaho",[t._F.US_IL]:"Illinois",[t._F.US_IN]:"Indiana",[t._F.US_IA]:"Iowa",[t._F.US_KS]:"Kansas",[t._F.US_KY]:"Kentucky",[t._F.US_LA]:"Louisiana",[t._F.US_ME]:"Maine",[t._F.US_MD]:"Maryland",[t._F.US_MA]:"Massachusetts",[t._F.US_MI]:"Michigan",[t._F.US_MN]:"Minnesota",[t._F.US_MS]:"Mississippi",[t._F.US_MO]:"Missouri",[t._F.US_MT]:"Montana",[t._F.US_NE]:"Nebraska",[t._F.US_NV]:"Nevada",[t._F.US_NH]:"New Hampshire",[t._F.US_NJ]:"New Jersey",[t._F.US_NM]:"New Mexico",[t._F.US_NY]:"New York",[t._F.US_NC]:"North Carolina",[t._F.US_ND]:"North Dakota",[t._F.US_OH]:"Ohio",[t._F.US_OK]:"Oklahoma",[t._F.US_OR]:"Oregon",[t._F.US_PA]:"Pennsylvania",[t._F.US_PR]:"Puerto Rico",[t._F.US_RI]:"Rhode Island",[t._F.US_SC]:"South Carolina",[t._F.US_SD]:"South Dakota",[t._F.US_TN]:"Tennessee",[t._F.US_TX]:"Texas",[t._F.US_UT]:"Utah",[t._F.US_VA]:"Virginia",[t._F.US_VI]:"United States Virgin Islands",[t._F.US_VT]:"Vermont",[t._F.US_WA]:"Washington",[t._F.US_WV]:"West Virginia",[t._F.US_WI]:"Wisconsin",[t._F.US_WY]:"Wyoming",[t._F.CA_AB]:"Alberta",[t._F.CA_BC]:"British Columbia",[t._F.CA_MB]:"Manitoba",[t._F.CA_NB]:"New Brunswick",[t._F.CA_NL]:"Newfoundland and Labrador",[t._F.CA_NS]:"Nova Scotia",[t._F.CA_ON]:"Ontario",[t._F.CA_PE]:"Prince Edward Island",[t._F.CA_QC]:"Quebec",[t._F.CA_SK]:"Saskatchewan",[t._F.CA_NT]:"Northwest Territories",[t._F.CA_NU]:"Nunavut",[t._F.CA_YT]:"Yukon",[t._F.CA]:"Canada",[t._F.US]:"United States",[t._F.MEXICO_CENTRAL_AMERICA]:"Mexico and Central America",[t._F.CARIBBEAN]:"Caribbean",[t._F.EEA]:"European Economic Area (EEA)",[t._F.NON_EEA]:"Non European Economic Area",[t._F.GLOBAL]:"Global"},s=new Map(Object.entries(i));Object.entries(i).map(a=>({value:a[0],label:a[1]}))},25415:function(a,e,n){"use strict";n.d(e,{a:function(){return s}});var t=n(24246);let{Text:i}=n(20595).AntTypography,s=a=>{let{count:e}=a;return(0,t.jsx)(i,{size:"sm",strong:!0,"data-testid":"selected-count",children:"".concat(e," selected")})}},14908:function(a,e,n){"use strict";var t=n(86677),i=n(27378);let s=a=>a.startsWith("#")?a.slice(1):a;e.Z=a=>{let{tabKeys:e,initialTab:n}=a,o=(0,t.useRouter)(),r=o.asPath.split("#")[1]||e[0],[_,l]=(0,i.useState)(r);return(0,i.useEffect)(()=>{n&&e.includes(n)&&l(n)},[n,e,o.isReady]),{activeTab:_,onTabChange:(0,i.useCallback)(async a=>{if(!e.includes(a)){await o.replace({pathname:o.pathname,query:o.query,hash:void 0}),l(e[0]);return}o.isReady&&(await o.replace({pathname:o.pathname,query:o.query,hash:s(a)},void 0,{shallow:!0}),l(a))},[o,e]),setActiveTab:l}}},9320:function(a,e,n){"use strict";n.d(e,{_:function(){return s}});var t=n(24246),i=n(26089);let s=(a,e)=>(0,t.jsxs)(t.Fragment,{children:[a," ",e&&(0,t.jsx)(i.Z,{onClick:e,children:"View"})]})},88708:function(a,e,n){"use strict";n.d(e,{A:function(){return i}});var t,i,s=n(27378),o=n(14908),r=n(85054);(t=i||(i={})).ATTENTION_REQUIRED="attention-required",t.ADDED="added",t.IGNORED="ignored",e.Z=a=>{let{activeTab:e,onTabChange:n}=(0,o.Z)({tabKeys:Object.values(i)}),t=(0,s.useMemo)(()=>[{label:"Attention required",params:{diff_status:[r.LL.ADDITION],system:a},hash:"attention-required"},{label:"Added",params:{diff_status:[r.LL.MONITORED]},hash:"added"},{label:"Ignored",params:{diff_status:[r.LL.MUTED],system:a},hash:"ignored"}],[a]),{diff_status:_,system:l}=(0,s.useMemo)(()=>{var a;return null!==(a=t.find(a=>a.hash===e))&&void 0!==a?a:t[0]},[t,e]).params,F=(0,s.useMemo)(()=>_.includes(r.LL.MONITORED),[_]);return{filterTabs:t,activeTab:e,onTabChange:n,activeParams:(0,s.useMemo)(()=>a?{diff_status:_,system:l}:{diff_status:_},[a,_,l]),actionsDisabled:F}}},78238:function(a,e,n){"use strict";n.d(e,{g:function(){return t}});let t=["essential","functional.service.improve","personalize","analytics","marketing.advertising.first_party.targeted","marketing.advertising.third_party.targeted"];e.Z=a=>t.includes(a)},12109:function(a,e,n){"use strict";n.r(e),n.d(e,{default:function(){return G}});var t=n(24246),i=n(86677),s=n(35287),o=n(77830),r=n(58754),_=n(20595),l=n(25415),F=n(85054),d=n(30952),u=n(27378),c=n(812),S=n(8125),m=n(46628),h=n(37059),v=n(98145),y=n(9320),C=n(88708),A=n(8411),M=n(26070),p=n(3110),g=n(54762);let N=a=>{let{monitorId:e,system:n,allowIgnore:s,onTabChange:r}=a,[l,{isLoading:F}]=(0,h.rs)(),[d,{isLoading:u}]=(0,h.nP)(),S=(0,i.useRouter)(),v=(0,_.pmc)(),A=F||u,{id:M,name:p,system_key:g,total_updates:N}=n,b=async()=>{let a=await l({monitor_config_key:e,resolved_system_ids:[M]});if((0,c.D4)(a))v((0,m.Vo)((0,c.e$)(a.error)));else{let a="".concat(o.So,"/configure/").concat(g,"#assets");v((0,m.t5)((0,y._)(g?"".concat(N," assets from ").concat(p," have been added to the system inventory."):"".concat(p," and ").concat(N," assets have been added to the system inventory. ").concat(p," is now configured for consent."),g?()=>S.push(a):void 0)))}},I=async()=>{let a=await d({monitor_config_key:e,resolved_system_ids:[M||o.Kl]});(0,c.D4)(a)?v((0,m.Vo)((0,c.e$)(a.error))):v((0,m.t5)((0,y._)(p?"".concat(N," assets from ").concat(p," have been ignored and will not appear in future scans."):"".concat(N," uncategorized assets have been ignored and will not appear in future scans."),async()=>{await r(C.A.IGNORED)})))};return(0,t.jsxs)(_.vyj,{children:[(0,t.jsx)(_.esZ,{title:n.id?void 0:"These assets must be categorized before you can add them to the inventory.",children:(0,t.jsx)(_.wpx,{"data-testid":"add-btn",size:"small",onClick:b,disabled:!n.id||A,loading:F,children:"Add"})}),s&&(0,t.jsx)(_.wpx,{"data-testid":"ignore-btn",size:"small",onClick:I,disabled:A,loading:u,children:"Ignore"})]})};var b=n(99640),I=n(76904);let f=a=>{let{system:e,rowClickUrl:n}=a,i=null==n?void 0:n(e);return(0,t.jsxs)(_.vyj,{className:"max-w-[250px] flex-nowrap",children:[!e.system_key&&(0,t.jsx)(_.esZ,{title:"New system",children:(0,t.jsx)("span",{children:I.QL.Change})}),(0,t.jsx)(b.Z,{href:i,"data-testid":i?"system-name-link":"system-name-text",children:e.name||"Uncategorized assets"}),(0,t.jsx)(g.l,{consentStatus:e.consent_status})]})};var U=n(34929),E=n(2525),k=n(78238),T=a=>{var e,n;let{system:i,columnState:s}=a,{getDataUseDisplayName:o}=(0,U.Z)(),r=(null!==(n=null===(e=i.data_uses)||void 0===e?void 0:e.filter(a=>(0,k.Z)(a)))&&void 0!==n?n:[]).map(a=>({label:o(a),key:a}));return(0,t.jsx)(E.Q,{values:r,columnState:s})};let L=a=>{let{monitorId:e,readonly:n,allowIgnore:i,onTabChange:s,consentStatus:o,rowClickUrl:r}=a,[l,F]=(0,u.useState)(!1),[d,c]=(0,u.useState)(!1),[S,m]=(0,u.useState)(!1),[h,y]=(0,u.useState)(0),[C,b]=(0,u.useState)(0),[I,U]=(0,u.useState)(0);return{columns:(0,u.useMemo)(()=>{let a=[{title:()=>(0,t.jsxs)(_.vyj,{children:[(0,t.jsx)("div",{children:"System"}),(0,t.jsx)(g.l,{consentStatus:o})]}),dataIndex:"name",key:v.vQ.SYSTEM_NAME,fixed:"left",render:(a,e)=>(0,t.jsx)(f,{system:e,rowClickUrl:r})},{title:"Assets",dataIndex:"total_updates",key:v.vQ.TOTAL_UPDATES},{title:"Categories of consent",key:v.vQ.DATA_USE,menu:{items:p.DI,onClick:a=>{a.domEvent.stopPropagation(),"expand-all"===a.key?(m(!0),U(a=>a+1)):"collapse-all"===a.key&&(m(!1),U(a=>a+1))}},render:(a,e)=>(0,t.jsx)(T,{system:e,columnState:{isExpanded:S,version:I}})},{title:"Locations",menu:{items:p.DI,onClick:a=>{a.domEvent.stopPropagation(),"expand-all"===a.key?(F(!0),y(a=>a+1)):"collapse-all"===a.key&&(F(!1),y(a=>a+1))}},dataIndex:"locations",key:v.vQ.LOCATIONS,render:a=>{var e;return(0,t.jsx)(M.Q,{values:null!==(e=null==a?void 0:a.map(a=>{var e;let n=(0,_.QCN)(a);return{label:n?(0,_.c1K)({isoEntry:n}):null!==(e=A.Z8[a])&&void 0!==e?e:a,key:a}}))&&void 0!==e?e:[],columnState:{isExpanded:l,isWrapped:!0,version:h}})}},{title:"Domains",menu:{items:p.DI,onClick:a=>{a.domEvent.stopPropagation(),"expand-all"===a.key?(c(!0),b(a=>a+1)):"collapse-all"===a.key&&(c(!1),b(a=>a+1))}},dataIndex:"domains",key:v.vQ.DOMAINS,render:a=>(0,t.jsx)(M.v,{values:a,valueSuffix:"domains",columnState:{isExpanded:d,version:C}})}];return n||a.push({title:"Actions",key:v.vQ.ACTIONS,fixed:"right",render:(a,n)=>(0,t.jsx)(N,{system:n,monitorId:e,allowIgnore:i,onTabChange:s})}),a},[n,o,r,S,l,d,I,h,C,e,i,s])}},x=a=>{let{monitorId:e}=a,n=(0,i.useRouter)(),s=(0,_.pmc)(),[r,l]=(0,u.useState)(),{filterTabs:d,activeTab:A,onTabChange:M,activeParams:p,actionsDisabled:g}=(0,C.Z)(),N=(0,S.o)({sorting:{validColumns:Object.values(v.vQ)}}),{pageIndex:b,pageSize:I,searchQuery:f,updateSearch:U,resetState:E}=N,{data:k,isLoading:T,isFetching:x}=(0,h.wi)({key:e,page:b,size:I,search:f,...p}),[w,{isLoading:G}]=(0,h.rs)(),[P,{isLoading:B}]=(0,h.nP)(),D=(0,u.useCallback)(a=>{var e,n,t;return null!==(t=null!==(n=null!==(e=a.id)&&void 0!==e?e:a.vendor_id)&&void 0!==n?n:a.name)&&void 0!==t?t:o.Kl},[]),R=(0,u.useCallback)(a=>{var n;return"".concat(o.vi,"/").concat(e,"/").concat(null!==(n=a.id)&&void 0!==n?n:o.Kl).concat(A?"#".concat(A):"")},[e,A]),j=(0,u.useMemo)(()=>({enableSelection:!0,getRowKey:D,isLoading:T,isFetching:x,dataSource:(null==k?void 0:k.items)||[],totalRows:(null==k?void 0:k.total)||0,customTableProps:{locale:{emptyText:(0,t.jsx)(_.oj8,{image:_.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})}}}),[D,T,x,null==k?void 0:k.items,null==k?void 0:k.total]),O=(0,S.V)(N,j),{selectedRows:K,resetSelections:V}=O,Z=(0,u.useCallback)(async a=>{l(void 0),await M(a),E(),V()},[M,E,V]),{columns:H}=L({monitorId:e,onTabChange:Z,readonly:g,allowIgnore:!p.diff_status.includes(F.LL.MUTED),consentStatus:r,rowClickUrl:R});(0,u.useEffect)(()=>{if((null==k?void 0:k.items)&&!r){var a;let e=null===(a=k.items.find(a=>{var e;return(null===(e=a.consent_status)||void 0===e?void 0:e.status)===F.pF.ALERT}))||void 0===a?void 0:a.consent_status;l(null!=e?e:void 0)}},[k,r]);let z=(0,u.useCallback)(async()=>{let a=K.reduce((a,e)=>a+e.total_updates,0),t=await w({monitor_config_key:e,resolved_system_ids:K.map(a=>a.id)});(0,c.D4)(t)?s((0,m.Vo)((0,c.e$)(t.error))):(s((0,m.t5)((0,y._)("".concat(a," assets have been added to the system inventory."),()=>n.push(o.So)))),V())},[K,w,e,s,n,V]),W=(0,u.useCallback)(async()=>{let a=K.reduce((a,e)=>a+e.total_updates,0),n=await P({monitor_config_key:e,resolved_system_ids:K.map(a=>{var e;return null!==(e=a.id)&&void 0!==e?e:o.Kl})});(0,c.D4)(n)?s((0,m.Vo)((0,c.e$)(n.error))):(s((0,m.t5)((0,y._)("".concat(a," assets have been ignored and will not appear in future scans."),async()=>{await M(C.A.IGNORED)}))),V())},[K,P,e,s,M,V]),Q=K.some(a=>null===a.id);return{columns:H,data:k,isLoading:T,isFetching:x,searchQuery:f,updateSearch:U,resetState:E,tableProps:O.tableProps,selectionProps:O.selectionProps,filterTabs:d,activeTab:A,handleTabChange:Z,activeParams:p,actionsDisabled:g,selectedRows:K,hasSelectedRows:O.hasSelectedRows,resetSelections:V,uncategorizedIsSelected:Q,handleBulkAdd:z,handleBulkIgnore:W,anyBulkActionIsLoading:G||B,isAddingResults:G,isIgnoringResults:B}},w=a=>{let{monitorId:e}=a,{columns:n,searchQuery:i,updateSearch:s,tableProps:o,selectionProps:r,filterTabs:u,activeTab:c,handleTabChange:S,activeParams:m,selectedRows:h,hasSelectedRows:v,uncategorizedIsSelected:y,handleBulkAdd:C,handleBulkIgnore:A,anyBulkActionIsLoading:M}=x({monitorId:e});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(_.Niu,{"aria-label":"Asset state filter",mode:"horizontal",items:u.map(a=>({key:a.hash,label:a.label})),selectedKeys:[c],onClick:async a=>{await S(a.key)},className:"mb-4","data-testid":"asset-state-filter"}),(0,t.jsxs)(_.jqI,{justify:"space-between",align:"center",className:"mb-4",children:[(0,t.jsx)(d.f,{value:i,onChange:s}),(0,t.jsxs)(_.vyj,{size:"large",children:[v&&(0,t.jsx)(l.a,{count:h.length}),(0,t.jsx)(_.S0p,{menu:{items:[{key:"add",label:(0,t.jsx)(_.esZ,{title:y?"Uncategorized assets can't be added to the inventory":null,placement:"left",children:"Add"}),onClick:C,disabled:y},m.diff_status.includes(F.LL.MUTED)?null:{key:"ignore",label:"Ignore",onClick:A}]},trigger:["click"],children:(0,t.jsx)(_.wpx,{type:"primary",icon:(0,t.jsx)(_.PJP._ME,{}),iconPosition:"end",loading:M,disabled:!v,"data-testid":"bulk-actions-menu",children:"Actions"})})]})]}),(0,t.jsx)(_.V5H,{...o,columns:n,rowSelection:r})]})};var G=()=>{let a=decodeURIComponent((0,i.useRouter)().query.monitorId);return(0,t.jsxs)(s.Z,{title:"Action center - Discovered assets by system",children:[(0,t.jsx)(r.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:o.vi},{title:a}]}),(0,t.jsx)(w,{monitorId:a})]})}},99830:function(a){a.exports={toastLink:"ToastLink_toastLink__OLSeq"}}},function(a){a.O(0,[431,8765,9278,5163,7245,4817,9070,9965,2888,9774,179],function(){return a(a.s=86850)}),_N_E=a.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8443],{74833:function(e,t,n){var i=n(56127),s=/^\s+/;e.exports=function(e){return e?e.slice(0,i(e)+1).replace(s,""):e}},56127:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},66726:function(e,t,n){var i=n(11611),s=n(82846),a=n(91936),r=Math.max,o=Math.min;e.exports=function(e,t,n){var l,c,u,d,g,p,m=0,f=!1,h=!1,x=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=l,i=c;return l=c=void 0,m=t,d=e.apply(i,n)}function v(e){var n=e-p,i=e-m;return void 0===p||n>=t||n<0||h&&i>=u}function j(){var e,n,i,a=s();if(v(a))return b(a);g=setTimeout(j,(e=a-p,n=a-m,i=t-e,h?o(i,u-n):i))}function b(e){return(g=void 0,x&&l)?y(e):(l=c=void 0,d)}function k(){var e,n=s(),i=v(n);if(l=arguments,c=this,p=n,i){if(void 0===g)return m=e=p,g=setTimeout(j,t),f?y(e):d;if(h)return clearTimeout(g),g=setTimeout(j,t),y(p)}return void 0===g&&(g=setTimeout(j,t)),d}return t=a(t)||0,i(n)&&(f=!!n.leading,u=(h="maxWait"in n)?r(a(n.maxWait)||0,t):u,x="trailing"in n?!!n.trailing:x),k.cancel=function(){void 0!==g&&clearTimeout(g),m=0,l=p=c=g=void 0},k.flush=function(){return void 0===g?d:b(s())},k}},11611:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},55193:function(e,t,n){var i=n(99736),s=n(92360);e.exports=function(e){return"symbol"==typeof e||s(e)&&"[object Symbol]"==i(e)}},82846:function(e,t,n){var i=n(77400);e.exports=function(){return i.Date.now()}},91936:function(e,t,n){var i=n(74833),s=n(11611),a=n(55193),r=0/0,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return r;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var n=l.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):o.test(e)?r:+e}},40741:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center",function(){return n(80349)}])},30952:function(e,t,n){"use strict";n.d(t,{f:function(){return l}});var i=n(24246),s=n(66726),a=n.n(s),r=n(27378),o=n(26917);let l=e=>{let{value:t,onChange:n,placeholder:s,...l}=e,[c,u]=(0,r.useState)(t);(0,r.useEffect)(()=>{u(t||"")},[t]);let d=a()(n,500),g=(0,r.useCallback)(e=>{u(e),d(e)},[]);return(0,i.jsx)(o.Z,{value:c,onChange:g,onClear:()=>{u(""),n("")},placeholder:s,...l})}},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var i=n(24246),s=n(20595),a=n(88038),r=n.n(a),o=n(86677);n(27378);var l=n(25980),c=n(90867),u=n(42478),d=n(77830),g=()=>{let e=(0,o.useRouter)();return(0,i.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(s.xuv,{children:[(0,i.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(s.wpx,{onClick:()=>{e.push(d.AD)},children:"Configure"})]}),(0,i.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:n,padded:a=!0,mainProps:d}=e,p=(0,l.hz)(),m=(0,o.useRouter)(),f="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,h=!(p.flags.messagingConfiguration&&f),{data:x}=(0,u.JE)(void 0,{skip:h}),{data:y}=(0,c.PW)(void 0,{skip:h}),v=p.flags.messagingConfiguration&&(!x||!y)&&f;return(0,i.jsxs)(s.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(r(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(s.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[v?(0,i.jsx)(g,{}):null,t]})]})}},58754:function(e,t,n){"use strict";var i=n(24246),s=n(20595),a=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:r=!0,children:o,rightContent:l,style:c,...u}=e;return(0,i.jsxs)("div",{...u,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,i.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(s.lQT,{className:n||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,i.jsx)(a.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return c}});var i=n(24246),s=n(20595),a=n(79894),r=n.n(a),o=n(27378);let{Text:l}=s.AntTypography,c=e=>{let{items:t,...n}=e,a=(0,o.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let a=n===t.length-1,o={...e},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,i.jsx)(l,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,id:a?"breadcrumb-current-page":void 0,children:o.title})),c)?o.title=(0,i.jsx)(s.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,i.jsx)(r(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,i.jsx)(s.zrq,{items:a,...n})}},14908:function(e,t,n){"use strict";var i=n(86677),s=n(27378);let a=e=>e.startsWith("#")?e.slice(1):e;t.Z=e=>{let{tabKeys:t,initialTab:n}=e,r=(0,i.useRouter)(),o=r.asPath.split("#")[1]||t[0],[l,c]=(0,s.useState)(o);return(0,s.useEffect)(()=>{n&&t.includes(n)&&c(n)},[n,t,r.isReady]),{activeTab:l,onTabChange:(0,s.useCallback)(async e=>{if(!t.includes(e)){await r.replace({pathname:r.pathname,query:r.query,hash:void 0}),c(t[0]);return}r.isReady&&(await r.replace({pathname:r.pathname,query:r.query,hash:a(e)},void 0,{shallow:!0}),c(e))},[r,t]),setActiveTab:c}}},42478:function(e,t,n){"use strict";n.d(t,{FU:function(){return c},JE:function(){return s},Ki:function(){return d},SU:function(){return g},W:function(){return p},h9:function(){return a},jc:function(){return i},qt:function(){return l},sn:function(){return u}});let{useGetEmailInviteStatusQuery:i,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:a,useCreateMessagingConfigurationSecretsMutation:r,useGetMessagingConfigurationDetailsQuery:o,useGetMessagingConfigurationsQuery:l,useGetMessagingConfigurationByKeyQuery:c,useUpdateMessagingConfigurationByKeyMutation:u,useUpdateMessagingConfigurationSecretsByKeyMutation:d,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:p}=n(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,t,n,i)=>{let s=await i({url:"messaging/default/active"});return s.error&&404===s.error.status?{data:null}:s},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},80349:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Z}});var i,s,a=n(24246),r=n(20595),o=n(79894),l=n.n(o),c=n(27378),u=n(30952),d=n(25980),g=n(77213),p=n(77830),m=n(58754),f=n(47935),h=n(7426),x=n(37059),y=n(16394),v=n(17245),j=n(67359);let b=()=>{let{pageIndex:e,pageSize:t,updatePageIndex:n,resetPagination:i,showSizeChanger:s}=(0,v.h0)({defaultPageSize:20,showSizeChanger:!1}),{searchQuery:o,updateSearch:l}=(0,v.Rx)(),[u,d]=(0,c.useState)([j.n.PENDING,j.n.IN_PROCESSING,j.n.PAUSED,j.n.RETRYING,j.n.ERROR]),[g,p]=(0,c.useState)(!1),m=(0,c.useCallback)(e=>{l(e),n(1)},[l,n]),f=(0,c.useCallback)(e=>{d(e),n(1)},[n]),h=(0,c.useCallback)(e=>{p(e),n(1)},[n]),y=(0,c.useCallback)(()=>{d([j.n.PENDING,j.n.IN_PROCESSING,j.n.PAUSED,j.n.RETRYING,j.n.ERROR]),p(!1),i()},[i]),b=(0,c.useCallback)(()=>{d([]),p(!0),i()},[i]),k=[j.n.PENDING,j.n.IN_PROCESSING,j.n.COMPLETE,j.n.ERROR,j.n.PAUSED,j.n.RETRYING,j.n.SKIPPED],{data:C,isLoading:_,isFetching:w}=(0,x.$h)({page:e,size:t,search:o,statuses:u.length>0?u:void 0,return_dismissed:g});return{searchQuery:o,updateSearch:m,statusFilters:u,updateStatusFilters:f,showDismissed:g,updateShowDismissed:h,resetToDefault:y,clearAllFilters:b,availableStatuses:k,listProps:(0,c.useMemo)(()=>({dataSource:(null==C?void 0:C.items)||[],loading:_||w,locale:{emptyText:(0,a.jsx)(r.oj8,{image:r.oj8.PRESENTED_IMAGE_SIMPLE,description:"No tasks in progress"})},pagination:{current:e,pageSize:t,total:null==C?void 0:C.total,showSizeChanger:s,showQuickJumper:!1,onChange:e=>n(e)}}),[null==C?void 0:C.items,null==C?void 0:C.total,_,w,e,t,s,n]),isLoading:_,isFetching:w}};var k=n(10969),C=n(60145),_=n(11558),w=n(70641),E=n(7317),S=n(85302),N=n(64892);function T(e,t,n){let i;let s=(0,C.j)(),a=n?.locale??s.locale??k._,r=(0,S.U)(e,t);if(isNaN(r))throw RangeError("Invalid time value");let o=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:r}),[l,c]=(0,E.d)(n?.in,...r>0?[t,e]:[e,t]),u=(0,_.u)(n?.roundingMethod??"round"),d=c.getTime()-l.getTime(),g=d/N.yJ,p=(d-((0,w.D)(c)-(0,w.D)(l)))/N.yJ,m=n?.unit;if("second"===(i=m||(g<1?"second":g<60?"minute":g<N.H_?"hour":p<N.fH?"day":p<N.UU?"month":"year"))){let e=u(d/1e3);return a.formatDistance("xSeconds",e,o)}if("minute"===i){let e=u(g);return a.formatDistance("xMinutes",e,o)}if("hour"===i){let e=u(g/60);return a.formatDistance("xHours",e,o)}if("day"===i){let e=u(p/N.H_);return a.formatDistance("xDays",e,o)}if("month"===i){let e=u(p/N.fH);return 12===e&&"month"!==m?a.formatDistance("xYears",1,o):a.formatDistance("xMonths",e,o)}{let e=u(p/N.UU);return a.formatDistance("xYears",e,o)}}var P=n(41337);let{Text:I,Title:R}=r.AntTypography,M=e=>"paused"===e?"Awaiting Processing":e.split("_").map(y.kC).join(" "),D=e=>{var t,n,i,s,o,l,c,u,d,g;let{task:p,...m}=e,f=(0,r.pmc)(),[h,{isLoading:y}]=(0,x.mL)(),[v,{isLoading:j}]=(0,x.QC)(),b=!!p.dismissed_in_activity_view,k="error"===p.status&&"detection"!==p.action_type,{data:C}=(0,x.Ud)({page:1,size:1e3}),_=p.monitor_config_id?null==C?void 0:null===(t=C.items)||void 0===t?void 0:t.find(e=>e.key===p.monitor_config_id):void 0,w=_?(0,P.AZ)({connection_type:_.connection_type,name:null!==(s=_.name)&&void 0!==s?s:null,key:null!==(o=_.key)&&void 0!==o?o:null,saas_config:_.saas_config?{type:null!==(l=_.saas_config.type)&&void 0!==l?l:null,name:null!==(c=_.saas_config.name)&&void 0!==c?c:null,fides_key:null!==(u=_.saas_config.fides_key)&&void 0!==u?u:null}:null,secrets:(null===(i=_.secrets)||void 0===i?void 0:i.url)?{url:_.secrets.url}:null}):p.connection_type?(0,P.AZ)({connection_type:p.connection_type,name:null!==(d=p.connection_name)&&void 0!==d?d:p.connection_type?p.connection_type.toString():null,key:null,saas_config:null,secrets:null}):void 0,E=(null===(n=p.staged_resource_urns)||void 0===n?void 0:n.length)||0,S=["pending","in_processing","paused","retrying"].includes((p.status||"").toLowerCase()),N=(()=>{if("classification"===p.action_type){let e="complete"===p.status?"Classified":"Classifying";return"".concat(e," ").concat(E," ").concat(1===E?"field":"fields")}return"detection"===p.action_type?"complete"===p.status?"Monitor scanned":"Monitor scanning":"promotion"===p.action_type?"complete"===p.status?"Promoted":"Promoting":p.action_type?p.action_type.replace(/_/g," "):"Task"})(),D=(p.connection_type||"").toString().toUpperCase().includes("WEBSITE")?"Product monitor":"Analytics monitor",q=async()=>{try{await h({taskId:p.id}).unwrap(),f({status:"success",description:"Task retry initiated successfully"})}catch(n){var e;let t=(null==n?void 0:null===(e=n.data)||void 0===e?void 0:e.detail)||(null==n?void 0:n.message)||"Unknown error occurred";f({status:"error",description:"Failed to retry task: ".concat(t)})}},A=async()=>{try{await v({taskId:p.id}).unwrap(),f({status:"success",description:"Task dismissed successfully"})}catch(n){var e;let t=(null==n?void 0:null===(e=n.data)||void 0===e?void 0:e.detail)||(null==n?void 0:n.message)||"Unknown error occurred";f({status:"error",description:"Failed to dismiss task: ".concat(t)})}};return(0,a.jsx)("div",{...m,className:"w-full",children:(0,a.jsxs)(r.bue,{gutter:12,className:"w-full",children:[(0,a.jsx)(r.JGx,{span:17,className:"align-middle",children:(0,a.jsxs)(r.vyj,{align:"center",size:8,wrap:!0,children:[w&&(0,a.jsx)(P.ZP,{data:w,boxSize:"24px"}),(0,a.jsx)(R,{level:5,className:"m-0",children:N}),!S&&(0,a.jsx)(r.j8w,{color:(e=>{switch(e){case"pending":case"retrying":return"orange";case"in_processing":return"processing";case"complete":return"green";case"error":return"red";case"paused":return"purple";default:return"gray"}})(p.status),children:(g=p.status)?M(g):"Unknown"}),"error"===p.status&&(0,a.jsxs)(a.Fragment,{children:[k&&(0,a.jsx)(r.wpx,{size:"small",type:"primary",loading:y,onClick:q,children:"Retry"}),!b&&(0,a.jsx)(r.wpx,{size:"small",loading:j,onClick:A,children:"Dismiss"}),(0,a.jsx)(r.bPF,{content:(0,a.jsx)("div",{className:"max-w-[360px]",children:p.message}),title:null,trigger:"click",children:(0,a.jsx)(r.wpx,{type:"link",size:"small",children:"Failure reason"})})]})]})}),(0,a.jsx)(r.JGx,{span:4,className:"flex items-center justify-end",children:(0,a.jsx)(I,{type:"secondary",size:"sm",children:D})}),(0,a.jsx)(r.JGx,{span:3,className:"flex items-center justify-end",children:S?(0,a.jsx)(r.$jN,{size:"sm",color:"primary",thickness:"2px",speed:"0.6s"}):(0,a.jsx)(I,{type:"secondary",size:"sm",children:T(new Date(p.updated_at),new Date,{addSuffix:!0})})})]})})},q=e=>"paused"===e?"Awaiting Processing":e.split("_").map(y.kC).join(" "),A=()=>{let{searchQuery:e,updateSearch:t,statusFilters:n,updateStatusFilters:i,showDismissed:s,updateShowDismissed:o,resetToDefault:l,clearAllFilters:d,availableStatuses:g,listProps:p}=b(),m=(0,c.useCallback)(e=>{i(e)},[i]),f=(0,a.jsxs)("div",{className:"min-w-[220px] space-y-3 p-2",children:[(0,a.jsx)(r.E_O.Group,{value:n,onChange:m,className:"flex flex-col gap-2",children:g.map(e=>(0,a.jsx)(r.E_O,{value:e,children:q(e)},e))}),(0,a.jsx)(r.E_O,{checked:s,onChange:e=>o(e.target.checked),className:"mb-2",children:"Show dismissed tasks"}),(0,a.jsxs)(r.vyj,{children:[(0,a.jsx)(r.wpx,{size:"small",onClick:l,children:"Default"}),(0,a.jsx)(r.wpx,{size:"small",onClick:d,children:"Clear"})]})]});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(r.jqI,{justify:"space-between",align:"center",className:"mb-4",children:[(0,a.jsx)("div",{className:"min-w-[300px]",children:(0,a.jsx)(u.f,{value:null!=e?e:"",onChange:t,placeholder:"Search by monitor name..."})}),(0,a.jsx)(r.bPF,{content:f,trigger:"click",placement:"bottomRight",children:(0,a.jsx)(r.wpx,{className:"flex items-center gap-2",children:"Filter"})})]}),(0,a.jsx)(r.krs,{...p,renderItem:e=>(0,a.jsx)(r.krs.Item,{children:(0,a.jsx)(D,{task:e})})})]})},z=e=>{let{isConfigLoading:t}=e;return(0,a.jsx)(g.Z,{title:"Action center",mainProps:{className:"h-full"},children:(0,a.jsx)(r.jqI,{justify:"center",align:"center",className:"h-full",children:t?(0,a.jsx)(r.$jN,{color:"primary.900"}):(0,a.jsx)(r.DUx,{message:"Coming soon...",description:"Action center is currently disabled.",type:"info",showIcon:!0})})})},O=()=>(0,a.jsx)(r.oj8,{image:r.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up! Set up an integration monitor to track your infrastructure in greater detail.",children:(0,a.jsx)(l(),{href:p.KH,passHref:!0,legacyBehavior:!0,children:(0,a.jsx)(r.wpx,{type:"primary",children:"Visit integrations"})})});var U=n(14908);(i=s||(s={})).ATTENTION_REQUIRED="attention-required",i.IN_PROGRESS="in-progress";var G=()=>{let{flags:e}=(0,d.hz)(),t=!!e.alphaFullActionCenter,n=(0,c.useMemo)(()=>t?Object.values(s):["attention-required"],[t]),{activeTab:i,onTabChange:a}=(0,U.Z)({tabKeys:n});return{tabs:(0,c.useMemo)(()=>{let e=[{label:"Attention required",hash:"attention-required"}];return t&&e.push({label:"Activity",hash:"in-progress"}),e},[t]),activeTab:i,onTabChange:a}},F=n(85054),B=n(54762);let{Text:L}=r.AntTypography,W=e=>{let{monitorSummary:t,showSkeleton:n,href:i,...s}=e,{name:o,consent_status:u,total_updates:d,updates:g,last_monitored:p,secrets:m,key:f,connection_type:h}=t,x=(0,c.useMemo)(()=>(null==m?void 0:m.url)?(0,y.ge)(m.url):void 0,[null==m?void 0:m.url]),v=(0,c.useMemo)(()=>x?(0,y.tl)(x,60):void 0,[x]),j=Object.entries(g).map(e=>"".concat(e[1]," ").concat(e[0],"s")).join(", "),b=p?(0,y.p6)(new Date(p)):void 0,k=p?T(new Date(p),new Date,{addSuffix:!0}):void 0;return(0,a.jsx)(r.krs.Item,{"data-testid":"monitor-result-".concat(f),...s,children:(0,a.jsx)(r.N_L,{avatar:!0,title:!1,loading:n,active:!0,children:(0,a.jsxs)(r.bue,{gutter:12,className:"w-full",children:[(0,a.jsx)(r.JGx,{span:17,className:"align-middle",children:(0,a.jsx)(r.krs.Item.Meta,{avatar:(0,a.jsx)(r.t3Z,{src:v,size:30,icon:(0,a.jsx)(r.PJP.huD,{size:30}),style:{backgroundColor:"transparent",color:"var(--ant-color-text)"},alt:"".concat(x," icon")}),title:(0,a.jsxs)(r.jqI,{align:"center",gap:4,children:[(0,a.jsx)(l(),{href:i,className:"whitespace-nowrap",children:"".concat(d," assets detected").concat(x?" on ".concat(x):"")}),(0,a.jsx)(B.l,{consentStatus:u}),h===F.Rj.TEST_WEBSITE&&(0,a.jsx)(r.j8w,{color:"nectar",style:{fontWeight:"normal"},children:"test monitor"})]}),description:"".concat(j," detected.")})}),(0,a.jsx)(r.JGx,{span:4,className:"flex items-center justify-end",children:(0,a.jsx)(L,{ellipsis:{tooltip:o},children:o})}),(0,a.jsx)(r.JGx,{span:3,className:"flex items-center justify-end",children:!!k&&(0,a.jsx)(L,{"data-testid":"monitor-date",ellipsis:{tooltip:b},children:k})})]})})})},J=(e,t,n)=>e&&t!==F.Rj.TEST_WEBSITE&&e&&t!==F.Rj.WEBSITE?"".concat(p.vi,"/").concat(n,"/data-explorer"):"".concat(p.vi,"/").concat(n);var Z=()=>{var e,t;let n=(0,r.pmc)(),{tabs:i,activeTab:o,onTabChange:p}=G(),{flags:y}=(0,d.hz)(),{PAGE_SIZES:v,pageSize:j,setPageSize:b,onPreviousPageClick:k,isPreviousPageDisabled:C,onNextPageClick:_,isNextPageDisabled:w,startRange:E,endRange:S,pageIndex:N,setTotalPages:T,resetPageIndexToDefault:P}=(0,f.oi)(),[I,R]=(0,c.useState)(""),{data:M,isLoading:D}=(0,h.tB)({api_set:!1}),q=!!(null==M?void 0:null===(e=M.detection_discovery)||void 0===e?void 0:e.website_monitor_enabled);(0,c.useEffect)(()=>{P()},[I,P]);let{data:U,isError:F,isLoading:B,isFetching:L}=(0,x.Ud)({page:N,size:j,search:I},{skip:D||!q});(0,c.useEffect)(()=>{F&&n&&q&&n({title:"Error fetching data",description:"Please try again later",status:"error"})},[F,n,q]),(0,c.useEffect)(()=>{if(U){var e;T(null!==(e=U.total)&&void 0!==e?e:1)}},[U,T]);let Z=(null==U?void 0:null===(t=U.items)||void 0===t?void 0:t.flatMap(e=>e.key&&void 0!==e.key?[e]:[]))||[],K=L?Array.from({length:j},(e,t)=>({key:t.toString(),updates:[],last_monitored:null})):[],H=(0,c.useCallback)((e,t)=>[(0,a.jsx)(l(),{href:null!=t?t:"",passHref:!0,legacyBehavior:!0,children:(0,a.jsx)(r.wpx,{type:"link",className:"p-0","data-testid":"review-button-".concat(e),children:"Review"})},"review")],[]);return q?(0,a.jsxs)(g.Z,{title:"Action center",children:[(0,a.jsx)(m.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity"}]}),(0,a.jsx)(r.Niu,{"aria-label":"Action center tabs",mode:"horizontal",items:i.map(e=>({key:e.hash,label:e.label})),selectedKeys:[o],onClick:async e=>{let t=Object.values(s).find(t=>t===e.key);t&&await p(t)},className:"mb-4","data-testid":"action-center-tabs"}),o===s.IN_PROGRESS?(0,a.jsx)(A,{}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.jqI,{className:"justify-between py-6",children:(0,a.jsx)(u.f,{value:I,onChange:R})}),(0,a.jsx)(r.krs,{loading:B,dataSource:Z||K,locale:{emptyText:(0,a.jsx)(O,{})},renderItem:e=>{let t=e.key?J(y.alphaFullActionCenter,e.connection_type,e.key):"";return!!(null==e?void 0:e.key)&&(0,a.jsx)(W,{showSkeleton:L,monitorSummary:e,href:t,actions:H(e.key,t)},e.key)}}),!!Z&&!!(null==U?void 0:U.total)&&U.total>j&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.htM,{className:"mb-6 mt-0"}),(0,a.jsx)(f.s8,{totalRows:(null==U?void 0:U.total)||0,pageSizes:v,setPageSize:b,onPreviousPageClick:k,isPreviousPageDisabled:C||L,onNextPageClick:_,isNextPageDisabled:w||L,startRange:E,endRange:S})]})]})]}):(0,a.jsx)(z,{isConfigLoading:D})}}},function(e){e.O(0,[431,7245,9070,2888,9774,179],function(){return e(e.s=40741)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-f87e4a0f664f4cde.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7477],{45550:function(e,s,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/activity",function(){return a(3680)}])},91761:function(e,s,a){"use strict";var t=a(24246),i=a(20595),r=a(812),n=a(17245),o=a(7940),l=a(98559),c=a(85054),d=a(79494),u=a(70675);s.Z=e=>{let{resource:s}=e,[a,{isLoading:g}]=(0,u.v8)(),[I,{isLoading:x}]=(0,u.cM)(),[L,{isLoading:A}]=(0,u.vi)(),C=x||A||g,{diff_status:j,child_diff_statuses:f,top_level_field_name:h}=s,{successAlert:_,errorAlert:S}=(0,n.VY)(),T=j===c.LL.CLASSIFICATION_ADDITION||j===c.LL.CLASSIFICATION_UPDATE,m=f&&(f[c.LL.CLASSIFICATION_ADDITION]||f[c.LL.CLASSIFICATION_UPDATE]),D=(T||m)&&!h,N=T||m,v=(0,o.G)(s)!==c.D$.FIELD,p=D&&N&&v,y=async()=>{let e=await I({staged_resource_urn:s.urn});(0,r.D4)(e)?S((0,r.e$)(e.error),"Failed to promote resource"):_('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},w=async()=>{let e=await L({staged_resource_urn:s.urn});(0,r.D4)(e)?S((0,r.e$)(e.error),"Failed to mute resource"):_("Ignored changes will not be added to a Fides dataset.","".concat(s.name||"Changes"," ignored"))},F=async()=>{let e=await a({staged_resource_urn:s.urn,monitor_config_id:s.monitor_config_id,start_classification:!0,diff_statuses_to_classify:[c.LL.CLASSIFICATION_ADDITION,c.LL.CLASSIFICATION_UPDATE,c.LL.CLASSIFYING,c.LL.CLASSIFICATION_QUEUED]});(0,r.D4)(e)?S((0,r.e$)(e.error),"Failed to reclassify resource"):_("Reclassification of ".concat((0,l.Z)(s)||"the resource"," has begun. The results may take some time to appear in the “Data discovery“ tab."),"Reclassification started")};return(0,t.jsxs)(i.Ugi,{gap:2,children:[D&&(0,t.jsx)(d.Z,{title:"Confirm",icon:(0,t.jsx)(i.nQG,{}),onClick:y,disabled:C,loading:x}),N&&(0,t.jsx)(d.Z,{title:"Ignore",icon:(0,t.jsx)(i.tpL,{}),onClick:w,disabled:C,loading:A}),v&&!p&&(0,t.jsx)(d.Z,{title:"Reclassify",icon:(0,t.jsx)(i.nyI,{}),onClick:F,disabled:C,loading:g}),p&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.LZC,{}),(0,t.jsxs)(i.v2r,{children:[(0,t.jsx)(i.j2t,{as:i.wpx,size:"small",type:"text",icon:(0,t.jsx)(i.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-overflow-btn"}),(0,t.jsx)(i.qyq,{children:(0,t.jsx)(i.sNh,{onClick:F,icon:(0,t.jsx)(i.nyI,{}),"data-testid":"action-reclassify",children:"Reclassify"})})]})]})]})}},3680:function(e,s,a){"use strict";a.r(s),a.d(s,{default:function(){return O}});var t,i,r=a(24246),n=a(27378),o=a(35287),l=a(58754),c=a(47182),d=a(92222),u=a(59003),g=a(20595),I=a(47935),x=a(72625),L=a(70675),A=a(38347),C=a(87667),j=a(50169),f=a(80285),h=a(30952);(t=i||(i={})).DATASET="Dataset",t.CLASSIFICATION="Classification";var _=a(74241),S=a(28278),T=a(20449),m=e=>(0,T.Z)(e)===S.E.CLASSIFICATION?i.CLASSIFICATION:i.DATASET,D=a(54409),N=a(91761);let v={items:[],total:0,page:1,size:50,pages:1},p=()=>(0,r.jsx)(g.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,r.jsxs)(g.gCW,{children:[(0,r.jsx)(g.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,r.jsx)(g.xvT,{fontSize:"sm",children:"You're up to date!"})]})}),y=(0,d.Cl)();var w=e=>{let{onRowClick:s,statusFilters:a,childsStatusFilters:t}=e,[o,l]=(0,n.useState)(""),{PAGE_SIZES:c,pageSize:S,setPageSize:T,onPreviousPageClick:w,isPreviousPageDisabled:F,onNextPageClick:O,isNextPageDisabled:R,startRange:E,endRange:b,pageIndex:P,setTotalPages:Z}=(0,I.oi)(),{isFetching:k,isLoading:V,data:M}=(0,L.z8)({diff_status:a,child_diff_status:t,page:P,size:S,search:o}),{items:U,total:z,pages:G}=(0,n.useMemo)(()=>null!=M?M:v,[M]);(0,n.useEffect)(()=>{Z(G)},[G,Z]);let W=(0,n.useMemo)(()=>[y.accessor(e=>e.name,{id:"name",cell:e=>(0,r.jsx)(C.Z,{result:e.row.original}),header:e=>(0,r.jsx)(I.Rr,{value:"Name",...e})}),y.accessor(e=>e.urn,{id:"project",cell:e=>(0,r.jsx)(I.G3,{value:(0,_.Z)(e.getValue())}),header:e=>(0,r.jsx)(I.Rr,{value:"Project",...e})}),y.display({id:"status",cell:e=>(0,r.jsx)(j.Z,{result:e.row.original}),header:e=>(0,r.jsx)(I.Rr,{value:"Status",...e})}),y.accessor(e=>e.system,{id:"system",cell:e=>(0,r.jsx)(I.G3,{value:e.getValue()}),header:e=>(0,r.jsx)(I.Rr,{value:"System",...e})}),y.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,r.jsx)(I.G3,{value:e.getValue()}),header:e=>(0,r.jsx)(I.Rr,{value:"Detected by",...e})}),y.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,r.jsx)(x.Cy,{time:e.getValue()}),header:e=>(0,r.jsx)(I.Rr,{value:"When",...e})}),y.accessor(e=>e,{id:"action",cell:e=>m(e.getValue())===i.DATASET?(0,r.jsx)(D.Z,{resource:e.getValue()}):(0,r.jsx)(N.Z,{resource:e.getValue()}),header:e=>(0,r.jsx)(I.Rr,{value:"Action",...e})})],[]),$=(0,u.b7)({getCoreRowModel:(0,d.sC)(),getGroupedRowModel:(0,d.qe)(),getExpandedRowModel:(0,d.rV)(),getRowId:f.Z,columns:W,manualPagination:!0,data:U,columnResizeMode:"onChange"});return V?(0,r.jsx)(I.I4,{rowHeight:36,numRows:36}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(I.Q$,{children:(0,r.jsxs)(g.kCb,{gap:6,align:"center",children:[(0,r.jsx)(g.xuv,{flexShrink:0,children:(0,r.jsx)(h.f,{value:o,onChange:l})}),(0,r.jsx)(A.a,{})]})}),(0,r.jsx)(I.ZK,{tableInstance:$,onRowClick:s,emptyTableNotice:(0,r.jsx)(p,{})}),(0,r.jsx)(I.s8,{totalRows:z||0,pageSizes:c,setPageSize:T,onPreviousPageClick:w,isPreviousPageDisabled:F||k,onNextPageClick:O,isNextPageDisabled:R||k,startRange:E,endRange:b})]})},F=a(85054),O=()=>{let{navigateToDetectionResults:e,navigateToDiscoveryResults:s}=(0,c.Z)();return(0,r.jsxs)(o.Z,{title:"Data discovery",children:[(0,r.jsx)(l.Z,{heading:"All activity"}),(0,r.jsx)(w,{onRowClick:a=>{if(m(a)===i.DATASET){e({resourceUrn:a.urn});return}s({resourceUrn:a.urn})},statusFilters:[F.LL.ADDITION,F.LL.REMOVAL,F.LL.CLASSIFICATION_ADDITION,F.LL.CLASSIFICATION_UPDATE],childsStatusFilters:[F.LL.ADDITION,F.LL.REMOVAL,F.LL.CLASSIFICATION_ADDITION,F.LL.CLASSIFICATION_UPDATE]})]})}}},function(e){e.O(0,[431,7245,4817,6315,2888,9774,179],function(){return e(e.s=45550)}),_N_E=e.O()}]);
|
|
@@ -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,[431,
|
|
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,[431,7245,4817,6315,2397,2888,9774,179],function(){return e(e.s=24354)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3453],{35041:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/detection",function(){return e(82660)}])},82660:function(n,t,e){"use strict";e.r(t);var i=e(24246);e(27378);var c=e(35287),a=e(77830),s=e(58754),u=e(69828),r=e(1039);t.default=()=>(0,i.jsxs)(c.Z,{title:"Data detection",children:[(0,i.jsx)(s.Z,{heading:"Data detection",children:(0,i.jsx)(u.Z,{parentLink:a.XY})}),(0,i.jsx)(r.Z,{})]})}},function(n){n.O(0,[431,
|
|
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,[431,7245,4817,6315,2397,2888,9774,179],function(){return n(n.s=35041)}),_N_E=n.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1571],{11207:function(r,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/discovery/[resourceUrn]",function(){return n(55124)}])},55124:function(r,e,n){"use strict";n.r(e);var s=n(24246);n(27378);var c=n(35287),t=n(77830),i=n(58754),u=n(69828),o=n(47182),a=n(11904);e.default=()=>{let{resourceUrn:r,navigateToDiscoveryResults:e}=(0,o.Z)();return(0,s.jsxs)(c.Z,{title:"Data discovery",children:[(0,s.jsx)(i.Z,{heading:"Data discovery",children:(0,s.jsx)(u.Z,{parentLink:t.zE,resourceUrn:r,onPathClick:r=>e({resourceUrn:r})})}),(0,s.jsx)(a.Z,{resourceUrn:r})]})}}},function(r){r.O(0,[8765,
|
|
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,[431,8765,9278,5163,7245,4817,1099,9046,2888,9774,179],function(){return r(r.s=11207)}),_N_E=r.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2320],{48570:function(n,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/discovery",function(){return i(49730)}])},49730:function(n,e,i){"use strict";i.r(e);var s=i(24246);i(27378);var t=i(35287),r=i(77830),c=i(58754),a=i(69828),u=i(11904);e.default=()=>(0,s.jsxs)(t.Z,{title:"Data discovery",children:[(0,s.jsx)(c.Z,{heading:"Data discovery",children:(0,s.jsx)(a.Z,{parentLink:r.zE})}),(0,s.jsx)(u.Z,{})]})}},function(n){n.O(0,[8765,
|
|
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,[431,8765,9278,5163,7245,4817,1099,9046,2888,9774,179],function(){return n(n.s=48570)}),_N_E=n.O()}]);
|
|
@@ -0,0 +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 i=n(24246),s=n(20595),r=n(88038),l=n.n(r),a=n(86677);n(27378);var o=n(25980),d=n(90867),u=n(42478),c=n(77830),g=()=>{let e=(0,a.useRouter)();return(0,i.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(s.xuv,{children:[(0,i.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(s.wpx,{onClick:()=>{e.push(c.AD)},children:"Configure"})]}),(0,i.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},x=e=>{let{children:t,title:n,padded:r=!0,mainProps:c}=e,x=(0,o.hz)(),h=(0,a.useRouter)(),f="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,m=!(x.flags.messagingConfiguration&&f),{data:p}=(0,u.JE)(void 0,{skip:m}),{data:y}=(0,d.PW)(void 0,{skip:m}),j=x.flags.messagingConfiguration&&(!p||!y)&&f;return(0,i.jsxs)(s.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(l(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(s.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,i.jsx)(g,{}):null,t]})]})}},99811:function(e,t,n){"use strict";n.d(t,{m:function(){return s}});var i=n(27378);class s{updateTableInstance(e){this.tableInstance=e}constructor(e=null){this.tableInstance=e,this.updateTableInstance=this.updateTableInstance.bind(this)}}let r=i.createContext(new s);t.Z=r},42478:function(e,t,n){"use strict";n.d(t,{FU:function(){return d},JE:function(){return s},Ki:function(){return c},SU:function(){return g},W:function(){return x},h9:function(){return r},jc:function(){return i},qt:function(){return o},sn:function(){return u}});let{useGetEmailInviteStatusQuery:i,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:r,useCreateMessagingConfigurationSecretsMutation:l,useGetMessagingConfigurationDetailsQuery:a,useGetMessagingConfigurationsQuery:o,useGetMessagingConfigurationByKeyQuery:d,useUpdateMessagingConfigurationByKeyMutation:u,useUpdateMessagingConfigurationSecretsByKeyMutation:c,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:x}=n(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,t,n,i)=>{let s=await i({url:"messaging/default/active"});return s.error&&404===s.error.status?{data:null}:s},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},18839:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return U}});var i=n(24246),s=n(27378),r=n(45938),l=n(77213),a=n(58754),o=n(20595),d=n(65218),u=n.n(d),c=n(16134),g=n(35258),x=n(92222),h=n(59003),f=n(30002),m=n(28079),p=n(49600),y=n(99811);let j=e=>{var t;let{column:n}=e,{tableInstance:i}=(0,s.useContext)(y.Z),r=s.useMemo(()=>Array.from(n.getFacetedUniqueValues().keys()),[n]),l=s.useMemo(()=>{let e={};return r.forEach(t=>{e[t]=!1}),e},[r]);return{filterValue:null!==(t=n.getFilterValue())&&void 0!==t?t:l,clearFilterOptions:()=>{let e={};r.forEach(t=>{e[t]=!1}),n.setFilterValue(e)},toggleFilterOption:(e,t)=>{var s;let r={...null!==(s=n.getFilterValue())&&void 0!==s?s:l,[e]:t};Object.values(r).every(e=>!e)?null==i||i.setColumnFilters(null==i?void 0:i.getState().columnFilters.filter(e=>e.id!==n.id)):n.setFilterValue(r)},options:r,header:n.columnDef.header}};var v=n(57072);let C=(0,x.Cl)(),b={multifield:(e,t,n)=>n[e.original[t]]},w=()=>{let e=(0,c.T)(),{updateTableInstance:t}=(0,s.useContext)(y.Z),n=(0,c.C)(p.eo),{data:i,isLoading:r}=(0,p.Ex)({organizationName:"default_organization"});(0,v.MO)(),(0,m.fd)(),(0,f.te)();let l=(0,s.useRef)(!1);(0,s.useEffect)(()=>{if(i){let{columns:t,rows:n}=i;e((0,p.dd)(t)),l.current||(l.current=!0,0===n.length?e((0,p.ym)(!0)):e((0,p.ym)(!1)))}},[i,e]);let a=(0,s.useMemo)(()=>i?i.rows:[],[i]),o=(0,s.useMemo)(()=>(n||[]).map(e=>{let{text:t,value:n}=e;return C.accessor(e=>e[n],{id:n,header:t,cell:e=>{let{getValue:t}=e,n=t();return Array.isArray(n)?n.join(", "):n},filterFn:b.multifield})}),[n]),d=(0,h.b7)({columns:o,data:a,filterFns:b,getCoreRowModel:(0,x.sC)(),getFilteredRowModel:(0,x.vL)(),getFacetedRowModel:(0,x.o6)(),getFacetedUniqueValues:(0,x.JG)(),manualPagination:!0,columnResizeMode:"onChange"});return(0,s.useEffect)(()=>t(d),[d,t]),{...d,isLoading:r}};var k=n(83766),M=n.n(k),S=n(25980),T=n(46238),F=n(47935),q=n(22968);let E=e=>{var t,n,s;let{option:r,columnId:l,filterValue:a,toggleFilterOption:d}=e,u=(0,c.C)(v.L5),g=l===q.Ux&&null!==(n=null===(t=u.get(r))||void 0===t?void 0:t.name)&&void 0!==n?n:r;return(0,i.jsx)(o.XZJ,{value:r,width:"193px",height:"20px",mb:"25px",isChecked:null!==(s=a[r])&&void 0!==s&&s,onChange:e=>{let{target:t}=e;d(r,t.checked)},_focusWithin:{bg:"gray.100"},colorScheme:"complimentary",children:(0,i.jsx)(o.xvT,{fontSize:"sm",lineHeight:5,height:"20px",width:"170px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",children:g})},r)};var I=e=>{let{column:t}=e,{filterValue:n,toggleFilterOption:r,options:l}=j({column:t}),[a,d]=(0,s.useState)(!1),u=a?l:l.slice(0,15),c=l.length>15;return(0,i.jsx)(o.UQy,{width:"100%",allowToggle:!0,children:(0,i.jsxs)(o.Qdk,{border:"0px",children:[(0,i.jsx)(o.X6q,{height:"56px",children:(0,i.jsxs)(o.KFZ,{height:"100%",children:[(0,i.jsx)(o.xuv,{flex:"1",alignItems:"center",justifyContent:"center",textAlign:"left",children:t.columnDef.header}),(0,i.jsx)(o.XEm,{})]})}),(0,i.jsxs)(o.Hk3,{children:[(0,i.jsx)(o.MIq,{columns:3,children:u.map(e=>(0,i.jsx)(E,{columnId:t.id,option:e,filterValue:n,toggleFilterOption:r},e))}),!a&&c?(0,i.jsx)(o.wpx,{type:"text",onClick:()=>{d(!0)},children:"View more"}):null,a&&c?(0,i.jsx)(o.wpx,{type:"text",onClick:()=>{d(!1)},children:"View less"}):null]})]})},t.id)};let O=e=>{let{heading:t,children:n}=e;return(0,i.jsxs)(o.xuv,{padding:"24px 8px 8px 24px",children:[(0,i.jsx)(o.X6q,{size:"md",lineHeight:6,fontWeight:"bold",mb:2,children:t}),n]})};var P=e=>{let t,{isOpen:n,onClose:r}=e,{tableInstance:l}=(0,s.useContext)(y.Z),a=null==l?void 0:l.getHeaderGroups(),d=(e,t)=>e.filter(e=>e.id===t).map(e=>(0,i.jsx)(I,{column:e.column},t)),u=(0,s.useMemo)(()=>(null==a?void 0:a[0].headers)||[],[a]);return(0,i.jsxs)(o.u_l,{isOpen:n,onClose:r,isCentered:!0,size:"2xl",children:[(0,i.jsx)(o.ZAr,{}),(0,i.jsxs)(o.hzk,{children:[(0,i.jsx)(o.xBx,{children:"Filters"}),(0,i.jsx)(o.olH,{}),(0,i.jsx)(o.izJ,{}),(0,i.jsx)(o.fef,{maxH:"85vh",padding:"0px",overflowX:"auto",children:(t=[q.vy,q.Ux,q.OL],u.some(e=>t.indexOf(e.id)>-1))?(0,i.jsxs)(O,{heading:"Privacy attributes",children:[d(u,q.vy),d(u,q.Ux),d(u,q.OL)]}):null}),(0,i.jsx)(o.mzw,{children:(0,i.jsxs)(o.xuv,{display:"flex",justifyContent:"space-between",width:"100%",children:[(0,i.jsx)(o.wpx,{onClick:()=>{null==l||l.resetColumnFilters()},className:"mr-3 grow",children:"Reset Filters"}),(0,i.jsx)(o.wpx,{onClick:r,type:"primary",className:"grow",children:"Done"})]})})]})]})};let _=()=>{let{isOpen:e,onOpen:t,onClose:n}=(0,o.qY0)();return{isFilterModalOpen:e,onFilterModalOpen:t,onFilterModalClose:n}};var R=()=>{let{isFilterModalOpen:e,onFilterModalOpen:t,onFilterModalClose:n}=_(),{tableInstance:r}=(0,s.useContext)(y.Z),{systemsCount:l,dictionaryService:a}=(0,S.hz)(),d=null==r?void 0:r.getRowModel(),u=(0,s.useMemo)(()=>{let e=(null==d?void 0:d.rows)||[];return M()(null==e?void 0:e.map(e=>e.original["system.fides_key"]))},[d]);if(!r)return null;let c=u.length,g=r.getState().columnFilters.length;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(o.kCb,{justifyContent:"flex-end",flexDirection:"row",alignItems:"center",flexWrap:"wrap",rowGap:4,columnGap:4,children:[(0,i.jsx)(o.kCb,{flexGrow:1,children:(0,i.jsx)(F.HO,{globalFilter:r.getState().globalFilter,setGlobalFilter:r.setGlobalFilter})}),(0,i.jsxs)(o.kCb,{children:[l>0?(0,i.jsxs)(o.kCb,{alignItems:"center",borderRadius:"md",gap:1,marginRight:4,children:[(0,i.jsxs)(o.xvT,{fontSize:"xs",children:[c," of ",l," systems displayed"]}),a?(0,i.jsx)(T.b,{label:"Note that Global Vendor List (GVL) and Additional Consent (AC) systems are not currently included in these reports"}):null]}):null,(0,i.jsxs)(o.wpx,{"aria-label":"Open Filter Settings",onClick:t,children:["Filter",g>0?(0,i.jsx)(o.j8w,{className:"ml-2",children:g}):null]})]})]}),(0,i.jsx)(P,{isOpen:e,onClose:n})]})},A=n(38943),N=n(77830),Z=()=>(0,i.jsx)(o.M5Y,{flex:1,"data-testid":"get-started-modal",backgroundColor:"gray.100",children:(0,i.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,i.jsxs)(o.Kqy,{spacing:4,children:[(0,i.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,i.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,i.jsx)(o.xvT,{children:"Let's get started!"}),(0,i.jsx)(o.xuv,{children:(0,i.jsx)(o.wpx,{href:N.xo,role:"link",type:"primary",className:"w-fit","data-testid":"add-systems-btn",children:"Add Systems"})})]})})});let z=u()(()=>Promise.all([n.e(105),n.e(1096),n.e(8765),n.e(9278),n.e(699),n.e(6148),n.e(5619),n.e(4259),n.e(1975)]).then(n.bind(n,34849)),{loadableGenerated:{webpack:()=>[34849]},ssr:!1,loading:()=>(0,i.jsx)(o.M5Y,{width:"100%",flex:"1",children:(0,i.jsx)(o.$jN,{})})}),V=()=>{let e=(0,c.C)(A.Xt),{attemptAction:t}=(0,r.oI)(),[n,i]=(0,s.useState)(),l=(0,s.useCallback)(e=>{t().then(t=>{t&&i(e)})},[t,i]),a=(0,s.useCallback)(()=>{t().then(e=>{e&&n&&i(void 0)})},[t,n]);return{isGettingStarted:e,selectedSystemId:n,setSelectedSystemId:l,resetSelectedSystemId:a}};var W=()=>{let{isGettingStarted:e,setSelectedSystemId:t,selectedSystemId:n,resetSelectedSystemId:s}=V(),{isLoading:r}=w();return r?(0,i.jsx)(o.M5Y,{width:"100%",flex:"1",children:(0,i.jsx)(o.$jN,{})}):e?(0,i.jsx)(Z,{}):(0,i.jsxs)(o.kCb,{direction:"column",height:"100%",children:[(0,i.jsx)(o.xuv,{marginBottom:3,marginRight:10,children:(0,i.jsx)(R,{})}),(0,i.jsxs)(o.kCb,{position:"relative",flex:1,direction:"row",overflow:"auto",borderWidth:"1px",borderStyle:"solid",borderColor:"gray.200",children:[(0,i.jsx)(o.xuv,{flex:1,minWidth:"50%",maxWidth:"100%",children:(0,i.jsx)(z,{setSelectedSystemId:t,selectedSystemId:n})}),(0,i.jsx)(g.Z,{selectedSystemId:n,resetSelectedSystemId:s})]})]})},U=()=>{let e=(0,s.useMemo)(()=>new y.m,[]);return(0,i.jsxs)(l.Z,{title:"Data lineage",mainProps:{padding:"24px 0 0 40px"},children:[(0,i.jsx)(a.Z,{style:{paddingLeft:0},heading:"Data lineage"}),(0,i.jsxs)(y.Z.Provider,{value:e,children:[(0,i.jsx)(W,{}),(0,i.jsx)(r.eB,{})]})]})}}},function(e){e.O(0,[431,5163,255,7245,9899,5258,2888,9774,179],function(){return e(e.s=53910)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2096],{16383:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]/[collectionName]/[...subfieldNames]",function(){return t(26052)}])},26052:function(e,a,t){"use strict";t.r(a);var l=t(24246),s=t(92222),i=t(59003),o=t(20595),n=t(30454),d=t.n(n),r=t(47215),c=t.n(r),u=t(86677),m=t(27378),f=t(77213),h=t(77830),g=t(58754),p=t(47935),v=t(66112),x=t(69828),b=t(41966),j=t(76252),w=t(69435);let C=(0,s.Cl)(),R=()=>(0,l.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,l.jsx)(o.gCW,{children:(0,l.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No fields found."})})});a.default=()=>{let e=(0,u.useRouter)(),[a]=(0,b.TG)(),t=decodeURIComponent(e.query.datasetId),n=decodeURIComponent(e.query.collectionName),r=e.query.subfieldNames.map(decodeURIComponent),{isLoading:_,data:y}=(0,b.oM)(t),N=(0,m.useMemo)(()=>(null==y?void 0:y.collections)||[],[y]).find(e=>e.name===n),k=(0,m.useMemo)(()=>(null==N?void 0:N.fields)||[],[N]),M=(0,m.useMemo)(()=>{let e=k;return r.forEach(a=>{let t=e.find(e=>e.name===a);e=(null==t?void 0:t.fields)||[]}),e},[k,r]),[I,T]=(0,m.useState)(),E=(0,m.useCallback)(e=>{let{dataCategory:t,field:l}=e,s=l.data_categories||[],i=(0,w.Fk)({dataset:y,collectionName:n,subfields:[...r,l.name]}),o=d()(y);c()(o,"".concat(i,".data_categories"),[...s,t]),a(o)},[y,a,n,r]),q=(0,m.useCallback)(e=>{let{dataCategory:t,field:l}=e,s=l.data_categories||[],i=(0,w.Fk)({dataset:y,collectionName:n,subfields:[...r,null==l?void 0:l.name]}),o=d()(y);c()(o,"".concat(i,".data_categories"),s.filter(e=>e!==t)),a(o)},[y,a,n,r]),z=(0,m.useCallback)(a=>{let l=[...r.map(encodeURIComponent),a.name];e.push({pathname:h.y1,query:{datasetId:t,collectionName:n,subfieldNames:l}})},[t,e,n,r]),F=(0,m.useMemo)(()=>[C.accessor(e=>e.name,{id:"name",cell:e=>{var a;let t=e.row.original.fields&&(null===(a=e.row.original.fields)||void 0===a?void 0:a.length)>0;return(0,l.jsx)(p.G3,{fontWeight:t?"semibold":"normal",value:e.getValue()})},header:e=>(0,l.jsx)(p.Rr,{value:"Field Name",...e}),size:180}),C.accessor(e=>{var a;return null===(a=e.fides_meta)||void 0===a?void 0:a.data_type},{id:"type",cell:e=>e.getValue()?(0,l.jsx)(p.A4,{value:e.getValue()}):(0,l.jsx)(p.G3,{value:void 0}),header:e=>(0,l.jsx)(p.Rr,{value:"Type",...e}),size:80}),C.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(p.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(p.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),C.accessor(e=>e.data_categories,{id:"data_categories",cell:e=>{var a;let t=e.row.original;return!(e.row.original.fields&&(null===(a=e.row.original.fields)||void 0===a?void 0:a.length)>0)&&(0,l.jsx)(v.Z,{selectedTaxonomies:e.getValue()||[],onAddTaxonomy:e=>E({dataCategory:e,field:t}),onRemoveTaxonomy:e=>q({dataCategory:e,field:t})})},header:e=>(0,l.jsx)(p.Rr,{value:"Data categories",...e}),size:300,meta:{disableRowClick:!0}}),C.display({id:"actions",header:"Actions",cell:e=>{let{row:a}=e,t=a.original;return(0,l.jsx)(o.Ugi,{spacing:0,"data-testid":"field-".concat(t.name),children:(0,l.jsx)(o.wpx,{size:"small",icon:(0,l.jsx)(o.dY8,{}),onClick:()=>{W(t),G(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[E,q]),S=(0,m.useMemo)(()=>I?M.filter(e=>e.name.toLowerCase().includes(I.toLowerCase())):M,[M,I]),U=(0,i.b7)({getCoreRowModel:(0,s.sC)(),getFilteredRowModel:(0,s.vL)(),getSortedRowModel:(0,s.tj)(),columns:F,data:S,columnResizeMode:"onChange"}),[A,G]=(0,m.useState)(!1),[V,W]=(0,m.useState)(),Z=(0,m.useMemo)(()=>{let e=[{title:"All datasets",href:h.$m},{title:t,href:{pathname:h.o5,query:{datasetId:t}},icon:x.Y[1]},{title:n,icon:x.Y[2],href:{pathname:h.RF,query:{datasetId:t,collectionName:n}}}];return r.forEach((a,l)=>{e.push({title:a,href:l<r.length-1?{pathname:h.y1,query:{datasetId:t,collectionName:n,subfieldNames:r.slice(0,l+1).map(encodeURIComponent)}}:void 0,icon:x.Y[3]})}),e},[t,n,r]);return(0,l.jsxs)(f.Z,{title:"Dataset - ".concat(t),children:[(0,l.jsx)(g.Z,{heading:"Datasets",breadcrumbItems:Z}),_?(0,l.jsx)(p.I4,{rowHeight:36,numRows:15}):(0,l.jsxs)(o.xuv,{"data-testid":"fields-table",children:[(0,l.jsx)(p.Q$,{children:(0,l.jsx)(p.HO,{globalFilter:I,setGlobalFilter:T,placeholder:"Search",testid:"fields-search"})}),(0,l.jsx)(p.ZK,{tableInstance:U,emptyTableNotice:(0,l.jsx)(R,{}),onRowClick:z,getRowIsClickable:e=>{var a;return!!(e.fields&&(null===(a=e.fields)||void 0===a?void 0:a.length)>0)}}),(0,l.jsx)(j.Z,{isOpen:A,onClose:()=>{G(!1),W(void 0)},field:V,dataset:y,collectionName:n,subfields:r})]})]})}}},function(e){e.O(0,[8765,9278,5163,699,3772,7488,549,2888,9774,179],function(){return e(e.s=16383)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6556],{59972:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]/[collectionName]",function(){return a(47355)}])},47355:function(e,t,a){"use strict";a.r(t);var l=a(24246),i=a(92222),o=a(59003),s=a(20595),n=a(86677),d=a(27378),r=a(77213),c=a(77830),u=a(58754),m=a(47935),g=a(66112),f=a(69828),x=a(41966),h=a(76252),v=a(69435);let p=(0,i.Cl)(),j=()=>(0,l.jsx)(s.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)(s.gCW,{children:(0,l.jsx)(s.xvT,{fontSize:"md",fontWeight:"600",children:"No fields found."})})});t.default=()=>{let e=(0,n.useRouter)(),[t]=(0,x.TG)(),a=decodeURIComponent(e.query.datasetId),w=decodeURIComponent(e.query.collectionName),{isLoading:C,data:_}=(0,x.oM)(a),R=(0,d.useMemo)(()=>(null==_?void 0:_.collections)||[],[_]),b=R.find(e=>e.name===w),N=(0,d.useMemo)(()=>(null==b?void 0:b.fields)||[],[b]),[k,y]=(0,d.useState)(),I=(0,d.useCallback)(e=>{let{dataCategory:a,field:l}=e,i=l.data_categories||[],o={...l,data_categories:[...i,a]},s=R.indexOf(b),n=b.fields.indexOf(l);t((0,v._n)(_,o,s,n))},[b,R,_,t]),M=(0,d.useCallback)(e=>{var a;let{dataCategory:l,field:i}=e,o={...i,data_categories:null===(a=i.data_categories)||void 0===a?void 0:a.filter(e=>e!==l)},s=R.indexOf(b),n=b.fields.indexOf(i);t((0,v._n)(_,o,s,n))},[b,R,_,t]),T=(0,d.useCallback)(t=>{e.push({pathname:c.y1,query:{datasetId:encodeURIComponent(a),collectionName:encodeURIComponent(w),subfieldNames:encodeURIComponent(t.name)}})},[a,e,w]),O=(0,d.useMemo)(()=>[p.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,l.jsx)(m.G3,{fontWeight:a?"semibold":"normal",value:e.getValue()})},header:e=>(0,l.jsx)(m.Rr,{value:"Field Name",...e}),size:180}),p.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,l.jsx)(m.A4,{value:e.getValue()}):(0,l.jsx)(m.G3,{value:void 0}),header:e=>(0,l.jsx)(m.Rr,{value:"Type",...e}),size:80}),p.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}}),p.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,l.jsx)(g.Z,{selectedTaxonomies:e.getValue()||[],onAddTaxonomy:e=>I({dataCategory:e,field:a}),onRemoveTaxonomy:e=>M({dataCategory:e,field:a})})},header:e=>(0,l.jsx)(m.Rr,{value:"Data categories",...e}),size:300,meta:{disableRowClick:!0}}),p.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,a=t.original;return(0,l.jsx)(s.Ugi,{spacing:0,"data-testid":"field-".concat(a.name),children:(0,l.jsx)(s.wpx,{size:"small",icon:(0,l.jsx)(s.dY8,{}),onClick:()=>{G(a),U(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[I,M]),z=(0,d.useMemo)(()=>k?N.filter(e=>e.name.toLowerCase().includes(k.toLowerCase())):N,[N,k]),S=(0,o.b7)({getCoreRowModel:(0,i.sC)(),getFilteredRowModel:(0,i.vL)(),getSortedRowModel:(0,i.tj)(),columns:O,data:z,columnResizeMode:"onChange"}),[E,U]=(0,d.useState)(!1),[A,G]=(0,d.useState)(),V=(0,d.useMemo)(()=>[{title:"All datasets",href:c.$m},{title:a,href:{pathname:c.o5,query:{datasetId:a}},icon:f.Y[1]},{title:w,icon:f.Y[2]}],[a,w]);return(0,l.jsxs)(r.Z,{title:"Dataset - ".concat(a),children:[(0,l.jsx)(u.Z,{heading:"Datasets",breadcrumbItems:V}),C?(0,l.jsx)(m.I4,{rowHeight:36,numRows:15}):(0,l.jsxs)(s.xuv,{"data-testid":"fields-table",children:[(0,l.jsx)(m.Q$,{children:(0,l.jsx)(m.HO,{globalFilter:k,setGlobalFilter:y,placeholder:"Search",testid:"fields-search"})}),(0,l.jsx)(m.ZK,{tableInstance:S,emptyTableNotice:(0,l.jsx)(j,{}),onRowClick:T,getRowIsClickable:e=>{var t;return!!(e.fields&&(null===(t=e.fields)||void 0===t?void 0:t.length)>0)}}),(0,l.jsx)(h.Z,{isOpen:E,onClose:()=>{U(!1),G(void 0)},field:A,dataset:_,collectionName:w})]})]})}}},function(e){e.O(0,[8765,9278,5163,699,3772,7488,549,2888,9774,179],function(){return e(e.s=59972)}),_N_E=e.O()}]);
|
|
@@ -0,0 +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(20595),a=o(86677),c=o(27378),d=o(77213),r=o(77830),u=o(58754),m=o(47935),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,[9729,3772,7488,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,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/new",function(){return n(17294)}])},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var a=n(24246),r=n(20595),s=n(88038),i=n.n(s),o=n(86677);n(27378);var l=n(25980),u=n(90867),d=n(42478),c=n(77830),g=()=>{let e=(0,o.useRouter)();return(0,a.jsx)(r.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,a.jsxs)(r.xuv,{children:[(0,a.jsxs)(r.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,a.jsx)(r.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,a.jsx)(r.wpx,{onClick:()=>{e.push(c.AD)},children:"Configure"})]}),(0,a.jsxs)(r.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},f=e=>{let{children:t,title:n,padded:s=!0,mainProps:c}=e,f=(0,l.hz)(),m=(0,o.useRouter)(),h="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,p=!(f.flags.messagingConfiguration&&h),{data:y}=(0,d.JE)(void 0,{skip:p}),{data:x}=(0,u.PW)(void 0,{skip:p}),b=f.flags.messagingConfiguration&&(!y||!x)&&h;return(0,a.jsxs)(r.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,a.jsxs)(i(),{children:[(0,a.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,a.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,a.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,a.jsxs)(r.kCb,{as:"main",direction:"column",py:s?6:0,px:s?10:0,h:s?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[b?(0,a.jsx)(g,{}):null,t]})]})}},58754:function(e,t,n){"use strict";var a=n(24246),r=n(20595),s=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:i=!0,children:o,rightContent:l,style:u,...d}=e;return(0,a.jsxs)("div",{...d,style:i?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...u}:{paddingBottom:"24px",...u},children:[(0,a.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,a.jsx)(r.lQT,{className:n||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,a.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,a.jsx)(s.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return u}});var a=n(24246),r=n(20595),s=n(79894),i=n.n(s),o=n(27378);let{Text:l}=r.AntTypography,u=e=>{let{items:t,...n}=e,s=(0,o.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let s=n===t.length-1,o={...e},u=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,a.jsx)(l,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,id:s?"breadcrumb-current-page":void 0,children:o.title})),u)?o.title=(0,a.jsx)(r.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,a.jsx)(i(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,a.jsx)(r.zrq,{items:s,...n})}},39715:function(e,t,n){"use strict";var a=n(24246),r=n(20595);n(27378),t.Z=e=>{let{isEmptyState:t,yamlError:n}=e;return(0,a.jsx)(r.Rg9,{in:!0,children:(0,a.jsxs)(r.xuv,{w:"fit-content",bg:"white",p:3,borderRadius:3,children:[(0,a.jsxs)(r.Ugi,{children:[(0,a.jsx)(r.X6q,{as:"h5",color:"gray.700",size:"xs",children:"YAML"}),(0,a.jsx)(r.Vp9,{colorScheme:"red",size:"sm",variant:"solid",children:"Error"})]}),(0,a.jsx)(r.xuv,{bg:"red.50",border:"1px solid",borderColor:"red.300",color:"red.300",mt:"16px",borderRadius:"6px",children:(0,a.jsxs)(r.Ugi,{alignItems:"flex-start",margin:["14px","17px","14px","17px"],children:[(0,a.jsx)(r.f9v,{}),t&&(0,a.jsxs)(r.xuv,{children:[(0,a.jsx)(r.X6q,{as:"h5",color:"red.500",fontWeight:"semibold",size:"xs",children:"Error message:"}),(0,a.jsx)(r.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:"Yaml system is required"})]}),n&&(0,a.jsxs)(r.xuv,{children:[(0,a.jsx)(r.X6q,{as:"h5",color:"red.500",fontWeight:"semibold",size:"xs",children:"Error message:"}),(0,a.jsx)(r.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:n.message}),(0,a.jsx)(r.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:n.reason}),(0,a.jsxs)(r.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:["Ln ",(0,a.jsx)("b",{children:n.mark.line}),", Col"," ",(0,a.jsx)("b",{children:n.mark.column}),", Pos"," ",(0,a.jsx)("b",{children:n.mark.position})]})]})]})})]})})}},41207:function(e,t,n){"use strict";n.d(t,{F:function(){return i},M:function(){return s}});var a=n(76649),r=n(65218);let s=n.n(r)()(()=>n.e(7088).then(n.bind(n,57088)).then(e=>e.default),{loadableGenerated:{webpack:()=>[57088]},ssr:!1}),i=e=>(0,a.Ln)({name:"string"},e)&&"YAMLException"===e.name},42478:function(e,t,n){"use strict";n.d(t,{FU:function(){return u},JE:function(){return r},Ki:function(){return c},SU:function(){return g},W:function(){return f},h9:function(){return s},jc:function(){return a},qt:function(){return l},sn:function(){return d}});let{useGetEmailInviteStatusQuery:a,useGetActiveMessagingProviderQuery:r,useCreateMessagingConfigurationMutation:s,useCreateMessagingConfigurationSecretsMutation:i,useGetMessagingConfigurationDetailsQuery:o,useGetMessagingConfigurationsQuery:l,useGetMessagingConfigurationByKeyQuery:u,useUpdateMessagingConfigurationByKeyMutation:d,useUpdateMessagingConfigurationSecretsByKeyMutation:c,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:f}=n(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,t,n,a)=>{let r=await a({url:"messaging/default/active"});return r.error&&404===r.error.status?{data:null}:r},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},17294:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return P}});var a=n(24246),r=n(20595),s=n(27378),i=n(77213),o=n(77830),l=n(58754),u=n(34090),d=n(86677),c=n(16125),g=n(55484),f=n(25980),m=n(40324),h=n(812),p=n(58452),y=n(46628),x=n(83265),b=n(32885),v=n(85054),j=n(20386);let _=e=>!("system_type"in e),C={url:"",classify:!1,classifyConfirmed:!1},w=g.Ry().shape({url:g.Z_().required().label("Database URL"),classify:g.O7(),classifyConfirmed:g.O7().when(["url","classify"],{is:(e,t)=>e&&t,then:()=>g.O7().equals([!0])})});var T=()=>{let[e,{isLoading:t}]=(0,j.pR)(),[n,{isLoading:s}]=(0,j.IR)(),[i,{isLoading:l}]=(0,b.Du)(),g=t||s||l,T=(0,r.pmc)(),k=(0,d.useRouter)(),S=(0,f.hz)(),M=(0,c.I0)(),E=async t=>{var n;let a=await e({organization_key:x.Av,generate:{config:{connection_string:t.url},target:v.GC.DB,type:v.j.DATASETS}});if((0,h.D4)(a))return{error:(0,h.e$)(a.error)};let r=(null!==(n=a.data.generate_results)&&void 0!==n?n:[]).filter(_);return r&&r.length>0?{datasets:r}:{error:"Unable to generate a dataset with this connection."}},q=async e=>{let t=await n(e);return(0,h.D4)(t)?{error:(0,h.e$)(t.error)}:{dataset:t.data}},P=async e=>{let{values:t,datasets:n}=e,a=await i({dataset_schemas:n.map(e=>{let{name:t,fides_key:n}=e;return{fides_key:n,name:t}}),schema_config:{organization_key:x.Av,generate:{config:{connection_string:t.url},target:v.GC.DB,type:v.j.DATASETS}}});return(0,h.D4)(a)?{error:(0,h.e$)(a.error)}:{classifyInstances:a.data.classify_instances}},A=async e=>{var t;let n=await E(e);if("error"in n){T((0,y.Vo)(n.error));return}let a=await Promise.all(n.datasets.map(e=>q(e))),r=null!==(t=a.find(e=>"error"in e))&&void 0!==t?t:a[0];if("error"in r){T((0,y.Vo)(r.error));return}if(!e.classify){T((0,y.t5)("Generated ".concat(r.dataset.name," dataset"))),k.push({pathname:o.o5,query:{datasetId:r.dataset.fides_key}});return}let s=await P({values:e,datasets:n.datasets});if("error"in s){T((0,y.Vo)(s.error));return}T((0,y.t5)("Generate and classify are now in progress")),M((0,j.Zl)(r.dataset.fides_key)),k.push("/dataset")};return(0,a.jsx)(u.J9,{initialValues:{...C,classify:S.plus},validationSchema:w,onSubmit:A,validateOnChange:!1,validateOnBlur:!1,children:e=>{let{isSubmitting:t,errors:n,values:s,submitForm:i,resetForm:o,setFieldValue:l}=e;return(0,a.jsxs)(u.l0,{children:[(0,a.jsxs)(r.gCW,{spacing:8,align:"left",children:[(0,a.jsx)(r.xvT,{size:"sm",color:"gray.700",children:"Connect to a database using the connection URL. You may have received this URL from a colleague or your Ethyca developer support engineer."}),(0,a.jsx)(r.xuv,{children:(0,a.jsx)(m.j0,{name:"url",label:"Database URL"})}),S.plus?(0,a.jsx)(m.w8,{name:"classify",label:"Classify dataset",tooltip:"Use Fides Classify to suggest labels based on your data."}):null,(0,a.jsx)(r.xuv,{children:(0,a.jsx)(r.wpx,{type:"primary",htmlType:"submit",loading:t||g,disabled:t||g,"data-testid":"create-dataset-btn",children:"Generate dataset"})})]}),(0,a.jsx)(p.Z,{title:"Generate and classify this dataset",message:"You have chosen to generate and classify this dataset. This process may take several minutes. In the meantime you can continue using Fides. You will receive a notification when the process is complete.",isOpen:void 0!==n.classifyConfirmed,onClose:()=>{o({values:{...s,classifyConfirmed:!1}})},onConfirm:()=>{l("classifyConfirmed",!0),setTimeout(()=>{i()},0)}})]})}})},k=n(66527),S=n(17245),M=n(41207),E=n(39715),q=()=>{let[e]=(0,j.IR)(),[t,n]=(0,s.useState)(!0),[i,l]=(0,s.useState)(!1),[u,c]=(0,s.useState)(!1),g=(0,s.useRef)(null),f=(0,d.useRouter)(),m=(0,r.pmc)(),{errorAlert:p}=(0,S.VY)(),[x,b]=(0,s.useState)(void 0),v=e=>{k.ZP.load(e,{json:!0}),b(void 0)},_=async t=>{let n;return"object"==typeof t&&null!=t&&"dataset"in t&&Array.isArray(t.dataset)?[n]=t.dataset:Array.isArray(t)?[n]=t:n=t,e(n)},C=e=>{m((0,y.t5)("Successfully loaded new dataset YAML")),(0,j.Zl)(e.fides_key),f.push({pathname:o.o5,query:{datasetId:e.fides_key}})},w=async()=>{l(!0);let e=g.current.getValue(),t=k.ZP.load(e,{json:!0}),n=await _(t);(0,h.D4)(n)?m((0,y.Vo)((0,h.e$)(n.error))):"data"in n&&C(n.data),l(!1)};return(0,a.jsxs)(r.kCb,{gap:"97px",children:[(0,a.jsxs)(r.xuv,{w:"75%",children:[(0,a.jsx)(r.xuv,{color:"gray.700",fontSize:"14px",mb:4,children:"Get started creating your first dataset by pasting your dataset yaml below! You may have received this yaml from a colleague or your Ethyca developer support engineer."}),(0,a.jsxs)(r.gCW,{align:"stretch",children:[(0,a.jsx)(r.izJ,{color:"gray.100"}),(0,a.jsx)(M.M,{defaultLanguage:"yaml",height:"calc(100vh - 515px)",onChange:e=>{try{c(!0),v(e),n(!!(!e||""===e.trim()))}catch(e){(0,M.F)(e)?b(e):p("Could not parse the supplied YAML")}},onMount:e=>{g.current=e,g.current.focus()},options:{fontFamily:"Menlo",fontSize:13,minimap:{enabled:!0}},theme:"light"}),(0,a.jsx)(r.izJ,{color:"gray.100"}),(0,a.jsx)(r.wpx,{type:"primary",disabled:t||!!x||i,loading:i,onClick:w,htmlType:"submit",className:"mt-6 w-fit",children:"Create dataset"})]})]}),(0,a.jsx)(r.xuv,{children:u&&(t||x)&&(0,a.jsx)(E.Z,{isEmptyState:t,yamlError:x})})]})},P=()=>{let[e,t]=(0,s.useState)(null);return(0,a.jsxs)(i.Z,{title:"Create New Dataset",children:[(0,a.jsx)(l.Z,{heading:"Datasets",breadcrumbItems:[{title:"All datasets",href:o.$m},{title:"Create new"}]}),(0,a.jsxs)(r.Kqy,{spacing:8,children:[(0,a.jsxs)(r.xuv,{children:[(0,a.jsx)(r.wpx,{onClick:()=>t("yaml"),"data-testid":"upload-yaml-btn",className:"mr-2",children:"Upload a Dataset YAML"}),(0,a.jsx)(r.wpx,{onClick:()=>t("database"),ghost:"database"===e,className:"mr-2","data-testid":"connect-db-btn",children:"Connect to a database"})]}),"database"===e&&(0,a.jsx)(r.xuv,{w:{base:"100%",lg:"50%"},children:(0,a.jsx)(T,{})}),"yaml"===e&&(0,a.jsx)(r.xuv,{w:{base:"100%"},children:(0,a.jsx)(q,{})})]})]})}},76737:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return o},noSSR:function(){return i}});let a=n(51538);n(24246),n(27378);let r=a._(n(21887));function s(e){return{default:(null==e?void 0:e.default)||e}}function i(e,t){return delete t.webpack,delete t.modules,e(t)}function o(e,t){let n=r.default,a={loading:e=>{let{error:t,isLoading:n,pastDelay:a}=e;return null}};e instanceof Promise?a.loader=()=>e:"function"==typeof e?a.loader=e:"object"==typeof e&&(a={...a,...e});let o=(a={...a,...t}).loader;return(a.loadableGenerated&&(a={...a,...a.loadableGenerated},delete a.loadableGenerated),"boolean"!=typeof a.ssr||a.ssr)?n({...a,loader:()=>null!=o?o().then(s):Promise.resolve(s(()=>null))}):(delete a.webpack,delete a.modules,i(n,a))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28438:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return a}});let a=n(51538)._(n(27378)).default.createContext(null)},21887:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return g}});let a=n(51538)._(n(27378)),r=n(28438),s=[],i=[],o=!1;function l(e){let t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}class u{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function d(e){return function(e,t){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),s=null;function l(){if(!s){let t=new u(e,n);s={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return s.promise()}if(!o){let e=n.webpack?n.webpack():n.modules;e&&i.push(t=>{for(let n of e)if(t.includes(n))return l()})}function d(e,t){!function(){l();let e=a.default.useContext(r.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach(t=>{e(t)})}();let i=a.default.useSyncExternalStore(s.subscribe,s.getCurrentValue,s.getCurrentValue);return a.default.useImperativeHandle(t,()=>({retry:s.retry}),[]),a.default.useMemo(()=>{var t;return i.loading||i.error?a.default.createElement(n.loading,{isLoading:i.loading,pastDelay:i.pastDelay,timedOut:i.timedOut,error:i.error,retry:s.retry}):i.loaded?a.default.createElement((t=i.loaded)&&t.default?t.default:t,e):null},[e,i])}return d.preload=()=>l(),d.displayName="LoadableComponent",a.default.forwardRef(d)}(l,e)}function c(e,t){let n=[];for(;e.length;){let a=e.pop();n.push(a(t))}return Promise.all(n).then(()=>{if(e.length)return c(e,t)})}d.preloadAll=()=>new Promise((e,t)=>{c(s).then(e,t)}),d.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let n=()=>(o=!0,t());c(i,e).then(n,n)})),window.__NEXT_PRELOADREADY=d.preloadReady;let g=d},65218:function(e,t,n){e.exports=n(76737)}},function(e){e.O(0,[431,6527,7245,2888,9774,179],function(){return e(e.s=73846)}),_N_E=e.O()}]);
|