ethyca-fides 2.72.3rc1__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.3rc1.dist-info → ethyca_fides-2.73.0.dist-info}/METADATA +2 -2
- {ethyca_fides-2.72.3rc1.dist-info → ethyca_fides-2.73.0.dist-info}/RECORD +270 -258
- fides/_version.py +3 -3
- fides/api/alembic/migrations/versions/a55e12c2c2df_add_tagging_instructions_to_data_.py +29 -0
- fides/api/api/v1/endpoints/generic_overrides.py +70 -1
- fides/api/models/privacy_preference.py +1 -0
- fides/api/models/sql_models.py +3 -0
- fides/api/schemas/taxonomy_extensions.py +8 -0
- fides/api/service/async_dsr/strategies/async_dsr_strategy_polling.py +1 -0
- fides/api/service/connectors/query_configs/saas_query_config.py +141 -78
- fides/api/service/connectors/saas_connector.py +45 -43
- 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-d1b22e891705eaf8.js → 1099-fa8b82f521b23cce.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{1115-584dac093cef6cc3.js → 1115-d7ce851b36722c41.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{1437-4604a69888906ec0.js → 1437-9dd64c20d38667df.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/155-1c80b19f58f44a0c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{1817-bfe4139324aa0279.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-8eead9d29546a50f.js → 2040-a18cc21821e2d121.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{2397-92f628c53688925b.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/2962-342ad1b4ab402ded.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{3377-80612c111e047cb6.js → 3377-c2c9eb177bec8719.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/3446-f40c352c43ac950c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{3696-e4abb6a922b954a2.js → 3696-21e3dec6c2023875.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3700-1f9f6e5ebfa3ab0a.js → 3700-a2903cd95b8a27cb.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3772-b945c6839e43c753.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-c1e41661ebf57178.js → 3923-7f0aa36c9e09cedf.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{401-c2f1e4ea077f1f26.js → 401-874303feb3899562.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{4496-8204168bae78092d.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-bf5655b5d697b714.js → 5185-fc171b6acce9f915.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5258-63325c03319e87dc.js → 5258-cf0d2c4c4d55a94b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5279-a05b93a8db6a3e79.js → 5279-8637d735471ec7f1.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{549-3e3b8d01bc984f96.js → 549-2d9bde37e5fe13eb.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5643-7800464c8df7a78e.js → 5643-48a5e0ad8b9fc3f7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5783-7deeb7de5d2db4c4.js → 5783-63912bab7f80b0f8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6277-970bb31d9b0c0007.js → 6277-ec0e3fa4e4614098.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/6315-79a1506e01f2f92b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6419-11d67f7fd4e2f247.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6853-c348f6e95f987cbf.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{6954-8b106311a3be35f4.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-120f536e09decb85.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{7476-08717f00da5f89ab.js → 7476-4234fb244676ec13.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{7488-bad160a2bfd89871.js → 7488-2db0992474f8056e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{7630-775c578fa8109b0f.js → 7630-d7bd74d0cfdb22df.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{7773-24899908bf8ff659.js → 7773-6dce6187fe2c6984.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{796-6fe49d134f660156.js → 796-fae64888b8b2f369.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{8011-c23d609ed3f0efa5.js → 8011-6e40c969c9fa7d35.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{8212-67ac884660ddb63a.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-6428eac9f38b3886.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{9330-6eb11127296c54c2.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-1f42934a2863992e.js → 9826-aecc5ddec86989dc.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9899-63998972698a49fb.js → 9899-303921e3d0697960.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/9965-6906ffdaef0f0d69.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{404-962d132471cd41ba.js → 404-c31cef0ce3fbeebf.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{_app-9de54d6135682f7b.js → _app-5fd4e06224960492.js} +11 -11
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-a5865f42aafbe1f8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-e2a5c951347195e3.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-7c829e58485fc821.js → add-vendors-fcd031b2b775e4f3.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-5c58b69dd473cc06.js → configure-0bd2eb0110873c4d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-58460ac9c1dface5.js → [id]-0dd17c74a6cc17ff.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-b6b2d50d894cefa5.js → privacy-experience-ae8dff75e1c6c413.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-25ce8366e689363b.js → [id]-84ba8b9947b9af0a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-faa457089616711a.js → new-f03d1d0df4661a33.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-a7fe3925771bb6c3.js → privacy-notices-5a553b4bdbf85aa9.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-45a2901a35edc8f7.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-a7a4e419e4086033.js → consent-289d21aa6c42828b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-ffb6e0fe6712342e.js → [projectUrn]-cb56d56b9d918682.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-3c935e93208d2bdd.js → projects-ccb66ba6d1ad93fc.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{resources-96be972a983616e3.js → resources-ecb2d925d75dfe1e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{data-catalog-79d06a04698c47c0.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-6cc1ba1f102ae77d.js → activity-7dded115499a4a4a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datamap-d1bb19fe4ef393dc.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-e04a4e16ccf32aef.js → [...subfieldNames]-58c3f4c0b490264b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-a40c4febe16a0a6d.js → [collectionName]-74290432e74fcdc5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-f500a77eefb057e7.js → [datasetId]-8dad45f070a06609.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{new-5c20080cdb053b1d.js → new-6aed6dc24c3be001.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{dataset-96355a68e8c28fe8.js → dataset-fdaec997c1b0753f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-448729ee9d1d78c3.js → [id]-63c4805e40673c60.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-42c720ec5c941573.js → new-b5a49743387eecef.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-8f0804d9a38688a4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{index-ca794e85c16cba67.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-b0da32fe3564c129.js +1 -0
- 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]-058125922d1eaeec.js → [id]-0e4e4e7110362022.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests/{new-7a5f76708c79f714.js → new-2e15f6272e9aaeb6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/{digests-31bed1f86b89d1d8.js → digests-65626dfcfacdc605.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers/{[key]-d08f3a7cd2d011ec.js → [key]-768c4e2f6b05304c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers/{new-cb2c7fbc26886052.js → new-2d57a70e4d32e651.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/{providers-40b9f1f70d27b660.js → providers-83f78354fa34bffe.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates/{[id]-a6ae72abe59ff830.js → [id]-1b31764f520fbbc5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates/{add-template-a3e4b5b575b31be1.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-9644c0f088a01fea.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-11a70bcfa672ce8f.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-24a8c2ab57625556.js → storage-16f77a6291bb02fe.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-1926359bdf5d6c30.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]-47118b9976ad7212.js → [id]-dd3c3d780533a9c2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-2e6b0d8b409ba1fd.js → add-property-d1af260c3ddbf68b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{properties-32486c25255c9cb1.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-4c20c08ca7ea8cff.js → consent-39b5142099ed8705.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/{[id]-a270325109398f48.js → [id]-b5140de4431a7ff5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/{new-2e0c8e249f286427.js → new-dcc16459e754fbbd.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{custom-fields-8e4a76376927afd5.js → custom-fields-64c638ea33bb3ff9.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-e3dcef1ec8cf8b9e.js → domain-records-3843fbaf5bc433f1.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domains-2e88cc7a6074a28b.js → domains-ea549fabce96fde4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-7469d2f85396c693.js → email-templates-0fe318a9dfc1f593.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-20789aa0c84d544e.js → locations-c42c856510cad6fd.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-f84a13eb9688cb5f.js → organization-e4c552a5797c3fa5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{privacy-requests-b72df6f3d460125f.js → privacy-requests-2790d31b59cc3c74.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-aa02bc818e089c49.js → regulations-3c608512c415fca4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/{test-datasets-5be9ce7a745ce908.js → test-datasets-e0e1a5142e41e9f2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-2fc7c0d3988427b3.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]-6217433a26599521.js → [id]-75d96422db98196f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-b6c4bf35c003965d.js → user-management-598f98fd88505e1e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{webpack-8eac1ea5c825c8b4.js → webpack-0a3b419ab682b8f9.js} +1 -1
- fides/ui-build/static/admin/_next/static/css/012b10627a654d5c.css +1 -0
- fides/ui-build/static/admin/_next/static/css/{f38242c11f7fea64.css → 05d05fc31d09638b.css} +1 -1
- fides/ui-build/static/admin/_next/static/css/0fd6e0884cfcc5f3.css +1 -0
- fides/ui-build/static/admin/_next/static/css/14ba79c49597d37a.css +1 -0
- fides/ui-build/static/admin/_next/static/css/{34a7eb08b86ddb57.css → 3d6582469f7d56e0.css} +1 -1
- fides/ui-build/static/admin/_next/static/css/4861ca3e088f2d05.css +1 -0
- fides/ui-build/static/admin/_next/static/css/{de09ed8a0adf1ca2.css → 919f947a862d28cd.css} +1 -1
- fides/ui-build/static/admin/_next/static/css/a1800714b486e230.css +1 -0
- fides/ui-build/static/admin/_next/static/css/af32fcac7a177a0e.css +1 -0
- fides/ui-build/static/admin/_next/static/css/cb417f0587918f85.css +1 -0
- fides/ui-build/static/admin/_next/static/css/dd15c278b964de80.css +1 -0
- fides/ui-build/static/admin/_next/static/css/{5f393dea1c0d031c.css → f89607996ad54f4b.css} +1 -1
- fides/ui-build/static/admin/_next/static/css/f9a2a44d3d34c904.css +1 -0
- fides/ui-build/static/admin/add-systems/manual.html +1 -1
- fides/ui-build/static/admin/add-systems/multiple.html +1 -1
- fides/ui-build/static/admin/add-systems.html +1 -1
- fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
- fides/ui-build/static/admin/consent/configure.html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
- fides/ui-build/static/admin/consent/properties.html +1 -1
- fides/ui-build/static/admin/consent/reporting.html +1 -1
- fides/ui-build/static/admin/consent.html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
- fides/ui-build/static/admin/data-catalog.html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/datastore/[monitorId].html +1 -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-ext-gpp.js +1 -1
- fides/ui-build/static/admin/lib/fides-headless.js +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 +3 -3
- 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 -0
- 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/chunks/155-bf4e3ffb18f29226.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1896-49010da5c2705fc5.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/2150-930ffaf2c4718edc.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/255-1bc0cbef7a59cdc6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/2921-9b596ba7f5267afc.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/2962-e92d525bf570a9a3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3550-83cb70e80cbe41ba.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4817-066598cef25d7e88.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6315-4a2151f87c7eefb6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6419-9b3a86af57c86791.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6853-6d64d627df6f8194.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7245-53a20677c49b41c8.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/8373-43b6df89a2085d6b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9046-3a08a09a598396ca.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9070-6d3aaaf5aa5913ba.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9682-65d253d54f84f6f2.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9965-4709f43bf62af9a9.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-055d058d16c02957.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-0058fe05f2d23d1a.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-e9ec351281c54822.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-e50e9c8e11412b2a.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/data-explorer-09a3a992e564f971.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-878aa4ab0746df5b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-a2e9c0bfa67c633d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datamap-18f255a8bbeecaa4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-a8fc95a46de38b35.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-2f1dc17eba11fb4e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations-bbec0140433a199b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates-4918f86f7300ac9b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/ant-components-39b5586d9c8b64aa.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/AntForm-5163f3213377bd35.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikAntFormItem-0b1547cd9b114c6b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikControlled-da562cba4cffd6bb.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikField-3a587676869d2ef6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/forms-defc3b917306a6d8.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-787621468b5a7619.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-da634187d8201ab3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-e410d13a2b35cff4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-aec1bf8a409ec75f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems-86f5557384124f79.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-2589729c47976357.js +0 -1
- fides/ui-build/static/admin/_next/static/css/23cf870196941c9a.css +0 -1
- fides/ui-build/static/admin/_next/static/css/304c6f148886a8d4.css +0 -1
- fides/ui-build/static/admin/_next/static/hRLR7azkI57zC2PfdYodO/_buildManifest.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]/data-explorer.html +0 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +0 -1
- {ethyca_fides-2.72.3rc1.dist-info → ethyca_fides-2.73.0.dist-info}/WHEEL +0 -0
- {ethyca_fides-2.72.3rc1.dist-info → ethyca_fides-2.73.0.dist-info}/entry_points.txt +0 -0
- {ethyca_fides-2.72.3rc1.dist-info → ethyca_fides-2.73.0.dist-info}/licenses/LICENSE +0 -0
- {ethyca_fides-2.72.3rc1.dist-info → ethyca_fides-2.73.0.dist-info}/top_level.txt +0 -0
- /fides/ui-build/static/admin/_next/static/{hRLR7azkI57zC2PfdYodO → 6kEWO-NXzxn1tvUedYFei}/_ssgManifest.js +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/{[resourceUrn]-3b59925f6c9a13a9.js → [resourceUrn]-5d133ec635cd716c.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/{[resourceUrn]-8d7d9152e215c3b6.js → [resourceUrn]-9d8efe43b69a285d.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-260f5deb68966b70.js → [resourceUrn]-2df143c1e1f79040.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-d735dab3d9f3adc5.js → detection-e37c800313e2a422.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-c7f055275a2c503f.js → [resourceUrn]-7022ca5fa834b633.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-b1cfd55c7e127865.js → discovery-6178e22397f20f92.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/user-management/{new-e399005c3bb4db1b.js → new-bc1568bb47d198a9.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1500],{50697:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/integrations/[id]",function(){return a(19267)}])},67991:function(e,t,a){"use strict";a.d(t,{Od:function(){return s},QZ:function(){return i}});var n=a(27378);let i=e=>{let{items:t,selected:a,onChange:n}=e,i=t.every(e=>a.includes(e.id))&&!!t.length;return{allSelected:i,someSelected:t.some(e=>a.includes(e.id))&&!!t.length,handleToggleAll:()=>{i?n([]):n(t.map(e=>e.id))},handleToggleSelection:e=>{a.includes(e)?n(a.filter(t=>t!==e)):n([...a,e])}}},s=e=>{let{initialSelected:t,initialExcluded:a,initialAllSelected:i,itemCount:s}=e,[l,r]=(0,n.useState)(t),[o,d]=(0,n.useState)(a),[c,u]=(0,n.useState)(i||l.length===s),m=!!l.length||!!o.length;return{selected:l,excluded:o,allSelected:c,someSelected:m,handleToggleAll:()=>{c?(d([]),o.length||u(!1)):(r([]),u(!0))},handleToggleItemSelected:e=>{if(c)d(o.includes(e)?o.filter(t=>t!==e):[...o,e]);else{let t=l.includes(e)?l.filter(t=>t!==e):[...l,e];r(t),t.length===s&&u(!0)}}}}},90111:function(e,t,a){"use strict";var n=a(24246),i=a(20595);t.Z=e=>{let{children:t,...a}=e;return(0,n.jsx)(i.xuv,{p:4,mb:4,border:"1px solid",borderColor:"gray.200",bgColor:"gray.50",borderRadius:"md",...a,children:t})}},8411:function(e,t,a){"use strict";a.d(t,{NA:function(){return s},Z8:function(){return i}});var n=a(39449);let i={[n._F.ER]:"Eritrea",[n._F.DJ]:"Djibouti",[n._F.MR]:"Mauritania",[n._F.NA]:"Namibia",[n._F.GH]:"Ghana",[n._F.SS]:"South Sudan",[n._F.SC]:"Seychelles",[n._F.IO]:"British Indian Ocean Territory",[n._F.GQ]:"Equatorial Guinea",[n._F.AO]:"Angola",[n._F.CG]:"Republic of the Congo",[n._F.BW]:"Botswana",[n._F.BI]:"Burundi",[n._F.DZ]:"Algeria",[n._F.TD]:"Chad",[n._F.NG]:"Nigeria",[n._F.TZ]:"Tanzania",[n._F.EH]:"Western Sahara",[n._F.SN]:"Senegal",[n._F.LR]:"Liberia",[n._F.ZA]:"South Africa",[n._F.CV]:"Cape Verde",[n._F.GM]:"Gambia",[n._F.SD]:"Sudan",[n._F.KM]:"Comoros",[n._F.SZ]:"Eswatini",[n._F.UG]:"Uganda",[n._F.MG]:"Madagascar",[n._F.RW]:"Rwanda",[n._F.CD]:"DR Congo",[n._F.CM]:"Cameroon",[n._F.SH]:"Saint Helena, Ascension and Tristan da Cunha",[n._F.TG]:"Togo",[n._F.MU]:"Mauritius",[n._F.NE]:"Niger",[n._F.BJ]:"Benin",[n._F.EG]:"Egypt",[n._F.LS]:"Lesotho",[n._F.ET]:"Ethiopia",[n._F.MA]:"Morocco",[n._F.YT]:"Mayotte",[n._F.BF]:"Burkina Faso",[n._F.RE]:"R\xe9union",[n._F.ST]:"S\xe3o Tom\xe9 and Pr\xedncipe",[n._F.CF]:"Central African Republic",[n._F.MZ]:"Mozambique",[n._F.MW]:"Malawi",[n._F.ML]:"Mali",[n._F.ZM]:"Zambia",[n._F.LY]:"Libya",[n._F.GW]:"Guinea-Bissau",[n._F.SO]:"Somalia",[n._F.KE]:"Kenya",[n._F.GN]:"Guinea",[n._F.ZW]:"Zimbabwe",[n._F.TN]:"Tunisia",[n._F.SL]:"Sierra Leone",[n._F.GA]:"Gabon",[n._F.CI]:"Ivory Coast",[n._F.JO]:"Jordan",[n._F.PK]:"Pakistan",[n._F.KP]:"North Korea",[n._F.MO]:"Macau",[n._F.AM]:"Armenia",[n._F.SY]:"Syria",[n._F.TJ]:"Tajikistan",[n._F.SA]:"Saudi Arabia",[n._F.KR]:"South Korea",[n._F.NP]:"Nepal",[n._F.PH]:"Philippines",[n._F.IQ]:"Iraq",[n._F.LB]:"Lebanon",[n._F.MN]:"Mongolia",[n._F.PS]:"Palestine",[n._F.YE]:"Yemen",[n._F.JP]:"Japan",[n._F.KZ]:"Kazakhstan",[n._F.LK]:"Sri Lanka",[n._F.MM]:"Myanmar",[n._F.KG]:"Kyrgyzstan",[n._F.CN]:"China",[n._F.AF]:"Afghanistan",[n._F.OM]:"Oman",[n._F.IN]:"India",[n._F.LA]:"Laos",[n._F.UZ]:"Uzbekistan",[n._F.MV]:"Maldives",[n._F.ID]:"Indonesia",[n._F.VN]:"Vietnam",[n._F.MY]:"Malaysia",[n._F.TW]:"Taiwan",[n._F.KH]:"Cambodia",[n._F.AE]:"United Arab Emirates",[n._F.HK]:"Hong Kong",[n._F.GE]:"Georgia (Country)",[n._F.BD]:"Bangladesh",[n._F.KW]:"Kuwait",[n._F.TM]:"Turkmenistan",[n._F.QA]:"Qatar",[n._F.BH]:"Bahrain",[n._F.BN]:"Brunei",[n._F.TH]:"Thailand",[n._F.BT]:"Bhutan",[n._F.SG]:"Singapore",[n._F.IL]:"Israel",[n._F.AZ]:"Azerbaijan",[n._F.TL]:"Timor-Leste",[n._F.IR]:"Iran",[n._F.TR]:"Turkey",[n._F.MK]:"North Macedonia",[n._F.IE]:"Ireland",[n._F.DK]:"Denmark",[n._F.SK]:"Slovakia",[n._F.MD]:"Moldova",[n._F.AX]:"\xc5land Islands",[n._F.PL]:"Poland",[n._F.BA]:"Bosnia and Herzegovina",[n._F.SM]:"San Marino",[n._F.CZ]:"Czechia",[n._F.EE]:"Estonia",[n._F.XK]:"Kosovo",[n._F.FO]:"Faroe Islands",[n._F.SJ]:"Svalbard and Jan Mayen",[n._F.GG]:"Guernsey",[n._F.FR]:"France",[n._F.NL]:"Netherlands",[n._F.FI]:"Finland",[n._F.PT]:"Portugal",[n._F.DE]:"Germany",[n._F.MT]:"Malta",[n._F.JE]:"Jersey",[n._F.IS]:"Iceland",[n._F.ES]:"Spain",[n._F.GI]:"Gibraltar",[n._F.NO]:"Norway",[n._F.CY]:"Cyprus",[n._F.RS]:"Serbia",[n._F.LT]:"Lithuania",[n._F.MC]:"Monaco",[n._F.LU]:"Luxembourg",[n._F.UA]:"Ukraine",[n._F.IM]:"Isle of Man",[n._F.RO]:"Romania",[n._F.BE]:"Belgium",[n._F.SE]:"Sweden",[n._F.ME]:"Montenegro",[n._F.LV]:"Latvia",[n._F.VA]:"Vatican City",[n._F.AT]:"Austria",[n._F.AL]:"Albania",[n._F.LI]:"Liechtenstein",[n._F.GR]:"Greece",[n._F.IT]:"Italy",[n._F.AD]:"Andorra",[n._F.GB]:"United Kingdom",[n._F.RU]:"Russia",[n._F.SI]:"Slovenia",[n._F.BY]:"Belarus",[n._F.CH]:"Switzerland",[n._F.HU]:"Hungary",[n._F.BG]:"Bulgaria",[n._F.HR]:"Croatia",[n._F.TC]:"Turks and Caicos Islands",[n._F.CW]:"Cura\xe7ao",[n._F.GP]:"Guadeloupe",[n._F.UM]:"United States Minor Outlying Islands",[n._F.GT]:"Guatemala",[n._F.PM]:"Saint Pierre and Miquelon",[n._F.BQ]:"Caribbean Netherlands",[n._F.GL]:"Greenland",[n._F.SX]:"Sint Maarten",[n._F.PA]:"Panama",[n._F.AW]:"Aruba",[n._F.MQ]:"Martinique",[n._F.AG]:"Antigua and Barbuda",[n._F.BM]:"Bermuda",[n._F.CU]:"Cuba",[n._F.GD]:"Grenada",[n._F.NI]:"Nicaragua",[n._F.LC]:"Saint Lucia",[n._F.KN]:"Saint Kitts and Nevis",[n._F.DO]:"Dominican Republic",[n._F.VC]:"Saint Vincent and the Grenadines",[n._F.BZ]:"Belize",[n._F.HT]:"Haiti",[n._F.JM]:"Jamaica",[n._F.BS]:"Bahamas",[n._F.MX]:"Mexico",[n._F.MF]:"Saint Martin",[n._F.SV]:"El Salvador",[n._F.BL]:"Saint Barth\xe9lemy",[n._F.AI]:"Anguilla",[n._F.MS]:"Montserrat",[n._F.VG]:"British Virgin Islands",[n._F.BB]:"Barbados",[n._F.HN]:"Honduras",[n._F.KY]:"Cayman Islands",[n._F.DM]:"Dominica",[n._F.TT]:"Trinidad and Tobago",[n._F.CR]:"Costa Rica",[n._F.SR]:"Suriname",[n._F.CX]:"Christmas Island",[n._F.WS]:"Samoa",[n._F.PF]:"French Polynesia",[n._F.AS]:"American Samoa",[n._F.NC]:"New Caledonia",[n._F.TK]:"Tokelau",[n._F.PW]:"Palau",[n._F.KI]:"Kiribati",[n._F.VU]:"Vanuatu",[n._F.PN]:"Pitcairn Islands",[n._F.CK]:"Cook Islands",[n._F.FJ]:"Fiji",[n._F.PG]:"Papua New Guinea",[n._F.MP]:"Northern Mariana Islands",[n._F.NU]:"Niue",[n._F.TV]:"Tuvalu",[n._F.NF]:"Norfolk Island",[n._F.TO]:"Tonga",[n._F.FM]:"Micronesia",[n._F.SB]:"Solomon Islands",[n._F.NR]:"Nauru",[n._F.WF]:"Wallis and Futuna",[n._F.GU]:"Guam",[n._F.AU]:"Australia",[n._F.NZ]:"New Zealand",[n._F.MH]:"Marshall Islands",[n._F.CC]:"Cocos (Keeling) Islands",[n._F.VE]:"Venezuela",[n._F.PY]:"Paraguay",[n._F.BR]:"Brazil",[n._F.CO]:"Colombia",[n._F.PE]:"Peru",[n._F.CL]:"Chile",[n._F.UY]:"Uruguay",[n._F.AR]:"Argentina",[n._F.GY]:"Guyana",[n._F.BO]:"Bolivia",[n._F.GF]:"French Guiana",[n._F.EC]:"Ecuador",[n._F.FK]:"Falkland Islands",[n._F.US_AL]:"Alabama",[n._F.US_AK]:"Alaska",[n._F.US_AZ]:"Arizona",[n._F.US_AR]:"Arkansas",[n._F.US_CA]:"California",[n._F.US_CO]:"Colorado",[n._F.US_CT]:"Connecticut",[n._F.US_DE]:"Delaware",[n._F.US_DC]:"District of Columbia (DC)",[n._F.US_FL]:"Florida",[n._F.US_GA]:"Georgia",[n._F.US_HI]:"Hawaii",[n._F.US_ID]:"Idaho",[n._F.US_IL]:"Illinois",[n._F.US_IN]:"Indiana",[n._F.US_IA]:"Iowa",[n._F.US_KS]:"Kansas",[n._F.US_KY]:"Kentucky",[n._F.US_LA]:"Louisiana",[n._F.US_ME]:"Maine",[n._F.US_MD]:"Maryland",[n._F.US_MA]:"Massachusetts",[n._F.US_MI]:"Michigan",[n._F.US_MN]:"Minnesota",[n._F.US_MS]:"Mississippi",[n._F.US_MO]:"Missouri",[n._F.US_MT]:"Montana",[n._F.US_NE]:"Nebraska",[n._F.US_NV]:"Nevada",[n._F.US_NH]:"New Hampshire",[n._F.US_NJ]:"New Jersey",[n._F.US_NM]:"New Mexico",[n._F.US_NY]:"New York",[n._F.US_NC]:"North Carolina",[n._F.US_ND]:"North Dakota",[n._F.US_OH]:"Ohio",[n._F.US_OK]:"Oklahoma",[n._F.US_OR]:"Oregon",[n._F.US_PA]:"Pennsylvania",[n._F.US_PR]:"Puerto Rico",[n._F.US_RI]:"Rhode Island",[n._F.US_SC]:"South Carolina",[n._F.US_SD]:"South Dakota",[n._F.US_TN]:"Tennessee",[n._F.US_TX]:"Texas",[n._F.US_UT]:"Utah",[n._F.US_VA]:"Virginia",[n._F.US_VI]:"United States Virgin Islands",[n._F.US_VT]:"Vermont",[n._F.US_WA]:"Washington",[n._F.US_WV]:"West Virginia",[n._F.US_WI]:"Wisconsin",[n._F.US_WY]:"Wyoming",[n._F.CA_AB]:"Alberta",[n._F.CA_BC]:"British Columbia",[n._F.CA_MB]:"Manitoba",[n._F.CA_NB]:"New Brunswick",[n._F.CA_NL]:"Newfoundland and Labrador",[n._F.CA_NS]:"Nova Scotia",[n._F.CA_ON]:"Ontario",[n._F.CA_PE]:"Prince Edward Island",[n._F.CA_QC]:"Quebec",[n._F.CA_SK]:"Saskatchewan",[n._F.CA_NT]:"Northwest Territories",[n._F.CA_NU]:"Nunavut",[n._F.CA_YT]:"Yukon",[n._F.CA]:"Canada",[n._F.US]:"United States",[n._F.MEXICO_CENTRAL_AMERICA]:"Mexico and Central America",[n._F.CARIBBEAN]:"Caribbean",[n._F.EEA]:"European Economic Area (EEA)",[n._F.NON_EEA]:"Non European Economic Area",[n._F.GLOBAL]:"Global"},s=new Map(Object.entries(i));Object.entries(i).map(e=>({value:e[0],label:e[1]}))},8125:function(e,t,a){"use strict";a.d(t,{V:function(){return s},o:function(){return d}});var n=a(27378),i=a(32735);let s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{enableSelection:a=!1,getRowKey:s,bulkActions:l,isLoading:r=!1,isFetching:o=!1,dataSource:d=[],totalRows:c=0,currentPage:u,pageSize:m,customTableProps:h={}}=t,p=(0,n.useCallback)(e=>{if(e&&"object"==typeof e){if(e.id)return String(e.id);if(e.key)return String(e.key)}return String(e)},[]),_=s||p,[g,x]=(0,n.useState)([]),[y,f]=(0,n.useState)([]),F=(0,n.useCallback)(()=>{x([]),f([])},[]),v=(0,n.useMemo)(()=>({selectedRowKeys:g,selectedRows:y,resetSelections:F}),[g,y,F]),S=(0,n.useMemo)(()=>{if(a)return{selectedRowKeys:g,onChange:(e,t)=>{x(e),f(t)}}},[a,g]),b=(0,n.useCallback)((t,a,n)=>{var i,s;let l=null!==(i=t.current)&&void 0!==i?i:e.pageIndex,r=null!==(s=t.pageSize)&&void 0!==s?s:e.pageSize,o=l!==e.pageIndex||r!==e.pageSize;o?(t.current&&t.current!==e.pageIndex&&e.updatePageIndex(t.current),t.pageSize&&t.pageSize!==e.pageSize&&e.updatePageSize(t.pageSize)):e.updateFilters(a||{});let d=n&&!Array.isArray(n)?n.field:void 0,c=n&&!Array.isArray(n)&&null!==n.order?n.order:void 0;o||e.updateSorting(d,c)},[e]),j=(0,n.useMemo)(()=>{var t,a,n,s,l;return{current:null!=u?u:e.pageIndex,pageSize:null!=m?m:e.pageSize,total:c,showSizeChanger:null===(s=null===(t=e.paginationConfig)||void 0===t?void 0:t.showSizeChanger)||void 0===s||s,pageSizeOptions:null!==(l=null===(n=e.paginationConfig)||void 0===n?void 0:null===(a=n.pageSizeOptions)||void 0===a?void 0:a.map(String))&&void 0!==l?l:i.VZ}},[u,e.pageIndex,m,e.pageSize,c,e.paginationConfig]),C=(0,n.useMemo)(()=>({dataSource:d,loading:r||o,pagination:j,onChange:b,rowKey:_,scroll:{x:"max-content",scrollToFirstRowOnChange:!0},size:"small",bordered:!0,...h}),[d,r,o,j,b,_,h]),T=g.map(String),k=y.length>0,E=(0,n.useCallback)(e=>{let t=null==l?void 0:l.actions.find(t=>t.key===e);return t?{disabled:!k||!!t.disabled&&t.disabled(y),loading:t.loading||!1,onClick:()=>t.onClick(y)}:{disabled:!0,loading:!1}},[l,k,y]);return(0,n.useMemo)(()=>({tableProps:C,selectionProps:S,selectionState:v,selectedRows:y,selectedKeys:T,hasSelectedRows:k,resetSelections:F,getBulkActionProps:E,isLoadingOrFetching:r||o,hasData:d.length>0}),[C,S,v,y,T,k,F,E,r,o,d.length])};var l=a(40431),r=a(17245);let o=()=>({filters:(0,l.WJ)(e=>e).withDefault({})}),d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{pagination:t={},sorting:a={},search:i={},onStateChange:s,disableUrlState:d=!1}=e,{pageIndex:c,pageSize:u,resetPagination:m,updatePageIndex:h,updatePageSize:p,pageSizeOptions:_,showSizeChanger:g}=(0,r.h0)({...t,disableUrlState:d}),{sortKey:x,sortOrder:y,updateSorting:f,resetSorting:F}=(0,r.rK)({...a,disableUrlState:d}),{searchQuery:v,updateSearch:S,resetSearch:b}=(0,r.Rx)({...i,disableUrlState:d}),[j,C]=(0,n.useState)({}),T=(0,n.useMemo)(()=>d?null:o(),[d]),[k,E]=(0,l.XI)(null!=T?T:{},{history:"push"}),N=(0,n.useMemo)(()=>{var e;return{pageIndex:c,pageSize:u,sortKey:x,sortOrder:y,columnFilters:d?j:null!==(e=k.filters)&&void 0!==e?e:{},searchQuery:v}},[d,j,k,c,u,x,y,v]),A=(0,n.useCallback)((e,t)=>{f(e,t),m()},[f,m]),I=(0,n.useCallback)(e=>{if(d)C(e);else{let t=Object.fromEntries(Object.entries(e).filter(e=>{let[,t]=e;return null!=t}));E({filters:Object.keys(t).length>0?t:null})}m()},[d,E,m]),w=(0,n.useCallback)(e=>{S(e),m()},[S,m]),M=(0,n.useCallback)(()=>{d?C({}):E({filters:null}),m(),F(),b()},[d,E,m,F,b]);return(0,n.useEffect)(()=>{s&&s(N)},[N,s]),{state:N,pageIndex:N.pageIndex,pageSize:N.pageSize,updatePageIndex:h,updatePageSize:p,sortKey:N.sortKey,sortOrder:N.sortOrder,updateSorting:A,columnFilters:N.columnFilters,updateFilters:I,searchQuery:N.searchQuery,updateSearch:w,resetState:M,paginationConfig:{pageSizeOptions:_,showSizeChanger:g}}}},14908:function(e,t,a){"use strict";var n=a(86677),i=a(27378);let s=e=>e.startsWith("#")?e.slice(1):e;t.Z=e=>{let{tabKeys:t,initialTab:a}=e,l=(0,n.useRouter)(),r=l.asPath.split("#")[1]||t[0],[o,d]=(0,i.useState)(r);return(0,i.useEffect)(()=>{a&&t.includes(a)&&d(a)},[a,t,l.isReady]),{activeTab:o,onTabChange:(0,i.useCallback)(async e=>{if(!t.includes(e)){await l.replace({pathname:l.pathname,query:l.query,hash:void 0}),d(t[0]);return}l.isReady&&(await l.replace({pathname:l.pathname,query:l.query,hash:s(e)},void 0,{shallow:!0}),d(e))},[l,t]),setActiveTab:d}}},79494:function(e,t,a){"use strict";var n=a(24246),i=a(20595);t.Z=e=>{let{title:t,icon:a,type:s,...l}=e;return(0,n.jsx)(i.wpx,{size:"small",type:s,"data-testid":"action-".concat(t),icon:a,iconPosition:"start",...l,children:t})}},19267:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return tI}});var n,i,s=a(24246),l=a(20595),r=a(86677),o=a(77213),d=a(77830),c=a(58754),u=a(14908),m=a(20682),h=a(94725),p=a(45216),_=a(38187),g=a(27378);let x=(0,l.IUT)({displayName:"MonitorIcon",viewBox:"0 0 12 12",path:(0,s.jsx)("path",{d:"M1.33333 2.21875C1.15 2.21875 1 2.37344 1 2.5625V5.65625H3.66667C3.84167 5.65625 4.00417 5.75078 4.09583 5.90762L4.62708 6.8207L5.88542 4.22324C5.96667 4.05566 6.13125 3.94609 6.3125 3.93965C6.49375 3.9332 6.66667 4.02773 6.76042 4.18887L7.61458 5.65625H8.83333C9.11042 5.65625 9.33333 5.88613 9.33333 6.17188C9.33333 6.45762 9.11042 6.6875 8.83333 6.6875H7.33333C7.15833 6.6875 6.99583 6.59297 6.90417 6.43613L6.37292 5.52305L5.11458 8.12051C5.03333 8.28809 4.86875 8.39766 4.6875 8.4041C4.50625 8.41055 4.33333 8.31602 4.23958 8.15488L3.38542 6.6875H1V9.4375C1 9.62656 1.15 9.78125 1.33333 9.78125H10.6667C10.85 9.78125 11 9.62656 11 9.4375V2.5625C11 2.37344 10.85 2.21875 10.6667 2.21875H1.33333ZM0 2.5625C0 1.8041 0.597917 1.1875 1.33333 1.1875H10.6667C11.4021 1.1875 12 1.8041 12 2.5625V9.4375C12 10.1959 11.4021 10.8125 10.6667 10.8125H1.33333C0.597917 10.8125 0 10.1959 0 9.4375V2.5625Z",fill:"currentColor"})});var y=a(18225),f=a(812),F=a(17245),v=a(8133),S=a(46628),b=a(70675),j=a(67991),C=a(46238),T=a(92222),k=a(59003),E=a(47935);let N=(0,T.Cl)();var A=e=>{let{items:t,totalItemCount:a,selected:n,excluded:i,allSelected:r,someSelected:o,moreLoading:d,handleToggleSelection:c,handleToggleAll:u,onMoreClick:m}=e,h=t.map(e=>({id:e,isSelected:n.includes(e),isExcluded:i.includes(e)})),p=(0,g.useMemo)(()=>[N.display({id:"select",cell:e=>{let{row:t}=e;return(0,s.jsx)(E.k,{isChecked:t.original.isSelected||r&&!t.original.isExcluded,onChange:()=>c(t.original.id),dataTestId:"".concat(t.original.id,"-checkbox")})},header:()=>(0,s.jsx)(E.k,{isChecked:r,isIndeterminate:o,onChange:u,dataTestId:"select-all-checkbox"}),size:1}),N.accessor(e=>e.id,{id:"id",cell:e=>(0,s.jsx)(E.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(E.Rr,{value:"Scope",...e})})],[c,u,r,o]),_=(0,k.b7)({getCoreRowModel:(0,T.sC)(),getRowId:e=>e.id,manualPagination:!0,data:h,columns:p,columnResizeMode:"onChange"});return(0,s.jsx)(l.kCb,{w:"full",direction:"column",maxH:"lg",children:(0,s.jsx)(E.ZK,{tableInstance:_,onRowClick:e=>c(e.id),footer:!!m&&(0,s.jsx)(E.vr,{totalColumns:2,children:(0,s.jsx)(l.kCb,{justify:"center",children:d?(0,s.jsx)(y.Z,{size:"xs"}):(0,s.jsxs)(l.kCb,{align:"center",children:[(0,s.jsxs)(l.xvT,{fontSize:"xs",mr:4,children:["Showing ",t.length," of ",a]}),(0,s.jsx)(l.wpx,{onClick:m,size:"small","data-testid":"load-more-btn",children:"Load more..."})]})})})})})};let I={items:[],total:1,page:1,size:50,pages:0};var w=(e,t)=>{let[a,n]=(0,g.useState)(2),{data:i,isLoading:s}=(0,b.oN)({page:1,size:25,connection_config_key:e}),l=(0,g.useRef)(s),{items:r,total:o}=null!=i?i:I,d=!!(null==i?void 0:i.pages)&&a>i.pages,[c,u]=(0,g.useState)(r);(0,g.useEffect)(()=>{l.current=s,u(r)},[s,r]),(0,g.useEffect)(()=>{let e=setTimeout(()=>{l.current&&t&&t()},5e3);return()=>clearTimeout(e)},[]);let[m,{isLoading:h,isFetching:p}]=(0,b.j3)(),_=h||p||s,x=async()=>{var t,i;if(d)return;let s=await m({connection_config_key:e,size:25,page:a+1});s.isError||(n(a+1),u([...c,...null!==(i=null===(t=s.data)||void 0===t?void 0:t.items)&&void 0!==i?i:[]]))};return{databases:c,totalDatabases:o,fetchMore:x,initialIsLoading:s,isLoading:_,reachedEnd:d}},M=e=>{var t;let{monitor:a,isEditing:n,isSubmitting:i,integrationKey:r,onSubmit:o,onClose:d}=e,c=(0,l.pmc)(),{databases:u,totalDatabases:m,fetchMore:h,reachedEnd:p,isLoading:_,initialIsLoading:g}=w(r,()=>{o({...a,databases:[]}),c({...S.MA,status:"info",description:"Loading resources is taking longer than expected. The monitor has been saved and is tracking all available resources. You can return later to limit its scope if needed"}),d()}),x=null!==(t=null==a?void 0:a.databases)&&void 0!==t?t:[],{selected:f,excluded:F,allSelected:v,someSelected:b,handleToggleItemSelected:T,handleToggleAll:k}=(0,j.Od)({initialSelected:x,initialExcluded:[],initialAllSelected:n&&!x.length,itemCount:m}),E=!v&&0===f.length;return g?(0,s.jsx)(y.Z,{my:12}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(l.kCb,{p:4,direction:"column",children:[(0,s.jsxs)(l.kCb,{direction:"row",mb:4,gap:1,align:"center",children:[(0,s.jsx)(l.xvT,{fontSize:"sm",children:"Select projects to monitor"}),(0,s.jsx)(C.b,{label:"Selecting a project will monitor all current and future datasets within that project."})]}),(0,s.jsx)(A,{items:u,totalItemCount:m,selected:f,excluded:F,allSelected:v,someSelected:b,moreLoading:_,handleToggleSelection:T,handleToggleAll:k,onMoreClick:p?void 0:h})]}),(0,s.jsxs)("div",{className:"mt-4 flex w-full justify-between",children:[(0,s.jsx)(l.wpx,{onClick:d,children:"Cancel"}),(0,s.jsx)(l.esZ,{title:E?"Select one or more projects to save":void 0,children:(0,s.jsx)(l.wpx,{onClick:()=>{o({...a,excluded_databases:F,databases:v?[]:f})},loading:i,type:"primary","data-testid":"save-btn",disabled:E,children:"Save"})})]})]})},P=a(64892),q=a(6680),U=a(54743);function D(e,t){let a,n;let i=()=>(0,q.L)(t?.in,NaN),s=t?.additionalDigits??2,l=function(e){let t;let a={},n=e.split(L.dateTimeDelimiter);if(n.length>2)return a;if(/:/.test(n[0])?t=n[0]:(a.date=n[0],t=n[1],L.timeZoneDelimiter.test(a.date)&&(a.date=e.split(L.timeZoneDelimiter)[0],t=e.substr(a.date.length,e.length))),t){let e=L.timezone.exec(t);e?(a.time=t.replace(e[1],""),a.timezone=e[1]):a.time=t}return a}(e);if(l.date){let e=function(e,t){let a=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(a);if(!n)return{year:NaN,restDateString:""};let i=n[1]?parseInt(n[1]):null,s=n[2]?parseInt(n[2]):null;return{year:null===s?i:100*s,restDateString:e.slice((n[1]||n[2]).length)}}(l.date,s);a=function(e,t){if(null===t)return new Date(NaN);let a=e.match(O);if(!a)return new Date(NaN);let n=!!a[4],i=z(a[1]),s=z(a[2])-1,l=z(a[3]),r=z(a[4]),o=z(a[5])-1;if(n)return r>=1&&r<=53&&o>=0&&o<=6?function(e,t,a){let n=new Date(0);n.setUTCFullYear(e,0,4);let i=n.getUTCDay()||7;return n.setUTCDate(n.getUTCDate()+((t-1)*7+a+1-i)),n}(t,r,o):new Date(NaN);{let e=new Date(0);return s>=0&&s<=11&&l>=1&&l<=(V[s]||(H(t)?29:28))&&i>=1&&i<=(H(t)?366:365)?(e.setUTCFullYear(t,s,Math.max(i,l)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!a||isNaN(+a))return i();let r=+a,o=0;if(l.time&&isNaN(o=function(e){let t=e.match(R);if(!t)return NaN;let a=K(t[1]),n=K(t[2]),i=K(t[3]);return(24===a?0===n&&0===i:i>=0&&i<60&&n>=0&&n<60&&a>=0&&a<25)?a*P.vh+n*P.yJ+1e3*i:NaN}(l.time)))return i();if(l.timezone){if(isNaN(n=function(e){if("Z"===e)return 0;let t=e.match(B);if(!t)return 0;let a="+"===t[1]?-1:1,n=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return i>=0&&i<=59?a*(n*P.vh+i*P.yJ):NaN}(l.timezone)))return i()}else{let e=new Date(r+o),a=(0,U.Q)(0,t?.in);return a.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),a.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),a}return(0,U.Q)(r+o+n,t?.in)}let L={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},O=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,R=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,B=/^([+-])(\d{2})(?::?(\d{2}))?$/;function z(e){return e?parseInt(e):1}function K(e){return e&&parseFloat(e.replace(",","."))||0}let V=[31,null,31,30,31,30,31,31,30,31,30,31];function H(e){return e%400==0||e%4==0&&e%100!=0}var Z=a(96063),G=a(34090),W=a(55484),Y=a(97181),J=a(40324),X=a(11013);let Q=e=>{let{layout:t="stacked",...a}=e,{data:n}=(0,X.eV)({page:1,size:100}),i=null==n?void 0:n.items.map(e=>({label:e.name,value:e.id}));return(0,s.jsx)(Y.d,{tooltip:"If a shared monitor config is selected, the monitor will use the shared config to classify resources",options:i,label:"Shared monitor config",layout:t,...a})};var $=a(39449),ee=e=>{var t,a,n;let{monitor:i,integrationOption:o,isSubmitting:d,databasesAvailable:c,onClose:u,onAdvance:m,onSubmit:h}=e,p=!!i,_=(0,r.useRouter)(),g=Array.isArray(_.query.id)?_.query.id[0]:_.query.id,x=W.Ry().shape({name:W.Z_().required().label("Name"),execution_frequency:W.Z_().nullable().label("Execution frequency"),execution_start_date:W.hT().nullable().label("Execution start date")}),y=(null==i?void 0:i.execution_start_date)?D(i.execution_start_date):Date.now(),F={name:null!==(t=null==i?void 0:i.name)&&void 0!==t?t:"",shared_config_id:null!==(a=null==i?void 0:i.shared_config_id)&&void 0!==a?a:void 0,execution_start_date:(0,Z.WU)(y,"yyyy-MM-dd'T'HH:mm"),execution_frequency:null!==(n=null==i?void 0:i.execution_frequency)&&void 0!==n?n:$.hV.MONTHLY},v=(0,f.MM)($.hV);return(0,s.jsx)(G.J9,{initialValues:F,enableReinitialize:!0,onSubmit:e=>{let t=e.execution_frequency!==$.hV.NOT_SCHEDULED?{execution_frequency:e.execution_frequency,execution_start_date:new Date(e.execution_start_date).toISOString()}:{execution_frequency:$.hV.NOT_SCHEDULED,execution_start_date:void 0},a=p?{...i,...t,name:e.name,shared_config_id:e.shared_config_id}:{...t,name:e.name,shared_config_id:e.shared_config_id,connection_config_key:g,classify_params:{num_samples:25,num_threads:1}};o.identifier===$.Rj.DYNAMODB&&(a.datasource_params={single_dataset:!1}),c?m(a):h(a)},validationSchema:x,children:e=>{let{values:t,isValid:a,resetForm:n}=e;return(0,s.jsx)(G.l0,{children:(0,s.jsxs)(l.gCW,{alignItems:"start",spacing:6,mt:4,children:[(0,s.jsx)(J.j0,{name:"name",id:"name",label:"Name",isRequired:!0,variant:"stacked"}),(0,s.jsx)(Y.d,{name:"execution_frequency",id:"execution_frequency",tooltip:"Interval to run the monitor automatically after the start date",options:v,label:"Automatic execution frequency",layout:"stacked"}),(0,s.jsx)(Q,{name:"shared_config_id",id:"shared_config_id"}),(0,s.jsx)(J.YL,{name:"execution_start_date",label:"Automatic execution start time",disabled:t.execution_frequency===$.hV.NOT_SCHEDULED,id:"execution_start_date"}),(0,s.jsxs)("div",{className:"flex w-full justify-between",children:[(0,s.jsx)(l.wpx,{onClick:()=>{n(),u()},children:"Cancel"}),(0,s.jsx)(l.wpx,{htmlType:"submit",type:"primary",disabled:!a,loading:d,"data-testid":"next-btn",children:c?"Next":"Save"})]})]})})}})},et=a(27693),ea=a.n(et);let en=e=>{let{error:t,touched:a,required:n,tooltip:i,label:r,extra:o,name:d,id:c,...u}=e;return(0,s.jsx)(l.PPS.Item,{validateStatus:a&&t?"error":void 0,help:a&&t,hasFeedback:a&&!!t,required:n,tooltip:i,label:r,extra:o,htmlFor:null!=c?c:d,children:(0,s.jsx)(l.cv2,{id:null!=c?c:d,name:d,"data-testid":"input-".concat(d),style:{width:"100%",...u.style},...u})})},ei=e=>{let{error:t,touched:a,required:n,tooltip:i,label:r,extra:o,name:d,id:c,...u}=e;return(0,s.jsx)(l.PPS.Item,{validateStatus:a&&t?"error":void 0,help:a&&t,hasFeedback:a&&!!t,required:n,tooltip:i,label:r,extra:o,htmlFor:null!=c?c:d,children:(0,s.jsx)(l.AOh,{id:null!=c?c:d,"data-testid":"controlled-select-".concat(d),...u})})},es=e=>{let{error:t,touched:a,required:n,tooltip:i,label:r,extra:o,name:d,id:c,...u}=e,[m,h]=(0,g.useState)(""),p="tags"===u.mode?(e,t)=>{var a;return e?e.value!==m||(null===(a=u.value)||void 0===a?void 0:a.includes(m))?u.optionRender?u.optionRender(e,t):e.label:'Create "'.concat(m,'"'):void 0}:u.optionRender||void 0;return(0,s.jsx)(l.PPS.Item,{validateStatus:a&&t?"error":void 0,help:a&&t,hasFeedback:a&&!!t,required:n,tooltip:i,label:r,extra:o,htmlFor:null!=c?c:d,children:(0,s.jsx)(l.WPr,{id:null!=c?c:d,"data-testid":"controlled-select-".concat(d),...u,optionRender:p,onSearch:"tags"===u.mode?e=>{h(e),u.onSearch&&u.onSearch(e)}:void 0})})},el=e=>{let{error:t,touched:a,required:n,tooltip:i,label:r,extra:o,name:d,id:c,...u}=e;return(0,s.jsx)(l.PPS.Item,{validateStatus:a&&t?"error":void 0,help:a&&t,hasFeedback:a&&!!t,required:n,tooltip:i,label:r,extra:o,htmlFor:null!=c?c:d,children:(0,s.jsx)(l.AntInput,{id:c||d,name:d,"data-testid":"input-".concat(d),allowClear:!0,...u})})};var er=a(90111),eo=a(8411),ed=a(64781),ec=a(60325);let eu=e=>{let{data:t}=(0,X.eV)({page:1,size:100}),a=null==t?void 0:t.items.map(e=>({label:e.name,value:e.id}));return(0,s.jsx)(es,{tooltip:"If a shared monitor config is selected, the monitor will use the shared config to classify resources",options:a,label:"Shared monitor config",...e})},em=W.Ry().shape({name:W.Z_().required().label("Name"),execution_frequency:W.Z_().nullable().label("Execution frequency"),execution_start_date:W.hT().nullable().label("Execution start date"),datasource_params:W.Ry().shape({locations:W.IX().label("Locations"),exclude_domains:W.IX().label("Exclude domains"),sitemap_url:W.Z_().nullable().url().label("Sitemap URL")})});var eh=e=>{var t,a,n,i,o,d,c;let{monitor:u,url:m,onClose:h,onSubmit:p}=e,[_,x]=(0,g.useState)(!1),y=(0,r.useRouter)(),F=Array.isArray(y.query.id)?y.query.id[0]:y.query.id,v=(null==u?void 0:u.execution_start_date)?D(u.execution_start_date):Date.now(),{data:S,isLoading:b}=(0,ed.gT)(),j=[...(0,ec.TK)(null!==(i=null==S?void 0:S.locations)&&void 0!==i?i:[]),...(0,ec.TK)(null!==(o=null==S?void 0:S.location_groups)&&void 0!==o?o:[])].map(e=>({value:e,label:eo.Z8[e]})),C={name:(null==u?void 0:u.name)||"",shared_config_id:null!==(d=null==u?void 0:u.shared_config_id)&&void 0!==d?d:void 0,execution_frequency:(null==u?void 0:u.execution_frequency)||$.hV.NOT_SCHEDULED,execution_start_date:(0,Z.WU)(v,"yyyy-MM-dd'T'HH:mm"),url:m,connection_config_key:F,datasource_params:null!==(c=null==u?void 0:u.datasource_params)&&void 0!==c?c:{locations:[],exclude_domains:[]}},T=async e=>{x(!0);let t=e.execution_frequency!==$.hV.NOT_SCHEDULED?{execution_frequency:e.execution_frequency,execution_start_date:new Date(e.execution_start_date).toISOString()}:{execution_frequency:$.hV.NOT_SCHEDULED,execution_start_date:void 0};p({...u,...e,...t,key:null==u?void 0:u.key,classify_params:(null==u?void 0:u.classify_params)||{},datasource_params:e.datasource_params||{},connection_config_key:F})},{values:k,resetForm:E,handleSubmit:N,errors:A,touched:I,...w}=(0,G.TA)({initialValues:C,onSubmit:T,validationSchema:em}),M=(0,f.MM)($.hV).filter(e=>[$.hV.MONTHLY,$.hV.QUARTERLY,$.hV.YEARLY,$.hV.NOT_SCHEDULED].includes(e.value));return(0,s.jsxs)(l.jqI,{vertical:!0,className:"pt-4",children:[(0,s.jsx)(er.Z,{children:(0,s.jsx)(l.xvT,{fontSize:"sm",children:"This monitor allows you to simulate and verify user consent actions, such as 'accept,' 'reject,' or 'opt-out,' on consent experiences. For each detected activity, the monitor will record whether it occurred before or after the configured user actions, ensuring compliance with user consent choices."})}),(0,s.jsxs)(l.PPS,{onFinish:N,layout:"vertical",children:[(0,s.jsx)(el,{name:"name",id:"name",label:"Name",required:!0,error:A.name,touched:I.name,onChange:w.handleChange,onBlur:w.handleBlur,value:k.name}),(0,s.jsx)(el,{name:"datasource_params.sitemap_url",id:"sitemap_url",label:"Sitemap URL",error:(0,G.u9)(A,"datasource_params.sitemap_url"),touched:(0,G.u9)(I,"datasource_params.sitemap_url"),onChange:w.handleChange,onBlur:w.handleBlur,value:(null===(t=k.datasource_params)||void 0===t?void 0:t.sitemap_url)||""}),(0,s.jsx)(es,{name:"datasource_params.exclude_domains",placeholder:"Enter domains to exclude",id:"exclude_domains",label:"Exclude domains",mode:"tags",options:[],suffixIcon:null,open:!1,error:(0,G.u9)(A,"datasource_params.exclude_domains"),touched:(0,G.u9)(I,"datasource_params.exclude_domains"),onChange:e=>w.setFieldValue("datasource_params.exclude_domains",e),onBlur:w.handleBlur,value:(null===(a=k.datasource_params)||void 0===a?void 0:a.exclude_domains)||[]}),(0,s.jsx)(el,{name:"url",id:"url",label:"URL",required:!0,disabled:!0,error:A.url,touched:I.url,onChange:w.handleChange,onBlur:w.handleBlur,value:k.url||""}),(0,s.jsx)(ei,{id:"locations",name:"datasource_params.locations",label:"Locations",loading:b,options:(0,l.Ky_)(j.map(e=>e.value)),tooltip:"Specify the region(s) to include in the scan. The monitor will scan the same URL across these locations to identify tracking technologies, such as cookies served by ad tech vendors.",mode:"multiple",error:(0,G.u9)(A,"datasource_params.locations"),touched:(0,G.u9)(I,"datasource_params.locations"),onChange:e=>w.setFieldValue("datasource_params.locations",e),onBlur:w.handleBlur,value:null===(n=k.datasource_params)||void 0===n?void 0:n.locations}),(0,s.jsx)(eu,{name:"shared_config_id",id:"shared_config_id",error:A.shared_config_id,touched:I.shared_config_id,onChange:e=>w.setFieldValue("shared_config_id",e),onBlur:w.handleBlur,value:k.shared_config_id}),(0,s.jsx)(es,{name:"execution_frequency",id:"execution_frequency",options:M,label:"Automatic execution frequency",error:A.execution_frequency,touched:I.execution_frequency,onChange:e=>w.setFieldValue("execution_frequency",e),onBlur:w.handleBlur,value:k.execution_frequency}),(0,s.jsx)(en,{name:"execution_start_date",label:"Automatic execution start time",disabled:k.execution_frequency===$.hV.NOT_SCHEDULED,id:"execution_start_date",tooltip:"Set the start time for the scan. For optimal performance and minimal disruption, schedule scans during periods of low traffic.",error:A.execution_start_date,touched:I.execution_start_date,onChange:e=>e&&w.setFieldValue("execution_start_date",e.toISOString()),onBlur:w.handleBlur,value:ea()(k.execution_start_date)}),(0,s.jsxs)(l.jqI,{gap:"small",className:"mt-2",justify:"stretch",children:[(0,s.jsx)(l.wpx,{onClick:()=>{E(),h()},block:!0,children:"Cancel"}),(0,s.jsx)(l.wpx,{type:"primary",htmlType:"submit","data-testid":"save-btn",block:!0,loading:_,children:"Save"})]})]})]})},ep=a(31883),e_=e=>{let{isOpen:t,onClose:a,formStep:n,onAdvance:i,monitor:r,isEditing:o,integration:d,integrationOption:c,isWebsiteMonitor:u}=e,[m,{isLoading:h}]=(0,b.Fy)(),{data:p}=(0,b.oN)({page:1,size:25,connection_config_key:d.key}),_=!!p&&!!p.total,g=(0,l.pmc)(),{successAlert:x,errorAlert:j}=(0,F.VY)(),C=async e=>{let t;let n=setTimeout(()=>{t||(g({...S.MA,status:"info",description:"Saving this monitor is taking longer than expected. Fides will continue processing it in the background, and you can check back later to view the updates."}),a())},5e3);if(t=await m(e)){if(clearTimeout(n),(0,ep.D4)(t)){j((0,f.e$)(t.error),"Error creating monitor");return}if(o){x("Monitor updated successfully"),a();return}if(u){x(e.execution_frequency===$.hV.NOT_SCHEDULED?'Your monitor has been created with no schedule. Select "Scan" in the table below to begin scanning your website.':"Your monitor has been created and is now scanning your website. Once the monitor is finished scanning, results can be found in the action center."),a();return}x("Monitor created successfully"),a()}};return u?(0,s.jsx)(v.Z,{title:(null==r?void 0:r.name)?"Configure ".concat(r.name):"Configure website monitor",isOpen:t,onClose:a,children:(0,s.jsx)(eh,{monitor:r,url:d.secrets.url,onClose:a,onSubmit:C})}):(0,s.jsxs)(v.Z,{title:(null==r?void 0:r.name)?"Configure ".concat(r.name):"Configure discovery monitor",isOpen:t,onClose:a,children:[0===n&&(0,s.jsx)(ee,{monitor:r,onClose:a,onAdvance:i,onSubmit:C,isSubmitting:h,databasesAvailable:_,integrationOption:c}),1===n&&(r?(0,s.jsx)(M,{monitor:r,isEditing:o,isSubmitting:h,onSubmit:C,onClose:a,integrationKey:d.key}):(0,s.jsx)(y.Z,{}))]})},eg=a(8125),ex=e=>{let{defaultSuccessMsg:t,defaultErrorMsg:a}=e,{successAlert:n,errorAlert:i}=(0,F.VY)();return{toastResult:e=>{(0,f.D4)(e)?i((0,f.e$)(e.error,a)):n(t)}}},ey=a(58452),ef=a(79494),eF=e=>{let{monitorId:t,isWebsiteMonitor:a,onEditClick:n}=e,{isOpen:i,onOpen:r,onClose:o}=(0,l.qY0)(),[d,{isLoading:c}]=(0,b.Sb)(),{toastResult:u}=ex({defaultErrorMsg:"A problem occurred deleting this monitor",defaultSuccessMsg:"Monitor deleted successfully"}),[m,{isLoading:h}]=(0,b.V9)(),{toastResult:p}=ex({defaultErrorMsg:"A problem occurred initiating monitor execution",defaultSuccessMsg:a?"Scanning your website now. Once the monitor is finished, results can be found in the action center.":"Monitor execution successfully started"});if(!t)return null;let _=async()=>{u(await d({monitor_config_id:t}))},g=async()=>{p(await m({monitor_config_id:t}))};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ey.Z,{isOpen:i,onClose:o,onConfirm:_,title:"Delete monitor",message:"Are you sure you want to delete this discovery monitor?",continueButtonText:"Delete",isCentered:!0,isLoading:c}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(l.esZ,{title:"Edit",children:(0,s.jsx)(l.wpx,{onClick:n,size:"small",icon:(0,s.jsx)(l.PJP.I8b,{}),"data-testid":"edit-monitor-btn","aria-label":"Edit monitor"})}),(0,s.jsx)(l.esZ,{title:"Delete",children:(0,s.jsx)(l.wpx,{onClick:r,size:"small",icon:(0,s.jsx)(l.PJP.ZNm,{}),"aria-label":"Delete monitor","data-testid":"delete-monitor-btn"})}),(0,s.jsx)(ef.Z,{onClick:g,title:"Scan",loading:h})]})]})},ev=a(51980),eS=a(16394),eb=e=>{var t,a;let{monitor:n}=e,i=null===(t=n.execution_records)||void 0===t?void 0:t[0],{isOpen:r,onOpen:o,onClose:d}=(0,l.qY0)(),c=n.last_monitored?new Date(n.last_monitored):null,u=c?(0,eS.p6)(c):"N/A",m=c?(0,ev.B)(c,new Date,{addSuffix:!0}):"N/A";return i?i.status===$.L2.IN_PROGRESS?c?(0,s.jsx)(l.esZ,{title:"Last scan: ".concat(m),children:(0,s.jsx)(l.j8w,{color:"info",children:"Scanning"})}):(0,s.jsx)(l.j8w,{color:"info",children:"Scanning"}):i.status===$.L2.COMPLETED?(0,s.jsx)(l.esZ,{title:u,children:(0,s.jsx)(l.j8w,{color:"success","data-testid":"tag-success",children:m})}):i.status===$.L2.ERRORED?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.j8w,{color:"error",closeIcon:(0,s.jsx)(l.PJP.daM,{}),closeButtonLabel:"View details",onClose:o,"data-testid":"tag-error",children:"Incomplete"}),(0,s.jsxs)(l.dys,{isOpen:r,onClose:d,size:"md",children:[(0,s.jsx)(l.P1B,{}),(0,s.jsxs)(l.scA,{"data-testid":"error-log-drawer",children:[(0,s.jsx)(l.OXI,{children:"Failure log"}),(0,s.jsx)(l.cCv,{}),(0,s.jsxs)(l.Ng0,{children:[i.completed&&(0,s.jsx)(l.AntTypography.Paragraph,{type:"secondary",children:(0,eS.p6)(new Date(i.completed))}),null===(a=i.messages)||void 0===a?void 0:a.map((e,t)=>(0,s.jsxs)(g.Fragment,{children:[(0,s.jsx)(l.AntTypography.Paragraph,{"data-testid":"error-log-message",children:e}),t<i.messages.length-1&&(0,s.jsx)(l.izJ,{className:"mb-3"})]},t))]})]})]})]}):(0,s.jsx)(l.j8w,{children:"N/A"}):(0,s.jsx)(l.j8w,{children:"N/A"})};let{Text:ej}=l.AntTypography,eC=e=>{let{enabled:t,onToggle:a,title:n,message:i,isDisabled:r,...o}=e,d=(0,l.qY0)(),[c,u]=l.Pg3.useMessage(),m=async e=>{let{enable:t}=e,n=await a(t);(0,ep.D4)(n)&&c.error((0,f.e$)(n.error))},h=async e=>{e?await m({enable:!0}):d.onOpen()};return(0,s.jsxs)(s.Fragment,{children:[u,(0,s.jsx)(l.rAg,{checked:t,onChange:h,disabled:r,"data-testid":"toggle-switch",...o}),(0,s.jsx)(ey.Z,{isOpen:d.isOpen,onClose:d.onClose,onConfirm:()=>{m({enable:!1}),d.onClose()},title:n,message:(0,s.jsx)(ej,{children:i}),continueButtonText:"Confirm",isCentered:!0})]})},eT=e=>{let{record:t}=e,[a]=(0,b.Fy)(),n=async e=>a({...t,enabled:e}),{enabled:i}=t;return(0,s.jsx)(eC,{enabled:!!i,onToggle:n,title:"Disabling monitor",message:"You are about to disable this monitor. If you continue, it will no longer scan automatically."})},{Text:ek}=l.AntTypography;(n=i||(i={})).NAME="name",n.PROJECTS="projects",n.SOURCE_URL="source_url",n.FREQUENCY="execution_frequency",n.MONITOR_STATUS="monitor_status",n.REGIONS="regions",n.STATUS="status",n.ACTION="action";let eE=e=>{var t,a,n;let{integration:i,isWebsiteMonitor:r,onEditMonitor:o}=e,d=(0,eg.o)(),{pageIndex:c,pageSize:u}=d,{isLoading:m,isFetching:h,data:p}=(0,b.Fu)({page:c,size:u,connection_config_key:i.key}),_=(0,g.useMemo)(()=>{var e,t;return{enableSelection:!1,getRowKey:e=>{var t;return null!==(t=e.key)&&void 0!==t?t:e.name},isLoading:m,isFetching:h,dataSource:null!==(e=null==p?void 0:p.items)&&void 0!==e?e:[],totalRows:null!==(t=null==p?void 0:p.total)&&void 0!==t?t:0}},[m,h,null==p?void 0:p.items,null==p?void 0:p.total]),x=(0,eg.V)(d,_);return{columns:(0,g.useMemo)(()=>{let e={title:"Name",dataIndex:"name",key:"name",render:e=>(0,s.jsx)(ek,{ellipsis:{tooltip:e},style:{maxWidth:150},children:e}),fixed:"left"},t={title:"Scan frequency",dataIndex:"execution_frequency",key:"execution_frequency",render:e=>null!=e?e:"Not scheduled"},a={title:"Scan status",key:"monitor_status",render:(e,t)=>(0,s.jsx)(eb,{monitor:t})},n={title:"Status",dataIndex:"status",key:"status",width:100,render:(e,t)=>(0,s.jsx)(eT,{record:t})},d={title:"Actions",key:"action",width:100,render:(e,t)=>(0,s.jsx)(eF,{onEditClick:()=>o(t),isWebsiteMonitor:r,monitorId:t.key}),fixed:"right"};return r?[e,{title:"Source URL",dataIndex:"source_url",key:"source_url",render:()=>{var e;let t=i.secrets;return(0,s.jsx)(ek,{ellipsis:{tooltip:null==t?void 0:t.url},style:{maxWidth:150},children:null!==(e=null==t?void 0:t.url)&&void 0!==e?e:"Not scheduled"})}},t,{title:"Regions",dataIndex:"regions",key:"regions",render:(e,t)=>{let a=t.datasource_params&&"locations"in t.datasource_params&&Array.isArray(t.datasource_params.locations)?t.datasource_params.locations:[];if(0===a.length)return"No regions selected";let n=a.map(e=>{let t=(0,l.QCN)(e);if(t)return(0,l.c1K)({isoEntry:t});let a=Object.entries($._F).find(t=>{let[,a]=t;return a===e});return a&&eo.Z8[a[1]]}).join(", ");return(0,s.jsx)(ek,{ellipsis:{tooltip:n},style:{maxWidth:150},children:n})}},a,n,d]:[e,{title:"Scope",dataIndex:"projects",key:"projects",render:(e,t)=>{var a;let n=null!==(a=t.databases)&&void 0!==a?a:[];return 0===n.length?"All projects":"".concat(n.length," ").concat(1===n.length?"Project":"Projects")}},t,a,n,d]},[i.secrets,r,o]),monitors:null!==(a=null==p?void 0:p.items)&&void 0!==a?a:[],isLoading:m,isFetching:h,totalRows:null!==(n=null==p?void 0:p.total)&&void 0!==n?n:0,tableProps:x.tableProps,hasData:!!(null==p?void 0:null===(t=p.items)||void 0===t?void 0:t.length)}};var eN=a(40774);let eA={[$.Rj.WEBSITE]:"Configure your website monitor to identify active ad tech vendors and tracking technologies across your site. This monitor will analyze selected pages for vendor activity, compliance with privacy requirements, and data collection practices. Set your preferences below to customize the monitor frequency and scan locations.",[$.Rj.OKTA]:"Configure your SSO provider monitor to detect and map systems within your infrastructure. This monitor will analyze connected systems to identify their activity and ensure accurate representation in your data map. Set your preferences below to customize the monitor's scan frequency and scope. To learn more about monitors, view our docs here."};var eI=e=>{var t,a;let{integration:n,integrationOption:i}=e,r=(null==i?void 0:i.identifier)===$.Rj.WEBSITE,o=(null==i?void 0:i.type)===$.Zi.SAAS,d=(0,l.qY0)(),[c,u]=(0,g.useState)(void 0),[m,h]=(0,g.useState)(!1),[p,_]=(0,g.useState)(0),{columns:y,tableProps:f,monitors:F,isLoading:v}=eE({integration:n,isWebsiteMonitor:r,onEditMonitor:e=>{u(e),h(!0),d.onOpen()}}),S=null!==(t=eA[null==i?void 0:i.identifier])&&void 0!==t?t:"A data discovery monitor observes configured systems for data model changes to proactively discover and classify data risks. Monitors can observe part or all of a project, dataset, table, or API for changes and each can be assigned to a different data steward.",{isDisabled:b,tooltip:j}=o&&F.length>0?{isDisabled:!0,tooltip:"API integrations only use a single monitor"}:n.name||(null===(a=n.saas_config)||void 0===a?void 0:a.type)!=="salesforce"?{isDisabled:!1,tooltip:null}:{isDisabled:!0,tooltip:"This is a legacy connection and cannot be used to create a monitor. Create a new Salesforce integration to use this feature."};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.AntTypography.Paragraph,{className:"mb-6 max-w-3xl","data-testid":"monitor-description",children:S}),(0,s.jsxs)(l.jqI,{justify:"space-between",className:"py-3",children:[(0,s.jsx)(eN.Z,{}),(0,s.jsx)(l.esZ,{title:j,children:(0,s.jsx)("span",{children:(0,s.jsx)(l.wpx,{onClick:d.onOpen,icon:(0,s.jsx)(x,{}),iconPosition:"end","data-testid":"add-monitor-btn",disabled:b,children:"Add monitor"})})})]}),(0,s.jsx)(l.V5H,{...f,loading:v,columns:y}),(0,s.jsx)(e_,{isOpen:d.isOpen,onClose:()=>{u(void 0),h(!1),_(0),d.onClose()},formStep:p,onAdvance:e=>{u(e),_(1)},monitor:c,isEditing:m,integration:n,integrationOption:i,isWebsiteMonitor:r})]})},ew=a(41966),eM=a(32885),eP=e=>{let{integration:t}=e,{data:a}=(0,h.Eg)(t.key),{data:n}=(0,ew.LH)({minimal:!0,connection_type:$.Rj.BIGQUERY}),[i,{isLoading:r}]=(0,eM.Qd)(),o=(0,l.pmc)(),d=async()=>{try{var e,s,l,r,d;let c=null!==(l=null==a?void 0:null===(e=a.items)||void 0===e?void 0:e.map(e=>e.fides_key))&&void 0!==l?l:[],u=null!==(r=null==n?void 0:n.map(e=>e.fides_key))&&void 0!==r?r:[],m=c.length>0?c:u,h=await i({connectionKey:t.key,datasetIds:m}),p=null!==(d=null===(s=h.data)||void 0===s?void 0:s.succeeded.length)&&void 0!==d?d:0,_="Fides has begun syncing with DataHub. There ".concat(1===p?"is":"are"," ").concat(p," dataset").concat(1===p?"":"s"," queued for syncing.");o((0,S.t5)(_))}catch(e){o({title:"Error syncing datasets",description:"There was an error syncing your datasets with DataHub. Please try again.",status:"error",duration:5e3,isClosable:!0})}};return(0,s.jsxs)(l.gCW,{spacing:6,align:"stretch",children:[(0,s.jsxs)(l.gCW,{spacing:4,align:"stretch",children:[(0,s.jsx)(l.xvT,{maxW:"720px",fontSize:"sm","data-testid":"scan-description-1",children:"If you're using DataHub for metadata management, select sync datasets to push data categories from Fides to your DataHub datasets."}),(0,s.jsxs)(l.xvT,{maxW:"720px",fontSize:"sm","data-testid":"scan-description-2",children:["Fides assigns data categories to datasets based on your privacy taxonomy. With this integration, those categories can be added as glossary terms to matching datasets in DataHub-keeping your labeling consistent across systems. To learn more about our DataHub integration, ",(0,s.jsx)(l.rUS,{href:"https://ethyca.com/docs/user-guides/integrations/saas-integrations/datahub",isExternal:!0,color:"blue.500",textDecoration:"underline",children:"view our docs"}),"."]})]}),(0,s.jsx)(l.zxk,{colorScheme:"primary",onClick:d,"data-testid":"sync-button",width:"fit-content",isLoading:r,loadingText:"Syncing datasets...",children:"Sync Datasets"})]})},eq=a(78780),eU=a(52253);let{useGetManualTaskConfigQuery:eD,useAssignUsersToManualTaskMutation:eL,useUpdateDependencyConditionsMutation:eO}=eq.u.injectEndpoints({endpoints:e=>({getManualTaskConfig:e.query({query:e=>{let{connectionKey:t}=e;return{url:"".concat(eU.Iy,"/").concat(t,"/manual-task"),method:"GET"}},providesTags:()=>["Manual Tasks"]}),assignUsersToManualTask:e.mutation({query:e=>{let{connectionKey:t,userIds:a}=e;return{url:"".concat(eU.Iy,"/").concat(t,"/manual-task/assign-users"),method:"PUT",body:a}},invalidatesTags:()=>["Manual Tasks"]}),updateDependencyConditions:e.mutation({query:e=>{let{connectionKey:t,conditions:a}=e;return{url:"".concat(eU.Iy,"/").concat(t,"/manual-task/dependency-conditions"),method:"PUT",body:a}},invalidatesTags:()=>["Manual Tasks"]})})});var eR=a(20386);let eB=(e,t,a)=>[e,t,a].join(":"),ez=e=>{let[t,a,n]=e.split(":");return{datasetKey:t,collectionName:a,fieldPath:n}},eK=function(e,t,a){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return e.map(e=>{let i=n?"".concat(n).concat(".").concat(e.name):e.name,s=eB(t,a,i),l=e.fields&&e.fields.length>0;return{key:s,title:e.name,fullTitle:"".concat(a).concat(":").concat(i),value:s,isLeaf:!l,selectable:!0,children:l?eK(e.fields,t,a,i):void 0}})},eV=e=>{let{value:t,onChange:a,disabled:n=!1,excludeSaasDataset:i=!0}=e,[r,o]=(0,g.useState)(),[d,c]=(0,g.useState)(),[u,m]=(0,g.useState)([]),{data:h,isLoading:p}=(0,eR.LH)({minimal:!0,exclude_saas_datasets:i}),{data:_}=(0,eR.oM)(r,{skip:!r}),x=(0,g.useMemo)(()=>{var e;return _&&r&&(null===(e=_.collections)||void 0===e?void 0:e.map(e=>({key:"".concat(r).concat(":").concat(e.name),title:e.name,fullTitle:e.name,value:"".concat(r).concat(":").concat(e.name),isLeaf:!1,selectable:!1,children:e.fields?eK(e.fields,r,e.name,""):void 0})))||[]},[_,r]);(0,g.useEffect)(()=>{m(x),r||c(void 0)},[x,r]),(0,g.useEffect)(()=>{if(t){let{datasetKey:e,collectionName:a,fieldPath:n}=ez(t);e&&(o(e),a&&n&&c(t))}else o(void 0),c(void 0)},[t]);let y=(0,g.useMemo)(()=>h?h.map(e=>({value:e.fides_key,label:e.name||e.fides_key})):[],[h]),f=(0,g.useCallback)(e=>{o(e),c(void 0),a&&a(void 0)},[a]),F=(0,g.useCallback)(e=>{c(e),a&&a(e)},[a]);return p||(null==h?void 0:h.length)!==0?(0,s.jsxs)(l.jqI,{gap:8,"data-testid":"dataset-reference-picker",children:[(0,s.jsx)(l.WPr,{value:r,onChange:f,options:y,placeholder:"Select a dataset","aria-label":"Select a dataset",disabled:n,loading:p,allowClear:!0,showSearch:!0,style:{width:"50%"},"data-testid":"dataset-select"}),(0,s.jsx)(l.wrJ,{value:d,onChange:F,treeData:u,placeholder:"Select a field","aria-label":"Select a field",disabled:n||!r,allowClear:!0,showSearch:!0,style:{width:"50%"},treeNodeFilterProp:"title",treeNodeLabelProp:"fullTitle","data-testid":"field-tree-select"})]}):(0,s.jsx)("div",{className:"flex flex-col items-center justify-center py-4 ",children:(0,s.jsx)(l.AntTypography.Text,{children:"No datasets available. Create a dataset to start using this feature"})})},{Text:eH,Title:eZ,Link:eG}=l.AntTypography,eW=()=>(0,s.jsxs)("div",{className:"px-2 text-white",children:[(0,s.jsx)(eZ,{level:5,className:"mb-3",style:{color:"inherit"},children:"Operator Reference"}),(0,s.jsx)(eH,{strong:!0,className:"mb-2 block",style:{color:"inherit"},children:"All data types:"}),(0,s.jsxs)("ul",{className:"ml-2 space-y-1",children:[(0,s.jsx)("li",{children:"Equals: Exact match"}),(0,s.jsx)("li",{children:"Not equals: Does not exactly match"}),(0,s.jsxs)("li",{children:["Exists: Field can be reached"," ",(0,s.jsx)(eG,{href:"https://www.ethyca.com/docs/dev-docs/privacy-requests/execution#graph-building",target:"_blank",style:{color:"inherit",textDecoration:"underline"},children:"by the DAG"})," ","regardless of value"]}),(0,s.jsxs)("li",{children:["Does not exist: Field cannot be reached"," ",(0,s.jsx)(eG,{href:"https://www.ethyca.com/docs/dev-docs/privacy-requests/execution#graph-building",target:"_blank",style:{color:"inherit",textDecoration:"underline"},children:"by the DAG"})]})]}),(0,s.jsx)(eH,{strong:!0,className:"mb-2 mt-4 block",style:{color:"inherit"},children:"Strings/Text:"}),(0,s.jsxs)("ul",{className:"ml-2 space-y-1",children:[(0,s.jsx)("li",{children:"Starts with: Text begins with value"}),(0,s.jsx)("li",{children:"Contains: Text includes value anywhere"})]}),(0,s.jsx)(eH,{strong:!0,className:"mb-2 mt-4 block",style:{color:"inherit"},children:"Numbers:"}),(0,s.jsx)("ul",{className:"ml-2 space-y-1",children:(0,s.jsx)("li",{children:"Equals / Not equals / Greater than / Greater than or equal / Less than / Less than or equal"})}),(0,s.jsx)(eH,{strong:!0,className:"mb-2 mt-4 block",style:{color:"inherit"},children:"Array/List:"}),(0,s.jsxs)("ul",{className:"ml-2 space-y-1",children:[(0,s.jsx)("li",{children:"List contains: Value in list"}),(0,s.jsx)("li",{children:"Not in list: Value not in list"})]})]}),eY=(e,t)=>{if(e===$.EF.EXISTS||e===$.EF.NOT_EXISTS||!(null==t?void 0:t.trim()))return null;if("true"===t.toLowerCase())return!0;if("false"===t.toLowerCase())return!1;let a=Number(t);return Number.isNaN(a)?t:a};var eJ=e=>{var t;let{onAdd:a,onCancel:n,editingCondition:i,isSubmitting:r=!1}=e,[o]=l.PPS.useForm(),d=[{label:"Equals",value:$.EF.EQ},{label:"Not equals",value:$.EF.NEQ},{label:"Greater than",value:$.EF.GT},{label:"Greater than or equal",value:$.EF.GTE},{label:"Less than",value:$.EF.LT},{label:"Less than or equal",value:$.EF.LTE},{label:"Exists",value:$.EF.EXISTS},{label:"Does not exist",value:$.EF.NOT_EXISTS},{label:"List contains",value:$.EF.LIST_CONTAINS},{label:"Not in list",value:$.EF.NOT_IN_LIST},{label:"Starts with",value:$.EF.STARTS_WITH},{label:"Contains",value:$.EF.CONTAINS}],c=i?{fieldAddress:i.field_address,operator:i.operator,value:(null===(t=i.value)||void 0===t?void 0:t.toString())||""}:{},u=(0,g.useCallback)(e=>{a({field_address:e.fieldAddress.trim(),operator:e.operator,value:eY(e.operator,e.value)})},[a]),m=(0,g.useCallback)(()=>{o.resetFields(),n()},[o,n]),h=l.PPS.useWatch("operator",o),p=h===$.EF.EXISTS||h===$.EF.NOT_EXISTS;return(0,g.useEffect)(()=>{p&&o.setFieldValue("value","")},[p,o]),(0,s.jsxs)(l.PPS,{form:o,onFinish:u,layout:"vertical",initialValues:c,children:[(0,s.jsx)(l.PPS.Item,{name:"fieldAddress",label:"Dataset Field",rules:[{required:!0,message:"Dataset field is required"}],tooltip:"Select a field from your datasets to use in the condition",validateTrigger:["onBlur","onSubmit"],children:(0,s.jsx)(eV,{})}),(0,s.jsx)(l.PPS.Item,{name:"operator",label:"Operator",tooltip:{placement:"right",title:(0,s.jsx)(eW,{}),styles:{root:{maxWidth:"500px"}}},rules:[{required:!0,message:"Operator is required"}],children:(0,s.jsx)(l.WPr,{placeholder:"Select operator","aria-label":"Select operator",options:d,"data-testid":"operator-select"})}),(0,s.jsx)(l.PPS.Item,{name:"value",label:"Value",rules:[{required:!p,message:"Value is required for this operator"}],tooltip:p?"Value is not required for exists/not exists operators":"Enter the value to compare against. Can be text, number, or true/false",children:(0,s.jsx)(l.AntInput,{placeholder:p?"Not required":"Enter value (text, number, or true/false)",disabled:p,"data-testid":"value-input"})}),(0,s.jsx)(l.PPS.Item,{children:(0,s.jsxs)(l.kCb,{gap:2,justify:"flex-end",children:[(0,s.jsx)(l.wpx,{onClick:m,disabled:r,"data-testid":"cancel-btn",children:"Cancel"}),(0,s.jsx)(l.wpx,{type:"primary",htmlType:"submit",loading:r,"data-testid":"save-btn",children:i?"Update":"Add"})]})})]})},eX=e=>{let{isOpen:t,onClose:a,onConditionSaved:n,editingCondition:i}=e,{handleError:r}=(0,F.HK)(),[o,d]=(0,g.useState)(!1),c=!!i,u=async e=>{try{d(!0),await n(e),a()}catch(e){r(e)}finally{d(!1)}};return(0,s.jsxs)(l.u_l,{isCentered:!0,isOpen:t,size:"lg",onClose:a,"data-testid":"add-edit-condition-modal",children:[(0,s.jsx)(l.ZAr,{}),(0,s.jsxs)(l.hzk,{minWidth:"650px",children:[(0,s.jsx)(l.xBx,{children:c?"Edit condition":"Add condition"}),(0,s.jsx)(l.olH,{}),(0,s.jsx)(l.fef,{pb:6,children:(0,s.jsxs)(l.gCW,{align:"stretch",gap:"16px",children:[(0,s.jsx)(l.xuv,{color:"gray.700",fontSize:"14px",children:c?"Update the condition settings for task creation.":"Configure a new condition that must be met before a task is created. Select a field from your datasets to create the condition."}),(0,s.jsx)(eJ,{onAdd:u,onCancel:()=>{a()},editingCondition:i,isSubmitting:o})]})})]})]})};let eQ={[$.EF.EQ]:"equals",[$.EF.NEQ]:"not equals",[$.EF.LT]:"less than",[$.EF.LTE]:"less than or equal",[$.EF.GT]:"greater than",[$.EF.GTE]:"greater than or equal",[$.EF.EXISTS]:"exists",[$.EF.NOT_EXISTS]:"does not exist",[$.EF.LIST_CONTAINS]:"list contains",[$.EF.NOT_IN_LIST]:"not in list",[$.EF.STARTS_WITH]:"starts with",[$.EF.CONTAINS]:"contains",[$.EF.LIST_INTERSECTS]:"list intersects",[$.EF.LIST_SUBSET]:"list subset",[$.EF.LIST_SUPERSET]:"list superset",[$.EF.LIST_DISJOINT]:"list disjoint",[$.EF.ENDS_WITH]:"ends with"},e$={[$.PF.TEXT]:"Text",[$.PF.CHECKBOX]:"Checkbox",[$.PF.ATTACHMENT]:"Attachment"},e0={[$.k6.ACCESS]:"Access",[$.k6.ERASURE]:"Erasure"},e1=(e,t,a)=>(0,g.useCallback)(async n=>{let i=0===n.length?[]:[{logical_operator:$.RP.AND,conditions:n}];await t({connectionKey:e,conditions:i}).unwrap(),await a()},[e,t,a]),{Paragraph:e3,Text:e2}=l.AntTypography;var e5=e=>{let{connectionKey:t}=e,[a,n]=(0,g.useState)([]),[i,r]=(0,g.useState)(!1),[o,d]=(0,g.useState)(null),[c,u]=(0,g.useState)(null),[m,h]=(0,g.useState)(null),{isOpen:p,onOpen:_,onClose:x}=(0,l.qY0)(),{data:y,isLoading:f,error:F,refetch:v}=eD({connectionKey:t},{skip:!t}),[S]=eO(),b=e1(t,S,v);(0,g.useEffect)(()=>{(null==y?void 0:y.dependency_conditions)&&y.dependency_conditions.length>0?n(y.dependency_conditions[0].conditions.filter(e=>"field_address"in e&&"operator"in e)):n([])},[y]);let j=(0,g.useCallback)(()=>{d(null),u(null),r(!0)},[]),C=(0,g.useCallback)((e,t)=>{d(t),u(e),r(!0)},[]),T=(0,g.useCallback)(()=>{r(!1),d(null),u(null)},[]),k=(0,g.useCallback)(async e=>{let t=[];n(t=null!==c?a.map((t,a)=>a===c?e:t):[...a,e]);try{await b(t),l.Pg3.success(null!==c?"Condition updated successfully!":"Condition added successfully!")}catch(e){throw n(a),e}},[c,a,b]),E=(0,g.useCallback)((e,t)=>{h({index:e,condition:t}),_()},[_]),N=(0,g.useCallback)(async()=>{if(m){let e=a.filter((e,t)=>t!==m.index);n(e);try{await b(e),l.Pg3.success("Condition deleted successfully!")}catch(e){l.Pg3.error("Failed to delete condition. Please try again."),n(a)}h(null)}x()},[m,a,b,x]);return f?(0,s.jsx)("div",{className:"py-4",children:(0,s.jsx)(e2,{className:"text-gray-500",children:"Loading conditions..."})}):F?(0,s.jsx)("div",{className:"py-4",children:(0,s.jsx)(e2,{className:"text-red-500",children:"Failed to load conditions. Please refresh the page and try again."})}):(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(l.AntTypography.Title,{level:5,children:"Conditional task creation"}),(0,s.jsx)(e3,{className:"mt-2 w-2/3 text-gray-600",children:"Configure conditions that must be met before a task is created. If no conditions are set, manual tasks will be created for every incoming privacy request of the corresponding type (access or erasure)."}),(0,s.jsx)(e3,{className:"mt-2 text-gray-600",children:(0,s.jsx)(e2,{strong:!0,children:"All conditions must be met for the task to be created."})})]}),(0,s.jsx)("div",{className:"mb-4 flex items-center justify-end gap-2",children:(0,s.jsx)(l.wpx,{type:"primary",onClick:j,"data-testid":"add-condition-btn",children:"Add condition"})}),(0,s.jsx)(l.krs,{dataSource:a,"data-testid":"conditions-list",locale:{emptyText:(0,s.jsx)("div",{className:"py-8 text-center",children:(0,s.jsx)(e2,{type:"secondary",children:"No conditions configured. Manual tasks will be created for all privacy requests."})})},renderItem:(e,t)=>(0,s.jsx)(l.krs.Item,{actions:[(0,s.jsx)(l.wpx,{type:"link",onClick:()=>C(t,e),"data-testid":"edit-condition-".concat(t,"-btn"),className:"px-1",children:"Edit"},"edit"),(0,s.jsx)(l.wpx,{type:"link",onClick:()=>E(t,e),"data-testid":"delete-condition-".concat(t,"-btn"),className:"px-1",children:"Delete"},"delete")],children:(0,s.jsx)(l.krs.Item.Meta,{title:(0,s.jsxs)(l.jqI,{gap:8,align:"center",className:"font-normal",children:[(0,s.jsx)("div",{className:"max-w-[300px]",children:(0,s.jsx)(l.esZ,{title:e.field_address,children:(0,s.jsx)(e2,{children:e.field_address.split(":").pop()})})}),(0,s.jsx)(l.j8w,{color:"sandstone",children:eQ[e.operator]}),(0,s.jsx)("div",{className:"max-w-[300px]",children:null!==e.value&&void 0!==e.value&&(0,s.jsx)(e2,{ellipsis:{tooltip:String(e.value)},children:String(e.value)})})]})})},t),className:"mb-4"}),(0,s.jsx)(eX,{isOpen:i,onClose:T,onConditionSaved:k,editingCondition:o}),(0,s.jsx)(ey.Z,{isOpen:p,onClose:()=>{h(null),x()},onConfirm:N,title:"Delete condition","data-testid":"delete-condition-modal",message:(0,s.jsxs)(e2,{className:"text-gray-500",children:["Are you sure you want to delete the condition for “",null==m?void 0:m.condition.field_address,"”? This action cannot be undone."]}),continueButtonText:"Delete",isCentered:!0,icon:(0,s.jsx)(l.aNP,{})})]})},e6=e=>{let{selectedUsers:t,userOptions:a,onUserAssignmentChange:n}=e,i=(0,g.useMemo)(()=>[...a.filter(e=>t.includes(e.value)),...a.filter(e=>!t.includes(e.value))],[a,t]);return(0,s.jsx)("div",{children:(0,s.jsxs)(l.jqI,{align:"center",gap:"middle",children:[(0,s.jsx)(l.AntTypography.Text,{strong:!0,children:"Assign manual tasks to users:"}),(0,s.jsx)(l.WPr,{className:"flex-1",placeholder:"Select users to assign manual tasks to","aria-label":"Select users to assign manual tasks to",mode:"multiple",maxTagCount:"responsive",value:t,onChange:n,options:i,optionLabelProp:"displayName",tokenSeparators:[","],"data-testid":"assign-users-select",filterOption:(e,t)=>"string"==typeof(null==t?void 0:t.label)&&t.label.toLowerCase().includes(e.toLowerCase())||!1})]})})};let{useGetManualFieldsQuery:e4,useGetManualFieldQuery:e8,useCreateManualFieldMutation:e7,useUpdateManualFieldMutation:e9,useDeleteManualFieldMutation:te}=eq.u.injectEndpoints({endpoints:e=>({getManualFields:e.query({query:e=>{let{connectionKey:t,requestType:a}=e;return{url:"".concat(eU.Iy,"/").concat(t,"/manual-fields")+(a?"?request_type=".concat(a):""),method:"GET"}},providesTags:()=>["Manual Fields"]}),getManualField:e.query({query:e=>{let{connectionKey:t,manualFieldId:a}=e;return{url:"".concat(eU.Iy,"/").concat(t,"/manual-field/").concat(a),method:"GET"}},providesTags:e=>[{type:"Manual Fields",id:null==e?void 0:e.id}]}),createManualField:e.mutation({query:e=>{let{connectionKey:t,body:a}=e;return{url:"".concat(eU.Iy,"/").concat(t,"/manual-field"),method:"POST",body:a}},invalidatesTags:()=>["Manual Fields"]}),updateManualField:e.mutation({query:e=>{let{connectionKey:t,manualFieldId:a,body:n}=e;return{url:"".concat(eU.Iy,"/").concat(t,"/manual-field/").concat(a),method:"PUT",body:n}},invalidatesTags:()=>["Manual Fields"]}),deleteManualField:e.mutation({query:e=>{let{connectionKey:t,manualFieldId:a}=e;return{url:"".concat(eU.Iy,"/").concat(t,"/manual-field/").concat(a),method:"DELETE"}},invalidatesTags:()=>["Manual Fields"]})})});var tt=a(3124),ta=a.n(tt);let tn=e=>{let{text:t}=e;return(0,s.jsx)(l.esZ,{title:t,children:(0,s.jsx)(l.PJP.daM,{style:{color:ta().FIDESUI_NEUTRAL_500,marginLeft:4,cursor:"help"}})})};var ti=e=>{let{isSubmitting:t,onSaveClick:a,onCancel:n,editingTask:i}=e,[r]=l.PPS.useForm(),o=!!i,d=[{label:e0[$.k6.ACCESS],value:$.k6.ACCESS},{label:e0[$.k6.ERASURE],value:$.k6.ERASURE}],c=l.PPS.useWatch("requestType",r),u=c===$.k6.ACCESS?[{label:e$[$.PF.TEXT],value:$.PF.TEXT},{label:e$[$.PF.ATTACHMENT],value:$.PF.ATTACHMENT}]:c===$.k6.ERASURE?[{label:e$[$.PF.CHECKBOX],value:$.PF.CHECKBOX}]:[],m=!c||c===$.k6.ERASURE;(0,g.useEffect)(()=>{if(o&&i){var e;r.setFieldsValue({key:(null===(e=i.originalField)||void 0===e?void 0:e.key)||"",name:i.name,description:i.description,fieldType:i.fieldType,requestType:i.requestType})}else r.resetFields()},[r,o,i]);let h=async e=>{a(e)};return(0,s.jsxs)(l.PPS,{form:r,layout:"vertical",onFinish:h,onValuesChange:e=>{void 0!==e.requestType&&(e.requestType===$.k6.ERASURE?r.setFieldsValue({fieldType:$.PF.CHECKBOX}):e.requestType===$.k6.ACCESS?r.getFieldValue("fieldType")===$.PF.CHECKBOX&&r.setFieldsValue({fieldType:void 0}):(null===e.requestType||""===e.requestType)&&r.setFieldsValue({fieldType:void 0}))},disabled:t,children:[(0,s.jsx)(l.PPS.Item,{label:(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:["Task name",(0,s.jsx)(tn,{text:"A clear, descriptive name for this manual task. Example: Export user profile data"})]}),name:"name",rules:[{required:!0,message:"Please enter a task name"},{max:100,message:"Task name must be less than 100 characters"}],children:(0,s.jsx)(l.AntInput,{placeholder:"Enter task name","data-testid":"input-name"})}),(0,s.jsx)(l.PPS.Item,{label:(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:["Description",(0,s.jsx)(tn,{text:"Detailed instructions for completing this task. Example: Download and attach user's profile data from the customer portal"})]}),name:"description",rules:[{required:!0,message:"Please enter a description"},{max:200,message:"Description must be less than 200 characters"}],children:(0,s.jsx)(l.AntInput,{placeholder:"Enter task description","data-testid":"input-description"})}),!o&&(0,s.jsx)(l.PPS.Item,{label:(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:["Key",(0,s.jsx)(tn,{text:"Recommended: Unique identifier for this task that will appear in the DSR package sent to the data subject. If left empty, will be auto-generated from the task name. Example: user_data_export"})]}),name:"key",rules:[{max:50,message:"Key must be less than 50 characters"},{pattern:/^[a-z0-9_]*$/,message:"Key can only contain lowercase letters, numbers, and underscores"}],children:(0,s.jsx)(l.AntInput,{placeholder:"Recommended to specify (auto-generated if empty)","data-testid":"input-key"})}),o&&(0,s.jsx)(l.PPS.Item,{label:(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:["Key",(0,s.jsx)(tn,{text:"Unique identifier for this task that appears in the DSR package sent to the data subject."})]}),name:"key",children:(0,s.jsx)(l.AntInput,{disabled:!0,"data-testid":"input-key-disabled"})}),(0,s.jsx)(l.PPS.Item,{label:(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:["Request type",(0,s.jsx)(tn,{text:"Whether this task applies to access requests (providing data) or erasure requests (confirming deletion)"})]}),name:"requestType",rules:[{required:!0,message:"Please select a request type"}],children:(0,s.jsx)(l.WPr,{placeholder:"Select request type","aria-label":"Select request type",options:d,"data-testid":"select-request-type"})}),(0,s.jsx)(l.PPS.Item,{label:(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:["Field type",(0,s.jsx)(tn,{text:"Type of input required: Text (for written responses), Attachment (for file uploads), or Checkbox (for confirmation)"})]}),name:"fieldType",rules:[{required:!0,message:"Please select a field type"}],children:(0,s.jsx)(l.WPr,{placeholder:"Select field type","aria-label":"Select field type",options:u,disabled:m,"data-testid":"select-field-type"})}),(0,s.jsxs)(l.kCb,{justify:"flex-end",gap:2,children:[(0,s.jsx)(l.wpx,{onClick:n,disabled:t,"data-testid":"cancel-btn",children:"Cancel"}),(0,s.jsx)(l.wpx,{type:"primary",htmlType:"submit",loading:t,"data-testid":"save-btn",children:o?"Update task":"Add task"})]})]})},ts=e=>{let{isOpen:t,onClose:a,integration:n,onTaskAdded:i,editingTask:r}=e,{successAlert:o}=(0,F.VY)(),{handleError:d}=(0,F.HK)(),[c,u]=(0,g.useState)(!1),[m]=e7(),[h]=e9(),p=!!r,_=async e=>{try{if(u(!0),p&&r){let t={label:e.name,help_text:e.description,field_type:e.fieldType,request_type:e.requestType};await h({connectionKey:n.key,manualFieldId:r.id,body:t}).unwrap(),o("Manual task updated successfully!")}else{let t={key:e.key||void 0,label:e.name,help_text:e.description,field_type:e.fieldType,request_type:e.requestType};await m({connectionKey:n.key,body:t}).unwrap(),o("Manual task added successfully!")}i(),a()}catch(e){d(e)}finally{u(!1)}};return(0,s.jsxs)(l.u_l,{isCentered:!0,isOpen:t,size:"lg",onClose:a,children:[(0,s.jsx)(l.ZAr,{}),(0,s.jsxs)(l.hzk,{minWidth:"775px","data-testid":"add-manual-task-modal",children:[(0,s.jsx)(l.xBx,{children:p?"Edit manual task":"Add manual task"}),(0,s.jsx)(l.olH,{}),(0,s.jsx)(l.fef,{pb:6,children:(0,s.jsxs)(l.gCW,{align:"stretch",gap:"16px",children:[(0,s.jsx)(l.xuv,{color:"gray.700",fontSize:"14px",children:p?"Update the manual task configuration for this integration.":"Configure a new manual task for this integration. Define the task name, description, and any specific parameters needed for execution."}),(0,s.jsx)(ti,{isSubmitting:c,onSaveClick:_,onCancel:()=>{a()},editingTask:r})]})})]})]})};let tl=e=>{let{integration:t}=e,[a,n]=(0,g.useState)([]),{data:i,refetch:s}=e4({connectionKey:t?t.key:""},{skip:!t}),[r]=te();return(0,g.useEffect)(()=>{i&&n(i.map(e=>({id:e.id,name:e.label,description:e.help_text,fieldType:e.field_type,requestType:e.request_type,originalField:e})))},[i]),{manualTasks:a,deleteManualTask:(0,g.useCallback)(async e=>{try{await r({connectionKey:t.key,manualFieldId:e.id}).unwrap(),s()}catch(e){l.Pg3.error("Failed to delete manual task. Please try again.")}},[r,t.key,s]),refreshManualTasks:(0,g.useCallback)(()=>{s()},[s]),isLoading:!i}};var tr=e=>{let{integration:t}=e,{manualTasks:a,deleteManualTask:n,refreshManualTasks:i}=tl({integration:t}),[r,o]=(0,g.useState)(null),[d,c]=(0,g.useState)(null),[u,m]=(0,g.useState)(!1),[h,p]=(0,g.useState)(!1),_=(0,g.useCallback)(async()=>{d&&await n(d),c(null),p(!1)},[d,n]),x=e=>{o(e),m(!0)},y=e=>{c(e),p(!0)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.jqI,{align:"center",justify:"end",gap:"small",className:"mt-[-25px]",children:(0,s.jsx)(l.wpx,{type:"primary",onClick:()=>{o(null),m(!0)},"data-testid":"add-manual-task-list-btn",children:"Create manual task"})}),(0,s.jsx)(l.krs,{itemLayout:"horizontal",dataSource:a,locale:{emptyText:(0,s.jsx)("div",{className:"px-4 py-2 text-center",children:(0,s.jsxs)(l.AntTypography.Paragraph,{type:"secondary",children:["No manual tasks configured yet. ",(0,s.jsx)("br",{}),'Click "Create manual task" to get started.']})})},renderItem:e=>{let t=e0[e.requestType]||e.requestType;return(0,s.jsx)(l.krs.Item,{actions:[(0,s.jsx)(l.wpx,{type:"link",onClick:()=>x(e),"data-testid":"edit-list-btn",className:"px-1",children:"Edit"},"edit"),(0,s.jsx)(l.wpx,{type:"link",onClick:()=>y(e),"data-testid":"delete-list-btn",className:"px-1",children:"Delete"},"delete")],children:(0,s.jsx)(l.krs.Item.Meta,{title:"".concat(e.name," (").concat(t,")"),description:e.description})},e.id)}}),(0,s.jsx)(ts,{isOpen:u,onClose:()=>{o(null),m(!1)},integration:t,onTaskAdded:i,editingTask:r}),(0,s.jsx)(ey.Z,{isOpen:h,onClose:()=>{c(null),p(!1)},onConfirm:_,title:"Delete manual task",message:(0,s.jsxs)("span",{className:"text-gray-500",children:['Are you sure you want to delete the manual task "',null==d?void 0:d.name,'"? This action cannot be undone.']}),continueButtonText:"Delete",isCentered:!0,icon:(0,s.jsx)(l.aNP,{})})]})},to=a(79894),td=a.n(to);let{useCreateExternalUserMutation:tc}=eq.u.injectEndpoints({endpoints:e=>({createExternalUser:e.mutation({query:e=>({url:"plus/external-user",method:"POST",body:e}),invalidatesTags:["User"]})})}),{Paragraph:tu}=l.AntTypography;var tm=e=>{let{isOpen:t,onClose:a,onUserCreated:n}=e,[i]=l.PPS.useForm(),[r,o]=(0,g.useState)(!1),[c]=tc(),u=(0,l.pmc)(),m=e=>e.split("@")[0].replace(/[^a-zA-Z0-9_]/g,"_"),h=async e=>{o(!0);try{let t=m(e.email_address),a=await c({username:t,email_address:e.email_address,first_name:e.first_name,last_name:e.last_name});if((0,f.D4)(a)){u((0,S.Vo)((0,f.e$)(a.error)));return}u((0,S.t5)("External respondent user created successfully. The user will receive a welcome email with access instructions.")),i.resetFields(),n()}catch(e){u((0,S.Vo)("Failed to create external user. Please try again."))}finally{o(!1)}},p=()=>{i.resetFields(),a()};return(0,s.jsxs)(l.$zI,{title:"Create external respondent user",open:t,onCancel:p,footer:null,width:500,"data-testid":"create-external-user-modal",children:[(0,s.jsxs)("div",{style:{marginBottom:16},children:[(0,s.jsx)(tu,{type:"secondary",children:"Create an external respondent user who can be assigned manual DSR tasks. These users access a secure external task portal to complete assigned tasks without logging into the Fides admin interface."}),(0,s.jsxs)(tu,{type:"secondary",children:["If you need to create an internal user that can log in to the Fides admin interface, please use the"," ",(0,s.jsx)(td(),{href:d.e3,children:"Users page"})," instead."]})]}),(0,s.jsxs)(l.PPS,{form:i,layout:"vertical",onFinish:h,requiredMark:!1,children:[(0,s.jsx)(l.PPS.Item,{name:"email_address",label:"Email Address",rules:[{required:!0,message:"Email address is required"},{type:"email",message:"Please enter a valid email address"}],children:(0,s.jsx)(l.AntInput,{placeholder:"user@example.com","data-testid":"input-email_address"})}),(0,s.jsx)(l.PPS.Item,{name:"first_name",label:"First Name",rules:[{required:!0,message:"First name is required"}],children:(0,s.jsx)(l.AntInput,{"data-testid":"input-first_name"})}),(0,s.jsx)(l.PPS.Item,{name:"last_name",label:"Last Name",rules:[{required:!0,message:"Last name is required"}],children:(0,s.jsx)(l.AntInput,{"data-testid":"input-last_name"})}),(0,s.jsx)(l.PPS.Item,{style:{marginBottom:0,marginTop:24},children:(0,s.jsxs)("div",{style:{display:"flex",justifyContent:"flex-end",gap:8},children:[(0,s.jsx)(l.wpx,{onClick:p,disabled:r,"data-testid":"cancel-btn",children:"Cancel"}),(0,s.jsx)(l.wpx,{type:"primary",htmlType:"submit",loading:r,"data-testid":"save-btn",children:"Create User"})]})})]})]})},th=a(65497);let tp=e=>{var t;let{integration:a}=e,[n,i]=(0,g.useState)([]),[s,r]=(0,g.useState)(!1),{isOpen:o,onOpen:d,onClose:c}=(0,l.qY0)(),{data:u}=eD({connectionKey:a?a.key:""},{skip:!a}),{data:m,refetch:h}=(0,th.wv)({page:1,size:100,username:""}),[p]=eL(),_=(null!==(t=null==m?void 0:m.items)&&void 0!==t?t:[]).map(e=>{let t=e.first_name&&e.last_name?"".concat(e.first_name||""," ").concat(e.last_name||""):null,a=t||e.email_address||e.username||"Unknown User";return{label:"".concat(t," (").concat(e.email_address||e.username,")").trim(),value:e.id,displayName:a}});(0,g.useEffect)(()=>{(null==u?void 0:u.assigned_users)&&i(u.assigned_users.map(e=>e.id).filter(e=>null!=e))},[u]);let x=(0,g.useCallback)(async e=>{r(!0);try{await p({connectionKey:a.key,userIds:null!=e?e:n}).unwrap(),l.Pg3.success("Assigned users have been updated")}catch(e){l.Pg3.error("Failed to assign users to manual task. Please try again.")}finally{r(!1)}},[p,a.key,n]);return{selectedUsers:n,userOptions:_,isSavingUsers:s,handleUserAssignmentChange:(0,g.useCallback)(e=>{i(e),x(e)},[x]),handleUserCreated:(0,g.useCallback)(()=>{h()},[h]),isCreateUserOpen:o,onCreateUserOpen:d,onCreateUserClose:c}};var t_=e=>{let{integration:t}=e,{selectedUsers:a,userOptions:n,handleUserAssignmentChange:i,handleUserCreated:r,isCreateUserOpen:o,onCreateUserOpen:d,onCreateUserClose:c}=tp({integration:t});return(0,s.jsx)("div",{children:(0,s.jsxs)(l.jqI,{vertical:!0,gap:"middle",children:[(0,s.jsx)(l.AntTypography.Paragraph,{className:"mt-2 w-2/3",children:"Configure manual tasks for this integration. Manual tasks allow you to define custom data collection or processing steps that require human intervention."}),(0,s.jsx)(tr,{integration:t}),(0,s.jsx)(l.htM,{className:"my-2"}),(0,s.jsx)(e6,{selectedUsers:a,userOptions:n,onUserAssignmentChange:i}),(0,s.jsx)(l.jqI,{justify:"start",children:(0,s.jsx)(l.wpx,{type:"default",onClick:d,"data-testid":"manage-secure-access-btn",children:"Create external user"})}),(0,s.jsx)(tm,{isOpen:o,onClose:c,onUserCreated:()=>{r(),c()}})]})})},tg=a(21365),tx=a(64176),ty=e=>{var t;let{isOpen:a,onClose:n,connection:i,description:r}=e,[o,d]=(0,g.useState)(null),c=(0,tx.Z)(i.connection_type,null==i?void 0:null===(t=i.saas_config)||void 0===t?void 0:t.type),u=(0,s.jsxs)("div",{className:"flex w-full justify-between",children:[(0,s.jsx)(l.wpx,{onClick:n,"data-testid":"cancel-btn",children:"Cancel"}),(0,s.jsx)(l.wpx,{type:"primary",onClick:()=>{o&&o.submitForm&&o.submitForm()},disabled:!o||!o.isValid||!o.dirty,loading:null==o?void 0:o.loading,"data-testid":"save-btn",children:"Save"})]});return(0,s.jsx)(v.Z,{title:"Manage ".concat(null==i?void 0:i.name," integration"),isOpen:a,onClose:n,footer:u,children:(0,s.jsx)(tg.Z,{connection:i,connectionOption:c,onClose:n,description:r,onFormStateChange:d})})},tf=a(41553);let tF=e=>{let{connection:t,enabledFeatures:a,integrationOption:n,testData:i,needsAuthorization:r,handleAuthorize:o,testConnection:d,testIsLoading:c,description:u,overview:m,instructions:h,supportsConnectionTest:p}=e,{onOpen:_,isOpen:x,onClose:y}=(0,l.qY0)();return(0,g.useMemo)(()=>{if(!a||!a.length)return[];let e=[];return(null==a?void 0:a.includes($.qb.WITHOUT_CONNECTION))?e.push({label:"Details",key:"details",children:(0,s.jsxs)(l.xuv,{children:[(0,s.jsx)(l.kCb,{children:(0,s.jsx)(l.wpx,{onClick:_,"data-testid":"manage-btn",children:"Edit integration"})}),(0,s.jsx)(ty,{isOpen:x,onClose:y,connection:t,description:u}),m,h]})}):e.push({label:"Connection",key:"connection",children:(0,s.jsxs)(l.xuv,{children:[p&&(0,s.jsxs)(l.kCb,{borderRadius:"md",outline:"1px solid",outlineColor:"gray.100",align:"center",p:3,children:[(0,s.jsx)(l.kCb,{flexDirection:"column",children:(0,s.jsx)(tf.Z,{testData:i,connectionOption:n})}),(0,s.jsx)(l.LZC,{}),(0,s.jsxs)("div",{className:"flex gap-4",children:[r&&(0,s.jsx)(l.wpx,{onClick:o,"data-testid":"authorize-integration-btn",children:"Authorize integration"}),!r&&(0,s.jsx)(l.wpx,{onClick:d,loading:c,"data-testid":"test-connection-btn",children:"Test connection"}),(0,s.jsx)(l.wpx,{onClick:_,"data-testid":"manage-btn",children:"Manage"})]})]}),(0,s.jsx)(ty,{isOpen:x,onClose:y,connection:t,description:u}),m,h]})}),(null==a?void 0:a.includes($.qb.DATA_SYNC))&&e.push({label:"Data sync",key:"data-sync",children:(0,s.jsx)(eP,{integration:t})}),(null==a?void 0:a.includes($.qb.DATA_DISCOVERY))&&e.push({label:"Data discovery",key:"data-discovery",children:(0,s.jsx)(eI,{integration:t,integrationOption:n})}),(null==a?void 0:a.includes($.qb.TASKS))&&e.push({label:"Manual tasks",key:"manual-tasks",children:(0,s.jsx)(t_,{integration:t})}),(null==a?void 0:a.includes($.qb.CONDITIONS))&&e.push({label:"Conditions",key:"conditions",children:(0,s.jsx)(e5,{connectionKey:t.key})}),e},[t,a,n,i,r,o,d,c,_,x,y,u,m,h,p])};var tv=a(93633),tS=a(75595);let tb=e=>{let{connection:t,connectionOption:a}=e,{data:n}=e4({connectionKey:t?t.key:""},{skip:!t});if((null==a?void 0:a.identifier)!==$.Rj.MANUAL_TASK)return null;let i=n&&n.length>0;return{title:"Add a manual task",description:i?"Manual tasks have been configured":"Configure a manual task for this integration. ",state:i?"finish":"process"}},tj=e=>{let{connection:t,connectionOption:a}=e,{data:n}=eD({connectionKey:t?t.key:""},{skip:!t});if((null==a?void 0:a.identifier)!==$.Rj.MANUAL_TASK)return null;let i=!!((null==n?void 0:n.assigned_users)&&n.assigned_users.length>0);return{title:"Assign the tasks to users",description:i?"Tasks have been assigned to users":"Assign the configured manual tasks to one or more users.",state:i?"finish":"process"}},tC=e=>{let{testData:t,connectionOption:a}=e;return(null==a?void 0:a.authorization_required)?{title:"Authorize integration",description:(0,s.jsx)("span",{children:(null==t?void 0:t.authorized)?"Integration authorized successfully":"Authorize access to your integration"}),state:(null==t?void 0:t.authorized)?"finish":"process"}:null},tT=()=>({title:"Create integration",description:"Integration created successfully",state:"finish"});var tk=a(87174);let tE=e=>{var t,a,n,i;let{enabledFeatures:s}=(0,_.ZP)(e.connection.connection_type,null===(t=e.connection.saas_config)||void 0===t?void 0:t.type),l=null==s?void 0:s.includes(tk.q.DATA_DISCOVERY),{data:r}=(0,b.Fu)({connection_config_key:null===(a=e.testData)||void 0===a?void 0:a.connectionKey,page:1,size:1},{skip:!(null===(n=e.testData)||void 0===n?void 0:n.connectionKey)||!l});if(!l)return null;let o=!!(null==r?void 0:null===(i=r.items)||void 0===i?void 0:i.length);return{title:"Create monitor",description:o?"Data monitor created successfully":"Use the Data discovery tab in this page to add a new monitor",state:o?"finish":"process"}},tN=e=>{let{connection:t}=e,a=!!(null==t?void 0:t.system_key);if((null==t?void 0:t.connection_type)===$.Rj.WEBSITE)return null;let n=a?d.Dv.replace("[id]",t.system_key):d.So;return{title:"Link system",description:a?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(td(),{href:n,passHref:!0,children:(0,s.jsx)(l.FKJ,{children:"System linked"})})," ","successfully"]}):(0,s.jsxs)(s.Fragment,{children:["Link this integration in the"," ",(0,s.jsx)(td(),{href:n,passHref:!0,children:(0,s.jsx)(l.FKJ,{children:"system inventory"})}),'. Navigate to the appropriate system and within the integration tab select "Link integration".']}),state:a?"finish":"process"}},tA=e=>{let{testData:t,testIsLoading:a,connectionOption:n,connection:i}=e,r=tT(),o=tC({testData:t,testIsLoading:a,connection:i,connectionOption:n}),d=tE({testData:t,testIsLoading:a,connection:i,connectionOption:n}),c=tb({testData:t,testIsLoading:a,connection:i,connectionOption:n}),u=tj({testData:t,testIsLoading:a,connection:i,connectionOption:n}),m=tN({testData:t,testIsLoading:a,connection:i,connectionOption:n}),h=(0,g.useMemo)(()=>[r,o,d,c,u,m].filter(e=>null!==e),[r,o,d,c,u,m]),p=(0,g.useMemo)(()=>h.map(e=>({...e,icon:"finish"===e.state?(0,s.jsx)(l.PJP.WzW,{size:24}):void 0})),[h]);return(0,s.jsx)(l.V4A,{title:"Integration setup","data-testid":"integration-setup-card",children:(0,s.jsx)(l.XX8,{direction:"vertical",current:(()=>{let e=h.findIndex(e=>"finish"!==e.state);return -1===e&&h.length>0?h.length-1:e})(),status:(()=>{let e=h.findIndex(e=>"finish"!==e.state);return -1===e?"finish":h[e].state})(),items:p,size:"small"})})};var tI=()=>{var e,t,a,n;let i=(0,r.useRouter)(),g=i.query.id,{data:x,isLoading:y}=(0,h.jA)(g,{skip:!g}),{data:f}=(0,m.$I)({}),F=(null==f?void 0:f.items)||[],v=(0,tx.Z)(null==x?void 0:x.connection_type,null==x?void 0:null===(e=x.saas_config)||void 0===e?void 0:e.type),{testData:S,testConnection:b,isLoading:j}=(0,p.Z)(x),{handleAuthorize:C,needsAuthorization:T}=(0,tv.z)({connection:x,connectionOption:v,testData:S}),k=(0,_.ZP)(null==x?void 0:x.connection_type,null==x?void 0:null===(t=x.saas_config)||void 0===t?void 0:t.type,F),{overview:E,instructions:N,description:A,enabledFeatures:I}=k;x&&!_.jq.includes(x.connection_type)&&i.push(d.KH);let w=(null==x?void 0:x.connection_type)!==$.Rj.MANUAL_TASK,M=tF({connection:x,enabledFeatures:I,integrationOption:v,testData:S,needsAuthorization:T,handleAuthorize:C,testConnection:b,testIsLoading:j,description:A,overview:E,instructions:N,supportsConnectionTest:w}),{activeTab:P,onTabChange:q}=(0,u.Z)({tabKeys:M.map(e=>e.key)});return(0,s.jsxs)(o.Z,{title:"Integrations",children:[(0,s.jsx)(c.Z,{heading:"Integrations",breadcrumbItems:[{title:"All integrations",href:d.KH},{title:null!==(n=null!==(a=null==x?void 0:x.name)&&void 0!==a?a:null==x?void 0:x.key)&&void 0!==n?n:""}]}),(0,s.jsxs)(l.bue,{wrap:!1,gutter:24,children:[(0,s.jsxs)(l.JGx,{flex:"1 1 auto",children:[(0,s.jsx)(tS.Z,{integration:x,integrationTypeInfo:k,showDeleteButton:!0}),y?(0,s.jsx)(l.$jN,{}):!!x&&(0,s.jsx)(l.A5g,{items:M,activeKey:P,onChange:q})]}),(0,s.jsx)(l.JGx,{flex:"0 0 350px",children:y?(0,s.jsx)(l.$jN,{}):!!x&&(0,s.jsx)(tA,{testData:S,testIsLoading:j,connectionOption:v,connection:x})})]})]})}}},function(e){e.O(0,[431,8765,9278,5163,699,3662,1316,7245,5279,155,2888,9774,179],function(){return e(e.s=50697)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[710],{66726:function(e,t,n){var i=n(11611),a=n(82846),o=n(91936),s=Math.max,r=Math.min;e.exports=function(e,t,n){var l,c,d,u,g,p,m=0,f=!1,h=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function x(t){var n=l,i=c;return l=c=void 0,m=t,u=e.apply(i,n)}function y(e){var n=e-p,i=e-m;return void 0===p||n>=t||n<0||h&&i>=d}function j(){var e,n,i,o=a();if(y(o))return C(o);g=setTimeout(j,(e=o-p,n=o-m,i=t-e,h?r(i,d-n):i))}function C(e){return(g=void 0,v&&l)?x(e):(l=c=void 0,u)}function w(){var e,n=a(),i=y(n);if(l=arguments,c=this,p=n,i){if(void 0===g)return m=e=p,g=setTimeout(j,t),f?x(e):u;if(h)return clearTimeout(g),g=setTimeout(j,t),x(p)}return void 0===g&&(g=setTimeout(j,t)),u}return t=o(t)||0,i(n)&&(f=!!n.leading,d=(h="maxWait"in n)?s(o(n.maxWait)||0,t):d,v="trailing"in n?!!n.trailing:v),w.cancel=function(){void 0!==g&&clearTimeout(g),m=0,l=p=c=g=void 0},w.flush=function(){return void 0===g?u:C(a())},w}},82846:function(e,t,n){var i=n(77400);e.exports=function(){return i.Date.now()}},9387:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/integrations",function(){return n(31912)}])},30952:function(e,t,n){"use strict";n.d(t,{f:function(){return l}});var i=n(24246),a=n(66726),o=n.n(a),s=n(27378),r=n(26917);let l=e=>{let{value:t,onChange:n,placeholder:a,...l}=e,[c,d]=(0,s.useState)(t);(0,s.useEffect)(()=>{d(t||"")},[t]);let u=o()(n,500),g=(0,s.useCallback)(e=>{d(e),u(e)},[]);return(0,i.jsx)(r.Z,{value:c,onChange:g,onClear:()=>{d(""),n("")},placeholder:a,...l})}},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var i=n(24246),a=n(20595),o=n(88038),s=n.n(o),r=n(86677);n(27378);var l=n(25980),c=n(90867),d=n(42478),u=n(77830),g=()=>{let e=(0,r.useRouter)();return(0,i.jsx)(a.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(a.xuv,{children:[(0,i.jsxs)(a.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(a.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(a.wpx,{onClick:()=>{e.push(u.AD)},children:"Configure"})]}),(0,i.jsxs)(a.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:n,padded:o=!0,mainProps:u}=e,p=(0,l.hz)(),m=(0,r.useRouter)(),f="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,h=!(p.flags.messagingConfiguration&&f),{data:v}=(0,d.JE)(void 0,{skip:h}),{data:x}=(0,c.PW)(void 0,{skip:h}),y=p.flags.messagingConfiguration&&(!v||!x)&&f;return(0,i.jsxs)(a.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(s(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(a.kCb,{as:"main",direction:"column",py:o?6:0,px:o?10:0,h:o?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[y?(0,i.jsx)(g,{}):null,t]})]})}},42478:function(e,t,n){"use strict";n.d(t,{FU:function(){return c},JE:function(){return a},Ki:function(){return u},SU:function(){return g},W:function(){return p},h9:function(){return o},jc:function(){return i},qt:function(){return l},sn:function(){return d}});let{useGetEmailInviteStatusQuery:i,useGetActiveMessagingProviderQuery:a,useCreateMessagingConfigurationMutation:o,useCreateMessagingConfigurationSecretsMutation:s,useGetMessagingConfigurationDetailsQuery:r,useGetMessagingConfigurationsQuery:l,useGetMessagingConfigurationByKeyQuery:c,useUpdateMessagingConfigurationByKeyMutation:d,useUpdateMessagingConfigurationSecretsByKeyMutation:u,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:p}=n(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,t,n,i)=>{let a=await i({url:"messaging/default/active"});return a.error&&404===a.error.status?{data:null}:a},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},31912:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Z}});var i,a,o=n(24246),s=n(20595),r=n(86677),l=n(27378),c=n(30952),d=n(25980),u=n(18225),g=n(17245),p=n(77213),m=n(77830),f=n(58754),h=n(16394),v=n(20682),x=n(41337),y=n(14207),j=n(8133),C=n(38187),w=n(21365),b=n(75595),k=e=>{let{integrationType:t,onConfigure:n}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(b.Z,{integration:null==t?void 0:t.placeholder,integrationTypeInfo:t,onConfigureClick:n}),null==t?void 0:t.overview]})},S=e=>{let t=(0,l.useRef)(null);return(0,l.useEffect)(()=>{let n=n=>{!t.current||t.current.contains(n.target)||n.target.closest('button, [role="button"], a, input, select, textarea')||e()};return document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}},[e]),t},T=n(35030),_=e=>{var t;let{integration:n,integrationTypeInfo:i,selected:a=!1,onClick:r,onDetailsClick:l,onUnfocus:c}=e,d=(0,g.pI)(n),u=i||(0,C.ZP)(null==n?void 0:n.connection_type,null==n?void 0:null===(t=n.saas_config)||void 0===t?void 0:t.type),p=S(()=>{a&&c&&c()});return(0,o.jsxs)(s.xuv,{ref:p,borderWidth:1,borderColor:a?"black":"gray.200",backgroundColor:a?"gray.50":"transparent",boxShadow:a?"md":"none",borderRadius:"lg",overflow:"hidden",padding:"12px",cursor:"pointer",onClick:r,"data-testid":"integration-info-".concat(null==n?void 0:n.key),children:[(0,o.jsx)(s.kCb,{justifyContent:"space-between",alignItems:"flex-start",className:"w-full",children:(0,o.jsxs)(s.kCb,{flexGrow:1,width:"100%",children:[(0,o.jsx)(x.ZP,{data:d,boxSize:"40px",className:"shrink-0"}),(0,o.jsxs)(s.kCb,{direction:"column",flexGrow:1,flexShrink:1,marginLeft:"12px",marginRight:"12px",width:0,children:[(0,o.jsx)(s.AntTypography.Text,{strong:!0,style:{color:"var(--chakra-colors-gray-700)",fontSize:"14px"},ellipsis:{tooltip:(null==n?void 0:n.name)||"(No name)"},children:(null==n?void 0:n.name)||"(No name)"}),(0,o.jsx)(s.xvT,{color:"gray.600",fontSize:"xs",mt:1,children:(0,T.qS)(u.category)})]}),l&&(0,o.jsx)(s.wpx,{size:"small",onClick:e=>{e.stopPropagation(),l()},type:"default",className:"shrink-0 px-2 py-1 text-xs","data-testid":"details-btn-".concat(null==n?void 0:n.key),children:"Details"})]})}),(0,o.jsxs)(s.Eq9,{marginTop:"12px",spacing:1,children:[u.tags.slice(0,3).map(e=>(0,o.jsx)(s.j8w,{children:e},e)),u.tags.length>3&&(0,o.jsxs)(s.j8w,{color:"corinth",children:["+",u.tags.length-3]})]})]})},M=n(39449),A=n(28946),N=e=>{let{selectedIntegration:t,onSelectIntegration:n,onDetailClick:i}=e,[a,r]=(0,l.useState)(""),[c,g]=(0,l.useState)("ALL"),[p,m]=(0,l.useState)(!1),{flags:{oktaMonitor:f,newIntegrationManagement:h}}=(0,d.Vb)(),{data:x}=(0,v.$I)({}),y=(0,l.useMemo)(()=>(null==x?void 0:x.items)||[],[x]),j=(0,l.useMemo)(()=>{let e=C.FO;h||(e=e.filter(e=>e.placeholder.connection_type!==M.Rj.SAAS));let t=new Set(e.filter(e=>e.placeholder.connection_type===M.Rj.SAAS).map(e=>{var t;return null===(t=e.placeholder.saas_config)||void 0===t?void 0:t.type}));return[...e,...h?y.filter(e=>"saas"===e.type&&!t.has(e.identifier)).map(e=>(0,C.ZP)(M.Rj.SAAS,e.identifier,y)):[]]},[y,h]),w=(0,l.useMemo)(()=>{let e=["ALL",...Object.values(A.k).filter(e=>e!==A.k.IDENTITY_PROVIDER||f)];return h?e:e.filter(e=>"ALL"===e?j.length>0:j.some(t=>t.category===e))},[f,h,j]),b=(0,l.useMemo)(()=>{let e=j;if("ALL"!==c&&(e=e.filter(e=>e.category===c)),a.trim()){let t=a.toLowerCase();e=e.filter(e=>(e.placeholder.name||"").toLowerCase().includes(t))}return(e=e.filter(e=>!!f||"okta"!==e.placeholder.connection_type)).sort((e,t)=>{let n=e.placeholder.name||"",i=t.placeholder.name||"";return n.localeCompare(i)})},[a,c,f,j]),k=w.map(e=>"ALL"===e?{label:"All",value:e}:{label:(0,T.qS)(e),value:e}).sort((e,t)=>"All"===e.label?-1:"All"===t.label?1:e.label.localeCompare(t.label));return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"mb-4 mt-3 flex items-center justify-between gap-4",children:[(0,o.jsx)(s.AntInput,{placeholder:"Search by name...",value:a,onChange:e=>r(e.target.value),className:"w-64",allowClear:!0}),(0,o.jsx)(s.WPr,{value:c,onChange:e=>{m(!0),g(e),setTimeout(()=>m(!1),100)},options:k,className:"w-48",placeholder:"Select category","aria-label":"Select a category","data-testid":"category-filter-select"})]}),p?(0,o.jsx)(u.Z,{}):(0,o.jsx)("div",{className:"grid grid-cols-3 gap-6",children:b.map(e=>(0,o.jsx)("div",{children:(0,o.jsx)(_,{integration:e.placeholder,integrationTypeInfo:e,selected:(null==t?void 0:t.placeholder.key)===e.placeholder.key,onClick:()=>{n((null==t?void 0:t.placeholder.key)===e.placeholder.key?void 0:e)},onDetailsClick:()=>i(e),onUnfocus:()=>n(void 0)})},e.placeholder.key))})]})},I=n(64176);(i=a||(a={})).LIST_VIEW="list-view",i.DETAIL="detail",i.FORM="form";var q=e=>{var t,n,i;let{isOpen:a,onClose:r}=e,[c,d]=(0,l.useState)("list-view"),[u,g]=(0,l.useState)(null),[p,m]=(0,l.useState)(),[f,h]=(0,l.useState)(null),v=(0,I.Z)(null==p?void 0:p.placeholder.connection_type,null==p?void 0:null===(n=p.placeholder)||void 0===n?void 0:null===(t=n.saas_config)||void 0===t?void 0:t.type),{description:x}=(0,C.ZP)(null==p?void 0:p.placeholder.connection_type,null==p?void 0:null===(i=p.placeholder.saas_config)||void 0===i?void 0:i.type),y=()=>{d("list-view"),g(null),m(void 0),h(null),r()},b=()=>{g("detail"),d("form")},S=p&&"list-view"!==c?"".concat(p.placeholder.name," Integration"):"Add integration",T="list-view"===c?(0,o.jsxs)("div",{className:"flex w-full justify-between",children:[(0,o.jsx)(s.wpx,{onClick:y,children:"Cancel"}),(0,o.jsx)(s.wpx,{type:"primary",onClick:()=>{"list-view"===c&&p&&(g("list-view"),d("form"))},disabled:!p,children:"Next"})]}):"detail"===c?(0,o.jsxs)("div",{className:"flex w-full justify-between",children:[(0,o.jsx)(s.wpx,{onClick:()=>d("list-view"),children:"Back"}),(0,o.jsx)(s.wpx,{onClick:b,type:"primary","data-testid":"configure-modal-btn",children:"Next"})]}):"form"===c?(0,o.jsxs)("div",{className:"flex w-full justify-between",children:[(0,o.jsx)(s.wpx,{onClick:()=>{u&&(d(u),g(null))},children:"Back"}),(0,o.jsx)(s.wpx,{type:"primary",onClick:()=>{f&&f.submitForm&&f.submitForm()},disabled:!f||!f.isValid||!f.dirty,loading:null==f?void 0:f.loading,"data-testid":"save-btn",children:"Save"})]}):null;return(0,o.jsxs)(j.Z,{isOpen:a,onClose:y,title:S,scrollBehavior:"inside",showCloseButton:!0,modalContentProps:{height:"700px",maxWidth:"1010px"},footer:T,children:["list-view"===c&&(0,o.jsx)(N,{selectedIntegration:p,onSelectIntegration:e=>{m(e)},onDetailClick:e=>{d("detail"),m(e)}}),"detail"===c&&(0,o.jsx)(k,{integrationType:p,onConfigure:b}),"form"===c&&(0,o.jsx)(w.Z,{connectionOption:v,onClose:y,description:x,onFormStateChange:h})]})},E=n(40774);let P=e=>{let{integration:t}=e,n=(0,g.pI)(t);return(0,o.jsx)(x.ZP,{data:n,boxSize:"20px"})};var Z=()=>{let[e,t]=(0,l.useState)(1),[n,i]=(0,l.useState)(50),[a,g]=(0,l.useState)(""),x=(0,r.useRouter)(),{flags:{newIntegrationManagement:j}}=(0,d.Vb)(),w=(0,l.useCallback)(a=>{(null==a?void 0:a.current)!==e&&t(a.current),(null==a?void 0:a.pageSize)&&a.pageSize!==n&&i(a.pageSize)},[e,n]),{data:b}=(0,v.$I)({}),k=(0,l.useMemo)(()=>(null==b?void 0:b.items)||[],[b]),S=(0,l.useMemo)(()=>j?C.jq:C.jq.filter(e=>e!==M.Rj.SAAS),[j]),{data:T,isLoading:_}=(0,y.AZ)({connection_type:S,size:n,page:e,search:a.trim()||void 0}),{items:A}=null!=T?T:{},{onOpen:N,isOpen:I,onClose:Z}=(0,s.qY0)(),L=(0,l.useMemo)(()=>{var e;return null!==(e=null==A?void 0:A.map(e=>{var t;return{...e,integrationTypeInfo:(0,C.ZP)(e.connection_type,null===(t=e.saas_config)||void 0===t?void 0:t.type,k)}}))&&void 0!==e?e:[]},[A,k]),R=e=>{x.push("".concat(m.KH,"/").concat(e.key))},z=[{title:"Name",dataIndex:"name",key:"name",width:250,render:(e,t)=>(0,o.jsxs)("div",{className:"flex items-center gap-3",children:[(0,o.jsx)(P,{integration:t}),(0,o.jsx)(s.AntTypography.Text,{ellipsis:{tooltip:e||"(No name)"},className:"font-semibold",children:e||"(No name)"})]})},{title:"Type",dataIndex:"connection_type",key:"connection_type",width:150,render:(e,t)=>{var n;return(0,C.ZP)(e,null===(n=t.saas_config)||void 0===n?void 0:n.type,k).placeholder.name||e}},{title:"Capabilities",dataIndex:["integrationTypeInfo","tags"],key:"capabilities",width:300,render:e=>(0,o.jsx)("div",{className:"flex flex-wrap gap-1",children:e.map(e=>(0,o.jsx)(s.j8w,{children:e},e))})},{title:"Connection Status",key:"connection_status",width:150,render:(e,t)=>{let{status:n,color:i}=null===t.last_test_timestamp||void 0===t.last_test_timestamp?{status:"Untested",color:"default"}:!0===t.last_test_succeeded?{status:"Healthy",color:"success"}:!1===t.last_test_succeeded?{status:"Failed",color:"error"}:{status:"Untested",color:"default"},a=t.last_test_timestamp?"Last connection: ".concat((0,h.p6)(t.last_test_timestamp)):"The connection has not been tested";return(0,o.jsx)(s.esZ,{title:a,children:(0,o.jsx)(s.j8w,{color:i,children:n})})}},{title:"Actions",key:"actions",width:100,render:(e,t)=>(0,o.jsx)(s.wpx,{onClick:()=>R(t),"data-testid":"manage-btn-".concat(t.key),size:"small",children:"Manage"})}],F={current:e,pageSize:n,total:L.length,showQuickJumper:!1,showTotal:(e,t)=>"".concat(t[0],"-").concat(t[1]," of ").concat(e," integrations"),pageSizeOptions:["10","25","50","100"]},O={emptyText:a.trim()?"No integrations match your search":(0,o.jsx)("div",{"data-testid":"empty-state",children:'You have not configured any integrations. Click "Add Integration" to connect and configure systems now.'})};return(0,o.jsxs)(p.Z,{title:"Integrations",children:[(0,o.jsx)(f.Z,{heading:"Integrations",breadcrumbItems:[{title:"All integrations"}],rightContent:(0,o.jsx)(s.wpx,{onClick:N,"data-testid":"add-integration-btn",type:"primary",children:"Add integration"})}),(0,o.jsxs)("div",{className:"mb-4 flex items-center justify-between gap-4",children:[(0,o.jsx)(c.f,{placeholder:"Search by name...",value:a,onChange:e=>{g(e),t(1)},className:"max-w-sm"}),(0,o.jsx)(E.Z,{})]}),_?(0,o.jsx)(u.Z,{}):(0,o.jsx)(s.V5H,{columns:z,dataSource:L,rowKey:"key",pagination:F,loading:_,size:"small",locale:O,bordered:!0,onRow:e=>({onClick:()=>R(e),"data-testid":"integration-info-".concat(e.key)}),rowClassName:"cursor-pointer",onChange:w,"data-testid":"integrations-table"}),(0,o.jsx)(q,{isOpen:I,onClose:Z})]})}}},function(e){e.O(0,[431,8765,9278,5163,699,3662,1316,7245,155,2888,9774,179],function(){return e(e.s=9387)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates-4918f86f7300ac9b.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(39449),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-39b5586d9c8b64aa.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1921],{76985:function(e,l,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/poc/ant-components",function(){return a(47002)}])},58754:function(e,l,a){"use strict";var s=a(24246),i=a(20595),n=a(70788);l.Z=e=>{let{heading:l,breadcrumbItems:a,isSticky:t=!0,children:r,rightContent:c,style:d,...o}=e;return(0,s.jsxs)("div",{...o,style:t?{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)(i.jqI,{justify:"space-between",children:["string"==typeof l?(0,s.jsx)(i.lQT,{className:a||r?"pb-4":void 0,level:1,"data-testid":"page-heading",children:l}):l,c&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:c})]}),!!a&&(0,s.jsx)(n.m,{className:r?"pb-4":void 0,items:a,"data-testid":"page-breadcrumb"}),r]})}},70788:function(e,l,a){"use strict";a.d(l,{m:function(){return d}});var s=a(24246),i=a(20595),n=a(79894),t=a.n(n),r=a(27378);let{Text:c}=i.AntTypography,d=e=>{let{items:l,...a}=e,n=(0,r.useMemo)(()=>null==l?void 0:l.map((e,a)=>{let n=a===l.length-1,r={...e},d=r.onClick&&!r.href;return("string"==typeof r.title&&(r.title=(0,s.jsx)(c,{style:{color:"inherit",maxWidth:n?void 0:400},ellipsis:!n,id:n?"breadcrumb-current-page":void 0,children:r.title})),d)?r.title=(0,s.jsx)(i.wpx,{type:"text",size:"small",icon:r.icon,onClick:r.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:r.title}):(r.icon&&(r.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:r.icon}),r.title]})),r.href&&r.title&&(r.title=(0,s.jsx)(t(),{href:r.href,className:"ant-breadcrumb-link",children:r.title}),delete r.href)),r}),[l]);return(0,s.jsx)(i.zrq,{items:n,...a})}},47002:function(e,l,a){"use strict";a.r(l);var s=a(24246),i=a(20595),n=a(46238),t=a(58754);let{Content:r}=i.AntLayout,{Link:c,Paragraph:d,Text:o,Title:u}=i.AntTypography,h=[];for(let e=10;e<36;e+=1)h.push({label:e.toString(36)+e,value:e.toString(36)+e});l.default=()=>(0,s.jsx)(i.AntLayout,{children:(0,s.jsxs)(r,{className:"overflow-auto px-10 py-6",children:[(0,s.jsx)(t.Z,{heading:"Ant Design Proof of Concept"}),(0,s.jsxs)(i.bue,{gutter:16,className:"mt-6",children:[(0,s.jsx)(i.JGx,{span:8,children:(0,s.jsx)(i.V4A,{title:"Button",variant:"borderless",className:"h-full",children:(0,s.jsxs)(i.vyj,{direction:"vertical",children:[(0,s.jsx)(i.wpx,{type:"primary",children:"Primary Button"}),(0,s.jsx)(i.wpx,{children:"Default Button"}),(0,s.jsx)(i.wpx,{type:"dashed",children:"Dashed Button"}),(0,s.jsx)(i.wpx,{type:"text",children:"Text Button"}),(0,s.jsx)(i.wpx,{type:"link",children:"Link Button"}),(0,s.jsx)(i.wpx,{type:"primary",loading:!0,children:"Loading Button"}),(0,s.jsx)(i.wpx,{type:"primary",disabled:!0,children:"Disabled Button"})]})})}),(0,s.jsx)(i.JGx,{span:8,children:(0,s.jsx)(i.V4A,{title:"Switch",variant:"borderless",className:"h-full",children:(0,s.jsxs)(i.vyj,{direction:"vertical",children:[(0,s.jsx)(i.rAg,{defaultChecked:!0}),(0,s.jsx)(i.rAg,{size:"small",defaultChecked:!0}),(0,s.jsx)(i.rAg,{loading:!0,defaultChecked:!0})]})})}),(0,s.jsx)(i.JGx,{span:8,children:(0,s.jsx)(i.V4A,{title:"Select",variant:"borderless",className:"h-full",children:(0,s.jsxs)(i.vyj,{direction:"vertical",children:[(0,s.jsx)(i.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,s.jsx)(i.WPr,{defaultValue:"lucy",className:"w-32",disabled:!0,options:[{value:"lucy",label:"Lucy"}],"aria-label":"Select"}),(0,s.jsx)(i.WPr,{defaultValue:"lucy",className:"w-32",loading:!0,options:[{value:"lucy",label:"Lucy"}],"aria-label":"Select"}),(0,s.jsx)(i.WPr,{defaultValue:"lucy",className:"w-32",allowClear:!0,options:[{value:"lucy",label:"Lucy"}],"aria-label":"Select"}),(0,s.jsx)(i.WPr,{mode:"multiple",allowClear:!0,className:"w-full",placeholder:"Please select","aria-label":"Select",defaultValue:["a10","c12"],options:h}),(0,s.jsx)(i.WPr,{mode:"multiple",disabled:!0,className:"w-full",placeholder:"Please select","aria-label":"Select",defaultValue:["a10","c12"],options:h})]})})})]}),(0,s.jsx)("br",{}),(0,s.jsxs)(i.bue,{gutter:16,children:[(0,s.jsx)(i.JGx,{span:8,children:(0,s.jsx)(i.V4A,{title:"Checkbox",variant:"borderless",className:"h-full",children:(0,s.jsxs)(i.vyj,{direction:"vertical",children:[(0,s.jsx)(i.E_O,{children:"Checkbox"}),(0,s.jsx)(i.E_O,{defaultChecked:!0,children:"Checkbox"}),(0,s.jsx)(i.E_O,{disabled:!0,children:"Disabled"}),(0,s.jsx)(i.E_O,{indeterminate:!0,children:"Indeterminate"}),(0,s.jsx)(i.E_O.Group,{options:[{label:"Apple",value:"Apple"},{label:"Pear",value:"Pear"},{label:"Orange",value:"Orange",disabled:!0}],defaultValue:["Apple"]})]})})}),(0,s.jsx)(i.JGx,{span:8,children:(0,s.jsx)(i.V4A,{title:"Radio",variant:"borderless",className:"h-full",children:(0,s.jsxs)(i.vyj,{direction:"vertical",children:[(0,s.jsx)(i.y02,{children:"Radio"}),(0,s.jsx)(i.y02,{defaultChecked:!0,children:"Radio"}),(0,s.jsx)(i.y02,{disabled:!0,children:"Disabled"}),(0,s.jsx)(i.y02.Group,{options:[{label:"Apple",value:"Apple"},{label:"Pear",value:"Pear"},{label:"Orange",value:"Orange",disabled:!0}],defaultValue:"Apple"}),(0,s.jsx)(i.y02.Group,{options:[{label:"Apple",value:"Apple"},{label:"Pear",value:"Pear"},{label:"Orange",value:"Orange"}],defaultValue:"Apple",optionType:"button"}),(0,s.jsx)(i.y02.Group,{options:[{label:"Apple",value:"Apple"},{label:"Pear",value:"Pear"},{label:"Orange",value:"Orange"}],defaultValue:"Apple",optionType:"button",buttonStyle:"solid"})]})})}),(0,s.jsx)(i.JGx,{span:8,children:(0,s.jsx)(i.V4A,{title:"Input",variant:"borderless",className:"h-full",children:(0,s.jsxs)(i.vyj,{direction:"vertical",size:"middle",children:[(0,s.jsx)(i.vyj.Compact,{children:(0,s.jsx)(i.AntInput,{defaultValue:"26888888","aria-label":"Input"})}),(0,s.jsxs)(i.vyj.Compact,{children:[(0,s.jsx)(i.AntInput,{className:"w-1/5",defaultValue:"0571","aria-label":"Input"}),(0,s.jsx)(i.AntInput,{className:"w-4/5",defaultValue:"26888888","aria-label":"Input"})]}),(0,s.jsx)(i.vyj.Compact,{children:(0,s.jsx)(i.AntInput.Search,{addonBefore:"https://",placeholder:"input search text",allowClear:!0,"aria-label":"Input"})}),(0,s.jsxs)(i.vyj.Compact,{className:"w-full",children:[(0,s.jsx)(i.AntInput,{defaultValue:"Combine input and button","aria-label":"Input"}),(0,s.jsx)(i.wpx,{type:"primary",children:"Submit"})]}),(0,s.jsxs)(i.vyj.Compact,{children:[(0,s.jsx)(i.WPr,{defaultValue:"Zhejiang",options:h,"aria-label":"Select"}),(0,s.jsx)(i.AntInput,{defaultValue:"Xihu District, Hangzhou","aria-label":"Input"})]})]})})})]}),(0,s.jsx)("br",{}),(0,s.jsxs)(i.bue,{gutter:16,children:[(0,s.jsx)(i.JGx,{span:8,children:(0,s.jsx)(i.V4A,{title:"Tooltip",variant:"borderless",className:"h-full",children:(0,s.jsxs)(i.vyj,{direction:"vertical",children:[(0,s.jsx)(i.esZ,{title:"I'm a tooltip",children:"Hover or focus this text"}),(0,s.jsx)(n.b,{label:"Tooltip will show on mouse enter or focus."}),(0,s.jsx)(i.esZ,{title:"Focus styles don't change for naturally focusable elements like buttons",children:(0,s.jsx)(i.wpx,{children:"Button with tooltip"})})]})})}),(0,s.jsx)(i.JGx,{span:8,children:(0,s.jsx)(i.V4A,{title:"Alert",variant:"borderless",className:"h-full",children:(0,s.jsxs)(i.vyj,{direction:"vertical",children:[(0,s.jsx)(i.DUx,{message:"Success Tips",type:"success",showIcon:!0}),(0,s.jsx)(i.DUx,{message:"Informational Notes",type:"info",showIcon:!0}),(0,s.jsx)(i.DUx,{message:"Warning",type:"warning",showIcon:!0,closable:!0}),(0,s.jsx)(i.DUx,{message:"Error",type:"error",showIcon:!0})]})})}),(0,s.jsx)(i.JGx,{span:8,children:(0,s.jsx)(i.V4A,{title:"Tag",variant:"borderless",className:"h-full",children:(0,s.jsxs)(i.jqI,{wrap:!0,gap:"small",children:[(0,s.jsx)(i.j8w,{color:"default",children:"default"}),(0,s.jsx)(i.j8w,{color:"corinth",children:"corinth"}),(0,s.jsx)(i.j8w,{color:"minos",children:"minos"}),(0,s.jsx)(i.j8w,{color:"terracotta",children:"terracotta"}),(0,s.jsx)(i.j8w,{color:"olive",children:"olive"}),(0,s.jsx)(i.j8w,{color:"marble",children:"marble"}),(0,s.jsx)(i.j8w,{color:"sandstone",children:"sandstone"}),(0,s.jsx)(i.j8w,{color:"nectar",children:"nectar"}),(0,s.jsx)(i.j8w,{color:"error",children:"error"}),(0,s.jsx)(i.j8w,{color:"warning",children:"warning"}),(0,s.jsx)(i.j8w,{color:"caution",children:"caution"}),(0,s.jsx)(i.j8w,{color:"success",children:"success"}),(0,s.jsx)(i.j8w,{color:"info",children:"info"}),(0,s.jsx)(i.j8w,{color:"alert",children:"alert"}),(0,s.jsx)(i.j8w,{color:"white",children:"white"}),(0,s.jsx)(i.j8w,{closable:!0,onClose:()=>console.log("closed"),children:"Closable Tag"}),(0,s.jsx)(i.j8w,{onClick:()=>console.log("clicked"),addable:!0}),(0,s.jsx)(i.j8w,{onClick:()=>console.log("clicked"),addable:!0,children:"Add More"}),(0,s.jsxs)(i.j8w,{hasSparkle:!0,onClick:()=>console.log("clicked"),children:["Data Use",(0,s.jsx)(i.PJP.I8b,{})]}),(0,s.jsx)(i.j8w,{hasSparkle:!0,onClick:()=>console.log("clicked"),closable:!0,onClose:()=>console.log("closed"),children:"Data Category"})]})})})]}),(0,s.jsx)("br",{}),(0,s.jsxs)(i.bue,{gutter:16,children:[(0,s.jsx)(i.JGx,{span:8,children:(0,s.jsx)(i.V4A,{title:"Typography Headings",variant:"borderless",className:"h-full",children:(0,s.jsxs)(i.vyj,{direction:"vertical",children:[(0,s.jsx)(u,{level:1,children:"H1 default"}),(0,s.jsx)(u,{level:1,headingSize:2,children:"H1 sized as H2"}),(0,s.jsx)(u,{level:1,headingSize:3,children:"H1 sized as H3"}),(0,s.jsx)(i.htM,{style:{margin:0}}),(0,s.jsx)(u,{level:2,children:"H2 default"}),(0,s.jsx)(u,{level:2,headingSize:1,children:"H2 sized as H1"}),(0,s.jsx)(u,{level:2,headingSize:3,children:"H2 sized as H3"}),(0,s.jsx)(i.htM,{style:{margin:0}}),(0,s.jsx)(u,{level:3,children:"H3 default"}),(0,s.jsx)(u,{level:3,headingSize:1,children:"H3 sized as H1"}),(0,s.jsx)(u,{level:3,headingSize:2,children:"H3 sized as H2"})]})})}),(0,s.jsx)(i.JGx,{span:8,children:(0,s.jsx)(i.V4A,{title:"Typography Paragraphs",variant:"borderless",className:"h-full",children:(0,s.jsxs)(i.AntTypography,{children:[(0,s.jsx)(d,{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,s.jsx)(d,{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,s.jsx)(d,{type:"secondary",children:"This paragraph uses secondary color. laoreet turpis adipiscing pulvinar erat conubia rhoncus, faucibus dictum porta integer tincidunt iaculis pharetra."})]})})}),(0,s.jsx)(i.JGx,{span:8,children:(0,s.jsx)(i.V4A,{title:"Typography Text & Link",variant:"borderless",className:"h-full",children:(0,s.jsxs)(i.vyj,{direction:"vertical",children:[(0,s.jsx)(o,{children:"Ant Design (default)"}),(0,s.jsx)(o,{size:"sm",children:"Ant Design (small)"}),(0,s.jsx)(o,{size:"lg",children:"Ant Design (large)"}),(0,s.jsx)(o,{type:"secondary",children:"Ant Design (secondary)"}),(0,s.jsx)(o,{type:"success",children:"Ant Design (success)"}),(0,s.jsx)(o,{type:"warning",children:"Ant Design (warning)"}),(0,s.jsx)(o,{type:"danger",children:"Ant Design (danger)"}),(0,s.jsx)(o,{disabled:!0,children:"Ant Design (disabled)"}),(0,s.jsx)(o,{mark:!0,children:"Ant Design (mark)"}),(0,s.jsx)(o,{code:!0,children:"Ant Design (code)"}),(0,s.jsx)(o,{keyboard:!0,children:"Ant Design (keyboard)"}),(0,s.jsx)(o,{underline:!0,children:"Ant Design (underline)"}),(0,s.jsx)(o,{delete:!0,children:"Ant Design (delete)"}),(0,s.jsx)(o,{strong:!0,children:"Ant Design (strong)"}),(0,s.jsx)(o,{italic:!0,children:"Ant Design (italic)"}),(0,s.jsx)(c,{href:"https://ant.design",target:"_blank",children:"Ant Design (Link)"})]})})})]})]})})}},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]-787621468b5a7619.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(50107)}])},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]})]})}},50107:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return eH}});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(39449),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 G=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 Z=i(88340),J=e=>{let{errorMessage:t,status:i=l.ERROR}=e;return(0,r.jsxs)(o.xuv,{height:"100%",id:"outer",children:[(0,r.jsxs)(o.kCb,{alignItems:"center",children:[(0,r.jsx)(o.xvT,{size:"sm",color:"gray.700",fontWeight:"medium",marginRight:"8px",lineHeight:"20px",children:"Status"}),(0,r.jsx)(o.j8w,{color:j[i],children:v[i]}),(0,r.jsx)(o.xuv,{padding:"0px",marginBottom:"3px",children:(0,r.jsx)(Z.Z,{copyText:t})})]}),(0,r.jsx)(o.izJ,{marginTop:"4px",marginBottom:"6px"}),(0,r.jsx)(o.xuv,{id:"errorWrapper",overflow:"auto",height:"100%",children:(0,r.jsx)(o.xvT,{children:t})})]})},K=i(3124),H=i.n(K);let Y=e=>{switch(e){case x.Us.ACCESS:return"Data Retrieval";case x.Us.ERASURE:return"Data Deletion";case x.Us.CONSENT:return"Consent";case x.Us.UPDATE:return"Data Update";default:return e}},V=e=>{if(e.status!==l.COMPLETE||!e.collection_name)return"-";let t=(e.message||"").match(/(?:retrieved|masked|processed)\s+(\d+)\s+records?$/i);return t?parseInt(t[1],10).toLocaleString():"-"},Q=(e,t)=>{let i=e.filter(e=>e.action_type===t&&e.status===l.COMPLETE&&e.collection_name).sort((e,t)=>new Date(t.updated_at).getTime()-new Date(e.updated_at).getTime()),n={};i.forEach(e=>{let t=e.collection_name||"unknown";n[t]||(n[t]=e)});let s=0,a=!1,r=/(?:retrieved|masked|processed)\s+(\d+)\s+records?$/i;return Object.values(n).forEach(e=>{if(e.message){let t=e.message.match(r);if(t){a=!0;let e=parseInt(t[1],10);s+=e}}}),a?s:null},$=(e,t,i)=>{if("finished"===e.status&&!e.collection_name&&i){let e=Q(t,i);return null!==e?e.toLocaleString():"-"}return V(e)};var X=e=>{var t,i,n;let{eventLogs:s,allEventLogs:a,onDetailPanel:c,privacyRequest:d}=e,u=(null==s?void 0:s.some(e=>e.collection_name))||(null==s?void 0:s.some(e=>"finished"===e.status&&!e.collection_name))||!1,m=null==s?void 0:s.every(e=>"finished"===e.status&&!e.collection_name),p=null==d?void 0:null===(n=d.policy)||void 0===n?void 0:null===(i=n.rules)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.action_type,h=e=>e?Y(e):p?Y(p):"-",x=null==s?void 0:s.map(e=>(0,r.jsxs)(o.Tr,{backgroundColor:e.status===l.ERROR||e.status===l.SKIPPED&&e.message||e.status===l.AWAITING_PROCESSING||e.status===l.POLLING?H().FIDESUI_NEUTRAL_50:"unset",onClick:()=>{(e.status===l.ERROR||e.status===l.SKIPPED&&e.message||e.status===l.AWAITING_PROCESSING||e.status===l.POLLING)&&c(e.message,e.status)},style:{cursor:e.message?"pointer":"unset"},_hover:{backgroundColor:H().FIDESUI_NEUTRAL_50},children:[(0,r.jsx)(o.Td,{children:(0,r.jsx)(o.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:(0,b.p6)(e.updated_at)})}),(0,r.jsx)(o.Td,{children:(0,r.jsx)(o.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:h(e.action_type)})}),(0,r.jsx)(o.Td,{children:v[e.status]?(0,r.jsx)(o.j8w,{color:j[e.status],children:v[e.status]}):(0,r.jsx)(o.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:e.status})}),u&&(0,r.jsx)(o.Td,{children:(0,r.jsx)(o.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:$(e,a||s,p)})}),u&&!m&&(0,r.jsx)(o.Td,{children:(0,r.jsx)(o.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"finished"===e.status?"Request completed":e.collection_name})})]},e.updated_at));return(0,r.jsx)(o.xuv,{width:"100%",paddingTop:"0px",height:"100%",children:(0,r.jsx)(o.xJi,{id:"tableContainer",height:"100%",style:{overflowY:"auto"},children:(0,r.jsxs)(o.iA_,{size:"sm",id:"table",position:"relative",children:[(0,r.jsx)(o.hrZ,{id:"tableHeader",position:"sticky",top:"0px",backgroundColor:"white",zIndex:10,children:(0,r.jsxs)(o.Tr,{children:[(0,r.jsx)(o.Th,{children:(0,r.jsx)(o.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Time"})}),(0,r.jsx)(o.Th,{children:(0,r.jsx)(o.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Action Type"})}),(0,r.jsx)(o.Th,{children:(0,r.jsx)(o.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Status"})}),u&&(0,r.jsx)(o.Th,{children:(0,r.jsx)(o.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Records"})}),u&&!m&&(0,r.jsx)(o.Th,{children:(0,r.jsx)(o.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Collection"})})]})}),(0,r.jsx)(o.p3B,{id:"tableBody",children:x})]})})})},ee=e=>{let{isOpen:t,onClose:i,currentLogs:n,allEventLogs:s,isViewingError:a,errorMessage:c,currentStatus:d=l.ERROR,onCloseErrorPanel:u,onOpenErrorPanel:m,privacyRequest:p}=e;return(0,r.jsxs)(o.dys,{isOpen:t,placement:"right",onClose:i,size:"full",autoFocus:!1,"data-testid":"log-drawer",children:[(0,r.jsx)(o.P1B,{}),(0,r.jsxs)(o.scA,{style:{width:"50%"},"data-testid":"log-drawer",children:[(0,r.jsx)(o.OXI,{style:{paddingBottom:"0px"},children:(0,r.jsxs)(o.kCb,{justifyContent:"space-between",alignItems:"center",height:"40px",children:[(0,r.jsxs)(o.kCb,{alignItems:"center",children:[a&&(0,r.jsx)(o.wpx,{icon:(0,r.jsx)(o.Rpv,{}),"aria-label":"Close error logs",size:"small",onClick:u}),(0,r.jsx)(o.xvT,{color:"gray.900",fontSize:"md",lineHeight:"6",fontWeight:"medium",ml:1,children:a?"Event detail":"Event log"})]}),(0,r.jsx)(o.wpx,{icon:(0,r.jsx)(o.LGN,{width:"17px"}),"aria-label":"Stop viewing error message",size:"small",onClick:i,"data-testid":"log-drawer-close"})]})}),(0,r.jsxs)(o.Ng0,{id:"drawerBody",overflow:"hidden",children:[n&&!a?(0,r.jsx)(X,{eventLogs:n,allEventLogs:s,onDetailPanel:m,privacyRequest:p}):null,a?(0,r.jsx)(J,{errorMessage:c,status:d}):null]})]})]})},et=e=>{let{subjectRequest:t}=e,{isOpen:i,onOpen:n,onClose:s}=(0,o.qY0)(),[c,d]=(0,h.useState)([]),[u,m]=(0,h.useState)(""),[p,x]=(0,h.useState)(!1),[g,v]=(0,h.useState)(""),[j,y]=(0,h.useState)(l.ERROR),{results:f,id:_}=t,{commentItems:b,isLoading:T}=O(_),{eventItems:E,isLoading:R}=W(f),{manualTaskItems:C,taskCommentIds:k,isLoading:q}=G(_);(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);let e_={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"}};var eb=e=>{let{status:t}=e;return(0,r.jsx)(o.j8w,{color:e_[t].color,className:"justify-center","data-testid":"request-status-badge",children:e_[t].label})},eT=i(18225),ew=i(812),eE=i(7842);let{useGetAttachmentsQuery:eA,useUploadAttachmentMutation:eR,useGetAttachmentDetailsQuery:eC,useLazyGetAttachmentDetailsQuery:ek}=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:eq}=(0,C.oM)({name:"privacyRequestAttachments",initialState:{},reducers:{}}),eS=e=>{var t;let{file:i}=e,[n,s]=(0,h.useState)(!1),[l]=ek(),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"})]})},eN=(e,t)=>(0,r.jsx)(eS,{file:t});var eP=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]=eR(),{data:c,isLoading:d,error:u}=(0,ec.PW)(),{data:m,isLoading:p}=eA({privacy_request_id:t.id}),{refetch:v}=eA({privacy_request_id:t.id}),j=(null==m?void 0:m.items.map(e=>({uid:e.id,name:e.file_name,status:"done",customData:{attachment_id:e.id,privacy_request_id:t.id,attachment_type:e.attachment_type}})))||[],y=(0,h.useCallback)(()=>(0,r.jsx)(o.PJP.PgN,{}),[]);if(!s)return null;let f=l&&(null==c?void 0:c.key),_=[".pdf",".doc",".docx",".xls",".xlsx",".txt",".csv",".jpg",".jpeg",".png",".zip"];return(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:"mt-6",children:[(0,r.jsx)("div",{className:"mb-6",children:(0,r.jsx)(o.lQT,{level:3,children:"Attachments"})}),d||p?(0,r.jsx)(eT.Z,{size:"md",alignment:"start"}):(0,r.jsx)(o.pMK,{name:"attachment_file",fileList:j,iconRender:y,showUploadList:{showRemoveIcon:!1,showDownloadIcon:!1},itemRender:eN,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:eE.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,ew.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"})]})})})]})})},eI=i(15709),eO=i.n(eI),eD=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(eO().label),children:(0,r.jsxs)(o.AntTypography.Text,{children:[t,":"]})}),(0,r.jsx)("div",{className:"min-w-0 shrink grow ".concat(eO().value),"data-testid":"request-detail-value-".concat(t),children:i})]})},eM=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)(eD,{label:i.label,children:(0,r.jsx)(o.AntTypography.Text,{children:Array.isArray(i.value)?i.value.join(", "):i.value})},t)})})},eU=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)(eD,{label:"Status",children:(0,r.jsx)(eb,{status:a})}),(0,r.jsx)(eD,{label:"Time remaining",children:(0,r.jsx)(ef.Z,{daysLeft:n.days_left,includeText:!0,status:n.status})}),(0,r.jsx)(eD,{label:"Request type",children:(0,r.jsx)(em,{rules:c.rules})}),(0,r.jsx)(eD,{label:"Source",children:s&&(0,r.jsx)(o.AntTypography.Text,{children:n.source||"-"})}),n.submitted_by&&(0,r.jsx)(eD,{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)(eD,{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)(eD,{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)(eM,{subjectRequest:n})]}),(0,r.jsxs)(o.PPS,{layout:"vertical",children:[(0,r.jsx)(o.PPS.Item,{label:"Request ID:",className:"mb-4",children:(0,r.jsx)(o.jqI,{gap:1,children:(0,r.jsxs)(o.vyj.Compact,{style:{width:"100%"},children:[(0,r.jsx)(o.AntInput,{readOnly:!0,value:l,"data-testid":"request-detail-value-id"}),(0,r.jsx)(o.wpx,{"aria-label":"Copy request ID",icon:(0,r.jsx)(Z.Z,{copyText:l})})]})})}),(0,r.jsx)(o.PPS.Item,{label:"Policy key:",className:"mb-4",children:(0,r.jsx)(o.AntInput,{readOnly:!0,value:n.policy.key,"data-testid":"request-detail-value-policy"})})]}),(0,r.jsx)(eP,{subjectRequest:n})]})};let eL=[x.q2.COMPLETE,x.q2.CANCELED,x.q2.DENIED,x.q2.ERROR];var ez=e=>{var t;let{data:i}=e,n=(0,h.useMemo)(()=>({id:i.id,verbose:!0}),[i.id]),{data:s}=(0,p.QA)(n,{pollingInterval:eL.includes(i.status)?0:2e3,skip:!i.id}),l=null!==(t=null==s?void 0:s.items[0])&&void 0!==t?t:i,a=l.status===x.q2.REQUIRES_INPUT,[c,d]=(0,h.useState)("activity"),u=(0,h.useMemo)(()=>[{key:"activity",label:"Activity",children:(0,r.jsx)(es,{subjectRequest:l})},{key:"manual-tasks",label:"Manual tasks",children:(0,r.jsx)(ey,{subjectRequest:l,onComplete:()=>d("activity")}),disabled:!a}],[a,l]);return(0,r.jsxs)("div",{className:"flex gap-8",children:[(0,r.jsx)("div",{className:"w-0 grow",children:(0,r.jsx)(o.A5g,{items:u,activeKey:c,onChange:d})}),(0,r.jsx)("div",{className:"w-1/3 2xl:w-[432px]","data-testid":"privacy-request-details",children:(0,r.jsx)(eU,{subjectRequest:l})})]})},eW=i(57526),eB=i(66548),eF=i(45489),eG=e=>{let{privacyRequest:t,action:i}=e,{handleApproveRequest:n,handleDenyRequest:s}=(0,eF.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,ew.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}},eJ=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,ew.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}},eK=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}=eG({privacyRequest:t,action:"approve"}),{isModalOpen:p,closeModal:g,performAction:v,openConfirmationModal:j,showAction:y}=eG({privacyRequest:t,action:"deny"}),{reprocessPrivacyRequest:f,showReprocess:_}=eJ({privacyRequest:t}),{handleFinalizeRequest:b,finalizeRequestResult:T}=(0,eF.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)(eW.Z,{isOpen:a,isLoading:!1,onClose:c,onApproveRequest:()=>d({reason:""}),subjectRequest:t}),(0,r.jsx)(eB.Z,{isOpen:p,onClose:g,onDenyRequest:e=>v({reason:e})})]})},eH=()=>{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)(eK,{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)(ez,{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()}]);
|