ethyca-fides 2.73.0rc3__py2.py3-none-any.whl → 2.73.1b0__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ethyca-fides might be problematic. Click here for more details.
- {ethyca_fides-2.73.0rc3.dist-info → ethyca_fides-2.73.1b0.dist-info}/METADATA +1 -1
- {ethyca_fides-2.73.0rc3.dist-info → ethyca_fides-2.73.1b0.dist-info}/RECORD +251 -247
- fides/_version.py +3 -3
- fides/api/alembic/alembic.ini +5 -1
- fides/api/alembic/migrations/env.py +7 -1
- fides/api/alembic/migrations/versions/xx_2025_10_17_1603_5093e92e2a5a_add_consent_data_v3_to_the_database.py +72 -0
- fides/api/api/v1/endpoints/privacy_request_endpoints.py +27 -0
- fides/api/db/database.py +33 -2
- fides/api/service/connectors/query_configs/saas_query_config.py +4 -1
- fides/api/service/connectors/saas_connector.py +24 -10
- fides/common/api/v1/urn_registry.py +1 -0
- fides/service/privacy_request/privacy_request_service.py +96 -38
- fides/ui-build/static/admin/404.html +1 -1
- fides/ui-build/static/admin/_next/static/XSgYbMHjEskI5VguCfcBR/_buildManifest.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{1099-fa8b82f521b23cce.js → 1099-31f9d973bc287df8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{1115-d7ce851b36722c41.js → 1115-26393b586775ea29.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{1437-9dd64c20d38667df.js → 1437-f0a5939b876d9c17.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{155-1c80b19f58f44a0c.js → 155-ac6ad9b8dcca4838.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{1817-0de0312294019817.js → 1817-e6bc6adb2c7fa009.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{1975.6ca0e76b5a3d1955.js → 1975.afe8cad52f904fcf.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{2040-a18cc21821e2d121.js → 2040-7c4bf37c65dd7efa.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{2397-16820a09e8ebfe33.js → 2397-d015b0f3da9292ea.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{2921-a5dac2eacdcc32ff.js → 2921-34a43f2f8f5e5e69.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3377-c2c9eb177bec8719.js → 3377-988ac2f3a2e8d5d4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3696-21e3dec6c2023875.js → 3696-06bce0f3d97a4253.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3700-a2903cd95b8a27cb.js → 3700-33ae8d975461a592.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3772-bb84842df51d3f3f.js → 3772-9f1713f9d5f97a10.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3873-d759bbe7137ae8c2.js → 3873-a20fdd3e4dc02037.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3923-7f0aa36c9e09cedf.js → 3923-724809b7b01193c5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{401-874303feb3899562.js → 401-7c345d019bb9bcbd.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{4496-903c81292ffd8f91.js → 4496-bad79edfbd60c0aa.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{4817-d0cc100f259b3c2e.js → 4817-1f3e6ea38625d8d5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5185-fc171b6acce9f915.js → 5185-950138b6e2ea9189.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5258-cf0d2c4c4d55a94b.js → 5258-99ddc37f9293e654.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5279-8637d735471ec7f1.js → 5279-a5ad59b09569d4a6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{549-2d9bde37e5fe13eb.js → 549-28537a6de666944b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5643-48a5e0ad8b9fc3f7.js → 5643-3f88087bcb270f9d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5783-63912bab7f80b0f8.js → 5783-e4683535810bf833.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6277-ec0e3fa4e4614098.js → 6277-0948f689ad31baf5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6315-79a1506e01f2f92b.js → 6315-14862cf3c0926cc4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6853-c348f6e95f987cbf.js → 6853-3545785c1264ac62.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6954-c44ac4e70e777c2f.js → 6954-750d97672d7f236c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/7059-5bd586186ec0b048.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{7245-120f536e09decb85.js → 7245-10e52bfd2268d1ea.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{7476-4234fb244676ec13.js → 7476-a0cb2b5987d5f06b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{7488-2db0992474f8056e.js → 7488-a3181357c4cce471.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{7630-d7bd74d0cfdb22df.js → 7630-a11610c2b31ab2ca.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{7773-6dce6187fe2c6984.js → 7773-9ae233109bc64ec2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{796-fae64888b8b2f369.js → 796-e36d610066135f8c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{8011-6e40c969c9fa7d35.js → 8011-da0efcd90c1af2f9.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{8212-18d8da0f9208f978.js → 8212-4e17ad3e2b18b1b2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{8373-24379b7d98e6922e.js → 8373-eddc22623b904f77.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9046-6428eac9f38b3886.js → 9046-37cc2a63e11821cf.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9330-540a113903cb3c28.js → 9330-a40d1db55b2a3b38.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9676.704cc210f59d0083.js → 9676.7d029a5383595b69.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9682-a3b2fb1a2df1c948.js → 9682-095307ea3955935a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9826-aecc5ddec86989dc.js → 9826-a737a9956c1d0905.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9899-303921e3d0697960.js → 9899-977da69f7dcc79a4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9965-6906ffdaef0f0d69.js → 9965-f175f3cbf6c01945.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{404-c31cef0ce3fbeebf.js → 404-eb019192ce498f32.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{_app-527b536ec8d40054.js → _app-0390fd020ce63363.js} +62 -62
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-a5865f42aafbe1f8.js → manual-7081e0e49f67716c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-f706664770dd3e7f.js → multiple-a188f84239f4b2a8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{add-systems-3f0d8698f01aabc5.js → add-systems-4fa95c55c0d9a9fa.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-fcd031b2b775e4f3.js → add-vendors-4f9cf087fcee87e6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-0bd2eb0110873c4d.js → configure-9af75caefc74eaca.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-0dd17c74a6cc17ff.js → [id]-1b02a4991201b7e4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-ae8dff75e1c6c413.js → privacy-experience-a218f663656c1c1f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-84ba8b9947b9af0a.js → [id]-8c164c4b8310214e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-f03d1d0df4661a33.js → new-db789002d84c8829.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-5a553b4bdbf85aa9.js → privacy-notices-1f8fd945fbc47ddf.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-5cba88e6839a087d.js → properties-5cba30eba1e97e56.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{reporting-f2690c381c1d1a52.js → reporting-c84cb8f86e537d05.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{consent-289d21aa6c42828b.js → consent-614af0a2c2ba966c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-cb56d56b9d918682.js → [projectUrn]-d60761c20382b259.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-ccb66ba6d1ad93fc.js → projects-f4f4a8d135573e7d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{resources-ecb2d925d75dfe1e.js → resources-aed94957009eb3fd.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{data-catalog-75403467491a251b.js → data-catalog-00fde32bfe883f11.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/datastore/[monitorId]-40b499229d5c2092.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/[monitorId]/{[systemId]-71cf0b06b3d5a326.js → [systemId]-3f0665ea305feb9a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/{[monitorId]-cc6b359fb4968bf0.js → [monitorId]-83aaac4f203d4e1e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-179cb2673fb04f82.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{activity-7dded115499a4a4a.js → activity-5cecc3db1b476419.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{datamap-d1bb19fe4ef393dc.js → datamap-3b100c44ea9e3988.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-58c3f4c0b490264b.js → [...subfieldNames]-5f88280db168083e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-74290432e74fcdc5.js → [collectionName]-bfbcf19c28c794ae.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-8dad45f070a06609.js → [datasetId]-6fbe2b584a509226.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{new-6aed6dc24c3be001.js → new-cc39d61f64dccdc8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{dataset-fdaec997c1b0753f.js → dataset-116b92a622ed7191.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-63c4805e40673c60.js → [id]-f40921f41ea86a4d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-b5a49743387eecef.js → new-48204230f9b28f9a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{datastore-connection-8f0804d9a38688a4.js → datastore-connection-5c660814b844888d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{index-363b091a4d1d70ad.js → index-1be29ec61e36ca69.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/{[id]-3b7f47985452e01d.js → [id]-d9fa9283fcffdbad.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{integrations-b0da32fe3564c129.js → integrations-88588fd42ec4b8c6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/new-privacy-requests-f5e954e44cac8c21.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests/{[id]-0e4e4e7110362022.js → [id]-aa358be796271bf9.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests/{new-2e15f6272e9aaeb6.js → new-09b57c415163db68.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/{digests-65626dfcfacdc605.js → digests-fc9c9c88e86d73ec.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers/{[key]-768c4e2f6b05304c.js → [key]-720cde29f81db47f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers/{new-2d57a70e4d32e651.js → new-3668866076b53016.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/{providers-83f78354fa34bffe.js → providers-617d0754570a09e8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates/{[id]-1b31764f520fbbc5.js → [id]-8063dceb32310c85.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates/{add-template-4c74456b6677bf07.js → add-template-4931c70bee62232f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/{templates-5deb80abd6156f7f.js → templates-e57aba990f23b454.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{notifications-8d8716dda9a6f277.js → notifications-93af719dab3bd053.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/{ant-components-52b1572442a20ab4.js → ant-components-9cfb469de7b4aeab.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{AntForm-a0437ba647d59799.js → AntForm-e715cc654fb6a5cd.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikAntFormItem-87285c544450ec46.js → FormikAntFormItem-72ae299bcb6adae6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikControlled-57997dbd451a6eed.js → FormikControlled-2337f8c81a766eb0.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikField-65009783e0404153.js → FormikField-0af454f55494f6fa.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/{forms-eafef007c179340f.js → forms-d1b90ffa996fbd89.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/{table-migration-7933a824a45d0ee6.js → table-migration-19724b9e0581b96d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{[id]-27c56466eab98b15.js → [id]-0f0f63b84617792e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{storage-16f77a6291bb02fe.js → storage-696222c67a086ddd.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-d2b3293ab496f7bc.js → configure-fa82cffba448ccd8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{privacy-requests-af4f48d10926e4a4.js → privacy-requests-6d9569f5c2da2aa4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-dd3c3d780533a9c2.js → [id]-bc1c289647e52c48.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-d1af260c3ddbf68b.js → add-property-cbfaa23d96f5ed0b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{properties-9bb7fe3577402008.js → properties-a15a3fd0ed88f39c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/{datamap-33ce744d07982c0f.js → datamap-3d499c861a0c2913.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/sandbox/privacy-notices-afe921f6e2a526fb.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/{[purpose_id]-35626e9d8e0a3ca2.js → [purpose_id]-971b628eec9d84d3.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{consent-39b5142099ed8705.js → consent-1702f4d95e93c1a2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{custom-fields-64c638ea33bb3ff9.js → custom-fields-181b9b545ad38141.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-3843fbaf5bc433f1.js → domain-records-3b87002753b23ca5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domains-ea549fabce96fde4.js → domains-aacd9d0ad47082d4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-0fe318a9dfc1f593.js → email-templates-3cdd0b39901190ba.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-c42c856510cad6fd.js → locations-5763dd57a6e15292.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-e4c552a5797c3fa5.js → organization-2d98e0170bc33490.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{privacy-requests-2790d31b59cc3c74.js → privacy-requests-084a2b4431d35322.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-3c608512c415fca4.js → regulations-b7c0d3b1b754e70f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/{test-datasets-e0e1a5142e41e9f2.js → test-datasets-7e62b3024a7c668c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-9e815520adb3e580.js → [id]-59c89489fa32a4cb.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{systems-d8ce572ad07ed28c.js → systems-1db858c1a3d0fcd7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-3248059d6f6060e6.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-75d96422db98196f.js → [id]-0f66bab70f303524.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-598f98fd88505e1e.js → user-management-f172e96aed81651b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{webpack-0a3b419ab682b8f9.js → webpack-c2c11809187b9f84.js} +1 -1
- fides/ui-build/static/admin/_next/static/css/598d88c40c789cbd.css +1 -0
- fides/ui-build/static/admin/_next/static/css/d41a048a166d50e4.css +1 -0
- fides/ui-build/static/admin/add-systems/manual.html +1 -1
- fides/ui-build/static/admin/add-systems/multiple.html +1 -1
- fides/ui-build/static/admin/add-systems.html +1 -1
- fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
- fides/ui-build/static/admin/consent/configure.html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
- fides/ui-build/static/admin/consent/properties.html +1 -1
- fides/ui-build/static/admin/consent/reporting.html +1 -1
- fides/ui-build/static/admin/consent.html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
- fides/ui-build/static/admin/data-catalog.html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/datastore/[monitorId].html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/datastore.html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/website/[monitorId]/[systemId].html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/website/[monitorId].html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/website.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/login/[provider].html +1 -1
- fides/ui-build/static/admin/login.html +1 -1
- fides/ui-build/static/admin/new-privacy-requests.html +1 -1
- fides/ui-build/static/admin/notifications/digests/[id].html +1 -1
- fides/ui-build/static/admin/notifications/digests/new.html +1 -1
- fides/ui-build/static/admin/notifications/digests.html +1 -1
- fides/ui-build/static/admin/notifications/providers/[key].html +1 -1
- fides/ui-build/static/admin/notifications/providers/new.html +1 -1
- fides/ui-build/static/admin/notifications/providers.html +1 -1
- fides/ui-build/static/admin/notifications/templates/[id].html +1 -1
- fides/ui-build/static/admin/notifications/templates/add-template.html +1 -1
- fides/ui-build/static/admin/notifications/templates.html +1 -1
- fides/ui-build/static/admin/notifications.html +1 -1
- fides/ui-build/static/admin/poc/ant-components.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/AntForm.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikAntFormItem.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikControlled.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikField.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikSpreadField.html +1 -1
- fides/ui-build/static/admin/poc/forms.html +1 -1
- fides/ui-build/static/admin/poc/table-migration.html +1 -1
- fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
- fides/ui-build/static/admin/privacy-requests.html +1 -1
- fides/ui-build/static/admin/properties/[id].html +1 -1
- fides/ui-build/static/admin/properties/add-property.html +1 -1
- fides/ui-build/static/admin/properties.html +1 -1
- fides/ui-build/static/admin/reporting/datamap.html +1 -1
- fides/ui-build/static/admin/sandbox/privacy-notices.html +1 -0
- fides/ui-build/static/admin/settings/about/alpha.html +1 -1
- fides/ui-build/static/admin/settings/about.html +1 -1
- fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +1 -1
- fides/ui-build/static/admin/settings/consent.html +1 -1
- fides/ui-build/static/admin/settings/custom-fields/[id].html +1 -1
- fides/ui-build/static/admin/settings/custom-fields/new.html +1 -1
- fides/ui-build/static/admin/settings/custom-fields.html +1 -1
- fides/ui-build/static/admin/settings/domain-records.html +1 -1
- fides/ui-build/static/admin/settings/domains.html +1 -1
- fides/ui-build/static/admin/settings/email-templates.html +1 -1
- fides/ui-build/static/admin/settings/locations.html +1 -1
- fides/ui-build/static/admin/settings/organization.html +1 -1
- fides/ui-build/static/admin/settings/privacy-requests.html +1 -1
- fides/ui-build/static/admin/settings/regulations.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id].html +1 -1
- fides/ui-build/static/admin/systems.html +1 -1
- fides/ui-build/static/admin/taxonomy.html +1 -1
- fides/ui-build/static/admin/user-management/new.html +1 -1
- fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
- fides/ui-build/static/admin/user-management.html +1 -1
- fides/ui-build/static/admin/_next/static/chunks/7059-3f2641e3130b4ef8.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/datastore/[monitorId]-e46e017a3919f94e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-cbff5db86e6951c4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/new-privacy-requests-d1152cbc3c1bbbbb.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-0cae23a599830708.js +0 -1
- fides/ui-build/static/admin/_next/static/css/919f947a862d28cd.css +0 -1
- fides/ui-build/static/admin/_next/static/iSH8D4nDpVZCfB-o7en4n/_buildManifest.js +0 -1
- {ethyca_fides-2.73.0rc3.dist-info → ethyca_fides-2.73.1b0.dist-info}/WHEEL +0 -0
- {ethyca_fides-2.73.0rc3.dist-info → ethyca_fides-2.73.1b0.dist-info}/entry_points.txt +0 -0
- {ethyca_fides-2.73.0rc3.dist-info → ethyca_fides-2.73.1b0.dist-info}/licenses/LICENSE +0 -0
- {ethyca_fides-2.73.0rc3.dist-info → ethyca_fides-2.73.1b0.dist-info}/top_level.txt +0 -0
- /fides/ui-build/static/admin/_next/static/{iSH8D4nDpVZCfB-o7en4n → XSgYbMHjEskI5VguCfcBR}/_ssgManifest.js +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/{[resourceUrn]-5d133ec635cd716c.js → [resourceUrn]-32bd7a7c990e5bf6.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/{[resourceUrn]-9d8efe43b69a285d.js → [resourceUrn]-b07a0707f8c2ec0d.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/{datastore-1b0ed3b3ceedfd94.js → datastore-4498881c26f1458d.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/{website-60ad14c879b4fe27.js → website-5b3e0009d442bc3f.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-2df143c1e1f79040.js → [resourceUrn]-b072cf25aefc98f6.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-e37c800313e2a422.js → detection-fd3e8817d8e6dee4.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-7022ca5fa834b633.js → [resourceUrn]-146624cf59792bf7.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-6178e22397f20f92.js → discovery-9695cc9c85592ec5.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/{[id]-b5140de4431a7ff5.js → [id]-8634aae3259def37.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/{new-dcc16459e754fbbd.js → new-2d9dcca17965dc57.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/user-management/{new-bc1568bb47d198a9.js → new-7dce2916cc589c54.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3316],{36136:function(e,l,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/poc/forms",function(){return n(71252)}])},33396:function(e,l,n){"use strict";n.r(l),n.d(l,{AntFormPOC:function(){return d}});var s=n(24246),i=n(87949),r=n(3124),t=n.n(r),a=n(27378),o=n(95813);let{Title:c}=i.AntTypography,d=()=>{let[e]=i.PPS.useForm(),[l,n]=(0,a.useState)(o.S);return(0,s.jsxs)(i.bue,{children:[(0,s.jsxs)(i.JGx,{span:12,children:[(0,s.jsx)(c,{level:2,children:"Pure Ant"}),(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsx)(i.j8w,{color:"success",children:"functional"}),(0,s.jsx)(i.j8w,{color:"success",children:"low effort"})]}),(0,s.jsxs)(i.PPS,{initialValues:{...o.S},form:e,layout:"vertical",onValuesChange:(e,l)=>{n(l)},children:[(0,s.jsx)(i.PPS.Item,{label:"Input",name:"input",children:(0,s.jsx)(i.AntInput,{"aria-label":"Input"})}),(0,s.jsx)(i.PPS.Item,{name:"radio",children:(0,s.jsxs)(i.y02.Group,{name:"radio",children:[(0,s.jsx)(i.y02,{value:"1",children:"Radio 1"}),(0,s.jsx)(i.y02,{value:"2",children:"Radio 2"})]})}),(0,s.jsx)(i.PPS.Item,{name:"checkbox",valuePropName:"checked",children:(0,s.jsx)(i.E_O,{children:"Checkbox"})}),(0,s.jsx)(i.PPS.Item,{label:"Switch",name:"switch",valuePropName:"checked",children:(0,s.jsx)(i.rAg,{})}),(0,s.jsx)(i.PPS.Item,{label:"Select",name:"select",children:(0,s.jsx)(i.WPr,{allowClear:!0,className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}],"aria-label":"Select"})}),(0,s.jsx)(i.PPS.Item,{label:"Multiselect",name:"multiselect",children:(0,s.jsx)(i.WPr,{mode:"multiple",allowClear:!0,className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}],"aria-label":"Select"})}),(0,s.jsx)(i.PPS.Item,{label:"Tags",name:"tags",children:(0,s.jsx)(i.WPr,{mode:"tags",allowClear:!0,className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}],"aria-label":"Select"})}),(0,s.jsx)(i.PPS.Item,{label:"Date",name:"date",children:(0,s.jsx)(i.cv2,{})}),(0,s.jsx)(i.PPS.Item,{label:"Number",name:"number",children:(0,s.jsx)(i.W7D,{"aria-label":"InputNumber"})})]})]}),(0,s.jsxs)(i.JGx,{span:8,offset:4,children:[(0,s.jsx)(c,{level:4,children:"Controlled Values"}),(0,s.jsx)(i.V4A,{style:{backgroundColor:t().FIDESUI_MINOS,color:t().FIDESUI_CORINTH},children:(0,s.jsx)("pre",{children:(0,s.jsxs)("code",{children:["{\n",Object.keys(l).map(e=>" ".concat(e.toString(),": ").concat(l[e],"\n")),"}"]})})})]})]})};l.default=d},35716:function(e,l,n){"use strict";n.r(l),n.d(l,{FormikAntFormItemPOC:function(){return d}});var s=n(24246),i=n(87949),r=n(3124),t=n.n(r),a=n(34090),o=n(95813);let{Title:c}=i.AntTypography,d=()=>(0,s.jsx)(a.J9,{initialValues:{...o.S},onSubmit:console.log,children:e=>{let{values:l,setFieldValue:n}=e;return(0,s.jsxs)(i.bue,{children:[(0,s.jsxs)(i.JGx,{span:12,children:[(0,s.jsx)(c,{level:2,children:"<Formik> + Controlled + Ant's <Form.Item>"}),(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsx)(i.j8w,{color:"success",children:"functional"}),(0,s.jsx)(i.j8w,{color:"warning",children:"mid effort"})]}),(0,s.jsx)(a.l0,{children:(0,s.jsxs)(i.jqI,{vertical:!0,children:[(0,s.jsx)(i.PPS.Item,{label:"Input",name:"input",layout:"vertical",children:(0,s.jsx)(i.AntInput,{onChange:e=>n("input",e.target.value),defaultValue:l.input})}),(0,s.jsxs)(i.y02.Group,{name:"radio",onChange:e=>n("radio",e.target.value),defaultValue:l.radio,children:[(0,s.jsx)(i.y02,{value:"1",children:"Radio 1"}),(0,s.jsx)(i.y02,{value:"2",children:"Radio 2"})]}),(0,s.jsx)(i.PPS.Item,{name:"checkbox",children:(0,s.jsx)(i.E_O,{onChange:e=>n("checkbox",e.target.checked),defaultChecked:l.checkbox,children:"Checkbox"})}),(0,s.jsx)(i.PPS.Item,{label:"Switch",name:"switch",layout:"vertical",children:(0,s.jsx)(i.rAg,{onChange:e=>n("switch",e),defaultChecked:l.switch})}),(0,s.jsx)(i.PPS.Item,{label:"Select",name:"select",layout:"vertical",children:(0,s.jsx)(i.WPr,{allowClear:!0,className:"w-full",defaultValue:l.select,onChange:e=>n("select",e),options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,s.jsx)(i.PPS.Item,{label:"Multiselect",name:"multiselect",layout:"vertical",children:(0,s.jsx)(i.WPr,{mode:"multiple",allowClear:!0,className:"w-full",defaultValue:l.multiselect,onChange:e=>n("multiselect",e),options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,s.jsx)(i.PPS.Item,{label:"Tags",name:"tags",layout:"vertical",children:(0,s.jsx)(i.WPr,{mode:"tags",allowClear:!0,className:"w-full",defaultValue:l.tags,onChange:e=>n("tags",e),options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,s.jsx)(i.PPS.Item,{label:"Date",name:"date",layout:"vertical",children:(0,s.jsx)(i.cv2,{onChange:e=>n("date",e.toISOString())})}),(0,s.jsx)(i.PPS.Item,{label:"Number",name:"number",layout:"vertical",children:(0,s.jsx)(i.W7D,{defaultValue:l.number,onChange:e=>n("number",e)})})]})})]}),(0,s.jsxs)(i.JGx,{span:8,offset:4,children:[(0,s.jsx)(c,{level:4,children:"Controlled Values"}),(0,s.jsx)(i.V4A,{style:{backgroundColor:t().FIDESUI_MINOS,color:t().FIDESUI_CORINTH},children:(0,s.jsx)("pre",{children:(0,s.jsxs)("code",{children:["{\n",Object.keys(l).map(e=>" ".concat(e,": ").concat(l[e],"\n")),"}"]})})})]})]})}});l.default=d},15957:function(e,l,n){"use strict";n.r(l),n.d(l,{FormikControlledPOC:function(){return d}});var s=n(24246),i=n(87949),r=n(3124),t=n.n(r),a=n(34090),o=n(95813);let{Title:c}=i.AntTypography,d=()=>(0,s.jsx)(a.J9,{initialValues:{...o.S},onSubmit:console.log,children:e=>{let{values:l,setFieldValue:n}=e;return(0,s.jsxs)(i.bue,{children:[(0,s.jsxs)(i.JGx,{span:12,children:[(0,s.jsx)(c,{level:2,children:"<Formik> + Controlled"}),(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsx)(i.j8w,{color:"success",children:"functional"}),(0,s.jsx)(i.j8w,{color:"error",children:"high effort"})]}),(0,s.jsx)(a.l0,{children:(0,s.jsxs)(i.jqI,{vertical:!0,gap:16,children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"input",children:"Input"}),(0,s.jsx)("div",{children:(0,s.jsx)(i.AntInput,{id:"input",onChange:e=>n("input",e.target.value),defaultValue:l.input})})]}),(0,s.jsx)("div",{children:(0,s.jsxs)(i.y02.Group,{name:"radio",onChange:e=>n("radio",e.target.value),defaultValue:l.radio,children:[(0,s.jsx)(i.y02,{value:"1",children:"Radio 1"}),(0,s.jsx)(i.y02,{value:"2",children:"Radio 2"})]})}),(0,s.jsx)("div",{children:(0,s.jsx)(i.E_O,{onChange:e=>n("checkbox",e.target.checked),defaultChecked:l.checkbox,children:"Checkbox"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"switch",children:"Switch"}),(0,s.jsx)("div",{children:(0,s.jsx)(i.rAg,{id:"switch",onChange:e=>n("switch",e),defaultChecked:l.switch})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"select",children:"Select"}),(0,s.jsx)("div",{children:(0,s.jsx)(i.WPr,{allowClear:!0,id:"select",defaultValue:l.select,onChange:e=>n("select",e),className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"multiselect",children:"Multiselect"}),(0,s.jsx)("div",{children:(0,s.jsx)(i.WPr,{mode:"multiple",allowClear:!0,id:"multiselect",defaultValue:l.multiselect,onChange:e=>n("multiselect",e),className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"tags",children:"Tags"}),(0,s.jsx)("div",{children:(0,s.jsx)(i.WPr,{mode:"tags",allowClear:!0,id:"tags",defaultValue:l.tags,onChange:e=>n("tags",e),className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"date",children:"Date"}),(0,s.jsx)("div",{children:(0,s.jsx)(i.cv2,{id:"date",onChange:e=>n("date",e.toISOString())})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"number",children:"Number"}),(0,s.jsx)("div",{children:(0,s.jsx)(i.W7D,{id:"number",defaultValue:l.number,onChange:e=>n("number",e)})})]})]})})]}),(0,s.jsxs)(i.JGx,{span:8,offset:4,children:[(0,s.jsx)(c,{level:4,children:"Controlled Values"}),(0,s.jsx)(i.V4A,{style:{backgroundColor:t().FIDESUI_MINOS,color:t().FIDESUI_CORINTH},children:(0,s.jsx)("pre",{children:(0,s.jsxs)("code",{children:["{\n",Object.keys(l).map(e=>" ".concat(e,": ").concat(l[e],"\n")),"}"]})})})]})]})}});l.default=d},82252:function(e,l,n){"use strict";n.r(l),n.d(l,{FormikFieldPOC:function(){return h}});var s=n(24246),i=n(87949),r=n(3124),t=n.n(r),a=n(34090),o=n(95813);let{Text:c,Title:d}=i.AntTypography,h=()=>(0,s.jsx)(a.J9,{initialValues:{...o.S},onSubmit:console.log,children:e=>{let{values:l}=e;return(0,s.jsxs)(i.bue,{children:[(0,s.jsxs)(i.JGx,{span:12,children:[(0,s.jsx)(d,{level:2,children:"<Formik> + <Field>"}),(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsx)(i.j8w,{color:"error",children:"non functional"}),(0,s.jsx)(i.j8w,{color:"error",children:"high effort"})]}),(0,s.jsx)(a.l0,{children:(0,s.jsxs)(i.jqI,{vertical:!0,gap:16,children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"input",children:"Input"}),(0,s.jsx)("div",{children:(0,s.jsx)(a.gN,{as:i.AntInput,id:"input",name:"input",type:"text"})})]}),(0,s.jsx)("div",{children:(0,s.jsxs)(a.gN,{as:i.y02.Group,name:"radio",children:[(0,s.jsx)(i.y02,{value:"1",children:"Radio 1"}),(0,s.jsx)(i.y02,{value:"2",children:"Radio 2"})]})}),(0,s.jsxs)("div",{children:[(0,s.jsx)(a.gN,{as:i.E_O,defaultChecked:l.checkbox,name:"checkbox",children:"Checkbox"}),(0,s.jsx)(c,{type:"warning",children:"Requires additional logic to handle default state"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"switch",children:"Switch"}),(0,s.jsx)("div",{children:(0,s.jsx)(a.gN,{as:i.rAg,id:"switch",name:"switch"})}),(0,s.jsxs)(c,{type:"danger",children:["Ant Switch's onChange is too different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"select",children:"Select"}),(0,s.jsx)("div",{children:(0,s.jsx)(a.gN,{as:i.WPr,allowClear:!0,id:"select",name:"select",className:"w-full",status:"error",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,s.jsxs)(c,{type:"danger",children:["Ant Select's onChange is too different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"multiselect",children:"Multiselect"}),(0,s.jsx)("div",{children:(0,s.jsx)(a.gN,{as:i.WPr,mode:"multiple",allowClear:!0,id:"multiselect",name:"multiselect",className:"w-full",status:"error",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,s.jsxs)(c,{type:"danger",children:["Ant Select's onChange is too different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"multiselect",children:"Tags"}),(0,s.jsx)("div",{children:(0,s.jsx)(a.gN,{as:i.WPr,mode:"tags",allowClear:!0,id:"tags",name:"tags",className:"w-full",status:"error",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,s.jsxs)(c,{type:"danger",children:["Ant Select's onChange is too different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"date",children:"Date"}),(0,s.jsx)("div",{children:(0,s.jsx)(a.gN,{as:i.cv2,id:"date",name:"date",status:"error"})}),(0,s.jsxs)(c,{type:"danger",children:["Ant DatePicker's onChange is different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"number",children:"Number"}),(0,s.jsx)("div",{children:(0,s.jsx)(a.gN,{as:i.W7D,id:"number",name:"number",status:"error"})}),(0,s.jsxs)(c,{type:"danger",children:["Ant InputNumber's onChange is different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]})]})})]}),(0,s.jsxs)(i.JGx,{span:8,offset:4,children:[(0,s.jsx)(d,{level:4,children:"Controlled Values"}),(0,s.jsx)(i.V4A,{style:{backgroundColor:t().FIDESUI_MINOS,color:t().FIDESUI_CORINTH},children:(0,s.jsx)("pre",{children:(0,s.jsxs)("code",{children:["{\n",Object.keys(l).map(e=>" ".concat(e,": ").concat(l[e],"\n")),"}"]})})})]})]})}});l.default=h},71252:function(e,l,n){"use strict";n.r(l),n.d(l,{FormsPOC:function(){return x}});var s=n(24246),i=n(87949),r=n(33396),t=n(35716),a=n(15957),o=n(82252),c=n(12921);let{Content:d}=i.AntLayout,{Title:h}=i.AntTypography,u=[{key:"1",label:"Formik + Controlled",children:(0,s.jsx)(a.FormikControlledPOC,{})},{key:"2",label:"Formik + Field",children:(0,s.jsx)(o.FormikFieldPOC,{})},{key:"3",label:"Formik + {...field}",children:(0,s.jsx)(c.FormikSpreadFieldPOC,{})},{key:"4",label:"Formik + Ant's Form.Item",children:(0,s.jsx)(t.FormikAntFormItemPOC,{})},{key:"5",label:"Ant Form",children:(0,s.jsx)(r.AntFormPOC,{})}],x=()=>(0,s.jsxs)(d,{className:"overflow-auto px-10 py-6",children:[(0,s.jsx)(i.bue,{children:(0,s.jsx)(h,{children:"Forms POC"})}),(0,s.jsx)(i.A5g,{defaultActiveKey:"1",items:u})]});l.default=x}},function(e){e.O(0,[2921,2888,9774,179],function(){return e(e.s=36136)}),_N_E=e.O()}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3316],{36136:function(e,l,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/poc/forms",function(){return n(71252)}])},33396:function(e,l,n){"use strict";n.r(l),n.d(l,{AntFormPOC:function(){return d}});var s=n(24246),i=n(98227),r=n(3124),t=n.n(r),a=n(27378),o=n(95813);let{Title:c}=i.AntTypography,d=()=>{let[e]=i.PPS.useForm(),[l,n]=(0,a.useState)(o.S);return(0,s.jsxs)(i.bue,{children:[(0,s.jsxs)(i.JGx,{span:12,children:[(0,s.jsx)(c,{level:2,children:"Pure Ant"}),(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsx)(i.j8w,{color:"success",children:"functional"}),(0,s.jsx)(i.j8w,{color:"success",children:"low effort"})]}),(0,s.jsxs)(i.PPS,{initialValues:{...o.S},form:e,layout:"vertical",onValuesChange:(e,l)=>{n(l)},children:[(0,s.jsx)(i.PPS.Item,{label:"Input",name:"input",children:(0,s.jsx)(i.AntInput,{"aria-label":"Input"})}),(0,s.jsx)(i.PPS.Item,{name:"radio",children:(0,s.jsxs)(i.y02.Group,{name:"radio",children:[(0,s.jsx)(i.y02,{value:"1",children:"Radio 1"}),(0,s.jsx)(i.y02,{value:"2",children:"Radio 2"})]})}),(0,s.jsx)(i.PPS.Item,{name:"checkbox",valuePropName:"checked",children:(0,s.jsx)(i.E_O,{children:"Checkbox"})}),(0,s.jsx)(i.PPS.Item,{label:"Switch",name:"switch",valuePropName:"checked",children:(0,s.jsx)(i.rAg,{})}),(0,s.jsx)(i.PPS.Item,{label:"Select",name:"select",children:(0,s.jsx)(i.WPr,{allowClear:!0,className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}],"aria-label":"Select"})}),(0,s.jsx)(i.PPS.Item,{label:"Multiselect",name:"multiselect",children:(0,s.jsx)(i.WPr,{mode:"multiple",allowClear:!0,className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}],"aria-label":"Select"})}),(0,s.jsx)(i.PPS.Item,{label:"Tags",name:"tags",children:(0,s.jsx)(i.WPr,{mode:"tags",allowClear:!0,className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}],"aria-label":"Select"})}),(0,s.jsx)(i.PPS.Item,{label:"Date",name:"date",children:(0,s.jsx)(i.cv2,{})}),(0,s.jsx)(i.PPS.Item,{label:"Number",name:"number",children:(0,s.jsx)(i.W7D,{"aria-label":"InputNumber"})})]})]}),(0,s.jsxs)(i.JGx,{span:8,offset:4,children:[(0,s.jsx)(c,{level:4,children:"Controlled Values"}),(0,s.jsx)(i.V4A,{style:{backgroundColor:t().FIDESUI_MINOS,color:t().FIDESUI_CORINTH},children:(0,s.jsx)("pre",{children:(0,s.jsxs)("code",{children:["{\n",Object.keys(l).map(e=>" ".concat(e.toString(),": ").concat(l[e],"\n")),"}"]})})})]})]})};l.default=d},35716:function(e,l,n){"use strict";n.r(l),n.d(l,{FormikAntFormItemPOC:function(){return d}});var s=n(24246),i=n(98227),r=n(3124),t=n.n(r),a=n(34090),o=n(95813);let{Title:c}=i.AntTypography,d=()=>(0,s.jsx)(a.J9,{initialValues:{...o.S},onSubmit:console.log,children:e=>{let{values:l,setFieldValue:n}=e;return(0,s.jsxs)(i.bue,{children:[(0,s.jsxs)(i.JGx,{span:12,children:[(0,s.jsx)(c,{level:2,children:"<Formik> + Controlled + Ant's <Form.Item>"}),(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsx)(i.j8w,{color:"success",children:"functional"}),(0,s.jsx)(i.j8w,{color:"warning",children:"mid effort"})]}),(0,s.jsx)(a.l0,{children:(0,s.jsxs)(i.jqI,{vertical:!0,children:[(0,s.jsx)(i.PPS.Item,{label:"Input",name:"input",layout:"vertical",children:(0,s.jsx)(i.AntInput,{onChange:e=>n("input",e.target.value),defaultValue:l.input})}),(0,s.jsxs)(i.y02.Group,{name:"radio",onChange:e=>n("radio",e.target.value),defaultValue:l.radio,children:[(0,s.jsx)(i.y02,{value:"1",children:"Radio 1"}),(0,s.jsx)(i.y02,{value:"2",children:"Radio 2"})]}),(0,s.jsx)(i.PPS.Item,{name:"checkbox",children:(0,s.jsx)(i.E_O,{onChange:e=>n("checkbox",e.target.checked),defaultChecked:l.checkbox,children:"Checkbox"})}),(0,s.jsx)(i.PPS.Item,{label:"Switch",name:"switch",layout:"vertical",children:(0,s.jsx)(i.rAg,{onChange:e=>n("switch",e),defaultChecked:l.switch})}),(0,s.jsx)(i.PPS.Item,{label:"Select",name:"select",layout:"vertical",children:(0,s.jsx)(i.WPr,{allowClear:!0,className:"w-full",defaultValue:l.select,onChange:e=>n("select",e),options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,s.jsx)(i.PPS.Item,{label:"Multiselect",name:"multiselect",layout:"vertical",children:(0,s.jsx)(i.WPr,{mode:"multiple",allowClear:!0,className:"w-full",defaultValue:l.multiselect,onChange:e=>n("multiselect",e),options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,s.jsx)(i.PPS.Item,{label:"Tags",name:"tags",layout:"vertical",children:(0,s.jsx)(i.WPr,{mode:"tags",allowClear:!0,className:"w-full",defaultValue:l.tags,onChange:e=>n("tags",e),options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,s.jsx)(i.PPS.Item,{label:"Date",name:"date",layout:"vertical",children:(0,s.jsx)(i.cv2,{onChange:e=>n("date",e.toISOString())})}),(0,s.jsx)(i.PPS.Item,{label:"Number",name:"number",layout:"vertical",children:(0,s.jsx)(i.W7D,{defaultValue:l.number,onChange:e=>n("number",e)})})]})})]}),(0,s.jsxs)(i.JGx,{span:8,offset:4,children:[(0,s.jsx)(c,{level:4,children:"Controlled Values"}),(0,s.jsx)(i.V4A,{style:{backgroundColor:t().FIDESUI_MINOS,color:t().FIDESUI_CORINTH},children:(0,s.jsx)("pre",{children:(0,s.jsxs)("code",{children:["{\n",Object.keys(l).map(e=>" ".concat(e,": ").concat(l[e],"\n")),"}"]})})})]})]})}});l.default=d},15957:function(e,l,n){"use strict";n.r(l),n.d(l,{FormikControlledPOC:function(){return d}});var s=n(24246),i=n(98227),r=n(3124),t=n.n(r),a=n(34090),o=n(95813);let{Title:c}=i.AntTypography,d=()=>(0,s.jsx)(a.J9,{initialValues:{...o.S},onSubmit:console.log,children:e=>{let{values:l,setFieldValue:n}=e;return(0,s.jsxs)(i.bue,{children:[(0,s.jsxs)(i.JGx,{span:12,children:[(0,s.jsx)(c,{level:2,children:"<Formik> + Controlled"}),(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsx)(i.j8w,{color:"success",children:"functional"}),(0,s.jsx)(i.j8w,{color:"error",children:"high effort"})]}),(0,s.jsx)(a.l0,{children:(0,s.jsxs)(i.jqI,{vertical:!0,gap:16,children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"input",children:"Input"}),(0,s.jsx)("div",{children:(0,s.jsx)(i.AntInput,{id:"input",onChange:e=>n("input",e.target.value),defaultValue:l.input})})]}),(0,s.jsx)("div",{children:(0,s.jsxs)(i.y02.Group,{name:"radio",onChange:e=>n("radio",e.target.value),defaultValue:l.radio,children:[(0,s.jsx)(i.y02,{value:"1",children:"Radio 1"}),(0,s.jsx)(i.y02,{value:"2",children:"Radio 2"})]})}),(0,s.jsx)("div",{children:(0,s.jsx)(i.E_O,{onChange:e=>n("checkbox",e.target.checked),defaultChecked:l.checkbox,children:"Checkbox"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"switch",children:"Switch"}),(0,s.jsx)("div",{children:(0,s.jsx)(i.rAg,{id:"switch",onChange:e=>n("switch",e),defaultChecked:l.switch})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"select",children:"Select"}),(0,s.jsx)("div",{children:(0,s.jsx)(i.WPr,{allowClear:!0,id:"select",defaultValue:l.select,onChange:e=>n("select",e),className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"multiselect",children:"Multiselect"}),(0,s.jsx)("div",{children:(0,s.jsx)(i.WPr,{mode:"multiple",allowClear:!0,id:"multiselect",defaultValue:l.multiselect,onChange:e=>n("multiselect",e),className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"tags",children:"Tags"}),(0,s.jsx)("div",{children:(0,s.jsx)(i.WPr,{mode:"tags",allowClear:!0,id:"tags",defaultValue:l.tags,onChange:e=>n("tags",e),className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"date",children:"Date"}),(0,s.jsx)("div",{children:(0,s.jsx)(i.cv2,{id:"date",onChange:e=>n("date",e.toISOString())})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"number",children:"Number"}),(0,s.jsx)("div",{children:(0,s.jsx)(i.W7D,{id:"number",defaultValue:l.number,onChange:e=>n("number",e)})})]})]})})]}),(0,s.jsxs)(i.JGx,{span:8,offset:4,children:[(0,s.jsx)(c,{level:4,children:"Controlled Values"}),(0,s.jsx)(i.V4A,{style:{backgroundColor:t().FIDESUI_MINOS,color:t().FIDESUI_CORINTH},children:(0,s.jsx)("pre",{children:(0,s.jsxs)("code",{children:["{\n",Object.keys(l).map(e=>" ".concat(e,": ").concat(l[e],"\n")),"}"]})})})]})]})}});l.default=d},82252:function(e,l,n){"use strict";n.r(l),n.d(l,{FormikFieldPOC:function(){return h}});var s=n(24246),i=n(98227),r=n(3124),t=n.n(r),a=n(34090),o=n(95813);let{Text:c,Title:d}=i.AntTypography,h=()=>(0,s.jsx)(a.J9,{initialValues:{...o.S},onSubmit:console.log,children:e=>{let{values:l}=e;return(0,s.jsxs)(i.bue,{children:[(0,s.jsxs)(i.JGx,{span:12,children:[(0,s.jsx)(d,{level:2,children:"<Formik> + <Field>"}),(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsx)(i.j8w,{color:"error",children:"non functional"}),(0,s.jsx)(i.j8w,{color:"error",children:"high effort"})]}),(0,s.jsx)(a.l0,{children:(0,s.jsxs)(i.jqI,{vertical:!0,gap:16,children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"input",children:"Input"}),(0,s.jsx)("div",{children:(0,s.jsx)(a.gN,{as:i.AntInput,id:"input",name:"input",type:"text"})})]}),(0,s.jsx)("div",{children:(0,s.jsxs)(a.gN,{as:i.y02.Group,name:"radio",children:[(0,s.jsx)(i.y02,{value:"1",children:"Radio 1"}),(0,s.jsx)(i.y02,{value:"2",children:"Radio 2"})]})}),(0,s.jsxs)("div",{children:[(0,s.jsx)(a.gN,{as:i.E_O,defaultChecked:l.checkbox,name:"checkbox",children:"Checkbox"}),(0,s.jsx)(c,{type:"warning",children:"Requires additional logic to handle default state"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"switch",children:"Switch"}),(0,s.jsx)("div",{children:(0,s.jsx)(a.gN,{as:i.rAg,id:"switch",name:"switch"})}),(0,s.jsxs)(c,{type:"danger",children:["Ant Switch's onChange is too different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"select",children:"Select"}),(0,s.jsx)("div",{children:(0,s.jsx)(a.gN,{as:i.WPr,allowClear:!0,id:"select",name:"select",className:"w-full",status:"error",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,s.jsxs)(c,{type:"danger",children:["Ant Select's onChange is too different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"multiselect",children:"Multiselect"}),(0,s.jsx)("div",{children:(0,s.jsx)(a.gN,{as:i.WPr,mode:"multiple",allowClear:!0,id:"multiselect",name:"multiselect",className:"w-full",status:"error",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,s.jsxs)(c,{type:"danger",children:["Ant Select's onChange is too different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"multiselect",children:"Tags"}),(0,s.jsx)("div",{children:(0,s.jsx)(a.gN,{as:i.WPr,mode:"tags",allowClear:!0,id:"tags",name:"tags",className:"w-full",status:"error",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,s.jsxs)(c,{type:"danger",children:["Ant Select's onChange is too different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"date",children:"Date"}),(0,s.jsx)("div",{children:(0,s.jsx)(a.gN,{as:i.cv2,id:"date",name:"date",status:"error"})}),(0,s.jsxs)(c,{type:"danger",children:["Ant DatePicker's onChange is different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"number",children:"Number"}),(0,s.jsx)("div",{children:(0,s.jsx)(a.gN,{as:i.W7D,id:"number",name:"number",status:"error"})}),(0,s.jsxs)(c,{type:"danger",children:["Ant InputNumber's onChange is different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]})]})})]}),(0,s.jsxs)(i.JGx,{span:8,offset:4,children:[(0,s.jsx)(d,{level:4,children:"Controlled Values"}),(0,s.jsx)(i.V4A,{style:{backgroundColor:t().FIDESUI_MINOS,color:t().FIDESUI_CORINTH},children:(0,s.jsx)("pre",{children:(0,s.jsxs)("code",{children:["{\n",Object.keys(l).map(e=>" ".concat(e,": ").concat(l[e],"\n")),"}"]})})})]})]})}});l.default=h},71252:function(e,l,n){"use strict";n.r(l),n.d(l,{FormsPOC:function(){return x}});var s=n(24246),i=n(98227),r=n(33396),t=n(35716),a=n(15957),o=n(82252),c=n(12921);let{Content:d}=i.AntLayout,{Title:h}=i.AntTypography,u=[{key:"1",label:"Formik + Controlled",children:(0,s.jsx)(a.FormikControlledPOC,{})},{key:"2",label:"Formik + Field",children:(0,s.jsx)(o.FormikFieldPOC,{})},{key:"3",label:"Formik + {...field}",children:(0,s.jsx)(c.FormikSpreadFieldPOC,{})},{key:"4",label:"Formik + Ant's Form.Item",children:(0,s.jsx)(t.FormikAntFormItemPOC,{})},{key:"5",label:"Ant Form",children:(0,s.jsx)(r.AntFormPOC,{})}],x=()=>(0,s.jsxs)(d,{className:"overflow-auto px-10 py-6",children:[(0,s.jsx)(i.bue,{children:(0,s.jsx)(h,{children:"Forms POC"})}),(0,s.jsx)(i.A5g,{defaultActiveKey:"1",items:u})]});l.default=x}},function(e){e.O(0,[2921,2888,9774,179],function(){return e(e.s=36136)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3564],{22657:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/poc/table-migration",function(){return t(26161)}])},6675:function(e,s,t){"use strict";t.d(s,{ZS:function(){return i},a4:function(){return l}});var n=t(3228);let a=t(78780).u.injectEndpoints({endpoints:e=>({getPurposes:e.query({query:()=>"purposes"})})}),{useGetPurposesQuery:l}=a,r={purposes:{},special_purposes:{}},i=(0,n.P1)(a.endpoints.getPurposes.select(),e=>{let{data:s}=e;return s||r})},48347:function(e,s,t){"use strict";t.d(s,{W:function(){return o},m:function(){return u}});var n=t(24246),a=t(
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3564],{22657:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/poc/table-migration",function(){return t(26161)}])},6675:function(e,s,t){"use strict";t.d(s,{ZS:function(){return i},a4:function(){return l}});var n=t(3228);let a=t(78780).u.injectEndpoints({endpoints:e=>({getPurposes:e.query({query:()=>"purposes"})})}),{useGetPurposesQuery:l}=a,r={purposes:{},special_purposes:{}},i=(0,n.P1)(a.endpoints.getPurposes.select(),e=>{let{data:s}=e;return s||r})},48347:function(e,s,t){"use strict";t.d(s,{W:function(){return o},m:function(){return u}});var n=t(24246),a=t(98227),l=t(32885);let{Text:r,Title:i}=a.AntTypography,o=()=>{let{isOpen:e,onOpen:s,onClose:t}=(0,a.qY0)();return{isOpen:e,onOpen:s,onClose:t}},u=e=>{let{isOpen:s,onClose:t,fidesKey:o}=e,{data:u,isLoading:c}=(0,l.ho)(o),d=(e,s)=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i,{level:5,children:e}),(null==s?void 0:s.length)?(0,n.jsx)("div",{children:(0,n.jsx)(a.vyj,{size:[0,2],wrap:!0,children:null==s?void 0:s.map(e=>(0,n.jsx)(a.j8w,{children:e},e))})}):(0,n.jsxs)(r,{italic:!0,children:["no known ",e.toLowerCase()]})]});return(0,n.jsxs)(a.u_l,{isOpen:s,onClose:t,size:"xxl",returnFocusOnClose:!1,isCentered:!0,children:[(0,n.jsx)(a.ZAr,{}),(0,n.jsxs)(a.hzk,{maxWidth:"800px",children:[(0,n.jsx)(a.xBx,{children:u?null==u?void 0:u.name:"Vendor"}),(0,n.jsx)(a.fef,{children:c?(0,n.jsx)(a.jqI,{className:"h-80 w-full",align:"center",justify:"center",children:(0,n.jsx)(a.$jN,{})}):!!u&&(0,n.jsxs)(a.AntTypography,{children:[(0,n.jsx)(i,{level:5,children:"Purposes"}),Object.entries(u.purposes||{}).length>0?(0,n.jsx)(a.UQy,{allowMultiple:!0,children:Object.entries(u.purposes).map((e,s)=>{let[t]=e;return(0,n.jsx)(a.Qdk,{children:e=>{let{isExpanded:s}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a.KFZ,{backgroundColor:s?"gray.50":"unset",children:[(0,n.jsx)(a.xuv,{flex:"1",textAlign:"left",children:t}),(0,n.jsx)(a.XEm,{})]}),(0,n.jsxs)(a.Hk3,{backgroundColor:"gray.50",children:[(0,n.jsx)(a.jqI,{className:"my-4",vertical:!0,children:d("Data uses",u.purposes[t].data_uses)}),(0,n.jsx)(a.jqI,{className:"my-4",vertical:!0,children:d("Legal basis",u.purposes[t].legal_bases)})]})]})}},s)})}):(0,n.jsx)(r,{italic:!0,children:"no known purposes"}),(0,n.jsx)("div",{className:"my-4",children:d("Features",u.features)}),(0,n.jsx)("div",{className:"my-4",children:d("Data categories",u.data_categories)})]})}),(0,n.jsxs)(a.mzw,{children:[(0,n.jsx)(a.wpx,{size:"small",onClick:t,children:"Close"}),(0,n.jsx)(a.LZC,{})]})]})]})}},26161:function(e,s,t){"use strict";t.r(s),t.d(s,{TableMigrationPOC:function(){return C}});var n=t(24246),a=t(25980),l=t(98227),r=t(86677),i=t(27378),o=t(16134),u=t(77830),c=t(6675),d=t(32735),p=t(23923),x=t(48347),j=t(28079),h=t(32885);let{Content:g}=l.AntLayout,{Title:m,Paragraph:f}=l.AntTypography,_=[{text:"Advertising",value:"advertising"},{text:"Analytics",value:"analytics"},{text:"Functional",value:"functional"},{text:"Essential",value:"essential"}],y=[{text:"Consent",value:"Consent"},{text:"Legitimate Interest",value:"Legitimate interests"}],C=()=>{let{tcf:e,dictionaryService:s}=(0,a.hz)(),t=(0,r.useRouter)(),[C,v]=(0,i.useState)(""),[b,k]=(0,i.useState)(""),[w,I]=(0,i.useState)(25),[S,T]=(0,i.useState)(1),[N,O]=(0,i.useState)(),[A,z]=(0,i.useState)({});(0,j.fd)();let E=(0,o.C)(j.U3);(0,c.a4)();let P=(0,o.C)(c.ZS),V=(0,i.useMemo)(()=>[...Object.entries(P.purposes).map(e=>{let[s,t]=e;return{text:t.name,value:s}}),...Object.entries(P.special_purposes).map(e=>{let[s,t]=e;return{text:t.name,value:s}})],[P]),L=(0,i.useMemo)(()=>E.map(e=>({text:e.name||e.fides_key,value:e.fides_key})),[E]),{isOpen:q,onOpen:F,onClose:U}=(0,x.W)(),Z=(()=>{let e=(A.data_uses||[]).map(e=>"data_uses=".concat(encodeURIComponent(e))).join("&");return{dataUses:e,legalBasis:(A.legal_bases||[]).map(e=>"legal_bases=".concat(encodeURIComponent(e))).join("&"),purposes:(A.tcf_purpose||[]).map(e=>"purposes=".concat(encodeURIComponent(e))).join("&"),specialPurposes:"",consentCategories:(A.consent_categories||[]).map(e=>"consent_category=".concat(encodeURIComponent(e))).join("&")}})(),{data:M,isLoading:R}=(0,h.de)({pageIndex:S,pageSize:w,search:b,...Z}),D=(null==M?void 0:M.total)||0,B=(null==M?void 0:M.items)||[];(0,i.useEffect)(()=>{let e=setTimeout(()=>{k(C),1!==S&&T(1)},300);return()=>clearTimeout(e)},[C]);let K=(0,i.useCallback)(e=>{v(e.target.value)},[]),W=e=>{O(e.fides_key),F()},X=[{title:"Vendor",dataIndex:"name",key:"name",filteredValue:A.name||null},...e?[{title:"TCF purpose",dataIndex:"data_uses",key:"tcf_purpose",render:e=>(0,n.jsxs)(l.j8w,{children:[e," ",1===e?"purpose":"purposes"]}),filters:V,filteredValue:A.tcf_purpose||null},{title:"Data use",dataIndex:"data_uses",key:"data_uses",render:e=>(0,n.jsxs)(l.j8w,{children:[e," ",1===e?"data use":"data uses"]}),filters:L,filteredValue:A.data_uses||null},{title:"Legal basis",dataIndex:"legal_bases",key:"legal_bases",render:e=>(0,n.jsxs)(l.j8w,{children:[e," ",1===e?"basis":"bases"]}),filters:y,filteredValue:A.legal_bases||null}]:[{title:"Categories",dataIndex:"consent_categories",key:"consent_categories",render:e=>(0,n.jsxs)(l.j8w,{children:[e," ",1===e?"category":"categories"]}),filters:_,filteredValue:A.consent_categories||null},{title:"Cookies",dataIndex:"cookies",key:"cookies",render:e=>(0,n.jsxs)(l.j8w,{children:[e," ",1===e?"cookie":"cookies"]})}]];return(0,n.jsxs)(g,{className:"overflow-auto px-10 py-6",children:[(0,n.jsx)(l.bue,{children:(0,n.jsx)(m,{children:"Table Migration POC"})}),(0,n.jsx)(f,{className:"mb-6",children:"This is a demonstration of migrating the ConsentManagementTable from TanStack Table to Ant Design Table with built-in filtering."}),q&&N?(0,n.jsx)(x.m,{isOpen:q,fidesKey:N,onClose:U}):null,(0,n.jsxs)(l.jqI,{justify:"space-between",align:"center",className:"mb-4",children:[(0,n.jsx)(l.AntInput.Search,{placeholder:"Search",onSearch:e=>{v(e)},style:{width:300},value:C,onChange:K}),(0,n.jsxs)(l.vyj,{size:8,children:[(0,n.jsx)(p.Z,{buttonLabel:"Add vendors",onButtonClick:s?()=>{t.push(u.Gg)}:void 0}),(0,n.jsx)(l.wpx,{onClick:()=>{z({})},children:"Clear filters"})]})]}),(0,n.jsx)(l.V5H,{dataSource:B,columns:X,loading:R,rowKey:"id",pagination:{current:S,pageSize:w,pageSizeOptions:d.VZ,total:D},onChange:(e,s)=>{T(e.current),I(e.pageSize),z(s)},onRow:e=>({onClick:()=>W(e),style:{cursor:"pointer"}}),size:"small"})]})};s.default=C}},function(e){e.O(0,[401,3923,2888,9774,179],function(){return e(e.s=22657)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9650],{6554:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/privacy-requests/[id]",function(){return i(51947)}])},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return p}});var n=i(24246),s=i(87949),l=i(88038),a=i.n(l),r=i(86677);i(27378);var o=i(25980),c=i(90867),d=i(42478),u=i(77830),m=()=>{let e=(0,r.useRouter)();return(0,n.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(s.xuv,{children:[(0,n.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(s.wpx,{onClick:()=>{e.push(u.AD)},children:"Configure"})]}),(0,n.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:i,padded:l=!0,mainProps:u}=e,p=(0,o.hz)(),h=(0,r.useRouter)(),x="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,g=!(p.flags.messagingConfiguration&&x),{data:v}=(0,d.JE)(void 0,{skip:g}),{data:j}=(0,c.PW)(void 0,{skip:g}),y=p.flags.messagingConfiguration&&(!v||!j)&&x;return(0,n.jsxs)(s.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(a(),{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:l?6:0,px:l?10:0,h:l?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[y?(0,n.jsx)(m,{}):null,t]})]})}},45259:function(e,t,i){"use strict";var n=i(24246),s=i(87949);let l={approved:{color:s.tAb.SUCCESS,label:"Approved"},complete:{color:s.tAb.SUCCESS,label:"Completed"},awaiting_email_send:{color:s.tAb.MARBLE,label:"Awaiting Email Send"},denied:{color:s.tAb.WARNING,label:"Denied"},canceled:{color:s.tAb.MARBLE,label:"Canceled"},error:{color:s.tAb.ERROR,label:"Error"},in_processing:{color:s.tAb.CAUTION,label:"In Progress"},paused:{color:s.tAb.MARBLE,label:"Paused"},pending:{color:s.tAb.INFO,label:"New"},identity_unverified:{color:s.tAb.MARBLE,label:"Unverified"},requires_input:{color:s.tAb.MINOS,label:"Requires Input"},requires_manual_finalization:{color:s.tAb.MINOS,label:"Requires Finalization"}};t.Z=e=>{let{status:t}=e;return(0,n.jsx)(s.j8w,{color:l[t].color,className:"justify-center","data-testid":"request-status-badge",children:l[t].label})}},51947:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return eK}});var n,s,l,a,r=i(24246),o=i(87949),c=i(86677),d=i(77213),u=i(77830),m=i(58754),p=i(99716),h=i(27378),x=i(65735),g=i(19904);(n=l||(l={})).IN_PROCESSING="in_processing",n.PENDING="pending",n.COMPLETE="complete",n.ERROR="error",n.PAUSED="paused",n.AWAITING_PROCESSING="awaiting_processing",n.RETRYING="retrying",n.SKIPPED="skipped",n.POLLING="polling";let v={in_processing:"In processing",pending:"Pending",complete:"Complete",error:"Error",paused:"Paused",awaiting_processing:"Awaiting input",retrying:"Retrying",skipped:"Skipped",polling:"Awaiting polling"},j={error:o.tAb.ERROR,skipped:o.tAb.WARNING,awaiting_processing:o.tAb.MINOS,in_processing:void 0,pending:void 0,complete:void 0,paused:void 0,retrying:void 0,polling:o.tAb.WARNING};(s=a||(a={})).REQUEST_UPDATE="Request update",s.INTERNAL_COMMENT="Internal comment",s.MANUAL_TASK="Manual task";let y={"Request update":o.tAb.SANDSTONE,"Internal comment":o.tAb.MARBLE,"Manual task":o.tAb.NECTAR};var f=i(90005),_=i.n(f),b=i(16394),T=i(38450),w=i.n(T);let A=e=>{let{attachments:t}=e;if(!t.length)return null;if(1===t.length){let e=t[0];return(0,r.jsx)("div",{className:"flex flex-wrap gap-2 text-sm text-gray-600","data-testid":"activity-timeline-attachments",children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)(o.PJP.PgN,{className:"mr-1 size-4"}),(0,r.jsx)(o.AntTypography.Text,{ellipsis:{tooltip:!0},className:"!max-w-[200px]",children:e.file_name})]})})}let i=(0,r.jsx)("ul",{className:"list-disc pl-4",children:t.map(e=>(0,r.jsx)("li",{children:e.file_name},e.id))});return(0,r.jsx)("div",{className:"flex flex-wrap gap-2 text-sm text-gray-600","data-testid":"activity-timeline-attachments",children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)(o.PJP.PgN,{className:"mr-1 size-4"}),(0,r.jsx)(o.esZ,{title:i,children:(0,r.jsxs)(o.AntTypography.Text,{ellipsis:!0,className:"!max-w-[200px]",children:[t.length," attachments"]})})]})})};var E=e=>{let{item:t}=e,{author:i,title:n,date:s,type:l,onClick:c,isError:d,isAwaitingInput:u,isPolling:m,description:p,attachments:h,showViewLog:x}=t,g=(0,b.p6)(s),v=!!c,j=h&&h.length>0,f=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:w().header,children:[(0,r.jsxs)("span",{className:w().author,"data-testid":"activity-timeline-author",children:[i,":"]}),n&&(0,r.jsxs)(o.AntTypography.Text,{className:_()(w().title,{[w()["title--error"]]:d,[w()["title--awaiting-input"]]:u,[w()["title--polling"]]:m}),ellipsis:{tooltip:!0},"data-testid":"activity-timeline-title",children:[n,d&&" failed"]}),(0,r.jsx)("div",{className:"hidden xl:block",children:(0,r.jsx)(o.AntTypography.Text,{className:w().timestamp,"data-testid":"activity-timeline-timestamp",children:g})}),(0,r.jsx)("div",{className:"xl:hidden",children:(0,r.jsx)(o.esZ,{title:g,children:(0,r.jsx)(o.PJP.qpU,{"data-testid":"activity-timeline-timestamp-icon"})})}),(0,r.jsx)(o.j8w,{className:w().type,color:y[l],"data-testid":"activity-timeline-type",children:l}),x&&(0,r.jsx)("span",{className:w().viewLogs,"data-testid":"activity-timeline-view-logs",children:"View Log"})]}),(p||j)&&(0,r.jsxs)("div",{className:"mt-2 flex justify-between pl-2.5 align-top",children:[(0,r.jsx)(o.AntTypography.Paragraph,{className:"!mb-0 whitespace-pre-wrap","data-testid":"activity-timeline-description",children:p||""}),j&&(0,r.jsx)(A,{attachments:h})]})]}),T={className:_()(w().itemButton,{[w()["itemButton--error"]]:d,[w()["itemButton--awaiting-input"]]:u,[w()["itemButton--polling"]]:m,[w()["itemButton--clickable"]]:v,[w()["itemButton--comment"]]:l===a.INTERNAL_COMMENT,[w()["itemButton--manual-task"]]:l===a.MANUAL_TASK}),"data-testid":"activity-timeline-item"};return v?(0,r.jsx)("button",{type:"button",onClick:c,...T,children:f}):(0,r.jsx)("div",{...T,children:f})},R=i(25980),C=i(54427),N=i(78780);let{useGetCommentsQuery:S,useCreateCommentMutation:k,useGetCommentDetailsQuery:q,useLazyGetCommentDetailsQuery:P}=N.u.injectEndpoints({endpoints:e=>({getComments:e.query({query:e=>{let{privacy_request_id:t,page:i=1,size:n}=e;return{url:"plus/privacy-request/".concat(t,"/comment"),method:"GET",params:{page:i,size:n}}},providesTags:["Privacy Request Comments"]}),createComment:e.mutation({query:e=>{let{privacy_request_id:t,comment_text:i,comment_type:n}=e,s=new FormData;return s.append("comment_text",i),s.append("comment_type",n),{url:"plus/privacy-request/".concat(t,"/comment"),method:"POST",body:s,formData:!0}},invalidatesTags:["Privacy Request Comments","Request"]}),getCommentDetails:e.query({query:e=>{let{privacy_request_id:t,comment_id:i}=e;return{url:"plus/privacy-request/".concat(t,"/comment/").concat(i),method:"GET"}}})})}),{reducer:I}=(0,C.oM)({name:"privacyRequestComments",initialState:{},reducers:{}}),O=e=>{let{plus:t}=(0,R.hz)(),{data:i,isLoading:n,error:s}=S({privacy_request_id:e,size:100},{skip:!t});return(0,h.useEffect)(()=>{s&&o.Pg3.error("Failed to fetch the request comments")},[s]),{commentItems:(null==i?void 0:i.items)?i.items.map(e=>({author:e.user_first_name&&e.user_last_name?"".concat(e.user_first_name," ").concat(e.user_last_name):e.username||"Unknown",date:new Date(e.created_at),type:a.INTERNAL_COMMENT,showViewLog:!1,description:e.comment_text,isError:!1,isSkipped:!1,isAwaitingInput:!1,isPolling:!1,id:"comment-".concat(e.id)})):[],isLoading:n}},D=(e,t)=>{if(0===e.length)return!1;let i=Array.from(e).sort((e,t)=>new Date(t.updated_at).getTime()-new Date(e.updated_at).getTime());if(!i[0].collection_name)return i[0].status===t;let n={};return i.forEach(e=>{e.collection_name&&!n[e.collection_name]&&(n[e.collection_name]=e)}),Object.values(n).some(e=>e.status===t)},M=e=>D(e,l.ERROR),L=e=>D(e,l.SKIPPED),U=e=>D(e,l.AWAITING_PROCESSING),z=e=>D(e,l.POLLING),W=e=>{let t=!e;return{eventItems:e?Object.entries(e).map(e=>{let[t,i]=e,n=M(i),s=L(i),l=U(i),r=z(i);return{author:"Fides",title:t,date:new Date(i[0].updated_at),type:a.REQUEST_UPDATE,showViewLog:n||s||l||r,onClick:()=>{},isError:n,isSkipped:s,isAwaitingInput:l,isPolling:r,id:"request-".concat(t)}}):[],isLoading:t}};var B=i(91317),F=i(45116);let G=e=>{let{plus:t}=(0,R.hz)(),{data:i,isLoading:n,error:s}=(0,F.Ym)({page:1,size:100,privacy_request_id:e,status:void 0,include_full_submission_details:!0},{skip:!t});return(0,h.useEffect)(()=>{s&&o.Pg3.error("Failed to fetch manual tasks")},[s]),{manualTaskItems:i?i.items.filter(e=>e.status===x.OS.COMPLETED||e.status===x.OS.SKIPPED).map(e=>{var t,i;let n=e.submission_user?(0,b.gJ)(e.submission_user):"Unknown User";(0,B.PN)(null===(t=e.submission_user)||void 0===t?void 0:t.id)&&(n=(null===(i=e.submission_user)||void 0===i?void 0:i.id)||"Unknown User");let s=e.status===x.OS.SKIPPED,l="Task ".concat(s?"skipped":"completed"," - ").concat(e.name),r=e.comments&&e.comments.length>0?e.comments[e.comments.length-1].comment_text:void 0,o=e.attachments||[];return{author:n,title:l,date:new Date(e.updated_at),type:a.MANUAL_TASK,showViewLog:!1,description:r,isError:!1,isSkipped:s,isAwaitingInput:!1,isPolling:!1,id:"manual-task-".concat(e.manual_field_id),attachments:o}}):[],taskCommentIds:(0,h.useMemo)(()=>{let e=new Set;return(null==i?void 0:i.items)&&i.items.filter(e=>e.status===x.OS.COMPLETED||e.status===x.OS.SKIPPED).forEach(t=>{var i;null===(i=t.comments)||void 0===i||i.forEach(t=>{e.add(t.id)})}),e},[i]),isLoading:n}};var Z=i(88340),J=e=>{let{errorMessage:t,status:i=l.ERROR}=e;return(0,r.jsxs)(o.xuv,{height:"100%",id:"outer",children:[(0,r.jsxs)(o.kCb,{alignItems:"center",children:[(0,r.jsx)(o.xvT,{size:"sm",color:"gray.700",fontWeight:"medium",marginRight:"8px",lineHeight:"20px",children:"Status"}),(0,r.jsx)(o.j8w,{color:j[i],children:v[i]}),(0,r.jsx)(o.xuv,{padding:"0px",marginBottom:"3px",children:(0,r.jsx)(Z.Z,{copyText:t})})]}),(0,r.jsx)(o.izJ,{marginTop:"4px",marginBottom:"6px"}),(0,r.jsx)(o.xuv,{id:"errorWrapper",overflow:"auto",height:"100%",children:(0,r.jsx)(o.xvT,{children:t})})]})},K=i(3124),H=i.n(K);let Y=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}},V=e=>{if(e.status!==l.COMPLETE||!e.collection_name)return"-";let t=(e.message||"").match(/(?:retrieved|masked|processed)\s+(\d+)\s+records?$/i);return t?parseInt(t[1],10).toLocaleString():"-"},Q=(e,t)=>{let i=e.filter(e=>e.action_type===t&&e.status===l.COMPLETE&&e.collection_name).sort((e,t)=>new Date(t.updated_at).getTime()-new Date(e.updated_at).getTime()),n={};i.forEach(e=>{let t=e.collection_name||"unknown";n[t]||(n[t]=e)});let s=0,a=!1,r=/(?:retrieved|masked|processed)\s+(\d+)\s+records?$/i;return Object.values(n).forEach(e=>{if(e.message){let t=e.message.match(r);if(t){a=!0;let e=parseInt(t[1],10);s+=e}}}),a?s:null},$=(e,t,i)=>{if("finished"===e.status&&!e.collection_name&&i){let e=Q(t,i);return null!==e?e.toLocaleString():"-"}return V(e)};var X=e=>{var t,i,n;let{eventLogs:s,allEventLogs:a,onDetailPanel:c,privacyRequest:d}=e,u=(null==s?void 0:s.some(e=>e.collection_name))||(null==s?void 0:s.some(e=>"finished"===e.status&&!e.collection_name))||!1,m=null==s?void 0:s.every(e=>"finished"===e.status&&!e.collection_name),p=null==d?void 0:null===(n=d.policy)||void 0===n?void 0:null===(i=n.rules)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.action_type,h=e=>e?Y(e):p?Y(p):"-",x=null==s?void 0:s.map(e=>(0,r.jsxs)(o.Tr,{backgroundColor:e.status===l.ERROR||e.status===l.SKIPPED&&e.message||e.status===l.AWAITING_PROCESSING||e.status===l.POLLING?H().FIDESUI_NEUTRAL_50:"unset",onClick:()=>{(e.status===l.ERROR||e.status===l.SKIPPED&&e.message||e.status===l.AWAITING_PROCESSING||e.status===l.POLLING)&&c(e.message,e.status)},style:{cursor:e.message?"pointer":"unset"},_hover:{backgroundColor:H().FIDESUI_NEUTRAL_50},children:[(0,r.jsx)(o.Td,{children:(0,r.jsx)(o.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:(0,b.p6)(e.updated_at)})}),(0,r.jsx)(o.Td,{children:(0,r.jsx)(o.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:h(e.action_type)})}),(0,r.jsx)(o.Td,{children:v[e.status]?(0,r.jsx)(o.j8w,{color:j[e.status],children:v[e.status]}):(0,r.jsx)(o.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:e.status})}),u&&(0,r.jsx)(o.Td,{children:(0,r.jsx)(o.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:$(e,a||s,p)})}),u&&!m&&(0,r.jsx)(o.Td,{children:(0,r.jsx)(o.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"finished"===e.status?"Request completed":e.collection_name})})]},e.updated_at));return(0,r.jsx)(o.xuv,{width:"100%",paddingTop:"0px",height:"100%",children:(0,r.jsx)(o.xJi,{id:"tableContainer",height:"100%",style:{overflowY:"auto"},children:(0,r.jsxs)(o.iA_,{size:"sm",id:"table",position:"relative",children:[(0,r.jsx)(o.hrZ,{id:"tableHeader",position:"sticky",top:"0px",backgroundColor:"white",zIndex:10,children:(0,r.jsxs)(o.Tr,{children:[(0,r.jsx)(o.Th,{children:(0,r.jsx)(o.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Time"})}),(0,r.jsx)(o.Th,{children:(0,r.jsx)(o.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Action Type"})}),(0,r.jsx)(o.Th,{children:(0,r.jsx)(o.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Status"})}),u&&(0,r.jsx)(o.Th,{children:(0,r.jsx)(o.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Records"})}),u&&!m&&(0,r.jsx)(o.Th,{children:(0,r.jsx)(o.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Collection"})})]})}),(0,r.jsx)(o.p3B,{id:"tableBody",children:x})]})})})},ee=e=>{let{isOpen:t,onClose:i,currentLogs:n,allEventLogs:s,isViewingError:a,errorMessage:c,currentStatus:d=l.ERROR,onCloseErrorPanel:u,onOpenErrorPanel:m,privacyRequest:p}=e;return(0,r.jsxs)(o.dys,{isOpen:t,placement:"right",onClose:i,size:"full",autoFocus:!1,"data-testid":"log-drawer",children:[(0,r.jsx)(o.P1B,{}),(0,r.jsxs)(o.scA,{style:{width:"50%"},"data-testid":"log-drawer",children:[(0,r.jsx)(o.OXI,{style:{paddingBottom:"0px"},children:(0,r.jsxs)(o.kCb,{justifyContent:"space-between",alignItems:"center",height:"40px",children:[(0,r.jsxs)(o.kCb,{alignItems:"center",children:[a&&(0,r.jsx)(o.wpx,{icon:(0,r.jsx)(o.Rpv,{}),"aria-label":"Close error logs",size:"small",onClick:u}),(0,r.jsx)(o.xvT,{color:"gray.900",fontSize:"md",lineHeight:"6",fontWeight:"medium",ml:1,children:a?"Event detail":"Event log"})]}),(0,r.jsx)(o.wpx,{icon:(0,r.jsx)(o.LGN,{width:"17px"}),"aria-label":"Stop viewing error message",size:"small",onClick:i,"data-testid":"log-drawer-close"})]})}),(0,r.jsxs)(o.Ng0,{id:"drawerBody",overflow:"hidden",children:[n&&!a?(0,r.jsx)(X,{eventLogs:n,allEventLogs:s,onDetailPanel:m,privacyRequest:p}):null,a?(0,r.jsx)(J,{errorMessage:c,status:d}):null]})]})]})},et=e=>{let{subjectRequest:t}=e,{isOpen:i,onOpen:n,onClose:s}=(0,o.qY0)(),[c,d]=(0,h.useState)([]),[u,m]=(0,h.useState)(""),[p,x]=(0,h.useState)(!1),[g,v]=(0,h.useState)(""),[j,y]=(0,h.useState)(l.ERROR),{results:f,id:_}=t,{commentItems:b,isLoading:T}=O(_),{eventItems:A,isLoading:R}=W(f),{manualTaskItems:C,taskCommentIds:N,isLoading:S}=G(_);(0,h.useEffect)(()=>{u&&f&&f[u]&&d(f[u])},[f,u]);let k=()=>{x(!1)},q=(0,h.useCallback)((e,t)=>{m(e),d(t),n()},[n]),P=(0,h.useMemo)(()=>f?Object.values(f).flat():[],[f]),I=(0,h.useMemo)(()=>b.filter(e=>{let t=e.id.replace("comment-","");return!N.has(t)}),[b,N]),D=(0,h.useMemo)(()=>{let e=A.map(e=>{if("Request update"===e.type&&e.title&&f){let t=e.title;if(f[t])return{...e,onClick:()=>q(t,f[t])}}return e});return[{author:"Fides",title:"Access request received",date:new Date(t.created_at),type:a.REQUEST_UPDATE,showViewLog:!1,isError:!1,isSkipped:!1,isAwaitingInput:!1,isPolling:!1,id:"initial-request"},...e,...I,...C].sort((e,t)=>new Date(e.date).getTime()-new Date(t.date).getTime())},[A,I,C,f,q,t.created_at]);return(0,r.jsxs)(o.xuv,{width:"100%",children:[(0,r.jsx)(o.krs,{className:"!border-none",bordered:!1,split:!1,"data-testid":"activity-timeline-list",children:(0,r.jsx)("ul",{className:"!list-none",children:T||R||S?(0,r.jsx)("div",{className:w().itemButton,"data-testid":"timeline-skeleton",children:(0,r.jsx)(o.N_L,{paragraph:{rows:2},active:!0})}):D.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(E,{item:e})},e.id))})}),(0,r.jsx)(ee,{isOpen:i,onClose:()=>{p&&k(),m(""),s()},currentLogs:c,allEventLogs:P,isViewingError:p,errorMessage:g,currentStatus:j,onOpenErrorPanel:(e,t)=>{v(e),t&&y(t),x(!0)},onCloseErrorPanel:k,privacyRequest:t})]})},ei=i(66187);let en=e=>{let{privacyRequestId:t,onCancel:i}=e,[n,s]=(0,h.useState)(""),l=(0,h.useRef)(null),[a,{isLoading:c}]=k();(0,h.useEffect)(()=>{l.current&&l.current.focus()},[]);let d=async()=>{if(n.trim())try{await a({privacy_request_id:t,comment_text:n,comment_type:ei.i.NOTE}).unwrap(),s(""),i()}catch(e){console.error("Failed to add comment:",e),o.Pg3.error({content:"Failed to add comment",duration:5})}},u=[{key:"internal",label:"Internal comment",children:(0,r.jsx)(o.AntInput.TextArea,{ref:l,value:n,onChange:e=>s(e.target.value),rows:3,className:"mb-3 h-[150px] w-full !resize-none","data-testid":"comment-input"})}];return(0,r.jsxs)("div",{children:[(0,r.jsx)(o.A5g,{items:u}),(0,r.jsxs)(o.jqI,{justify:"flex-end",className:"gap-2",children:[(0,r.jsx)(o.wpx,{onClick:i,"data-testid":"cancel-comment-button",children:"Cancel"}),(0,r.jsx)(o.wpx,{onClick:d,loading:c,disabled:!n.trim(),type:"primary",htmlType:"button","data-testid":"submit-comment-button",children:"Save"})]})]})};var es=e=>{let{subjectRequest:t}=e,[i,n]=(0,h.useState)(!1);return(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)(et,{subjectRequest:t}),i?(0,r.jsx)(en,{privacyRequestId:t.id,onCancel:()=>n(!1)}):(0,r.jsx)(g.ZP,{scopes:[x.Sh.COMMENT_CREATE],children:(0,r.jsx)(o.jqI,{justify:"flex-start",className:"mt-2",children:(0,r.jsxs)(o.wpx,{type:"default",onClick:()=>n(!0),className:"flex items-center","data-testid":"add-comment-button",children:["Add comment ",(0,r.jsx)("span",{className:"ml-1",children:"+"})]})})})]})},el=i(14207),ea=i(46238),er=i(72281),eo=i(17245),ec=i(90867),ed=i(16134);let eu=e=>Array.from(new Set(e.filter(e=>Object.values(x.Us).includes(e.action_type)).map(e=>e.action_type)));var em=e=>{let{rules:t}=e,i=eu(t).map(e=>(0,b.kC)(e)).map(e=>e);return(0,r.jsx)(o.AntTypography.Text,{children:i.join(" - ")})},ep=i(34090),eh=i(55484),ex=e=>{let{connectorName:t,data:i,isSubmitting:n=!1,onSaveClick:s}=e,{isOpen:l,onOpen:a,onClose:c}=(0,o.qY0)(),d=(0,h.useRef)(null),u=async(e,t)=>{s({connection_key:i.connection_key,privacy_request_id:i.privacy_request_id,body:{...e}}),c()};return(0,r.jsxs)(r.Fragment,{children:[(null==i?void 0:i.checked)&&(0,r.jsx)(o.wpx,{onClick:a,size:"small",children:"Review"}),!(null==i?void 0:i.checked)&&(0,r.jsx)(o.wpx,{onClick:a,size:"small",type:"primary",children:"Begin manual input"}),(0,r.jsx)(ep.J9,{enableReinitialize:!0,initialValues:{...i.fields},onSubmit:u,validateOnBlur:!1,validateOnChange:!1,validationSchema:eh.Ry().shape({}),children:e=>(0,r.jsxs)(o.dys,{isOpen:l,placement:"right",initialFocusRef:d,onClose:c,size:"lg",children:[(0,r.jsx)(o.P1B,{}),(0,r.jsxs)(o.scA,{children:[(0,r.jsx)(o.cCv,{}),(0,r.jsxs)(o.OXI,{color:"gray.900",children:[(0,r.jsx)(o.xvT,{fontSize:"xl",mb:8,children:t}),(0,r.jsx)(o.izJ,{}),(0,r.jsx)(o.xvT,{fontSize:"md",mt:"4",children:"Manual access"}),(0,r.jsx)(o.xuv,{mt:"8px",children:(0,r.jsx)(o.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"normal",children:"Please complete the following PII fields that have been collected for the selected subject."})})]}),(0,r.jsx)(o.Ng0,{children:(0,r.jsx)(ep.l0,{id:"manual-detail-form",noValidate:!0,children:(0,r.jsx)(o.gCW,{align:"stretch",gap:"16px",children:Object.entries(i.fields).map((e,t)=>{let[i]=e;return(0,r.jsx)(o.Ugi,{children:(0,r.jsx)(ep.gN,{id:i,name:i,children:e=>{let{field:n}=e;return(0,r.jsxs)(o.NIc,{alignItems:"baseline",display:"inline-flex",children:[(0,r.jsx)(o.lXp,{color:"gray.900",fontSize:"14px",fontWeight:"semibold",htmlFor:i,w:"50%",children:i}),(0,r.jsx)(o.IIB,{...n,autoComplete:"off",color:"gray.700",placeholder:"Please enter ".concat(i),ref:0===t?d:void 0,size:"sm"})]})}})},i)})})})}),(0,r.jsx)(o.zeN,{justifyContent:"flex-start",children:(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(o.wpx,{onClick:c,children:"Cancel"}),(0,r.jsx)(o.wpx,{form:"manual-detail-form",loading:n,htmlType:"submit",children:"Save"})]})})]})]})})]})},eg=e=>{let{connectorName:t,data:i,isSubmitting:n=!1,onSaveClick:s}=e,{isOpen:l,onOpen:a,onClose:c}=(0,o.qY0)(),d=(0,h.useRef)(null),u=async(e,t)=>{s({connection_key:i.connection_key,privacy_request_id:i.privacy_request_id,body:{...e}}),c()};return(0,r.jsxs)(r.Fragment,{children:[(null==i?void 0:i.checked)&&(0,r.jsx)(o.wpx,{onClick:a,size:"small",children:"Review"}),!(null==i?void 0:i.checked)&&(0,r.jsx)(o.wpx,{onClick:a,size:"small",type:"primary",children:"Begin manual input"}),(0,r.jsx)(ep.J9,{enableReinitialize:!0,initialValues:{...i.fields},onSubmit:u,validateOnBlur:!1,validateOnChange:!1,validationSchema:eh.Ry().shape({}),children:e=>(0,r.jsxs)(o.dys,{isOpen:l,placement:"right",initialFocusRef:d,onClose:c,size:"lg",children:[(0,r.jsx)(o.P1B,{}),(0,r.jsxs)(o.scA,{children:[(0,r.jsx)(o.cCv,{}),(0,r.jsxs)(o.OXI,{color:"gray.900",children:[(0,r.jsx)(o.xvT,{fontSize:"xl",mb:8,children:t}),(0,r.jsx)(o.izJ,{}),(0,r.jsx)(o.xvT,{fontSize:"md",mt:"4",children:"Manual erasure"}),(0,r.jsx)(o.xuv,{mt:"8px",children:(0,r.jsx)(o.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,r.jsx)(o.Ng0,{children:(0,r.jsx)(ep.l0,{id:"manual-detail-form",noValidate:!0,children:(0,r.jsx)(o.gCW,{align:"stretch",gap:"16px",children:Object.entries(i.fields).map(e=>{let[t]=e;return(0,r.jsx)(o.Ugi,{children:(0,r.jsx)(ep.gN,{id:t,name:t,children:e=>{let{field:i}=e;return(0,r.jsxs)(o.NIc,{alignItems:"baseline",display:"inline-flex",children:[(0,r.jsx)(o.lXp,{color:"gray.900",fontSize:"14px",fontWeight:"semibold",htmlFor:t,w:"50%",children:t}),(0,r.jsx)(o.XZJ,{...i,isChecked:!!i.value,onChange:i.onChange,name:t,id:t})]})}})},t)})})})}),(0,r.jsx)(o.zeN,{justifyContent:"flex-start",children:(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(o.wpx,{onClick:c,children:"Cancel"}),(0,r.jsx)(o.wpx,{form:"manual-detail-form",loading:n,htmlType:"submit",children:"Save"})]})})]})]})})]})};let ev=(e,t,i)=>e.includes(x.Us.ACCESS)?{ProcessingDetailComponent:ex,uploadMutation:t,getUploadedWebhookDataEndpoint:ec.$I.endpoints.getUploadedManualAccessWebhookData}:e.includes(x.Us.ERASURE)?{ProcessingDetailComponent:eg,uploadMutation:i,getUploadedWebhookDataEndpoint:ec.$I.endpoints.getUploadedManualErasureWebhookData}:null;var ej=e=>{let{subjectRequest:t,onComplete:i}=e,n=(0,ed.T)(),{errorAlert:s,successAlert:l}=(0,eo.VY)(),{handleError:a}=(0,eo.HK)(),[c,d]=(0,h.useState)([]),[u,m]=(0,h.useState)(!1),[p,g]=(0,h.useState)(!1),{data:v,isFetching:j,isLoading:y,isSuccess:f}=(0,el.W6)(),[_]=(0,ec.w3)(),b=eu(t.policy.rules),[T]=(0,ec.nL)(),[w]=(0,ec.UR)(),{ProcessingDetailComponent:A,uploadMutation:E,getUploadedWebhookDataEndpoint:R}=ev(b,T,w),C=async()=>{try{m(!0),await _(t.id).unwrap(),l("Manual request has been received. Request now processing."),i()}catch(e){a(e)}finally{m(!1)}},N=async e=>{try{g(!0),await E(e).unwrap();let t={connection_key:e.connection_key,fields:{}};Object.entries(e.body).forEach(e=>{let[i,n]=e;t.fields[i]=n||""});let i=c.map(e=>e.connection_key===t.connection_key?{...e,checked:!0,fields:{...t.fields}}:e);d(i),l("Manual input successfully saved!")}catch(e){a(e)}finally{g(!1)}};return((0,h.useEffect)(()=>(f&&v.length>0&&0===c.length&&(()=>{if(c.length>0)return;let e=[],i=null==v?void 0:v.map(e=>e.connection_config.key);null==i||i.every(i=>e.push(n(R.initiate({connection_key:i,privacy_request_id:t.id})))),Promise.allSettled(e).then(e=>{let t=[];e.forEach((e,i)=>{if("fulfilled"===e.status&&e.value.isSuccess&&e.value.data){let i={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[t,n]=e;i.fields[t]=n||""}),t.push(i)}else s("An error occurred while loading manual input data for ".concat(v[i].connection_config.name))}),d(t)})})(),()=>{}),[v,c.length,n,s,f,t.id,R]),b.includes(x.Us.ACCESS)||b.includes(x.Us.ERASURE))?(0,r.jsxs)(o.gCW,{align:"stretch",spacing:8,children:[(0,r.jsx)(o.xuv,{children:(0,r.jsx)(o.xvT,{color:"gray.700",fontSize:"sm",children:"The following table details the integrations that require manual input from you."})}),(0,r.jsxs)(o.xuv,{children:[(j||y)&&(0,r.jsx)(o.M5Y,{children:(0,r.jsx)(o.$jN,{})}),f&&v?(0,r.jsx)(o.xJi,{children:(0,r.jsxs)(o.iA_,{size:"sm",variant:"unstyled",children:[(0,r.jsx)(o.hrZ,{children:(0,r.jsxs)(o.Tr,{children:[(0,r.jsx)(o.Th,{fontSize:"sm",fontWeight:"semibold",pl:"0",textTransform:"none",children:"Integration Identifier"}),(0,r.jsx)(o.Th,{})]})}),(0,r.jsxs)(o.p3B,{children:[v.length>0&&v.map(e=>(0,r.jsxs)(o.Tr,{display:"block",children:[(0,r.jsx)(o.Td,{pl:"0",children:e.connection_config.key}),(0,r.jsx)(o.Td,{children:c.length>0?(0,r.jsx)(A,{connectorName:e.connection_config.name,data:c.find(t=>t.connection_key===e.connection_config.key),isSubmitting:p,onSaveClick:N}):null})]},e.id)),0===v.length&&(0,r.jsx)(o.Tr,{children:(0,r.jsx)(o.Td,{colSpan:3,pl:"0",children:(0,r.jsx)(o.M5Y,{children:(0,r.jsx)(o.xvT,{children:"You don‘t have any Manual Process connections set up yet."})})})})]}),c.length>0&&c.every(e=>e.checked)?(0,r.jsx)(o.$RU,{children:(0,r.jsx)(o.Tr,{children:(0,r.jsx)(o.Th,{pl:"0px",children:(0,r.jsx)(o.wpx,{type:"primary",loading:u,onClick:C,className:"mt-2",children:"Complete DSR"})})})}):null]})}):null]})]}):null},ey=e=>{let{subjectRequest:t,onComplete:i}=e,n=(0,c.useRouter)(),{data:s}=(0,el.AZ)({}),l=(0,h.useMemo)(()=>{var e;return(null==s?void 0:null===(e=s.items)||void 0===e?void 0:e.filter(e=>e.connection_type===x.Rj.MANUAL_TASK))||[]},[s]),{data:a}=(0,el.W6)(),d=(a||[]).length>0,{data:m}=(0,F.Ym)({page:1,size:100,privacy_request_id:t.id}),p=(null==m?void 0:m.items)||[],g=p.length,v=p.filter(e=>e.status===x.OS.NEW).length,j=l.length>0,y=p.length>0,f=j||y;return f||d?(0,r.jsxs)(o.Kqy,{spacing:6,children:[f&&(0,r.jsxs)(o.xuv,{children:[(0,r.jsx)(o.AntTypography.Title,{level:4,style:{marginBottom:12},children:"Manual tasks"}),(0,r.jsxs)(o.Kqy,{spacing:2,children:[(0,r.jsxs)(o.AntTypography.Text,{children:[(0,r.jsx)("strong",{children:g})," task",1!==g?"s":""," ","linked to this privacy request"]}),(0,r.jsxs)(o.AntTypography.Text,{children:[(0,r.jsx)("strong",{children:v})," pending task",1!==v?"s":""]}),g>0&&(0,r.jsx)("div",{className:"mt-2",children:(0,r.jsx)(o.wpx,{type:"primary",onClick:()=>{n.push({pathname:u.Jw,query:{privacy_request_id:t.id,tab:er.G.MANUAL_TASK}})},children:"View all tasks for this request →"})})]})]}),d&&(0,r.jsxs)(o.xuv,{children:[(0,r.jsxs)(o.kCb,{alignItems:"center",style:{marginBottom:12},children:[(0,r.jsx)(o.AntTypography.Title,{level:4,style:{margin:0,marginRight:8},children:"Manual steps (legacy)"}),(0,r.jsx)(ea.b,{label:"This is the legacy manual steps feature. The new manual tasks feature provides more advanced capabilities and better user experience."})]}),(0,r.jsx)(ej,{subjectRequest:t,onComplete:i||(()=>{})})]})]}):(0,r.jsx)(o.xuv,{p:4,children:(0,r.jsx)(o.AntTypography.Text,{type:"secondary",children:"No manual tasks or legacy manual steps configured for this request."})})},ef=i(59969),e_=i(45259),eb=i(18225),eT=i(812),ew=i(7842);let{useGetAttachmentsQuery:eA,useUploadAttachmentMutation:eE,useGetAttachmentDetailsQuery:eR,useLazyGetAttachmentDetailsQuery:eC}=N.u.injectEndpoints({endpoints:e=>({getAttachments:e.query({query:e=>{let{privacy_request_id:t,page:i=1,size:n}=e;return{url:"plus/privacy-request/".concat(t,"/attachment"),method:"GET",params:{page:i,size:n}}},providesTags:["Privacy Request Attachments"]}),uploadAttachment:e.mutation({query:e=>{let{privacy_request_id:t,attachment_type:i,attachment_file:n}=e,s=new FormData;return s.append("attachment_type",i),s.append("attachment_file",n),{url:"plus/privacy-request/".concat(t,"/attachment"),method:"POST",body:s,params:{}}},invalidatesTags:["Privacy Request Attachments"]}),getAttachmentDetails:e.query({query:e=>{let{privacy_request_id:t,attachment_id:i}=e;return{url:"plus/privacy-request/".concat(t,"/attachment/").concat(i),method:"GET"}}})})}),{reducer:eN}=(0,C.oM)({name:"privacyRequestAttachments",initialState:{},reducers:{}}),eS=e=>{var t;let{file:i}=e,[n,s]=(0,h.useState)(!1),[l]=eC(),a=async()=>{var e,t,n;if((null===(e=i.customData)||void 0===e?void 0:e.attachment_id)&&(null===(t=i.customData)||void 0===t?void 0:t.privacy_request_id)){s(!0);try{let e=await l({privacy_request_id:i.customData.privacy_request_id,attachment_id:i.customData.attachment_id}),t=null===(n=e.data)||void 0===n?void 0:n.retrieved_attachment_url,s=null==t?void 0:t.startsWith("http");t&&s?window.open(t,"_blank"):t&&!s?o.Pg3.info("Download is not available when using local storage methods."):o.Pg3.error("No download URL available for ".concat(i.name))}catch(e){o.Pg3.error("Failed to fetch attachment download URL")}finally{s(!1)}}},c=(null===(t=i.customData)||void 0===t?void 0:t.attachment_type)===x.sf.INCLUDE_WITH_ACCESS_PACKAGE;return(0,r.jsxs)(o.jqI,{align:"center",gap:8,children:[(0,r.jsx)(o.PJP.PgN,{className:"shrink-0"}),(0,r.jsx)(o.lKn,{ellipsis:{tooltip:i.name},className:"grow",children:i.name}),c&&(0,r.jsx)(o.esZ,{title:"This attachment will be included in the access package.",children:(0,r.jsx)(o.PJP.wvC,{className:"shrink-0",title:"User icon"})}),(0,r.jsx)(o.wpx,{type:"text","aria-label":"Download attachment",icon:(0,r.jsx)(o.PJP.UWx,{}),onClick:a,loading:n,className:"shrink-0"})]})},ek=(e,t)=>(0,r.jsx)(eS,{file:t});var eq=e=>{let{subjectRequest:t}=e,[i,n]=(0,h.useState)(!1),s=(0,g.Tg)([x.Sh.ATTACHMENT_READ]),l=(0,g.Tg)([x.Sh.ATTACHMENT_CREATE]),[a]=eE(),{data:c,isLoading:d,error:u}=(0,ec.PW)(),{data:m,isLoading:p}=eA({privacy_request_id:t.id}),{refetch:v}=eA({privacy_request_id:t.id}),j=(null==m?void 0:m.items.map(e=>({uid:e.id,name:e.file_name,status:"done",customData:{attachment_id:e.id,privacy_request_id:t.id,attachment_type:e.attachment_type}})))||[],y=(0,h.useCallback)(()=>(0,r.jsx)(o.PJP.PgN,{}),[]);if(!s)return null;let f=l&&(null==c?void 0:c.key),_=[".pdf",".doc",".docx",".xls",".xlsx",".txt",".csv",".jpg",".jpeg",".png",".zip"];return(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:"mt-6",children:[(0,r.jsx)("div",{className:"mb-6",children:(0,r.jsx)(o.lQT,{level:3,children:"Attachments"})}),d||p?(0,r.jsx)(eb.Z,{size:"md",alignment:"start"}):(0,r.jsx)(o.pMK,{name:"attachment_file",fileList:j,iconRender:y,showUploadList:{showRemoveIcon:!1,showDownloadIcon:!1},itemRender:ek,accept:_.join(","),customRequest:async e=>{let{file:i,onSuccess:s,onError:l}=e,r=i.name;try{n(!0),await a({privacy_request_id:t.id,attachment_file:i,attachment_type:ew.s.INTERNAL_USE_ONLY}).unwrap(),o.Pg3.success("".concat(r," file uploaded successfully")),v(),null==s||s(i)}catch(e){o.Pg3.error("".concat(r," file upload failed.")),null==l||l(e)}finally{n(!1)}},disabled:!f,children:l&&(0,r.jsx)(o.esZ,{title:u&&"Add attachment not available: ".concat((0,eT.e$)(u)),placement:"top",children:(0,r.jsxs)(o.jqI,{align:"center",gap:12,className:"mb-4",children:[(0,r.jsx)(o.wpx,{icon:(0,r.jsx)(o.PJP.mm_,{}),iconPosition:"end",disabled:!f||i,loading:i,children:i?"Uploading":"Add"}),(0,r.jsx)(ea.b,{label:"Uploaded attachments are for internal use and won't be send as part of the request package.\n Accepted filetypes: ".concat(_.join(", ")),placement:"top"})]})})})]})})},eP=i(15709),eI=i.n(eP),eO=e=>{let{label:t,children:i}=e;return(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("div",{className:"shrink-0 grow-0 basis-1/2 pr-2 ".concat(eI().label),children:(0,r.jsxs)(o.AntTypography.Text,{children:[t,":"]})}),(0,r.jsx)("div",{className:"min-w-0 shrink grow ".concat(eI().value),"data-testid":"request-detail-value-".concat(t),children:i})]})},eD=e=>{let{subjectRequest:t}=e,{custom_privacy_request_fields:i}=t;return(0,r.jsx)("div",{className:"flex flex-col gap-2",children:i&&Object.keys(i).length>0&&Object.entries(i).filter(e=>{let[,t]=e;return t.value}).map(e=>{let[t,i]=e;return(0,r.jsx)(eO,{label:i.label,children:(0,r.jsx)(o.AntTypography.Text,{children:Array.isArray(i.value)?i.value.join(", "):i.value})},t)})})},eM=e=>{var t,i;let{subjectRequest:n}=e,{plus:s}=(0,R.hz)(),{id:l,status:a,policy:c,identity:d,identity_verified_at:u}=n;return(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"mb-6",children:(0,r.jsx)(o.AntTypography.Title,{level:2,children:"Request details"})}),(0,r.jsxs)(o.jqI,{vertical:!0,gap:12,className:"mb-6",children:[(0,r.jsx)(eO,{label:"Status",children:(0,r.jsx)(e_.Z,{status:a})}),(0,r.jsx)(eO,{label:"Time remaining",children:(0,r.jsx)(ef.Z,{daysLeft:n.days_left,includeText:!0,status:n.status})}),(0,r.jsx)(eO,{label:"Request type",children:(0,r.jsx)(em,{rules:c.rules})}),(0,r.jsx)(eO,{label:"Source",children:s&&(0,r.jsx)(o.AntTypography.Text,{children:n.source||"-"})}),n.submitted_by&&(0,r.jsx)(eO,{label:"Created by",children:(0,r.jsx)(o.AntTypography.Text,{children:(null===(t=n.submitter)||void 0===t?void 0:t.username)||"-"})}),(0,r.jsx)(eO,{label:"Reviewed by",children:(0,r.jsx)(o.AntTypography.Text,{children:(null===(i=n.reviewer)||void 0===i?void 0:i.username)||"-"})}),Object.entries(d).filter(e=>{let[,{value:t}]=e;return null!==t}).map(e=>{let[t,{value:i="",label:n}]=e,s="".concat(i).concat(u?"":" (Unverified)");return(0,r.jsx)(eO,{label:"Subject ".concat(n.toLocaleLowerCase()),children:(0,r.jsx)(o.esZ,{title:s,trigger:"click",children:(0,r.jsx)(o.AntTypography.Text,{ellipsis:!0,children:s})})},t)}),(0,r.jsx)(eD,{subjectRequest:n})]}),(0,r.jsxs)(o.PPS,{layout:"vertical",children:[(0,r.jsx)(o.PPS.Item,{label:"Request ID:",className:"mb-4",children:(0,r.jsx)(o.jqI,{gap:1,children:(0,r.jsxs)(o.vyj.Compact,{style:{width:"100%"},children:[(0,r.jsx)(o.AntInput,{readOnly:!0,value:l,"data-testid":"request-detail-value-id"}),(0,r.jsx)(o.wpx,{"aria-label":"Copy request ID",icon:(0,r.jsx)(Z.Z,{copyText:l})})]})})}),(0,r.jsx)(o.PPS.Item,{label:"Policy key:",className:"mb-4",children:(0,r.jsx)(o.AntInput,{readOnly:!0,value:n.policy.key,"data-testid":"request-detail-value-policy"})})]}),(0,r.jsx)(eq,{subjectRequest:n})]})};let eL=[x.q2.COMPLETE,x.q2.CANCELED,x.q2.DENIED,x.q2.ERROR];var eU=e=>{var t;let{data:i}=e,n=(0,h.useMemo)(()=>({id:i.id,verbose:!0}),[i.id]),{data:s}=(0,p.QA)(n,{pollingInterval:eL.includes(i.status)?0:2e3,skip:!i.id}),l=null!==(t=null==s?void 0:s.items[0])&&void 0!==t?t:i,a=l.status===x.q2.REQUIRES_INPUT,[c,d]=(0,h.useState)("activity"),u=(0,h.useMemo)(()=>[{key:"activity",label:"Activity",children:(0,r.jsx)(es,{subjectRequest:l})},{key:"manual-tasks",label:"Manual tasks",children:(0,r.jsx)(ey,{subjectRequest:l,onComplete:()=>d("activity")}),disabled:!a}],[a,l]);return(0,r.jsxs)("div",{className:"flex gap-8",children:[(0,r.jsx)("div",{className:"w-0 grow",children:(0,r.jsx)(o.A5g,{items:u,activeKey:c,onChange:d})}),(0,r.jsx)("div",{className:"w-1/3 2xl:w-[432px]","data-testid":"privacy-request-details",children:(0,r.jsx)(eM,{subjectRequest:l})})]})},ez=i(57526),eW=i(66548),eB=i(45489),eF=e=>{let{privacyRequest:t,action:i}=e,{handleApproveRequest:n,handleDenyRequest:s}=(0,eB.Z)({subjectRequest:t}),l=t.status===x.q2.PENDING,a=(0,o.qY0)(),r=async e=>{let{reason:t}=e,l=o.Pg3.loading({content:"approve"===i?"Approving request...":"Denying request..."});"deny"===i&&await s(t),"approve"===i&&await n(),l()};return{showAction:l,closeModal:a.onClose,performAction:r,openConfirmationModal:a.onOpen,isModalOpen:a.isOpen}},eG=e=>{var t,i,n;let{privacyRequest:s}=e,l=null===(i=(0,R.hz)())||void 0===i?void 0:null===(t=i.flags)||void 0===t?void 0:t.downloadAccessRequestResults,a=s.status===x.q2.COMPLETE,r=eu(s.policy.rules).includes(x.Us.ACCESS),o=(0,g.Tg)([x.Sh.PRIVACY_REQUEST_ACCESS_RESULTS_READ]),{data:c,isLoading:d,isError:u,error:m}=(0,ec.br)({privacy_request_id:s.id},{skip:!a}),p=null!==(n=null==c?void 0:c.access_result_urls[0])&&void 0!==n?n:"",h=!!p&&"your local fides_uploads folder"!==p,v=null;return u?v=(0,eT.e$)(m,"Unable to resolve download URL"):h||(v="Requests stored locally cannot be downloaded"),{showDownloadResults:l&&o&&r&&a,downloadResults:()=>{let e=document.createElement("a");e.href=p,e.target="_blank",e.rel="noopener noreferrer",e.click(),e.remove()},infoTooltip:v,isLoading:d,isDisabled:!h}},eZ=e=>{let{privacyRequest:t}=e,{errorAlert:i,successAlert:n}=(0,eo.VY)(),s=t.status===x.q2.ERROR,[l]=(0,ec.Fq)();return{reprocessPrivacyRequest:async()=>{if(!t)return;let e=o.Pg3.loading("Reprocessing privacy request...",0),s=await l(t);"error"in s?i((0,eT.e$)(s.error),"DSR automation has failed for this privacy request due to the following:",{duration:null}):n("Privacy request is now being reprocessed."),e()},showReprocess:s}},eJ=e=>{let{privacyRequest:t}=e,{showDownloadResults:i,downloadResults:n,infoTooltip:s,isDisabled:l}=eG({privacyRequest:t}),{isModalOpen:a,closeModal:c,performAction:d,openConfirmationModal:u,showAction:m}=eF({privacyRequest:t,action:"approve"}),{isModalOpen:p,closeModal:g,performAction:v,openConfirmationModal:j,showAction:y}=eF({privacyRequest:t,action:"deny"}),{reprocessPrivacyRequest:f,showReprocess:_}=eZ({privacyRequest:t}),{handleFinalizeRequest:b,finalizeRequestResult:T}=(0,eB.Z)({subjectRequest:t}),w=(0,h.useMemo)(()=>{let e=[];return e.push({key:"approve",label:(0,r.jsx)("span",{"data-testid":"privacy-request-approve-btn",children:"Approve"}),onClick:u,disabled:!m}),e.push({key:"deny",label:(0,r.jsx)("span",{"data-testid":"privacy-request-deny-btn",children:"Deny"}),onClick:j,disabled:!y}),e.push({key:"reprocess",label:(0,r.jsx)("span",{"data-testid":"privacy-request-action-reprocess",children:"Reprocess"}),onClick:f,disabled:!_}),t.status===x.q2.REQUIRES_MANUAL_FINALIZATION&&e.push({key:"finalize",label:(0,r.jsx)("span",{"data-testid":"privacy-request-action-finalize",children:"Finalize"}),onClick:b,disabled:T.isLoading}),i&&e.push({key:"download",label:(0,r.jsx)(o.esZ,{title:l?s:null,placement:"bottom",children:(0,r.jsx)("span",{"data-testid":"download-results-btn",children:"Download request results"})}),onClick:n,disabled:l}),e},[i,n,s,l,m,y,u,j,_,f,t.status,b,T.isLoading]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.S0p,{menu:{items:w},trigger:["click"],overlayStyle:{minWidth:"160px"},children:(0,r.jsx)(o.wpx,{icon:(0,r.jsx)(o.PJP.pO,{}),"data-testid":"privacy-request-actions-dropdown-btn",iconPosition:"end",type:"primary",disabled:!w.length,size:"large",children:"Actions"})}),(0,r.jsx)(ez.Z,{isOpen:a,isLoading:!1,onClose:c,onApproveRequest:()=>d({reason:""}),subjectRequest:t}),(0,r.jsx)(eW.Z,{isOpen:p,onClose:g,onDenyRequest:e=>v({reason:e})})]})},eK=()=>{let e=(0,c.useRouter)().query.id,{data:t,isLoading:i}=(0,p.QA)({id:e,verbose:!0},{skip:!e}),n=(null==t?void 0:t.items[0])||null;return(0,r.jsxs)(d.Z,{title:"Privacy Request - ".concat(e),children:[(0,r.jsx)(m.Z,{heading:"Privacy Requests",breadcrumbItems:[{title:"All requests",href:u.Jw},{title:"Request details"}],rightContent:!!n&&(0,r.jsx)(eJ,{privacyRequest:n})}),i&&(0,r.jsx)(o.M5Y,{children:(0,r.jsx)(o.$jN,{})}),!i&&!n&&(0,r.jsx)(o.xvT,{children:"404 no privacy request found"}),!i&&n&&(0,r.jsx)(eU,{data:n})]})}},15709:function(e){e.exports={value:"RequestDetailsRow_value__WMXn3",label:"RequestDetailsRow_label__dn3CQ"}},38450:function(e){e.exports={container:"ActivityTimelineEntry_container__tCva0","container--open":"ActivityTimelineEntry_container--open__1d9mA",itemButton:"ActivityTimelineEntry_itemButton__MlmWS","itemButton--error":"ActivityTimelineEntry_itemButton--error__UizD2","itemButton--comment":"ActivityTimelineEntry_itemButton--comment__g98SH","itemButton--awaiting-input":"ActivityTimelineEntry_itemButton--awaiting-input__6lB5t","itemButton--polling":"ActivityTimelineEntry_itemButton--polling__jzolP",header:"ActivityTimelineEntry_header__GYibj",title:"ActivityTimelineEntry_title__rm_g0","title--error":"ActivityTimelineEntry_title--error__fOi0s","title--awaiting-input":"ActivityTimelineEntry_title--awaiting-input__3sPAo","title--polling":"ActivityTimelineEntry_title--polling__g_Hgn",timestamp:"ActivityTimelineEntry_timestamp__uMEMT",viewLogs:"ActivityTimelineEntry_viewLogs___T4jN",logs:"ActivityTimelineEntry_logs__T7R0J","logs--open":"ActivityTimelineEntry_logs--open__o_9Io"}}},function(e){e.O(0,[431,7245,8373,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,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/privacy-requests/[id]",function(){return i(51947)}])},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return p}});var n=i(24246),s=i(98227),l=i(88038),a=i.n(l),r=i(86677);i(27378);var o=i(25980),c=i(90867),d=i(42478),u=i(77830),m=()=>{let e=(0,r.useRouter)();return(0,n.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(s.xuv,{children:[(0,n.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(s.wpx,{onClick:()=>{e.push(u.AD)},children:"Configure"})]}),(0,n.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:i,padded:l=!0,mainProps:u}=e,p=(0,o.hz)(),h=(0,r.useRouter)(),x="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,g=!(p.flags.messagingConfiguration&&x),{data:v}=(0,d.JE)(void 0,{skip:g}),{data:j}=(0,c.PW)(void 0,{skip:g}),y=p.flags.messagingConfiguration&&(!v||!j)&&x;return(0,n.jsxs)(s.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(a(),{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:l?6:0,px:l?10:0,h:l?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[y?(0,n.jsx)(m,{}):null,t]})]})}},45259:function(e,t,i){"use strict";var n=i(24246),s=i(98227);let l={approved:{color:s.tAb.SUCCESS,label:"Approved"},complete:{color:s.tAb.SUCCESS,label:"Completed"},awaiting_email_send:{color:s.tAb.MARBLE,label:"Awaiting Email Send"},denied:{color:s.tAb.WARNING,label:"Denied"},canceled:{color:s.tAb.MARBLE,label:"Canceled"},error:{color:s.tAb.ERROR,label:"Error"},in_processing:{color:s.tAb.CAUTION,label:"In Progress"},paused:{color:s.tAb.MARBLE,label:"Paused"},pending:{color:s.tAb.INFO,label:"New"},identity_unverified:{color:s.tAb.MARBLE,label:"Unverified"},requires_input:{color:s.tAb.MINOS,label:"Requires Input"},requires_manual_finalization:{color:s.tAb.MINOS,label:"Requires Finalization"}};t.Z=e=>{let{status:t}=e;return(0,n.jsx)(s.j8w,{color:l[t].color,className:"justify-center","data-testid":"request-status-badge",children:l[t].label})}},51947:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return eK}});var n,s,l,a,r=i(24246),o=i(98227),c=i(86677),d=i(77213),u=i(77830),m=i(58754),p=i(99716),h=i(27378),x=i(65735),g=i(19904);(n=l||(l={})).IN_PROCESSING="in_processing",n.PENDING="pending",n.COMPLETE="complete",n.ERROR="error",n.PAUSED="paused",n.AWAITING_PROCESSING="awaiting_processing",n.RETRYING="retrying",n.SKIPPED="skipped",n.POLLING="polling";let v={in_processing:"In processing",pending:"Pending",complete:"Complete",error:"Error",paused:"Paused",awaiting_processing:"Awaiting input",retrying:"Retrying",skipped:"Skipped",polling:"Awaiting polling"},j={error:o.tAb.ERROR,skipped:o.tAb.WARNING,awaiting_processing:o.tAb.MINOS,in_processing:void 0,pending:void 0,complete:void 0,paused:void 0,retrying:void 0,polling:o.tAb.WARNING};(s=a||(a={})).REQUEST_UPDATE="Request update",s.INTERNAL_COMMENT="Internal comment",s.MANUAL_TASK="Manual task";let y={"Request update":o.tAb.SANDSTONE,"Internal comment":o.tAb.MARBLE,"Manual task":o.tAb.NECTAR};var f=i(90005),_=i.n(f),b=i(16394),T=i(38450),w=i.n(T);let A=e=>{let{attachments:t}=e;if(!t.length)return null;if(1===t.length){let e=t[0];return(0,r.jsx)("div",{className:"flex flex-wrap gap-2 text-sm text-gray-600","data-testid":"activity-timeline-attachments",children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)(o.PJP.PgN,{className:"mr-1 size-4"}),(0,r.jsx)(o.AntTypography.Text,{ellipsis:{tooltip:!0},className:"!max-w-[200px]",children:e.file_name})]})})}let i=(0,r.jsx)("ul",{className:"list-disc pl-4",children:t.map(e=>(0,r.jsx)("li",{children:e.file_name},e.id))});return(0,r.jsx)("div",{className:"flex flex-wrap gap-2 text-sm text-gray-600","data-testid":"activity-timeline-attachments",children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)(o.PJP.PgN,{className:"mr-1 size-4"}),(0,r.jsx)(o.esZ,{title:i,children:(0,r.jsxs)(o.AntTypography.Text,{ellipsis:!0,className:"!max-w-[200px]",children:[t.length," attachments"]})})]})})};var E=e=>{let{item:t}=e,{author:i,title:n,date:s,type:l,onClick:c,isError:d,isAwaitingInput:u,isPolling:m,description:p,attachments:h,showViewLog:x}=t,g=(0,b.p6)(s),v=!!c,j=h&&h.length>0,f=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:w().header,children:[(0,r.jsxs)("span",{className:w().author,"data-testid":"activity-timeline-author",children:[i,":"]}),n&&(0,r.jsxs)(o.AntTypography.Text,{className:_()(w().title,{[w()["title--error"]]:d,[w()["title--awaiting-input"]]:u,[w()["title--polling"]]:m}),ellipsis:{tooltip:!0},"data-testid":"activity-timeline-title",children:[n,d&&" failed"]}),(0,r.jsx)("div",{className:"hidden xl:block",children:(0,r.jsx)(o.AntTypography.Text,{className:w().timestamp,"data-testid":"activity-timeline-timestamp",children:g})}),(0,r.jsx)("div",{className:"xl:hidden",children:(0,r.jsx)(o.esZ,{title:g,children:(0,r.jsx)(o.PJP.qpU,{"data-testid":"activity-timeline-timestamp-icon"})})}),(0,r.jsx)(o.j8w,{className:w().type,color:y[l],"data-testid":"activity-timeline-type",children:l}),x&&(0,r.jsx)("span",{className:w().viewLogs,"data-testid":"activity-timeline-view-logs",children:"View Log"})]}),(p||j)&&(0,r.jsxs)("div",{className:"mt-2 flex justify-between pl-2.5 align-top",children:[(0,r.jsx)(o.AntTypography.Paragraph,{className:"!mb-0 whitespace-pre-wrap","data-testid":"activity-timeline-description",children:p||""}),j&&(0,r.jsx)(A,{attachments:h})]})]}),T={className:_()(w().itemButton,{[w()["itemButton--error"]]:d,[w()["itemButton--awaiting-input"]]:u,[w()["itemButton--polling"]]:m,[w()["itemButton--clickable"]]:v,[w()["itemButton--comment"]]:l===a.INTERNAL_COMMENT,[w()["itemButton--manual-task"]]:l===a.MANUAL_TASK}),"data-testid":"activity-timeline-item"};return v?(0,r.jsx)("button",{type:"button",onClick:c,...T,children:f}):(0,r.jsx)("div",{...T,children:f})},R=i(25980),C=i(54427),N=i(78780);let{useGetCommentsQuery:S,useCreateCommentMutation:k,useGetCommentDetailsQuery:q,useLazyGetCommentDetailsQuery:P}=N.u.injectEndpoints({endpoints:e=>({getComments:e.query({query:e=>{let{privacy_request_id:t,page:i=1,size:n}=e;return{url:"plus/privacy-request/".concat(t,"/comment"),method:"GET",params:{page:i,size:n}}},providesTags:["Privacy Request Comments"]}),createComment:e.mutation({query:e=>{let{privacy_request_id:t,comment_text:i,comment_type:n}=e,s=new FormData;return s.append("comment_text",i),s.append("comment_type",n),{url:"plus/privacy-request/".concat(t,"/comment"),method:"POST",body:s,formData:!0}},invalidatesTags:["Privacy Request Comments","Request"]}),getCommentDetails:e.query({query:e=>{let{privacy_request_id:t,comment_id:i}=e;return{url:"plus/privacy-request/".concat(t,"/comment/").concat(i),method:"GET"}}})})}),{reducer:I}=(0,C.oM)({name:"privacyRequestComments",initialState:{},reducers:{}}),O=e=>{let{plus:t}=(0,R.hz)(),{data:i,isLoading:n,error:s}=S({privacy_request_id:e,size:100},{skip:!t});return(0,h.useEffect)(()=>{s&&o.Pg3.error("Failed to fetch the request comments")},[s]),{commentItems:(null==i?void 0:i.items)?i.items.map(e=>({author:e.user_first_name&&e.user_last_name?"".concat(e.user_first_name," ").concat(e.user_last_name):e.username||"Unknown",date:new Date(e.created_at),type:a.INTERNAL_COMMENT,showViewLog:!1,description:e.comment_text,isError:!1,isSkipped:!1,isAwaitingInput:!1,isPolling:!1,id:"comment-".concat(e.id)})):[],isLoading:n}},D=(e,t)=>{if(0===e.length)return!1;let i=Array.from(e).sort((e,t)=>new Date(t.updated_at).getTime()-new Date(e.updated_at).getTime());if(!i[0].collection_name)return i[0].status===t;let n={};return i.forEach(e=>{e.collection_name&&!n[e.collection_name]&&(n[e.collection_name]=e)}),Object.values(n).some(e=>e.status===t)},M=e=>D(e,l.ERROR),L=e=>D(e,l.SKIPPED),U=e=>D(e,l.AWAITING_PROCESSING),z=e=>D(e,l.POLLING),W=e=>{let t=!e;return{eventItems:e?Object.entries(e).map(e=>{let[t,i]=e,n=M(i),s=L(i),l=U(i),r=z(i);return{author:"Fides",title:t,date:new Date(i[0].updated_at),type:a.REQUEST_UPDATE,showViewLog:n||s||l||r,onClick:()=>{},isError:n,isSkipped:s,isAwaitingInput:l,isPolling:r,id:"request-".concat(t)}}):[],isLoading:t}};var B=i(91317),F=i(45116);let G=e=>{let{plus:t}=(0,R.hz)(),{data:i,isLoading:n,error:s}=(0,F.Ym)({page:1,size:100,privacy_request_id:e,status:void 0,include_full_submission_details:!0},{skip:!t});return(0,h.useEffect)(()=>{s&&o.Pg3.error("Failed to fetch manual tasks")},[s]),{manualTaskItems:i?i.items.filter(e=>e.status===x.OS.COMPLETED||e.status===x.OS.SKIPPED).map(e=>{var t,i;let n=e.submission_user?(0,b.gJ)(e.submission_user):"Unknown User";(0,B.PN)(null===(t=e.submission_user)||void 0===t?void 0:t.id)&&(n=(null===(i=e.submission_user)||void 0===i?void 0:i.id)||"Unknown User");let s=e.status===x.OS.SKIPPED,l="Task ".concat(s?"skipped":"completed"," - ").concat(e.name),r=e.comments&&e.comments.length>0?e.comments[e.comments.length-1].comment_text:void 0,o=e.attachments||[];return{author:n,title:l,date:new Date(e.updated_at),type:a.MANUAL_TASK,showViewLog:!1,description:r,isError:!1,isSkipped:s,isAwaitingInput:!1,isPolling:!1,id:"manual-task-".concat(e.manual_field_id),attachments:o}}):[],taskCommentIds:(0,h.useMemo)(()=>{let e=new Set;return(null==i?void 0:i.items)&&i.items.filter(e=>e.status===x.OS.COMPLETED||e.status===x.OS.SKIPPED).forEach(t=>{var i;null===(i=t.comments)||void 0===i||i.forEach(t=>{e.add(t.id)})}),e},[i]),isLoading:n}};var Z=i(88340),J=e=>{let{errorMessage:t,status:i=l.ERROR}=e;return(0,r.jsxs)(o.xuv,{height:"100%",id:"outer",children:[(0,r.jsxs)(o.kCb,{alignItems:"center",children:[(0,r.jsx)(o.xvT,{size:"sm",color:"gray.700",fontWeight:"medium",marginRight:"8px",lineHeight:"20px",children:"Status"}),(0,r.jsx)(o.j8w,{color:j[i],children:v[i]}),(0,r.jsx)(o.xuv,{padding:"0px",marginBottom:"3px",children:(0,r.jsx)(Z.Z,{copyText:t})})]}),(0,r.jsx)(o.izJ,{marginTop:"4px",marginBottom:"6px"}),(0,r.jsx)(o.xuv,{id:"errorWrapper",overflow:"auto",height:"100%",children:(0,r.jsx)(o.xvT,{children:t})})]})},K=i(3124),H=i.n(K);let Y=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}},V=e=>{if(e.status!==l.COMPLETE||!e.collection_name)return"-";let t=(e.message||"").match(/(?:retrieved|masked|processed)\s+(\d+)\s+records?$/i);return t?parseInt(t[1],10).toLocaleString():"-"},Q=(e,t)=>{let i=e.filter(e=>e.action_type===t&&e.status===l.COMPLETE&&e.collection_name).sort((e,t)=>new Date(t.updated_at).getTime()-new Date(e.updated_at).getTime()),n={};i.forEach(e=>{let t=e.collection_name||"unknown";n[t]||(n[t]=e)});let s=0,a=!1,r=/(?:retrieved|masked|processed)\s+(\d+)\s+records?$/i;return Object.values(n).forEach(e=>{if(e.message){let t=e.message.match(r);if(t){a=!0;let e=parseInt(t[1],10);s+=e}}}),a?s:null},$=(e,t,i)=>{if("finished"===e.status&&!e.collection_name&&i){let e=Q(t,i);return null!==e?e.toLocaleString():"-"}return V(e)};var X=e=>{var t,i,n;let{eventLogs:s,allEventLogs:a,onDetailPanel:c,privacyRequest:d}=e,u=(null==s?void 0:s.some(e=>e.collection_name))||(null==s?void 0:s.some(e=>"finished"===e.status&&!e.collection_name))||!1,m=null==s?void 0:s.every(e=>"finished"===e.status&&!e.collection_name),p=null==d?void 0:null===(n=d.policy)||void 0===n?void 0:null===(i=n.rules)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.action_type,h=e=>e?Y(e):p?Y(p):"-",x=null==s?void 0:s.map(e=>(0,r.jsxs)(o.Tr,{backgroundColor:e.status===l.ERROR||e.status===l.SKIPPED&&e.message||e.status===l.AWAITING_PROCESSING||e.status===l.POLLING?H().FIDESUI_NEUTRAL_50:"unset",onClick:()=>{(e.status===l.ERROR||e.status===l.SKIPPED&&e.message||e.status===l.AWAITING_PROCESSING||e.status===l.POLLING)&&c(e.message,e.status)},style:{cursor:e.message?"pointer":"unset"},_hover:{backgroundColor:H().FIDESUI_NEUTRAL_50},children:[(0,r.jsx)(o.Td,{children:(0,r.jsx)(o.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:(0,b.p6)(e.updated_at)})}),(0,r.jsx)(o.Td,{children:(0,r.jsx)(o.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:h(e.action_type)})}),(0,r.jsx)(o.Td,{children:v[e.status]?(0,r.jsx)(o.j8w,{color:j[e.status],children:v[e.status]}):(0,r.jsx)(o.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:e.status})}),u&&(0,r.jsx)(o.Td,{children:(0,r.jsx)(o.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:$(e,a||s,p)})}),u&&!m&&(0,r.jsx)(o.Td,{children:(0,r.jsx)(o.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"finished"===e.status?"Request completed":e.collection_name})})]},e.updated_at));return(0,r.jsx)(o.xuv,{width:"100%",paddingTop:"0px",height:"100%",children:(0,r.jsx)(o.xJi,{id:"tableContainer",height:"100%",style:{overflowY:"auto"},children:(0,r.jsxs)(o.iA_,{size:"sm",id:"table",position:"relative",children:[(0,r.jsx)(o.hrZ,{id:"tableHeader",position:"sticky",top:"0px",backgroundColor:"white",zIndex:10,children:(0,r.jsxs)(o.Tr,{children:[(0,r.jsx)(o.Th,{children:(0,r.jsx)(o.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Time"})}),(0,r.jsx)(o.Th,{children:(0,r.jsx)(o.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Action Type"})}),(0,r.jsx)(o.Th,{children:(0,r.jsx)(o.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Status"})}),u&&(0,r.jsx)(o.Th,{children:(0,r.jsx)(o.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Records"})}),u&&!m&&(0,r.jsx)(o.Th,{children:(0,r.jsx)(o.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Collection"})})]})}),(0,r.jsx)(o.p3B,{id:"tableBody",children:x})]})})})},ee=e=>{let{isOpen:t,onClose:i,currentLogs:n,allEventLogs:s,isViewingError:a,errorMessage:c,currentStatus:d=l.ERROR,onCloseErrorPanel:u,onOpenErrorPanel:m,privacyRequest:p}=e;return(0,r.jsxs)(o.dys,{isOpen:t,placement:"right",onClose:i,size:"full",autoFocus:!1,"data-testid":"log-drawer",children:[(0,r.jsx)(o.P1B,{}),(0,r.jsxs)(o.scA,{style:{width:"50%"},"data-testid":"log-drawer",children:[(0,r.jsx)(o.OXI,{style:{paddingBottom:"0px"},children:(0,r.jsxs)(o.kCb,{justifyContent:"space-between",alignItems:"center",height:"40px",children:[(0,r.jsxs)(o.kCb,{alignItems:"center",children:[a&&(0,r.jsx)(o.wpx,{icon:(0,r.jsx)(o.Rpv,{}),"aria-label":"Close error logs",size:"small",onClick:u}),(0,r.jsx)(o.xvT,{color:"gray.900",fontSize:"md",lineHeight:"6",fontWeight:"medium",ml:1,children:a?"Event detail":"Event log"})]}),(0,r.jsx)(o.wpx,{icon:(0,r.jsx)(o.LGN,{width:"17px"}),"aria-label":"Stop viewing error message",size:"small",onClick:i,"data-testid":"log-drawer-close"})]})}),(0,r.jsxs)(o.Ng0,{id:"drawerBody",overflow:"hidden",children:[n&&!a?(0,r.jsx)(X,{eventLogs:n,allEventLogs:s,onDetailPanel:m,privacyRequest:p}):null,a?(0,r.jsx)(J,{errorMessage:c,status:d}):null]})]})]})},et=e=>{let{subjectRequest:t}=e,{isOpen:i,onOpen:n,onClose:s}=(0,o.qY0)(),[c,d]=(0,h.useState)([]),[u,m]=(0,h.useState)(""),[p,x]=(0,h.useState)(!1),[g,v]=(0,h.useState)(""),[j,y]=(0,h.useState)(l.ERROR),{results:f,id:_}=t,{commentItems:b,isLoading:T}=O(_),{eventItems:A,isLoading:R}=W(f),{manualTaskItems:C,taskCommentIds:N,isLoading:S}=G(_);(0,h.useEffect)(()=>{u&&f&&f[u]&&d(f[u])},[f,u]);let k=()=>{x(!1)},q=(0,h.useCallback)((e,t)=>{m(e),d(t),n()},[n]),P=(0,h.useMemo)(()=>f?Object.values(f).flat():[],[f]),I=(0,h.useMemo)(()=>b.filter(e=>{let t=e.id.replace("comment-","");return!N.has(t)}),[b,N]),D=(0,h.useMemo)(()=>{let e=A.map(e=>{if("Request update"===e.type&&e.title&&f){let t=e.title;if(f[t])return{...e,onClick:()=>q(t,f[t])}}return e});return[{author:"Fides",title:"Access request received",date:new Date(t.created_at),type:a.REQUEST_UPDATE,showViewLog:!1,isError:!1,isSkipped:!1,isAwaitingInput:!1,isPolling:!1,id:"initial-request"},...e,...I,...C].sort((e,t)=>new Date(e.date).getTime()-new Date(t.date).getTime())},[A,I,C,f,q,t.created_at]);return(0,r.jsxs)(o.xuv,{width:"100%",children:[(0,r.jsx)(o.krs,{className:"!border-none",bordered:!1,split:!1,"data-testid":"activity-timeline-list",children:(0,r.jsx)("ul",{className:"!list-none",children:T||R||S?(0,r.jsx)("div",{className:w().itemButton,"data-testid":"timeline-skeleton",children:(0,r.jsx)(o.N_L,{paragraph:{rows:2},active:!0})}):D.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(E,{item:e})},e.id))})}),(0,r.jsx)(ee,{isOpen:i,onClose:()=>{p&&k(),m(""),s()},currentLogs:c,allEventLogs:P,isViewingError:p,errorMessage:g,currentStatus:j,onOpenErrorPanel:(e,t)=>{v(e),t&&y(t),x(!0)},onCloseErrorPanel:k,privacyRequest:t})]})},ei=i(66187);let en=e=>{let{privacyRequestId:t,onCancel:i}=e,[n,s]=(0,h.useState)(""),l=(0,h.useRef)(null),[a,{isLoading:c}]=k();(0,h.useEffect)(()=>{l.current&&l.current.focus()},[]);let d=async()=>{if(n.trim())try{await a({privacy_request_id:t,comment_text:n,comment_type:ei.i.NOTE}).unwrap(),s(""),i()}catch(e){console.error("Failed to add comment:",e),o.Pg3.error({content:"Failed to add comment",duration:5})}},u=[{key:"internal",label:"Internal comment",children:(0,r.jsx)(o.AntInput.TextArea,{ref:l,value:n,onChange:e=>s(e.target.value),rows:3,className:"mb-3 h-[150px] w-full !resize-none","data-testid":"comment-input"})}];return(0,r.jsxs)("div",{children:[(0,r.jsx)(o.A5g,{items:u}),(0,r.jsxs)(o.jqI,{justify:"flex-end",className:"gap-2",children:[(0,r.jsx)(o.wpx,{onClick:i,"data-testid":"cancel-comment-button",children:"Cancel"}),(0,r.jsx)(o.wpx,{onClick:d,loading:c,disabled:!n.trim(),type:"primary",htmlType:"button","data-testid":"submit-comment-button",children:"Save"})]})]})};var es=e=>{let{subjectRequest:t}=e,[i,n]=(0,h.useState)(!1);return(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)(et,{subjectRequest:t}),i?(0,r.jsx)(en,{privacyRequestId:t.id,onCancel:()=>n(!1)}):(0,r.jsx)(g.ZP,{scopes:[x.Sh.COMMENT_CREATE],children:(0,r.jsx)(o.jqI,{justify:"flex-start",className:"mt-2",children:(0,r.jsxs)(o.wpx,{type:"default",onClick:()=>n(!0),className:"flex items-center","data-testid":"add-comment-button",children:["Add comment ",(0,r.jsx)("span",{className:"ml-1",children:"+"})]})})})]})},el=i(14207),ea=i(46238),er=i(72281),eo=i(17245),ec=i(90867),ed=i(16134);let eu=e=>Array.from(new Set(e.filter(e=>Object.values(x.Us).includes(e.action_type)).map(e=>e.action_type)));var em=e=>{let{rules:t}=e,i=eu(t).map(e=>(0,b.kC)(e)).map(e=>e);return(0,r.jsx)(o.AntTypography.Text,{children:i.join(" - ")})},ep=i(34090),eh=i(55484),ex=e=>{let{connectorName:t,data:i,isSubmitting:n=!1,onSaveClick:s}=e,{isOpen:l,onOpen:a,onClose:c}=(0,o.qY0)(),d=(0,h.useRef)(null),u=async(e,t)=>{s({connection_key:i.connection_key,privacy_request_id:i.privacy_request_id,body:{...e}}),c()};return(0,r.jsxs)(r.Fragment,{children:[(null==i?void 0:i.checked)&&(0,r.jsx)(o.wpx,{onClick:a,size:"small",children:"Review"}),!(null==i?void 0:i.checked)&&(0,r.jsx)(o.wpx,{onClick:a,size:"small",type:"primary",children:"Begin manual input"}),(0,r.jsx)(ep.J9,{enableReinitialize:!0,initialValues:{...i.fields},onSubmit:u,validateOnBlur:!1,validateOnChange:!1,validationSchema:eh.Ry().shape({}),children:e=>(0,r.jsxs)(o.dys,{isOpen:l,placement:"right",initialFocusRef:d,onClose:c,size:"lg",children:[(0,r.jsx)(o.P1B,{}),(0,r.jsxs)(o.scA,{children:[(0,r.jsx)(o.cCv,{}),(0,r.jsxs)(o.OXI,{color:"gray.900",children:[(0,r.jsx)(o.xvT,{fontSize:"xl",mb:8,children:t}),(0,r.jsx)(o.izJ,{}),(0,r.jsx)(o.xvT,{fontSize:"md",mt:"4",children:"Manual access"}),(0,r.jsx)(o.xuv,{mt:"8px",children:(0,r.jsx)(o.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"normal",children:"Please complete the following PII fields that have been collected for the selected subject."})})]}),(0,r.jsx)(o.Ng0,{children:(0,r.jsx)(ep.l0,{id:"manual-detail-form",noValidate:!0,children:(0,r.jsx)(o.gCW,{align:"stretch",gap:"16px",children:Object.entries(i.fields).map((e,t)=>{let[i]=e;return(0,r.jsx)(o.Ugi,{children:(0,r.jsx)(ep.gN,{id:i,name:i,children:e=>{let{field:n}=e;return(0,r.jsxs)(o.NIc,{alignItems:"baseline",display:"inline-flex",children:[(0,r.jsx)(o.lXp,{color:"gray.900",fontSize:"14px",fontWeight:"semibold",htmlFor:i,w:"50%",children:i}),(0,r.jsx)(o.IIB,{...n,autoComplete:"off",color:"gray.700",placeholder:"Please enter ".concat(i),ref:0===t?d:void 0,size:"sm"})]})}})},i)})})})}),(0,r.jsx)(o.zeN,{justifyContent:"flex-start",children:(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(o.wpx,{onClick:c,children:"Cancel"}),(0,r.jsx)(o.wpx,{form:"manual-detail-form",loading:n,htmlType:"submit",children:"Save"})]})})]})]})})]})},eg=e=>{let{connectorName:t,data:i,isSubmitting:n=!1,onSaveClick:s}=e,{isOpen:l,onOpen:a,onClose:c}=(0,o.qY0)(),d=(0,h.useRef)(null),u=async(e,t)=>{s({connection_key:i.connection_key,privacy_request_id:i.privacy_request_id,body:{...e}}),c()};return(0,r.jsxs)(r.Fragment,{children:[(null==i?void 0:i.checked)&&(0,r.jsx)(o.wpx,{onClick:a,size:"small",children:"Review"}),!(null==i?void 0:i.checked)&&(0,r.jsx)(o.wpx,{onClick:a,size:"small",type:"primary",children:"Begin manual input"}),(0,r.jsx)(ep.J9,{enableReinitialize:!0,initialValues:{...i.fields},onSubmit:u,validateOnBlur:!1,validateOnChange:!1,validationSchema:eh.Ry().shape({}),children:e=>(0,r.jsxs)(o.dys,{isOpen:l,placement:"right",initialFocusRef:d,onClose:c,size:"lg",children:[(0,r.jsx)(o.P1B,{}),(0,r.jsxs)(o.scA,{children:[(0,r.jsx)(o.cCv,{}),(0,r.jsxs)(o.OXI,{color:"gray.900",children:[(0,r.jsx)(o.xvT,{fontSize:"xl",mb:8,children:t}),(0,r.jsx)(o.izJ,{}),(0,r.jsx)(o.xvT,{fontSize:"md",mt:"4",children:"Manual erasure"}),(0,r.jsx)(o.xuv,{mt:"8px",children:(0,r.jsx)(o.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,r.jsx)(o.Ng0,{children:(0,r.jsx)(ep.l0,{id:"manual-detail-form",noValidate:!0,children:(0,r.jsx)(o.gCW,{align:"stretch",gap:"16px",children:Object.entries(i.fields).map(e=>{let[t]=e;return(0,r.jsx)(o.Ugi,{children:(0,r.jsx)(ep.gN,{id:t,name:t,children:e=>{let{field:i}=e;return(0,r.jsxs)(o.NIc,{alignItems:"baseline",display:"inline-flex",children:[(0,r.jsx)(o.lXp,{color:"gray.900",fontSize:"14px",fontWeight:"semibold",htmlFor:t,w:"50%",children:t}),(0,r.jsx)(o.XZJ,{...i,isChecked:!!i.value,onChange:i.onChange,name:t,id:t})]})}})},t)})})})}),(0,r.jsx)(o.zeN,{justifyContent:"flex-start",children:(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(o.wpx,{onClick:c,children:"Cancel"}),(0,r.jsx)(o.wpx,{form:"manual-detail-form",loading:n,htmlType:"submit",children:"Save"})]})})]})]})})]})};let ev=(e,t,i)=>e.includes(x.Us.ACCESS)?{ProcessingDetailComponent:ex,uploadMutation:t,getUploadedWebhookDataEndpoint:ec.$I.endpoints.getUploadedManualAccessWebhookData}:e.includes(x.Us.ERASURE)?{ProcessingDetailComponent:eg,uploadMutation:i,getUploadedWebhookDataEndpoint:ec.$I.endpoints.getUploadedManualErasureWebhookData}:null;var ej=e=>{let{subjectRequest:t,onComplete:i}=e,n=(0,ed.T)(),{errorAlert:s,successAlert:l}=(0,eo.VY)(),{handleError:a}=(0,eo.HK)(),[c,d]=(0,h.useState)([]),[u,m]=(0,h.useState)(!1),[p,g]=(0,h.useState)(!1),{data:v,isFetching:j,isLoading:y,isSuccess:f}=(0,el.W6)(),[_]=(0,ec.w3)(),b=eu(t.policy.rules),[T]=(0,ec.nL)(),[w]=(0,ec.UR)(),{ProcessingDetailComponent:A,uploadMutation:E,getUploadedWebhookDataEndpoint:R}=ev(b,T,w),C=async()=>{try{m(!0),await _(t.id).unwrap(),l("Manual request has been received. Request now processing."),i()}catch(e){a(e)}finally{m(!1)}},N=async e=>{try{g(!0),await E(e).unwrap();let t={connection_key:e.connection_key,fields:{}};Object.entries(e.body).forEach(e=>{let[i,n]=e;t.fields[i]=n||""});let i=c.map(e=>e.connection_key===t.connection_key?{...e,checked:!0,fields:{...t.fields}}:e);d(i),l("Manual input successfully saved!")}catch(e){a(e)}finally{g(!1)}};return((0,h.useEffect)(()=>(f&&v.length>0&&0===c.length&&(()=>{if(c.length>0)return;let e=[],i=null==v?void 0:v.map(e=>e.connection_config.key);null==i||i.every(i=>e.push(n(R.initiate({connection_key:i,privacy_request_id:t.id})))),Promise.allSettled(e).then(e=>{let t=[];e.forEach((e,i)=>{if("fulfilled"===e.status&&e.value.isSuccess&&e.value.data){let i={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[t,n]=e;i.fields[t]=n||""}),t.push(i)}else s("An error occurred while loading manual input data for ".concat(v[i].connection_config.name))}),d(t)})})(),()=>{}),[v,c.length,n,s,f,t.id,R]),b.includes(x.Us.ACCESS)||b.includes(x.Us.ERASURE))?(0,r.jsxs)(o.gCW,{align:"stretch",spacing:8,children:[(0,r.jsx)(o.xuv,{children:(0,r.jsx)(o.xvT,{color:"gray.700",fontSize:"sm",children:"The following table details the integrations that require manual input from you."})}),(0,r.jsxs)(o.xuv,{children:[(j||y)&&(0,r.jsx)(o.M5Y,{children:(0,r.jsx)(o.$jN,{})}),f&&v?(0,r.jsx)(o.xJi,{children:(0,r.jsxs)(o.iA_,{size:"sm",variant:"unstyled",children:[(0,r.jsx)(o.hrZ,{children:(0,r.jsxs)(o.Tr,{children:[(0,r.jsx)(o.Th,{fontSize:"sm",fontWeight:"semibold",pl:"0",textTransform:"none",children:"Integration Identifier"}),(0,r.jsx)(o.Th,{})]})}),(0,r.jsxs)(o.p3B,{children:[v.length>0&&v.map(e=>(0,r.jsxs)(o.Tr,{display:"block",children:[(0,r.jsx)(o.Td,{pl:"0",children:e.connection_config.key}),(0,r.jsx)(o.Td,{children:c.length>0?(0,r.jsx)(A,{connectorName:e.connection_config.name,data:c.find(t=>t.connection_key===e.connection_config.key),isSubmitting:p,onSaveClick:N}):null})]},e.id)),0===v.length&&(0,r.jsx)(o.Tr,{children:(0,r.jsx)(o.Td,{colSpan:3,pl:"0",children:(0,r.jsx)(o.M5Y,{children:(0,r.jsx)(o.xvT,{children:"You don‘t have any Manual Process connections set up yet."})})})})]}),c.length>0&&c.every(e=>e.checked)?(0,r.jsx)(o.$RU,{children:(0,r.jsx)(o.Tr,{children:(0,r.jsx)(o.Th,{pl:"0px",children:(0,r.jsx)(o.wpx,{type:"primary",loading:u,onClick:C,className:"mt-2",children:"Complete DSR"})})})}):null]})}):null]})]}):null},ey=e=>{let{subjectRequest:t,onComplete:i}=e,n=(0,c.useRouter)(),{data:s}=(0,el.AZ)({}),l=(0,h.useMemo)(()=>{var e;return(null==s?void 0:null===(e=s.items)||void 0===e?void 0:e.filter(e=>e.connection_type===x.Rj.MANUAL_TASK))||[]},[s]),{data:a}=(0,el.W6)(),d=(a||[]).length>0,{data:m}=(0,F.Ym)({page:1,size:100,privacy_request_id:t.id}),p=(null==m?void 0:m.items)||[],g=p.length,v=p.filter(e=>e.status===x.OS.NEW).length,j=l.length>0,y=p.length>0,f=j||y;return f||d?(0,r.jsxs)(o.Kqy,{spacing:6,children:[f&&(0,r.jsxs)(o.xuv,{children:[(0,r.jsx)(o.AntTypography.Title,{level:4,style:{marginBottom:12},children:"Manual tasks"}),(0,r.jsxs)(o.Kqy,{spacing:2,children:[(0,r.jsxs)(o.AntTypography.Text,{children:[(0,r.jsx)("strong",{children:g})," task",1!==g?"s":""," ","linked to this privacy request"]}),(0,r.jsxs)(o.AntTypography.Text,{children:[(0,r.jsx)("strong",{children:v})," pending task",1!==v?"s":""]}),g>0&&(0,r.jsx)("div",{className:"mt-2",children:(0,r.jsx)(o.wpx,{type:"primary",onClick:()=>{n.push({pathname:u.Jw,query:{privacy_request_id:t.id,tab:er.G.MANUAL_TASK}})},children:"View all tasks for this request →"})})]})]}),d&&(0,r.jsxs)(o.xuv,{children:[(0,r.jsxs)(o.kCb,{alignItems:"center",style:{marginBottom:12},children:[(0,r.jsx)(o.AntTypography.Title,{level:4,style:{margin:0,marginRight:8},children:"Manual steps (legacy)"}),(0,r.jsx)(ea.b,{label:"This is the legacy manual steps feature. The new manual tasks feature provides more advanced capabilities and better user experience."})]}),(0,r.jsx)(ej,{subjectRequest:t,onComplete:i||(()=>{})})]})]}):(0,r.jsx)(o.xuv,{p:4,children:(0,r.jsx)(o.AntTypography.Text,{type:"secondary",children:"No manual tasks or legacy manual steps configured for this request."})})},ef=i(59969),e_=i(45259),eb=i(18225),eT=i(812),ew=i(7842);let{useGetAttachmentsQuery:eA,useUploadAttachmentMutation:eE,useGetAttachmentDetailsQuery:eR,useLazyGetAttachmentDetailsQuery:eC}=N.u.injectEndpoints({endpoints:e=>({getAttachments:e.query({query:e=>{let{privacy_request_id:t,page:i=1,size:n}=e;return{url:"plus/privacy-request/".concat(t,"/attachment"),method:"GET",params:{page:i,size:n}}},providesTags:["Privacy Request Attachments"]}),uploadAttachment:e.mutation({query:e=>{let{privacy_request_id:t,attachment_type:i,attachment_file:n}=e,s=new FormData;return s.append("attachment_type",i),s.append("attachment_file",n),{url:"plus/privacy-request/".concat(t,"/attachment"),method:"POST",body:s,params:{}}},invalidatesTags:["Privacy Request Attachments"]}),getAttachmentDetails:e.query({query:e=>{let{privacy_request_id:t,attachment_id:i}=e;return{url:"plus/privacy-request/".concat(t,"/attachment/").concat(i),method:"GET"}}})})}),{reducer:eN}=(0,C.oM)({name:"privacyRequestAttachments",initialState:{},reducers:{}}),eS=e=>{var t;let{file:i}=e,[n,s]=(0,h.useState)(!1),[l]=eC(),a=async()=>{var e,t,n;if((null===(e=i.customData)||void 0===e?void 0:e.attachment_id)&&(null===(t=i.customData)||void 0===t?void 0:t.privacy_request_id)){s(!0);try{let e=await l({privacy_request_id:i.customData.privacy_request_id,attachment_id:i.customData.attachment_id}),t=null===(n=e.data)||void 0===n?void 0:n.retrieved_attachment_url,s=null==t?void 0:t.startsWith("http");t&&s?window.open(t,"_blank"):t&&!s?o.Pg3.info("Download is not available when using local storage methods."):o.Pg3.error("No download URL available for ".concat(i.name))}catch(e){o.Pg3.error("Failed to fetch attachment download URL")}finally{s(!1)}}},c=(null===(t=i.customData)||void 0===t?void 0:t.attachment_type)===x.sf.INCLUDE_WITH_ACCESS_PACKAGE;return(0,r.jsxs)(o.jqI,{align:"center",gap:8,children:[(0,r.jsx)(o.PJP.PgN,{className:"shrink-0"}),(0,r.jsx)(o.lKn,{ellipsis:{tooltip:i.name},className:"grow",children:i.name}),c&&(0,r.jsx)(o.esZ,{title:"This attachment will be included in the access package.",children:(0,r.jsx)(o.PJP.wvC,{className:"shrink-0",title:"User icon"})}),(0,r.jsx)(o.wpx,{type:"text","aria-label":"Download attachment",icon:(0,r.jsx)(o.PJP.UWx,{}),onClick:a,loading:n,className:"shrink-0"})]})},ek=(e,t)=>(0,r.jsx)(eS,{file:t});var eq=e=>{let{subjectRequest:t}=e,[i,n]=(0,h.useState)(!1),s=(0,g.Tg)([x.Sh.ATTACHMENT_READ]),l=(0,g.Tg)([x.Sh.ATTACHMENT_CREATE]),[a]=eE(),{data:c,isLoading:d,error:u}=(0,ec.PW)(),{data:m,isLoading:p}=eA({privacy_request_id:t.id}),{refetch:v}=eA({privacy_request_id:t.id}),j=(null==m?void 0:m.items.map(e=>({uid:e.id,name:e.file_name,status:"done",customData:{attachment_id:e.id,privacy_request_id:t.id,attachment_type:e.attachment_type}})))||[],y=(0,h.useCallback)(()=>(0,r.jsx)(o.PJP.PgN,{}),[]);if(!s)return null;let f=l&&(null==c?void 0:c.key),_=[".pdf",".doc",".docx",".xls",".xlsx",".txt",".csv",".jpg",".jpeg",".png",".zip"];return(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:"mt-6",children:[(0,r.jsx)("div",{className:"mb-6",children:(0,r.jsx)(o.lQT,{level:3,children:"Attachments"})}),d||p?(0,r.jsx)(eb.Z,{size:"md",alignment:"start"}):(0,r.jsx)(o.pMK,{name:"attachment_file",fileList:j,iconRender:y,showUploadList:{showRemoveIcon:!1,showDownloadIcon:!1},itemRender:ek,accept:_.join(","),customRequest:async e=>{let{file:i,onSuccess:s,onError:l}=e,r=i.name;try{n(!0),await a({privacy_request_id:t.id,attachment_file:i,attachment_type:ew.s.INTERNAL_USE_ONLY}).unwrap(),o.Pg3.success("".concat(r," file uploaded successfully")),v(),null==s||s(i)}catch(e){o.Pg3.error("".concat(r," file upload failed.")),null==l||l(e)}finally{n(!1)}},disabled:!f,children:l&&(0,r.jsx)(o.esZ,{title:u&&"Add attachment not available: ".concat((0,eT.e$)(u)),placement:"top",children:(0,r.jsxs)(o.jqI,{align:"center",gap:12,className:"mb-4",children:[(0,r.jsx)(o.wpx,{icon:(0,r.jsx)(o.PJP.mm_,{}),iconPosition:"end",disabled:!f||i,loading:i,children:i?"Uploading":"Add"}),(0,r.jsx)(ea.b,{label:"Uploaded attachments are for internal use and won't be send as part of the request package.\n Accepted filetypes: ".concat(_.join(", ")),placement:"top"})]})})})]})})},eP=i(15709),eI=i.n(eP),eO=e=>{let{label:t,children:i}=e;return(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("div",{className:"shrink-0 grow-0 basis-1/2 pr-2 ".concat(eI().label),children:(0,r.jsxs)(o.AntTypography.Text,{children:[t,":"]})}),(0,r.jsx)("div",{className:"min-w-0 shrink grow ".concat(eI().value),"data-testid":"request-detail-value-".concat(t),children:i})]})},eD=e=>{let{subjectRequest:t}=e,{custom_privacy_request_fields:i}=t;return(0,r.jsx)("div",{className:"flex flex-col gap-2",children:i&&Object.keys(i).length>0&&Object.entries(i).filter(e=>{let[,t]=e;return t.value}).map(e=>{let[t,i]=e;return(0,r.jsx)(eO,{label:i.label,children:(0,r.jsx)(o.AntTypography.Text,{children:Array.isArray(i.value)?i.value.join(", "):i.value})},t)})})},eM=e=>{var t,i;let{subjectRequest:n}=e,{plus:s}=(0,R.hz)(),{id:l,status:a,policy:c,identity:d,identity_verified_at:u}=n;return(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"mb-6",children:(0,r.jsx)(o.AntTypography.Title,{level:2,children:"Request details"})}),(0,r.jsxs)(o.jqI,{vertical:!0,gap:12,className:"mb-6",children:[(0,r.jsx)(eO,{label:"Status",children:(0,r.jsx)(e_.Z,{status:a})}),(0,r.jsx)(eO,{label:"Time remaining",children:(0,r.jsx)(ef.Z,{daysLeft:n.days_left,includeText:!0,status:n.status})}),(0,r.jsx)(eO,{label:"Request type",children:(0,r.jsx)(em,{rules:c.rules})}),(0,r.jsx)(eO,{label:"Source",children:s&&(0,r.jsx)(o.AntTypography.Text,{children:n.source||"-"})}),n.submitted_by&&(0,r.jsx)(eO,{label:"Created by",children:(0,r.jsx)(o.AntTypography.Text,{children:(null===(t=n.submitter)||void 0===t?void 0:t.username)||"-"})}),(0,r.jsx)(eO,{label:"Reviewed by",children:(0,r.jsx)(o.AntTypography.Text,{children:(null===(i=n.reviewer)||void 0===i?void 0:i.username)||"-"})}),Object.entries(d).filter(e=>{let[,{value:t}]=e;return null!==t}).map(e=>{let[t,{value:i="",label:n}]=e,s="".concat(i).concat(u?"":" (Unverified)");return(0,r.jsx)(eO,{label:"Subject ".concat(n.toLocaleLowerCase()),children:(0,r.jsx)(o.esZ,{title:s,trigger:"click",children:(0,r.jsx)(o.AntTypography.Text,{ellipsis:!0,children:s})})},t)}),(0,r.jsx)(eD,{subjectRequest:n})]}),(0,r.jsxs)(o.PPS,{layout:"vertical",children:[(0,r.jsx)(o.PPS.Item,{label:"Request ID:",className:"mb-4",children:(0,r.jsx)(o.jqI,{gap:1,children:(0,r.jsxs)(o.vyj.Compact,{style:{width:"100%"},children:[(0,r.jsx)(o.AntInput,{readOnly:!0,value:l,"data-testid":"request-detail-value-id"}),(0,r.jsx)(o.wpx,{"aria-label":"Copy request ID",icon:(0,r.jsx)(Z.Z,{copyText:l})})]})})}),(0,r.jsx)(o.PPS.Item,{label:"Policy key:",className:"mb-4",children:(0,r.jsx)(o.AntInput,{readOnly:!0,value:n.policy.key,"data-testid":"request-detail-value-policy"})})]}),(0,r.jsx)(eq,{subjectRequest:n})]})};let eL=[x.q2.COMPLETE,x.q2.CANCELED,x.q2.DENIED,x.q2.ERROR];var eU=e=>{var t;let{data:i}=e,n=(0,h.useMemo)(()=>({id:i.id,verbose:!0}),[i.id]),{data:s}=(0,p.QA)(n,{pollingInterval:eL.includes(i.status)?0:2e3,skip:!i.id}),l=null!==(t=null==s?void 0:s.items[0])&&void 0!==t?t:i,a=l.status===x.q2.REQUIRES_INPUT,[c,d]=(0,h.useState)("activity"),u=(0,h.useMemo)(()=>[{key:"activity",label:"Activity",children:(0,r.jsx)(es,{subjectRequest:l})},{key:"manual-tasks",label:"Manual tasks",children:(0,r.jsx)(ey,{subjectRequest:l,onComplete:()=>d("activity")}),disabled:!a}],[a,l]);return(0,r.jsxs)("div",{className:"flex gap-8",children:[(0,r.jsx)("div",{className:"w-0 grow",children:(0,r.jsx)(o.A5g,{items:u,activeKey:c,onChange:d})}),(0,r.jsx)("div",{className:"w-1/3 2xl:w-[432px]","data-testid":"privacy-request-details",children:(0,r.jsx)(eM,{subjectRequest:l})})]})},ez=i(57526),eW=i(66548),eB=i(45489),eF=e=>{let{privacyRequest:t,action:i}=e,{handleApproveRequest:n,handleDenyRequest:s}=(0,eB.Z)({subjectRequest:t}),l=t.status===x.q2.PENDING,a=(0,o.qY0)(),r=async e=>{let{reason:t}=e,l=o.Pg3.loading({content:"approve"===i?"Approving request...":"Denying request..."});"deny"===i&&await s(t),"approve"===i&&await n(),l()};return{showAction:l,closeModal:a.onClose,performAction:r,openConfirmationModal:a.onOpen,isModalOpen:a.isOpen}},eG=e=>{var t,i,n;let{privacyRequest:s}=e,l=null===(i=(0,R.hz)())||void 0===i?void 0:null===(t=i.flags)||void 0===t?void 0:t.downloadAccessRequestResults,a=s.status===x.q2.COMPLETE,r=eu(s.policy.rules).includes(x.Us.ACCESS),o=(0,g.Tg)([x.Sh.PRIVACY_REQUEST_ACCESS_RESULTS_READ]),{data:c,isLoading:d,isError:u,error:m}=(0,ec.br)({privacy_request_id:s.id},{skip:!a}),p=null!==(n=null==c?void 0:c.access_result_urls[0])&&void 0!==n?n:"",h=!!p&&"your local fides_uploads folder"!==p,v=null;return u?v=(0,eT.e$)(m,"Unable to resolve download URL"):h||(v="Requests stored locally cannot be downloaded"),{showDownloadResults:l&&o&&r&&a,downloadResults:()=>{let e=document.createElement("a");e.href=p,e.target="_blank",e.rel="noopener noreferrer",e.click(),e.remove()},infoTooltip:v,isLoading:d,isDisabled:!h}},eZ=e=>{let{privacyRequest:t}=e,{errorAlert:i,successAlert:n}=(0,eo.VY)(),s=t.status===x.q2.ERROR,[l]=(0,ec.Fq)();return{reprocessPrivacyRequest:async()=>{if(!t)return;let e=o.Pg3.loading("Reprocessing privacy request...",0),s=await l(t);"error"in s?i((0,eT.e$)(s.error),"DSR automation has failed for this privacy request due to the following:",{duration:null}):n("Privacy request is now being reprocessed."),e()},showReprocess:s}},eJ=e=>{let{privacyRequest:t}=e,{showDownloadResults:i,downloadResults:n,infoTooltip:s,isDisabled:l}=eG({privacyRequest:t}),{isModalOpen:a,closeModal:c,performAction:d,openConfirmationModal:u,showAction:m}=eF({privacyRequest:t,action:"approve"}),{isModalOpen:p,closeModal:g,performAction:v,openConfirmationModal:j,showAction:y}=eF({privacyRequest:t,action:"deny"}),{reprocessPrivacyRequest:f,showReprocess:_}=eZ({privacyRequest:t}),{handleFinalizeRequest:b,finalizeRequestResult:T}=(0,eB.Z)({subjectRequest:t}),w=(0,h.useMemo)(()=>{let e=[];return e.push({key:"approve",label:(0,r.jsx)("span",{"data-testid":"privacy-request-approve-btn",children:"Approve"}),onClick:u,disabled:!m}),e.push({key:"deny",label:(0,r.jsx)("span",{"data-testid":"privacy-request-deny-btn",children:"Deny"}),onClick:j,disabled:!y}),e.push({key:"reprocess",label:(0,r.jsx)("span",{"data-testid":"privacy-request-action-reprocess",children:"Reprocess"}),onClick:f,disabled:!_}),t.status===x.q2.REQUIRES_MANUAL_FINALIZATION&&e.push({key:"finalize",label:(0,r.jsx)("span",{"data-testid":"privacy-request-action-finalize",children:"Finalize"}),onClick:b,disabled:T.isLoading}),i&&e.push({key:"download",label:(0,r.jsx)(o.esZ,{title:l?s:null,placement:"bottom",children:(0,r.jsx)("span",{"data-testid":"download-results-btn",children:"Download request results"})}),onClick:n,disabled:l}),e},[i,n,s,l,m,y,u,j,_,f,t.status,b,T.isLoading]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.S0p,{menu:{items:w},trigger:["click"],overlayStyle:{minWidth:"160px"},children:(0,r.jsx)(o.wpx,{icon:(0,r.jsx)(o.PJP.pO,{}),"data-testid":"privacy-request-actions-dropdown-btn",iconPosition:"end",type:"primary",disabled:!w.length,size:"large",children:"Actions"})}),(0,r.jsx)(ez.Z,{isOpen:a,isLoading:!1,onClose:c,onApproveRequest:()=>d({reason:""}),subjectRequest:t}),(0,r.jsx)(eW.Z,{isOpen:p,onClose:g,onDenyRequest:e=>v({reason:e})})]})},eK=()=>{let e=(0,c.useRouter)().query.id,{data:t,isLoading:i}=(0,p.QA)({id:e,verbose:!0},{skip:!e}),n=(null==t?void 0:t.items[0])||null;return(0,r.jsxs)(d.Z,{title:"Privacy Request - ".concat(e),children:[(0,r.jsx)(m.Z,{heading:"Privacy Requests",breadcrumbItems:[{title:"All requests",href:u.Jw},{title:"Request details"}],rightContent:!!n&&(0,r.jsx)(eJ,{privacyRequest:n})}),i&&(0,r.jsx)(o.M5Y,{children:(0,r.jsx)(o.$jN,{})}),!i&&!n&&(0,r.jsx)(o.xvT,{children:"404 no privacy request found"}),!i&&n&&(0,r.jsx)(eU,{data:n})]})}},15709:function(e){e.exports={value:"RequestDetailsRow_value__WMXn3",label:"RequestDetailsRow_label__dn3CQ"}},38450:function(e){e.exports={container:"ActivityTimelineEntry_container__tCva0","container--open":"ActivityTimelineEntry_container--open__1d9mA",itemButton:"ActivityTimelineEntry_itemButton__MlmWS","itemButton--error":"ActivityTimelineEntry_itemButton--error__UizD2","itemButton--comment":"ActivityTimelineEntry_itemButton--comment__g98SH","itemButton--awaiting-input":"ActivityTimelineEntry_itemButton--awaiting-input__6lB5t","itemButton--polling":"ActivityTimelineEntry_itemButton--polling__jzolP",header:"ActivityTimelineEntry_header__GYibj",title:"ActivityTimelineEntry_title__rm_g0","title--error":"ActivityTimelineEntry_title--error__fOi0s","title--awaiting-input":"ActivityTimelineEntry_title--awaiting-input__3sPAo","title--polling":"ActivityTimelineEntry_title--polling__g_Hgn",timestamp:"ActivityTimelineEntry_timestamp__uMEMT",viewLogs:"ActivityTimelineEntry_viewLogs___T4jN",logs:"ActivityTimelineEntry_logs__T7R0J","logs--open":"ActivityTimelineEntry_logs--open__o_9Io"}}},function(e){e.O(0,[431,7245,8373,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([[5979],{23663:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/privacy-requests/configure/storage",function(){return i(64665)}])},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return g}});var s=i(24246),a=i(87949),n=i(88038),r=i.n(n),l=i(86677);i(27378);var o=i(25980),d=i(90867),c=i(42478),u=i(77830),m=()=>{let e=(0,l.useRouter)();return(0,s.jsx)(a.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)(a.xuv,{children:[(0,s.jsxs)(a.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,s.jsx)(a.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,s.jsx)(a.wpx,{onClick:()=>{e.push(u.AD)},children:"Configure"})]}),(0,s.jsxs)(a.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},g=e=>{let{children:t,title:i,padded:n=!0,mainProps:u}=e,g=(0,o.hz)(),h=(0,l.useRouter)(),p="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,x=!(g.flags.messagingConfiguration&&p),{data:v}=(0,c.JE)(void 0,{skip:x}),{data:f}=(0,d.PW)(void 0,{skip:x}),y=g.flags.messagingConfiguration&&(!v||!f)&&p;return(0,s.jsxs)(a.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,s.jsxs)(r(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsxs)(a.kCb,{as:"main",direction:"column",py:n?6:0,px:n?10:0,h:n?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[y?(0,s.jsx)(m,{}):null,t]})]})}},58754:function(e,t,i){"use strict";var s=i(24246),a=i(87949),n=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:r=!0,children:l,rightContent:o,style:d,...c}=e;return(0,s.jsxs)("div",{...c,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,s.jsxs)(a.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(a.lQT,{className:i||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,s.jsx)(n.m,{className:l?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),l]})}},97181:function(e,t,i){"use strict";i.d(t,{d:function(){return d}});var s=i(24246),a=i(87949),n=i(34090),r=i(27378),l=i(46238),o=i(40324);let d=e=>{let{name:t,label:i,labelProps:d,tooltip:c,isRequired:u,layout:m="inline",helperText:g,...h}=e,[p,x,{setValue:v}]=(0,n.U$)(t),f=!!(x.touched&&x.error),[y,j]=(0,r.useState)("");p.value||"tags"!==h.mode&&"multiple"!==h.mode||(p.value=[]),"tags"===h.mode&&"string"==typeof p.value&&(p.value=[p.value]);let _="tags"===h.mode?(e,t)=>e?e.value!==y||p.value.includes(y)?h.optionRender?h.optionRender(e,t):e.label:'Create "'.concat(y,'"'):void 0:h.optionRender||void 0,b=e=>{j(e),h.onSearch&&h.onSearch(e)},C=(e,t)=>{v(e),h.onChange&&h.onChange(e,t)};return"inline"===m?(0,s.jsx)(a.NIc,{isInvalid:f,isRequired:u,children:(0,s.jsxs)(a.rjZ,{templateColumns:i?"1fr 3fr":"1fr",children:[i?(0,s.jsx)(o.__,{htmlFor:h.id||t,...d,children:i}):null,(0,s.jsxs)(a.jqI,{align:"center",children:[(0,s.jsxs)(a.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,s.jsx)(a.WPr,{...p,id:h.id||t,"data-testid":"controlled-select-".concat(p.name),...h,optionRender:_,onSearch:"tags"===h.mode?b:void 0,onChange:C,value:p.value||void 0,status:f?"error":void 0}),g&&(0,s.jsx)(a.Q6r,{children:g}),(0,s.jsx)(o.Bc,{isInvalid:f,message:x.error,fieldName:p.name})]}),(0,s.jsx)(l.b,{label:c,className:f?"mt-2 self-start":void 0})]})]})}):(0,s.jsx)(a.NIc,{isInvalid:f,isRequired:u,children:(0,s.jsxs)(a.gCW,{alignItems:"start",children:[(0,s.jsxs)(a.jqI,{align:"center",children:[i?(0,s.jsx)(o.__,{htmlFor:h.id||t,fontSize:"xs",my:0,mr:1,...d,children:i}):null,(0,s.jsx)(l.b,{label:c})]}),(0,s.jsx)(a.WPr,{...p,id:h.id||t,"data-testid":"controlled-select-".concat(p.name),...h,optionRender:_,onSearch:"tags"===h.mode?b:void 0,onChange:C,value:p.value||void 0,status:f?"error":void 0}),g&&(0,s.jsx)(a.Q6r,{style:{marginTop:0},children:g}),(0,s.jsx)(o.Bc,{isInvalid:f,message:x.error,fieldName:p.name})]})})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return d}});var s=i(24246),a=i(87949),n=i(79894),r=i.n(n),l=i(27378);let{Text:o}=a.AntTypography,d=e=>{let{items:t,...i}=e,n=(0,l.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let n=i===t.length-1,l={...e},d=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,s.jsx)(o,{style:{color:"inherit",maxWidth:n?void 0:400},ellipsis:!n,id:n?"breadcrumb-current-page":void 0,children:l.title})),d)?l.title=(0,s.jsx)(a.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,s.jsx)(r(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,s.jsx)(a.zrq,{items:n,...i})}},42478:function(e,t,i){"use strict";i.d(t,{FU:function(){return d},JE:function(){return a},Ki:function(){return u},SU:function(){return m},W:function(){return g},h9:function(){return n},jc:function(){return s},qt:function(){return o},sn:function(){return c}});let{useGetEmailInviteStatusQuery:s,useGetActiveMessagingProviderQuery:a,useCreateMessagingConfigurationMutation:n,useCreateMessagingConfigurationSecretsMutation:r,useGetMessagingConfigurationDetailsQuery:l,useGetMessagingConfigurationsQuery:o,useGetMessagingConfigurationByKeyQuery:d,useUpdateMessagingConfigurationByKeyMutation:c,useUpdateMessagingConfigurationSecretsByKeyMutation:u,useCreateTestConnectionMessageMutation:m,useDeleteMessagingConfigurationByKeyMutation:g}=i(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,t,i,s)=>{let a=await s({url:"messaging/default/active"});return a.error&&404===a.error.status?{data:null}:a},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},71784:function(e,t,i){"use strict";i.d(t,{DE:function(){return l},I3:function(){return a},kN:function(){return r},rE:function(){return n}});var s=i(65735);let a=[...new Map([[s.q2.APPROVED,"Approved"],[s.q2.AWAITING_EMAIL_SEND,"Awaiting email send"],[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"],[s.q2.REQUIRES_MANUAL_FINALIZATION,"Requires finalization"]])].map(e=>{let[t,i]=e;return{label:i,value:t}}),n=new Map([[s.Us.ACCESS,"Access"],[s.Us.ERASURE,"Erasure"],[s.Us.CONSENT,"Consent"],[s.Us.UPDATE,"Update"]]),r=[...n].map(e=>{let[t,i]=e;return{label:i,value:t}}),l={local:"local",s3:"s3",gcs:"gcs"}},64665:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return j}});var s=i(24246),a=i(87949),n=i(27378),r=i(812),l=i(17245),o=i(77213),d=i(77830),c=i(58754),u=i(7426),m=i(71784),g=i(90867),h=i(34090),p=i(97181),x=i(40324),v=e=>{var t,i,o,d,c;let{storageDetails:u}=e,[v,f]=(0,n.useState)(""),[y]=(0,g.gC)(),[j]=(0,g.cf)(),{handleError:_}=(0,l.HK)(),{successAlert:b}=(0,l.VY)(),C={type:m.DE.gcs,auth_method:null!==(o=null==u?void 0:null===(t=u.details)||void 0===t?void 0:t.auth_method)&&void 0!==o?o:"",bucket:null!==(d=null==u?void 0:null===(i=u.details)||void 0===i?void 0:i.bucket)&&void 0!==d?d:"",format:null!==(c=null==u?void 0:u.format)&&void 0!==c?c:""},q=async e=>{let t=await y({type:m.DE.gcs,details:{auth_method:e.auth_method,bucket:e.bucket},format:e.format});(0,r.D4)(t)?_(t.error):(f(e.auth_method),b("Google Cloud Storage credentials successfully updated."))},k=async e=>{let t=e.private_key.trim();t.includes("\\n")&&(t=t.replace(/\\n/g,"\n"));let i=await j({details:{type:e.type,project_id:e.project_id,private_key_id:e.private_key_id,private_key:t,client_email:e.client_email,client_id:e.client_id,auth_uri:e.auth_uri,token_uri:e.token_uri,auth_provider_x509_cert_url:e.auth_provider_x509_cert_url,client_x509_cert_url:e.client_x509_cert_url,universe_domain:e.universe_domain},type:m.DE.gcs});(0,r.D4)(i)?_(i.error):b("Google Cloud Storage secrets successfully updated.")};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"Google Cloud Storage configuration"}),(0,s.jsx)(a.Kqy,{children:(0,s.jsx)(h.J9,{initialValues:C,onSubmit:q,enableReinitialize:!0,children:e=>{let{isSubmitting:t,handleReset:i}=e;return(0,s.jsxs)(h.l0,{children:[(0,s.jsxs)(a.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:"Service Account Keys",value:"service_account_keys"},{label:"Application Default Credentials",value:"adc"}],"data-testid":"auth_method",isRequired:!0}),(0,s.jsx)(x.j0,{"data-testid":"bucket",name:"bucket",label:"Bucket",isRequired:!0})]}),(0,s.jsx)(a.wpx,{onClick:()=>i(),className:"mr-2 mt-5",children:"Cancel"}),(0,s.jsx)(a.wpx,{htmlType:"submit",className:"mt-5",disabled:t,type:"primary","data-testid":"save-btn",children:"Save"})]})}})}),"service_account_keys"===v&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.izJ,{mt:5}),(0,s.jsx)(a.X6q,{fontSize:"md",fontWeight:"semibold",mt:5,children:"Storage destination"}),(0,s.jsx)(a.Kqy,{children:(0,s.jsx)(h.J9,{initialValues:{type:"",project_id:"",private_key_id:"",private_key:"",client_email:"",client_id:"",auth_uri:"",token_uri:"",auth_provider_x509_cert_url:"",client_x509_cert_url:"",universe_domain:""},onSubmit:k,children:e=>{let{isSubmitting:t,handleReset:i}=e;return(0,s.jsxs)(h.l0,{children:[(0,s.jsxs)(a.Kqy,{mt:5,spacing:5,children:[(0,s.jsx)(x.j0,{name:"type",label:"Type"}),(0,s.jsx)(x.j0,{name:"project_id",label:"Project ID"}),(0,s.jsx)(x.j0,{name:"private_key_id",label:"Private key ID",type:"password"}),(0,s.jsx)(x.j0,{name:"private_key",label:"Private key",type:"password"}),(0,s.jsx)(x.j0,{name:"client_email",label:"Client email"}),(0,s.jsx)(x.j0,{name:"client_id",label:"Client ID"}),(0,s.jsx)(x.j0,{name:"auth_uri",label:"Auth URI"}),(0,s.jsx)(x.j0,{name:"token_uri",label:"Token URI"}),(0,s.jsx)(x.j0,{name:"auth_provider_x509_cert_url",label:"Auth provider x509 cert URL"}),(0,s.jsx)(x.j0,{name:"client_x509_cert_url",label:"Client x509 cert URL"}),(0,s.jsx)(x.j0,{name:"universe_domain",label:"Universe domain"})]}),(0,s.jsxs)(a.xuv,{mt:10,children:[(0,s.jsx)(a.wpx,{onClick:()=>i(),className:"mr-2 mt-5",children:"Cancel"}),(0,s.jsx)(a.wpx,{disabled:t,htmlType:"submit",type:"primary",className:"mt-5","data-testid":"save-btn",children:"Save"})]})]})}})})]})]})},f=e=>{var t,i,o,d,c;let{storageDetails:u}=e,[v,f]=(0,n.useState)(""),[y]=(0,g.gC)(),[j]=(0,g.cf)(),{handleError:_}=(0,l.HK)(),{successAlert:b}=(0,l.VY)(),C={type:m.DE.s3,auth_method:null!==(o=null==u?void 0:null===(t=u.details)||void 0===t?void 0:t.auth_method)&&void 0!==o?o:"",bucket:null!==(d=null==u?void 0:null===(i=u.details)||void 0===i?void 0:i.bucket)&&void 0!==d?d:"",format:null!==(c=null==u?void 0:u.format)&&void 0!==c?c:""},q=async e=>{let t=await y({type:m.DE.s3,details:{auth_method:e.auth_method,bucket:e.bucket},format:e.format});(0,r.D4)(t)?_(t.error):(f(e.auth_method),b("S3 storage credentials successfully updated."))},k=async e=>{let t=await j({details:{aws_access_key_id:e.aws_access_key_id,aws_secret_access_key:e.aws_secret_access_key},type:m.DE.s3});(0,r.D4)(t)?_(t.error):b("S3 storage secrets successfully updated.")};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"S3 storage configuration"}),(0,s.jsx)(a.Kqy,{children:(0,s.jsx)(h.J9,{initialValues:C,onSubmit:q,enableReinitialize:!0,children:e=>{let{isSubmitting:t,handleReset:i}=e;return(0,s.jsxs)(h.l0,{children:[(0,s.jsxs)(a.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)(x.j0,{"data-testid":"bucket",name:"bucket",label:"Bucket",isRequired:!0})]}),(0,s.jsx)(a.wpx,{onClick:()=>i(),className:"mr-2 mt-5",children:"Cancel"}),(0,s.jsx)(a.wpx,{htmlType:"submit",className:"mt-5",disabled:t,type:"primary","data-testid":"save-btn",children:"Save"})]})}})}),"secret_keys"===v?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.izJ,{mt:5}),(0,s.jsx)(a.X6q,{fontSize:"md",fontWeight:"semibold",mt:5,children:"Storage destination"}),(0,s.jsx)(a.Kqy,{children:(0,s.jsx)(h.J9,{initialValues:{aws_access_key_id:"",aws_secret_access_key:""},onSubmit:k,children:e=>{let{isSubmitting:t,handleReset:i}=e;return(0,s.jsxs)(h.l0,{children:[(0,s.jsxs)(a.Kqy,{mt:5,spacing:5,children:[(0,s.jsx)(x.j0,{name:"aws_access_key_id",label:"AWS access key ID"}),(0,s.jsx)(x.j0,{name:"aws_secret_access_key",label:"AWS secret access key",type:"password"})]}),(0,s.jsxs)(a.xuv,{mt:10,children:[(0,s.jsx)(a.wpx,{onClick:()=>i(),className:"mr-2 mt-5",children:"Cancel"}),(0,s.jsx)(a.wpx,{disabled:t,htmlType:"submit",type:"primary",className:"mt-5","data-testid":"save-btn",children:"Save"})]})]})}})})]}):null]})},y=()=>{let{successAlert:e}=(0,l.VY)(),{handleError:t}=(0,l.HK)(),[i,h]=(0,n.useState)(""),{data:p}=(0,g.PW)(),{data:x}=(0,g.Au)({type:i}),[y,{isLoading:j}]=(0,g.gC)(),[_]=(0,u.L)();(0,n.useEffect)(()=>{p&&h(p.type)},[p]);let b=async i=>{if(i===m.DE.local){let s=await y({type:i,details:{},format:"json"});(0,r.D4)(s)?t(s.error):e("Configured storage details successfully.")}let s=await _({storage:{active_default_storage_type:i}});(0,r.D4)(s)?t(s.error):h(i)},C={s3:f,gcs:v}[i];return(0,s.jsxs)(o.Z,{title:"Configure Privacy Requests - Storage",children:[(0,s.jsx)(c.Z,{heading:"Privacy Requests",breadcrumbItems:[{title:"All requests",href:d.Jw},{title:"Configure requests",href:d.fz},{title:"Storage"}]}),(0,s.jsx)(a.X6q,{mb:5,fontSize:"md",fontWeight:"semibold",children:"Configure storage"}),(0,s.jsxs)(a.xuv,{display:"flex",flexDirection:"column",width:"50%",children:[(0,s.jsx)(a.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)(a.xuv,{children:["To configure a Storage destination, first choose a method to store your results. Fides currently supports"," ",(0,s.jsx)(a.xvT,{as:"span",color:"complimentary.500",children:"Local"}),", ",(0,s.jsx)(a.xvT,{as:"span",color:"complimentary.500",children:"S3"})," ","and"," ",(0,s.jsx)(a.xvT,{as:"span",color:"complimentary.500",children:"GCS"})," ","storage methods."]}),(0,s.jsx)(a.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"Choose storage type to configure"}),(0,s.jsx)(a.y02.Group,{disabled:j,onChange:e=>b(e.target.value),value:i,"data-testid":"privacy-requests-storage-selection",className:"p-3",children:(0,s.jsxs)(a.jqI,{children:[(0,s.jsx)(a.y02,{value:"local","data-testid":"option-local",children:"Local"},"local"),(0,s.jsx)(a.y02,{value:"s3","data-testid":"option-s3",children:"S3"},"s3"),(0,s.jsx)(a.y02,{value:"gcs","data-testid":"option-gcs",children:"GCS"},"gcs")]})}),C&&x&&(0,s.jsx)(C,{storageDetails:x})]})]})},j=()=>(0,s.jsx)(y,{})}},function(e){e.O(0,[431,7245,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,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/privacy-requests/configure/storage",function(){return i(64665)}])},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return g}});var s=i(24246),a=i(98227),n=i(88038),r=i.n(n),l=i(86677);i(27378);var o=i(25980),d=i(90867),c=i(42478),u=i(77830),m=()=>{let e=(0,l.useRouter)();return(0,s.jsx)(a.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)(a.xuv,{children:[(0,s.jsxs)(a.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,s.jsx)(a.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,s.jsx)(a.wpx,{onClick:()=>{e.push(u.AD)},children:"Configure"})]}),(0,s.jsxs)(a.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},g=e=>{let{children:t,title:i,padded:n=!0,mainProps:u}=e,g=(0,o.hz)(),h=(0,l.useRouter)(),p="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,x=!(g.flags.messagingConfiguration&&p),{data:v}=(0,c.JE)(void 0,{skip:x}),{data:f}=(0,d.PW)(void 0,{skip:x}),y=g.flags.messagingConfiguration&&(!v||!f)&&p;return(0,s.jsxs)(a.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,s.jsxs)(r(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsxs)(a.kCb,{as:"main",direction:"column",py:n?6:0,px:n?10:0,h:n?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[y?(0,s.jsx)(m,{}):null,t]})]})}},58754:function(e,t,i){"use strict";var s=i(24246),a=i(98227),n=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:r=!0,children:l,rightContent:o,style:d,...c}=e;return(0,s.jsxs)("div",{...c,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,s.jsxs)(a.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(a.lQT,{className:i||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,s.jsx)(n.m,{className:l?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),l]})}},97181:function(e,t,i){"use strict";i.d(t,{d:function(){return d}});var s=i(24246),a=i(98227),n=i(34090),r=i(27378),l=i(46238),o=i(40324);let d=e=>{let{name:t,label:i,labelProps:d,tooltip:c,isRequired:u,layout:m="inline",helperText:g,...h}=e,[p,x,{setValue:v}]=(0,n.U$)(t),f=!!(x.touched&&x.error),[y,j]=(0,r.useState)("");p.value||"tags"!==h.mode&&"multiple"!==h.mode||(p.value=[]),"tags"===h.mode&&"string"==typeof p.value&&(p.value=[p.value]);let _="tags"===h.mode?(e,t)=>e?e.value!==y||p.value.includes(y)?h.optionRender?h.optionRender(e,t):e.label:'Create "'.concat(y,'"'):void 0:h.optionRender||void 0,b=e=>{j(e),h.onSearch&&h.onSearch(e)},C=(e,t)=>{v(e),h.onChange&&h.onChange(e,t)};return"inline"===m?(0,s.jsx)(a.NIc,{isInvalid:f,isRequired:u,children:(0,s.jsxs)(a.rjZ,{templateColumns:i?"1fr 3fr":"1fr",children:[i?(0,s.jsx)(o.__,{htmlFor:h.id||t,...d,children:i}):null,(0,s.jsxs)(a.jqI,{align:"center",children:[(0,s.jsxs)(a.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,s.jsx)(a.WPr,{...p,id:h.id||t,"data-testid":"controlled-select-".concat(p.name),...h,optionRender:_,onSearch:"tags"===h.mode?b:void 0,onChange:C,value:p.value||void 0,status:f?"error":void 0}),g&&(0,s.jsx)(a.Q6r,{children:g}),(0,s.jsx)(o.Bc,{isInvalid:f,message:x.error,fieldName:p.name})]}),(0,s.jsx)(l.b,{label:c,className:f?"mt-2 self-start":void 0})]})]})}):(0,s.jsx)(a.NIc,{isInvalid:f,isRequired:u,children:(0,s.jsxs)(a.gCW,{alignItems:"start",children:[(0,s.jsxs)(a.jqI,{align:"center",children:[i?(0,s.jsx)(o.__,{htmlFor:h.id||t,fontSize:"xs",my:0,mr:1,...d,children:i}):null,(0,s.jsx)(l.b,{label:c})]}),(0,s.jsx)(a.WPr,{...p,id:h.id||t,"data-testid":"controlled-select-".concat(p.name),...h,optionRender:_,onSearch:"tags"===h.mode?b:void 0,onChange:C,value:p.value||void 0,status:f?"error":void 0}),g&&(0,s.jsx)(a.Q6r,{style:{marginTop:0},children:g}),(0,s.jsx)(o.Bc,{isInvalid:f,message:x.error,fieldName:p.name})]})})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return d}});var s=i(24246),a=i(98227),n=i(79894),r=i.n(n),l=i(27378);let{Text:o}=a.AntTypography,d=e=>{let{items:t,...i}=e,n=(0,l.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let n=i===t.length-1,l={...e},d=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,s.jsx)(o,{style:{color:"inherit",maxWidth:n?void 0:400},ellipsis:!n,id:n?"breadcrumb-current-page":void 0,children:l.title})),d)?l.title=(0,s.jsx)(a.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,s.jsx)(r(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,s.jsx)(a.zrq,{items:n,...i})}},42478:function(e,t,i){"use strict";i.d(t,{FU:function(){return d},JE:function(){return a},Ki:function(){return u},SU:function(){return m},W:function(){return g},h9:function(){return n},jc:function(){return s},qt:function(){return o},sn:function(){return c}});let{useGetEmailInviteStatusQuery:s,useGetActiveMessagingProviderQuery:a,useCreateMessagingConfigurationMutation:n,useCreateMessagingConfigurationSecretsMutation:r,useGetMessagingConfigurationDetailsQuery:l,useGetMessagingConfigurationsQuery:o,useGetMessagingConfigurationByKeyQuery:d,useUpdateMessagingConfigurationByKeyMutation:c,useUpdateMessagingConfigurationSecretsByKeyMutation:u,useCreateTestConnectionMessageMutation:m,useDeleteMessagingConfigurationByKeyMutation:g}=i(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,t,i,s)=>{let a=await s({url:"messaging/default/active"});return a.error&&404===a.error.status?{data:null}:a},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},71784:function(e,t,i){"use strict";i.d(t,{DE:function(){return l},I3:function(){return a},kN:function(){return r},rE:function(){return n}});var s=i(65735);let a=[...new Map([[s.q2.APPROVED,"Approved"],[s.q2.AWAITING_EMAIL_SEND,"Awaiting email send"],[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"],[s.q2.REQUIRES_MANUAL_FINALIZATION,"Requires finalization"]])].map(e=>{let[t,i]=e;return{label:i,value:t}}),n=new Map([[s.Us.ACCESS,"Access"],[s.Us.ERASURE,"Erasure"],[s.Us.CONSENT,"Consent"],[s.Us.UPDATE,"Update"]]),r=[...n].map(e=>{let[t,i]=e;return{label:i,value:t}}),l={local:"local",s3:"s3",gcs:"gcs"}},64665:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return j}});var s=i(24246),a=i(98227),n=i(27378),r=i(812),l=i(17245),o=i(77213),d=i(77830),c=i(58754),u=i(7426),m=i(71784),g=i(90867),h=i(34090),p=i(97181),x=i(40324),v=e=>{var t,i,o,d,c;let{storageDetails:u}=e,[v,f]=(0,n.useState)(""),[y]=(0,g.gC)(),[j]=(0,g.cf)(),{handleError:_}=(0,l.HK)(),{successAlert:b}=(0,l.VY)(),C={type:m.DE.gcs,auth_method:null!==(o=null==u?void 0:null===(t=u.details)||void 0===t?void 0:t.auth_method)&&void 0!==o?o:"",bucket:null!==(d=null==u?void 0:null===(i=u.details)||void 0===i?void 0:i.bucket)&&void 0!==d?d:"",format:null!==(c=null==u?void 0:u.format)&&void 0!==c?c:""},q=async e=>{let t=await y({type:m.DE.gcs,details:{auth_method:e.auth_method,bucket:e.bucket},format:e.format});(0,r.D4)(t)?_(t.error):(f(e.auth_method),b("Google Cloud Storage credentials successfully updated."))},k=async e=>{let t=e.private_key.trim();t.includes("\\n")&&(t=t.replace(/\\n/g,"\n"));let i=await j({details:{type:e.type,project_id:e.project_id,private_key_id:e.private_key_id,private_key:t,client_email:e.client_email,client_id:e.client_id,auth_uri:e.auth_uri,token_uri:e.token_uri,auth_provider_x509_cert_url:e.auth_provider_x509_cert_url,client_x509_cert_url:e.client_x509_cert_url,universe_domain:e.universe_domain},type:m.DE.gcs});(0,r.D4)(i)?_(i.error):b("Google Cloud Storage secrets successfully updated.")};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"Google Cloud Storage configuration"}),(0,s.jsx)(a.Kqy,{children:(0,s.jsx)(h.J9,{initialValues:C,onSubmit:q,enableReinitialize:!0,children:e=>{let{isSubmitting:t,handleReset:i}=e;return(0,s.jsxs)(h.l0,{children:[(0,s.jsxs)(a.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:"Service Account Keys",value:"service_account_keys"},{label:"Application Default Credentials",value:"adc"}],"data-testid":"auth_method",isRequired:!0}),(0,s.jsx)(x.j0,{"data-testid":"bucket",name:"bucket",label:"Bucket",isRequired:!0})]}),(0,s.jsx)(a.wpx,{onClick:()=>i(),className:"mr-2 mt-5",children:"Cancel"}),(0,s.jsx)(a.wpx,{htmlType:"submit",className:"mt-5",disabled:t,type:"primary","data-testid":"save-btn",children:"Save"})]})}})}),"service_account_keys"===v&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.izJ,{mt:5}),(0,s.jsx)(a.X6q,{fontSize:"md",fontWeight:"semibold",mt:5,children:"Storage destination"}),(0,s.jsx)(a.Kqy,{children:(0,s.jsx)(h.J9,{initialValues:{type:"",project_id:"",private_key_id:"",private_key:"",client_email:"",client_id:"",auth_uri:"",token_uri:"",auth_provider_x509_cert_url:"",client_x509_cert_url:"",universe_domain:""},onSubmit:k,children:e=>{let{isSubmitting:t,handleReset:i}=e;return(0,s.jsxs)(h.l0,{children:[(0,s.jsxs)(a.Kqy,{mt:5,spacing:5,children:[(0,s.jsx)(x.j0,{name:"type",label:"Type"}),(0,s.jsx)(x.j0,{name:"project_id",label:"Project ID"}),(0,s.jsx)(x.j0,{name:"private_key_id",label:"Private key ID",type:"password"}),(0,s.jsx)(x.j0,{name:"private_key",label:"Private key",type:"password"}),(0,s.jsx)(x.j0,{name:"client_email",label:"Client email"}),(0,s.jsx)(x.j0,{name:"client_id",label:"Client ID"}),(0,s.jsx)(x.j0,{name:"auth_uri",label:"Auth URI"}),(0,s.jsx)(x.j0,{name:"token_uri",label:"Token URI"}),(0,s.jsx)(x.j0,{name:"auth_provider_x509_cert_url",label:"Auth provider x509 cert URL"}),(0,s.jsx)(x.j0,{name:"client_x509_cert_url",label:"Client x509 cert URL"}),(0,s.jsx)(x.j0,{name:"universe_domain",label:"Universe domain"})]}),(0,s.jsxs)(a.xuv,{mt:10,children:[(0,s.jsx)(a.wpx,{onClick:()=>i(),className:"mr-2 mt-5",children:"Cancel"}),(0,s.jsx)(a.wpx,{disabled:t,htmlType:"submit",type:"primary",className:"mt-5","data-testid":"save-btn",children:"Save"})]})]})}})})]})]})},f=e=>{var t,i,o,d,c;let{storageDetails:u}=e,[v,f]=(0,n.useState)(""),[y]=(0,g.gC)(),[j]=(0,g.cf)(),{handleError:_}=(0,l.HK)(),{successAlert:b}=(0,l.VY)(),C={type:m.DE.s3,auth_method:null!==(o=null==u?void 0:null===(t=u.details)||void 0===t?void 0:t.auth_method)&&void 0!==o?o:"",bucket:null!==(d=null==u?void 0:null===(i=u.details)||void 0===i?void 0:i.bucket)&&void 0!==d?d:"",format:null!==(c=null==u?void 0:u.format)&&void 0!==c?c:""},q=async e=>{let t=await y({type:m.DE.s3,details:{auth_method:e.auth_method,bucket:e.bucket},format:e.format});(0,r.D4)(t)?_(t.error):(f(e.auth_method),b("S3 storage credentials successfully updated."))},k=async e=>{let t=await j({details:{aws_access_key_id:e.aws_access_key_id,aws_secret_access_key:e.aws_secret_access_key},type:m.DE.s3});(0,r.D4)(t)?_(t.error):b("S3 storage secrets successfully updated.")};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"S3 storage configuration"}),(0,s.jsx)(a.Kqy,{children:(0,s.jsx)(h.J9,{initialValues:C,onSubmit:q,enableReinitialize:!0,children:e=>{let{isSubmitting:t,handleReset:i}=e;return(0,s.jsxs)(h.l0,{children:[(0,s.jsxs)(a.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)(x.j0,{"data-testid":"bucket",name:"bucket",label:"Bucket",isRequired:!0})]}),(0,s.jsx)(a.wpx,{onClick:()=>i(),className:"mr-2 mt-5",children:"Cancel"}),(0,s.jsx)(a.wpx,{htmlType:"submit",className:"mt-5",disabled:t,type:"primary","data-testid":"save-btn",children:"Save"})]})}})}),"secret_keys"===v?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.izJ,{mt:5}),(0,s.jsx)(a.X6q,{fontSize:"md",fontWeight:"semibold",mt:5,children:"Storage destination"}),(0,s.jsx)(a.Kqy,{children:(0,s.jsx)(h.J9,{initialValues:{aws_access_key_id:"",aws_secret_access_key:""},onSubmit:k,children:e=>{let{isSubmitting:t,handleReset:i}=e;return(0,s.jsxs)(h.l0,{children:[(0,s.jsxs)(a.Kqy,{mt:5,spacing:5,children:[(0,s.jsx)(x.j0,{name:"aws_access_key_id",label:"AWS access key ID"}),(0,s.jsx)(x.j0,{name:"aws_secret_access_key",label:"AWS secret access key",type:"password"})]}),(0,s.jsxs)(a.xuv,{mt:10,children:[(0,s.jsx)(a.wpx,{onClick:()=>i(),className:"mr-2 mt-5",children:"Cancel"}),(0,s.jsx)(a.wpx,{disabled:t,htmlType:"submit",type:"primary",className:"mt-5","data-testid":"save-btn",children:"Save"})]})]})}})})]}):null]})},y=()=>{let{successAlert:e}=(0,l.VY)(),{handleError:t}=(0,l.HK)(),[i,h]=(0,n.useState)(""),{data:p}=(0,g.PW)(),{data:x}=(0,g.Au)({type:i}),[y,{isLoading:j}]=(0,g.gC)(),[_]=(0,u.L)();(0,n.useEffect)(()=>{p&&h(p.type)},[p]);let b=async i=>{if(i===m.DE.local){let s=await y({type:i,details:{},format:"json"});(0,r.D4)(s)?t(s.error):e("Configured storage details successfully.")}let s=await _({storage:{active_default_storage_type:i}});(0,r.D4)(s)?t(s.error):h(i)},C={s3:f,gcs:v}[i];return(0,s.jsxs)(o.Z,{title:"Configure Privacy Requests - Storage",children:[(0,s.jsx)(c.Z,{heading:"Privacy Requests",breadcrumbItems:[{title:"All requests",href:d.Jw},{title:"Configure requests",href:d.fz},{title:"Storage"}]}),(0,s.jsx)(a.X6q,{mb:5,fontSize:"md",fontWeight:"semibold",children:"Configure storage"}),(0,s.jsxs)(a.xuv,{display:"flex",flexDirection:"column",width:"50%",children:[(0,s.jsx)(a.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)(a.xuv,{children:["To configure a Storage destination, first choose a method to store your results. Fides currently supports"," ",(0,s.jsx)(a.xvT,{as:"span",color:"complimentary.500",children:"Local"}),", ",(0,s.jsx)(a.xvT,{as:"span",color:"complimentary.500",children:"S3"})," ","and"," ",(0,s.jsx)(a.xvT,{as:"span",color:"complimentary.500",children:"GCS"})," ","storage methods."]}),(0,s.jsx)(a.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"Choose storage type to configure"}),(0,s.jsx)(a.y02.Group,{disabled:j,onChange:e=>b(e.target.value),value:i,"data-testid":"privacy-requests-storage-selection",className:"p-3",children:(0,s.jsxs)(a.jqI,{children:[(0,s.jsx)(a.y02,{value:"local","data-testid":"option-local",children:"Local"},"local"),(0,s.jsx)(a.y02,{value:"s3","data-testid":"option-s3",children:"S3"},"s3"),(0,s.jsx)(a.y02,{value:"gcs","data-testid":"option-gcs",children:"GCS"},"gcs")]})}),C&&x&&(0,s.jsx)(C,{storageDetails:x})]})]})},j=()=>(0,s.jsx)(y,{})}},function(e){e.O(0,[431,7245,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,i,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/privacy-requests/configure",function(){return t(57916)}])},77213:function(e,i,t){"use strict";t.d(i,{Z:function(){return f}});var n=t(24246),s=t(
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1242],{29221:function(e,i,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/privacy-requests/configure",function(){return t(57916)}])},77213:function(e,i,t){"use strict";t.d(i,{Z:function(){return f}});var n=t(24246),s=t(98227),r=t(88038),o=t.n(r),a=t(86677);t(27378);var g=t(25980),u=t(90867),c=t(42478),d=t(77830),l=()=>{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(d.AD)},children:"Configure"})]}),(0,n.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},f=e=>{let{children:i,title:t,padded:r=!0,mainProps:d}=e,f=(0,g.hz)(),p=(0,a.useRouter)(),m="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,h=!(f.flags.messagingConfiguration&&m),{data:y}=(0,c.JE)(void 0,{skip:h}),{data:x}=(0,u.PW)(void 0,{skip:h}),v=f.flags.messagingConfiguration&&(!y||!x)&&m;return(0,n.jsxs)(s.kCb,{"data-testid":t,direction:"column",h:"100vh",children:[(0,n.jsxs)(o(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",t]}),(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",...d,children:[v?(0,n.jsx)(l,{}):null,i]})]})}},58754:function(e,i,t){"use strict";var n=t(24246),s=t(98227),r=t(70788);i.Z=e=>{let{heading:i,breadcrumbItems:t,isSticky:o=!0,children:a,rightContent:g,style:u,...c}=e;return(0,n.jsxs)("div",{...c,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...u}:{paddingBottom:"24px",...u},children:[(0,n.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof i?(0,n.jsx)(s.lQT,{className:t||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:i}):i,g&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:g})]}),!!t&&(0,n.jsx)(r.m,{className:a?"pb-4":void 0,items:t,"data-testid":"page-breadcrumb"}),a]})}},70788:function(e,i,t){"use strict";t.d(i,{m:function(){return u}});var n=t(24246),s=t(98227),r=t(79894),o=t.n(r),a=t(27378);let{Text:g}=s.AntTypography,u=e=>{let{items:i,...t}=e,r=(0,a.useMemo)(()=>null==i?void 0:i.map((e,t)=>{let r=t===i.length-1,a={...e},u=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,n.jsx)(g,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,id:r?"breadcrumb-current-page":void 0,children:a.title})),u)?a.title=(0,n.jsx)(s.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,n.jsx)(o(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[i]);return(0,n.jsx)(s.zrq,{items:r,...t})}},42478:function(e,i,t){"use strict";t.d(i,{FU:function(){return u},JE:function(){return s},Ki:function(){return d},SU:function(){return l},W:function(){return f},h9:function(){return r},jc:function(){return n},qt:function(){return g},sn:function(){return c}});let{useGetEmailInviteStatusQuery:n,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:r,useCreateMessagingConfigurationSecretsMutation:o,useGetMessagingConfigurationDetailsQuery:a,useGetMessagingConfigurationsQuery:g,useGetMessagingConfigurationByKeyQuery:u,useUpdateMessagingConfigurationByKeyMutation:c,useUpdateMessagingConfigurationSecretsByKeyMutation:d,useCreateTestConnectionMessageMutation:l,useDeleteMessagingConfigurationByKeyMutation:f}=t(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,i,t,n)=>{let s=await n({url:"messaging/default/active"});return s.error&&404===s.error.status?{data:null}:s},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},57916:function(e,i,t){"use strict";t.r(i);var n=t(24246),s=t(98227),r=t(79894),o=t.n(r),a=t(77213),g=t(77830),u=t(58754);let{Text:c}=s.AntTypography;i.default=()=>(0,n.jsxs)(a.Z,{title:"Configure Privacy Requests",children:[(0,n.jsx)(u.Z,{heading:"Privacy Requests",breadcrumbItems:[{title:"All requests",href:g.Jw},{title:"Configure requests"}]}),(0,n.jsx)(c,{strong:!0,children:"Configure your privacy requests:"}),(0,n.jsxs)(s.xuv,{display:"flex",alignItems:"center",my:5,"data-testid":"privacy-requests-configure",children:[(0,n.jsxs)(s.fGe,{p:"5",borderWidth:"1px",rounded:"md",borderColor:"gray.300",_hover:{borderColor:"complimentary.500",cursor:"pointer"},mr:5,minHeight:"100%",children:[(0,n.jsx)(s.X6q,{mb:2,size:"sm",children:(0,n.jsx)(s.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,n.jsxs)(s.fGe,{p:"5",borderWidth:"1px",rounded:"md",borderColor:"gray.300",_hover:{borderColor:"complimentary.500",cursor:"pointer"},minHeight:"100%",children:[(0,n.jsx)(s.X6q,{mb:2,size:"sm",children:(0,n.jsx)(s.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()}]);
|
|
@@ -1 +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(73269)}])},73269:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return V}});var r,a,s=l(24246),n=l(35287),i=l(87949),o=l(65218),u=l.n(o),d=l(27378),c=l(25980),h=l(19904),p=l(28686),b=l(59003),f=l(92222),_=l(86677),m=l(40431),y=l(16125),v=l(47935),j=l(90867),x=l(16394),g=l(71784),E=l(65735);let S={approved:{colorScheme:i.tAb.SUCCESS,label:"Approved"},complete:{label:"Completed",colorScheme:i.tAb.SUCCESS},awaiting_email_send:{label:"Awaiting Email Send",colorScheme:i.tAb.MARBLE},denied:{label:"Denied",colorScheme:i.tAb.WARNING},canceled:{label:"Canceled",colorScheme:i.tAb.MARBLE},error:{label:"Error",colorScheme:i.tAb.ERROR},in_processing:{label:"In Progress",colorScheme:i.tAb.CAUTION},paused:{label:"Paused",colorScheme:i.tAb.MARBLE},pending:{label:"New",colorScheme:i.tAb.INFO},identity_unverified:{label:"Unverified",colorScheme:i.tAb.MARBLE},requires_input:{colorScheme:i.tAb.MINOS,label:"Requires Input"},requires_manual_finalization:{colorScheme:i.tAb.MINOS,label:"Requires Finalization"}},R=e=>{let{value:t}=e;return(0,s.jsx)(v.A4,{color:S[t].colorScheme,value:S[t].label,"data-testid":"request-status-badge"})},A=e=>{let t,{daysLeft:l,timeframe:r=45,status:a,includeText:n=!1}=e;if(null==l||a===E.q2.COMPLETE||a===E.q2.CANCELED||a===E.q2.DENIED||a===E.q2.IDENTITY_UNVERIFIED)return null;let o=100*l/r;return o<25?t=i.tAb.ERROR:o>=75?t=i.tAb.SUCCESS:o>=25&&(t=i.tAb.WARNING),(0,s.jsx)(v.A4,{value:n?"".concat(l," days left"):l.toString(),color:t})},C=e=>Array.from(new Set(e.filter(e=>Object.values(E.Us).includes(e.action_type)).map(e=>e.action_type))),w=e=>{let{value:t}=e,l=C(t).map(e=>g.rE.get(e));return(0,s.jsx)(v.WP,{value:l,cellState:{isExpanded:!0}})};var T=l(98855);(r=a||(a={})).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.LOCATION="location",r.ACTIONS="actions";let I=(0,f.Cl)(),O=()=>[I.accessor(e=>e.status,{id:"status",cell:e=>{let{getValue:t}=e;return(0,s.jsx)(R,{value:t()})},header:e=>(0,s.jsx)(v.Rr,{value:"Status",...e}),size:120}),I.accessor(e=>e.days_left,{id:"due_date",cell:e=>{let{row:t,getValue:l}=e;return(0,s.jsx)(A,{daysLeft:l(),timeframe:t.original.policy.execution_timeframe,status:t.original.status})},header:e=>(0,s.jsx)(v.Rr,{value:"Days left",...e}),size:80}),I.accessor(e=>e.source,{id:"source",cell:e=>e.getValue()?(0,s.jsx)(v.A4,{value:e.getValue()}):(0,s.jsx)(v.G3,{value:void 0}),header:e=>(0,s.jsx)(v.Rr,{value:"Source",...e}),enableSorting:!1}),I.accessor(e=>e.policy.rules,{id:"request_type",cell:e=>{let{getValue:t}=e;return(0,s.jsx)(w,{value:t()})},header:e=>(0,s.jsx)(v.Rr,{value:"Request type",...e}),enableSorting:!1,size:100}),I.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,s.jsx)(v.G3,{value:t()})},header:e=>(0,s.jsx)(v.Rr,{value:"Subject identity",...e}),enableSorting:!1}),I.accessor(e=>e.created_at,{id:"created_at",cell:e=>{let{getValue:t}=e;return(0,s.jsx)(v.G3,{value:(0,x.p6)(t())})},header:e=>(0,s.jsx)(v.Rr,{value:"Time received",...e}),size:120}),I.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,s.jsx)(v.G3,{value:t()})},header:e=>(0,s.jsx)(v.Rr,{value:"Reviewed by",...e}),enableSorting:!1}),I.accessor(e=>e.id,{id:"id",cell:e=>{let{getValue:t}=e;return(0,s.jsx)(v.G3,{value:t()})},header:e=>(0,s.jsx)(v.Rr,{value:"Request ID",...e}),enableSorting:!1}),I.accessor(e=>e.location,{id:"location",cell:e=>{let{getValue:t}=e,l=t(),r=l?(0,i.QCN)(l):void 0,a=r?(0,i.c1K)({isoEntry:r,showFlag:!0}):l;return(0,s.jsx)(v.G3,{value:a})},header:e=>(0,s.jsx)(v.Rr,{value:"Location",...e}),enableSorting:!1}),I.display({id:"actions",cell:e=>{let{row:t}=e;return(0,s.jsx)(T.q,{subjectRequest:t.original})},header:e=>(0,s.jsx)(v.Rr,{value:"Actions",...e}),meta:{disableRowClick:!0}})];var P=l(61653),q=l(9270),k=l(49529),N=l(52451);let D=e=>{let{...t}=e,[l,r]=(0,m.v1)("search",m.Oi.withDefault("").withOptions({throttleMs:100})),a=(0,y.v9)(j.dp),n=(0,i.pmc)(),o=(0,_.useRouter)(),u=(0,y.I0)(),c=(0,q.S)(),{pageIndex:h,pageSize:p,resetPagination:x}=c,{anyFiltersApplied:g,handleClearAllFilters:E}=(0,N.h)(x),{isOpen:S,onOpen:R,onClose:A}=(0,i.qY0)(),{data:C,isLoading:w,isFetching:T}=(0,j.QA)({...a,page:h,size:p,fuzzy_search_str:l}),{items:I,total:D}=(0,d.useMemo)(()=>C||{items:[],total:0,pages:0},[C]),{downloadReport:M}=(0,k.Z)(),L=(0,d.useCallback)(e=>{r(null!=e?e:""),x()},[x,r]),U=async()=>{let e;try{await M(a)}catch(t){e=t instanceof Error?t.message:"Unknown error occurred"}e&&n({description:"".concat(e),duration:5e3,status:"error"})},G=e=>{o.push("/privacy-requests/".concat(e))},F=(0,b.b7)({getCoreRowModel:(0,f.sC)(),data:I,columns:(0,d.useMemo)(()=>O(),[]),getRowId:e=>"".concat(e.status,"-").concat(e.id),manualPagination:!0,columnResizeMode:"onChange"});return(0,s.jsxs)(i.xuv,{...t,children:[(0,s.jsxs)(v.Q$,{children:[(0,s.jsx)(v.HO,{globalFilter:l,setGlobalFilter:L,placeholder:"Search by request ID or identity value"}),(0,s.jsxs)(i.Ugi,{alignItems:"center",spacing:2,children:[g&&(0,s.jsx)(i.wpx,{type:"text",onClick:E,children:"Clear filters"}),(0,s.jsx)(i.wpx,{"data-testid":"filter-btn",onClick:R,children:"Filter"}),(0,s.jsx)(i.wpx,{"aria-label":"Export report","data-testid":"export-btn",icon:(0,s.jsx)(i.PJP.UWx,{}),onClick:U})]}),(0,s.jsx)(i.h_i,{children:(0,s.jsx)(P.S,{isOpen:S,onClose:A,onFilterChange:x})})]}),w?(0,s.jsx)(i.xuv,{p:2,borderWidth:1,children:(0,s.jsx)(v.I4,{rowHeight:26,numRows:10})}):(0,s.jsxs)(i.jqI,{vertical:!0,gap:"middle",children:[(0,s.jsx)(v.ZK,{tableInstance:F,onRowClick:e=>G(e.id),onSort:e=>{if(!e){u((0,j.PS)());return}let{id:t,desc:l}=e;u((0,j.WR)(t)),u((0,j.iX)(l?"desc":"asc")),x()},loading:T}),(0,s.jsx)(i.B7X,{...c.paginationProps,showTotal:(e,t)=>"".concat(t[0],"-").concat(t[1]," of ").concat(e," items"),total:null!=D?D:0,align:"end"})]})]})};var M=l(86291),L=l(58754),U=l(88152),G=l(72281);let F=u()(()=>l.e(9676).then(l.bind(l,59676)),{loadableGenerated:{webpack:()=>[59676]},loading:()=>(0,s.jsx)("div",{children:"Loading..."})});var z=()=>{let{processing:e}=(0,U.Y)(),{plus:t}=(0,c.hz)(),{activeTab:l,handleTabChange:r,availableTabs:a}=(0,G.d)();(0,d.useEffect)(()=>{e()},[e]);let n=(0,d.useMemo)(()=>{let e=[];return a.request&&e.push({key:G.G.REQUEST,label:"Request",children:(0,s.jsx)(D,{})}),a.manualTask&&e.push({key:G.G.MANUAL_TASK,label:"Manual tasks",children:(0,s.jsx)(p.m,{})}),e},[a.manualTask,a.request]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(L.Z,{heading:"Privacy Requests",breadcrumbItems:[{title:"All requests"}],rightContent:(0,s.jsxs)(i.vyj,{children:[t&&(0,s.jsx)(h.ZP,{scopes:[E.Sh.PRIVACY_REQUEST_CREATE],children:(0,s.jsx)(M.Z,{})}),(0,s.jsx)(F,{})]}),"data-testid":"privacy-requests"}),(0,s.jsx)(i.A5g,{activeKey:l,onChange:r,items:n})]})},V=()=>(0,s.jsx)(n.Z,{title:"Privacy Requests",children:(0,s.jsx)(z,{})})},76737: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 i},noSSR:function(){return n}});let r=l(51538);l(24246),l(27378);let a=r._(l(21887));function s(e){return{default:(null==e?void 0:e.default)||e}}function n(e,t){return delete t.webpack,delete t.modules,e(t)}function i(e,t){let l=a.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 i=(r={...r,...t}).loader;return(r.loadableGenerated&&(r={...r,...r.loadableGenerated},delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr)?l({...r,loader:()=>null!=i?i().then(s):Promise.resolve(s(()=>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)},28438: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)},21887:function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let r=l(51538)._(l(27378)),a=l(28438),s=[],n=[],i=!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 u{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function d(e){return function(e,t){let l=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),s=null;function o(){if(!s){let t=new u(e,l);s={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return s.promise()}if(!i){let e=l.webpack?l.webpack():l.modules;e&&n.push(t=>{for(let l of e)if(t.includes(l))return o()})}function d(e,t){!function(){o();let e=r.default.useContext(a.LoadableContext);e&&Array.isArray(l.modules)&&l.modules.forEach(t=>{e(t)})}();let n=r.default.useSyncExternalStore(s.subscribe,s.getCurrentValue,s.getCurrentValue);return r.default.useImperativeHandle(t,()=>({retry:s.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:s.retry}):n.loaded?r.default.createElement((t=n.loaded)&&t.default?t.default:t,e):null},[e,n])}return d.preload=()=>o(),d.displayName="LoadableComponent",r.default.forwardRef(d)}(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)})}d.preloadAll=()=>new Promise((e,t)=>{c(s).then(e,t)}),d.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let l=()=>(i=!0,t());c(n,e).then(l,l)})),window.__NEXT_PRELOADREADY=d.preloadReady;let h=d},65218:function(e,t,l){e.exports=l(76737)}},function(e){e.O(0,[431,8765,2962,7245,8373,3873,2888,9774,179],function(){return e(e.s=1565)}),_N_E=e.O()}]);
|
|
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(73269)}])},73269:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return V}});var r,a,s=l(24246),n=l(35287),i=l(98227),o=l(65218),u=l.n(o),d=l(27378),c=l(25980),h=l(19904),p=l(28686),b=l(59003),f=l(92222),_=l(86677),m=l(40431),y=l(16125),v=l(47935),j=l(90867),x=l(16394),g=l(71784),E=l(65735);let S={approved:{colorScheme:i.tAb.SUCCESS,label:"Approved"},complete:{label:"Completed",colorScheme:i.tAb.SUCCESS},awaiting_email_send:{label:"Awaiting Email Send",colorScheme:i.tAb.MARBLE},denied:{label:"Denied",colorScheme:i.tAb.WARNING},canceled:{label:"Canceled",colorScheme:i.tAb.MARBLE},error:{label:"Error",colorScheme:i.tAb.ERROR},in_processing:{label:"In Progress",colorScheme:i.tAb.CAUTION},paused:{label:"Paused",colorScheme:i.tAb.MARBLE},pending:{label:"New",colorScheme:i.tAb.INFO},identity_unverified:{label:"Unverified",colorScheme:i.tAb.MARBLE},requires_input:{colorScheme:i.tAb.MINOS,label:"Requires Input"},requires_manual_finalization:{colorScheme:i.tAb.MINOS,label:"Requires Finalization"}},R=e=>{let{value:t}=e;return(0,s.jsx)(v.A4,{color:S[t].colorScheme,value:S[t].label,"data-testid":"request-status-badge"})},A=e=>{let t,{daysLeft:l,timeframe:r=45,status:a,includeText:n=!1}=e;if(null==l||a===E.q2.COMPLETE||a===E.q2.CANCELED||a===E.q2.DENIED||a===E.q2.IDENTITY_UNVERIFIED)return null;let o=100*l/r;return o<25?t=i.tAb.ERROR:o>=75?t=i.tAb.SUCCESS:o>=25&&(t=i.tAb.WARNING),(0,s.jsx)(v.A4,{value:n?"".concat(l," days left"):l.toString(),color:t})},C=e=>Array.from(new Set(e.filter(e=>Object.values(E.Us).includes(e.action_type)).map(e=>e.action_type))),w=e=>{let{value:t}=e,l=C(t).map(e=>g.rE.get(e));return(0,s.jsx)(v.WP,{value:l,cellState:{isExpanded:!0}})};var T=l(98855);(r=a||(a={})).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.LOCATION="location",r.ACTIONS="actions";let I=(0,f.Cl)(),O=()=>[I.accessor(e=>e.status,{id:"status",cell:e=>{let{getValue:t}=e;return(0,s.jsx)(R,{value:t()})},header:e=>(0,s.jsx)(v.Rr,{value:"Status",...e}),size:120}),I.accessor(e=>e.days_left,{id:"due_date",cell:e=>{let{row:t,getValue:l}=e;return(0,s.jsx)(A,{daysLeft:l(),timeframe:t.original.policy.execution_timeframe,status:t.original.status})},header:e=>(0,s.jsx)(v.Rr,{value:"Days left",...e}),size:80}),I.accessor(e=>e.source,{id:"source",cell:e=>e.getValue()?(0,s.jsx)(v.A4,{value:e.getValue()}):(0,s.jsx)(v.G3,{value:void 0}),header:e=>(0,s.jsx)(v.Rr,{value:"Source",...e}),enableSorting:!1}),I.accessor(e=>e.policy.rules,{id:"request_type",cell:e=>{let{getValue:t}=e;return(0,s.jsx)(w,{value:t()})},header:e=>(0,s.jsx)(v.Rr,{value:"Request type",...e}),enableSorting:!1,size:100}),I.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,s.jsx)(v.G3,{value:t()})},header:e=>(0,s.jsx)(v.Rr,{value:"Subject identity",...e}),enableSorting:!1}),I.accessor(e=>e.created_at,{id:"created_at",cell:e=>{let{getValue:t}=e;return(0,s.jsx)(v.G3,{value:(0,x.p6)(t())})},header:e=>(0,s.jsx)(v.Rr,{value:"Time received",...e}),size:120}),I.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,s.jsx)(v.G3,{value:t()})},header:e=>(0,s.jsx)(v.Rr,{value:"Reviewed by",...e}),enableSorting:!1}),I.accessor(e=>e.id,{id:"id",cell:e=>{let{getValue:t}=e;return(0,s.jsx)(v.G3,{value:t()})},header:e=>(0,s.jsx)(v.Rr,{value:"Request ID",...e}),enableSorting:!1}),I.accessor(e=>e.location,{id:"location",cell:e=>{let{getValue:t}=e,l=t(),r=l?(0,i.QCN)(l):void 0,a=r?(0,i.c1K)({isoEntry:r,showFlag:!0}):l;return(0,s.jsx)(v.G3,{value:a})},header:e=>(0,s.jsx)(v.Rr,{value:"Location",...e}),enableSorting:!1}),I.display({id:"actions",cell:e=>{let{row:t}=e;return(0,s.jsx)(T.q,{subjectRequest:t.original})},header:e=>(0,s.jsx)(v.Rr,{value:"Actions",...e}),meta:{disableRowClick:!0}})];var P=l(61653),q=l(9270),k=l(49529),N=l(52451);let D=e=>{let{...t}=e,[l,r]=(0,m.v1)("search",m.Oi.withDefault("").withOptions({throttleMs:100})),a=(0,y.v9)(j.dp),n=(0,i.pmc)(),o=(0,_.useRouter)(),u=(0,y.I0)(),c=(0,q.S)(),{pageIndex:h,pageSize:p,resetPagination:x}=c,{anyFiltersApplied:g,handleClearAllFilters:E}=(0,N.h)(x),{isOpen:S,onOpen:R,onClose:A}=(0,i.qY0)(),{data:C,isLoading:w,isFetching:T}=(0,j.QA)({...a,page:h,size:p,fuzzy_search_str:l}),{items:I,total:D}=(0,d.useMemo)(()=>C||{items:[],total:0,pages:0},[C]),{downloadReport:M}=(0,k.Z)(),L=(0,d.useCallback)(e=>{r(null!=e?e:""),x()},[x,r]),U=async()=>{let e;try{await M(a)}catch(t){e=t instanceof Error?t.message:"Unknown error occurred"}e&&n({description:"".concat(e),duration:5e3,status:"error"})},G=e=>{o.push("/privacy-requests/".concat(e))},F=(0,b.b7)({getCoreRowModel:(0,f.sC)(),data:I,columns:(0,d.useMemo)(()=>O(),[]),getRowId:e=>"".concat(e.status,"-").concat(e.id),manualPagination:!0,columnResizeMode:"onChange"});return(0,s.jsxs)(i.xuv,{...t,children:[(0,s.jsxs)(v.Q$,{children:[(0,s.jsx)(v.HO,{globalFilter:l,setGlobalFilter:L,placeholder:"Search by request ID or identity value"}),(0,s.jsxs)(i.Ugi,{alignItems:"center",spacing:2,children:[g&&(0,s.jsx)(i.wpx,{type:"text",onClick:E,children:"Clear filters"}),(0,s.jsx)(i.wpx,{"data-testid":"filter-btn",onClick:R,children:"Filter"}),(0,s.jsx)(i.wpx,{"aria-label":"Export report","data-testid":"export-btn",icon:(0,s.jsx)(i.PJP.UWx,{}),onClick:U})]}),(0,s.jsx)(i.h_i,{children:(0,s.jsx)(P.S,{isOpen:S,onClose:A,onFilterChange:x})})]}),w?(0,s.jsx)(i.xuv,{p:2,borderWidth:1,children:(0,s.jsx)(v.I4,{rowHeight:26,numRows:10})}):(0,s.jsxs)(i.jqI,{vertical:!0,gap:"middle",children:[(0,s.jsx)(v.ZK,{tableInstance:F,onRowClick:e=>G(e.id),onSort:e=>{if(!e){u((0,j.PS)());return}let{id:t,desc:l}=e;u((0,j.WR)(t)),u((0,j.iX)(l?"desc":"asc")),x()},loading:T}),(0,s.jsx)(i.B7X,{...c.paginationProps,showTotal:(e,t)=>"".concat(t[0],"-").concat(t[1]," of ").concat(e," items"),total:null!=D?D:0,align:"end"})]})]})};var M=l(86291),L=l(58754),U=l(88152),G=l(72281);let F=u()(()=>l.e(9676).then(l.bind(l,59676)),{loadableGenerated:{webpack:()=>[59676]},loading:()=>(0,s.jsx)("div",{children:"Loading..."})});var z=()=>{let{processing:e}=(0,U.Y)(),{plus:t}=(0,c.hz)(),{activeTab:l,handleTabChange:r,availableTabs:a}=(0,G.d)();(0,d.useEffect)(()=>{e()},[e]);let n=(0,d.useMemo)(()=>{let e=[];return a.request&&e.push({key:G.G.REQUEST,label:"Request",children:(0,s.jsx)(D,{})}),a.manualTask&&e.push({key:G.G.MANUAL_TASK,label:"Manual tasks",children:(0,s.jsx)(p.m,{})}),e},[a.manualTask,a.request]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(L.Z,{heading:"Privacy Requests",breadcrumbItems:[{title:"All requests"}],rightContent:(0,s.jsxs)(i.vyj,{children:[t&&(0,s.jsx)(h.ZP,{scopes:[E.Sh.PRIVACY_REQUEST_CREATE],children:(0,s.jsx)(M.Z,{})}),(0,s.jsx)(F,{})]}),"data-testid":"privacy-requests"}),(0,s.jsx)(i.A5g,{activeKey:l,onChange:r,items:n})]})},V=()=>(0,s.jsx)(n.Z,{title:"Privacy Requests",children:(0,s.jsx)(z,{})})},76737: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 i},noSSR:function(){return n}});let r=l(51538);l(24246),l(27378);let a=r._(l(21887));function s(e){return{default:(null==e?void 0:e.default)||e}}function n(e,t){return delete t.webpack,delete t.modules,e(t)}function i(e,t){let l=a.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 i=(r={...r,...t}).loader;return(r.loadableGenerated&&(r={...r,...r.loadableGenerated},delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr)?l({...r,loader:()=>null!=i?i().then(s):Promise.resolve(s(()=>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)},28438: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)},21887:function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let r=l(51538)._(l(27378)),a=l(28438),s=[],n=[],i=!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 u{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function d(e){return function(e,t){let l=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),s=null;function o(){if(!s){let t=new u(e,l);s={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return s.promise()}if(!i){let e=l.webpack?l.webpack():l.modules;e&&n.push(t=>{for(let l of e)if(t.includes(l))return o()})}function d(e,t){!function(){o();let e=r.default.useContext(a.LoadableContext);e&&Array.isArray(l.modules)&&l.modules.forEach(t=>{e(t)})}();let n=r.default.useSyncExternalStore(s.subscribe,s.getCurrentValue,s.getCurrentValue);return r.default.useImperativeHandle(t,()=>({retry:s.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:s.retry}):n.loaded?r.default.createElement((t=n.loaded)&&t.default?t.default:t,e):null},[e,n])}return d.preload=()=>o(),d.displayName="LoadableComponent",r.default.forwardRef(d)}(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)})}d.preloadAll=()=>new Promise((e,t)=>{c(s).then(e,t)}),d.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let l=()=>(i=!0,t());c(n,e).then(l,l)})),window.__NEXT_PRELOADREADY=d.preloadReady;let h=d},65218:function(e,t,l){e.exports=l(76737)}},function(e){e.O(0,[431,8765,2962,7245,8373,3873,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(56041)}])},56041: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(56041)}])},56041:function(e,r,t){"use strict";t.r(r);var n=t(24246),u=t(98227),i=t(86677),s=t(812),c=t(77213),l=t(77830),o=t(58754),p=t(46628),a=t(98795),d=t(18880),f=t(31883);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,[2040,5185,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(59575)}])},59575: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(59575)}])},59575:function(e,t,r){"use strict";r.r(t);var n=r(24246),u=r(98227),c=r(86677),i=r(812),s=r(77213),o=r(77830),a=r(58754),d=r(46628),p=r(98795),l=r(18880),_=r(31883);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,[2040,5185,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(42652)}])},42652: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(42652)}])},42652:function(e,n,i){"use strict";i.r(n);var r=i(24246),s=i(98227),t=i(77213),o=i(58754),a=i(25783);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,[2040,5783,2888,9774,179],function(){return e(e.s=29303)}),_N_E=e.O()}]);
|