ethyca-fides 2.72.4b1__py2.py3-none-any.whl → 2.73.0__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.72.4b1.dist-info → ethyca_fides-2.73.0.dist-info}/METADATA +1 -1
- {ethyca_fides-2.72.4b1.dist-info → ethyca_fides-2.73.0.dist-info}/RECORD +247 -245
- fides/_version.py +3 -3
- fides/api/service/async_dsr/strategies/async_dsr_strategy_polling.py +1 -0
- fides/api/service/connectors/saas_connector.py +44 -42
- fides/api/service/privacy_request/request_service.py +1 -1
- fides/api/util/saas_util.py +27 -1
- fides/config/execution_settings.py +1 -1
- fides/ui-build/static/admin/404.html +1 -1
- fides/ui-build/static/admin/_next/static/6kEWO-NXzxn1tvUedYFei/_buildManifest.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{1099-1959c2e271a9588d.js → 1099-fa8b82f521b23cce.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{1115-d8f2a0953960d648.js → 1115-d7ce851b36722c41.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{1437-c3c8f421fc8d9bf7.js → 1437-9dd64c20d38667df.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{155-17c9584d4944ce7e.js → 155-1c80b19f58f44a0c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{1817-877489cf6bb7185c.js → 1817-0de0312294019817.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{1975.50599b6774562644.js → 1975.6ca0e76b5a3d1955.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{2040-b9e38ecc741148fc.js → 2040-a18cc21821e2d121.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{2397-39c59d3fdf13042e.js → 2397-16820a09e8ebfe33.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/2921-a5dac2eacdcc32ff.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{3377-6e7bdffc46ffe15d.js → 3377-c2c9eb177bec8719.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3696-84990aa1baa21fad.js → 3696-21e3dec6c2023875.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3700-bde60c51fb2606a8.js → 3700-a2903cd95b8a27cb.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3772-3c849a72d0129ae4.js → 3772-bb84842df51d3f3f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/3873-d759bbe7137ae8c2.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{3923-6e82c845722d09ce.js → 3923-7f0aa36c9e09cedf.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{401-63df8127ab5e8b1a.js → 401-874303feb3899562.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{4496-6ff88def38644170.js → 4496-903c81292ffd8f91.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/4817-d0cc100f259b3c2e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{5185-e662084251450372.js → 5185-fc171b6acce9f915.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5258-004011f620451d36.js → 5258-cf0d2c4c4d55a94b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5279-28226a4eaaba9e56.js → 5279-8637d735471ec7f1.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{549-cb23e43b4fe4750e.js → 549-2d9bde37e5fe13eb.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5643-fb6082b8ecb6c0d9.js → 5643-48a5e0ad8b9fc3f7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5783-0171fca3154d4812.js → 5783-63912bab7f80b0f8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6277-2d53a51b7727d7b1.js → 6277-ec0e3fa4e4614098.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6315-08729296f49e6898.js → 6315-79a1506e01f2f92b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/6853-c348f6e95f987cbf.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{6954-d909264a2674ea4e.js → 6954-c44ac4e70e777c2f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/7059-3f2641e3130b4ef8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{7245-305e4a8a8be70fad.js → 7245-120f536e09decb85.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{7476-2e1176b163688789.js → 7476-4234fb244676ec13.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{7488-502aeb16e3a27d42.js → 7488-2db0992474f8056e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{7630-bb44ecce0b2146ed.js → 7630-d7bd74d0cfdb22df.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{7773-1303b235272f3dbf.js → 7773-6dce6187fe2c6984.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{796-d30fca0fe341916b.js → 796-fae64888b8b2f369.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{8011-866a514d483aaaac.js → 8011-6e40c969c9fa7d35.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{8212-334e971822270277.js → 8212-18d8da0f9208f978.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/8373-24379b7d98e6922e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{9046-aaba9b46ed37f1e2.js → 9046-6428eac9f38b3886.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9330-38845205515126c3.js → 9330-540a113903cb3c28.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9676.1ea49d4b6e0541f2.js → 9676.704cc210f59d0083.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/9682-a3b2fb1a2df1c948.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{9826-fd27a5fd2ed44c3d.js → 9826-aecc5ddec86989dc.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9899-ea04d345468691b3.js → 9899-303921e3d0697960.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9965-bd9d95c187ddcda5.js → 9965-6906ffdaef0f0d69.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{404-5cffe00870fefd79.js → 404-c31cef0ce3fbeebf.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{_app-32ece8369a437df8.js → _app-5fd4e06224960492.js} +7 -7
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-02f6ef0e6a161961.js → manual-a5865f42aafbe1f8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-4458172cd75babb0.js → multiple-f706664770dd3e7f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-3f0d8698f01aabc5.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-1a821b298d86a22d.js → add-vendors-fcd031b2b775e4f3.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-6f35d961da39f539.js → configure-0bd2eb0110873c4d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-4caea1cb619aad01.js → [id]-0dd17c74a6cc17ff.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-0311c558666456cc.js → privacy-experience-ae8dff75e1c6c413.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-b062d2a4a8102ce1.js → [id]-84ba8b9947b9af0a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-524a3e86b2568398.js → new-f03d1d0df4661a33.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-ca99b84429667b5f.js → privacy-notices-5a553b4bdbf85aa9.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-15dac492b739cf83.js → properties-5cba88e6839a087d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-f2690c381c1d1a52.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{consent-7496b13734f49085.js → consent-289d21aa6c42828b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-96ec3aa63de556ec.js → [projectUrn]-cb56d56b9d918682.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-04bb0d25beccc031.js → projects-ccb66ba6d1ad93fc.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{resources-e436f291ccce41c7.js → resources-ecb2d925d75dfe1e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{data-catalog-04a493b26a5dfdaf.js → data-catalog-75403467491a251b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/datastore/[monitorId]-e46e017a3919f94e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/datastore-1b0ed3b3ceedfd94.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/[monitorId]/[systemId]-71cf0b06b3d5a326.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/[monitorId]-cc6b359fb4968bf0.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website-60ad14c879b4fe27.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-cbff5db86e6951c4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{activity-17887a476280c480.js → activity-7dded115499a4a4a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{datamap-eaae94fb326cc676.js → datamap-d1bb19fe4ef393dc.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-d2af9a78b22a3b33.js → [...subfieldNames]-58c3f4c0b490264b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-4b711c3a257f4754.js → [collectionName]-74290432e74fcdc5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-cf0b5a30b3b37e20.js → [datasetId]-8dad45f070a06609.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{new-b651d5f466e4019d.js → new-6aed6dc24c3be001.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{dataset-35be9dda6a1114ce.js → dataset-fdaec997c1b0753f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-3fcfe1430c11e0c7.js → [id]-63c4805e40673c60.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-c967e9f37709c645.js → new-b5a49743387eecef.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{datastore-connection-a4abc6ee516b13d4.js → datastore-connection-8f0804d9a38688a4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{index-37c1abb674e1aea6.js → index-363b091a4d1d70ad.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-3b7f47985452e01d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{integrations-514131e87ac65082.js → integrations-b0da32fe3564c129.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/new-privacy-requests-d1152cbc3c1bbbbb.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests/{[id]-3306676f61000f3b.js → [id]-0e4e4e7110362022.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests/{new-798fb0ca1205e684.js → new-2e15f6272e9aaeb6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/{digests-20c129ac4a57f2e5.js → digests-65626dfcfacdc605.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers/{[key]-749898f45b528480.js → [key]-768c4e2f6b05304c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers/{new-2798b151240303c5.js → new-2d57a70e4d32e651.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/{providers-4ebdfd1e0e4bfbe6.js → providers-83f78354fa34bffe.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates/{[id]-40d9f4a82335cb5c.js → [id]-1b31764f520fbbc5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates/{add-template-c38096d698ebfaa9.js → add-template-4c74456b6677bf07.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates-5deb80abd6156f7f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{notifications-9586f35322edb190.js → notifications-8d8716dda9a6f277.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/ant-components-52b1572442a20ab4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/AntForm-a0437ba647d59799.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikAntFormItem-87285c544450ec46.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikControlled-57997dbd451a6eed.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikField-65009783e0404153.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/forms-eafef007c179340f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/{table-migration-e58cac7ad960a847.js → table-migration-7933a824a45d0ee6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-27c56466eab98b15.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{storage-a948294b5b2ff677.js → storage-16f77a6291bb02fe.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-f9af184bf0a04729.js → configure-d2b3293ab496f7bc.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-af4f48d10926e4a4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-7545993189dc1bb1.js → [id]-dd3c3d780533a9c2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-8cc4b3170f7851f9.js → add-property-d1af260c3ddbf68b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{properties-83b4002f896071b3.js → properties-9bb7fe3577402008.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-33ce744d07982c0f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-35626e9d8e0a3ca2.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{consent-2c71096d348013aa.js → consent-39b5142099ed8705.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{custom-fields-72e6a6394b1c58c2.js → custom-fields-64c638ea33bb3ff9.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-b90fb07aa18a396b.js → domain-records-3843fbaf5bc433f1.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domains-eea6685e7aa5953c.js → domains-ea549fabce96fde4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-4a1985c24bf2dc90.js → email-templates-0fe318a9dfc1f593.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-06780a5a03c51fb0.js → locations-c42c856510cad6fd.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-5e8af0aeb40cbadd.js → organization-e4c552a5797c3fa5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{privacy-requests-b3156b0882717119.js → privacy-requests-2790d31b59cc3c74.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-825f705fc04c9262.js → regulations-3c608512c415fca4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/{test-datasets-4bfe49a2d99a905f.js → test-datasets-e0e1a5142e41e9f2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-7f98c2d62b08265d.js → [id]-9e815520adb3e580.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems-d8ce572ad07ed28c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-0cae23a599830708.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-9a920390f7f61e88.js → [id]-75d96422db98196f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-827f9bcad90d8856.js → user-management-598f98fd88505e1e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{webpack-3a17ce9d4ecac24a.js → webpack-0a3b419ab682b8f9.js} +1 -1
- fides/ui-build/static/admin/_next/static/css/{4d3cb2ffee0cfa2c.css → 919f947a862d28cd.css} +1 -1
- 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 -0
- fides/ui-build/static/admin/data-discovery/action-center/datastore.html +1 -0
- fides/ui-build/static/admin/data-discovery/action-center/website/[monitorId]/[systemId].html +1 -0
- fides/ui-build/static/admin/data-discovery/action-center/website/[monitorId].html +1 -0
- fides/ui-build/static/admin/data-discovery/action-center/website.html +1 -0
- fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
- fides/ui-build/static/admin/data-discovery/activity.html +1 -1
- fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-discovery/detection.html +1 -1
- fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
- fides/ui-build/static/admin/datamap.html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
- fides/ui-build/static/admin/dataset/new.html +1 -1
- fides/ui-build/static/admin/dataset.html +1 -1
- fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
- fides/ui-build/static/admin/datastore-connection/new.html +1 -1
- fides/ui-build/static/admin/datastore-connection.html +1 -1
- fides/ui-build/static/admin/index.html +1 -1
- fides/ui-build/static/admin/integrations/[id].html +1 -1
- fides/ui-build/static/admin/integrations.html +1 -1
- fides/ui-build/static/admin/lib/fides-preview.js +1 -1
- fides/ui-build/static/admin/lib/fides-tcf.js +3 -3
- fides/ui-build/static/admin/lib/fides.js +2 -2
- fides/ui-build/static/admin/login/[provider].html +1 -1
- fides/ui-build/static/admin/login.html +1 -1
- fides/ui-build/static/admin/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/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/KrreFSHeuO3A1ZudBtGj2/_buildManifest.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/2921-bcd6a8741e98e7ce.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4817-cb54f4a8ed82122f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6468-f73d542ab5bcf746.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6853-56c933239103eef6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7059-362b53ad2cbe480e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/8373-9debd1f8d36cd013.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9682-0aab88e56ba618a3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-cfd6175cd093217c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-3b04a6d7447ae824.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-b45b49ab68d15585.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-ee1cf6e7f60d46db.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/data-explorer/[monitorId]-1cebd59598196388.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/data-explorer-a725550fc25e45e2.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-f67b897b206d1156.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-484063d65850e03e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/new-privacy-requests-b0533759c1fe400c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates-0e0ff3689c02c12e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/ant-components-d9c3128f1c85ef06.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/AntForm-616164210b90485e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikAntFormItem-f462c200e6795276.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikControlled-891177e7bbd6a4a4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikField-cb6cd181c8ffbb9a.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/forms-540bf3af41cd40fb.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-27ff988967e9153d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-cd94476ab282dd7f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-9459019a37ffe8d8.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-260f460fea1bc187.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems-ddb0121f14bc3b84.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-4d945ab1aab9be54.js +0 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +0 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +0 -1
- fides/ui-build/static/admin/data-discovery/action-center/data-explorer/[monitorId].html +0 -1
- fides/ui-build/static/admin/data-discovery/action-center/data-explorer.html +0 -1
- {ethyca_fides-2.72.4b1.dist-info → ethyca_fides-2.73.0.dist-info}/WHEEL +0 -0
- {ethyca_fides-2.72.4b1.dist-info → ethyca_fides-2.73.0.dist-info}/entry_points.txt +0 -0
- {ethyca_fides-2.72.4b1.dist-info → ethyca_fides-2.73.0.dist-info}/licenses/LICENSE +0 -0
- {ethyca_fides-2.72.4b1.dist-info → ethyca_fides-2.73.0.dist-info}/top_level.txt +0 -0
- /fides/ui-build/static/admin/_next/static/{KrreFSHeuO3A1ZudBtGj2 → 6kEWO-NXzxn1tvUedYFei}/_ssgManifest.js +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/{[resourceUrn]-313fc265356df659.js → [resourceUrn]-5d133ec635cd716c.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/{[resourceUrn]-855eca0ddf47f4dc.js → [resourceUrn]-9d8efe43b69a285d.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-67c9fb9b18cb17a0.js → [resourceUrn]-2df143c1e1f79040.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-c9d69ae424e73377.js → detection-e37c800313e2a422.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-e5102013ec48b60c.js → [resourceUrn]-7022ca5fa834b633.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-4094104544531055.js → discovery-6178e22397f20f92.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/{[id]-9b395e59fa62cbe5.js → [id]-b5140de4431a7ff5.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/{new-a0bb7928ac4a894e.js → new-dcc16459e754fbbd.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/user-management/{new-6b3564b9ae9ee7dd.js → new-bc1568bb47d198a9.js} +0 -0
fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates-0e0ff3689c02c12e.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6781],{42944:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/notifications/templates",function(){return s(46632)}])},35287:function(e,t,s){"use strict";var i=s(24246),a=s(20595),n=s(88038),r=s.n(n);s(27378),t.Z=e=>{let{children:t,title:s,mainProps:n}=e;return(0,i.jsxs)(a.kCb,{"data-testid":s,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,i.jsxs)(r(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",s]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsx)(a.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...n,children:t})]})}},87361:function(e,t,s){"use strict";var i=s(24246),a=s(20595);t.Z=e=>{let{title:t,text:s,onClose:n}=e;return(0,i.jsxs)(a.Ugi,{backgroundColor:"gray.50",border:"1px solid",borderRadius:"md",justifyContent:"space-between",py:4,pr:6,pl:3,"data-testid":"empty-state",gap:2,position:"relative",children:[n&&(0,i.jsx)(a.Two,{boxSize:5,position:"absolute",right:3,top:3,zIndex:1,cursor:"pointer",p:1,onClick:n}),(0,i.jsx)(a.iid,{alignSelf:"start",color:"minos",mt:.5,flexGrow:0}),(0,i.jsxs)(a.kCb,{direction:"column",gap:2,flexGrow:1,children:[(0,i.jsx)(a.X6q,{fontSize:"md",children:t}),(0,i.jsx)(a.xvT,{fontSize:"sm",color:"gray.600",lineHeight:"5",children:s})]})]})}},129:function(e,t,s){"use strict";var i=s(24246),a=s(20595),n=s(86677),r=s(16134),l=s(25980),o=s(77830),c=s(65735),d=s(31793);t.Z=()=>{let e=(0,n.useRouter)(),t=e.pathname,{plus:s}=(0,l.hz)(),p="providers";t.startsWith(o.AD)?p="providers":t.startsWith(o.Wi)?p="templates":t.startsWith(o.DN)&&(p="digests");let u=[{key:"templates",label:"Templates",requiresPlus:!0,scopes:[c.Sh.MESSAGING_TEMPLATE_UPDATE],path:o.Wi},{key:"digests",label:"Digests",requiresPlus:!0,scopes:[c.Sh.DIGEST_CONFIG_READ],path:o.DN},{key:"providers",label:"Providers",requiresPlus:!1,scopes:[c.Sh.MESSAGING_CREATE_OR_UPDATE],path:o.AD}];s||(u=u.filter(e=>!e.requiresPlus));let m=(0,r.C)(d.uu);u=u.filter(e=>e.scopes.some(e=>m.includes(e)));let g=t=>{let s=u.find(e=>e.key===t);s&&e.push(s.path)},h=u.map(e=>({label:e.label,key:e.key}));return(0,i.jsx)("div",{className:"mb-6",children:(0,i.jsx)(a.Niu,{mode:"horizontal",selectedKeys:[p],onClick:e=>{let{key:t}=e;return g(t)},items:h})})}},58754:function(e,t,s){"use strict";var i=s(24246),a=s(20595),n=s(70788);t.Z=e=>{let{heading:t,breadcrumbItems:s,isSticky:r=!0,children:l,rightContent:o,style:c,...d}=e;return(0,i.jsxs)("div",{...d,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,i.jsxs)(a.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(a.lQT,{className:s||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!s&&(0,i.jsx)(n.m,{className:l?"pb-4":void 0,items:s,"data-testid":"page-breadcrumb"}),l]})}},70788:function(e,t,s){"use strict";s.d(t,{m:function(){return c}});var i=s(24246),a=s(20595),n=s(79894),r=s.n(n),l=s(27378);let{Text:o}=a.AntTypography,c=e=>{let{items:t,...s}=e,n=(0,l.useMemo)(()=>null==t?void 0:t.map((e,s)=>{let n=s===t.length-1,l={...e},c=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,i.jsx)(o,{style:{color:"inherit",maxWidth:n?void 0:400},ellipsis:!n,id:n?"breadcrumb-current-page":void 0,children:l.title})),c)?l.title=(0,i.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,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,i.jsx)(r(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,i.jsx)(a.zrq,{items:n,...s})}},67810:function(e,t,s){"use strict";s.d(t,{Z:function(){return n}}),(i=a||(a={})).PRIVACY_REQUEST_REVIEW_APPROVE="privacy_request_review_approve",i.PRIVACY_REQUEST_REVIEW_DENY="privacy_request_review_deny",i.PRIVACY_REQUEST_RECEIPT="privacy_request_receipt",i.PRIVACY_REQUEST_COMPLETE_ACCESS="privacy_request_complete_access",i.PRIVACY_REQUEST_COMPLETE_DELETION="privacy_request_complete_deletion",i.SUBJECT_IDENTITY_VERIFICATION="subject_identity_verification",i.MANUAL_TASK_DIGEST="manual_task_digest";var i,a,n={[a.PRIVACY_REQUEST_COMPLETE_ACCESS]:"Access request completed",[a.PRIVACY_REQUEST_COMPLETE_DELETION]:"Erasure request completed",[a.PRIVACY_REQUEST_RECEIPT]:"Privacy request received",[a.PRIVACY_REQUEST_REVIEW_APPROVE]:"Privacy request approved",[a.PRIVACY_REQUEST_REVIEW_DENY]:"Privacy request denied",[a.SUBJECT_IDENTITY_VERIFICATION]:"Subject identity verification",[a.MANUAL_TASK_DIGEST]:"Manual task digest"}},5058:function(e,t,s){"use strict";s.d(t,{Vw:function(){return n},ms:function(){return i},pS:function(){return a},vm:function(){return r}});let{useGetSummaryMessagingTemplatesQuery:i,usePutMessagingTemplateByIdMutation:a,useCreateMessagingTemplateByTypeMutation:n,usePatchMessagingTemplateByIdMutation:r}=s(78780).u.injectEndpoints({endpoints:e=>({getSummaryMessagingTemplates:e.query({query:e=>({method:"GET",url:"plus/messaging/templates/summary",params:e}),providesTags:()=>["Property-Specific Messaging Templates"]}),putMessagingTemplateById:e.mutation({query:e=>{let{templateId:t,template:s}=e;return{url:"plus/messaging/templates/".concat(t),method:"PUT",body:s}},invalidatesTags:()=>["Property-Specific Messaging Templates"]}),patchMessagingTemplateById:e.mutation({query:e=>{let{templateId:t,template:s}=e;return{url:"plus/messaging/templates/".concat(t),method:"PATCH",body:s}},invalidatesTags:()=>["Property-Specific Messaging Templates"]}),createMessagingTemplateByType:e.mutation({query:e=>{let{templateType:t,template:s}=e;return{url:"plus/messaging/templates/".concat(t),method:"POST",body:s}},invalidatesTags:()=>["Property-Specific Messaging Templates"]})})})},46632:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return M}});var i=s(24246),a=s(92222),n=s(59003),r=s(20595),l=s(95099),o=s.n(l),c=s(86677),d=s(27378),p=s(35287),u=s(71795),m=s(87361),g=s(46238),h=s(77830),x=s(129),f=s(58754),j=s(47935),_=s(42904),y=s(7426),E=s(67810),v=e=>{let{isOpen:t,onClose:s,onAccept:a}=e,[n,l]=(0,d.useState)(void 0),o=Object.keys(E.Z).map(e=>({value:e,label:E.Z[e]}));return(0,i.jsxs)(r.u_l,{isOpen:t,onClose:s,size:"2xl",isCentered:!0,children:[(0,i.jsx)(r.ZAr,{}),(0,i.jsxs)(r.hzk,{"data-testid":"add-messaging-template-modal",children:[(0,i.jsx)(r.xBx,{borderBottomWidth:1,fontWeight:"bold",children:"Select message template"}),(0,i.jsxs)(r.fef,{children:[(0,i.jsx)(r.xvT,{color:"gray.700",fontWeight:"medium",fontSize:"sm",marginBottom:3,marginTop:1,children:"Add a new email message by selecting a template below and clicking accept."}),(0,i.jsx)(r.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"medium",marginBottom:2,children:"Choose template:"}),(0,i.jsx)(r.xuv,{"data-testid":"template-type-selector",children:(0,i.jsx)(r.WPr,{options:o,onChange:e=>{l(e)},className:"w-full","aria-label":"Select a template"})})]}),(0,i.jsx)(r.mzw,{justifyContent:"flex-start",children:(0,i.jsxs)("div",{className:"flex w-full gap-4",children:[(0,i.jsx)(r.wpx,{onClick:s,"data-testid":"cancel-btn",className:"grow",children:"Cancel"}),(0,i.jsx)(r.wpx,{onClick:()=>a(n),type:"primary","data-testid":"confirm-btn",disabled:!n,className:"grow",children:"Next"})]})})]})]})},b=s(5058),T=s(812),C=s(46628),S=s(31883),P=()=>{let e=(0,r.pmc)(),[t]=(0,b.vm)();return{toggleIsTemplateEnabled:(0,d.useCallback)(async s=>{let{isEnabled:i,templateId:a}=s,n=await t({templateId:a,template:{is_enabled:i}});if((0,S.D4)(n)){e((0,C.Vo)((0,T.e$)(n.error)));return}e((0,C.t5)("Messaging template ".concat(i?"enabled":"disabled")))},[t,e])}},R=s(64826);let w=(0,a.Cl)(),I={items:[],total:0,page:1,size:50,pages:1},A=()=>(0,i.jsx)(r.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,i.jsxs)(r.gCW,{children:[(0,i.jsx)(r.xvT,{fontSize:"md",fontWeight:"600",children:"It looks like it's your first time here!"}),(0,i.jsxs)(r.xvT,{fontSize:"sm",children:['Add new email templates with the "Add message +" button.',(0,i.jsx)("br",{})]})]})}),k=()=>{let{isLoading:e,data:t}=(0,R.gz)({page:1,size:100}),s=null==t?void 0:t.items.filter(e=>!e.messaging_templates||0===e.messaging_templates.length),a=!!(!e&&(null==s?void 0:s.length)),n="missing-messages-notice-".concat(null==s?void 0:s.map(e=>e.id).join("-")),[l,o]=(0,u._)("notices.dismissedMessageNoticeId",""),c=n===l;return a&&!c?(0,i.jsx)(r.xuv,{mb:6,"data-testid":"notice-properties-without-messaging-templates",children:(0,i.jsx)(m.Z,{title:"Not all properties have messages configured.",text:(0,i.jsxs)(r.xvT,{as:"span",children:["You have properties that do not have messages configured. Users who submit privacy requests for these properties may not receive the necessary emails regarding their requests."," ",(0,i.jsx)(r.xuv,{as:"span",children:(0,i.jsx)(g.b,{label:null==s?void 0:s.map(e=>e.name).join(", ")})})]}),onClose:()=>{o(n)}})}):null},N=()=>{let{data:e}=(0,y.tB)({api_set:!1});return(null==e?void 0:e.notifications.enable_property_specific_messaging)?null:(0,i.jsx)(r.xuv,{mb:6,"data-testid":"notice-properties-without-messaging-templates",children:(0,i.jsx)(m.Z,{title:"Basic messaging enabled",text:(0,i.jsxs)(r.xvT,{as:"span",children:['In basic messaging mode, you can edit the content of your messages from this screen. Please note that in basic messaging, the "Enable" toggle does not apply. Fides also supports property specific messaging mode. Read our'," ",(0,i.jsx)(r.rUS,{href:"https://fid.es/property-specific-messaging",target:"_blank",rel:"nofollow",textDecoration:"underline",children:"docs"})," ","for more information about property specific mode or contact"," ",(0,i.jsx)(r.rUS,{href:"mailto:support@ethyca.com",textDecoration:"underline",children:"Ethyca support"})," ","to enable this mode on your Fides instance."]})})})};var M=()=>{let e=(0,c.useRouter)(),{toggleIsTemplateEnabled:t}=P(),{PAGE_SIZES:s,pageSize:l,setPageSize:u,onPreviousPageClick:m,isPreviousPageDisabled:g,onNextPageClick:y,isNextPageDisabled:T,startRange:C,endRange:S,pageIndex:R,setTotalPages:M}=(0,j.oi)(),{data:q,isLoading:z,isFetching:D}=(0,b.ms)({page:R,size:l}),{items:U,total:V,pages:W}=(0,d.useMemo)(()=>null!=q?q:I,[q]);(0,d.useEffect)(()=>{M(W)},[W,M]);let[O,B]=(0,d.useState)(!1),Y=(0,d.useMemo)(()=>[w.accessor(e=>e.type,{id:"message",cell:e=>(0,i.jsx)(j.G3,{value:E.Z[e.getValue()]}),header:e=>(0,i.jsx)(j.Rr,{value:"Message",...e}),size:150}),w.accessor(e=>(e.properties||[]).map(e=>e.name),{id:"properties",cell:e=>(0,i.jsx)(j.WP,{suffix:"properties",value:e.getValue(),...e}),header:e=>(0,i.jsx)(j.Rr,{value:"Properties",...e}),meta:{showHeaderMenu:!0},size:250}),w.accessor(e=>e.is_enabled,{id:"is_enabled",cell:e=>(0,i.jsx)(r.kCb,{align:"center",justifyContent:"flex-start",w:"full",h:"full",children:(0,i.jsx)(r.rAg,{checked:e.getValue(),onChange:s=>{t({isEnabled:s,templateId:e.row.original.id})}})}),header:e=>(0,i.jsx)(j.Rr,{value:"Enable",...e}),size:200,meta:{disableRowClick:!0}})],[t]),Z=(0,d.useMemo)(()=>o()(U,"id"),[U]),L=(0,n.b7)({getCoreRowModel:(0,a.sC)(),getFilteredRowModel:(0,a.vL)(),getSortedRowModel:(0,a.tj)(),columns:Y,data:Z,columnResizeMode:"onChange"});return(0,i.jsxs)(p.Z,{title:"Notifications",children:[(0,i.jsx)(f.Z,{heading:"Notifications"}),(0,i.jsx)(x.Z,{}),(0,i.jsx)(N,{}),(0,i.jsx)(k,{}),(0,i.jsx)(j.Q$,{children:(0,i.jsx)(r.Ugi,{alignItems:"center",spacing:4,marginLeft:"auto",children:(0,i.jsx)(r.wpx,{type:"primary","data-testid":"add-message-btn",onClick:()=>B(!0),children:"Add message +"})})}),z?(0,i.jsx)(j.I4,{rowHeight:36,numRows:15}):(0,i.jsx)(j.ZK,{tableInstance:L,onRowClick:t=>{e.push({pathname:h.mf,query:{id:t.id}})},emptyTableNotice:(0,i.jsx)(A,{})}),(0,i.jsx)(_.s8,{totalRows:V||0,pageSizes:s,setPageSize:u,onPreviousPageClick:m,isPreviousPageDisabled:g||D,onNextPageClick:y,isNextPageDisabled:T||D,startRange:C,endRange:S}),(0,i.jsx)(v,{isOpen:O,onClose:()=>B(!1),onAccept:t=>{e.push({pathname:h.fO,query:{templateType:t}})}})]})}},31883:function(e,t,s){"use strict";s.d(t,{Bw:function(){return i.Bw},D4:function(){return i.D4}});var i=s(19043)}},function(e){e.O(0,[8765,9278,346,2888,9774,179],function(){return e(e.s=42944)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/poc/ant-components-d9c3128f1c85ef06.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1921],{76985:function(e,l,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/poc/ant-components",function(){return s(43516)}])},58754:function(e,l,s){"use strict";var i=s(24246),t=s(20595),a=s(70788);l.Z=e=>{let{heading:l,breadcrumbItems:s,isSticky:n=!0,children:r,rightContent:c,style:o,...d}=e;return(0,i.jsxs)("div",{...d,style:n?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...o}:{paddingBottom:"24px",...o},children:[(0,i.jsxs)(t.jqI,{justify:"space-between",children:["string"==typeof l?(0,i.jsx)(t.lQT,{className:s||r?"pb-4":void 0,level:1,"data-testid":"page-heading",children:l}):l,c&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:c})]}),!!s&&(0,i.jsx)(a.m,{className:r?"pb-4":void 0,items:s,"data-testid":"page-breadcrumb"}),r]})}},70788:function(e,l,s){"use strict";s.d(l,{m:function(){return o}});var i=s(24246),t=s(20595),a=s(79894),n=s.n(a),r=s(27378);let{Text:c}=t.AntTypography,o=e=>{let{items:l,...s}=e,a=(0,r.useMemo)(()=>null==l?void 0:l.map((e,s)=>{let a=s===l.length-1,r={...e},o=r.onClick&&!r.href;return("string"==typeof r.title&&(r.title=(0,i.jsx)(c,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,id:a?"breadcrumb-current-page":void 0,children:r.title})),o)?r.title=(0,i.jsx)(t.wpx,{type:"text",size:"small",icon:r.icon,onClick:r.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:r.title}):(r.icon&&(r.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:r.icon}),r.title]})),r.href&&r.title&&(r.title=(0,i.jsx)(n(),{href:r.href,className:"ant-breadcrumb-link",children:r.title}),delete r.href)),r}),[l]);return(0,i.jsx)(t.zrq,{items:a,...s})}},43516:function(e,l,s){"use strict";s.r(l),s.d(l,{default:function(){return j}});var i=s(24246),t=s(20595),a=s(27378),n=s(46238),r=s(58754);let c=[{key:"1",title:"Item One",description:"First item description",status:"active"},{key:"2",title:"Item Two",description:"Second item description",status:"completed"},{key:"3",title:"Item Three",description:"Third item description",status:"completed"},{key:"4",title:"Item Four (Locked)",description:"This item is locked",status:"active",locked:!0},{key:"5",title:"Item Five",description:"Fifth item description",status:"active"}],{Content:o}=t.AntLayout,{Link:d,Paragraph:h,Text:u,Title:x}=t.AntTypography,p=[];for(let e=10;e<36;e+=1)p.push({label:e.toString(36)+e,value:e.toString(36)+e});var j=()=>{let[e,l]=(0,a.useState)(["1","3"]);return(0,i.jsx)(t.AntLayout,{children:(0,i.jsxs)(o,{className:"overflow-auto px-10 py-6",children:[(0,i.jsx)(r.Z,{heading:"Ant Design Proof of Concept"}),(0,i.jsxs)(t.bue,{gutter:16,className:"mt-6",children:[(0,i.jsx)(t.JGx,{span:8,children:(0,i.jsx)(t.V4A,{title:"Button",variant:"borderless",className:"h-full",children:(0,i.jsxs)(t.vyj,{direction:"vertical",children:[(0,i.jsx)(t.wpx,{type:"primary",children:"Primary Button"}),(0,i.jsx)(t.wpx,{children:"Default Button"}),(0,i.jsx)(t.wpx,{type:"dashed",children:"Dashed Button"}),(0,i.jsx)(t.wpx,{type:"text",children:"Text Button"}),(0,i.jsx)(t.wpx,{type:"link",children:"Link Button"}),(0,i.jsx)(t.wpx,{type:"primary",loading:!0,children:"Loading Button"}),(0,i.jsx)(t.wpx,{type:"primary",disabled:!0,children:"Disabled Button"})]})})}),(0,i.jsx)(t.JGx,{span:8,children:(0,i.jsx)(t.V4A,{title:"Switch",variant:"borderless",className:"h-full",children:(0,i.jsxs)(t.vyj,{direction:"vertical",children:[(0,i.jsx)(t.rAg,{defaultChecked:!0}),(0,i.jsx)(t.rAg,{size:"small",defaultChecked:!0}),(0,i.jsx)(t.rAg,{loading:!0,defaultChecked:!0})]})})}),(0,i.jsx)(t.JGx,{span:8,children:(0,i.jsx)(t.V4A,{title:"Select",variant:"borderless",className:"h-full",children:(0,i.jsxs)(t.vyj,{direction:"vertical",children:[(0,i.jsx)(t.WPr,{defaultValue:"lucy",className:"w-32",options:[{value:"jack",label:"Jack"},{value:"lucy",label:"Lucy"},{value:"Yiminghe",label:"yiminghe"},{value:"disabled",label:"Disabled",disabled:!0}],"aria-label":"Select"}),(0,i.jsx)(t.WPr,{defaultValue:"lucy",className:"w-32",disabled:!0,options:[{value:"lucy",label:"Lucy"}],"aria-label":"Select"}),(0,i.jsx)(t.WPr,{defaultValue:"lucy",className:"w-32",loading:!0,options:[{value:"lucy",label:"Lucy"}],"aria-label":"Select"}),(0,i.jsx)(t.WPr,{defaultValue:"lucy",className:"w-32",allowClear:!0,options:[{value:"lucy",label:"Lucy"}],"aria-label":"Select"}),(0,i.jsx)(t.WPr,{mode:"multiple",allowClear:!0,className:"w-full",placeholder:"Please select","aria-label":"Select",defaultValue:["a10","c12"],options:p}),(0,i.jsx)(t.WPr,{mode:"multiple",disabled:!0,className:"w-full",placeholder:"Please select","aria-label":"Select",defaultValue:["a10","c12"],options:p})]})})})]}),(0,i.jsx)("br",{}),(0,i.jsxs)(t.bue,{gutter:16,children:[(0,i.jsx)(t.JGx,{span:8,children:(0,i.jsx)(t.V4A,{title:"Checkbox",variant:"borderless",className:"h-full",children:(0,i.jsxs)(t.vyj,{direction:"vertical",children:[(0,i.jsx)(t.E_O,{children:"Checkbox"}),(0,i.jsx)(t.E_O,{defaultChecked:!0,children:"Checkbox"}),(0,i.jsx)(t.E_O,{disabled:!0,children:"Disabled"}),(0,i.jsx)(t.E_O,{indeterminate:!0,children:"Indeterminate"}),(0,i.jsx)(t.E_O.Group,{options:[{label:"Apple",value:"Apple"},{label:"Pear",value:"Pear"},{label:"Orange",value:"Orange",disabled:!0}],defaultValue:["Apple"]})]})})}),(0,i.jsx)(t.JGx,{span:8,children:(0,i.jsx)(t.V4A,{title:"Radio",variant:"borderless",className:"h-full",children:(0,i.jsxs)(t.vyj,{direction:"vertical",children:[(0,i.jsx)(t.y02,{children:"Radio"}),(0,i.jsx)(t.y02,{defaultChecked:!0,children:"Radio"}),(0,i.jsx)(t.y02,{disabled:!0,children:"Disabled"}),(0,i.jsx)(t.y02.Group,{options:[{label:"Apple",value:"Apple"},{label:"Pear",value:"Pear"},{label:"Orange",value:"Orange",disabled:!0}],defaultValue:"Apple"}),(0,i.jsx)(t.y02.Group,{options:[{label:"Apple",value:"Apple"},{label:"Pear",value:"Pear"},{label:"Orange",value:"Orange"}],defaultValue:"Apple",optionType:"button"}),(0,i.jsx)(t.y02.Group,{options:[{label:"Apple",value:"Apple"},{label:"Pear",value:"Pear"},{label:"Orange",value:"Orange"}],defaultValue:"Apple",optionType:"button",buttonStyle:"solid"})]})})}),(0,i.jsx)(t.JGx,{span:8,children:(0,i.jsx)(t.V4A,{title:"Input",variant:"borderless",className:"h-full",children:(0,i.jsxs)(t.vyj,{direction:"vertical",size:"middle",children:[(0,i.jsx)(t.vyj.Compact,{children:(0,i.jsx)(t.AntInput,{defaultValue:"26888888","aria-label":"Input"})}),(0,i.jsxs)(t.vyj.Compact,{children:[(0,i.jsx)(t.AntInput,{className:"w-1/5",defaultValue:"0571","aria-label":"Input"}),(0,i.jsx)(t.AntInput,{className:"w-4/5",defaultValue:"26888888","aria-label":"Input"})]}),(0,i.jsx)(t.vyj.Compact,{children:(0,i.jsx)(t.AntInput.Search,{addonBefore:"https://",placeholder:"input search text",allowClear:!0,"aria-label":"Input"})}),(0,i.jsxs)(t.vyj.Compact,{className:"w-full",children:[(0,i.jsx)(t.AntInput,{defaultValue:"Combine input and button","aria-label":"Input"}),(0,i.jsx)(t.wpx,{type:"primary",children:"Submit"})]}),(0,i.jsxs)(t.vyj.Compact,{children:[(0,i.jsx)(t.WPr,{defaultValue:"Zhejiang",options:p,"aria-label":"Select"}),(0,i.jsx)(t.AntInput,{defaultValue:"Xihu District, Hangzhou","aria-label":"Input"})]})]})})})]}),(0,i.jsx)("br",{}),(0,i.jsxs)(t.bue,{gutter:16,children:[(0,i.jsx)(t.JGx,{span:8,children:(0,i.jsx)(t.V4A,{title:"Tooltip",variant:"borderless",className:"h-full",children:(0,i.jsxs)(t.vyj,{direction:"vertical",children:[(0,i.jsx)(t.esZ,{title:"I'm a tooltip",children:"Hover or focus this text"}),(0,i.jsx)(n.b,{label:"Tooltip will show on mouse enter or focus."}),(0,i.jsx)(t.esZ,{title:"Focus styles don't change for naturally focusable elements like buttons",children:(0,i.jsx)(t.wpx,{children:"Button with tooltip"})})]})})}),(0,i.jsx)(t.JGx,{span:8,children:(0,i.jsx)(t.V4A,{title:"Alert",variant:"borderless",className:"h-full",children:(0,i.jsxs)(t.vyj,{direction:"vertical",children:[(0,i.jsx)(t.DUx,{message:"Success Tips",type:"success",showIcon:!0}),(0,i.jsx)(t.DUx,{message:"Informational Notes",type:"info",showIcon:!0}),(0,i.jsx)(t.DUx,{message:"Warning",type:"warning",showIcon:!0,closable:!0}),(0,i.jsx)(t.DUx,{message:"Error",type:"error",showIcon:!0})]})})}),(0,i.jsx)(t.JGx,{span:8,children:(0,i.jsx)(t.V4A,{title:"Tag",variant:"borderless",className:"h-full",children:(0,i.jsxs)(t.jqI,{wrap:!0,gap:"small",children:[(0,i.jsx)(t.j8w,{color:"default",children:"default"}),(0,i.jsx)(t.j8w,{color:"corinth",children:"corinth"}),(0,i.jsx)(t.j8w,{color:"minos",children:"minos"}),(0,i.jsx)(t.j8w,{color:"terracotta",children:"terracotta"}),(0,i.jsx)(t.j8w,{color:"olive",children:"olive"}),(0,i.jsx)(t.j8w,{color:"marble",children:"marble"}),(0,i.jsx)(t.j8w,{color:"sandstone",children:"sandstone"}),(0,i.jsx)(t.j8w,{color:"nectar",children:"nectar"}),(0,i.jsx)(t.j8w,{color:"error",children:"error"}),(0,i.jsx)(t.j8w,{color:"warning",children:"warning"}),(0,i.jsx)(t.j8w,{color:"caution",children:"caution"}),(0,i.jsx)(t.j8w,{color:"success",children:"success"}),(0,i.jsx)(t.j8w,{color:"info",children:"info"}),(0,i.jsx)(t.j8w,{color:"alert",children:"alert"}),(0,i.jsx)(t.j8w,{color:"white",children:"white"}),(0,i.jsx)(t.j8w,{closable:!0,onClose:()=>console.log("closed"),children:"Closable Tag"}),(0,i.jsx)(t.j8w,{onClick:()=>console.log("clicked"),addable:!0}),(0,i.jsx)(t.j8w,{onClick:()=>console.log("clicked"),addable:!0,children:"Add More"}),(0,i.jsxs)(t.j8w,{hasSparkle:!0,onClick:()=>console.log("clicked"),children:["Data Use",(0,i.jsx)(t.PJP.I8b,{})]}),(0,i.jsx)(t.j8w,{hasSparkle:!0,onClick:()=>console.log("clicked"),closable:!0,onClose:()=>console.log("closed"),children:"Data Category"})]})})})]}),(0,i.jsx)("br",{}),(0,i.jsxs)(t.bue,{gutter:16,children:[(0,i.jsx)(t.JGx,{span:8,children:(0,i.jsx)(t.V4A,{title:"Typography Headings",variant:"borderless",className:"h-full",children:(0,i.jsxs)(t.vyj,{direction:"vertical",children:[(0,i.jsx)(x,{level:1,children:"H1 default"}),(0,i.jsx)(x,{level:1,headingSize:2,children:"H1 sized as H2"}),(0,i.jsx)(x,{level:1,headingSize:3,children:"H1 sized as H3"}),(0,i.jsx)(t.htM,{style:{margin:0}}),(0,i.jsx)(x,{level:2,children:"H2 default"}),(0,i.jsx)(x,{level:2,headingSize:1,children:"H2 sized as H1"}),(0,i.jsx)(x,{level:2,headingSize:3,children:"H2 sized as H3"}),(0,i.jsx)(t.htM,{style:{margin:0}}),(0,i.jsx)(x,{level:3,children:"H3 default"}),(0,i.jsx)(x,{level:3,headingSize:1,children:"H3 sized as H1"}),(0,i.jsx)(x,{level:3,headingSize:2,children:"H3 sized as H2"})]})})}),(0,i.jsx)(t.JGx,{span:8,children:(0,i.jsx)(t.V4A,{title:"Typography Paragraphs",variant:"borderless",className:"h-full",children:(0,i.jsxs)(t.AntTypography,{children:[(0,i.jsx)(h,{children:"This paragraph has a bottom margin. Imperdiet ex curae laoreet turpis adipiscing pulvinar erat conubia rhoncus, faucibus dictum porta integer tincidunt iaculis pharetra. Dis praesent egestas curae tortor primis volutpat metus ridiculus sit rutrum vitae ac aenean, nisi dolor a per molestie etiam ad tristique magnis fames laoreet."}),(0,i.jsx)(h,{children:"This paragraph has no bottom margin. Imperdiet ex curae laoreet turpis adipiscing pulvinar erat conubia rhoncus, faucibus dictum porta integer tincidunt iaculis pharetra."}),(0,i.jsx)(h,{type:"secondary",children:"This paragraph uses secondary color. laoreet turpis adipiscing pulvinar erat conubia rhoncus, faucibus dictum porta integer tincidunt iaculis pharetra."})]})})}),(0,i.jsx)(t.JGx,{span:8,children:(0,i.jsx)(t.V4A,{title:"Typography Text & Link",variant:"borderless",className:"h-full",children:(0,i.jsxs)(t.vyj,{direction:"vertical",children:[(0,i.jsx)(u,{children:"Ant Design (default)"}),(0,i.jsx)(u,{size:"sm",children:"Ant Design (small)"}),(0,i.jsx)(u,{size:"lg",children:"Ant Design (large)"}),(0,i.jsx)(u,{type:"secondary",children:"Ant Design (secondary)"}),(0,i.jsx)(u,{type:"success",children:"Ant Design (success)"}),(0,i.jsx)(u,{type:"warning",children:"Ant Design (warning)"}),(0,i.jsx)(u,{type:"danger",children:"Ant Design (danger)"}),(0,i.jsx)(u,{disabled:!0,children:"Ant Design (disabled)"}),(0,i.jsx)(u,{mark:!0,children:"Ant Design (mark)"}),(0,i.jsx)(u,{code:!0,children:"Ant Design (code)"}),(0,i.jsx)(u,{keyboard:!0,children:"Ant Design (keyboard)"}),(0,i.jsx)(u,{underline:!0,children:"Ant Design (underline)"}),(0,i.jsx)(u,{delete:!0,children:"Ant Design (delete)"}),(0,i.jsx)(u,{strong:!0,children:"Ant Design (strong)"}),(0,i.jsx)(u,{italic:!0,children:"Ant Design (italic)"}),(0,i.jsx)(d,{href:"https://ant.design",target:"_blank",children:"Ant Design (Link)"})]})})})]}),(0,i.jsx)("br",{}),(0,i.jsx)(t.bue,{gutter:16,children:(0,i.jsx)(t.JGx,{span:24,children:(0,i.jsx)(t.V4A,{title:"List with rowSelection",variant:"borderless",className:"h-full",children:(0,i.jsxs)(t.vyj,{direction:"vertical",className:"w-full",children:[(0,i.jsxs)(u,{children:["CustomList supports rowSelection similar to Table, with checkboxes in the avatar position. Selected items:"," ",(0,i.jsx)(u,{strong:!0,children:e.length})]}),(0,i.jsx)(t.krs,{dataSource:c,rowSelection:{selectedRowKeys:e,onChange:(e,s)=>{console.log("Selected keys:",e),console.log("Selected rows:",s),l(e)},getCheckboxProps:e=>({disabled:e.locked})},renderItem:(e,l,s)=>(0,i.jsxs)(t.krs.Item,{actions:[(0,i.jsx)(t.wpx,{type:"link",size:"small",onClick:()=>console.log("View clicked for:",e.title),children:"View"},"view")],children:[(0,i.jsx)(t.krs.Item.Meta,{title:e.title,description:e.description,avatar:s}),(0,i.jsx)(t.j8w,{color:"completed"===e.status?"success":"info",children:e.status})]})}),e.length>0&&(0,i.jsx)(t.DUx,{message:"".concat(e.length," item(s) selected"),description:(0,i.jsxs)(t.vyj,{direction:"vertical",size:"small",children:[(0,i.jsx)(u,{children:"You can perform bulk actions on selected items."}),(0,i.jsxs)(t.vyj,{children:[(0,i.jsx)(t.wpx,{size:"small",onClick:()=>console.log("Bulk action on:",e),children:"Bulk action"}),(0,i.jsx)(t.wpx,{size:"small",onClick:()=>l([]),children:"Clear selection"})]})]}),type:"info",showIcon:!0})]})})})})]})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=76985)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5970],{6920:function(e,l,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/poc/form-experiments/AntForm",function(){return n(33396)}])},95813:function(e,l,n){"use strict";n.d(l,{S:function(){return a}});let a={input:"default text",radio:"2",checkbox:!0,switch:!0,select:"2",multiselect:["2"],tags:["1"],date:"",number:12}},33396:function(e,l,n){"use strict";n.r(l),n.d(l,{AntFormPOC:function(){return u}});var a=n(24246),t=n(20595),r=n(3124),s=n.n(r),c=n(27378),i=n(95813);let{Title:o}=t.AntTypography,u=()=>{let[e]=t.PPS.useForm(),[l,n]=(0,c.useState)(i.S);return(0,a.jsxs)(t.bue,{children:[(0,a.jsxs)(t.JGx,{span:12,children:[(0,a.jsx)(o,{level:2,children:"Pure Ant"}),(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)(t.j8w,{color:"green",children:"functional"}),(0,a.jsx)(t.j8w,{color:"green",children:"low effort"})]}),(0,a.jsxs)(t.PPS,{initialValues:{...i.S},form:e,layout:"vertical",onValuesChange:(e,l)=>{n(l)},children:[(0,a.jsx)(t.PPS.Item,{label:"Input",name:"input",children:(0,a.jsx)(t.AntInput,{"aria-label":"Input"})}),(0,a.jsx)(t.PPS.Item,{name:"radio",children:(0,a.jsxs)(t.y02.Group,{name:"radio",children:[(0,a.jsx)(t.y02,{value:"1",children:"Radio 1"}),(0,a.jsx)(t.y02,{value:"2",children:"Radio 2"})]})}),(0,a.jsx)(t.PPS.Item,{name:"checkbox",valuePropName:"checked",children:(0,a.jsx)(t.E_O,{children:"Checkbox"})}),(0,a.jsx)(t.PPS.Item,{label:"Switch",name:"switch",valuePropName:"checked",children:(0,a.jsx)(t.rAg,{})}),(0,a.jsx)(t.PPS.Item,{label:"Select",name:"select",children:(0,a.jsx)(t.WPr,{allowClear:!0,className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}],"aria-label":"Select"})}),(0,a.jsx)(t.PPS.Item,{label:"Multiselect",name:"multiselect",children:(0,a.jsx)(t.WPr,{mode:"multiple",allowClear:!0,className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}],"aria-label":"Select"})}),(0,a.jsx)(t.PPS.Item,{label:"Tags",name:"tags",children:(0,a.jsx)(t.WPr,{mode:"tags",allowClear:!0,className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}],"aria-label":"Select"})}),(0,a.jsx)(t.PPS.Item,{label:"Date",name:"date",children:(0,a.jsx)(t.cv2,{})}),(0,a.jsx)(t.PPS.Item,{label:"Number",name:"number",children:(0,a.jsx)(t.W7D,{"aria-label":"InputNumber"})})]})]}),(0,a.jsxs)(t.JGx,{span:8,offset:4,children:[(0,a.jsx)(o,{level:4,children:"Controlled Values"}),(0,a.jsx)(t.V4A,{style:{backgroundColor:s().FIDESUI_MINOS,color:s().FIDESUI_CORINTH},children:(0,a.jsx)("pre",{children:(0,a.jsxs)("code",{children:["{\n",Object.keys(l).map(e=>" ".concat(e.toString(),": ").concat(l[e],"\n")),"}"]})})})]})]})};l.default=u}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=6920)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[840],{71850:function(e,l,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/poc/form-experiments/FormikAntFormItem",function(){return t(35716)}])},95813:function(e,l,t){"use strict";t.d(l,{S:function(){return n}});let n={input:"default text",radio:"2",checkbox:!0,switch:!0,select:"2",multiselect:["2"],tags:["1"],date:"",number:12}},35716:function(e,l,t){"use strict";t.r(l),t.d(l,{FormikAntFormItemPOC:function(){return u}});var n=t(24246),a=t(20595),c=t(3124),o=t.n(c),r=t(34090),s=t(95813);let{Title:i}=a.AntTypography,u=()=>(0,n.jsx)(r.J9,{initialValues:{...s.S},onSubmit:console.log,children:e=>{let{values:l,setFieldValue:t}=e;return(0,n.jsxs)(a.bue,{children:[(0,n.jsxs)(a.JGx,{span:12,children:[(0,n.jsx)(i,{level:2,children:"<Formik> + Controlled + Ant's <Form.Item>"}),(0,n.jsxs)("div",{className:"mb-4",children:[(0,n.jsx)(a.j8w,{color:"green",children:"functional"}),(0,n.jsx)(a.j8w,{color:"orange",children:"mid effort"})]}),(0,n.jsx)(r.l0,{children:(0,n.jsxs)(a.jqI,{vertical:!0,children:[(0,n.jsx)(a.PPS.Item,{label:"Input",name:"input",layout:"vertical",children:(0,n.jsx)(a.AntInput,{onChange:e=>t("input",e.target.value),defaultValue:l.input})}),(0,n.jsxs)(a.y02.Group,{name:"radio",onChange:e=>t("radio",e.target.value),defaultValue:l.radio,children:[(0,n.jsx)(a.y02,{value:"1",children:"Radio 1"}),(0,n.jsx)(a.y02,{value:"2",children:"Radio 2"})]}),(0,n.jsx)(a.PPS.Item,{name:"checkbox",children:(0,n.jsx)(a.E_O,{onChange:e=>t("checkbox",e.target.checked),defaultChecked:l.checkbox,children:"Checkbox"})}),(0,n.jsx)(a.PPS.Item,{label:"Switch",name:"switch",layout:"vertical",children:(0,n.jsx)(a.rAg,{onChange:e=>t("switch",e),defaultChecked:l.switch})}),(0,n.jsx)(a.PPS.Item,{label:"Select",name:"select",layout:"vertical",children:(0,n.jsx)(a.WPr,{allowClear:!0,className:"w-full",defaultValue:l.select,onChange:e=>t("select",e),options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,n.jsx)(a.PPS.Item,{label:"Multiselect",name:"multiselect",layout:"vertical",children:(0,n.jsx)(a.WPr,{mode:"multiple",allowClear:!0,className:"w-full",defaultValue:l.multiselect,onChange:e=>t("multiselect",e),options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,n.jsx)(a.PPS.Item,{label:"Tags",name:"tags",layout:"vertical",children:(0,n.jsx)(a.WPr,{mode:"tags",allowClear:!0,className:"w-full",defaultValue:l.tags,onChange:e=>t("tags",e),options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,n.jsx)(a.PPS.Item,{label:"Date",name:"date",layout:"vertical",children:(0,n.jsx)(a.cv2,{onChange:e=>t("date",e.toISOString())})}),(0,n.jsx)(a.PPS.Item,{label:"Number",name:"number",layout:"vertical",children:(0,n.jsx)(a.W7D,{defaultValue:l.number,onChange:e=>t("number",e)})})]})})]}),(0,n.jsxs)(a.JGx,{span:8,offset:4,children:[(0,n.jsx)(i,{level:4,children:"Controlled Values"}),(0,n.jsx)(a.V4A,{style:{backgroundColor:o().FIDESUI_MINOS,color:o().FIDESUI_CORINTH},children:(0,n.jsx)("pre",{children:(0,n.jsxs)("code",{children:["{\n",Object.keys(l).map(e=>" ".concat(e,": ").concat(l[e],"\n")),"}"]})})})]})]})}});l.default=u}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=71850)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[611],{84093:function(e,l,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/poc/form-experiments/FormikControlled",function(){return n(15957)}])},95813:function(e,l,n){"use strict";n.d(l,{S:function(){return i}});let i={input:"default text",radio:"2",checkbox:!0,switch:!0,select:"2",multiselect:["2"],tags:["1"],date:"",number:12}},15957:function(e,l,n){"use strict";n.r(l),n.d(l,{FormikControlledPOC:function(){return o}});var i=n(24246),t=n(20595),s=n(3124),r=n.n(s),c=n(34090),d=n(95813);let{Title:a}=t.AntTypography,o=()=>(0,i.jsx)(c.J9,{initialValues:{...d.S},onSubmit:console.log,children:e=>{let{values:l,setFieldValue:n}=e;return(0,i.jsxs)(t.bue,{children:[(0,i.jsxs)(t.JGx,{span:12,children:[(0,i.jsx)(a,{level:2,children:"<Formik> + Controlled"}),(0,i.jsxs)("div",{className:"mb-4",children:[(0,i.jsx)(t.j8w,{color:"green",children:"functional"}),(0,i.jsx)(t.j8w,{color:"red",children:"high effort"})]}),(0,i.jsx)(c.l0,{children:(0,i.jsxs)(t.jqI,{vertical:!0,gap:16,children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"input",children:"Input"}),(0,i.jsx)("div",{children:(0,i.jsx)(t.AntInput,{id:"input",onChange:e=>n("input",e.target.value),defaultValue:l.input})})]}),(0,i.jsx)("div",{children:(0,i.jsxs)(t.y02.Group,{name:"radio",onChange:e=>n("radio",e.target.value),defaultValue:l.radio,children:[(0,i.jsx)(t.y02,{value:"1",children:"Radio 1"}),(0,i.jsx)(t.y02,{value:"2",children:"Radio 2"})]})}),(0,i.jsx)("div",{children:(0,i.jsx)(t.E_O,{onChange:e=>n("checkbox",e.target.checked),defaultChecked:l.checkbox,children:"Checkbox"})}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"switch",children:"Switch"}),(0,i.jsx)("div",{children:(0,i.jsx)(t.rAg,{id:"switch",onChange:e=>n("switch",e),defaultChecked:l.switch})})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"select",children:"Select"}),(0,i.jsx)("div",{children:(0,i.jsx)(t.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,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"multiselect",children:"Multiselect"}),(0,i.jsx)("div",{children:(0,i.jsx)(t.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,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"tags",children:"Tags"}),(0,i.jsx)("div",{children:(0,i.jsx)(t.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,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"date",children:"Date"}),(0,i.jsx)("div",{children:(0,i.jsx)(t.cv2,{id:"date",onChange:e=>n("date",e.toISOString())})})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"number",children:"Number"}),(0,i.jsx)("div",{children:(0,i.jsx)(t.W7D,{id:"number",defaultValue:l.number,onChange:e=>n("number",e)})})]})]})})]}),(0,i.jsxs)(t.JGx,{span:8,offset:4,children:[(0,i.jsx)(a,{level:4,children:"Controlled Values"}),(0,i.jsx)(t.V4A,{style:{backgroundColor:r().FIDESUI_MINOS,color:r().FIDESUI_CORINTH},children:(0,i.jsx)("pre",{children:(0,i.jsxs)("code",{children:["{\n",Object.keys(l).map(e=>" ".concat(e,": ").concat(l[e],"\n")),"}"]})})})]})]})}});l.default=o}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=84093)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4266],{93102:function(e,l,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/poc/form-experiments/FormikField",function(){return i(82252)}])},95813:function(e,l,i){"use strict";i.d(l,{S:function(){return n}});let n={input:"default text",radio:"2",checkbox:!0,switch:!0,select:"2",multiselect:["2"],tags:["1"],date:"",number:12}},82252:function(e,l,i){"use strict";i.r(l),i.d(l,{FormikFieldPOC:function(){return h}});var n=i(24246),s=i(20595),r=i(3124),t=i.n(r),o=i(34090),d=i(95813);let{Text:a,Title:c}=s.AntTypography,h=()=>(0,n.jsx)(o.J9,{initialValues:{...d.S},onSubmit:console.log,children:e=>{let{values:l}=e;return(0,n.jsxs)(s.bue,{children:[(0,n.jsxs)(s.JGx,{span:12,children:[(0,n.jsx)(c,{level:2,children:"<Formik> + <Field>"}),(0,n.jsxs)("div",{className:"mb-4",children:[(0,n.jsx)(s.j8w,{color:"red",children:"non functional"}),(0,n.jsx)(s.j8w,{color:"red",children:"high effort"})]}),(0,n.jsx)(o.l0,{children:(0,n.jsxs)(s.jqI,{vertical:!0,gap:16,children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"input",children:"Input"}),(0,n.jsx)("div",{children:(0,n.jsx)(o.gN,{as:s.AntInput,id:"input",name:"input",type:"text"})})]}),(0,n.jsx)("div",{children:(0,n.jsxs)(o.gN,{as:s.y02.Group,name:"radio",children:[(0,n.jsx)(s.y02,{value:"1",children:"Radio 1"}),(0,n.jsx)(s.y02,{value:"2",children:"Radio 2"})]})}),(0,n.jsxs)("div",{children:[(0,n.jsx)(o.gN,{as:s.E_O,defaultChecked:l.checkbox,name:"checkbox",children:"Checkbox"}),(0,n.jsx)(a,{type:"warning",children:"Requires additional logic to handle default state"})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"switch",children:"Switch"}),(0,n.jsx)("div",{children:(0,n.jsx)(o.gN,{as:s.rAg,id:"switch",name:"switch"})}),(0,n.jsxs)(a,{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,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"select",children:"Select"}),(0,n.jsx)("div",{children:(0,n.jsx)(o.gN,{as:s.WPr,allowClear:!0,id:"select",name:"select",className:"w-full",status:"error",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,n.jsxs)(a,{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,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"multiselect",children:"Multiselect"}),(0,n.jsx)("div",{children:(0,n.jsx)(o.gN,{as:s.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,n.jsxs)(a,{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,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"multiselect",children:"Tags"}),(0,n.jsx)("div",{children:(0,n.jsx)(o.gN,{as:s.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,n.jsxs)(a,{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,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"date",children:"Date"}),(0,n.jsx)("div",{children:(0,n.jsx)(o.gN,{as:s.cv2,id:"date",name:"date",status:"error"})}),(0,n.jsxs)(a,{type:"danger",children:["Ant DatePicker's onChange is different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"number",children:"Number"}),(0,n.jsx)("div",{children:(0,n.jsx)(o.gN,{as:s.W7D,id:"number",name:"number",status:"error"})}),(0,n.jsxs)(a,{type:"danger",children:["Ant InputNumber's onChange is different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]})]})})]}),(0,n.jsxs)(s.JGx,{span:8,offset:4,children:[(0,n.jsx)(c,{level:4,children:"Controlled Values"}),(0,n.jsx)(s.V4A,{style:{backgroundColor:t().FIDESUI_MINOS,color:t().FIDESUI_CORINTH},children:(0,n.jsx)("pre",{children:(0,n.jsxs)("code",{children:["{\n",Object.keys(l).map(e=>" ".concat(e,": ").concat(l[e],"\n")),"}"]})})})]})]})}});l.default=h}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=93102)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
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 i=n(24246),t=n(20595),r=n(3124),s=n.n(r),a=n(27378),o=n(95813);let{Title:c}=t.AntTypography,d=()=>{let[e]=t.PPS.useForm(),[l,n]=(0,a.useState)(o.S);return(0,i.jsxs)(t.bue,{children:[(0,i.jsxs)(t.JGx,{span:12,children:[(0,i.jsx)(c,{level:2,children:"Pure Ant"}),(0,i.jsxs)("div",{className:"mb-4",children:[(0,i.jsx)(t.j8w,{color:"green",children:"functional"}),(0,i.jsx)(t.j8w,{color:"green",children:"low effort"})]}),(0,i.jsxs)(t.PPS,{initialValues:{...o.S},form:e,layout:"vertical",onValuesChange:(e,l)=>{n(l)},children:[(0,i.jsx)(t.PPS.Item,{label:"Input",name:"input",children:(0,i.jsx)(t.AntInput,{"aria-label":"Input"})}),(0,i.jsx)(t.PPS.Item,{name:"radio",children:(0,i.jsxs)(t.y02.Group,{name:"radio",children:[(0,i.jsx)(t.y02,{value:"1",children:"Radio 1"}),(0,i.jsx)(t.y02,{value:"2",children:"Radio 2"})]})}),(0,i.jsx)(t.PPS.Item,{name:"checkbox",valuePropName:"checked",children:(0,i.jsx)(t.E_O,{children:"Checkbox"})}),(0,i.jsx)(t.PPS.Item,{label:"Switch",name:"switch",valuePropName:"checked",children:(0,i.jsx)(t.rAg,{})}),(0,i.jsx)(t.PPS.Item,{label:"Select",name:"select",children:(0,i.jsx)(t.WPr,{allowClear:!0,className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}],"aria-label":"Select"})}),(0,i.jsx)(t.PPS.Item,{label:"Multiselect",name:"multiselect",children:(0,i.jsx)(t.WPr,{mode:"multiple",allowClear:!0,className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}],"aria-label":"Select"})}),(0,i.jsx)(t.PPS.Item,{label:"Tags",name:"tags",children:(0,i.jsx)(t.WPr,{mode:"tags",allowClear:!0,className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}],"aria-label":"Select"})}),(0,i.jsx)(t.PPS.Item,{label:"Date",name:"date",children:(0,i.jsx)(t.cv2,{})}),(0,i.jsx)(t.PPS.Item,{label:"Number",name:"number",children:(0,i.jsx)(t.W7D,{"aria-label":"InputNumber"})})]})]}),(0,i.jsxs)(t.JGx,{span:8,offset:4,children:[(0,i.jsx)(c,{level:4,children:"Controlled Values"}),(0,i.jsx)(t.V4A,{style:{backgroundColor:s().FIDESUI_MINOS,color:s().FIDESUI_CORINTH},children:(0,i.jsx)("pre",{children:(0,i.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 i=n(24246),t=n(20595),r=n(3124),s=n.n(r),a=n(34090),o=n(95813);let{Title:c}=t.AntTypography,d=()=>(0,i.jsx)(a.J9,{initialValues:{...o.S},onSubmit:console.log,children:e=>{let{values:l,setFieldValue:n}=e;return(0,i.jsxs)(t.bue,{children:[(0,i.jsxs)(t.JGx,{span:12,children:[(0,i.jsx)(c,{level:2,children:"<Formik> + Controlled + Ant's <Form.Item>"}),(0,i.jsxs)("div",{className:"mb-4",children:[(0,i.jsx)(t.j8w,{color:"green",children:"functional"}),(0,i.jsx)(t.j8w,{color:"orange",children:"mid effort"})]}),(0,i.jsx)(a.l0,{children:(0,i.jsxs)(t.jqI,{vertical:!0,children:[(0,i.jsx)(t.PPS.Item,{label:"Input",name:"input",layout:"vertical",children:(0,i.jsx)(t.AntInput,{onChange:e=>n("input",e.target.value),defaultValue:l.input})}),(0,i.jsxs)(t.y02.Group,{name:"radio",onChange:e=>n("radio",e.target.value),defaultValue:l.radio,children:[(0,i.jsx)(t.y02,{value:"1",children:"Radio 1"}),(0,i.jsx)(t.y02,{value:"2",children:"Radio 2"})]}),(0,i.jsx)(t.PPS.Item,{name:"checkbox",children:(0,i.jsx)(t.E_O,{onChange:e=>n("checkbox",e.target.checked),defaultChecked:l.checkbox,children:"Checkbox"})}),(0,i.jsx)(t.PPS.Item,{label:"Switch",name:"switch",layout:"vertical",children:(0,i.jsx)(t.rAg,{onChange:e=>n("switch",e),defaultChecked:l.switch})}),(0,i.jsx)(t.PPS.Item,{label:"Select",name:"select",layout:"vertical",children:(0,i.jsx)(t.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,i.jsx)(t.PPS.Item,{label:"Multiselect",name:"multiselect",layout:"vertical",children:(0,i.jsx)(t.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,i.jsx)(t.PPS.Item,{label:"Tags",name:"tags",layout:"vertical",children:(0,i.jsx)(t.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,i.jsx)(t.PPS.Item,{label:"Date",name:"date",layout:"vertical",children:(0,i.jsx)(t.cv2,{onChange:e=>n("date",e.toISOString())})}),(0,i.jsx)(t.PPS.Item,{label:"Number",name:"number",layout:"vertical",children:(0,i.jsx)(t.W7D,{defaultValue:l.number,onChange:e=>n("number",e)})})]})})]}),(0,i.jsxs)(t.JGx,{span:8,offset:4,children:[(0,i.jsx)(c,{level:4,children:"Controlled Values"}),(0,i.jsx)(t.V4A,{style:{backgroundColor:s().FIDESUI_MINOS,color:s().FIDESUI_CORINTH},children:(0,i.jsx)("pre",{children:(0,i.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 i=n(24246),t=n(20595),r=n(3124),s=n.n(r),a=n(34090),o=n(95813);let{Title:c}=t.AntTypography,d=()=>(0,i.jsx)(a.J9,{initialValues:{...o.S},onSubmit:console.log,children:e=>{let{values:l,setFieldValue:n}=e;return(0,i.jsxs)(t.bue,{children:[(0,i.jsxs)(t.JGx,{span:12,children:[(0,i.jsx)(c,{level:2,children:"<Formik> + Controlled"}),(0,i.jsxs)("div",{className:"mb-4",children:[(0,i.jsx)(t.j8w,{color:"green",children:"functional"}),(0,i.jsx)(t.j8w,{color:"red",children:"high effort"})]}),(0,i.jsx)(a.l0,{children:(0,i.jsxs)(t.jqI,{vertical:!0,gap:16,children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"input",children:"Input"}),(0,i.jsx)("div",{children:(0,i.jsx)(t.AntInput,{id:"input",onChange:e=>n("input",e.target.value),defaultValue:l.input})})]}),(0,i.jsx)("div",{children:(0,i.jsxs)(t.y02.Group,{name:"radio",onChange:e=>n("radio",e.target.value),defaultValue:l.radio,children:[(0,i.jsx)(t.y02,{value:"1",children:"Radio 1"}),(0,i.jsx)(t.y02,{value:"2",children:"Radio 2"})]})}),(0,i.jsx)("div",{children:(0,i.jsx)(t.E_O,{onChange:e=>n("checkbox",e.target.checked),defaultChecked:l.checkbox,children:"Checkbox"})}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"switch",children:"Switch"}),(0,i.jsx)("div",{children:(0,i.jsx)(t.rAg,{id:"switch",onChange:e=>n("switch",e),defaultChecked:l.switch})})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"select",children:"Select"}),(0,i.jsx)("div",{children:(0,i.jsx)(t.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,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"multiselect",children:"Multiselect"}),(0,i.jsx)("div",{children:(0,i.jsx)(t.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,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"tags",children:"Tags"}),(0,i.jsx)("div",{children:(0,i.jsx)(t.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,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"date",children:"Date"}),(0,i.jsx)("div",{children:(0,i.jsx)(t.cv2,{id:"date",onChange:e=>n("date",e.toISOString())})})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"number",children:"Number"}),(0,i.jsx)("div",{children:(0,i.jsx)(t.W7D,{id:"number",defaultValue:l.number,onChange:e=>n("number",e)})})]})]})})]}),(0,i.jsxs)(t.JGx,{span:8,offset:4,children:[(0,i.jsx)(c,{level:4,children:"Controlled Values"}),(0,i.jsx)(t.V4A,{style:{backgroundColor:s().FIDESUI_MINOS,color:s().FIDESUI_CORINTH},children:(0,i.jsx)("pre",{children:(0,i.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 i=n(24246),t=n(20595),r=n(3124),s=n.n(r),a=n(34090),o=n(95813);let{Text:c,Title:d}=t.AntTypography,h=()=>(0,i.jsx)(a.J9,{initialValues:{...o.S},onSubmit:console.log,children:e=>{let{values:l}=e;return(0,i.jsxs)(t.bue,{children:[(0,i.jsxs)(t.JGx,{span:12,children:[(0,i.jsx)(d,{level:2,children:"<Formik> + <Field>"}),(0,i.jsxs)("div",{className:"mb-4",children:[(0,i.jsx)(t.j8w,{color:"red",children:"non functional"}),(0,i.jsx)(t.j8w,{color:"red",children:"high effort"})]}),(0,i.jsx)(a.l0,{children:(0,i.jsxs)(t.jqI,{vertical:!0,gap:16,children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"input",children:"Input"}),(0,i.jsx)("div",{children:(0,i.jsx)(a.gN,{as:t.AntInput,id:"input",name:"input",type:"text"})})]}),(0,i.jsx)("div",{children:(0,i.jsxs)(a.gN,{as:t.y02.Group,name:"radio",children:[(0,i.jsx)(t.y02,{value:"1",children:"Radio 1"}),(0,i.jsx)(t.y02,{value:"2",children:"Radio 2"})]})}),(0,i.jsxs)("div",{children:[(0,i.jsx)(a.gN,{as:t.E_O,defaultChecked:l.checkbox,name:"checkbox",children:"Checkbox"}),(0,i.jsx)(c,{type:"warning",children:"Requires additional logic to handle default state"})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"switch",children:"Switch"}),(0,i.jsx)("div",{children:(0,i.jsx)(a.gN,{as:t.rAg,id:"switch",name:"switch"})}),(0,i.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,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"select",children:"Select"}),(0,i.jsx)("div",{children:(0,i.jsx)(a.gN,{as:t.WPr,allowClear:!0,id:"select",name:"select",className:"w-full",status:"error",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,i.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,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"multiselect",children:"Multiselect"}),(0,i.jsx)("div",{children:(0,i.jsx)(a.gN,{as:t.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,i.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,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"multiselect",children:"Tags"}),(0,i.jsx)("div",{children:(0,i.jsx)(a.gN,{as:t.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,i.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,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"date",children:"Date"}),(0,i.jsx)("div",{children:(0,i.jsx)(a.gN,{as:t.cv2,id:"date",name:"date",status:"error"})}),(0,i.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,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"number",children:"Number"}),(0,i.jsx)("div",{children:(0,i.jsx)(a.gN,{as:t.W7D,id:"number",name:"number",status:"error"})}),(0,i.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,i.jsxs)(t.JGx,{span:8,offset:4,children:[(0,i.jsx)(d,{level:4,children:"Controlled Values"}),(0,i.jsx)(t.V4A,{style:{backgroundColor:s().FIDESUI_MINOS,color:s().FIDESUI_CORINTH},children:(0,i.jsx)("pre",{children:(0,i.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 i=n(24246),t=n(20595),r=n(33396),s=n(35716),a=n(15957),o=n(82252),c=n(12921);let{Content:d}=t.AntLayout,{Title:h}=t.AntTypography,u=[{key:"1",label:"Formik + Controlled",children:(0,i.jsx)(a.FormikControlledPOC,{})},{key:"2",label:"Formik + Field",children:(0,i.jsx)(o.FormikFieldPOC,{})},{key:"3",label:"Formik + {...field}",children:(0,i.jsx)(c.FormikSpreadFieldPOC,{})},{key:"4",label:"Formik + Ant's Form.Item",children:(0,i.jsx)(s.FormikAntFormItemPOC,{})},{key:"5",label:"Ant Form",children:(0,i.jsx)(r.AntFormPOC,{})}],x=()=>(0,i.jsxs)(d,{className:"overflow-auto px-10 py-6",children:[(0,i.jsx)(t.bue,{children:(0,i.jsx)(h,{children:"Forms POC"})}),(0,i.jsx)(t.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()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-27ff988967e9153d.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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(20595),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(20595);let l={approved:{color:"success",label:"Approved"},complete:{color:"success",label:"Completed"},awaiting_email_send:{color:"marble",label:"Awaiting Email Send"},denied:{color:"warning",label:"Denied"},canceled:{color:"marble",label:"Canceled"},error:{color:"error",label:"Error"},in_processing:{color:"caution",label:"In Progress"},paused:{color:"marble",label:"Paused"},pending:{color:"info",label:"New"},identity_unverified:{color:"marble",label:"Unverified"},requires_input:{color:"minos",label:"Requires Input"},requires_manual_finalization:{color:"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(20595),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:"error",skipped:"warning",awaiting_processing:"minos",in_processing:void 0,pending:void 0,complete:void 0,paused:void 0,retrying:void 0,polling:"warning"};(s=a||(a={})).REQUEST_UPDATE="Request update",s.INTERNAL_COMMENT="Internal comment",s.MANUAL_TASK="Manual task";let y={"Request update":"sandstone","Internal comment":"marble","Manual task":"nectar"};var f=i(90005),_=i.n(f),b=i(16394),T=i(38450),w=i.n(T);let E=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 A=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)(E,{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),k=i(78780);let{useGetCommentsQuery:q,useCreateCommentMutation:S,useGetCommentDetailsQuery:N,useLazyGetCommentDetailsQuery:P}=k.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}=q({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),U=e=>D(e,l.SKIPPED),L=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=U(i),l=L(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 Z=e=>{let{plus:t}=(0,R.hz)(),{data:i,isLoading:n,error:s}=(0,F.Ym)({page:1,size:100,privacyRequestId:e,status:void 0,includeFullSubmissionDetails:!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 G=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)(G.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:E,isLoading:R}=W(f),{manualTaskItems:C,taskCommentIds:k,isLoading:q}=Z(_);(0,h.useEffect)(()=>{u&&f&&f[u]&&d(f[u])},[f,u]);let S=()=>{x(!1)},N=(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!k.has(t)}),[b,k]),D=(0,h.useMemo)(()=>{let e=E.map(e=>{if("Request update"===e.type&&e.title&&f){let t=e.title;if(f[t])return{...e,onClick:()=>N(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())},[E,I,C,f,N,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||q?(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)(A,{item:e})},e.id))})}),(0,r.jsx)(ee,{isOpen:i,onClose:()=>{p&&S(),m(""),s()},currentLogs:c,allEventLogs:P,isViewingError:p,errorMessage:g,currentStatus:j,onOpenErrorPanel:(e,t)=>{v(e),t&&y(t),x(!0)},onCloseErrorPanel:S,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}]=S();(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:E,uploadMutation:A,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)}},k=async e=>{try{g(!0),await A(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)(E,{connectorName:e.connection_config.name,data:c.find(t=>t.connection_key===e.connection_config.key),isSubmitting:p,onSaveClick:k}):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,privacyRequestId: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:eE,useUploadAttachmentMutation:eA,useGetAttachmentDetailsQuery:eR,useLazyGetAttachmentDetailsQuery:eC}=k.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:ek}=(0,C.oM)({name:"privacyRequestAttachments",initialState:{},reducers:{}}),eq=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"})]})},eS=(e,t)=>(0,r.jsx)(eq,{file:t});var eN=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]=eA(),{data:c,isLoading:d,error:u}=(0,ec.PW)(),{data:m,isLoading:p}=eE({privacy_request_id:t.id}),{refetch:v}=eE({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:eS,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)(G.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)(eN,{subjectRequest:n})]})};let eU=[x.q2.COMPLETE,x.q2.CANCELED,x.q2.DENIED,x.q2.ERROR];var eL=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:eU.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}},eZ=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}},eG=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}=eZ({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:_}=eG({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)(eL,{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 +0,0 @@
|
|
|
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(20595),o=l(65218),u=l.n(o),d=l(27378),c=l(25980),h=l(19904),p=l(84764),m=l(59003),f=l(92222),_=l(86677),b=l(40431),y=l(16125),v=l(14048),g=l(47935),j=l(90867),x=l(16394),E=l(71784),S=l(65735);let w={approved:{colorScheme:"success",label:"Approved"},complete:{label:"Completed",colorScheme:"success"},awaiting_email_send:{label:"Awaiting Email Send",colorScheme:"marble"},denied:{label:"Denied",colorScheme:"warning"},canceled:{label:"Canceled",colorScheme:"marble"},error:{label:"Error",colorScheme:"error"},in_processing:{label:"In Progress",colorScheme:"caution"},paused:{label:"Paused",colorScheme:"marble"},pending:{label:"New",colorScheme:"info"},identity_unverified:{label:"Unverified",colorScheme:"marble"},requires_input:{colorScheme:"minos",label:"Requires Input"},requires_manual_finalization:{colorScheme:"minos",label:"Requires Finalization"}},R=e=>{let{value:t}=e;return(0,s.jsx)(g.A4,{color:w[t].colorScheme,value:w[t].label,"data-testid":"request-status-badge"})},C=e=>{let t,{daysLeft:l,timeframe:r=45,status:a,includeText:n=!1}=e;if(null==l||a===S.q2.COMPLETE||a===S.q2.CANCELED||a===S.q2.DENIED||a===S.q2.IDENTITY_UNVERIFIED)return null;let i=100*l/r;return i<25?t="error":i>=75?t="success":i>=25&&(t="warning"),(0,s.jsx)(g.A4,{value:n?"".concat(l," days left"):l.toString(),color:t})},T=e=>Array.from(new Set(e.filter(e=>Object.values(S.Us).includes(e.action_type)).map(e=>e.action_type))),q=e=>{let{value:t}=e,l=T(t).map(e=>E.rE.get(e));return(0,s.jsx)(g.WP,{value:l,cellState:{isExpanded:!0}})};var P=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 A=(0,f.Cl)(),I=()=>[A.accessor(e=>e.status,{id:"status",cell:e=>{let{getValue:t}=e;return(0,s.jsx)(R,{value:t()})},header:e=>(0,s.jsx)(g.Rr,{value:"Status",...e}),size:120}),A.accessor(e=>e.days_left,{id:"due_date",cell:e=>{let{row:t,getValue:l}=e;return(0,s.jsx)(C,{daysLeft:l(),timeframe:t.original.policy.execution_timeframe,status:t.original.status})},header:e=>(0,s.jsx)(g.Rr,{value:"Days left",...e}),size:80}),A.accessor(e=>e.source,{id:"source",cell:e=>e.getValue()?(0,s.jsx)(g.A4,{value:e.getValue()}):(0,s.jsx)(g.G3,{value:void 0}),header:e=>(0,s.jsx)(g.Rr,{value:"Source",...e}),enableSorting:!1}),A.accessor(e=>e.policy.rules,{id:"request_type",cell:e=>{let{getValue:t}=e;return(0,s.jsx)(q,{value:t()})},header:e=>(0,s.jsx)(g.Rr,{value:"Request type",...e}),enableSorting:!1,size:100}),A.accessor(e=>{var t,l;return(null===(t=e.identity)||void 0===t?void 0:t.email.value)||(null===(l=e.identity)||void 0===l?void 0:l.phone_number.value)||""},{id:"subject_identity",cell:e=>{let{getValue:t}=e;return(0,s.jsx)(g.G3,{value:t()})},header:e=>(0,s.jsx)(g.Rr,{value:"Subject identity",...e}),enableSorting:!1}),A.accessor(e=>e.created_at,{id:"created_at",cell:e=>{let{getValue:t}=e;return(0,s.jsx)(g.G3,{value:(0,x.p6)(t())})},header:e=>(0,s.jsx)(g.Rr,{value:"Time received",...e}),size:120}),A.accessor(e=>{var t;return(null===(t=e.reviewer)||void 0===t?void 0:t.username)||""},{id:"reviewer",cell:e=>{let{getValue:t}=e;return(0,s.jsx)(g.G3,{value:t()})},header:e=>(0,s.jsx)(g.Rr,{value:"Reviewed by",...e}),enableSorting:!1}),A.accessor(e=>e.id,{id:"id",cell:e=>{let{getValue:t}=e;return(0,s.jsx)(g.G3,{value:t()})},header:e=>(0,s.jsx)(g.Rr,{value:"Request ID",...e}),enableSorting:!1}),A.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)(g.G3,{value:a})},header:e=>(0,s.jsx)(g.Rr,{value:"Location",...e}),enableSorting:!1}),A.display({id:"actions",cell:e=>{let{row:t}=e;return(0,s.jsx)(P.q,{subjectRequest:t.original})},header:e=>(0,s.jsx)(g.Rr,{value:"Actions",...e}),meta:{disableRowClick:!0}})];var O=l(36942),k=l(9270),D=l(49529);let M=e=>{let{...t}=e,[l,r]=(0,b.v1)("search",b.Oi.withDefault("").withOptions({throttleMs:100})),a=(0,y.v9)(j.dp),n=(0,i.pmc)(),o=(0,_.useRouter)(),u=(0,y.I0)(),c=(0,k.S)(),{pageIndex:h,pageSize:p,resetPagination:x}=c,{isOpen:E,onOpen:S,onClose:w}=(0,i.qY0)(),{data:R,isLoading:C,isFetching:T}=(0,j.QA)({...a,page:h,size:p,fuzzy_search_str:l}),{items:q,total:P}=(0,d.useMemo)(()=>R||{items:[],total:0,pages:0},[R]),{downloadReport:A}=(0,D.Z)(),M=(0,d.useCallback)(e=>{r(null!=e?e:""),x()},[x,r]),N=async()=>{let e;try{await A(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))},L=(0,m.b7)({getCoreRowModel:(0,f.sC)(),data:q,columns:(0,d.useMemo)(()=>I(),[]),getRowId:e=>"".concat(e.status,"-").concat(e.id),manualPagination:!0,columnResizeMode:"onChange"});return(0,s.jsxs)(i.xuv,{...t,children:[(0,s.jsxs)(g.Q$,{children:[(0,s.jsx)(g.HO,{globalFilter:l,setGlobalFilter:M,placeholder:"Search by request ID or identity value"}),(0,s.jsxs)(i.Ugi,{alignItems:"center",spacing:2,children:[(0,s.jsx)(i.wpx,{"data-testid":"filter-btn",onClick:S,children:"Filter"}),(0,s.jsx)(i.wpx,{"aria-label":"Export report","data-testid":"export-btn",icon:(0,s.jsx)(v.nM,{ml:"1.5px"}),onClick:N})]}),(0,s.jsx)(i.h_i,{children:(0,s.jsx)(O.S,{isOpen:E,onClose:w,onFilterChange:x})})]}),C?(0,s.jsx)(i.xuv,{p:2,borderWidth:1,children:(0,s.jsx)(g.I4,{rowHeight:26,numRows:10})}):(0,s.jsxs)(i.jqI,{vertical:!0,gap:"middle",children:[(0,s.jsx)(g.ZK,{tableInstance:L,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!=P?P:0,align:"end"})]})]})};var N=l(86291),G=l(58754),L=l(88152),U=l(72281);let z=u()(()=>l.e(9676).then(l.bind(l,59676)),{loadableGenerated:{webpack:()=>[59676]},loading:()=>(0,s.jsx)("div",{children:"Loading..."})});var F=()=>{let{processing:e}=(0,L.Y)(),{plus:t}=(0,c.hz)(),{activeTab:l,handleTabChange:r,availableTabs:a}=(0,U.d)();(0,d.useEffect)(()=>{e()},[e]);let n=(0,d.useMemo)(()=>{let e=[];return a.request&&e.push({key:U.G.REQUEST,label:"Request",children:(0,s.jsx)(M,{})}),a.manualTask&&e.push({key:U.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)(G.Z,{heading:"Privacy Requests",breadcrumbItems:[{title:"All requests"}],rightContent:(0,s.jsxs)(i.vyj,{children:[t&&(0,s.jsx)(h.ZP,{scopes:[S.Sh.PRIVACY_REQUEST_CREATE],children:(0,s.jsx)(N.Z,{})}),(0,s.jsx)(z,{})]}),"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)(F,{})})},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,6468,2888,9774,179],function(){return e(e.s=1565)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9196],{6446:function(e){e.exports=function(e,t,a,s){var r=-1,i=null==e?0:e.length;for(s&&i&&(a=e[++r]);++r<i;)a=t(a,e[r],r,e);return a}},67375:function(e,t,a){var s=a(52033),r=a(80068);e.exports=function(e,t){var a=-1,i=r(e)?Array(e.length):[];return s(e,function(e,s,r){i[++a]=t(e,s,r)}),i}},74833:function(e,t,a){var s=a(56127),r=/^\s+/;e.exports=function(e){return e?e.slice(0,s(e)+1).replace(r,""):e}},56632:function(e,t,a){var s=a(89278),r=a(80068),i=a(50098);e.exports=function(e){return function(t,a,l){var n=Object(t);if(!r(t)){var o=s(a,3);t=i(t),a=function(e){return o(n[e],e,n)}}var c=e(t,a,l);return c>-1?n[o?t[c]:c]:void 0}}},56127:function(e){var t=/\s/;e.exports=function(e){for(var a=e.length;a--&&t.test(e.charAt(a)););return a}},64925:function(e,t,a){var s=a(56632)(a(66259));e.exports=s},66259:function(e,t,a){var s=a(95372),r=a(89278),i=a(47991),l=Math.max;e.exports=function(e,t,a){var n=null==e?0:e.length;if(!n)return -1;var o=null==a?0:i(a);return o<0&&(o=l(n+o,0)),s(e,r(t,3),o)}},55807:function(e,t,a){var s=a(66070),r=a(89278),i=a(67375),l=a(19785);e.exports=function(e,t){return(l(e)?s:i)(e,r(t,3))}},82846:function(e,t,a){var s=a(77400);e.exports=function(){return s.Date.now()}},32526:function(e,t,a){var s=a(68267)(function(e,t,a){return e+(a?"_":"")+t.toLowerCase()});e.exports=s},94919:function(e,t,a){var s=a(91936),r=1/0;e.exports=function(e){return e?(e=s(e))===r||e===-r?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,a){var s=a(94919);e.exports=function(e){var t=s(e),a=t%1;return t==t?a?t-a:t:0}},91936:function(e,t,a){var s=a(74833),r=a(11611),i=a(55193),l=0/0,n=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return l;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=s(e);var a=o.test(e);return a||c.test(e)?d(e.slice(2),a?2:8):n.test(e)?l:+e}},86548:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/reporting/datamap",function(){return a(27901)}])},624:function(e,t,a){"use strict";var s=a(24246),r=a(20595),i=a(27378);let l=e=>{let t=e.split("."),a=[];return t.forEach(e=>{let t=a.length>0?a[a.length-1]:null;t?a.push("".concat(t,".").concat(e)):a.push(e)}),a},n=(e,t)=>{let a=l(t).filter(e=>e!==t);return e.filter(e=>a.includes(e)).length>0},o=(e,t)=>!!(e===t||e.startsWith("".concat(t,"."))),c=(e,t,a)=>{let s=null!=a?a:[];return e.forEach(e=>{e.children&&c(e.children,t,s),o(e.value,t)&&s.push(e)}),s},d=e=>{let{node:t,isChecked:a,onChecked:i,isExpanded:l,onExpanded:n,isIndeterminate:o,isDisabled:c,children:d}=e,{value:u,label:_}=t,p=!!t.children&&t.children.length>0;return(0,s.jsxs)(r.xuv,{children:[(0,s.jsxs)(r.xuv,{display:"flex",justifyContent:"space-between",_hover:{backgroundColor:"gray.100",cursor:"pointer"},onClick:()=>n(t),minHeight:8,children:[(0,s.jsx)(r.XZJ,{colorScheme:"complimentary",value:u,isChecked:!o&&a,isIndeterminate:o,isDisabled:c,onChange:()=>i(t),mx:2,"data-testid":"checkbox-".concat(_),children:_}),p?(0,s.jsx)(r.wpx,{"data-testid":"expand-".concat(_),"aria-label":l?"collapse":"expand",icon:(0,s.jsx)(r.v4q,{boxSize:5}),type:"text",onClick:()=>n(t),className:l?"rotate-180":void 0}):null]}),d&&(0,s.jsx)(r.xuv,{ml:5,children:d})]})};t.ZP=e=>{let{nodes:t,selected:a,onSelected:u,..._}=e,[p,m]=(0,i.useState)([]),[E,S]=(0,i.useState)([]);(0,i.useEffect)(()=>{let e=Array.from(new Set([...a.map(e=>l(e)).reduce((e,t)=>e.concat(t),[]),...a.map(e=>c(t,e)).reduce((e,t)=>e.concat(t),[]).map(e=>e.value)]));S(e),m(e)},[a,t]);let g=e=>{let s=[],r=[];p.indexOf(e.value)>=0?(s=p.filter(t=>!o(t,e.value)),r=a.filter(t=>!o(t,e.value))):(s=[...p,...c(t,e.value).map(e=>e.value)],r=[...a,e.value]),m(s),u(r)},f=e=>{E.indexOf(e.value)>=0?S(E.filter(t=>!o(t,e.value))):S([...E,e.value])},h=e=>{if(e.children){let r=p.indexOf(e.value)>=0,l=E.indexOf(e.value)>=0,o=c(t,e.value),u=r&&e.children.length>0&&p.filter(t=>t.startsWith("".concat(e.value,"."))).length+1!==o.length,_=n(a,e.value);return(0,s.jsx)(d,{node:e,isChecked:r,onChecked:g,isExpanded:l,onExpanded:f,isDisabled:_,isIndeterminate:u,children:l?e.children.map(e=>(0,s.jsx)(i.Fragment,{children:h(e)},e.value)):void 0})}return null};return(0,s.jsx)(r.xuv,{..._,children:t.map(e=>(0,s.jsx)(r.xuv,{children:h(e)},e.value))})}},35287:function(e,t,a){"use strict";var s=a(24246),r=a(20595),i=a(88038),l=a.n(i);a(27378),t.Z=e=>{let{children:t,title:a,mainProps:i}=e;return(0,s.jsxs)(r.kCb,{"data-testid":a,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,s.jsxs)(l(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",a]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsx)(r.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...i,children:t})]})}},19904:function(e,t,a){"use strict";a.d(t,{Tg:function(){return l}});var s=a(24246),r=a(16134),i=a(31793);let l=e=>(0,r.C)(i.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:a}=e;return l(t)?(0,s.jsx)(s.Fragment,{children:a}):null}},34929:function(e,t,a){"use strict";var s=a(24246),r=a(64925),i=a.n(r),l=a(27378),n=a(16134),o=a(30002),c=a(28079),d=a(57072);let u=()=>{let{isLoading:e}=(0,c.fd)(),t=(0,n.C)(c.U3),{isLoading:a}=(0,d.MO)(),s=(0,n.C)(d.qb),{isLoading:r}=(0,o.te)();return{dataUses:t,dataSubjects:(0,n.C)(o.ZL),dataCategories:s,isLoading:e||a||r}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:a,isLoading:r}=u(),n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},o=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=t(e);if(!s)return{};let r=t(n(e,a)),i=!!s.parent_key;return{name:s.name||void 0,primaryName:i&&(null==r?void 0:r.name)!==s.name&&(null==r?void 0:r.name)||void 0}},c=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:r,primaryName:i}=o(e,t,a);return r?i?(0,s.jsxs)(l.Fragment,{children:[(0,s.jsxs)("strong",{children:[i,":"]})," ",r]},e):(0,s.jsx)("strong",{children:r},e):e},d=t=>i()(e,{fides_key:t}),_=e=>i()(t,{fides_key:e}),p=e=>i()(a,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:d,getDataUseDisplayName:e=>c(e,d,1),getDataUseDisplayNameProps:e=>o(e,d,1),getDataCategories:()=>t,getDataCategoryByKey:_,getDataCategoryDisplayName:e=>c(e,_,2),getDataCategoryDisplayNameProps:e=>o(e,_,2),getDataSubjects:()=>a,getDataSubjectByKey:p,getDataSubjectDisplayName:e=>{let t=p(e);return t?t.name:e},getPrimaryKey:n,isLoading:r}}},2525:function(e,t,a){"use strict";a.d(t,{Q:function(){return n}});var s=a(24246),r=a(20595),i=a(27378),l=a(3110);let n=e=>{let{values:t,columnState:a,tagProps:n,onTagClose:o,onStateChange:c,...d}=e,{isExpanded:u,isWrapped:_,version:p}=a||{},[m,E]=(0,i.useState)(!u),[S,g]=(0,i.useState)(!!_),[f,h]=(0,i.useState)(u?t:null==t?void 0:t.slice(0,2));(0,i.useEffect)(()=>{E(!u)},[u,p]),(0,i.useEffect)(()=>{g(!!_)},[_]),(0,i.useEffect)(()=>{(null==t?void 0:t.length)?h(m?t.slice(0,2):t):h(t)},[m,t,c]),(0,i.useEffect)(()=>{(null==t?void 0:t.length)&&t.length<=2&&!m&&(E(!0),null==c||c(!1))},[t,c,m]);let A=(0,i.useCallback)(()=>{h(null==t?void 0:t.slice(0,2)),E(!0),null==c||c(!1)},[t,c]),T=(0,i.useCallback)(()=>{E(!1),null==c||c(!0)},[c]),x=(0,i.useCallback)(()=>{m?T():A()},[m,T,A]);return(0,i.useMemo)(()=>(null==f?void 0:f.length)?(0,s.jsxs)(r.jqI,{align:m?"center":"start",wrap:S?"wrap":"nowrap",vertical:!m,gap:"small","data-testid":"tag-expandable-cell",style:{overflowX:"auto",...d.style},...d,children:[f.map(e=>(0,s.jsx)(r.j8w,{color:"white","data-testid":e.key,onClose:o?()=>o(e.key):void 0,...n,...e.tagProps,children:(0,s.jsx)(r.lKn,{ellipsis:!!m&&{tooltip:!0},style:{color:"inherit",maxWidth:m?l.TD:void 0},children:e.label})},e.key)),t&&t.length>2&&(0,s.jsx)(r.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),x()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:m?"+".concat(t.length-2," more"):l.T5})]}):(0,s.jsx)("span",{"data-testid":"tag-expandable-cell-empty"}),[f,m,S,d,t,n,o,x])}},3110:function(e,t,a){"use strict";a.d(t,{DI:function(){return n},T5:function(){return i},TD:function(){return l}});var s=a(24246),r=a(20595);let i="show less",l=150,n=[{key:"expand-all",label:"Expand all",icon:(0,s.jsx)(r.PJP.jbG,{})},{key:"collapse-all",label:"Collapse all",icon:(0,s.jsx)(r.PJP.MVB,{})}]},26070:function(e,t,a){"use strict";a.d(t,{v:function(){return o},Q:function(){return c.Q}});var s=a(24246),r=a(20595),i=a(27378),l=a(3110);let{Text:n}=r.AntTypography,o=e=>{let{values:t,valueSuffix:a,columnState:o}=e,{isExpanded:c,version:d}=o||{},[u,_]=(0,i.useState)(!c);(0,i.useEffect)(()=>{_(!c)},[c,d]);let p=(0,i.useCallback)(()=>{_(!0)},[]),m=(0,i.useCallback)(()=>{_(!1)},[]),E=(0,i.useCallback)(()=>{u?m():p()},[u,m,p]);return(0,i.useMemo)(()=>(null==t?void 0:t.length)?1===t.length?(0,s.jsx)(n,{ellipsis:!0,"data-testid":"list-expandable-cell-single",children:t[0]}):(0,s.jsxs)(r.jqI,{align:u?"center":"flex-start",vertical:!u,gap:u?"small":"none","data-testid":"list-expandable-cell",children:[u?(0,s.jsxs)(n,{ellipsis:!0,children:[t.length," ",a]}):(0,s.jsx)(r.krs,{dataSource:t,renderItem:e=>(0,s.jsx)("li",{children:e})}),(0,s.jsx)(r.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),E()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:u?"view":l.T5})]}):null,[u,t,a,E])};var c=a(2525)},22583:function(e,t,a){"use strict";a.d(t,{j:function(){return r}});var s=a(65735);let r={[s.Ej.TAXONOMY_WHITE]:"default",[s.Ej.TAXONOMY_RED]:"error",[s.Ej.TAXONOMY_ORANGE]:"warning",[s.Ej.TAXONOMY_YELLOW]:"caution",[s.Ej.TAXONOMY_GREEN]:"success",[s.Ej.TAXONOMY_BLUE]:"info",[s.Ej.TAXONOMY_PURPLE]:"alert",[s.Ej.SANDSTONE]:"sandstone",[s.Ej.MINOS]:"minos"}},59001:function(e,t,a){"use strict";a.d(t,{Ch:function(){return o},Lo:function(){return l},_g:function(){return c},ac:function(){return i},aq:function(){return d}});var s,r,i,l,n=a(65735);let o="root";(s=i||(i={})).DATA_CATEGORY="data_category",s.DATA_USE="data_use",s.DATA_SUBJECT="data_subject",s.SYSTEM_GROUP="system_group",(r=l||(l={})).DATA_CATEGORIES="Data categories",r.DATA_USES="Data uses",r.DATA_SUBJECTS="Data subjects",r.SYSTEM_GROUPS="System groups";let c=e=>{switch(e){case"data_category":return"Data categories";case"data_use":return"Data uses";case"data_subject":return"Data subjects";case"system_group":return"System groups";default:return e}},d=e=>{switch(e){case"data_category":return{UPDATE:n.Sh.DATA_CATEGORY_UPDATE,CREATE:n.Sh.DATA_CATEGORY_CREATE,DELETE:n.Sh.DATA_CATEGORY_DELETE,READ:n.Sh.DATA_CATEGORY_READ};case"data_use":return{UPDATE:n.Sh.DATA_USE_UPDATE,CREATE:n.Sh.DATA_USE_CREATE,DELETE:n.Sh.DATA_USE_DELETE,READ:n.Sh.DATA_USE_READ};case"data_subject":return{UPDATE:n.Sh.DATA_SUBJECT_UPDATE,CREATE:n.Sh.DATA_SUBJECT_CREATE,DELETE:n.Sh.DATA_SUBJECT_DELETE,READ:n.Sh.DATA_SUBJECT_READ};case"system_group":return{UPDATE:n.Sh.SYSTEM_GROUP_UPDATE,CREATE:n.Sh.SYSTEM_GROUP_CREATE,DELETE:n.Sh.SYSTEM_GROUP_DELETE,READ:n.Sh.SYSTEM_GROUP_READ};default:return{UPDATE:n.Sh.TAXONOMY_UPDATE,CREATE:n.Sh.TAXONOMY_CREATE,DELETE:n.Sh.TAXONOMY_DELETE,READ:n.Sh.TAXONOMY_READ}}}},90673:function(e,t,a){"use strict";a.d(t,{Cd:function(){return i},Xl:function(){return l}});var s=a(65735),r=a(59001);let i=(e,t)=>{let a;if(null==t&&e.every(e=>void 0===e.parent_key))a=e;else{let s=null!=t?t:null;a=e.filter(e=>e.parent_key===s)}return a.map(t=>{var a,s;let r=t.fides_key;return{value:t.fides_key,label:""===t.name||null==t.name?t.fides_key:t.name,description:t.description,children:i(e,r),is_default:null!==(a=t.is_default)&&void 0!==a&&a,active:null!==(s=t.active)&&void 0!==s&&s}})},l=e=>{switch(e){case r.ac.DATA_CATEGORY:return s.P6.DATA_CATEGORY;case r.ac.DATA_SUBJECT:return s.P6.DATA_SUBJECT;case r.ac.DATA_USE:return s.P6.DATA_USE;default:return}}},27901:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return eC}});var s,r,i,l,n=a(24246),o=a(27378),c=a(35287),d=a(58754),u=a(71795),_=a(65735);(s=i||(i={})).COLUMN_EXPANSION_STATE="datamap-column-expansion-state",s.COLUMN_NAMES="datamap-column-names",s.COLUMN_ORDER="datamap-column-order",s.COLUMN_SIZING="datamap-column-sizing",s.COLUMN_VISIBILITY="datamap-column-visibility",s.CUSTOM_REPORT_ID="datamap-custom-report-id",s.FILTERS="datamap-filters",s.GROUP_BY="datamap-group-by",s.SORTING_STATE="datamap-sorting-state",s.WRAPPING_COLUMNS="datamap-wrapping-columns",(r=l||(l={})).SYSTEM_NAME="system_name",r.DATA_USE="data_uses",r.DATA_CATEGORY="data_categories",r.DATA_SUBJECT="data_subjects",r.LEGAL_NAME="legal_name",r.DPO="dpo",r.LEGAL_BASIS_FOR_PROCESSING="legal_basis_for_processing",r.ADMINISTRATING_DEPARTMENT="administrating_department",r.COOKIE_MAX_AGE_SECONDS="cookie_max_age_seconds",r.PRIVACY_POLICY="privacy_policy",r.LEGAL_ADDRESS="legal_address",r.COOKIE_REFRESH="cookie_refresh",r.DATA_SECURITY_PRACTICES="data_security_practices",r.DATA_SHARED_WITH_THIRD_PARTIES="data_shared_with_third_parties",r.DATA_STEWARDS="data_stewards",r.DECLARATION_NAME="declaration_name",r.DOES_INTERNATIONAL_TRANSFERS="does_international_transfers",r.DPA_LOCATION="dpa_location",r.DESTINATIONS="egress",r.EXEMPT_FROM_PRIVACY_REGULATIONS="exempt_from_privacy_regulations",r.FEATURES="features",r.FIDES_KEY="fides_key",r.FLEXIBLE_LEGAL_BASIS_FOR_PROCESSING="flexible_legal_basis_for_processing",r.IMPACT_ASSESSMENT_LOCATION="impact_assessment_location",r.SOURCES="ingress",r.JOINT_CONTROLLER_INFO="joint_controller_info",r.LEGAL_BASIS_FOR_PROFILING="legal_basis_for_profiling",r.LEGAL_BASIS_FOR_TRANSFERS="legal_basis_for_transfers",r.LEGITIMATE_INTEREST_DISCLOSURE_URL="legitimate_interest_disclosure_url",r.PROCESSES_PERSONAL_DATA="processes_personal_data",r.REASON_FOR_EXEMPTION="reason_for_exemption",r.REQUIRES_DATA_PROTECTION_ASSESSMENTS="requires_data_protection_assessments",r.RESPONSIBILITY="responsibility",r.RETENTION_PERIOD="retention_period",r.SHARED_CATEGORIES="shared_categories",r.SPECIAL_CATEGORY_LEGAL_BASIS="special_category_legal_basis",r.THIRD_PARTIES="third_parties",r.COOKIES="cookies",r.USES_COOKIES="uses_cookies",r.USES_NON_COOKIE_ACCESS="uses_non_cookie_access",r.USES_PROFILING="uses_profiling",r.SYSTEM_UNDECLARED_DATA_CATEGORIES="system_undeclared_data_categories",r.DATA_USE_UNDECLARED_DATA_CATEGORIES="data_use_undeclared_data_categories",r.PROCESSES_SPECIAL_CATEGORY_DATA="processes_special_category_data",r.SYSTEM_GROUPS="system_groups",r.SYSTEM_GROUP="system_group_fides_key",r.SYSTEM_GROUP_DATA_USES="system_group_data_uses";let p={system_name:"System",data_uses:"Data use",data_categories:"Data categories",data_subjects:"Data subject",legal_name:"Legal name",dpo:"Data privacy officer",legal_basis_for_processing:"Legal basis for processing",administrating_department:"Administrating department",cookie_max_age_seconds:"Cookie max age seconds",privacy_policy:"Privacy policy",legal_address:"Legal address",cookie_refresh:"Cookie refresh",data_security_practices:"Data security practices",data_shared_with_third_parties:"Data shared with third parties",data_stewards:"Data stewards",declaration_name:"Declaration name",does_international_transfers:"Does international transfers",dpa_location:"DPA location",egress:"Destination",exempt_from_privacy_regulations:"Exempt from privacy regulations",features:"Features",fides_key:"Fides key",flexible_legal_basis_for_processing:"Flexible legal basis for processing",impact_assessment_location:"Impact assessment location",ingress:"Source",joint_controller_info:"Joint controller info",legal_basis_for_profiling:"Legal basis for profiling",legal_basis_for_transfers:"Legal basis for transfers",legitimate_interest_disclosure_url:"Legitimate interest disclosure URL",processes_personal_data:"Processes personal data",reason_for_exemption:"Reason for exemption",requires_data_protection_assessments:"Requires data protection assessments",responsibility:"Responsibility",retention_period:"Retention period",shared_categories:"Shared categories",special_category_legal_basis:"Special category legal basis",third_parties:"Third parties",system_undeclared_data_categories:"System undeclared data categories",data_use_undeclared_data_categories:"Data use undeclared data categories",cookies:"Cookies",uses_cookies:"Uses cookies",uses_non_cookie_access:"Uses non-cookie access",uses_profiling:"Uses profiling",processes_special_category_data:"Processes special category data",system_groups:"System groups",system_group_fides_key:"System group",system_group_data_uses:"Data uses"},m={[l.SYSTEM_UNDECLARED_DATA_CATEGORIES]:!1,[l.DATA_USE_UNDECLARED_DATA_CATEGORIES]:!1},E={dataUses:[],dataSubjects:[],dataCategories:[]},S=(0,o.createContext)({}),g=e=>{let{children:t}=e,[a,s]=(0,u._)(i.CUSTOM_REPORT_ID,""),[r,l]=(0,u._)(i.GROUP_BY,_.fI.SYSTEM_DATA_USE),[c,d]=(0,u._)(i.FILTERS,E),[p,g]=(0,u._)(i.COLUMN_ORDER,[]),[f,h]=(0,u._)(i.COLUMN_VISIBILITY,m),[A,T]=(0,u._)(i.COLUMN_SIZING,{}),[x,C]=(0,u._)(i.COLUMN_NAMES,{}),v=(0,o.useMemo)(()=>({savedCustomReportId:a,setSavedCustomReportId:s,groupBy:r,setGroupBy:l,selectedFilters:c,setSelectedFilters:d,columnOrder:p,setColumnOrder:g,columnVisibility:f,setColumnVisibility:h,columnSizing:A,setColumnSizing:T,columnNameMapOverrides:x,setColumnNameMapOverrides:C}),[a,s,r,l,c,d,p,g,f,h,A,T,x,C]);return(0,n.jsx)(S.Provider,{value:v,children:t})},f=()=>{let e=(0,o.useContext)(S);if(!e||0===Object.keys(e).length)throw Error("useDatamapReport must be used within a DatamapReportProvider");return e};var h=a(59003),A=a(92222),T=a(47935),x=a(20595),C=a(34090),v=a(66726),O=a.n(v),R=a(16134),y=a(34929),j=a(14048),b=a(19904),D=a(16394),I=a(38943),P=a(35258),N=e=>{let{children:t,heading:a,onCancel:s,onConfirm:r,isLoading:i,cancelButtonText:l,continueButtonText:o,"data-testid":c="standard-dialog",...d}=e,{onClose:u}=d;return(0,n.jsxs)(x.u_l,{closeOnOverlayClick:i,...d,children:[(0,n.jsx)(x.ZAr,{}),(0,n.jsxs)(x.hzk,{"data-testid":c,children:[a&&(0,n.jsx)(x.xBx,{children:a}),(0,n.jsx)(x.olH,{isDisabled:i,"data-testid":"standard-dialog-close-btn"}),t&&(0,n.jsx)(x.fef,{children:t}),(0,n.jsxs)(x.mzw,{gap:3,width:"100%",sx:{"& button":{width:"100%"}},children:[(0,n.jsx)(x.wpx,{onClick:()=>{s&&s(),u()},"data-testid":"".concat(c?"".concat(c,"-"):"","cancel-btn"),disabled:i,children:l||"Cancel"}),(0,n.jsx)(x.wpx,{onClick:r,type:"primary","data-testid":"".concat(c?"".concat(c,"-"):"","continue-btn"),loading:i,children:o||"Continue"})]})]})]})},M=a(22968),w=e=>{let[t,a]=(0,o.useState)(M.T2.csv),{onConfirm:s}=e;return(0,n.jsx)(N,{heading:"Export report",continueButtonText:"Download",size:"xl",...e,onConfirm:()=>s(t),"data-testid":"export-modal",children:(0,n.jsxs)(x.kCb,{direction:"column",gap:3,pb:3,children:[(0,n.jsx)(x.xvT,{textAlign:"left",children:"Export your data map report using the options below. Depending on the number of rows, the file may take a few minutes to process."}),(0,n.jsxs)(x.NIc,{children:[(0,n.jsx)(x.lXp,{htmlFor:"format",children:"Choose Format"}),(0,n.jsx)(x.WPr,{id:"format",value:t,onChange:a,"data-testid":"export-format-select",options:[{value:M.T2.csv,label:"CSV"},{value:M.T2.xlsx,label:"XLSX"}],className:"w-full"})]})]})})},U=a(624),L=a(30002),k=a(28079),G=a(5785),Y=a(90673);let F=e=>{let{label:t,children:a,...s}=e;return(0,n.jsxs)(x.Qdk,{...s,children:[(0,n.jsx)(x.X6q,{children:(0,n.jsxs)(x.KFZ,{height:"100%","data-testid":"filter-modal-accordion-button",textAlign:"left",fontWeight:600,children:[(0,n.jsx)(x.xuv,{flex:1,children:t}),(0,n.jsx)(x.XEm,{boxSize:7})]})}),(0,n.jsx)(x.Hk3,{children:a})]})},H=e=>{let{columnNameMap:t,selectedFilters:a,onFilterChange:s,onClose:r,...i}=e;(0,k.fd)(),(0,L.te)(),(0,G.MO)();let{dataUses:l,dataSubjects:c,dataCategories:d}=a,u=(0,R.C)(k.U3),_=(0,R.C)(L.ZL),p=(0,R.C)(G.qb),[m,E]=(0,o.useState)(l),[S,g]=(0,o.useState)(c),[f,h]=(0,o.useState)(d);(0,o.useEffect)(()=>{E(l)},[l]),(0,o.useEffect)(()=>{g(c)},[c]),(0,o.useEffect)(()=>{h(d)},[d]);let A=(0,o.useMemo)(()=>(0,Y.Cd)(u),[u]),T=(0,o.useMemo)(()=>(0,Y.Cd)(_),[_]),C=(0,o.useMemo)(()=>(0,Y.Cd)(p),[p]);return(0,n.jsx)(N,{heading:"Filter Datamap Report",...i,onCancel:()=>{E([]),g([]),h([]),s({dataUses:[],dataSubjects:[],dataCategories:[]}),r()},onConfirm:()=>{s({dataUses:m,dataSubjects:S,dataCategories:f}),r()},onClose:r,cancelButtonText:"Reset filters",continueButtonText:"Done","data-testid":"datamap-report-filter-modal",children:(0,n.jsxs)(x.UQy,{allowToggle:!0,children:[(0,n.jsx)(F,{label:t.data_uses,children:(0,n.jsx)(U.ZP,{nodes:A,selected:m,onSelected:E,"data-testid":"filter-modal-checkbox-tree-uses"})}),(0,n.jsx)(F,{label:t.data_categories,children:(0,n.jsx)(U.ZP,{nodes:C,selected:f,onSelected:h,"data-testid":"filter-modal-checkbox-tree-categories"})}),(0,n.jsx)(F,{label:t.data_subjects,children:(0,n.jsx)(U.ZP,{nodes:T,selected:S,onSelected:g,"data-testid":"filter-modal-checkbox-tree-subjects"})})]})})};var V=a(32885),z=a(69353),B=a(812);let{useGetMinimalCustomReportsQuery:Z,useLazyGetCustomReportByIdQuery:q,usePostCustomReportMutation:W,useDeleteCustomReportMutation:X}=a(78780).u.injectEndpoints({endpoints:e=>({getMinimalCustomReports:e.query({query:e=>{let{pageIndex:t=1,pageSize:a=50,report_type:s=_.C2.DATAMAP}=e,r="page=".concat(t,"&size=").concat(a,"&report_type=").concat(s);return{url:"plus/custom-report/minimal?".concat(r)}},providesTags:["Custom Reports"]}),getCustomReportById:e.query({query:e=>({url:"plus/custom-report/".concat(e)}),providesTags:(e,t,a)=>[{type:"Custom Reports",id:a}]}),postCustomReport:e.mutation({query:e=>({method:"POST",url:"plus/custom-report",body:e}),invalidatesTags:["Custom Reports"]}),deleteCustomReport:e.mutation({query:e=>({method:"DELETE",url:"plus/custom-report/".concat(e)}),invalidatesTags:["Custom Reports"]})})});var J=a(55484),K=a(40324);let Q="Report name",$=e=>{let{isOpen:t,handleClose:a,tableStateToSave:s,columnMapToSave:r={},unavailableNames:i,onCreateCustomReport:l}=e,c=(0,x.pmc)(),[d]=W(),u=(0,o.useMemo)(()=>J.Ry().shape({reportName:J.Z_().label(Q).required("Please provide a name for this report").test("is-unique","",async(e,t)=>null==i||!i.includes(e)||t.createError({message:"This name already exists"})).max(80,"Report name is too long (max 80 characters)")}),[i]),p=async e=>{var t;let i={};Object.entries(r).forEach(e=>{let[t,a]=e;i[t]={label:a,enabled:!0}}),Object.entries(null!==(t=null==s?void 0:s.columnVisibility)&&void 0!==t?t:{}).forEach(e=>{let[t,a]=e;i[t]||(i[t]={}),i[t].enabled=a});try{let t={name:e.trim(),type:_.C2.DATAMAP,config:{column_map:i,table_state:s}},r=await d(t);if((0,B.D4)(r))throw r.error;l(r.data),a()}catch(e){c({status:"error",description:(0,B.e$)(e,"A problem occurred while creating the report.")})}};return(0,n.jsxs)(x.u_l,{size:"lg",isOpen:t,onClose:a,motionPreset:"none",children:[(0,n.jsx)(x.ZAr,{}),(0,n.jsxs)(x.hzk,{children:[(0,n.jsx)(x.xBx,{pb:0,children:"Create a report"}),(0,n.jsx)(C.J9,{initialValues:{reportName:""},onSubmit:e=>p(e.reportName),onReset:a,validateOnBlur:!1,validationSchema:u,children:e=>{let{dirty:t,isValid:a}=e;return(0,n.jsxs)(C.l0,{"data-testid":"custom-report-form",children:[(0,n.jsxs)(x.fef,{children:[(0,n.jsx)(x.xvT,{fontSize:"sm",color:"gray.600",pb:6,children:"Customize and save your current filter settings for easy access in the future. This saved report will include the column layout and currently applied filter settings."}),(0,n.jsx)(K.j0,{id:"reportName",name:"reportName",isRequired:!0,label:Q,placeholder:"Enter a name for the report...",variant:"stacked",maxLength:80})]}),(0,n.jsxs)(x.mzw,{gap:2,children:[(0,n.jsx)(x.wpx,{size:"small",htmlType:"reset",children:"Cancel"}),(0,n.jsx)(x.wpx,{size:"small",disabled:!t||!a,type:"primary","data-testid":"custom-report-form-submit",htmlType:"submit",children:"Save"})]})]})}})]})]})},ee="Report",et="Reports",ea=e=>{var t;let{reportType:a,savedReportId:s,tableStateToSave:r,currentColumnMap:i,onCustomReportSaved:l,onSavedReportDeleted:c}=e,d=(0,b.Tg)([_.Sh.CUSTOM_REPORT_CREATE]),u=(0,b.Tg)([_.Sh.CUSTOM_REPORT_DELETE]),p=(0,x.pmc)({id:"custom-report-toast"}),{data:m,isLoading:E}=Z({report_type:a}),[S,g]=(0,o.useState)(),[f]=q(),[h]=X(),{isOpen:A,onOpen:T,onClose:v}=(0,x.qY0)(),{isOpen:O,onOpen:R,onClose:y}=(0,x.qY0)(),{isOpen:j,onOpen:D,onClose:I}=(0,x.qY0)(),[P,N]=(0,o.useState)(),[M,w]=(0,o.useState)(),[U,L]=(0,o.useState)(),[k,G]=(0,o.useState)(!1),{resetForm:Y}=(0,C.u6)(),F=(0,o.useMemo)(()=>{var e;let t=null==m?void 0:null===(e=m.items.find(e=>e.id===s))||void 0===e?void 0:e.name;return null!=t?t:et},[null==m?void 0:m.items,s]),H=!E&&!(null==m?void 0:null===(t=m.items)||void 0===t?void 0:t.length),V=e=>{g(null==m?void 0:m.items.filter(t=>t.name.toLowerCase().includes(e.toLowerCase())))},z=async e=>{N(e);let{data:t,isError:a,error:s}=await f(e);if(a){let e=(0,B.e$)(s,"A problem occurred while fetching the ".concat(ee,"."));e.includes("not found")&&c(),p({status:"error",description:e})}else w(t)},W=()=>{N(""),w(void 0),G(!1)},J=()=>{M?(G(!1),M.id!==s&&l(M,Y),v()):P?G(!0):(l(null,Y),v())},K=async e=>{e===(null==M?void 0:M.id)&&(W(),c()),h(e)};(0,o.useEffect)(()=>{m&&g(m.items)},[m]),(0,o.useEffect)(()=>{k&&(G(!1),J())},[M]),(0,o.useEffect)(()=>{s?z(s):W()},[s]),(0,o.useEffect)(()=>{U&&D()},[D,U]);let Q=!M&&!s||(null==M?void 0:M.id)===s,ea=(0,n.jsx)("div",{"data-testid":"custom-reports-popover",children:(0,n.jsx)(C.J9,{initialValues:{},onSubmit:J,onReset:W,children:(0,n.jsxs)(C.l0,{children:[(0,n.jsxs)("div",{className:"relative p-3",style:{borderBottom:"var(--ant-popover-title-border-bottom)"},children:[(0,n.jsx)(x.wpx,{size:"small",disabled:H,htmlType:"reset",className:"absolute left-3 top-3","data-testid":"custom-reports-reset-button",children:"Reset"}),(0,n.jsx)(x.wpx,{type:"text",size:"small","aria-label":"Cancel",icon:(0,n.jsx)(x.PJP.x8P,{}),className:"absolute right-3 top-3",onClick:()=>{s?z(s):W(),v()},"data-testid":"custom-report-popover-cancel"}),(0,n.jsx)("div",{className:"text-center",style:{color:"var(--ant-color-text-heading)",fontWeight:"var(--ant-font-weight-strong)"},children:et}),(0,n.jsx)("div",{className:"mt-3",children:(0,n.jsx)(x.AntInput,{size:"small",placeholder:"Search...",onChange:e=>V(e.target.value)})})]}),(0,n.jsxs)("div",{className:"px-5 pb-1 pt-3",children:[H&&(0,n.jsx)(x.oj8,{image:(0,n.jsx)(x.wpx,{type:"primary",shape:"circle",size:"small","aria-label":"add ".concat(ee),icon:(0,n.jsx)(x.PJP.mm_,{}),onClick:R,"data-testid":"add-report-button"}),description:"No ".concat(et.toLowerCase()," have been created. Start by applying your preferred filter and column settings, then create a ").concat(ee.toLowerCase()," for easy access later."),styles:{image:{height:"24px"}},"data-testid":"custom-reports-empty-state"}),!H&&(E?(0,n.jsx)(x.N_L,{active:!0,paragraph:{rows:3,width:"100%"},title:!1,className:"pt-2"}):(0,n.jsx)(x.y02.Group,{onChange:e=>z(e.target.value),value:P,style:{width:"100%"},children:(0,n.jsx)(x.vyj,{direction:"vertical",className:"w-full",size:"small",children:null==S?void 0:S.map(e=>(0,n.jsxs)(x.jqI,{justify:u?"space-between":"flex-start",align:"center",children:[(0,n.jsx)(x.y02,{value:e.id,name:"custom-report-id","data-testid":"custom-report-item",children:e.name}),u&&(0,n.jsx)(x.wpx,{type:"text",size:"small",icon:(0,n.jsx)(x.PJP.ZNm,{}),onClick:()=>L(e),"data-testid":"delete-report-button","aria-label":"Delete"})]},e.id))})}))]}),(0,n.jsxs)(x.jqI,{className:"px-5 py-4",gap:"small",children:[d&&r&&(0,n.jsxs)(x.wpx,{size:"small",onClick:R,className:"flex-1 gap-1 pl-0","data-testid":"create-report-button",htmlType:"button",icon:(0,n.jsx)(x.PJP.mm_,{}),iconPosition:"start",children:["Create ",ee.toLowerCase()]}),(0,n.jsx)(x.wpx,{size:"small",type:"primary",loading:k,disabled:Q,className:"flex-1","data-testid":"apply-report-button",htmlType:"submit",children:"Apply"})]})]})})});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.bPF,{content:ea,trigger:"click",placement:"bottomRight",open:A,onOpenChange:e=>{e?T():J()},styles:{root:{width:"320px"}},zIndex:1400,children:(0,n.jsx)(x.wpx,{className:"max-w-40",icon:(0,n.jsx)(x.v4q,{}),iconPosition:"end","data-testid":"custom-reports-trigger",children:(0,n.jsx)(x.lKn,{ellipsis:!0,children:F})})}),(0,n.jsx)($,{isOpen:O,handleClose:()=>{y(),setTimeout(()=>{T()},100)},tableStateToSave:r,columnMapToSave:i,unavailableNames:null==m?void 0:m.items.map(e=>e.name),onCreateCustomReport:e=>l(e,Y)}),(0,n.jsx)(x.cVQ,{isOpen:j,onClose:()=>{L(void 0),I()},onConfirm:()=>{U&&K(U.id),I()},title:"Delete ".concat(ee),message:(0,n.jsxs)(x.lKn,{children:["You are about to permanently delete the"," ",ee.toLowerCase()," named"," ",(0,n.jsx)("strong",{children:null==U?void 0:U.name}),". Are you sure you would like to continue?"]})})]})};var es=a(19785),er=a.n(es),ei=a(55807),el=a.n(ei),en=a(32526),eo=a.n(en),ec=a(26070),ed=a(72625),eu=a(43862),e_=a(22583);let ep=(0,A.Cl)(),em=(e,t)=>({cell:e=>(0,n.jsx)(T.G3,{value:e.getValue()}),header:a=>{let s={};return Object.keys(e).forEach(t=>{"string"==typeof e[t]?s[t]=e[t]:e[t].label&&(s[t]=e[t].label||"")}),(0,n.jsx)(ed.Hm,{value:(0,eu.AH)({columnId:a.column.id,columnNameMap:s}),defaultValue:p[a.column.id]||(0,eu.AH)({columnId:a.column.id}),isEditing:t,...a})}}),eE=(e,t)=>{var a;let s=(null==e?void 0:null===(a=e.items)||void 0===a?void 0:a.length)?Object.keys(e.items[0]):[],r=Object.values(l);return s.filter(e=>!r.includes(e)).filter(e=>e.startsWith("privacy_declaration_")||e.startsWith("system_")).map(e=>{let a=t.find(t=>e.includes(eo()(t.name)));return ep.accessor(t=>t[e],{id:e,cell:e=>Array.isArray(e.getValue())?(0,n.jsx)(T.WP,{value:e.getValue(),ignoreZero:!0,...e}):(0,n.jsx)(T.G3,{value:e.getValue()}),meta:{showHeaderMenu:(null==a?void 0:a.field_type)==="string[]"}})})},eS=e=>{let{onSelectRow:t,getDataUseDisplayName:a,getDataCategoryDisplayName:s,getDataSubjectDisplayName:r,datamapReport:i,customFields:o,systemGroups:c=[],isRenaming:d=!1,groupBy:u}=e,p=eE(i,o),m=e=>{let t=c.find(t=>t.fides_key===e);return(null==t?void 0:t.label_color)?e_.j[t.label_color]:void 0},E=e=>{if(e&&0!==e.length&&1===e.length)return m(e[0])},S=[ep.accessor(e=>e.system_name,{enableGrouping:!0,id:l.SYSTEM_NAME,meta:{onCellClick:t}}),ep.accessor(e=>e.data_uses,{id:l.DATA_USE,cell:e=>{let t=e.getValue();return(0,n.jsx)(T.WP,{suffix:"data uses",ignoreZero:!0,value:er()(t)?el()(t,a):a(t||""),tagProps:{color:"white"},...e})},meta:{width:"auto"}}),ep.accessor(e=>e.data_categories,{id:l.DATA_CATEGORY,cell:e=>{let t=e.getValue();if(!t||0===t.length)return null;let a=er()(t)?t.map(e=>({label:s(e),key:e})):[{label:s(t),key:t}];return(0,n.jsx)(ed.mb,{values:a,cellProps:e})},meta:{showHeaderMenu:!d,showHeaderMenuWrapOption:!0,width:"auto",overflow:"hidden"}}),ep.accessor(e=>e.data_subjects,{id:l.DATA_SUBJECT,cell:e=>{let t=e.getValue();return(0,n.jsx)(T.WP,{suffix:"data subjects",ignoreZero:!0,value:er()(t)?el()(t,r):r(t||""),tagProps:{color:"white"},...e})},meta:{showHeaderMenu:!d}}),ep.accessor(e=>e.legal_name,{id:l.LEGAL_NAME}),ep.accessor(e=>e.dpo,{id:l.DPO}),ep.accessor(e=>e.legal_basis_for_processing,{id:l.LEGAL_BASIS_FOR_PROCESSING}),ep.accessor(e=>e.administrating_department,{id:l.ADMINISTRATING_DEPARTMENT}),ep.accessor(e=>e.cookie_max_age_seconds,{id:l.COOKIE_MAX_AGE_SECONDS}),ep.accessor(e=>e.privacy_policy,{id:l.PRIVACY_POLICY}),ep.accessor(e=>e.legal_address,{id:l.LEGAL_ADDRESS}),ep.accessor(e=>e.cookie_refresh,{id:l.COOKIE_REFRESH}),ep.accessor(e=>e.data_security_practices,{id:l.DATA_SECURITY_PRACTICES}),ep.accessor(e=>e.data_shared_with_third_parties,{id:l.DATA_SHARED_WITH_THIRD_PARTIES}),ep.accessor(e=>e.processes_special_category_data,{id:l.PROCESSES_SPECIAL_CATEGORY_DATA}),ep.accessor(e=>e.data_stewards,{id:l.DATA_STEWARDS,cell:e=>(0,n.jsx)(T.WP,{suffix:"data stewards",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.declaration_name,{id:l.DECLARATION_NAME}),ep.accessor(e=>e.does_international_transfers,{id:l.DOES_INTERNATIONAL_TRANSFERS}),ep.accessor(e=>e.dpa_location,{id:l.DPA_LOCATION}),ep.accessor(e=>e.egress,{id:l.DESTINATIONS,cell:e=>(0,n.jsx)(T.WP,{suffix:"destinations",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.exempt_from_privacy_regulations,{id:l.EXEMPT_FROM_PRIVACY_REGULATIONS}),ep.accessor(e=>e.features,{id:l.FEATURES,cell:e=>(0,n.jsx)(T.WP,{suffix:"features",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.fides_key,{id:l.FIDES_KEY}),ep.accessor(e=>e.flexible_legal_basis_for_processing,{id:l.FLEXIBLE_LEGAL_BASIS_FOR_PROCESSING}),ep.accessor(e=>e.impact_assessment_location,{id:l.IMPACT_ASSESSMENT_LOCATION}),ep.accessor(e=>e.ingress,{id:l.SOURCES,cell:e=>(0,n.jsx)(T.WP,{suffix:"sources",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.joint_controller_info,{id:l.JOINT_CONTROLLER_INFO}),ep.accessor(e=>e.legal_basis_for_profiling,{id:l.LEGAL_BASIS_FOR_PROFILING,cell:e=>(0,n.jsx)(T.WP,{suffix:"profiles",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.legal_basis_for_transfers,{id:l.LEGAL_BASIS_FOR_TRANSFERS,cell:e=>(0,n.jsx)(T.WP,{suffix:"transfers",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.legitimate_interest_disclosure_url,{id:l.LEGITIMATE_INTEREST_DISCLOSURE_URL}),ep.accessor(e=>e.processes_personal_data,{id:l.PROCESSES_PERSONAL_DATA}),ep.accessor(e=>e.reason_for_exemption,{id:l.REASON_FOR_EXEMPTION}),ep.accessor(e=>e.requires_data_protection_assessments,{id:l.REQUIRES_DATA_PROTECTION_ASSESSMENTS}),ep.accessor(e=>e.responsibility,{id:l.RESPONSIBILITY,cell:e=>(0,n.jsx)(T.WP,{suffix:"responsibilities",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.retention_period,{id:l.RETENTION_PERIOD}),ep.accessor(e=>e.shared_categories,{id:l.SHARED_CATEGORIES,cell:e=>(0,n.jsx)(T.WP,{suffix:"shared categories",ignoreZero:!0,value:e.getValue(),tagProps:{color:"white"},...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.special_category_legal_basis,{id:l.SPECIAL_CATEGORY_LEGAL_BASIS}),ep.accessor(e=>e.third_parties,{id:l.THIRD_PARTIES}),ep.accessor(e=>e.system_undeclared_data_categories,{id:l.SYSTEM_UNDECLARED_DATA_CATEGORIES,cell:e=>{let t=e.getValue();if(!t||0===t.length)return null;let a=er()(t)?t.map(e=>({label:s(e),key:e})):[{label:s(t),key:t}];return(0,n.jsx)(ed.mb,{values:a,cellProps:e})},meta:{showHeaderMenu:!d,showHeaderMenuWrapOption:!0,width:"auto",overflow:"hidden"}}),ep.accessor(e=>e.data_use_undeclared_data_categories,{id:l.DATA_USE_UNDECLARED_DATA_CATEGORIES,cell:e=>{let t=e.getValue();if(!t||0===t.length)return null;let a=er()(t)?t.map(e=>({label:s(e),key:e})):[{label:s(t),key:t}];return(0,n.jsx)(ed.mb,{values:a,cellProps:e})},meta:{showHeaderMenu:!d,showHeaderMenuWrapOption:!0,width:"auto",overflow:"hidden"}}),ep.accessor(e=>e.cookies,{id:l.COOKIES,cell:e=>(0,n.jsx)(T.WP,{ignoreZero:!0,suffix:"cookies",value:e.getValue(),...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.uses_cookies,{id:l.USES_COOKIES}),ep.accessor(e=>e.uses_non_cookie_access,{id:l.USES_NON_COOKIE_ACCESS}),ep.accessor(e=>e.uses_profiling,{id:l.USES_PROFILING}),ep.accessor(e=>e.system_groups,{id:l.SYSTEM_GROUPS,cell:e=>{let t=e.getValue();if(!t||Array.isArray(t)&&0===t.length)return null;let a=(Array.isArray(t)?t:[t]).map(e=>{let t=c.find(t=>t.fides_key===e);return{label:(null==t?void 0:t.name)||e,key:e,tagProps:{color:(null==t?void 0:t.label_color)?e_.j[t.label_color]:"default",bordered:!1}}});return(0,n.jsx)(ec.Q,{values:a})},meta:{width:"auto"}}),...p],g=[];return u===_.fI.SYSTEM_GROUP&&g.push(ep.accessor(e=>e.system_group_fides_key,{id:l.SYSTEM_GROUP,cell:e=>{var t;let a=e.getValue();if(!a||Array.isArray(a)&&0===a.length)return null;let s=Array.isArray(a)?a.map(e=>{var t;return(null===(t=c.find(t=>t.fides_key===e))||void 0===t?void 0:t.name)||e}):[(null===(t=c.find(e=>e.fides_key===a))||void 0===t?void 0:t.name)||a],r=E(Array.isArray(a)?a:[a]);return(0,n.jsx)(T.WP,{suffix:"system group",ignoreZero:!0,value:s,tagProps:{color:r||"white",bordered:!1},...e})},meta:{width:"auto",showHeaderMenu:!d}}),ep.accessor(e=>e.system_group_data_uses,{id:l.SYSTEM_GROUP_DATA_USES,cell:e=>{let t=e.getValue();return!t||Array.isArray(t)&&0===t.length?null:(0,n.jsx)(T.WP,{suffix:"data uses",ignoreZero:!0,value:er()(t)?el()(t,a):a(t||""),tagProps:{color:"white"},...e})},meta:{width:"auto",showHeaderMenu:!d}})),[...S,...g]},eg=e=>{let{columnNameMapOverrides:t,setColumnNameMapOverrides:a,setSavedCustomReportId:s,setIsRenamingColumns:r}=e,{submitForm:i,resetForm:l}=(0,C.u6)();return(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(x.wpx,{size:"small","data-testid":"rename-columns-reset-btn",onClick:()=>{a({}),s(""),l({values:{}}),r(!1)},children:"Reset all"}),(0,n.jsx)(x.wpx,{size:"small","data-testid":"rename-columns-cancel-btn",onClick:()=>{l({values:t}),r(!1)},children:"Cancel"}),(0,n.jsx)(x.wpx,{size:"small",type:"primary",htmlType:"submit","data-testid":"rename-columns-apply-btn",onClick:i,children:"Apply"})]})},ef=e=>{switch(e){case _.fI.DATA_USE_SYSTEM:return[l.DATA_USE];case _.fI.SYSTEM_GROUP:return[l.SYSTEM_GROUP];default:return[l.SYSTEM_NAME]}},eh=e=>{let t=[];return _.fI.SYSTEM_DATA_USE===e&&(t=[l.SYSTEM_NAME,l.DATA_USE]),_.fI.DATA_USE_SYSTEM===e&&(t=[l.DATA_USE,l.SYSTEM_NAME]),_.fI.SYSTEM_GROUP===e&&(t=[l.SYSTEM_GROUP,l.SYSTEM_GROUP_DATA_USES,l.SYSTEM_NAME,l.DATA_USE]),t},eA=(e,t)=>{let a=eh(e),s=new Set(a);return[...a,...t.filter(e=>!s.has(e))]},eT={items:[],total:0,page:1,size:25,pages:1},ex=()=>{let e=(0,b.Tg)([_.Sh.CUSTOM_REPORT_READ]),{isLoading:t}=(0,V.x8)(),{data:a}=(0,z.QD)(),{PAGE_SIZES:s,pageSize:r,setPageSize:c,onPreviousPageClick:d,isPreviousPageDisabled:u,onNextPageClick:S,isNextPageDisabled:g,startRange:v,endRange:N,pageIndex:M,setTotalPages:U,resetPageIndexToDefault:L}=(0,T.oi)(),k=(0,x.pmc)({id:"datamap-report-toast"}),{isOpen:G,onClose:Y,onOpen:F}=(0,x.qY0)(),{getDataUseDisplayName:B,getDataCategoryDisplayName:Z,getDataSubjectDisplayName:q,isLoading:W}=(0,y.Z)(),[X,J]=(0,o.useState)(),{savedCustomReportId:K,setSavedCustomReportId:Q,groupBy:$,setGroupBy:ee,selectedFilters:et,setSelectedFilters:es,columnOrder:er,setColumnOrder:ei,columnVisibility:el,setColumnVisibility:en,columnSizing:eo,setColumnSizing:ec,columnNameMapOverrides:ed,setColumnNameMapOverrides:eu}=f(),[e_,ep]=(0,o.useState)(!1),eE=e=>{Q(""),ee(e),ep(!0),L()},[ex,eC]=(0,o.useState)(""),ev=(0,o.useCallback)(e=>{L(),eC(e)},[L,eC]),eO={pageIndex:M,pageSize:r,groupBy:$,search:ex,dataUses:(0,D.du)(et.dataUses,"data_uses"),dataSubjects:(0,D.du)(et.dataSubjects,"data_subjects"),dataCategories:(0,D.du)(et.dataCategories,"data_categories")},{data:eR,isLoading:ey,isFetching:ej}=(0,I.tH)(eO),[eb,{isLoading:eD,isError:eI}]=(0,I.Eo)(),{data:eP,totalRows:eN}=(0,o.useMemo)(()=>{let e=eR||eT,t=e.items;return e_&&ep(!1),U(e.pages),{totalRows:e.total,data:t}},[eR]);(0,V.GH)();let eM=(0,R.C)(V.fN),[ew,eU]=(0,o.useState)(!1),eL=(0,o.useMemo)(()=>eR?eS({onSelectRow:e=>J(e.fides_key),getDataUseDisplayName:B,getDataCategoryDisplayName:Z,getDataSubjectDisplayName:q,datamapReport:eR,customFields:eM,systemGroups:a,isRenaming:ew,groupBy:$}):[],[B,q,Z,eR,eM,a,ew,$]),{isOpen:ek,onOpen:eG,onClose:eY}=(0,x.qY0)(),{isOpen:eF,onOpen:eH,onClose:eV}=(0,x.qY0)(),ez=(0,h.b7)({getCoreRowModel:(0,A.sC)(),getGroupedRowModel:(0,A.qe)(),getExpandedRowModel:(0,A.rV)(),manualPagination:!0,enableColumnResizing:!0,columnResizeMode:"onChange",columns:eL,defaultColumn:em({...p,...ed},ew),data:eP,initialState:{expanded:!0,columnSizing:eo,columnOrder:er,columnVisibility:el,grouping:ef($)}});(0,o.useEffect)(()=>{$&&ez&&eR&&(0===ez.getState().columnOrder.length?ei(eA($,ez.getAllColumns().map(e=>e.id))):ei(eA($,ez.getState().columnOrder)))},[$,ez,eR]),(0,o.useEffect)(()=>{let e=ef($);eR&&ez.setGrouping(e)},[eR]);let eB=(0,o.useMemo)(()=>O()(ec,300),[ec]);(0,o.useEffect)(()=>{let e=ez.getState().columnSizing;e&&eB(e)},[ez.getState().columnSizing]);let eZ=()=>ed[l.SYSTEM_GROUP]||"System group",eq=(e,t)=>{if(e||K){if(!e){try{Q(""),en(m),ez.toggleAllColumnsVisible(!0),ez.setColumnVisibility(m),ei([]),ez.setColumnOrder([]),ee(_.fI.SYSTEM_DATA_USE),es(E),eu({}),t({values:{}})}catch(e){k({status:"error",description:"There was a problem resetting the report."})}return}try{var a,s,r,i;if(null===(a=e.config)||void 0===a?void 0:a.table_state){let{groupBy:t,filters:a,columnOrder:s}=e.config.table_state,i={};Object.entries(null!==(r=e.config.column_map)&&void 0!==r?r:{}).forEach(e=>{let[t,a]=e;i[t]=a.enabled||!1}),t&&ee(t),a&&es(a),s&&(ei(s),ez.setColumnOrder(s)),i&&(en(i),ez.setColumnVisibility(i))}if(null===(s=e.config)||void 0===s?void 0:s.column_map){let a={};Object.entries(null!==(i=e.config.column_map)&&void 0!==i?i:{}).forEach(e=>{let[t,s]=e;s.label&&(a[t]=s.label)}),eu(a),t({values:a})}Q(e.id),k({status:"success",description:"Report applied successfully."})}catch(e){k({status:"error",description:"There was a problem applying report."})}}};return ey||t||W?(0,n.jsx)(T.I4,{rowHeight:36,numRows:15}):(0,n.jsxs)(x.kCb,{flex:1,direction:"column",overflow:"auto",children:[(0,n.jsx)(H,{columnNameMap:{...p,...ed},selectedFilters:et,isOpen:G,onClose:Y,onFilterChange:e=>{Q(""),es(e)}}),(0,n.jsx)(T.F1,{isOpen:ek,onClose:eY,headerText:"Columns",columnNameMap:{...p,...ed},prefixColumns:eh($),tableInstance:ez,savedCustomReportId:K,onColumnOrderChange:e=>{Q(""),ez.setColumnOrder(e),ei(e)},onColumnVisibilityChange:e=>{Q(""),ez.setColumnVisibility(e),en(e)}}),(0,n.jsx)(w,{isOpen:eF,onClose:eV,onConfirm:e=>{let t={};Object.entries(el).forEach(e=>{let[a,s]=e;t[a]={enabled:s}}),Object.entries(ed).forEach(e=>{let[a,s]=e;if(t[a])t[a].label=s;else{var r;t[a]={label:s,enabled:null===(r=el[a])||void 0===r||r}}}),eb({...eO,format:e,report_id:K,report:{name:"",type:"datamap",config:{column_map:t,table_state:{groupBy:$,filters:et,columnOrder:er}}}}).then(()=>{eI||eV()})},isLoading:eD}),(0,n.jsx)(C.J9,{initialValues:ed,onSubmit:e=>{Q(""),eu(e),eU(!1)},children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(T.Q$,{children:[(0,n.jsx)(T.HO,{globalFilter:ex,setGlobalFilter:ev,placeholder:"System name, Fides key, or ID"}),(0,n.jsxs)(x.kCb,{alignItems:"center",gap:2,children:[e&&(0,n.jsx)(ea,{reportType:_.C2.DATAMAP,savedReportId:K,tableStateToSave:{groupBy:$,filters:et,columnOrder:er,columnVisibility:el},currentColumnMap:ed,onCustomReportSaved:(e,t)=>eq(e,t),onSavedReportDeleted:()=>{Q("")}}),(0,n.jsxs)(x.v2r,{children:[(0,n.jsxs)(x.j2t,{as:x.wpx,icon:(0,n.jsx)(x.v4q,{}),iconPosition:"end",loading:e_,"data-testid":"group-by-menu",children:["Group by ",(()=>{switch($){case _.fI.SYSTEM_DATA_USE:return"system";case _.fI.DATA_USE_SYSTEM:return"data use";case _.fI.SYSTEM_GROUP:{let e=eZ();return e.charAt(0).toLowerCase()+e.slice(1)}default:return"system"}})()]}),(0,n.jsxs)(x.qyq,{zIndex:11,"data-testid":"group-by-menu-list",children:[(0,n.jsx)(x.iiZ,{onClick:()=>{eE(_.fI.SYSTEM_DATA_USE)},isChecked:_.fI.SYSTEM_DATA_USE===$,value:_.fI.SYSTEM_DATA_USE,"data-testid":"group-by-system-data-use",children:"System"}),(0,n.jsx)(x.iiZ,{onClick:()=>{eE(_.fI.DATA_USE_SYSTEM)},isChecked:_.fI.DATA_USE_SYSTEM===$,value:_.fI.DATA_USE_SYSTEM,"data-testid":"group-by-data-use-system",children:"Data use"}),(0,n.jsx)(x.iiZ,{onClick:()=>{eE(_.fI.SYSTEM_GROUP)},isChecked:_.fI.SYSTEM_GROUP===$,value:_.fI.SYSTEM_GROUP,"data-testid":"group-by-system-group",children:eZ()})]})]}),(0,n.jsx)(x.wpx,{"data-testid":"filter-multiple-systems-btn",onClick:F,children:"Filter"}),(0,n.jsx)(x.wpx,{"aria-label":"Export report","data-testid":"export-btn",onClick:eH,icon:(0,n.jsx)(j.nM,{ml:"1.5px"})}),(0,n.jsxs)(x.v2r,{placement:"bottom-end",children:[(0,n.jsx)(x.j2t,{as:x.wpx,icon:(0,n.jsx)(x.nXP,{className:"rotate-90"}),"data-testid":"more-menu","aria-label":"More options",className:"w-6 gap-0"}),(0,n.jsxs)(x.qyq,{"data-testid":"more-menu-list",children:[(0,n.jsx)(x.sNh,{onClick:eG,"data-testid":"edit-columns-btn",children:"Edit columns"}),(0,n.jsx)(x.sNh,{onClick:()=>eU(!0),"data-testid":"rename-columns-btn",children:"Rename columns"})]})]}),ew&&(0,n.jsx)(eg,{columnNameMapOverrides:ed,setColumnNameMapOverrides:eu,setSavedCustomReportId:Q,setIsRenamingColumns:eU})]})]}),(0,n.jsx)(C.l0,{children:(0,n.jsx)(T.ZK,{tableInstance:ez,columnExpandStorageKey:i.COLUMN_EXPANSION_STATE,columnWrapStorageKey:i.WRAPPING_COLUMNS})})]})}),(0,n.jsx)(T.s8,{totalRows:eN||0,pageSizes:s,setPageSize:c,onPreviousPageClick:d,isPreviousPageDisabled:u||ej,onNextPageClick:S,isNextPageDisabled:g||ej,startRange:v,endRange:N}),(0,n.jsx)(P.Z,{selectedSystemId:X,resetSelectedSystemId:()=>J(void 0)})]})};var eC=()=>(0,n.jsxs)(c.Z,{title:"Datamap Report",children:[(0,n.jsx)(d.Z,{"data-testid":"datamap-report-heading",heading:"Data map report"}),(0,n.jsx)(g,{children:(0,n.jsx)(ex,{})})]})}},function(e){e.O(0,[431,8765,9278,5163,9187,7245,9899,5258,2888,9774,179],function(){return e(e.s=86548)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5135],{77713:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/consent/[configuration_id]/[purpose_id]",function(){return i(80758)}])},59301:function(e,t,i){"use strict";var r=i(24246);let{Link:n}=i(20595).AntTypography;t.Z=e=>{let{children:t,...i}=e;return(0,r.jsx)(n,{target:"_blank",rel:"noopener noreferrer",...i,children:t})}},35287:function(e,t,i){"use strict";var r=i(24246),n=i(20595),s=i(88038),o=i.n(s);i(27378),t.Z=e=>{let{children:t,title:i,mainProps:s}=e;return(0,r.jsxs)(n.kCb,{"data-testid":i,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,r.jsxs)(o(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsx)(n.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...s,children:t})]})}},58754:function(e,t,i){"use strict";var r=i(24246),n=i(20595),s=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:o=!0,children:d,rightContent:l,style:a,...c}=e;return(0,r.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",...a}:{paddingBottom:"24px",...a},children:[(0,r.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,r.jsx)(n.lQT,{className:i||d?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!i&&(0,r.jsx)(s.m,{className:d?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),d]})}},97181:function(e,t,i){"use strict";i.d(t,{d:function(){return a}});var r=i(24246),n=i(20595),s=i(34090),o=i(27378),d=i(46238),l=i(40324);let a=e=>{let{name:t,label:i,labelProps:a,tooltip:c,isRequired:u,layout:p="inline",helperText:h,...v}=e,[_,m,{setValue:x}]=(0,s.U$)(t),f=!!(m.touched&&m.error),[g,R]=(0,o.useState)("");_.value||"tags"!==v.mode&&"multiple"!==v.mode||(_.value=[]),"tags"===v.mode&&"string"==typeof _.value&&(_.value=[_.value]);let j="tags"===v.mode?(e,t)=>e?e.value!==g||_.value.includes(g)?v.optionRender?v.optionRender(e,t):e.label:'Create "'.concat(g,'"'):void 0:v.optionRender||void 0,I=e=>{R(e),v.onSearch&&v.onSearch(e)},E=(e,t)=>{x(e),v.onChange&&v.onChange(e,t)};return"inline"===p?(0,r.jsx)(n.NIc,{isInvalid:f,isRequired:u,children:(0,r.jsxs)(n.rjZ,{templateColumns:i?"1fr 3fr":"1fr",children:[i?(0,r.jsx)(l.__,{htmlFor:v.id||t,...a,children:i}):null,(0,r.jsxs)(n.jqI,{align:"center",children:[(0,r.jsxs)(n.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,r.jsx)(n.WPr,{..._,id:v.id||t,"data-testid":"controlled-select-".concat(_.name),...v,optionRender:j,onSearch:"tags"===v.mode?I:void 0,onChange:E,value:_.value||void 0,status:f?"error":void 0}),h&&(0,r.jsx)(n.Q6r,{children:h}),(0,r.jsx)(l.Bc,{isInvalid:f,message:m.error,fieldName:_.name})]}),(0,r.jsx)(d.b,{label:c,className:f?"mt-2 self-start":void 0})]})]})}):(0,r.jsx)(n.NIc,{isInvalid:f,isRequired:u,children:(0,r.jsxs)(n.gCW,{alignItems:"start",children:[(0,r.jsxs)(n.jqI,{align:"center",children:[i?(0,r.jsx)(l.__,{htmlFor:v.id||t,fontSize:"xs",my:0,mr:1,...a,children:i}):null,(0,r.jsx)(d.b,{label:c})]}),(0,r.jsx)(n.WPr,{..._,id:v.id||t,"data-testid":"controlled-select-".concat(_.name),...v,optionRender:j,onSearch:"tags"===v.mode?I:void 0,onChange:E,value:_.value||void 0,status:f?"error":void 0}),h&&(0,r.jsx)(n.Q6r,{style:{marginTop:0},children:h}),(0,r.jsx)(l.Bc,{isInvalid:f,message:m.error,fieldName:_.name})]})})}},8133:function(e,t,i){"use strict";var r=i(24246),n=i(20595);t.Z=e=>{let{title:t,children:i,isOpen:s,onClose:o,modalContentProps:d,showCloseButton:l=!1,footer:a,...c}=e;return(0,r.jsxs)(n.u_l,{isOpen:s,onClose:o,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...c,children:[(0,r.jsx)(n.ZAr,{}),(0,r.jsxs)(n.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...d,children:[l&&(0,r.jsx)(n.olH,{}),(0,r.jsx)(n.xBx,{p:0,children:(0,r.jsx)(n.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,r.jsx)(n.X6q,{as:"h3",size:"sm",children:t})})}),(0,r.jsx)(n.fef,{pb:4,overflow:"auto",children:i}),a&&(0,r.jsx)(n.mzw,{children:a})]})]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return a}});var r=i(24246),n=i(20595),s=i(79894),o=i.n(s),d=i(27378);let{Text:l}=n.AntTypography,a=e=>{let{items:t,...i}=e,s=(0,d.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let s=i===t.length-1,d={...e},a=d.onClick&&!d.href;return("string"==typeof d.title&&(d.title=(0,r.jsx)(l,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,id:s?"breadcrumb-current-page":void 0,children:d.title})),a)?d.title=(0,r.jsx)(n.wpx,{type:"text",size:"small",icon:d.icon,onClick:d.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:d.title}):(d.icon&&(d.title=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:d.icon}),d.title]})),d.href&&d.title&&(d.title=(0,r.jsx)(o(),{href:d.href,className:"ant-breadcrumb-link",children:d.title}),delete d.href)),d}),[t]);return(0,r.jsx)(n.zrq,{items:s,...i})}},6675:function(e,t,i){"use strict";i.d(t,{ZS:function(){return d},a4:function(){return s}});var r=i(3228);let n=i(78780).u.injectEndpoints({endpoints:e=>({getPurposes:e.query({query:()=>"purposes"})})}),{useGetPurposesQuery:s}=n,o={purposes:{},special_purposes:{}},d=(0,r.P1)(n.endpoints.getPurposes.select(),e=>{let{data:t}=e;return t||o})},51263:function(e,t,i){"use strict";var r=i(24246),n=i(20595);t.Z=e=>{let{title:t,children:i,...s}=e;return(0,r.jsxs)(n.xuv,{backgroundColor:"var(--fidesui-bg-corinth)",borderRadius:"4px",padding:"3","data-testid":"setting-".concat(t),...s,children:[(0,r.jsx)(n.xvT,{as:"h3",fontSize:"md",fontWeight:"bold",lineHeight:5,color:"gray.700",mb:3,children:t}),i]})}},59512:function(e,t,i){"use strict";i.d(t,{Cu:function(){return d},Py:function(){return n},fj:function(){return o},uh:function(){return s}});var r=i(65735);let n=[1,3,4,5,6],s="https://ethyca.com/docs/tutorials/consent-management/consent-management-configuration/configure-tcf#vendor-overrides",o={[r.FF.PURPOSE_RESTRICTION]:"Purpose restriction",[r.FF.REQUIRE_CONSENT]:"Require consent",[r.FF.REQUIRE_LEGITIMATE_INTEREST]:"Require legitimate interest"},d={[r.PY.RESTRICT_ALL_VENDORS]:"Restrict all vendors",[r.PY.RESTRICT_SPECIFIC_VENDORS]:"Restrict specific vendors",[r.PY.ALLOW_SPECIFIC_VENDORS]:"Allow specific vendors"}},80758:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return Z}});var r=i(24246),n=i(20595),s=i(86677),o=i(27378),d=i(59301),l=i(35287),a=i(58754),c=i(6675),u=i(51263),p=i(59512),h=i(59003),v=i(92222),_=i(47935),m=i(65735),x=i(34090),f=i(55484),g=i(97181),R=i(812),j=i(8133),I=i(46628),E=i(52955);let y=e=>{if(/^\d+$/.test(e))return!0;let t=e.match(/^(\d+)-(\d+)$/);return!!t&&parseInt(t[1],10)<parseInt(t[2],10)},C=e=>{if(/^\d+$/.test(e)){let t=parseInt(e,10);return{start:t,end:t}}let t=e.match(/^(\d+)-(\d+)$/);return t?{start:parseInt(t[1],10),end:parseInt(t[2],10)}:null},T=(e,t)=>e.end===e.start?e.start>=t.start&&(null===t.end||e.start<=t.end):t.end===t.start?t.start>=e.start&&(null===e.end||t.start<=e.end):null===e.end&&null!==t.end?e.start<=t.end:null===t.end&&null!==e.end?t.start<=e.end:null===e.end&&null===t.end||e.start<=t.end&&e.end>=t.start||t.start<=e.end&&t.end>=e.start,b=(e,t)=>e.end===e.start?e.start>=t.start&&(null===t.end||e.start<=t.end):null===t.end?e.start>=t.start:null!==e.end&&e.start>=t.start&&e.end<=t.end,S=(e,t,i,r)=>{var n;let s=t.filter(e=>e.purpose_id===i&&e.id!==r);if(!(null===(n=e.vendor_ids)||void 0===n?void 0:n.length))return!1;let o=e.vendor_ids.map(C).filter(e=>null!==e);return 0!==o.length&&s.some(t=>{let i=e.vendor_restriction===m.PY.RESTRICT_SPECIFIC_VENDORS&&t.vendor_restriction===m.PY.ALLOW_SPECIFIC_VENDORS||e.vendor_restriction===m.PY.ALLOW_SPECIFIC_VENDORS&&t.vendor_restriction===m.PY.RESTRICT_SPECIFIC_VENDORS,r=t.vendor_ids.map(C).filter(e=>null!==e);return i?e.vendor_restriction===m.PY.ALLOW_SPECIFIC_VENDORS?r.some(e=>o.some(t=>!b(e,t))):o.some(e=>r.some(t=>!b(e,t))):t.vendor_restriction===e.vendor_restriction&&o.some(e=>r.some(t=>T(e,t)))})},N=e=>{if(/^\d+$/.test(e))return{start_vendor_id:parseInt(e,10),end_vendor_id:null};let t=e.match(/^(\d+)-(\d+)$/);if(t){let e=parseInt(t[1],10),i=parseInt(t[2],10);if(e<i)return{start_vendor_id:e,end_vendor_id:i}}return null},F=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(N).filter(e=>null!==e)},w="This restriction type is already in use for this purpose",P={restriction_type:"",vendor_restriction:"",vendor_ids:[]},O=e=>{let{isOpen:t,onClose:i,initialValues:s=P,existingRestrictions:o=[],purposeId:d,restrictionId:l,configurationId:a}=e,c=(0,n.pmc)(),[u]=(0,E.a_)(),[h]=(0,E.h3)(),v=!(d&&p.Py.includes(+d)),_=o.filter(e=>e.id!==l).map(e=>e.restriction_type),C=[{value:m.FF.PURPOSE_RESTRICTION,label:p.fj[m.FF.PURPOSE_RESTRICTION],disabled:_.includes(m.FF.PURPOSE_RESTRICTION),title:_.includes(m.FF.PURPOSE_RESTRICTION)?w:void 0},{value:m.FF.REQUIRE_CONSENT,label:p.fj[m.FF.REQUIRE_CONSENT],disabled:_.includes(m.FF.REQUIRE_CONSENT),title:_.includes(m.FF.REQUIRE_CONSENT)?w:void 0},{value:m.FF.REQUIRE_LEGITIMATE_INTEREST,label:p.fj[m.FF.REQUIRE_LEGITIMATE_INTEREST],disabled:_.includes(m.FF.REQUIRE_LEGITIMATE_INTEREST),title:_.includes(m.FF.REQUIRE_LEGITIMATE_INTEREST)?w:void 0}],T=[{value:m.PY.RESTRICT_ALL_VENDORS,label:p.Cu[m.PY.RESTRICT_ALL_VENDORS],disabled:_.length>0,title:_.length>0?"Cannot restrict all vendors when other restrictions exist":void 0},{value:m.PY.RESTRICT_SPECIFIC_VENDORS,label:p.Cu[m.PY.RESTRICT_SPECIFIC_VENDORS]},{value:m.PY.ALLOW_SPECIFIC_VENDORS,label:p.Cu[m.PY.ALLOW_SPECIFIC_VENDORS]}],b=f.Ry().shape({restriction_type:f.Z_().required("Restriction type is required"),vendor_restriction:f.Z_().required("Vendor restriction is required"),vendor_ids:f.IX().when("vendor_restriction",{is:e=>e!==m.PY.RESTRICT_ALL_VENDORS,then:e=>e.required("At least one vendor ID is required").min(1,"At least one vendor ID is required").test("valid-format","Vendor IDs must be numbers or ranges (e.g., 10 or 15-300)",e=>{var t;return null===(t=null==e?void 0:e.every(e=>y(e)))||void 0===t||t}).test("no-conflicts","One or more of these vendors already have a restriction for this purpose. Please update the existing restriction or remove duplicates.",(e,t)=>!S({...t.parent,vendor_ids:e},o,d,l))})}),N=async e=>{try{let t={restriction_type:e.restriction_type,vendor_restriction:e.vendor_restriction,range_entries:e.vendor_restriction!==m.PY.RESTRICT_ALL_VENDORS?F(e.vendor_ids):[]},r={...t,purpose_id:null!=d?d:0};if(l){let e=await h({configuration_id:a,restriction_id:l,restriction:t});if((0,R.D4)(e)){c((0,I.Vo)("Failed to update restriction"));return}c((0,I.t5)("Restriction updated successfully"))}else{let e=await u({configuration_id:a,restriction:r});if((0,R.D4)(e)){c((0,I.Vo)("Failed to create restriction"));return}c((0,I.t5)("Restriction created successfully"))}i()}catch(e){c((0,I.Vo)("Failed to save restriction"))}};return(0,r.jsx)(j.Z,{isOpen:t,onClose:i,title:"Edit restriction",children:(0,r.jsx)(x.J9,{initialValues:{...s,restriction_type:v?s.restriction_type:m.FF.PURPOSE_RESTRICTION},onSubmit:N,validationSchema:b,children:e=>{let{values:t,validateField:s,setTouched:o}=e;return(0,r.jsx)(x.l0,{children:(0,r.jsxs)(n.jqI,{vertical:!0,className:"gap-6",children:[(0,r.jsx)(n.xvT,{className:"text-sm",children:"Define how specific vendors are restricted from processing data for this purpose. Select a restriction type, set whether the listed vendors are restricted or allowed, and specify which vendor IDs the restriction applies to."}),(0,r.jsx)(n.esZ,{title:v?void 0:"Non-flexible purposes only support Purpose restrictions and cannot be restricted by consent or legitimate interest settings.",children:(0,r.jsx)(g.d,{name:"restriction_type",label:"Restriction type",options:C,layout:"stacked",tooltip:"Choose how vendors are permitted to process data for this purpose. This setting overrides the vendor's declared legal basis in the Global Vendor List.",isRequired:!0,disabled:!v,className:"w-full"})}),(0,r.jsx)(g.d,{name:"vendor_restriction",label:"Vendor restriction",options:T,layout:"stacked",tooltip:"Decide if the restriction applies to all vendors, specific vendors, or if only certain vendors are allowed.",isRequired:!0}),(0,r.jsx)(n.UO1,{in:!!t.restriction_type&&!!t.vendor_restriction&&t.vendor_restriction!==m.PY.RESTRICT_ALL_VENDORS,animateOpacity:!0,children:(0,r.jsx)(g.d,{name:"vendor_ids",label:"Vendor IDs",mode:"tags",options:[],layout:"stacked",placeholder:"Enter vendor IDs",open:!1,suffixIcon:(0,r.jsx)("span",{}),tooltip:"List the specific vendors that are restricted or allowed from processing data for this purpose.",disabled:t.vendor_restriction===m.PY.RESTRICT_ALL_VENDORS,tokenSeparators:[","," "],onBlur:()=>{setTimeout(()=>{o({vendor_ids:!0}),s("vendor_ids")},100)},helperText:"Enter IDs (e.g. 123) or ranges (e.g. 1-10) and press enter",isRequired:!0})}),(0,r.jsxs)(n.jqI,{justify:"flex-end",className:"gap-3 pt-4",children:[(0,r.jsx)(n.wpx,{onClick:i,"data-testid":"cancel-restriction-button",children:"Cancel"}),(0,r.jsx)(n.wpx,{type:"primary",htmlType:"submit","data-testid":"save-restriction-button",children:"Save"})]})]})})}})})};var L=i(72625),q=i(58452);let A=e=>{let{currentValues:t,existingRestrictions:i}=e,[d,l]=(0,o.useState)(!1),[a,c]=(0,o.useState)(!1),u=(0,s.useRouter)(),p=(0,n.pmc)(),[h]=(0,E.FC)(),v=u.query.purpose_id?parseInt(u.query.purpose_id,10):void 0,_=u.query.configuration_id,m=async()=>{try{if(!(null==t?void 0:t.id))return;let e=await h({configuration_id:_,restriction_id:t.id});if((0,R.D4)(e)){p((0,I.Vo)("Failed to delete publisher restriction"));return}l(!1),p((0,I.t5)("Publisher restriction deleted successfully"))}catch(e){p((0,I.Vo)("Failed to delete publisher restriction"))}};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(n.vyj,{children:[(0,r.jsx)(n.wpx,{size:"small",onClick:()=>c(!0),"data-testid":"edit-restriction-button",children:"Edit"}),(0,r.jsx)(n.wpx,{size:"small",onClick:()=>l(!0),"data-testid":"delete-restriction-button",children:"Delete"})]}),(0,r.jsx)(O,{isOpen:a,onClose:()=>c(!1),initialValues:t,existingRestrictions:i,purposeId:v,restrictionId:null==t?void 0:t.id,configurationId:_}),(0,r.jsx)(q.Z,{isOpen:d,onClose:()=>l(!1),onConfirm:m,title:"Confirm deletion",message:"Are you sure you want to delete this publisher restriction? This action cannot be undone.",cancelButtonText:"Cancel",continueButtonText:"Delete"})]})},D=(0,v.Cl)(),V=()=>(0,o.useMemo)(()=>[D.accessor(e=>e.restriction_type,{id:"restriction_type",cell:e=>{let{getValue:t}=e,i=t();return(0,r.jsx)(_.G3,{value:p.fj[i]})},header:e=>(0,r.jsx)(_.Rr,{value:"Restriction type",...e})}),D.accessor(e=>e.vendor_restriction,{id:"vendor_restriction",cell:e=>{let{getValue:t}=e,i=t();return(0,r.jsx)(_.G3,{value:p.Cu[i]})},header:e=>(0,r.jsx)(_.Rr,{value:"Vendor restriction",...e})}),D.accessor(e=>e.vendor_ids,{id:"vendor_ids",cell:e=>{let{getValue:t}=e;return(0,r.jsx)(_.G3,{value:t().join(", ")||"All vendors"})},header:e=>(0,r.jsx)(L.vs,{value:"Vendors",helperText:"Specify which vendors the restriction applies to. You can apply restrictions to all vendors, specific vendors by their IDs, or allow only certain vendors while restricting the rest.",...e})}),D.display({id:"actions",cell:e=>(0,r.jsx)(A,{currentValues:e.row.original,existingRestrictions:e.table.getRowModel().rows.map(e=>e.original)}),header:"Actions",size:154,meta:{disableRowClick:!0}})],[]),k=e=>{let{onAdd:t}=e;return(0,r.jsxs)(n.jqI,{vertical:!0,align:"center",className:"mt-6 w-full gap-3 self-center whitespace-normal py-10","data-testid":"empty-table-notice",children:[(0,r.jsx)(n.xvT,{fontSize:"md",fontWeight:"semibold",children:"Add a restriction"}),(0,r.jsx)(n.xvT,{fontSize:"sm",className:"max-w-[70%]",children:"No restrictions have been added. By default, all vendors follow their declared legal basis unless a restriction is applied—add a restriction to override this behavior."}),(0,r.jsx)(n.wpx,{type:"primary",onClick:t,children:"Add +"})]})},U=()=>{let[e,t]=(0,o.useState)(!1),i=V(),d=(0,s.useRouter)(),l=d.query.purpose_id?parseInt(d.query.purpose_id,10):void 0,a=d.query.configuration_id,{data:c,isFetching:u}=(0,E.a9)({configuration_id:a,purpose_id:null!=l?l:0},{skip:!a||!l}),p=((null==c?void 0:c.items)||[]).map(e=>{var t;return{id:e.id,restriction_type:e.restriction_type,vendor_restriction:e.vendor_restriction,vendor_ids:(null===(t=e.range_entries)||void 0===t?void 0:t.map(e=>e.end_vendor_id?"".concat(e.start_vendor_id,"-").concat(e.end_vendor_id):e.start_vendor_id.toString()))||[],purpose_id:e.purpose_id}}),x=p.some(e=>e.vendor_restriction===m.PY.RESTRICT_ALL_VENDORS),f=Object.values(m.FF).every(e=>p.some(t=>t.restriction_type===e)),g=(0,h.b7)({getCoreRowModel:(0,v.sC)(),columns:i,data:p,columnResizeMode:"onChange",manualPagination:!0}),R=()=>{t(!0)};return(0,r.jsxs)(n.jqI,{vertical:!0,className:"overflow-auto",children:[(0,r.jsxs)(_.Q$,{children:[(0,r.jsx)(n.LZC,{}),(0,r.jsx)(n.esZ,{title:x?'Each vendor must have a unique restriction type. When "Restrict all vendors" is active for any restriction type, no other restrictions can be added.':f?"Each purpose must have a unique restriction type. When all restriction types are active, no other restrictions can be added. Use the 'Edit' button to change the vendor restrictions on each type.":void 0,children:(0,r.jsx)(n.wpx,{type:"primary",onClick:R,disabled:x||f,"data-testid":"add-restriction-button",children:"Add restriction +"})})]}),u?(0,r.jsx)(_.I4,{rowHeight:36,numRows:3}):(0,r.jsx)(_.ZK,{tableInstance:g,emptyTableNotice:(0,r.jsx)(k,{onAdd:R})}),(0,r.jsx)(O,{isOpen:e,onClose:()=>{t(!1)},existingRestrictions:p,purposeId:l,configurationId:a})]})};var Z=()=>{let e=(0,s.useRouter)(),t=decodeURIComponent(e.query.configuration_id),i=decodeURIComponent(e.query.purpose_id),{data:h,isLoading:v}=(0,c.a4)(),{data:_}=(0,E.NZ)(t),m=(0,o.useMemo)(()=>null==h?void 0:h.purposes[i],[h,i]);return(0,r.jsxs)(l.Z,{title:"Consent Configuration",children:[(0,r.jsx)(a.Z,{heading:"Consent configuration",breadcrumbItems:[{title:"Consent settings",href:"/settings/consent"},{title:(null==_?void 0:_.name)||"Configuration"},{title:"TCF purpose ".concat(i)}]}),(0,r.jsxs)(n.vyj,{direction:"vertical",size:"middle",children:[(0,r.jsxs)(n.vyj,{direction:"vertical",size:"middle",children:[(0,r.jsx)(u.Z,{title:"TCF purpose ".concat(i).concat((null==m?void 0:m.name)?": ".concat(null==m?void 0:m.name):""),children:v?(0,r.jsxs)(n.jqI,{vertical:!0,className:"gap-1.5",children:[(0,r.jsx)(n.OdW,{height:"16px",width:"100%"}),(0,r.jsx)(n.OdW,{height:"16px",width:"100%"}),(0,r.jsx)(n.OdW,{height:"16px",width:"30%"})]}):!!m&&(0,r.jsx)(n.xvT,{fontSize:"sm",children:null==m?void 0:m.description})}),(0,r.jsx)(u.Z,{title:(null==_?void 0:_.name)||"Configuration",children:(0,r.jsx)(n.vyj,{direction:"vertical",className:"gap-3",children:(0,r.jsxs)(n.xvT,{fontSize:"sm",children:["Add restrictions to control how vendors process data for specific purposes. For each restriction, choose a restriction type. Then, decide whether the restriction applies to all vendors, specific vendors, or only to a limited set of allowed vendors. You can add multiple restrictions—they'll appear in the table below."," ",(0,r.jsx)(d.Z,{href:p.uh,children:"Learn more about publisher restrictions"})," ","in our docs."]})})})]}),(0,r.jsx)(U,{})]})]})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=77713)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3785],{58095:function(e,t,n){var s=n(8817);e.exports=function(e,t){return!!(null==e?0:e.length)&&s(e,t,0)>-1}},21796:function(e){e.exports=function(e,t,n){for(var s=-1,l=null==e?0:e.length;++s<l;)if(n(t,e[s]))return!0;return!1}},8817:function(e,t,n){var s=n(95372),l=n(1129),a=n(58263);e.exports=function(e,t,n){return t==t?a(e,t,n):s(e,l,n)}},1129:function(e){e.exports=function(e){return e!=e}},74833:function(e,t,n){var s=n(56127),l=/^\s+/;e.exports=function(e){return e?e.slice(0,s(e)+1).replace(l,""):e}},92198:function(e,t,n){var s=n(52485),l=n(58095),a=n(21796),r=n(65581),i=n(47111),o=n(43735);e.exports=function(e,t,n){var d=-1,u=l,c=e.length,p=!0,m=[],f=m;if(n)p=!1,u=a;else if(c>=200){var h=t?null:i(e);if(h)return o(h);p=!1,u=r,f=new s}else f=t?[]:m;e:for(;++d<c;){var g=e[d],v=t?t(g):g;if(g=n||0!==g?g:0,p&&v==v){for(var x=f.length;x--;)if(f[x]===v)continue e;t&&f.push(v),m.push(g)}else u(f,v,n)||(f!==m&&f.push(v),m.push(g))}return m}},47111:function(e,t,n){var s=n(46151),l=n(50344),a=n(43735),r=s&&1/a(new s([,-0]))[1]==1/0?function(e){return new s(e)}:l;e.exports=r},58263:function(e){e.exports=function(e,t,n){for(var s=n-1,l=e.length;++s<l;)if(e[s]===t)return s;return -1}},56127:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},66726:function(e,t,n){var s=n(11611),l=n(82846),a=n(91936),r=Math.max,i=Math.min;e.exports=function(e,t,n){var o,d,u,c,p,m,f=0,h=!1,g=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function x(t){var n=o,s=d;return o=d=void 0,f=t,c=e.apply(s,n)}function y(e){var n=e-m,s=e-f;return void 0===m||n>=t||n<0||g&&s>=u}function j(){var e,n,s,a=l();if(y(a))return b(a);p=setTimeout(j,(e=a-m,n=a-f,s=t-e,g?i(s,u-n):s))}function b(e){return(p=void 0,v&&o)?x(e):(o=d=void 0,c)}function k(){var e,n=l(),s=y(n);if(o=arguments,d=this,m=n,s){if(void 0===p)return f=e=m,p=setTimeout(j,t),h?x(e):c;if(g)return clearTimeout(p),p=setTimeout(j,t),x(m)}return void 0===p&&(p=setTimeout(j,t)),c}return t=a(t)||0,s(n)&&(h=!!n.leading,u=(g="maxWait"in n)?r(a(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),k.cancel=function(){void 0!==p&&clearTimeout(p),f=0,o=m=d=p=void 0},k.flush=function(){return void 0===p?c:b(l())},k}},56141:function(e,t,n){var s=n(32866);e.exports=function(e,t){return s(e,t)}},50344:function(e){e.exports=function(){}},82846:function(e,t,n){var s=n(77400);e.exports=function(){return s.Date.now()}},91936:function(e,t,n){var s=n(74833),l=n(11611),a=n(55193),r=0/0,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,d=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return r;if(l(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=l(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=s(e);var n=o.test(e);return n||d.test(e)?u(e.slice(2),n?2:8):i.test(e)?r:+e}},83766:function(e,t,n){var s=n(92198);e.exports=function(e){return e&&e.length?s(e):[]}},90988:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/systems",function(){return n(69955)}])},30952:function(e,t,n){"use strict";n.d(t,{f:function(){return o}});var s=n(24246),l=n(66726),a=n.n(l),r=n(27378),i=n(26917);let o=e=>{let{value:t,onChange:n,placeholder:l,...o}=e,[d,u]=(0,r.useState)(t);(0,r.useEffect)(()=>{u(t||"")},[t]);let c=a()(n,500),p=(0,r.useCallback)(e=>{u(e),c(e)},[]);return(0,s.jsx)(i.Z,{value:d,onChange:p,onClear:()=>{u(""),n("")},placeholder:l,...o})}},35287:function(e,t,n){"use strict";var s=n(24246),l=n(20595),a=n(88038),r=n.n(a);n(27378),t.Z=e=>{let{children:t,title:n,mainProps:a}=e;return(0,s.jsxs)(l.kCb,{"data-testid":n,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,s.jsxs)(r(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsx)(l.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...a,children:t})]})}},58754:function(e,t,n){"use strict";var s=n(24246),l=n(20595),a=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:r=!0,children:i,rightContent:o,style:d,...u}=e;return(0,s.jsxs)("div",{...u,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,s.jsxs)(l.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(l.lQT,{className:n||i?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,s.jsx)(a.m,{className:i?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),i]})}},19904:function(e,t,n){"use strict";n.d(t,{Tg:function(){return r}});var s=n(24246),l=n(16134),a=n(31793);let r=e=>(0,l.C)(a.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return r(t)?(0,s.jsx)(s.Fragment,{children:n}):null}},97181:function(e,t,n){"use strict";n.d(t,{d:function(){return d}});var s=n(24246),l=n(20595),a=n(34090),r=n(27378),i=n(46238),o=n(40324);let d=e=>{let{name:t,label:n,labelProps:d,tooltip:u,isRequired:c,layout:p="inline",helperText:m,...f}=e,[h,g,{setValue:v}]=(0,a.U$)(t),x=!!(g.touched&&g.error),[y,j]=(0,r.useState)("");h.value||"tags"!==f.mode&&"multiple"!==f.mode||(h.value=[]),"tags"===f.mode&&"string"==typeof h.value&&(h.value=[h.value]);let b="tags"===f.mode?(e,t)=>e?e.value!==y||h.value.includes(y)?f.optionRender?f.optionRender(e,t):e.label:'Create "'.concat(y,'"'):void 0:f.optionRender||void 0,k=e=>{j(e),f.onSearch&&f.onSearch(e)},_=(e,t)=>{v(e),f.onChange&&f.onChange(e,t)};return"inline"===p?(0,s.jsx)(l.NIc,{isInvalid:x,isRequired:c,children:(0,s.jsxs)(l.rjZ,{templateColumns:n?"1fr 3fr":"1fr",children:[n?(0,s.jsx)(o.__,{htmlFor:f.id||t,...d,children:n}):null,(0,s.jsxs)(l.jqI,{align:"center",children:[(0,s.jsxs)(l.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,s.jsx)(l.WPr,{...h,id:f.id||t,"data-testid":"controlled-select-".concat(h.name),...f,optionRender:b,onSearch:"tags"===f.mode?k:void 0,onChange:_,value:h.value||void 0,status:x?"error":void 0}),m&&(0,s.jsx)(l.Q6r,{children:m}),(0,s.jsx)(o.Bc,{isInvalid:x,message:g.error,fieldName:h.name})]}),(0,s.jsx)(i.b,{label:u,className:x?"mt-2 self-start":void 0})]})]})}):(0,s.jsx)(l.NIc,{isInvalid:x,isRequired:c,children:(0,s.jsxs)(l.gCW,{alignItems:"start",children:[(0,s.jsxs)(l.jqI,{align:"center",children:[n?(0,s.jsx)(o.__,{htmlFor:f.id||t,fontSize:"xs",my:0,mr:1,...d,children:n}):null,(0,s.jsx)(i.b,{label:u})]}),(0,s.jsx)(l.WPr,{...h,id:f.id||t,"data-testid":"controlled-select-".concat(h.name),...f,optionRender:b,onSearch:"tags"===f.mode?k:void 0,onChange:_,value:h.value||void 0,status:x?"error":void 0}),m&&(0,s.jsx)(l.Q6r,{style:{marginTop:0},children:m}),(0,s.jsx)(o.Bc,{isInvalid:x,message:g.error,fieldName:h.name})]})})}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return d}});var s=n(24246),l=n(20595),a=n(79894),r=n.n(a),i=n(27378);let{Text:o}=l.AntTypography,d=e=>{let{items:t,...n}=e,a=(0,i.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let a=n===t.length-1,i={...e},d=i.onClick&&!i.href;return("string"==typeof i.title&&(i.title=(0,s.jsx)(o,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,id:a?"breadcrumb-current-page":void 0,children:i.title})),d)?i.title=(0,s.jsx)(l.wpx,{type:"text",size:"small",icon:i.icon,onClick:i.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:i.title}):(i.icon&&(i.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:i.icon}),i.title]})),i.href&&i.title&&(i.title=(0,s.jsx)(r(),{href:i.href,className:"ant-breadcrumb-link",children:i.title}),delete i.href)),i}),[t]);return(0,s.jsx)(l.zrq,{items:a,...n})}},33335:function(e,t,n){"use strict";n.d(t,{E:function(){return s}});let s=e=>e.toLowerCase().replace(/[ .]/g,"_").replace(/[^a-zA-Z0-9_<>-]/g,"")},22583:function(e,t,n){"use strict";n.d(t,{j:function(){return l}});var s=n(65735);let l={[s.Ej.TAXONOMY_WHITE]:"default",[s.Ej.TAXONOMY_RED]:"error",[s.Ej.TAXONOMY_ORANGE]:"warning",[s.Ej.TAXONOMY_YELLOW]:"caution",[s.Ej.TAXONOMY_GREEN]:"success",[s.Ej.TAXONOMY_BLUE]:"info",[s.Ej.TAXONOMY_PURPLE]:"alert",[s.Ej.SANDSTONE]:"sandstone",[s.Ej.MINOS]:"minos"}},92818:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var s=n(24246),l=n(27378),a=n(97181),r=n(22583),i=n(65735);let o={[i.Ej.TAXONOMY_WHITE]:"White",[i.Ej.TAXONOMY_RED]:"Red",[i.Ej.TAXONOMY_ORANGE]:"Orange",[i.Ej.TAXONOMY_YELLOW]:"Yellow",[i.Ej.TAXONOMY_GREEN]:"Green",[i.Ej.TAXONOMY_BLUE]:"Blue",[i.Ej.TAXONOMY_PURPLE]:"Purple",[i.Ej.SANDSTONE]:"Sandstone",[i.Ej.MINOS]:"Minos"},d=e=>{let{color:t,...n}=e;return(0,s.jsx)("span",{"aria-hidden":!0,className:"mr-2 inline-block size-4 rounded-lg align-middle",style:{backgroundColor:"var(--fidesui-bg-".concat(r.j[t],")"),border:t===i.Ej.TAXONOMY_WHITE?"1px solid var(--fidesui-neutral-200)":"none",...n.style}})},u=e=>{let t=null==e?void 0:e.value,n=null==e?void 0:e.label;return(0,s.jsxs)("span",{className:"flex items-center",children:[(0,s.jsx)(d,{color:t}),(0,s.jsx)("span",{children:n})]})};t.Z=e=>{let t=Object.values(i.Ej).map(e=>({value:e,label:o[e]})),[n,r]=(0,l.useState)(void 0);return(0,s.jsx)(a.d,{...e,options:t,optionRender:u,layout:"stacked",value:n,onChange:e=>{r(e)},prefix:(0,s.jsx)(d,{color:null!=n?n:i.Ej.TAXONOMY_WHITE,style:{marginBottom:"2px"}})})}},69955:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Q}});var s=n(24246),l=n(20595),a=n(86677),r=n(27378),i=n(25980),o=n(35287),d=n(77830),u=n(58754),c=n(30952),p=n(812),m=n(65450),f=n(34090),h=n(83766),g=n.n(h),v=n(55484),x=n(97181),y=n(40324),j=n(28079),b=n(1315),k=n(92818);let _="all-suggested";var E=e=>{let{options:t,loading:n,name:a,suggestedDataUses:i,...o}=e,[d,u,{setValue:c}]=(0,f.U$)(a),p=!!(u.touched&&u.error),m=(0,r.useMemo)(()=>{let e=[],n=[];return null==t||t.forEach(t=>{i.includes(t.value)?e.push(t):n.push(t)}),{suggested:e,all:n}},[t,i]),h=m.suggested.length?[{label:"Select all suggested",value:_},{label:(0,s.jsxs)(l.vyj,{children:[(0,s.jsx)(l.QMR,{size:14}),(0,s.jsx)("span",{children:"Suggested data uses"})]}),value:"suggested",options:m.suggested},{label:(0,s.jsxs)(l.vyj,{children:[(0,s.jsx)(l.PJP.BBB,{}),(0,s.jsx)("span",{children:"All data uses"})]}),value:"all",options:m.all}]:m.all;return(0,s.jsxs)(l.jqI,{vertical:!0,gap:"small",children:[(0,s.jsx)(l.jqI,{align:"center",children:(0,s.jsx)(y.__,{htmlFor:o.id||a,fontSize:"xs",my:0,mr:1,children:"Data uses"})}),(0,s.jsx)(l.WPr,{options:h,mode:"multiple",placeholder:"Select data uses",allowClear:!0,loading:n,value:d.value,onChange:e=>{e.includes(_)?c(g()([...i,...e.filter(e=>e!==_)])):c(e)},status:p?"error":void 0,virtual:!1,...o}),(0,s.jsx)(y.Bc,{isInvalid:p,message:u.error,fieldName:d.name})]})},S=n(65735);let w=v.Ry().shape({name:v.Z_().required("Name is required").label("Name"),label_color:v.Z_().required("Color is required").label("Color"),systems:v.IX().of(v.Z_()).label("Systems"),data_uses:v.IX().of(v.Z_()).label("Data uses")});var C=e=>{let{selectedSystemKeys:t=[],onSubmit:n,onCancel:a,isSubmitting:i=!1}=e,{data:o=[],isLoading:d}=(0,j.fd)(),{data:u,isLoading:c}=(0,b.K3)(),p=(0,r.useMemo)(()=>o.map(e=>({label:e.name||e.fides_key,value:e.fides_key})),[o]),m=(0,r.useMemo)(()=>{var e;let n=null!==(e=null==u?void 0:u.filter(e=>t.includes(e.fides_key)))&&void 0!==e?e:[];return g()(null==n?void 0:n.flatMap(e=>e.privacy_declarations.map(e=>e.data_use)))},[u,t]),h=(0,r.useMemo)(()=>{var e;return null!==(e=null==u?void 0:u.map(e=>({label:e.name||e.fides_key,value:e.fides_key})))&&void 0!==e?e:[]},[u]),v={name:"",description:"",label_color:S.Ej.TAXONOMY_WHITE,systems:t,data_uses:[],active:!0};return(0,s.jsx)(f.J9,{initialValues:v,validationSchema:w,onSubmit:n,enableReinitialize:!0,children:e=>{let{isValid:t,dirty:n}=e;return(0,s.jsx)(f.l0,{children:(0,s.jsxs)(l.jqI,{vertical:!0,gap:"middle",children:[(0,s.jsx)(l.AntTypography.Title,{level:2,children:"Create system group"}),(0,s.jsx)(y.j0,{name:"name",label:"Name",isRequired:!0,variant:"stacked",placeholder:"Enter system group name"}),(0,s.jsx)(y.Ks,{name:"description",label:"Description",variant:"stacked",placeholder:"Enter system group description",resize:!1}),(0,s.jsx)(x.d,{name:"systems",label:"Systems",mode:"multiple",placeholder:"Select systems",options:h,layout:"stacked",allowClear:!0,loading:c}),(0,s.jsx)(k.Z,{name:"label_color",label:"Color"}),(0,s.jsx)(E,{name:"data_uses",options:p,loading:d,suggestedDataUses:m}),(0,s.jsxs)(l.jqI,{gap:"small",justify:"space-between",className:"pt-4",children:[(0,s.jsx)(l.wpx,{onClick:a,disabled:i,children:"Cancel"}),(0,s.jsx)(l.wpx,{type:"primary",htmlType:"submit",loading:i,disabled:!t||!n||i,"data-testid":"save-btn",children:"Create group"})]})]})})}})},N=n(31793),T=n(31883),O=e=>{let{selectedRowKeys:t,createModalIsOpen:n,setCreateModalIsOpen:a,handleCreateSystemGroup:o,handleBulkAddToGroup:d,groupMenuItems:u}=e,[c,f]=l.Pg3.useMessage(),[h,g]=(0,r.useState)(!1),[v]=(0,m.WP)(),{plus:x}=(0,i.hz)(),{data:y}=(0,N.wv)({page:1,size:100,include_external:!1}),[j]=(0,m.C9)(),b=(0,r.useCallback)(async e=>{let n=await v({data_steward:e,system_keys:t});(0,T.D4)(n)?c.error((0,p.e$)(n.error,"A problem occurred assigning stewards")):c.success("".concat(t.length," systems assigned to ").concat(e," successfully"))},[v,t,c]),k=async()=>{let e=await j(t);(0,T.D4)(e)?c.error((0,p.e$)(e.error,"A problem occurred deleting systems")):c.success("".concat(t.length," systems deleted successfully"))},_=(0,r.useMemo)(()=>{let e=[];return u.length&&x&&e.push(t.length?{key:"add-to-system-group",label:"Add to system group",children:[{key:"new-group",label:"Create new group +",onClick:()=>a(!0)},{type:"divider"},...u.map(e=>({key:e.key,label:e.label,onClick:()=>d(e.key)}))]}:{key:"new-group",label:"Create system group +",onClick:()=>a(!0)}),(null==y?void 0:y.items.length)&&e.push({key:"assign-data-steward",label:"Assign data steward",disabled:!t.length,children:y.items.map(e=>({key:e.username,label:e.username,onClick:()=>b(e.username)}))},{type:"divider"}),e.push({key:"delete",label:"Delete",disabled:!t.length,onClick:()=>{g(!0)}}),e},[u,x,null==y?void 0:y.items,t.length,a,d,b]);return(0,s.jsxs)(s.Fragment,{children:[f,(0,s.jsx)(l.$zI,{open:h,onCancel:()=>g(!1),onOk:k,okText:"Delete",okType:"danger",centered:!0,children:(0,s.jsxs)(l.AntTypography.Paragraph,{children:["Delete ",t.length," systems? This action cannot be undone."]})}),(0,s.jsx)(l.$zI,{open:n,destroyOnHidden:!0,onCancel:()=>a(!1),centered:!0,width:768,footer:null,children:(0,s.jsx)(C,{selectedSystemKeys:t.map(e=>e.toString()),onSubmit:o,onCancel:()=>a(!1)})}),(0,s.jsx)(l.S0p,{trigger:["click"],menu:{items:_},children:(0,s.jsx)(l.wpx,{icon:(0,s.jsx)(l.PJP._ME,{}),children:"Actions"})})]})},A=n(19904),I=n(26070),M=n(3110),P=n(99640),D=n(8125),R=n(16394),z=n(33335),W=n(69353),X=n(88832),Y=n(34929),q=e=>{let{privacyDeclarations:t,...n}=e,{getDataUseDisplayName:l}=(0,Y.Z)(),a=t.map(e=>e.data_use).map(e=>({label:l(e),key:e}));return(0,s.jsx)(I.Q,{values:a,...n})},Z=n(56141),B=n.n(Z),L=n(22583);let $="update-system-groups-msg";var F=e=>{let{selectedGroups:t,allGroups:n,system:a,columnState:i,...o}=e,[d,u]=(0,r.useState)(!1),[c,m]=(0,r.useState)(t.map(e=>e.fides_key)),[f,h]=l.Pg3.useMessage(),[g]=(0,b.qQ)(),v=async()=>{if(u(!1),B()(c,t.map(e=>e.fides_key)))return;f.open({key:$,type:"loading",content:"Updating groups for ".concat(a.name,"...")});let e=await g({...a,system_groups:c});(0,T.D4)(e)?f.open({key:$,type:"error",content:(0,p.e$)(e.error,"Failed to update system groups")}):f.open({key:$,type:"success",content:"Groups updated for ".concat(a.name)}),setTimeout(()=>{f.destroy($)},3e3)};return(0,s.jsxs)(l.jqI,{gap:"small",...o,children:[h,!d&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.j8w,{onClick:()=>u(!0),addable:!0,"data-testid":"group-add-btn","aria-label":"Add group"}),(0,s.jsx)(I.Q,{values:t.map(e=>e&&{label:e.name,key:e.fides_key,tagProps:{color:e.label_color?"".concat(L.j[e.label_color]):void 0,bordered:!1}}),columnState:i})]}),d&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.WPr,{options:n.map(e=>({label:e.name,value:e.fides_key})),mode:"tags",defaultValue:t.map(e=>e.fides_key),defaultOpen:!0,onChange:e=>{m(e)},onOpenChange:e=>{e||v()},onBlur:()=>u(!1),"aria-label":"Select groups"}),(0,s.jsx)(l.wpx,{"aria-label":"Update groups",icon:(0,s.jsx)(l.PJP.MCw,{}),onClick:v})]})]})},G=()=>{let{data:e}=(0,W.QD)(),t=(0,r.useMemo)(()=>e?e.reduce((e,t)=>({...e,[t.fides_key]:t}),{}):{},[e]),{data:n}=(0,N.wv)({page:1,size:100,include_external:!1}),[o]=(0,m.DW)(),[d]=(0,W.Xz)(),[u]=(0,W.Nr)(),[c,f]=(0,r.useState)(!1),[h,v]=(0,r.useState)(!1),[x,y]=(0,r.useState)(!1),[j,b]=(0,r.useState)(!1),[k,_]=(0,r.useState)(null),E=(0,D.o)({pagination:{defaultPageSize:25,pageSizeOptions:[25,50,100]},search:{defaultSearchQuery:""},sorting:{defaultSortKey:X.E.NAME,defaultSortOrder:"ascend",validColumns:[X.E.NAME]}}),{columnFilters:w,pageIndex:C,pageSize:O,searchQuery:Y,updateSearch:Z,sortKey:B,sortOrder:L}=E,{data:$,isLoading:G,isFetching:U}=(0,m.xF)({page:C,size:O,search:Y,sort_by:B,sort_asc:"ascend"===L,show_deleted:!0,...w}),Q=(0,r.useMemo)(()=>{var e,t;return{enableSelection:!0,dataSource:null!==(e=null==$?void 0:$.items)&&void 0!==e?e:[],totalRows:null!==(t=null==$?void 0:$.total)&&void 0!==t?t:0,isLoading:G,isFetching:U,getRowKey:e=>e.fides_key,customTableProps:{locale:{emptyText:(0,s.jsx)("div",{children:"No systems found"})}}}},[$,G,U]),{tableProps:J,selectionProps:H}=(0,D.V)(E,Q),{selectedRowKeys:K}=null!=H?H:{},[V,ee]=l.Pg3.useMessage(),{plus:et}=(0,i.hz)(),en=(0,a.useRouter)(),es=(0,A.Tg)([S.Sh.SYSTEM_DELETE]),el=async e=>{let t=await o(e.fides_key);(0,T.D4)(t)?V.error((0,p.e$)(t.error,"Failed to delete system")):V.success("Successfully deleted system"),b(!1)},ea=async e=>{let t={...e,fides_key:(0,z.E)(e.name),active:!0},n=await u(t);if((0,T.D4)(n))V.error((0,p.e$)(n.error));else{var s,l;let e="System group '".concat(n.data.name,"' created");(null===(s=n.data.systems)||void 0===s?void 0:s.length)===1?e+=" with system '".concat(n.data.systems[0],"'"):(null===(l=n.data.systems)||void 0===l?void 0:l.length)&&(e+=" with ".concat(n.data.systems.length," systems")),V.success(e)}y(!1)},er=(0,r.useCallback)(async e=>{var n;if(!K)return;let s=t[e],l=await d({...s,systems:g()([...null!==(n=s.systems)&&void 0!==n?n:[],...K.map(e=>e.toString())])});(0,T.D4)(l)?V.error((0,p.e$)(l.error)):V.success("".concat(null==K?void 0:K.length," systems added to group '").concat(e,"'"))},[t,d,K,V]),ei=(0,r.useMemo)(()=>{var t;return null!==(t=null==e?void 0:e.map(e=>({key:e.fides_key,label:e.name,onClick:()=>er(e.fides_key)})))&&void 0!==t?t:[]},[e,er]);return{tableProps:J,selectionProps:H,columns:(0,r.useMemo)(()=>{var a;return[{title:"Name",dataIndex:"name",key:X.E.NAME,render:(e,t)=>(0,s.jsx)(P.Z,{href:"/systems/configure/".concat(t.fides_key),"data-testid":"system-link-".concat(t.fides_key),children:e||t.fides_key}),ellipsis:!0,fixed:"left",sorter:!0,sortOrder:B===X.E.NAME?L:null},{dataIndex:"system_groups",key:X.E.SYSTEM_GROUPS,render:(n,l)=>{var a;return(0,s.jsx)(F,{selectedGroups:null!==(a=null==n?void 0:n.map(e=>null==t?void 0:t[e]).filter(e=>!!e))&&void 0!==a?a:[],allGroups:e,system:{...l,system_groups:null!=n?n:[]},columnState:{isWrapped:!0,isExpanded:c},className:"w-[432px]"})},title:"Groups",hidden:!et,menu:{items:M.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?f(!0):"collapse-all"===e.key&&f(!1)}},filters:(0,R.nZ)(null==e?void 0:e.map(e=>e.fides_key),e=>{var n,s;return null!==(s=null===(n=t[e])||void 0===n?void 0:n.name)&&void 0!==s?s:e}),filteredValue:(null==w?void 0:w.system_groups)||null},{title:"Data uses",menu:{items:M.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?v(!0):"collapse-all"===e.key&&v(!1)}},dataIndex:"privacy_declarations",key:X.E.DATA_USES,render:e=>(0,s.jsx)(q,{privacyDeclarations:e,columnState:{isWrapped:!0,isExpanded:h}})},{title:"Data stewards",dataIndex:"data_stewards",key:X.E.DATA_STEWARDS,render:e=>(0,s.jsx)(I.v,{values:null!=e?e:[],valueSuffix:"users"}),filters:(0,R.nZ)(null==n?void 0:null===(a=n.items)||void 0===a?void 0:a.map(e=>e.username)),filteredValue:(null==w?void 0:w.data_stewards)||null},{title:"Description",dataIndex:"description",key:X.E.DESCRIPTION,render:e=>(0,s.jsx)("div",{className:"max-w-96",children:(0,s.jsx)(l.AntTypography.Text,{ellipsis:{tooltip:e},children:e})}),ellipsis:!0},{title:"Actions",key:X.E.ACTIONS,render:(e,t)=>(0,s.jsxs)(l.jqI,{gap:"small",children:[(0,s.jsx)(l.wpx,{size:"small",onClick:()=>en.push("/systems/configure/".concat(t.fides_key)),icon:(0,s.jsx)(l.PJP.I8b,{}),"data-testid":"edit-btn",children:"Edit"}),es&&(0,s.jsx)(l.wpx,{size:"small",onClick:()=>{_(t),b(!0)},icon:(0,s.jsx)(l.PJP.ZNm,{}),"data-testid":"delete-btn",children:"Delete"})]}),fixed:"right"}]},[B,L,et,e,null==w?void 0:w.system_groups,null==w?void 0:w.data_stewards,null==n?void 0:n.items,c,t,h,es,en]),searchQuery:Y,updateSearch:Z,columnFilters:w,pageIndex:C,pageSize:O,createModalIsOpen:x,setCreateModalIsOpen:y,deleteModalIsOpen:j,setDeleteModalIsOpen:b,setSelectedSystemForDelete:_,handleCreateSystemGroup:ea,handleDelete:el,handleBulkAddToGroup:er,messageContext:ee,groupMenuItems:ei,selectedSystemForDelete:k}},U=()=>{var e,t;let{tableProps:n,selectionProps:a,columns:r,searchQuery:i,updateSearch:o,createModalIsOpen:d,setCreateModalIsOpen:u,deleteModalIsOpen:p,setDeleteModalIsOpen:m,handleDelete:f,handleCreateSystemGroup:h,handleBulkAddToGroup:g,messageContext:v,groupMenuItems:x,selectedSystemForDelete:y}=G();return(0,s.jsxs)(s.Fragment,{children:[v,(0,s.jsxs)(l.jqI,{justify:"space-between",className:"mb-4",children:[(0,s.jsx)(c.f,{value:i,onChange:o,"data-testid":"system-search"}),(0,s.jsxs)(l.jqI,{gap:"small",children:[(0,s.jsx)(O,{selectedRowKeys:null!==(e=null==a?void 0:a.selectedRowKeys)&&void 0!==e?e:[],createModalIsOpen:d,setCreateModalIsOpen:u,handleCreateSystemGroup:h,handleBulkAddToGroup:g,groupMenuItems:x}),(0,s.jsx)(l.$zI,{open:p,onCancel:()=>m(!1),onOk:()=>!!y&&f(y),okText:"Delete",okType:"danger",cancelText:"Cancel",centered:!0,children:(0,s.jsxs)(l.AntTypography.Paragraph,{children:["Are you sure you want to delete"," ",null!==(t=null==y?void 0:y.name)&&void 0!==t?t:null==y?void 0:y.fides_key,"? This action cannot be undone."]})})]})]}),(0,s.jsx)(l.V5H,{...n,columns:r,rowSelection:a})]})},Q=()=>{let e=(0,a.useRouter)(),{dictionaryService:t}=(0,i.hz)();return(0,s.jsx)(o.Z,{title:"System inventory",children:(0,s.jsxs)(l.xuv,{"data-testid":"system-management",children:[(0,s.jsxs)(u.Z,{heading:"System inventory",breadcrumbItems:[{title:"All systems"}],children:[t&&(0,s.jsx)(l.S0p,{trigger:["click"],menu:{items:[{label:"Create new system",key:"add-system",onClick:()=>e.push(d.N5)},{label:"Add multiple systems",key:"add-multiple-systems",onClick:()=>e.push(d.bJ)}]},children:(0,s.jsx)(l.wpx,{type:"primary","data-testid":"add-system-btn",icon:(0,s.jsx)(l.PJP._ME,{}),className:"absolute right-8 top-8",children:"Add system"})}),!t&&(0,s.jsx)(l.wpx,{type:"primary","data-testid":"add-system-btn",onClick:()=>e.push(d.N5),children:"Add new system"})]}),(0,s.jsx)(U,{})]})})}},31883:function(e,t,n){"use strict";n.d(t,{Bw:function(){return s.Bw},D4:function(){return s.D4}});var s=n(19043)}},function(e){e.O(0,[431,8765,9278,5163,7245,9965,2888,9774,179],function(){return e(e.s=90988)}),_N_E=e.O()}]);
|