ethyca-fides 2.68.1b4__py2.py3-none-any.whl → 2.69.0rc1__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.68.1b4.dist-info → ethyca_fides-2.69.0rc1.dist-info}/METADATA +1 -1
- {ethyca_fides-2.68.1b4.dist-info → ethyca_fides-2.69.0rc1.dist-info}/RECORD +209 -209
- fides/_version.py +3 -3
- fides/api/api/v1/endpoints/oauth_endpoints.py +3 -0
- fides/api/api/v1/endpoints/privacy_request_endpoints.py +2 -1
- fides/api/api/v1/endpoints/user_endpoints.py +28 -1
- fides/api/models/client.py +9 -5
- fides/api/models/fides_user.py +1 -2
- fides/api/oauth/utils.py +21 -2
- fides/api/schemas/enums/integration_feature.py +3 -0
- fides/api/service/privacy_request/request_runner_service.py +3 -0
- fides/config/security_settings.py +7 -3
- fides/ui-build/static/admin/404.html +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3729-ccf90cdaae158f39.js → 3729-79255d8b0d22922d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/4121-b04a7859ee8f0b59.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{_app-284cba7174fa1f16.js → _app-36bec04369a1a7c4.js} +3 -3
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-3db44d6839e8dbd9.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{[id]-b9d6886a3f157120.js → [id]-71b89f125d817d47.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-c65acd2b7ab04753.js → organization-a01838a53677d69e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{webpack-4502d4d67006b48f.js → webpack-aa7ff73977a15cb3.js} +1 -1
- fides/ui-build/static/admin/_next/static/css/{dbcf63488933a4d5.css → 98fab0b3e6aa43ed.css} +1 -1
- fides/ui-build/static/admin/_next/static/css/abf2e162b1cd0e61.css +1 -0
- fides/ui-build/static/admin/_next/static/zEliM9juvmcu4yond1mtG/_buildManifest.js +1 -0
- fides/ui-build/static/admin/add-systems/manual.html +1 -1
- fides/ui-build/static/admin/add-systems/multiple.html +1 -1
- fides/ui-build/static/admin/add-systems.html +1 -1
- fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
- fides/ui-build/static/admin/consent/configure.html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
- fides/ui-build/static/admin/consent/properties.html +1 -1
- fides/ui-build/static/admin/consent/reporting.html +1 -1
- fides/ui-build/static/admin/consent.html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
- fides/ui-build/static/admin/data-catalog.html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
- fides/ui-build/static/admin/data-discovery/activity.html +1 -1
- fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-discovery/detection.html +1 -1
- fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
- fides/ui-build/static/admin/datamap.html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
- fides/ui-build/static/admin/dataset/new.html +1 -1
- fides/ui-build/static/admin/dataset.html +1 -1
- fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
- fides/ui-build/static/admin/datastore-connection/new.html +1 -1
- fides/ui-build/static/admin/datastore-connection.html +1 -1
- fides/ui-build/static/admin/index.html +1 -1
- fides/ui-build/static/admin/integrations/[id].html +1 -1
- fides/ui-build/static/admin/integrations.html +1 -1
- fides/ui-build/static/admin/lib/fides-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 +2 -2
- fides/ui-build/static/admin/lib/fides.js +2 -2
- fides/ui-build/static/admin/login/[provider].html +1 -1
- fides/ui-build/static/admin/login.html +1 -1
- fides/ui-build/static/admin/messaging/[id].html +1 -1
- fides/ui-build/static/admin/messaging/add-template.html +1 -1
- fides/ui-build/static/admin/messaging.html +1 -1
- fides/ui-build/static/admin/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/messaging.html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
- fides/ui-build/static/admin/privacy-requests.html +1 -1
- fides/ui-build/static/admin/properties/[id].html +1 -1
- fides/ui-build/static/admin/properties/add-property.html +1 -1
- fides/ui-build/static/admin/properties.html +1 -1
- fides/ui-build/static/admin/reporting/datamap.html +1 -1
- fides/ui-build/static/admin/settings/about/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.html +1 -1
- fides/ui-build/static/admin/settings/domain-records.html +1 -1
- fides/ui-build/static/admin/settings/domains.html +1 -1
- fides/ui-build/static/admin/settings/email-templates.html +1 -1
- fides/ui-build/static/admin/settings/locations.html +1 -1
- fides/ui-build/static/admin/settings/organization.html +1 -1
- fides/ui-build/static/admin/settings/regulations.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id].html +1 -1
- fides/ui-build/static/admin/systems.html +1 -1
- fides/ui-build/static/admin/taxonomy.html +1 -1
- fides/ui-build/static/admin/user-management/new.html +1 -1
- fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
- fides/ui-build/static/admin/user-management.html +1 -1
- fides/ui-build/static/admin/_next/static/LRCvfOqg1kP5kGnkD84G4/_buildManifest.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4121-9a4ebceff9accb7f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-4b0bb4ccfb237d41.js +0 -1
- fides/ui-build/static/admin/_next/static/css/43d0c0fc207767eb.css +0 -1
- {ethyca_fides-2.68.1b4.dist-info → ethyca_fides-2.69.0rc1.dist-info}/WHEEL +0 -0
- {ethyca_fides-2.68.1b4.dist-info → ethyca_fides-2.69.0rc1.dist-info}/entry_points.txt +0 -0
- {ethyca_fides-2.68.1b4.dist-info → ethyca_fides-2.69.0rc1.dist-info}/licenses/LICENSE +0 -0
- {ethyca_fides-2.68.1b4.dist-info → ethyca_fides-2.69.0rc1.dist-info}/top_level.txt +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{1099-b973dfdfc5c3de90.js → 1099-db533dd22b80bca6.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{1345-b60d1f3442379c73.js → 1345-6986414ab6ad3389.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{1817-74692de5d760a664.js → 1817-fcb2fd28034d5070.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{2921-2d9261e8e2e127c0.js → 2921-8a63ec72fa8e1bc0.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{3620-ebd89f91b82661e8.js → 3620-1fba74849114e70f.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{3847-2759bf1f47a1d29e.js → 3847-a868f83c065f54fb.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{3855-4174a4d4c205d6e8.js → 3855-3154d56888ac46ed.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{3872-660aba76572c811b.js → 3872-25eec062abd0f847.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{3923-c6cdc2e5278ae9a7.js → 3923-3be9b867f33e524c.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{401-8bc2c6c84172c096.js → 401-029e2ff644cae40c.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{4608-4d31340b0d0157c1.js → 4608-99e453c666a7b89a.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{4786-aaef673b30c19e2e.js → 4786-289c505d7d835feb.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{4808-a654c7f7a1ca62c8.js → 4808-5b799757d4564807.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{4844-cd7e1d0c7bb94094.js → 4844-a1784e2823ccd0ee.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{5258-bc4a25d43e4aa07d.js → 5258-45ec38e6c3780f24.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{5487-37c78c4799ba5223.js → 5487-aad0e8a240a1979b.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{549-2213dc1c34143cda.js → 549-81279a1a816487a7.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{6084-55cc66e7c94f0686.js → 6084-3379ca3c1fc77aa9.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{6853-313ce974d33432fb.js → 6853-04b15a7b02b1fc19.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{6954-021bd06d0ab59c3c.js → 6954-0f5d6c1757013eb7.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{7476-2fc286c2a9125eb8.js → 7476-2227e21f574bee70.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{7630-b9a41262a69edf5e.js → 7630-267de03b93bbae8d.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{768-034e121688a3bbdd.js → 768-24269f30db223720.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{787-8df7118742e84908.js → 787-0aa4d9802c976f92.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{79-d2ace89108ead8ae.js → 79-0102f2711b8455cd.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{796-2de6dac5f311d54a.js → 796-53f0ea567d1da2b9.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{8002-cfdc6574bd841892.js → 8002-98ecd56535cdefa3.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{9046-c44e41da49338c6c.js → 9046-a349c22448593f94.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{9826-d9addbd5ac990fa4.js → 9826-f4755a75d00c1c8c.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{9951-6ee5c0a23951a07f.js → 9951-07989276d153c848.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/{404-9644eb282f2dcd71.js → 404-fde1f56225d1ef4f.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-42b7fd34712f49bd.js → manual-aff671eda846719f.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-4f164eab0960bbe0.js → multiple-04894ddffc2a66fc.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/{add-systems-985d3c9179e69d7f.js → add-systems-e98c4154535bf37d.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-61090926e5f98a5d.js → add-vendors-b2f80cdb75183bfa.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-17ffe691b91cee2e.js → configure-207cabf1b5c453fc.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-95c13bca5c1e575e.js → [id]-b3db5610ae7e94fb.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-609399510a60beb9.js → privacy-experience-3009481bdd479fd7.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-d7d8f228ac74b26e.js → [id]-72e3cd6740c5c5de.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-821c0f82d5a2b7d4.js → new-2aa4d13fb26b59ca.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-8365782543cf6ab9.js → privacy-notices-6b0885a8c871804f.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-40a7aa65f4d13cf9.js → properties-20bc3cf67727dfd3.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/consent/{reporting-e4bacfc5c2ed2324.js → reporting-77b491108663a2de.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/{consent-70c5c6aa5389d99f.js → consent-b3c8efbd960f4e34.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-3207f62e5012611b.js → [projectUrn]-fe5f6fb33e34baa7.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-7b42dee0fb696658.js → projects-3584c90cf3670146.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/{data-catalog-31a45ea2ca2a7f04.js → data-catalog-a6cecf48e4e27645.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/{[systemId]-6172c2eb539319fd.js → [systemId]-844abdb5ea7d78af.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/{[monitorId]-945d354ff057fb03.js → [monitorId]-215d6e2fefc9a5e1.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{action-center-d9795e00f39cf4e9.js → action-center-7721508cc2a9ab3a.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{activity-657833fd8528280f.js → activity-6169e49c3787a9bf.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/{datamap-3a4b89fb21d14753.js → datamap-e17dd4ffcaa4836d.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-cb8d303f56091bd5.js → [...subfieldNames]-4af946dc8c6c967f.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-401c8be76d9daec7.js → [collectionName]-a65a8ea3872800e7.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-97e2d375b21cfe43.js → [datasetId]-ccc844caef652a7e.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{new-40ef544ca1f2c9b9.js → new-3b65c6e9af65ea2e.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/{dataset-e3c763f8e71f8e24.js → dataset-0566189a0236078d.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-152e5d15705ec072.js → [id]-38a7b8826e0abb01.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-651b10cae0e99a05.js → new-c8d2599814eefd35.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/{datastore-connection-03c54bc9fb18d2b0.js → datastore-connection-00ba79f6b47bd161.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/{index-3d19b9ffa15a928a.js → index-053db342725dc127.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/{integrations-78d4e0c14654148b.js → integrations-5f34de3c24e67368.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{[id]-72cb360a6d14e701.js → [id]-707b72e959233112.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{add-template-0ed67cf774d5cbf5.js → add-template-c68b413f3c9cf318.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/{messaging-b06a2204e2a5b667.js → messaging-d95588f3ef137030.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/{ant-components-7050899b3f792129.js → ant-components-36cac6f4379587ea.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{AntForm-7c3466f4d5797e55.js → AntForm-d44606c0cf203b47.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikAntFormItem-8de252f25871bab9.js → FormikAntFormItem-341b571fd8da4142.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikControlled-cd6de0da47f980cf.js → FormikControlled-2e99b5eb12982aeb.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikField-7c238a881fe30e28.js → FormikField-c7d62113680196dd.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/{forms-d4f3e8f67f76f146.js → forms-89a24591c3d9e7a8.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/{table-migration-c9220e20c1d93758.js → table-migration-c54bcfb6b0de8a71.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{messaging-9c1fd7867b2d80d7.js → messaging-4c8e1a7e407d3c7f.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{storage-fc959ed21dbce38c.js → storage-faf42d1a9cd6a861.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-44a4a638dcb2722a.js → configure-3823ee301161be4f.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/{privacy-requests-1433c9f9501a884f.js → privacy-requests-c9c1c02d7e68c4f8.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-16e0b42cb342aa5f.js → [id]-8973618b9ba28a50.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-ebd114a86b809391.js → add-property-b449da44de56fd3f.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/{properties-901be5fa4a48f48c.js → properties-5bb059b7057b5583.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/reporting/{datamap-da9ced1e20681154.js → datamap-6b26740aeb247bc8.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/settings/about/{alpha-0174554c0ac5958f.js → alpha-98c1492dca52f4f8.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{about-6f45ddbf675e66d2.js → about-d176ec152b70f82d.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/{[purpose_id]-275c49e6089c5c9f.js → [purpose_id]-ea5077aca3d01dfb.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{consent-1a8d05e19f06d857.js → consent-68b812269e38c8c3.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{custom-fields-49d86b9ca4523ca6.js → custom-fields-79cdee37ceb8665f.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-f71b4b95d91db926.js → domain-records-056f36a8a0509006.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domains-a595cad18cf04673.js → domains-fea15607939cab70.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-6f7f9751689b042c.js → email-templates-cce73ddc0012b089.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-e2c88d7f779fe604.js → locations-8b0a408ed7e3ff28.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-c1c699eeb40a9dc0.js → regulations-43e9cafaeb869069.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/{test-datasets-a274e2191b87e315.js → test-datasets-ea1e2483ddf6af6c.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-4a48b4f996a64957.js → [id]-7856e694b009ded3.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/{systems-30debc87925634d9.js → systems-2c6dca19bf0a4f0c.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/{taxonomy-ca625b1296a029f0.js → taxonomy-ede8ddce10d7d055.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-7a3180b235eb8846.js → [id]-af9bf43612c9676c.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-5e2d0acf575252ca.js → user-management-3b7fea8781dc18b5.js} +0 -0
- /fides/ui-build/static/admin/_next/static/{LRCvfOqg1kP5kGnkD84G4 → zEliM9juvmcu4yond1mtG}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
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(39460)}])},67991:function(e,t,a){"use strict";a.d(t,{Od:function(){return l},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])}}},l=e=>{let{initialSelected:t,initialExcluded:a,initialAllSelected:i,itemCount:l}=e,[s,r]=(0,n.useState)(t),[o,d]=(0,n.useState)(a),[c,u]=(0,n.useState)(i||s.length===l),_=!!s.length||!!o.length;return{selected:s,excluded:o,allSelected:c,someSelected:_,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=s.includes(e)?s.filter(t=>t!==e):[...s,e];r(t),t.length===l&&u(!0)}}}}},90111:function(e,t,a){"use strict";var n=a(24246),i=a(96306);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 l},Z8:function(){return i}});var n=a(54682);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"},l=new Map(Object.entries(i));Object.entries(i).map(e=>({value:e[0],label:e[1]}))},14908:function(e,t,a){"use strict";var n=a(86677),i=a(27378);let l=e=>e.startsWith("#")?e.slice(1):e;t.Z=e=>{let{tabKeys:t,initialTab:a}=e,s=(0,n.useRouter)(),r=s.asPath.split("#")[1]||t[0],[o,d]=(0,i.useState)(r);return(0,i.useEffect)(()=>{a&&t.includes(a)&&d(a)},[a,t,s.isReady]),{activeTab:o,onTabChange:(0,i.useCallback)(async e=>{if(!t.includes(e)){await s.replace({pathname:s.pathname,query:s.query,hash:void 0}),d(t[0]);return}s.isReady&&(await s.replace({pathname:s.pathname,query:s.query,hash:l(e)},void 0,{shallow:!0}),d(e))},[s,t])}}},79494:function(e,t,a){"use strict";var n=a(24246),i=a(96306);t.Z=e=>{let{title:t,icon:a,type:l,...s}=e;return(0,n.jsx)(i.wpx,{size:"small",type:l,"data-testid":"action-".concat(t),icon:a,iconPosition:"start",...s,children:t})}},60325:function(e,t,a){"use strict";a.d(t,{DD:function(){return r},Go:function(){return o},TK:function(){return i},Uv:function(){return c},k1:function(){return l},y3:function(){return u}});var n=a(54682);let i=e=>{var t;return null!==(t=null==e?void 0:e.filter(e=>e.selected).map(e=>e.id))&&void 0!==t?t:[]},l=e=>{var t;return null!==(t=null==e?void 0:e.filter(e=>e.selected))&&void 0!==t?t:[]},s=[{language:n.eU.EN,is_default:!0,title:"Title",description:"Description",accept_button_label:"Accept",reject_button_label:"Reject",save_button_label:"Save",acknowledge_button_label:"OK",privacy_preferences_link_label:"Privacy Preferences"}],r={name:"",disabled:!1,dismissable:!0,allow_language_selection:!1,show_layer1_notices:!1,layer1_button_options:n.Of.OPT_IN_OPT_OUT,regions:[],translations:s,auto_detect_language:!0,auto_subdomain_cookie_deletion:!0},o=(e,t)=>{let a=t.find(t=>t.id===e.language);return a?a.name:e.language},d=e=>{var t,a,n,i,l,s,r,o,d;let{language:c,is_default:u,accept_button_label:_,reject_button_label:m}=e;return{language:c,is_default:u,accept_button_label:_,reject_button_label:m,title:e.title,description:e.description,acknowledge_button_label:null!==(t=e.acknowledge_button_label)&&void 0!==t?t:void 0,banner_title:null!==(a=e.banner_title)&&void 0!==a?a:void 0,banner_description:null!==(n=e.banner_description)&&void 0!==n?n:void 0,purpose_header:null!==(i=e.purpose_header)&&void 0!==i?i:void 0,privacy_policy_link_label:null!==(l=e.privacy_policy_link_label)&&void 0!==l?l:void 0,privacy_policy_url:null!==(s=e.privacy_policy_url)&&void 0!==s?s:void 0,privacy_preferences_link_label:null!==(r=e.privacy_preferences_link_label)&&void 0!==r?r:void 0,save_button_label:null!==(o=e.save_button_label)&&void 0!==o?o:void 0,modal_link_label:null!==(d=e.modal_link_label)&&void 0!==d?d:void 0}},c=e=>{let{created_at:t,updated_at:a,privacy_notices:n,origin:i,id:l,...s}=e;return{...s,privacy_notice_ids:n?n.map(e=>e.id):[],translations:e.translations?e.translations.map(e=>d(e)):[]}},u=e=>e===n.re.PRIVACY_CENTER?{title:{included:!0,required:!0},description:{included:!0,required:!0},save_button_label:{included:!0,required:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},modal_link_label:{included:!0}}:e===n.re.MODAL?{title:{included:!0,required:!0},description:{included:!0,required:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0},modal_link_label:{included:!0}}:e===n.re.BANNER_AND_MODAL?{title:{included:!0,required:!0},banner_title:{included:!0},description:{included:!0,required:!0},banner_description:{included:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0,required:!0},modal_link_label:{included:!0}}:e===n.re.TCF_OVERLAY?{title:{included:!0,required:!0},banner_title:{included:!0},description:{included:!0,required:!0},banner_description:{included:!0},purpose_header:{included:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0,required:!0},modal_link_label:{included:!0}}:{title:{included:!0,required:!0},description:{included:!0,required:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0,required:!0},modal_link_label:{included:!0}}},39460:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return tN}});var n=a(24246),i=a(96306),l=a(86677),s=a(77213),r=a(77830),o=a(58754),d=a(14908),c=a(20682),u=a(94725),_=a(45216),m=a(38187),h=a(27378),p=a(92222),x=a(59003),g=a(18225);let y=(0,i.IUT)({displayName:"MonitorIcon",viewBox:"0 0 12 12",path:(0,n.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 f=a(8411),v=a(47935),F=a(70675),b=a(812),j=a(75573),S=a(8133),C=a(46628),T=a(67991),k=a(46238);let N=(0,p.Cl)();var E=e=>{let{items:t,totalItemCount:a,selected:l,excluded:s,allSelected:r,someSelected:o,moreLoading:d,handleToggleSelection:c,handleToggleAll:u,onMoreClick:_}=e,m=t.map(e=>({id:e,isSelected:l.includes(e),isExcluded:s.includes(e)})),y=(0,h.useMemo)(()=>[N.display({id:"select",cell:e=>{let{row:t}=e;return(0,n.jsx)(v.k,{isChecked:t.original.isSelected||r&&!t.original.isExcluded,onChange:()=>c(t.original.id),dataTestId:"".concat(t.original.id,"-checkbox")})},header:()=>(0,n.jsx)(v.k,{isChecked:r,isIndeterminate:o,onChange:u,dataTestId:"select-all-checkbox"}),size:1}),N.accessor(e=>e.id,{id:"id",cell:e=>(0,n.jsx)(v.G3,{value:e.getValue()}),header:e=>(0,n.jsx)(v.Rr,{value:"Scope",...e})})],[c,u,r,o]),f=(0,x.b7)({getCoreRowModel:(0,p.sC)(),getRowId:e=>e.id,manualPagination:!0,data:m,columns:y,columnResizeMode:"onChange"});return(0,n.jsx)(i.kCb,{w:"full",direction:"column",maxH:"lg",children:(0,n.jsx)(v.ZK,{tableInstance:f,onRowClick:e=>c(e.id),footer:!!_&&(0,n.jsx)(v.vr,{totalColumns:2,children:(0,n.jsx)(i.kCb,{justify:"center",children:d?(0,n.jsx)(g.Z,{size:"xs"}):(0,n.jsxs)(i.kCb,{align:"center",children:[(0,n.jsxs)(i.xvT,{fontSize:"xs",mr:4,children:["Showing ",t.length," of ",a]}),(0,n.jsx)(i.wpx,{onClick:_,size:"small","data-testid":"load-more-btn",children:"Load more..."})]})})})})})};let w={items:[],total:1,page:1,size:50,pages:0};var A=(e,t)=>{let[a,n]=(0,h.useState)(2),{data:i,isLoading:l}=(0,F.oN)({page:1,size:25,connection_config_key:e}),s=(0,h.useRef)(l),{items:r,total:o}=null!=i?i:w,d=!!(null==i?void 0:i.pages)&&a>i.pages,[c,u]=(0,h.useState)(r);(0,h.useEffect)(()=>{s.current=l,u(r)},[l,r]),(0,h.useEffect)(()=>{let e=setTimeout(()=>{s.current&&t&&t()},5e3);return()=>clearTimeout(e)},[]);let[_,{isLoading:m,isFetching:p}]=(0,F.j3)(),x=m||p||l,g=async()=>{var t,i;if(d)return;let l=await _({connection_config_key:e,size:25,page:a+1});l.isError||(n(a+1),u([...c,...null!==(i=null===(t=l.data)||void 0===t?void 0:t.items)&&void 0!==i?i:[]]))};return{databases:c,totalDatabases:o,fetchMore:g,initialIsLoading:l,isLoading:x,reachedEnd:d}},I=e=>{var t;let{monitor:a,isEditing:l,isSubmitting:s,integrationKey:r,onSubmit:o,onClose:d}=e,c=(0,i.pmc)(),{databases:u,totalDatabases:_,fetchMore:m,reachedEnd:h,isLoading:p,initialIsLoading:x}=A(r,()=>{o({...a,databases:[]}),c({...C.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()}),y=null!==(t=null==a?void 0:a.databases)&&void 0!==t?t:[],{selected:f,excluded:v,allSelected:F,someSelected:b,handleToggleItemSelected:j,handleToggleAll:S}=(0,T.Od)({initialSelected:y,initialExcluded:[],initialAllSelected:l&&!y.length,itemCount:_}),N=!F&&0===f.length;return x?(0,n.jsx)(g.Z,{my:12}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(i.kCb,{p:4,direction:"column",children:[(0,n.jsxs)(i.kCb,{direction:"row",mb:4,gap:1,align:"center",children:[(0,n.jsx)(i.xvT,{fontSize:"sm",children:"Select projects to monitor"}),(0,n.jsx)(k.b,{label:"Selecting a project will monitor all current and future datasets within that project."})]}),(0,n.jsx)(E,{items:u,totalItemCount:_,selected:f,excluded:v,allSelected:F,someSelected:b,moreLoading:p,handleToggleSelection:j,handleToggleAll:S,onMoreClick:h?void 0:m})]}),(0,n.jsxs)("div",{className:"mt-4 flex w-full justify-between",children:[(0,n.jsx)(i.wpx,{onClick:d,children:"Cancel"}),(0,n.jsx)(i.esZ,{title:N?"Select one or more projects to save":void 0,children:(0,n.jsx)(i.wpx,{onClick:()=>{o({...a,excluded_databases:v,databases:F?[]:f})},loading:s,type:"primary","data-testid":"save-btn",disabled:N,children:"Save"})})]})]})},q=a(64892),M=a(6680),P=a(54743);function D(e,t){let a,n;let i=()=>(0,M.L)(t?.in,NaN),l=t?.additionalDigits??2,s=function(e){let t;let a={},n=e.split(U.dateTimeDelimiter);if(n.length>2)return a;if(/:/.test(n[0])?t=n[0]:(a.date=n[0],t=n[1],U.timeZoneDelimiter.test(a.date)&&(a.date=e.split(U.timeZoneDelimiter)[0],t=e.substr(a.date.length,e.length))),t){let e=U.timezone.exec(t);e?(a.time=t.replace(e[1],""),a.timezone=e[1]):a.time=t}return a}(e);if(s.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,l=n[2]?parseInt(n[2]):null;return{year:null===l?i:100*l,restDateString:e.slice((n[1]||n[2]).length)}}(s.date,l);a=function(e,t){if(null===t)return new Date(NaN);let a=e.match(R);if(!a)return new Date(NaN);let n=!!a[4],i=B(a[1]),l=B(a[2])-1,s=B(a[3]),r=B(a[4]),o=B(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 l>=0&&l<=11&&s>=1&&s<=(K[l]||(H(t)?29:28))&&i>=1&&i<=(H(t)?366:365)?(e.setUTCFullYear(t,l,Math.max(i,s)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!a||isNaN(+a))return i();let r=+a,o=0;if(s.time&&isNaN(o=function(e){let t=e.match(L);if(!t)return NaN;let a=V(t[1]),n=V(t[2]),i=V(t[3]);return(24===a?0===n&&0===i:i>=0&&i<60&&n>=0&&n<60&&a>=0&&a<25)?a*q.vh+n*q.yJ+1e3*i:NaN}(s.time)))return i();if(s.timezone){if(isNaN(n=function(e){if("Z"===e)return 0;let t=e.match(O);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*q.vh+i*q.yJ):NaN}(s.timezone)))return i()}else{let e=new Date(r+o),a=(0,P.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,P.Q)(r+o+n,t?.in)}let U={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},R=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,L=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,O=/^([+-])(\d{2})(?::?(\d{2}))?$/;function B(e){return e?parseInt(e):1}function V(e){return e&&parseFloat(e.replace(",","."))||0}let K=[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),Z=a(55484),W=a(97181),Y=a(40324),J=a(11013);let X=e=>{let{layout:t="stacked",...a}=e,{data:i}=(0,J.eV)({page:1,size:100}),l=null==i?void 0:i.items.map(e=>({label:e.name,value:e.id}));return(0,n.jsx)(W.d,{tooltip:"If a shared monitor config is selected, the monitor will use the shared config to classify resources",options:l,label:"Shared monitor config",layout:t,...a})};var Q=a(54682),$=e=>{var t,a,s;let{monitor:r,integrationOption:o,isSubmitting:d,databasesAvailable:c,onClose:u,onAdvance:_,onSubmit:m}=e,h=!!r,p=(0,l.useRouter)(),x=Array.isArray(p.query.id)?p.query.id[0]:p.query.id,g=Z.Ry().shape({name:Z.Z_().required().label("Name"),execution_frequency:Z.Z_().nullable().label("Execution frequency"),execution_start_date:Z.hT().nullable().label("Execution start date")}),y=(null==r?void 0:r.execution_start_date)?D(r.execution_start_date):Date.now(),f={name:null!==(t=null==r?void 0:r.name)&&void 0!==t?t:"",shared_config_id:null!==(a=null==r?void 0:r.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!==(s=null==r?void 0:r.execution_frequency)&&void 0!==s?s:Q.hV.MONTHLY},v=(0,b.MM)(Q.hV);return(0,n.jsx)(G.J9,{initialValues:f,enableReinitialize:!0,onSubmit:e=>{let t=e.execution_frequency!==Q.hV.NOT_SCHEDULED?{execution_frequency:e.execution_frequency,execution_start_date:new Date(e.execution_start_date).toISOString()}:{execution_frequency:Q.hV.NOT_SCHEDULED,execution_start_date:void 0},a=h?{...r,...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:x,classify_params:{num_samples:25,num_threads:1}};o.identifier===Q.Rj.DYNAMODB&&(a.datasource_params={single_dataset:!1}),c?_(a):m(a)},validationSchema:g,children:e=>{let{values:t,isValid:a,resetForm:l}=e;return(0,n.jsx)(G.l0,{children:(0,n.jsxs)(i.gCW,{alignItems:"start",spacing:6,mt:4,children:[(0,n.jsx)(Y.j0,{name:"name",id:"name",label:"Name",isRequired:!0,variant:"stacked"}),(0,n.jsx)(W.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,n.jsx)(X,{name:"shared_config_id",id:"shared_config_id"}),(0,n.jsx)(Y.YL,{name:"execution_start_date",label:"Automatic execution start time",disabled:t.execution_frequency===Q.hV.NOT_SCHEDULED,id:"execution_start_date"}),(0,n.jsxs)("div",{className:"flex w-full justify-between",children:[(0,n.jsx)(i.wpx,{onClick:()=>{l(),u()},children:"Cancel"}),(0,n.jsx)(i.wpx,{htmlType:"submit",type:"primary",disabled:!a,loading:d,"data-testid":"next-btn",children:c?"Next":"Save"})]})]})})}})},ee=a(27693),et=a.n(ee);let ea=e=>{let{error:t,touched:a,required:l,tooltip:s,label:r,extra:o,name:d,id:c,...u}=e;return(0,n.jsx)(i.PPS.Item,{validateStatus:a&&t?"error":void 0,help:a&&t,hasFeedback:a&&!!t,required:l,tooltip:s,label:r,extra:o,htmlFor:null!=c?c:d,children:(0,n.jsx)(i.cv2,{id:null!=c?c:d,name:d,"data-testid":"input-".concat(d),style:{width:"100%",...u.style},...u})})},en=e=>{let{error:t,touched:a,required:l,tooltip:s,label:r,extra:o,name:d,id:c,...u}=e;return(0,n.jsx)(i.PPS.Item,{validateStatus:a&&t?"error":void 0,help:a&&t,hasFeedback:a&&!!t,required:l,tooltip:s,label:r,extra:o,htmlFor:null!=c?c:d,children:(0,n.jsx)(i.AOh,{id:null!=c?c:d,"data-testid":"controlled-select-".concat(d),...u})})},ei=e=>{let{error:t,touched:a,required:l,tooltip:s,label:r,extra:o,name:d,id:c,...u}=e,[_,m]=(0,h.useState)(""),p="tags"===u.mode?(e,t)=>{var a;return e?e.value!==_||(null===(a=u.value)||void 0===a?void 0:a.includes(_))?u.optionRender?u.optionRender(e,t):e.label:'Create "'.concat(_,'"'):void 0}:u.optionRender||void 0;return(0,n.jsx)(i.PPS.Item,{validateStatus:a&&t?"error":void 0,help:a&&t,hasFeedback:a&&!!t,required:l,tooltip:s,label:r,extra:o,htmlFor:null!=c?c:d,children:(0,n.jsx)(i.WPr,{id:null!=c?c:d,"data-testid":"controlled-select-".concat(d),...u,optionRender:p,onSearch:"tags"===u.mode?e=>{m(e),u.onSearch&&u.onSearch(e)}:void 0})})},el=e=>{let{error:t,touched:a,required:l,tooltip:s,label:r,extra:o,name:d,id:c,...u}=e;return(0,n.jsx)(i.PPS.Item,{validateStatus:a&&t?"error":void 0,help:a&&t,hasFeedback:a&&!!t,required:l,tooltip:s,label:r,extra:o,htmlFor:null!=c?c:d,children:(0,n.jsx)(i.uFc,{id:c||d,name:d,"data-testid":"input-".concat(d),allowClear:!0,...u})})};var es=a(90111),er=a(64781),eo=a(60325);let ed=e=>{let{data:t}=(0,J.eV)({page:1,size:100}),a=null==t?void 0:t.items.map(e=>({label:e.name,value:e.id}));return(0,n.jsx)(ei,{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})},ec=Z.Ry().shape({name:Z.Z_().required().label("Name"),execution_frequency:Z.Z_().nullable().label("Execution frequency"),execution_start_date:Z.hT().nullable().label("Execution start date"),datasource_params:Z.Ry().shape({locations:Z.IX().label("Locations"),exclude_domains:Z.IX().label("Exclude domains"),sitemap_url:Z.Z_().nullable().url().label("Sitemap URL")})});var eu=e=>{var t,a,s,r,o,d;let{monitor:c,url:u,onClose:_,onSubmit:m}=e,h=(0,l.useRouter)(),p=Array.isArray(h.query.id)?h.query.id[0]:h.query.id,x=(null==c?void 0:c.execution_start_date)?D(c.execution_start_date):Date.now(),{data:g,isLoading:y}=(0,er.gT)(),v=[...(0,eo.TK)(null!==(s=null==g?void 0:g.locations)&&void 0!==s?s:[]),...(0,eo.TK)(null!==(r=null==g?void 0:g.location_groups)&&void 0!==r?r:[])].map(e=>({value:e,label:f.Z8[e]})),F={name:(null==c?void 0:c.name)||"",shared_config_id:null!==(o=null==c?void 0:c.shared_config_id)&&void 0!==o?o:void 0,execution_frequency:(null==c?void 0:c.execution_frequency)||Q.hV.NOT_SCHEDULED,execution_start_date:(0,z.WU)(x,"yyyy-MM-dd'T'HH:mm"),url:u,connection_config_key:p,datasource_params:null!==(d=null==c?void 0:c.datasource_params)&&void 0!==d?d:{locations:[]}},j=async e=>{let t=e.execution_frequency!==Q.hV.NOT_SCHEDULED?{execution_frequency:e.execution_frequency,execution_start_date:new Date(e.execution_start_date).toISOString()}:{execution_frequency:Q.hV.NOT_SCHEDULED,execution_start_date:void 0};m({...c,...e,...t,key:null==c?void 0:c.key,classify_params:(null==c?void 0:c.classify_params)||{},datasource_params:e.datasource_params||{},connection_config_key:p})},{values:S,resetForm:C,handleSubmit:T,errors:k,touched:N,...E}=(0,G.TA)({initialValues:F,onSubmit:j,validationSchema:ec}),w=(0,b.MM)(Q.hV).filter(e=>[Q.hV.MONTHLY,Q.hV.QUARTERLY,Q.hV.YEARLY,Q.hV.NOT_SCHEDULED].includes(e.value));return(0,n.jsxs)(i.jqI,{vertical:!0,className:"pt-4",children:[(0,n.jsx)(es.Z,{children:(0,n.jsx)(i.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,n.jsxs)(i.PPS,{onFinish:T,layout:"vertical",children:[(0,n.jsx)(el,{name:"name",id:"name",label:"Name",required:!0,error:k.name,touched:N.name,onChange:E.handleChange,onBlur:E.handleBlur,value:S.name}),(0,n.jsx)(el,{name:"datasource_params.sitemap_url",id:"sitemap_url",label:"Sitemap URL",error:(0,G.u9)(k,"datasource_params.sitemap_url"),touched:(0,G.u9)(N,"datasource_params.sitemap_url"),onChange:E.handleChange,onBlur:E.handleBlur,value:(null===(t=S.datasource_params)||void 0===t?void 0:t.sitemap_url)||""}),(0,n.jsx)(ei,{name:"datasource_params.exclude_domains",placeholder:"Enter domains to exclude",id:"exclude_domains",label:"Exclude domains",options:[],open:!1,disabled:!0,error:(0,G.u9)(k,"datasource_params.exclude_domains"),touched:(0,G.u9)(N,"datasource_params.exclude_domains"),onChange:e=>E.setFieldValue("datasource_params.exclude_domains",e),onBlur:E.handleBlur,value:S.execution_frequency||[]}),(0,n.jsx)(el,{name:"url",id:"url",label:"URL",required:!0,disabled:!0,error:k.url,touched:N.url,onChange:E.handleChange,onBlur:E.handleBlur,value:S.url||""}),(0,n.jsx)(en,{id:"locations",name:"datasource_params.locations",label:"Locations",loading:y,options:(0,i.Ky_)(v.map(e=>e.value)),required:!0,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:"tags",error:(0,G.u9)(k,"datasource_params.locations"),touched:(0,G.u9)(N,"datasource_params.locations"),onChange:e=>E.setFieldValue("datasource_params.locations",e),onBlur:E.handleBlur,value:null===(a=S.datasource_params)||void 0===a?void 0:a.locations}),(0,n.jsx)(ed,{name:"shared_config_id",id:"shared_config_id",error:k.shared_config_id,touched:N.shared_config_id,onChange:e=>E.setFieldValue("shared_config_id",e),onBlur:E.handleBlur,value:S.shared_config_id}),(0,n.jsx)(ei,{name:"execution_frequency",id:"execution_frequency",options:w,label:"Automatic execution frequency",error:k.execution_frequency,touched:N.execution_frequency,onChange:e=>E.setFieldValue("execution_frequency",e),onBlur:E.handleBlur,value:S.execution_frequency}),(0,n.jsx)(ea,{name:"execution_start_date",label:"Automatic execution start time",disabled:S.execution_frequency===Q.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:k.execution_start_date,touched:N.execution_start_date,onChange:e=>e&&E.setFieldValue("execution_start_date",e.toISOString()),onBlur:E.handleBlur,value:et()(S.execution_start_date)}),(0,n.jsxs)(i.jqI,{className:"mt-2 justify-between",children:[(0,n.jsx)(i.wpx,{onClick:()=>{C(),_()},children:"Cancel"}),(0,n.jsx)(i.wpx,{type:"primary",htmlType:"submit","data-testid":"save-btn",children:"Save"})]})]})]})},e_=a(31883),em=e=>{let{isOpen:t,onClose:a,formStep:l,onAdvance:s,monitor:r,isEditing:o,integration:d,integrationOption:c,isWebsiteMonitor:u}=e,[_,{isLoading:m}]=(0,F.Fy)(),{data:h}=(0,F.oN)({page:1,size:25,connection_config_key:d.key}),p=!!h&&!!h.total,x=(0,i.pmc)(),{successAlert:y,errorAlert:f}=(0,j.VY)(),v=async e=>{let t;let n=setTimeout(()=>{t||(x({...C.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 _(e)){if(clearTimeout(n),(0,e_.D4)(t)){f((0,b.e$)(t.error),"Error creating monitor");return}if(o){y("Monitor updated successfully"),a();return}if(u){y(e.execution_frequency===Q.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}y("Monitor created successfully"),a()}};return u?(0,n.jsx)(S.Z,{title:(null==r?void 0:r.name)?"Configure ".concat(r.name):"Configure website monitor",isOpen:t,onClose:a,children:(0,n.jsx)(eu,{monitor:r,url:d.secrets.url,onClose:a,onSubmit:v})}):(0,n.jsxs)(S.Z,{title:(null==r?void 0:r.name)?"Configure ".concat(r.name):"Configure discovery monitor",isOpen:t,onClose:a,children:[0===l&&(0,n.jsx)($,{monitor:r,onClose:a,onAdvance:s,onSubmit:v,isSubmitting:m,databasesAvailable:p,integrationOption:c}),1===l&&(r?(0,n.jsx)(I,{monitor:r,isEditing:o,isSubmitting:m,onSubmit:v,onClose:a,integrationKey:d.key}):(0,n.jsx)(g.Z,{}))]})},eh=e=>{let{defaultSuccessMsg:t,defaultErrorMsg:a}=e,{successAlert:n,errorAlert:i}=(0,j.VY)();return{toastResult:e=>{(0,b.D4)(e)?i((0,b.e$)(e.error,a)):n(t)}}},ep=a(58452),ex=a(79494),eg=e=>{let{monitorId:t,isWebsiteMonitor:a,onEditClick:l}=e,[s]=(0,F.Sb)(),{toastResult:r}=eh({defaultErrorMsg:"A problem occurred deleting this monitor",defaultSuccessMsg:"Monitor deleted successfully"}),[o,{isLoading:d}]=(0,F.V9)(),{toastResult:c}=eh({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"}),u=async()=>{r(await s({monitor_config_id:t}))},{isOpen:_,onOpen:m,onClose:h}=(0,i.qY0)(),p=async()=>{c(await o({monitor_config_id:t}))};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ep.Z,{isOpen:_,onClose:h,onConfirm:u,title:"Delete monitor",message:"Are you sure you want to delete this discovery monitor?",continueButtonText:"Delete",isCentered:!0}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(i.esZ,{title:"Edit",children:(0,n.jsx)(i.wpx,{onClick:l,size:"small",icon:(0,n.jsx)(i.dY8,{}),"data-testid":"edit-monitor-btn","aria-label":"Edit monitor"})}),(0,n.jsx)(i.esZ,{title:"Delete",children:(0,n.jsx)(i.wpx,{onClick:m,size:"small",icon:(0,n.jsx)(i.pJl,{}),"aria-label":"Delete monitor","data-testid":"delete-monitor-btn"})}),(0,n.jsx)(ex.Z,{onClick:p,title:"Scan",loading:d})]})]})},ey=a(72625);let ef=e=>{let{row:t,getValue:a}=e,[i]=(0,F.Fy)(),l=async e=>i({...t.original,enabled:e}),s=a();return(0,n.jsx)(ey.S1,{enabled:s,onToggle:l,title:"Disabling monitor",message:"You are about to disable this monitor. If you continue, it will no longer scan automatically."})};var ev=a(51980),eF=a(16394),eb=e=>{var t,a;let{monitor:l}=e,s=null===(t=l.execution_records)||void 0===t?void 0:t[0],{isOpen:r,onOpen:o,onClose:d}=(0,i.qY0)(),c=l.last_monitored?new Date(l.last_monitored):null,u=c?(0,eF.p6)(c):"N/A",_=c?(0,ev.B)(c,new Date,{addSuffix:!0}):"N/A";return s?s.status===Q.L2.IN_PROGRESS?c?(0,n.jsx)(i.esZ,{title:"Last scan: ".concat(_),children:(0,n.jsx)(i.j8w,{color:"info",children:"Scanning"})}):(0,n.jsx)(i.j8w,{color:"info",children:"Scanning"}):s.status===Q.L2.COMPLETED?(0,n.jsx)(i.esZ,{title:u,children:(0,n.jsx)(i.j8w,{color:"success","data-testid":"tag-success",children:_})}):s.status===Q.L2.ERRORED?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.j8w,{color:"error",closeIcon:(0,n.jsx)(i.PJP.daM,{}),closeButtonLabel:"View details",onClose:o,"data-testid":"tag-error",children:"Incomplete"}),(0,n.jsxs)(i.dys,{isOpen:r,onClose:d,size:"md",children:[(0,n.jsx)(i.P1B,{}),(0,n.jsxs)(i.scA,{"data-testid":"error-log-drawer",children:[(0,n.jsx)(i.OXI,{children:"Failure log"}),(0,n.jsx)(i.cCv,{}),(0,n.jsxs)(i.Ng0,{children:[s.completed&&(0,n.jsx)(i.AntTypography.Paragraph,{type:"secondary",children:(0,eF.p6)(new Date(s.completed))}),null===(a=s.messages)||void 0===a?void 0:a.map((e,t)=>(0,n.jsxs)(h.Fragment,{children:[(0,n.jsx)(i.AntTypography.Paragraph,{"data-testid":"error-log-message",children:e}),t<s.messages.length-1&&(0,n.jsx)(i.izJ,{className:"mb-3"})]},t))]})]})]})]}):(0,n.jsx)(i.j8w,{children:"N/A"}):(0,n.jsx)(i.j8w,{children:"N/A"})},ej=a(40774);let eS={items:[],total:0,page:1,size:50,pages:0},eC={[Q.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.",[Q.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."},eT=(0,p.Cl)();var ek=e=>{var t,a;let{integration:l,integrationOption:s}=e,r=(null==s?void 0:s.identifier)===Q.Rj.WEBSITE,o=(null==s?void 0:s.type)===Q.Zi.SAAS,{PAGE_SIZES:d,pageSize:c,setPageSize:u,onPreviousPageClick:_,isPreviousPageDisabled:m,onNextPageClick:b,isNextPageDisabled:j,startRange:S,endRange:C,pageIndex:T,setTotalPages:k}=(0,v.oi)(),{isLoading:N,isFetching:E,data:w}=(0,F.Fu)({page:T,size:c,connection_config_key:l.key}),A=(0,i.qY0)(),[I,q]=(0,h.useState)(void 0),[M,P]=(0,h.useState)(!1),[D,U]=(0,h.useState)(0),R=e=>{q(e),P(!0),A.onOpen()},L=null!=w?w:eS,{items:O,total:B,pages:V}=(0,h.useMemo)(()=>L,[L]);(0,h.useEffect)(()=>{k(V)},[V,k]);let K=(0,h.useMemo)(()=>{let e=eT.accessor(e=>e.name,{id:"name",cell:e=>(0,n.jsx)(v.G3,{value:e.getValue()}),header:e=>(0,n.jsx)(v.Rr,{value:"Name",...e})}),t=eT.accessor(e=>e.databases,{id:"projects",cell:e=>{var t;return(null===(t=e.getValue())||void 0===t?void 0:t.length)===0?(0,n.jsx)(v.G3,{value:"All projects"}):(0,n.jsx)(v.WP,{suffix:"Projects",value:e.getValue(),...e,cellState:{isExpanded:!0}})},header:e=>(0,n.jsx)(v.Rr,{value:"Scope",...e})}),a=eT.accessor(()=>{let e=l.secrets;return null==e?void 0:e.url},{id:"source_url",cell:e=>{var t;return(0,n.jsx)(v.G3,{value:null!==(t=e.getValue())&&void 0!==t?t:"Not scheduled"})},header:e=>(0,n.jsx)(v.Rr,{value:"Source URL",...e})}),i=eT.accessor(e=>e.execution_frequency,{id:"frequency",cell:e=>{var t;return(0,n.jsx)(v.G3,{value:null!==(t=e.getValue())&&void 0!==t?t:"Not scheduled"})},header:e=>(0,n.jsx)(v.Rr,{value:"Scan frequency",...e})}),s=eT.display({id:"monitor_status",cell:e=>(0,n.jsx)(eb,{monitor:e.row.original}),header:e=>(0,n.jsx)(v.Rr,{value:"Scan status",...e}),meta:{disableRowClick:!0}}),o=eT.accessor(e=>{var t;let a=e.datasource_params;return(null==a?void 0:null===(t=a.locations)||void 0===t?void 0:t.map(e=>f.Z8[e]).join(", "))||"No regions selected"},{id:"regions",cell:e=>(0,n.jsx)(v.G3,{value:e.getValue()}),header:e=>(0,n.jsx)(v.Rr,{value:"Regions",...e})}),d=eT.accessor(e=>e.enabled,{id:"status",cell:ef,header:e=>(0,n.jsx)(v.Rr,{value:"Status",...e}),size:0,meta:{disableRowClick:!0}}),c=eT.display({id:"action",cell:e=>(0,n.jsx)(eg,{onEditClick:()=>R(e.row.original),isWebsiteMonitor:r,monitorId:e.row.original.key}),header:"Actions",meta:{disableRowClick:!0}});return r?[e,a,i,o,s,d,c]:[e,t,i,s,d,c]},[]),H=(0,x.b7)({getCoreRowModel:(0,p.sC)(),getGroupedRowModel:(0,p.qe)(),getExpandedRowModel:(0,p.rV)(),getRowId:e=>e.name,manualPagination:!0,data:O,columns:K,columnResizeMode:"onChange"});if(N)return(0,n.jsx)(g.Z,{});let z=null!==(t=eC[null==s?void 0:s.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:G,tooltip:Z}=o&&O.length>0?{isDisabled:!0,tooltip:"API integrations only use a single monitor"}:l.name||(null===(a=l.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,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.xvT,{maxW:"720px",mb:6,fontSize:"sm","data-testid":"monitor-description",children:z}),(0,n.jsxs)(v.Q$,{children:[(0,n.jsx)(ej.Z,{}),(0,n.jsx)(i.LZC,{}),(0,n.jsx)(i.ua7,{label:Z,children:(0,n.jsx)("span",{children:(0,n.jsx)(i.wpx,{onClick:A.onOpen,icon:(0,n.jsx)(y,{}),iconPosition:"end","data-testid":"add-monitor-btn",disabled:G,children:"Add monitor"})})}),(0,n.jsx)(em,{isOpen:A.isOpen,onClose:()=>{q(void 0),P(!1),U(0),A.onClose()},formStep:D,onAdvance:e=>{q(e),U(1)},monitor:I,isEditing:M,integration:l,integrationOption:s,isWebsiteMonitor:r})]}),(0,n.jsx)(v.ZK,{tableInstance:H,onRowClick:R,emptyTableNotice:(0,n.jsx)(()=>(0,n.jsx)(i.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:(0,n.jsxs)(i.gCW,{children:[(0,n.jsx)(i.xvT,{fontSize:"md",fontWeight:"600",children:"No monitors"}),(0,n.jsx)(i.xvT,{fontSize:"sm",children:'You have not configured any data discovery monitors. Click "Add monitor" to configure data discovery now.'})]})}),{})}),(0,n.jsx)(v.s8,{totalRows:B||0,pageSizes:d,setPageSize:u,onPreviousPageClick:_,isPreviousPageDisabled:m||E,onNextPageClick:b,isNextPageDisabled:j||E,startRange:S,endRange:C})]})},eN=a(41966),eE=a(32885),ew=e=>{let{integration:t}=e,{data:a}=(0,u.Eg)(t.key),{data:l}=(0,eN.LH)({minimal:!0,connection_type:Q.Rj.BIGQUERY}),[s,{isLoading:r}]=(0,eE.Qd)(),o=(0,i.pmc)(),d=async()=>{try{var e,n,i,r,d;let c=null!==(i=null==a?void 0:null===(e=a.items)||void 0===e?void 0:e.map(e=>e.fides_key))&&void 0!==i?i:[],u=null!==(r=null==l?void 0:l.map(e=>e.fides_key))&&void 0!==r?r:[],_=c.length>0?c:u,m=await s({connectionKey:t.key,datasetIds:_}),h=null!==(d=null===(n=m.data)||void 0===n?void 0:n.succeeded.length)&&void 0!==d?d:0,p="Fides has begun syncing with DataHub. There ".concat(1===h?"is":"are"," ").concat(h," dataset").concat(1===h?"":"s"," queued for syncing.");o((0,C.t5)(p))}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,n.jsxs)(i.gCW,{spacing:6,align:"stretch",children:[(0,n.jsxs)(i.gCW,{spacing:4,align:"stretch",children:[(0,n.jsx)(i.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,n.jsxs)(i.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, view our docs ",(0,n.jsx)(i.rUS,{href:"https://ethyca.com/docs/user-guides/integrations/saas-integrations/datahub",isExternal:!0,color:"blue.500",textDecoration:"underline",children:"here"}),"."]})]}),(0,n.jsx)(i.zxk,{colorScheme:"primary",onClick:d,"data-testid":"sync-button",width:"fit-content",isLoading:r,loadingText:"Syncing datasets...",children:"Sync Datasets"})]})},eA=a(78780),eI=a(52253);let{useGetManualTaskConfigQuery:eq,useAssignUsersToManualTaskMutation:eM,useUpdateDependencyConditionsMutation:eP}=eA.u.injectEndpoints({endpoints:e=>({getManualTaskConfig:e.query({query:e=>{let{connectionKey:t}=e;return{url:"".concat(eI.Iy,"/").concat(t,"/manual-task"),method:"GET"}},providesTags:()=>["Manual Tasks"]}),assignUsersToManualTask:e.mutation({query:e=>{let{connectionKey:t,userIds:a}=e;return{url:"".concat(eI.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(eI.Iy,"/").concat(t,"/manual-task/dependency-conditions"),method:"PUT",body:a}},invalidatesTags:()=>["Manual Tasks"]})})});var eD=a(20386);let eU=(e,t,a)=>[e,t,a].join(":"),eR=e=>{let[t,a,n]=e.split(":");return{datasetKey:t,collectionName:a,fieldPath:n}},eL=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,l=eU(t,a,i),s=e.fields&&e.fields.length>0;return{key:l,title:e.name,fullTitle:"".concat(a).concat(":").concat(i),value:l,isLeaf:!s,selectable:!0,children:s?eL(e.fields,t,a,i):void 0}})},eO=e=>{let{value:t,onChange:a,disabled:l=!1,excludeSaasDataset:s=!0}=e,[r,o]=(0,h.useState)(),[d,c]=(0,h.useState)(),[u,_]=(0,h.useState)([]),{data:m,isLoading:p}=(0,eD.LH)({minimal:!0,exclude_saas_datasets:s}),{data:x}=(0,eD.oM)(r,{skip:!r}),g=(0,h.useMemo)(()=>{var e;return x&&r&&(null===(e=x.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?eL(e.fields,r,e.name,""):void 0})))||[]},[x,r]);(0,h.useEffect)(()=>{_(g),r||c(void 0)},[g,r]),(0,h.useEffect)(()=>{if(t){let{datasetKey:e,collectionName:a,fieldPath:n}=eR(t);e&&(o(e),a&&n&&c(t))}else o(void 0),c(void 0)},[t]);let y=(0,h.useMemo)(()=>m?m.map(e=>({value:e.fides_key,label:e.name||e.fides_key})):[],[m]),f=(0,h.useCallback)(e=>{o(e),c(void 0),a&&a(void 0)},[a]),v=(0,h.useCallback)(e=>{c(e),a&&a(e)},[a]);return p||(null==m?void 0:m.length)!==0?(0,n.jsxs)(i.jqI,{gap:8,"data-testid":"dataset-reference-picker",children:[(0,n.jsx)(i.WPr,{value:r,onChange:f,options:y,placeholder:"Select a dataset",disabled:l,loading:p,allowClear:!0,showSearch:!0,style:{width:"50%"},"data-testid":"dataset-select"}),(0,n.jsx)(i.wrJ,{value:d,onChange:v,treeData:u,placeholder:"Select a field",disabled:l||!r,allowClear:!0,showSearch:!0,style:{width:"50%"},treeNodeFilterProp:"title",treeNodeLabelProp:"fullTitle","data-testid":"field-tree-select"})]}):(0,n.jsx)("div",{className:"flex flex-col items-center justify-center py-4 ",children:(0,n.jsx)(i.AntTypography.Text,{children:"No datasets available. Create a dataset to start using this feature"})})},{Text:eB,Title:eV,Link:eK}=i.AntTypography,eH=()=>(0,n.jsxs)("div",{className:"px-2 text-white",children:[(0,n.jsx)(eV,{level:5,className:"mb-3",style:{color:"inherit"},children:"Operator Reference"}),(0,n.jsx)(eB,{strong:!0,className:"mb-2 block",style:{color:"inherit"},children:"All data types:"}),(0,n.jsxs)("ul",{className:"ml-2 space-y-1",children:[(0,n.jsx)("li",{children:"Equals: Exact match"}),(0,n.jsx)("li",{children:"Not equals: Does not exactly match"}),(0,n.jsxs)("li",{children:["Exists: Field can be reached"," ",(0,n.jsx)(eK,{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,n.jsxs)("li",{children:["Does not exist: Field cannot be reached"," ",(0,n.jsx)(eK,{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,n.jsx)(eB,{strong:!0,className:"mb-2 mt-4 block",style:{color:"inherit"},children:"Strings/Text:"}),(0,n.jsxs)("ul",{className:"ml-2 space-y-1",children:[(0,n.jsx)("li",{children:"Starts with: Text begins with value"}),(0,n.jsx)("li",{children:"Contains: Text includes value anywhere"})]}),(0,n.jsx)(eB,{strong:!0,className:"mb-2 mt-4 block",style:{color:"inherit"},children:"Numbers:"}),(0,n.jsx)("ul",{className:"ml-2 space-y-1",children:(0,n.jsx)("li",{children:"Equals / Not equals / Greater than / Greater than or equal / Less than / Less than or equal"})}),(0,n.jsx)(eB,{strong:!0,className:"mb-2 mt-4 block",style:{color:"inherit"},children:"Array/List:"}),(0,n.jsxs)("ul",{className:"ml-2 space-y-1",children:[(0,n.jsx)("li",{children:"List contains: Value in list"}),(0,n.jsx)("li",{children:"Not in list: Value not in list"})]})]}),ez=(e,t)=>{if(e===Q.EF.EXISTS||e===Q.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 eG=e=>{var t;let{onAdd:a,onCancel:l,editingCondition:s,isSubmitting:r=!1}=e,[o]=i.PPS.useForm(),d=[{label:"Equals",value:Q.EF.EQ},{label:"Not equals",value:Q.EF.NEQ},{label:"Greater than",value:Q.EF.GT},{label:"Greater than or equal",value:Q.EF.GTE},{label:"Less than",value:Q.EF.LT},{label:"Less than or equal",value:Q.EF.LTE},{label:"Exists",value:Q.EF.EXISTS},{label:"Does not exist",value:Q.EF.NOT_EXISTS},{label:"List contains",value:Q.EF.LIST_CONTAINS},{label:"Not in list",value:Q.EF.NOT_IN_LIST},{label:"Starts with",value:Q.EF.STARTS_WITH},{label:"Contains",value:Q.EF.CONTAINS}],c=s?{fieldAddress:s.field_address,operator:s.operator,value:(null===(t=s.value)||void 0===t?void 0:t.toString())||""}:{},u=(0,h.useCallback)(e=>{a({field_address:e.fieldAddress.trim(),operator:e.operator,value:ez(e.operator,e.value)})},[a]),_=(0,h.useCallback)(()=>{o.resetFields(),l()},[o,l]),m=i.PPS.useWatch("operator",o),p=m===Q.EF.EXISTS||m===Q.EF.NOT_EXISTS;return(0,h.useEffect)(()=>{p&&o.setFieldValue("value","")},[p,o]),(0,n.jsxs)(i.PPS,{form:o,onFinish:u,layout:"vertical",initialValues:c,children:[(0,n.jsx)(i.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,n.jsx)(eO,{})}),(0,n.jsx)(i.PPS.Item,{name:"operator",label:"Operator",tooltip:{placement:"right",title:(0,n.jsx)(eH,{}),styles:{root:{maxWidth:"500px"}}},rules:[{required:!0,message:"Operator is required"}],children:(0,n.jsx)(i.WPr,{placeholder:"Select operator",options:d,"data-testid":"operator-select"})}),(0,n.jsx)(i.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,n.jsx)(i.uFc,{placeholder:p?"Not required":"Enter value (text, number, or true/false)",disabled:p,"data-testid":"value-input"})}),(0,n.jsx)(i.PPS.Item,{children:(0,n.jsxs)(i.kCb,{gap:2,justify:"flex-end",children:[(0,n.jsx)(i.wpx,{onClick:_,disabled:r,"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(i.wpx,{type:"primary",htmlType:"submit",loading:r,"data-testid":"save-btn",children:s?"Update":"Add"})]})})]})},eZ=e=>{let{isOpen:t,onClose:a,onConditionSaved:l,editingCondition:s}=e,{handleError:r}=(0,j.HK)(),[o,d]=(0,h.useState)(!1),c=!!s,u=async e=>{try{d(!0),await l(e),a()}catch(e){r(e)}finally{d(!1)}};return(0,n.jsxs)(i.u_l,{isCentered:!0,isOpen:t,size:"lg",onClose:a,"data-testid":"add-edit-condition-modal",children:[(0,n.jsx)(i.ZAr,{}),(0,n.jsxs)(i.hzk,{minWidth:"650px",children:[(0,n.jsx)(i.xBx,{children:c?"Edit condition":"Add condition"}),(0,n.jsx)(i.olH,{}),(0,n.jsx)(i.fef,{pb:6,children:(0,n.jsxs)(i.gCW,{align:"stretch",gap:"16px",children:[(0,n.jsx)(i.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,n.jsx)(eG,{onAdd:u,onCancel:()=>{a()},editingCondition:s,isSubmitting:o})]})})]})]})};let eW={[Q.EF.EQ]:"equals",[Q.EF.NEQ]:"not equals",[Q.EF.LT]:"less than",[Q.EF.LTE]:"less than or equal",[Q.EF.GT]:"greater than",[Q.EF.GTE]:"greater than or equal",[Q.EF.EXISTS]:"exists",[Q.EF.NOT_EXISTS]:"does not exist",[Q.EF.LIST_CONTAINS]:"list contains",[Q.EF.NOT_IN_LIST]:"not in list",[Q.EF.STARTS_WITH]:"starts with",[Q.EF.CONTAINS]:"contains",[Q.EF.LIST_INTERSECTS]:"list intersects",[Q.EF.LIST_SUBSET]:"list subset",[Q.EF.LIST_SUPERSET]:"list superset",[Q.EF.LIST_DISJOINT]:"list disjoint",[Q.EF.ENDS_WITH]:"ends with"},eY={[Q.PF.TEXT]:"Text",[Q.PF.CHECKBOX]:"Checkbox",[Q.PF.ATTACHMENT]:"Attachment"},eJ={[Q.k6.ACCESS]:"Access",[Q.k6.ERASURE]:"Erasure"},eX=(e,t,a)=>(0,h.useCallback)(async n=>{let i=0===n.length?[]:[{logical_operator:Q.RP.AND,conditions:n}];await t({connectionKey:e,conditions:i}).unwrap(),await a()},[e,t,a]),{Paragraph:eQ,Text:e$}=i.AntTypography;var e0=e=>{let{connectionKey:t}=e,[a,l]=(0,h.useState)([]),[s,r]=(0,h.useState)(!1),[o,d]=(0,h.useState)(null),[c,u]=(0,h.useState)(null),[_,m]=(0,h.useState)(null),{isOpen:p,onOpen:x,onClose:g}=(0,i.qY0)(),{data:y,isLoading:f,error:v,refetch:F}=eq({connectionKey:t},{skip:!t}),[b]=eP(),j=eX(t,b,F);(0,h.useEffect)(()=>{(null==y?void 0:y.dependency_conditions)&&y.dependency_conditions.length>0?l(y.dependency_conditions[0].conditions.filter(e=>"field_address"in e&&"operator"in e)):l([])},[y]);let S=(0,h.useCallback)(()=>{d(null),u(null),r(!0)},[]),C=(0,h.useCallback)((e,t)=>{d(t),u(e),r(!0)},[]),T=(0,h.useCallback)(()=>{r(!1),d(null),u(null)},[]),k=(0,h.useCallback)(async e=>{let t=[];l(t=null!==c?a.map((t,a)=>a===c?e:t):[...a,e]);try{await j(t),i.Pg3.success(null!==c?"Condition updated successfully!":"Condition added successfully!")}catch(e){throw l(a),e}},[c,a,j]),N=(0,h.useCallback)((e,t)=>{m({index:e,condition:t}),x()},[x]),E=(0,h.useCallback)(async()=>{if(_){let e=a.filter((e,t)=>t!==_.index);l(e);try{await j(e),i.Pg3.success("Condition deleted successfully!")}catch(e){i.Pg3.error("Failed to delete condition. Please try again."),l(a)}m(null)}g()},[_,a,j,g]);return f?(0,n.jsx)("div",{className:"py-4",children:(0,n.jsx)(e$,{className:"text-gray-500",children:"Loading conditions..."})}):v?(0,n.jsx)("div",{className:"py-4",children:(0,n.jsx)(e$,{className:"text-red-500",children:"Failed to load conditions. Please refresh the page and try again."})}):(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(i.AntTypography.Title,{level:5,children:"Conditional task creation"}),(0,n.jsx)(eQ,{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,n.jsx)(eQ,{className:"mt-2 text-gray-600",children:(0,n.jsx)(e$,{strong:!0,children:"All conditions must be met for the task to be created."})})]}),(0,n.jsx)("div",{className:"mb-4 flex items-center justify-end gap-2",children:(0,n.jsx)(i.wpx,{type:"primary",onClick:S,"data-testid":"add-condition-btn",children:"Add condition"})}),(0,n.jsx)(i.krs,{dataSource:a,"data-testid":"conditions-list",locale:{emptyText:(0,n.jsx)("div",{className:"py-8 text-center",children:(0,n.jsx)(e$,{type:"secondary",children:"No conditions configured. Manual tasks will be created for all privacy requests."})})},renderItem:(e,t)=>(0,n.jsx)(i.krs.Item,{actions:[(0,n.jsx)(i.wpx,{type:"link",onClick:()=>C(t,e),"data-testid":"edit-condition-".concat(t,"-btn"),className:"px-1",children:"Edit"},"edit"),(0,n.jsx)(i.wpx,{type:"link",onClick:()=>N(t,e),"data-testid":"delete-condition-".concat(t,"-btn"),className:"px-1",children:"Delete"},"delete")],children:(0,n.jsx)(i.krs.Item.Meta,{title:(0,n.jsxs)(i.jqI,{gap:8,align:"center",className:"font-normal",children:[(0,n.jsx)("div",{className:"max-w-[300px]",children:(0,n.jsx)(i.esZ,{title:e.field_address,children:(0,n.jsx)(e$,{children:e.field_address.split(":").pop()})})}),(0,n.jsx)(i.j8w,{color:"sandstone",children:eW[e.operator]}),(0,n.jsx)("div",{className:"max-w-[300px]",children:null!==e.value&&void 0!==e.value&&(0,n.jsx)(e$,{ellipsis:{tooltip:String(e.value)},children:String(e.value)})})]})})},t),className:"mb-4"}),(0,n.jsx)(eZ,{isOpen:s,onClose:T,onConditionSaved:k,editingCondition:o}),(0,n.jsx)(ep.Z,{isOpen:p,onClose:()=>{m(null),g()},onConfirm:E,title:"Delete condition","data-testid":"delete-condition-modal",message:(0,n.jsxs)(e$,{className:"text-gray-500",children:["Are you sure you want to delete the condition for “",null==_?void 0:_.condition.field_address,"”? This action cannot be undone."]}),continueButtonText:"Delete",isCentered:!0,icon:(0,n.jsx)(i.aNP,{})})]})},e1=e=>{let{selectedUsers:t,userOptions:a,onUserAssignmentChange:l}=e,s=(0,h.useMemo)(()=>[...a.filter(e=>t.includes(e.value)),...a.filter(e=>!t.includes(e.value))],[a,t]);return(0,n.jsx)("div",{children:(0,n.jsxs)(i.jqI,{align:"center",gap:"middle",children:[(0,n.jsx)(i.AntTypography.Text,{strong:!0,children:"Assign manual tasks to users:"}),(0,n.jsx)(i.WPr,{className:"flex-1",placeholder:"Select users to assign manual tasks to",mode:"multiple",maxTagCount:"responsive",value:t,onChange:l,options:s,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:e3,useGetManualFieldQuery:e2,useCreateManualFieldMutation:e6,useUpdateManualFieldMutation:e5,useDeleteManualFieldMutation:e4}=eA.u.injectEndpoints({endpoints:e=>({getManualFields:e.query({query:e=>{let{connectionKey:t,requestType:a}=e;return{url:"".concat(eI.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(eI.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(eI.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(eI.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(eI.Iy,"/").concat(t,"/manual-field/").concat(a),method:"DELETE"}},invalidatesTags:()=>["Manual Fields"]})})});var e8=a(3124),e7=a.n(e8);let e9=e=>{let{text:t}=e;return(0,n.jsx)(i.esZ,{title:t,children:(0,n.jsx)(i.PJP.daM,{style:{color:e7().FIDESUI_NEUTRAL_500,marginLeft:4,cursor:"help"}})})};var te=e=>{let{isSubmitting:t,onSaveClick:a,onCancel:l,editingTask:s}=e,[r]=i.PPS.useForm(),o=!!s,d=[{label:eJ[Q.k6.ACCESS],value:Q.k6.ACCESS},{label:eJ[Q.k6.ERASURE],value:Q.k6.ERASURE}],c=i.PPS.useWatch("requestType",r),u=c===Q.k6.ACCESS?[{label:eY[Q.PF.TEXT],value:Q.PF.TEXT},{label:eY[Q.PF.ATTACHMENT],value:Q.PF.ATTACHMENT}]:c===Q.k6.ERASURE?[{label:eY[Q.PF.CHECKBOX],value:Q.PF.CHECKBOX}]:[],_=!c||c===Q.k6.ERASURE;(0,h.useEffect)(()=>{if(o&&s){var e;r.setFieldsValue({key:(null===(e=s.originalField)||void 0===e?void 0:e.key)||"",name:s.name,description:s.description,fieldType:s.fieldType,requestType:s.requestType})}else r.resetFields()},[r,o,s]);let m=async e=>{a(e)};return(0,n.jsxs)(i.PPS,{form:r,layout:"vertical",onFinish:m,onValuesChange:e=>{void 0!==e.requestType&&(e.requestType===Q.k6.ERASURE?r.setFieldsValue({fieldType:Q.PF.CHECKBOX}):e.requestType===Q.k6.ACCESS?r.getFieldValue("fieldType")===Q.PF.CHECKBOX&&r.setFieldsValue({fieldType:void 0}):(null===e.requestType||""===e.requestType)&&r.setFieldsValue({fieldType:void 0}))},disabled:t,children:[(0,n.jsx)(i.PPS.Item,{label:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:["Task name",(0,n.jsx)(e9,{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,n.jsx)(i.uFc,{placeholder:"Enter task name","data-testid":"input-name"})}),(0,n.jsx)(i.PPS.Item,{label:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:["Description",(0,n.jsx)(e9,{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,n.jsx)(i.uFc,{placeholder:"Enter task description","data-testid":"input-description"})}),!o&&(0,n.jsx)(i.PPS.Item,{label:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:["Key",(0,n.jsx)(e9,{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,n.jsx)(i.uFc,{placeholder:"Recommended to specify (auto-generated if empty)","data-testid":"input-key"})}),o&&(0,n.jsx)(i.PPS.Item,{label:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:["Key",(0,n.jsx)(e9,{text:"Unique identifier for this task that appears in the DSR package sent to the data subject."})]}),name:"key",children:(0,n.jsx)(i.uFc,{disabled:!0,"data-testid":"input-key-disabled"})}),(0,n.jsx)(i.PPS.Item,{label:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:["Request type",(0,n.jsx)(e9,{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,n.jsx)(i.WPr,{placeholder:"Select request type",options:d,"data-testid":"select-request-type"})}),(0,n.jsx)(i.PPS.Item,{label:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:["Field type",(0,n.jsx)(e9,{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,n.jsx)(i.WPr,{placeholder:"Select field type",options:u,disabled:_,"data-testid":"select-field-type"})}),(0,n.jsxs)(i.kCb,{justify:"flex-end",gap:2,children:[(0,n.jsx)(i.wpx,{onClick:l,disabled:t,"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(i.wpx,{type:"primary",htmlType:"submit",loading:t,"data-testid":"save-btn",children:o?"Update task":"Add task"})]})]})},tt=e=>{let{isOpen:t,onClose:a,integration:l,onTaskAdded:s,editingTask:r}=e,{successAlert:o}=(0,j.VY)(),{handleError:d}=(0,j.HK)(),[c,u]=(0,h.useState)(!1),[_]=e6(),[m]=e5(),p=!!r,x=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 m({connectionKey:l.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 _({connectionKey:l.key,body:t}).unwrap(),o("Manual task added successfully!")}s(),a()}catch(e){d(e)}finally{u(!1)}};return(0,n.jsxs)(i.u_l,{isCentered:!0,isOpen:t,size:"lg",onClose:a,children:[(0,n.jsx)(i.ZAr,{}),(0,n.jsxs)(i.hzk,{minWidth:"775px","data-testid":"add-manual-task-modal",children:[(0,n.jsx)(i.xBx,{children:p?"Edit manual task":"Add manual task"}),(0,n.jsx)(i.olH,{}),(0,n.jsx)(i.fef,{pb:6,children:(0,n.jsxs)(i.gCW,{align:"stretch",gap:"16px",children:[(0,n.jsx)(i.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,n.jsx)(te,{isSubmitting:c,onSaveClick:x,onCancel:()=>{a()},editingTask:r})]})})]})]})};let ta=e=>{let{integration:t}=e,[a,n]=(0,h.useState)([]),{data:l,refetch:s}=e3({connectionKey:t?t.key:""},{skip:!t}),[r]=e4();return(0,h.useEffect)(()=>{l&&n(l.map(e=>({id:e.id,name:e.label,description:e.help_text,fieldType:e.field_type,requestType:e.request_type,originalField:e})))},[l]),{manualTasks:a,deleteManualTask:(0,h.useCallback)(async e=>{try{await r({connectionKey:t.key,manualFieldId:e.id}).unwrap(),s()}catch(e){i.Pg3.error("Failed to delete manual task. Please try again.")}},[r,t.key,s]),refreshManualTasks:(0,h.useCallback)(()=>{s()},[s]),isLoading:!l}},tn=e=>{let{onEdit:t,onDelete:a}=e;return{columns:(0,h.useMemo)(()=>[{title:"Task Name",dataIndex:"name",key:"name",ellipsis:{showTitle:!1},render:e=>(0,n.jsx)(i.AntTypography.Text,{ellipsis:{tooltip:e},style:{maxWidth:200},children:e})},{title:"Description",dataIndex:"description",key:"description",ellipsis:{showTitle:!1},render:e=>(0,n.jsx)(i.AntTypography.Text,{ellipsis:{tooltip:e},style:{maxWidth:300},children:e})},{title:"Field Type",dataIndex:"fieldType",key:"fieldType",render:e=>eY[e]||e},{title:"Request Type",dataIndex:"requestType",key:"requestType",render:e=>eJ[e]||e},{title:"Actions",key:"actions",render:(e,l)=>(0,n.jsxs)(i.jqI,{gap:8,children:[(0,n.jsx)(i.wpx,{size:"small",icon:(0,n.jsx)(i.PJP.I8b,{}),onClick:()=>t(l),"data-testid":"edit-btn"}),(0,n.jsx)(i.wpx,{size:"small",danger:!0,icon:(0,n.jsx)(i.PJP.ZNm,{}),onClick:()=>a(l),"data-testid":"delete-btn"})]})}],[t,a])}};var ti=e=>{let{integration:t}=e,{manualTasks:a,deleteManualTask:l,refreshManualTasks:s}=ta({integration:t}),[r,o]=(0,h.useState)(null),[d,c]=(0,h.useState)(null),[u,_]=(0,h.useState)(!1),[m,p]=(0,h.useState)(!1),x=(0,h.useCallback)(async()=>{d&&await l(d),c(null),p(!1)},[d,l]),{columns:g}=tn({onEdit:e=>{o(e),_(!0)},onDelete:e=>{c(e),p(!0)}});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.jqI,{align:"center",justify:"end",gap:"small",className:"mb-1 mt-[-25px]",children:(0,n.jsx)(i.wpx,{type:"primary",onClick:()=>{o(null),_(!0)},"data-testid":"add-manual-task-btn",children:"Add manual task"})}),(0,n.jsx)(i.V5H,{columns:g,dataSource:a,rowKey:"id",pagination:!1,locale:{emptyText:(0,n.jsx)("div",{className:"p-8 text-center",children:(0,n.jsx)(i.AntTypography.Paragraph,{type:"secondary",children:'No manual tasks configured yet. Click "Add manual task" to get started.'})})}}),(0,n.jsx)(tt,{isOpen:u,onClose:()=>{o(null),_(!1)},integration:t,onTaskAdded:s,editingTask:r}),(0,n.jsx)(ep.Z,{isOpen:m,onClose:()=>{c(null),p(!1)},onConfirm:x,title:"Delete manual task",message:(0,n.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,n.jsx)(i.aNP,{})})]})},tl=a(79894),ts=a.n(tl);let{useCreateExternalUserMutation:tr}=eA.u.injectEndpoints({endpoints:e=>({createExternalUser:e.mutation({query:e=>({url:"plus/external-user",method:"POST",body:e}),invalidatesTags:["User"]})})}),{Paragraph:to}=i.AntTypography;var td=e=>{let{isOpen:t,onClose:a,onUserCreated:l}=e,[s]=i.PPS.useForm(),[o,d]=(0,h.useState)(!1),[c]=tr(),u=(0,i.pmc)(),_=e=>e.split("@")[0].replace(/[^a-zA-Z0-9_]/g,"_"),m=async e=>{d(!0);try{let t=_(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,b.D4)(a)){u((0,C.Vo)((0,b.e$)(a.error)));return}u((0,C.t5)("External respondent user created successfully. The user will receive a welcome email with access instructions.")),s.resetFields(),l()}catch(e){u((0,C.Vo)("Failed to create external user. Please try again."))}finally{d(!1)}},p=()=>{s.resetFields(),a()};return(0,n.jsxs)(i.$zI,{title:"Create external respondent user",open:t,onCancel:p,footer:null,width:500,"data-testid":"create-external-user-modal",children:[(0,n.jsxs)("div",{style:{marginBottom:16},children:[(0,n.jsx)(to,{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,n.jsxs)(to,{type:"secondary",children:["If you need to create an internal user that can log in to the Fides admin interface, please use the"," ",(0,n.jsx)(ts(),{href:r.e3,children:"Users page"})," instead."]})]}),(0,n.jsxs)(i.PPS,{form:s,layout:"vertical",onFinish:m,requiredMark:!1,children:[(0,n.jsx)(i.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,n.jsx)(i.uFc,{placeholder:"user@example.com","data-testid":"input-email_address"})}),(0,n.jsx)(i.PPS.Item,{name:"first_name",label:"First Name",rules:[{required:!0,message:"First name is required"}],children:(0,n.jsx)(i.uFc,{"data-testid":"input-first_name"})}),(0,n.jsx)(i.PPS.Item,{name:"last_name",label:"Last Name",rules:[{required:!0,message:"Last name is required"}],children:(0,n.jsx)(i.uFc,{"data-testid":"input-last_name"})}),(0,n.jsx)(i.PPS.Item,{style:{marginBottom:0,marginTop:24},children:(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"flex-end",gap:8},children:[(0,n.jsx)(i.wpx,{onClick:p,disabled:o,"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(i.wpx,{type:"primary",htmlType:"submit",loading:o,"data-testid":"save-btn",children:"Create User"})]})})]})]})},tc=a(65497);let tu=e=>{var t;let{integration:a}=e,[n,l]=(0,h.useState)([]),[s,r]=(0,h.useState)(!1),{isOpen:o,onOpen:d,onClose:c}=(0,i.qY0)(),{data:u}=eq({connectionKey:a?a.key:""},{skip:!a}),{data:_,refetch:m}=(0,tc.wv)({page:1,size:100,username:""}),[p]=eM(),x=(null!==(t=null==_?void 0:_.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,h.useEffect)(()=>{(null==u?void 0:u.assigned_users)&&l(u.assigned_users.map(e=>e.id).filter(e=>null!=e))},[u]);let g=(0,h.useCallback)(async e=>{r(!0);try{await p({connectionKey:a.key,userIds:null!=e?e:n}).unwrap(),i.Pg3.success("Assigned users have been updated")}catch(e){i.Pg3.error("Failed to assign users to manual task. Please try again.")}finally{r(!1)}},[p,a.key,n]);return{selectedUsers:n,userOptions:x,isSavingUsers:s,handleUserAssignmentChange:(0,h.useCallback)(e=>{l(e),g(e)},[g]),handleUserCreated:(0,h.useCallback)(()=>{m()},[m]),isCreateUserOpen:o,onCreateUserOpen:d,onCreateUserClose:c}};var t_=e=>{let{integration:t}=e,{selectedUsers:a,userOptions:l,handleUserAssignmentChange:s,handleUserCreated:r,isCreateUserOpen:o,onCreateUserOpen:d,onCreateUserClose:c}=tu({integration:t});return(0,n.jsx)("div",{children:(0,n.jsxs)(i.jqI,{vertical:!0,gap:"middle",children:[(0,n.jsx)(i.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,n.jsx)(ti,{integration:t}),(0,n.jsx)(i.htM,{className:"my-2"}),(0,n.jsx)(e1,{selectedUsers:a,userOptions:l,onUserAssignmentChange:s}),(0,n.jsx)(i.jqI,{justify:"start",children:(0,n.jsx)(i.wpx,{type:"default",onClick:d,"data-testid":"manage-secure-access-btn",children:"Create external user"})}),(0,n.jsx)(td,{isOpen:o,onClose:c,onUserCreated:()=>{r(),c()}})]})})},tm=a(15987),th=a(64176),tp=e=>{var t;let{isOpen:a,onClose:l,connection:s,description:r}=e,[o,d]=(0,h.useState)(null),c=(0,th.Z)(s.connection_type,null==s?void 0:null===(t=s.saas_config)||void 0===t?void 0:t.type),u=(0,n.jsxs)("div",{className:"flex w-full justify-between",children:[(0,n.jsx)(i.wpx,{onClick:l,"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(i.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,n.jsx)(S.Z,{title:"Manage ".concat(null==s?void 0:s.name," integration"),isOpen:a,onClose:l,footer:u,children:(0,n.jsx)(tm.Z,{connection:s,connectionOption:c,onCancel:l,description:r,onFormStateChange:d})})},tx=a(41553);let tg=e=>{let{connection:t,enabledFeatures:a,integrationOption:l,testData:s,needsAuthorization:r,handleAuthorize:o,testConnection:d,testIsLoading:c,description:u,overview:_,instructions:m,supportsConnectionTest:p}=e,{onOpen:x,isOpen:g,onClose:y}=(0,i.qY0)();return(0,h.useMemo)(()=>{if(!a||!a.length)return[];let e=[];return(null==a?void 0:a.includes(Q.qb.WITHOUT_CONNECTION))?e.push({label:"Details",key:"details",children:(0,n.jsxs)(i.xuv,{children:[(0,n.jsx)(i.kCb,{children:(0,n.jsx)(i.wpx,{onClick:x,"data-testid":"manage-btn",children:"Edit integration"})}),(0,n.jsx)(tp,{isOpen:g,onClose:y,connection:t,description:u}),_,m]})}):e.push({label:"Connection",key:"connection",children:(0,n.jsxs)(i.xuv,{children:[p&&(0,n.jsxs)(i.kCb,{borderRadius:"md",outline:"1px solid",outlineColor:"gray.100",align:"center",p:3,children:[(0,n.jsx)(i.kCb,{flexDirection:"column",children:(0,n.jsx)(tx.Z,{testData:s,connectionOption:l})}),(0,n.jsx)(i.LZC,{}),(0,n.jsxs)("div",{className:"flex gap-4",children:[r&&(0,n.jsx)(i.wpx,{onClick:o,"data-testid":"authorize-integration-btn",children:"Authorize integration"}),!r&&(0,n.jsx)(i.wpx,{onClick:d,loading:c,"data-testid":"test-connection-btn",children:"Test connection"}),(0,n.jsx)(i.wpx,{onClick:x,"data-testid":"manage-btn",children:"Manage"})]})]}),(0,n.jsx)(tp,{isOpen:g,onClose:y,connection:t,description:u}),_,m]})}),(null==a?void 0:a.includes(Q.qb.DATA_SYNC))&&e.push({label:"Data sync",key:"data-sync",children:(0,n.jsx)(ew,{integration:t})}),(null==a?void 0:a.includes(Q.qb.DATA_DISCOVERY))&&e.push({label:"Data discovery",key:"data-discovery",children:(0,n.jsx)(ek,{integration:t,integrationOption:l})}),(null==a?void 0:a.includes(Q.qb.TASKS))&&e.push({label:"Manual tasks",key:"manual-tasks",children:(0,n.jsx)(t_,{integration:t})}),(null==a?void 0:a.includes(Q.qb.CONDITIONS))&&e.push({label:"Conditions",key:"conditions",children:(0,n.jsx)(e0,{connectionKey:t.key})}),e},[t,a,l,s,r,o,d,c,x,g,y,u,_,m,p])};var ty=a(93633),tf=a(75595);let tv=e=>{let{connection:t,connectionOption:a}=e,{data:n}=e3({connectionKey:t?t.key:""},{skip:!t});if((null==a?void 0:a.identifier)!==Q.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"}},tF=e=>{let{connection:t,connectionOption:a}=e,{data:n}=eq({connectionKey:t?t.key:""},{skip:!t});if((null==a?void 0:a.identifier)!==Q.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"}},tb=e=>{let{testData:t,connectionOption:a}=e;return(null==a?void 0:a.authorization_required)?{title:"Authorize integration",description:(0,n.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},tj=()=>({title:"Create integration",description:"Integration created successfully",state:"finish"});var tS=a(87174);let tC=e=>{var t,a,n,i;let{enabledFeatures:l}=(0,m.ZP)(e.connection.connection_type,null===(t=e.connection.saas_config)||void 0===t?void 0:t.type),s=null==l?void 0:l.includes(tS.q.DATA_DISCOVERY),{data:r}=(0,F.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)||!s});if(!s)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"}},tT=e=>{let{connection:t}=e,a=!!(null==t?void 0:t.system_key),l=a?r.Dv.replace("[id]",t.system_key):r.So;return{title:"Link system",description:a?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ts(),{href:l,passHref:!0,children:(0,n.jsx)(i.FKJ,{children:"System linked"})})," ","successfully"]}):(0,n.jsxs)(n.Fragment,{children:["Link this integration in the"," ",(0,n.jsx)(ts(),{href:l,passHref:!0,children:(0,n.jsx)(i.FKJ,{children:"system inventory"})}),'. Navigate to the appropriate system and within the integration tab select "Link integration".']}),state:a?"finish":"process"}},tk=e=>{let{testData:t,testIsLoading:a,connectionOption:l,connection:s}=e,r=tj(),o=tb({testData:t,testIsLoading:a,connection:s,connectionOption:l}),d=tC({testData:t,testIsLoading:a,connection:s,connectionOption:l}),c=tv({testData:t,testIsLoading:a,connection:s,connectionOption:l}),u=tF({testData:t,testIsLoading:a,connection:s,connectionOption:l}),_=tT({testData:t,testIsLoading:a,connection:s,connectionOption:l}),m=(0,h.useMemo)(()=>[r,o,d,c,u,_].filter(e=>null!==e),[r,o,d,c,u,_]),p=(0,h.useMemo)(()=>m.map(e=>({...e,icon:"finish"===e.state?(0,n.jsx)(i.PJP.WzW,{size:24}):void 0})),[m]);return(0,n.jsx)(i.V4A,{title:"Integration setup","data-testid":"integration-setup-card",children:(0,n.jsx)(i.XX8,{direction:"vertical",current:(()=>{let e=m.findIndex(e=>"finish"!==e.state);return -1===e&&m.length>0?m.length-1:e})(),status:(()=>{let e=m.findIndex(e=>"finish"!==e.state);return -1===e?"finish":m[e].state})(),items:p,size:"small"})})};var tN=()=>{var e,t,a,h;let p=(0,l.useRouter)(),x=p.query.id,{data:g,isLoading:y}=(0,u.jA)(x,{skip:!x}),{data:f}=(0,c.$I)({}),v=(null==f?void 0:f.items)||[],F=(0,th.Z)(null==g?void 0:g.connection_type,null==g?void 0:null===(e=g.saas_config)||void 0===e?void 0:e.type),{testData:b,testConnection:j,isLoading:S}=(0,_.Z)(g),{handleAuthorize:C,needsAuthorization:T}=(0,ty.z)({connection:g,connectionOption:F,testData:b}),k=(0,m.ZP)(null==g?void 0:g.connection_type,null==g?void 0:null===(t=g.saas_config)||void 0===t?void 0:t.type,v),{overview:N,instructions:E,description:w,enabledFeatures:A}=k;g&&!m.jq.includes(g.connection_type)&&p.push(r.KH);let I=(null==g?void 0:g.connection_type)!==Q.Rj.MANUAL_TASK,q=tg({connection:g,enabledFeatures:A,integrationOption:F,testData:b,needsAuthorization:T,handleAuthorize:C,testConnection:j,testIsLoading:S,description:w,overview:N,instructions:E,supportsConnectionTest:I}),{activeTab:M,onTabChange:P}=(0,d.Z)({tabKeys:q.map(e=>e.key)});return(0,n.jsx)(s.Z,{title:"Integrations",children:(0,n.jsx)(o.Z,{heading:"Integrations",breadcrumbItems:[{title:"All integrations",href:r.KH},{title:null!==(h=null!==(a=null==g?void 0:g.name)&&void 0!==a?a:null==g?void 0:g.key)&&void 0!==h?h:""}],children:(0,n.jsxs)(i.jqI,{gap:24,children:[(0,n.jsxs)("div",{className:"grow",children:[(0,n.jsx)("div",{className:"mb-6",children:(0,n.jsx)(tf.Z,{integration:g,integrationTypeInfo:k,showDeleteButton:!0})}),y?(0,n.jsx)(i.$jN,{}):!!g&&(0,n.jsx)(i.A5g,{items:q,activeKey:M,onChange:P})]}),(0,n.jsx)("div",{className:"w-[350px] shrink-0",children:y?(0,n.jsx)(i.$jN,{}):!!g&&(0,n.jsx)(tk,{testData:b,testIsLoading:S,connectionOption:F,connection:g})})]})})})}}},function(e){e.O(0,[8765,431,9278,5163,699,3662,1316,768,4808,3729,2888,9774,179],function(){return e(e.s=50697)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9650],{6554:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/privacy-requests/[id]",function(){return i(8063)}])},59969:function(e,t,i){"use strict";var s=i(24246),n=i(96306);i(27378);var a=i(8557);t.Z=e=>{let{daysLeft:t,includeText:i,status:l}=e;if(!t||l===a.q.COMPLETE||l===a.q.CANCELED||l===a.q.DENIED||l===a.q.IDENTITY_UNVERIFIED)return(0,s.jsx)("span",{children:"-"});let r="";switch(!0){case t>=10:r="success";break;case t<10&&t>4:r="warning";break;case t<5:r="error"}return(0,s.jsx)(n.j8w,{color:r,children:i?"".concat(t," days left"):t})}},18225:function(e,t,i){"use strict";var s=i(24246),n=i(96306);t.Z=e=>{let{alignment:t="center",...i}=e;return(0,s.jsx)(n.kCb,{boxSize:"full",align:"center",justify:t,children:(0,s.jsx)(n.$jN,{color:"primary",...i})})}},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return m}});var s=i(24246),n=i(96306),a=i(88038),l=i.n(a),r=i(86677);i(27378);var o=i(25980),c=i(90867),d=i(77830),u=()=>{let e=(0,r.useRouter)();return(0,s.jsx)(n.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,s.jsxs)(n.xuv,{children:[(0,s.jsxs)(n.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,s.jsx)(n.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,s.jsx)(n.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,s.jsxs)(n.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=e=>{let{children:t,title:i,padded:a=!0,mainProps:d}=e,m=(0,o.hz)(),h=(0,r.useRouter)(),p="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,x=!(m.flags.privacyRequestsConfiguration&&p),{data:g}=(0,c.JE)(void 0,{skip:x}),{data:j}=(0,c.PW)(void 0,{skip:x}),y=m.flags.privacyRequestsConfiguration&&(!g||!j)&&p;return(0,s.jsxs)(n.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,s.jsxs)(l(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsxs)(n.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[y?(0,s.jsx)(u,{}):null,t]})]})}},19904:function(e,t,i){"use strict";i.d(t,{Tg:function(){return l}});var s=i(24246),n=i(16134),a=i(31793);let l=e=>(0,n.C)(a.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:i}=e;return l(t)?(0,s.jsx)(s.Fragment,{children:i}):null}},57526:function(e,t,i){"use strict";var s=i(24246),n=i(96306),a=i(27378);t.Z=e=>{let{isOpen:t,onClose:i,onApproveRequest:l,isLoading:r,subjectRequest:o}=e,{identity:c,identity_verified_at:d,custom_privacy_request_fields:u}=o,m=(0,a.useCallback)(()=>{l().then(()=>{i()})},[l,i]);return(0,s.jsxs)(n.u_l,{isOpen:t,onClose:i,size:"lg",isCentered:!0,children:[(0,s.jsx)(n.ZAr,{}),(0,s.jsxs)(n.hzk,{children:[(0,s.jsx)(n.xBx,{children:"Privacy request approval"}),(0,s.jsxs)(n.fef,{paddingTop:0,paddingBottom:0,children:[(0,s.jsx)(n.xvT,{color:"gray.500",fontSize:"14px",marginBottom:4,children:"Are you sure you want to approve this privacy request?"}),(0,s.jsxs)(n.QI$,{children:[Object.entries(c).filter(e=>{let[,{value:t}]=e;return null!==t}).map(e=>{let[t,{value:i,label:a}]=e;return(0,s.jsx)(n.HCh,{children:(0,s.jsxs)(n.kCb,{alignItems:"flex-start",children:[(0,s.jsxs)(n.xvT,{mr:2,fontSize:"sm",color:"gray.900",fontWeight:"500",children:[a,":"]}),(0,s.jsx)(n.xvT,{color:"gray.600",fontWeight:"500",fontSize:"sm",mr:2,children:i}),"(",d?"Verified":"Unverified",")"]},t)},t)}),u&&Object.entries(u).filter(e=>{let[,t]=e;return t.value}).map(e=>{let[t,i]=e;return(0,s.jsx)(n.HCh,{children:(0,s.jsxs)(n.kCb,{alignItems:"flex-start",children:[(0,s.jsxs)(n.xvT,{mr:2,fontSize:"sm",color:"gray.900",fontWeight:"500",children:[i.label,":"]}),(0,s.jsxs)(n.xvT,{color:"gray.600",fontWeight:"500",fontSize:"sm",mr:2,children:[Array.isArray(i.value)?i.value.join(", "):i.value," "]}),"(Unverified)"]},t)},t)})]})]}),(0,s.jsx)(n.mzw,{children:(0,s.jsxs)(n.MIq,{columns:2,width:"100%",children:[(0,s.jsx)(n.wpx,{onClick:i,className:"mr-3","data-testid":"cancel-btn",children:"Cancel"}),(0,s.jsx)(n.wpx,{type:"primary","data-testid":"continue-btn",onClick:m,loading:r,children:"Confirm"})]})})]})]})}},66548:function(e,t,i){"use strict";var s=i(24246),n=i(40324),a=i(96306),l=i(34090),r=i(27378),o=i(55484);let c={denialReason:""};t.Z=e=>{let{isOpen:t,onClose:i,onDenyRequest:d}=e,u=(0,r.useCallback)((e,t)=>{let{setSubmitting:s}=t;d(e.denialReason).then(()=>{s(!1),i()})},[d,i]);return(0,s.jsxs)(a.u_l,{isOpen:t,onClose:i,isCentered:!0,returnFocusOnClose:!1,children:[(0,s.jsx)(a.ZAr,{}),(0,s.jsx)(a.hzk,{width:"100%",maxWidth:"456px","data-testid":"deny-privacy-request-modal",children:(0,s.jsx)(l.J9,{initialValues:c,validationSchema:o.Ry({denialReason:o.Z_().required().label("Reason for denial")}),onSubmit:u,children:e=>{let{isSubmitting:t,dirty:r,isValid:o}=e;return(0,s.jsxs)(l.l0,{children:[(0,s.jsx)(a.xBx,{children:"Privacy request denial"}),(0,s.jsx)(a.fef,{color:"gray.500",fontSize:"14px",children:"Please enter a reason for denying this privacy request. Please note: this can be seen by the user in their notification email."}),(0,s.jsx)(a.fef,{children:(0,s.jsx)(n.Ks,{name:"denialReason",textAreaProps:{focusBorderColor:"primary.600",resize:"none"}})}),(0,s.jsxs)(a.mzw,{className:"flex w-full gap-4",children:[(0,s.jsx)(a.wpx,{disabled:t,onClick:i,className:"grow",children:"Cancel"}),(0,s.jsx)(a.wpx,{htmlType:"submit",type:"primary",disabled:!r||!o,loading:t,className:"grow","data-testid":"deny-privacy-request-modal-btn",children:"Confirm"})]})]})}})})]})}},45489:function(e,t,i){"use strict";i.d(t,{Z:function(){return n}});var s=i(90867);let n=e=>{let{subjectRequest:t}=e,[i,n]=(0,s.RW)({fixedCacheKey:t.id}),[a,l]=(0,s.F1)({fixedCacheKey:t.id}),[r,o]=(0,s.rC)({fixedCacheKey:t.id}),[c,d]=(0,s.zB)({fixedCacheKey:t.id}),u=l.isLoading||n.isLoading||d.isLoading;return{approveRequest:i,approveRequestResult:n,denyRequest:a,denyRequestResult:l,handleApproveRequest:()=>i(t),handleDenyRequest:e=>a({id:t.id,reason:e}),handleDeleteRequest:()=>r(t),handleFinalizeRequest:()=>c({privacyRequestId:t.id}),softDeleteRequestResult:o,finalizeRequestResult:d,isLoading:u}}},72281:function(e,t,i){"use strict";i.d(t,{G:function(){return r},d:function(){return o}});var s=i(86677),n=i(27378),a=i(19904),l=i(54682);let r={REQUEST:"request",MANUAL_TASK:"manual-tasks"},o=()=>{let e=(0,s.useRouter)(),t=(0,a.Tg)([l.Sh.PRIVACY_REQUEST_READ]),i=(0,a.Tg)([l.Sh.MANUAL_FIELD_READ_OWN,l.Sh.MANUAL_FIELD_READ_ALL]),o=(0,n.useMemo)(()=>({request:t,manualTask:i}),[t,i]),[c,d]=(0,n.useState)(o.request?r.REQUEST:r.MANUAL_TASK),u=(0,n.useCallback)(()=>{let{tab:t}=e.query;return t&&"string"==typeof t&&Object.values(r).includes(t)?t:null},[e.query]),m=(0,n.useCallback)(t=>{e.replace({pathname:e.pathname,query:{tab:t}},void 0,{shallow:!0})},[e]);return(0,n.useEffect)(()=>{if(!e.isReady)return;let t=u();t&&(t===r.REQUEST||t===r.MANUAL_TASK&&o.manualTask)&&d(t)},[e.isReady,e.query,o,u,m]),{activeTab:c,handleTabChange:(0,n.useCallback)(e=>{Object.values(r).includes(e)&&(d(e),m(e))},[m]),availableTabs:o}}},8063:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return eB}});var s,n,a,l,r=i(24246),o=i(96306),c=i(86677),d=i(77213),u=i(77830),m=i(58754),h=i(99716),p=i(27378),x=i(54682),g=i(19904);(s=a||(a={})).IN_PROCESSING="in_processing",s.PENDING="pending",s.COMPLETE="complete",s.ERROR="error",s.PAUSED="paused",s.AWAITING_PROCESSING="awaiting_processing",s.RETRYING="retrying",s.SKIPPED="skipped";let j={in_processing:"In processing",pending:"Pending",complete:"Complete",error:"Error",paused:"Paused",awaiting_processing:"Awaiting input",retrying:"Retrying",skipped:"Skipped"},y={error:"error",skipped:"warning",awaiting_processing:"minos",in_processing:void 0,pending:void 0,complete:void 0,paused:void 0,retrying:void 0};(n=l||(l={})).REQUEST_UPDATE="Request update",n.INTERNAL_COMMENT="Internal comment",n.MANUAL_TASK="Manual task";let v={"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 C=e=>{let{item:t}=e,{author:i,title:s,date:n,type:a,onClick:c,isError:d,isAwaitingInput:u,description:m,attachments:h,showViewLog:p}=t,x=(0,b.p6)(n),g=!!c,j=h&&h.length>0,y=(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,":"]}),s&&(0,r.jsxs)(o.AntTypography.Text,{className:_()(w().title,{[w()["title--error"]]:d,[w()["title--awaiting-input"]]:u}),ellipsis:{tooltip:!0},"data-testid":"activity-timeline-title",children:[s,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:x})}),(0,r.jsx)("div",{className:"xl:hidden",children:(0,r.jsx)(o.esZ,{title:x,children:(0,r.jsx)(o.PJP.qpU,{"data-testid":"activity-timeline-timestamp-icon"})})}),(0,r.jsx)(o.j8w,{className:w().type,color:v[a],"data-testid":"activity-timeline-type",children:a}),p&&(0,r.jsx)("span",{className:w().viewLogs,"data-testid":"activity-timeline-view-logs",children:"View Log"})]}),(m||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:m||""}),j&&(0,r.jsx)(E,{attachments:h})]})]}),f={className:_()(w().itemButton,{[w()["itemButton--error"]]:d,[w()["itemButton--awaiting-input"]]:u,[w()["itemButton--clickable"]]:g,[w()["itemButton--comment"]]:a===l.INTERNAL_COMMENT,[w()["itemButton--manual-task"]]:a===l.MANUAL_TASK}),"data-testid":"activity-timeline-item"};return g?(0,r.jsx)("button",{type:"button",onClick:c,...f,children:y}):(0,r.jsx)("div",{...f,children:y})},R=i(25980),A=i(54427),q=i(78780);let{useGetCommentsQuery:k,useCreateCommentMutation:S,useGetCommentDetailsQuery:N,useLazyGetCommentDetailsQuery:P}=q.u.injectEndpoints({endpoints:e=>({getComments:e.query({query:e=>{let{privacy_request_id:t,page:i=1,size:s}=e;return{url:"plus/privacy-request/".concat(t,"/comment"),method:"GET",params:{page:i,size:s}}},providesTags:["Privacy Request Comments"]}),createComment:e.mutation({query:e=>{let{privacy_request_id:t,comment_text:i,comment_type:s}=e,n=new FormData;return n.append("comment_text",i),n.append("comment_type",s),{url:"plus/privacy-request/".concat(t,"/comment"),method:"POST",body:n,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,A.oM)({name:"privacyRequestComments",initialState:{},reducers:{}}),O=e=>{let{plus:t}=(0,R.hz)(),{data:i,isLoading:s,error:n}=k({privacy_request_id:e,size:100},{skip:!t});return(0,p.useEffect)(()=>{n&&o.Pg3.error("Failed to fetch the request comments")},[n]),{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:l.INTERNAL_COMMENT,showViewLog:!1,description:e.comment_text,isError:!1,isSkipped:!1,isAwaitingInput:!1,id:"comment-".concat(e.id)})):[],isLoading:s}},D=e=>{let t=!e;return{eventItems:e?Object.entries(e).map(e=>{let[t,i]=e,s=i.some(e=>e.status===a.ERROR),n=i.some(e=>e.status===a.SKIPPED),r=i.some(e=>e.status===a.AWAITING_PROCESSING);return{author:"Fides",title:t,date:new Date(i[0].updated_at),type:l.REQUEST_UPDATE,showViewLog:s||n||r,onClick:()=>{},isError:s,isSkipped:n,isAwaitingInput:r,id:"request-".concat(t)}}):[],isLoading:t}};var z=i(91317),U=i(45116);let M=e=>{let{plus:t}=(0,R.hz)(),{data:i,isLoading:s,error:n}=(0,U.Ym)({page:1,size:100,privacyRequestId:e,status:void 0,includeFullSubmissionDetails:!0},{skip:!t});return(0,p.useEffect)(()=>{n&&o.Pg3.error("Failed to fetch manual tasks")},[n]),{manualTaskItems:i?i.items.filter(e=>e.status===x.OS.COMPLETED||e.status===x.OS.SKIPPED).map(e=>{var t,i;let s=e.submission_user?(0,b.gJ)(e.submission_user):"Unknown User";(0,z.PN)(null===(t=e.submission_user)||void 0===t?void 0:t.id)&&(s=(null===(i=e.submission_user)||void 0===i?void 0:i.id)||"Unknown User");let n=e.status===x.OS.SKIPPED,a="Task ".concat(n?"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:s,title:a,date:new Date(e.updated_at),type:l.MANUAL_TASK,showViewLog:!1,description:r,isError:!1,isSkipped:n,isAwaitingInput:!1,id:"manual-task-".concat(e.manual_field_id),attachments:o}}):[],taskCommentIds:(0,p.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:s}};var L=i(88340),W=e=>{let{errorMessage:t,status:i=a.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:y[i],children:j[i]}),(0,r.jsx)(o.xuv,{padding:"0px",marginBottom:"3px",children:(0,r.jsx)(L.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})})]})},B=i(3124),F=i.n(B);let Z=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}},K=e=>{if(e.status!==a.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():"-"},J=(e,t)=>{let i=e.filter(e=>e.action_type===t&&e.status===a.COMPLETE&&e.collection_name).sort((e,t)=>new Date(t.updated_at).getTime()-new Date(e.updated_at).getTime()),s={};i.forEach(e=>{let t=e.collection_name||"unknown";s[t]||(s[t]=e)});let n=0,l=!1,r=/(?:retrieved|masked|processed)\s+(\d+)\s+records?$/i;return Object.values(s).forEach(e=>{if(e.message){let t=e.message.match(r);if(t){l=!0;let e=parseInt(t[1],10);n+=e}}}),l?n:null},G=(e,t,i)=>{if("finished"===e.status&&!e.collection_name&&i){let e=J(t,i);return null!==e?e.toLocaleString():"-"}return K(e)};var H=e=>{var t,i,s;let{eventLogs:n,allEventLogs:l,onDetailPanel:c,privacyRequest:d}=e,u=(null==n?void 0:n.some(e=>e.collection_name))||(null==n?void 0:n.some(e=>"finished"===e.status&&!e.collection_name))||!1,m=null==n?void 0:n.every(e=>"finished"===e.status&&!e.collection_name),h=null==d?void 0:null===(s=d.policy)||void 0===s?void 0:null===(i=s.rules)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.action_type,p=e=>e?Z(e):h?Z(h):"-",x=null==n?void 0:n.map(e=>(0,r.jsxs)(o.Tr,{backgroundColor:e.status===a.ERROR||e.status===a.SKIPPED&&e.message||e.status===a.AWAITING_PROCESSING?F().FIDESUI_NEUTRAL_50:"unset",onClick:()=>{(e.status===a.ERROR||e.status===a.SKIPPED&&e.message||e.status===a.AWAITING_PROCESSING)&&c(e.message,e.status)},style:{cursor:e.message?"pointer":"unset"},_hover:{backgroundColor:F().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:p(e.action_type)})}),u&&!m&&(0,r.jsx)(o.Td,{children:j[e.status]?(0,r.jsx)(o.j8w,{color:y[e.status],children:j[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:G(e,l||n,h)})}),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"})}),u&&!m&&(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})]})})})},V=e=>{let{isOpen:t,onClose:i,currentLogs:s,allEventLogs:n,isViewingError:l,errorMessage:c,currentStatus:d=a.ERROR,onCloseErrorPanel:u,onOpenErrorPanel:m,privacyRequest:h}=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:[l&&(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:l?"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:[s&&!l?(0,r.jsx)(H,{eventLogs:s,allEventLogs:n,onDetailPanel:m,privacyRequest:h}):null,l?(0,r.jsx)(W,{errorMessage:c,status:d}):null]})]})]})},Y=e=>{let{subjectRequest:t}=e,{isOpen:i,onOpen:s,onClose:n}=(0,o.qY0)(),[c,d]=(0,p.useState)([]),[u,m]=(0,p.useState)(""),[h,x]=(0,p.useState)(!1),[g,j]=(0,p.useState)(""),[y,v]=(0,p.useState)(a.ERROR),{results:f,id:_}=t,{commentItems:b,isLoading:T}=O(_),{eventItems:E,isLoading:R}=D(f),{manualTaskItems:A,taskCommentIds:q,isLoading:k}=M(_);(0,p.useEffect)(()=>{u&&f&&f[u]&&d(f[u])},[f,u]);let S=()=>{x(!1)},N=(0,p.useCallback)((e,t)=>{m(e),d(t),s()},[s]),P=(0,p.useMemo)(()=>f?Object.values(f).flat():[],[f]),I=(0,p.useMemo)(()=>b.filter(e=>{let t=e.id.replace("comment-","");return!q.has(t)}),[b,q]),z=(0,p.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:l.REQUEST_UPDATE,showViewLog:!1,isError:!1,isSkipped:!1,isAwaitingInput:!1,id:"initial-request"},...e,...I,...A].sort((e,t)=>new Date(e.date).getTime()-new Date(t.date).getTime())},[E,I,A,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||k?(0,r.jsx)("div",{className:w().itemButton,"data-testid":"timeline-skeleton",children:(0,r.jsx)(o.N_L,{paragraph:{rows:2},active:!0})}):z.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(C,{item:e})},e.id))})}),(0,r.jsx)(V,{isOpen:i,onClose:()=>{h&&S(),m(""),n()},currentLogs:c,allEventLogs:P,isViewingError:h,errorMessage:g,currentStatus:y,onOpenErrorPanel:(e,t)=>{j(e),t&&v(t),x(!0)},onCloseErrorPanel:S,privacyRequest:t})]})},Q=i(66187);let $=e=>{let{privacyRequestId:t,onCancel:i}=e,[s,n]=(0,p.useState)(""),a=(0,p.useRef)(null),[l,{isLoading:c}]=S();(0,p.useEffect)(()=>{a.current&&a.current.focus()},[]);let d=async()=>{if(s.trim())try{await l({privacy_request_id:t,comment_text:s,comment_type:Q.i.NOTE}).unwrap(),n(""),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.uFc.TextArea,{ref:a,value:s,onChange:e=>n(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:!s.trim(),type:"primary",htmlType:"button","data-testid":"submit-comment-button",children:"Save"})]})]})};var X=e=>{let{subjectRequest:t}=e,[i,s]=(0,p.useState)(!1);return(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)(Y,{subjectRequest:t}),i?(0,r.jsx)($,{privacyRequestId:t.id,onCancel:()=>s(!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:()=>s(!0),className:"flex items-center","data-testid":"add-comment-button",children:["Add comment ",(0,r.jsx)("span",{className:"ml-1",children:"+"})]})})})]})},ee=i(14207),et=i(46238),ei=i(72281),es=i(75573),en=i(90867),ea=i(16134);let el=e=>Array.from(new Set(e.filter(e=>Object.values(x.Us).includes(e.action_type)).map(e=>e.action_type)));var er=e=>{let{rules:t}=e,i=el(t).map(e=>(0,b.kC)(e)).map(e=>e);return(0,r.jsx)(o.AntTypography.Text,{children:i.join(" - ")})},eo=i(34090),ec=i(55484),ed=e=>{let{connectorName:t,data:i,isSubmitting:s=!1,onSaveClick:n}=e,{isOpen:a,onOpen:l,onClose:c}=(0,o.qY0)(),d=(0,p.useRef)(null),u=async(e,t)=>{n({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:l,size:"small",children:"Review"}),!(null==i?void 0:i.checked)&&(0,r.jsx)(o.wpx,{onClick:l,size:"small",type:"primary",children:"Begin manual input"}),(0,r.jsx)(eo.J9,{enableReinitialize:!0,initialValues:{...i.fields},onSubmit:u,validateOnBlur:!1,validateOnChange:!1,validationSchema:ec.Ry().shape({}),children:e=>(0,r.jsxs)(o.dys,{isOpen:a,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)(eo.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)(eo.gN,{id:i,name:i,children:e=>{let{field:s}=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,{...s,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:s,htmlType:"submit",children:"Save"})]})})]})]})})]})},eu=e=>{let{connectorName:t,data:i,isSubmitting:s=!1,onSaveClick:n}=e,{isOpen:a,onOpen:l,onClose:c}=(0,o.qY0)(),d=(0,p.useRef)(null),u=async(e,t)=>{n({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:l,size:"small",children:"Review"}),!(null==i?void 0:i.checked)&&(0,r.jsx)(o.wpx,{onClick:l,size:"small",type:"primary",children:"Begin manual input"}),(0,r.jsx)(eo.J9,{enableReinitialize:!0,initialValues:{...i.fields},onSubmit:u,validateOnBlur:!1,validateOnChange:!1,validationSchema:ec.Ry().shape({}),children:e=>(0,r.jsxs)(o.dys,{isOpen:a,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)(eo.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)(eo.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:s,htmlType:"submit",children:"Save"})]})})]})]})})]})};let em=(e,t,i)=>e.includes(x.Us.ACCESS)?{ProcessingDetailComponent:ed,uploadMutation:t,getUploadedWebhookDataEndpoint:en.$I.endpoints.getUploadedManualAccessWebhookData}:e.includes(x.Us.ERASURE)?{ProcessingDetailComponent:eu,uploadMutation:i,getUploadedWebhookDataEndpoint:en.$I.endpoints.getUploadedManualErasureWebhookData}:null;var eh=e=>{let{subjectRequest:t,onComplete:i}=e,s=(0,ea.T)(),{errorAlert:n,successAlert:a}=(0,es.VY)(),{handleError:l}=(0,es.HK)(),[c,d]=(0,p.useState)([]),[u,m]=(0,p.useState)(!1),[h,g]=(0,p.useState)(!1),{data:j,isFetching:y,isLoading:v,isSuccess:f}=(0,ee.W6)(),[_]=(0,en.w3)(),b=el(t.policy.rules),[T]=(0,en.nL)(),[w]=(0,en.UR)(),{ProcessingDetailComponent:E,uploadMutation:C,getUploadedWebhookDataEndpoint:R}=em(b,T,w),A=async()=>{try{m(!0),await _(t.id).unwrap(),a("Manual request has been received. Request now processing."),i()}catch(e){l(e)}finally{m(!1)}},q=async e=>{try{g(!0),await C(e).unwrap();let t={connection_key:e.connection_key,fields:{}};Object.entries(e.body).forEach(e=>{let[i,s]=e;t.fields[i]=s||""});let i=c.map(e=>e.connection_key===t.connection_key?{...e,checked:!0,fields:{...t.fields}}:e);d(i),a("Manual input successfully saved!")}catch(e){l(e)}finally{g(!1)}};return((0,p.useEffect)(()=>(f&&j.length>0&&0===c.length&&(()=>{if(c.length>0)return;let e=[],i=null==j?void 0:j.map(e=>e.connection_config.key);null==i||i.every(i=>e.push(s(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,s]=e;i.fields[t]=s||""}),t.push(i)}else n("An error occurred while loading manual input data for ".concat(j[i].connection_config.name))}),d(t)})})(),()=>{}),[j,c.length,s,n,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:[(y||v)&&(0,r.jsx)(o.M5Y,{children:(0,r.jsx)(o.$jN,{})}),f&&j?(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:[j.length>0&&j.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:h,onSaveClick:q}):null})]},e.id)),0===j.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:A,className:"mt-2",children:"Complete DSR"})})})}):null]})}):null]})]}):null},ep=e=>{let{subjectRequest:t,onComplete:i}=e,s=(0,c.useRouter)(),{data:n}=(0,ee.AZ)({}),a=(0,p.useMemo)(()=>{var e;return(null==n?void 0:null===(e=n.items)||void 0===e?void 0:e.filter(e=>e.connection_type===x.Rj.MANUAL_TASK))||[]},[n]),{data:l}=(0,ee.W6)(),d=(l||[]).length>0,{data:m}=(0,U.Ym)({page:1,size:100,privacyRequestId:t.id}),h=(null==m?void 0:m.items)||[],g=h.length,j=h.filter(e=>e.status===x.OS.NEW).length,y=a.length>0;return y||d?(0,r.jsxs)(o.Kqy,{spacing:6,children:[y&&(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:j})," pending task",1!==j?"s":""]}),g>0&&(0,r.jsx)("div",{className:"mt-2",children:(0,r.jsx)(o.wpx,{type:"primary",onClick:()=>{s.push({pathname:u.Jw,query:{privacy_request_id:t.id,tab:ei.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)(et.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)(eh,{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."})})},ex=i(59969);let eg={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 ej=e=>{let{status:t}=e;return(0,r.jsx)(o.j8w,{color:eg[t].color,className:"justify-center","data-testid":"request-status-badge",children:eg[t].label})},ey=i(18225),ev=i(812),ef=i(7842);let{useGetAttachmentsQuery:e_,useUploadAttachmentMutation:eb,useGetAttachmentDetailsQuery:eT,useLazyGetAttachmentDetailsQuery:ew}=q.u.injectEndpoints({endpoints:e=>({getAttachments:e.query({query:e=>{let{privacy_request_id:t,page:i=1,size:s}=e;return{url:"plus/privacy-request/".concat(t,"/attachment"),method:"GET",params:{page:i,size:s}}},providesTags:["Privacy Request Attachments"]}),uploadAttachment:e.mutation({query:e=>{let{privacy_request_id:t,attachment_type:i,attachment_file:s}=e,n=new FormData;return n.append("attachment_type",i),n.append("attachment_file",s),{url:"plus/privacy-request/".concat(t,"/attachment"),method:"POST",body:n,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:eE}=(0,A.oM)({name:"privacyRequestAttachments",initialState:{},reducers:{}}),eC=e=>{var t;let{file:i}=e,[s,n]=(0,p.useState)(!1),[a]=ew(),l=async()=>{var e,t,s;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)){n(!0);try{let e=await a({privacy_request_id:i.customData.privacy_request_id,attachment_id:i.customData.attachment_id}),t=null===(s=e.data)||void 0===s?void 0:s.retrieved_attachment_url,n=null==t?void 0:t.startsWith("http");t&&n?window.open(t,"_blank"):t&&!n?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{n(!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",icon:(0,r.jsx)(o.PJP.UWx,{}),onClick:l,loading:s,className:"shrink-0"})]})},eR=(e,t)=>(0,r.jsx)(eC,{file:t});var eA=e=>{let{subjectRequest:t}=e,[i,s]=(0,p.useState)(!1),n=(0,g.Tg)([x.Sh.ATTACHMENT_READ]),a=(0,g.Tg)([x.Sh.ATTACHMENT_CREATE]),[l]=eb(),{data:c,isLoading:d,error:u}=(0,en.PW)(),{data:m,isLoading:h}=e_({privacy_request_id:t.id}),{refetch:j}=e_({privacy_request_id:t.id}),y=(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}})))||[],v=(0,p.useCallback)(()=>(0,r.jsx)(o.PJP.PgN,{}),[]);if(!n)return null;let f=a&&(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||h?(0,r.jsx)(ey.Z,{size:"md",alignment:"start"}):(0,r.jsx)(o.pMK,{name:"attachment_file",fileList:y,iconRender:v,showUploadList:{showRemoveIcon:!1,showDownloadIcon:!1},itemRender:eR,accept:_.join(","),customRequest:async e=>{let{file:i,onSuccess:n,onError:a}=e,r=i.name;try{s(!0),await l({privacy_request_id:t.id,attachment_file:i,attachment_type:ef.s.INTERNAL_USE_ONLY}).unwrap(),o.Pg3.success("".concat(r," file uploaded successfully")),j(),null==n||n(i)}catch(e){o.Pg3.error("".concat(r," file upload failed.")),null==a||a(e)}finally{s(!1)}},disabled:!f,children:a&&(0,r.jsx)(o.esZ,{title:u&&"Add attachment not available: ".concat((0,ev.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)(et.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"})]})})})]})})},eq=i(15709),ek=i.n(eq),eS=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(ek().label),children:(0,r.jsxs)(o.AntTypography.Text,{children:[t,":"]})}),(0,r.jsx)("div",{className:"min-w-0 shrink grow ".concat(ek().value),"data-testid":"request-detail-value-".concat(t),children:i})]})},eN=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)(eS,{label:i.label,children:(0,r.jsx)(o.AntTypography.Text,{children:Array.isArray(i.value)?i.value.join(", "):i.value})},t)})})},eP=e=>{let{subjectRequest:t}=e,{plus:i}=(0,R.hz)(),{id:s,status:n,policy:a,identity:l,identity_verified_at:c}=t;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)(eS,{label:"Status",children:(0,r.jsx)(ej,{status:n})}),(0,r.jsx)(eS,{label:"Time remaining",children:(0,r.jsx)(ex.Z,{daysLeft:t.days_left,includeText:!0,status:t.status})}),(0,r.jsx)(eS,{label:"Request type",children:(0,r.jsx)(er,{rules:a.rules})}),(0,r.jsx)(eS,{label:"Source",children:i&&(0,r.jsx)(o.AntTypography.Text,{children:t.source||"-"})}),Object.entries(l).filter(e=>{let[,{value:t}]=e;return null!==t}).map(e=>{let[t,{value:i="",label:s}]=e,n="".concat(i).concat(c?"":" (Unverified)");return(0,r.jsx)(eS,{label:"Subject ".concat(s.toLocaleLowerCase()),children:(0,r.jsx)(o.esZ,{title:n,trigger:"click",children:(0,r.jsx)(o.AntTypography.Text,{ellipsis:!0,children:n})})},t)}),(0,r.jsx)(eN,{subjectRequest:t})]}),(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.uFc,{readOnly:!0,value:s,"data-testid":"request-detail-value-id"}),(0,r.jsx)(o.wpx,{icon:(0,r.jsx)(L.Z,{copyText:s})})]})})}),(0,r.jsx)(o.PPS.Item,{label:"Policy key:",className:"mb-4",children:(0,r.jsx)(o.uFc,{readOnly:!0,value:t.policy.key,"data-testid":"request-detail-value-policy"})})]}),(0,r.jsx)(eA,{subjectRequest:t})]})},eI=e=>{var t;let{data:i}=e,s=(0,p.useMemo)(()=>({id:i.id,verbose:!0}),[i.id]),{data:n}=(0,h.QA)(s,{pollingInterval:i.status===x.q2.APPROVED||i.status===x.q2.IN_PROCESSING?2e3:0,skip:!i.id}),a=null!==(t=null==n?void 0:n.items[0])&&void 0!==t?t:i,l=a.status===x.q2.REQUIRES_INPUT,[c,d]=(0,p.useState)("activity"),u=(0,p.useMemo)(()=>[{key:"activity",label:"Activity",children:(0,r.jsx)(X,{subjectRequest:a})},{key:"manual-tasks",label:"Manual tasks",children:(0,r.jsx)(ep,{subjectRequest:a,onComplete:()=>d("activity")}),disabled:!l}],[l,a]);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)(eP,{subjectRequest:a})})]})},eO=i(57526),eD=i(66548),ez=i(45489),eU=e=>{let{privacyRequest:t,action:i}=e,{handleApproveRequest:s,handleDenyRequest:n}=(0,ez.Z)({subjectRequest:t}),a=t.status===x.q2.PENDING,l=(0,o.qY0)(),r=async e=>{let{reason:t}=e,a=o.Pg3.loading({content:"approve"===i?"Approving request...":"Denying request..."});"deny"===i&&await n(t),"approve"===i&&await s(),a()};return{showAction:a,closeModal:l.onClose,performAction:r,openConfirmationModal:l.onOpen,isModalOpen:l.isOpen}},eM=e=>{var t,i,s;let{privacyRequest:n}=e,a=null===(i=(0,R.hz)())||void 0===i?void 0:null===(t=i.flags)||void 0===t?void 0:t.downloadAccessRequestResults,l=n.status===x.q2.COMPLETE,r=el(n.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,en.br)({privacy_request_id:n.id}),h=null!==(s=null==c?void 0:c.access_result_urls[0])&&void 0!==s?s:"",p=!!h&&"your local fides_uploads folder"!==h,j=null;return u?j=(0,ev.e$)(m,"Unable to resolve download URL"):p||(j="Requests stored locally cannot be downloaded"),{showDownloadResults:a&&o&&r&&l,downloadResults:()=>{let e=document.createElement("a");e.href=h,e.target="_blank",e.rel="noopener noreferrer",e.click(),e.remove()},infoTooltip:j,isLoading:d,isDisabled:!p}},eL=e=>{let{privacyRequest:t}=e,{errorAlert:i,successAlert:s}=(0,es.VY)(),n=t.status===x.q2.ERROR,[a]=(0,en.Fq)();return{reprocessPrivacyRequest:async()=>{if(!t)return;let e=o.Pg3.loading("Reprocessing privacy request...",0),n=await a(t);"error"in n?i((0,ev.e$)(n.error),"DSR automation has failed for this privacy request due to the following:",{duration:null}):s("Privacy request is now being reprocessed."),e()},showReprocess:n}},eW=e=>{let{privacyRequest:t}=e,{showDownloadResults:i,downloadResults:s,infoTooltip:n,isDisabled:a}=eM({privacyRequest:t}),{isModalOpen:l,closeModal:c,performAction:d,openConfirmationModal:u,showAction:m}=eU({privacyRequest:t,action:"approve"}),{isModalOpen:h,closeModal:g,performAction:j,openConfirmationModal:y,showAction:v}=eU({privacyRequest:t,action:"deny"}),{reprocessPrivacyRequest:f,showReprocess:_}=eL({privacyRequest:t}),{handleFinalizeRequest:b,finalizeRequestResult:T}=(0,ez.Z)({subjectRequest:t}),w=(0,p.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:y,disabled:!v}),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:a?n:null,placement:"bottom",children:(0,r.jsx)("span",{"data-testid":"download-results-btn",children:"Download request results"})}),onClick:s,disabled:a}),e},[i,s,n,a,m,v,u,y,_,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)(eO.Z,{isOpen:l,isLoading:!1,onClose:c,onApproveRequest:()=>d({reason:""}),subjectRequest:t}),(0,r.jsx)(eD.Z,{isOpen:h,onClose:g,onDenyRequest:e=>j({reason:e})})]})},eB=()=>{let e=(0,c.useRouter)().query.id,{data:t,isLoading:i}=(0,h.QA)({id:e,verbose:!0},{skip:!e}),s=(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:!!s&&(0,r.jsx)(eW,{privacyRequest:s})}),i&&(0,r.jsx)(o.M5Y,{children:(0,r.jsx)(o.$jN,{})}),!i&&!s&&(0,r.jsx)(o.xvT,{children:"404 no privacy request found"}),!i&&s&&(0,r.jsx)(eI,{data:s})]})}},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",header:"ActivityTimelineEntry_header__GYibj",title:"ActivityTimelineEntry_title__rm_g0","title--error":"ActivityTimelineEntry_title--error__fOi0s","title--awaiting-input":"ActivityTimelineEntry_title--awaiting-input__3sPAo",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,768,2888,9774,179],function(){return e(e.s=6554)}),_N_E=e.O()}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9650],{6554:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/privacy-requests/[id]",function(){return i(8063)}])},59969:function(e,t,i){"use strict";var s=i(24246),n=i(96306);i(27378);var a=i(8557);t.Z=e=>{let{daysLeft:t,includeText:i,status:l}=e;if(!t||l===a.q.COMPLETE||l===a.q.CANCELED||l===a.q.DENIED||l===a.q.IDENTITY_UNVERIFIED)return(0,s.jsx)("span",{children:"-"});let r="";switch(!0){case t>=10:r="success";break;case t<10&&t>4:r="warning";break;case t<5:r="error"}return(0,s.jsx)(n.j8w,{color:r,children:i?"".concat(t," days left"):t})}},18225:function(e,t,i){"use strict";var s=i(24246),n=i(96306);t.Z=e=>{let{alignment:t="center",...i}=e;return(0,s.jsx)(n.kCb,{boxSize:"full",align:"center",justify:t,children:(0,s.jsx)(n.$jN,{color:"primary",...i})})}},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return m}});var s=i(24246),n=i(96306),a=i(88038),l=i.n(a),r=i(86677);i(27378);var o=i(25980),c=i(90867),d=i(77830),u=()=>{let e=(0,r.useRouter)();return(0,s.jsx)(n.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,s.jsxs)(n.xuv,{children:[(0,s.jsxs)(n.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,s.jsx)(n.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,s.jsx)(n.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,s.jsxs)(n.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=e=>{let{children:t,title:i,padded:a=!0,mainProps:d}=e,m=(0,o.hz)(),h=(0,r.useRouter)(),p="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,x=!(m.flags.privacyRequestsConfiguration&&p),{data:g}=(0,c.JE)(void 0,{skip:x}),{data:j}=(0,c.PW)(void 0,{skip:x}),y=m.flags.privacyRequestsConfiguration&&(!g||!j)&&p;return(0,s.jsxs)(n.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,s.jsxs)(l(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsxs)(n.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[y?(0,s.jsx)(u,{}):null,t]})]})}},19904:function(e,t,i){"use strict";i.d(t,{Tg:function(){return l}});var s=i(24246),n=i(16134),a=i(31793);let l=e=>(0,n.C)(a.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:i}=e;return l(t)?(0,s.jsx)(s.Fragment,{children:i}):null}},57526:function(e,t,i){"use strict";var s=i(24246),n=i(96306),a=i(27378);t.Z=e=>{let{isOpen:t,onClose:i,onApproveRequest:l,isLoading:r,subjectRequest:o}=e,{identity:c,identity_verified_at:d,custom_privacy_request_fields:u}=o,m=(0,a.useCallback)(()=>{l().then(()=>{i()})},[l,i]);return(0,s.jsxs)(n.u_l,{isOpen:t,onClose:i,size:"lg",isCentered:!0,children:[(0,s.jsx)(n.ZAr,{}),(0,s.jsxs)(n.hzk,{children:[(0,s.jsx)(n.xBx,{children:"Privacy request approval"}),(0,s.jsxs)(n.fef,{paddingTop:0,paddingBottom:0,children:[(0,s.jsx)(n.xvT,{color:"gray.500",fontSize:"14px",marginBottom:4,children:"Are you sure you want to approve this privacy request?"}),(0,s.jsxs)(n.QI$,{children:[Object.entries(c).filter(e=>{let[,{value:t}]=e;return null!==t}).map(e=>{let[t,{value:i,label:a}]=e;return(0,s.jsx)(n.HCh,{children:(0,s.jsxs)(n.kCb,{alignItems:"flex-start",children:[(0,s.jsxs)(n.xvT,{mr:2,fontSize:"sm",color:"gray.900",fontWeight:"500",children:[a,":"]}),(0,s.jsx)(n.xvT,{color:"gray.600",fontWeight:"500",fontSize:"sm",mr:2,children:i}),"(",d?"Verified":"Unverified",")"]},t)},t)}),u&&Object.entries(u).filter(e=>{let[,t]=e;return t.value}).map(e=>{let[t,i]=e;return(0,s.jsx)(n.HCh,{children:(0,s.jsxs)(n.kCb,{alignItems:"flex-start",children:[(0,s.jsxs)(n.xvT,{mr:2,fontSize:"sm",color:"gray.900",fontWeight:"500",children:[i.label,":"]}),(0,s.jsxs)(n.xvT,{color:"gray.600",fontWeight:"500",fontSize:"sm",mr:2,children:[Array.isArray(i.value)?i.value.join(", "):i.value," "]}),"(Unverified)"]},t)},t)})]})]}),(0,s.jsx)(n.mzw,{children:(0,s.jsxs)(n.MIq,{columns:2,width:"100%",children:[(0,s.jsx)(n.wpx,{onClick:i,className:"mr-3","data-testid":"cancel-btn",children:"Cancel"}),(0,s.jsx)(n.wpx,{type:"primary","data-testid":"continue-btn",onClick:m,loading:r,children:"Confirm"})]})})]})]})}},66548:function(e,t,i){"use strict";var s=i(24246),n=i(40324),a=i(96306),l=i(34090),r=i(27378),o=i(55484);let c={denialReason:""};t.Z=e=>{let{isOpen:t,onClose:i,onDenyRequest:d}=e,u=(0,r.useCallback)((e,t)=>{let{setSubmitting:s}=t;d(e.denialReason).then(()=>{s(!1),i()})},[d,i]);return(0,s.jsxs)(a.u_l,{isOpen:t,onClose:i,isCentered:!0,returnFocusOnClose:!1,children:[(0,s.jsx)(a.ZAr,{}),(0,s.jsx)(a.hzk,{width:"100%",maxWidth:"456px","data-testid":"deny-privacy-request-modal",children:(0,s.jsx)(l.J9,{initialValues:c,validationSchema:o.Ry({denialReason:o.Z_().required().label("Reason for denial")}),onSubmit:u,children:e=>{let{isSubmitting:t,dirty:r,isValid:o}=e;return(0,s.jsxs)(l.l0,{children:[(0,s.jsx)(a.xBx,{children:"Privacy request denial"}),(0,s.jsx)(a.fef,{color:"gray.500",fontSize:"14px",children:"Please enter a reason for denying this privacy request. Please note: this can be seen by the user in their notification email."}),(0,s.jsx)(a.fef,{children:(0,s.jsx)(n.Ks,{name:"denialReason",textAreaProps:{focusBorderColor:"primary.600",resize:"none"}})}),(0,s.jsxs)(a.mzw,{className:"flex w-full gap-4",children:[(0,s.jsx)(a.wpx,{disabled:t,onClick:i,className:"grow",children:"Cancel"}),(0,s.jsx)(a.wpx,{htmlType:"submit",type:"primary",disabled:!r||!o,loading:t,className:"grow","data-testid":"deny-privacy-request-modal-btn",children:"Confirm"})]})]})}})})]})}},45489:function(e,t,i){"use strict";i.d(t,{Z:function(){return n}});var s=i(90867);let n=e=>{let{subjectRequest:t}=e,[i,n]=(0,s.RW)({fixedCacheKey:t.id}),[a,l]=(0,s.F1)({fixedCacheKey:t.id}),[r,o]=(0,s.rC)({fixedCacheKey:t.id}),[c,d]=(0,s.zB)({fixedCacheKey:t.id}),u=l.isLoading||n.isLoading||d.isLoading;return{approveRequest:i,approveRequestResult:n,denyRequest:a,denyRequestResult:l,handleApproveRequest:()=>i(t),handleDenyRequest:e=>a({id:t.id,reason:e}),handleDeleteRequest:()=>r(t),handleFinalizeRequest:()=>c({privacyRequestId:t.id}),softDeleteRequestResult:o,finalizeRequestResult:d,isLoading:u}}},72281:function(e,t,i){"use strict";i.d(t,{G:function(){return r},d:function(){return o}});var s=i(86677),n=i(27378),a=i(19904),l=i(54682);let r={REQUEST:"request",MANUAL_TASK:"manual-tasks"},o=()=>{let e=(0,s.useRouter)(),t=(0,a.Tg)([l.Sh.PRIVACY_REQUEST_READ]),i=(0,a.Tg)([l.Sh.MANUAL_FIELD_READ_OWN,l.Sh.MANUAL_FIELD_READ_ALL]),o=(0,n.useMemo)(()=>({request:t,manualTask:i}),[t,i]),[c,d]=(0,n.useState)(o.request?r.REQUEST:r.MANUAL_TASK),u=(0,n.useCallback)(()=>{let{tab:t}=e.query;return t&&"string"==typeof t&&Object.values(r).includes(t)?t:null},[e.query]),m=(0,n.useCallback)(t=>{e.replace({pathname:e.pathname,query:{tab:t}},void 0,{shallow:!0})},[e]);return(0,n.useEffect)(()=>{if(!e.isReady)return;let t=u();t&&(t===r.REQUEST||t===r.MANUAL_TASK&&o.manualTask)&&d(t)},[e.isReady,e.query,o,u,m]),{activeTab:c,handleTabChange:(0,n.useCallback)(e=>{Object.values(r).includes(e)&&(d(e),m(e))},[m]),availableTabs:o}}},8063:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return eF}});var s,n,a,l,r=i(24246),o=i(96306),c=i(86677),d=i(77213),u=i(77830),m=i(58754),h=i(99716),p=i(27378),x=i(54682),g=i(19904);(s=a||(a={})).IN_PROCESSING="in_processing",s.PENDING="pending",s.COMPLETE="complete",s.ERROR="error",s.PAUSED="paused",s.AWAITING_PROCESSING="awaiting_processing",s.RETRYING="retrying",s.SKIPPED="skipped";let j={in_processing:"In processing",pending:"Pending",complete:"Complete",error:"Error",paused:"Paused",awaiting_processing:"Awaiting input",retrying:"Retrying",skipped:"Skipped"},y={error:"error",skipped:"warning",awaiting_processing:"minos",in_processing:void 0,pending:void 0,complete:void 0,paused:void 0,retrying:void 0};(n=l||(l={})).REQUEST_UPDATE="Request update",n.INTERNAL_COMMENT="Internal comment",n.MANUAL_TASK="Manual task";let v={"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 C=e=>{let{item:t}=e,{author:i,title:s,date:n,type:a,onClick:c,isError:d,isAwaitingInput:u,description:m,attachments:h,showViewLog:p}=t,x=(0,b.p6)(n),g=!!c,j=h&&h.length>0,y=(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,":"]}),s&&(0,r.jsxs)(o.AntTypography.Text,{className:_()(w().title,{[w()["title--error"]]:d,[w()["title--awaiting-input"]]:u}),ellipsis:{tooltip:!0},"data-testid":"activity-timeline-title",children:[s,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:x})}),(0,r.jsx)("div",{className:"xl:hidden",children:(0,r.jsx)(o.esZ,{title:x,children:(0,r.jsx)(o.PJP.qpU,{"data-testid":"activity-timeline-timestamp-icon"})})}),(0,r.jsx)(o.j8w,{className:w().type,color:v[a],"data-testid":"activity-timeline-type",children:a}),p&&(0,r.jsx)("span",{className:w().viewLogs,"data-testid":"activity-timeline-view-logs",children:"View Log"})]}),(m||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:m||""}),j&&(0,r.jsx)(E,{attachments:h})]})]}),f={className:_()(w().itemButton,{[w()["itemButton--error"]]:d,[w()["itemButton--awaiting-input"]]:u,[w()["itemButton--clickable"]]:g,[w()["itemButton--comment"]]:a===l.INTERNAL_COMMENT,[w()["itemButton--manual-task"]]:a===l.MANUAL_TASK}),"data-testid":"activity-timeline-item"};return g?(0,r.jsx)("button",{type:"button",onClick:c,...f,children:y}):(0,r.jsx)("div",{...f,children:y})},R=i(25980),A=i(54427),q=i(78780);let{useGetCommentsQuery:k,useCreateCommentMutation:S,useGetCommentDetailsQuery:N,useLazyGetCommentDetailsQuery:P}=q.u.injectEndpoints({endpoints:e=>({getComments:e.query({query:e=>{let{privacy_request_id:t,page:i=1,size:s}=e;return{url:"plus/privacy-request/".concat(t,"/comment"),method:"GET",params:{page:i,size:s}}},providesTags:["Privacy Request Comments"]}),createComment:e.mutation({query:e=>{let{privacy_request_id:t,comment_text:i,comment_type:s}=e,n=new FormData;return n.append("comment_text",i),n.append("comment_type",s),{url:"plus/privacy-request/".concat(t,"/comment"),method:"POST",body:n,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,A.oM)({name:"privacyRequestComments",initialState:{},reducers:{}}),D=e=>{let{plus:t}=(0,R.hz)(),{data:i,isLoading:s,error:n}=k({privacy_request_id:e,size:100},{skip:!t});return(0,p.useEffect)(()=>{n&&o.Pg3.error("Failed to fetch the request comments")},[n]),{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:l.INTERNAL_COMMENT,showViewLog:!1,description:e.comment_text,isError:!1,isSkipped:!1,isAwaitingInput:!1,id:"comment-".concat(e.id)})):[],isLoading:s}},O=e=>{let t=!e;return{eventItems:e?Object.entries(e).map(e=>{let[t,i]=e,s=i.some(e=>e.status===a.ERROR),n=i.some(e=>e.status===a.SKIPPED),r=i.some(e=>e.status===a.AWAITING_PROCESSING);return{author:"Fides",title:t,date:new Date(i[0].updated_at),type:l.REQUEST_UPDATE,showViewLog:s||n||r,onClick:()=>{},isError:s,isSkipped:n,isAwaitingInput:r,id:"request-".concat(t)}}):[],isLoading:t}};var z=i(91317),U=i(45116);let M=e=>{let{plus:t}=(0,R.hz)(),{data:i,isLoading:s,error:n}=(0,U.Ym)({page:1,size:100,privacyRequestId:e,status:void 0,includeFullSubmissionDetails:!0},{skip:!t});return(0,p.useEffect)(()=>{n&&o.Pg3.error("Failed to fetch manual tasks")},[n]),{manualTaskItems:i?i.items.filter(e=>e.status===x.OS.COMPLETED||e.status===x.OS.SKIPPED).map(e=>{var t,i;let s=e.submission_user?(0,b.gJ)(e.submission_user):"Unknown User";(0,z.PN)(null===(t=e.submission_user)||void 0===t?void 0:t.id)&&(s=(null===(i=e.submission_user)||void 0===i?void 0:i.id)||"Unknown User");let n=e.status===x.OS.SKIPPED,a="Task ".concat(n?"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:s,title:a,date:new Date(e.updated_at),type:l.MANUAL_TASK,showViewLog:!1,description:r,isError:!1,isSkipped:n,isAwaitingInput:!1,id:"manual-task-".concat(e.manual_field_id),attachments:o}}):[],taskCommentIds:(0,p.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:s}};var L=i(88340),W=e=>{let{errorMessage:t,status:i=a.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:y[i],children:j[i]}),(0,r.jsx)(o.xuv,{padding:"0px",marginBottom:"3px",children:(0,r.jsx)(L.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})})]})},B=i(3124),F=i.n(B);let Z=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}},K=e=>{if(e.status!==a.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():"-"},J=(e,t)=>{let i=e.filter(e=>e.action_type===t&&e.status===a.COMPLETE&&e.collection_name).sort((e,t)=>new Date(t.updated_at).getTime()-new Date(e.updated_at).getTime()),s={};i.forEach(e=>{let t=e.collection_name||"unknown";s[t]||(s[t]=e)});let n=0,l=!1,r=/(?:retrieved|masked|processed)\s+(\d+)\s+records?$/i;return Object.values(s).forEach(e=>{if(e.message){let t=e.message.match(r);if(t){l=!0;let e=parseInt(t[1],10);n+=e}}}),l?n:null},G=(e,t,i)=>{if("finished"===e.status&&!e.collection_name&&i){let e=J(t,i);return null!==e?e.toLocaleString():"-"}return K(e)};var H=e=>{var t,i,s;let{eventLogs:n,allEventLogs:l,onDetailPanel:c,privacyRequest:d}=e,u=(null==n?void 0:n.some(e=>e.collection_name))||(null==n?void 0:n.some(e=>"finished"===e.status&&!e.collection_name))||!1,m=null==n?void 0:n.every(e=>"finished"===e.status&&!e.collection_name),h=null==d?void 0:null===(s=d.policy)||void 0===s?void 0:null===(i=s.rules)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.action_type,p=e=>e?Z(e):h?Z(h):"-",x=null==n?void 0:n.map(e=>(0,r.jsxs)(o.Tr,{backgroundColor:e.status===a.ERROR||e.status===a.SKIPPED&&e.message||e.status===a.AWAITING_PROCESSING?F().FIDESUI_NEUTRAL_50:"unset",onClick:()=>{(e.status===a.ERROR||e.status===a.SKIPPED&&e.message||e.status===a.AWAITING_PROCESSING)&&c(e.message,e.status)},style:{cursor:e.message?"pointer":"unset"},_hover:{backgroundColor:F().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:p(e.action_type)})}),u&&!m&&(0,r.jsx)(o.Td,{children:j[e.status]?(0,r.jsx)(o.j8w,{color:y[e.status],children:j[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:G(e,l||n,h)})}),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"})}),u&&!m&&(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})]})})})},Y=e=>{let{isOpen:t,onClose:i,currentLogs:s,allEventLogs:n,isViewingError:l,errorMessage:c,currentStatus:d=a.ERROR,onCloseErrorPanel:u,onOpenErrorPanel:m,privacyRequest:h}=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:[l&&(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:l?"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:[s&&!l?(0,r.jsx)(H,{eventLogs:s,allEventLogs:n,onDetailPanel:m,privacyRequest:h}):null,l?(0,r.jsx)(W,{errorMessage:c,status:d}):null]})]})]})},V=e=>{let{subjectRequest:t}=e,{isOpen:i,onOpen:s,onClose:n}=(0,o.qY0)(),[c,d]=(0,p.useState)([]),[u,m]=(0,p.useState)(""),[h,x]=(0,p.useState)(!1),[g,j]=(0,p.useState)(""),[y,v]=(0,p.useState)(a.ERROR),{results:f,id:_}=t,{commentItems:b,isLoading:T}=D(_),{eventItems:E,isLoading:R}=O(f),{manualTaskItems:A,taskCommentIds:q,isLoading:k}=M(_);(0,p.useEffect)(()=>{u&&f&&f[u]&&d(f[u])},[f,u]);let S=()=>{x(!1)},N=(0,p.useCallback)((e,t)=>{m(e),d(t),s()},[s]),P=(0,p.useMemo)(()=>f?Object.values(f).flat():[],[f]),I=(0,p.useMemo)(()=>b.filter(e=>{let t=e.id.replace("comment-","");return!q.has(t)}),[b,q]),z=(0,p.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:l.REQUEST_UPDATE,showViewLog:!1,isError:!1,isSkipped:!1,isAwaitingInput:!1,id:"initial-request"},...e,...I,...A].sort((e,t)=>new Date(e.date).getTime()-new Date(t.date).getTime())},[E,I,A,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||k?(0,r.jsx)("div",{className:w().itemButton,"data-testid":"timeline-skeleton",children:(0,r.jsx)(o.N_L,{paragraph:{rows:2},active:!0})}):z.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(C,{item:e})},e.id))})}),(0,r.jsx)(Y,{isOpen:i,onClose:()=>{h&&S(),m(""),n()},currentLogs:c,allEventLogs:P,isViewingError:h,errorMessage:g,currentStatus:y,onOpenErrorPanel:(e,t)=>{j(e),t&&v(t),x(!0)},onCloseErrorPanel:S,privacyRequest:t})]})},Q=i(66187);let $=e=>{let{privacyRequestId:t,onCancel:i}=e,[s,n]=(0,p.useState)(""),a=(0,p.useRef)(null),[l,{isLoading:c}]=S();(0,p.useEffect)(()=>{a.current&&a.current.focus()},[]);let d=async()=>{if(s.trim())try{await l({privacy_request_id:t,comment_text:s,comment_type:Q.i.NOTE}).unwrap(),n(""),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.uFc.TextArea,{ref:a,value:s,onChange:e=>n(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:!s.trim(),type:"primary",htmlType:"button","data-testid":"submit-comment-button",children:"Save"})]})]})};var X=e=>{let{subjectRequest:t}=e,[i,s]=(0,p.useState)(!1);return(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)(V,{subjectRequest:t}),i?(0,r.jsx)($,{privacyRequestId:t.id,onCancel:()=>s(!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:()=>s(!0),className:"flex items-center","data-testid":"add-comment-button",children:["Add comment ",(0,r.jsx)("span",{className:"ml-1",children:"+"})]})})})]})},ee=i(14207),et=i(46238),ei=i(72281),es=i(75573),en=i(90867),ea=i(16134);let el=e=>Array.from(new Set(e.filter(e=>Object.values(x.Us).includes(e.action_type)).map(e=>e.action_type)));var er=e=>{let{rules:t}=e,i=el(t).map(e=>(0,b.kC)(e)).map(e=>e);return(0,r.jsx)(o.AntTypography.Text,{children:i.join(" - ")})},eo=i(34090),ec=i(55484),ed=e=>{let{connectorName:t,data:i,isSubmitting:s=!1,onSaveClick:n}=e,{isOpen:a,onOpen:l,onClose:c}=(0,o.qY0)(),d=(0,p.useRef)(null),u=async(e,t)=>{n({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:l,size:"small",children:"Review"}),!(null==i?void 0:i.checked)&&(0,r.jsx)(o.wpx,{onClick:l,size:"small",type:"primary",children:"Begin manual input"}),(0,r.jsx)(eo.J9,{enableReinitialize:!0,initialValues:{...i.fields},onSubmit:u,validateOnBlur:!1,validateOnChange:!1,validationSchema:ec.Ry().shape({}),children:e=>(0,r.jsxs)(o.dys,{isOpen:a,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)(eo.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)(eo.gN,{id:i,name:i,children:e=>{let{field:s}=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,{...s,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:s,htmlType:"submit",children:"Save"})]})})]})]})})]})},eu=e=>{let{connectorName:t,data:i,isSubmitting:s=!1,onSaveClick:n}=e,{isOpen:a,onOpen:l,onClose:c}=(0,o.qY0)(),d=(0,p.useRef)(null),u=async(e,t)=>{n({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:l,size:"small",children:"Review"}),!(null==i?void 0:i.checked)&&(0,r.jsx)(o.wpx,{onClick:l,size:"small",type:"primary",children:"Begin manual input"}),(0,r.jsx)(eo.J9,{enableReinitialize:!0,initialValues:{...i.fields},onSubmit:u,validateOnBlur:!1,validateOnChange:!1,validationSchema:ec.Ry().shape({}),children:e=>(0,r.jsxs)(o.dys,{isOpen:a,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)(eo.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)(eo.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:s,htmlType:"submit",children:"Save"})]})})]})]})})]})};let em=(e,t,i)=>e.includes(x.Us.ACCESS)?{ProcessingDetailComponent:ed,uploadMutation:t,getUploadedWebhookDataEndpoint:en.$I.endpoints.getUploadedManualAccessWebhookData}:e.includes(x.Us.ERASURE)?{ProcessingDetailComponent:eu,uploadMutation:i,getUploadedWebhookDataEndpoint:en.$I.endpoints.getUploadedManualErasureWebhookData}:null;var eh=e=>{let{subjectRequest:t,onComplete:i}=e,s=(0,ea.T)(),{errorAlert:n,successAlert:a}=(0,es.VY)(),{handleError:l}=(0,es.HK)(),[c,d]=(0,p.useState)([]),[u,m]=(0,p.useState)(!1),[h,g]=(0,p.useState)(!1),{data:j,isFetching:y,isLoading:v,isSuccess:f}=(0,ee.W6)(),[_]=(0,en.w3)(),b=el(t.policy.rules),[T]=(0,en.nL)(),[w]=(0,en.UR)(),{ProcessingDetailComponent:E,uploadMutation:C,getUploadedWebhookDataEndpoint:R}=em(b,T,w),A=async()=>{try{m(!0),await _(t.id).unwrap(),a("Manual request has been received. Request now processing."),i()}catch(e){l(e)}finally{m(!1)}},q=async e=>{try{g(!0),await C(e).unwrap();let t={connection_key:e.connection_key,fields:{}};Object.entries(e.body).forEach(e=>{let[i,s]=e;t.fields[i]=s||""});let i=c.map(e=>e.connection_key===t.connection_key?{...e,checked:!0,fields:{...t.fields}}:e);d(i),a("Manual input successfully saved!")}catch(e){l(e)}finally{g(!1)}};return((0,p.useEffect)(()=>(f&&j.length>0&&0===c.length&&(()=>{if(c.length>0)return;let e=[],i=null==j?void 0:j.map(e=>e.connection_config.key);null==i||i.every(i=>e.push(s(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,s]=e;i.fields[t]=s||""}),t.push(i)}else n("An error occurred while loading manual input data for ".concat(j[i].connection_config.name))}),d(t)})})(),()=>{}),[j,c.length,s,n,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:[(y||v)&&(0,r.jsx)(o.M5Y,{children:(0,r.jsx)(o.$jN,{})}),f&&j?(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:[j.length>0&&j.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:h,onSaveClick:q}):null})]},e.id)),0===j.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:A,className:"mt-2",children:"Complete DSR"})})})}):null]})}):null]})]}):null},ep=e=>{let{subjectRequest:t,onComplete:i}=e,s=(0,c.useRouter)(),{data:n}=(0,ee.AZ)({}),a=(0,p.useMemo)(()=>{var e;return(null==n?void 0:null===(e=n.items)||void 0===e?void 0:e.filter(e=>e.connection_type===x.Rj.MANUAL_TASK))||[]},[n]),{data:l}=(0,ee.W6)(),d=(l||[]).length>0,{data:m}=(0,U.Ym)({page:1,size:100,privacyRequestId:t.id}),h=(null==m?void 0:m.items)||[],g=h.length,j=h.filter(e=>e.status===x.OS.NEW).length,y=a.length>0;return y||d?(0,r.jsxs)(o.Kqy,{spacing:6,children:[y&&(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:j})," pending task",1!==j?"s":""]}),g>0&&(0,r.jsx)("div",{className:"mt-2",children:(0,r.jsx)(o.wpx,{type:"primary",onClick:()=>{s.push({pathname:u.Jw,query:{privacy_request_id:t.id,tab:ei.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)(et.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)(eh,{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."})})},ex=i(59969);let eg={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 ej=e=>{let{status:t}=e;return(0,r.jsx)(o.j8w,{color:eg[t].color,className:"justify-center","data-testid":"request-status-badge",children:eg[t].label})},ey=i(18225),ev=i(812),ef=i(7842);let{useGetAttachmentsQuery:e_,useUploadAttachmentMutation:eb,useGetAttachmentDetailsQuery:eT,useLazyGetAttachmentDetailsQuery:ew}=q.u.injectEndpoints({endpoints:e=>({getAttachments:e.query({query:e=>{let{privacy_request_id:t,page:i=1,size:s}=e;return{url:"plus/privacy-request/".concat(t,"/attachment"),method:"GET",params:{page:i,size:s}}},providesTags:["Privacy Request Attachments"]}),uploadAttachment:e.mutation({query:e=>{let{privacy_request_id:t,attachment_type:i,attachment_file:s}=e,n=new FormData;return n.append("attachment_type",i),n.append("attachment_file",s),{url:"plus/privacy-request/".concat(t,"/attachment"),method:"POST",body:n,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:eE}=(0,A.oM)({name:"privacyRequestAttachments",initialState:{},reducers:{}}),eC=e=>{var t;let{file:i}=e,[s,n]=(0,p.useState)(!1),[a]=ew(),l=async()=>{var e,t,s;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)){n(!0);try{let e=await a({privacy_request_id:i.customData.privacy_request_id,attachment_id:i.customData.attachment_id}),t=null===(s=e.data)||void 0===s?void 0:s.retrieved_attachment_url,n=null==t?void 0:t.startsWith("http");t&&n?window.open(t,"_blank"):t&&!n?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{n(!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",icon:(0,r.jsx)(o.PJP.UWx,{}),onClick:l,loading:s,className:"shrink-0"})]})},eR=(e,t)=>(0,r.jsx)(eC,{file:t});var eA=e=>{let{subjectRequest:t}=e,[i,s]=(0,p.useState)(!1),n=(0,g.Tg)([x.Sh.ATTACHMENT_READ]),a=(0,g.Tg)([x.Sh.ATTACHMENT_CREATE]),[l]=eb(),{data:c,isLoading:d,error:u}=(0,en.PW)(),{data:m,isLoading:h}=e_({privacy_request_id:t.id}),{refetch:j}=e_({privacy_request_id:t.id}),y=(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}})))||[],v=(0,p.useCallback)(()=>(0,r.jsx)(o.PJP.PgN,{}),[]);if(!n)return null;let f=a&&(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||h?(0,r.jsx)(ey.Z,{size:"md",alignment:"start"}):(0,r.jsx)(o.pMK,{name:"attachment_file",fileList:y,iconRender:v,showUploadList:{showRemoveIcon:!1,showDownloadIcon:!1},itemRender:eR,accept:_.join(","),customRequest:async e=>{let{file:i,onSuccess:n,onError:a}=e,r=i.name;try{s(!0),await l({privacy_request_id:t.id,attachment_file:i,attachment_type:ef.s.INTERNAL_USE_ONLY}).unwrap(),o.Pg3.success("".concat(r," file uploaded successfully")),j(),null==n||n(i)}catch(e){o.Pg3.error("".concat(r," file upload failed.")),null==a||a(e)}finally{s(!1)}},disabled:!f,children:a&&(0,r.jsx)(o.esZ,{title:u&&"Add attachment not available: ".concat((0,ev.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)(et.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"})]})})})]})})},eq=i(15709),ek=i.n(eq),eS=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(ek().label),children:(0,r.jsxs)(o.AntTypography.Text,{children:[t,":"]})}),(0,r.jsx)("div",{className:"min-w-0 shrink grow ".concat(ek().value),"data-testid":"request-detail-value-".concat(t),children:i})]})},eN=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)(eS,{label:i.label,children:(0,r.jsx)(o.AntTypography.Text,{children:Array.isArray(i.value)?i.value.join(", "):i.value})},t)})})},eP=e=>{let{subjectRequest:t}=e,{plus:i}=(0,R.hz)(),{id:s,status:n,policy:a,identity:l,identity_verified_at:c}=t;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)(eS,{label:"Status",children:(0,r.jsx)(ej,{status:n})}),(0,r.jsx)(eS,{label:"Time remaining",children:(0,r.jsx)(ex.Z,{daysLeft:t.days_left,includeText:!0,status:t.status})}),(0,r.jsx)(eS,{label:"Request type",children:(0,r.jsx)(er,{rules:a.rules})}),(0,r.jsx)(eS,{label:"Source",children:i&&(0,r.jsx)(o.AntTypography.Text,{children:t.source||"-"})}),Object.entries(l).filter(e=>{let[,{value:t}]=e;return null!==t}).map(e=>{let[t,{value:i="",label:s}]=e,n="".concat(i).concat(c?"":" (Unverified)");return(0,r.jsx)(eS,{label:"Subject ".concat(s.toLocaleLowerCase()),children:(0,r.jsx)(o.esZ,{title:n,trigger:"click",children:(0,r.jsx)(o.AntTypography.Text,{ellipsis:!0,children:n})})},t)}),(0,r.jsx)(eN,{subjectRequest:t})]}),(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.uFc,{readOnly:!0,value:s,"data-testid":"request-detail-value-id"}),(0,r.jsx)(o.wpx,{icon:(0,r.jsx)(L.Z,{copyText:s})})]})})}),(0,r.jsx)(o.PPS.Item,{label:"Policy key:",className:"mb-4",children:(0,r.jsx)(o.uFc,{readOnly:!0,value:t.policy.key,"data-testid":"request-detail-value-policy"})})]}),(0,r.jsx)(eA,{subjectRequest:t})]})};let eI=[x.q2.COMPLETE,x.q2.CANCELED,x.q2.DENIED,x.q2.ERROR];var eD=e=>{var t;let{data:i}=e,s=(0,p.useMemo)(()=>({id:i.id,verbose:!0}),[i.id]),{data:n}=(0,h.QA)(s,{pollingInterval:eI.includes(i.status)?0:2e3,skip:!i.id}),a=null!==(t=null==n?void 0:n.items[0])&&void 0!==t?t:i,l=a.status===x.q2.REQUIRES_INPUT,[c,d]=(0,p.useState)("activity"),u=(0,p.useMemo)(()=>[{key:"activity",label:"Activity",children:(0,r.jsx)(X,{subjectRequest:a})},{key:"manual-tasks",label:"Manual tasks",children:(0,r.jsx)(ep,{subjectRequest:a,onComplete:()=>d("activity")}),disabled:!l}],[l,a]);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)(eP,{subjectRequest:a})})]})},eO=i(57526),ez=i(66548),eU=i(45489),eM=e=>{let{privacyRequest:t,action:i}=e,{handleApproveRequest:s,handleDenyRequest:n}=(0,eU.Z)({subjectRequest:t}),a=t.status===x.q2.PENDING,l=(0,o.qY0)(),r=async e=>{let{reason:t}=e,a=o.Pg3.loading({content:"approve"===i?"Approving request...":"Denying request..."});"deny"===i&&await n(t),"approve"===i&&await s(),a()};return{showAction:a,closeModal:l.onClose,performAction:r,openConfirmationModal:l.onOpen,isModalOpen:l.isOpen}},eL=e=>{var t,i,s;let{privacyRequest:n}=e,a=null===(i=(0,R.hz)())||void 0===i?void 0:null===(t=i.flags)||void 0===t?void 0:t.downloadAccessRequestResults,l=n.status===x.q2.COMPLETE,r=el(n.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,en.br)({privacy_request_id:n.id}),h=null!==(s=null==c?void 0:c.access_result_urls[0])&&void 0!==s?s:"",p=!!h&&"your local fides_uploads folder"!==h,j=null;return u?j=(0,ev.e$)(m,"Unable to resolve download URL"):p||(j="Requests stored locally cannot be downloaded"),{showDownloadResults:a&&o&&r&&l,downloadResults:()=>{let e=document.createElement("a");e.href=h,e.target="_blank",e.rel="noopener noreferrer",e.click(),e.remove()},infoTooltip:j,isLoading:d,isDisabled:!p}},eW=e=>{let{privacyRequest:t}=e,{errorAlert:i,successAlert:s}=(0,es.VY)(),n=t.status===x.q2.ERROR,[a]=(0,en.Fq)();return{reprocessPrivacyRequest:async()=>{if(!t)return;let e=o.Pg3.loading("Reprocessing privacy request...",0),n=await a(t);"error"in n?i((0,ev.e$)(n.error),"DSR automation has failed for this privacy request due to the following:",{duration:null}):s("Privacy request is now being reprocessed."),e()},showReprocess:n}},eB=e=>{let{privacyRequest:t}=e,{showDownloadResults:i,downloadResults:s,infoTooltip:n,isDisabled:a}=eL({privacyRequest:t}),{isModalOpen:l,closeModal:c,performAction:d,openConfirmationModal:u,showAction:m}=eM({privacyRequest:t,action:"approve"}),{isModalOpen:h,closeModal:g,performAction:j,openConfirmationModal:y,showAction:v}=eM({privacyRequest:t,action:"deny"}),{reprocessPrivacyRequest:f,showReprocess:_}=eW({privacyRequest:t}),{handleFinalizeRequest:b,finalizeRequestResult:T}=(0,eU.Z)({subjectRequest:t}),w=(0,p.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:y,disabled:!v}),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:a?n:null,placement:"bottom",children:(0,r.jsx)("span",{"data-testid":"download-results-btn",children:"Download request results"})}),onClick:s,disabled:a}),e},[i,s,n,a,m,v,u,y,_,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)(eO.Z,{isOpen:l,isLoading:!1,onClose:c,onApproveRequest:()=>d({reason:""}),subjectRequest:t}),(0,r.jsx)(ez.Z,{isOpen:h,onClose:g,onDenyRequest:e=>j({reason:e})})]})},eF=()=>{let e=(0,c.useRouter)().query.id,{data:t,isLoading:i}=(0,h.QA)({id:e,verbose:!0},{skip:!e}),s=(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:!!s&&(0,r.jsx)(eB,{privacyRequest:s})}),i&&(0,r.jsx)(o.M5Y,{children:(0,r.jsx)(o.$jN,{})}),!i&&!s&&(0,r.jsx)(o.xvT,{children:"404 no privacy request found"}),!i&&s&&(0,r.jsx)(eD,{data:s})]})}},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",header:"ActivityTimelineEntry_header__GYibj",title:"ActivityTimelineEntry_title__rm_g0","title--error":"ActivityTimelineEntry_title--error__fOi0s","title--awaiting-input":"ActivityTimelineEntry_title--awaiting-input__3sPAo",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,768,2888,9774,179],function(){return e(e.s=6554)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2828],{85082:function(e,i,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/organization",function(){return t(5417)}])},77213:function(e,i,t){"use strict";t.d(i,{Z:function(){return p}});var r=t(24246),n=t(96306),a=t(88038),o=t.n(a),s=t(86677);t(27378);var l=t(25980),d=t(90867),c=t(77830),u=()=>{let e=(0,s.useRouter)();return(0,r.jsx)(n.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,r.jsxs)(n.xuv,{children:[(0,r.jsxs)(n.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,r.jsx)(n.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,r.jsx)(n.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,r.jsxs)(n.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:i,title:t,padded:a=!0,mainProps:c}=e,p=(0,l.hz)(),x=(0,s.useRouter)(),m="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,h=!(p.flags.privacyRequestsConfiguration&&m),{data:v}=(0,d.JE)(void 0,{skip:h}),{data:j}=(0,d.PW)(void 0,{skip:h}),g=p.flags.privacyRequestsConfiguration&&(!v||!j)&&m;return(0,r.jsxs)(n.kCb,{"data-testid":t,direction:"column",h:"100vh",children:[(0,r.jsxs)(o(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",t]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsxs)(n.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[g?(0,r.jsx)(u,{}):null,i]})]})}},58754:function(e,i,t){"use strict";var r=t(24246),n=t(96306),a=t(70788);i.Z=e=>{let{heading:i,breadcrumbItems:t,isSticky:o=!0,children:s,rightContent:l,style:d,...c}=e;return(0,r.jsxs)("div",{...c,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,r.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof i?(0,r.jsx)(n.lQT,{className:t||s?"pb-4":void 0,level:1,"data-testid":"page-heading",children:i}):i,l&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!t&&(0,r.jsx)(a.m,{className:s?"pb-4":void 0,items:t,"data-testid":"page-breadcrumb"}),s]})}},19904:function(e,i,t){"use strict";t.d(i,{Tg:function(){return o}});var r=t(24246),n=t(16134),a=t(31793);let o=e=>(0,n.C)(a.uu).filter(i=>e.includes(i)).length>0;i.ZP=e=>{let{scopes:i,children:t}=e;return o(i)?(0,r.jsx)(r.Fragment,{children:t}):null}},97181:function(e,i,t){"use strict";t.d(i,{d:function(){return d}});var r=t(24246),n=t(96306),a=t(34090),o=t(27378),s=t(46238),l=t(40324);let d=e=>{let{name:i,label:t,labelProps:d,tooltip:c,isRequired:u,layout:p="inline",helperText:x,...m}=e,[h,v,{setValue:j}]=(0,a.U$)(i),g=!!(v.touched&&v.error),[f,b]=(0,o.useState)("");h.value||"tags"!==m.mode&&"multiple"!==m.mode||(h.value=[]),"tags"===m.mode&&"string"==typeof h.value&&(h.value=[h.value]);let y="tags"===m.mode?(e,i)=>e?e.value!==f||h.value.includes(f)?m.optionRender?m.optionRender(e,i):e.label:'Create "'.concat(f,'"'):void 0:m.optionRender||void 0,k=e=>{b(e),m.onSearch&&m.onSearch(e)},C=(e,i)=>{j(e),m.onChange&&m.onChange(e,i)};return"inline"===p?(0,r.jsx)(n.NIc,{isInvalid:g,isRequired:u,children:(0,r.jsxs)(n.rjZ,{templateColumns:t?"1fr 3fr":"1fr",children:[t?(0,r.jsx)(l.__,{htmlFor:m.id||i,...d,children:t}):null,(0,r.jsxs)(n.jqI,{align:"center",children:[(0,r.jsxs)(n.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,r.jsx)(n.WPr,{...h,id:m.id||i,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:y,onSearch:"tags"===m.mode?k:void 0,onChange:C,value:h.value||void 0,status:g?"error":void 0}),x&&(0,r.jsx)(n.Q6r,{children:x}),(0,r.jsx)(l.Bc,{isInvalid:g,message:v.error,fieldName:h.name})]}),(0,r.jsx)(s.b,{label:c,className:g?"mt-2 self-start":void 0})]})]})}):(0,r.jsx)(n.NIc,{isInvalid:g,isRequired:u,children:(0,r.jsxs)(n.gCW,{alignItems:"start",children:[(0,r.jsxs)(n.jqI,{align:"center",children:[t?(0,r.jsx)(l.__,{htmlFor:m.id||i,fontSize:"xs",my:0,mr:1,...d,children:t}):null,(0,r.jsx)(s.b,{label:c})]}),(0,r.jsx)(n.WPr,{...h,id:m.id||i,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:y,onSearch:"tags"===m.mode?k:void 0,onChange:C,value:h.value||void 0,status:g?"error":void 0}),x&&(0,r.jsx)(n.Q6r,{style:{marginTop:0},children:x}),(0,r.jsx)(l.Bc,{isInvalid:g,message:v.error,fieldName:h.name})]})})}},8133:function(e,i,t){"use strict";var r=t(24246),n=t(96306);i.Z=e=>{let{title:i,children:t,isOpen:a,onClose:o,modalContentProps:s,showCloseButton:l=!1,footer:d,...c}=e;return(0,r.jsxs)(n.u_l,{isOpen:a,onClose:o,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...c,children:[(0,r.jsx)(n.ZAr,{}),(0,r.jsxs)(n.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...s,children:[l&&(0,r.jsx)(n.olH,{}),(0,r.jsx)(n.xBx,{p:0,children:(0,r.jsx)(n.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,r.jsx)(n.X6q,{as:"h3",size:"sm",children:i})})}),(0,r.jsx)(n.fef,{pb:4,overflow:"auto",children:t}),d&&(0,r.jsx)(n.mzw,{children:d})]})]})}},70788:function(e,i,t){"use strict";t.d(i,{m:function(){return d}});var r=t(24246),n=t(96306),a=t(79894),o=t.n(a),s=t(27378);let{Text:l}=n.AntTypography,d=e=>{let{items:i,...t}=e,a=(0,s.useMemo)(()=>null==i?void 0:i.map((e,t)=>{let a=t===i.length-1,s={...e},d=s.onClick&&!s.href;return("string"==typeof s.title&&(s.title=(0,r.jsx)(l,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,id:a?"breadcrumb-current-page":void 0,children:s.title})),d)?s.title=(0,r.jsx)(n.wpx,{type:"text",size:"small",icon:s.icon,onClick:s.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:s.title}):(s.icon&&(s.title=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:s.icon}),s.title]})),s.href&&s.title&&(s.title=(0,r.jsx)(o(),{href:s.href,className:"ant-breadcrumb-link",children:s.title}),delete s.href)),s}),[i]);return(0,r.jsx)(n.zrq,{items:a,...t})}},5417:function(e,i,t){"use strict";t.r(i),t.d(i,{default:function(){return N}});var r=t(24246),n=t(19904),a=t(96306),o=t(25980),s=t(77213),l=t(58754),d=t(8133),c=t(34090),u=t(27378),p=t(55484),x=t(40324),m=t(812),h=t(46628),v=t(76174),j=t(97181);let g={identifier:"",name:"",client_id:"",client_secret:""},f=e=>({...e}),b=p.Ry().shape({provider:p.Z_().required().label("Provider"),name:p.Z_().required().label("Name"),client_id:p.Z_().required().label("Client ID"),client_secret:p.Z_().required().label("Client Secret")});var y=e=>{let{openIDProvider:i,onSuccess:t,onClose:n}=e,[o]=(0,v.Qc)(),[s]=(0,v.oP)(),l=(0,u.useMemo)(()=>i?f(i):g,[i]),d=(0,a.pmc)(),p=async(e,i)=>{(e=>{if((0,m.D4)(e)){let i=(0,m.e$)(e.error,"An unexpected error occurred while editing the SSO provider. Please try again.");d((0,h.Vo)(i))}else d((0,h.t5)("SSO provider configuration saved.")),n(),i.resetForm({}),t&&t(e.data)})(l.id?await s(e):await o(e))},y=[{label:"Azure",value:"azure"},{label:"Google",value:"google"},{label:"Okta",value:"okta"},{label:"Custom",value:"custom"}],k=()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.j0,{id:"authorization_url",name:"authorization_url",label:"Authorization URL",tooltip:"Authorization URL for your provider",variant:"stacked",isRequired:!0}),(0,r.jsx)(x.j0,{id:"token_url",name:"token_url",label:"Token URL",tooltip:"Token URL for your provider",variant:"stacked",isRequired:!0})]}),C=()=>(0,r.jsx)(x.j0,{id:"domain",name:"domain",label:"Domain",tooltip:"Domain for your Okta provider",variant:"stacked",isRequired:!0}),_=()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.j0,{id:"authorization_url",name:"authorization_url",label:"Authorization URL",tooltip:"Authorization URL for your provider",variant:"stacked",isRequired:!0}),(0,r.jsx)(x.j0,{id:"token_url",name:"token_url",label:"Token URL",tooltip:"Token URL for your provider",variant:"stacked",isRequired:!0}),(0,r.jsx)(x.j0,{id:"userinfo_url",name:"user_info_url",label:"User Info URL",tooltip:"User Info URL for your provider",variant:"stacked",isRequired:!0})]});return(0,r.jsx)(c.J9,{initialValues:l,enableReinitialize:!0,onSubmit:p,validationSchema:b,children:e=>{let{dirty:i,isValid:t,values:o}=e;return(0,r.jsx)(c.l0,{"data-testid":"openIDProvider-form",children:(0,r.jsxs)(a.Kqy,{spacing:4,children:[(0,r.jsx)(j.d,{name:"provider",label:"Provider",options:y,layout:"stacked",isRequired:!0}),(0,r.jsx)(x.j0,{id:"identifier",name:"identifier",label:"Identifier",tooltip:"Unique identifier for your provider",variant:"stacked",isRequired:!0,disabled:!!l.id}),(0,r.jsx)(x.j0,{id:"name",name:"name",label:"Name",tooltip:"Display name for your provider",variant:"stacked",isRequired:!0}),(0,r.jsx)(x.j0,{id:"client_id",name:"client_id",label:"Client ID",type:"password",tooltip:"Client ID for your provider",variant:"stacked",isRequired:!0}),(0,r.jsx)(x.j0,{id:"client_secret",name:"client_secret",label:"Client secret",type:"password",tooltip:"Client secret for your provider",variant:"stacked",isRequired:!0}),"azure"===o.provider&&k(),"okta"===o.provider&&C(),"custom"===o.provider&&_(),(0,r.jsxs)(a.xuv,{textAlign:"right",children:[(0,r.jsx)(a.wpx,{htmlType:"button","data-testid":"cancel-btn",className:"mr-3",onClick:n,children:"Cancel"}),(0,r.jsx)(a.wpx,{htmlType:"submit",type:"primary",disabled:!i||!t,"data-testid":"save-btn",children:"Save"})]})]})})}})},k=e=>{let{isOpen:i,onClose:t}=e;return(0,r.jsx)(d.Z,{isOpen:i,onClose:t,title:"Add SSO Provider",children:(0,r.jsx)(y,{onClose:t})})},C=e=>{let{isOpen:i,onClose:t,openIDProvider:n}=e;return(0,r.jsx)(d.Z,{isOpen:i,onClose:t,title:"Edit SSO Provider",children:(0,r.jsx)(y,{openIDProvider:n,onClose:t})})},_=e=>{let{openIDProvider:i}=e,{onOpen:t,isOpen:n,onClose:o}=(0,a.qY0)(),{onOpen:s,isOpen:l,onClose:d}=(0,a.qY0)(),c=(0,a.pmc)(),[u]=(0,v.rB)(),p=async()=>{let e=await u(i.identifier);if((0,m.D4)(e)){c((0,h.Vo)((0,m.e$)(e.error))),d();return}c((0,h.t5)("SSO provider deleted successfully")),d()};return(0,r.jsxs)(a.xuv,{alignItems:"center",borderRadius:"lg",borderWidth:"1px",display:"flex",height:"74px",marginBottom:"24px",padding:2,children:[(0,r.jsxs)(a.xuv,{display:"flex",alignItems:"center",children:[(0,r.jsx)(a.Eep,{src:"/images/oauth-login/".concat(i.provider,".svg"),alt:"".concat(i.provider," icon"),width:"40px",height:"40px"}),(0,r.jsxs)(a.xuv,{display:"flex",flexDirection:"column",children:[(0,r.jsx)(a.xvT,{fontSize:"medium",fontWeight:"bold",marginLeft:"16px",children:i.name}),(0,r.jsx)(a.xvT,{fontSize:"medium",marginLeft:"16px",children:i.identifier})]})]}),(0,r.jsxs)(a.xuv,{flexGrow:1,display:"flex",justifyContent:"flex-end",children:[(0,r.jsx)(a.wpx,{className:"mr-3",onClick:s,"data-testid":"remove-sso-provider-btn",children:"Remove"}),(0,r.jsx)(a.wpx,{className:"mr-3",onClick:t,"data-testid":"edit-sso-provider-btn",children:"Edit"})]}),(0,r.jsx)(C,{isOpen:n,onClose:o,openIDProvider:i}),(0,r.jsx)(a.cVQ,{isOpen:l,onClose:d,onConfirm:p,title:"Remove SSO provider",message:(0,r.jsx)(a.xvT,{children:"You are about to permanently remove this SSO provider. Are you sure you would like to continue?"})})]})},R=()=>{let{onOpen:e,isOpen:i,onClose:t}=(0,a.qY0)(),{data:n}=(0,v.qv)();return(0,r.jsxs)(a.xuv,{maxWidth:"600px",marginTop:"40px",children:[(0,r.jsxs)(a.X6q,{marginBottom:4,fontSize:"lg",display:"flex",justifyContent:"space-between",children:["SSO Providers",n&&n.length<5&&(0,r.jsx)(a.wpx,{onClick:e,"data-testid":"add-sso-provider-btn",children:"Add SSO Provider"})]}),(0,r.jsx)(a.xvT,{marginBottom:"30px",fontSize:"sm",children:"Use this area to add and manage SSO providers for you organization. Select “Add SSO provider” to add a new provider."}),null==n?void 0:n.map(e=>(0,r.jsx)(_,{openIDProvider:e},e.identifier)),(0,r.jsx)(k,{isOpen:i,onClose:t})]})},z=t(83265);let S={description:"",fides_key:z.Av,name:""},q=e=>({...e}),w=e=>({description:e.description,fides_key:e.fides_key,name:e.name}),O=p.Ry().shape({description:p.Z_().required().label("Description"),fides_key:p.Z_().required().label("Organization Fides Key"),name:p.Z_().required().label("Name")}),I=e=>{let{organization:i,onSuccess:t}=e,[n,o]=(0,z.$f)(),s=(0,u.useMemo)(()=>i?q(i):S,[i]),l=(0,a.pmc)(),d=async(e,i)=>{let r=w(e);(n=>{if((0,m.D4)(n)){let e=(0,m.e$)(n.error,"An unexpected error occurred while editing the organization. Please try again.");l((0,h.Vo)(e))}else l((0,h.t5)("Organization configuration saved.")),i.resetForm({values:e}),t&&t(r)})(await n(r))},p=!i||o.isLoading;return(0,r.jsx)(c.J9,{initialValues:s,enableReinitialize:!0,onSubmit:d,validationSchema:O,children:e=>{let{dirty:i,isValid:t}=e;return(0,r.jsx)(c.l0,{"data-testid":"organization-form",children:(0,r.jsxs)(a.Kqy,{spacing:4,children:[(0,r.jsx)(x.j0,{id:"fides_key",name:"fides_key",label:"Fides Key",disabled:!0,tooltip:"A unique key that identifies your organization. Not editable via UI.",variant:"stacked"}),(0,r.jsx)(x.j0,{id:"name",name:"name",label:"Name",disabled:p,tooltip:"User-friendly name for your organization, used in messaging to end-users and other public locations.",variant:"stacked"}),(0,r.jsx)(x.j0,{id:"description",name:"description",label:"Description",disabled:p,tooltip:"Short description of your organization, your services, etc.",variant:"stacked"}),(0,r.jsx)(a.xuv,{textAlign:"right",children:(0,r.jsx)(a.wpx,{htmlType:"submit",type:"primary",disabled:p||!i||!t,loading:p,"data-testid":"save-btn",children:"Save"})})]})})}})};var P=t(54682),N=()=>{let{data:e}=(0,z.GQ)(z.Av),{plus:i,flags:{ssoAuthentication:t}}=(0,o.hz)();return(0,r.jsx)(s.Z,{title:"Organization",children:(0,r.jsxs)(a.xuv,{"data-testid":"organization-management",children:[(0,r.jsx)(l.Z,{heading:"Organization Management"}),(0,r.jsxs)(a.xuv,{maxWidth:"600px",children:[(0,r.jsx)(a.xvT,{pb:6,fontSize:"sm",children:"Please use this section to manage your organization‘s details, including key information that will be recorded in the RoPA (Record of Processing Activities)."}),(0,r.jsx)(a.xuv,{background:"gray.50",padding:2,children:(0,r.jsx)(I,{organization:e})}),t&&i&&(0,r.jsx)(n.ZP,{scopes:[P.Sh.OPENID_PROVIDER_CREATE],children:(0,r.jsx)(R,{})})]})]})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=85082)}),_N_E=e.O()}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2828],{85082:function(e,i,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/organization",function(){return t(5417)}])},77213:function(e,i,t){"use strict";t.d(i,{Z:function(){return p}});var r=t(24246),n=t(96306),a=t(88038),o=t.n(a),s=t(86677);t(27378);var l=t(25980),d=t(90867),c=t(77830),u=()=>{let e=(0,s.useRouter)();return(0,r.jsx)(n.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,r.jsxs)(n.xuv,{children:[(0,r.jsxs)(n.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,r.jsx)(n.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,r.jsx)(n.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,r.jsxs)(n.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:i,title:t,padded:a=!0,mainProps:c}=e,p=(0,l.hz)(),x=(0,s.useRouter)(),m="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,h=!(p.flags.privacyRequestsConfiguration&&m),{data:v}=(0,d.JE)(void 0,{skip:h}),{data:j}=(0,d.PW)(void 0,{skip:h}),g=p.flags.privacyRequestsConfiguration&&(!v||!j)&&m;return(0,r.jsxs)(n.kCb,{"data-testid":t,direction:"column",h:"100vh",children:[(0,r.jsxs)(o(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",t]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsxs)(n.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[g?(0,r.jsx)(u,{}):null,i]})]})}},58754:function(e,i,t){"use strict";var r=t(24246),n=t(96306),a=t(70788);i.Z=e=>{let{heading:i,breadcrumbItems:t,isSticky:o=!0,children:s,rightContent:l,style:d,...c}=e;return(0,r.jsxs)("div",{...c,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,r.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof i?(0,r.jsx)(n.lQT,{className:t||s?"pb-4":void 0,level:1,"data-testid":"page-heading",children:i}):i,l&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!t&&(0,r.jsx)(a.m,{className:s?"pb-4":void 0,items:t,"data-testid":"page-breadcrumb"}),s]})}},19904:function(e,i,t){"use strict";t.d(i,{Tg:function(){return o}});var r=t(24246),n=t(16134),a=t(31793);let o=e=>(0,n.C)(a.uu).filter(i=>e.includes(i)).length>0;i.ZP=e=>{let{scopes:i,children:t}=e;return o(i)?(0,r.jsx)(r.Fragment,{children:t}):null}},97181:function(e,i,t){"use strict";t.d(i,{d:function(){return d}});var r=t(24246),n=t(96306),a=t(34090),o=t(27378),s=t(46238),l=t(40324);let d=e=>{let{name:i,label:t,labelProps:d,tooltip:c,isRequired:u,layout:p="inline",helperText:x,...m}=e,[h,v,{setValue:j}]=(0,a.U$)(i),g=!!(v.touched&&v.error),[f,b]=(0,o.useState)("");h.value||"tags"!==m.mode&&"multiple"!==m.mode||(h.value=[]),"tags"===m.mode&&"string"==typeof h.value&&(h.value=[h.value]);let y="tags"===m.mode?(e,i)=>e?e.value!==f||h.value.includes(f)?m.optionRender?m.optionRender(e,i):e.label:'Create "'.concat(f,'"'):void 0:m.optionRender||void 0,k=e=>{b(e),m.onSearch&&m.onSearch(e)},C=(e,i)=>{j(e),m.onChange&&m.onChange(e,i)};return"inline"===p?(0,r.jsx)(n.NIc,{isInvalid:g,isRequired:u,children:(0,r.jsxs)(n.rjZ,{templateColumns:t?"1fr 3fr":"1fr",children:[t?(0,r.jsx)(l.__,{htmlFor:m.id||i,...d,children:t}):null,(0,r.jsxs)(n.jqI,{align:"center",children:[(0,r.jsxs)(n.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,r.jsx)(n.WPr,{...h,id:m.id||i,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:y,onSearch:"tags"===m.mode?k:void 0,onChange:C,value:h.value||void 0,status:g?"error":void 0}),x&&(0,r.jsx)(n.Q6r,{children:x}),(0,r.jsx)(l.Bc,{isInvalid:g,message:v.error,fieldName:h.name})]}),(0,r.jsx)(s.b,{label:c,className:g?"mt-2 self-start":void 0})]})]})}):(0,r.jsx)(n.NIc,{isInvalid:g,isRequired:u,children:(0,r.jsxs)(n.gCW,{alignItems:"start",children:[(0,r.jsxs)(n.jqI,{align:"center",children:[t?(0,r.jsx)(l.__,{htmlFor:m.id||i,fontSize:"xs",my:0,mr:1,...d,children:t}):null,(0,r.jsx)(s.b,{label:c})]}),(0,r.jsx)(n.WPr,{...h,id:m.id||i,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:y,onSearch:"tags"===m.mode?k:void 0,onChange:C,value:h.value||void 0,status:g?"error":void 0}),x&&(0,r.jsx)(n.Q6r,{style:{marginTop:0},children:x}),(0,r.jsx)(l.Bc,{isInvalid:g,message:v.error,fieldName:h.name})]})})}},8133:function(e,i,t){"use strict";var r=t(24246),n=t(96306);i.Z=e=>{let{title:i,children:t,isOpen:a,onClose:o,modalContentProps:s,showCloseButton:l=!1,footer:d,...c}=e;return(0,r.jsxs)(n.u_l,{isOpen:a,onClose:o,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...c,children:[(0,r.jsx)(n.ZAr,{}),(0,r.jsxs)(n.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...s,children:[l&&(0,r.jsx)(n.olH,{}),(0,r.jsx)(n.xBx,{p:0,children:(0,r.jsx)(n.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,r.jsx)(n.X6q,{as:"h3",size:"sm",children:i})})}),(0,r.jsx)(n.fef,{pb:4,overflow:"auto",children:t}),d&&(0,r.jsx)(n.mzw,{children:d})]})]})}},70788:function(e,i,t){"use strict";t.d(i,{m:function(){return d}});var r=t(24246),n=t(96306),a=t(79894),o=t.n(a),s=t(27378);let{Text:l}=n.AntTypography,d=e=>{let{items:i,...t}=e,a=(0,s.useMemo)(()=>null==i?void 0:i.map((e,t)=>{let a=t===i.length-1,s={...e},d=s.onClick&&!s.href;return("string"==typeof s.title&&(s.title=(0,r.jsx)(l,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,id:a?"breadcrumb-current-page":void 0,children:s.title})),d)?s.title=(0,r.jsx)(n.wpx,{type:"text",size:"small",icon:s.icon,onClick:s.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:s.title}):(s.icon&&(s.title=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:s.icon}),s.title]})),s.href&&s.title&&(s.title=(0,r.jsx)(o(),{href:s.href,className:"ant-breadcrumb-link",children:s.title}),delete s.href)),s}),[i]);return(0,r.jsx)(n.zrq,{items:a,...t})}},5417:function(e,i,t){"use strict";t.r(i),t.d(i,{default:function(){return N}});var r=t(24246),n=t(19904),a=t(96306),o=t(25980),s=t(77213),l=t(58754),d=t(8133),c=t(34090),u=t(27378),p=t(55484),x=t(40324),m=t(812),h=t(46628),v=t(76174),j=t(97181);let g={identifier:"",name:"",client_id:"",client_secret:""},f=e=>({...e}),b=p.Ry().shape({provider:p.Z_().required().label("Provider"),name:p.Z_().required().label("Name"),client_id:p.Z_().required().label("Client ID"),client_secret:p.Z_().required().label("Client Secret")});var y=e=>{let{openIDProvider:i,onSuccess:t,onClose:n}=e,[o]=(0,v.Qc)(),[s]=(0,v.oP)(),l=(0,u.useMemo)(()=>i?f(i):g,[i]),d=(0,a.pmc)(),p=async(e,i)=>{(e=>{if((0,m.D4)(e)){let i=(0,m.e$)(e.error,"An unexpected error occurred while editing the SSO provider. Please try again.");d((0,h.Vo)(i))}else d((0,h.t5)("SSO provider configuration saved.")),n(),i.resetForm({}),t&&t(e.data)})(l.id?await s(e):await o(e))},y=[{label:"Azure",value:"azure"},{label:"Google",value:"google"},{label:"Okta",value:"okta"},{label:"Custom",value:"custom"}],k=()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.j0,{id:"authorization_url",name:"authorization_url",label:"Authorization URL",tooltip:"Authorization URL for your provider",variant:"stacked",isRequired:!0}),(0,r.jsx)(x.j0,{id:"token_url",name:"token_url",label:"Token URL",tooltip:"Token URL for your provider",variant:"stacked",isRequired:!0})]}),C=()=>(0,r.jsx)(x.j0,{id:"domain",name:"domain",label:"Domain",tooltip:"Domain for your Okta provider",variant:"stacked",isRequired:!0}),_=()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.j0,{id:"authorization_url",name:"authorization_url",label:"Authorization URL",tooltip:"Authorization URL for your provider",variant:"stacked",isRequired:!0}),(0,r.jsx)(x.j0,{id:"token_url",name:"token_url",label:"Token URL",tooltip:"Token URL for your provider",variant:"stacked",isRequired:!0}),(0,r.jsx)(x.j0,{id:"userinfo_url",name:"user_info_url",label:"User Info URL",tooltip:"User Info URL for your provider",variant:"stacked",isRequired:!0})]});return(0,r.jsx)(c.J9,{initialValues:l,enableReinitialize:!0,onSubmit:p,validationSchema:b,children:e=>{let{dirty:i,isValid:t,values:o}=e;return(0,r.jsx)(c.l0,{"data-testid":"openIDProvider-form",children:(0,r.jsxs)(a.Kqy,{spacing:4,children:[(0,r.jsx)(j.d,{name:"provider",label:"Provider",options:y,layout:"stacked",isRequired:!0}),(0,r.jsx)(x.j0,{id:"identifier",name:"identifier",label:"Identifier",tooltip:"Unique identifier for your provider",variant:"stacked",isRequired:!0,disabled:!!l.id}),(0,r.jsx)(x.j0,{id:"name",name:"name",label:"Name",tooltip:"Display name for your provider",variant:"stacked",isRequired:!0}),(0,r.jsx)(x.j0,{id:"client_id",name:"client_id",label:"Client ID",type:"password",tooltip:"Client ID for your provider",variant:"stacked",isRequired:!0}),(0,r.jsx)(x.j0,{id:"client_secret",name:"client_secret",label:"Client secret",type:"password",tooltip:"Client secret for your provider",variant:"stacked",isRequired:!0}),"azure"===o.provider&&k(),"okta"===o.provider&&C(),"custom"===o.provider&&_(),(0,r.jsxs)(a.xuv,{textAlign:"right",children:[(0,r.jsx)(a.wpx,{htmlType:"button","data-testid":"cancel-btn",className:"mr-3",onClick:n,children:"Cancel"}),(0,r.jsx)(a.wpx,{htmlType:"submit",type:"primary",disabled:!i||!t,"data-testid":"save-btn",children:"Save"})]})]})})}})},k=e=>{let{isOpen:i,onClose:t}=e;return(0,r.jsx)(d.Z,{isOpen:i,onClose:t,title:"Add SSO Provider",children:(0,r.jsx)(y,{onClose:t})})},C=e=>{let{isOpen:i,onClose:t,openIDProvider:n}=e;return(0,r.jsx)(d.Z,{isOpen:i,onClose:t,title:"Edit SSO Provider",children:(0,r.jsx)(y,{openIDProvider:n,onClose:t})})},_=e=>{let{openIDProvider:i}=e,{onOpen:t,isOpen:n,onClose:o}=(0,a.qY0)(),{onOpen:s,isOpen:l,onClose:d}=(0,a.qY0)(),c=(0,a.pmc)(),[u]=(0,v.rB)(),p=async()=>{let e=await u(i.identifier);if((0,m.D4)(e)){c((0,h.Vo)((0,m.e$)(e.error))),d();return}c((0,h.t5)("SSO provider deleted successfully")),d()};return(0,r.jsxs)(a.xuv,{alignItems:"center",borderRadius:"lg",borderWidth:"1px",display:"flex",height:"74px",marginBottom:"24px",padding:2,children:[(0,r.jsxs)(a.xuv,{display:"flex",alignItems:"center",children:[(0,r.jsx)(a.Eep,{src:"/images/oauth-login/".concat(i.provider,".svg"),alt:"".concat(i.provider," icon"),width:"40px",height:"40px"}),(0,r.jsxs)(a.xuv,{display:"flex",flexDirection:"column",children:[(0,r.jsx)(a.xvT,{fontSize:"medium",fontWeight:"bold",marginLeft:"16px",children:i.name}),(0,r.jsx)(a.xvT,{fontSize:"medium",marginLeft:"16px",children:i.identifier})]})]}),(0,r.jsxs)(a.xuv,{flexGrow:1,display:"flex",justifyContent:"flex-end",children:[(0,r.jsx)(a.wpx,{className:"mr-3",onClick:s,"data-testid":"remove-sso-provider-btn",children:"Remove"}),(0,r.jsx)(a.wpx,{className:"mr-3",onClick:t,"data-testid":"edit-sso-provider-btn",children:"Edit"})]}),(0,r.jsx)(C,{isOpen:n,onClose:o,openIDProvider:i}),(0,r.jsx)(a.cVQ,{isOpen:l,onClose:d,onConfirm:p,title:"Remove SSO provider",message:(0,r.jsx)(a.xvT,{children:"You are about to permanently remove this SSO provider. Are you sure you would like to continue?"})})]})},R=()=>{let{onOpen:e,isOpen:i,onClose:t}=(0,a.qY0)(),{data:n}=(0,v.qv)();return(0,r.jsxs)(a.xuv,{maxWidth:"600px",marginTop:"40px",children:[(0,r.jsxs)(a.X6q,{marginBottom:4,fontSize:"lg",display:"flex",justifyContent:"space-between",children:["SSO Providers",n&&n.length<5&&(0,r.jsx)(a.wpx,{onClick:e,"data-testid":"add-sso-provider-btn",children:"Add SSO Provider"})]}),(0,r.jsx)(a.xvT,{marginBottom:"30px",fontSize:"sm",children:"Use this area to add and manage SSO providers for you organization. Select “Add SSO provider” to add a new provider."}),null==n?void 0:n.map(e=>(0,r.jsx)(_,{openIDProvider:e},e.identifier)),(0,r.jsx)(k,{isOpen:i,onClose:t})]})},z=t(83265);let S={description:"",fides_key:z.Av,name:""},q=e=>({...e}),w=e=>({description:e.description,fides_key:e.fides_key,name:e.name}),O=p.Ry().shape({description:p.Z_().required().label("Description"),fides_key:p.Z_().required().label("Organization Fides Key"),name:p.Z_().required().label("Name")}),I=e=>{let{organization:i,onSuccess:t}=e,[n,o]=(0,z.$f)(),s=(0,u.useMemo)(()=>i?q(i):S,[i]),l=(0,a.pmc)(),d=async(e,i)=>{let r=w(e);(n=>{if((0,m.D4)(n)){let e=(0,m.e$)(n.error,"An unexpected error occurred while editing the organization. Please try again.");l((0,h.Vo)(e))}else l((0,h.t5)("Organization configuration saved.")),i.resetForm({values:e}),t&&t(r)})(await n(r))},p=!i||o.isLoading;return(0,r.jsx)(c.J9,{initialValues:s,enableReinitialize:!0,onSubmit:d,validationSchema:O,children:e=>{let{dirty:i,isValid:t}=e;return(0,r.jsx)(c.l0,{"data-testid":"organization-form",children:(0,r.jsxs)(a.Kqy,{spacing:4,children:[(0,r.jsx)(x.j0,{id:"fides_key",name:"fides_key",label:"Fides Key",disabled:!0,tooltip:"A unique key that identifies your organization. Not editable via UI.",variant:"stacked"}),(0,r.jsx)(x.j0,{id:"name",name:"name",label:"Name",disabled:p,tooltip:"User-friendly name for your organization, used in messaging to end-users and other public locations.",variant:"stacked"}),(0,r.jsx)(x.j0,{id:"description",name:"description",label:"Description",disabled:p,tooltip:"Short description of your organization, your services, etc.",variant:"stacked"}),(0,r.jsx)(a.xuv,{textAlign:"right",children:(0,r.jsx)(a.wpx,{htmlType:"submit",type:"primary",disabled:p||!i||!t,loading:p,"data-testid":"save-btn",children:"Save"})})]})})}})};var P=t(54682),N=()=>{let{data:e}=(0,z.GQ)(z.Av),{plus:i}=(0,o.hz)();return(0,r.jsx)(s.Z,{title:"Organization",children:(0,r.jsxs)(a.xuv,{"data-testid":"organization-management",children:[(0,r.jsx)(l.Z,{heading:"Organization Management"}),(0,r.jsxs)(a.xuv,{maxWidth:"600px",children:[(0,r.jsx)(a.xvT,{pb:6,fontSize:"sm",children:"Please use this section to manage your organization‘s details, including key information that will be recorded in the RoPA (Record of Processing Activities)."}),(0,r.jsx)(a.xuv,{background:"gray.50",padding:2,children:(0,r.jsx)(I,{organization:e})}),i&&(0,r.jsx)(n.ZP,{scopes:[P.Sh.OPENID_PROVIDER_CREATE],children:(0,r.jsx)(R,{})})]})]})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=85082)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";var e,t,n,r,o,u,i,c,a,f,s,l,d={},p={};function h(e){var t=p[e];if(void 0!==t)return t.exports;var n=p[e]={id:e,loaded:!1,exports:{}},r=!0;try{d[e].call(n.exports,n,n.exports,h),r=!1}finally{r&&delete p[e]}return n.loaded=!0,n.exports}h.m=d,e=[],h.O=function(t,n,r,o){if(n){o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u<e.length;u++){for(var n=e[u][0],r=e[u][1],o=e[u][2],c=!0,a=0;a<n.length;a++)i>=o&&Object.keys(h.O).every(function(e){return h.O[e](n[a])})?n.splice(a--,1):(c=!1,o<i&&(i=o));if(c){e.splice(u--,1);var f=r();void 0!==f&&(t=f)}}return t},h.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return h.d(t,{a:t}),t},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},h.t=function(e,r){if(1&r&&(e=this(e)),8&r||"object"==typeof e&&e&&(4&r&&e.__esModule||16&r&&"function"==typeof e.then))return e;var o=Object.create(null);h.r(o);var u={};t=t||[null,n({}),n([]),n(n)];for(var i=2&r&&e;"object"==typeof i&&!~t.indexOf(i);i=n(i))Object.getOwnPropertyNames(i).forEach(function(t){u[t]=function(){return e[t]}});return u.default=function(){return e},h.d(o,u),o},h.d=function(e,t){for(var n in t)h.o(t,n)&&!h.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},h.f={},h.e=function(e){return Promise.all(Object.keys(h.f).reduce(function(t,n){return h.f[n](e,t),t},[]))},h.u=function(e){return 105===e?"static/chunks/105.f510d88bd08bb2f5.js":4259===e?"static/chunks/4259.d1507e0db19cbed7.js":1975===e?"static/chunks/1975.78e719130cfe3fd6.js":7088===e?"static/chunks/7088.eb76fca286e5f2e6.js":9676===e?"static/chunks/9676.b7d5d1d90b9da224.js":"static/chunks/"+(1096===e?"678d4732":e)+"-"+({699:"8ca44b0de9fa20f0",1096:"50255cc09048e643",5619:"9b50cec521203989",6148:"59a59d5c5925344f",8765:"f622a35b40a7ec63",9278:"08cc704317fe535e"})[e]+".js"},h.miniCssF=function(e){return"static/css/
|
|
1
|
+
!function(){"use strict";var e,t,n,r,o,u,i,c,a,f,s,l,d={},p={};function h(e){var t=p[e];if(void 0!==t)return t.exports;var n=p[e]={id:e,loaded:!1,exports:{}},r=!0;try{d[e].call(n.exports,n,n.exports,h),r=!1}finally{r&&delete p[e]}return n.loaded=!0,n.exports}h.m=d,e=[],h.O=function(t,n,r,o){if(n){o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u<e.length;u++){for(var n=e[u][0],r=e[u][1],o=e[u][2],c=!0,a=0;a<n.length;a++)i>=o&&Object.keys(h.O).every(function(e){return h.O[e](n[a])})?n.splice(a--,1):(c=!1,o<i&&(i=o));if(c){e.splice(u--,1);var f=r();void 0!==f&&(t=f)}}return t},h.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return h.d(t,{a:t}),t},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},h.t=function(e,r){if(1&r&&(e=this(e)),8&r||"object"==typeof e&&e&&(4&r&&e.__esModule||16&r&&"function"==typeof e.then))return e;var o=Object.create(null);h.r(o);var u={};t=t||[null,n({}),n([]),n(n)];for(var i=2&r&&e;"object"==typeof i&&!~t.indexOf(i);i=n(i))Object.getOwnPropertyNames(i).forEach(function(t){u[t]=function(){return e[t]}});return u.default=function(){return e},h.d(o,u),o},h.d=function(e,t){for(var n in t)h.o(t,n)&&!h.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},h.f={},h.e=function(e){return Promise.all(Object.keys(h.f).reduce(function(t,n){return h.f[n](e,t),t},[]))},h.u=function(e){return 105===e?"static/chunks/105.f510d88bd08bb2f5.js":4259===e?"static/chunks/4259.d1507e0db19cbed7.js":1975===e?"static/chunks/1975.78e719130cfe3fd6.js":7088===e?"static/chunks/7088.eb76fca286e5f2e6.js":9676===e?"static/chunks/9676.b7d5d1d90b9da224.js":"static/chunks/"+(1096===e?"678d4732":e)+"-"+({699:"8ca44b0de9fa20f0",1096:"50255cc09048e643",5619:"9b50cec521203989",6148:"59a59d5c5925344f",8765:"f622a35b40a7ec63",9278:"08cc704317fe535e"})[e]+".js"},h.miniCssF=function(e){return"static/css/98fab0b3e6aa43ed.css"},h.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),h.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r={},o="_N_E:",h.l=function(e,t,n,u){if(r[e]){r[e].push(t);return}if(void 0!==n)for(var i,c,a=document.getElementsByTagName("script"),f=0;f<a.length;f++){var s=a[f];if(s.getAttribute("src")==e||s.getAttribute("data-webpack")==o+n){i=s;break}}i||(c=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,h.nc&&i.setAttribute("nonce",h.nc),i.setAttribute("data-webpack",o+n),i.src=h.tu(e)),r[e]=[t];var l=function(t,n){i.onerror=i.onload=null,clearTimeout(d);var o=r[e];if(delete r[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach(function(e){return e(n)}),t)return t(n)},d=setTimeout(l.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=l.bind(null,i.onerror),i.onload=l.bind(null,i.onload),c&&document.head.appendChild(i)},h.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},h.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},h.tt=function(){return void 0===u&&(u={createScriptURL:function(e){return e}},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(u=trustedTypes.createPolicy("nextjs#bundler",u))),u},h.tu=function(e){return h.tt().createScriptURL(e)},h.p="/_next/",i=function(e,t,n,r){var o=document.createElement("link");return o.rel="stylesheet",o.type="text/css",o.onerror=o.onload=function(u){if(o.onerror=o.onload=null,"load"===u.type)n();else{var i=u&&("load"===u.type?"missing":u.type),c=u&&u.target&&u.target.href||t,a=Error("Loading CSS chunk "+e+" failed.\n("+c+")");a.code="CSS_CHUNK_LOAD_FAILED",a.type=i,a.request=c,o.parentNode.removeChild(o),r(a)}},o.href=t,document.head.appendChild(o),o},c=function(e,t){for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var o=n[r],u=o.getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(u===e||u===t))return o}for(var i=document.getElementsByTagName("style"),r=0;r<i.length;r++){var o=i[r],u=o.getAttribute("data-href");if(u===e||u===t)return o}},a={2272:0},h.f.miniCss=function(e,t){a[e]?t.push(a[e]):0!==a[e]&&({105:1})[e]&&t.push(a[e]=new Promise(function(t,n){var r=h.miniCssF(e),o=h.p+r;if(c(r,o))return t();i(e,o,t,n)}).then(function(){a[e]=0},function(t){throw delete a[e],t}))},f={2272:0},h.f.j=function(e,t){var n=h.o(f,e)?f[e]:void 0;if(0!==n){if(n)t.push(n[2]);else if(/^(105|2272)$/.test(e))f[e]=0;else{var r=new Promise(function(t,r){n=f[e]=[t,r]});t.push(n[2]=r);var o=h.p+h.u(e),u=Error();h.l(o,function(t){if(h.o(f,e)&&(0!==(n=f[e])&&(f[e]=void 0),n)){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",u.name="ChunkLoadError",u.type=r,u.request=o,n[1](u)}},"chunk-"+e,e)}}},h.O.j=function(e){return 0===f[e]},s=function(e,t){var n,r,o=t[0],u=t[1],i=t[2],c=0;if(o.some(function(e){return 0!==f[e]})){for(n in u)h.o(u,n)&&(h.m[n]=u[n]);if(i)var a=i(h)}for(e&&e(t);c<o.length;c++)r=o[c],h.o(f,r)&&f[r]&&f[r][0](),f[r]=0;return h.O(a)},(l=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).forEach(s.bind(null,0)),l.push=s.bind(null,l.push.bind(l)),h.nc=void 0}();
|