ethyca-fides 2.56.1rc3__py2.py3-none-any.whl → 2.56.2__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ethyca_fides-2.56.1rc3.dist-info → ethyca_fides-2.56.2.dist-info}/METADATA +1 -1
- {ethyca_fides-2.56.1rc3.dist-info → ethyca_fides-2.56.2.dist-info}/RECORD +198 -196
- fides/_version.py +3 -3
- fides/ui-build/static/admin/404.html +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{1241-438935108aed21e7.js → 1241-5f9673b3a7fd9469.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{1288-ba1df63e7fa2234a.js → 1288-84c330c47e031622.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{1827-2d2f6eb59ebca43f.js → 1827-db04b6d4756e3a25.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{2017-312ebd5e1ee3a4cc.js → 2017-99f489b3e0279798.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{2025-8e051f2e024df3bf.js → 2025-b6a78063b47b0607.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{2163-4ea4bc558daae7b9.js → 2163-9631ae84deb6560b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/255-69ac1bcb5a52b022.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{2556-a58aca0405c150e6.js → 2556-1d0c02e14299bf23.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5559-9b3d8e3dc0533942.js → 2780-8328de94968d05e4.js} +2 -2
- fides/ui-build/static/admin/_next/static/chunks/{2800.6615615b3f98c173.js → 2800.40212c25719a2351.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/2858-0b44609b6be7850b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/2866-a73888c17a195cbe.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{2973-995ae9f580873e5b.js → 2973-2d9d761cc3aeda1d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3163-7ebdab4fefa7e21f.js → 3163-5fe20dd3d43cef46.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3309-d014168a94ed008b.js → 3309-db63287718ef9694.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3528-5e4ade882be165e4.js → 3528-30fc61a98d99a66b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3990-d38bb0b12394ae4d.js → 3990-146beccde8afea98.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/4294-3e67d7ef3d390c2f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{4321-9c97c4e0d5cf38bd.js → 4321-1bf69f1e83baf995.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{4456-87020c4b11dc6e0e.js → 4456-67c8d5b2d96dea1d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{4981-c7710c0d9ff7f9cf.js → 4981-8d81ec3b6031f0f9.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{53-bd8367b6a28ef9b0.js → 53-eb32dc5d8571cb7b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5318-d81dc29254349932.js → 5318-1bfde23609ea3718.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5632-6a150393937e52ea.js → 5632-b98308c17b9cd230.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5728-32ce3e7a41d1fb9f.js → 5728-7be08c654c024baa.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5973-7bbf7cd9475c070d.js → 5973-c0b74d6cf14833cb.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6182-87e468239a93f7e2.js → 6182-1949666cc9179015.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6546-7d8e618a3e49a19a.js → 6546-aa6826fdd0356505.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/6834-5082b5702e80b531.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{7080-54768a5669e98da9.js → 7080-051d67719049e77a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{7528.b7f05f44d1ff3997.js → 7528.dff66491009d309b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{7548-cdf0d184fa13ddaf.js → 7548-b3992b0c7fb852c9.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{7636-bf8c77691e80223b.js → 7636-b2dadd026c1fe754.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{7871-69ffa5607b57cbcf.js → 7871-0a9b00bc8760d091.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/7996-23e83b8ca562a06c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{8001-f142a2097615505a.js → 8001-3fdc7b543233f717.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{8141-4eb48e91039a27d5.js → 8141-55187bd207f5ea9e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/8540-a7c91bdbe1bb48fb.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{8986-b955f08aba857064.js → 8986-c24a626d90c8be1d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9659-7a6f150315045fdd.js → 9659-478f2eaaf48a8943.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/9729-fcf6ff4e3534e4a8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{9822-e0b4ee48b9ca9d6c.js → 9822-88b7435d5868e1ef.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{404-cf2b98b932c99b1e.js → 404-5c601b7b9c17b770.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{_app-ec8f262156df2273.js → _app-8021f4b202818ba2.js} +11 -11
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-227ad8dba69aadab.js → manual-2bfb79fc5d16caa4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-e47482277518eeac.js → multiple-17b38b57adc62ed2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-4e54aefa8b7f554f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{ant-poc-833eede89996ded2.js → ant-poc-6048ddeee842c93b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-59913e9cc73e09c9.js → add-vendors-7469901adf64d0e2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-49c576c235a79105.js → configure-833ab451ff99ba12.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-f88c83c3daedc898.js → [id]-b796be4c70e08aa0.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{new-8eb5999c73f3e445.js → new-35bc7b42751bb78a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-3eaec69fa89f74ce.js → privacy-experience-089a73cd8a34dbec.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-941d95c937170eca.js → [id]-a2713f5a7a2c45e5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-0e3788b351b85329.js → new-b67c3c8c25e7051b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-363b22d7785b3820.js → privacy-notices-cfe92d1c2e95d917.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-5f80a5d6b216b7d3.js → properties-059c82d3b8ccdaf6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-54c762b6fe38c20e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{consent-160eab9ebbbd1d25.js → consent-a3233ad24a82465a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/{[resourceUrn]-ef19223d2cdc1258.js → [resourceUrn]-e1bd1bdd2c310ecc.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-50b989ef31996157.js → [projectUrn]-c9032d9e0c1dfe1a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-96f81e13cc52686f.js → projects-62087de19ac179b3.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/{[resourceUrn]-fd3d508ab13ddb5b.js → [resourceUrn]-c7614c7742e41151.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{resources-71ce2e9dbf646ecd.js → resources-6563b9d6f77d0690.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{data-catalog-11d772fe8b66f9b6.js → data-catalog-9b33b5875445751e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/{[systemId]-e3dbeac39e3ebd59.js → [systemId]-c299a8bd5e1c1def.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/{[monitorId]-ca97d78d3e655a9d.js → [monitorId]-8e6f4b1b5b89aff0.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-a6a9bbfac5ca8d0b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{activity-bdb48de828181c14.js → activity-a9a864cb621d65c6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-f8f65f23ff9edaeb.js → [resourceUrn]-c575c057b35b958e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-dbcda00811800c31.js → detection-c1d2018f3ab3e39c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-90ebc7dd32d37952.js → [resourceUrn]-9ae2adfc68b95d78.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-3251e73054b9f980.js → discovery-a617ddfa3dfdab23.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{datamap-f79309e33e7583fa.js → datamap-6a0e22b9ce8f5332.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-63f5bebe5851b767.js → [...subfieldNames]-3e506baace396803.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-18ff69fb79811cff.js → [collectionName]-6bb9fbe3d41c3127.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-a358b344095573a9.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-b328f9aab79dd734.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{dataset-6ab8c03b8baa93ca.js → dataset-3c0b2ccfa442b79d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-9f1a9e0e2b443b2a.js → [id]-102772521ee4a69a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-754926e02c1e0ab0.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{datastore-connection-9cafd280f2dff51b.js → datastore-connection-1e81b412b5837755.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{index-f6c4817f3c27b16c.js → index-aa7b15f51ccbdf8b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/{[id]-c431f92c941859c4.js → [id]-2436e6c6406e5f4f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations-b6c0f9648f6fa298.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{[id]-014724a2527621b5.js → [id]-d1e96f12c1a12d4d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{add-template-860ee8c0e0a2d994.js → add-template-3ff3a7c3c76a208e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{messaging-5a6202c3aaf15cce.js → messaging-910372bec245ba5d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{[id]-ae047733e540e0ef.js → [id]-7b13b42d1b23f93b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{messaging-c6881c16a4058f20.js → messaging-6971c7e98c00390a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{storage-4b68311b85486f8c.js → storage-71386e3e260a9220.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-9ec13a78be8f23bf.js → configure-e0ca944878ef12e8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-be0c167fa1565e38.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-6597c1714cb44cbc.js → [id]-e780943ac4ce5bf1.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-674abcb6eaeb32de.js → add-property-fc660bc2a3641cd3.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{properties-f939fbdb6bc969ef.js → properties-1a35fd97f2510989.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/{datamap-7446940b5f984a24.js → datamap-b9fe3f3bb16a14eb.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{about-ec35b0518d3fb3bb.js → about-bfe2495fb54933ee.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-7eec113882c35c3f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{custom-fields-3bbbb1612eb447e9.js → custom-fields-aaf29e3dd2c7e955.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-c59eedd4f4a637aa.js → domain-records-8b7e71fe1307c5a3.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-0b9e78e671540cef.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-4d55571c2799e7fe.js → email-templates-eb04e1584d98edb3.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-725f4a6a809bd1e6.js → locations-195f7ddfc3768ece.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-22cb683d203ea7fb.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-8934706c2c817abe.js → regulations-3eede241c9df1476.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-54d7c6fcc4c79635.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-15f55e6c399eed5e.js → [id]-8271db0c80e6e154.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{systems-0b4f7a20fa248642.js → systems-7d81df09a0b4eb23.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-7abe76200e4519d8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-99490929267dbcef.js → [id]-269b17114579510b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-2eedb806df4160b3.js → user-management-f7e75911c071a20e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{webpack-f8d056f5e13fe08a.js → webpack-c51aa6524c2716b8.js} +1 -1
- fides/ui-build/static/admin/_next/static/css/918de8c66b18ce6b.css +1 -0
- fides/ui-build/static/admin/_next/static/qredjgKriN7hvmKBWTZz2/_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/ant-poc.html +1 -1
- fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
- fides/ui-build/static/admin/consent/configure.html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
- fides/ui-build/static/admin/consent/properties.html +1 -1
- fides/ui-build/static/admin/consent/reporting.html +1 -1
- fides/ui-build/static/admin/consent.html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
- fides/ui-build/static/admin/data-catalog.html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
- fides/ui-build/static/admin/data-discovery/activity.html +1 -1
- fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-discovery/detection.html +1 -1
- fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
- fides/ui-build/static/admin/datamap.html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
- fides/ui-build/static/admin/dataset/new.html +1 -1
- fides/ui-build/static/admin/dataset.html +1 -1
- fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
- fides/ui-build/static/admin/datastore-connection/new.html +1 -1
- fides/ui-build/static/admin/datastore-connection.html +1 -1
- fides/ui-build/static/admin/index.html +1 -1
- fides/ui-build/static/admin/integrations/[id].html +1 -1
- fides/ui-build/static/admin/integrations.html +1 -1
- fides/ui-build/static/admin/lib/fides-headless.js +1 -1
- fides/ui-build/static/admin/lib/fides-tcf.js +3 -3
- fides/ui-build/static/admin/lib/fides.js +2 -2
- fides/ui-build/static/admin/login/[provider].html +1 -1
- fides/ui-build/static/admin/login.html +1 -1
- fides/ui-build/static/admin/messaging/[id].html +1 -1
- fides/ui-build/static/admin/messaging/add-template.html +1 -1
- fides/ui-build/static/admin/messaging.html +1 -1
- fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure/messaging.html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
- fides/ui-build/static/admin/privacy-requests.html +1 -1
- fides/ui-build/static/admin/properties/[id].html +1 -1
- fides/ui-build/static/admin/properties/add-property.html +1 -1
- fides/ui-build/static/admin/properties.html +1 -1
- fides/ui-build/static/admin/reporting/datamap.html +1 -1
- fides/ui-build/static/admin/settings/about.html +1 -1
- fides/ui-build/static/admin/settings/consent.html +1 -1
- fides/ui-build/static/admin/settings/custom-fields.html +1 -1
- fides/ui-build/static/admin/settings/domain-records.html +1 -1
- fides/ui-build/static/admin/settings/domains.html +1 -1
- fides/ui-build/static/admin/settings/email-templates.html +1 -1
- fides/ui-build/static/admin/settings/locations.html +1 -1
- fides/ui-build/static/admin/settings/organization.html +1 -1
- fides/ui-build/static/admin/settings/regulations.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id].html +1 -1
- fides/ui-build/static/admin/systems.html +1 -1
- fides/ui-build/static/admin/taxonomy.html +1 -1
- fides/ui-build/static/admin/user-management/new.html +1 -1
- fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
- fides/ui-build/static/admin/user-management.html +1 -1
- fides/ui-build/static/admin/_next/static/chunks/255-8d4d20193afd2223.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/2866-2aa6a087d80eb4a3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4554-1c73bac0d3b5fa31.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7996-5521a6949bfe4640.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/8540-cf0177abbe201868.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9111-36f3eb6456817560.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-500ee461301938a8.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-d1abffec10948e2e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-6d6d0b3bd37434da.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-ad8ab0745c40a187.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-72cdfa2ff1a4f38b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-c7de595cc7a42eba.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations-43234d749fbc0606.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-c0ee732681c1d4ef.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-92a19e7da38d3325.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-61ddd1a76e4ab2c6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-fc13f3473328020d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-0ee9dc1f37205410.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-ad082f72d90bdfe2.js +0 -1
- fides/ui-build/static/admin/_next/static/css/ddd0b958fa57d1b9.css +0 -1
- fides/ui-build/static/admin/_next/static/r-3WeuV_snrkjgQH_dysX/_buildManifest.js +0 -1
- {ethyca_fides-2.56.1rc3.dist-info → ethyca_fides-2.56.2.dist-info}/LICENSE +0 -0
- {ethyca_fides-2.56.1rc3.dist-info → ethyca_fides-2.56.2.dist-info}/WHEEL +0 -0
- {ethyca_fides-2.56.1rc3.dist-info → ethyca_fides-2.56.2.dist-info}/entry_points.txt +0 -0
- {ethyca_fides-2.56.1rc3.dist-info → ethyca_fides-2.56.2.dist-info}/top_level.txt +0 -0
- /fides/ui-build/static/admin/_next/static/{r-3WeuV_snrkjgQH_dysX → qredjgKriN7hvmKBWTZz2}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9196],{86548:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/reporting/datamap",function(){return s(83253)}])},72809:function(e,t,s){"use strict";var a=s(24246),r=s(96013),i=s(27378);let o=e=>{let t=e.split("."),s=[];return t.forEach(e=>{let t=s.length>0?s[s.length-1]:null;t?s.push("".concat(t,".").concat(e)):s.push(e)}),s},l=(e,t)=>{let s=o(t).filter(e=>e!==t);return e.filter(e=>s.includes(e)).length>0},n=(e,t)=>!!(e===t||e.startsWith("".concat(t,"."))),c=(e,t,s)=>{let a=null!=s?s:[];return e.forEach(e=>{e.children&&c(e.children,t,a),n(e.value,t)&&a.push(e)}),a},d=e=>{let{node:t,isChecked:s,onChecked:i,isExpanded:o,onExpanded:l,isIndeterminate:n,isDisabled:c,children:d}=e,{value:u,label:_}=t,p=!!t.children&&t.children.length>0;return(0,a.jsxs)(r.xuv,{children:[(0,a.jsxs)(r.xuv,{display:"flex",justifyContent:"space-between",_hover:{backgroundColor:"gray.100",cursor:"pointer"},onClick:()=>l(t),minHeight:8,children:[(0,a.jsx)(r.XZJ,{colorScheme:"complimentary",value:u,isChecked:!n&&s,isIndeterminate:n,isDisabled:c,onChange:()=>i(t),mx:2,"data-testid":"checkbox-".concat(_),children:_}),p?(0,a.jsx)(r.wpx,{"data-testid":"expand-".concat(_),"aria-label":o?"collapse":"expand",icon:(0,a.jsx)(r.v4q,{boxSize:5}),type:"text",onClick:()=>l(t),className:o?"rotate-180":void 0}):null]}),d&&(0,a.jsx)(r.xuv,{ml:5,children:d})]})};t.ZP=e=>{let{nodes:t,selected:s,onSelected:u,..._}=e,[p,m]=(0,i.useState)([]),[E,S]=(0,i.useState)([]);(0,i.useEffect)(()=>{let e=Array.from(new Set([...s.map(e=>o(e)).reduce((e,t)=>e.concat(t),[]),...s.map(e=>c(t,e)).reduce((e,t)=>e.concat(t),[]).map(e=>e.value)]));S(e),m(e)},[s,t]);let h=e=>{let a=[],r=[];p.indexOf(e.value)>=0?(a=p.filter(t=>!n(t,e.value)),r=s.filter(t=>!n(t,e.value))):(a=[...p,...c(t,e.value).map(e=>e.value)],r=[...s,e.value]),m(a),u(r)},A=e=>{E.indexOf(e.value)>=0?S(E.filter(t=>!n(t,e.value))):S([...E,e.value])},g=e=>{if(e.children){let r=p.indexOf(e.value)>=0,o=E.indexOf(e.value)>=0,n=c(t,e.value),u=r&&e.children.length>0&&p.filter(t=>t.startsWith("".concat(e.value,"."))).length+1!==n.length,_=l(s,e.value);return(0,a.jsx)(d,{node:e,isChecked:r,onChecked:h,isExpanded:o,onExpanded:A,isDisabled:_,isIndeterminate:u,children:o?e.children.map(e=>(0,a.jsx)(i.Fragment,{children:g(e)},e.value)):void 0})}return null};return(0,a.jsx)(r.xuv,{..._,children:t.map(e=>(0,a.jsx)(r.xuv,{children:g(e)},e.value))})}},65464:function(e,t,s){"use strict";var a=s(24246),r=s(96013),i=s(88038),o=s.n(i);s(27378),t.Z=e=>{let{children:t,title:s,mainProps:i}=e;return(0,a.jsxs)(r.kCb,{"data-testid":s,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,a.jsxs)(o(),{children:[(0,a.jsxs)("title",{children:["Fides Admin UI - ",s]}),(0,a.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,a.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,a.jsx)(r.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...i,children:t})]})}},79711:function(e,t,s){"use strict";s.d(t,{q:function(){return r}});var a=s(24246);let r=(0,s(96013).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,a.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},38615:function(e,t,s){"use strict";s.d(t,{Tg:function(){return o}});var a=s(24246),r=s(44296),i=s(96451);let o=e=>(0,r.C)(i.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:s}=e;return o(t)?(0,a.jsx)(a.Fragment,{children:s}):null}},91591:function(e,t,s){"use strict";s.d(t,{d:function(){return r}});var a=s(24246);let r=(0,s(96013).IUT)({displayName:"AddIcon",viewBox:"0 0 10 10",path:(0,a.jsx)("path",{d:"M4.33331 4.33398V0.333984H5.66665V4.33398H9.66665V5.66732H5.66665V9.66732H4.33331V5.66732H0.333313V4.33398H4.33331Z",fill:"currentColor"})})},19310:function(e,t,s){"use strict";var a=s(24246),r=s(64925),i=s.n(r),o=s(27378),l=s(44296),n=s(91650),c=s(79851),d=s(47411);let u=()=>{let{isLoading:e}=(0,c.fd)(),t=(0,l.C)(c.U3),{isLoading:s}=(0,d.MO)(),a=(0,l.C)(d.qb),{isLoading:r}=(0,n.te)();return{dataUses:t,dataSubjects:(0,l.C)(n.ZL),dataCategories:a,isLoading:e||s||r}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:s,isLoading:r}=u(),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},n=function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=t(e);if(!a)return{};let r=t(l(e,s)),i=!!a.parent_key;return{name:a.name||void 0,primaryName:i&&(null==r?void 0:r.name)!==a.name&&(null==r?void 0:r.name)||void 0}},c=function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:r,primaryName:i}=n(e,t,s);return r?i?(0,a.jsxs)(o.Fragment,{children:[(0,a.jsxs)("strong",{children:[i,":"]})," ",r]},e):(0,a.jsx)("strong",{children:r},e):e},d=t=>i()(e,{fides_key:t}),_=e=>i()(t,{fides_key:e}),p=e=>i()(s,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:d,getDataUseDisplayName:e=>c(e,d,1),getDataUseDisplayNameProps:e=>n(e,d,1),getDataCategories:()=>t,getDataCategoryByKey:_,getDataCategoryDisplayName:e=>c(e,_,2),getDataCategoryDisplayNameProps:e=>n(e,_,2),getDataSubjects:()=>s,getDataSubjectByKey:p,getDataSubjectDisplayName:e=>{let t=p(e);return t?t.name:e},getPrimaryKey:l,isLoading:r}}},91311:function(e,t,s){"use strict";s.d(t,{Ch:function(){return o},Hy:function(){return l},Lo:function(){return r}});var a,r,i=s(37760);let o="root";(a=r||(r={})).DATA_CATEGORIES="Data categories",a.DATA_USES="Data uses",a.DATA_SUBJECTS="Data subjects";let l=e=>{switch(e){case"Data categories":return{UPDATE:i.Sh.DATA_CATEGORY_UPDATE,CREATE:i.Sh.DATA_CATEGORY_CREATE,DELETE:i.Sh.DATA_CATEGORY_DELETE,READ:i.Sh.DATA_CATEGORY_READ};case"Data uses":return{UPDATE:i.Sh.DATA_USE_UPDATE,CREATE:i.Sh.DATA_USE_CREATE,DELETE:i.Sh.DATA_USE_DELETE,READ:i.Sh.DATA_USE_READ};case"Data subjects":return{UPDATE:i.Sh.DATA_SUBJECT_UPDATE,CREATE:i.Sh.DATA_SUBJECT_CREATE,DELETE:i.Sh.DATA_SUBJECT_DELETE,READ:i.Sh.DATA_SUBJECT_READ};default:throw Error("Unknown taxonomy type: ".concat(e))}}},62091:function(e,t,s){"use strict";s.d(t,{Cd:function(){return i},Xl:function(){return o}});var a=s(37760),r=s(91311);let i=(e,t)=>{let s;if(null==t&&e.every(e=>void 0===e.parent_key))s=e;else{let a=null!=t?t:null;s=e.filter(e=>e.parent_key===a)}return s.map(t=>{var s,a;let r=t.fides_key;return{value:t.fides_key,label:""===t.name||null==t.name?t.fides_key:t.name,description:t.description,children:i(e,r),is_default:null!==(s=t.is_default)&&void 0!==s&&s,active:null!==(a=t.active)&&void 0!==a&&a}})},o=e=>{switch(e){case r.Lo.DATA_CATEGORIES:return a.P6.DATA_CATEGORY;case r.Lo.DATA_SUBJECTS:return a.P6.DATA_SUBJECT;case r.Lo.DATA_USES:return a.P6.DATA_USE;default:return}}},83253:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return ef}});var a,r,i,o,l=s(24246),n=s(27378),c=s(65464),d=s(37541),u=s(56721),_=s(37760);(a=i||(i={})).COLUMN_EXPANSION_STATE="datamap-column-expansion-state",a.COLUMN_NAMES="datamap-column-names",a.COLUMN_ORDER="datamap-column-order",a.COLUMN_SIZING="datamap-column-sizing",a.COLUMN_VISIBILITY="datamap-column-visibility",a.CUSTOM_REPORT_ID="datamap-custom-report-id",a.FILTERS="datamap-filters",a.GROUP_BY="datamap-group-by",a.SORTING_STATE="datamap-sorting-state",a.WRAPPING_COLUMNS="datamap-wrapping-columns",(r=o||(o={})).SYSTEM_NAME="system_name",r.DATA_USE="data_uses",r.DATA_CATEGORY="data_categories",r.DATA_SUBJECT="data_subjects",r.LEGAL_NAME="legal_name",r.DPO="dpo",r.LEGAL_BASIS_FOR_PROCESSING="legal_basis_for_processing",r.ADMINISTRATING_DEPARTMENT="administrating_department",r.COOKIE_MAX_AGE_SECONDS="cookie_max_age_seconds",r.PRIVACY_POLICY="privacy_policy",r.LEGAL_ADDRESS="legal_address",r.COOKIE_REFRESH="cookie_refresh",r.DATA_SECURITY_PRACTICES="data_security_practices",r.DATA_SHARED_WITH_THIRD_PARTIES="data_shared_with_third_parties",r.DATA_STEWARDS="data_stewards",r.DECLARATION_NAME="declaration_name",r.DOES_INTERNATIONAL_TRANSFERS="does_international_transfers",r.DPA_LOCATION="dpa_location",r.DESTINATIONS="egress",r.EXEMPT_FROM_PRIVACY_REGULATIONS="exempt_from_privacy_regulations",r.FEATURES="features",r.FIDES_KEY="fides_key",r.FLEXIBLE_LEGAL_BASIS_FOR_PROCESSING="flexible_legal_basis_for_processing",r.IMPACT_ASSESSMENT_LOCATION="impact_assessment_location",r.SOURCES="ingress",r.JOINT_CONTROLLER_INFO="joint_controller_info",r.LEGAL_BASIS_FOR_PROFILING="legal_basis_for_profiling",r.LEGAL_BASIS_FOR_TRANSFERS="legal_basis_for_transfers",r.LEGITIMATE_INTEREST_DISCLOSURE_URL="legitimate_interest_disclosure_url",r.PROCESSES_PERSONAL_DATA="processes_personal_data",r.REASON_FOR_EXEMPTION="reason_for_exemption",r.REQUIRES_DATA_PROTECTION_ASSESSMENTS="requires_data_protection_assessments",r.RESPONSIBILITY="responsibility",r.RETENTION_PERIOD="retention_period",r.SHARED_CATEGORIES="shared_categories",r.SPECIAL_CATEGORY_LEGAL_BASIS="special_category_legal_basis",r.THIRD_PARTIES="third_parties",r.COOKIES="cookies",r.USES_COOKIES="uses_cookies",r.USES_NON_COOKIE_ACCESS="uses_non_cookie_access",r.USES_PROFILING="uses_profiling",r.SYSTEM_UNDECLARED_DATA_CATEGORIES="system_undeclared_data_categories",r.DATA_USE_UNDECLARED_DATA_CATEGORIES="data_use_undeclared_data_categories",r.PROCESSES_SPECIAL_CATEGORY_DATA="processes_special_category_data";let p={system_name:"System",data_uses:"Data use",data_categories:"Data categories",data_subjects:"Data subject",legal_name:"Legal name",dpo:"Data privacy officer",legal_basis_for_processing:"Legal basis for processing",administrating_department:"Administrating department",cookie_max_age_seconds:"Cookie max age seconds",privacy_policy:"Privacy policy",legal_address:"Legal address",cookie_refresh:"Cookie refresh",data_security_practices:"Data security practices",data_shared_with_third_parties:"Data shared with third parties",data_stewards:"Data stewards",declaration_name:"Declaration name",does_international_transfers:"Does international transfers",dpa_location:"DPA location",egress:"Destination",exempt_from_privacy_regulations:"Exempt from privacy regulations",features:"Features",fides_key:"Fides key",flexible_legal_basis_for_processing:"Flexible legal basis for processing",impact_assessment_location:"Impact assessment location",ingress:"Source",joint_controller_info:"Joint controller info",legal_basis_for_profiling:"Legal basis for profiling",legal_basis_for_transfers:"Legal basis for transfers",legitimate_interest_disclosure_url:"Legitimate interest disclosure URL",processes_personal_data:"Processes personal data",reason_for_exemption:"Reason for exemption",requires_data_protection_assessments:"Requires data protection assessments",responsibility:"Responsibility",retention_period:"Retention period",shared_categories:"Shared categories",special_category_legal_basis:"Special category legal basis",third_parties:"Third parties",system_undeclared_data_categories:"System undeclared data categories",data_use_undeclared_data_categories:"Data use undeclared data categories",cookies:"Cookies",uses_cookies:"Uses cookies",uses_non_cookie_access:"Uses non-cookie access",uses_profiling:"Uses profiling",processes_special_category_data:"Processes special category data"},m={[o.SYSTEM_UNDECLARED_DATA_CATEGORIES]:!1,[o.DATA_USE_UNDECLARED_DATA_CATEGORIES]:!1},E={dataUses:[],dataSubjects:[],dataCategories:[]},S=(0,n.createContext)({}),h=e=>{let{children:t}=e,[s,a]=(0,u._)(i.CUSTOM_REPORT_ID,""),[r,o]=(0,u._)(i.GROUP_BY,_.fI.SYSTEM_DATA_USE),[c,d]=(0,u._)(i.FILTERS,E),[p,h]=(0,u._)(i.COLUMN_ORDER,[]),[A,g]=(0,u._)(i.COLUMN_VISIBILITY,m),[x,f]=(0,u._)(i.COLUMN_SIZING,{}),[T,C]=(0,u._)(i.COLUMN_NAMES,{}),R=(0,n.useMemo)(()=>({savedCustomReportId:s,setSavedCustomReportId:a,groupBy:r,setGroupBy:o,selectedFilters:c,setSelectedFilters:d,columnOrder:p,setColumnOrder:h,columnVisibility:A,setColumnVisibility:g,columnSizing:x,setColumnSizing:f,columnNameMapOverrides:T,setColumnNameMapOverrides:C}),[s,a,r,o,c,d,p,h,A,g,x,f,T,C]);return(0,l.jsx)(S.Provider,{value:R,children:t})},A=()=>{let e=(0,n.useContext)(S);if(!e||0===Object.keys(e).length)throw Error("useDatamapReport must be used within a DatamapReportProvider");return e};var g=s(59003),x=s(92222),f=s(8540),T=s(96013),C=s(34090),R=s(66726),O=s.n(R),j=s(44296),b=s(19310),D=s(62528),v=s(38615),y=s(36768),I=s(12003),N=s(54321),L=e=>{let{children:t,heading:s,onCancel:a,onConfirm:r,isLoading:i,cancelButtonText:o,continueButtonText:n,"data-testid":c="standard-dialog",...d}=e,{onClose:u}=d;return(0,l.jsxs)(T.u_l,{closeOnOverlayClick:i,...d,children:[(0,l.jsx)(T.ZAr,{}),(0,l.jsxs)(T.hzk,{"data-testid":c,children:[s&&(0,l.jsx)(T.xBx,{children:s}),(0,l.jsx)(T.olH,{isDisabled:i,"data-testid":"standard-dialog-close-btn"}),t&&(0,l.jsx)(T.fef,{children:t}),(0,l.jsxs)(T.mzw,{gap:3,width:"100%",sx:{"& button":{width:"100%"}},children:[(0,l.jsx)(T.wpx,{onClick:()=>{a&&a(),u()},"data-testid":"".concat(c?"".concat(c,"-"):"","cancel-btn"),disabled:i,children:o||"Cancel"}),(0,l.jsx)(T.wpx,{onClick:r,type:"primary","data-testid":"".concat(c?"".concat(c,"-"):"","continue-btn"),loading:i,children:n||"Continue"})]})]})]})},w=s(31404),P=e=>{let[t,s]=(0,n.useState)(w.T2.csv),{onConfirm:a}=e;return(0,l.jsx)(L,{heading:"Export report",continueButtonText:"Download",size:"xl",...e,onConfirm:()=>a(t),"data-testid":"export-modal",children:(0,l.jsxs)(T.kCb,{direction:"column",gap:3,pb:3,children:[(0,l.jsx)(T.xvT,{textAlign:"left",children:"Export your data map report using the options below. Depending on the number of rows, the file may take a few minutes to process."}),(0,l.jsxs)(T.NIc,{children:[(0,l.jsx)(T.lXp,{htmlFor:"format",children:"Choose Format"}),(0,l.jsx)(T.WPr,{id:"format",value:t,onChange:s,"data-testid":"export-format-select",options:[{value:w.T2.csv,label:"CSV"},{value:w.T2.xlsx,label:"XLSX"}],className:"w-full"})]})]})})},M=s(72809),U=s(91650),k=s(79851),G=s(62091),H=s(35249);let Y=e=>{let{label:t,children:s,...a}=e;return(0,l.jsxs)(T.Qdk,{...a,children:[(0,l.jsx)(T.X6q,{children:(0,l.jsxs)(T.KFZ,{height:"100%","data-testid":"filter-modal-accordion-button",textAlign:"left",fontWeight:600,children:[(0,l.jsx)(T.xuv,{flex:1,children:t}),(0,l.jsx)(T.XEm,{boxSize:7})]})}),(0,l.jsx)(T.Hk3,{children:s})]})},F=e=>{let{columnNameMap:t,selectedFilters:s,onFilterChange:a,onClose:r,...i}=e;(0,k.fd)(),(0,U.te)(),(0,H.MO)();let{dataUses:o,dataSubjects:c,dataCategories:d}=s,u=(0,j.C)(k.U3),_=(0,j.C)(U.ZL),p=(0,j.C)(H.qb),[m,E]=(0,n.useState)(o),[S,h]=(0,n.useState)(c),[A,g]=(0,n.useState)(d);(0,n.useEffect)(()=>{E(o)},[o]),(0,n.useEffect)(()=>{h(c)},[c]),(0,n.useEffect)(()=>{g(d)},[d]);let x=(0,n.useMemo)(()=>(0,G.Cd)(u),[u]),f=(0,n.useMemo)(()=>(0,G.Cd)(_),[_]),C=(0,n.useMemo)(()=>(0,G.Cd)(p),[p]);return(0,l.jsx)(L,{heading:"Filter Datamap Report",...i,onCancel:()=>{E([]),h([]),g([]),a({dataUses:[],dataSubjects:[],dataCategories:[]}),r()},onConfirm:()=>{a({dataUses:m,dataSubjects:S,dataCategories:A}),r()},onClose:r,cancelButtonText:"Reset filters",continueButtonText:"Done","data-testid":"datamap-report-filter-modal",children:(0,l.jsxs)(T.UQy,{allowToggle:!0,children:[(0,l.jsx)(Y,{label:t.data_uses,children:(0,l.jsx)(M.ZP,{nodes:x,selected:m,onSelected:E,"data-testid":"filter-modal-checkbox-tree-uses"})}),(0,l.jsx)(Y,{label:t.data_categories,children:(0,l.jsx)(M.ZP,{nodes:C,selected:A,onSelected:g,"data-testid":"filter-modal-checkbox-tree-categories"})}),(0,l.jsx)(Y,{label:t.data_subjects,children:(0,l.jsx)(M.ZP,{nodes:f,selected:S,onSelected:h,"data-testid":"filter-modal-checkbox-tree-subjects"})})]})})};var V=s(96878),Z=s(91591),B=s(60136),z=s(79711);let{useGetMinimalCustomReportsQuery:W,useLazyGetCustomReportByIdQuery:q,usePostCustomReportMutation:X,useDeleteCustomReportMutation:J}=s(21618).u.injectEndpoints({endpoints:e=>({getMinimalCustomReports:e.query({query:e=>{let{pageIndex:t=1,pageSize:s=50,report_type:a=_.C2.DATAMAP}=e,r="page=".concat(t,"&size=").concat(s,"&report_type=").concat(a);return{url:"plus/custom-report/minimal?".concat(r)}},providesTags:["Custom Reports"]}),getCustomReportById:e.query({query:e=>({url:"plus/custom-report/".concat(e)}),providesTags:(e,t,s)=>[{type:"Custom Reports",id:s}]}),postCustomReport:e.mutation({query:e=>({method:"POST",url:"plus/custom-report",body:e}),invalidatesTags:["Custom Reports"]}),deleteCustomReport:e.mutation({query:e=>({method:"DELETE",url:"plus/custom-report/".concat(e)}),invalidatesTags:["Custom Reports"]})})});var K=s(59389),Q=s(34803);let $="Report name",ee=e=>{let{isOpen:t,handleClose:s,tableStateToSave:a,columnMapToSave:r={},unavailableNames:i,onCreateCustomReport:o}=e,c=(0,T.pmc)(),[d]=X(),u=(0,n.useMemo)(()=>K.Ry().shape({reportName:K.Z_().label($).required("Please provide a name for this report").test("is-unique","",async(e,t)=>null==i||!i.includes(e)||t.createError({message:"This name already exists"})).max(80,"Report name is too long (max 80 characters)")}),[i]),p=async e=>{var t;let i={};Object.entries(r).forEach(e=>{let[t,s]=e;i[t]={label:s,enabled:!0}}),Object.entries(null!==(t=null==a?void 0:a.columnVisibility)&&void 0!==t?t:{}).forEach(e=>{let[t,s]=e;i[t]||(i[t]={}),i[t].enabled=s});try{let t={name:e.trim(),type:_.C2.DATAMAP,config:{column_map:i,table_state:a}},r=await d(t);if((0,B.D4)(r))throw r.error;o(r.data),s()}catch(e){c({status:"error",description:(0,B.e$)(e,"A problem occurred while creating the report.")})}};return(0,l.jsxs)(T.u_l,{size:"lg",isOpen:t,onClose:s,motionPreset:"none",children:[(0,l.jsx)(T.ZAr,{}),(0,l.jsxs)(T.hzk,{children:[(0,l.jsx)(T.xBx,{pb:0,children:"Create a report"}),(0,l.jsx)(C.J9,{initialValues:{reportName:""},onSubmit:e=>p(e.reportName),onReset:s,validateOnBlur:!1,validationSchema:u,children:e=>{let{dirty:t,isValid:s}=e;return(0,l.jsxs)(C.l0,{"data-testid":"custom-report-form",children:[(0,l.jsxs)(T.fef,{children:[(0,l.jsx)(T.xvT,{fontSize:"sm",color:"gray.600",pb:6,children:"Customize and save your current filter settings for easy access in the future. This saved report will include the column layout and currently applied filter settings."}),(0,l.jsx)(Q.j0,{id:"reportName",name:"reportName",isRequired:!0,label:$,placeholder:"Enter a name for the report...",variant:"stacked",maxLength:80})]}),(0,l.jsxs)(T.mzw,{gap:2,children:[(0,l.jsx)(T.wpx,{size:"small",htmlType:"reset",children:"Cancel"}),(0,l.jsx)(T.wpx,{size:"small",disabled:!t||!s,type:"primary","data-testid":"custom-report-form-submit",htmlType:"submit",children:"Save"})]})]})}})]})]})},et="Report",es="Reports",ea=e=>{var t;let{reportType:s,savedReportId:a,tableStateToSave:r,currentColumnMap:i,onCustomReportSaved:o,onSavedReportDeleted:c}=e,d=(0,v.Tg)([_.Sh.CUSTOM_REPORT_CREATE]),u=(0,v.Tg)([_.Sh.CUSTOM_REPORT_DELETE]),p=(0,T.pmc)({id:"custom-report-toast"}),{data:m,isLoading:E}=W({report_type:s}),[S,h]=(0,n.useState)(),[A]=q(),[g]=J(),{isOpen:x,onToggle:f,onOpen:R,onClose:O}=(0,T.qY0)(),{isOpen:j,onOpen:b,onClose:D}=(0,T.qY0)(),{isOpen:y,onOpen:I,onClose:N}=(0,T.qY0)(),[L,w]=(0,n.useState)(),[P,M]=(0,n.useState)(),[U,k]=(0,n.useState)(),[G,H]=(0,n.useState)(!1),Y=(0,n.useMemo)(()=>{var e;let t=null==m?void 0:null===(e=m.items.find(e=>e.id===a))||void 0===e?void 0:e.name;return null!=t?t:es},[null==m?void 0:m.items,a]),F=!E&&!(null==m?void 0:null===(t=m.items)||void 0===t?void 0:t.length),V=e=>{h(null==m?void 0:m.items.filter(t=>t.name.toLowerCase().includes(e.toLowerCase())))},X=async e=>{w(e);let{data:t,isError:s,error:a}=await A(e);if(s){let e=(0,B.e$)(a,"A problem occurred while fetching the ".concat(et,"."));e.includes("not found")&&c(),p({status:"error",description:e})}else M(t)},K=()=>{w(""),M(void 0),H(!1)},Q=()=>{P?(H(!1),P.id!==a&&o(P),O()):L?H(!0):(o(null),O())},$=async e=>{e===(null==P?void 0:P.id)&&(K(),c()),g(e)};(0,n.useEffect)(()=>{m&&h(m.items)},[m]),(0,n.useEffect)(()=>{G&&(H(!1),Q())},[P]),(0,n.useEffect)(()=>{a?X(a):K()},[a]),(0,n.useEffect)(()=>{U&&I()},[I,U]);let ea=!P&&!a||(null==P?void 0:P.id)===a;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(T.J2e,{placement:"bottom-end",isOpen:x,onClose:Q,id:"custom-reports-selection",children:[(0,l.jsx)(T.xol,{children:(0,l.jsx)(T.wpx,{className:"max-w-40",icon:(0,l.jsx)(T.v4q,{}),iconPosition:"end","data-testid":"custom-reports-trigger",onClick:f,children:(0,l.jsx)(T.xvT,{noOfLines:1,display:"inline-block",children:Y})})}),(0,l.jsx)(T.h_i,{children:(0,l.jsxs)(T.yky,{"data-testid":"custom-reports-popover",children:[(0,l.jsx)(T.QHN,{}),(0,l.jsx)(C.J9,{initialValues:{},onSubmit:Q,onReset:K,children:(0,l.jsxs)(C.l0,{children:[(0,l.jsx)(T.wpx,{size:"small",disabled:F,htmlType:"reset",className:"absolute left-2 top-2","data-testid":"custom-reports-reset-button",children:"Reset"}),(0,l.jsxs)(T.Ytg,{textAlign:"center",children:[(0,l.jsx)(T.xvT,{fontSize:"sm",children:es}),(0,l.jsx)(T.BZy,{size:"sm",mt:3,children:(0,l.jsx)(T.IIB,{type:"text",borderRadius:"md",placeholder:"Search...",onChange:e=>V(e.target.value)})})]}),(0,l.jsx)(T.usR,{top:2,onClick:()=>{a?X(a):K(),O()},"data-testid":"custom-report-popover-cancel"}),(0,l.jsxs)(T.baG,{px:6,pt:5,pb:1,children:[F&&(0,l.jsxs)(T.gCW,{px:2,pt:6,pb:3,"data-testid":"custom-reports-empty-state",children:[(0,l.jsx)(T.hU,{variant:"primary",backgroundColor:"gray.500",isRound:!0,size:"xs","aria-label":"add ".concat(et),icon:(0,l.jsx)(Z.d,{}),onClick:b,"data-testid":"add-report-button"}),(0,l.jsxs)(T.xvT,{fontSize:"sm",textAlign:"center",color:"gray.500",children:["No ",es.toLowerCase()," have been created. Start by applying your preferred filter and column settings, then create a"," ",et.toLowerCase()," for easy access later."]})]}),!F&&(E?(0,l.jsxs)(T.gCW,{pb:2,children:[(0,l.jsx)(T.OdW,{width:"100%",height:T.rSc.space[4]}),(0,l.jsx)(T.OdW,{width:"100%",height:T.rSc.space[4]}),(0,l.jsx)(T.OdW,{width:"100%",height:T.rSc.space[4]})]}):(0,l.jsx)(T.y02.Group,{onChange:e=>X(e.target.value),value:L,className:"flex flex-col gap-2",children:null==S?void 0:S.map(e=>(0,l.jsxs)(T.jqI,{className:u?"justify-between":"justify-start",children:[(0,l.jsx)(T.y02,{value:e.id,name:"custom-report-id","data-testid":"custom-report-item",children:(0,l.jsx)(T.xvT,{fontSize:"sm",children:e.name})}),u&&(0,l.jsx)(T.wpx,{type:"text",size:"small",icon:(0,l.jsx)(z.q,{fontSize:16}),onClick:()=>k(e),"data-testid":"delete-report-button"})]},e.id))}))]}),(0,l.jsx)(T.DT9,{border:"none",px:6,pb:4,pt:4,children:(0,l.jsxs)(T.Ugi,{children:[d&&r&&(0,l.jsxs)(T.wpx,{size:"small",onClick:b,className:"w-full","data-testid":"create-report-button",htmlType:"button",children:["+ Create ",et.toLowerCase()]}),(0,l.jsx)(T.wpx,{size:"small",type:"primary",loading:G,disabled:ea,className:"w-full","data-testid":"apply-report-button",htmlType:"submit",children:"Apply"})]})})]})})]})})]}),(0,l.jsx)(ee,{isOpen:j,handleClose:()=>{D(),setTimeout(()=>{R()},100)},tableStateToSave:r,columnMapToSave:i,unavailableNames:null==m?void 0:m.items.map(e=>e.name),onCreateCustomReport:o}),(0,l.jsx)(T.cVQ,{isOpen:y,onClose:()=>{k(void 0),N()},onConfirm:()=>{U&&$(U.id),N()},title:"Delete ".concat(et),message:(0,l.jsxs)(T.xvT,{children:["You are about to permanently delete the"," ",et.toLowerCase()," named"," ",(0,l.jsx)("strong",{children:null==U?void 0:U.name}),". Are you sure you would like to continue?"]})})]})};var er=s(19785),ei=s.n(er),eo=s(55807),el=s.n(eo),en=s(32526),ec=s.n(en),ed=s(98320),eu=s(71533);let e_=(0,x.Cl)(),ep=(e,t)=>({cell:e=>(0,l.jsx)(f.G3,{value:e.getValue()}),header:s=>{let a={};return Object.keys(e).forEach(t=>{"string"==typeof e[t]?a[t]=e[t]:e[t].label&&(a[t]=e[t].label||"")}),(0,l.jsx)(ed.Hm,{value:(0,eu.AH)({columnId:s.column.id,columnNameMap:a}),defaultValue:p[s.column.id]||(0,eu.AH)({columnId:s.column.id}),isEditing:t,...s})}}),em=(e,t)=>{var s;let a=(null==e?void 0:null===(s=e.items)||void 0===s?void 0:s.length)?Object.keys(e.items[0]):[],r=Object.values(o);return a.filter(e=>!r.includes(e)).filter(e=>e.startsWith("privacy_declaration_")||e.startsWith("system_")).map(e=>{let s=t.find(t=>e.includes(ec()(t.name)));return e_.accessor(t=>t[e],{id:e,cell:e=>Array.isArray(e.getValue())?(0,l.jsx)(f.WP,{value:e.getValue(),ignoreZero:!0,...e}):(0,l.jsx)(f.G3,{value:e.getValue()}),meta:{showHeaderMenu:(null==s?void 0:s.field_type)==="string[]"}})})},eE=e=>{let{onSelectRow:t,getDataUseDisplayName:s,getDataCategoryDisplayName:a,getDataSubjectDisplayName:r,datamapReport:i,customFields:n,isRenaming:c=!1}=e,d=em(i,n);return[e_.accessor(e=>e.system_name,{enableGrouping:!0,id:o.SYSTEM_NAME,meta:{onCellClick:t}}),e_.accessor(e=>e.data_uses,{id:o.DATA_USE,cell:e=>{let t=e.getValue();return(0,l.jsx)(f.WP,{suffix:"data uses",ignoreZero:!0,value:ei()(t)?el()(t,s):s(t||""),tagProps:{color:"white"},...e})},meta:{width:"auto"}}),e_.accessor(e=>e.data_categories,{id:o.DATA_CATEGORY,cell:e=>{let t=e.getValue();if(!t||0===t.length)return null;let s=ei()(t)?t.map(e=>({label:a(e),key:e})):[{label:a(t),key:t}];return(0,l.jsx)(ed.mb,{values:s,cellProps:e})},meta:{showHeaderMenu:!c,showHeaderMenuWrapOption:!0,width:"auto",overflow:"hidden"}}),e_.accessor(e=>e.data_subjects,{id:o.DATA_SUBJECT,cell:e=>{let t=e.getValue();return(0,l.jsx)(f.WP,{suffix:"data subjects",ignoreZero:!0,value:ei()(t)?el()(t,r):r(t||""),tagProps:{color:"white"},...e})},meta:{showHeaderMenu:!c}}),e_.accessor(e=>e.legal_name,{id:o.LEGAL_NAME}),e_.accessor(e=>e.dpo,{id:o.DPO}),e_.accessor(e=>e.legal_basis_for_processing,{id:o.LEGAL_BASIS_FOR_PROCESSING}),e_.accessor(e=>e.administrating_department,{id:o.ADMINISTRATING_DEPARTMENT}),e_.accessor(e=>e.cookie_max_age_seconds,{id:o.COOKIE_MAX_AGE_SECONDS}),e_.accessor(e=>e.privacy_policy,{id:o.PRIVACY_POLICY}),e_.accessor(e=>e.legal_address,{id:o.LEGAL_ADDRESS}),e_.accessor(e=>e.cookie_refresh,{id:o.COOKIE_REFRESH}),e_.accessor(e=>e.data_security_practices,{id:o.DATA_SECURITY_PRACTICES}),e_.accessor(e=>e.data_shared_with_third_parties,{id:o.DATA_SHARED_WITH_THIRD_PARTIES}),e_.accessor(e=>e.processes_special_category_data,{id:o.PROCESSES_SPECIAL_CATEGORY_DATA}),e_.accessor(e=>e.data_stewards,{id:o.DATA_STEWARDS,cell:e=>(0,l.jsx)(f.WP,{suffix:"data stewards",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!c,width:"auto"}}),e_.accessor(e=>e.declaration_name,{id:o.DECLARATION_NAME}),e_.accessor(e=>e.does_international_transfers,{id:o.DOES_INTERNATIONAL_TRANSFERS}),e_.accessor(e=>e.dpa_location,{id:o.DPA_LOCATION}),e_.accessor(e=>e.egress,{id:o.DESTINATIONS,cell:e=>(0,l.jsx)(f.WP,{suffix:"destinations",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!c,width:"auto"}}),e_.accessor(e=>e.exempt_from_privacy_regulations,{id:o.EXEMPT_FROM_PRIVACY_REGULATIONS}),e_.accessor(e=>e.features,{id:o.FEATURES,cell:e=>(0,l.jsx)(f.WP,{suffix:"features",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!c,width:"auto"}}),e_.accessor(e=>e.fides_key,{id:o.FIDES_KEY}),e_.accessor(e=>e.flexible_legal_basis_for_processing,{id:o.FLEXIBLE_LEGAL_BASIS_FOR_PROCESSING}),e_.accessor(e=>e.impact_assessment_location,{id:o.IMPACT_ASSESSMENT_LOCATION}),e_.accessor(e=>e.ingress,{id:o.SOURCES,cell:e=>(0,l.jsx)(f.WP,{suffix:"sources",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!c,width:"auto"}}),e_.accessor(e=>e.joint_controller_info,{id:o.JOINT_CONTROLLER_INFO}),e_.accessor(e=>e.legal_basis_for_profiling,{id:o.LEGAL_BASIS_FOR_PROFILING,cell:e=>(0,l.jsx)(f.WP,{suffix:"profiles",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!c,width:"auto"}}),e_.accessor(e=>e.legal_basis_for_transfers,{id:o.LEGAL_BASIS_FOR_TRANSFERS,cell:e=>(0,l.jsx)(f.WP,{suffix:"transfers",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!c,width:"auto"}}),e_.accessor(e=>e.legitimate_interest_disclosure_url,{id:o.LEGITIMATE_INTEREST_DISCLOSURE_URL}),e_.accessor(e=>e.processes_personal_data,{id:o.PROCESSES_PERSONAL_DATA}),e_.accessor(e=>e.reason_for_exemption,{id:o.REASON_FOR_EXEMPTION}),e_.accessor(e=>e.requires_data_protection_assessments,{id:o.REQUIRES_DATA_PROTECTION_ASSESSMENTS}),e_.accessor(e=>e.responsibility,{id:o.RESPONSIBILITY,cell:e=>(0,l.jsx)(f.WP,{suffix:"responsibilities",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!c,width:"auto"}}),e_.accessor(e=>e.retention_period,{id:o.RETENTION_PERIOD}),e_.accessor(e=>e.shared_categories,{id:o.SHARED_CATEGORIES,cell:e=>(0,l.jsx)(f.WP,{suffix:"shared categories",ignoreZero:!0,value:e.getValue(),tagProps:{color:"white"},...e}),meta:{showHeaderMenu:!c,width:"auto"}}),e_.accessor(e=>e.special_category_legal_basis,{id:o.SPECIAL_CATEGORY_LEGAL_BASIS}),e_.accessor(e=>e.third_parties,{id:o.THIRD_PARTIES}),e_.accessor(e=>e.system_undeclared_data_categories,{id:o.SYSTEM_UNDECLARED_DATA_CATEGORIES,cell:e=>{let t=e.getValue();if(!t||0===t.length)return null;let s=ei()(t)?t.map(e=>({label:a(e),key:e})):[{label:a(t),key:t}];return(0,l.jsx)(ed.mb,{values:s,cellProps:e})},meta:{showHeaderMenu:!c,showHeaderMenuWrapOption:!0,width:"auto",overflow:"hidden"}}),e_.accessor(e=>e.data_use_undeclared_data_categories,{id:o.DATA_USE_UNDECLARED_DATA_CATEGORIES,cell:e=>{let t=e.getValue();if(!t||0===t.length)return null;let s=ei()(t)?t.map(e=>({label:a(e),key:e})):[{label:a(t),key:t}];return(0,l.jsx)(ed.mb,{values:s,cellProps:e})},meta:{showHeaderMenu:!c,showHeaderMenuWrapOption:!0,width:"auto",overflow:"hidden"}}),e_.accessor(e=>e.cookies,{id:o.COOKIES,cell:e=>(0,l.jsx)(f.WP,{ignoreZero:!0,suffix:"cookies",value:e.getValue(),...e}),meta:{showHeaderMenu:!c,width:"auto"}}),e_.accessor(e=>e.uses_cookies,{id:o.USES_COOKIES}),e_.accessor(e=>e.uses_non_cookie_access,{id:o.USES_NON_COOKIE_ACCESS}),e_.accessor(e=>e.uses_profiling,{id:o.USES_PROFILING}),...d]},eS=e=>e===_.fI.DATA_USE_SYSTEM?[o.DATA_USE]:[o.SYSTEM_NAME],eh=e=>{let t=[];return _.fI.SYSTEM_DATA_USE===e&&(t=[o.SYSTEM_NAME,o.DATA_USE]),_.fI.DATA_USE_SYSTEM===e&&(t=[o.DATA_USE,o.SYSTEM_NAME]),t},eA=(e,t)=>eh(e).concat(t.filter(e=>e!==o.SYSTEM_NAME&&e!==o.DATA_USE)),eg={items:[],total:0,page:1,size:25,pages:1},ex=()=>{let e=(0,v.Tg)([_.Sh.CUSTOM_REPORT_READ]),{isLoading:t}=(0,V.x8)(),{PAGE_SIZES:s,pageSize:a,setPageSize:r,onPreviousPageClick:o,isPreviousPageDisabled:c,onNextPageClick:d,isNextPageDisabled:u,startRange:S,endRange:h,pageIndex:R,setTotalPages:L,resetPageIndexToDefault:w}=(0,f.oi)(),M=(0,T.pmc)({id:"datamap-report-toast"}),{isOpen:U,onClose:k,onOpen:G}=(0,T.qY0)(),{getDataUseDisplayName:H,getDataCategoryDisplayName:Y,getDataSubjectDisplayName:Z,isLoading:B}=(0,b.Z)(),[z,W]=(0,n.useState)(),{savedCustomReportId:q,setSavedCustomReportId:X,groupBy:J,setGroupBy:K,selectedFilters:Q,setSelectedFilters:$,columnOrder:ee,setColumnOrder:et,columnVisibility:es,setColumnVisibility:er,columnSizing:ei,setColumnSizing:eo,columnNameMapOverrides:el,setColumnNameMapOverrides:en}=A(),[ec,ed]=(0,n.useState)(!1),eu=e=>{X(""),K(e),ed(!0),w()},[e_,em]=(0,n.useState)(""),ex=(0,n.useCallback)(e=>{w(),em(e)},[w,em]),ef={pageIndex:R,pageSize:a,groupBy:J,search:e_,dataUses:(0,y.du)(Q.dataUses,"data_uses"),dataSubjects:(0,y.du)(Q.dataSubjects,"data_subjects"),dataCategories:(0,y.du)(Q.dataCategories,"data_categories")},{data:eT,isLoading:eC,isFetching:eR}=(0,I.tH)(ef),[eO,{isLoading:ej,isError:eb}]=(0,I.Eo)(),{data:eD,totalRows:ev}=(0,n.useMemo)(()=>{let e=eT||eg,t=e.items;return ec&&ed(!1),L(e.pages),{totalRows:e.total,data:t}},[eT]);(0,V.GH)();let ey=(0,j.C)(V.fN),[eI,eN]=(0,n.useState)(!1),eL=(0,n.useMemo)(()=>eT?eE({onSelectRow:e=>W(e.fides_key),getDataUseDisplayName:H,getDataCategoryDisplayName:Y,getDataSubjectDisplayName:Z,datamapReport:eT,customFields:ey,isRenaming:eI}):[],[H,Z,Y,eT,ey,eI]),{isOpen:ew,onOpen:eP,onClose:eM}=(0,T.qY0)(),{isOpen:eU,onOpen:ek,onClose:eG}=(0,T.qY0)(),eH=(0,g.b7)({getCoreRowModel:(0,x.sC)(),getGroupedRowModel:(0,x.qe)(),getExpandedRowModel:(0,x.rV)(),manualPagination:!0,enableColumnResizing:!0,columnResizeMode:"onChange",columns:eL,defaultColumn:ep({...p,...el},eI),data:eD,initialState:{expanded:!0,columnSizing:ei,columnOrder:ee,columnVisibility:es,grouping:eS(J)}});(0,n.useEffect)(()=>{J&&eH&&eT&&(0===eH.getState().columnOrder.length?et(eA(J,eH.getAllColumns().map(e=>e.id))):et(eA(J,eH.getState().columnOrder)))},[J,eH,eT]),(0,n.useEffect)(()=>{let e=eS(J);eT&&eH.setGrouping(e)},[eT]);let eY=(0,n.useMemo)(()=>O()(eo,300),[eo]);(0,n.useEffect)(()=>{let e=eH.getState().columnSizing;e&&eY(e)},[eH.getState().columnSizing]);let eF=()=>{switch(J){case _.fI.SYSTEM_DATA_USE:return"system";case _.fI.DATA_USE_SYSTEM:return"data use";default:return"system"}},eV=(e,t)=>{if(e||q){if(!e){try{X(""),er(m),eH.toggleAllColumnsVisible(!0),eH.setColumnVisibility(m),et([]),eH.setColumnOrder([]),K(_.fI.SYSTEM_DATA_USE),$(E),en({}),t({values:{}})}catch(e){M({status:"error",description:"There was a problem resetting the report."})}return}try{var s,a,r,i;if(null===(s=e.config)||void 0===s?void 0:s.table_state){let{groupBy:t,filters:s,columnOrder:a}=e.config.table_state,i={};Object.entries(null!==(r=e.config.column_map)&&void 0!==r?r:{}).forEach(e=>{let[t,s]=e;i[t]=s.enabled||!1}),t&&K(t),s&&$(s),a&&(et(a),eH.setColumnOrder(a)),i&&(er(i),eH.setColumnVisibility(i))}if(null===(a=e.config)||void 0===a?void 0:a.column_map){let s={};Object.entries(null!==(i=e.config.column_map)&&void 0!==i?i:{}).forEach(e=>{let[t,a]=e;a.label&&(s[t]=a.label)}),en(s),t({values:s})}X(e.id),M({status:"success",description:"Report applied successfully."})}catch(e){M({status:"error",description:"There was a problem applying report."})}}};return eC||t||B?(0,l.jsx)(f.I4,{rowHeight:36,numRows:15}):(0,l.jsxs)(T.kCb,{flex:1,direction:"column",overflow:"auto",children:[(0,l.jsx)(F,{columnNameMap:{...p,...el},selectedFilters:Q,isOpen:U,onClose:k,onFilterChange:e=>{X(""),$(e)}}),(0,l.jsx)(f.F1,{isOpen:ew,onClose:eM,headerText:"Data map settings",columnNameMap:{...p,...el},prefixColumns:eh(J),tableInstance:eH,savedCustomReportId:q,onColumnOrderChange:e=>{X(""),eH.setColumnOrder(e),et(e)},onColumnVisibilityChange:e=>{X(""),eH.setColumnVisibility(e),er(e)}}),(0,l.jsx)(P,{isOpen:eU,onClose:eG,onConfirm:e=>{let t={};Object.entries(es).forEach(e=>{let[s,a]=e;t[s]={enabled:a}}),Object.entries(el).forEach(e=>{let[s,a]=e;if(t[s])t[s].label=a;else{var r;t[s]={label:a,enabled:null===(r=es[s])||void 0===r||r}}}),eO({...ef,format:e,report_id:q,report:{name:"",type:"datamap",config:{column_map:t,table_state:{groupBy:J,filters:Q,columnOrder:ee}}}}).then(()=>{eb||eG()})},isLoading:ej}),(0,l.jsx)(C.J9,{initialValues:el,onSubmit:e=>{X(""),en(e),eN(!1)},children:t=>{let{submitForm:s,resetForm:a}=t;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(f.Q$,{children:[(0,l.jsx)(f.HO,{globalFilter:e_,setGlobalFilter:ex,placeholder:"System name, Fides key, or ID"}),(0,l.jsxs)(T.kCb,{alignItems:"center",gap:2,children:[e&&(0,l.jsx)(ea,{reportType:_.C2.DATAMAP,savedReportId:q,tableStateToSave:{groupBy:J,filters:Q,columnOrder:ee,columnVisibility:es},currentColumnMap:el,onCustomReportSaved:e=>eV(e,a),onSavedReportDeleted:()=>{X("")}}),(0,l.jsxs)(T.v2r,{children:[(0,l.jsxs)(T.j2t,{as:T.wpx,icon:(0,l.jsx)(T.v4q,{}),iconPosition:"end",loading:ec,"data-testid":"group-by-menu",children:["Group by ",eF()]}),(0,l.jsxs)(T.qyq,{zIndex:11,"data-testid":"group-by-menu-list",children:[(0,l.jsx)(T.iiZ,{onClick:()=>{eu(_.fI.SYSTEM_DATA_USE)},isChecked:_.fI.SYSTEM_DATA_USE===J,value:_.fI.SYSTEM_DATA_USE,"data-testid":"group-by-system-data-use",children:"System"}),(0,l.jsx)(T.iiZ,{onClick:()=>{eu(_.fI.DATA_USE_SYSTEM)},isChecked:_.fI.DATA_USE_SYSTEM===J,value:_.fI.DATA_USE_SYSTEM,"data-testid":"group-by-data-use-system",children:"Data use"})]})]}),(0,l.jsx)(T.wpx,{"data-testid":"filter-multiple-systems-btn",onClick:G,children:"Filter"}),(0,l.jsx)(T.wpx,{"aria-label":"Export report","data-testid":"export-btn",onClick:ek,icon:(0,l.jsx)(D.nM,{ml:"1.5px"})}),(0,l.jsxs)(T.v2r,{placement:"bottom-end",children:[(0,l.jsx)(T.j2t,{as:T.wpx,icon:(0,l.jsx)(T.nXP,{className:"rotate-90"}),"data-testid":"more-menu","aria-label":"More options",className:"w-6 gap-0"}),(0,l.jsxs)(T.qyq,{"data-testid":"more-menu-list",children:[(0,l.jsx)(T.sNh,{onClick:eP,"data-testid":"edit-columns-btn",children:"Edit columns"}),(0,l.jsx)(T.sNh,{onClick:()=>eN(!0),"data-testid":"rename-columns-btn",children:"Rename columns"})]})]}),eI&&(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(T.wpx,{size:"small","data-testid":"rename-columns-reset-btn",onClick:()=>{en({}),X(""),a({values:{}}),eN(!1)},children:"Reset all"}),(0,l.jsx)(T.wpx,{size:"small","data-testid":"rename-columns-cancel-btn",onClick:()=>{a({values:el}),eN(!1)},children:"Cancel"}),(0,l.jsx)(T.wpx,{size:"small",type:"primary",htmlType:"submit","data-testid":"rename-columns-apply-btn",onClick:s,children:"Apply"})]})]})]}),(0,l.jsx)(C.l0,{children:(0,l.jsx)(f.ZK,{tableInstance:eH,columnExpandStorageKey:i.COLUMN_EXPANSION_STATE,columnWrapStorageKey:i.WRAPPING_COLUMNS})})]})}}),(0,l.jsx)(f.s8,{totalRows:ev||0,pageSizes:s,setPageSize:r,onPreviousPageClick:o,isPreviousPageDisabled:c||eR,onNextPageClick:d,isNextPageDisabled:u||eR,startRange:S,endRange:h}),(0,l.jsx)(N.Z,{selectedSystemId:z,resetSelectedSystemId:()=>W(void 0)})]})};var ef=()=>(0,l.jsxs)(c.Z,{title:"Datamap Report",children:[(0,l.jsx)(d.Z,{"data-testid":"datamap-report-heading",heading:"Data map report"}),(0,l.jsx)(h,{children:(0,l.jsx)(ex,{})})]})}},function(e){e.O(0,[8033,5559,4554,2866,9278,3967,8540,5973,2017,4321,2888,9774,179],function(){return e(e.s=86548)}),_N_E=e.O()}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9196],{86548:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/reporting/datamap",function(){return s(83253)}])},72809:function(e,t,s){"use strict";var a=s(24246),r=s(52615),i=s(27378);let o=e=>{let t=e.split("."),s=[];return t.forEach(e=>{let t=s.length>0?s[s.length-1]:null;t?s.push("".concat(t,".").concat(e)):s.push(e)}),s},l=(e,t)=>{let s=o(t).filter(e=>e!==t);return e.filter(e=>s.includes(e)).length>0},n=(e,t)=>!!(e===t||e.startsWith("".concat(t,"."))),c=(e,t,s)=>{let a=null!=s?s:[];return e.forEach(e=>{e.children&&c(e.children,t,a),n(e.value,t)&&a.push(e)}),a},d=e=>{let{node:t,isChecked:s,onChecked:i,isExpanded:o,onExpanded:l,isIndeterminate:n,isDisabled:c,children:d}=e,{value:u,label:_}=t,p=!!t.children&&t.children.length>0;return(0,a.jsxs)(r.xuv,{children:[(0,a.jsxs)(r.xuv,{display:"flex",justifyContent:"space-between",_hover:{backgroundColor:"gray.100",cursor:"pointer"},onClick:()=>l(t),minHeight:8,children:[(0,a.jsx)(r.XZJ,{colorScheme:"complimentary",value:u,isChecked:!n&&s,isIndeterminate:n,isDisabled:c,onChange:()=>i(t),mx:2,"data-testid":"checkbox-".concat(_),children:_}),p?(0,a.jsx)(r.wpx,{"data-testid":"expand-".concat(_),"aria-label":o?"collapse":"expand",icon:(0,a.jsx)(r.v4q,{boxSize:5}),type:"text",onClick:()=>l(t),className:o?"rotate-180":void 0}):null]}),d&&(0,a.jsx)(r.xuv,{ml:5,children:d})]})};t.ZP=e=>{let{nodes:t,selected:s,onSelected:u,..._}=e,[p,m]=(0,i.useState)([]),[E,S]=(0,i.useState)([]);(0,i.useEffect)(()=>{let e=Array.from(new Set([...s.map(e=>o(e)).reduce((e,t)=>e.concat(t),[]),...s.map(e=>c(t,e)).reduce((e,t)=>e.concat(t),[]).map(e=>e.value)]));S(e),m(e)},[s,t]);let h=e=>{let a=[],r=[];p.indexOf(e.value)>=0?(a=p.filter(t=>!n(t,e.value)),r=s.filter(t=>!n(t,e.value))):(a=[...p,...c(t,e.value).map(e=>e.value)],r=[...s,e.value]),m(a),u(r)},A=e=>{E.indexOf(e.value)>=0?S(E.filter(t=>!n(t,e.value))):S([...E,e.value])},g=e=>{if(e.children){let r=p.indexOf(e.value)>=0,o=E.indexOf(e.value)>=0,n=c(t,e.value),u=r&&e.children.length>0&&p.filter(t=>t.startsWith("".concat(e.value,"."))).length+1!==n.length,_=l(s,e.value);return(0,a.jsx)(d,{node:e,isChecked:r,onChecked:h,isExpanded:o,onExpanded:A,isDisabled:_,isIndeterminate:u,children:o?e.children.map(e=>(0,a.jsx)(i.Fragment,{children:g(e)},e.value)):void 0})}return null};return(0,a.jsx)(r.xuv,{..._,children:t.map(e=>(0,a.jsx)(r.xuv,{children:g(e)},e.value))})}},65464:function(e,t,s){"use strict";var a=s(24246),r=s(52615),i=s(88038),o=s.n(i);s(27378),t.Z=e=>{let{children:t,title:s,mainProps:i}=e;return(0,a.jsxs)(r.kCb,{"data-testid":s,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,a.jsxs)(o(),{children:[(0,a.jsxs)("title",{children:["Fides Admin UI - ",s]}),(0,a.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,a.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,a.jsx)(r.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...i,children:t})]})}},79711:function(e,t,s){"use strict";s.d(t,{q:function(){return r}});var a=s(24246);let r=(0,s(52615).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,a.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},38615:function(e,t,s){"use strict";s.d(t,{Tg:function(){return o}});var a=s(24246),r=s(44296),i=s(96451);let o=e=>(0,r.C)(i.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:s}=e;return o(t)?(0,a.jsx)(a.Fragment,{children:s}):null}},91591:function(e,t,s){"use strict";s.d(t,{d:function(){return r}});var a=s(24246);let r=(0,s(52615).IUT)({displayName:"AddIcon",viewBox:"0 0 10 10",path:(0,a.jsx)("path",{d:"M4.33331 4.33398V0.333984H5.66665V4.33398H9.66665V5.66732H5.66665V9.66732H4.33331V5.66732H0.333313V4.33398H4.33331Z",fill:"currentColor"})})},19310:function(e,t,s){"use strict";var a=s(24246),r=s(64925),i=s.n(r),o=s(27378),l=s(44296),n=s(91650),c=s(79851),d=s(47411);let u=()=>{let{isLoading:e}=(0,c.fd)(),t=(0,l.C)(c.U3),{isLoading:s}=(0,d.MO)(),a=(0,l.C)(d.qb),{isLoading:r}=(0,n.te)();return{dataUses:t,dataSubjects:(0,l.C)(n.ZL),dataCategories:a,isLoading:e||s||r}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:s,isLoading:r}=u(),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},n=function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=t(e);if(!a)return{};let r=t(l(e,s)),i=!!a.parent_key;return{name:a.name||void 0,primaryName:i&&(null==r?void 0:r.name)!==a.name&&(null==r?void 0:r.name)||void 0}},c=function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:r,primaryName:i}=n(e,t,s);return r?i?(0,a.jsxs)(o.Fragment,{children:[(0,a.jsxs)("strong",{children:[i,":"]})," ",r]},e):(0,a.jsx)("strong",{children:r},e):e},d=t=>i()(e,{fides_key:t}),_=e=>i()(t,{fides_key:e}),p=e=>i()(s,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:d,getDataUseDisplayName:e=>c(e,d,1),getDataUseDisplayNameProps:e=>n(e,d,1),getDataCategories:()=>t,getDataCategoryByKey:_,getDataCategoryDisplayName:e=>c(e,_,2),getDataCategoryDisplayNameProps:e=>n(e,_,2),getDataSubjects:()=>s,getDataSubjectByKey:p,getDataSubjectDisplayName:e=>{let t=p(e);return t?t.name:e},getPrimaryKey:l,isLoading:r}}},91311:function(e,t,s){"use strict";s.d(t,{Ch:function(){return o},Hy:function(){return l},Lo:function(){return r}});var a,r,i=s(37760);let o="root";(a=r||(r={})).DATA_CATEGORIES="Data categories",a.DATA_USES="Data uses",a.DATA_SUBJECTS="Data subjects";let l=e=>{switch(e){case"Data categories":return{UPDATE:i.Sh.DATA_CATEGORY_UPDATE,CREATE:i.Sh.DATA_CATEGORY_CREATE,DELETE:i.Sh.DATA_CATEGORY_DELETE,READ:i.Sh.DATA_CATEGORY_READ};case"Data uses":return{UPDATE:i.Sh.DATA_USE_UPDATE,CREATE:i.Sh.DATA_USE_CREATE,DELETE:i.Sh.DATA_USE_DELETE,READ:i.Sh.DATA_USE_READ};case"Data subjects":return{UPDATE:i.Sh.DATA_SUBJECT_UPDATE,CREATE:i.Sh.DATA_SUBJECT_CREATE,DELETE:i.Sh.DATA_SUBJECT_DELETE,READ:i.Sh.DATA_SUBJECT_READ};default:throw Error("Unknown taxonomy type: ".concat(e))}}},62091:function(e,t,s){"use strict";s.d(t,{Cd:function(){return i},Xl:function(){return o}});var a=s(37760),r=s(91311);let i=(e,t)=>{let s;if(null==t&&e.every(e=>void 0===e.parent_key))s=e;else{let a=null!=t?t:null;s=e.filter(e=>e.parent_key===a)}return s.map(t=>{var s,a;let r=t.fides_key;return{value:t.fides_key,label:""===t.name||null==t.name?t.fides_key:t.name,description:t.description,children:i(e,r),is_default:null!==(s=t.is_default)&&void 0!==s&&s,active:null!==(a=t.active)&&void 0!==a&&a}})},o=e=>{switch(e){case r.Lo.DATA_CATEGORIES:return a.P6.DATA_CATEGORY;case r.Lo.DATA_SUBJECTS:return a.P6.DATA_SUBJECT;case r.Lo.DATA_USES:return a.P6.DATA_USE;default:return}}},83253:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return ef}});var a,r,i,o,l=s(24246),n=s(27378),c=s(65464),d=s(37541),u=s(56721),_=s(37760);(a=i||(i={})).COLUMN_EXPANSION_STATE="datamap-column-expansion-state",a.COLUMN_NAMES="datamap-column-names",a.COLUMN_ORDER="datamap-column-order",a.COLUMN_SIZING="datamap-column-sizing",a.COLUMN_VISIBILITY="datamap-column-visibility",a.CUSTOM_REPORT_ID="datamap-custom-report-id",a.FILTERS="datamap-filters",a.GROUP_BY="datamap-group-by",a.SORTING_STATE="datamap-sorting-state",a.WRAPPING_COLUMNS="datamap-wrapping-columns",(r=o||(o={})).SYSTEM_NAME="system_name",r.DATA_USE="data_uses",r.DATA_CATEGORY="data_categories",r.DATA_SUBJECT="data_subjects",r.LEGAL_NAME="legal_name",r.DPO="dpo",r.LEGAL_BASIS_FOR_PROCESSING="legal_basis_for_processing",r.ADMINISTRATING_DEPARTMENT="administrating_department",r.COOKIE_MAX_AGE_SECONDS="cookie_max_age_seconds",r.PRIVACY_POLICY="privacy_policy",r.LEGAL_ADDRESS="legal_address",r.COOKIE_REFRESH="cookie_refresh",r.DATA_SECURITY_PRACTICES="data_security_practices",r.DATA_SHARED_WITH_THIRD_PARTIES="data_shared_with_third_parties",r.DATA_STEWARDS="data_stewards",r.DECLARATION_NAME="declaration_name",r.DOES_INTERNATIONAL_TRANSFERS="does_international_transfers",r.DPA_LOCATION="dpa_location",r.DESTINATIONS="egress",r.EXEMPT_FROM_PRIVACY_REGULATIONS="exempt_from_privacy_regulations",r.FEATURES="features",r.FIDES_KEY="fides_key",r.FLEXIBLE_LEGAL_BASIS_FOR_PROCESSING="flexible_legal_basis_for_processing",r.IMPACT_ASSESSMENT_LOCATION="impact_assessment_location",r.SOURCES="ingress",r.JOINT_CONTROLLER_INFO="joint_controller_info",r.LEGAL_BASIS_FOR_PROFILING="legal_basis_for_profiling",r.LEGAL_BASIS_FOR_TRANSFERS="legal_basis_for_transfers",r.LEGITIMATE_INTEREST_DISCLOSURE_URL="legitimate_interest_disclosure_url",r.PROCESSES_PERSONAL_DATA="processes_personal_data",r.REASON_FOR_EXEMPTION="reason_for_exemption",r.REQUIRES_DATA_PROTECTION_ASSESSMENTS="requires_data_protection_assessments",r.RESPONSIBILITY="responsibility",r.RETENTION_PERIOD="retention_period",r.SHARED_CATEGORIES="shared_categories",r.SPECIAL_CATEGORY_LEGAL_BASIS="special_category_legal_basis",r.THIRD_PARTIES="third_parties",r.COOKIES="cookies",r.USES_COOKIES="uses_cookies",r.USES_NON_COOKIE_ACCESS="uses_non_cookie_access",r.USES_PROFILING="uses_profiling",r.SYSTEM_UNDECLARED_DATA_CATEGORIES="system_undeclared_data_categories",r.DATA_USE_UNDECLARED_DATA_CATEGORIES="data_use_undeclared_data_categories",r.PROCESSES_SPECIAL_CATEGORY_DATA="processes_special_category_data";let p={system_name:"System",data_uses:"Data use",data_categories:"Data categories",data_subjects:"Data subject",legal_name:"Legal name",dpo:"Data privacy officer",legal_basis_for_processing:"Legal basis for processing",administrating_department:"Administrating department",cookie_max_age_seconds:"Cookie max age seconds",privacy_policy:"Privacy policy",legal_address:"Legal address",cookie_refresh:"Cookie refresh",data_security_practices:"Data security practices",data_shared_with_third_parties:"Data shared with third parties",data_stewards:"Data stewards",declaration_name:"Declaration name",does_international_transfers:"Does international transfers",dpa_location:"DPA location",egress:"Destination",exempt_from_privacy_regulations:"Exempt from privacy regulations",features:"Features",fides_key:"Fides key",flexible_legal_basis_for_processing:"Flexible legal basis for processing",impact_assessment_location:"Impact assessment location",ingress:"Source",joint_controller_info:"Joint controller info",legal_basis_for_profiling:"Legal basis for profiling",legal_basis_for_transfers:"Legal basis for transfers",legitimate_interest_disclosure_url:"Legitimate interest disclosure URL",processes_personal_data:"Processes personal data",reason_for_exemption:"Reason for exemption",requires_data_protection_assessments:"Requires data protection assessments",responsibility:"Responsibility",retention_period:"Retention period",shared_categories:"Shared categories",special_category_legal_basis:"Special category legal basis",third_parties:"Third parties",system_undeclared_data_categories:"System undeclared data categories",data_use_undeclared_data_categories:"Data use undeclared data categories",cookies:"Cookies",uses_cookies:"Uses cookies",uses_non_cookie_access:"Uses non-cookie access",uses_profiling:"Uses profiling",processes_special_category_data:"Processes special category data"},m={[o.SYSTEM_UNDECLARED_DATA_CATEGORIES]:!1,[o.DATA_USE_UNDECLARED_DATA_CATEGORIES]:!1},E={dataUses:[],dataSubjects:[],dataCategories:[]},S=(0,n.createContext)({}),h=e=>{let{children:t}=e,[s,a]=(0,u._)(i.CUSTOM_REPORT_ID,""),[r,o]=(0,u._)(i.GROUP_BY,_.fI.SYSTEM_DATA_USE),[c,d]=(0,u._)(i.FILTERS,E),[p,h]=(0,u._)(i.COLUMN_ORDER,[]),[A,g]=(0,u._)(i.COLUMN_VISIBILITY,m),[x,f]=(0,u._)(i.COLUMN_SIZING,{}),[T,C]=(0,u._)(i.COLUMN_NAMES,{}),R=(0,n.useMemo)(()=>({savedCustomReportId:s,setSavedCustomReportId:a,groupBy:r,setGroupBy:o,selectedFilters:c,setSelectedFilters:d,columnOrder:p,setColumnOrder:h,columnVisibility:A,setColumnVisibility:g,columnSizing:x,setColumnSizing:f,columnNameMapOverrides:T,setColumnNameMapOverrides:C}),[s,a,r,o,c,d,p,h,A,g,x,f,T,C]);return(0,l.jsx)(S.Provider,{value:R,children:t})},A=()=>{let e=(0,n.useContext)(S);if(!e||0===Object.keys(e).length)throw Error("useDatamapReport must be used within a DatamapReportProvider");return e};var g=s(59003),x=s(92222),f=s(8540),T=s(52615),C=s(34090),R=s(66726),O=s.n(R),j=s(44296),b=s(19310),D=s(62528),v=s(38615),y=s(36768),I=s(12003),N=s(54321),L=e=>{let{children:t,heading:s,onCancel:a,onConfirm:r,isLoading:i,cancelButtonText:o,continueButtonText:n,"data-testid":c="standard-dialog",...d}=e,{onClose:u}=d;return(0,l.jsxs)(T.u_l,{closeOnOverlayClick:i,...d,children:[(0,l.jsx)(T.ZAr,{}),(0,l.jsxs)(T.hzk,{"data-testid":c,children:[s&&(0,l.jsx)(T.xBx,{children:s}),(0,l.jsx)(T.olH,{isDisabled:i,"data-testid":"standard-dialog-close-btn"}),t&&(0,l.jsx)(T.fef,{children:t}),(0,l.jsxs)(T.mzw,{gap:3,width:"100%",sx:{"& button":{width:"100%"}},children:[(0,l.jsx)(T.wpx,{onClick:()=>{a&&a(),u()},"data-testid":"".concat(c?"".concat(c,"-"):"","cancel-btn"),disabled:i,children:o||"Cancel"}),(0,l.jsx)(T.wpx,{onClick:r,type:"primary","data-testid":"".concat(c?"".concat(c,"-"):"","continue-btn"),loading:i,children:n||"Continue"})]})]})]})},w=s(31404),P=e=>{let[t,s]=(0,n.useState)(w.T2.csv),{onConfirm:a}=e;return(0,l.jsx)(L,{heading:"Export report",continueButtonText:"Download",size:"xl",...e,onConfirm:()=>a(t),"data-testid":"export-modal",children:(0,l.jsxs)(T.kCb,{direction:"column",gap:3,pb:3,children:[(0,l.jsx)(T.xvT,{textAlign:"left",children:"Export your data map report using the options below. Depending on the number of rows, the file may take a few minutes to process."}),(0,l.jsxs)(T.NIc,{children:[(0,l.jsx)(T.lXp,{htmlFor:"format",children:"Choose Format"}),(0,l.jsx)(T.WPr,{id:"format",value:t,onChange:s,"data-testid":"export-format-select",options:[{value:w.T2.csv,label:"CSV"},{value:w.T2.xlsx,label:"XLSX"}],className:"w-full"})]})]})})},M=s(72809),U=s(91650),k=s(79851),G=s(62091),H=s(35249);let Y=e=>{let{label:t,children:s,...a}=e;return(0,l.jsxs)(T.Qdk,{...a,children:[(0,l.jsx)(T.X6q,{children:(0,l.jsxs)(T.KFZ,{height:"100%","data-testid":"filter-modal-accordion-button",textAlign:"left",fontWeight:600,children:[(0,l.jsx)(T.xuv,{flex:1,children:t}),(0,l.jsx)(T.XEm,{boxSize:7})]})}),(0,l.jsx)(T.Hk3,{children:s})]})},F=e=>{let{columnNameMap:t,selectedFilters:s,onFilterChange:a,onClose:r,...i}=e;(0,k.fd)(),(0,U.te)(),(0,H.MO)();let{dataUses:o,dataSubjects:c,dataCategories:d}=s,u=(0,j.C)(k.U3),_=(0,j.C)(U.ZL),p=(0,j.C)(H.qb),[m,E]=(0,n.useState)(o),[S,h]=(0,n.useState)(c),[A,g]=(0,n.useState)(d);(0,n.useEffect)(()=>{E(o)},[o]),(0,n.useEffect)(()=>{h(c)},[c]),(0,n.useEffect)(()=>{g(d)},[d]);let x=(0,n.useMemo)(()=>(0,G.Cd)(u),[u]),f=(0,n.useMemo)(()=>(0,G.Cd)(_),[_]),C=(0,n.useMemo)(()=>(0,G.Cd)(p),[p]);return(0,l.jsx)(L,{heading:"Filter Datamap Report",...i,onCancel:()=>{E([]),h([]),g([]),a({dataUses:[],dataSubjects:[],dataCategories:[]}),r()},onConfirm:()=>{a({dataUses:m,dataSubjects:S,dataCategories:A}),r()},onClose:r,cancelButtonText:"Reset filters",continueButtonText:"Done","data-testid":"datamap-report-filter-modal",children:(0,l.jsxs)(T.UQy,{allowToggle:!0,children:[(0,l.jsx)(Y,{label:t.data_uses,children:(0,l.jsx)(M.ZP,{nodes:x,selected:m,onSelected:E,"data-testid":"filter-modal-checkbox-tree-uses"})}),(0,l.jsx)(Y,{label:t.data_categories,children:(0,l.jsx)(M.ZP,{nodes:C,selected:A,onSelected:g,"data-testid":"filter-modal-checkbox-tree-categories"})}),(0,l.jsx)(Y,{label:t.data_subjects,children:(0,l.jsx)(M.ZP,{nodes:f,selected:S,onSelected:h,"data-testid":"filter-modal-checkbox-tree-subjects"})})]})})};var V=s(96878),Z=s(91591),B=s(60136),z=s(79711);let{useGetMinimalCustomReportsQuery:W,useLazyGetCustomReportByIdQuery:q,usePostCustomReportMutation:X,useDeleteCustomReportMutation:J}=s(21618).u.injectEndpoints({endpoints:e=>({getMinimalCustomReports:e.query({query:e=>{let{pageIndex:t=1,pageSize:s=50,report_type:a=_.C2.DATAMAP}=e,r="page=".concat(t,"&size=").concat(s,"&report_type=").concat(a);return{url:"plus/custom-report/minimal?".concat(r)}},providesTags:["Custom Reports"]}),getCustomReportById:e.query({query:e=>({url:"plus/custom-report/".concat(e)}),providesTags:(e,t,s)=>[{type:"Custom Reports",id:s}]}),postCustomReport:e.mutation({query:e=>({method:"POST",url:"plus/custom-report",body:e}),invalidatesTags:["Custom Reports"]}),deleteCustomReport:e.mutation({query:e=>({method:"DELETE",url:"plus/custom-report/".concat(e)}),invalidatesTags:["Custom Reports"]})})});var K=s(59389),Q=s(34803);let $="Report name",ee=e=>{let{isOpen:t,handleClose:s,tableStateToSave:a,columnMapToSave:r={},unavailableNames:i,onCreateCustomReport:o}=e,c=(0,T.pmc)(),[d]=X(),u=(0,n.useMemo)(()=>K.Ry().shape({reportName:K.Z_().label($).required("Please provide a name for this report").test("is-unique","",async(e,t)=>null==i||!i.includes(e)||t.createError({message:"This name already exists"})).max(80,"Report name is too long (max 80 characters)")}),[i]),p=async e=>{var t;let i={};Object.entries(r).forEach(e=>{let[t,s]=e;i[t]={label:s,enabled:!0}}),Object.entries(null!==(t=null==a?void 0:a.columnVisibility)&&void 0!==t?t:{}).forEach(e=>{let[t,s]=e;i[t]||(i[t]={}),i[t].enabled=s});try{let t={name:e.trim(),type:_.C2.DATAMAP,config:{column_map:i,table_state:a}},r=await d(t);if((0,B.D4)(r))throw r.error;o(r.data),s()}catch(e){c({status:"error",description:(0,B.e$)(e,"A problem occurred while creating the report.")})}};return(0,l.jsxs)(T.u_l,{size:"lg",isOpen:t,onClose:s,motionPreset:"none",children:[(0,l.jsx)(T.ZAr,{}),(0,l.jsxs)(T.hzk,{children:[(0,l.jsx)(T.xBx,{pb:0,children:"Create a report"}),(0,l.jsx)(C.J9,{initialValues:{reportName:""},onSubmit:e=>p(e.reportName),onReset:s,validateOnBlur:!1,validationSchema:u,children:e=>{let{dirty:t,isValid:s}=e;return(0,l.jsxs)(C.l0,{"data-testid":"custom-report-form",children:[(0,l.jsxs)(T.fef,{children:[(0,l.jsx)(T.xvT,{fontSize:"sm",color:"gray.600",pb:6,children:"Customize and save your current filter settings for easy access in the future. This saved report will include the column layout and currently applied filter settings."}),(0,l.jsx)(Q.j0,{id:"reportName",name:"reportName",isRequired:!0,label:$,placeholder:"Enter a name for the report...",variant:"stacked",maxLength:80})]}),(0,l.jsxs)(T.mzw,{gap:2,children:[(0,l.jsx)(T.wpx,{size:"small",htmlType:"reset",children:"Cancel"}),(0,l.jsx)(T.wpx,{size:"small",disabled:!t||!s,type:"primary","data-testid":"custom-report-form-submit",htmlType:"submit",children:"Save"})]})]})}})]})]})},et="Report",es="Reports",ea=e=>{var t;let{reportType:s,savedReportId:a,tableStateToSave:r,currentColumnMap:i,onCustomReportSaved:o,onSavedReportDeleted:c}=e,d=(0,v.Tg)([_.Sh.CUSTOM_REPORT_CREATE]),u=(0,v.Tg)([_.Sh.CUSTOM_REPORT_DELETE]),p=(0,T.pmc)({id:"custom-report-toast"}),{data:m,isLoading:E}=W({report_type:s}),[S,h]=(0,n.useState)(),[A]=q(),[g]=J(),{isOpen:x,onToggle:f,onOpen:R,onClose:O}=(0,T.qY0)(),{isOpen:j,onOpen:b,onClose:D}=(0,T.qY0)(),{isOpen:y,onOpen:I,onClose:N}=(0,T.qY0)(),[L,w]=(0,n.useState)(),[P,M]=(0,n.useState)(),[U,k]=(0,n.useState)(),[G,H]=(0,n.useState)(!1),Y=(0,n.useMemo)(()=>{var e;let t=null==m?void 0:null===(e=m.items.find(e=>e.id===a))||void 0===e?void 0:e.name;return null!=t?t:es},[null==m?void 0:m.items,a]),F=!E&&!(null==m?void 0:null===(t=m.items)||void 0===t?void 0:t.length),V=e=>{h(null==m?void 0:m.items.filter(t=>t.name.toLowerCase().includes(e.toLowerCase())))},X=async e=>{w(e);let{data:t,isError:s,error:a}=await A(e);if(s){let e=(0,B.e$)(a,"A problem occurred while fetching the ".concat(et,"."));e.includes("not found")&&c(),p({status:"error",description:e})}else M(t)},K=()=>{w(""),M(void 0),H(!1)},Q=()=>{P?(H(!1),P.id!==a&&o(P),O()):L?H(!0):(o(null),O())},$=async e=>{e===(null==P?void 0:P.id)&&(K(),c()),g(e)};(0,n.useEffect)(()=>{m&&h(m.items)},[m]),(0,n.useEffect)(()=>{G&&(H(!1),Q())},[P]),(0,n.useEffect)(()=>{a?X(a):K()},[a]),(0,n.useEffect)(()=>{U&&I()},[I,U]);let ea=!P&&!a||(null==P?void 0:P.id)===a;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(T.J2e,{placement:"bottom-end",isOpen:x,onClose:Q,id:"custom-reports-selection",children:[(0,l.jsx)(T.xol,{children:(0,l.jsx)(T.wpx,{className:"max-w-40",icon:(0,l.jsx)(T.v4q,{}),iconPosition:"end","data-testid":"custom-reports-trigger",onClick:f,children:(0,l.jsx)(T.xvT,{noOfLines:1,display:"inline-block",children:Y})})}),(0,l.jsx)(T.h_i,{children:(0,l.jsxs)(T.yky,{"data-testid":"custom-reports-popover",children:[(0,l.jsx)(T.QHN,{}),(0,l.jsx)(C.J9,{initialValues:{},onSubmit:Q,onReset:K,children:(0,l.jsxs)(C.l0,{children:[(0,l.jsx)(T.wpx,{size:"small",disabled:F,htmlType:"reset",className:"absolute left-2 top-2","data-testid":"custom-reports-reset-button",children:"Reset"}),(0,l.jsxs)(T.Ytg,{textAlign:"center",children:[(0,l.jsx)(T.xvT,{fontSize:"sm",children:es}),(0,l.jsx)(T.BZy,{size:"sm",mt:3,children:(0,l.jsx)(T.IIB,{type:"text",borderRadius:"md",placeholder:"Search...",onChange:e=>V(e.target.value)})})]}),(0,l.jsx)(T.usR,{top:2,onClick:()=>{a?X(a):K(),O()},"data-testid":"custom-report-popover-cancel"}),(0,l.jsxs)(T.baG,{px:6,pt:5,pb:1,children:[F&&(0,l.jsxs)(T.gCW,{px:2,pt:6,pb:3,"data-testid":"custom-reports-empty-state",children:[(0,l.jsx)(T.hU,{variant:"primary",backgroundColor:"gray.500",isRound:!0,size:"xs","aria-label":"add ".concat(et),icon:(0,l.jsx)(Z.d,{}),onClick:b,"data-testid":"add-report-button"}),(0,l.jsxs)(T.xvT,{fontSize:"sm",textAlign:"center",color:"gray.500",children:["No ",es.toLowerCase()," have been created. Start by applying your preferred filter and column settings, then create a"," ",et.toLowerCase()," for easy access later."]})]}),!F&&(E?(0,l.jsxs)(T.gCW,{pb:2,children:[(0,l.jsx)(T.OdW,{width:"100%",height:T.rSc.space[4]}),(0,l.jsx)(T.OdW,{width:"100%",height:T.rSc.space[4]}),(0,l.jsx)(T.OdW,{width:"100%",height:T.rSc.space[4]})]}):(0,l.jsx)(T.y02.Group,{onChange:e=>X(e.target.value),value:L,className:"flex flex-col gap-2",children:null==S?void 0:S.map(e=>(0,l.jsxs)(T.jqI,{className:u?"justify-between":"justify-start",children:[(0,l.jsx)(T.y02,{value:e.id,name:"custom-report-id","data-testid":"custom-report-item",children:(0,l.jsx)(T.xvT,{fontSize:"sm",children:e.name})}),u&&(0,l.jsx)(T.wpx,{type:"text",size:"small",icon:(0,l.jsx)(z.q,{fontSize:16}),onClick:()=>k(e),"data-testid":"delete-report-button"})]},e.id))}))]}),(0,l.jsx)(T.DT9,{border:"none",px:6,pb:4,pt:4,children:(0,l.jsxs)(T.Ugi,{children:[d&&r&&(0,l.jsxs)(T.wpx,{size:"small",onClick:b,className:"w-full","data-testid":"create-report-button",htmlType:"button",children:["+ Create ",et.toLowerCase()]}),(0,l.jsx)(T.wpx,{size:"small",type:"primary",loading:G,disabled:ea,className:"w-full","data-testid":"apply-report-button",htmlType:"submit",children:"Apply"})]})})]})})]})})]}),(0,l.jsx)(ee,{isOpen:j,handleClose:()=>{D(),setTimeout(()=>{R()},100)},tableStateToSave:r,columnMapToSave:i,unavailableNames:null==m?void 0:m.items.map(e=>e.name),onCreateCustomReport:o}),(0,l.jsx)(T.cVQ,{isOpen:y,onClose:()=>{k(void 0),N()},onConfirm:()=>{U&&$(U.id),N()},title:"Delete ".concat(et),message:(0,l.jsxs)(T.xvT,{children:["You are about to permanently delete the"," ",et.toLowerCase()," named"," ",(0,l.jsx)("strong",{children:null==U?void 0:U.name}),". Are you sure you would like to continue?"]})})]})};var er=s(19785),ei=s.n(er),eo=s(55807),el=s.n(eo),en=s(32526),ec=s.n(en),ed=s(98320),eu=s(71533);let e_=(0,x.Cl)(),ep=(e,t)=>({cell:e=>(0,l.jsx)(f.G3,{value:e.getValue()}),header:s=>{let a={};return Object.keys(e).forEach(t=>{"string"==typeof e[t]?a[t]=e[t]:e[t].label&&(a[t]=e[t].label||"")}),(0,l.jsx)(ed.Hm,{value:(0,eu.AH)({columnId:s.column.id,columnNameMap:a}),defaultValue:p[s.column.id]||(0,eu.AH)({columnId:s.column.id}),isEditing:t,...s})}}),em=(e,t)=>{var s;let a=(null==e?void 0:null===(s=e.items)||void 0===s?void 0:s.length)?Object.keys(e.items[0]):[],r=Object.values(o);return a.filter(e=>!r.includes(e)).filter(e=>e.startsWith("privacy_declaration_")||e.startsWith("system_")).map(e=>{let s=t.find(t=>e.includes(ec()(t.name)));return e_.accessor(t=>t[e],{id:e,cell:e=>Array.isArray(e.getValue())?(0,l.jsx)(f.WP,{value:e.getValue(),ignoreZero:!0,...e}):(0,l.jsx)(f.G3,{value:e.getValue()}),meta:{showHeaderMenu:(null==s?void 0:s.field_type)==="string[]"}})})},eE=e=>{let{onSelectRow:t,getDataUseDisplayName:s,getDataCategoryDisplayName:a,getDataSubjectDisplayName:r,datamapReport:i,customFields:n,isRenaming:c=!1}=e,d=em(i,n);return[e_.accessor(e=>e.system_name,{enableGrouping:!0,id:o.SYSTEM_NAME,meta:{onCellClick:t}}),e_.accessor(e=>e.data_uses,{id:o.DATA_USE,cell:e=>{let t=e.getValue();return(0,l.jsx)(f.WP,{suffix:"data uses",ignoreZero:!0,value:ei()(t)?el()(t,s):s(t||""),tagProps:{color:"white"},...e})},meta:{width:"auto"}}),e_.accessor(e=>e.data_categories,{id:o.DATA_CATEGORY,cell:e=>{let t=e.getValue();if(!t||0===t.length)return null;let s=ei()(t)?t.map(e=>({label:a(e),key:e})):[{label:a(t),key:t}];return(0,l.jsx)(ed.mb,{values:s,cellProps:e})},meta:{showHeaderMenu:!c,showHeaderMenuWrapOption:!0,width:"auto",overflow:"hidden"}}),e_.accessor(e=>e.data_subjects,{id:o.DATA_SUBJECT,cell:e=>{let t=e.getValue();return(0,l.jsx)(f.WP,{suffix:"data subjects",ignoreZero:!0,value:ei()(t)?el()(t,r):r(t||""),tagProps:{color:"white"},...e})},meta:{showHeaderMenu:!c}}),e_.accessor(e=>e.legal_name,{id:o.LEGAL_NAME}),e_.accessor(e=>e.dpo,{id:o.DPO}),e_.accessor(e=>e.legal_basis_for_processing,{id:o.LEGAL_BASIS_FOR_PROCESSING}),e_.accessor(e=>e.administrating_department,{id:o.ADMINISTRATING_DEPARTMENT}),e_.accessor(e=>e.cookie_max_age_seconds,{id:o.COOKIE_MAX_AGE_SECONDS}),e_.accessor(e=>e.privacy_policy,{id:o.PRIVACY_POLICY}),e_.accessor(e=>e.legal_address,{id:o.LEGAL_ADDRESS}),e_.accessor(e=>e.cookie_refresh,{id:o.COOKIE_REFRESH}),e_.accessor(e=>e.data_security_practices,{id:o.DATA_SECURITY_PRACTICES}),e_.accessor(e=>e.data_shared_with_third_parties,{id:o.DATA_SHARED_WITH_THIRD_PARTIES}),e_.accessor(e=>e.processes_special_category_data,{id:o.PROCESSES_SPECIAL_CATEGORY_DATA}),e_.accessor(e=>e.data_stewards,{id:o.DATA_STEWARDS,cell:e=>(0,l.jsx)(f.WP,{suffix:"data stewards",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!c,width:"auto"}}),e_.accessor(e=>e.declaration_name,{id:o.DECLARATION_NAME}),e_.accessor(e=>e.does_international_transfers,{id:o.DOES_INTERNATIONAL_TRANSFERS}),e_.accessor(e=>e.dpa_location,{id:o.DPA_LOCATION}),e_.accessor(e=>e.egress,{id:o.DESTINATIONS,cell:e=>(0,l.jsx)(f.WP,{suffix:"destinations",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!c,width:"auto"}}),e_.accessor(e=>e.exempt_from_privacy_regulations,{id:o.EXEMPT_FROM_PRIVACY_REGULATIONS}),e_.accessor(e=>e.features,{id:o.FEATURES,cell:e=>(0,l.jsx)(f.WP,{suffix:"features",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!c,width:"auto"}}),e_.accessor(e=>e.fides_key,{id:o.FIDES_KEY}),e_.accessor(e=>e.flexible_legal_basis_for_processing,{id:o.FLEXIBLE_LEGAL_BASIS_FOR_PROCESSING}),e_.accessor(e=>e.impact_assessment_location,{id:o.IMPACT_ASSESSMENT_LOCATION}),e_.accessor(e=>e.ingress,{id:o.SOURCES,cell:e=>(0,l.jsx)(f.WP,{suffix:"sources",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!c,width:"auto"}}),e_.accessor(e=>e.joint_controller_info,{id:o.JOINT_CONTROLLER_INFO}),e_.accessor(e=>e.legal_basis_for_profiling,{id:o.LEGAL_BASIS_FOR_PROFILING,cell:e=>(0,l.jsx)(f.WP,{suffix:"profiles",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!c,width:"auto"}}),e_.accessor(e=>e.legal_basis_for_transfers,{id:o.LEGAL_BASIS_FOR_TRANSFERS,cell:e=>(0,l.jsx)(f.WP,{suffix:"transfers",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!c,width:"auto"}}),e_.accessor(e=>e.legitimate_interest_disclosure_url,{id:o.LEGITIMATE_INTEREST_DISCLOSURE_URL}),e_.accessor(e=>e.processes_personal_data,{id:o.PROCESSES_PERSONAL_DATA}),e_.accessor(e=>e.reason_for_exemption,{id:o.REASON_FOR_EXEMPTION}),e_.accessor(e=>e.requires_data_protection_assessments,{id:o.REQUIRES_DATA_PROTECTION_ASSESSMENTS}),e_.accessor(e=>e.responsibility,{id:o.RESPONSIBILITY,cell:e=>(0,l.jsx)(f.WP,{suffix:"responsibilities",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!c,width:"auto"}}),e_.accessor(e=>e.retention_period,{id:o.RETENTION_PERIOD}),e_.accessor(e=>e.shared_categories,{id:o.SHARED_CATEGORIES,cell:e=>(0,l.jsx)(f.WP,{suffix:"shared categories",ignoreZero:!0,value:e.getValue(),tagProps:{color:"white"},...e}),meta:{showHeaderMenu:!c,width:"auto"}}),e_.accessor(e=>e.special_category_legal_basis,{id:o.SPECIAL_CATEGORY_LEGAL_BASIS}),e_.accessor(e=>e.third_parties,{id:o.THIRD_PARTIES}),e_.accessor(e=>e.system_undeclared_data_categories,{id:o.SYSTEM_UNDECLARED_DATA_CATEGORIES,cell:e=>{let t=e.getValue();if(!t||0===t.length)return null;let s=ei()(t)?t.map(e=>({label:a(e),key:e})):[{label:a(t),key:t}];return(0,l.jsx)(ed.mb,{values:s,cellProps:e})},meta:{showHeaderMenu:!c,showHeaderMenuWrapOption:!0,width:"auto",overflow:"hidden"}}),e_.accessor(e=>e.data_use_undeclared_data_categories,{id:o.DATA_USE_UNDECLARED_DATA_CATEGORIES,cell:e=>{let t=e.getValue();if(!t||0===t.length)return null;let s=ei()(t)?t.map(e=>({label:a(e),key:e})):[{label:a(t),key:t}];return(0,l.jsx)(ed.mb,{values:s,cellProps:e})},meta:{showHeaderMenu:!c,showHeaderMenuWrapOption:!0,width:"auto",overflow:"hidden"}}),e_.accessor(e=>e.cookies,{id:o.COOKIES,cell:e=>(0,l.jsx)(f.WP,{ignoreZero:!0,suffix:"cookies",value:e.getValue(),...e}),meta:{showHeaderMenu:!c,width:"auto"}}),e_.accessor(e=>e.uses_cookies,{id:o.USES_COOKIES}),e_.accessor(e=>e.uses_non_cookie_access,{id:o.USES_NON_COOKIE_ACCESS}),e_.accessor(e=>e.uses_profiling,{id:o.USES_PROFILING}),...d]},eS=e=>e===_.fI.DATA_USE_SYSTEM?[o.DATA_USE]:[o.SYSTEM_NAME],eh=e=>{let t=[];return _.fI.SYSTEM_DATA_USE===e&&(t=[o.SYSTEM_NAME,o.DATA_USE]),_.fI.DATA_USE_SYSTEM===e&&(t=[o.DATA_USE,o.SYSTEM_NAME]),t},eA=(e,t)=>eh(e).concat(t.filter(e=>e!==o.SYSTEM_NAME&&e!==o.DATA_USE)),eg={items:[],total:0,page:1,size:25,pages:1},ex=()=>{let e=(0,v.Tg)([_.Sh.CUSTOM_REPORT_READ]),{isLoading:t}=(0,V.x8)(),{PAGE_SIZES:s,pageSize:a,setPageSize:r,onPreviousPageClick:o,isPreviousPageDisabled:c,onNextPageClick:d,isNextPageDisabled:u,startRange:S,endRange:h,pageIndex:R,setTotalPages:L,resetPageIndexToDefault:w}=(0,f.oi)(),M=(0,T.pmc)({id:"datamap-report-toast"}),{isOpen:U,onClose:k,onOpen:G}=(0,T.qY0)(),{getDataUseDisplayName:H,getDataCategoryDisplayName:Y,getDataSubjectDisplayName:Z,isLoading:B}=(0,b.Z)(),[z,W]=(0,n.useState)(),{savedCustomReportId:q,setSavedCustomReportId:X,groupBy:J,setGroupBy:K,selectedFilters:Q,setSelectedFilters:$,columnOrder:ee,setColumnOrder:et,columnVisibility:es,setColumnVisibility:er,columnSizing:ei,setColumnSizing:eo,columnNameMapOverrides:el,setColumnNameMapOverrides:en}=A(),[ec,ed]=(0,n.useState)(!1),eu=e=>{X(""),K(e),ed(!0),w()},[e_,em]=(0,n.useState)(""),ex=(0,n.useCallback)(e=>{w(),em(e)},[w,em]),ef={pageIndex:R,pageSize:a,groupBy:J,search:e_,dataUses:(0,y.du)(Q.dataUses,"data_uses"),dataSubjects:(0,y.du)(Q.dataSubjects,"data_subjects"),dataCategories:(0,y.du)(Q.dataCategories,"data_categories")},{data:eT,isLoading:eC,isFetching:eR}=(0,I.tH)(ef),[eO,{isLoading:ej,isError:eb}]=(0,I.Eo)(),{data:eD,totalRows:ev}=(0,n.useMemo)(()=>{let e=eT||eg,t=e.items;return ec&&ed(!1),L(e.pages),{totalRows:e.total,data:t}},[eT]);(0,V.GH)();let ey=(0,j.C)(V.fN),[eI,eN]=(0,n.useState)(!1),eL=(0,n.useMemo)(()=>eT?eE({onSelectRow:e=>W(e.fides_key),getDataUseDisplayName:H,getDataCategoryDisplayName:Y,getDataSubjectDisplayName:Z,datamapReport:eT,customFields:ey,isRenaming:eI}):[],[H,Z,Y,eT,ey,eI]),{isOpen:ew,onOpen:eP,onClose:eM}=(0,T.qY0)(),{isOpen:eU,onOpen:ek,onClose:eG}=(0,T.qY0)(),eH=(0,g.b7)({getCoreRowModel:(0,x.sC)(),getGroupedRowModel:(0,x.qe)(),getExpandedRowModel:(0,x.rV)(),manualPagination:!0,enableColumnResizing:!0,columnResizeMode:"onChange",columns:eL,defaultColumn:ep({...p,...el},eI),data:eD,initialState:{expanded:!0,columnSizing:ei,columnOrder:ee,columnVisibility:es,grouping:eS(J)}});(0,n.useEffect)(()=>{J&&eH&&eT&&(0===eH.getState().columnOrder.length?et(eA(J,eH.getAllColumns().map(e=>e.id))):et(eA(J,eH.getState().columnOrder)))},[J,eH,eT]),(0,n.useEffect)(()=>{let e=eS(J);eT&&eH.setGrouping(e)},[eT]);let eY=(0,n.useMemo)(()=>O()(eo,300),[eo]);(0,n.useEffect)(()=>{let e=eH.getState().columnSizing;e&&eY(e)},[eH.getState().columnSizing]);let eF=()=>{switch(J){case _.fI.SYSTEM_DATA_USE:return"system";case _.fI.DATA_USE_SYSTEM:return"data use";default:return"system"}},eV=(e,t)=>{if(e||q){if(!e){try{X(""),er(m),eH.toggleAllColumnsVisible(!0),eH.setColumnVisibility(m),et([]),eH.setColumnOrder([]),K(_.fI.SYSTEM_DATA_USE),$(E),en({}),t({values:{}})}catch(e){M({status:"error",description:"There was a problem resetting the report."})}return}try{var s,a,r,i;if(null===(s=e.config)||void 0===s?void 0:s.table_state){let{groupBy:t,filters:s,columnOrder:a}=e.config.table_state,i={};Object.entries(null!==(r=e.config.column_map)&&void 0!==r?r:{}).forEach(e=>{let[t,s]=e;i[t]=s.enabled||!1}),t&&K(t),s&&$(s),a&&(et(a),eH.setColumnOrder(a)),i&&(er(i),eH.setColumnVisibility(i))}if(null===(a=e.config)||void 0===a?void 0:a.column_map){let s={};Object.entries(null!==(i=e.config.column_map)&&void 0!==i?i:{}).forEach(e=>{let[t,a]=e;a.label&&(s[t]=a.label)}),en(s),t({values:s})}X(e.id),M({status:"success",description:"Report applied successfully."})}catch(e){M({status:"error",description:"There was a problem applying report."})}}};return eC||t||B?(0,l.jsx)(f.I4,{rowHeight:36,numRows:15}):(0,l.jsxs)(T.kCb,{flex:1,direction:"column",overflow:"auto",children:[(0,l.jsx)(F,{columnNameMap:{...p,...el},selectedFilters:Q,isOpen:U,onClose:k,onFilterChange:e=>{X(""),$(e)}}),(0,l.jsx)(f.F1,{isOpen:ew,onClose:eM,headerText:"Data map settings",columnNameMap:{...p,...el},prefixColumns:eh(J),tableInstance:eH,savedCustomReportId:q,onColumnOrderChange:e=>{X(""),eH.setColumnOrder(e),et(e)},onColumnVisibilityChange:e=>{X(""),eH.setColumnVisibility(e),er(e)}}),(0,l.jsx)(P,{isOpen:eU,onClose:eG,onConfirm:e=>{let t={};Object.entries(es).forEach(e=>{let[s,a]=e;t[s]={enabled:a}}),Object.entries(el).forEach(e=>{let[s,a]=e;if(t[s])t[s].label=a;else{var r;t[s]={label:a,enabled:null===(r=es[s])||void 0===r||r}}}),eO({...ef,format:e,report_id:q,report:{name:"",type:"datamap",config:{column_map:t,table_state:{groupBy:J,filters:Q,columnOrder:ee}}}}).then(()=>{eb||eG()})},isLoading:ej}),(0,l.jsx)(C.J9,{initialValues:el,onSubmit:e=>{X(""),en(e),eN(!1)},children:t=>{let{submitForm:s,resetForm:a}=t;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(f.Q$,{children:[(0,l.jsx)(f.HO,{globalFilter:e_,setGlobalFilter:ex,placeholder:"System name, Fides key, or ID"}),(0,l.jsxs)(T.kCb,{alignItems:"center",gap:2,children:[e&&(0,l.jsx)(ea,{reportType:_.C2.DATAMAP,savedReportId:q,tableStateToSave:{groupBy:J,filters:Q,columnOrder:ee,columnVisibility:es},currentColumnMap:el,onCustomReportSaved:e=>eV(e,a),onSavedReportDeleted:()=>{X("")}}),(0,l.jsxs)(T.v2r,{children:[(0,l.jsxs)(T.j2t,{as:T.wpx,icon:(0,l.jsx)(T.v4q,{}),iconPosition:"end",loading:ec,"data-testid":"group-by-menu",children:["Group by ",eF()]}),(0,l.jsxs)(T.qyq,{zIndex:11,"data-testid":"group-by-menu-list",children:[(0,l.jsx)(T.iiZ,{onClick:()=>{eu(_.fI.SYSTEM_DATA_USE)},isChecked:_.fI.SYSTEM_DATA_USE===J,value:_.fI.SYSTEM_DATA_USE,"data-testid":"group-by-system-data-use",children:"System"}),(0,l.jsx)(T.iiZ,{onClick:()=>{eu(_.fI.DATA_USE_SYSTEM)},isChecked:_.fI.DATA_USE_SYSTEM===J,value:_.fI.DATA_USE_SYSTEM,"data-testid":"group-by-data-use-system",children:"Data use"})]})]}),(0,l.jsx)(T.wpx,{"data-testid":"filter-multiple-systems-btn",onClick:G,children:"Filter"}),(0,l.jsx)(T.wpx,{"aria-label":"Export report","data-testid":"export-btn",onClick:ek,icon:(0,l.jsx)(D.nM,{ml:"1.5px"})}),(0,l.jsxs)(T.v2r,{placement:"bottom-end",children:[(0,l.jsx)(T.j2t,{as:T.wpx,icon:(0,l.jsx)(T.nXP,{className:"rotate-90"}),"data-testid":"more-menu","aria-label":"More options",className:"w-6 gap-0"}),(0,l.jsxs)(T.qyq,{"data-testid":"more-menu-list",children:[(0,l.jsx)(T.sNh,{onClick:eP,"data-testid":"edit-columns-btn",children:"Edit columns"}),(0,l.jsx)(T.sNh,{onClick:()=>eN(!0),"data-testid":"rename-columns-btn",children:"Rename columns"})]})]}),eI&&(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(T.wpx,{size:"small","data-testid":"rename-columns-reset-btn",onClick:()=>{en({}),X(""),a({values:{}}),eN(!1)},children:"Reset all"}),(0,l.jsx)(T.wpx,{size:"small","data-testid":"rename-columns-cancel-btn",onClick:()=>{a({values:el}),eN(!1)},children:"Cancel"}),(0,l.jsx)(T.wpx,{size:"small",type:"primary",htmlType:"submit","data-testid":"rename-columns-apply-btn",onClick:s,children:"Apply"})]})]})]}),(0,l.jsx)(C.l0,{children:(0,l.jsx)(f.ZK,{tableInstance:eH,columnExpandStorageKey:i.COLUMN_EXPANSION_STATE,columnWrapStorageKey:i.WRAPPING_COLUMNS})})]})}}),(0,l.jsx)(f.s8,{totalRows:ev||0,pageSizes:s,setPageSize:r,onPreviousPageClick:o,isPreviousPageDisabled:c||eR,onNextPageClick:d,isNextPageDisabled:u||eR,startRange:S,endRange:h}),(0,l.jsx)(N.Z,{selectedSystemId:z,resetSelectedSystemId:()=>W(void 0)})]})};var ef=()=>(0,l.jsxs)(c.Z,{title:"Datamap Report",children:[(0,l.jsx)(d.Z,{"data-testid":"datamap-report-heading",heading:"Data map report"}),(0,l.jsx)(h,{children:(0,l.jsx)(ex,{})})]})}},function(e){e.O(0,[8033,2780,2858,2866,9278,3967,8540,5973,2017,4321,2888,9774,179],function(){return e(e.s=86548)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2447],{81327:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/about",function(){return n(80599)}])},43124:function(e,i,n){"use strict";n.d(i,{Z:function(){return u}});var t=n(24246),s=n(
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2447],{81327:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/about",function(){return n(80599)}])},43124:function(e,i,n){"use strict";n.d(i,{Z:function(){return u}});var t=n(24246),s=n(52615),r=n(88038),l=n.n(r),o=n(86677);n(27378);var a=n(11596),c=n(72247),d=n(87162),x=()=>{let e=(0,o.useRouter)();return(0,t.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,t.jsxs)(s.xuv,{children:[(0,t.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,t.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,t.jsx)(s.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,t.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},u=e=>{let{children:i,title:n,padded:r=!0,mainProps:d}=e,u=(0,a.hz)(),h=(0,o.useRouter)(),p="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,m=!(u.flags.privacyRequestsConfiguration&&p),{data:f}=(0,c.JE)(void 0,{skip:m}),{data:j}=(0,c.PW)(void 0,{skip:m}),g=u.flags.privacyRequestsConfiguration&&(!f||!j)&&p;return(0,t.jsxs)(s.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,t.jsxs)(l(),{children:[(0,t.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,t.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,t.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,t.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",...d,children:[g?(0,t.jsx)(x,{}):null,i]})]})}},37541:function(e,i,n){"use strict";var t=n(24246),s=n(52615),r=n(53614);i.Z=e=>{let{heading:i,breadcrumbItems:n,isSticky:l=!0,children:o,rightContent:a,style:c,...d}=e;return(0,t.jsxs)("div",{...d,style:l?{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,t.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof i?(0,t.jsx)(s.X6q,{className:n||o?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:i}):i,a&&(0,t.jsx)("div",{"data-testid":"page-header-right-content",children:a})]}),!!n&&(0,t.jsx)(r.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},53614:function(e,i,n){"use strict";n.d(i,{m:function(){return c}});var t=n(24246),s=n(52615),r=n(79894),l=n.n(r),o=n(27378);let{Text:a}=s.AntTypography,c=e=>{let{items:i,...n}=e,r=(0,o.useMemo)(()=>null==i?void 0:i.map((e,n)=>{let r=n===i.length-1,o={...e},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,t.jsx)(a,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:o.title})),c)?o.title=(0,t.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,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,t.jsx)(l(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[i]);return(0,t.jsx)(s.zrq,{items:r,...n})}},80599:function(e,i,n){"use strict";n.r(i),n.d(i,{default:function(){return x}});var t=n(24246),s=n(52615),r=n(11596),l=n(72573),o=n(36768);let a=e=>{let{flag:i,value:n,override:r}=e;return"boolean"!=typeof n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.xvT,{fontSize:"sm",children:i}),(0,t.jsx)(s.xvT,{fontSize:"sm",children:n})]}):l.Ky[i].userCannotModify?null:(0,t.jsxs)(s.NIc,{display:"contents",children:[(0,t.jsx)(s.xuv,{justifySelf:"center",children:(0,t.jsx)(s.rAg,{id:"flag-".concat(i),checked:n,onChange:()=>r({flag:i,value:!n})})}),(0,t.jsx)(s.xuv,{children:(0,t.jsx)(s.lXp,{margin:0,fontSize:"sm",htmlFor:"flag-".concat(i),title:i,children:(0,o.Py)(i)})}),(0,t.jsx)(s.xuv,{children:(0,t.jsx)(s.xvT,{fontSize:"sm",children:l.Ky[i].description})})]})};var c=n(43124),d=n(37541),x=()=>{let e=(0,r.hz)(),{flags:i,override:n,reset:o}=(0,l.Vb)();return(0,t.jsxs)(c.Z,{title:"About Fides",children:[(0,t.jsx)(d.Z,{heading:"About Fides",children:(0,t.jsxs)(s.kCb,{direction:"column",gap:4,children:[(0,t.jsxs)(s.xuv,{children:[(0,t.jsxs)(s.xvT,{as:"span",fontWeight:"bold",children:["Fides Core Version:"," "]}),(0,t.jsx)(s.xvT,{as:"pre",display:"inline",children:e.version})]}),e.plusVersion?(0,t.jsxs)(s.xuv,{children:[(0,t.jsxs)(s.xvT,{as:"span",fontWeight:"bold",children:["Fides Plus Version:"," "]}),(0,t.jsx)(s.xvT,{as:"pre",display:"inline",children:e.plusVersion})]}):null,(0,t.jsx)(s.izJ,{})]})}),(0,t.jsxs)(s.kCb,{alignItems:"center",gap:4,children:[(0,t.jsx)(s.X6q,{as:"h2",fontSize:"xl",children:"Beta Features"}),(0,t.jsx)(s.wpx,{onClick:o,children:"Reset"})]}),(0,t.jsx)(s.rjZ,{gridTemplateColumns:"1fr 2fr 6fr",gridColumnGap:4,gridRowGap:2,alignItems:"center",className:"py-6",children:l.R$.map(e=>(0,t.jsx)(a,{flag:e,value:i[e],override:n},e))}),(0,t.jsxs)(s.xuv,{children:[(0,t.jsxs)(s.xvT,{fontSize:"sm",children:["Please visit"," ",(0,t.jsx)(s.rUS,{color:"complimentary.500",href:"https://docs.ethyca.com",isExternal:!0,children:"docs.ethyca.com"})," ","for more information on these features."]}),(0,t.jsxs)(s.xvT,{fontSize:"sm",children:["For questions and feedback, please join us at"," ",(0,t.jsx)(s.rUS,{color:"complimentary.500",href:"https://fidescommunity.slack.com",isExternal:!0,children:"fidescommunity.slack.com"}),"."]})]})]})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=81327)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[210],{53611:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/consent",function(){return n(797)}])},14838:function(e,t,n){"use strict";var i=n(24246),r=n(52615);t.Z=e=>(0,i.jsx)(r.rUS,{isExternal:!0,color:"complimentary.500",...e})},43124:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var i=n(24246),r=n(52615),s=n(88038),o=n.n(s),a=n(86677);n(27378);var l=n(11596),d=n(72247),c=n(87162),u=()=>{let e=(0,a.useRouter)();return(0,i.jsx)(r.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(r.xuv,{children:[(0,i.jsxs)(r.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(r.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(r.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,i.jsxs)(r.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:n,padded:s=!0,mainProps:c}=e,p=(0,l.hz)(),h=(0,a.useRouter)(),g="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,m=!(p.flags.privacyRequestsConfiguration&&g),{data:x}=(0,d.JE)(void 0,{skip:m}),{data:f}=(0,d.PW)(void 0,{skip:m}),v=p.flags.privacyRequestsConfiguration&&(!x||!f)&&g;return(0,i.jsxs)(r.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(o(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(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:[v?(0,i.jsx)(u,{}):null,t]})]})}},37541:function(e,t,n){"use strict";var i=n(24246),r=n(52615),s=n(53614);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:o=!0,children:a,rightContent:l,style:d,...c}=e;return(0,i.jsxs)("div",{...c,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,i.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(r.X6q,{className:n||a?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,l&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,i.jsx)(s.m,{className:a?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),a]})}},60136:function(e,t,n){"use strict";n.d(t,{D4:function(){return s.D4},MM:function(){return p},Ot:function(){return d},c6:function(){return r},cj:function(){return g},e$:function(){return a},fn:function(){return l},iC:function(){return h},nU:function(){return u},tB:function(){return c}});var i,r,s=n(41164);let o="An unexpected error occurred. Please try again.",a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;if((0,s.Bw)(e)){if((0,s.hE)(e.data))return e.data.detail;if((0,s.cz)(e.data)){var n;let t=null===(n=e.data.detail)||void 0===n?void 0:n[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,s.Dy)(e.data)||404===e.status&&(0,s.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function l(e){return"object"==typeof e&&null!=e&&"status"in e}function d(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:o};if((0,s.oK)(e))return{status:e.originalStatus,message:e.data};if((0,s.Bw)(e)){let{status:n}=e;return{status:n,message:a(e,t.message)}}return t},p=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(i=r||(r={})).GVL="gvl",i.AC="gacp",i.COMPASS="compass";let h={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},g=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},53614:function(e,t,n){"use strict";n.d(t,{m:function(){return d}});var i=n(24246),r=n(52615),s=n(79894),o=n.n(s),a=n(27378);let{Text:l}=r.AntTypography,d=e=>{let{items:t,...n}=e,s=(0,a.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let s=n===t.length-1,a={...e},d=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,i.jsx)(l,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:a.title})),d)?a.title=(0,i.jsx)(r.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,i.jsx)(o(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,i.jsx)(r.zrq,{items:s,...n})}},56901:function(e,t,n){"use strict";n.d(t,{ZS:function(){return a},a4:function(){return s}});var i=n(80406);let r=n(21618).u.injectEndpoints({endpoints:e=>({getPurposes:e.query({query:()=>"purposes"})})}),{useGetPurposesQuery:s}=r,o={purposes:{},special_purposes:{}},a=(0,i.P1)(r.endpoints.getPurposes.select(),e=>{let{data:t}=e;return t||o})},16781:function(e,t,n){"use strict";n.d(t,{MA:function(){return a},Vo:function(){return d},t5:function(){return l}});var i=n(24246),r=n(52615);let s=e=>{let{children:t,title:n="Success"}=e;return(0,i.jsxs)(r.xvT,{"data-testid":"toast-success-msg",children:[(0,i.jsxs)("strong",{children:[n,":"]})," ",t]})},o=e=>{let{children:t}=e;return(0,i.jsxs)(r.xvT,{"data-testid":"toast-error-msg",children:[(0,i.jsx)("strong",{children:"Error:"})," ",t]})},a={variant:"subtle",position:"top",description:"",duration:5e3,status:"success",isClosable:!0},l=(e,t)=>{let n=(0,i.jsx)(s,{title:t,children:e});return{...a,description:n}},d=e=>{let t=(0,i.jsx)(o,{children:e});return{...a,description:t,status:"error"}}},797:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return k}});var i=n(24246),r=n(52615),s=n(34090),o=n(27378),a=n(44296),l=n(14838),d=n(11596),c=n(60136),u=n(43124),p=n(37541),h=n(56901),g=n(39514),m=n(16781),x=e=>{let{name:t,enabled:n}=e;return(0,i.jsxs)(r.Kqy,{spacing:2,fontSize:"sm",lineHeight:"5",fontWeight:"medium",color:"gray.700",children:[(0,i.jsxs)(r.xvT,{children:[t," status"," ",n?(0,i.jsx)(r.j8w,{color:"success",children:"Enabled"}):(0,i.jsx)(r.j8w,{color:"error",children:"Disabled"})]}),(0,i.jsxs)(r.xvT,{children:["To ",n?"disable":"enable"," ",t,", please contact your Fides administrator or"," ",(0,i.jsx)(l.Z,{href:"mailto:support@ethyca.com",children:"Ethyca support"}),"."]})]})},f=n(34803),v=e=>{var t,n;let{label:o,options:a,layout:l,defaultFirstSelected:d=!0,...c}=e,[u,p]=(0,s.U$)(c),h={...u,value:null!==(t=u.value)&&void 0!==t?t:""},m=!!(p.touched&&p.error),x=d?a[0]:void 0,v=null!==(n=a.find(e=>e.value===h.value))&&void 0!==n?n:x,j=e=>{h.onChange(c.name)(e.target.value)};return"stacked"===l?(0,i.jsxs)(r.NIc,{isInvalid:m,children:[(0,i.jsxs)(r.jqI,{className:"w-fit",children:[o?(0,i.jsx)(f.__,{children:o}):null,(0,i.jsx)(r.y02.Group,{onChange:j,value:null==v?void 0:v.value,"data-testid":"input-".concat(h.name),children:(0,i.jsx)(r.jqI,{className:"flex-col gap-3",children:a.map(e=>{let{value:t,label:n,tooltip:s}=e;return(0,i.jsx)(r.y02,{value:t,"data-testid":"option-".concat(t),children:(0,i.jsxs)(r.jqI,{className:"items-center gap-2",children:[(0,i.jsx)(r.xvT,{fontSize:"sm",fontWeight:"medium",children:n}),s?(0,i.jsx)(g.Z,{label:s}):null]})},t)})})})]}),(0,i.jsx)(f.Bc,{isInvalid:m,message:p.error,fieldName:h.name})]}):(0,i.jsxs)(r.NIc,{isInvalid:m,children:[(0,i.jsxs)(r.rjZ,{templateColumns:"1fr 3fr",children:[(0,i.jsx)(f.__,{children:o}),(0,i.jsx)(r.y02.Group,{onChange:j,value:null==v?void 0:v.value,"data-testid":"input-".concat(h.name),children:(0,i.jsx)(r.jqI,{children:a.map(e=>(0,i.jsx)(r.y02,{value:e.value,"data-testid":"option-".concat(e.value),children:e.label},e.value))})})]}),(0,i.jsx)(f.Bc,{isInvalid:m,message:p.error,fieldName:h.name})]})},j=n(27365),b=n(37760),y=e=>{let{title:t,children:n,...s}=e;return(0,i.jsxs)(r.xuv,{backgroundColor:"gray.50",borderRadius:"4px",padding:"3","data-testid":"setting-".concat(t),...s,children:[(0,i.jsx)(r.xvT,{fontSize:"md",fontWeight:"bold",lineHeight:5,color:"gray.700",mb:3,children:t}),n]})};let _=e=>{let{title:t,children:n}=e;return(0,i.jsxs)(r.Kqy,{spacing:3,mb:3,"data-testid":"section-".concat(t),children:[(0,i.jsx)(r.xvT,{fontSize:"sm",fontWeight:"bold",lineHeight:5,color:"gray.700",children:t}),n]})};var C=()=>{let{tcf:e}=(0,d.hz)(),t=!!(0,a.C)(j.D2).enabled,{values:n}=(0,s.u6)(),o=!!n.gpp.us_approach;return(0,i.jsx)(y,{title:"Global Privacy Platform",children:(0,i.jsxs)(r.Kqy,{spacing:6,children:[(0,i.jsx)(x,{name:"GPP",enabled:t}),t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(_,{title:"GPP U.S.",children:(0,i.jsx)(v,{name:"gpp.us_approach",layout:"stacked",defaultFirstSelected:!1,options:[{label:"Enable U.S. National",value:b.en.NATIONAL,tooltip:"When US National is selected, Fides will present the same privacy notices to all consumers located anywhere in the United States."},{label:"Enable U.S. State-by-State",value:b.en.STATE,tooltip:"When state-by-state is selected, Fides will only present consent to consumers and save their preferences if they are located in a state that is supported by the GPP. The consent options presented to consumers will vary depending on the regulations in each state."},{label:"Enable US National and State-by-State notices",value:b.en.ALL,tooltip:"When enabled, Fides can be configured to serve the National and U.S. state notices. This mode is intended to provide consent coverage to U.S. states with new privacy laws where GPP support lags behind the effective date of state laws."}]})}),o?(0,i.jsxs)(_,{title:"MSPA",children:[(0,i.jsx)(f.Xl,{name:"gpp.mspa_covered_transactions",label:"All transactions covered by MSPA",tooltip:"When selected, the Fides CMP will communicate to downstream vendors that all preferences are covered under the MSPA."}),(0,i.jsx)(f.w8,{label:"Enable MSPA service provider mode",name:"gpp.mspa_service_provider_mode",variant:"switchFirst",tooltip:"Enable service provider mode if you do not engage in any sales or sharing of personal information.",isDisabled:!!n.gpp.mspa_opt_out_option_mode}),(0,i.jsx)(f.w8,{label:"Enable MSPA opt-out option mode",name:"gpp.mspa_opt_out_option_mode",variant:"switchFirst",tooltip:"Enable opt-out option mode if you engage or may engage in the sales or sharing of personal information, or process any information for the purpose of targeted advertising.",isDisabled:!!n.gpp.mspa_service_provider_mode})]}):null]}):null,e?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.izJ,{color:"gray.200"}),(0,i.jsxs)(_,{title:"GPP Europe",children:[(0,i.jsx)(r.xvT,{fontSize:"sm",fontWeight:"medium",children:"Configure TCF string for Global Privacy Platform"}),(0,i.jsx)(f.w8,{label:"Enable TC string",name:"gpp.enable_tcfeu_string",variant:"switchFirst",tooltip:"When enabled, the GPP API will include a TCF EU consent string for users who are in regions where TCF applies."})]})]}):null]})})};let w=e=>{let{children:t,purpose:n,endCol:s}=e;return(0,i.jsx)(r.kCb,{flex:"1",justifyContent:"center",alignItems:"center",borderLeft:"solid 1px",borderRight:s?"solid 1px":"unset",borderColor:"gray.200",height:"100%",minWidth:"36px",children:[1,3,4,5,6].includes(n)?null:(0,i.jsx)(r.xuv,{children:t})})};var S=()=>{let{values:e,setFieldValue:t}=(0,s.u6)(),{purposes:n}=(0,a.C)(h.ZS);return(0,i.jsx)(s.F2,{name:"purposeOverrides",render:()=>(0,i.jsxs)(r.kCb,{flexDirection:"column",minWidth:"944px",children:[(0,i.jsxs)(r.kCb,{width:"100%",border:"solid 1px",borderColor:"gray.200",backgroundColor:"gray.50",height:"36px",children:[(0,i.jsx)(r.kCb,{width:"600px",pl:"4",fontSize:"xs",fontWeight:"medium",lineHeight:"4",alignItems:"center",borderRight:"solid 1px",borderColor:"gray.200",children:"TCF purpose"}),(0,i.jsx)(r.kCb,{flex:"1",alignItems:"center",borderRight:"solid 1px",borderColor:"gray.200",minWidth:"36px",children:(0,i.jsx)(r.xvT,{pl:"4",fontSize:"xs",fontWeight:"medium",lineHeight:"4",children:"Allowed"})}),(0,i.jsx)(r.kCb,{flex:"1",alignItems:"center",borderRight:"solid 1px",borderColor:"gray.200",children:(0,i.jsx)(r.xvT,{pl:"4",fontSize:"xs",fontWeight:"medium",lineHeight:"4",children:"Consent"})}),(0,i.jsx)(r.kCb,{flex:"1",alignItems:"center",children:(0,i.jsx)(r.xvT,{pl:"4",fontSize:"xs",fontWeight:"medium",lineHeight:"4",children:"Legitimate interest"})})]}),e.purposeOverrides.map((s,o)=>(0,i.jsxs)(r.kCb,{width:"100%",height:"36px",alignItems:"center",borderBottom:"solid 1px",borderColor:"gray.200",children:[(0,i.jsxs)(r.kCb,{width:"600px",borderLeft:"solid 1px",borderColor:"gray.200",p:0,alignItems:"center",height:"100%",pl:"4",fontSize:"xs",fontWeight:"normal",lineHeight:"4",children:["Purpose ",s.purpose,": ",n[s.purpose].name]}),(0,i.jsx)(r.kCb,{flex:"1",justifyContent:"center",alignItems:"center",borderLeft:"solid 1px",borderColor:"gray.200",height:"100%",children:(0,i.jsx)(r.xuv,{children:(0,i.jsx)(f.w8,{name:"purposeOverrides[".concat(o,"].is_included"),onChange:e=>{e.target.checked||(t("purposeOverrides[".concat(o,"].is_consent"),!1),t("purposeOverrides[".concat(o,"].is_legitimate_interest"),!1))}})})}),(0,i.jsx)(w,{purpose:s.purpose,children:(0,i.jsx)(f.w8,{isDisabled:!e.purposeOverrides[o].is_included||e.purposeOverrides[o].is_legitimate_interest,name:"purposeOverrides[".concat(o,"].is_consent")})}),(0,i.jsx)(w,{purpose:s.purpose,endCol:!0,children:(0,i.jsx)(f.w8,{isDisabled:!e.purposeOverrides[o].is_included||e.purposeOverrides[o].is_consent,name:"purposeOverrides[".concat(o,"].is_legitimate_interest")})})]},s.purpose))]})})},T=n(96878),N=n(72247),k=()=>{let{isLoading:e}=(0,T.x8)(),{tcf:t}=(0,d.hz)(),{data:n,isLoading:f}=(0,T.n3)(void 0,{skip:e||!t}),[v]=(0,T.M7)(),{data:j,isLoading:_}=(0,N.tB)({api_set:!0}),{data:w,isLoading:k}=(0,N.tB)({api_set:!1}),[P,{isLoading:E}]=(0,N.L)(),I=(0,a.C)(N.D2),A=(0,o.useMemo)(()=>j&&(null==j?void 0:j.consent)&&"override_vendor_purposes"in j.consent?j.consent.override_vendor_purposes:!!w&&null!=w&&!!w.consent&&"override_vendor_purposes"in w.consent&&w.consent.override_vendor_purposes,[j,w]),{isLoading:F}=(0,h.a4)(),L=(0,r.pmc)(),z=async e=>{let t=e=>{if(L.closeAll(),(0,c.D4)(e)){let t=(0,c.e$)(e.error,"An unexpected error occurred while saving. Please try again.");L((0,m.Vo)(t))}else L((0,m.t5)("Settings saved successfully"))},n=[...e.purposeOverrides.map(e=>{let t;return e.is_consent&&(t=b.I$.CONSENT),e.is_legitimate_interest&&(t=b.I$.LEGITIMATE_INTERESTS),{purpose:e.purpose,is_included:e.is_included,required_legal_basis:t}})];if(A){let e=await v(n);if((0,c.D4)(e)){t(e);return}}let{enabled:i,...r}=e.gpp;t(await P({gpp:r}))},W=async e=>{let t=await P({consent:{override_vendor_purposes:e}});e&&await v(n.map(e=>({...e,is_included:!0,required_legal_basis:void 0}))),(e=>{if(L.closeAll(),(0,c.D4)(e)){let t=(0,c.e$)(e.error,"An unexpected error occurred while saving vendor override settings. Please try again.");L((0,m.Vo)(t))}})(t)},O=(0,o.useMemo)(()=>({purposeOverrides:n?n.map(e=>({purpose:e.purpose,is_included:e.is_included,is_consent:e.required_legal_basis===b.I$.CONSENT,is_legitimate_interest:e.required_legal_basis===b.I$.LEGITIMATE_INTERESTS})):[],gpp:I}),[n,I]);return(0,i.jsx)(u.Z,{title:"Consent Configuration",children:e||F||f||_||k?(0,i.jsx)(r.kCb,{justifyContent:"center",alignItems:"center",height:"100%",children:(0,i.jsx)(r.$jN,{})}):(0,i.jsxs)(r.xuv,{"data-testid":"consent-configuration",children:[(0,i.jsx)(p.Z,{heading:"Consent settings"}),(0,i.jsxs)(r.Kqy,{spacing:3,mb:3,children:[(0,i.jsx)(y,{title:"Transparency & Consent Framework settings",children:(0,i.jsx)(x,{name:"TCF",enabled:t})}),(0,i.jsxs)(y,{title:"Vendor overrides",children:[t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.xvT,{mb:2,fontSize:"sm",lineHeight:"5",fontWeight:"medium",color:"gray.700",children:"Configure overrides for TCF related purposes."}),(0,i.jsxs)(r.kCb,{alignItems:"center",marginBottom:2,children:[(0,i.jsx)(r.rAg,{size:"small",checked:A,onChange:W,disabled:E}),(0,i.jsx)(r.xvT,{px:2,fontSize:"sm",lineHeight:"5",fontWeight:"medium",color:"gray.700",children:"Override vendor purposes"}),(0,i.jsx)(g.Z,{label:"Toggle on if you want to globally change any flexible legal bases or remove TCF purposes from your CMP"})]}),(0,i.jsx)(r.xvT,{mb:2,fontSize:"sm",lineHeight:"5",fontWeight:"medium",color:"gray.700",children:A?"The table below allows you to adjust which TCF purposes you allow as part of your user facing notices and business activites.":null})]}):null,A&&t?(0,i.jsxs)(r.xvT,{fontSize:"sm",lineHeight:"5",fontWeight:"medium",color:"gray.700",children:["To configure this section, select the purposes you allow and where available, the appropriate legal bases (either Consent or Legitimate Interest)."," ",(0,i.jsxs)(l.Z,{href:"https://fid.es/tcf-overrides",children:["Read the guide on vendor overrides here."," "]})]}):null]})]}),(0,i.jsx)(s.J9,{initialValues:O,enableReinitialize:!0,onSubmit:z,children:e=>{let{dirty:t,isValid:n,isSubmitting:o}=e;return(0,i.jsx)(s.l0,{children:(0,i.jsxs)(r.Kqy,{spacing:6,children:[A?(0,i.jsx)(S,{}):null,(0,i.jsx)(C,{}),(0,i.jsx)(r.wpx,{htmlType:"submit",type:"primary",disabled:!t||!n,loading:o,"data-testid":"save-btn",className:"self-start",children:"Save"})]})})}})]})})}},41164:function(e,t,n){"use strict";n.d(t,{Bw:function(){return o},D4:function(){return r},Dy:function(){return l},XD:function(){return d},cz:function(){return c},hE:function(){return a},oK:function(){return s}});var i=n(76649);let r=e=>"error"in e,s=e=>(0,i.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,o=e=>(0,i.Ln)({status:"number",data:{}},e),a=e=>(0,i.Ln)({detail:"string"},e),l=e=>(0,i.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),d=e=>(0,i.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,i.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)},76649:function(e,t,n){"use strict";n.d(t,{Ln:function(){return i}});let i=(e,t)=>s(e,t),r=Symbol("SOME"),s=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?r in e?e.some(e=>s(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>s(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,n])=>s(n,t[e]));class o{static narrow(e){return new o(t=>i(e,t))}constructor(e){this.NF=void 0,this.NF=e}satisfied(e){return this.NF(e)}build(e){return e}and(e){let t=this.NF,n=e instanceof o?e.NF:e instanceof Function?e:t=>i(e,t);return new o(e=>t(e)&&n(e))}}new o(e=>!0)}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=53611)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4065],{70378:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/custom-fields",function(){return l(5667)}])},79711:function(e,t,l){"use strict";l.d(t,{q:function(){return s}});var i=l(24246);let s=(0,l(96013).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,i.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},20133:function(e,t,l){"use strict";l.d(t,{l:function(){return s}});var i=l(24246);let s=(0,l(96013).IUT)({displayName:"TrashCanSolidIcon",viewBox:"0 0 12 15",path:(0,i.jsx)("path",{d:"M8.37857 1.18083C8.23393 0.892838 7.93661 0.710938 7.6125 0.710938H4.3875C4.06339 0.710938 3.76607 0.892838 3.62143 1.18083L3.42857 1.56094H0.857143C0.383036 1.56094 -1.19209e-07 1.94158 -1.19209e-07 2.41094C-1.19209e-07 2.8803 0.383036 3.26094 0.857143 3.26094H11.1429C11.6162 3.26094 12 2.8803 12 2.41094C12 1.94158 11.6162 1.56094 11.1429 1.56094H8.57143L8.37857 1.18083ZM11.167 4.11094H0.857143V12.6109C0.857143 13.5486 1.62589 14.3109 2.57143 14.3109H9.45268C10.3754 14.3109 11.167 13.5486 11.167 12.6109V4.11094ZM9.02411 6.23594V12.1859C9.02411 12.4197 8.80714 12.6109 8.59554 12.6109C8.33571 12.6109 8.16696 12.4197 8.16696 12.1859V6.23594C8.16696 6.00219 8.33571 5.81094 8.59554 5.81094C8.80714 5.81094 9.02411 6.00219 9.02411 6.23594ZM6.45268 6.23594V12.1859C6.45268 12.4197 6.23571 12.6109 6.02411 12.6109C5.76429 12.6109 5.57143 12.4197 5.57143 12.1859V6.23594C5.57143 6.00219 5.76429 5.81094 6.02411 5.81094C6.23571 5.81094 6.45268 6.00219 6.45268 6.23594ZM3.85714 6.23594V12.1859C3.85714 12.4197 3.66429 12.6109 3.42857 12.6109C3.19286 12.6109 3 12.4197 3 12.1859V6.23594C3 6.00219 3.19286 5.81094 3.42857 5.81094C3.66429 5.81094 3.85714 6.00219 3.85714 6.23594Z",fill:"currentColor"})})},43124:function(e,t,l){"use strict";l.d(t,{Z:function(){return p}});var i=l(24246),s=l(96013),a=l(88038),o=l.n(a),n=l(86677);l(27378);var r=l(11596),d=l(72247),c=l(87162),u=()=>{let e=(0,n.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.fz)},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:l,padded:a=!0,mainProps:c}=e,p=(0,r.hz)(),x=(0,n.useRouter)(),m="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,h=!(p.flags.privacyRequestsConfiguration&&m),{data:f}=(0,d.JE)(void 0,{skip:h}),{data:C}=(0,d.PW)(void 0,{skip:h}),v=p.flags.privacyRequestsConfiguration&&(!f||!C)&&m;return(0,i.jsxs)(s.kCb,{"data-testid":l,direction:"column",h:"100vh",children:[(0,i.jsxs)(o(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",l]}),(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",...c,children:[v?(0,i.jsx)(u,{}):null,t]})]})}},38615:function(e,t,l){"use strict";l.d(t,{Tg:function(){return o}});var i=l(24246),s=l(44296),a=l(96451);let o=e=>(0,s.C)(a.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:l}=e;return o(t)?(0,i.jsx)(i.Fragment,{children:l}):null}},91591:function(e,t,l){"use strict";l.d(t,{d:function(){return s}});var i=l(24246);let s=(0,l(96013).IUT)({displayName:"AddIcon",viewBox:"0 0 10 10",path:(0,i.jsx)("path",{d:"M4.33331 4.33398V0.333984H5.66665V4.33398H9.66665V5.66732H5.66665V9.66732H4.33331V5.66732H0.333313V4.33398H4.33331Z",fill:"currentColor"})})},51425:function(e,t,l){"use strict";var i=l(24246),s=l(96013),a=l(39514);t.Z=e=>{let{title:t,tooltip:l,children:o,...n}=e;return(0,i.jsxs)(s.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...n,children:[(0,i.jsxs)(s.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,l?(0,i.jsx)(s.xvT,{as:"span",mx:1,children:(0,i.jsx)(a.Z,{label:l})}):void 0]}),(0,i.jsx)(s.Kqy,{p:6,spacing:6,children:o})]})}},5667:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return Y}});var i=l(24246),s=l(43124),a=l(96013),o=l(27378),n=l(37541),r=l(92222),d=l(59003),c=l(44296),u=l(60136),p=l(38615),x=l(8540),m=l(16781),h=l(98320),f=l(37760);let C=new Map([["string","Single Select"],["string[]","Multi Select"],["open-text","Open Text"]]),v=new Map([[f.P6.SYSTEM,"system:information"],[f.P6.DATA_USE,"taxonomy:data use"],[f.P6.DATA_CATEGORY,"taxonomy:data category"],[f.P6.DATA_SUBJECT,"taxonomy:data subject"],[f.P6.PRIVACY_DECLARATION,"system:data use"]]);var g=l(96878);let j=e=>{var t;let l=null!==(t=v.get(e.getValue()))&&void 0!==t?t:e.getValue();return(0,i.jsx)(h.G3,{...e,value:l})},_=e=>{let{row:t,getValue:l}=e,s=t.original.allow_list_id?l():"open-text",a=C.get(s)||s;return(0,i.jsx)(h.A4,{value:a})},b=e=>{let{row:t,getValue:l,isDisabled:s}=e,a=!!l(),[o]=(0,g.yM)(),n=async e=>o({...t.original,active:e});return(0,i.jsx)(h.S1,{enabled:a,onToggle:n,title:"Disable custom field",message:"Are you sure you want to disable this custom field?",isDisabled:s,"aria-label":a?"Disable custom field":"Enable custom field"})};var y=l(79711),w=l(77650);let T=e=>{let{customField:t,onEdit:l,onDelete:s,...o}=e,n=(0,a.qY0)();return(0,i.jsxs)(a.xuv,{...o,children:[(0,i.jsx)(a.wpx,{"aria-label":"Edit property","data-testid":"edit-property-button",size:"small",className:"mr-[10px]",icon:(0,i.jsx)(a.dY8,{}),onClick:e=>{e.stopPropagation(),l(t,e)}}),(0,i.jsx)(a.wpx,{"aria-label":"Delete property","data-testid":"delete-property-button",size:"small",className:"mr-[10px]",icon:(0,i.jsx)(y.q,{}),onClick:e=>{e.stopPropagation(),n.onOpen()}}),(0,i.jsx)(w.Z,{isOpen:n.isOpen,onClose:n.onClose,onConfirm:()=>{s(t),n.onClose()},title:"Delete custom field",message:(0,i.jsx)(a.xvT,{color:"gray.500",children:"Are you sure you want to delete this custom field? This will remove the custom field and all stored values and this action can't be undone."}),continueButtonText:"Confirm",isCentered:!0,icon:(0,i.jsx)(a.aNP,{})})]})};var E=l(79356),S=l(53359),L=l(34090),I=l(59389);let R={color:"gray.600",fontSize:"14px",fontWeight:"semibold",minWidth:"150px"};var H=e=>{let{customLabelProps:t,disabled:l=!1,displayHelpIcon:s=!0,helpIconVisibility:o=!1,isRequired:n=!1,label:r,type:d="text",placeholder:c,...u}=e,[p,x]=(0,L.U$)(u),{id:m,name:h,autoFocus:f}=u,C="custom-input-".concat(p.name);return(0,i.jsxs)(a.NIc,{display:"flex",isRequired:n,isInvalid:!!(x.error&&x.touched),children:[r&&(0,i.jsx)(a.lXp,{htmlFor:m||h,...t||R,children:r}),(0,i.jsxs)(a.gCW,{align:"flex-start",w:"inherit",children:["number"===d&&(0,i.jsxs)(a.Y2U,{allowMouseWheel:!0,color:"gray.700",defaultValue:0,min:0,size:"sm",children:[(0,i.jsx)(a.zuI,{...p,autoComplete:"off",autoFocus:f,"data-testid":C}),(0,i.jsxs)(a.FiK,{children:[(0,i.jsx)(a.WQu,{}),(0,i.jsx)(a.Y_d,{})]})]}),"text"===d&&(0,i.jsx)(a.IIB,{...p,autoComplete:"off",autoFocus:f,color:"gray.700",isDisabled:l,placeholder:c,size:"sm","data-testid":C}),"textarea"===d&&(0,i.jsx)(a.gxH,{...p,autoComplete:"off",autoFocus:f,color:"gray.700",placeholder:c,resize:"none",size:"sm",value:p.value||"","data-testid":C}),(0,i.jsx)(a.J1D,{children:x.error})]}),s&&(0,i.jsx)(a.kCb,{alignContent:"center",h:"32px",visibility:o?"visible":"hidden",children:(0,i.jsx)(a.ITP,{marginLeft:"8px",_hover:{cursor:"pointer"}})})]})},N=l(91591),P=l(51425),M=l(20133),V=l(78973);let k={...R,minWidth:"unset"},A=e=>{let{values:t,validationSchema:l,errors:s,dirty:n,isValid:r,isSubmitting:d,isLoading:c,onClose:u,handleDropdownChange:p,isEditing:x}=e,{validateForm:m}=(0,L.u6)();return(0,o.useEffect)(()=>{m()},[l,m]),(0,i.jsxs)(L.l0,{style:{paddingTop:"12px",paddingBottom:"12px"},children:[(0,i.jsx)(a.xuv,{py:3,children:(0,i.jsxs)(P.Z,{title:"Field Information",children:[(0,i.jsx)(H,{displayHelpIcon:!0,isRequired:!0,label:"Name",name:"name",customLabelProps:k}),(0,i.jsx)(H,{displayHelpIcon:!0,label:"Description",name:"description",customLabelProps:k}),(0,i.jsx)(V.d,{label:"Location",name:"resource_type",options:E.C7,labelProps:k,disabled:x})]})}),(0,i.jsx)(a.xuv,{py:3,children:(0,i.jsxs)(P.Z,{title:"Configuration",children:[(0,i.jsx)(V.d,{label:"Field Type",name:"field_type",labelProps:k,options:E.Hn,onChange:p}),t.field_type!==E.Uv.OPEN_TEXT?(0,i.jsx)(a.kCb,{flexDirection:"column",gap:"12px",paddingTop:"6px",paddingBottom:"24px",children:(0,i.jsx)(L.F2,{name:"allow_list.allowed_values",render:e=>{let{allowed_values:l}=t.allow_list;return(0,i.jsxs)(a.kCb,{flexDirection:"column",gap:"6",pl:"6",children:[(0,i.jsx)(a.kCb,{flexDirection:"column",children:l.map((t,s)=>(0,i.jsxs)(a.kCb,{flexGrow:1,gap:"3",mt:s>0?3:void 0,children:[(0,i.jsx)(H,{customLabelProps:{color:"gray.600",fontSize:"sm",fontWeight:"500",lineHeight:"20px",minW:"126px",pr:"8px"},displayHelpIcon:!1,isRequired:!0,label:"List item ".concat(s+1),name:"allow_list.allowed_values[".concat(s,"]")}),(0,i.jsx)(a.wpx,{"aria-label":"Remove this list value","data-testid":"remove-list-value-btn-".concat(s),icon:(0,i.jsx)(M.l,{}),disabled:l.length<=1,onClick:()=>e.remove(s),type:"text"})]},s))}),(0,i.jsxs)(a.kCb,{alignItems:"center",children:[(0,i.jsx)(a.xvT,{color:"gray.600",fontSize:"xs",fontWeight:"500",lineHeight:"16px",pr:"8px",children:"Add a list value"}),(0,i.jsx)(a.wpx,{"aria-label":"Add a list value","data-testid":"add-list-value-btn",icon:(0,i.jsx)(N.d,{h:"7px",w:"7px"}),onClick:()=>{e.push("")},size:"small"}),0===l.length&&(null==s?void 0:s.allow_list)?(0,i.jsx)(a.xvT,{color:"red.500",pl:"18px",size:"sm",children:s.allow_list.allowed_values}):null]})]})}})}):null]})}),(0,i.jsxs)(a.kCb,{justifyContent:"space-between",width:"100%",children:[(0,i.jsx)(a.wpx,{onClick:u,disabled:c||d,className:"mr-3","data-testid":"cancel-btn",children:"Cancel"}),(0,i.jsx)(a.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",loading:c,disabled:!n||!r||d,children:"Save"})]})]})},U={description:"",field_type:E.Uv.OPEN_TEXT,name:"",resource_type:f.P6.SYSTEM,allow_list:{name:"",description:"",allowed_values:[]}},z=I.IX(I.Z_().optional().label("allowed_values")),Z=I.IX(I.Z_().required("List item is required")).min(1,"Must add at least one list value").label("allowed_values"),F=I.Ry().shape({name:I.Z_().required("Name is required").trim(),allow_list:I.Ry().shape({allowed_values:z})}),D=I.Ry().shape({name:I.Z_().required("Name is required").trim(),allow_list:I.Ry().shape({allowed_values:Z})}),O=(e,t)=>{var l,i,s;let a;if(!e)return;e.field_type!==f.AL.STRING||e.allow_list_id||(a=E.Uv.OPEN_TEXT),e.field_type===f.AL.STRING&&e.allow_list_id&&(a=E.Uv.SINGLE_SELECT),e.field_type===f.AL.STRING_&&e.allow_list_id&&(a=E.Uv.MULTIPLE_SELECT);let o=t?{name:null!==(l=t.name)&&void 0!==l?l:"",description:null!==(i=t.description)&&void 0!==i?i:"",allowed_values:null!==(s=t.allowed_values)&&void 0!==s?s:[]}:U.allow_list;return{...e,field_type:a||E.Uv.OPEN_TEXT,allow_list:o}},q=e=>{let{isOpen:t,onClose:l,isLoading:s,customField:n}=e,{errorAlert:r,successAlert:d}=(0,S.V)(),[c]=(0,g.Ld)(),[p]=(0,g.yM)(),[x]=(0,g.Nt)(),{data:m,isLoading:h}=(0,g.vA)(null==n?void 0:n.allow_list_id,{skip:!(null==n?void 0:n.allow_list_id)}),[C,v]=(0,o.useState)(F);if(h||!t)return null;let j=O(n,m),_=!!j,b=e=>{e===E.Uv.OPEN_TEXT?v(F):v(D)},y=async e=>{if([E.Uv.SINGLE_SELECT,E.Uv.MULTIPLE_SELECT].includes(e.field_type)){var t,i;if(new Set(null===(t=e.allow_list)||void 0===t?void 0:t.allowed_values.map(e=>e.toLowerCase().trim()).map(e=>e)).size<e.allow_list.allowed_values.length){r("List item value must be unique");return}let{allow_list:l}=e;e.allow_list_id&&(l.id=e.allow_list_id),l.name||(l.name=Date.now().toString()+Math.random().toString());let s=await x(l);"error"in s||e.allow_list_id||(e.allow_list_id=null===(i=s.data)||void 0===i?void 0:i.id)}e.field_type===E.Uv.OPEN_TEXT&&(e.allow_list_id=void 0),[E.Uv.SINGLE_SELECT,E.Uv.OPEN_TEXT].includes(e.field_type)&&(e.field_type=f.AL.STRING),e.field_type===E.Uv.MULTIPLE_SELECT&&(e.field_type=f.AL.STRING_);let s={...e};delete s.allow_list;let a=n?await p(s):await c(s);"error"in a?r((0,u.e$)(a.error),"Custom field has failed to save due to the following:"):(l(),d("Custom field successfully saved"))};return(0,i.jsxs)(a.u_l,{id:"custom-field-modal-hello-world",isOpen:t,onClose:l,size:"lg",returnFocusOnClose:!1,isCentered:!0,children:[(0,i.jsx)(a.ZAr,{}),(0,i.jsxs)(a.hzk,{id:"modal-content","data-testid":"custom-field-modal",maxHeight:"80%",overflowY:"auto",children:[(0,i.jsx)(a.xBx,{id:"modal-header",fontWeight:"semibold",lineHeight:5,fontSize:"sm",py:"18px",px:6,height:"56px",backgroundColor:"gray.50",borderColor:"gray.200",borderWidth:"0px 0px 1px 1p",borderTopRightRadius:"8px",borderTopLeftRadius:"8px",boxSizing:"border-box",children:n?"Manage Custom Field":"Add a custom field"}),(0,i.jsx)(a.fef,{px:6,py:0,children:(0,i.jsx)(L.J9,{initialValues:j||U,validationSchema:C,onSubmit:y,enableReinitialize:!0,validateOnChange:!0,children:e=>(0,i.jsx)(A,{isEditing:_,validationSchema:C,isLoading:s,onClose:l,handleDropdownChange:b,...e})})})]})]})},W="Add a custom field",G=()=>(0,i.jsx)(a.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,i.jsxs)(a.gCW,{children:[(0,i.jsx)(a.xvT,{fontSize:"md",fontWeight:"600",children:"It looks like it’s your first time here!"}),(0,i.jsxs)(a.xvT,{fontSize:"sm",children:["You haven’t created any custom fields yet.",(0,i.jsx)("br",{}),"To create a custom field, click on the"," ",(0,i.jsxs)("strong",{children:['"',W,'"']})," button"]})]})}),X=(0,r.Cl)(),B=e=>{let{...t}=e,l=(0,a.pmc)(),{isLoading:s}=(0,g.GH)(),n=(0,c.C)(g.fN),[h]=(0,g.UF)(),{isOpen:C,onClose:v,onOpen:y}=(0,a.qY0)(),[w,E]=(0,o.useState)(),[S,L]=(0,o.useState)(),I=(0,p.Tg)([f.Sh.CUSTOM_FIELD_UPDATE]),R=(0,p.Tg)([f.Sh.CUSTOM_FIELD_DELETE]),H=e=>{I&&(E(e),y())},N=async e=>{if(R&&e.id){let t=await h({id:e.id});if((0,u.D4)(t)){l((0,m.Vo)((0,u.e$)(t.error)));return}l((0,m.t5)("Custom field deleted"))}},P=(0,o.useMemo)(()=>[X.accessor(e=>e.name,{id:"name",cell:e=>(0,i.jsx)(x.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,i.jsx)(x.Rr,{value:"Label",...e})}),X.accessor(e=>e.description,{id:"description",cell:e=>(0,i.jsx)(x.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,i.jsx)(x.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),X.accessor(e=>e.field_type,{id:"field_type",cell:_,header:e=>(0,i.jsx)(x.Rr,{value:"Field Type",...e})}),X.accessor(e=>e.resource_type,{id:"resource_type",cell:j,header:e=>(0,i.jsx)(x.Rr,{value:"Locations",...e})}),I&&X.accessor(e=>e.active,{id:"enable",cell:b,header:e=>(0,i.jsx)(x.Rr,{value:"Enable",...e}),meta:{disableRowClick:!0}}),(I||R)&&X.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e;return(0,i.jsx)(T,{customField:t.original,onEdit:H,onDelete:N})},meta:{disableRowClick:!0}})].filter(Boolean),[R,I]),M=(0,d.b7)({getCoreRowModel:(0,r.sC)(),getFilteredRowModel:(0,r.vL)(),getSortedRowModel:(0,r.tj)(),onGlobalFilterChange:L,globalFilterFn:"includesString",columns:P,data:n,state:{globalFilter:S},columnResizeMode:"onChange"});return(0,i.jsxs)(a.xuv,{...t,children:[(0,i.jsx)(a.xuv,{maxWidth:600,children:(0,i.jsx)(a.xvT,{mb:10,fontSize:"sm",children:n.length>0?"Custom fields enable you to capture metrics specific to your organization and have those metrics appear in the data map and in reports.":"Custom fields provide organizations with the capability to capture metrics that are unique to their specific needs, allowing them to create customized reports. These fields can be added to either systems or elements within a taxonomy, and once added, they become reportable fields that are visible on the data map."})}),(0,i.jsxs)(a.xuv,{"data-testid":"custom-fields-page",children:[(0,i.jsxs)(x.Q$,{children:[(0,i.jsx)(x.HO,{globalFilter:S,setGlobalFilter:L,placeholder:"Search for a custom field"}),(0,i.jsx)(a.Ugi,{alignItems:"center",spacing:4,children:(0,i.jsx)(()=>(0,i.jsx)(p.ZP,{scopes:[f.Sh.CUSTOM_FIELD_DEFINITION_CREATE],children:(0,i.jsx)(a.wpx,{type:"primary","data-testid":"add-custom-field-btn",onClick:y,children:W})}),{})})]}),s?(0,i.jsx)(a.xuv,{p:2,borderWidth:1,children:(0,i.jsx)(x.I4,{rowHeight:26,numRows:10})}):(0,i.jsx)(x.ZK,{tableInstance:M,onRowClick:I?H:void 0,emptyTableNotice:(0,i.jsx)(G,{}),enableSorting:!0}),C&&(0,i.jsx)(q,{customField:w,isOpen:C,onClose:()=>{E(void 0),v()},isLoading:!1})]})]})};var Y=()=>(0,i.jsx)(s.Z,{title:"Custom fields",children:(0,i.jsxs)(a.xuv,{"data-testid":"custom-fields-management",children:[(0,i.jsx)(n.Z,{heading:"Custom fields"}),(0,i.jsx)(B,{})]})})}},function(e){e.O(0,[8033,5559,8540,5973,2888,9774,179],function(){return e(e.s=70378)}),_N_E=e.O()}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4065],{70378:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/custom-fields",function(){return l(5667)}])},79711:function(e,t,l){"use strict";l.d(t,{q:function(){return s}});var i=l(24246);let s=(0,l(52615).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,i.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},20133:function(e,t,l){"use strict";l.d(t,{l:function(){return s}});var i=l(24246);let s=(0,l(52615).IUT)({displayName:"TrashCanSolidIcon",viewBox:"0 0 12 15",path:(0,i.jsx)("path",{d:"M8.37857 1.18083C8.23393 0.892838 7.93661 0.710938 7.6125 0.710938H4.3875C4.06339 0.710938 3.76607 0.892838 3.62143 1.18083L3.42857 1.56094H0.857143C0.383036 1.56094 -1.19209e-07 1.94158 -1.19209e-07 2.41094C-1.19209e-07 2.8803 0.383036 3.26094 0.857143 3.26094H11.1429C11.6162 3.26094 12 2.8803 12 2.41094C12 1.94158 11.6162 1.56094 11.1429 1.56094H8.57143L8.37857 1.18083ZM11.167 4.11094H0.857143V12.6109C0.857143 13.5486 1.62589 14.3109 2.57143 14.3109H9.45268C10.3754 14.3109 11.167 13.5486 11.167 12.6109V4.11094ZM9.02411 6.23594V12.1859C9.02411 12.4197 8.80714 12.6109 8.59554 12.6109C8.33571 12.6109 8.16696 12.4197 8.16696 12.1859V6.23594C8.16696 6.00219 8.33571 5.81094 8.59554 5.81094C8.80714 5.81094 9.02411 6.00219 9.02411 6.23594ZM6.45268 6.23594V12.1859C6.45268 12.4197 6.23571 12.6109 6.02411 12.6109C5.76429 12.6109 5.57143 12.4197 5.57143 12.1859V6.23594C5.57143 6.00219 5.76429 5.81094 6.02411 5.81094C6.23571 5.81094 6.45268 6.00219 6.45268 6.23594ZM3.85714 6.23594V12.1859C3.85714 12.4197 3.66429 12.6109 3.42857 12.6109C3.19286 12.6109 3 12.4197 3 12.1859V6.23594C3 6.00219 3.19286 5.81094 3.42857 5.81094C3.66429 5.81094 3.85714 6.00219 3.85714 6.23594Z",fill:"currentColor"})})},43124:function(e,t,l){"use strict";l.d(t,{Z:function(){return p}});var i=l(24246),s=l(52615),a=l(88038),o=l.n(a),n=l(86677);l(27378);var r=l(11596),d=l(72247),c=l(87162),u=()=>{let e=(0,n.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.fz)},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:l,padded:a=!0,mainProps:c}=e,p=(0,r.hz)(),x=(0,n.useRouter)(),m="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,h=!(p.flags.privacyRequestsConfiguration&&m),{data:f}=(0,d.JE)(void 0,{skip:h}),{data:C}=(0,d.PW)(void 0,{skip:h}),v=p.flags.privacyRequestsConfiguration&&(!f||!C)&&m;return(0,i.jsxs)(s.kCb,{"data-testid":l,direction:"column",h:"100vh",children:[(0,i.jsxs)(o(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",l]}),(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",...c,children:[v?(0,i.jsx)(u,{}):null,t]})]})}},38615:function(e,t,l){"use strict";l.d(t,{Tg:function(){return o}});var i=l(24246),s=l(44296),a=l(96451);let o=e=>(0,s.C)(a.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:l}=e;return o(t)?(0,i.jsx)(i.Fragment,{children:l}):null}},91591:function(e,t,l){"use strict";l.d(t,{d:function(){return s}});var i=l(24246);let s=(0,l(52615).IUT)({displayName:"AddIcon",viewBox:"0 0 10 10",path:(0,i.jsx)("path",{d:"M4.33331 4.33398V0.333984H5.66665V4.33398H9.66665V5.66732H5.66665V9.66732H4.33331V5.66732H0.333313V4.33398H4.33331Z",fill:"currentColor"})})},51425:function(e,t,l){"use strict";var i=l(24246),s=l(52615),a=l(39514);t.Z=e=>{let{title:t,tooltip:l,children:o,...n}=e;return(0,i.jsxs)(s.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...n,children:[(0,i.jsxs)(s.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,l?(0,i.jsx)(s.xvT,{as:"span",mx:1,children:(0,i.jsx)(a.Z,{label:l})}):void 0]}),(0,i.jsx)(s.Kqy,{p:6,spacing:6,children:o})]})}},5667:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return Y}});var i=l(24246),s=l(43124),a=l(52615),o=l(27378),n=l(37541),r=l(92222),d=l(59003),c=l(44296),u=l(60136),p=l(38615),x=l(8540),m=l(16781),h=l(98320),f=l(37760);let C=new Map([["string","Single Select"],["string[]","Multi Select"],["open-text","Open Text"]]),v=new Map([[f.P6.SYSTEM,"system:information"],[f.P6.DATA_USE,"taxonomy:data use"],[f.P6.DATA_CATEGORY,"taxonomy:data category"],[f.P6.DATA_SUBJECT,"taxonomy:data subject"],[f.P6.PRIVACY_DECLARATION,"system:data use"]]);var g=l(96878);let j=e=>{var t;let l=null!==(t=v.get(e.getValue()))&&void 0!==t?t:e.getValue();return(0,i.jsx)(h.G3,{...e,value:l})},_=e=>{let{row:t,getValue:l}=e,s=t.original.allow_list_id?l():"open-text",a=C.get(s)||s;return(0,i.jsx)(h.A4,{value:a})},b=e=>{let{row:t,getValue:l,isDisabled:s}=e,a=!!l(),[o]=(0,g.yM)(),n=async e=>o({...t.original,active:e});return(0,i.jsx)(h.S1,{enabled:a,onToggle:n,title:"Disable custom field",message:"Are you sure you want to disable this custom field?",isDisabled:s,"aria-label":a?"Disable custom field":"Enable custom field"})};var y=l(79711),w=l(77650);let T=e=>{let{customField:t,onEdit:l,onDelete:s,...o}=e,n=(0,a.qY0)();return(0,i.jsxs)(a.xuv,{...o,children:[(0,i.jsx)(a.wpx,{"aria-label":"Edit property","data-testid":"edit-property-button",size:"small",className:"mr-[10px]",icon:(0,i.jsx)(a.dY8,{}),onClick:e=>{e.stopPropagation(),l(t,e)}}),(0,i.jsx)(a.wpx,{"aria-label":"Delete property","data-testid":"delete-property-button",size:"small",className:"mr-[10px]",icon:(0,i.jsx)(y.q,{}),onClick:e=>{e.stopPropagation(),n.onOpen()}}),(0,i.jsx)(w.Z,{isOpen:n.isOpen,onClose:n.onClose,onConfirm:()=>{s(t),n.onClose()},title:"Delete custom field",message:(0,i.jsx)(a.xvT,{color:"gray.500",children:"Are you sure you want to delete this custom field? This will remove the custom field and all stored values and this action can't be undone."}),continueButtonText:"Confirm",isCentered:!0,icon:(0,i.jsx)(a.aNP,{})})]})};var E=l(79356),S=l(53359),L=l(34090),I=l(59389);let R={color:"gray.600",fontSize:"14px",fontWeight:"semibold",minWidth:"150px"};var H=e=>{let{customLabelProps:t,disabled:l=!1,displayHelpIcon:s=!0,helpIconVisibility:o=!1,isRequired:n=!1,label:r,type:d="text",placeholder:c,...u}=e,[p,x]=(0,L.U$)(u),{id:m,name:h,autoFocus:f}=u,C="custom-input-".concat(p.name);return(0,i.jsxs)(a.NIc,{display:"flex",isRequired:n,isInvalid:!!(x.error&&x.touched),children:[r&&(0,i.jsx)(a.lXp,{htmlFor:m||h,...t||R,children:r}),(0,i.jsxs)(a.gCW,{align:"flex-start",w:"inherit",children:["number"===d&&(0,i.jsxs)(a.Y2U,{allowMouseWheel:!0,color:"gray.700",defaultValue:0,min:0,size:"sm",children:[(0,i.jsx)(a.zuI,{...p,autoComplete:"off",autoFocus:f,"data-testid":C}),(0,i.jsxs)(a.FiK,{children:[(0,i.jsx)(a.WQu,{}),(0,i.jsx)(a.Y_d,{})]})]}),"text"===d&&(0,i.jsx)(a.IIB,{...p,autoComplete:"off",autoFocus:f,color:"gray.700",isDisabled:l,placeholder:c,size:"sm","data-testid":C}),"textarea"===d&&(0,i.jsx)(a.gxH,{...p,autoComplete:"off",autoFocus:f,color:"gray.700",placeholder:c,resize:"none",size:"sm",value:p.value||"","data-testid":C}),(0,i.jsx)(a.J1D,{children:x.error})]}),s&&(0,i.jsx)(a.kCb,{alignContent:"center",h:"32px",visibility:o?"visible":"hidden",children:(0,i.jsx)(a.ITP,{marginLeft:"8px",_hover:{cursor:"pointer"}})})]})},N=l(91591),P=l(51425),M=l(20133),V=l(78973);let k={...R,minWidth:"unset"},A=e=>{let{values:t,validationSchema:l,errors:s,dirty:n,isValid:r,isSubmitting:d,isLoading:c,onClose:u,handleDropdownChange:p,isEditing:x}=e,{validateForm:m}=(0,L.u6)();return(0,o.useEffect)(()=>{m()},[l,m]),(0,i.jsxs)(L.l0,{style:{paddingTop:"12px",paddingBottom:"12px"},children:[(0,i.jsx)(a.xuv,{py:3,children:(0,i.jsxs)(P.Z,{title:"Field Information",children:[(0,i.jsx)(H,{displayHelpIcon:!0,isRequired:!0,label:"Name",name:"name",customLabelProps:k}),(0,i.jsx)(H,{displayHelpIcon:!0,label:"Description",name:"description",customLabelProps:k}),(0,i.jsx)(V.d,{label:"Location",name:"resource_type",options:E.C7,labelProps:k,disabled:x})]})}),(0,i.jsx)(a.xuv,{py:3,children:(0,i.jsxs)(P.Z,{title:"Configuration",children:[(0,i.jsx)(V.d,{label:"Field Type",name:"field_type",labelProps:k,options:E.Hn,onChange:p}),t.field_type!==E.Uv.OPEN_TEXT?(0,i.jsx)(a.kCb,{flexDirection:"column",gap:"12px",paddingTop:"6px",paddingBottom:"24px",children:(0,i.jsx)(L.F2,{name:"allow_list.allowed_values",render:e=>{let{allowed_values:l}=t.allow_list;return(0,i.jsxs)(a.kCb,{flexDirection:"column",gap:"6",pl:"6",children:[(0,i.jsx)(a.kCb,{flexDirection:"column",children:l.map((t,s)=>(0,i.jsxs)(a.kCb,{flexGrow:1,gap:"3",mt:s>0?3:void 0,children:[(0,i.jsx)(H,{customLabelProps:{color:"gray.600",fontSize:"sm",fontWeight:"500",lineHeight:"20px",minW:"126px",pr:"8px"},displayHelpIcon:!1,isRequired:!0,label:"List item ".concat(s+1),name:"allow_list.allowed_values[".concat(s,"]")}),(0,i.jsx)(a.wpx,{"aria-label":"Remove this list value","data-testid":"remove-list-value-btn-".concat(s),icon:(0,i.jsx)(M.l,{}),disabled:l.length<=1,onClick:()=>e.remove(s),type:"text"})]},s))}),(0,i.jsxs)(a.kCb,{alignItems:"center",children:[(0,i.jsx)(a.xvT,{color:"gray.600",fontSize:"xs",fontWeight:"500",lineHeight:"16px",pr:"8px",children:"Add a list value"}),(0,i.jsx)(a.wpx,{"aria-label":"Add a list value","data-testid":"add-list-value-btn",icon:(0,i.jsx)(N.d,{h:"7px",w:"7px"}),onClick:()=>{e.push("")},size:"small"}),0===l.length&&(null==s?void 0:s.allow_list)?(0,i.jsx)(a.xvT,{color:"red.500",pl:"18px",size:"sm",children:s.allow_list.allowed_values}):null]})]})}})}):null]})}),(0,i.jsxs)(a.kCb,{justifyContent:"space-between",width:"100%",children:[(0,i.jsx)(a.wpx,{onClick:u,disabled:c||d,className:"mr-3","data-testid":"cancel-btn",children:"Cancel"}),(0,i.jsx)(a.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",loading:c,disabled:!n||!r||d,children:"Save"})]})]})},U={description:"",field_type:E.Uv.OPEN_TEXT,name:"",resource_type:f.P6.SYSTEM,allow_list:{name:"",description:"",allowed_values:[]}},z=I.IX(I.Z_().optional().label("allowed_values")),Z=I.IX(I.Z_().required("List item is required")).min(1,"Must add at least one list value").label("allowed_values"),F=I.Ry().shape({name:I.Z_().required("Name is required").trim(),allow_list:I.Ry().shape({allowed_values:z})}),D=I.Ry().shape({name:I.Z_().required("Name is required").trim(),allow_list:I.Ry().shape({allowed_values:Z})}),O=(e,t)=>{var l,i,s;let a;if(!e)return;e.field_type!==f.AL.STRING||e.allow_list_id||(a=E.Uv.OPEN_TEXT),e.field_type===f.AL.STRING&&e.allow_list_id&&(a=E.Uv.SINGLE_SELECT),e.field_type===f.AL.STRING_&&e.allow_list_id&&(a=E.Uv.MULTIPLE_SELECT);let o=t?{name:null!==(l=t.name)&&void 0!==l?l:"",description:null!==(i=t.description)&&void 0!==i?i:"",allowed_values:null!==(s=t.allowed_values)&&void 0!==s?s:[]}:U.allow_list;return{...e,field_type:a||E.Uv.OPEN_TEXT,allow_list:o}},q=e=>{let{isOpen:t,onClose:l,isLoading:s,customField:n}=e,{errorAlert:r,successAlert:d}=(0,S.V)(),[c]=(0,g.Ld)(),[p]=(0,g.yM)(),[x]=(0,g.Nt)(),{data:m,isLoading:h}=(0,g.vA)(null==n?void 0:n.allow_list_id,{skip:!(null==n?void 0:n.allow_list_id)}),[C,v]=(0,o.useState)(F);if(h||!t)return null;let j=O(n,m),_=!!j,b=e=>{e===E.Uv.OPEN_TEXT?v(F):v(D)},y=async e=>{if([E.Uv.SINGLE_SELECT,E.Uv.MULTIPLE_SELECT].includes(e.field_type)){var t,i;if(new Set(null===(t=e.allow_list)||void 0===t?void 0:t.allowed_values.map(e=>e.toLowerCase().trim()).map(e=>e)).size<e.allow_list.allowed_values.length){r("List item value must be unique");return}let{allow_list:l}=e;e.allow_list_id&&(l.id=e.allow_list_id),l.name||(l.name=Date.now().toString()+Math.random().toString());let s=await x(l);"error"in s||e.allow_list_id||(e.allow_list_id=null===(i=s.data)||void 0===i?void 0:i.id)}e.field_type===E.Uv.OPEN_TEXT&&(e.allow_list_id=void 0),[E.Uv.SINGLE_SELECT,E.Uv.OPEN_TEXT].includes(e.field_type)&&(e.field_type=f.AL.STRING),e.field_type===E.Uv.MULTIPLE_SELECT&&(e.field_type=f.AL.STRING_);let s={...e};delete s.allow_list;let a=n?await p(s):await c(s);"error"in a?r((0,u.e$)(a.error),"Custom field has failed to save due to the following:"):(l(),d("Custom field successfully saved"))};return(0,i.jsxs)(a.u_l,{id:"custom-field-modal-hello-world",isOpen:t,onClose:l,size:"lg",returnFocusOnClose:!1,isCentered:!0,children:[(0,i.jsx)(a.ZAr,{}),(0,i.jsxs)(a.hzk,{id:"modal-content","data-testid":"custom-field-modal",maxHeight:"80%",overflowY:"auto",children:[(0,i.jsx)(a.xBx,{id:"modal-header",fontWeight:"semibold",lineHeight:5,fontSize:"sm",py:"18px",px:6,height:"56px",backgroundColor:"gray.50",borderColor:"gray.200",borderWidth:"0px 0px 1px 1p",borderTopRightRadius:"8px",borderTopLeftRadius:"8px",boxSizing:"border-box",children:n?"Manage Custom Field":"Add a custom field"}),(0,i.jsx)(a.fef,{px:6,py:0,children:(0,i.jsx)(L.J9,{initialValues:j||U,validationSchema:C,onSubmit:y,enableReinitialize:!0,validateOnChange:!0,children:e=>(0,i.jsx)(A,{isEditing:_,validationSchema:C,isLoading:s,onClose:l,handleDropdownChange:b,...e})})})]})]})},W="Add a custom field",G=()=>(0,i.jsx)(a.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,i.jsxs)(a.gCW,{children:[(0,i.jsx)(a.xvT,{fontSize:"md",fontWeight:"600",children:"It looks like it’s your first time here!"}),(0,i.jsxs)(a.xvT,{fontSize:"sm",children:["You haven’t created any custom fields yet.",(0,i.jsx)("br",{}),"To create a custom field, click on the"," ",(0,i.jsxs)("strong",{children:['"',W,'"']})," button"]})]})}),X=(0,r.Cl)(),B=e=>{let{...t}=e,l=(0,a.pmc)(),{isLoading:s}=(0,g.GH)(),n=(0,c.C)(g.fN),[h]=(0,g.UF)(),{isOpen:C,onClose:v,onOpen:y}=(0,a.qY0)(),[w,E]=(0,o.useState)(),[S,L]=(0,o.useState)(),I=(0,p.Tg)([f.Sh.CUSTOM_FIELD_UPDATE]),R=(0,p.Tg)([f.Sh.CUSTOM_FIELD_DELETE]),H=e=>{I&&(E(e),y())},N=async e=>{if(R&&e.id){let t=await h({id:e.id});if((0,u.D4)(t)){l((0,m.Vo)((0,u.e$)(t.error)));return}l((0,m.t5)("Custom field deleted"))}},P=(0,o.useMemo)(()=>[X.accessor(e=>e.name,{id:"name",cell:e=>(0,i.jsx)(x.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,i.jsx)(x.Rr,{value:"Label",...e})}),X.accessor(e=>e.description,{id:"description",cell:e=>(0,i.jsx)(x.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,i.jsx)(x.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),X.accessor(e=>e.field_type,{id:"field_type",cell:_,header:e=>(0,i.jsx)(x.Rr,{value:"Field Type",...e})}),X.accessor(e=>e.resource_type,{id:"resource_type",cell:j,header:e=>(0,i.jsx)(x.Rr,{value:"Locations",...e})}),I&&X.accessor(e=>e.active,{id:"enable",cell:b,header:e=>(0,i.jsx)(x.Rr,{value:"Enable",...e}),meta:{disableRowClick:!0}}),(I||R)&&X.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e;return(0,i.jsx)(T,{customField:t.original,onEdit:H,onDelete:N})},meta:{disableRowClick:!0}})].filter(Boolean),[R,I]),M=(0,d.b7)({getCoreRowModel:(0,r.sC)(),getFilteredRowModel:(0,r.vL)(),getSortedRowModel:(0,r.tj)(),onGlobalFilterChange:L,globalFilterFn:"includesString",columns:P,data:n,state:{globalFilter:S},columnResizeMode:"onChange"});return(0,i.jsxs)(a.xuv,{...t,children:[(0,i.jsx)(a.xuv,{maxWidth:600,children:(0,i.jsx)(a.xvT,{mb:10,fontSize:"sm",children:n.length>0?"Custom fields enable you to capture metrics specific to your organization and have those metrics appear in the data map and in reports.":"Custom fields provide organizations with the capability to capture metrics that are unique to their specific needs, allowing them to create customized reports. These fields can be added to either systems or elements within a taxonomy, and once added, they become reportable fields that are visible on the data map."})}),(0,i.jsxs)(a.xuv,{"data-testid":"custom-fields-page",children:[(0,i.jsxs)(x.Q$,{children:[(0,i.jsx)(x.HO,{globalFilter:S,setGlobalFilter:L,placeholder:"Search for a custom field"}),(0,i.jsx)(a.Ugi,{alignItems:"center",spacing:4,children:(0,i.jsx)(()=>(0,i.jsx)(p.ZP,{scopes:[f.Sh.CUSTOM_FIELD_DEFINITION_CREATE],children:(0,i.jsx)(a.wpx,{type:"primary","data-testid":"add-custom-field-btn",onClick:y,children:W})}),{})})]}),s?(0,i.jsx)(a.xuv,{p:2,borderWidth:1,children:(0,i.jsx)(x.I4,{rowHeight:26,numRows:10})}):(0,i.jsx)(x.ZK,{tableInstance:M,onRowClick:I?H:void 0,emptyTableNotice:(0,i.jsx)(G,{}),enableSorting:!0}),C&&(0,i.jsx)(q,{customField:w,isOpen:C,onClose:()=>{E(void 0),v()},isLoading:!1})]})]})};var Y=()=>(0,i.jsx)(s.Z,{title:"Custom fields",children:(0,i.jsxs)(a.xuv,{"data-testid":"custom-fields-management",children:[(0,i.jsx)(n.Z,{heading:"Custom fields"}),(0,i.jsx)(B,{})]})})}},function(e){e.O(0,[8033,2780,8540,5973,2888,9774,179],function(){return e(e.s=70378)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1051],{55342:function(e,n,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/domain-records",function(){return o(58316)}])},43124:function(e,n,o){"use strict";o.d(n,{Z:function(){return m}});var r=o(24246),i=o(
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1051],{55342:function(e,n,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/domain-records",function(){return o(58316)}])},43124:function(e,n,o){"use strict";o.d(n,{Z:function(){return m}});var r=o(24246),i=o(52615),t=o(88038),s=o.n(t),a=o(86677);o(27378);var c=o(11596),d=o(72247),l=o(87162),u=()=>{let e=(0,a.useRouter)();return(0,r.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,r.jsxs)(i.xuv,{children:[(0,r.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,r.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,r.jsx)(i.wpx,{onClick:()=>{e.push(l.fz)},children:"Configure"})]}),(0,r.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=e=>{let{children:n,title:o,padded:t=!0,mainProps:l}=e,m=(0,c.hz)(),h=(0,a.useRouter)(),x="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,f=!(m.flags.privacyRequestsConfiguration&&x),{data:p}=(0,d.JE)(void 0,{skip:f}),{data:v}=(0,d.PW)(void 0,{skip:f}),g=m.flags.privacyRequestsConfiguration&&(!p||!v)&&x;return(0,r.jsxs)(i.kCb,{"data-testid":o,direction:"column",h:"100vh",children:[(0,r.jsxs)(s(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",o]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsxs)(i.kCb,{as:"main",direction:"column",py:t?6:0,px:t?10:0,h:t?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...l,children:[g?(0,r.jsx)(u,{}):null,n]})]})}},58316:function(e,n,o){"use strict";o.r(n);var r=o(24246),i=o(92222),t=o(59003),s=o(52615),a=o(27378),c=o(71288),d=o(43124),l=o(8540),u=o(96878);let m=(0,i.Cl)();n.default=()=>{let e=(0,a.useMemo)(()=>[m.accessor(e=>e.hostName,{header:"Name",cell:e=>(0,r.jsx)(l.G3,{value:e.getValue()})}),m.accessor(e=>e.type,{header:"Type",cell:e=>(0,r.jsx)(l.G3,{value:e.getValue()})}),m.accessor(e=>e.data,{header:"Value",cell:e=>(0,r.jsx)(l.G3,{value:e.getValue()})}),m.display({id:"actions",cell:e=>{let{row:n}=e;return(0,r.jsx)(c.Z,{copyText:n.original.data,type:"default",size:"small"})},header:"Actions",maxSize:65})],[]),{data:n,isLoading:o}=(0,u.Vh)(),h=(0,a.useMemo)(()=>(null==n?void 0:n.domain_verification_records)?n.domain_verification_records.map(e=>({hostName:"www",type:"CNAME",data:e})):[],[n]),x=(0,t.b7)({getCoreRowModel:(0,i.sC)(),columns:e,data:h,columnResizeMode:"onChange"});return(0,r.jsx)(d.Z,{title:"Domain records",children:(0,r.jsxs)(s.xuv,{"data-testid":"domain-records",children:[(0,r.jsx)(s.X6q,{marginBottom:4,fontSize:"2xl",children:"Domain records"}),(0,r.jsxs)(s.xuv,{maxWidth:"600px",children:[(0,r.jsx)(s.xvT,{marginBottom:2,fontSize:"md",children:"Set the following record on your DNS provider to continue."}),(0,r.jsxs)(s.xvT,{mb:10,fontSize:"sm",children:["Please visit"," ",(0,r.jsx)(s.rUS,{color:"complimentary.500",href:"https://fid.es/manage-dns",isExternal:!0,children:"docs.ethyca.com"})," ","for more information on how to configure Domain records."]}),o?(0,r.jsx)(s.xuv,{p:2,borderWidth:1,children:(0,r.jsx)(l.I4,{rowHeight:26,numRows:5})}):(0,r.jsx)(l.ZK,{tableInstance:x})]})]})})}}},function(e){e.O(0,[8033,2780,8540,2888,9774,179],function(){return e(e.s=55342)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9252],{98648:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/domains",function(){return n(28049)}])},14838:function(e,t,n){"use strict";var i=n(24246),r=n(52615);t.Z=e=>(0,i.jsx)(r.rUS,{isExternal:!0,color:"complimentary.500",...e})},43124:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var i=n(24246),r=n(52615),s=n(88038),a=n.n(s),o=n(86677);n(27378);var c=n(11596),l=n(72247),d=n(87162),u=()=>{let e=(0,o.useRouter)();return(0,i.jsx)(r.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(r.xuv,{children:[(0,i.jsxs)(r.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(r.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(r.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,i.jsxs)(r.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=e=>{let{children:t,title:n,padded:s=!0,mainProps:d}=e,m=(0,c.hz)(),g=(0,o.useRouter)(),p="/privacy-requests"===g.pathname||"/datastore-connection"===g.pathname,h=!(m.flags.privacyRequestsConfiguration&&p),{data:x}=(0,l.JE)(void 0,{skip:h}),{data:f}=(0,l.PW)(void 0,{skip:h}),j=m.flags.privacyRequestsConfiguration&&(!x||!f)&&p;return(0,i.jsxs)(r.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(a(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(r.kCb,{as:"main",direction:"column",py:s?6:0,px:s?10:0,h:s?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[j?(0,i.jsx)(u,{}):null,t]})]})}},37541:function(e,t,n){"use strict";var i=n(24246),r=n(52615),s=n(53614);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:a=!0,children:o,rightContent:c,style:l,...d}=e;return(0,i.jsxs)("div",{...d,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...l}:{paddingBottom:"24px",...l},children:[(0,i.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(r.X6q,{className:n||o?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,c&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:c})]}),!!n&&(0,i.jsx)(s.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},51425:function(e,t,n){"use strict";var i=n(24246),r=n(52615),s=n(39514);t.Z=e=>{let{title:t,tooltip:n,children:a,...o}=e;return(0,i.jsxs)(r.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...o,children:[(0,i.jsxs)(r.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,n?(0,i.jsx)(r.xvT,{as:"span",mx:1,children:(0,i.jsx)(s.Z,{label:n})}):void 0]}),(0,i.jsx)(r.Kqy,{p:6,spacing:6,children:a})]})}},60136:function(e,t,n){"use strict";n.d(t,{D4:function(){return s.D4},MM:function(){return m},Ot:function(){return l},c6:function(){return r},cj:function(){return p},e$:function(){return o},fn:function(){return c},iC:function(){return g},nU:function(){return u},tB:function(){return d}});var i,r,s=n(41164);let a="An unexpected error occurred. Please try again.",o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;if((0,s.Bw)(e)){if((0,s.hE)(e.data))return e.data.detail;if((0,s.cz)(e.data)){var n;let t=null===(n=e.data.detail)||void 0===n?void 0:n[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,s.Dy)(e.data)||404===e.status&&(0,s.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function c(e){return"object"==typeof e&&null!=e&&"status"in e}function l(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function d(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:a};if((0,s.oK)(e))return{status:e.originalStatus,message:e.data};if((0,s.Bw)(e)){let{status:n}=e;return{status:n,message:o(e,t.message)}}return t},m=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(i=r||(r={})).GVL="gvl",i.AC="gacp",i.COMPASS="compass";let g={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},p=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},53614:function(e,t,n){"use strict";n.d(t,{m:function(){return l}});var i=n(24246),r=n(52615),s=n(79894),a=n.n(s),o=n(27378);let{Text:c}=r.AntTypography,l=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},l=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,i.jsx)(c,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:o.title})),l)?o.title=(0,i.jsx)(r.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,i.jsx)(a(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,i.jsx)(r.zrq,{items:s,...n})}},16781:function(e,t,n){"use strict";n.d(t,{MA:function(){return o},Vo:function(){return l},t5:function(){return c}});var i=n(24246),r=n(52615);let s=e=>{let{children:t,title:n="Success"}=e;return(0,i.jsxs)(r.xvT,{"data-testid":"toast-success-msg",children:[(0,i.jsxs)("strong",{children:[n,":"]})," ",t]})},a=e=>{let{children:t}=e;return(0,i.jsxs)(r.xvT,{"data-testid":"toast-error-msg",children:[(0,i.jsx)("strong",{children:"Error:"})," ",t]})},o={variant:"subtle",position:"top",description:"",duration:5e3,status:"success",isClosable:!0},c=(e,t)=>{let n=(0,i.jsx)(s,{title:t,children:e});return{...o,description:n}},l=e=>{let t=(0,i.jsx)(a,{children:e});return{...o,description:t,status:"error"}}},28049:function(e,t,n){"use strict";n.r(t);var i=n(24246),r=n(52615),s=n(34090),a=n(59389),o=n(44296),c=n(14838),l=n(51425),d=n(34803),u=n(60136),m=n(43124),g=n(37541),p=n(16781),h=n(72247);t.default=()=>{var e;let{isLoading:t}=(0,h.tB)({api_set:!0}),{isLoading:n}=(0,h.tB)({api_set:!1}),x=(0,o.C)(h.ak),f=x.apiSet,j=x.configSet,v=!!((null===(e=j.cors_origins)||void 0===e?void 0:e.length)||j.cors_origin_regex),b=(0,o.C)((0,h.U7)()),[y,{isLoading:w}]=(0,h.km)(),_=(0,r.pmc)(),C=e=>{if(!e||!(e.startsWith("https://")||e.startsWith("http://")))return!1;try{new URL(e)}catch(e){return!1}return!0},k=e=>!!e&&!e.includes("*"),N=e=>{if(!e)return!1;try{let t=new URL(e);return"/"===t.pathname&&!e.endsWith("/")}catch(e){return!1}},A=a.Ry().shape({cors_origins:a.IX().nullable().of(a.Z_().required().trim().test("is-valid-url",e=>{let{label:t}=e;return"".concat(t," must be a valid URL (e.g. https://example.com)")},e=>C(e)).test("has-no-wildcard",e=>{let{label:t}=e;return"".concat(t," cannot contain a wildcard (e.g. https://*.example.com)")},e=>k(e)).test("has-no-path",e=>{let{label:t}=e;return"".concat(t," cannot contain a path (e.g. https://example.com/path)")},e=>N(e)).label("Domain"))}),L=async(e,t)=>{let n=e.cors_origins&&e.cors_origins.length>0?e.cors_origins:void 0,i={...b,security:{cors_origins:n}};(n=>{if(_.closeAll(),(0,u.D4)(n)){let e=(0,u.e$)(n.error,"An unexpected error occurred while saving domains. Please try again.");_((0,p.Vo)(e))}else _((0,p.t5)("Domains saved successfully")),t.resetForm({values:e})})(await y(i))};return(0,i.jsx)(m.Z,{title:"Domains",children:(0,i.jsxs)(r.xuv,{"data-testid":"management-domains",children:[(0,i.jsx)(g.Z,{heading:"Domains"}),(0,i.jsxs)(r.xuv,{maxW:"600px",children:[(0,i.jsxs)(r.xvT,{fontSize:"sm",pb:6,children:["For Fides to work on your website(s), each of your domains must be listed below. You can add and remove domains at any time up to the quantity included in your license. For more information on managing domains"," ",(0,i.jsx)(c.Z,{href:"https://fid.es/domain-configuration",children:"read here"}),"."]}),(0,i.jsx)(l.Z,{"data-testid":"api-set-domains-form",title:"Organization domains",tooltip:"Fides uses these domains to enforce cross-origin resource sharing (CORS), a browser-based security standard. Each domain must be a valid URL (e.g. https://example.com) without any wildcards '*' or paths '/blog'",children:t||w?(0,i.jsx)(r.kCb,{justifyContent:"center",children:(0,i.jsx)(r.$jN,{})}):(0,i.jsx)(s.J9,{initialValues:f,enableReinitialize:!0,onSubmit:L,validationSchema:A,validateOnChange:!0,children:e=>{let{dirty:t,values:n,isValid:a}=e;return(0,i.jsxs)(s.l0,{children:[(0,i.jsx)(s.F2,{name:"cors_origins",render:e=>(0,i.jsxs)(r.kCb,{flexDir:"column",children:[n.cors_origins.map((t,n)=>(0,i.jsxs)(r.kCb,{flexDir:"row",my:3,children:[(0,i.jsx)(d.j0,{variant:"stacked",name:"cors_origins[".concat(n,"]"),placeholder:"https://subdomain.example.com:9090"}),(0,i.jsx)(r.wpx,{"aria-label":"delete-domain",className:"z-[2] ml-4",icon:(0,i.jsx)(r.pJl,{}),onClick:()=>{e.remove(n)}})]},n)),(0,i.jsx)(r.kCb,{justifyContent:"center",mt:3,children:(0,i.jsx)(r.wpx,{"aria-label":"add-domain",className:"w-full",onClick:()=>{e.push("")},children:"Add domain"})})]})}),(0,i.jsx)(r.xuv,{mt:6,children:(0,i.jsx)(r.wpx,{htmlType:"submit",type:"primary",disabled:w||!t||!a,loading:w,"data-testid":"save-btn",children:"Save"})})]})}})})]}),(0,i.jsx)(r.xuv,{maxW:"600px",marginY:3,children:(0,i.jsx)(l.Z,{"data-testid":"config-set-domains-form",title:"Advanced settings",tooltip:"These domains are configured by an administrator with access to Fides security settings and can support more advanced options such as wildcards and regex.",children:n?(0,i.jsx)(r.kCb,{justifyContent:"center",children:(0,i.jsx)(r.$jN,{})}):(0,i.jsxs)(r.kCb,{flexDir:"column",children:[j.cors_origins.map((e,t)=>(0,i.jsx)(d.oi,{"data-testid":"input-config_cors_origins[".concat(t,"]"),marginY:3,value:e,isDisabled:!0,isPassword:!1},t)),j.cors_origin_regex?(0,i.jsx)(d.oi,{"data-testid":"input-config_cors_origin_regex",marginY:3,value:j.cors_origin_regex,isDisabled:!0,isPassword:!1},"cors_origin_regex"):void 0,v?void 0:(0,i.jsx)(r.xvT,{fontSize:"xs",color:"gray.500",children:"No advanced domain settings configured."})]})})})]})})}},41164:function(e,t,n){"use strict";n.d(t,{Bw:function(){return a},D4:function(){return r},Dy:function(){return c},XD:function(){return l},cz:function(){return d},hE:function(){return o},oK:function(){return s}});var i=n(76649);let r=e=>"error"in e,s=e=>(0,i.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,a=e=>(0,i.Ln)({status:"number",data:{}},e),o=e=>(0,i.Ln)({detail:"string"},e),c=e=>(0,i.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),l=e=>(0,i.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),d=e=>(0,i.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)},76649:function(e,t,n){"use strict";n.d(t,{Ln:function(){return i}});let i=(e,t)=>s(e,t),r=Symbol("SOME"),s=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?r in e?e.some(e=>s(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>s(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,n])=>s(n,t[e]));class a{static narrow(e){return new a(t=>i(e,t))}constructor(e){this.NF=void 0,this.NF=e}satisfied(e){return this.NF(e)}build(e){return e}and(e){let t=this.NF,n=e instanceof a?e.NF:e instanceof Function?e:t=>i(e,t);return new a(e=>t(e)&&n(e))}}new a(e=>!0)}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=98648)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4966],{18193:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/email-templates",function(){return n(11371)}])},43124:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var i=n(24246),r=n(96013),s=n(88038),a=n.n(s),l=n(86677);n(27378);var o=n(11596),u=n(72247),c=n(87162),d=()=>{let e=(0,l.useRouter)();return(0,i.jsx)(r.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(r.xuv,{children:[(0,i.jsxs)(r.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(r.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(r.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,i.jsxs)(r.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:n,padded:s=!0,mainProps:c}=e,p=(0,o.hz)(),g=(0,l.useRouter)(),m="/privacy-requests"===g.pathname||"/datastore-connection"===g.pathname,f=!(p.flags.privacyRequestsConfiguration&&m),{data:h}=(0,u.JE)(void 0,{skip:f}),{data:x}=(0,u.PW)(void 0,{skip:f}),y=p.flags.privacyRequestsConfiguration&&(!h||!x)&&m;return(0,i.jsxs)(r.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(a(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(r.kCb,{as:"main",direction:"column",py:s?6:0,px:s?10:0,h:s?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[y?(0,i.jsx)(d,{}):null,t]})]})}},37541:function(e,t,n){"use strict";var i=n(24246),r=n(96013),s=n(53614);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:a=!0,children:l,rightContent:o,style:u,...c}=e;return(0,i.jsxs)("div",{...c,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...u}:{paddingBottom:"24px",...u},children:[(0,i.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(r.X6q,{className:n||l?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,o&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,i.jsx)(s.m,{className:l?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),l]})}},51425:function(e,t,n){"use strict";var i=n(24246),r=n(96013),s=n(39514);t.Z=e=>{let{title:t,tooltip:n,children:a,...l}=e;return(0,i.jsxs)(r.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...l,children:[(0,i.jsxs)(r.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,n?(0,i.jsx)(r.xvT,{as:"span",mx:1,children:(0,i.jsx)(s.Z,{label:n})}):void 0]}),(0,i.jsx)(r.Kqy,{p:6,spacing:6,children:a})]})}},60136:function(e,t,n){"use strict";n.d(t,{D4:function(){return s.D4},MM:function(){return p},Ot:function(){return u},c6:function(){return r},cj:function(){return m},e$:function(){return l},fn:function(){return o},iC:function(){return g},nU:function(){return d},tB:function(){return c}});var i,r,s=n(41164);let a="An unexpected error occurred. Please try again.",l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;if((0,s.Bw)(e)){if((0,s.hE)(e.data))return e.data.detail;if((0,s.cz)(e.data)){var n;let t=null===(n=e.data.detail)||void 0===n?void 0:n[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,s.Dy)(e.data)||404===e.status&&(0,s.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function o(e){return"object"==typeof e&&null!=e&&"status"in e}function u(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:a};if((0,s.oK)(e))return{status:e.originalStatus,message:e.data};if((0,s.Bw)(e)){let{status:n}=e;return{status:n,message:l(e,t.message)}}return t},p=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(i=r||(r={})).GVL="gvl",i.AC="gacp",i.COMPASS="compass";let g={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},m=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},53614:function(e,t,n){"use strict";n.d(t,{m:function(){return u}});var i=n(24246),r=n(96013),s=n(79894),a=n.n(s),l=n(27378);let{Text:o}=r.AntTypography,u=e=>{let{items:t,...n}=e,s=(0,l.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let s=n===t.length-1,l={...e},u=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,i.jsx)(o,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:l.title})),u)?l.title=(0,i.jsx)(r.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,i.jsx)(a(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,i.jsx)(r.zrq,{items:s,...n})}},16781:function(e,t,n){"use strict";n.d(t,{MA:function(){return l},Vo:function(){return u},t5:function(){return o}});var i=n(24246),r=n(96013);let s=e=>{let{children:t}=e;return(0,i.jsxs)(r.xvT,{"data-testid":"toast-success-msg",children:[(0,i.jsx)("strong",{children:"Success:"})," ",t]})},a=e=>{let{children:t}=e;return(0,i.jsxs)(r.xvT,{"data-testid":"toast-error-msg",children:[(0,i.jsx)("strong",{children:"Error:"})," ",t]})},l={variant:"subtle",position:"top",description:"",duration:5e3,status:"success",isClosable:!0},o=e=>{let t=(0,i.jsx)(s,{children:e});return{...l,description:t}},u=e=>{let t=(0,i.jsx)(a,{children:e});return{...l,description:t,status:"error"}}},44444:function(e,t,n){"use strict";n.d(t,{KC:function(){return a},ew:function(){return l},gQ:function(){return s},jM:function(){return i},lE:function(){return r}});let{useGetMessagingTemplatesQuery:i,useUpdateMessagingTemplatesMutation:r,useGetMessagingTemplateByIdQuery:s,useGetMessagingTemplateDefaultQuery:a,useDeleteMessagingTemplateByIdMutation:l}=n(21618).u.injectEndpoints({endpoints:e=>({getMessagingTemplates:e.query({query:()=>({url:"messaging/templates"}),providesTags:()=>["Messaging Templates"]}),updateMessagingTemplates:e.mutation({query:e=>({url:"messaging/templates",method:"PUT",body:e}),invalidatesTags:()=>["Messaging Templates"]}),getMessagingTemplateById:e.query({query:e=>({url:"/messaging/templates/".concat(e)}),providesTags:()=>["Property-Specific Messaging Templates"]}),getMessagingTemplateDefault:e.query({query:e=>({url:"/messaging/templates/default/".concat(e)})}),deleteMessagingTemplateById:e.mutation({query:e=>({url:"/messaging/templates/".concat(e),method:"DELETE"}),invalidatesTags:()=>["Property-Specific Messaging Templates"]})})})},11371:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=n(24246),r=n(96013),s=n(43124),a=n(37541),l=n(34090),o=n(51425),u=n(34803),c=n(60136),d=n(16781),p=n(44444),g=e=>{let{emailTemplates:t}=e,[n,{isLoading:s}]=(0,p.lE)(),a=(0,r.pmc)(),g=async(e,t)=>{let i=Object.entries(e).map(e=>{let[t,{content:n}]=e;return{type:t,content:n}});(n=>{if((0,c.D4)(n)){let e=(0,c.e$)(n.error,"An unexpected error occurred while editing the email templates. Please try again.");a((0,d.Vo)(e))}else a((0,d.t5)("Email templates saved.")),t.resetForm({values:e})})(await n(i))},m=t.reduce((e,t)=>({...e,[t.type]:{label:t.label,content:t.content}}),{});return(0,i.jsx)(l.J9,{enableReinitialize:!0,initialValues:m,onSubmit:g,children:()=>(0,i.jsxs)(l.l0,{style:{paddingTop:"12px",paddingBottom:"12px"},children:[Object.entries(m).map(e=>{let[t,n]=e;return(0,i.jsx)(r.xuv,{py:3,children:(0,i.jsxs)(o.Z,{title:n.label,children:[(0,i.jsx)(u.j0,{label:"Message subject",name:"".concat(t,".content.subject"),variant:"stacked"}),(0,i.jsx)(u.Ks,{label:"Message body",name:"".concat(t,".content.body"),variant:"stacked",resize:!0})]})},t)}),(0,i.jsx)(r.kCb,{justifyContent:"right",width:"100%",paddingTop:2,children:(0,i.jsx)(r.wpx,{htmlType:"submit",type:"primary",loading:s,children:"Save"})})]})})},m=()=>{let{data:e,isLoading:t}=(0,p.jM)();return t?(0,i.jsx)(s.Z,{title:"Email templates",children:(0,i.jsx)(r.$jN,{})}):(0,i.jsx)(s.Z,{title:"Email templates",children:(0,i.jsxs)(r.xuv,{"data-testid":"email-templates",children:[(0,i.jsx)(a.Z,{heading:"Email Templates"}),(0,i.jsxs)(r.xuv,{maxWidth:"720px",children:[(0,i.jsx)(r.xvT,{fontSize:"sm",children:"When privacy requests are submitted, Fides emails the data subject to confirm their identity and keep them updated on the status of the request. The templates below allow you to configure the subject and body of the email to suit your business needs. To change the appearance of the email, you may use the editors within your messaging provider (e.g. Mailgun, SendGrid, Twilio)."}),(0,i.jsx)(r.xuv,{padding:2,children:(0,i.jsx)(g,{emailTemplates:e})})]})]})})}},41164:function(e,t,n){"use strict";n.d(t,{Bw:function(){return a},D4:function(){return r},Dy:function(){return o},XD:function(){return u},cz:function(){return c},hE:function(){return l},oK:function(){return s}});var i=n(76649);let r=e=>"error"in e,s=e=>(0,i.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,a=e=>(0,i.Ln)({status:"number",data:{}},e),l=e=>(0,i.Ln)({detail:"string"},e),o=e=>(0,i.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),u=e=>(0,i.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,i.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)},76649:function(e,t,n){"use strict";n.d(t,{Ln:function(){return i}});let i=(e,t)=>s(e,t),r=Symbol("SOME"),s=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?r in e?e.some(e=>s(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>s(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,n])=>s(n,t[e]));class a{static narrow(e){return new a(t=>i(e,t))}constructor(e){this.NF=void 0,this.NF=e}satisfied(e){return this.NF(e)}build(e){return e}and(e){let t=this.NF,n=e instanceof a?e.NF:e instanceof Function?e:t=>i(e,t);return new a(e=>t(e)&&n(e))}}new a(e=>!0)}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=18193)}),_N_E=e.O()}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4966],{18193:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/email-templates",function(){return n(11371)}])},43124:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var i=n(24246),r=n(52615),s=n(88038),a=n.n(s),l=n(86677);n(27378);var o=n(11596),u=n(72247),c=n(87162),d=()=>{let e=(0,l.useRouter)();return(0,i.jsx)(r.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(r.xuv,{children:[(0,i.jsxs)(r.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(r.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(r.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,i.jsxs)(r.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:n,padded:s=!0,mainProps:c}=e,p=(0,o.hz)(),g=(0,l.useRouter)(),m="/privacy-requests"===g.pathname||"/datastore-connection"===g.pathname,f=!(p.flags.privacyRequestsConfiguration&&m),{data:h}=(0,u.JE)(void 0,{skip:f}),{data:x}=(0,u.PW)(void 0,{skip:f}),y=p.flags.privacyRequestsConfiguration&&(!h||!x)&&m;return(0,i.jsxs)(r.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(a(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(r.kCb,{as:"main",direction:"column",py:s?6:0,px:s?10:0,h:s?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[y?(0,i.jsx)(d,{}):null,t]})]})}},37541:function(e,t,n){"use strict";var i=n(24246),r=n(52615),s=n(53614);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:a=!0,children:l,rightContent:o,style:u,...c}=e;return(0,i.jsxs)("div",{...c,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...u}:{paddingBottom:"24px",...u},children:[(0,i.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(r.X6q,{className:n||l?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,o&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,i.jsx)(s.m,{className:l?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),l]})}},51425:function(e,t,n){"use strict";var i=n(24246),r=n(52615),s=n(39514);t.Z=e=>{let{title:t,tooltip:n,children:a,...l}=e;return(0,i.jsxs)(r.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...l,children:[(0,i.jsxs)(r.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,n?(0,i.jsx)(r.xvT,{as:"span",mx:1,children:(0,i.jsx)(s.Z,{label:n})}):void 0]}),(0,i.jsx)(r.Kqy,{p:6,spacing:6,children:a})]})}},60136:function(e,t,n){"use strict";n.d(t,{D4:function(){return s.D4},MM:function(){return p},Ot:function(){return u},c6:function(){return r},cj:function(){return m},e$:function(){return l},fn:function(){return o},iC:function(){return g},nU:function(){return d},tB:function(){return c}});var i,r,s=n(41164);let a="An unexpected error occurred. Please try again.",l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;if((0,s.Bw)(e)){if((0,s.hE)(e.data))return e.data.detail;if((0,s.cz)(e.data)){var n;let t=null===(n=e.data.detail)||void 0===n?void 0:n[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,s.Dy)(e.data)||404===e.status&&(0,s.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function o(e){return"object"==typeof e&&null!=e&&"status"in e}function u(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:a};if((0,s.oK)(e))return{status:e.originalStatus,message:e.data};if((0,s.Bw)(e)){let{status:n}=e;return{status:n,message:l(e,t.message)}}return t},p=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(i=r||(r={})).GVL="gvl",i.AC="gacp",i.COMPASS="compass";let g={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},m=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},53614:function(e,t,n){"use strict";n.d(t,{m:function(){return u}});var i=n(24246),r=n(52615),s=n(79894),a=n.n(s),l=n(27378);let{Text:o}=r.AntTypography,u=e=>{let{items:t,...n}=e,s=(0,l.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let s=n===t.length-1,l={...e},u=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,i.jsx)(o,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:l.title})),u)?l.title=(0,i.jsx)(r.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,i.jsx)(a(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,i.jsx)(r.zrq,{items:s,...n})}},16781:function(e,t,n){"use strict";n.d(t,{MA:function(){return l},Vo:function(){return u},t5:function(){return o}});var i=n(24246),r=n(52615);let s=e=>{let{children:t,title:n="Success"}=e;return(0,i.jsxs)(r.xvT,{"data-testid":"toast-success-msg",children:[(0,i.jsxs)("strong",{children:[n,":"]})," ",t]})},a=e=>{let{children:t}=e;return(0,i.jsxs)(r.xvT,{"data-testid":"toast-error-msg",children:[(0,i.jsx)("strong",{children:"Error:"})," ",t]})},l={variant:"subtle",position:"top",description:"",duration:5e3,status:"success",isClosable:!0},o=(e,t)=>{let n=(0,i.jsx)(s,{title:t,children:e});return{...l,description:n}},u=e=>{let t=(0,i.jsx)(a,{children:e});return{...l,description:t,status:"error"}}},44444:function(e,t,n){"use strict";n.d(t,{KC:function(){return a},ew:function(){return l},gQ:function(){return s},jM:function(){return i},lE:function(){return r}});let{useGetMessagingTemplatesQuery:i,useUpdateMessagingTemplatesMutation:r,useGetMessagingTemplateByIdQuery:s,useGetMessagingTemplateDefaultQuery:a,useDeleteMessagingTemplateByIdMutation:l}=n(21618).u.injectEndpoints({endpoints:e=>({getMessagingTemplates:e.query({query:()=>({url:"messaging/templates"}),providesTags:()=>["Messaging Templates"]}),updateMessagingTemplates:e.mutation({query:e=>({url:"messaging/templates",method:"PUT",body:e}),invalidatesTags:()=>["Messaging Templates"]}),getMessagingTemplateById:e.query({query:e=>({url:"/messaging/templates/".concat(e)}),providesTags:()=>["Property-Specific Messaging Templates"]}),getMessagingTemplateDefault:e.query({query:e=>({url:"/messaging/templates/default/".concat(e)})}),deleteMessagingTemplateById:e.mutation({query:e=>({url:"/messaging/templates/".concat(e),method:"DELETE"}),invalidatesTags:()=>["Property-Specific Messaging Templates"]})})})},11371:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=n(24246),r=n(52615),s=n(43124),a=n(37541),l=n(34090),o=n(51425),u=n(34803),c=n(60136),d=n(16781),p=n(44444),g=e=>{let{emailTemplates:t}=e,[n,{isLoading:s}]=(0,p.lE)(),a=(0,r.pmc)(),g=async(e,t)=>{let i=Object.entries(e).map(e=>{let[t,{content:n}]=e;return{type:t,content:n}});(n=>{if((0,c.D4)(n)){let e=(0,c.e$)(n.error,"An unexpected error occurred while editing the email templates. Please try again.");a((0,d.Vo)(e))}else a((0,d.t5)("Email templates saved.")),t.resetForm({values:e})})(await n(i))},m=t.reduce((e,t)=>({...e,[t.type]:{label:t.label,content:t.content}}),{});return(0,i.jsx)(l.J9,{enableReinitialize:!0,initialValues:m,onSubmit:g,children:()=>(0,i.jsxs)(l.l0,{style:{paddingTop:"12px",paddingBottom:"12px"},children:[Object.entries(m).map(e=>{let[t,n]=e;return(0,i.jsx)(r.xuv,{py:3,children:(0,i.jsxs)(o.Z,{title:n.label,children:[(0,i.jsx)(u.j0,{label:"Message subject",name:"".concat(t,".content.subject"),variant:"stacked"}),(0,i.jsx)(u.Ks,{label:"Message body",name:"".concat(t,".content.body"),variant:"stacked",resize:!0})]})},t)}),(0,i.jsx)(r.kCb,{justifyContent:"right",width:"100%",paddingTop:2,children:(0,i.jsx)(r.wpx,{htmlType:"submit",type:"primary",loading:s,children:"Save"})})]})})},m=()=>{let{data:e,isLoading:t}=(0,p.jM)();return t?(0,i.jsx)(s.Z,{title:"Email templates",children:(0,i.jsx)(r.$jN,{})}):(0,i.jsx)(s.Z,{title:"Email templates",children:(0,i.jsxs)(r.xuv,{"data-testid":"email-templates",children:[(0,i.jsx)(a.Z,{heading:"Email Templates"}),(0,i.jsxs)(r.xuv,{maxWidth:"720px",children:[(0,i.jsx)(r.xvT,{fontSize:"sm",children:"When privacy requests are submitted, Fides emails the data subject to confirm their identity and keep them updated on the status of the request. The templates below allow you to configure the subject and body of the email to suit your business needs. To change the appearance of the email, you may use the editors within your messaging provider (e.g. Mailgun, SendGrid, Twilio)."}),(0,i.jsx)(r.xuv,{padding:2,children:(0,i.jsx)(g,{emailTemplates:e})})]})]})})}},41164:function(e,t,n){"use strict";n.d(t,{Bw:function(){return a},D4:function(){return r},Dy:function(){return o},XD:function(){return u},cz:function(){return c},hE:function(){return l},oK:function(){return s}});var i=n(76649);let r=e=>"error"in e,s=e=>(0,i.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,a=e=>(0,i.Ln)({status:"number",data:{}},e),l=e=>(0,i.Ln)({detail:"string"},e),o=e=>(0,i.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),u=e=>(0,i.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,i.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)},76649:function(e,t,n){"use strict";n.d(t,{Ln:function(){return i}});let i=(e,t)=>s(e,t),r=Symbol("SOME"),s=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?r in e?e.some(e=>s(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>s(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,n])=>s(n,t[e]));class a{static narrow(e){return new a(t=>i(e,t))}constructor(e){this.NF=void 0,this.NF=e}satisfied(e){return this.NF(e)}build(e){return e}and(e){let t=this.NF,n=e instanceof a?e.NF:e instanceof Function?e:t=>i(e,t);return new a(e=>t(e)&&n(e))}}new a(e=>!0)}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=18193)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2462],{40135:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/locations",function(){return n(76519)}])},76519:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return A}});var i=n(24246),l=n(
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2462],{40135:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/locations",function(){return n(76519)}])},76519:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return A}});var i=n(24246),l=n(52615),s=n(44296),o=n(43124),a=n(37541),r=n(98784),d=n.n(r),c=n(86677),u=n(27378),h=n(60136),g=n(77650),m=n(33312),x=n(16781),p=n(43073),j=n(87162),f=n(93595),C=n(93329),v=n(39514),y=e=>{let{id:t,isChecked:n,onChange:s}=e;return(0,i.jsxs)(l.kCb,{alignItems:"center",gap:"8px",children:[(0,i.jsx)(l.rAg,{checked:n,size:"small",onChange:s,id:t,"data-testid":"regulated-toggle"}),(0,i.jsx)(l.lXp,{fontSize:"sm",m:0,htmlFor:t,children:"Regulated"}),(0,i.jsx)(v.Z,{label:"Toggle on to see only locations in this region with privacy regulations supported by Fides"})]})},w=n(70218),b=n(51541),k=n(77464),S=e=>{let{groups:t,locations:n,isOpen:s,onClose:o,selected:a,onChange:r}=e,[d,c]=(0,u.useState)(a),[h,g]=(0,u.useState)(!1),{filteredLocations:m,locationsByGroup:x}=(0,u.useMemo)(()=>{let e=h?n.filter(e=>{var t;return null===(t=e.regulation)||void 0===t?void 0:t.length}):n;return{locationsByGroup:(0,k.VT)(e),filteredLocations:e}},[n,h]),{allSelected:p,handleToggleAll:j,handleToggleSelection:f}=(0,w.QZ)({items:m,selected:d,onChange:c}),C=d.filter(e=>!Object.keys(x).includes(e)).length,v=n[0].continent,S=Object.keys(x),_=!(1===S.length&&"Other"===S[0]);return(0,i.jsxs)(l.u_l,{size:"2xl",isOpen:s,onClose:o,isCentered:!0,children:[(0,i.jsx)(l.ZAr,{}),(0,i.jsxs)(l.hzk,{"data-testid":"subgroup-modal",children:[(0,i.jsx)(b.h4,{title:"Select locations"}),(0,i.jsxs)(l.fef,{p:6,maxHeight:"70vh",overflowY:"auto",children:[(0,i.jsx)(b.x$,{title:v,allSelected:p,onToggleAll:j,numSelected:C,children:(0,i.jsx)(y,{id:"".concat(v,"-modal-regulated"),isChecked:h,onChange:()=>g(!h)})}),_?(0,i.jsx)(l.UQy,{allowToggle:!0,allowMultiple:!0,children:Object.entries(x).map(e=>{let[n,s]=e,o=t.find(e=>n===e.id),a=o?o.name:n;return(0,i.jsxs)(l.Qdk,{"data-testid":"".concat(a,"-accordion"),children:[(0,i.jsx)("h2",{children:(0,i.jsxs)(l.KFZ,{children:[(0,i.jsx)(l.xuv,{as:"span",flex:"1",textAlign:"left",fontWeight:"semibold",fontSize:"sm",children:a}),(0,i.jsx)(l.XEm,{})]})}),(0,i.jsx)(l.Hk3,{pb:4,children:(0,i.jsx)(l.MIq,{columns:3,spacing:6,children:s.map(e=>(0,i.jsx)(l.XZJ,{size:"sm",colorScheme:"complimentary",isChecked:d.includes(e.id),onChange:()=>f(e.id),"data-testid":"".concat(e.name,"-checkbox"),children:e.name},e.id))})})]},n)})}):(0,i.jsx)(l.MIq,{columns:3,spacing:6,paddingInline:4,children:m.map(e=>(0,i.jsx)(l.XZJ,{size:"sm",colorScheme:"complimentary",isChecked:d.includes(e.id),onChange:()=>f(e.id),"data-testid":"".concat(e.name,"-checkbox"),children:e.name},e.id))})]}),(0,i.jsx)(b.$_,{onApply:()=>{let e=new Set(d);Object.entries(x).forEach(t=>{let[n,i]=t;i.every(e=>d.includes(e.id))?e.add(n):e.delete(n)}),r(Array.from(e)),o()},onClose:o})]})]})};let _=(e,t)=>{var n;return null===(n=e.name)||void 0===n?void 0:n.toLocaleLowerCase().includes(t.toLocaleLowerCase())};var O=e=>{let{title:t,groups:n,locations:s,selected:o,onChange:a,search:r}=e,d=(0,l.qY0)(),[c,h]=(0,u.useState)(!1),g=!!(null==r?void 0:r.length),m=n.length>0,x=s;n.length&&(x=n),g&&(x=[...s,...n].sort((e,t)=>e.name.localeCompare(t.name)));let p=c?x.filter(e=>(0,k.$q)(e,s)):x,j=r?p.filter(e=>_(e,r)):p,f=n.filter(e=>"checked"===(0,k.ji)({group:e,selected:o,locations:s})).map(e=>e.id),v=n.filter(e=>"indeterminate"===(0,k.ji)({group:e,selected:o,locations:s})).map(e=>e.id),w=m?[...f,...o]:o,b=o.length,O=e=>{a(s.map(t=>e.includes(t.id)?{...t,selected:!0}:{...t,selected:!1}))};return 0===j.length&&r?null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(C.ZP,{title:t,items:j,selected:w,indeterminate:m?v:[],onChange:e=>{let t=new Set(e),i=new Set(w);e.forEach(e=>{!i.has(e)&&n.find(t=>t.id===e)&&s.filter(t=>{var n;return null===(n=t.belongs_to)||void 0===n?void 0:n.includes(e)}).forEach(e=>{t.add(e.id)})}),i.forEach(e=>{!t.has(e)&&n.find(t=>t.id===e)&&s.filter(t=>{var n;return null===(n=t.belongs_to)||void 0===n?void 0:n.includes(e)}).forEach(e=>{t.delete(e.id)})}),O(Array.from(t))},onViewMore:()=>{d.onOpen()},numSelected:b,toggle:(0,i.jsx)(y,{id:"".concat(t,"-regulated"),isChecked:c,onChange:()=>h(!c)})}),(0,i.jsx)(S,{groups:n,locations:s,isOpen:d.isOpen,onClose:d.onClose,selected:o,onChange:O},"subgroup-modal-selected-".concat(w.length))]})},E=n(12783),Z=e=>{var t;let{data:n}=e,s=(0,l.pmc)(),o=(0,l.qY0)(),[a,r]=(0,u.useState)(null!==(t=n.locations)&&void 0!==t?t:[]),[C,v]=(0,u.useState)(""),[y,{isLoading:w}]=(0,E.WA)(),b=(0,u.useMemo)(()=>(0,k.Il)(n.locations||[],n.location_groups||[]),[n]),S=!d().isEqual(a,n.locations),_=(0,c.useRouter)(),Z=()=>{_.push(j.vY).then(()=>{s.closeAll()})},A=async()=>{let e=await y({locations:a.map(e=>({id:e.id,selected:e.selected})),regulations:[]});(0,p.D4)(e)?s((0,x.Vo)((0,h.e$)(e.error))):s((0,x.t5)((0,i.jsxs)(l.xvT,{display:"inline",children:["Fides has automatically associated the relevant regulations with your location choices."," ",(0,i.jsx)(f.Z,{onClick:Z,children:"View regulations here."})]})))},M=e=>{r(a.map(t=>{let n=e.find(e=>e.id===t.id);return null!=n?n:t}))};return(0,i.jsxs)(l.gCW,{alignItems:"start",spacing:4,children:[(0,i.jsx)(l.xuv,{maxWidth:"510px",width:"100%",children:(0,i.jsx)(m.Z,{onChange:v,placeholder:"Search",search:C,onClear:()=>v("")})}),(0,i.jsx)(l.MIq,{columns:{base:1,md:2,xl:3},spacing:6,width:"100%",children:Object.entries(b).map(e=>{let[t,n]=e;return(0,i.jsx)(O,{title:t,groups:n.locationGroups,locations:n.locations,selected:a.filter(e=>n.locations.find(t=>t.id===e.id)&&e.selected).map(e=>e.id),onChange:M,search:C},t)})}),(0,i.jsx)(g.Z,{isOpen:o.isOpen,onClose:o.onClose,onConfirm:()=>{A(),o.onClose()},title:"Regulation updates",message:"Modifications in your location settings may also affect your regulation settings to simplify management. You can override any Fides-initiated changes directly in the regulation settings.",isCentered:!0,icon:(0,i.jsx)(l.aNP,{color:"orange"})}),S?(0,i.jsx)(l.wpx,{type:"primary",onClick:o.onOpen,loading:w,"data-testid":"save-btn",children:"Save"}):null]})},A=()=>{let{isLoading:e}=(0,E.QM)(),t=(0,s.C)(E.P8);return(0,i.jsx)(o.Z,{title:"Locations",children:(0,i.jsxs)(l.xuv,{"data-testid":"location-management",children:[(0,i.jsx)(a.Z,{heading:"Locations"}),(0,i.jsx)(l.xvT,{fontSize:"sm",maxWidth:"720px",pb:6,children:"Select the locations that you operate in and Fides will make sure that you are automatically presented with the relevant regulatory guidelines and global frameworks for your locations."}),(0,i.jsx)(l.xuv,{children:e?(0,i.jsx)(l.$jN,{}):(0,i.jsx)(Z,{data:t})})]})})}}},function(e){e.O(0,[8033,2025,2888,9774,179],function(){return e(e.s=40135)}),_N_E=e.O()}]);
|