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([[7364],{3497:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/messaging/add-template",function(){return n(81322)}])},81322:function(e,t,n){"use strict";n.r(t);var s=n(24246),r=n(60136),i=n(87162),u=n(
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7364],{3497:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/messaging/add-template",function(){return n(81322)}])},81322:function(e,t,n){"use strict";n.r(t);var s=n(24246),r=n(60136),i=n(87162),u=n(52615),a=n(86677),l=n(43124),c=n(37541),d=n(16781),o=n(73088),p=n(44444),h=n(12623),_=n(97193),f=n(43073);t.default=()=>{let e=(0,u.pmc)(),t=(0,a.useRouter)(),{templateType:n}=t.query,[g]=(0,h.Vw)(),{data:b,isLoading:m}=(0,p.KC)(n),x=async s=>{var u;let a={is_enabled:s.is_enabled,content:{subject:s.content.subject,body:s.content.body},properties:[]};null===(u=s.properties)||void 0===u||u.forEach(e=>{var t;return null===(t=a.properties)||void 0===t?void 0:t.push(e.id)});let l=await g({templateType:n,template:a});if((0,f.D4)(l)){e((0,d.Vo)((0,r.e$)(l.error)));return}e((0,d.t5)("Messaging template created successfully")),t.push(i.q)};return b?m?(0,s.jsx)(u.$jN,{}):(0,s.jsx)(l.Z,{title:"Configure Message",children:(0,s.jsx)(c.Z,{heading:"Messaging",breadcrumbItems:[{title:"Messaging",href:i.q},{title:"".concat(o.Z[b.type])}],children:(0,s.jsx)(u.xuv,{maxWidth:"720px",children:(0,s.jsx)(u.xuv,{padding:2,children:(0,s.jsx)(_.Z,{template:b,handleSubmit:x})})})})}):null}}},function(e){e.O(0,[3528,2973,2888,9774,179],function(){return e(e.s=3497)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2815],{79349:function(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},52033:function(e,t,n){var i=n(26194),r=n(26789)(i);e.exports=r},23545:function(e,t,n){var i=n(97141),r=n(72889);e.exports=function e(t,n,s,a,o){var l=-1,c=t.length;for(s||(s=r),o||(o=[]);++l<c;){var u=t[l];n>0&&s(u)?n>1?e(u,n-1,s,a,o):i(o,u):a||(o[o.length]=u)}return o}},49819:function(e,t,n){var i=n(18911)();e.exports=i},26194:function(e,t,n){var i=n(49819),r=n(50098);e.exports=function(e,t){return e&&i(e,t,r)}},67375:function(e,t,n){var i=n(52033),r=n(80068);e.exports=function(e,t){var n=-1,s=r(e)?Array(e.length):[];return i(e,function(e,i,r){s[++n]=t(e,i,r)}),s}},98497:function(e,t,n){var i=n(66070),r=n(79867),s=n(89278),a=n(67375),o=n(73303),l=n(39334),c=n(96348),u=n(31137),d=n(19785);e.exports=function(e,t,n){t=t.length?i(t,function(e){return d(e)?function(t){return r(t,1===e.length?e[0]:e)}:e}):[u];var p=-1;return t=i(t,l(s)),o(a(e,function(e,n,r){return{criteria:i(t,function(t){return t(e)}),index:++p,value:e}}),function(e,t){return c(e,t,n)})}},1197:function(e,t,n){var i=n(31137),r=n(11871),s=n(63132);e.exports=function(e,t){return s(r(e,t,i),e+"")}},54459:function(e,t,n){var i=n(551),r=n(42630),s=n(31137),a=r?function(e,t){return r(e,"toString",{configurable:!0,enumerable:!1,value:i(t),writable:!0})}:s;e.exports=a},73303:function(e){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},17845:function(e,t,n){var i=n(55193);e.exports=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,s=e==e,a=i(e),o=void 0!==t,l=null===t,c=t==t,u=i(t);if(!l&&!u&&!a&&e>t||a&&o&&c&&!l&&!u||r&&o&&c||!n&&c||!s)return 1;if(!r&&!a&&!u&&e<t||u&&n&&s&&!r&&!a||l&&n&&s||!o&&s||!c)return -1}return 0}},96348:function(e,t,n){var i=n(17845);e.exports=function(e,t,n){for(var r=-1,s=e.criteria,a=t.criteria,o=s.length,l=n.length;++r<o;){var c=i(s[r],a[r]);if(c){if(r>=l)return c;return c*("desc"==n[r]?-1:1)}}return e.index-t.index}},26789:function(e,t,n){var i=n(80068);e.exports=function(e,t){return function(n,r){if(null==n)return n;if(!i(n))return e(n,r);for(var s=n.length,a=t?s:-1,o=Object(n);(t?a--:++a<s)&&!1!==r(o[a],a,o););return n}}},18911:function(e){e.exports=function(e){return function(t,n,i){for(var r=-1,s=Object(t),a=i(t),o=a.length;o--;){var l=a[e?o:++r];if(!1===n(s[l],l,s))break}return t}}},42630:function(e,t,n){var i=n(81822),r=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=r},72889:function(e,t,n){var i=n(96539),r=n(2900),s=n(19785),a=i?i.isConcatSpreadable:void 0;e.exports=function(e){return s(e)||r(e)||!!(a&&e&&e[a])}},57535:function(e,t,n){var i=n(85638),r=n(80068),s=n(42383),a=n(11611);e.exports=function(e,t,n){if(!a(n))return!1;var o=typeof t;return("number"==o?!!(r(n)&&s(t,n.length)):"string"==o&&t in n)&&i(n[t],e)}},11871:function(e,t,n){var i=n(79349),r=Math.max;e.exports=function(e,t,n){return t=r(void 0===t?e.length-1:t,0),function(){for(var s=arguments,a=-1,o=r(s.length-t,0),l=Array(o);++a<o;)l[a]=s[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=s[a];return c[t]=n(l),i(e,this,c)}}},63132:function(e,t,n){var i=n(54459),r=n(49591)(i);e.exports=r},49591:function(e){var t=Date.now;e.exports=function(e){var n=0,i=0;return function(){var r=t(),s=16-(r-i);if(i=r,s>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},551:function(e){e.exports=function(e){return function(){return e}}},95099:function(e,t,n){var i=n(23545),r=n(98497),s=n(1197),a=n(57535),o=s(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),r(e,i(t,1),[])});e.exports=o},24081:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/messaging",function(){return n(52696)}])},65464:function(e,t,n){"use strict";var i=n(24246),r=n(96013),s=n(88038),a=n.n(s);n(27378),t.Z=e=>{let{children:t,title:n,mainProps:s}=e;return(0,i.jsxs)(r.kCb,{"data-testid":n,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",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.jsx)(r.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...s,children:t})]})}},37440:function(e,t,n){"use strict";var i=n(24246),r=n(96013);t.Z=e=>{let{title:t,text:n,onClose:s}=e;return(0,i.jsxs)(r.Ugi,{backgroundColor:"gray.50",border:"1px solid",borderRadius:"md",justifyContent:"space-between",py:4,pr:6,pl:3,"data-testid":"empty-state",gap:2,position:"relative",children:[s&&(0,i.jsx)(r.Two,{boxSize:5,position:"absolute",right:3,top:3,zIndex:1,cursor:"pointer",p:1,onClick:s}),(0,i.jsx)(r.iid,{alignSelf:"start",color:"minos",mt:.5,flexGrow:0}),(0,i.jsxs)(r.kCb,{direction:"column",gap:2,flexGrow:1,children:[(0,i.jsx)(r.X6q,{fontSize:"md",children:t}),(0,i.jsx)(r.xvT,{fontSize:"sm",color:"gray.600",lineHeight:"5",children:n})]})]})}},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:o,rightContent:l,style:c,...u}=e;return(0,i.jsxs)("div",{...u,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",...c}:{paddingBottom:"24px",...c},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,l&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,i.jsx)(s.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},53614:function(e,t,n){"use strict";n.d(t,{m:function(){return c}});var i=n(24246),r=n(96013),s=n(79894),a=n.n(s),o=n(27378);let{Text:l}=r.AntTypography,c=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},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,i.jsx)(l,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:o.title})),c)?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})}},73088:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}}),(i=r||(r={})).PRIVACY_REQUEST_REVIEW_APPROVE="privacy_request_review_approve",i.PRIVACY_REQUEST_REVIEW_DENY="privacy_request_review_deny",i.PRIVACY_REQUEST_RECEIPT="privacy_request_receipt",i.PRIVACY_REQUEST_COMPLETE_ACCESS="privacy_request_complete_access",i.PRIVACY_REQUEST_COMPLETE_DELETION="privacy_request_complete_deletion",i.SUBJECT_IDENTITY_VERIFICATION="subject_identity_verification";var i,r,s={[r.PRIVACY_REQUEST_COMPLETE_ACCESS]:"Access request completed",[r.PRIVACY_REQUEST_COMPLETE_DELETION]:"Erasure request completed",[r.PRIVACY_REQUEST_RECEIPT]:"Privacy request received",[r.PRIVACY_REQUEST_REVIEW_APPROVE]:"Privacy request approved",[r.PRIVACY_REQUEST_REVIEW_DENY]:"Privacy request denied",[r.SUBJECT_IDENTITY_VERIFICATION]:"Subject identity verification"}},12623:function(e,t,n){"use strict";n.d(t,{Vw:function(){return s},ms:function(){return i},pS:function(){return r},vm:function(){return a}});let{useGetSummaryMessagingTemplatesQuery:i,usePutMessagingTemplateByIdMutation:r,useCreateMessagingTemplateByTypeMutation:s,usePatchMessagingTemplateByIdMutation:a}=n(21618).u.injectEndpoints({endpoints:e=>({getSummaryMessagingTemplates:e.query({query:e=>({method:"GET",url:"plus/messaging/templates/summary",params:e}),providesTags:()=>["Property-Specific Messaging Templates"]}),putMessagingTemplateById:e.mutation({query:e=>{let{templateId:t,template:n}=e;return{url:"plus/messaging/templates/".concat(t),method:"PUT",body:n}},invalidatesTags:()=>["Property-Specific Messaging Templates"]}),patchMessagingTemplateById:e.mutation({query:e=>{let{templateId:t,template:n}=e;return{url:"plus/messaging/templates/".concat(t),method:"PATCH",body:n}},invalidatesTags:()=>["Property-Specific Messaging Templates"]}),createMessagingTemplateByType:e.mutation({query:e=>{let{templateType:t,template:n}=e;return{url:"plus/messaging/templates/".concat(t),method:"POST",body:n}},invalidatesTags:()=>["Property-Specific Messaging Templates"]})})})},52696:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return M}});var i=n(24246),r=n(92222),s=n(59003),a=n(96013),o=n(95099),l=n.n(o),c=n(86677),u=n(27378),d=n(65464),p=n(56721),g=n(37440),m=n(87162),f=n(37541),x=n(39514),h=n(8540),v=n(54249),j=n(73088),y=e=>{let{isOpen:t,onClose:n,onAccept:r}=e,[s,o]=(0,u.useState)(void 0),l=Object.keys(j.Z).map(e=>({value:e,label:j.Z[e]}));return(0,i.jsxs)(a.u_l,{isOpen:t,onClose:n,size:"2xl",isCentered:!0,children:[(0,i.jsx)(a.ZAr,{}),(0,i.jsxs)(a.hzk,{"data-testid":"add-messaging-template-modal",children:[(0,i.jsx)(a.xBx,{borderBottomWidth:1,fontWeight:"bold",children:"Select message template"}),(0,i.jsxs)(a.fef,{children:[(0,i.jsx)(a.xvT,{color:"gray.700",fontWeight:"medium",fontSize:"sm",marginBottom:3,marginTop:1,children:"Add a new email message by selecting a template below and clicking accept."}),(0,i.jsx)(a.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"medium",marginBottom:2,children:"Choose template:"}),(0,i.jsx)(a.xuv,{"data-testid":"template-type-selector",children:(0,i.jsx)(a.WPr,{options:l,onChange:e=>{o(e)},className:"w-full"})})]}),(0,i.jsx)(a.mzw,{justifyContent:"flex-start",children:(0,i.jsxs)("div",{className:"flex w-full gap-4",children:[(0,i.jsx)(a.wpx,{onClick:n,"data-testid":"cancel-btn",className:"grow",children:"Cancel"}),(0,i.jsx)(a.wpx,{onClick:()=>r(s),type:"primary","data-testid":"confirm-btn",disabled:!s,className:"grow",children:"Next"})]})})]})]})},b=n(12623),_=n(60136),E=n(16781),C=n(43073),T=()=>{let e=(0,a.pmc)(),[t]=(0,b.vm)();return{toggleIsTemplateEnabled:(0,u.useCallback)(async n=>{let{isEnabled:i,templateId:r}=n,s=await t({templateId:r,template:{is_enabled:i}});if((0,C.D4)(s)){e((0,E.Vo)((0,_.e$)(s.error)));return}e((0,E.t5)("Messaging template ".concat(i?"enabled":"disabled")))},[t,e])}},w=n(27365),R=n(9786);let P=(0,r.Cl)(),S={items:[],total:0,page:1,size:50,pages:1},I=()=>(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:["Add new email templates with the ",'"Add message +"'," button.",(0,i.jsx)("br",{})]})]})}),k=()=>{let{isLoading:e,data:t}=(0,R.gz)({page:1,size:100}),n=null==t?void 0:t.items.filter(e=>!e.messaging_templates||0===e.messaging_templates.length),r=!!(!e&&(null==n?void 0:n.length)),s="missing-messages-notice-".concat(null==n?void 0:n.map(e=>e.id).join("-")),[o,l]=(0,p._)("notices.dismissedMessageNoticeId",""),c=s===o;return r&&!c?(0,i.jsx)(a.xuv,{mb:6,"data-testid":"notice-properties-without-messaging-templates",children:(0,i.jsx)(g.Z,{title:"Not all properties have messages configured.",text:(0,i.jsxs)(a.xvT,{as:"span",children:["You have properties that do not have messages configured. Users who submit privacy requests for these properties may not receive the necessary emails regarding their requests."," ",(0,i.jsx)(a.xuv,{as:"span",children:(0,i.jsx)(x.Z,{label:null==n?void 0:n.map(e=>e.name).join(", ")})})]}),onClose:()=>{l(s)}})}):null},A=()=>{let{data:e}=(0,w.tB)({api_set:!1});return(null==e?void 0:e.notifications.enable_property_specific_messaging)?null:(0,i.jsx)(a.xuv,{mb:6,"data-testid":"notice-properties-without-messaging-templates",children:(0,i.jsx)(g.Z,{title:"Basic messaging enabled",text:(0,i.jsxs)(a.xvT,{as:"span",children:["In basic messaging mode, you can edit the content of your messages from this screen. Please note that in basic messaging, the “Enable” toggle does not apply. Fides also supports property specific messaging mode. Read our"," ",(0,i.jsx)(a.rUS,{href:"https://fid.es/property-specific-messaging",target:"_blank",rel:"nofollow",textDecoration:"underline",children:"docs"})," ","for more information about property specific mode or contact"," ",(0,i.jsx)(a.rUS,{href:"mailto:support@ethyca.com",textDecoration:"underline",children:"Ethyca support"})," ","to enable this mode on your Fides instance."]})})})};var M=()=>{let e=(0,c.useRouter)(),{toggleIsTemplateEnabled:t}=T(),{PAGE_SIZES:n,pageSize:o,setPageSize:p,onPreviousPageClick:g,isPreviousPageDisabled:x,onNextPageClick:_,isNextPageDisabled:E,startRange:C,endRange:w,pageIndex:R,setTotalPages:M}=(0,h.oi)(),{data:N,isLoading:z,isFetching:q}=(0,b.ms)({page:R,size:o}),{items:V,total:O,pages:U}=(0,u.useMemo)(()=>null!=N?N:S,[N]);(0,u.useEffect)(()=>{M(U)},[U,M]);let[W,B]=(0,u.useState)(!1),Y=(0,u.useMemo)(()=>[P.accessor(e=>e.type,{id:"message",cell:e=>(0,i.jsx)(h.G3,{value:j.Z[e.getValue()]}),header:e=>(0,i.jsx)(h.Rr,{value:"Message",...e}),size:150}),P.accessor(e=>(e.properties||[]).map(e=>e.name),{id:"properties",cell:e=>(0,i.jsx)(h.WP,{suffix:"properties",value:e.getValue(),...e}),header:e=>(0,i.jsx)(h.Rr,{value:"Properties",...e}),meta:{showHeaderMenu:!0},size:250}),P.accessor(e=>e.is_enabled,{id:"is_enabled",cell:e=>(0,i.jsx)(a.kCb,{align:"center",justifyContent:"flex-start",w:"full",h:"full",children:(0,i.jsx)(a.rAg,{checked:e.getValue(),onChange:n=>{t({isEnabled:n,templateId:e.row.original.id})}})}),header:e=>(0,i.jsx)(h.Rr,{value:"Enable",...e}),size:200,meta:{disableRowClick:!0}})],[t]),D=(0,u.useMemo)(()=>l()(V,"id"),[V]),Z=(0,s.b7)({getCoreRowModel:(0,r.sC)(),getFilteredRowModel:(0,r.vL)(),getSortedRowModel:(0,r.tj)(),columns:Y,data:D,columnResizeMode:"onChange"});return(0,i.jsxs)(d.Z,{title:"Messaging",children:[(0,i.jsx)(f.Z,{heading:"Messaging"}),(0,i.jsx)(A,{}),(0,i.jsx)(k,{}),(0,i.jsx)(h.Q$,{children:(0,i.jsx)(a.Ugi,{alignItems:"center",spacing:4,marginLeft:"auto",children:(0,i.jsx)(a.wpx,{type:"primary","data-testid":"add-message-btn",onClick:()=>B(!0),children:"Add message +"})})}),z?(0,i.jsx)(h.I4,{rowHeight:36,numRows:15}):(0,i.jsx)(h.ZK,{tableInstance:Z,onRowClick:t=>{e.push({pathname:m.ax,query:{id:t.id}})},emptyTableNotice:(0,i.jsx)(I,{})}),(0,i.jsx)(v.s8,{totalRows:O||0,pageSizes:n,setPageSize:p,onPreviousPageClick:g,isPreviousPageDisabled:x||q,onNextPageClick:_,isNextPageDisabled:E||q,startRange:C,endRange:w}),(0,i.jsx)(y,{isOpen:W,onClose:()=>B(!1),onAccept:t=>{e.push({pathname:m.sM,query:{templateType:t}})}})]})}},43073:function(e,t,n){"use strict";n.d(t,{Bw:function(){return i.Bw},D4:function(){return i.D4}});var i=n(41164)}},function(e){e.O(0,[8033,5559,4554,2866,9278,8540,2888,9774,179],function(){return e(e.s=24081)}),_N_E=e.O()}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2815],{79349:function(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},52033:function(e,t,n){var i=n(26194),r=n(26789)(i);e.exports=r},23545:function(e,t,n){var i=n(97141),r=n(72889);e.exports=function e(t,n,s,a,o){var l=-1,c=t.length;for(s||(s=r),o||(o=[]);++l<c;){var u=t[l];n>0&&s(u)?n>1?e(u,n-1,s,a,o):i(o,u):a||(o[o.length]=u)}return o}},49819:function(e,t,n){var i=n(18911)();e.exports=i},26194:function(e,t,n){var i=n(49819),r=n(50098);e.exports=function(e,t){return e&&i(e,t,r)}},67375:function(e,t,n){var i=n(52033),r=n(80068);e.exports=function(e,t){var n=-1,s=r(e)?Array(e.length):[];return i(e,function(e,i,r){s[++n]=t(e,i,r)}),s}},98497:function(e,t,n){var i=n(66070),r=n(79867),s=n(89278),a=n(67375),o=n(73303),l=n(39334),c=n(96348),u=n(31137),d=n(19785);e.exports=function(e,t,n){t=t.length?i(t,function(e){return d(e)?function(t){return r(t,1===e.length?e[0]:e)}:e}):[u];var p=-1;return t=i(t,l(s)),o(a(e,function(e,n,r){return{criteria:i(t,function(t){return t(e)}),index:++p,value:e}}),function(e,t){return c(e,t,n)})}},1197:function(e,t,n){var i=n(31137),r=n(11871),s=n(63132);e.exports=function(e,t){return s(r(e,t,i),e+"")}},54459:function(e,t,n){var i=n(551),r=n(42630),s=n(31137),a=r?function(e,t){return r(e,"toString",{configurable:!0,enumerable:!1,value:i(t),writable:!0})}:s;e.exports=a},73303:function(e){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},17845:function(e,t,n){var i=n(55193);e.exports=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,s=e==e,a=i(e),o=void 0!==t,l=null===t,c=t==t,u=i(t);if(!l&&!u&&!a&&e>t||a&&o&&c&&!l&&!u||r&&o&&c||!n&&c||!s)return 1;if(!r&&!a&&!u&&e<t||u&&n&&s&&!r&&!a||l&&n&&s||!o&&s||!c)return -1}return 0}},96348:function(e,t,n){var i=n(17845);e.exports=function(e,t,n){for(var r=-1,s=e.criteria,a=t.criteria,o=s.length,l=n.length;++r<o;){var c=i(s[r],a[r]);if(c){if(r>=l)return c;return c*("desc"==n[r]?-1:1)}}return e.index-t.index}},26789:function(e,t,n){var i=n(80068);e.exports=function(e,t){return function(n,r){if(null==n)return n;if(!i(n))return e(n,r);for(var s=n.length,a=t?s:-1,o=Object(n);(t?a--:++a<s)&&!1!==r(o[a],a,o););return n}}},18911:function(e){e.exports=function(e){return function(t,n,i){for(var r=-1,s=Object(t),a=i(t),o=a.length;o--;){var l=a[e?o:++r];if(!1===n(s[l],l,s))break}return t}}},42630:function(e,t,n){var i=n(81822),r=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=r},72889:function(e,t,n){var i=n(96539),r=n(2900),s=n(19785),a=i?i.isConcatSpreadable:void 0;e.exports=function(e){return s(e)||r(e)||!!(a&&e&&e[a])}},57535:function(e,t,n){var i=n(85638),r=n(80068),s=n(42383),a=n(11611);e.exports=function(e,t,n){if(!a(n))return!1;var o=typeof t;return("number"==o?!!(r(n)&&s(t,n.length)):"string"==o&&t in n)&&i(n[t],e)}},11871:function(e,t,n){var i=n(79349),r=Math.max;e.exports=function(e,t,n){return t=r(void 0===t?e.length-1:t,0),function(){for(var s=arguments,a=-1,o=r(s.length-t,0),l=Array(o);++a<o;)l[a]=s[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=s[a];return c[t]=n(l),i(e,this,c)}}},63132:function(e,t,n){var i=n(54459),r=n(49591)(i);e.exports=r},49591:function(e){var t=Date.now;e.exports=function(e){var n=0,i=0;return function(){var r=t(),s=16-(r-i);if(i=r,s>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},551:function(e){e.exports=function(e){return function(){return e}}},95099:function(e,t,n){var i=n(23545),r=n(98497),s=n(1197),a=n(57535),o=s(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),r(e,i(t,1),[])});e.exports=o},24081:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/messaging",function(){return n(52696)}])},65464:function(e,t,n){"use strict";var i=n(24246),r=n(52615),s=n(88038),a=n.n(s);n(27378),t.Z=e=>{let{children:t,title:n,mainProps:s}=e;return(0,i.jsxs)(r.kCb,{"data-testid":n,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",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.jsx)(r.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...s,children:t})]})}},37440:function(e,t,n){"use strict";var i=n(24246),r=n(52615);t.Z=e=>{let{title:t,text:n,onClose:s}=e;return(0,i.jsxs)(r.Ugi,{backgroundColor:"gray.50",border:"1px solid",borderRadius:"md",justifyContent:"space-between",py:4,pr:6,pl:3,"data-testid":"empty-state",gap:2,position:"relative",children:[s&&(0,i.jsx)(r.Two,{boxSize:5,position:"absolute",right:3,top:3,zIndex:1,cursor:"pointer",p:1,onClick:s}),(0,i.jsx)(r.iid,{alignSelf:"start",color:"minos",mt:.5,flexGrow:0}),(0,i.jsxs)(r.kCb,{direction:"column",gap:2,flexGrow:1,children:[(0,i.jsx)(r.X6q,{fontSize:"md",children:t}),(0,i.jsx)(r.xvT,{fontSize:"sm",color:"gray.600",lineHeight:"5",children:n})]})]})}},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:l,style:c,...u}=e;return(0,i.jsxs)("div",{...u,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",...c}:{paddingBottom:"24px",...c},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,l&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,i.jsx)(s.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},53614:function(e,t,n){"use strict";n.d(t,{m:function(){return c}});var i=n(24246),r=n(52615),s=n(79894),a=n.n(s),o=n(27378);let{Text:l}=r.AntTypography,c=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},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,i.jsx)(l,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:o.title})),c)?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})}},73088:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}}),(i=r||(r={})).PRIVACY_REQUEST_REVIEW_APPROVE="privacy_request_review_approve",i.PRIVACY_REQUEST_REVIEW_DENY="privacy_request_review_deny",i.PRIVACY_REQUEST_RECEIPT="privacy_request_receipt",i.PRIVACY_REQUEST_COMPLETE_ACCESS="privacy_request_complete_access",i.PRIVACY_REQUEST_COMPLETE_DELETION="privacy_request_complete_deletion",i.SUBJECT_IDENTITY_VERIFICATION="subject_identity_verification";var i,r,s={[r.PRIVACY_REQUEST_COMPLETE_ACCESS]:"Access request completed",[r.PRIVACY_REQUEST_COMPLETE_DELETION]:"Erasure request completed",[r.PRIVACY_REQUEST_RECEIPT]:"Privacy request received",[r.PRIVACY_REQUEST_REVIEW_APPROVE]:"Privacy request approved",[r.PRIVACY_REQUEST_REVIEW_DENY]:"Privacy request denied",[r.SUBJECT_IDENTITY_VERIFICATION]:"Subject identity verification"}},12623:function(e,t,n){"use strict";n.d(t,{Vw:function(){return s},ms:function(){return i},pS:function(){return r},vm:function(){return a}});let{useGetSummaryMessagingTemplatesQuery:i,usePutMessagingTemplateByIdMutation:r,useCreateMessagingTemplateByTypeMutation:s,usePatchMessagingTemplateByIdMutation:a}=n(21618).u.injectEndpoints({endpoints:e=>({getSummaryMessagingTemplates:e.query({query:e=>({method:"GET",url:"plus/messaging/templates/summary",params:e}),providesTags:()=>["Property-Specific Messaging Templates"]}),putMessagingTemplateById:e.mutation({query:e=>{let{templateId:t,template:n}=e;return{url:"plus/messaging/templates/".concat(t),method:"PUT",body:n}},invalidatesTags:()=>["Property-Specific Messaging Templates"]}),patchMessagingTemplateById:e.mutation({query:e=>{let{templateId:t,template:n}=e;return{url:"plus/messaging/templates/".concat(t),method:"PATCH",body:n}},invalidatesTags:()=>["Property-Specific Messaging Templates"]}),createMessagingTemplateByType:e.mutation({query:e=>{let{templateType:t,template:n}=e;return{url:"plus/messaging/templates/".concat(t),method:"POST",body:n}},invalidatesTags:()=>["Property-Specific Messaging Templates"]})})})},52696:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return M}});var i=n(24246),r=n(92222),s=n(59003),a=n(52615),o=n(95099),l=n.n(o),c=n(86677),u=n(27378),d=n(65464),p=n(56721),g=n(37440),m=n(87162),f=n(37541),x=n(39514),h=n(8540),v=n(54249),j=n(73088),y=e=>{let{isOpen:t,onClose:n,onAccept:r}=e,[s,o]=(0,u.useState)(void 0),l=Object.keys(j.Z).map(e=>({value:e,label:j.Z[e]}));return(0,i.jsxs)(a.u_l,{isOpen:t,onClose:n,size:"2xl",isCentered:!0,children:[(0,i.jsx)(a.ZAr,{}),(0,i.jsxs)(a.hzk,{"data-testid":"add-messaging-template-modal",children:[(0,i.jsx)(a.xBx,{borderBottomWidth:1,fontWeight:"bold",children:"Select message template"}),(0,i.jsxs)(a.fef,{children:[(0,i.jsx)(a.xvT,{color:"gray.700",fontWeight:"medium",fontSize:"sm",marginBottom:3,marginTop:1,children:"Add a new email message by selecting a template below and clicking accept."}),(0,i.jsx)(a.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"medium",marginBottom:2,children:"Choose template:"}),(0,i.jsx)(a.xuv,{"data-testid":"template-type-selector",children:(0,i.jsx)(a.WPr,{options:l,onChange:e=>{o(e)},className:"w-full"})})]}),(0,i.jsx)(a.mzw,{justifyContent:"flex-start",children:(0,i.jsxs)("div",{className:"flex w-full gap-4",children:[(0,i.jsx)(a.wpx,{onClick:n,"data-testid":"cancel-btn",className:"grow",children:"Cancel"}),(0,i.jsx)(a.wpx,{onClick:()=>r(s),type:"primary","data-testid":"confirm-btn",disabled:!s,className:"grow",children:"Next"})]})})]})]})},b=n(12623),_=n(60136),E=n(16781),C=n(43073),T=()=>{let e=(0,a.pmc)(),[t]=(0,b.vm)();return{toggleIsTemplateEnabled:(0,u.useCallback)(async n=>{let{isEnabled:i,templateId:r}=n,s=await t({templateId:r,template:{is_enabled:i}});if((0,C.D4)(s)){e((0,E.Vo)((0,_.e$)(s.error)));return}e((0,E.t5)("Messaging template ".concat(i?"enabled":"disabled")))},[t,e])}},w=n(27365),R=n(9786);let P=(0,r.Cl)(),S={items:[],total:0,page:1,size:50,pages:1},I=()=>(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:["Add new email templates with the ",'"Add message +"'," button.",(0,i.jsx)("br",{})]})]})}),k=()=>{let{isLoading:e,data:t}=(0,R.gz)({page:1,size:100}),n=null==t?void 0:t.items.filter(e=>!e.messaging_templates||0===e.messaging_templates.length),r=!!(!e&&(null==n?void 0:n.length)),s="missing-messages-notice-".concat(null==n?void 0:n.map(e=>e.id).join("-")),[o,l]=(0,p._)("notices.dismissedMessageNoticeId",""),c=s===o;return r&&!c?(0,i.jsx)(a.xuv,{mb:6,"data-testid":"notice-properties-without-messaging-templates",children:(0,i.jsx)(g.Z,{title:"Not all properties have messages configured.",text:(0,i.jsxs)(a.xvT,{as:"span",children:["You have properties that do not have messages configured. Users who submit privacy requests for these properties may not receive the necessary emails regarding their requests."," ",(0,i.jsx)(a.xuv,{as:"span",children:(0,i.jsx)(x.Z,{label:null==n?void 0:n.map(e=>e.name).join(", ")})})]}),onClose:()=>{l(s)}})}):null},A=()=>{let{data:e}=(0,w.tB)({api_set:!1});return(null==e?void 0:e.notifications.enable_property_specific_messaging)?null:(0,i.jsx)(a.xuv,{mb:6,"data-testid":"notice-properties-without-messaging-templates",children:(0,i.jsx)(g.Z,{title:"Basic messaging enabled",text:(0,i.jsxs)(a.xvT,{as:"span",children:["In basic messaging mode, you can edit the content of your messages from this screen. Please note that in basic messaging, the “Enable” toggle does not apply. Fides also supports property specific messaging mode. Read our"," ",(0,i.jsx)(a.rUS,{href:"https://fid.es/property-specific-messaging",target:"_blank",rel:"nofollow",textDecoration:"underline",children:"docs"})," ","for more information about property specific mode or contact"," ",(0,i.jsx)(a.rUS,{href:"mailto:support@ethyca.com",textDecoration:"underline",children:"Ethyca support"})," ","to enable this mode on your Fides instance."]})})})};var M=()=>{let e=(0,c.useRouter)(),{toggleIsTemplateEnabled:t}=T(),{PAGE_SIZES:n,pageSize:o,setPageSize:p,onPreviousPageClick:g,isPreviousPageDisabled:x,onNextPageClick:_,isNextPageDisabled:E,startRange:C,endRange:w,pageIndex:R,setTotalPages:M}=(0,h.oi)(),{data:N,isLoading:z,isFetching:q}=(0,b.ms)({page:R,size:o}),{items:V,total:O,pages:U}=(0,u.useMemo)(()=>null!=N?N:S,[N]);(0,u.useEffect)(()=>{M(U)},[U,M]);let[W,B]=(0,u.useState)(!1),Y=(0,u.useMemo)(()=>[P.accessor(e=>e.type,{id:"message",cell:e=>(0,i.jsx)(h.G3,{value:j.Z[e.getValue()]}),header:e=>(0,i.jsx)(h.Rr,{value:"Message",...e}),size:150}),P.accessor(e=>(e.properties||[]).map(e=>e.name),{id:"properties",cell:e=>(0,i.jsx)(h.WP,{suffix:"properties",value:e.getValue(),...e}),header:e=>(0,i.jsx)(h.Rr,{value:"Properties",...e}),meta:{showHeaderMenu:!0},size:250}),P.accessor(e=>e.is_enabled,{id:"is_enabled",cell:e=>(0,i.jsx)(a.kCb,{align:"center",justifyContent:"flex-start",w:"full",h:"full",children:(0,i.jsx)(a.rAg,{checked:e.getValue(),onChange:n=>{t({isEnabled:n,templateId:e.row.original.id})}})}),header:e=>(0,i.jsx)(h.Rr,{value:"Enable",...e}),size:200,meta:{disableRowClick:!0}})],[t]),D=(0,u.useMemo)(()=>l()(V,"id"),[V]),Z=(0,s.b7)({getCoreRowModel:(0,r.sC)(),getFilteredRowModel:(0,r.vL)(),getSortedRowModel:(0,r.tj)(),columns:Y,data:D,columnResizeMode:"onChange"});return(0,i.jsxs)(d.Z,{title:"Messaging",children:[(0,i.jsx)(f.Z,{heading:"Messaging"}),(0,i.jsx)(A,{}),(0,i.jsx)(k,{}),(0,i.jsx)(h.Q$,{children:(0,i.jsx)(a.Ugi,{alignItems:"center",spacing:4,marginLeft:"auto",children:(0,i.jsx)(a.wpx,{type:"primary","data-testid":"add-message-btn",onClick:()=>B(!0),children:"Add message +"})})}),z?(0,i.jsx)(h.I4,{rowHeight:36,numRows:15}):(0,i.jsx)(h.ZK,{tableInstance:Z,onRowClick:t=>{e.push({pathname:m.ax,query:{id:t.id}})},emptyTableNotice:(0,i.jsx)(I,{})}),(0,i.jsx)(v.s8,{totalRows:O||0,pageSizes:n,setPageSize:p,onPreviousPageClick:g,isPreviousPageDisabled:x||q,onNextPageClick:_,isNextPageDisabled:E||q,startRange:C,endRange:w}),(0,i.jsx)(y,{isOpen:W,onClose:()=>B(!1),onAccept:t=>{e.push({pathname:m.sM,query:{templateType:t}})}})]})}},43073:function(e,t,n){"use strict";n.d(t,{Bw:function(){return i.Bw},D4:function(){return i.D4}});var i=n(41164)}},function(e){e.O(0,[8033,2780,2858,2866,9278,8540,2888,9774,179],function(){return e(e.s=24081)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9650],{6554:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/privacy-requests/[id]",function(){return t(6742)}])},43124:function(e,n,t){"use strict";t.d(n,{Z:function(){return h}});var i=t(24246),r=t(96013),s=t(88038),l=t.n(s),o=t(86677);t(27378);var a=t(11596),c=t(72247),d=t(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."," "]})]})})},h=e=>{let{children:n,title:t,padded:s=!0,mainProps:d}=e,h=(0,a.hz)(),x=(0,o.useRouter)(),g="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,j=!(h.flags.privacyRequestsConfiguration&&g),{data:f}=(0,c.JE)(void 0,{skip:j}),{data:m}=(0,c.PW)(void 0,{skip:j}),p=h.flags.privacyRequestsConfiguration&&(!f||!m)&&g;return(0,i.jsxs)(r.kCb,{"data-testid":t,direction:"column",h:"100vh",children:[(0,i.jsxs)(l(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",t]}),(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:[p?(0,i.jsx)(u,{}):null,n]})]})}},60136:function(e,n,t){"use strict";t.d(n,{D4:function(){return s.D4},MM:function(){return h},Ot:function(){return c},c6:function(){return r},cj:function(){return g},e$:function(){return o},fn:function(){return a},iC:function(){return x},nU:function(){return u},tB:function(){return d}});var i,r,s=t(41164);let l="An unexpected error occurred. Please try again.",o=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;if((0,s.Bw)(e)){if((0,s.hE)(e.data))return e.data.detail;if((0,s.cz)(e.data)){var t;let n=null===(t=e.data.detail)||void 0===t?void 0:t[0];return"".concat(null==n?void 0:n.msg,": ").concat(null==n?void 0:n.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 n};function a(e){return"object"==typeof e&&null!=e&&"status"in e}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function d(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let u=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:l};if((0,s.oK)(e))return{status:e.originalStatus,message:e.data};if((0,s.Bw)(e)){let{status:t}=e;return{status:t,message:o(e,n.message)}}return n},h=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(i=r||(r={})).GVL="gvl",i.AC="gacp",i.COMPASS="compass";let x={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},g=e=>{let n=e.split(".")[0];return"gacp"===n?"gacp":"gvl"===n?"gvl":"compass"}},41628:function(e,n,t){"use strict";var i=t(24246),r=t(96013),s=t(27378),l=t(44296),o=t(60136),a=t(53359),c=t(72247);let d=(0,r.Gpc)((e,n)=>{let{handleBlur:t,subjectRequest:d}=e,u=(0,l.T)(),[h,x]=(0,s.useState)(!1),{errorAlert:g,successAlert:j}=(0,a.V)(),{errorRequests:f}=(0,l.C)(c.fe),[m]=(0,c.JD)(),[p]=(0,c.Fq)(),v=async()=>{x(!0);let e=await m(f);"error"in e?(u((0,c.uT)({checkAll:!1,errorRequests:[]})),g((0,o.e$)(e.error),"DSR batch automation has failed due to the following:",{duration:null})):(e.data.failed.length>0&&g((0,i.jsxs)(r.xuv,{children:["DSR automation has failed for"," ",(0,i.jsx)(r.xvT,{as:"span",fontWeight:"semibold",children:e.data.failed.length})," ","privacy request(s). Please review the event log for further details."]}),void 0,{containerStyle:{maxWidth:"max-content"},duration:null}),e.data.succeeded.length>0&&j("Privacy request(s) are now being reprocessed.")),x(!1)},y=async()=>{if(!d)return;x(!0);let e=await p(d);"error"in e?g((0,o.e$)(e.error),"DSR automation has failed for this privacy request due to the following:",{duration:null}):j("Privacy request is now being reprocessed."),x(!1),t&&t(n)};return(0,i.jsx)(r.wpx,{disabled:h,loading:h,onClick:d?y:v,ref:n,size:"small",icon:(0,i.jsx)(r.AyE,{}),children:"Reprocess"})});n.Z=d},6742:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return ei}});var i,r,s=t(24246),l=t(96013),o=t(86677),a=t(43124),c=t(87162),d=t(37541),u=t(27365),h=t(27378),x=t(37760),g=t(71288),j=e=>{let{errorMessage:n}=e;return(0,s.jsxs)(l.xuv,{height:"100%",id:"outer",children:[(0,s.jsxs)(l.kCb,{alignItems:"center",paddingBottom:"8px",children:[(0,s.jsx)(l.xvT,{size:"sm",color:"gray.700",fontWeight:"medium",marginRight:"8px",lineHeight:"20px",children:"Status"}),(0,s.jsx)(l.j8w,{color:"error",children:"Error"}),(0,s.jsx)(l.xuv,{padding:"0px",marginBottom:"3px",children:(0,s.jsx)(g.Z,{copyText:n})})]}),(0,s.jsx)(l.izJ,{}),(0,s.jsx)(l.xuv,{id:"errorWrapper",overflow:"auto",height:"100%",children:(0,s.jsx)(l.xvT,{children:n})})]})},f=t(36768),m=t(18121),p=t.n(m);(i=r||(r={})).IN_PROCESSING="in_processing",i.PENDING="pending",i.COMPLETE="complete",i.ERROR="error",i.PAUSED="paused",i.RETRYING="retrying",i.SKIPPED="skipped";let v=e=>{switch(e){case x.Us.ACCESS:return"Data Retrieval";case x.Us.ERASURE:return"Data Deletion";case x.Us.CONSENT:return"Consent";case x.Us.UPDATE:return"Data Update";default:return e}};var y=e=>{let{eventLogs:n,openErrorPanel:t}=e,i=null==n?void 0:n.map(e=>(0,s.jsxs)(l.Tr,{_hover:{backgroundColor:e.status===r.ERROR?p().FIDESUI_NEUTRAL_50:"unset"},onClick:()=>{e.status===r.ERROR&&t(e.message)},style:{cursor:e.status===r.ERROR?"pointer":"unset"},children:[(0,s.jsx)(l.Td,{children:(0,s.jsx)(l.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:(0,f.p6)(e.updated_at)})}),(0,s.jsx)(l.Td,{children:(0,s.jsx)(l.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:v(e.action_type)})}),(0,s.jsx)(l.Td,{children:(0,s.jsx)(l.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:e.status})}),(0,s.jsx)(l.Td,{children:(0,s.jsx)(l.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:e.collection_name})})]},e.updated_at));return(0,s.jsx)(l.xuv,{width:"100%",paddingTop:"0px",height:"100%",children:(0,s.jsx)(l.xJi,{id:"tableContainer",height:"100%",style:{overflowY:"auto"},children:(0,s.jsxs)(l.iA_,{size:"sm",id:"table",position:"relative",children:[(0,s.jsx)(l.hrZ,{id:"tableHeader",position:"sticky",top:"0px",backgroundColor:"white",children:(0,s.jsxs)(l.Tr,{children:[(0,s.jsx)(l.Th,{children:(0,s.jsx)(l.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Time"})}),(0,s.jsx)(l.Th,{children:(0,s.jsx)(l.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Action Type"})}),(0,s.jsx)(l.Th,{children:(0,s.jsx)(l.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Status"})}),(0,s.jsx)(l.Th,{children:(0,s.jsx)(l.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Collection"})})]})}),(0,s.jsx)(l.p3B,{id:"tableBody",children:i})]})})})},b=e=>{let{isOpen:n,onClose:t,currentLogs:i,isViewingError:r,errorMessage:o,onCloseErrorPanel:a,onOpenErrorPanel:c}=e;return(0,s.jsxs)(l.dys,{isOpen:n,placement:"right",onClose:t,size:"full",autoFocus:!1,children:[(0,s.jsx)(l.P1B,{}),(0,s.jsxs)(l.scA,{style:{width:"50%"},children:[(0,s.jsx)(l.OXI,{style:{paddingBottom:"0px"},children:(0,s.jsxs)(l.kCb,{justifyContent:"space-between",alignItems:"center",height:"40px",children:[(0,s.jsxs)(l.kCb,{alignItems:"center",children:[r&&(0,s.jsx)(l.wpx,{icon:(0,s.jsx)(l.Rpv,{}),"aria-label":"Close error logs",size:"small",onClick:a}),(0,s.jsx)(l.xvT,{color:"gray.900",fontSize:"md",lineHeight:"6",fontWeight:"medium",ml:1,children:r?"Event detail":"Event log"})]}),(0,s.jsx)(l.wpx,{icon:(0,s.jsx)(l.LGN,{width:"17px"}),"aria-label":"Stop viewing error message",size:"small",onClick:t})]})}),(0,s.jsxs)(l.Ng0,{id:"drawerBody",overflow:"hidden",children:[i&&!r?(0,s.jsx)(y,{eventLogs:i,openErrorPanel:c}):null,r?(0,s.jsx)(j,{errorMessage:o}):null]})]})]})};let C=e=>{if(0===e.length)return!1;let n=Array.from(e).sort((e,n)=>new Date(n.updated_at).getTime()-new Date(e.updated_at).getTime());if(!n[0].collection_name)return n[0].status===r.ERROR;let t={};return n.forEach(e=>{e.collection_name&&!t[e.collection_name]&&(t[e.collection_name]=e)}),Object.values(t).some(e=>e.status===r.ERROR)};var S=e=>{let{entryKey:n,logs:t,isLast:i,onViewLog:r}=e;return(0,s.jsxs)(l.xuv,{children:[(0,s.jsxs)(l.kCb,{alignItems:"center",height:23,position:"relative",children:[(0,s.jsx)(l.xuv,{zIndex:1,children:C(t)?(0,s.jsx)(l.f9v,{}):(0,s.jsx)(l.StI,{})}),!i&&(0,s.jsx)(l.xuv,{width:"2px",height:"63px",backgroundColor:"gray.700",position:"absolute",top:"16px",left:"6px",zIndex:0}),(0,s.jsx)(l.xvT,{color:"gray.600",fontWeight:"500",fontSize:"sm",ml:2,children:n})]}),(0,s.jsx)(l.xvT,{cursor:"pointer",color:"complimentary.500",fontWeight:"500",fontSize:"sm",ml:6,mb:7,onClick:()=>r(),children:"View log"})]})},w=e=>{let{subjectRequest:n}=e,{isOpen:t,onOpen:i,onClose:r}=(0,l.qY0)(),[o,a]=(0,h.useState)([]),[c,d]=(0,h.useState)(""),[u,x]=(0,h.useState)(!1),[g,j]=(0,h.useState)(""),{results:f}=n,m=f?Object.keys(f):[];(0,h.useEffect)(()=>{c&&f&&f[c]&&a(f[c])},[f,c]);let p=()=>{x(!1)},v=(e,n)=>{d(e),a(n),i()};return(0,s.jsxs)(l.xuv,{width:"100%",children:[(0,s.jsx)(l.xvT,{color:"gray.900",fontSize:"md",fontWeight:"500",mb:1,children:"Activity timeline"}),f&&m.map((e,n)=>(0,s.jsx)(S,{entryKey:e,logs:f[e],isLast:n===m.length-1,onViewLog:()=>v(e,f[e])},e)),(0,s.jsx)(b,{isOpen:t,onClose:()=>{u&&p(),d(""),r()},currentLogs:o,isViewingError:u,errorMessage:g,onOpenErrorPanel:e=>{j(e),x(!0)},onCloseErrorPanel:p})]})},k=e=>{let{subjectRequest:n}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.X6q,{color:"gray.900",fontSize:"lg",fontWeight:"semibold",mb:4,children:"Events and logs"}),(0,s.jsx)(l.izJ,{}),(0,s.jsx)(l.kCb,{mt:3,children:(0,s.jsx)(w,{subjectRequest:n})})]})},_=t(53359),R=t(7564),T=t(72247),E=t(44296);let z=e=>Array.from(new Set(e.filter(e=>Object.values(x.Us).includes(e.action_type)).map(e=>e.action_type)));var q=e=>{let{rules:n}=e,t=z(n).map(e=>(0,f.kC)(e)).map(e=>(0,s.jsx)(l.j8w,{children:e},e));return(0,s.jsx)(l.xuv,{children:t})},I=t(34090),A=t(59389),O=e=>{let{connectorName:n,data:t,isSubmitting:i=!1,onSaveClick:r}=e,{isOpen:o,onOpen:a,onClose:c}=(0,l.qY0)(),d=(0,h.useRef)(null),u=async(e,n)=>{r({connection_key:t.connection_key,privacy_request_id:t.privacy_request_id,body:{...e}}),c()};return(0,s.jsxs)(s.Fragment,{children:[(null==t?void 0:t.checked)&&(0,s.jsx)(l.wpx,{onClick:a,size:"small",children:"Review"}),!(null==t?void 0:t.checked)&&(0,s.jsx)(l.wpx,{onClick:a,size:"small",type:"primary",children:"Begin manual input"}),(0,s.jsx)(I.J9,{enableReinitialize:!0,initialValues:{...t.fields},onSubmit:u,validateOnBlur:!1,validateOnChange:!1,validationSchema:A.Ry().shape({}),children:e=>(0,s.jsxs)(l.dys,{isOpen:o,placement:"right",initialFocusRef:d,onClose:c,size:"lg",children:[(0,s.jsx)(l.P1B,{}),(0,s.jsxs)(l.scA,{children:[(0,s.jsx)(l.cCv,{}),(0,s.jsxs)(l.OXI,{color:"gray.900",children:[(0,s.jsx)(l.xvT,{fontSize:"xl",mb:8,children:n}),(0,s.jsx)(l.izJ,{}),(0,s.jsx)(l.xvT,{fontSize:"md",mt:"4",children:"Manual access"}),(0,s.jsx)(l.xuv,{mt:"8px",children:(0,s.jsx)(l.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"normal",children:"Please complete the following PII fields that have been collected for the selected subject."})})]}),(0,s.jsx)(l.Ng0,{children:(0,s.jsx)(I.l0,{id:"manual-detail-form",noValidate:!0,children:(0,s.jsx)(l.gCW,{align:"stretch",gap:"16px",children:Object.entries(t.fields).map((e,n)=>{let[t]=e;return(0,s.jsx)(l.Ugi,{children:(0,s.jsx)(I.gN,{id:t,name:t,children:e=>{let{field:i}=e;return(0,s.jsxs)(l.NIc,{alignItems:"baseline",display:"inline-flex",children:[(0,s.jsx)(l.lXp,{color:"gray.900",fontSize:"14px",fontWeight:"semibold",htmlFor:t,w:"50%",children:t}),(0,s.jsx)(l.IIB,{...i,autoComplete:"off",color:"gray.700",placeholder:"Please enter ".concat(t),ref:0===n?d:void 0,size:"sm"})]})}})},t)})})})}),(0,s.jsx)(l.zeN,{justifyContent:"flex-start",children:(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(l.wpx,{onClick:c,children:"Cancel"}),(0,s.jsx)(l.wpx,{form:"manual-detail-form",loading:i,htmlType:"submit",children:"Save"})]})})]})]})})]})},P=e=>{let{connectorName:n,data:t,isSubmitting:i=!1,onSaveClick:r}=e,{isOpen:o,onOpen:a,onClose:c}=(0,l.qY0)(),d=(0,h.useRef)(null),u=async(e,n)=>{r({connection_key:t.connection_key,privacy_request_id:t.privacy_request_id,body:{...e}}),c()};return(0,s.jsxs)(s.Fragment,{children:[(null==t?void 0:t.checked)&&(0,s.jsx)(l.wpx,{onClick:a,size:"small",children:"Review"}),!(null==t?void 0:t.checked)&&(0,s.jsx)(l.wpx,{onClick:a,size:"small",type:"primary",children:"Begin manual input"}),(0,s.jsx)(I.J9,{enableReinitialize:!0,initialValues:{...t.fields},onSubmit:u,validateOnBlur:!1,validateOnChange:!1,validationSchema:A.Ry().shape({}),children:e=>(0,s.jsxs)(l.dys,{isOpen:o,placement:"right",initialFocusRef:d,onClose:c,size:"lg",children:[(0,s.jsx)(l.P1B,{}),(0,s.jsxs)(l.scA,{children:[(0,s.jsx)(l.cCv,{}),(0,s.jsxs)(l.OXI,{color:"gray.900",children:[(0,s.jsx)(l.xvT,{fontSize:"xl",mb:8,children:n}),(0,s.jsx)(l.izJ,{}),(0,s.jsx)(l.xvT,{fontSize:"md",mt:"4",children:"Manual erasure"}),(0,s.jsx)(l.xuv,{mt:"8px",children:(0,s.jsx)(l.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"normal",children:"Please delete the following PII fields associated with the selected subject if they are available. Once deleted, check the box to confirm the deletion."})})]}),(0,s.jsx)(l.Ng0,{children:(0,s.jsx)(I.l0,{id:"manual-detail-form",noValidate:!0,children:(0,s.jsx)(l.gCW,{align:"stretch",gap:"16px",children:Object.entries(t.fields).map(e=>{let[n]=e;return(0,s.jsx)(l.Ugi,{children:(0,s.jsx)(I.gN,{id:n,name:n,children:e=>{let{field:t}=e;return(0,s.jsxs)(l.NIc,{alignItems:"baseline",display:"inline-flex",children:[(0,s.jsx)(l.lXp,{color:"gray.900",fontSize:"14px",fontWeight:"semibold",htmlFor:n,w:"50%",children:n}),(0,s.jsx)(l.XZJ,{...t,isChecked:!!t.value,onChange:t.onChange,name:n,id:n})]})}})},n)})})})}),(0,s.jsx)(l.zeN,{justifyContent:"flex-start",children:(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(l.wpx,{onClick:c,children:"Cancel"}),(0,s.jsx)(l.wpx,{form:"manual-detail-form",loading:i,htmlType:"submit",children:"Save"})]})})]})]})})]})};let W=(e,n,t)=>e.includes(x.Us.ACCESS)?{ProcessingDetailComponent:O,uploadMutation:n,getUploadedWebhookDataEndpoint:T.$I.endpoints.getUploadedManualAccessWebhookData}:e.includes(x.Us.ERASURE)?{ProcessingDetailComponent:P,uploadMutation:t,getUploadedWebhookDataEndpoint:T.$I.endpoints.getUploadedManualErasureWebhookData}:null;var N=e=>{let{subjectRequest:n}=e,t=(0,E.T)(),{errorAlert:i,successAlert:r}=(0,_.V)(),{handleError:o}=(0,_.H)(),[a,c]=(0,h.useState)([]),[d,u]=(0,h.useState)(!1),[g,j]=(0,h.useState)(!1),{data:f,isFetching:m,isLoading:p,isSuccess:v}=(0,R.W6)(),[y]=(0,T.w3)(),b=z(n.policy.rules),[C]=(0,T.nL)(),[S]=(0,T.UR)(),{ProcessingDetailComponent:w,uploadMutation:k,getUploadedWebhookDataEndpoint:q}=W(b,C,S),I=async()=>{try{u(!0),await y(n.id).unwrap(),r("Manual request has been received. Request now processing.")}catch(e){o(e)}finally{u(!1)}},A=async e=>{try{j(!0),await k(e).unwrap();let n={connection_key:e.connection_key,fields:{}};Object.entries(e.body).forEach(e=>{let[t,i]=e;n.fields[t]=i||""});let t=a.map(e=>e.connection_key===n.connection_key?{...e,checked:!0,fields:{...n.fields}}:e);c(t),r("Manual input successfully saved!")}catch(e){o(e)}finally{j(!1)}};return((0,h.useEffect)(()=>(v&&f.length>0&&0===a.length&&(()=>{if(a.length>0)return;let e=[],r=null==f?void 0:f.map(e=>e.connection_config.key);null==r||r.every(i=>e.push(t(q.initiate({connection_key:i,privacy_request_id:n.id})))),Promise.allSettled(e).then(e=>{let n=[];e.forEach((e,t)=>{if("fulfilled"===e.status&&e.value.isSuccess&&e.value.data){let t={checked:e.value.data.checked,fields:{},connection_key:e.value.originalArgs.connection_key,privacy_request_id:e.value.originalArgs.privacy_request_id};Object.entries(e.value.data.fields).forEach(e=>{let[n,i]=e;t.fields[n]=i||""}),n.push(t)}else i("An error occurred while loading manual input data for ".concat(f[t].connection_config.name))}),c(n)})})(),()=>{}),[f,a.length,t,i,v,n.id,q]),b.includes(x.Us.ACCESS)||b.includes(x.Us.ERASURE))?(0,s.jsxs)(l.gCW,{align:"stretch",spacing:8,children:[(0,s.jsxs)(l.xuv,{children:[(0,s.jsx)(l.X6q,{color:"gray.900",fontSize:"lg",fontWeight:"semibold",mb:4,children:"Manual Processing"}),(0,s.jsx)(l.izJ,{})]}),(0,s.jsx)(l.xuv,{children:(0,s.jsx)(l.xvT,{color:"gray.700",fontSize:"sm",children:"The following table details the integrations that require manual input from you."})}),(0,s.jsxs)(l.xuv,{children:[(m||p)&&(0,s.jsx)(l.M5Y,{children:(0,s.jsx)(l.$jN,{})}),v&&f?(0,s.jsx)(l.xJi,{children:(0,s.jsxs)(l.iA_,{size:"sm",variant:"unstyled",children:[(0,s.jsx)(l.hrZ,{children:(0,s.jsxs)(l.Tr,{children:[(0,s.jsx)(l.Th,{fontSize:"sm",fontWeight:"semibold",pl:"0",textTransform:"none",children:"Integration Identifier"}),(0,s.jsx)(l.Th,{})]})}),(0,s.jsxs)(l.p3B,{children:[f.length>0&&f.map(e=>(0,s.jsxs)(l.Tr,{display:"block",children:[(0,s.jsx)(l.Td,{pl:"0",children:e.connection_config.key}),(0,s.jsx)(l.Td,{children:a.length>0?(0,s.jsx)(w,{connectorName:e.connection_config.name,data:a.find(n=>n.connection_key===e.connection_config.key),isSubmitting:g,onSaveClick:A}):null})]},e.id)),0===f.length&&(0,s.jsx)(l.Tr,{children:(0,s.jsx)(l.Td,{colSpan:3,pl:"0",children:(0,s.jsx)(l.M5Y,{children:(0,s.jsx)(l.xvT,{children:"You don‘t have any Manual Process connections set up yet."})})})})]}),a.length>0&&a.every(e=>e.checked)?(0,s.jsx)(l.$RU,{children:(0,s.jsx)(l.Tr,{children:(0,s.jsx)(l.Th,{pl:"0px",children:(0,s.jsx)(l.wpx,{size:"small",type:"primary",loading:d,onClick:I,children:"Complete DSR"})})})}):null]})}):null]})]}):null},D=t(93261),U=e=>{let{daysLeft:n,includeText:t,status:i}=e;if(!n||i===D.q.COMPLETE||i===D.q.CANCELED||i===D.q.DENIED||i===D.q.IDENTITY_UNVERIFIED)return null;let r="";switch(!0){case n>=10:r="success";break;case n<10&&n>4:r="warning";break;case n<5:r="error"}return(0,s.jsx)(l.j8w,{color:r,children:t?"".concat(n," days left"):n})},L=t(11596);let F={approved:{color:"success",label:"Approved"},complete:{color:"success",label:"Completed"},awaiting_email_send:{color:"marble",label:"Awaiting Email Send"},denied:{color:"error",label:"Denied"},canceled:{color:"marble",label:"Canceled"},error:{color:"warning",label:"Error"},in_processing:{color:"caution",label:"In Progress"},paused:{color:"marble",label:"Paused"},pending:{color:"info",label:"New"},identity_unverified:{color:"marble",label:"Unverified"},requires_input:{color:"alert",label:"Requires Input"}};var M=e=>{let{status:n}=e;return(0,s.jsx)(l.j8w,{color:F[n].color,className:"w-[120px] justify-center","data-testid":"request-status-badge",children:F[n].label})},B=t(60136),J=t(62528),V=t(38615),X=e=>{var n;let{requestId:t}=e,{data:i,isLoading:r,isError:o,error:a}=(0,T.br)({privacy_request_id:t}),c=o?(0,B.e$)(a,"Unable to resolve download URL"):"Requests stored locally cannot be downloaded",d=null!==(n=null==i?void 0:i.access_result_urls[0])&&void 0!==n?n:"",u=!!d&&"your local fides_uploads folder"!==d;return(0,s.jsx)(V.ZP,{scopes:[x.Sh.PRIVACY_REQUEST_ACCESS_RESULTS_READ],children:(0,s.jsx)(l.kCb,{children:(0,s.jsx)(l.ua7,{isDisabled:u,label:c,children:(0,s.jsx)(l.wpx,{onClick:()=>{let e=document.createElement("a");e.href=d,e.target="_blank",e.rel="noopener noreferrer",e.click(),e.remove()},icon:(0,s.jsx)(J.nM,{}),loading:r,disabled:!u,"data-testid":"download-results-btn",children:"Download request results"})})})})},Z=t(21613),G=t(25662);let Y=(0,l.Gpc)((e,n)=>(0,s.jsx)(l.wpx,{ref:n,size:"small",...e})),H=(0,l.Gpc)((e,n)=>{let{buttonProps:t,children:i,onClose:r,subjectRequest:o}=e,{handleApproveRequest:a,isLoading:c}=(0,G.Z)({subjectRequest:o}),d=(0,l.qY0)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Y,{ref:n,onClick:d.onOpen,isLoading:c,isDisabled:c,...t,"data-testid":"privacy-request-approve-btn",children:i}),(0,s.jsx)(Z.Z,{isOpen:d.isOpen,isLoading:c,onClose:()=>{d.onClose(),null==r||r()},onApproveRequest:a,subjectRequest:o})]})});var $=t(94723);let K=(0,l.Gpc)((e,n)=>{let{buttonProps:t,children:i,onClose:r,subjectRequest:o}=e,{handleDenyRequest:a,isLoading:c}=(0,G.Z)({subjectRequest:o}),d=(0,l.qY0)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Y,{ref:n,onClick:d.onOpen,isLoading:c,isDisabled:c,...t,"data-testid":"privacy-request-deny-btn",children:i}),(0,s.jsx)($.Z,{isOpen:d.isOpen,onClose:()=>{d.onClose(),null==r||r()},onDenyRequest:a})]})});var Q=t(41628),ee=e=>{let{subjectRequest:n}=e,{plus:t}=(0,L.hz)(),{id:i,status:r,policy:o}=n,{flags:{downloadAccessRequestResults:a}}=(0,L.hz)(),c=a&&z(o.rules).includes(x.Us.ACCESS)&&r===D.q.COMPLETE;return(0,s.jsxs)(l.kCb,{direction:"column",gap:4,children:[(0,s.jsx)(l.X6q,{color:"gray.900",fontSize:"lg",fontWeight:"semibold",children:"Request details"}),(0,s.jsx)(l.izJ,{}),(0,s.jsxs)(l.kCb,{alignItems:"center",children:[(0,s.jsx)(l.xvT,{mr:2,fontSize:"sm",color:"gray.900",fontWeight:"500",children:"Request ID:"}),(0,s.jsx)(l.xvT,{color:"gray.600",fontWeight:"500",fontSize:"sm",mr:1,children:i}),(0,s.jsx)(g.Z,{copyText:i,size:"small"})]}),t&&n.source&&(0,s.jsxs)(l.kCb,{alignItems:"center",children:[(0,s.jsx)(l.xvT,{mr:2,fontSize:"sm",color:"gray.900",fontWeight:"500",children:"Source:"}),(0,s.jsx)(l.xuv,{children:(0,s.jsx)(l.j8w,{children:n.source})})]}),(0,s.jsxs)(l.kCb,{alignItems:"center",children:[(0,s.jsx)(l.xvT,{mr:2,fontSize:"sm",color:"gray.900",fontWeight:"500",children:"Request type:"}),(0,s.jsx)(l.xuv,{mr:1,children:(0,s.jsx)(q,{rules:o.rules})})]}),(0,s.jsxs)(l.kCb,{alignItems:"center",children:[(0,s.jsx)(l.xvT,{mr:2,fontSize:"sm",color:"gray.900",fontWeight:"500",children:"Policy key:"}),(0,s.jsx)(l.xuv,{children:(0,s.jsx)(l.j8w,{children:n.policy.key})})]}),(0,s.jsxs)(l.kCb,{alignItems:"center",children:[(0,s.jsx)(l.xvT,{mb:0,mr:2,fontSize:"sm",color:"gray.900",fontWeight:"500",children:"Status:"}),(0,s.jsxs)(l.Ugi,{spacing:"8px",children:[(0,s.jsx)(l.kCb,{children:(0,s.jsx)(M,{status:r})}),(0,s.jsxs)("div",{className:"flex gap-3",children:["error"===r&&(0,s.jsx)(Q.Z,{subjectRequest:n}),"pending"===r&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(H,{subjectRequest:n,children:"Approve"}),(0,s.jsx)(K,{subjectRequest:n,children:"Deny"})]})]}),(0,s.jsx)(U,{daysLeft:n.days_left,includeText:!0,status:n.status})]})]}),c&&(0,s.jsx)(X,{requestId:i})]})},en=e=>{let{subjectRequest:n}=e,{identity:t,identity_verified_at:i,custom_privacy_request_fields:r}=n;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.kCb,{direction:"row",justifyContent:"space-between",children:(0,s.jsx)(l.X6q,{color:"gray.900",fontSize:"lg",fontWeight:"semibold",mb:4,mt:4,children:"Subject identities"})}),(0,s.jsx)(l.izJ,{mb:4}),Object.entries(t).filter(e=>{let[,{value:n}]=e;return null!==n}).map(e=>{let[n,{value:t,label:r}]=e;return(0,s.jsxs)(l.kCb,{alignItems:"center",mb:4,children:[(0,s.jsxs)(l.xvT,{mr:2,fontSize:"sm",color:"gray.900",fontWeight:"500",children:[r,":"]}),(0,s.jsx)(l.xvT,{color:"gray.600",fontWeight:"500",fontSize:"sm",mr:2,children:t||""}),(0,s.jsx)(l.j8w,{children:i?"Verified":"Unverified"})]},n)}),r&&Object.keys(r).length>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.X6q,{color:"gray.900",fontSize:"lg",fontWeight:"semibold",mt:4,mb:4,children:"Custom request fields"}),(0,s.jsx)(l.izJ,{mb:4}),Object.entries(r).filter(e=>{let[,n]=e;return n.value}).map(e=>{let[n,t]=e;return(0,s.jsxs)(l.kCb,{alignItems:"flex-start",children:[(0,s.jsxs)(l.xvT,{mb:4,mr:2,fontSize:"sm",color:"gray.900",fontWeight:"500",children:[t.label,":"]}),(0,s.jsx)(l.xvT,{color:"gray.600",fontWeight:"500",fontSize:"sm",mr:2,children:Array.isArray(t.value)?t.value.join(", "):t.value}),(0,s.jsx)(l.j8w,{children:"Unverified"})]},n)})]})]})},et=e=>{var n;let{data:t}=e,i=(0,h.useMemo)(()=>({id:t.id,verbose:!0}),[t.id]),{data:r}=(0,u.QA)(i,{pollingInterval:t.status===x.q2.APPROVED||t.status===x.q2.IN_PROCESSING?2e3:0,skip:!t.id}),o=null!==(n=null==r?void 0:r.items[0])&&void 0!==n?n:t;return(0,s.jsxs)(l.gCW,{align:"stretch",display:"flex-start",spacing:6,children:[(0,s.jsx)(l.xuv,{"data-testid":"privacy-request-details",children:(0,s.jsx)(ee,{subjectRequest:o})}),(0,s.jsx)(l.xuv,{children:(0,s.jsx)(en,{subjectRequest:o})}),o.status===x.q2.REQUIRES_INPUT&&(0,s.jsx)(l.xuv,{children:(0,s.jsx)(N,{subjectRequest:o})}),(0,s.jsx)(l.xuv,{children:(0,s.jsx)(k,{subjectRequest:o})})]})},ei=()=>{let e;let{id:n=""}=(0,o.useRouter)().query,{data:t,isLoading:i,isUninitialized:r}=(0,u.QA)({id:Array.isArray(n)?n[0]:n,verbose:!0},{skip:""===n});return e=r||i?(0,s.jsx)(l.M5Y,{children:(0,s.jsx)(l.$jN,{})}):t&&(null==t?void 0:t.items.length)!==0?(0,s.jsx)(et,{data:null==t?void 0:t.items[0]}):(0,s.jsx)(l.xvT,{children:"404 no privacy request found"}),(0,s.jsxs)(a.Z,{title:"Privacy Request - ".concat(n),children:[(0,s.jsx)(d.Z,{heading:"Privacy Requests",breadcrumbItems:[{title:"All requests",href:c.Jw},{title:"Request details"}]}),e]})}},41164:function(e,n,t){"use strict";t.d(n,{Bw:function(){return l},D4:function(){return r},Dy:function(){return a},XD:function(){return c},cz:function(){return d},hE:function(){return o},oK:function(){return s}});var i=t(76649);let r=e=>"error"in e,s=e=>(0,i.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,l=e=>(0,i.Ln)({status:"number",data:{}},e),o=e=>(0,i.Ln)({detail:"string"},e),a=e=>(0,i.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=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,n,t){"use strict";t.d(n,{Ln:function(){return i}});let i=(e,n)=>s(e,n),r=Symbol("SOME"),s=(e,n)=>"string"==typeof e?e===typeof n:Array.isArray(e)?r in e?e.some(e=>s(e,n)):!!Array.isArray(n)&&(0===e.length||n.every(n=>e.some(e=>s(e,n)))):"object"==typeof n&&null!==n&&Object.entries(e).every(([e,t])=>s(t,n[e]));class l{static narrow(e){return new l(n=>i(e,n))}constructor(e){this.NF=void 0,this.NF=e}satisfied(e){return this.NF(e)}build(e){return e}and(e){let n=this.NF,t=e instanceof l?e.NF:e instanceof Function?e:n=>i(e,n);return new l(e=>n(e)&&t(e))}}new l(e=>!0)}},function(e){e.O(0,[6546,2888,9774,179],function(){return e(e.s=6554)}),_N_E=e.O()}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9650],{6554:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/privacy-requests/[id]",function(){return t(6742)}])},43124:function(e,n,t){"use strict";t.d(n,{Z:function(){return h}});var i=t(24246),r=t(52615),s=t(88038),l=t.n(s),o=t(86677);t(27378);var a=t(11596),c=t(72247),d=t(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."," "]})]})})},h=e=>{let{children:n,title:t,padded:s=!0,mainProps:d}=e,h=(0,a.hz)(),x=(0,o.useRouter)(),g="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,j=!(h.flags.privacyRequestsConfiguration&&g),{data:f}=(0,c.JE)(void 0,{skip:j}),{data:m}=(0,c.PW)(void 0,{skip:j}),p=h.flags.privacyRequestsConfiguration&&(!f||!m)&&g;return(0,i.jsxs)(r.kCb,{"data-testid":t,direction:"column",h:"100vh",children:[(0,i.jsxs)(l(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",t]}),(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:[p?(0,i.jsx)(u,{}):null,n]})]})}},60136:function(e,n,t){"use strict";t.d(n,{D4:function(){return s.D4},MM:function(){return h},Ot:function(){return c},c6:function(){return r},cj:function(){return g},e$:function(){return o},fn:function(){return a},iC:function(){return x},nU:function(){return u},tB:function(){return d}});var i,r,s=t(41164);let l="An unexpected error occurred. Please try again.",o=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;if((0,s.Bw)(e)){if((0,s.hE)(e.data))return e.data.detail;if((0,s.cz)(e.data)){var t;let n=null===(t=e.data.detail)||void 0===t?void 0:t[0];return"".concat(null==n?void 0:n.msg,": ").concat(null==n?void 0:n.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 n};function a(e){return"object"==typeof e&&null!=e&&"status"in e}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function d(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let u=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:l};if((0,s.oK)(e))return{status:e.originalStatus,message:e.data};if((0,s.Bw)(e)){let{status:t}=e;return{status:t,message:o(e,n.message)}}return n},h=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(i=r||(r={})).GVL="gvl",i.AC="gacp",i.COMPASS="compass";let x={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},g=e=>{let n=e.split(".")[0];return"gacp"===n?"gacp":"gvl"===n?"gvl":"compass"}},41628:function(e,n,t){"use strict";var i=t(24246),r=t(52615),s=t(27378),l=t(44296),o=t(60136),a=t(53359),c=t(72247);let d=(0,r.Gpc)((e,n)=>{let{handleBlur:t,subjectRequest:d}=e,u=(0,l.T)(),[h,x]=(0,s.useState)(!1),{errorAlert:g,successAlert:j}=(0,a.V)(),{errorRequests:f}=(0,l.C)(c.fe),[m]=(0,c.JD)(),[p]=(0,c.Fq)(),v=async()=>{x(!0);let e=await m(f);"error"in e?(u((0,c.uT)({checkAll:!1,errorRequests:[]})),g((0,o.e$)(e.error),"DSR batch automation has failed due to the following:",{duration:null})):(e.data.failed.length>0&&g((0,i.jsxs)(r.xuv,{children:["DSR automation has failed for"," ",(0,i.jsx)(r.xvT,{as:"span",fontWeight:"semibold",children:e.data.failed.length})," ","privacy request(s). Please review the event log for further details."]}),void 0,{containerStyle:{maxWidth:"max-content"},duration:null}),e.data.succeeded.length>0&&j("Privacy request(s) are now being reprocessed.")),x(!1)},y=async()=>{if(!d)return;x(!0);let e=await p(d);"error"in e?g((0,o.e$)(e.error),"DSR automation has failed for this privacy request due to the following:",{duration:null}):j("Privacy request is now being reprocessed."),x(!1),t&&t(n)};return(0,i.jsx)(r.wpx,{disabled:h,loading:h,onClick:d?y:v,ref:n,size:"small",icon:(0,i.jsx)(r.AyE,{}),children:"Reprocess"})});n.Z=d},6742:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return ei}});var i,r,s=t(24246),l=t(52615),o=t(86677),a=t(43124),c=t(87162),d=t(37541),u=t(27365),h=t(27378),x=t(37760),g=t(71288),j=e=>{let{errorMessage:n}=e;return(0,s.jsxs)(l.xuv,{height:"100%",id:"outer",children:[(0,s.jsxs)(l.kCb,{alignItems:"center",paddingBottom:"8px",children:[(0,s.jsx)(l.xvT,{size:"sm",color:"gray.700",fontWeight:"medium",marginRight:"8px",lineHeight:"20px",children:"Status"}),(0,s.jsx)(l.j8w,{color:"error",children:"Error"}),(0,s.jsx)(l.xuv,{padding:"0px",marginBottom:"3px",children:(0,s.jsx)(g.Z,{copyText:n})})]}),(0,s.jsx)(l.izJ,{}),(0,s.jsx)(l.xuv,{id:"errorWrapper",overflow:"auto",height:"100%",children:(0,s.jsx)(l.xvT,{children:n})})]})},f=t(36768),m=t(18121),p=t.n(m);(i=r||(r={})).IN_PROCESSING="in_processing",i.PENDING="pending",i.COMPLETE="complete",i.ERROR="error",i.PAUSED="paused",i.RETRYING="retrying",i.SKIPPED="skipped";let v=e=>{switch(e){case x.Us.ACCESS:return"Data Retrieval";case x.Us.ERASURE:return"Data Deletion";case x.Us.CONSENT:return"Consent";case x.Us.UPDATE:return"Data Update";default:return e}};var y=e=>{let{eventLogs:n,openErrorPanel:t}=e,i=null==n?void 0:n.map(e=>(0,s.jsxs)(l.Tr,{_hover:{backgroundColor:e.status===r.ERROR?p().FIDESUI_NEUTRAL_50:"unset"},onClick:()=>{e.status===r.ERROR&&t(e.message)},style:{cursor:e.status===r.ERROR?"pointer":"unset"},children:[(0,s.jsx)(l.Td,{children:(0,s.jsx)(l.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:(0,f.p6)(e.updated_at)})}),(0,s.jsx)(l.Td,{children:(0,s.jsx)(l.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:v(e.action_type)})}),(0,s.jsx)(l.Td,{children:(0,s.jsx)(l.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:e.status})}),(0,s.jsx)(l.Td,{children:(0,s.jsx)(l.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:e.collection_name})})]},e.updated_at));return(0,s.jsx)(l.xuv,{width:"100%",paddingTop:"0px",height:"100%",children:(0,s.jsx)(l.xJi,{id:"tableContainer",height:"100%",style:{overflowY:"auto"},children:(0,s.jsxs)(l.iA_,{size:"sm",id:"table",position:"relative",children:[(0,s.jsx)(l.hrZ,{id:"tableHeader",position:"sticky",top:"0px",backgroundColor:"white",children:(0,s.jsxs)(l.Tr,{children:[(0,s.jsx)(l.Th,{children:(0,s.jsx)(l.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Time"})}),(0,s.jsx)(l.Th,{children:(0,s.jsx)(l.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Action Type"})}),(0,s.jsx)(l.Th,{children:(0,s.jsx)(l.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Status"})}),(0,s.jsx)(l.Th,{children:(0,s.jsx)(l.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Collection"})})]})}),(0,s.jsx)(l.p3B,{id:"tableBody",children:i})]})})})},b=e=>{let{isOpen:n,onClose:t,currentLogs:i,isViewingError:r,errorMessage:o,onCloseErrorPanel:a,onOpenErrorPanel:c}=e;return(0,s.jsxs)(l.dys,{isOpen:n,placement:"right",onClose:t,size:"full",autoFocus:!1,children:[(0,s.jsx)(l.P1B,{}),(0,s.jsxs)(l.scA,{style:{width:"50%"},children:[(0,s.jsx)(l.OXI,{style:{paddingBottom:"0px"},children:(0,s.jsxs)(l.kCb,{justifyContent:"space-between",alignItems:"center",height:"40px",children:[(0,s.jsxs)(l.kCb,{alignItems:"center",children:[r&&(0,s.jsx)(l.wpx,{icon:(0,s.jsx)(l.Rpv,{}),"aria-label":"Close error logs",size:"small",onClick:a}),(0,s.jsx)(l.xvT,{color:"gray.900",fontSize:"md",lineHeight:"6",fontWeight:"medium",ml:1,children:r?"Event detail":"Event log"})]}),(0,s.jsx)(l.wpx,{icon:(0,s.jsx)(l.LGN,{width:"17px"}),"aria-label":"Stop viewing error message",size:"small",onClick:t})]})}),(0,s.jsxs)(l.Ng0,{id:"drawerBody",overflow:"hidden",children:[i&&!r?(0,s.jsx)(y,{eventLogs:i,openErrorPanel:c}):null,r?(0,s.jsx)(j,{errorMessage:o}):null]})]})]})};let C=e=>{if(0===e.length)return!1;let n=Array.from(e).sort((e,n)=>new Date(n.updated_at).getTime()-new Date(e.updated_at).getTime());if(!n[0].collection_name)return n[0].status===r.ERROR;let t={};return n.forEach(e=>{e.collection_name&&!t[e.collection_name]&&(t[e.collection_name]=e)}),Object.values(t).some(e=>e.status===r.ERROR)};var S=e=>{let{entryKey:n,logs:t,isLast:i,onViewLog:r}=e;return(0,s.jsxs)(l.xuv,{children:[(0,s.jsxs)(l.kCb,{alignItems:"center",height:23,position:"relative",children:[(0,s.jsx)(l.xuv,{zIndex:1,children:C(t)?(0,s.jsx)(l.f9v,{}):(0,s.jsx)(l.StI,{})}),!i&&(0,s.jsx)(l.xuv,{width:"2px",height:"63px",backgroundColor:"gray.700",position:"absolute",top:"16px",left:"6px",zIndex:0}),(0,s.jsx)(l.xvT,{color:"gray.600",fontWeight:"500",fontSize:"sm",ml:2,children:n})]}),(0,s.jsx)(l.xvT,{cursor:"pointer",color:"complimentary.500",fontWeight:"500",fontSize:"sm",ml:6,mb:7,onClick:()=>r(),children:"View log"})]})},w=e=>{let{subjectRequest:n}=e,{isOpen:t,onOpen:i,onClose:r}=(0,l.qY0)(),[o,a]=(0,h.useState)([]),[c,d]=(0,h.useState)(""),[u,x]=(0,h.useState)(!1),[g,j]=(0,h.useState)(""),{results:f}=n,m=f?Object.keys(f):[];(0,h.useEffect)(()=>{c&&f&&f[c]&&a(f[c])},[f,c]);let p=()=>{x(!1)},v=(e,n)=>{d(e),a(n),i()};return(0,s.jsxs)(l.xuv,{width:"100%",children:[(0,s.jsx)(l.xvT,{color:"gray.900",fontSize:"md",fontWeight:"500",mb:1,children:"Activity timeline"}),f&&m.map((e,n)=>(0,s.jsx)(S,{entryKey:e,logs:f[e],isLast:n===m.length-1,onViewLog:()=>v(e,f[e])},e)),(0,s.jsx)(b,{isOpen:t,onClose:()=>{u&&p(),d(""),r()},currentLogs:o,isViewingError:u,errorMessage:g,onOpenErrorPanel:e=>{j(e),x(!0)},onCloseErrorPanel:p})]})},k=e=>{let{subjectRequest:n}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.X6q,{color:"gray.900",fontSize:"lg",fontWeight:"semibold",mb:4,children:"Events and logs"}),(0,s.jsx)(l.izJ,{}),(0,s.jsx)(l.kCb,{mt:3,children:(0,s.jsx)(w,{subjectRequest:n})})]})},_=t(53359),R=t(7564),T=t(72247),E=t(44296);let z=e=>Array.from(new Set(e.filter(e=>Object.values(x.Us).includes(e.action_type)).map(e=>e.action_type)));var q=e=>{let{rules:n}=e,t=z(n).map(e=>(0,f.kC)(e)).map(e=>(0,s.jsx)(l.j8w,{children:e},e));return(0,s.jsx)(l.xuv,{children:t})},I=t(34090),A=t(59389),O=e=>{let{connectorName:n,data:t,isSubmitting:i=!1,onSaveClick:r}=e,{isOpen:o,onOpen:a,onClose:c}=(0,l.qY0)(),d=(0,h.useRef)(null),u=async(e,n)=>{r({connection_key:t.connection_key,privacy_request_id:t.privacy_request_id,body:{...e}}),c()};return(0,s.jsxs)(s.Fragment,{children:[(null==t?void 0:t.checked)&&(0,s.jsx)(l.wpx,{onClick:a,size:"small",children:"Review"}),!(null==t?void 0:t.checked)&&(0,s.jsx)(l.wpx,{onClick:a,size:"small",type:"primary",children:"Begin manual input"}),(0,s.jsx)(I.J9,{enableReinitialize:!0,initialValues:{...t.fields},onSubmit:u,validateOnBlur:!1,validateOnChange:!1,validationSchema:A.Ry().shape({}),children:e=>(0,s.jsxs)(l.dys,{isOpen:o,placement:"right",initialFocusRef:d,onClose:c,size:"lg",children:[(0,s.jsx)(l.P1B,{}),(0,s.jsxs)(l.scA,{children:[(0,s.jsx)(l.cCv,{}),(0,s.jsxs)(l.OXI,{color:"gray.900",children:[(0,s.jsx)(l.xvT,{fontSize:"xl",mb:8,children:n}),(0,s.jsx)(l.izJ,{}),(0,s.jsx)(l.xvT,{fontSize:"md",mt:"4",children:"Manual access"}),(0,s.jsx)(l.xuv,{mt:"8px",children:(0,s.jsx)(l.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"normal",children:"Please complete the following PII fields that have been collected for the selected subject."})})]}),(0,s.jsx)(l.Ng0,{children:(0,s.jsx)(I.l0,{id:"manual-detail-form",noValidate:!0,children:(0,s.jsx)(l.gCW,{align:"stretch",gap:"16px",children:Object.entries(t.fields).map((e,n)=>{let[t]=e;return(0,s.jsx)(l.Ugi,{children:(0,s.jsx)(I.gN,{id:t,name:t,children:e=>{let{field:i}=e;return(0,s.jsxs)(l.NIc,{alignItems:"baseline",display:"inline-flex",children:[(0,s.jsx)(l.lXp,{color:"gray.900",fontSize:"14px",fontWeight:"semibold",htmlFor:t,w:"50%",children:t}),(0,s.jsx)(l.IIB,{...i,autoComplete:"off",color:"gray.700",placeholder:"Please enter ".concat(t),ref:0===n?d:void 0,size:"sm"})]})}})},t)})})})}),(0,s.jsx)(l.zeN,{justifyContent:"flex-start",children:(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(l.wpx,{onClick:c,children:"Cancel"}),(0,s.jsx)(l.wpx,{form:"manual-detail-form",loading:i,htmlType:"submit",children:"Save"})]})})]})]})})]})},P=e=>{let{connectorName:n,data:t,isSubmitting:i=!1,onSaveClick:r}=e,{isOpen:o,onOpen:a,onClose:c}=(0,l.qY0)(),d=(0,h.useRef)(null),u=async(e,n)=>{r({connection_key:t.connection_key,privacy_request_id:t.privacy_request_id,body:{...e}}),c()};return(0,s.jsxs)(s.Fragment,{children:[(null==t?void 0:t.checked)&&(0,s.jsx)(l.wpx,{onClick:a,size:"small",children:"Review"}),!(null==t?void 0:t.checked)&&(0,s.jsx)(l.wpx,{onClick:a,size:"small",type:"primary",children:"Begin manual input"}),(0,s.jsx)(I.J9,{enableReinitialize:!0,initialValues:{...t.fields},onSubmit:u,validateOnBlur:!1,validateOnChange:!1,validationSchema:A.Ry().shape({}),children:e=>(0,s.jsxs)(l.dys,{isOpen:o,placement:"right",initialFocusRef:d,onClose:c,size:"lg",children:[(0,s.jsx)(l.P1B,{}),(0,s.jsxs)(l.scA,{children:[(0,s.jsx)(l.cCv,{}),(0,s.jsxs)(l.OXI,{color:"gray.900",children:[(0,s.jsx)(l.xvT,{fontSize:"xl",mb:8,children:n}),(0,s.jsx)(l.izJ,{}),(0,s.jsx)(l.xvT,{fontSize:"md",mt:"4",children:"Manual erasure"}),(0,s.jsx)(l.xuv,{mt:"8px",children:(0,s.jsx)(l.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"normal",children:"Please delete the following PII fields associated with the selected subject if they are available. Once deleted, check the box to confirm the deletion."})})]}),(0,s.jsx)(l.Ng0,{children:(0,s.jsx)(I.l0,{id:"manual-detail-form",noValidate:!0,children:(0,s.jsx)(l.gCW,{align:"stretch",gap:"16px",children:Object.entries(t.fields).map(e=>{let[n]=e;return(0,s.jsx)(l.Ugi,{children:(0,s.jsx)(I.gN,{id:n,name:n,children:e=>{let{field:t}=e;return(0,s.jsxs)(l.NIc,{alignItems:"baseline",display:"inline-flex",children:[(0,s.jsx)(l.lXp,{color:"gray.900",fontSize:"14px",fontWeight:"semibold",htmlFor:n,w:"50%",children:n}),(0,s.jsx)(l.XZJ,{...t,isChecked:!!t.value,onChange:t.onChange,name:n,id:n})]})}})},n)})})})}),(0,s.jsx)(l.zeN,{justifyContent:"flex-start",children:(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(l.wpx,{onClick:c,children:"Cancel"}),(0,s.jsx)(l.wpx,{form:"manual-detail-form",loading:i,htmlType:"submit",children:"Save"})]})})]})]})})]})};let W=(e,n,t)=>e.includes(x.Us.ACCESS)?{ProcessingDetailComponent:O,uploadMutation:n,getUploadedWebhookDataEndpoint:T.$I.endpoints.getUploadedManualAccessWebhookData}:e.includes(x.Us.ERASURE)?{ProcessingDetailComponent:P,uploadMutation:t,getUploadedWebhookDataEndpoint:T.$I.endpoints.getUploadedManualErasureWebhookData}:null;var N=e=>{let{subjectRequest:n}=e,t=(0,E.T)(),{errorAlert:i,successAlert:r}=(0,_.V)(),{handleError:o}=(0,_.H)(),[a,c]=(0,h.useState)([]),[d,u]=(0,h.useState)(!1),[g,j]=(0,h.useState)(!1),{data:f,isFetching:m,isLoading:p,isSuccess:v}=(0,R.W6)(),[y]=(0,T.w3)(),b=z(n.policy.rules),[C]=(0,T.nL)(),[S]=(0,T.UR)(),{ProcessingDetailComponent:w,uploadMutation:k,getUploadedWebhookDataEndpoint:q}=W(b,C,S),I=async()=>{try{u(!0),await y(n.id).unwrap(),r("Manual request has been received. Request now processing.")}catch(e){o(e)}finally{u(!1)}},A=async e=>{try{j(!0),await k(e).unwrap();let n={connection_key:e.connection_key,fields:{}};Object.entries(e.body).forEach(e=>{let[t,i]=e;n.fields[t]=i||""});let t=a.map(e=>e.connection_key===n.connection_key?{...e,checked:!0,fields:{...n.fields}}:e);c(t),r("Manual input successfully saved!")}catch(e){o(e)}finally{j(!1)}};return((0,h.useEffect)(()=>(v&&f.length>0&&0===a.length&&(()=>{if(a.length>0)return;let e=[],r=null==f?void 0:f.map(e=>e.connection_config.key);null==r||r.every(i=>e.push(t(q.initiate({connection_key:i,privacy_request_id:n.id})))),Promise.allSettled(e).then(e=>{let n=[];e.forEach((e,t)=>{if("fulfilled"===e.status&&e.value.isSuccess&&e.value.data){let t={checked:e.value.data.checked,fields:{},connection_key:e.value.originalArgs.connection_key,privacy_request_id:e.value.originalArgs.privacy_request_id};Object.entries(e.value.data.fields).forEach(e=>{let[n,i]=e;t.fields[n]=i||""}),n.push(t)}else i("An error occurred while loading manual input data for ".concat(f[t].connection_config.name))}),c(n)})})(),()=>{}),[f,a.length,t,i,v,n.id,q]),b.includes(x.Us.ACCESS)||b.includes(x.Us.ERASURE))?(0,s.jsxs)(l.gCW,{align:"stretch",spacing:8,children:[(0,s.jsxs)(l.xuv,{children:[(0,s.jsx)(l.X6q,{color:"gray.900",fontSize:"lg",fontWeight:"semibold",mb:4,children:"Manual Processing"}),(0,s.jsx)(l.izJ,{})]}),(0,s.jsx)(l.xuv,{children:(0,s.jsx)(l.xvT,{color:"gray.700",fontSize:"sm",children:"The following table details the integrations that require manual input from you."})}),(0,s.jsxs)(l.xuv,{children:[(m||p)&&(0,s.jsx)(l.M5Y,{children:(0,s.jsx)(l.$jN,{})}),v&&f?(0,s.jsx)(l.xJi,{children:(0,s.jsxs)(l.iA_,{size:"sm",variant:"unstyled",children:[(0,s.jsx)(l.hrZ,{children:(0,s.jsxs)(l.Tr,{children:[(0,s.jsx)(l.Th,{fontSize:"sm",fontWeight:"semibold",pl:"0",textTransform:"none",children:"Integration Identifier"}),(0,s.jsx)(l.Th,{})]})}),(0,s.jsxs)(l.p3B,{children:[f.length>0&&f.map(e=>(0,s.jsxs)(l.Tr,{display:"block",children:[(0,s.jsx)(l.Td,{pl:"0",children:e.connection_config.key}),(0,s.jsx)(l.Td,{children:a.length>0?(0,s.jsx)(w,{connectorName:e.connection_config.name,data:a.find(n=>n.connection_key===e.connection_config.key),isSubmitting:g,onSaveClick:A}):null})]},e.id)),0===f.length&&(0,s.jsx)(l.Tr,{children:(0,s.jsx)(l.Td,{colSpan:3,pl:"0",children:(0,s.jsx)(l.M5Y,{children:(0,s.jsx)(l.xvT,{children:"You don‘t have any Manual Process connections set up yet."})})})})]}),a.length>0&&a.every(e=>e.checked)?(0,s.jsx)(l.$RU,{children:(0,s.jsx)(l.Tr,{children:(0,s.jsx)(l.Th,{pl:"0px",children:(0,s.jsx)(l.wpx,{size:"small",type:"primary",loading:d,onClick:I,children:"Complete DSR"})})})}):null]})}):null]})]}):null},D=t(93261),U=e=>{let{daysLeft:n,includeText:t,status:i}=e;if(!n||i===D.q.COMPLETE||i===D.q.CANCELED||i===D.q.DENIED||i===D.q.IDENTITY_UNVERIFIED)return null;let r="";switch(!0){case n>=10:r="success";break;case n<10&&n>4:r="warning";break;case n<5:r="error"}return(0,s.jsx)(l.j8w,{color:r,children:t?"".concat(n," days left"):n})},L=t(11596);let F={approved:{color:"success",label:"Approved"},complete:{color:"success",label:"Completed"},awaiting_email_send:{color:"marble",label:"Awaiting Email Send"},denied:{color:"error",label:"Denied"},canceled:{color:"marble",label:"Canceled"},error:{color:"warning",label:"Error"},in_processing:{color:"caution",label:"In Progress"},paused:{color:"marble",label:"Paused"},pending:{color:"info",label:"New"},identity_unverified:{color:"marble",label:"Unverified"},requires_input:{color:"alert",label:"Requires Input"}};var M=e=>{let{status:n}=e;return(0,s.jsx)(l.j8w,{color:F[n].color,className:"w-[120px] justify-center","data-testid":"request-status-badge",children:F[n].label})},B=t(60136),J=t(62528),V=t(38615),X=e=>{var n;let{requestId:t}=e,{data:i,isLoading:r,isError:o,error:a}=(0,T.br)({privacy_request_id:t}),c=o?(0,B.e$)(a,"Unable to resolve download URL"):"Requests stored locally cannot be downloaded",d=null!==(n=null==i?void 0:i.access_result_urls[0])&&void 0!==n?n:"",u=!!d&&"your local fides_uploads folder"!==d;return(0,s.jsx)(V.ZP,{scopes:[x.Sh.PRIVACY_REQUEST_ACCESS_RESULTS_READ],children:(0,s.jsx)(l.kCb,{children:(0,s.jsx)(l.ua7,{isDisabled:u,label:c,children:(0,s.jsx)(l.wpx,{onClick:()=>{let e=document.createElement("a");e.href=d,e.target="_blank",e.rel="noopener noreferrer",e.click(),e.remove()},icon:(0,s.jsx)(J.nM,{}),loading:r,disabled:!u,"data-testid":"download-results-btn",children:"Download request results"})})})})},Z=t(21613),G=t(25662);let Y=(0,l.Gpc)((e,n)=>(0,s.jsx)(l.wpx,{ref:n,size:"small",...e})),H=(0,l.Gpc)((e,n)=>{let{buttonProps:t,children:i,onClose:r,subjectRequest:o}=e,{handleApproveRequest:a,isLoading:c}=(0,G.Z)({subjectRequest:o}),d=(0,l.qY0)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Y,{ref:n,onClick:d.onOpen,isLoading:c,isDisabled:c,...t,"data-testid":"privacy-request-approve-btn",children:i}),(0,s.jsx)(Z.Z,{isOpen:d.isOpen,isLoading:c,onClose:()=>{d.onClose(),null==r||r()},onApproveRequest:a,subjectRequest:o})]})});var $=t(94723);let K=(0,l.Gpc)((e,n)=>{let{buttonProps:t,children:i,onClose:r,subjectRequest:o}=e,{handleDenyRequest:a,isLoading:c}=(0,G.Z)({subjectRequest:o}),d=(0,l.qY0)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Y,{ref:n,onClick:d.onOpen,isLoading:c,isDisabled:c,...t,"data-testid":"privacy-request-deny-btn",children:i}),(0,s.jsx)($.Z,{isOpen:d.isOpen,onClose:()=>{d.onClose(),null==r||r()},onDenyRequest:a})]})});var Q=t(41628),ee=e=>{let{subjectRequest:n}=e,{plus:t}=(0,L.hz)(),{id:i,status:r,policy:o}=n,{flags:{downloadAccessRequestResults:a}}=(0,L.hz)(),c=a&&z(o.rules).includes(x.Us.ACCESS)&&r===D.q.COMPLETE;return(0,s.jsxs)(l.kCb,{direction:"column",gap:4,children:[(0,s.jsx)(l.X6q,{color:"gray.900",fontSize:"lg",fontWeight:"semibold",children:"Request details"}),(0,s.jsx)(l.izJ,{}),(0,s.jsxs)(l.kCb,{alignItems:"center",children:[(0,s.jsx)(l.xvT,{mr:2,fontSize:"sm",color:"gray.900",fontWeight:"500",children:"Request ID:"}),(0,s.jsx)(l.xvT,{color:"gray.600",fontWeight:"500",fontSize:"sm",mr:1,children:i}),(0,s.jsx)(g.Z,{copyText:i,size:"small"})]}),t&&n.source&&(0,s.jsxs)(l.kCb,{alignItems:"center",children:[(0,s.jsx)(l.xvT,{mr:2,fontSize:"sm",color:"gray.900",fontWeight:"500",children:"Source:"}),(0,s.jsx)(l.xuv,{children:(0,s.jsx)(l.j8w,{children:n.source})})]}),(0,s.jsxs)(l.kCb,{alignItems:"center",children:[(0,s.jsx)(l.xvT,{mr:2,fontSize:"sm",color:"gray.900",fontWeight:"500",children:"Request type:"}),(0,s.jsx)(l.xuv,{mr:1,children:(0,s.jsx)(q,{rules:o.rules})})]}),(0,s.jsxs)(l.kCb,{alignItems:"center",children:[(0,s.jsx)(l.xvT,{mr:2,fontSize:"sm",color:"gray.900",fontWeight:"500",children:"Policy key:"}),(0,s.jsx)(l.xuv,{children:(0,s.jsx)(l.j8w,{children:n.policy.key})})]}),(0,s.jsxs)(l.kCb,{alignItems:"center",children:[(0,s.jsx)(l.xvT,{mb:0,mr:2,fontSize:"sm",color:"gray.900",fontWeight:"500",children:"Status:"}),(0,s.jsxs)(l.Ugi,{spacing:"8px",children:[(0,s.jsx)(l.kCb,{children:(0,s.jsx)(M,{status:r})}),(0,s.jsxs)("div",{className:"flex gap-3",children:["error"===r&&(0,s.jsx)(Q.Z,{subjectRequest:n}),"pending"===r&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(H,{subjectRequest:n,children:"Approve"}),(0,s.jsx)(K,{subjectRequest:n,children:"Deny"})]})]}),(0,s.jsx)(U,{daysLeft:n.days_left,includeText:!0,status:n.status})]})]}),c&&(0,s.jsx)(X,{requestId:i})]})},en=e=>{let{subjectRequest:n}=e,{identity:t,identity_verified_at:i,custom_privacy_request_fields:r}=n;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.kCb,{direction:"row",justifyContent:"space-between",children:(0,s.jsx)(l.X6q,{color:"gray.900",fontSize:"lg",fontWeight:"semibold",mb:4,mt:4,children:"Subject identities"})}),(0,s.jsx)(l.izJ,{mb:4}),Object.entries(t).filter(e=>{let[,{value:n}]=e;return null!==n}).map(e=>{let[n,{value:t,label:r}]=e;return(0,s.jsxs)(l.kCb,{alignItems:"center",mb:4,children:[(0,s.jsxs)(l.xvT,{mr:2,fontSize:"sm",color:"gray.900",fontWeight:"500",children:[r,":"]}),(0,s.jsx)(l.xvT,{color:"gray.600",fontWeight:"500",fontSize:"sm",mr:2,children:t||""}),(0,s.jsx)(l.j8w,{children:i?"Verified":"Unverified"})]},n)}),r&&Object.keys(r).length>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.X6q,{color:"gray.900",fontSize:"lg",fontWeight:"semibold",mt:4,mb:4,children:"Custom request fields"}),(0,s.jsx)(l.izJ,{mb:4}),Object.entries(r).filter(e=>{let[,n]=e;return n.value}).map(e=>{let[n,t]=e;return(0,s.jsxs)(l.kCb,{alignItems:"flex-start",children:[(0,s.jsxs)(l.xvT,{mb:4,mr:2,fontSize:"sm",color:"gray.900",fontWeight:"500",children:[t.label,":"]}),(0,s.jsx)(l.xvT,{color:"gray.600",fontWeight:"500",fontSize:"sm",mr:2,children:Array.isArray(t.value)?t.value.join(", "):t.value}),(0,s.jsx)(l.j8w,{children:"Unverified"})]},n)})]})]})},et=e=>{var n;let{data:t}=e,i=(0,h.useMemo)(()=>({id:t.id,verbose:!0}),[t.id]),{data:r}=(0,u.QA)(i,{pollingInterval:t.status===x.q2.APPROVED||t.status===x.q2.IN_PROCESSING?2e3:0,skip:!t.id}),o=null!==(n=null==r?void 0:r.items[0])&&void 0!==n?n:t;return(0,s.jsxs)(l.gCW,{align:"stretch",display:"flex-start",spacing:6,children:[(0,s.jsx)(l.xuv,{"data-testid":"privacy-request-details",children:(0,s.jsx)(ee,{subjectRequest:o})}),(0,s.jsx)(l.xuv,{children:(0,s.jsx)(en,{subjectRequest:o})}),o.status===x.q2.REQUIRES_INPUT&&(0,s.jsx)(l.xuv,{children:(0,s.jsx)(N,{subjectRequest:o})}),(0,s.jsx)(l.xuv,{children:(0,s.jsx)(k,{subjectRequest:o})})]})},ei=()=>{let e;let{id:n=""}=(0,o.useRouter)().query,{data:t,isLoading:i,isUninitialized:r}=(0,u.QA)({id:Array.isArray(n)?n[0]:n,verbose:!0},{skip:""===n});return e=r||i?(0,s.jsx)(l.M5Y,{children:(0,s.jsx)(l.$jN,{})}):t&&(null==t?void 0:t.items.length)!==0?(0,s.jsx)(et,{data:null==t?void 0:t.items[0]}):(0,s.jsx)(l.xvT,{children:"404 no privacy request found"}),(0,s.jsxs)(a.Z,{title:"Privacy Request - ".concat(n),children:[(0,s.jsx)(d.Z,{heading:"Privacy Requests",breadcrumbItems:[{title:"All requests",href:c.Jw},{title:"Request details"}]}),e]})}},41164:function(e,n,t){"use strict";t.d(n,{Bw:function(){return l},D4:function(){return r},Dy:function(){return a},XD:function(){return c},cz:function(){return d},hE:function(){return o},oK:function(){return s}});var i=t(76649);let r=e=>"error"in e,s=e=>(0,i.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,l=e=>(0,i.Ln)({status:"number",data:{}},e),o=e=>(0,i.Ln)({detail:"string"},e),a=e=>(0,i.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=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,n,t){"use strict";t.d(n,{Ln:function(){return i}});let i=(e,n)=>s(e,n),r=Symbol("SOME"),s=(e,n)=>"string"==typeof e?e===typeof n:Array.isArray(e)?r in e?e.some(e=>s(e,n)):!!Array.isArray(n)&&(0===e.length||n.every(n=>e.some(e=>s(e,n)))):"object"==typeof n&&null!==n&&Object.entries(e).every(([e,t])=>s(t,n[e]));class l{static narrow(e){return new l(n=>i(e,n))}constructor(e){this.NF=void 0,this.NF=e}satisfied(e){return this.NF(e)}build(e){return e}and(e){let n=this.NF,t=e instanceof l?e.NF:e instanceof Function?e:n=>i(e,n);return new l(e=>n(e)&&t(e))}}new l(e=>!0)}},function(e){e.O(0,[6546,2888,9774,179],function(){return e(e.s=6554)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8593],{13687:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/privacy-requests/configure/messaging",function(){return i(38917)}])},43124:function(e,t,i){"use strict";i.d(t,{Z:function(){return m}});var n=i(24246),s=i(96013),r=i(88038),l=i.n(r),a=i(86677);i(27378);var o=i(11596),c=i(72247),u=i(87162),d=()=>{let e=(0,a.useRouter)();return(0,n.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(s.xuv,{children:[(0,n.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(s.wpx,{onClick:()=>{e.push(u.fz)},children:"Configure"})]}),(0,n.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=e=>{let{children:t,title:i,padded:r=!0,mainProps:u}=e,m=(0,o.hz)(),p=(0,a.useRouter)(),x="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,h=!(m.flags.privacyRequestsConfiguration&&x),{data:g}=(0,c.JE)(void 0,{skip:h}),{data:f}=(0,c.PW)(void 0,{skip:h}),y=m.flags.privacyRequestsConfiguration&&(!g||!f)&&x;return(0,n.jsxs)(s.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(l(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(s.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[y?(0,n.jsx)(d,{}):null,t]})]})}},37541:function(e,t,i){"use strict";var n=i(24246),s=i(96013),r=i(53614);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:l=!0,children:a,rightContent:o,style:c,...u}=e;return(0,n.jsxs)("div",{...u,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,n.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(s.X6q,{className:i||a?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,o&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,n.jsx)(r.m,{className:a?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),a]})}},60136:function(e,t,i){"use strict";i.d(t,{D4:function(){return r.D4},MM:function(){return m},Ot:function(){return c},c6:function(){return s},cj:function(){return x},e$:function(){return a},fn:function(){return o},iC:function(){return p},nU:function(){return d},tB:function(){return u}});var n,s,r=i(41164);let l="An unexpected error occurred. Please try again.",a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;if((0,r.Bw)(e)){if((0,r.hE)(e.data))return e.data.detail;if((0,r.cz)(e.data)){var i;let t=null===(i=e.data.detail)||void 0===i?void 0:i[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,r.Dy)(e.data)||404===e.status&&(0,r.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function o(e){return"object"==typeof e&&null!=e&&"status"in e}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function u(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:l};if((0,r.oK)(e))return{status:e.originalStatus,message:e.data};if((0,r.Bw)(e)){let{status:i}=e;return{status:i,message:a(e,t.message)}}return t},m=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(n=s||(s={})).GVL="gvl",n.AC="gacp",n.COMPASS="compass";let p={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},x=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},53359:function(e,t,i){"use strict";i.d(t,{H:function(){return r},V:function(){return n.V}});var n=i(75139),s=i(60136);let r=()=>{let{errorAlert:e}=(0,n.V)();return{handleError:t=>{let i="An unexpected error occurred. Please try again.";(0,s.Ot)(t)?i=t.data.detail:(0,s.tB)(t)&&(i=t.data.detail[0].msg),e(i)}}}},75139:function(e,t,i){"use strict";i.d(t,{V:function(){return r}});var n=i(24246),s=i(96013);let r=()=>{let e=(0,s.pmc)();return{errorAlert:(t,i,r)=>{let l={...r,position:(null==r?void 0:r.position)||"top",render:e=>{let{onClose:r}=e;return(0,n.jsxs)(s.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,n.jsx)(s.zMQ,{}),(0,n.jsxs)(s.xuv,{children:[i&&(0,n.jsx)(s.CdC,{children:i}),(0,n.jsx)(s.XaZ,{children:t})]}),(0,n.jsx)(s.PZ7,{onClick:r,position:"relative",right:0,size:"sm",top:-1})]})}};(null==r?void 0:r.id)&&e.isActive(r.id)?e.update(r.id,l):e(l)},successAlert:(t,i,r)=>{let l={...r,position:(null==r?void 0:r.position)||"top",render:e=>{let{onClose:r}=e;return(0,n.jsxs)(s.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,n.jsx)(s.zMQ,{}),(0,n.jsxs)(s.xuv,{children:[i&&(0,n.jsx)(s.CdC,{children:i}),(0,n.jsx)(s.XaZ,{children:t})]}),(0,n.jsx)(s.PZ7,{onClick:r,position:"relative",right:0,size:"sm",top:-1})]})}};(null==r?void 0:r.id)&&e.isActive(r.id)?e.update(r.id,l):e(l)}}}},53614:function(e,t,i){"use strict";i.d(t,{m:function(){return c}});var n=i(24246),s=i(96013),r=i(79894),l=i.n(r),a=i(27378);let{Text:o}=s.AntTypography,c=e=>{let{items:t,...i}=e,r=(0,a.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let r=i===t.length-1,a={...e},c=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,n.jsx)(o,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:a.title})),c)?a.title=(0,n.jsx)(s.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,n.jsx)(l(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,n.jsx)(s.zrq,{items:r,...i})}},95758:function(e,t,i){"use strict";i.d(t,{DE:function(){return o},I3:function(){return s},kN:function(){return l},qX:function(){return a},rE:function(){return r}});var n=i(37760);let s=[...new Map([[n.q2.APPROVED,"Approved"],[n.q2.CANCELED,"Canceled"],[n.q2.COMPLETE,"Completed"],[n.q2.DENIED,"Denied"],[n.q2.ERROR,"Error"],[n.q2.IN_PROCESSING,"In Progress"],[n.q2.PENDING,"New"],[n.q2.PAUSED,"Paused"],[n.q2.IDENTITY_UNVERIFIED,"Unverified"],[n.q2.REQUIRES_INPUT,"Requires input"]])].map(e=>{let[t,i]=e;return{label:i,value:t}}),r=new Map([[n.Us.ACCESS,"Access"],[n.Us.ERASURE,"Erasure"],[n.Us.CONSENT,"Consent"],[n.Us.UPDATE,"Update"]]),l=[...r].map(e=>{let[t,i]=e;return{label:i,value:t}}),a={mailgun:"mailgun",twilio_email:"twilio_email",twilio_text:"twilio_text"},o={local:"local",s3:"s3"}},38917:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return v}});var n=i(24246),s=i(96013),r=i(27378),l=i(60136),a=i(53359),o=i(43124),c=i(87162),u=i(37541),d=i(95758),m=i(72247),p=i(34090),x=i(34803),h=e=>{let{messagingDetails:t}=e,{successAlert:i}=(0,a.V)(),{handleError:r}=(0,a.H)(),[o]=(0,m.SU)(),c=t.service_type===d.qX.twilio_email||t.service_type===d.qX.mailgun,u=t.service_type===d.qX.twilio_text,h=async e=>{if(c){let t=await o({email:e.email});(0,l.D4)(t)?r(t.error):i("Test message successfully sent.")}if(u){let t=await o({phone_number:e.phone});(0,l.D4)(t)?r(t.error):i("Test message successfully sent.")}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.izJ,{mt:10}),(0,n.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,mb:5,children:"Test connection"}),(0,n.jsx)(s.Kqy,{children:(0,n.jsx)(p.J9,{initialValues:{email:"",phone:""},onSubmit:h,children:e=>{let{isSubmitting:t,resetForm:i}=e;return(0,n.jsxs)(p.l0,{children:[c?(0,n.jsx)(x.j0,{name:"email",label:"Email",placeholder:"youremail@domain.com",isRequired:!0}):null,u?(0,n.jsx)(x.j0,{name:"phone",label:"Phone",placeholder:"+10000000000",isRequired:!0}):null,(0,n.jsxs)(s.xuv,{mt:10,children:[(0,n.jsx)(s.wpx,{onClick:()=>i(),className:"mr-2",children:"Cancel"}),(0,n.jsx)(s.wpx,{disabled:t,htmlType:"submit",type:"primary","data-testid":"save-btn",children:"Save"})]})]})}})})]})},g=()=>{var e;let{successAlert:t}=(0,a.V)(),[i,o]=(0,r.useState)(""),{handleError:c}=(0,a.H)(),{data:u}=(0,m.S3)({type:d.qX.mailgun}),[g]=(0,m.h9)(),[f]=(0,m.iI)(),y=async e=>{let i=await g({service_type:d.qX.mailgun,details:{is_eu_domain:"false",domain:e.domain}});(0,l.D4)(i)?c(i.error):(t("Mailgun email successfully updated. You can now enter your security key."),o("apiKey"))},j=async e=>{let i=await f({details:{mailgun_api_key:e.api_key},service_type:d.qX.mailgun});(0,l.D4)(i)?c(i.error):(t("Mailgun security key successfully updated."),o("testConnection"))},v={domain:null!==(e=null==u?void 0:u.details.domain)&&void 0!==e?e:""};return(0,n.jsxs)(s.xuv,{children:[(0,n.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"Mailgun messaging configuration"}),(0,n.jsx)(s.Kqy,{children:(0,n.jsx)(p.J9,{initialValues:v,onSubmit:y,enableReinitialize:!0,children:e=>{let{isSubmitting:t,handleReset:i}=e;return(0,n.jsxs)(p.l0,{children:[(0,n.jsx)(s.Kqy,{mt:5,spacing:5,children:(0,n.jsx)(x.j0,{name:"domain",label:"Domain",placeholder:"Enter domain","data-testid":"option-twilio-domain",isRequired:!0})}),(0,n.jsxs)(s.xuv,{mt:10,children:[(0,n.jsx)(s.wpx,{onClick:i,className:"mr-2",children:"Cancel"}),(0,n.jsx)(s.wpx,{htmlType:"submit",disabled:t,type:"primary","data-testid":"save-btn",children:"Save"})]})]})}})}),"apiKey"===i||"testConnection"===i?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.izJ,{mt:10}),(0,n.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"Security key"}),(0,n.jsx)(s.Kqy,{children:(0,n.jsx)(p.J9,{initialValues:{api_key:""},onSubmit:j,children:e=>{let{isSubmitting:t,handleReset:i}=e;return(0,n.jsxs)(p.l0,{children:[(0,n.jsx)(x.j0,{name:"api_key",label:"API key",type:"password",isRequired:!0}),(0,n.jsxs)(s.xuv,{mt:10,children:[(0,n.jsx)(s.wpx,{onClick:i,className:"mr-2",children:"Cancel"}),(0,n.jsx)(s.wpx,{disabled:t,htmlType:"submit",type:"primary","data-testid":"save-btn",children:"Save"})]})]})}})})]}):null,"testConnection"===i?(0,n.jsx)(h,{messagingDetails:u||{service_type:d.qX.mailgun}}):null]})},f=()=>{var e;let[t,i]=(0,r.useState)(""),{successAlert:o}=(0,a.V)(),{handleError:c}=(0,a.H)(),{data:u}=(0,m.S3)({type:d.qX.twilio_email}),[g]=(0,m.h9)(),[f]=(0,m.iI)(),y=async e=>{let t=await g({service_type:d.qX.twilio_email,details:{twilio_email_from:e.email}});(0,l.D4)(t)?c(t.error):(o("Twilio email successfully updated. You can now enter your security key."),i("configureTwilioEmailSecrets"))},j=async e=>{let t=await f({details:{twilio_api_key:e.api_key},service_type:d.qX.twilio_email});(0,l.D4)(t)?c(t.error):(o("Twilio email secrets successfully updated."),i("testConnection"))},v={email:null!==(e=null==u?void 0:u.details.twilio_email_from)&&void 0!==e?e:""};return(0,n.jsxs)(s.xuv,{children:[(0,n.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"Twilio Email messaging configuration"}),(0,n.jsx)(s.Kqy,{children:(0,n.jsx)(p.J9,{initialValues:v,onSubmit:y,enableReinitialize:!0,children:e=>{let{isSubmitting:t,handleReset:i}=e;return(0,n.jsxs)(p.l0,{children:[(0,n.jsx)(s.Kqy,{mt:5,spacing:5,children:(0,n.jsx)(x.j0,{name:"email",label:"Email",placeholder:"Enter email",isRequired:!0})}),(0,n.jsxs)(s.xuv,{mt:10,children:[(0,n.jsx)(s.wpx,{onClick:()=>i(),className:"mr-2",children:"Cancel"}),(0,n.jsx)(s.wpx,{disabled:t,htmlType:"submit",type:"primary","data-testid":"save-btn",children:"Save"})]})]})}})}),"configureTwilioEmailSecrets"===t||"testConnection"===t?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.izJ,{mt:10}),(0,n.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"Security key"}),(0,n.jsx)(s.Kqy,{children:(0,n.jsx)(p.J9,{initialValues:{api_key:""},onSubmit:j,children:e=>{let{isSubmitting:t,handleReset:i}=e;return(0,n.jsxs)(p.l0,{children:[(0,n.jsx)(s.Kqy,{mt:5,spacing:5,children:(0,n.jsx)(x.j0,{name:"api_key",label:"API key",type:"password",isRequired:!0})}),(0,n.jsxs)(s.xuv,{mt:10,children:[(0,n.jsx)(s.wpx,{onClick:()=>i(),className:"mr-2",children:"Cancel"}),(0,n.jsx)(s.wpx,{disabled:t,htmlType:"submit",type:"primary","data-testid":"save-btn",children:"Save"})]})]})}})})]}):null,"testConnection"===t?(0,n.jsx)(h,{messagingDetails:u||{service_type:d.qX.twilio_email}}):null]})},y=()=>{let{successAlert:e}=(0,a.V)(),{handleError:t}=(0,a.H)(),[i,o]=(0,r.useState)(""),{data:c}=(0,m.S3)({type:"twilio_text"}),[u]=(0,m.iI)(),g=async i=>{let n=await u({details:{twilio_account_sid:i.account_sid,twilio_auth_token:i.auth_token,twilio_messaging_service_sid:i.messaging_service_sid,twilio_sender_phone_number:i.phone},service_type:d.qX.twilio_text});(0,l.D4)(n)?t(n.error):(e("Twilio text secrets successfully updated."),o("testConnection"))};return(0,n.jsxs)(s.xuv,{children:[(0,n.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"Twilio SMS messaging configuration"}),(0,n.jsx)(s.Kqy,{children:(0,n.jsx)(p.J9,{initialValues:{account_sid:"",auth_token:"",messaging_service_sid:"",phone:""},onSubmit:g,enableReinitialize:!0,children:e=>{let{isSubmitting:t,handleReset:i}=e;return(0,n.jsxs)(p.l0,{children:[(0,n.jsxs)(s.Kqy,{mt:5,spacing:5,children:[(0,n.jsx)(x.j0,{name:"account_sid",label:"Account SID",placeholder:"Enter account SID",isRequired:!0}),(0,n.jsx)(x.j0,{name:"auth_token",label:"Auth token",placeholder:"Enter auth token",type:"password",isRequired:!0}),(0,n.jsx)(x.j0,{name:"messaging_service_sid",label:"Messaging Service SID",placeholder:"Enter messaging service SID"}),(0,n.jsx)(x.j0,{name:"phone",label:"Phone Number",placeholder:"Enter phone number"})]}),(0,n.jsxs)(s.xuv,{mt:10,children:[(0,n.jsx)(s.wpx,{onClick:()=>i(),className:"mr-2",children:"Cancel"}),(0,n.jsx)(s.wpx,{disabled:t,htmlType:"submit",type:"primary","data-testid":"save-btn",children:"Save"})]})]})}})}),"testConnection"===i?(0,n.jsx)(h,{messagingDetails:c||{service_type:d.qX.twilio_text}}):null]})},j=()=>{let{successAlert:e}=(0,a.V)(),{handleError:t}=(0,a.H)(),[i,p]=(0,r.useState)(""),[x]=(0,m.h9)(),[h]=(0,m.L)(),{data:j}=(0,m.JE)();(0,r.useEffect)(()=>{j&&p(null==j?void 0:j.service_type)},[j]);let v=async i=>{let{value:n}=i.target,s=await h({notifications:{notification_service_type:n,send_request_completion_notification:!0,send_request_receipt_notification:!0,send_request_review_notification:!0},execution:{subject_identity_verification_required:!0}});if((0,l.D4)(s))t(s.error);else if(n!==d.qX.twilio_text)p(n);else{let i=await x({service_type:d.qX.twilio_text});(0,l.D4)(i)?t(i.error):(e("Messaging provider saved successfully."),p(n))}};return(0,n.jsxs)(o.Z,{title:"Configure Privacy Requests - Messaging",children:[(0,n.jsx)(u.Z,{heading:"Privacy Requests",breadcrumbItems:[{title:"All requests",href:c.Jw},{title:"Configure requests",href:c.fz},{title:"Messaging"}]}),(0,n.jsx)(s.X6q,{mb:5,fontSize:"md",fontWeight:"semibold",children:"Configure your messaging provider"}),(0,n.jsxs)(s.xuv,{display:"flex",flexDirection:"column",width:"50%",children:[(0,n.jsxs)(s.xuv,{children:["Fides requires a messsaging provider for sending processing notices to privacy request subjects, and allows for Subject Identity Verification in privacy requests. Please follow the"," ",(0,n.jsx)(s.xvT,{as:"span",color:"complimentary.500",children:"documentation"})," ","to setup a messaging service that Fides supports. Ensure you have completed the setup for the preferred messaging provider and have the details handy prior to the following steps."]}),(0,n.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"Choose service type to configure"}),(0,n.jsx)(s.y02.Group,{onChange:v,value:i,"data-testid":"privacy-requests-messaging-provider-selection",className:"p-3",children:(0,n.jsxs)(s.jqI,{children:[(0,n.jsx)(s.y02,{value:d.qX.mailgun,"data-testid":"option-mailgun",children:"Mailgun Email"},d.qX.mailgun),(0,n.jsx)(s.y02,{value:d.qX.twilio_email,"data-testid":"option-twilio-email",children:"Twilio Email"},d.qX.twilio_email),(0,n.jsx)(s.y02,{value:d.qX.twilio_text,"data-testid":"option-twilio-sms",children:"Twilio SMS"},d.qX.twilio_text)]})}),i===d.qX.mailgun?(0,n.jsx)(g,{}):null,i===d.qX.twilio_email?(0,n.jsx)(f,{}):null,i===d.qX.twilio_text?(0,n.jsx)(y,{}):null]})]})},v=()=>(0,n.jsx)(j,{})},41164:function(e,t,i){"use strict";i.d(t,{Bw:function(){return l},D4:function(){return s},Dy:function(){return o},XD:function(){return c},cz:function(){return u},hE:function(){return a},oK:function(){return r}});var n=i(76649);let s=e=>"error"in e,r=e=>(0,n.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,l=e=>(0,n.Ln)({status:"number",data:{}},e),a=e=>(0,n.Ln)({detail:"string"},e),o=e=>(0,n.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,n.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),u=e=>(0,n.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)},76649:function(e,t,i){"use strict";i.d(t,{Ln:function(){return n}});let n=(e,t)=>r(e,t),s=Symbol("SOME"),r=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?s in e?e.some(e=>r(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>r(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,i])=>r(i,t[e]));class l{static narrow(e){return new l(t=>n(e,t))}constructor(e){this.NF=void 0,this.NF=e}satisfied(e){return this.NF(e)}build(e){return e}and(e){let t=this.NF,i=e instanceof l?e.NF:e instanceof Function?e:t=>n(e,t);return new l(e=>t(e)&&i(e))}}new l(e=>!0)}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=13687)}),_N_E=e.O()}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8593],{13687:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/privacy-requests/configure/messaging",function(){return i(38917)}])},43124:function(e,t,i){"use strict";i.d(t,{Z:function(){return m}});var n=i(24246),s=i(52615),r=i(88038),l=i.n(r),a=i(86677);i(27378);var o=i(11596),c=i(72247),u=i(87162),d=()=>{let e=(0,a.useRouter)();return(0,n.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(s.xuv,{children:[(0,n.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(s.wpx,{onClick:()=>{e.push(u.fz)},children:"Configure"})]}),(0,n.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=e=>{let{children:t,title:i,padded:r=!0,mainProps:u}=e,m=(0,o.hz)(),p=(0,a.useRouter)(),x="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,h=!(m.flags.privacyRequestsConfiguration&&x),{data:g}=(0,c.JE)(void 0,{skip:h}),{data:f}=(0,c.PW)(void 0,{skip:h}),y=m.flags.privacyRequestsConfiguration&&(!g||!f)&&x;return(0,n.jsxs)(s.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(l(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(s.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[y?(0,n.jsx)(d,{}):null,t]})]})}},37541:function(e,t,i){"use strict";var n=i(24246),s=i(52615),r=i(53614);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:l=!0,children:a,rightContent:o,style:c,...u}=e;return(0,n.jsxs)("div",{...u,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,n.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(s.X6q,{className:i||a?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,o&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,n.jsx)(r.m,{className:a?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),a]})}},60136:function(e,t,i){"use strict";i.d(t,{D4:function(){return r.D4},MM:function(){return m},Ot:function(){return c},c6:function(){return s},cj:function(){return x},e$:function(){return a},fn:function(){return o},iC:function(){return p},nU:function(){return d},tB:function(){return u}});var n,s,r=i(41164);let l="An unexpected error occurred. Please try again.",a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;if((0,r.Bw)(e)){if((0,r.hE)(e.data))return e.data.detail;if((0,r.cz)(e.data)){var i;let t=null===(i=e.data.detail)||void 0===i?void 0:i[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,r.Dy)(e.data)||404===e.status&&(0,r.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function o(e){return"object"==typeof e&&null!=e&&"status"in e}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function u(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:l};if((0,r.oK)(e))return{status:e.originalStatus,message:e.data};if((0,r.Bw)(e)){let{status:i}=e;return{status:i,message:a(e,t.message)}}return t},m=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(n=s||(s={})).GVL="gvl",n.AC="gacp",n.COMPASS="compass";let p={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},x=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},53359:function(e,t,i){"use strict";i.d(t,{H:function(){return r},V:function(){return n.V}});var n=i(75139),s=i(60136);let r=()=>{let{errorAlert:e}=(0,n.V)();return{handleError:t=>{let i="An unexpected error occurred. Please try again.";(0,s.Ot)(t)?i=t.data.detail:(0,s.tB)(t)&&(i=t.data.detail[0].msg),e(i)}}}},75139:function(e,t,i){"use strict";i.d(t,{V:function(){return r}});var n=i(24246),s=i(52615);let r=()=>{let e=(0,s.pmc)();return{errorAlert:(t,i,r)=>{let l={...r,position:(null==r?void 0:r.position)||"top",render:e=>{let{onClose:r}=e;return(0,n.jsxs)(s.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,n.jsx)(s.zMQ,{}),(0,n.jsxs)(s.xuv,{children:[i&&(0,n.jsx)(s.CdC,{children:i}),(0,n.jsx)(s.XaZ,{children:t})]}),(0,n.jsx)(s.PZ7,{onClick:r,position:"relative",right:0,size:"sm",top:-1})]})}};(null==r?void 0:r.id)&&e.isActive(r.id)?e.update(r.id,l):e(l)},successAlert:(t,i,r)=>{let l={...r,position:(null==r?void 0:r.position)||"top",render:e=>{let{onClose:r}=e;return(0,n.jsxs)(s.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,n.jsx)(s.zMQ,{}),(0,n.jsxs)(s.xuv,{children:[i&&(0,n.jsx)(s.CdC,{children:i}),(0,n.jsx)(s.XaZ,{children:t})]}),(0,n.jsx)(s.PZ7,{onClick:r,position:"relative",right:0,size:"sm",top:-1})]})}};(null==r?void 0:r.id)&&e.isActive(r.id)?e.update(r.id,l):e(l)}}}},53614:function(e,t,i){"use strict";i.d(t,{m:function(){return c}});var n=i(24246),s=i(52615),r=i(79894),l=i.n(r),a=i(27378);let{Text:o}=s.AntTypography,c=e=>{let{items:t,...i}=e,r=(0,a.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let r=i===t.length-1,a={...e},c=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,n.jsx)(o,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:a.title})),c)?a.title=(0,n.jsx)(s.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,n.jsx)(l(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,n.jsx)(s.zrq,{items:r,...i})}},95758:function(e,t,i){"use strict";i.d(t,{DE:function(){return o},I3:function(){return s},kN:function(){return l},qX:function(){return a},rE:function(){return r}});var n=i(37760);let s=[...new Map([[n.q2.APPROVED,"Approved"],[n.q2.CANCELED,"Canceled"],[n.q2.COMPLETE,"Completed"],[n.q2.DENIED,"Denied"],[n.q2.ERROR,"Error"],[n.q2.IN_PROCESSING,"In Progress"],[n.q2.PENDING,"New"],[n.q2.PAUSED,"Paused"],[n.q2.IDENTITY_UNVERIFIED,"Unverified"],[n.q2.REQUIRES_INPUT,"Requires input"]])].map(e=>{let[t,i]=e;return{label:i,value:t}}),r=new Map([[n.Us.ACCESS,"Access"],[n.Us.ERASURE,"Erasure"],[n.Us.CONSENT,"Consent"],[n.Us.UPDATE,"Update"]]),l=[...r].map(e=>{let[t,i]=e;return{label:i,value:t}}),a={mailgun:"mailgun",twilio_email:"twilio_email",twilio_text:"twilio_text"},o={local:"local",s3:"s3"}},38917:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return v}});var n=i(24246),s=i(52615),r=i(27378),l=i(60136),a=i(53359),o=i(43124),c=i(87162),u=i(37541),d=i(95758),m=i(72247),p=i(34090),x=i(34803),h=e=>{let{messagingDetails:t}=e,{successAlert:i}=(0,a.V)(),{handleError:r}=(0,a.H)(),[o]=(0,m.SU)(),c=t.service_type===d.qX.twilio_email||t.service_type===d.qX.mailgun,u=t.service_type===d.qX.twilio_text,h=async e=>{if(c){let t=await o({email:e.email});(0,l.D4)(t)?r(t.error):i("Test message successfully sent.")}if(u){let t=await o({phone_number:e.phone});(0,l.D4)(t)?r(t.error):i("Test message successfully sent.")}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.izJ,{mt:10}),(0,n.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,mb:5,children:"Test connection"}),(0,n.jsx)(s.Kqy,{children:(0,n.jsx)(p.J9,{initialValues:{email:"",phone:""},onSubmit:h,children:e=>{let{isSubmitting:t,resetForm:i}=e;return(0,n.jsxs)(p.l0,{children:[c?(0,n.jsx)(x.j0,{name:"email",label:"Email",placeholder:"youremail@domain.com",isRequired:!0}):null,u?(0,n.jsx)(x.j0,{name:"phone",label:"Phone",placeholder:"+10000000000",isRequired:!0}):null,(0,n.jsxs)(s.xuv,{mt:10,children:[(0,n.jsx)(s.wpx,{onClick:()=>i(),className:"mr-2",children:"Cancel"}),(0,n.jsx)(s.wpx,{disabled:t,htmlType:"submit",type:"primary","data-testid":"save-btn",children:"Save"})]})]})}})})]})},g=()=>{var e;let{successAlert:t}=(0,a.V)(),[i,o]=(0,r.useState)(""),{handleError:c}=(0,a.H)(),{data:u}=(0,m.S3)({type:d.qX.mailgun}),[g]=(0,m.h9)(),[f]=(0,m.iI)(),y=async e=>{let i=await g({service_type:d.qX.mailgun,details:{is_eu_domain:"false",domain:e.domain}});(0,l.D4)(i)?c(i.error):(t("Mailgun email successfully updated. You can now enter your security key."),o("apiKey"))},j=async e=>{let i=await f({details:{mailgun_api_key:e.api_key},service_type:d.qX.mailgun});(0,l.D4)(i)?c(i.error):(t("Mailgun security key successfully updated."),o("testConnection"))},v={domain:null!==(e=null==u?void 0:u.details.domain)&&void 0!==e?e:""};return(0,n.jsxs)(s.xuv,{children:[(0,n.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"Mailgun messaging configuration"}),(0,n.jsx)(s.Kqy,{children:(0,n.jsx)(p.J9,{initialValues:v,onSubmit:y,enableReinitialize:!0,children:e=>{let{isSubmitting:t,handleReset:i}=e;return(0,n.jsxs)(p.l0,{children:[(0,n.jsx)(s.Kqy,{mt:5,spacing:5,children:(0,n.jsx)(x.j0,{name:"domain",label:"Domain",placeholder:"Enter domain","data-testid":"option-twilio-domain",isRequired:!0})}),(0,n.jsxs)(s.xuv,{mt:10,children:[(0,n.jsx)(s.wpx,{onClick:i,className:"mr-2",children:"Cancel"}),(0,n.jsx)(s.wpx,{htmlType:"submit",disabled:t,type:"primary","data-testid":"save-btn",children:"Save"})]})]})}})}),"apiKey"===i||"testConnection"===i?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.izJ,{mt:10}),(0,n.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"Security key"}),(0,n.jsx)(s.Kqy,{children:(0,n.jsx)(p.J9,{initialValues:{api_key:""},onSubmit:j,children:e=>{let{isSubmitting:t,handleReset:i}=e;return(0,n.jsxs)(p.l0,{children:[(0,n.jsx)(x.j0,{name:"api_key",label:"API key",type:"password",isRequired:!0}),(0,n.jsxs)(s.xuv,{mt:10,children:[(0,n.jsx)(s.wpx,{onClick:i,className:"mr-2",children:"Cancel"}),(0,n.jsx)(s.wpx,{disabled:t,htmlType:"submit",type:"primary","data-testid":"save-btn",children:"Save"})]})]})}})})]}):null,"testConnection"===i?(0,n.jsx)(h,{messagingDetails:u||{service_type:d.qX.mailgun}}):null]})},f=()=>{var e;let[t,i]=(0,r.useState)(""),{successAlert:o}=(0,a.V)(),{handleError:c}=(0,a.H)(),{data:u}=(0,m.S3)({type:d.qX.twilio_email}),[g]=(0,m.h9)(),[f]=(0,m.iI)(),y=async e=>{let t=await g({service_type:d.qX.twilio_email,details:{twilio_email_from:e.email}});(0,l.D4)(t)?c(t.error):(o("Twilio email successfully updated. You can now enter your security key."),i("configureTwilioEmailSecrets"))},j=async e=>{let t=await f({details:{twilio_api_key:e.api_key},service_type:d.qX.twilio_email});(0,l.D4)(t)?c(t.error):(o("Twilio email secrets successfully updated."),i("testConnection"))},v={email:null!==(e=null==u?void 0:u.details.twilio_email_from)&&void 0!==e?e:""};return(0,n.jsxs)(s.xuv,{children:[(0,n.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"Twilio Email messaging configuration"}),(0,n.jsx)(s.Kqy,{children:(0,n.jsx)(p.J9,{initialValues:v,onSubmit:y,enableReinitialize:!0,children:e=>{let{isSubmitting:t,handleReset:i}=e;return(0,n.jsxs)(p.l0,{children:[(0,n.jsx)(s.Kqy,{mt:5,spacing:5,children:(0,n.jsx)(x.j0,{name:"email",label:"Email",placeholder:"Enter email",isRequired:!0})}),(0,n.jsxs)(s.xuv,{mt:10,children:[(0,n.jsx)(s.wpx,{onClick:()=>i(),className:"mr-2",children:"Cancel"}),(0,n.jsx)(s.wpx,{disabled:t,htmlType:"submit",type:"primary","data-testid":"save-btn",children:"Save"})]})]})}})}),"configureTwilioEmailSecrets"===t||"testConnection"===t?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.izJ,{mt:10}),(0,n.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"Security key"}),(0,n.jsx)(s.Kqy,{children:(0,n.jsx)(p.J9,{initialValues:{api_key:""},onSubmit:j,children:e=>{let{isSubmitting:t,handleReset:i}=e;return(0,n.jsxs)(p.l0,{children:[(0,n.jsx)(s.Kqy,{mt:5,spacing:5,children:(0,n.jsx)(x.j0,{name:"api_key",label:"API key",type:"password",isRequired:!0})}),(0,n.jsxs)(s.xuv,{mt:10,children:[(0,n.jsx)(s.wpx,{onClick:()=>i(),className:"mr-2",children:"Cancel"}),(0,n.jsx)(s.wpx,{disabled:t,htmlType:"submit",type:"primary","data-testid":"save-btn",children:"Save"})]})]})}})})]}):null,"testConnection"===t?(0,n.jsx)(h,{messagingDetails:u||{service_type:d.qX.twilio_email}}):null]})},y=()=>{let{successAlert:e}=(0,a.V)(),{handleError:t}=(0,a.H)(),[i,o]=(0,r.useState)(""),{data:c}=(0,m.S3)({type:"twilio_text"}),[u]=(0,m.iI)(),g=async i=>{let n=await u({details:{twilio_account_sid:i.account_sid,twilio_auth_token:i.auth_token,twilio_messaging_service_sid:i.messaging_service_sid,twilio_sender_phone_number:i.phone},service_type:d.qX.twilio_text});(0,l.D4)(n)?t(n.error):(e("Twilio text secrets successfully updated."),o("testConnection"))};return(0,n.jsxs)(s.xuv,{children:[(0,n.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"Twilio SMS messaging configuration"}),(0,n.jsx)(s.Kqy,{children:(0,n.jsx)(p.J9,{initialValues:{account_sid:"",auth_token:"",messaging_service_sid:"",phone:""},onSubmit:g,enableReinitialize:!0,children:e=>{let{isSubmitting:t,handleReset:i}=e;return(0,n.jsxs)(p.l0,{children:[(0,n.jsxs)(s.Kqy,{mt:5,spacing:5,children:[(0,n.jsx)(x.j0,{name:"account_sid",label:"Account SID",placeholder:"Enter account SID",isRequired:!0}),(0,n.jsx)(x.j0,{name:"auth_token",label:"Auth token",placeholder:"Enter auth token",type:"password",isRequired:!0}),(0,n.jsx)(x.j0,{name:"messaging_service_sid",label:"Messaging Service SID",placeholder:"Enter messaging service SID"}),(0,n.jsx)(x.j0,{name:"phone",label:"Phone Number",placeholder:"Enter phone number"})]}),(0,n.jsxs)(s.xuv,{mt:10,children:[(0,n.jsx)(s.wpx,{onClick:()=>i(),className:"mr-2",children:"Cancel"}),(0,n.jsx)(s.wpx,{disabled:t,htmlType:"submit",type:"primary","data-testid":"save-btn",children:"Save"})]})]})}})}),"testConnection"===i?(0,n.jsx)(h,{messagingDetails:c||{service_type:d.qX.twilio_text}}):null]})},j=()=>{let{successAlert:e}=(0,a.V)(),{handleError:t}=(0,a.H)(),[i,p]=(0,r.useState)(""),[x]=(0,m.h9)(),[h]=(0,m.L)(),{data:j}=(0,m.JE)();(0,r.useEffect)(()=>{j&&p(null==j?void 0:j.service_type)},[j]);let v=async i=>{let{value:n}=i.target,s=await h({notifications:{notification_service_type:n,send_request_completion_notification:!0,send_request_receipt_notification:!0,send_request_review_notification:!0},execution:{subject_identity_verification_required:!0}});if((0,l.D4)(s))t(s.error);else if(n!==d.qX.twilio_text)p(n);else{let i=await x({service_type:d.qX.twilio_text});(0,l.D4)(i)?t(i.error):(e("Messaging provider saved successfully."),p(n))}};return(0,n.jsxs)(o.Z,{title:"Configure Privacy Requests - Messaging",children:[(0,n.jsx)(u.Z,{heading:"Privacy Requests",breadcrumbItems:[{title:"All requests",href:c.Jw},{title:"Configure requests",href:c.fz},{title:"Messaging"}]}),(0,n.jsx)(s.X6q,{mb:5,fontSize:"md",fontWeight:"semibold",children:"Configure your messaging provider"}),(0,n.jsxs)(s.xuv,{display:"flex",flexDirection:"column",width:"50%",children:[(0,n.jsxs)(s.xuv,{children:["Fides requires a messsaging provider for sending processing notices to privacy request subjects, and allows for Subject Identity Verification in privacy requests. Please follow the"," ",(0,n.jsx)(s.xvT,{as:"span",color:"complimentary.500",children:"documentation"})," ","to setup a messaging service that Fides supports. Ensure you have completed the setup for the preferred messaging provider and have the details handy prior to the following steps."]}),(0,n.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"Choose service type to configure"}),(0,n.jsx)(s.y02.Group,{onChange:v,value:i,"data-testid":"privacy-requests-messaging-provider-selection",className:"p-3",children:(0,n.jsxs)(s.jqI,{children:[(0,n.jsx)(s.y02,{value:d.qX.mailgun,"data-testid":"option-mailgun",children:"Mailgun Email"},d.qX.mailgun),(0,n.jsx)(s.y02,{value:d.qX.twilio_email,"data-testid":"option-twilio-email",children:"Twilio Email"},d.qX.twilio_email),(0,n.jsx)(s.y02,{value:d.qX.twilio_text,"data-testid":"option-twilio-sms",children:"Twilio SMS"},d.qX.twilio_text)]})}),i===d.qX.mailgun?(0,n.jsx)(g,{}):null,i===d.qX.twilio_email?(0,n.jsx)(f,{}):null,i===d.qX.twilio_text?(0,n.jsx)(y,{}):null]})]})},v=()=>(0,n.jsx)(j,{})},41164:function(e,t,i){"use strict";i.d(t,{Bw:function(){return l},D4:function(){return s},Dy:function(){return o},XD:function(){return c},cz:function(){return u},hE:function(){return a},oK:function(){return r}});var n=i(76649);let s=e=>"error"in e,r=e=>(0,n.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,l=e=>(0,n.Ln)({status:"number",data:{}},e),a=e=>(0,n.Ln)({detail:"string"},e),o=e=>(0,n.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,n.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),u=e=>(0,n.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)},76649:function(e,t,i){"use strict";i.d(t,{Ln:function(){return n}});let n=(e,t)=>r(e,t),s=Symbol("SOME"),r=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?s in e?e.some(e=>r(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>r(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,i])=>r(i,t[e]));class l{static narrow(e){return new l(t=>n(e,t))}constructor(e){this.NF=void 0,this.NF=e}satisfied(e){return this.NF(e)}build(e){return e}and(e){let t=this.NF,i=e instanceof l?e.NF:e instanceof Function?e:t=>n(e,t);return new l(e=>t(e)&&i(e))}}new l(e=>!0)}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=13687)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5979],{23663:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/privacy-requests/configure/storage",function(){return n(96165)}])},43124:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var s=n(24246),i=n(96013),r=n(88038),a=n.n(r),l=n(86677);n(27378);var o=n(11596),c=n(72247),d=n(87162),u=()=>{let e=(0,l.useRouter)();return(0,s.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,s.jsxs)(i.xuv,{children:[(0,s.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,s.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,s.jsx)(i.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,s.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=e=>{let{children:t,title:n,padded:r=!0,mainProps:d}=e,m=(0,o.hz)(),h=(0,l.useRouter)(),p="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,f=!(m.flags.privacyRequestsConfiguration&&p),{data:g}=(0,c.JE)(void 0,{skip:f}),{data:x}=(0,c.PW)(void 0,{skip:f}),v=m.flags.privacyRequestsConfiguration&&(!g||!x)&&p;return(0,s.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,s.jsxs)(a(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsxs)(i.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[v?(0,s.jsx)(u,{}):null,t]})]})}},37541:function(e,t,n){"use strict";var s=n(24246),i=n(96013),r=n(53614);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:a=!0,children:l,rightContent:o,style:c,...d}=e;return(0,s.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",...c}:{paddingBottom:"24px",...c},children:[(0,s.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(i.X6q,{className:n||l?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,o&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,s.jsx)(r.m,{className:l?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),l]})}},78973:function(e,t,n){"use strict";n.d(t,{d:function(){return c}});var s=n(24246),i=n(96013),r=n(34090),a=n(27378),l=n(39514),o=n(34803);let c=e=>{let{name:t,label:n,labelProps:c,tooltip:d,isRequired:u,layout:m="inline",...h}=e,[p,f,{setValue:g}]=(0,r.U$)(t),x=!!(f.touched&&f.error),[v,j]=(0,a.useState)("");p.value||"tags"!==h.mode&&"multiple"!==h.mode||(p.value=[]),"tags"===h.mode&&"string"==typeof p.value&&(p.value=[p.value]);let y="tags"===h.mode?(e,t)=>e?e.value!==v||p.value.includes(v)?h.optionRender?h.optionRender(e,t):e.label:'Create "'.concat(v,'"'):void 0:h.optionRender||void 0,b=e=>{j(e),h.onSearch&&h.onSearch(e)},_=(e,t)=>{g(e),h.onChange&&h.onChange(e,t)};return"inline"===m?(0,s.jsx)(i.NIc,{isInvalid:x,isRequired:u,children:(0,s.jsxs)(i.rjZ,{templateColumns:n?"1fr 3fr":"1fr",children:[n?(0,s.jsx)(o.__,{htmlFor:h.id||t,...c,children:n}):null,(0,s.jsxs)(i.jqI,{align:"center",children:[(0,s.jsxs)(i.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,s.jsx)(i.WPr,{...p,id:h.id||t,"data-testid":"controlled-select-".concat(p.name),...h,optionRender:y,onSearch:"tags"===h.mode?b:void 0,onChange:_,value:p.value||void 0}),(0,s.jsx)(o.Bc,{isInvalid:x,message:f.error,fieldName:p.name})]}),d?(0,s.jsx)(l.Z,{label:d}):null]})]})}):(0,s.jsx)(i.NIc,{isInvalid:x,isRequired:u,children:(0,s.jsxs)(i.gCW,{alignItems:"start",children:[(0,s.jsxs)(i.jqI,{align:"center",children:[n?(0,s.jsx)(o.__,{htmlFor:h.id||t,fontSize:"xs",my:0,mr:1,...c,children:n}):null,d?(0,s.jsx)(l.Z,{label:d}):null]}),(0,s.jsx)(i.WPr,{...p,id:h.id||t,"data-testid":"controlled-select-".concat(p.name),...h,optionRender:y,onSearch:"tags"===h.mode?b:void 0,onChange:_,value:p.value||void 0}),(0,s.jsx)(o.Bc,{isInvalid:x,message:f.error,fieldName:p.name})]})})}},60136:function(e,t,n){"use strict";n.d(t,{D4:function(){return r.D4},MM:function(){return m},Ot:function(){return c},c6:function(){return i},cj:function(){return p},e$:function(){return l},fn:function(){return o},iC:function(){return h},nU:function(){return u},tB:function(){return d}});var s,i,r=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,r.Bw)(e)){if((0,r.hE)(e.data))return e.data.detail;if((0,r.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,r.Dy)(e.data)||404===e.status&&(0,r.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function o(e){return"object"==typeof e&&null!=e&&"status"in e}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function d(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:a};if((0,r.oK)(e))return{status:e.originalStatus,message:e.data};if((0,r.Bw)(e)){let{status:n}=e;return{status:n,message:l(e,t.message)}}return t},m=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(s=i||(i={})).GVL="gvl",s.AC="gacp",s.COMPASS="compass";let h={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"}},53359:function(e,t,n){"use strict";n.d(t,{H:function(){return r},V:function(){return s.V}});var s=n(75139),i=n(60136);let r=()=>{let{errorAlert:e}=(0,s.V)();return{handleError:t=>{let n="An unexpected error occurred. Please try again.";(0,i.Ot)(t)?n=t.data.detail:(0,i.tB)(t)&&(n=t.data.detail[0].msg),e(n)}}}},75139:function(e,t,n){"use strict";n.d(t,{V:function(){return r}});var s=n(24246),i=n(96013);let r=()=>{let e=(0,i.pmc)();return{errorAlert:(t,n,r)=>{let a={...r,position:(null==r?void 0:r.position)||"top",render:e=>{let{onClose:r}=e;return(0,s.jsxs)(i.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,s.jsx)(i.zMQ,{}),(0,s.jsxs)(i.xuv,{children:[n&&(0,s.jsx)(i.CdC,{children:n}),(0,s.jsx)(i.XaZ,{children:t})]}),(0,s.jsx)(i.PZ7,{onClick:r,position:"relative",right:0,size:"sm",top:-1})]})}};(null==r?void 0:r.id)&&e.isActive(r.id)?e.update(r.id,a):e(a)},successAlert:(t,n,r)=>{let a={...r,position:(null==r?void 0:r.position)||"top",render:e=>{let{onClose:r}=e;return(0,s.jsxs)(i.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,s.jsx)(i.zMQ,{}),(0,s.jsxs)(i.xuv,{children:[n&&(0,s.jsx)(i.CdC,{children:n}),(0,s.jsx)(i.XaZ,{children:t})]}),(0,s.jsx)(i.PZ7,{onClick:r,position:"relative",right:0,size:"sm",top:-1})]})}};(null==r?void 0:r.id)&&e.isActive(r.id)?e.update(r.id,a):e(a)}}}},53614:function(e,t,n){"use strict";n.d(t,{m:function(){return c}});var s=n(24246),i=n(96013),r=n(79894),a=n.n(r),l=n(27378);let{Text:o}=i.AntTypography,c=e=>{let{items:t,...n}=e,r=(0,l.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let r=n===t.length-1,l={...e},c=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,s.jsx)(o,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:l.title})),c)?l.title=(0,s.jsx)(i.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,s.jsx)(a(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,s.jsx)(i.zrq,{items:r,...n})}},95758:function(e,t,n){"use strict";n.d(t,{DE:function(){return o},I3:function(){return i},kN:function(){return a},qX:function(){return l},rE:function(){return r}});var s=n(37760);let i=[...new Map([[s.q2.APPROVED,"Approved"],[s.q2.CANCELED,"Canceled"],[s.q2.COMPLETE,"Completed"],[s.q2.DENIED,"Denied"],[s.q2.ERROR,"Error"],[s.q2.IN_PROCESSING,"In Progress"],[s.q2.PENDING,"New"],[s.q2.PAUSED,"Paused"],[s.q2.IDENTITY_UNVERIFIED,"Unverified"],[s.q2.REQUIRES_INPUT,"Requires input"]])].map(e=>{let[t,n]=e;return{label:n,value:t}}),r=new Map([[s.Us.ACCESS,"Access"],[s.Us.ERASURE,"Erasure"],[s.Us.CONSENT,"Consent"],[s.Us.UPDATE,"Update"]]),a=[...r].map(e=>{let[t,n]=e;return{label:n,value:t}}),l={mailgun:"mailgun",twilio_email:"twilio_email",twilio_text:"twilio_text"},o={local:"local",s3:"s3"}},96165:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}});var s=n(24246),i=n(96013),r=n(27378),a=n(60136),l=n(53359),o=n(43124),c=n(87162),d=n(37541),u=n(95758),m=n(72247),h=n(34090),p=n(78973),f=n(34803),g=e=>{var t,n,o,c,d;let{storageDetails:g}=e,[x,v]=(0,r.useState)(""),[j]=(0,m.gC)(),[y]=(0,m.cf)(),{handleError:b}=(0,l.H)(),{successAlert:_}=(0,l.V)(),C={type:u.DE.s3,auth_method:null!==(o=null==g?void 0:null===(t=g.details)||void 0===t?void 0:t.auth_method)&&void 0!==o?o:"",bucket:null!==(c=null==g?void 0:null===(n=g.details)||void 0===n?void 0:n.bucket)&&void 0!==c?c:"",format:null!==(d=null==g?void 0:g.format)&&void 0!==d?d:""},w=async e=>{let t=await j({type:u.DE.s3,details:{auth_method:e.auth_method,bucket:e.bucket},format:e.format});(0,a.D4)(t)?b(t.error):(v(e.auth_method),_("S3 storage credentials successfully updated."))},q=async e=>{let t=await y({details:{aws_access_key_id:e.aws_access_key_id,aws_secret_access_key:e.aws_secret_access_key},type:u.DE.s3});(0,a.D4)(t)?b(t.error):_("S3 storage secrets successfully updated.")};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"S3 storage configuration"}),(0,s.jsx)(i.Kqy,{children:(0,s.jsx)(h.J9,{initialValues:C,onSubmit:w,enableReinitialize:!0,children:e=>{let{isSubmitting:t,handleReset:n}=e;return(0,s.jsxs)(h.l0,{children:[(0,s.jsxs)(i.Kqy,{mt:5,spacing:5,children:[(0,s.jsx)(p.d,{name:"format",label:"Format",options:[{label:"json",value:"json"},{label:"csv",value:"csv"}],"data-testid":"format",isRequired:!0}),(0,s.jsx)(p.d,{name:"auth_method",label:"Auth method",options:[{label:"secret_keys",value:"secret_keys"},{label:"automatic",value:"automatic"}],"data-testid":"auth_method",isRequired:!0}),(0,s.jsx)(f.j0,{"data-testid":"bucket",name:"bucket",label:"Bucket",isRequired:!0})]}),(0,s.jsx)(i.wpx,{onClick:()=>n(),className:"mr-2 mt-5",children:"Cancel"}),(0,s.jsx)(i.wpx,{htmlType:"submit",className:"mt-5",disabled:t,type:"primary","data-testid":"save-btn",children:"Save"})]})}})}),"secret_keys"===x?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.izJ,{mt:5}),(0,s.jsx)(i.X6q,{fontSize:"md",fontWeight:"semibold",mt:5,children:"Storage destination"}),(0,s.jsx)(i.Kqy,{children:(0,s.jsx)(h.J9,{initialValues:{aws_access_key_id:"",aws_secret_access_key:""},onSubmit:q,children:e=>{let{isSubmitting:t,handleReset:n}=e;return(0,s.jsxs)(h.l0,{children:[(0,s.jsxs)(i.Kqy,{mt:5,spacing:5,children:[(0,s.jsx)(f.j0,{name:"aws_access_key_id",label:"AWS access key ID"}),(0,s.jsx)(f.j0,{name:"aws_secret_access_key",label:"AWS secret access key",type:"password"})]}),(0,s.jsxs)(i.xuv,{mt:10,children:[(0,s.jsx)(i.wpx,{onClick:()=>n(),className:"mr-2 mt-5",children:"Cancel"}),(0,s.jsx)(i.wpx,{disabled:t,htmlType:"submit",type:"primary",className:"mt-5","data-testid":"save-btn",children:"Save"})]})]})}})})]}):null]})},x=()=>{let{successAlert:e}=(0,l.V)(),{handleError:t}=(0,l.H)(),[n,h]=(0,r.useState)(""),{data:p}=(0,m.PW)(),{data:f}=(0,m.Au)({type:n}),[x,{isLoading:v}]=(0,m.gC)(),[j]=(0,m.L)();(0,r.useEffect)(()=>{p&&h(p.type)},[p]);let y=async n=>{let{value:s}=n.target;if(s===u.DE.local){let n=await x({type:s,details:{},format:"json"});(0,a.D4)(n)?t(n.error):e("Configured storage details successfully.")}let i=await j({storage:{active_default_storage_type:s}});(0,a.D4)(i)?t(i.error):h(s)};return(0,s.jsxs)(o.Z,{title:"Configure Privacy Requests - Storage",children:[(0,s.jsx)(d.Z,{heading:"Privacy Requests",breadcrumbItems:[{title:"All requests",href:c.Jw},{title:"Configure requests",href:c.fz},{title:"Storage"}]}),(0,s.jsx)(i.X6q,{mb:5,fontSize:"md",fontWeight:"semibold",children:"Configure storage"}),(0,s.jsxs)(i.xuv,{display:"flex",flexDirection:"column",width:"50%",children:[(0,s.jsx)(i.xuv,{mb:5,children:"Fides requires a storage destination to store and share the results of privacy requests. For a production setup, it is highly recommended to have S3 as a storage destination. Ensure you have completed the setup for the storage destination and have the details handy prior to the following steps."}),(0,s.jsxs)(i.xuv,{children:["To configure a Storage destination, first choose a method to store your results. Fides currently supports"," ",(0,s.jsx)(i.xvT,{as:"span",color:"complimentary.500",children:"Local"})," ","and"," ",(0,s.jsx)(i.xvT,{as:"span",color:"complimentary.500",children:"S3"})," ","storage methods."]}),(0,s.jsx)(i.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"Choose storage type to configure"}),(0,s.jsx)(i.y02.Group,{disabled:v,onChange:y,value:n,"data-testid":"privacy-requests-storage-selection",className:"p-3",children:(0,s.jsxs)(i.jqI,{children:[(0,s.jsx)(i.y02,{value:"local","data-testid":"option-local",children:"Local"},"local"),(0,s.jsx)(i.y02,{value:"s3","data-testid":"option-s3",children:"S3"},"s3")]})}),"s3"===n&&f?(0,s.jsx)(g,{storageDetails:f}):null]})]})},v=()=>(0,s.jsx)(x,{})},41164:function(e,t,n){"use strict";n.d(t,{Bw:function(){return a},D4:function(){return i},Dy:function(){return o},XD:function(){return c},cz:function(){return d},hE:function(){return l},oK:function(){return r}});var s=n(76649);let i=e=>"error"in e,r=e=>(0,s.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,a=e=>(0,s.Ln)({status:"number",data:{}},e),l=e=>(0,s.Ln)({detail:"string"},e),o=e=>(0,s.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,s.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),d=e=>(0,s.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)},76649:function(e,t,n){"use strict";n.d(t,{Ln:function(){return s}});let s=(e,t)=>r(e,t),i=Symbol("SOME"),r=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?i in e?e.some(e=>r(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>r(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,n])=>r(n,t[e]));class a{static narrow(e){return new a(t=>s(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=>s(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=23663)}),_N_E=e.O()}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5979],{23663:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/privacy-requests/configure/storage",function(){return n(96165)}])},43124:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var s=n(24246),i=n(52615),r=n(88038),a=n.n(r),l=n(86677);n(27378);var o=n(11596),c=n(72247),d=n(87162),u=()=>{let e=(0,l.useRouter)();return(0,s.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,s.jsxs)(i.xuv,{children:[(0,s.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,s.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,s.jsx)(i.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,s.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=e=>{let{children:t,title:n,padded:r=!0,mainProps:d}=e,m=(0,o.hz)(),h=(0,l.useRouter)(),p="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,f=!(m.flags.privacyRequestsConfiguration&&p),{data:g}=(0,c.JE)(void 0,{skip:f}),{data:x}=(0,c.PW)(void 0,{skip:f}),v=m.flags.privacyRequestsConfiguration&&(!g||!x)&&p;return(0,s.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,s.jsxs)(a(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsxs)(i.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[v?(0,s.jsx)(u,{}):null,t]})]})}},37541:function(e,t,n){"use strict";var s=n(24246),i=n(52615),r=n(53614);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:a=!0,children:l,rightContent:o,style:c,...d}=e;return(0,s.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",...c}:{paddingBottom:"24px",...c},children:[(0,s.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(i.X6q,{className:n||l?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,o&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,s.jsx)(r.m,{className:l?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),l]})}},78973:function(e,t,n){"use strict";n.d(t,{d:function(){return c}});var s=n(24246),i=n(52615),r=n(34090),a=n(27378),l=n(39514),o=n(34803);let c=e=>{let{name:t,label:n,labelProps:c,tooltip:d,isRequired:u,layout:m="inline",...h}=e,[p,f,{setValue:g}]=(0,r.U$)(t),x=!!(f.touched&&f.error),[v,j]=(0,a.useState)("");p.value||"tags"!==h.mode&&"multiple"!==h.mode||(p.value=[]),"tags"===h.mode&&"string"==typeof p.value&&(p.value=[p.value]);let y="tags"===h.mode?(e,t)=>e?e.value!==v||p.value.includes(v)?h.optionRender?h.optionRender(e,t):e.label:'Create "'.concat(v,'"'):void 0:h.optionRender||void 0,b=e=>{j(e),h.onSearch&&h.onSearch(e)},_=(e,t)=>{g(e),h.onChange&&h.onChange(e,t)};return"inline"===m?(0,s.jsx)(i.NIc,{isInvalid:x,isRequired:u,children:(0,s.jsxs)(i.rjZ,{templateColumns:n?"1fr 3fr":"1fr",children:[n?(0,s.jsx)(o.__,{htmlFor:h.id||t,...c,children:n}):null,(0,s.jsxs)(i.jqI,{align:"center",children:[(0,s.jsxs)(i.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,s.jsx)(i.WPr,{...p,id:h.id||t,"data-testid":"controlled-select-".concat(p.name),...h,optionRender:y,onSearch:"tags"===h.mode?b:void 0,onChange:_,value:p.value||void 0}),(0,s.jsx)(o.Bc,{isInvalid:x,message:f.error,fieldName:p.name})]}),d?(0,s.jsx)(l.Z,{label:d}):null]})]})}):(0,s.jsx)(i.NIc,{isInvalid:x,isRequired:u,children:(0,s.jsxs)(i.gCW,{alignItems:"start",children:[(0,s.jsxs)(i.jqI,{align:"center",children:[n?(0,s.jsx)(o.__,{htmlFor:h.id||t,fontSize:"xs",my:0,mr:1,...c,children:n}):null,d?(0,s.jsx)(l.Z,{label:d}):null]}),(0,s.jsx)(i.WPr,{...p,id:h.id||t,"data-testid":"controlled-select-".concat(p.name),...h,optionRender:y,onSearch:"tags"===h.mode?b:void 0,onChange:_,value:p.value||void 0}),(0,s.jsx)(o.Bc,{isInvalid:x,message:f.error,fieldName:p.name})]})})}},60136:function(e,t,n){"use strict";n.d(t,{D4:function(){return r.D4},MM:function(){return m},Ot:function(){return c},c6:function(){return i},cj:function(){return p},e$:function(){return l},fn:function(){return o},iC:function(){return h},nU:function(){return u},tB:function(){return d}});var s,i,r=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,r.Bw)(e)){if((0,r.hE)(e.data))return e.data.detail;if((0,r.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,r.Dy)(e.data)||404===e.status&&(0,r.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function o(e){return"object"==typeof e&&null!=e&&"status"in e}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function d(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:a};if((0,r.oK)(e))return{status:e.originalStatus,message:e.data};if((0,r.Bw)(e)){let{status:n}=e;return{status:n,message:l(e,t.message)}}return t},m=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(s=i||(i={})).GVL="gvl",s.AC="gacp",s.COMPASS="compass";let h={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"}},53359:function(e,t,n){"use strict";n.d(t,{H:function(){return r},V:function(){return s.V}});var s=n(75139),i=n(60136);let r=()=>{let{errorAlert:e}=(0,s.V)();return{handleError:t=>{let n="An unexpected error occurred. Please try again.";(0,i.Ot)(t)?n=t.data.detail:(0,i.tB)(t)&&(n=t.data.detail[0].msg),e(n)}}}},75139:function(e,t,n){"use strict";n.d(t,{V:function(){return r}});var s=n(24246),i=n(52615);let r=()=>{let e=(0,i.pmc)();return{errorAlert:(t,n,r)=>{let a={...r,position:(null==r?void 0:r.position)||"top",render:e=>{let{onClose:r}=e;return(0,s.jsxs)(i.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,s.jsx)(i.zMQ,{}),(0,s.jsxs)(i.xuv,{children:[n&&(0,s.jsx)(i.CdC,{children:n}),(0,s.jsx)(i.XaZ,{children:t})]}),(0,s.jsx)(i.PZ7,{onClick:r,position:"relative",right:0,size:"sm",top:-1})]})}};(null==r?void 0:r.id)&&e.isActive(r.id)?e.update(r.id,a):e(a)},successAlert:(t,n,r)=>{let a={...r,position:(null==r?void 0:r.position)||"top",render:e=>{let{onClose:r}=e;return(0,s.jsxs)(i.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,s.jsx)(i.zMQ,{}),(0,s.jsxs)(i.xuv,{children:[n&&(0,s.jsx)(i.CdC,{children:n}),(0,s.jsx)(i.XaZ,{children:t})]}),(0,s.jsx)(i.PZ7,{onClick:r,position:"relative",right:0,size:"sm",top:-1})]})}};(null==r?void 0:r.id)&&e.isActive(r.id)?e.update(r.id,a):e(a)}}}},53614:function(e,t,n){"use strict";n.d(t,{m:function(){return c}});var s=n(24246),i=n(52615),r=n(79894),a=n.n(r),l=n(27378);let{Text:o}=i.AntTypography,c=e=>{let{items:t,...n}=e,r=(0,l.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let r=n===t.length-1,l={...e},c=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,s.jsx)(o,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:l.title})),c)?l.title=(0,s.jsx)(i.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,s.jsx)(a(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,s.jsx)(i.zrq,{items:r,...n})}},95758:function(e,t,n){"use strict";n.d(t,{DE:function(){return o},I3:function(){return i},kN:function(){return a},qX:function(){return l},rE:function(){return r}});var s=n(37760);let i=[...new Map([[s.q2.APPROVED,"Approved"],[s.q2.CANCELED,"Canceled"],[s.q2.COMPLETE,"Completed"],[s.q2.DENIED,"Denied"],[s.q2.ERROR,"Error"],[s.q2.IN_PROCESSING,"In Progress"],[s.q2.PENDING,"New"],[s.q2.PAUSED,"Paused"],[s.q2.IDENTITY_UNVERIFIED,"Unverified"],[s.q2.REQUIRES_INPUT,"Requires input"]])].map(e=>{let[t,n]=e;return{label:n,value:t}}),r=new Map([[s.Us.ACCESS,"Access"],[s.Us.ERASURE,"Erasure"],[s.Us.CONSENT,"Consent"],[s.Us.UPDATE,"Update"]]),a=[...r].map(e=>{let[t,n]=e;return{label:n,value:t}}),l={mailgun:"mailgun",twilio_email:"twilio_email",twilio_text:"twilio_text"},o={local:"local",s3:"s3"}},96165:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}});var s=n(24246),i=n(52615),r=n(27378),a=n(60136),l=n(53359),o=n(43124),c=n(87162),d=n(37541),u=n(95758),m=n(72247),h=n(34090),p=n(78973),f=n(34803),g=e=>{var t,n,o,c,d;let{storageDetails:g}=e,[x,v]=(0,r.useState)(""),[j]=(0,m.gC)(),[y]=(0,m.cf)(),{handleError:b}=(0,l.H)(),{successAlert:_}=(0,l.V)(),C={type:u.DE.s3,auth_method:null!==(o=null==g?void 0:null===(t=g.details)||void 0===t?void 0:t.auth_method)&&void 0!==o?o:"",bucket:null!==(c=null==g?void 0:null===(n=g.details)||void 0===n?void 0:n.bucket)&&void 0!==c?c:"",format:null!==(d=null==g?void 0:g.format)&&void 0!==d?d:""},w=async e=>{let t=await j({type:u.DE.s3,details:{auth_method:e.auth_method,bucket:e.bucket},format:e.format});(0,a.D4)(t)?b(t.error):(v(e.auth_method),_("S3 storage credentials successfully updated."))},q=async e=>{let t=await y({details:{aws_access_key_id:e.aws_access_key_id,aws_secret_access_key:e.aws_secret_access_key},type:u.DE.s3});(0,a.D4)(t)?b(t.error):_("S3 storage secrets successfully updated.")};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"S3 storage configuration"}),(0,s.jsx)(i.Kqy,{children:(0,s.jsx)(h.J9,{initialValues:C,onSubmit:w,enableReinitialize:!0,children:e=>{let{isSubmitting:t,handleReset:n}=e;return(0,s.jsxs)(h.l0,{children:[(0,s.jsxs)(i.Kqy,{mt:5,spacing:5,children:[(0,s.jsx)(p.d,{name:"format",label:"Format",options:[{label:"json",value:"json"},{label:"csv",value:"csv"}],"data-testid":"format",isRequired:!0}),(0,s.jsx)(p.d,{name:"auth_method",label:"Auth method",options:[{label:"secret_keys",value:"secret_keys"},{label:"automatic",value:"automatic"}],"data-testid":"auth_method",isRequired:!0}),(0,s.jsx)(f.j0,{"data-testid":"bucket",name:"bucket",label:"Bucket",isRequired:!0})]}),(0,s.jsx)(i.wpx,{onClick:()=>n(),className:"mr-2 mt-5",children:"Cancel"}),(0,s.jsx)(i.wpx,{htmlType:"submit",className:"mt-5",disabled:t,type:"primary","data-testid":"save-btn",children:"Save"})]})}})}),"secret_keys"===x?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.izJ,{mt:5}),(0,s.jsx)(i.X6q,{fontSize:"md",fontWeight:"semibold",mt:5,children:"Storage destination"}),(0,s.jsx)(i.Kqy,{children:(0,s.jsx)(h.J9,{initialValues:{aws_access_key_id:"",aws_secret_access_key:""},onSubmit:q,children:e=>{let{isSubmitting:t,handleReset:n}=e;return(0,s.jsxs)(h.l0,{children:[(0,s.jsxs)(i.Kqy,{mt:5,spacing:5,children:[(0,s.jsx)(f.j0,{name:"aws_access_key_id",label:"AWS access key ID"}),(0,s.jsx)(f.j0,{name:"aws_secret_access_key",label:"AWS secret access key",type:"password"})]}),(0,s.jsxs)(i.xuv,{mt:10,children:[(0,s.jsx)(i.wpx,{onClick:()=>n(),className:"mr-2 mt-5",children:"Cancel"}),(0,s.jsx)(i.wpx,{disabled:t,htmlType:"submit",type:"primary",className:"mt-5","data-testid":"save-btn",children:"Save"})]})]})}})})]}):null]})},x=()=>{let{successAlert:e}=(0,l.V)(),{handleError:t}=(0,l.H)(),[n,h]=(0,r.useState)(""),{data:p}=(0,m.PW)(),{data:f}=(0,m.Au)({type:n}),[x,{isLoading:v}]=(0,m.gC)(),[j]=(0,m.L)();(0,r.useEffect)(()=>{p&&h(p.type)},[p]);let y=async n=>{let{value:s}=n.target;if(s===u.DE.local){let n=await x({type:s,details:{},format:"json"});(0,a.D4)(n)?t(n.error):e("Configured storage details successfully.")}let i=await j({storage:{active_default_storage_type:s}});(0,a.D4)(i)?t(i.error):h(s)};return(0,s.jsxs)(o.Z,{title:"Configure Privacy Requests - Storage",children:[(0,s.jsx)(d.Z,{heading:"Privacy Requests",breadcrumbItems:[{title:"All requests",href:c.Jw},{title:"Configure requests",href:c.fz},{title:"Storage"}]}),(0,s.jsx)(i.X6q,{mb:5,fontSize:"md",fontWeight:"semibold",children:"Configure storage"}),(0,s.jsxs)(i.xuv,{display:"flex",flexDirection:"column",width:"50%",children:[(0,s.jsx)(i.xuv,{mb:5,children:"Fides requires a storage destination to store and share the results of privacy requests. For a production setup, it is highly recommended to have S3 as a storage destination. Ensure you have completed the setup for the storage destination and have the details handy prior to the following steps."}),(0,s.jsxs)(i.xuv,{children:["To configure a Storage destination, first choose a method to store your results. Fides currently supports"," ",(0,s.jsx)(i.xvT,{as:"span",color:"complimentary.500",children:"Local"})," ","and"," ",(0,s.jsx)(i.xvT,{as:"span",color:"complimentary.500",children:"S3"})," ","storage methods."]}),(0,s.jsx)(i.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"Choose storage type to configure"}),(0,s.jsx)(i.y02.Group,{disabled:v,onChange:y,value:n,"data-testid":"privacy-requests-storage-selection",className:"p-3",children:(0,s.jsxs)(i.jqI,{children:[(0,s.jsx)(i.y02,{value:"local","data-testid":"option-local",children:"Local"},"local"),(0,s.jsx)(i.y02,{value:"s3","data-testid":"option-s3",children:"S3"},"s3")]})}),"s3"===n&&f?(0,s.jsx)(g,{storageDetails:f}):null]})]})},v=()=>(0,s.jsx)(x,{})},41164:function(e,t,n){"use strict";n.d(t,{Bw:function(){return a},D4:function(){return i},Dy:function(){return o},XD:function(){return c},cz:function(){return d},hE:function(){return l},oK:function(){return r}});var s=n(76649);let i=e=>"error"in e,r=e=>(0,s.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,a=e=>(0,s.Ln)({status:"number",data:{}},e),l=e=>(0,s.Ln)({detail:"string"},e),o=e=>(0,s.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,s.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),d=e=>(0,s.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)},76649:function(e,t,n){"use strict";n.d(t,{Ln:function(){return s}});let s=(e,t)=>r(e,t),i=Symbol("SOME"),r=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?i in e?e.some(e=>r(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>r(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,n])=>r(n,t[e]));class a{static narrow(e){return new a(t=>s(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=>s(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=23663)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1242],{29221:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/privacy-requests/configure",function(){return r(48566)}])},43124:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var i=r(24246),n=r(
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1242],{29221:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/privacy-requests/configure",function(){return r(48566)}])},43124:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var i=r(24246),n=r(52615),s=r(88038),o=r.n(s),a=r(86677);r(27378);var d=r(11596),c=r(72247),l=r(87162),u=()=>{let e=(0,a.useRouter)();return(0,i.jsx)(n.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)(n.xuv,{children:[(0,i.jsxs)(n.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(n.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(n.wpx,{onClick:()=>{e.push(l.fz)},children:"Configure"})]}),(0,i.jsxs)(n.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:r,padded:s=!0,mainProps:l}=e,p=(0,d.hz)(),g=(0,a.useRouter)(),h="/privacy-requests"===g.pathname||"/datastore-connection"===g.pathname,x=!(p.flags.privacyRequestsConfiguration&&h),{data:m}=(0,c.JE)(void 0,{skip:x}),{data:f}=(0,c.PW)(void 0,{skip:x}),y=p.flags.privacyRequestsConfiguration&&(!m||!f)&&h;return(0,i.jsxs)(n.kCb,{"data-testid":r,direction:"column",h:"100vh",children:[(0,i.jsxs)(o(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",r]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(n.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",...l,children:[y?(0,i.jsx)(u,{}):null,t]})]})}},37541:function(e,t,r){"use strict";var i=r(24246),n=r(52615),s=r(53614);t.Z=e=>{let{heading:t,breadcrumbItems:r,isSticky:o=!0,children:a,rightContent:d,style:c,...l}=e;return(0,i.jsxs)("div",{...l,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,i.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(n.X6q,{className:r||a?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,d&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:d})]}),!!r&&(0,i.jsx)(s.m,{className:a?"pb-4":void 0,items:r,"data-testid":"page-breadcrumb"}),a]})}},53614:function(e,t,r){"use strict";r.d(t,{m:function(){return c}});var i=r(24246),n=r(52615),s=r(79894),o=r.n(s),a=r(27378);let{Text:d}=n.AntTypography,c=e=>{let{items:t,...r}=e,s=(0,a.useMemo)(()=>null==t?void 0:t.map((e,r)=>{let s=r===t.length-1,a={...e},c=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,i.jsx)(d,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:a.title})),c)?a.title=(0,i.jsx)(n.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)(n.zrq,{items:s,...r})}},48566:function(e,t,r){"use strict";r.r(t);var i=r(24246),n=r(52615),s=r(79894),o=r.n(s),a=r(43124),d=r(87162),c=r(37541);let{Text:l}=n.AntTypography;t.default=()=>(0,i.jsxs)(a.Z,{title:"Configure Privacy Requests",children:[(0,i.jsx)(c.Z,{heading:"Privacy Requests",breadcrumbItems:[{title:"All requests",href:d.Jw},{title:"Configure requests"}]}),(0,i.jsx)(l,{strong:!0,children:"Configure your privacy requests:"}),(0,i.jsxs)(n.xuv,{display:"flex",alignItems:"center",my:5,"data-testid":"privacy-requests-configure",children:[(0,i.jsxs)(n.fGe,{p:"5",borderWidth:"1px",rounded:"md",borderColor:"gray.300",_hover:{borderColor:"complimentary.500",cursor:"pointer"},mr:5,minHeight:"100%",children:[(0,i.jsx)(n.X6q,{mb:2,size:"sm",children:(0,i.jsx)(n.AB5,{as:o(),href:"/privacy-requests/configure/messaging",children:"Configure messaging provider"})}),"Fides supports email (Mailgun & Twilio) and SMS (Twilio) server configurations for sending processing notices to privacy request subjects. Configure your settings here."]}),(0,i.jsxs)(n.fGe,{p:"5",borderWidth:"1px",rounded:"md",borderColor:"gray.300",_hover:{borderColor:"complimentary.500",cursor:"pointer"},minHeight:"100%",children:[(0,i.jsx)(n.X6q,{mb:2,size:"sm",children:(0,i.jsx)(n.AB5,{as:o(),href:"/privacy-requests/configure/storage",children:"Configure storage"})}),"The data produced by an access request will need to be uploaded to a storage destination (e.g. an S3 bucket) in order to be returned to the user. At least one storage destination must be configured to process access requests. Configure your settings here."]})]})]})}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=29221)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2369],{1565:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/privacy-requests",function(){return l(50259)}])},65464:function(e,t,l){"use strict";var r=l(24246),i=l(52615),a=l(88038),n=l.n(a);l(27378),t.Z=e=>{let{children:t,title:l,mainProps:a}=e;return(0,r.jsxs)(i.kCb,{"data-testid":l,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,r.jsxs)(n(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",l]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsx)(i.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...a,children:t})]})}},37440:function(e,t,l){"use strict";var r=l(24246),i=l(52615);t.Z=e=>{let{title:t,text:l,onClose:a}=e;return(0,r.jsxs)(i.Ugi,{backgroundColor:"gray.50",border:"1px solid",borderRadius:"md",justifyContent:"space-between",py:4,pr:6,pl:3,"data-testid":"empty-state",gap:2,position:"relative",children:[a&&(0,r.jsx)(i.Two,{boxSize:5,position:"absolute",right:3,top:3,zIndex:1,cursor:"pointer",p:1,onClick:a}),(0,r.jsx)(i.iid,{alignSelf:"start",color:"minos",mt:.5,flexGrow:0}),(0,r.jsxs)(i.kCb,{direction:"column",gap:2,flexGrow:1,children:[(0,r.jsx)(i.X6q,{fontSize:"md",children:t}),(0,r.jsx)(i.xvT,{fontSize:"sm",color:"gray.600",lineHeight:"5",children:l})]})]})}},9862:function(e,t,l){"use strict";l.d(t,{z:function(){return a}});var r=l(24246),i=l(52615);let a=e=>{let{...t}=e,l="multiple"===t.mode;return(0,r.jsx)(i.WPr,{defaultActiveFirstOption:!1,maxTagCount:"responsive",allowClear:!0,dropdownStyle:l?void 0:{width:"auto",minWidth:"200px"},className:"w-auto","data-testid":"filter-select",...t})}},78973:function(e,t,l){"use strict";l.d(t,{d:function(){return d}});var r=l(24246),i=l(52615),a=l(34090),n=l(27378),s=l(39514),o=l(34803);let d=e=>{let{name:t,label:l,labelProps:d,tooltip:u,isRequired:c,layout:p="inline",...m}=e,[h,x,{setValue:v}]=(0,a.U$)(t),f=!!(x.touched&&x.error),[y,b]=(0,n.useState)("");h.value||"tags"!==m.mode&&"multiple"!==m.mode||(h.value=[]),"tags"===m.mode&&"string"==typeof h.value&&(h.value=[h.value]);let _="tags"===m.mode?(e,t)=>e?e.value!==y||h.value.includes(y)?m.optionRender?m.optionRender(e,t):e.label:'Create "'.concat(y,'"'):void 0:m.optionRender||void 0,j=e=>{b(e),m.onSearch&&m.onSearch(e)},g=(e,t)=>{v(e),m.onChange&&m.onChange(e,t)};return"inline"===p?(0,r.jsx)(i.NIc,{isInvalid:f,isRequired:c,children:(0,r.jsxs)(i.rjZ,{templateColumns:l?"1fr 3fr":"1fr",children:[l?(0,r.jsx)(o.__,{htmlFor:m.id||t,...d,children:l}):null,(0,r.jsxs)(i.jqI,{align:"center",children:[(0,r.jsxs)(i.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,r.jsx)(i.WPr,{...h,id:m.id||t,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:_,onSearch:"tags"===m.mode?j:void 0,onChange:g,value:h.value||void 0}),(0,r.jsx)(o.Bc,{isInvalid:f,message:x.error,fieldName:h.name})]}),u?(0,r.jsx)(s.Z,{label:u}):null]})]})}):(0,r.jsx)(i.NIc,{isInvalid:f,isRequired:c,children:(0,r.jsxs)(i.gCW,{alignItems:"start",children:[(0,r.jsxs)(i.jqI,{align:"center",children:[l?(0,r.jsx)(o.__,{htmlFor:m.id||t,fontSize:"xs",my:0,mr:1,...d,children:l}):null,u?(0,r.jsx)(s.Z,{label:u}):null]}),(0,r.jsx)(i.WPr,{...h,id:m.id||t,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:_,onSearch:"tags"===m.mode?j:void 0,onChange:g,value:h.value||void 0}),(0,r.jsx)(o.Bc,{isInvalid:f,message:x.error,fieldName:h.name})]})})}},95758:function(e,t,l){"use strict";l.d(t,{DE:function(){return o},I3:function(){return i},kN:function(){return n},qX:function(){return s},rE:function(){return a}});var r=l(37760);let i=[...new Map([[r.q2.APPROVED,"Approved"],[r.q2.CANCELED,"Canceled"],[r.q2.COMPLETE,"Completed"],[r.q2.DENIED,"Denied"],[r.q2.ERROR,"Error"],[r.q2.IN_PROCESSING,"In Progress"],[r.q2.PENDING,"New"],[r.q2.PAUSED,"Paused"],[r.q2.IDENTITY_UNVERIFIED,"Unverified"],[r.q2.REQUIRES_INPUT,"Requires input"]])].map(e=>{let[t,l]=e;return{label:l,value:t}}),a=new Map([[r.Us.ACCESS,"Access"],[r.Us.ERASURE,"Erasure"],[r.Us.CONSENT,"Consent"],[r.Us.UPDATE,"Update"]]),n=[...a].map(e=>{let[t,l]=e;return{label:l,value:t}}),s={mailgun:"mailgun",twilio_email:"twilio_email",twilio_text:"twilio_text"},o={local:"local",s3:"s3"}},50259:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return es}});var r,i,a=l(24246),n=l(65464),s=l(52615),o=l(65218),d=l.n(o),u=l(27378),c=l(11596),p=l(38615),m=l(59003),h=l(92222),x=l(86677),v=l(45007),f=l(36223),y=l(62528),b=l(8540),_=l(72247),j=l(36768),g=l(95758),q=l(37760);let C={approved:{colorScheme:"success",label:"Approved"},complete:{label:"Completed",colorScheme:"success"},awaiting_email_send:{label:"Awaiting Email Send",colorScheme:"marble"},denied:{label:"Denied",colorScheme:"warning"},canceled:{label:"Canceled",colorScheme:"marble"},error:{label:"Error",colorScheme:"error"},in_processing:{label:"In Progress",colorScheme:"caution"},paused:{label:"Paused",colorScheme:"marble"},pending:{label:"New",colorScheme:"info"},identity_unverified:{label:"Unverified",colorScheme:"marble"},requires_input:{colorScheme:"alert",label:"Requires Input"}},E=e=>{let{value:t}=e;return(0,a.jsx)(b.A4,{color:C[t].colorScheme,value:C[t].label,"data-testid":"request-status-badge"})},R=e=>{let t,{daysLeft:l,timeframe:r=45,status:i,includeText:n=!1}=e;if(null==l||i===q.q2.COMPLETE||i===q.q2.CANCELED||i===q.q2.DENIED||i===q.q2.IDENTITY_UNVERIFIED)return null;let s=100*l/r;return s<25?t="error":s>=75?t="success":s>=25&&(t="warning"),(0,a.jsx)(b.A4,{value:n?"".concat(l," days left"):l.toString(),color:t})},w=e=>Array.from(new Set(e.filter(e=>Object.values(q.Us).includes(e.action_type)).map(e=>e.action_type))),S=e=>{let{value:t}=e,l=w(t).map(e=>g.rE.get(e));return(0,a.jsx)(b.WP,{value:l,cellState:{isExpanded:!0}})};var I=l(77650),P=l(21613),k=l(94723),T=l(25662);let D=e=>{let{subjectRequest:t,...l}=e,r=(0,s.qY0)(),i=(0,s.qY0)(),n=(0,s.qY0)(),{handleApproveRequest:o,handleDenyRequest:d,handleDeleteRequest:u,isLoading:c}=(0,T.Z)({subjectRequest:t});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(s.Ugi,{...l,children:["pending"!==t.status?null:(0,a.jsx)(s.wpx,{title:"Approve","aria-label":"Approve",icon:(0,a.jsx)(s.nQG,{w:2,h:2}),onClick:r.onOpen,loading:c,disabled:c,"data-testid":"privacy-request-approve-btn",size:"small"}),"pending"!==t.status?null:(0,a.jsx)(s.wpx,{title:"Deny","aria-label":"Deny",icon:(0,a.jsx)(s.Two,{w:2,h:2}),onClick:i.onOpen,loading:c,disabled:c,"data-testid":"privacy-request-deny-btn",size:"small"}),(0,a.jsx)(p.ZP,{scopes:[q.Sh.PRIVACY_REQUEST_DELETE],children:(0,a.jsx)(s.wpx,{title:"Delete","aria-label":"Delete",icon:(0,a.jsx)(s.pJl,{w:2,h:2}),onClick:n.onOpen,loading:c,disabled:c,"data-testid":"privacy-request-delete-btn",size:"small"})})]}),(0,a.jsx)(s.h_i,{children:(0,a.jsx)(P.Z,{isOpen:r.isOpen,isLoading:c,onClose:r.onClose,onApproveRequest:o,subjectRequest:t})}),(0,a.jsx)(s.h_i,{children:(0,a.jsx)(k.Z,{isOpen:i.isOpen,onClose:i.onClose,onDenyRequest:d})}),(0,a.jsx)(I.Z,{isOpen:n.isOpen,onClose:n.onClose,onConfirm:u,message:(0,a.jsx)(s.xvT,{children:"You are about to permanently delete the privacy request. Are you sure you would like to continue?"})})]})};(r=i||(i={})).STATUS="status",r.DAYS_LEFT="due_date",r.SOURCE="source",r.REQUEST_TYPE="request_type",r.SUBJECT_IDENTITY="subject_identity",r.TIME_RECEIVED="created_at",r.CREATED_BY="created_by",r.REVIEWER="reviewer",r.ID="id",r.ACTIONS="actions";let A=(0,h.Cl)(),O=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return[A.accessor(e=>e.status,{id:"status",cell:e=>{let{getValue:t}=e;return(0,a.jsx)(E,{value:t()})},header:e=>(0,a.jsx)(b.Rr,{value:"Status",...e})}),A.accessor(e=>e.days_left,{id:"due_date",cell:e=>{let{row:t,getValue:l}=e;return(0,a.jsx)(R,{daysLeft:l(),timeframe:t.original.policy.execution_timeframe,status:t.original.status})},header:e=>(0,a.jsx)(b.Rr,{value:"Days left",...e})}),...e?[A.accessor(e=>e.source,{id:"source",cell:e=>e.getValue()?(0,a.jsx)(b.A4,{value:e.getValue()}):(0,a.jsx)(b.G3,{value:void 0}),header:e=>(0,a.jsx)(b.Rr,{value:"Source",...e}),enableSorting:!1})]:[],A.accessor(e=>e.policy.rules,{id:"request_type",cell:e=>{let{getValue:t}=e;return(0,a.jsx)(S,{value:t()})},header:e=>(0,a.jsx)(b.Rr,{value:"Request type",...e}),enableSorting:!1}),A.accessor(e=>{var t,l;return(null===(t=e.identity)||void 0===t?void 0:t.email.value)||(null===(l=e.identity)||void 0===l?void 0:l.phone_number.value)||""},{id:"subject_identity",cell:e=>{let{getValue:t}=e;return(0,a.jsx)(b.G3,{value:t()})},header:e=>(0,a.jsx)(b.Rr,{value:"Subject identity",...e}),enableSorting:!1}),A.accessor(e=>e.created_at,{id:"created_at",cell:e=>{let{getValue:t}=e;return(0,a.jsx)(b.G3,{value:(0,j.p6)(t())})},header:e=>(0,a.jsx)(b.Rr,{value:"Time received",...e})}),A.accessor(e=>{var t;return(null===(t=e.reviewer)||void 0===t?void 0:t.username)||""},{id:"reviewer",cell:e=>{let{getValue:t}=e;return(0,a.jsx)(b.G3,{value:t()})},header:e=>(0,a.jsx)(b.Rr,{value:"Reviewed by",...e}),enableSorting:!1}),A.accessor(e=>e.id,{id:"id",cell:e=>{let{getValue:t}=e;return(0,a.jsx)(b.G3,{value:t()})},header:e=>(0,a.jsx)(b.Rr,{value:"Request ID",...e}),enableSorting:!1}),A.display({id:"actions",cell:e=>{let{row:t}=e;return(0,a.jsx)(D,{subjectRequest:t.original})},header:e=>(0,a.jsx)(b.Rr,{value:"Actions",...e}),meta:{disableRowClick:!0}})]},N=e=>{let t=(0,v.v9)(_.dp),l=(0,v.I0)();return{handleStatusChange:t=>{l((0,_.CI)(t)),e()},handleActionTypeChange:t=>{l((0,_.aM)(t)),e()},handleFromChange:t=>{l((0,_.su)(null==t?void 0:t.target.value)),e()},handleToChange:t=>{l((0,_.Ue)(null==t?void 0:t.target.value)),e()},handleClearAllFilters:()=>{l((0,_.Mk)()),e()},...t}};var U=l(9862);let F=e=>{let{onClose:t,onFilterChange:l,...r}=e,{handleStatusChange:i,handleActionTypeChange:n,handleFromChange:o,handleToChange:d,handleClearAllFilters:u,from:c,to:p,status:m,action_type:h}=N(l);return(0,a.jsxs)(s.u_l,{onClose:t,size:"xl",...r,children:[(0,a.jsx)(s.ZAr,{}),(0,a.jsxs)(s.hzk,{children:[(0,a.jsx)(s.xBx,{borderBottomWidth:1,borderBottomColor:"gray.200",children:"All Filters"}),(0,a.jsx)(s.olH,{}),(0,a.jsx)(s.fef,{py:4,sx:{"& label":{mb:0}},children:(0,a.jsxs)(s.Kqy,{gap:4,children:[(0,a.jsxs)(s.Kqy,{children:[(0,a.jsx)(s.lXp,{size:"md",id:"request-date-range-label",children:"Date range"}),(0,a.jsxs)(s.Ugi,{gap:3,children:[(0,a.jsxs)(s.BZy,{size:"sm",flex:1,children:[(0,a.jsx)(s.UiE,{as:"label",htmlFor:"from-date",borderRadius:"md",children:"From"}),(0,a.jsx)(s.IIB,{type:"date",name:"From",value:c,max:p||void 0,onChange:o,borderRadius:"md",id:"from-date","aria-describedby":"request-date-range-label"})]}),(0,a.jsxs)(s.BZy,{size:"sm",flex:1,children:[(0,a.jsx)(s.UiE,{as:"label",htmlFor:"to-date",borderRadius:"md",children:"To"}),(0,a.jsx)(s.IIB,{type:"date",borderRadius:"md",name:"To",value:p,min:c||void 0,onChange:d,id:"to-date","aria-describedby":"request-date-range-label"})]})]})]}),(0,a.jsxs)(s.Kqy,{children:[(0,a.jsx)(s.lXp,{size:"md",htmlFor:"request-status",children:"Status"}),(0,a.jsx)(U.z,{id:"request-status",mode:"multiple",options:g.I3,value:m,onChange:i,"data-testid":"request-status-filter"})]}),(0,a.jsxs)(s.Kqy,{children:[(0,a.jsx)(s.lXp,{size:"md",htmlFor:"request-action-type",children:"Request Type"}),(0,a.jsx)(U.z,{id:"request-action-type",mode:"multiple",options:g.kN,value:h,onChange:n,"data-testid":"request-action-type-filter"})]})]})}),(0,a.jsxs)(s.mzw,{justifyContent:"space-between",children:[(0,a.jsx)(s.wpx,{type:"text",onClick:u,children:"Clear all"}),(0,a.jsx)(s.wpx,{type:"primary",onClick:t,children:"Done"})]})]})]})},z=e=>{let{...t}=e,{plus:l}=(0,c.hz)(),[r,i]=(0,u.useState)(""),n=(0,v.v9)(_.dp),o=(0,v.v9)(f.rK),d=(0,s.pmc)(),p=(0,x.useRouter)(),j=(0,v.I0)(),{PAGE_SIZES:g,pageSize:q,setPageSize:C,onPreviousPageClick:E,isPreviousPageDisabled:R,onNextPageClick:w,isNextPageDisabled:S,startRange:I,endRange:P,pageIndex:k,setTotalPages:T,resetPageIndexToDefault:D}=(0,b.oi)(),{isOpen:A,onOpen:N,onClose:U}=(0,s.qY0)(),{data:z,isLoading:Z,isFetching:M}=(0,_.QA)({...n,page:k,size:q}),{items:V,total:Y}=(0,u.useMemo)(()=>{let e=z||{items:[],total:0,pages:0};return T(e.pages),e},[z,T]),G=(0,u.useCallback)(e=>{j((0,_.mU)(e)),i(e),D()},[j,D,i]),B=async()=>{let e;try{await (0,_.py)({...n,token:o})}catch(t){e=t instanceof Error?t.message:"Unknown error occurred"}e&&d({description:"".concat(e),duration:5e3,status:"error"})},L=e=>{p.push("/privacy-requests/".concat(e))},W=(0,m.b7)({getCoreRowModel:(0,h.sC)(),data:V,columns:(0,u.useMemo)(()=>O(l),[l]),getRowId:e=>"".concat(e.status,"-").concat(e.id),manualPagination:!0,columnResizeMode:"onChange"});return(0,a.jsxs)(s.xuv,{...t,children:[(0,a.jsxs)(b.Q$,{children:[(0,a.jsx)(b.HO,{globalFilter:r,setGlobalFilter:G,placeholder:"Search by request ID or identity value"}),(0,a.jsxs)(s.Ugi,{alignItems:"center",spacing:2,children:[(0,a.jsx)(s.wpx,{"data-testid":"filter-btn",onClick:N,children:"Filter"}),(0,a.jsx)(s.wpx,{"aria-label":"Export report","data-testid":"export-btn",icon:(0,a.jsx)(y.nM,{ml:"1.5px"}),onClick:B})]}),(0,a.jsx)(s.h_i,{children:(0,a.jsx)(F,{isOpen:A,onClose:U,onFilterChange:D})})]}),Z?(0,a.jsx)(s.xuv,{p:2,borderWidth:1,children:(0,a.jsx)(b.I4,{rowHeight:26,numRows:10})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b.ZK,{tableInstance:W,onRowClick:e=>L(e.id),onSort:e=>{if(!e){j((0,_.p2)()),D();return}let{id:t,desc:l}=e;j((0,_.PU)(t)),j((0,_.iX)(l?"desc":"asc")),D()}}),(0,a.jsx)(b.s8,{totalRows:Y||0,pageSizes:g,setPageSize:C,onPreviousPageClick:E,isPreviousPageDisabled:R||M,onNextPageClick:w,isNextPageDisabled:S||M,startRange:I,endRange:P})]})]})};var Z=l(60136),M=l(37440),V=l(16781),Y=l(34090),G=l(59389),B=l(34803);let L=(e,t)=>null==t?void 0:t.find(t=>t.policy_key===e),W=e=>{var t,l;if(!e)return G.Ry().shape({policy_key:G.Z_().required().label("Request type")});let r=e.custom_privacy_request_fields?Object.entries(e.custom_privacy_request_fields).map(e=>{let[t,l]=e;return{[t]:G.Ry().shape({value:l.required&&!l.hidden?G.Z_().required().label(l.label):G.Z_().nullable()})}}).reduce((e,t)=>({...e,...t}),{}):{};return G.Ry().shape({policy_key:G.Z_().required().label("Request type"),identity:G.Ry().shape({email:(null===(t=e.identity_inputs)||void 0===t?void 0:t.email)==="required"?G.Z_().email().required().label("Email address"):G.Z_().nullable(),phone_number:(null===(l=e.identity_inputs)||void 0===l?void 0:l.phone)==="required"?G.Z_().matches(/^\+?[1-9]\d{1,14}$/,"Phone number must be formatted correctly (e.g. 15555555555)").required().label("Phone number"):G.Z_().matches(/^\+?[1-9]\d{1,14}$/,"Phone number must be formatted correctly (e.g. 15555555555)").nullable()}),custom_privacy_request_fields:G.Ry().shape(r)})};var X=l(78973);let K={is_verified:!1,policy_key:"",identity:{}},Q=e=>{let{identityInputs:t}=e;return t?(0,a.jsxs)(a.Fragment,{children:[t.email?(0,a.jsx)(B.j0,{name:"identity.email",label:"User email address",isRequired:"required"===t.email,variant:"stacked"}):null,t.phone?(0,a.jsx)(B.j0,{name:"identity.phone_number",label:"User phone number",isRequired:"required"===t.phone,variant:"stacked"}):null]}):null},H=e=>{let{customFieldInputs:t}=e;if(!t)return null;let l=Object.entries(t);return(0,a.jsx)(a.Fragment,{children:l.map(e=>{let[t,l]=e;return(0,a.jsx)(B.j0,{name:"custom_privacy_request_fields.".concat(t,".value"),label:l.label,isRequired:!!l.required,variant:"stacked"},t)})})};var $=e=>{let{onSubmit:t,onCancel:l}=e,{data:r}=(0,_.xv)();return(0,a.jsx)(Y.J9,{initialValues:K,onSubmit:t,validationSchema:()=>(0,G.Vo)(e=>W(L(e.policy_key,null==r?void 0:r.actions))),children:e=>{var t;let{values:i,dirty:n,isValid:o,isSubmitting:d,setFieldValue:u}=e,c=L(i.policy_key,null==r?void 0:r.actions);return(0,a.jsx)(Y.l0,{children:(0,a.jsxs)(s.Kqy,{spacing:6,mb:2,children:[(0,a.jsx)(X.d,{name:"policy_key",label:"Request type",options:null!==(t=null==r?void 0:r.actions.map(e=>({label:e.title,value:e.policy_key})))&&void 0!==t?t:[],onChange:e=>{let t=L(e,null==r?void 0:r.actions);if(!(null==t?void 0:t.custom_privacy_request_fields)){u("custom_privacy_request_fields",void 0);return}u("custom_privacy_request_fields",Object.entries(t.custom_privacy_request_fields).map(e=>{let[t,l]=e;return{[t]:{label:l.label,value:l.default_value}}}).reduce((e,t)=>({...e,...t}),{}))},layout:"stacked",isRequired:!0}),(0,a.jsx)(Q,{identityInputs:null==c?void 0:c.identity_inputs}),(0,a.jsx)(H,{customFieldInputs:null==c?void 0:c.custom_privacy_request_fields}),(0,a.jsx)(B.Xl,{name:"is_verified",label:"I confirm that I have verified this user information"}),(0,a.jsxs)("div",{className:"flex gap-4 self-end",children:[(0,a.jsx)(s.wpx,{onClick:l,children:"Cancel"}),(0,a.jsx)(s.wpx,{htmlType:"submit",type:"primary",disabled:!i.is_verified||!n||!o,loading:d,"data-testid":"submit-btn",children:"Create"})]})]})})}})},J=l(43073);let ee=e=>{let{isOpen:t,onClose:l}=e,[r]=(0,_.M6)(),i=(0,s.pmc)(),n=async e=>{let{is_verified:t,...a}=e,n=a.custom_privacy_request_fields?Object.entries(a.custom_privacy_request_fields).map(e=>{let[t,l]=e;return l.value?{[t]:l}:{}}).reduce((e,t)=>({...e,...t}),{}):void 0,s={...a,custom_privacy_request_fields:n},o=await r([s]);(0,J.D4)(o)?i((0,V.Vo)((0,Z.e$)(o.error,"An error occurred while creating this privacy request. Please try again"))):i((0,V.t5)("Privacy request created")),l()};return(0,a.jsxs)(s.u_l,{isOpen:t,onClose:l,size:"2xl",isCentered:!0,children:[(0,a.jsx)(s.ZAr,{}),(0,a.jsxs)(s.hzk,{"data-testid":"submit-request-modal",maxHeight:"80%",overflowY:"auto",children:[(0,a.jsx)(s.xBx,{children:"Create privacy request"}),(0,a.jsx)(s.fef,{children:(0,a.jsxs)(s.Kqy,{spacing:4,children:[(0,a.jsx)(M.Z,{title:"Warning: You are bypassing identity verification",text:"You are bypassing Fides' built-in identity verification step. Please ensure that you are only entering information on behalf of a verified and approved user's privacy request."}),(0,a.jsx)($,{onSubmit:n,onCancel:()=>l()})]})})]})]})};var et=()=>{let{onOpen:e,isOpen:t,onClose:l}=(0,s.qY0)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ee,{isOpen:t,onClose:l}),(0,a.jsx)(s.wpx,{type:"primary",onClick:e,"data-testid":"submit-request-btn",children:"Create request"})]})},el=l(37541),er=l(53359);let ei=()=>{let{errorAlert:e}=(0,er.V)(),[t,l]=(0,u.useState)(!1),[r,i]=(0,u.useState)({count:0,total:0}),[n,o]=(0,u.useState)(!0),d=q.q2.ERROR,{data:c}=(0,_.tE)(),{data:p}=(0,_.QA)({status:[d]},{pollingInterval:15e3,skip:n});return(0,u.useEffect)(()=>{o(!(c&&c.notify_after_failures>0))},[c]),(0,u.useEffect)(()=>{let e=(null==p?void 0:p.total)||0;e>=((null==c?void 0:c.notify_after_failures)||0)&&e>r.total?(i({count:e-r.total,total:e}),l(!0)):l(!1)},[null==p?void 0:p.total,null==c?void 0:c.notify_after_failures,r.total]),{processing:()=>{t&&e((0,a.jsxs)(s.xuv,{children:["DSR automation has failed for"," ",(0,a.jsx)(s.xvT,{as:"span",fontWeight:"semibold",children:r.count})," ","privacy request(s). Please review the event log for further details."]}),void 0,{containerStyle:{maxWidth:"max-content"},duration:null,id:"dsrErrorAlert"})}}},ea=d()(()=>l.e(7528).then(l.bind(l,37528)),{loadableGenerated:{webpack:()=>[37528]},loading:()=>(0,a.jsx)("div",{children:"Loading..."})});var en=()=>{let{processing:e}=ei(),{plus:t}=(0,c.hz)();return(0,u.useEffect)(()=>{e()},[e]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(el.Z,{heading:"Privacy Requests",breadcrumbItems:[{title:"All requests"}],rightContent:(0,a.jsxs)(s.vyj,{children:[t&&(0,a.jsx)(p.ZP,{scopes:[q.Sh.PRIVACY_REQUEST_CREATE],children:(0,a.jsx)(et,{})}),(0,a.jsx)(ea,{})]}),"data-testid":"privacy-requests"}),(0,a.jsx)(z,{})]})},es=()=>(0,a.jsx)(n.Z,{title:"Privacy Requests",children:(0,a.jsx)(en,{})})},43073:function(e,t,l){"use strict";l.d(t,{Bw:function(){return r.Bw},D4:function(){return r.D4}});var r=l(41164)},23600:function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var l in t)Object.defineProperty(e,l,{enumerable:!0,get:t[l]})}(t,{default:function(){return s},noSSR:function(){return n}});let r=l(51538);l(24246),l(27378);let i=r._(l(45362));function a(e){return{default:(null==e?void 0:e.default)||e}}function n(e,t){return delete t.webpack,delete t.modules,e(t)}function s(e,t){let l=i.default,r={loading:e=>{let{error:t,isLoading:l,pastDelay:r}=e;return null}};e instanceof Promise?r.loader=()=>e:"function"==typeof e?r.loader=e:"object"==typeof e&&(r={...r,...e});let s=(r={...r,...t}).loader;return(r.loadableGenerated&&(r={...r,...r.loadableGenerated},delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr)?l({...r,loader:()=>null!=s?s().then(a):Promise.resolve(a(()=>null))}):(delete r.webpack,delete r.modules,n(l,r))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},91389:function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return r}});let r=l(51538)._(l(27378)).default.createContext(null)},45362:function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return p}});let r=l(51538)._(l(27378)),i=l(91389),a=[],n=[],s=!1;function o(e){let t=e(),l={loading:!0,loaded:null,error:null};return l.promise=t.then(e=>(l.loading=!1,l.loaded=e,e)).catch(e=>{throw l.loading=!1,l.error=e,e}),l}class d{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function u(e){return function(e,t){let l=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),a=null;function o(){if(!a){let t=new d(e,l);a={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return a.promise()}if(!s){let e=l.webpack?l.webpack():l.modules;e&&n.push(t=>{for(let l of e)if(t.includes(l))return o()})}function u(e,t){!function(){o();let e=r.default.useContext(i.LoadableContext);e&&Array.isArray(l.modules)&&l.modules.forEach(t=>{e(t)})}();let n=r.default.useSyncExternalStore(a.subscribe,a.getCurrentValue,a.getCurrentValue);return r.default.useImperativeHandle(t,()=>({retry:a.retry}),[]),r.default.useMemo(()=>{var t;return n.loading||n.error?r.default.createElement(l.loading,{isLoading:n.loading,pastDelay:n.pastDelay,timedOut:n.timedOut,error:n.error,retry:a.retry}):n.loaded?r.default.createElement((t=n.loaded)&&t.default?t.default:t,e):null},[e,n])}return u.preload=()=>o(),u.displayName="LoadableComponent",r.default.forwardRef(u)}(o,e)}function c(e,t){let l=[];for(;e.length;){let r=e.pop();l.push(r(t))}return Promise.all(l).then(()=>{if(e.length)return c(e,t)})}u.preloadAll=()=>new Promise((e,t)=>{c(a).then(e,t)}),u.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let l=()=>(s=!0,t());c(n,e).then(l,l)})),window.__NEXT_PRELOADREADY=u.preloadReady;let p=u},65218:function(e,t,l){e.exports=l(23600)}},function(e){e.O(0,[8033,2780,8540,6546,2888,9774,179],function(){return e(e.s=1565)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8161],{23321:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/properties/[id]",function(){return t(3770)}])},3770:function(e,r,t){"use strict";t.r(r);var n=t(24246),u=t(
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8161],{23321:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/properties/[id]",function(){return t(3770)}])},3770:function(e,r,t){"use strict";t.r(r);var n=t(24246),u=t(52615),i=t(86677),s=t(60136),c=t(43124),l=t(87162),o=t(37541),p=t(16781),a=t(96421),d=t(57353),f=t(43073);r.default=()=>{let e=(0,u.pmc)(),{id:r}=(0,i.useRouter)().query,{data:t}=(0,a.J6)(r),[_]=(0,a.f2)(),h=async r=>{let{id:t,messaging_templates:n,...u}=r,i=await _({id:t,property:u});if((0,f.D4)(i)){e((0,p.Vo)((0,s.e$)(i.error)));return}e((0,p.t5)("Property ".concat(r.name," updated successfully")))};return t?(0,n.jsxs)(c.Z,{title:t.name,children:[(0,n.jsx)(o.Z,{heading:"Properties",breadcrumbItems:[{title:"All properties",href:l.ru},{title:t.name}]}),(0,n.jsx)(u.xuv,{maxWidth:"720px",children:(0,n.jsx)(d.Z,{property:t,handleSubmit:h})})]}):null}}},function(e){e.O(0,[3528,1288,2888,9774,179],function(){return e(e.s=23321)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1855],{89772:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/properties/add-property",function(){return r(61575)}])},61575:function(e,t,r){"use strict";r.r(t);var n=r(24246),u=r(
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1855],{89772:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/properties/add-property",function(){return r(61575)}])},61575:function(e,t,r){"use strict";r.r(t);var n=r(24246),u=r(52615),c=r(86677),i=r(60136),s=r(43124),o=r(87162),a=r(37541),d=r(16781),p=r(96421),l=r(57353),_=r(43073);t.default=()=>{let e=(0,u.pmc)(),t=(0,c.useRouter)(),[r]=(0,p.dX)(),f=async n=>{let u=await r(n);if((0,_.D4)(u)){e((0,d.Vo)((0,i.e$)(u.error)));return}let c=u.data;e((0,d.t5)("Property ".concat(n.name," created successfully"))),t.push("".concat(o.ru,"/").concat(c.id))};return(0,n.jsxs)(s.Z,{title:"Add property",children:[(0,n.jsx)(a.Z,{heading:"Properties",breadcrumbItems:[{title:"All properties",href:o.ru},{title:"Add property"}]}),(0,n.jsx)(u.xuv,{maxWidth:"720px",children:(0,n.jsx)(l.Z,{handleSubmit:f})})]})}}},function(e){e.O(0,[3528,1288,2888,9774,179],function(){return e(e.s=89772)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7322],{29303:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/properties",function(){return i(4771)}])},4771:function(e,n,i){"use strict";i.r(n);var r=i(24246),s=i(
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7322],{29303:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/properties",function(){return i(4771)}])},4771:function(e,n,i){"use strict";i.r(n);var r=i(24246),s=i(52615),t=i(43124),o=i(37541),a=i(5784);n.default=()=>(0,r.jsxs)(t.Z,{title:"Properties",children:[(0,r.jsx)(o.Z,{heading:"Properties",children:(0,r.jsx)(s.xvT,{fontSize:"sm",width:{base:"100%",lg:"60%"},children:"Review and manage your properties below. Properties are the locations you have configured for consent management such as a website or mobile app."})}),(0,r.jsx)(a.V,{})]})}},function(e){e.O(0,[8033,2780,8540,7871,2888,9774,179],function(){return e(e.s=29303)}),_N_E=e.O()}]);
|