ethyca-fides 2.59.2b2__py2.py3-none-any.whl → 2.59.2rc0__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.
Files changed (252) hide show
  1. {ethyca_fides-2.59.2b2.dist-info → ethyca_fides-2.59.2rc0.dist-info}/METADATA +2 -2
  2. {ethyca_fides-2.59.2b2.dist-info → ethyca_fides-2.59.2rc0.dist-info}/RECORD +206 -209
  3. {ethyca_fides-2.59.2b2.dist-info → ethyca_fides-2.59.2rc0.dist-info}/WHEEL +1 -1
  4. fides/_version.py +3 -3
  5. fides/api/api/v1/endpoints/storage_endpoints.py +4 -5
  6. fides/api/db/system.py +121 -1
  7. fides/api/models/asset.py +2 -1
  8. fides/api/models/privacy_notice.py +19 -14
  9. fides/api/models/sql_models.py +51 -0
  10. fides/api/schemas/application_config.py +0 -1
  11. fides/api/schemas/connection_configuration/connection_secrets_datahub.py +3 -3
  12. fides/api/schemas/connection_configuration/connection_secrets_mysql.py +0 -12
  13. fides/api/schemas/connection_configuration/connection_secrets_postgres.py +4 -0
  14. fides/api/schemas/messaging/messaging.py +2 -9
  15. fides/api/schemas/storage/storage.py +1 -35
  16. fides/api/schemas/storage/storage_secrets_docs_only.py +2 -8
  17. fides/api/schemas/system.py +2 -1
  18. fides/api/service/connectors/mysql_connector.py +1 -13
  19. fides/api/service/connectors/postgres_connector.py +4 -2
  20. fides/api/service/storage/storage_authenticator_service.py +0 -28
  21. fides/api/service/storage/storage_uploader_service.py +1 -25
  22. fides/api/tasks/storage.py +1 -45
  23. fides/api/util/storage_util.py +0 -2
  24. fides/service/messaging/aws_ses_service.py +16 -25
  25. fides/ui-build/static/admin/404.html +1 -1
  26. fides/ui-build/static/admin/_next/static/P3RkpoojridGfvvbDI91a/_buildManifest.js +1 -0
  27. fides/ui-build/static/admin/_next/static/chunks/{1100-93c5835d689e9dd5.js → 1100-45c0634b4f51d10c.js} +1 -1
  28. fides/ui-build/static/admin/_next/static/chunks/1376-92890c17ce39ca0d.js +1 -0
  29. fides/ui-build/static/admin/_next/static/chunks/146-d1820217dc36d46d.js +1 -0
  30. fides/ui-build/static/admin/_next/static/chunks/{1817-16d1dd3b13e590b3.js → 1817-6abbe957a53026d7.js} +1 -1
  31. fides/ui-build/static/admin/_next/static/chunks/{1904-0f03e5a2c3de8487.js → 1904-281183a117e26585.js} +1 -1
  32. fides/ui-build/static/admin/_next/static/chunks/{2479-18fbea714b5f1f7a.js → 2479-b4f7a1c7c711cb65.js} +1 -1
  33. fides/ui-build/static/admin/_next/static/chunks/3086-d1ba90bc6ac9174b.js +1 -0
  34. fides/ui-build/static/admin/_next/static/chunks/3244-3d94bf3393366412.js +1 -0
  35. fides/ui-build/static/admin/_next/static/chunks/{3702-c4465f7b3bbc3edc.js → 3702-3d814671c31eaca3.js} +1 -1
  36. fides/ui-build/static/admin/_next/static/chunks/3855-237afbbea7f54707.js +1 -0
  37. fides/ui-build/static/admin/_next/static/chunks/{3872-03319b7328ddc284.js → 3872-c53d74aebd12cfd3.js} +1 -1
  38. fides/ui-build/static/admin/_next/static/chunks/401-50974f107c2712fc.js +1 -0
  39. fides/ui-build/static/admin/_next/static/chunks/4060-52fd85fb1e15a2b8.js +1 -0
  40. fides/ui-build/static/admin/_next/static/chunks/4121-476f657b03a78965.js +1 -0
  41. fides/ui-build/static/admin/_next/static/chunks/4481-288d74a33473cff7.js +1 -0
  42. fides/ui-build/static/admin/_next/static/chunks/5102-626b9ff42e904276.js +1 -0
  43. fides/ui-build/static/admin/_next/static/chunks/5480-1623dbacdf4e6794.js +1 -0
  44. fides/ui-build/static/admin/_next/static/chunks/{5487-7751e91b40dc6050.js → 5487-9a2aecb0ec63d567.js} +1 -1
  45. fides/ui-build/static/admin/_next/static/chunks/{5826-8516f6c635510e95.js → 5826-1f4f74bf3b5348e4.js} +1 -1
  46. fides/ui-build/static/admin/_next/static/chunks/5973-942ce645a4279587.js +1 -0
  47. fides/ui-build/static/admin/_next/static/chunks/{6372-d3f778c62070545f.js → 6372-2aee10b79089521a.js} +1 -1
  48. fides/ui-build/static/admin/_next/static/chunks/6395-4224d6d26d1e8bb7.js +1 -0
  49. fides/ui-build/static/admin/_next/static/chunks/6853-ca5dacd25c9ccb7c.js +1 -0
  50. fides/ui-build/static/admin/_next/static/chunks/{6954-169abc679def0fb6.js → 6954-127745bfdc5bc0b3.js} +1 -1
  51. fides/ui-build/static/admin/_next/static/chunks/{7751-e0a78be0ca620df1.js → 7751-3913b8c055f599e5.js} +1 -1
  52. fides/ui-build/static/admin/_next/static/chunks/79-77cfed02164241ca.js +1 -0
  53. fides/ui-build/static/admin/_next/static/chunks/{8433-4481a5d085d3b008.js → 8433-c4c765833ab9cc07.js} +1 -1
  54. fides/ui-build/static/admin/_next/static/chunks/{8934-e2a4fd9f8ab74142.js → 8934-ffa2b0509bc7a845.js} +1 -1
  55. fides/ui-build/static/admin/_next/static/chunks/9282-1a48b10b114d01f4.js +1 -0
  56. fides/ui-build/static/admin/_next/static/chunks/{9327-b019990849ff57f3.js → 9327-4970d356f7000c0b.js} +1 -1
  57. fides/ui-build/static/admin/_next/static/chunks/{9392.5f3cfb8eafbeac59.js → 9392.da35a8e778812d91.js} +1 -1
  58. fides/ui-build/static/admin/_next/static/chunks/9572-2b9b10e146130c85.js +1 -0
  59. fides/ui-build/static/admin/_next/static/chunks/{9676.2e1267373b5a6076.js → 9676.f297a1347ac09c56.js} +1 -1
  60. fides/ui-build/static/admin/_next/static/chunks/9767-bf415d0daea960cd.js +1 -0
  61. fides/ui-build/static/admin/_next/static/chunks/{9951-e0d7db7ec538ebf1.js → 9951-66aad0602aadfbe2.js} +1 -1
  62. fides/ui-build/static/admin/_next/static/chunks/pages/{404-1dfbf30fba0233a2.js → 404-29560aa2e6a60963.js} +1 -1
  63. fides/ui-build/static/admin/_next/static/chunks/pages/{_app-9560c81c6cf5f050.js → _app-1ce747bb4aa843da.js} +48 -48
  64. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-58e9256e86916ecd.js +1 -0
  65. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-14c60fbc5907c621.js → multiple-2392e3a101fae073.js} +1 -1
  66. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-a6926f7ec7ad10cf.js +1 -0
  67. fides/ui-build/static/admin/_next/static/chunks/pages/ant-poc-404f3c9018952800.js +1 -0
  68. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-79949b978a966399.js → add-vendors-7dfe37b9f0ff9a3c.js} +1 -1
  69. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-6af86d0717034a7f.js → configure-dba7848b760ba227.js} +1 -1
  70. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-e876f21f7f2245aa.js → [id]-78de4bde88e18b0f.js} +1 -1
  71. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{new-300fd2800c417d0b.js → new-c02b14c50b19bd91.js} +1 -1
  72. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience-7eeeee3769e73f78.js +1 -0
  73. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-80dd6ab96599efb5.js → [id]-75c2ed6ba3de48cd.js} +1 -1
  74. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-e48da14c5d5d0a66.js → new-487ae57dc7e2ded2.js} +1 -1
  75. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-05e67aa6f029e6d4.js → privacy-notices-65091908d6296afc.js} +1 -1
  76. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-6c99121562583eb7.js → properties-f67fda6a71d0a46b.js} +1 -1
  77. fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-7a1976c0d1aca8b6.js +1 -0
  78. fides/ui-build/static/admin/_next/static/chunks/pages/{consent-253aa071516a6436.js → consent-75395dfc224cf44b.js} +1 -1
  79. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-366121dfd638f6b5.js → [projectUrn]-fa65c67ec8c4b5e6.js} +1 -1
  80. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-974623a3afd4754b.js → projects-e76a07ee6ee8d55f.js} +1 -1
  81. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-75989f9732d90793.js +1 -0
  82. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-6b3d1fe762c747d8.js +1 -0
  83. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-61eafb8444bffb76.js +1 -0
  84. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-38476c697da53480.js +1 -0
  85. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-e7869f658e3017b9.js +1 -0
  86. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-10f789d4ab2b8927.js → [resourceUrn]-1bcaa606739ea1c5.js} +1 -1
  87. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-f473b2ee1c67be3c.js → detection-22f55dc12354b4c6.js} +1 -1
  88. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-2569551ae75ea5a2.js → [resourceUrn]-86111c25dc30ef2b.js} +1 -1
  89. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-ad077f30849fdc0a.js → discovery-853be75f08b9ab5c.js} +1 -1
  90. fides/ui-build/static/admin/_next/static/chunks/pages/{datamap-0cb4cd87c876acc3.js → datamap-423172d31de8e9c6.js} +1 -1
  91. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-fd1f9aba215e8fb2.js → [...subfieldNames]-704553f5329fb9d4.js} +1 -1
  92. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-06793bb37fa509d8.js → [collectionName]-06c19dca941edb14.js} +1 -1
  93. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-662ce6650bd83f05.js → [datasetId]-eac517f43d5f53a8.js} +1 -1
  94. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{new-5b773da9c79af072.js → new-5aff1d01c6c30ad6.js} +1 -1
  95. fides/ui-build/static/admin/_next/static/chunks/pages/{dataset-a8582040705239d4.js → dataset-f4d57b3432c57112.js} +1 -1
  96. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-e650d48347fb457e.js → [id]-b2b1168d0361baa8.js} +1 -1
  97. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-4b96de4707916560.js → new-c804349a417a888b.js} +1 -1
  98. fides/ui-build/static/admin/_next/static/chunks/pages/{datastore-connection-7ce2cd66791e7f6f.js → datastore-connection-0faa9b3c4555e585.js} +1 -1
  99. fides/ui-build/static/admin/_next/static/chunks/pages/{index-71e4264dcfba6181.js → index-e72904e316ede1b0.js} +1 -1
  100. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-17191a759e167ca8.js +1 -0
  101. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-88e51c81a380ebad.js +1 -0
  102. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{[id]-3a52dfa45f398f31.js → [id]-66f5fbadd8455805.js} +1 -1
  103. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{add-template-8e20f0da3a0779cc.js → add-template-d441abb1f045940f.js} +1 -1
  104. fides/ui-build/static/admin/_next/static/chunks/pages/{messaging-439832fde70c1157.js → messaging-eef56c95b08aa24c.js} +1 -1
  105. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{[id]-16b266c9ddf8d192.js → [id]-54ea39f203182c53.js} +1 -1
  106. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-d889076067104e56.js +1 -0
  107. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-3355b4803b2916f3.js +1 -0
  108. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-67b0a2a798d71e4d.js → configure-b8c94b10ab90b061.js} +1 -1
  109. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-3ac47981f1e2b0aa.js +1 -0
  110. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-99860c05fb5d25bd.js → [id]-f4fb941df069b7bf.js} +1 -1
  111. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-4a7a21c25985fff0.js → add-property-bccb6ffab25aa214.js} +1 -1
  112. fides/ui-build/static/admin/_next/static/chunks/pages/{properties-a78b5af5894ed324.js → properties-9a7ac623370b7c00.js} +1 -1
  113. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-fe743440d7eb007b.js +1 -0
  114. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{about-92fcfaa6111d7d24.js → about-4412a7b468b6d4bf.js} +1 -1
  115. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-cdc866af93898716.js +1 -0
  116. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-a7dc8113067dff42.js +1 -0
  117. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-4347b3fdd12fdcff.js → domain-records-d9088f5cd9fb2822.js} +1 -1
  118. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-2f03e981234c40ad.js +1 -0
  119. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-d8f6562694f9dd45.js → email-templates-cf09ad896c7396a6.js} +1 -1
  120. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-f74503aa1626e302.js → locations-759564ca0ae62840.js} +1 -1
  121. fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-5bcc7a6976e01a56.js +1 -0
  122. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-081148db3f589271.js → regulations-2dce4501fca920b3.js} +1 -1
  123. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-0b47ff26897c1d9a.js +1 -0
  124. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-e0110a539d33069a.js → [id]-dd053a3bf2a9ca6c.js} +1 -1
  125. fides/ui-build/static/admin/_next/static/chunks/pages/{systems-7aef28e963417fa3.js → systems-820893393f1516ee.js} +1 -1
  126. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-8fccd670220dbf60.js +1 -0
  127. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/{new-65ef1bdebb679666.js → new-082c3156175f9267.js} +1 -1
  128. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-3430c5a08e86a85d.js → [id]-d527d1d1635541df.js} +1 -1
  129. fides/ui-build/static/admin/_next/static/chunks/pages/user-management-facb8c0128a44cb1.js +1 -0
  130. fides/ui-build/static/admin/_next/static/chunks/{webpack-7104b266fb47d653.js → webpack-03e375f6d6b2c71b.js} +1 -1
  131. fides/ui-build/static/admin/_next/static/css/687135955af5b7e1.css +1 -0
  132. fides/ui-build/static/admin/add-systems/manual.html +1 -1
  133. fides/ui-build/static/admin/add-systems/multiple.html +1 -1
  134. fides/ui-build/static/admin/add-systems.html +1 -1
  135. fides/ui-build/static/admin/ant-poc.html +1 -1
  136. fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
  137. fides/ui-build/static/admin/consent/configure.html +1 -1
  138. fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
  139. fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
  140. fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
  141. fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
  142. fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
  143. fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
  144. fides/ui-build/static/admin/consent/properties.html +1 -1
  145. fides/ui-build/static/admin/consent/reporting.html +1 -1
  146. fides/ui-build/static/admin/consent.html +1 -1
  147. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
  148. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
  149. fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
  150. fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
  151. fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
  152. fides/ui-build/static/admin/data-catalog.html +1 -1
  153. fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
  154. fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
  155. fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
  156. fides/ui-build/static/admin/data-discovery/activity.html +1 -1
  157. fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
  158. fides/ui-build/static/admin/data-discovery/detection.html +1 -1
  159. fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
  160. fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
  161. fides/ui-build/static/admin/datamap.html +1 -1
  162. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
  163. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
  164. fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
  165. fides/ui-build/static/admin/dataset/new.html +1 -1
  166. fides/ui-build/static/admin/dataset.html +1 -1
  167. fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
  168. fides/ui-build/static/admin/datastore-connection/new.html +1 -1
  169. fides/ui-build/static/admin/datastore-connection.html +1 -1
  170. fides/ui-build/static/admin/index.html +1 -1
  171. fides/ui-build/static/admin/integrations/[id].html +1 -1
  172. fides/ui-build/static/admin/integrations.html +1 -1
  173. fides/ui-build/static/admin/login/[provider].html +1 -1
  174. fides/ui-build/static/admin/login.html +1 -1
  175. fides/ui-build/static/admin/messaging/[id].html +1 -1
  176. fides/ui-build/static/admin/messaging/add-template.html +1 -1
  177. fides/ui-build/static/admin/messaging.html +1 -1
  178. fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
  179. fides/ui-build/static/admin/privacy-requests/configure/messaging.html +1 -1
  180. fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
  181. fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
  182. fides/ui-build/static/admin/privacy-requests.html +1 -1
  183. fides/ui-build/static/admin/properties/[id].html +1 -1
  184. fides/ui-build/static/admin/properties/add-property.html +1 -1
  185. fides/ui-build/static/admin/properties.html +1 -1
  186. fides/ui-build/static/admin/reporting/datamap.html +1 -1
  187. fides/ui-build/static/admin/settings/about.html +1 -1
  188. fides/ui-build/static/admin/settings/consent.html +1 -1
  189. fides/ui-build/static/admin/settings/custom-fields.html +1 -1
  190. fides/ui-build/static/admin/settings/domain-records.html +1 -1
  191. fides/ui-build/static/admin/settings/domains.html +1 -1
  192. fides/ui-build/static/admin/settings/email-templates.html +1 -1
  193. fides/ui-build/static/admin/settings/locations.html +1 -1
  194. fides/ui-build/static/admin/settings/organization.html +1 -1
  195. fides/ui-build/static/admin/settings/regulations.html +1 -1
  196. fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
  197. fides/ui-build/static/admin/systems/configure/[id].html +1 -1
  198. fides/ui-build/static/admin/systems.html +1 -1
  199. fides/ui-build/static/admin/taxonomy.html +1 -1
  200. fides/ui-build/static/admin/user-management/new.html +1 -1
  201. fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
  202. fides/ui-build/static/admin/user-management.html +1 -1
  203. fides/api/alembic/migrations/versions/c9c72b3d550b_data_migration_cookie_asset.py +0 -218
  204. fides/api/service/storage/gcs.py +0 -38
  205. fides/ui-build/static/admin/_next/static/chunks/3503-569232568cee1a7e.js +0 -1
  206. fides/ui-build/static/admin/_next/static/chunks/3513-cf0c4d886ff26e00.js +0 -1
  207. fides/ui-build/static/admin/_next/static/chunks/3855-5417dfc333c7b6b6.js +0 -1
  208. fides/ui-build/static/admin/_next/static/chunks/401-f0c485676a4fc5f9.js +0 -1
  209. fides/ui-build/static/admin/_next/static/chunks/4060-98d858ec609e4b76.js +0 -1
  210. fides/ui-build/static/admin/_next/static/chunks/4121-044a191b265f4e51.js +0 -1
  211. fides/ui-build/static/admin/_next/static/chunks/4481-85e3f5845b50f10d.js +0 -1
  212. fides/ui-build/static/admin/_next/static/chunks/5835-b7b45dfb97180a88.js +0 -1
  213. fides/ui-build/static/admin/_next/static/chunks/5973-4e65b191ed82f8bd.js +0 -1
  214. fides/ui-build/static/admin/_next/static/chunks/6277-076a319bcff4f1a2.js +0 -1
  215. fides/ui-build/static/admin/_next/static/chunks/6853-25ff9e572d633f33.js +0 -1
  216. fides/ui-build/static/admin/_next/static/chunks/79-2302442f8b53f944.js +0 -1
  217. fides/ui-build/static/admin/_next/static/chunks/9282-356dc48612f4a21c.js +0 -1
  218. fides/ui-build/static/admin/_next/static/chunks/9572-ab070b1ae17dde8f.js +0 -1
  219. fides/ui-build/static/admin/_next/static/chunks/9719-caba0228fc973d3f.js +0 -1
  220. fides/ui-build/static/admin/_next/static/chunks/9767-b4f9c2cc14de6df6.js +0 -1
  221. fides/ui-build/static/admin/_next/static/chunks/9965-528ef17ac491d809.js +0 -1
  222. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-bca30784c7356aa3.js +0 -1
  223. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-0d7a9d9ad082c80c.js +0 -1
  224. fides/ui-build/static/admin/_next/static/chunks/pages/ant-poc-c2c4fd5faaf0f882.js +0 -1
  225. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience-83dea888aad26af3.js +0 -1
  226. fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-ed1cdefeb38cf592.js +0 -1
  227. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-4b1d9e4cc7fa17a2.js +0 -1
  228. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-936f72087aae94e1.js +0 -1
  229. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-b6e0c8625c953a00.js +0 -1
  230. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-9ebb4dc8bc7dd058.js +0 -1
  231. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-f0fe5d6cfcce0e69.js +0 -1
  232. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-b3ec5320782fbb49.js +0 -1
  233. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-4789200cdb1d7ec5.js +0 -1
  234. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-9c1748191ca19867.js +0 -1
  235. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-9f1ea2b5896ff3fd.js +0 -1
  236. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-faa220f7200fb252.js +0 -1
  237. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-b5c8cdfd6c1e0544.js +0 -1
  238. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-224434177b2775dc.js +0 -1
  239. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-5822e06b76f3ec84.js +0 -1
  240. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-ff123ece2e2e4009.js +0 -1
  241. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-899401bf5c72b67f.js +0 -1
  242. fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-610aa65b3dbcf467.js +0 -1
  243. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-6986ba3f6f33c110.js +0 -1
  244. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-61345b0f7cbd939e.js +0 -1
  245. fides/ui-build/static/admin/_next/static/chunks/pages/user-management-216944eb66e430bb.js +0 -1
  246. fides/ui-build/static/admin/_next/static/css/091e5fc4883aeb42.css +0 -1
  247. fides/ui-build/static/admin/_next/static/tLZG5DlQ8HHUd5zR6TZEN/_buildManifest.js +0 -1
  248. fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +0 -1
  249. {ethyca_fides-2.59.2b2.dist-info → ethyca_fides-2.59.2rc0.dist-info}/entry_points.txt +0 -0
  250. {ethyca_fides-2.59.2b2.dist-info → ethyca_fides-2.59.2rc0.dist-info}/licenses/LICENSE +0 -0
  251. {ethyca_fides-2.59.2b2.dist-info → ethyca_fides-2.59.2rc0.dist-info}/top_level.txt +0 -0
  252. /fides/ui-build/static/admin/_next/static/{tLZG5DlQ8HHUd5zR6TZEN → P3RkpoojridGfvvbDI91a}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9650],{96539:function(e,t,n){var i=n(77400).Symbol;e.exports=i},52033:function(e,t,n){var i=n(26194),s=n(26789)(i);e.exports=s},49819:function(e,t,n){var i=n(18911)();e.exports=i},26194:function(e,t,n){var i=n(49819),s=n(50098);e.exports=function(e,t){return e&&i(e,t,s)}},99736:function(e,t,n){var i=n(96539),s=n(34840),r=n(21258),l=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":l&&l in Object(e)?s(e):r(e)}},67375:function(e,t,n){var i=n(52033),s=n(80068);e.exports=function(e,t){var n=-1,r=s(e)?Array(e.length):[];return i(e,function(e,i,s){r[++n]=t(e,i,s)}),r}},26789:function(e,t,n){var i=n(80068);e.exports=function(e,t){return function(n,s){if(null==n)return n;if(!i(n))return e(n,s);for(var r=n.length,l=t?r:-1,a=Object(n);(t?l--:++l<r)&&!1!==s(a[l],l,a););return n}}},18911:function(e){e.exports=function(e){return function(t,n,i){for(var s=-1,r=Object(t),l=i(t),a=l.length;a--;){var o=l[e?a:++s];if(!1===n(r[o],o,r))break}return t}}},39120:function(e,t,n){var i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=i},34840:function(e,t,n){var i=n(96539),s=Object.prototype,r=s.hasOwnProperty,l=s.toString,a=i?i.toStringTag:void 0;e.exports=function(e){var t=r.call(e,a),n=e[a];try{e[a]=void 0;var i=!0}catch(e){}var s=l.call(e);return i&&(t?e[a]=n:delete e[a]),s}},21258:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},77400:function(e,t,n){var i=n(39120),s="object"==typeof self&&self&&self.Object===Object&&self,r=i||s||Function("return this")();e.exports=r},92360:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},55807:function(e,t,n){var i=n(66070),s=n(89278),r=n(67375),l=n(19785);e.exports=function(e,t){return(l(e)?i:r)(e,s(t,3))}},6554:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/privacy-requests/[id]",function(){return n(41629)}])},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var i=n(24246),s=n(56078),r=n(88038),l=n.n(r),a=n(86677);n(27378);var o=n(25980),c=n(90867),d=n(77830),u=()=>{let e=(0,a.useRouter)();return(0,i.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(s.xuv,{children:[(0,i.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(s.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,i.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:n,padded:r=!0,mainProps:d}=e,p=(0,o.hz)(),h=(0,a.useRouter)(),x="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,m=!(p.flags.privacyRequestsConfiguration&&x),{data:g}=(0,c.JE)(void 0,{skip:m}),{data:j}=(0,c.PW)(void 0,{skip:m}),f=p.flags.privacyRequestsConfiguration&&(!g||!j)&&x;return(0,i.jsxs)(s.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(l(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(s.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[f?(0,i.jsx)(u,{}):null,t]})]})}},812:function(e,t,n){"use strict";n.d(t,{D4:function(){return r.D4},MM:function(){return p},Ot:function(){return c},c6:function(){return s},cj:function(){return x},e$:function(){return a},fn:function(){return o},iC:function(){return h},nU:function(){return u},tB:function(){return d}});var i,s,r=n(19043);let l="An unexpected error occurred. Please try again.",a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;if((0,r.Bw)(e)){if((0,r.hE)(e.data))return e.data.detail;if((0,r.cz)(e.data)){var n;let t=null===(n=e.data.detail)||void 0===n?void 0:n[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,r.Dy)(e.data)||404===e.status&&(0,r.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function o(e){return"object"==typeof e&&null!=e&&"status"in e}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function d(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:l};if((0,r.oK)(e))return{status:e.originalStatus,message:e.data};if((0,r.Bw)(e)){let{status:n}=e;return{status:n,message:a(e,t.message)}}return t},p=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(i=s||(s={})).GVL="gvl",i.AC="gacp",i.COMPASS="compass";let h={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},x=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},41629:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ed}});var i,s,r=n(24246),l=n(56078),a=n(86677),o=n(77213),c=n(77830),d=n(58754),u=n(99716),p=n(27378),h=n(16643);(i=s||(s={})).IN_PROCESSING="in_processing",i.PENDING="pending",i.COMPLETE="complete",i.ERROR="error",i.PAUSED="paused",i.RETRYING="retrying",i.SKIPPED="skipped";let x={in_processing:"In processing",pending:"Pending",complete:"Complete",error:"Error",paused:"Paused",retrying:"Retrying",skipped:"Skipped"},m={error:"error",skipped:"warning",in_processing:void 0,pending:void 0,complete:void 0,paused:void 0,retrying:void 0};var g=n(90005),j=n.n(g),f=n(55807),v=n.n(f),y=n(16394),b=n(33254),_=n.n(b),w=e=>{let{results:t,onItemClicked:n}=e,i=v()(t,(e,t)=>({logs:e,key:t})),s=(0,p.useCallback)(e=>{let{logs:t,key:i}=e,s=t.some(e=>e.status===h.np.ERROR),a=t.some(e=>e.status===h.np.SKIPPED);return(0,r.jsx)("button",{type:"button",onClick:()=>n({key:i,logs:t}),className:j()(_().itemButton,{[_()["itemButton--error"]]:s}),"data-testid":"activity-timeline-item",children:(0,r.jsxs)("div",{className:_().header,children:[(0,r.jsx)("span",{"data-testid":"activity-timeline-author",children:"Fides:"}),(0,r.jsxs)("span",{className:j()(_().title,{[_()["title--error"]]:s,[_()["title--skipped"]]:a}),"data-testid":"activity-timeline-title",children:[i,s&&" failed"]}),(0,r.jsx)("span",{className:_().timestamp,"data-testid":"activity-timeline-timestamp",children:(0,y.p6)(t[0].updated_at)}),(0,r.jsx)(l.j8w,{color:"sandstone","data-testid":"activity-timeline-type",children:"Request update"}),(s||a)&&(0,r.jsx)("span",{className:_().viewLogs,"data-testid":"activity-timeline-view-logs",children:"View Log"})]})})},[n]);return(0,r.jsx)(l.krs,{className:_().collapse,bordered:!1,split:!1,"data-testid":"activity-timeline-list",children:i.map(s)})},R=n(88340),C=e=>{let{errorMessage:t,status:n=s.ERROR}=e;return(0,r.jsxs)(l.xuv,{height:"100%",id:"outer",children:[(0,r.jsxs)(l.kCb,{alignItems:"center",children:[(0,r.jsx)(l.xvT,{size:"sm",color:"gray.700",fontWeight:"medium",marginRight:"8px",lineHeight:"20px",children:"Status"}),(0,r.jsx)(l.j8w,{color:m[n],children:x[n]}),(0,r.jsx)(l.xuv,{padding:"0px",marginBottom:"3px",children:(0,r.jsx)(R.Z,{copyText:t})})]}),(0,r.jsx)(l.izJ,{marginTop:"4px",marginBottom:"6px"}),(0,r.jsx)(l.xuv,{id:"errorWrapper",overflow:"auto",height:"100%",children:(0,r.jsx)(l.xvT,{children:t})})]})},k=n(3124),S=n.n(k);let T=e=>{switch(e){case h.Us.ACCESS:return"Data Retrieval";case h.Us.ERASURE:return"Data Deletion";case h.Us.CONSENT:return"Consent";case h.Us.UPDATE:return"Data Update";default:return e}};var E=e=>{let{eventLogs:t,openErrorPanel:n}=e,i=null==t?void 0:t.map(e=>(0,r.jsxs)(l.Tr,{backgroundColor:e.status===s.ERROR||e.status===s.SKIPPED&&e.message?S().FIDESUI_NEUTRAL_50:"unset",onClick:()=>{(e.status===s.ERROR||e.status===s.SKIPPED&&e.message)&&n(e.message,e.status)},style:{cursor:e.status===s.ERROR||e.status===s.SKIPPED&&e.message?"pointer":"unset"},children:[(0,r.jsx)(l.Td,{children:(0,r.jsx)(l.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:(0,y.p6)(e.updated_at)})}),(0,r.jsx)(l.Td,{children:(0,r.jsx)(l.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:T(e.action_type)})}),(0,r.jsx)(l.Td,{children:(0,r.jsx)(l.j8w,{color:m[e.status],children:x[e.status]})}),(0,r.jsx)(l.Td,{children:(0,r.jsx)(l.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:e.collection_name})})]},e.updated_at));return(0,r.jsx)(l.xuv,{width:"100%",paddingTop:"0px",height:"100%",children:(0,r.jsx)(l.xJi,{id:"tableContainer",height:"100%",style:{overflowY:"auto"},children:(0,r.jsxs)(l.iA_,{size:"sm",id:"table",position:"relative",children:[(0,r.jsx)(l.hrZ,{id:"tableHeader",position:"sticky",top:"0px",backgroundColor:"white",children:(0,r.jsxs)(l.Tr,{children:[(0,r.jsx)(l.Th,{children:(0,r.jsx)(l.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Time"})}),(0,r.jsx)(l.Th,{children:(0,r.jsx)(l.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Action Type"})}),(0,r.jsx)(l.Th,{children:(0,r.jsx)(l.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Status"})}),(0,r.jsx)(l.Th,{children:(0,r.jsx)(l.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Collection"})})]})}),(0,r.jsx)(l.p3B,{id:"tableBody",children:i})]})})})},q=e=>{let{isOpen:t,onClose:n,currentLogs:i,isViewingError:a,errorMessage:o,currentStatus:c=s.ERROR,onCloseErrorPanel:d,onOpenErrorPanel:u}=e;return(0,r.jsxs)(l.dys,{isOpen:t,placement:"right",onClose:n,size:"full",autoFocus:!1,"data-testid":"log-drawer",children:[(0,r.jsx)(l.P1B,{}),(0,r.jsxs)(l.scA,{style:{width:"50%"},"data-testid":"log-drawer",children:[(0,r.jsx)(l.OXI,{style:{paddingBottom:"0px"},children:(0,r.jsxs)(l.kCb,{justifyContent:"space-between",alignItems:"center",height:"40px",children:[(0,r.jsxs)(l.kCb,{alignItems:"center",children:[a&&(0,r.jsx)(l.wpx,{icon:(0,r.jsx)(l.Rpv,{}),"aria-label":"Close error logs",size:"small",onClick:d}),(0,r.jsx)(l.xvT,{color:"gray.900",fontSize:"md",lineHeight:"6",fontWeight:"medium",ml:1,children:a?"Event detail":"Event log"})]}),(0,r.jsx)(l.wpx,{icon:(0,r.jsx)(l.LGN,{width:"17px"}),"aria-label":"Stop viewing error message",size:"small",onClick:n,"data-testid":"log-drawer-close"})]})}),(0,r.jsxs)(l.Ng0,{id:"drawerBody",overflow:"hidden",children:[i&&!a?(0,r.jsx)(E,{eventLogs:i,openErrorPanel:u}):null,a?(0,r.jsx)(C,{errorMessage:o,status:c}):null]})]})]})},A=e=>{let{subjectRequest:t}=e,{isOpen:n,onOpen:i,onClose:a}=(0,l.qY0)(),[o,c]=(0,p.useState)([]),[d,u]=(0,p.useState)(""),[h,x]=(0,p.useState)(!1),[m,g]=(0,p.useState)(""),[j,f]=(0,p.useState)(s.ERROR),{results:v}=t;(0,p.useEffect)(()=>{d&&v&&v[d]&&c(v[d])},[v,d]);let y=()=>{x(!1)},b=(e,t)=>{u(e),c(t),i()};return(0,r.jsxs)(l.xuv,{width:"100%",children:[(0,r.jsx)(w,{results:v,onItemClicked:e=>{let{key:t,logs:n}=e;return b(t,n)}}),(0,r.jsx)(q,{isOpen:n,onClose:()=>{h&&y(),u(""),a()},currentLogs:o,isViewingError:h,errorMessage:m,currentStatus:j,onOpenErrorPanel:(e,t)=>{g(e),t&&f(t),x(!0)},onCloseErrorPanel:y})]})},P=n(14047),N=n(14207),O=n(90867),I=n(16134);let D=e=>Array.from(new Set(e.filter(e=>Object.values(h.Us).includes(e.action_type)).map(e=>e.action_type)));var z=e=>{let{rules:t}=e,n=D(t).map(e=>(0,y.kC)(e)).map(e=>e);return(0,r.jsx)(l.AntTypography.Text,{children:n.join(" - ")})},L=n(34090),U=n(55484),M=e=>{let{connectorName:t,data:n,isSubmitting:i=!1,onSaveClick:s}=e,{isOpen:a,onOpen:o,onClose:c}=(0,l.qY0)(),d=(0,p.useRef)(null),u=async(e,t)=>{s({connection_key:n.connection_key,privacy_request_id:n.privacy_request_id,body:{...e}}),c()};return(0,r.jsxs)(r.Fragment,{children:[(null==n?void 0:n.checked)&&(0,r.jsx)(l.wpx,{onClick:o,size:"small",children:"Review"}),!(null==n?void 0:n.checked)&&(0,r.jsx)(l.wpx,{onClick:o,size:"small",type:"primary",children:"Begin manual input"}),(0,r.jsx)(L.J9,{enableReinitialize:!0,initialValues:{...n.fields},onSubmit:u,validateOnBlur:!1,validateOnChange:!1,validationSchema:U.Ry().shape({}),children:e=>(0,r.jsxs)(l.dys,{isOpen:a,placement:"right",initialFocusRef:d,onClose:c,size:"lg",children:[(0,r.jsx)(l.P1B,{}),(0,r.jsxs)(l.scA,{children:[(0,r.jsx)(l.cCv,{}),(0,r.jsxs)(l.OXI,{color:"gray.900",children:[(0,r.jsx)(l.xvT,{fontSize:"xl",mb:8,children:t}),(0,r.jsx)(l.izJ,{}),(0,r.jsx)(l.xvT,{fontSize:"md",mt:"4",children:"Manual access"}),(0,r.jsx)(l.xuv,{mt:"8px",children:(0,r.jsx)(l.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"normal",children:"Please complete the following PII fields that have been collected for the selected subject."})})]}),(0,r.jsx)(l.Ng0,{children:(0,r.jsx)(L.l0,{id:"manual-detail-form",noValidate:!0,children:(0,r.jsx)(l.gCW,{align:"stretch",gap:"16px",children:Object.entries(n.fields).map((e,t)=>{let[n]=e;return(0,r.jsx)(l.Ugi,{children:(0,r.jsx)(L.gN,{id:n,name:n,children:e=>{let{field:i}=e;return(0,r.jsxs)(l.NIc,{alignItems:"baseline",display:"inline-flex",children:[(0,r.jsx)(l.lXp,{color:"gray.900",fontSize:"14px",fontWeight:"semibold",htmlFor:n,w:"50%",children:n}),(0,r.jsx)(l.IIB,{...i,autoComplete:"off",color:"gray.700",placeholder:"Please enter ".concat(n),ref:0===t?d:void 0,size:"sm"})]})}})},n)})})})}),(0,r.jsx)(l.zeN,{justifyContent:"flex-start",children:(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(l.wpx,{onClick:c,children:"Cancel"}),(0,r.jsx)(l.wpx,{form:"manual-detail-form",loading:i,htmlType:"submit",children:"Save"})]})})]})]})})]})},W=e=>{let{connectorName:t,data:n,isSubmitting:i=!1,onSaveClick:s}=e,{isOpen:a,onOpen:o,onClose:c}=(0,l.qY0)(),d=(0,p.useRef)(null),u=async(e,t)=>{s({connection_key:n.connection_key,privacy_request_id:n.privacy_request_id,body:{...e}}),c()};return(0,r.jsxs)(r.Fragment,{children:[(null==n?void 0:n.checked)&&(0,r.jsx)(l.wpx,{onClick:o,size:"small",children:"Review"}),!(null==n?void 0:n.checked)&&(0,r.jsx)(l.wpx,{onClick:o,size:"small",type:"primary",children:"Begin manual input"}),(0,r.jsx)(L.J9,{enableReinitialize:!0,initialValues:{...n.fields},onSubmit:u,validateOnBlur:!1,validateOnChange:!1,validationSchema:U.Ry().shape({}),children:e=>(0,r.jsxs)(l.dys,{isOpen:a,placement:"right",initialFocusRef:d,onClose:c,size:"lg",children:[(0,r.jsx)(l.P1B,{}),(0,r.jsxs)(l.scA,{children:[(0,r.jsx)(l.cCv,{}),(0,r.jsxs)(l.OXI,{color:"gray.900",children:[(0,r.jsx)(l.xvT,{fontSize:"xl",mb:8,children:t}),(0,r.jsx)(l.izJ,{}),(0,r.jsx)(l.xvT,{fontSize:"md",mt:"4",children:"Manual erasure"}),(0,r.jsx)(l.xuv,{mt:"8px",children:(0,r.jsx)(l.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"normal",children:"Please delete the following PII fields associated with the selected subject if they are available. Once deleted, check the box to confirm the deletion."})})]}),(0,r.jsx)(l.Ng0,{children:(0,r.jsx)(L.l0,{id:"manual-detail-form",noValidate:!0,children:(0,r.jsx)(l.gCW,{align:"stretch",gap:"16px",children:Object.entries(n.fields).map(e=>{let[t]=e;return(0,r.jsx)(l.Ugi,{children:(0,r.jsx)(L.gN,{id:t,name:t,children:e=>{let{field:n}=e;return(0,r.jsxs)(l.NIc,{alignItems:"baseline",display:"inline-flex",children:[(0,r.jsx)(l.lXp,{color:"gray.900",fontSize:"14px",fontWeight:"semibold",htmlFor:t,w:"50%",children:t}),(0,r.jsx)(l.XZJ,{...n,isChecked:!!n.value,onChange:n.onChange,name:t,id:t})]})}})},t)})})})}),(0,r.jsx)(l.zeN,{justifyContent:"flex-start",children:(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(l.wpx,{onClick:c,children:"Cancel"}),(0,r.jsx)(l.wpx,{form:"manual-detail-form",loading:i,htmlType:"submit",children:"Save"})]})})]})]})})]})};let B=(e,t,n)=>e.includes(h.Us.ACCESS)?{ProcessingDetailComponent:M,uploadMutation:t,getUploadedWebhookDataEndpoint:O.$I.endpoints.getUploadedManualAccessWebhookData}:e.includes(h.Us.ERASURE)?{ProcessingDetailComponent:W,uploadMutation:n,getUploadedWebhookDataEndpoint:O.$I.endpoints.getUploadedManualErasureWebhookData}:null;var F=e=>{let{subjectRequest:t,onComplete:n}=e,i=(0,I.T)(),{errorAlert:s,successAlert:a}=(0,P.V)(),{handleError:o}=(0,P.H)(),[c,d]=(0,p.useState)([]),[u,x]=(0,p.useState)(!1),[m,g]=(0,p.useState)(!1),{data:j,isFetching:f,isLoading:v,isSuccess:y}=(0,N.W6)(),[b]=(0,O.w3)(),_=D(t.policy.rules),[w]=(0,O.nL)(),[R]=(0,O.UR)(),{ProcessingDetailComponent:C,uploadMutation:k,getUploadedWebhookDataEndpoint:S}=B(_,w,R),T=async()=>{try{x(!0),await b(t.id).unwrap(),a("Manual request has been received. Request now processing."),n()}catch(e){o(e)}finally{x(!1)}},E=async e=>{try{g(!0),await k(e).unwrap();let t={connection_key:e.connection_key,fields:{}};Object.entries(e.body).forEach(e=>{let[n,i]=e;t.fields[n]=i||""});let n=c.map(e=>e.connection_key===t.connection_key?{...e,checked:!0,fields:{...t.fields}}:e);d(n),a("Manual input successfully saved!")}catch(e){o(e)}finally{g(!1)}};return((0,p.useEffect)(()=>(y&&j.length>0&&0===c.length&&(()=>{if(c.length>0)return;let e=[],n=null==j?void 0:j.map(e=>e.connection_config.key);null==n||n.every(n=>e.push(i(S.initiate({connection_key:n,privacy_request_id:t.id})))),Promise.allSettled(e).then(e=>{let t=[];e.forEach((e,n)=>{if("fulfilled"===e.status&&e.value.isSuccess&&e.value.data){let n={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,i]=e;n.fields[t]=i||""}),t.push(n)}else s("An error occurred while loading manual input data for ".concat(j[n].connection_config.name))}),d(t)})})(),()=>{}),[j,c.length,i,s,y,t.id,S]),_.includes(h.Us.ACCESS)||_.includes(h.Us.ERASURE))?(0,r.jsxs)(l.gCW,{align:"stretch",spacing:8,children:[(0,r.jsx)(l.xuv,{children:(0,r.jsx)(l.xvT,{color:"gray.700",fontSize:"sm",children:"The following table details the integrations that require manual input from you."})}),(0,r.jsxs)(l.xuv,{children:[(f||v)&&(0,r.jsx)(l.M5Y,{children:(0,r.jsx)(l.$jN,{})}),y&&j?(0,r.jsx)(l.xJi,{children:(0,r.jsxs)(l.iA_,{size:"sm",variant:"unstyled",children:[(0,r.jsx)(l.hrZ,{children:(0,r.jsxs)(l.Tr,{children:[(0,r.jsx)(l.Th,{fontSize:"sm",fontWeight:"semibold",pl:"0",textTransform:"none",children:"Integration Identifier"}),(0,r.jsx)(l.Th,{})]})}),(0,r.jsxs)(l.p3B,{children:[j.length>0&&j.map(e=>(0,r.jsxs)(l.Tr,{display:"block",children:[(0,r.jsx)(l.Td,{pl:"0",children:e.connection_config.key}),(0,r.jsx)(l.Td,{children:c.length>0?(0,r.jsx)(C,{connectorName:e.connection_config.name,data:c.find(t=>t.connection_key===e.connection_config.key),isSubmitting:m,onSaveClick:E}):null})]},e.id)),0===j.length&&(0,r.jsx)(l.Tr,{children:(0,r.jsx)(l.Td,{colSpan:3,pl:"0",children:(0,r.jsx)(l.M5Y,{children:(0,r.jsx)(l.xvT,{children:"You don‘t have any Manual Process connections set up yet."})})})})]}),c.length>0&&c.every(e=>e.checked)?(0,r.jsx)(l.$RU,{children:(0,r.jsx)(l.Tr,{children:(0,r.jsx)(l.Th,{pl:"0px",children:(0,r.jsx)(l.wpx,{type:"primary",loading:u,onClick:T,className:"mt-2",children:"Complete DSR"})})})}):null]})}):null]})]}):null},V=n(8557),Z=e=>{let{daysLeft:t,includeText:n,status:i}=e;if(!t||i===V.q.COMPLETE||i===V.q.CANCELED||i===V.q.DENIED||i===V.q.IDENTITY_UNVERIFIED)return(0,r.jsx)("span",{children:"-"});let s="";switch(!0){case t>=10:s="success";break;case t<10&&t>4:s="warning";break;case t<5:s="error"}return(0,r.jsx)(l.j8w,{color:s,children:n?"".concat(t," days left"):t})},Y=n(25980);let J={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:"alert",label:"Requires Input"}};var X=e=>{let{status:t}=e;return(0,r.jsx)(l.j8w,{color:J[t].color,className:"justify-center","data-testid":"request-status-badge",children:J[t].label})},G=n(15709),H=n.n(G),K=e=>{let{label:t,children:n}=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(H().label),children:(0,r.jsxs)(l.AntTypography.Text,{children:[t,":"]})}),(0,r.jsx)("div",{className:"min-w-0 shrink grow ".concat(H().value),"data-testid":"request-detail-value-".concat(t),children:n})]})},$=e=>{let{subjectRequest:t}=e,{custom_privacy_request_fields:n}=t;return(0,r.jsx)("div",{className:"flex flex-col gap-2",children:n&&Object.keys(n).length>0&&Object.entries(n).filter(e=>{let[,t]=e;return t.value}).map(e=>{let[t,n]=e;return(0,r.jsx)(K,{label:n.label,children:(0,r.jsx)(l.AntTypography.Text,{children:Array.isArray(n.value)?n.value.join(", "):n.value})},t)})})},Q=e=>{let{subjectRequest:t}=e,{plus:n}=(0,Y.hz)(),{id:i,status:s,policy:a,identity:o,identity_verified_at:c}=t;return(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"mb-6",children:(0,r.jsx)(l.AntTypography.Title,{level:2,children:"Request details"})}),(0,r.jsxs)(l.jqI,{vertical:!0,gap:12,className:"mb-6",children:[(0,r.jsx)(K,{label:"Status",children:(0,r.jsx)(X,{status:s})}),(0,r.jsx)(K,{label:"Time remaining",children:(0,r.jsx)(Z,{daysLeft:t.days_left,includeText:!0,status:t.status})}),(0,r.jsx)(K,{label:"Request type",children:(0,r.jsx)(z,{rules:a.rules})}),(0,r.jsx)(K,{label:"Source",children:n&&(0,r.jsx)(l.AntTypography.Text,{children:t.source||"-"})}),Object.entries(o).filter(e=>{let[,{value:t}]=e;return null!==t}).map(e=>{let[t,{value:n="",label:i}]=e,s="".concat(n).concat(c?"":" (Unverified)");return(0,r.jsx)(K,{label:"Subject ".concat(i.toLocaleLowerCase()),children:(0,r.jsx)(l.esZ,{title:s,trigger:"click",children:(0,r.jsx)(l.AntTypography.Text,{ellipsis:!0,children:s})})},t)}),(0,r.jsx)($,{subjectRequest:t})]}),(0,r.jsxs)(l.PPS,{layout:"vertical",children:[(0,r.jsx)(l.PPS.Item,{label:"Request ID:",className:"mb-4",children:(0,r.jsxs)(l.jqI,{gap:1,children:[(0,r.jsx)(l.uFc,{readOnly:!0,value:i,"data-testid":"request-detail-value-id"}),(0,r.jsx)(R.Z,{copyText:i,size:"small"})]})}),(0,r.jsx)(l.PPS.Item,{label:"Policy key:",className:"mb-4",children:(0,r.jsx)(l.uFc,{readOnly:!0,value:t.policy.key,"data-testid":"request-detail-value-policy"})})]})]})},ee=e=>{var t;let{data:n}=e,i=(0,p.useMemo)(()=>({id:n.id,verbose:!0}),[n.id]),{data:s}=(0,u.QA)(i,{pollingInterval:n.status===h.q2.APPROVED||n.status===h.q2.IN_PROCESSING?2e3:0,skip:!n.id}),a=null!==(t=null==s?void 0:s.items[0])&&void 0!==t?t:n,o=a.status===h.q2.REQUIRES_INPUT,[c,d]=(0,p.useState)(o?"manual-steps":"activity"),x=(0,p.useMemo)(()=>[{key:"activity",label:"Activity",children:(0,r.jsx)(A,{subjectRequest:a})},{key:"manual-steps",label:"Manual steps",children:(0,r.jsx)(F,{subjectRequest:a,onComplete:()=>d("activity")}),disabled:!o}],[o,a]);return(0,r.jsxs)("div",{className:"flex gap-8",children:[(0,r.jsx)("div",{className:"flex-1",children:(0,r.jsx)(l.A5g,{items:x,activeKey:c,onChange:d})}),(0,r.jsx)("div",{className:"w-1/3 2xl:w-[432px]","data-testid":"privacy-request-details",children:(0,r.jsx)(Q,{subjectRequest:a})})]})},et=n(57526),en=n(66548),ei=n(45489),es=e=>{let{privacyRequest:t,action:n}=e,{handleApproveRequest:i,handleDenyRequest:s}=(0,ei.Z)({subjectRequest:t}),r=t.status===h.q2.PENDING,a=(0,l.qY0)(),o=async e=>{let{reason:t}=e,r=l.Pg3.loading({content:"approve"===n?"Approving request...":"Denying request..."});"deny"===n&&await s(t),"approve"===n&&await i(),r()};return{showAction:r,closeModal:a.onClose,performAction:o,openConfirmationModal:a.onOpen,isModalOpen:a.isOpen}},er=n(812),el=n(19904),ea=e=>{var t,n,i;let{privacyRequest:s}=e,r=null===(n=(0,Y.hz)())||void 0===n?void 0:null===(t=n.flags)||void 0===t?void 0:t.downloadAccessRequestResults,l=s.status===h.q2.COMPLETE,a=D(s.policy.rules).includes(h.Us.ACCESS),o=(0,el.Tg)([h.Sh.PRIVACY_REQUEST_ACCESS_RESULTS_READ]),{data:c,isLoading:d,isError:u,error:p}=(0,O.br)({privacy_request_id:s.id}),x=null!==(i=null==c?void 0:c.access_result_urls[0])&&void 0!==i?i:"",m=!!x&&"your local fides_uploads folder"!==x,g=null;return u?g=(0,er.e$)(p,"Unable to resolve download URL"):m||(g="Requests stored locally cannot be downloaded"),{showDownloadResults:r&&o&&a&&l,downloadResults:()=>{let e=document.createElement("a");e.href=x,e.target="_blank",e.rel="noopener noreferrer",e.click(),e.remove()},infoTooltip:g,isLoading:d,isDisabled:!m}},eo=e=>{let{privacyRequest:t}=e,{errorAlert:n,successAlert:i}=(0,P.V)(),s=t.status===h.q2.ERROR,[r]=(0,O.Fq)();return{reprocessPrivacyRequest:async()=>{if(!t)return;let e=l.Pg3.loading("Reprocessing privacy request...",0),s=await r(t);"error"in s?n((0,er.e$)(s.error),"DSR automation has failed for this privacy request due to the following:",{duration:null}):i("Privacy request is now being reprocessed."),e()},showReprocess:s}},ec=e=>{let{privacyRequest:t}=e,{showDownloadResults:n,downloadResults:i,infoTooltip:s,isDisabled:a}=ea({privacyRequest:t}),{isModalOpen:o,closeModal:c,performAction:d,openConfirmationModal:u,showAction:h}=es({privacyRequest:t,action:"approve"}),{isModalOpen:x,closeModal:m,performAction:g,openConfirmationModal:j,showAction:f}=es({privacyRequest:t,action:"deny"}),{reprocessPrivacyRequest:v,showReprocess:y}=eo({privacyRequest:t}),b=(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:!h}),e.push({key:"deny",label:(0,r.jsx)("span",{"data-testid":"privacy-request-deny-btn",children:"Deny"}),onClick:j,disabled:!f}),e.push({key:"reprocess",label:(0,r.jsx)("span",{"data-testid":"privacy-request-action-reprocess",children:"Reprocess"}),onClick:v,disabled:!y}),n&&e.push({key:"download",label:(0,r.jsx)(l.esZ,{title:a?s:null,placement:"bottom",children:(0,r.jsx)("span",{"data-testid":"download-results-btn",children:"Download request results"})}),onClick:i,disabled:a}),e},[n,i,s,a,h,f,u,j,y,v]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.S0p,{menu:{items:b},trigger:["click"],overlayStyle:{minWidth:"160px"},children:(0,r.jsx)(l.wpx,{icon:(0,r.jsx)(l.PJP.pO,{}),"data-testid":"privacy-request-actions-dropdown-btn",iconPosition:"end",type:"primary",disabled:!b.length,size:"large",children:"Actions"})}),(0,r.jsx)(et.Z,{isOpen:o,isLoading:!1,onClose:c,onApproveRequest:()=>d({reason:""}),subjectRequest:t}),(0,r.jsx)(en.Z,{isOpen:x,onClose:m,onDenyRequest:e=>g({reason:e})})]})},ed=()=>{let e=(0,a.useRouter)().query.id,{data:t,isLoading:n}=(0,u.QA)({id:e,verbose:!0},{skip:!e}),i=(null==t?void 0:t.items[0])||null;return(0,r.jsxs)(o.Z,{title:"Privacy Request - ".concat(e),children:[(0,r.jsx)(d.Z,{heading:"Privacy Requests",breadcrumbItems:[{title:"All requests",href:c.Jw},{title:"Request details"}],rightContent:!!i&&(0,r.jsx)(ec,{privacyRequest:i})}),n&&(0,r.jsx)(l.M5Y,{children:(0,r.jsx)(l.$jN,{})}),!n&&!i&&(0,r.jsx)(l.xvT,{children:"404 no privacy request found"}),!n&&i&&(0,r.jsx)(ee,{data:i})]})}},19043:function(e,t,n){"use strict";n.d(t,{Bw:function(){return l},D4:function(){return s},Dy:function(){return o},XD:function(){return c},cz:function(){return d},hE:function(){return a},oK:function(){return r}});var i=n(76649);let s=e=>"error"in e,r=e=>(0,i.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,l=e=>(0,i.Ln)({status:"number",data:{}},e),a=e=>(0,i.Ln)({detail:"string"},e),o=e=>(0,i.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,i.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),d=e=>(0,i.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)},15709:function(e){e.exports={value:"RequestDetailsRow_value__WMXn3",label:"RequestDetailsRow_label__dn3CQ"}},33254:function(e){e.exports={itemButton:"ActivityTimelineList_itemButton___zZAL","itemButton--error":"ActivityTimelineList_itemButton--error__s_p3y",header:"ActivityTimelineList_header__c6_1X",title:"ActivityTimelineList_title__BhPbu","title--error":"ActivityTimelineList_title--error__OWYRS",timestamp:"ActivityTimelineList_timestamp__kg6oj",viewLogs:"ActivityTimelineList_viewLogs__dD3WJ",logs:"ActivityTimelineList_logs__uuT2f","logs--open":"ActivityTimelineList_logs--open__rkg5L"}},76649:function(e,t,n){"use strict";n.d(t,{Ln:function(){return i}});let i=(e,t)=>r(e,t),s=Symbol("SOME"),r=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?s in e?e.some(e=>r(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>r(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,n])=>r(n,t[e]));class l{static narrow(e){return new l(t=>i(e,t))}constructor(e){this.NF=void 0,this.NF=e}satisfied(e){return this.NF(e)}build(e){return e}and(e){let t=this.NF,n=e instanceof l?e.NF:e instanceof Function?e:t=>i(e,t);return new l(e=>t(e)&&n(e))}}new l(e=>!0)}},function(e){e.O(0,[2858,2866,9278,8433,2888,9774,179],function(){return e(e.s=6554)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9650],{96539:function(e,t,n){var i=n(77400).Symbol;e.exports=i},52033:function(e,t,n){var i=n(26194),s=n(26789)(i);e.exports=s},49819:function(e,t,n){var i=n(18911)();e.exports=i},26194:function(e,t,n){var i=n(49819),s=n(50098);e.exports=function(e,t){return e&&i(e,t,s)}},99736:function(e,t,n){var i=n(96539),s=n(34840),r=n(21258),l=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":l&&l in Object(e)?s(e):r(e)}},67375:function(e,t,n){var i=n(52033),s=n(80068);e.exports=function(e,t){var n=-1,r=s(e)?Array(e.length):[];return i(e,function(e,i,s){r[++n]=t(e,i,s)}),r}},26789:function(e,t,n){var i=n(80068);e.exports=function(e,t){return function(n,s){if(null==n)return n;if(!i(n))return e(n,s);for(var r=n.length,l=t?r:-1,a=Object(n);(t?l--:++l<r)&&!1!==s(a[l],l,a););return n}}},18911:function(e){e.exports=function(e){return function(t,n,i){for(var s=-1,r=Object(t),l=i(t),a=l.length;a--;){var o=l[e?a:++s];if(!1===n(r[o],o,r))break}return t}}},39120:function(e,t,n){var i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=i},34840:function(e,t,n){var i=n(96539),s=Object.prototype,r=s.hasOwnProperty,l=s.toString,a=i?i.toStringTag:void 0;e.exports=function(e){var t=r.call(e,a),n=e[a];try{e[a]=void 0;var i=!0}catch(e){}var s=l.call(e);return i&&(t?e[a]=n:delete e[a]),s}},21258:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},77400:function(e,t,n){var i=n(39120),s="object"==typeof self&&self&&self.Object===Object&&self,r=i||s||Function("return this")();e.exports=r},92360:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},55807:function(e,t,n){var i=n(66070),s=n(89278),r=n(67375),l=n(19785);e.exports=function(e,t){return(l(e)?i:r)(e,s(t,3))}},6554:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/privacy-requests/[id]",function(){return n(41629)}])},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var i=n(24246),s=n(77181),r=n(88038),l=n.n(r),a=n(86677);n(27378);var o=n(25980),c=n(90867),d=n(77830),u=()=>{let e=(0,a.useRouter)();return(0,i.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(s.xuv,{children:[(0,i.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(s.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,i.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:n,padded:r=!0,mainProps:d}=e,p=(0,o.hz)(),h=(0,a.useRouter)(),x="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,m=!(p.flags.privacyRequestsConfiguration&&x),{data:g}=(0,c.JE)(void 0,{skip:m}),{data:j}=(0,c.PW)(void 0,{skip:m}),f=p.flags.privacyRequestsConfiguration&&(!g||!j)&&x;return(0,i.jsxs)(s.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(l(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(s.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[f?(0,i.jsx)(u,{}):null,t]})]})}},812:function(e,t,n){"use strict";n.d(t,{D4:function(){return r.D4},MM:function(){return p},Ot:function(){return c},c6:function(){return s},cj:function(){return x},e$:function(){return a},fn:function(){return o},iC:function(){return h},nU:function(){return u},tB:function(){return d}});var i,s,r=n(19043);let l="An unexpected error occurred. Please try again.",a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;if((0,r.Bw)(e)){if((0,r.hE)(e.data))return e.data.detail;if((0,r.cz)(e.data)){var n;let t=null===(n=e.data.detail)||void 0===n?void 0:n[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,r.Dy)(e.data)||404===e.status&&(0,r.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function o(e){return"object"==typeof e&&null!=e&&"status"in e}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function d(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:l};if((0,r.oK)(e))return{status:e.originalStatus,message:e.data};if((0,r.Bw)(e)){let{status:n}=e;return{status:n,message:a(e,t.message)}}return t},p=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(i=s||(s={})).GVL="gvl",i.AC="gacp",i.COMPASS="compass";let h={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},x=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},41629:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ed}});var i,s,r=n(24246),l=n(77181),a=n(86677),o=n(77213),c=n(77830),d=n(58754),u=n(99716),p=n(27378),h=n(62656);(i=s||(s={})).IN_PROCESSING="in_processing",i.PENDING="pending",i.COMPLETE="complete",i.ERROR="error",i.PAUSED="paused",i.RETRYING="retrying",i.SKIPPED="skipped";let x={in_processing:"In processing",pending:"Pending",complete:"Complete",error:"Error",paused:"Paused",retrying:"Retrying",skipped:"Skipped"},m={error:"error",skipped:"warning",in_processing:void 0,pending:void 0,complete:void 0,paused:void 0,retrying:void 0};var g=n(90005),j=n.n(g),f=n(55807),v=n.n(f),y=n(16394),b=n(33254),_=n.n(b),w=e=>{let{results:t,onItemClicked:n}=e,i=v()(t,(e,t)=>({logs:e,key:t})),s=(0,p.useCallback)(e=>{let{logs:t,key:i}=e,s=t.some(e=>e.status===h.np.ERROR),a=t.some(e=>e.status===h.np.SKIPPED);return(0,r.jsx)("button",{type:"button",onClick:()=>n({key:i,logs:t}),className:j()(_().itemButton,{[_()["itemButton--error"]]:s}),"data-testid":"activity-timeline-item",children:(0,r.jsxs)("div",{className:_().header,children:[(0,r.jsx)("span",{"data-testid":"activity-timeline-author",children:"Fides:"}),(0,r.jsxs)("span",{className:j()(_().title,{[_()["title--error"]]:s,[_()["title--skipped"]]:a}),"data-testid":"activity-timeline-title",children:[i,s&&" failed"]}),(0,r.jsx)("span",{className:_().timestamp,"data-testid":"activity-timeline-timestamp",children:(0,y.p6)(t[0].updated_at)}),(0,r.jsx)(l.j8w,{color:"sandstone","data-testid":"activity-timeline-type",children:"Request update"}),(s||a)&&(0,r.jsx)("span",{className:_().viewLogs,"data-testid":"activity-timeline-view-logs",children:"View Log"})]})})},[n]);return(0,r.jsx)(l.krs,{className:_().collapse,bordered:!1,split:!1,"data-testid":"activity-timeline-list",children:i.map(s)})},R=n(88340),C=e=>{let{errorMessage:t,status:n=s.ERROR}=e;return(0,r.jsxs)(l.xuv,{height:"100%",id:"outer",children:[(0,r.jsxs)(l.kCb,{alignItems:"center",children:[(0,r.jsx)(l.xvT,{size:"sm",color:"gray.700",fontWeight:"medium",marginRight:"8px",lineHeight:"20px",children:"Status"}),(0,r.jsx)(l.j8w,{color:m[n],children:x[n]}),(0,r.jsx)(l.xuv,{padding:"0px",marginBottom:"3px",children:(0,r.jsx)(R.Z,{copyText:t})})]}),(0,r.jsx)(l.izJ,{marginTop:"4px",marginBottom:"6px"}),(0,r.jsx)(l.xuv,{id:"errorWrapper",overflow:"auto",height:"100%",children:(0,r.jsx)(l.xvT,{children:t})})]})},k=n(3124),S=n.n(k);let T=e=>{switch(e){case h.Us.ACCESS:return"Data Retrieval";case h.Us.ERASURE:return"Data Deletion";case h.Us.CONSENT:return"Consent";case h.Us.UPDATE:return"Data Update";default:return e}};var E=e=>{let{eventLogs:t,openErrorPanel:n}=e,i=null==t?void 0:t.map(e=>(0,r.jsxs)(l.Tr,{backgroundColor:e.status===s.ERROR||e.status===s.SKIPPED&&e.message?S().FIDESUI_NEUTRAL_50:"unset",onClick:()=>{(e.status===s.ERROR||e.status===s.SKIPPED&&e.message)&&n(e.message,e.status)},style:{cursor:e.status===s.ERROR||e.status===s.SKIPPED&&e.message?"pointer":"unset"},children:[(0,r.jsx)(l.Td,{children:(0,r.jsx)(l.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:(0,y.p6)(e.updated_at)})}),(0,r.jsx)(l.Td,{children:(0,r.jsx)(l.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:T(e.action_type)})}),(0,r.jsx)(l.Td,{children:(0,r.jsx)(l.j8w,{color:m[e.status],children:x[e.status]})}),(0,r.jsx)(l.Td,{children:(0,r.jsx)(l.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:e.collection_name})})]},e.updated_at));return(0,r.jsx)(l.xuv,{width:"100%",paddingTop:"0px",height:"100%",children:(0,r.jsx)(l.xJi,{id:"tableContainer",height:"100%",style:{overflowY:"auto"},children:(0,r.jsxs)(l.iA_,{size:"sm",id:"table",position:"relative",children:[(0,r.jsx)(l.hrZ,{id:"tableHeader",position:"sticky",top:"0px",backgroundColor:"white",children:(0,r.jsxs)(l.Tr,{children:[(0,r.jsx)(l.Th,{children:(0,r.jsx)(l.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Time"})}),(0,r.jsx)(l.Th,{children:(0,r.jsx)(l.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Action Type"})}),(0,r.jsx)(l.Th,{children:(0,r.jsx)(l.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Status"})}),(0,r.jsx)(l.Th,{children:(0,r.jsx)(l.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Collection"})})]})}),(0,r.jsx)(l.p3B,{id:"tableBody",children:i})]})})})},q=e=>{let{isOpen:t,onClose:n,currentLogs:i,isViewingError:a,errorMessage:o,currentStatus:c=s.ERROR,onCloseErrorPanel:d,onOpenErrorPanel:u}=e;return(0,r.jsxs)(l.dys,{isOpen:t,placement:"right",onClose:n,size:"full",autoFocus:!1,"data-testid":"log-drawer",children:[(0,r.jsx)(l.P1B,{}),(0,r.jsxs)(l.scA,{style:{width:"50%"},"data-testid":"log-drawer",children:[(0,r.jsx)(l.OXI,{style:{paddingBottom:"0px"},children:(0,r.jsxs)(l.kCb,{justifyContent:"space-between",alignItems:"center",height:"40px",children:[(0,r.jsxs)(l.kCb,{alignItems:"center",children:[a&&(0,r.jsx)(l.wpx,{icon:(0,r.jsx)(l.Rpv,{}),"aria-label":"Close error logs",size:"small",onClick:d}),(0,r.jsx)(l.xvT,{color:"gray.900",fontSize:"md",lineHeight:"6",fontWeight:"medium",ml:1,children:a?"Event detail":"Event log"})]}),(0,r.jsx)(l.wpx,{icon:(0,r.jsx)(l.LGN,{width:"17px"}),"aria-label":"Stop viewing error message",size:"small",onClick:n,"data-testid":"log-drawer-close"})]})}),(0,r.jsxs)(l.Ng0,{id:"drawerBody",overflow:"hidden",children:[i&&!a?(0,r.jsx)(E,{eventLogs:i,openErrorPanel:u}):null,a?(0,r.jsx)(C,{errorMessage:o,status:c}):null]})]})]})},A=e=>{let{subjectRequest:t}=e,{isOpen:n,onOpen:i,onClose:a}=(0,l.qY0)(),[o,c]=(0,p.useState)([]),[d,u]=(0,p.useState)(""),[h,x]=(0,p.useState)(!1),[m,g]=(0,p.useState)(""),[j,f]=(0,p.useState)(s.ERROR),{results:v}=t;(0,p.useEffect)(()=>{d&&v&&v[d]&&c(v[d])},[v,d]);let y=()=>{x(!1)},b=(e,t)=>{u(e),c(t),i()};return(0,r.jsxs)(l.xuv,{width:"100%",children:[(0,r.jsx)(w,{results:v,onItemClicked:e=>{let{key:t,logs:n}=e;return b(t,n)}}),(0,r.jsx)(q,{isOpen:n,onClose:()=>{h&&y(),u(""),a()},currentLogs:o,isViewingError:h,errorMessage:m,currentStatus:j,onOpenErrorPanel:(e,t)=>{g(e),t&&f(t),x(!0)},onCloseErrorPanel:y})]})},N=n(14047),P=n(14207),O=n(90867),I=n(16134);let D=e=>Array.from(new Set(e.filter(e=>Object.values(h.Us).includes(e.action_type)).map(e=>e.action_type)));var z=e=>{let{rules:t}=e,n=D(t).map(e=>(0,y.kC)(e)).map(e=>e);return(0,r.jsx)(l.AntTypography.Text,{children:n.join(" - ")})},L=n(34090),U=n(55484),M=e=>{let{connectorName:t,data:n,isSubmitting:i=!1,onSaveClick:s}=e,{isOpen:a,onOpen:o,onClose:c}=(0,l.qY0)(),d=(0,p.useRef)(null),u=async(e,t)=>{s({connection_key:n.connection_key,privacy_request_id:n.privacy_request_id,body:{...e}}),c()};return(0,r.jsxs)(r.Fragment,{children:[(null==n?void 0:n.checked)&&(0,r.jsx)(l.wpx,{onClick:o,size:"small",children:"Review"}),!(null==n?void 0:n.checked)&&(0,r.jsx)(l.wpx,{onClick:o,size:"small",type:"primary",children:"Begin manual input"}),(0,r.jsx)(L.J9,{enableReinitialize:!0,initialValues:{...n.fields},onSubmit:u,validateOnBlur:!1,validateOnChange:!1,validationSchema:U.Ry().shape({}),children:e=>(0,r.jsxs)(l.dys,{isOpen:a,placement:"right",initialFocusRef:d,onClose:c,size:"lg",children:[(0,r.jsx)(l.P1B,{}),(0,r.jsxs)(l.scA,{children:[(0,r.jsx)(l.cCv,{}),(0,r.jsxs)(l.OXI,{color:"gray.900",children:[(0,r.jsx)(l.xvT,{fontSize:"xl",mb:8,children:t}),(0,r.jsx)(l.izJ,{}),(0,r.jsx)(l.xvT,{fontSize:"md",mt:"4",children:"Manual access"}),(0,r.jsx)(l.xuv,{mt:"8px",children:(0,r.jsx)(l.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"normal",children:"Please complete the following PII fields that have been collected for the selected subject."})})]}),(0,r.jsx)(l.Ng0,{children:(0,r.jsx)(L.l0,{id:"manual-detail-form",noValidate:!0,children:(0,r.jsx)(l.gCW,{align:"stretch",gap:"16px",children:Object.entries(n.fields).map((e,t)=>{let[n]=e;return(0,r.jsx)(l.Ugi,{children:(0,r.jsx)(L.gN,{id:n,name:n,children:e=>{let{field:i}=e;return(0,r.jsxs)(l.NIc,{alignItems:"baseline",display:"inline-flex",children:[(0,r.jsx)(l.lXp,{color:"gray.900",fontSize:"14px",fontWeight:"semibold",htmlFor:n,w:"50%",children:n}),(0,r.jsx)(l.IIB,{...i,autoComplete:"off",color:"gray.700",placeholder:"Please enter ".concat(n),ref:0===t?d:void 0,size:"sm"})]})}})},n)})})})}),(0,r.jsx)(l.zeN,{justifyContent:"flex-start",children:(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(l.wpx,{onClick:c,children:"Cancel"}),(0,r.jsx)(l.wpx,{form:"manual-detail-form",loading:i,htmlType:"submit",children:"Save"})]})})]})]})})]})},W=e=>{let{connectorName:t,data:n,isSubmitting:i=!1,onSaveClick:s}=e,{isOpen:a,onOpen:o,onClose:c}=(0,l.qY0)(),d=(0,p.useRef)(null),u=async(e,t)=>{s({connection_key:n.connection_key,privacy_request_id:n.privacy_request_id,body:{...e}}),c()};return(0,r.jsxs)(r.Fragment,{children:[(null==n?void 0:n.checked)&&(0,r.jsx)(l.wpx,{onClick:o,size:"small",children:"Review"}),!(null==n?void 0:n.checked)&&(0,r.jsx)(l.wpx,{onClick:o,size:"small",type:"primary",children:"Begin manual input"}),(0,r.jsx)(L.J9,{enableReinitialize:!0,initialValues:{...n.fields},onSubmit:u,validateOnBlur:!1,validateOnChange:!1,validationSchema:U.Ry().shape({}),children:e=>(0,r.jsxs)(l.dys,{isOpen:a,placement:"right",initialFocusRef:d,onClose:c,size:"lg",children:[(0,r.jsx)(l.P1B,{}),(0,r.jsxs)(l.scA,{children:[(0,r.jsx)(l.cCv,{}),(0,r.jsxs)(l.OXI,{color:"gray.900",children:[(0,r.jsx)(l.xvT,{fontSize:"xl",mb:8,children:t}),(0,r.jsx)(l.izJ,{}),(0,r.jsx)(l.xvT,{fontSize:"md",mt:"4",children:"Manual erasure"}),(0,r.jsx)(l.xuv,{mt:"8px",children:(0,r.jsx)(l.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"normal",children:"Please delete the following PII fields associated with the selected subject if they are available. Once deleted, check the box to confirm the deletion."})})]}),(0,r.jsx)(l.Ng0,{children:(0,r.jsx)(L.l0,{id:"manual-detail-form",noValidate:!0,children:(0,r.jsx)(l.gCW,{align:"stretch",gap:"16px",children:Object.entries(n.fields).map(e=>{let[t]=e;return(0,r.jsx)(l.Ugi,{children:(0,r.jsx)(L.gN,{id:t,name:t,children:e=>{let{field:n}=e;return(0,r.jsxs)(l.NIc,{alignItems:"baseline",display:"inline-flex",children:[(0,r.jsx)(l.lXp,{color:"gray.900",fontSize:"14px",fontWeight:"semibold",htmlFor:t,w:"50%",children:t}),(0,r.jsx)(l.XZJ,{...n,isChecked:!!n.value,onChange:n.onChange,name:t,id:t})]})}})},t)})})})}),(0,r.jsx)(l.zeN,{justifyContent:"flex-start",children:(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(l.wpx,{onClick:c,children:"Cancel"}),(0,r.jsx)(l.wpx,{form:"manual-detail-form",loading:i,htmlType:"submit",children:"Save"})]})})]})]})})]})};let B=(e,t,n)=>e.includes(h.Us.ACCESS)?{ProcessingDetailComponent:M,uploadMutation:t,getUploadedWebhookDataEndpoint:O.$I.endpoints.getUploadedManualAccessWebhookData}:e.includes(h.Us.ERASURE)?{ProcessingDetailComponent:W,uploadMutation:n,getUploadedWebhookDataEndpoint:O.$I.endpoints.getUploadedManualErasureWebhookData}:null;var F=e=>{let{subjectRequest:t,onComplete:n}=e,i=(0,I.T)(),{errorAlert:s,successAlert:a}=(0,N.V)(),{handleError:o}=(0,N.H)(),[c,d]=(0,p.useState)([]),[u,x]=(0,p.useState)(!1),[m,g]=(0,p.useState)(!1),{data:j,isFetching:f,isLoading:v,isSuccess:y}=(0,P.W6)(),[b]=(0,O.w3)(),_=D(t.policy.rules),[w]=(0,O.nL)(),[R]=(0,O.UR)(),{ProcessingDetailComponent:C,uploadMutation:k,getUploadedWebhookDataEndpoint:S}=B(_,w,R),T=async()=>{try{x(!0),await b(t.id).unwrap(),a("Manual request has been received. Request now processing."),n()}catch(e){o(e)}finally{x(!1)}},E=async e=>{try{g(!0),await k(e).unwrap();let t={connection_key:e.connection_key,fields:{}};Object.entries(e.body).forEach(e=>{let[n,i]=e;t.fields[n]=i||""});let n=c.map(e=>e.connection_key===t.connection_key?{...e,checked:!0,fields:{...t.fields}}:e);d(n),a("Manual input successfully saved!")}catch(e){o(e)}finally{g(!1)}};return((0,p.useEffect)(()=>(y&&j.length>0&&0===c.length&&(()=>{if(c.length>0)return;let e=[],n=null==j?void 0:j.map(e=>e.connection_config.key);null==n||n.every(n=>e.push(i(S.initiate({connection_key:n,privacy_request_id:t.id})))),Promise.allSettled(e).then(e=>{let t=[];e.forEach((e,n)=>{if("fulfilled"===e.status&&e.value.isSuccess&&e.value.data){let n={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,i]=e;n.fields[t]=i||""}),t.push(n)}else s("An error occurred while loading manual input data for ".concat(j[n].connection_config.name))}),d(t)})})(),()=>{}),[j,c.length,i,s,y,t.id,S]),_.includes(h.Us.ACCESS)||_.includes(h.Us.ERASURE))?(0,r.jsxs)(l.gCW,{align:"stretch",spacing:8,children:[(0,r.jsx)(l.xuv,{children:(0,r.jsx)(l.xvT,{color:"gray.700",fontSize:"sm",children:"The following table details the integrations that require manual input from you."})}),(0,r.jsxs)(l.xuv,{children:[(f||v)&&(0,r.jsx)(l.M5Y,{children:(0,r.jsx)(l.$jN,{})}),y&&j?(0,r.jsx)(l.xJi,{children:(0,r.jsxs)(l.iA_,{size:"sm",variant:"unstyled",children:[(0,r.jsx)(l.hrZ,{children:(0,r.jsxs)(l.Tr,{children:[(0,r.jsx)(l.Th,{fontSize:"sm",fontWeight:"semibold",pl:"0",textTransform:"none",children:"Integration Identifier"}),(0,r.jsx)(l.Th,{})]})}),(0,r.jsxs)(l.p3B,{children:[j.length>0&&j.map(e=>(0,r.jsxs)(l.Tr,{display:"block",children:[(0,r.jsx)(l.Td,{pl:"0",children:e.connection_config.key}),(0,r.jsx)(l.Td,{children:c.length>0?(0,r.jsx)(C,{connectorName:e.connection_config.name,data:c.find(t=>t.connection_key===e.connection_config.key),isSubmitting:m,onSaveClick:E}):null})]},e.id)),0===j.length&&(0,r.jsx)(l.Tr,{children:(0,r.jsx)(l.Td,{colSpan:3,pl:"0",children:(0,r.jsx)(l.M5Y,{children:(0,r.jsx)(l.xvT,{children:"You don‘t have any Manual Process connections set up yet."})})})})]}),c.length>0&&c.every(e=>e.checked)?(0,r.jsx)(l.$RU,{children:(0,r.jsx)(l.Tr,{children:(0,r.jsx)(l.Th,{pl:"0px",children:(0,r.jsx)(l.wpx,{type:"primary",loading:u,onClick:T,className:"mt-2",children:"Complete DSR"})})})}):null]})}):null]})]}):null},Y=n(8557),V=e=>{let{daysLeft:t,includeText:n,status:i}=e;if(!t||i===Y.q.COMPLETE||i===Y.q.CANCELED||i===Y.q.DENIED||i===Y.q.IDENTITY_UNVERIFIED)return(0,r.jsx)("span",{children:"-"});let s="";switch(!0){case t>=10:s="success";break;case t<10&&t>4:s="warning";break;case t<5:s="error"}return(0,r.jsx)(l.j8w,{color:s,children:n?"".concat(t," days left"):t})},Z=n(25980);let J={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:"alert",label:"Requires Input"}};var X=e=>{let{status:t}=e;return(0,r.jsx)(l.j8w,{color:J[t].color,className:"justify-center","data-testid":"request-status-badge",children:J[t].label})},G=n(15709),H=n.n(G),K=e=>{let{label:t,children:n}=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(H().label),children:(0,r.jsxs)(l.AntTypography.Text,{children:[t,":"]})}),(0,r.jsx)("div",{className:"min-w-0 shrink grow ".concat(H().value),"data-testid":"request-detail-value-".concat(t),children:n})]})},$=e=>{let{subjectRequest:t}=e,{custom_privacy_request_fields:n}=t;return(0,r.jsx)("div",{className:"flex flex-col gap-2",children:n&&Object.keys(n).length>0&&Object.entries(n).filter(e=>{let[,t]=e;return t.value}).map(e=>{let[t,n]=e;return(0,r.jsx)(K,{label:n.label,children:(0,r.jsx)(l.AntTypography.Text,{children:Array.isArray(n.value)?n.value.join(", "):n.value})},t)})})},Q=e=>{let{subjectRequest:t}=e,{plus:n}=(0,Z.hz)(),{id:i,status:s,policy:a,identity:o,identity_verified_at:c}=t;return(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"mb-6",children:(0,r.jsx)(l.AntTypography.Title,{level:2,children:"Request details"})}),(0,r.jsxs)(l.jqI,{vertical:!0,gap:12,className:"mb-6",children:[(0,r.jsx)(K,{label:"Status",children:(0,r.jsx)(X,{status:s})}),(0,r.jsx)(K,{label:"Time remaining",children:(0,r.jsx)(V,{daysLeft:t.days_left,includeText:!0,status:t.status})}),(0,r.jsx)(K,{label:"Request type",children:(0,r.jsx)(z,{rules:a.rules})}),(0,r.jsx)(K,{label:"Source",children:n&&(0,r.jsx)(l.AntTypography.Text,{children:t.source||"-"})}),Object.entries(o).filter(e=>{let[,{value:t}]=e;return null!==t}).map(e=>{let[t,{value:n="",label:i}]=e,s="".concat(n).concat(c?"":" (Unverified)");return(0,r.jsx)(K,{label:"Subject ".concat(i.toLocaleLowerCase()),children:(0,r.jsx)(l.esZ,{title:s,trigger:"click",children:(0,r.jsx)(l.AntTypography.Text,{ellipsis:!0,children:s})})},t)}),(0,r.jsx)($,{subjectRequest:t})]}),(0,r.jsxs)(l.PPS,{layout:"vertical",children:[(0,r.jsx)(l.PPS.Item,{label:"Request ID:",className:"mb-4",children:(0,r.jsxs)(l.jqI,{gap:1,children:[(0,r.jsx)(l.uFc,{readOnly:!0,value:i,"data-testid":"request-detail-value-id"}),(0,r.jsx)(R.Z,{copyText:i,size:"small"})]})}),(0,r.jsx)(l.PPS.Item,{label:"Policy key:",className:"mb-4",children:(0,r.jsx)(l.uFc,{readOnly:!0,value:t.policy.key,"data-testid":"request-detail-value-policy"})})]})]})},ee=e=>{var t;let{data:n}=e,i=(0,p.useMemo)(()=>({id:n.id,verbose:!0}),[n.id]),{data:s}=(0,u.QA)(i,{pollingInterval:n.status===h.q2.APPROVED||n.status===h.q2.IN_PROCESSING?2e3:0,skip:!n.id}),a=null!==(t=null==s?void 0:s.items[0])&&void 0!==t?t:n,o=a.status===h.q2.REQUIRES_INPUT,[c,d]=(0,p.useState)(o?"manual-steps":"activity"),x=(0,p.useMemo)(()=>[{key:"activity",label:"Activity",children:(0,r.jsx)(A,{subjectRequest:a})},{key:"manual-steps",label:"Manual steps",children:(0,r.jsx)(F,{subjectRequest:a,onComplete:()=>d("activity")}),disabled:!o}],[o,a]);return(0,r.jsxs)("div",{className:"flex gap-8",children:[(0,r.jsx)("div",{className:"flex-1",children:(0,r.jsx)(l.A5g,{items:x,activeKey:c,onChange:d})}),(0,r.jsx)("div",{className:"w-1/3 2xl:w-[432px]","data-testid":"privacy-request-details",children:(0,r.jsx)(Q,{subjectRequest:a})})]})},et=n(57526),en=n(66548),ei=n(45489),es=e=>{let{privacyRequest:t,action:n}=e,{handleApproveRequest:i,handleDenyRequest:s}=(0,ei.Z)({subjectRequest:t}),r=t.status===h.q2.PENDING,a=(0,l.qY0)(),o=async e=>{let{reason:t}=e,r=l.sYd.loading({content:"approve"===n?"Approving request...":"Denying request..."});"deny"===n&&await s(t),"approve"===n&&await i(),r()};return{showAction:r,closeModal:a.onClose,performAction:o,openConfirmationModal:a.onOpen,isModalOpen:a.isOpen}},er=n(812),el=n(19904),ea=e=>{var t,n,i;let{privacyRequest:s}=e,r=null===(n=(0,Z.hz)())||void 0===n?void 0:null===(t=n.flags)||void 0===t?void 0:t.downloadAccessRequestResults,l=s.status===h.q2.COMPLETE,a=D(s.policy.rules).includes(h.Us.ACCESS),o=(0,el.Tg)([h.Sh.PRIVACY_REQUEST_ACCESS_RESULTS_READ]),{data:c,isLoading:d,isError:u,error:p}=(0,O.br)({privacy_request_id:s.id}),x=null!==(i=null==c?void 0:c.access_result_urls[0])&&void 0!==i?i:"",m=!!x&&"your local fides_uploads folder"!==x,g=null;return u?g=(0,er.e$)(p,"Unable to resolve download URL"):m||(g="Requests stored locally cannot be downloaded"),{showDownloadResults:r&&o&&a&&l,downloadResults:()=>{let e=document.createElement("a");e.href=x,e.target="_blank",e.rel="noopener noreferrer",e.click(),e.remove()},infoTooltip:g,isLoading:d,isDisabled:!m}},eo=e=>{let{privacyRequest:t}=e,{errorAlert:n,successAlert:i}=(0,N.V)(),s=t.status===h.q2.ERROR,[r]=(0,O.Fq)();return{reprocessPrivacyRequest:async()=>{if(!t)return;let e=l.sYd.loading("Reprocessing privacy request...",0),s=await r(t);"error"in s?n((0,er.e$)(s.error),"DSR automation has failed for this privacy request due to the following:",{duration:null}):i("Privacy request is now being reprocessed."),e()},showReprocess:s}},ec=e=>{let{privacyRequest:t}=e,{showDownloadResults:n,downloadResults:i,infoTooltip:s,isDisabled:a}=ea({privacyRequest:t}),{isModalOpen:o,closeModal:c,performAction:d,openConfirmationModal:u,showAction:h}=es({privacyRequest:t,action:"approve"}),{isModalOpen:x,closeModal:m,performAction:g,openConfirmationModal:j,showAction:f}=es({privacyRequest:t,action:"deny"}),{reprocessPrivacyRequest:v,showReprocess:y}=eo({privacyRequest:t}),b=(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:!h}),e.push({key:"deny",label:(0,r.jsx)("span",{"data-testid":"privacy-request-deny-btn",children:"Deny"}),onClick:j,disabled:!f}),e.push({key:"reprocess",label:(0,r.jsx)("span",{"data-testid":"privacy-request-action-reprocess",children:"Reprocess"}),onClick:v,disabled:!y}),n&&e.push({key:"download",label:(0,r.jsx)(l.esZ,{title:a?s:null,placement:"bottom",children:(0,r.jsx)("span",{"data-testid":"download-results-btn",children:"Download request results"})}),onClick:i,disabled:a}),e},[n,i,s,a,h,f,u,j,y,v]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.S0p,{menu:{items:b},trigger:["click"],overlayStyle:{minWidth:"160px"},children:(0,r.jsx)(l.wpx,{icon:(0,r.jsx)(l.PJP.pO,{}),"data-testid":"privacy-request-actions-dropdown-btn",iconPosition:"end",type:"primary",disabled:!b.length,size:"large",children:"Actions"})}),(0,r.jsx)(et.Z,{isOpen:o,isLoading:!1,onClose:c,onApproveRequest:()=>d({reason:""}),subjectRequest:t}),(0,r.jsx)(en.Z,{isOpen:x,onClose:m,onDenyRequest:e=>g({reason:e})})]})},ed=()=>{let e=(0,a.useRouter)().query.id,{data:t,isLoading:n}=(0,u.QA)({id:e,verbose:!0},{skip:!e}),i=(null==t?void 0:t.items[0])||null;return(0,r.jsxs)(o.Z,{title:"Privacy Request - ".concat(e),children:[(0,r.jsx)(d.Z,{heading:"Privacy Requests",breadcrumbItems:[{title:"All requests",href:c.Jw},{title:"Request details"}],rightContent:!!i&&(0,r.jsx)(ec,{privacyRequest:i})}),n&&(0,r.jsx)(l.M5Y,{children:(0,r.jsx)(l.$jN,{})}),!n&&!i&&(0,r.jsx)(l.xvT,{children:"404 no privacy request found"}),!n&&i&&(0,r.jsx)(ee,{data:i})]})}},19043:function(e,t,n){"use strict";n.d(t,{Bw:function(){return l},D4:function(){return s},Dy:function(){return o},XD:function(){return c},cz:function(){return d},hE:function(){return a},oK:function(){return r}});var i=n(76649);let s=e=>"error"in e,r=e=>(0,i.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,l=e=>(0,i.Ln)({status:"number",data:{}},e),a=e=>(0,i.Ln)({detail:"string"},e),o=e=>(0,i.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,i.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),d=e=>(0,i.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)},15709:function(e){e.exports={value:"RequestDetailsRow_value__WMXn3",label:"RequestDetailsRow_label__dn3CQ"}},33254:function(e){e.exports={itemButton:"ActivityTimelineList_itemButton___zZAL","itemButton--error":"ActivityTimelineList_itemButton--error__s_p3y",header:"ActivityTimelineList_header__c6_1X",title:"ActivityTimelineList_title__BhPbu","title--error":"ActivityTimelineList_title--error__OWYRS",timestamp:"ActivityTimelineList_timestamp__kg6oj",viewLogs:"ActivityTimelineList_viewLogs__dD3WJ",logs:"ActivityTimelineList_logs__uuT2f","logs--open":"ActivityTimelineList_logs--open__rkg5L"}},76649:function(e,t,n){"use strict";n.d(t,{Ln:function(){return i}});let i=(e,t)=>r(e,t),s=Symbol("SOME"),r=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?s in e?e.some(e=>r(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>r(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,n])=>r(n,t[e]));class l{static narrow(e){return new l(t=>i(e,t))}constructor(e){this.NF=void 0,this.NF=e}satisfied(e){return this.NF(e)}build(e){return e}and(e){let t=this.NF,n=e instanceof l?e.NF:e instanceof Function?e:t=>i(e,t);return new l(e=>t(e)&&n(e))}}new l(e=>!0)}},function(e){e.O(0,[2858,2866,9278,8433,2888,9774,179],function(){return e(e.s=6554)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8593],{13687:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/privacy-requests/configure/messaging",function(){return i(61463)}])},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return m}});var n=i(24246),s=i(77181),r=i(88038),a=i.n(r),l=i(86677);i(27378);var o=i(25980),u=i(90867),c=i(77830),d=()=>{let e=(0,l.useRouter)();return(0,n.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(s.xuv,{children:[(0,n.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(s.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,n.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=e=>{let{children:t,title:i,padded:r=!0,mainProps:c}=e,m=(0,o.hz)(),p=(0,l.useRouter)(),g="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,f=!(m.flags.privacyRequestsConfiguration&&g),{data:h}=(0,u.JE)(void 0,{skip:f}),{data:x}=(0,u.PW)(void 0,{skip:f}),y=m.flags.privacyRequestsConfiguration&&(!h||!x)&&g;return(0,n.jsxs)(s.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(a(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(s.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[y?(0,n.jsx)(d,{}):null,t]})]})}},58754:function(e,t,i){"use strict";var n=i(24246),s=i(77181),r=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:a=!0,children:l,rightContent:o,style:u,...c}=e;return(0,n.jsxs)("div",{...c,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...u}:{paddingBottom:"24px",...u},children:[(0,n.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(s.X6q,{className:i||l?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,o&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,n.jsx)(r.m,{className:l?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),l]})}},812:function(e,t,i){"use strict";i.d(t,{D4:function(){return r.D4},MM:function(){return m},Ot:function(){return u},c6:function(){return s},cj:function(){return g},e$:function(){return l},fn:function(){return o},iC:function(){return p},nU:function(){return d},tB:function(){return c}});var n,s,r=i(19043);let a="An unexpected error occurred. Please try again.",l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;if((0,r.Bw)(e)){if((0,r.hE)(e.data))return e.data.detail;if((0,r.cz)(e.data)){var i;let t=null===(i=e.data.detail)||void 0===i?void 0:i[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,r.Dy)(e.data)||404===e.status&&(0,r.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function o(e){return"object"==typeof e&&null!=e&&"status"in e}function u(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:a};if((0,r.oK)(e))return{status:e.originalStatus,message:e.data};if((0,r.Bw)(e)){let{status:i}=e;return{status:i,message:l(e,t.message)}}return t},m=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(n=s||(s={})).GVL="gvl",n.AC="gacp",n.COMPASS="compass";let p={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},g=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},14047:function(e,t,i){"use strict";i.d(t,{H:function(){return r},V:function(){return n.V}});var n=i(84306),s=i(812);let r=()=>{let{errorAlert:e}=(0,n.V)();return{handleError:t=>{let i="An unexpected error occurred. Please try again.";(0,s.Ot)(t)?i=t.data.detail:(0,s.tB)(t)&&(i=t.data.detail[0].msg),e(i)}}}},84306:function(e,t,i){"use strict";i.d(t,{V:function(){return r}});var n=i(24246),s=i(77181);let r=()=>{let e=(0,s.pmc)();return{errorAlert:(t,i,r)=>{let a={...r,position:(null==r?void 0:r.position)||"top",render:e=>{let{onClose:r}=e;return(0,n.jsxs)(s.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,n.jsx)(s.zMQ,{}),(0,n.jsxs)(s.xuv,{children:[i&&(0,n.jsx)(s.CdC,{children:i}),(0,n.jsx)(s.XaZ,{children:t})]}),(0,n.jsx)(s.PZ7,{onClick:r,position:"relative",right:0,size:"sm",top:-1})]})}};(null==r?void 0:r.id)&&e.isActive(r.id)?e.update(r.id,a):e(a)},successAlert:(t,i,r)=>{let a={...r,position:(null==r?void 0:r.position)||"top",render:e=>{let{onClose:r}=e;return(0,n.jsxs)(s.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,n.jsx)(s.zMQ,{}),(0,n.jsxs)(s.xuv,{children:[i&&(0,n.jsx)(s.CdC,{children:i}),(0,n.jsx)(s.XaZ,{children:t})]}),(0,n.jsx)(s.PZ7,{onClick:r,position:"relative",right:0,size:"sm",top:-1})]})}};(null==r?void 0:r.id)&&e.isActive(r.id)?e.update(r.id,a):e(a)}}}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return u}});var n=i(24246),s=i(77181),r=i(79894),a=i.n(r),l=i(27378);let{Text:o}=s.AntTypography,u=e=>{let{items:t,...i}=e,r=(0,l.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let r=i===t.length-1,l={...e},u=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,n.jsx)(o,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:l.title})),u)?l.title=(0,n.jsx)(s.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,n.jsx)(a(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,n.jsx)(s.zrq,{items:r,...i})}},7426:function(e,t,i){"use strict";i.d(t,{D2:function(){return m},L:function(){return l},U7:function(){return u},Yh:function(){return g},ak:function(){return o},iR:function(){return h},km:function(){return a},tB:function(){return r}});var n=i(3228);let s=i(78780).u.injectEndpoints({endpoints:e=>({getConfigurationSettings:e.query({query:e=>{let{api_set:t}=e;return{url:"/config",method:"GET",params:{api_set:t}}},providesTags:["Configuration Settings"]}),putConfigurationSettings:e.mutation({query:e=>({url:"/config",method:"PUT",body:e}),invalidatesTags:["Configuration Settings"]}),patchConfigurationSettings:e.mutation({query:e=>({url:"/config",method:"PATCH",body:e}),invalidatesTags:["Configuration Settings","Privacy Notices"]})})}),{useGetConfigurationSettingsQuery:r,usePutConfigurationSettingsMutation:a,usePatchConfigurationSettingsMutation:l}=s,o=(0,n.P1)([e=>e,s.endpoints.getConfigurationSettings.select({api_set:!0}),s.endpoints.getConfigurationSettings.select({api_set:!1})],(e,t,i)=>{var n,s,r;let{data:a}=t,{data:l}=i;return{configSet:{cors_origins:(null==l?void 0:null===(n=l.security)||void 0===n?void 0:n.cors_origins)||[],cors_origin_regex:null==l?void 0:null===(s=l.security)||void 0===s?void 0:s.cors_origin_regex},apiSet:{cors_origins:(null==a?void 0:null===(r=a.security)||void 0===r?void 0:r.cors_origins)||[]}}}),u=()=>(0,n.P1)([e=>e,s.endpoints.getConfigurationSettings.select({api_set:!0})],(e,t)=>{let{data:i}=t;return i}),c={enabled:!1,cmp_api_required:!1},d=(e,t,i,n)=>{let s=i&&i[e],r=n&&n[e];return s&&r?{...n[e],...i[e]}:r?n[e]:s?{...i[e]}:t},m=(0,n.P1)([e=>e,s.endpoints.getConfigurationSettings.select({api_set:!0}),s.endpoints.getConfigurationSettings.select({api_set:!1})],(e,t,i)=>{let{data:n}=t,{data:s}=i;return d("gpp",c,n,s)}),p={tcf_publisher_country_code:null},g=(0,n.P1)([e=>e,s.endpoints.getConfigurationSettings.select({api_set:!0}),s.endpoints.getConfigurationSettings.select({api_set:!1})],(e,t,i)=>{let{data:n}=t,{data:s}=i;return d("plus_consent_settings",p,n,s)}),f={allow_username_password_login:!1},h=(0,n.P1)([e=>e,s.endpoints.getConfigurationSettings.select({api_set:!0}),s.endpoints.getConfigurationSettings.select({api_set:!1})],(e,t,i)=>{let{data:n}=t,{data:s}=i;return d("plus_security_settings",f,n,s)})},71784:function(e,t,i){"use strict";i.d(t,{DE:function(){return o},I3:function(){return s},kN:function(){return a},qX:function(){return l},rE:function(){return r}});var n=i(62656);let s=[...new Map([[n.q2.APPROVED,"Approved"],[n.q2.CANCELED,"Canceled"],[n.q2.COMPLETE,"Completed"],[n.q2.DENIED,"Denied"],[n.q2.ERROR,"Error"],[n.q2.IN_PROCESSING,"In Progress"],[n.q2.PENDING,"New"],[n.q2.PAUSED,"Paused"],[n.q2.IDENTITY_UNVERIFIED,"Unverified"],[n.q2.REQUIRES_INPUT,"Requires input"]])].map(e=>{let[t,i]=e;return{label:i,value:t}}),r=new Map([[n.Us.ACCESS,"Access"],[n.Us.ERASURE,"Erasure"],[n.Us.CONSENT,"Consent"],[n.Us.UPDATE,"Update"]]),a=[...r].map(e=>{let[t,i]=e;return{label:i,value:t}}),l={mailgun:"mailgun",twilio_email:"twilio_email",twilio_text:"twilio_text"},o={local:"local",s3:"s3"}},61463:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return _}});var n=i(24246),s=i(77181),r=i(27378),a=i(812),l=i(14047),o=i(77213),u=i(77830),c=i(58754),d=i(7426),m=i(71784),p=i(90867),g=i(34090),f=i(40324),h=e=>{let{messagingDetails:t}=e,{successAlert:i}=(0,l.V)(),{handleError:r}=(0,l.H)(),[o]=(0,p.SU)(),u=t.service_type===m.qX.twilio_email||t.service_type===m.qX.mailgun,c=t.service_type===m.qX.twilio_text,d=async e=>{if(u){let t=await o({email:e.email});(0,a.D4)(t)?r(t.error):i("Test message successfully sent.")}if(c){let t=await o({phone_number:e.phone});(0,a.D4)(t)?r(t.error):i("Test message successfully sent.")}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.izJ,{mt:10}),(0,n.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,mb:5,children:"Test connection"}),(0,n.jsx)(s.Kqy,{children:(0,n.jsx)(g.J9,{initialValues:{email:"",phone:""},onSubmit:d,children:e=>{let{isSubmitting:t,resetForm:i}=e;return(0,n.jsxs)(g.l0,{children:[u?(0,n.jsx)(f.j0,{name:"email",label:"Email",placeholder:"youremail@domain.com",isRequired:!0}):null,c?(0,n.jsx)(f.j0,{name:"phone",label:"Phone",placeholder:"+10000000000",isRequired:!0}):null,(0,n.jsxs)(s.xuv,{mt:10,children:[(0,n.jsx)(s.wpx,{onClick:()=>i(),className:"mr-2",children:"Cancel"}),(0,n.jsx)(s.wpx,{disabled:t,htmlType:"submit",type:"primary","data-testid":"save-btn",children:"Save"})]})]})}})})]})},x=()=>{var e;let{successAlert:t}=(0,l.V)(),[i,o]=(0,r.useState)(""),{handleError:u}=(0,l.H)(),{data:c}=(0,p.S3)({type:m.qX.mailgun}),[d]=(0,p.h9)(),[x]=(0,p.iI)(),y=async e=>{let i=await d({service_type:m.qX.mailgun,details:{is_eu_domain:"false",domain:e.domain}});(0,a.D4)(i)?u(i.error):(t("Mailgun email successfully updated. You can now enter your security key."),o("apiKey"))},v=async e=>{let i=await x({details:{mailgun_api_key:e.api_key},service_type:m.qX.mailgun});(0,a.D4)(i)?u(i.error):(t("Mailgun security key successfully updated."),o("testConnection"))},j={domain:null!==(e=null==c?void 0:c.details.domain)&&void 0!==e?e:""};return(0,n.jsxs)(s.xuv,{children:[(0,n.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"Mailgun messaging configuration"}),(0,n.jsx)(s.Kqy,{children:(0,n.jsx)(g.J9,{initialValues:j,onSubmit:y,enableReinitialize:!0,children:e=>{let{isSubmitting:t,handleReset:i}=e;return(0,n.jsxs)(g.l0,{children:[(0,n.jsx)(s.Kqy,{mt:5,spacing:5,children:(0,n.jsx)(f.j0,{name:"domain",label:"Domain",placeholder:"Enter domain","data-testid":"option-twilio-domain",isRequired:!0})}),(0,n.jsxs)(s.xuv,{mt:10,children:[(0,n.jsx)(s.wpx,{onClick:i,className:"mr-2",children:"Cancel"}),(0,n.jsx)(s.wpx,{htmlType:"submit",disabled:t,type:"primary","data-testid":"save-btn",children:"Save"})]})]})}})}),"apiKey"===i||"testConnection"===i?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.izJ,{mt:10}),(0,n.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"Security key"}),(0,n.jsx)(s.Kqy,{children:(0,n.jsx)(g.J9,{initialValues:{api_key:""},onSubmit:v,children:e=>{let{isSubmitting:t,handleReset:i}=e;return(0,n.jsxs)(g.l0,{children:[(0,n.jsx)(f.j0,{name:"api_key",label:"API key",type:"password",isRequired:!0}),(0,n.jsxs)(s.xuv,{mt:10,children:[(0,n.jsx)(s.wpx,{onClick:i,className:"mr-2",children:"Cancel"}),(0,n.jsx)(s.wpx,{disabled:t,htmlType:"submit",type:"primary","data-testid":"save-btn",children:"Save"})]})]})}})})]}):null,"testConnection"===i?(0,n.jsx)(h,{messagingDetails:c||{service_type:m.qX.mailgun}}):null]})},y=()=>{var e;let[t,i]=(0,r.useState)(""),{successAlert:o}=(0,l.V)(),{handleError:u}=(0,l.H)(),{data:c}=(0,p.S3)({type:m.qX.twilio_email}),[d]=(0,p.h9)(),[x]=(0,p.iI)(),y=async e=>{let t=await d({service_type:m.qX.twilio_email,details:{twilio_email_from:e.email}});(0,a.D4)(t)?u(t.error):(o("Twilio email successfully updated. You can now enter your security key."),i("configureTwilioEmailSecrets"))},v=async e=>{let t=await x({details:{twilio_api_key:e.api_key},service_type:m.qX.twilio_email});(0,a.D4)(t)?u(t.error):(o("Twilio email secrets successfully updated."),i("testConnection"))},j={email:null!==(e=null==c?void 0:c.details.twilio_email_from)&&void 0!==e?e:""};return(0,n.jsxs)(s.xuv,{children:[(0,n.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"Twilio Email messaging configuration"}),(0,n.jsx)(s.Kqy,{children:(0,n.jsx)(g.J9,{initialValues:j,onSubmit:y,enableReinitialize:!0,children:e=>{let{isSubmitting:t,handleReset:i}=e;return(0,n.jsxs)(g.l0,{children:[(0,n.jsx)(s.Kqy,{mt:5,spacing:5,children:(0,n.jsx)(f.j0,{name:"email",label:"Email",placeholder:"Enter email",isRequired:!0})}),(0,n.jsxs)(s.xuv,{mt:10,children:[(0,n.jsx)(s.wpx,{onClick:()=>i(),className:"mr-2",children:"Cancel"}),(0,n.jsx)(s.wpx,{disabled:t,htmlType:"submit",type:"primary","data-testid":"save-btn",children:"Save"})]})]})}})}),"configureTwilioEmailSecrets"===t||"testConnection"===t?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.izJ,{mt:10}),(0,n.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"Security key"}),(0,n.jsx)(s.Kqy,{children:(0,n.jsx)(g.J9,{initialValues:{api_key:""},onSubmit:v,children:e=>{let{isSubmitting:t,handleReset:i}=e;return(0,n.jsxs)(g.l0,{children:[(0,n.jsx)(s.Kqy,{mt:5,spacing:5,children:(0,n.jsx)(f.j0,{name:"api_key",label:"API key",type:"password",isRequired:!0})}),(0,n.jsxs)(s.xuv,{mt:10,children:[(0,n.jsx)(s.wpx,{onClick:()=>i(),className:"mr-2",children:"Cancel"}),(0,n.jsx)(s.wpx,{disabled:t,htmlType:"submit",type:"primary","data-testid":"save-btn",children:"Save"})]})]})}})})]}):null,"testConnection"===t?(0,n.jsx)(h,{messagingDetails:c||{service_type:m.qX.twilio_email}}):null]})},v=()=>{let{successAlert:e}=(0,l.V)(),{handleError:t}=(0,l.H)(),[i,o]=(0,r.useState)(""),{data:u}=(0,p.S3)({type:"twilio_text"}),[c]=(0,p.iI)(),d=async i=>{let n=await c({details:{twilio_account_sid:i.account_sid,twilio_auth_token:i.auth_token,twilio_messaging_service_sid:i.messaging_service_sid,twilio_sender_phone_number:i.phone},service_type:m.qX.twilio_text});(0,a.D4)(n)?t(n.error):(e("Twilio text secrets successfully updated."),o("testConnection"))};return(0,n.jsxs)(s.xuv,{children:[(0,n.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"Twilio SMS messaging configuration"}),(0,n.jsx)(s.Kqy,{children:(0,n.jsx)(g.J9,{initialValues:{account_sid:"",auth_token:"",messaging_service_sid:"",phone:""},onSubmit:d,enableReinitialize:!0,children:e=>{let{isSubmitting:t,handleReset:i}=e;return(0,n.jsxs)(g.l0,{children:[(0,n.jsxs)(s.Kqy,{mt:5,spacing:5,children:[(0,n.jsx)(f.j0,{name:"account_sid",label:"Account SID",placeholder:"Enter account SID",isRequired:!0}),(0,n.jsx)(f.j0,{name:"auth_token",label:"Auth token",placeholder:"Enter auth token",type:"password",isRequired:!0}),(0,n.jsx)(f.j0,{name:"messaging_service_sid",label:"Messaging Service SID",placeholder:"Enter messaging service SID"}),(0,n.jsx)(f.j0,{name:"phone",label:"Phone Number",placeholder:"Enter phone number"})]}),(0,n.jsxs)(s.xuv,{mt:10,children:[(0,n.jsx)(s.wpx,{onClick:()=>i(),className:"mr-2",children:"Cancel"}),(0,n.jsx)(s.wpx,{disabled:t,htmlType:"submit",type:"primary","data-testid":"save-btn",children:"Save"})]})]})}})}),"testConnection"===i?(0,n.jsx)(h,{messagingDetails:u||{service_type:m.qX.twilio_text}}):null]})},j=()=>{let{successAlert:e}=(0,l.V)(),{handleError:t}=(0,l.H)(),[i,g]=(0,r.useState)(""),[f]=(0,p.h9)(),[h]=(0,d.L)(),{data:j}=(0,p.JE)();(0,r.useEffect)(()=>{j&&g(null==j?void 0:j.service_type)},[j]);let _=async i=>{let{value:n}=i.target,s=await h({notifications:{notification_service_type:n,send_request_completion_notification:!0,send_request_receipt_notification:!0,send_request_review_notification:!0},execution:{subject_identity_verification_required:!0}});if((0,a.D4)(s))t(s.error);else if(n!==m.qX.twilio_text)g(n);else{let i=await f({service_type:m.qX.twilio_text});(0,a.D4)(i)?t(i.error):(e("Messaging provider saved successfully."),g(n))}};return(0,n.jsxs)(o.Z,{title:"Configure Privacy Requests - Messaging",children:[(0,n.jsx)(c.Z,{heading:"Privacy Requests",breadcrumbItems:[{title:"All requests",href:u.Jw},{title:"Configure requests",href:u.fz},{title:"Messaging"}]}),(0,n.jsx)(s.X6q,{mb:5,fontSize:"md",fontWeight:"semibold",children:"Configure your messaging provider"}),(0,n.jsxs)(s.xuv,{display:"flex",flexDirection:"column",width:"50%",children:[(0,n.jsxs)(s.xuv,{children:["Fides requires a messsaging provider for sending processing notices to privacy request subjects, and allows for Subject Identity Verification in privacy requests. Please follow the"," ",(0,n.jsx)(s.xvT,{as:"span",color:"complimentary.500",children:"documentation"})," ","to setup a messaging service that Fides supports. Ensure you have completed the setup for the preferred messaging provider and have the details handy prior to the following steps."]}),(0,n.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"Choose service type to configure"}),(0,n.jsx)(s.y02.Group,{onChange:_,value:i,"data-testid":"privacy-requests-messaging-provider-selection",className:"p-3",children:(0,n.jsxs)(s.jqI,{children:[(0,n.jsx)(s.y02,{value:m.qX.mailgun,"data-testid":"option-mailgun",children:"Mailgun Email"},m.qX.mailgun),(0,n.jsx)(s.y02,{value:m.qX.twilio_email,"data-testid":"option-twilio-email",children:"Twilio Email"},m.qX.twilio_email),(0,n.jsx)(s.y02,{value:m.qX.twilio_text,"data-testid":"option-twilio-sms",children:"Twilio SMS"},m.qX.twilio_text)]})}),i===m.qX.mailgun?(0,n.jsx)(x,{}):null,i===m.qX.twilio_email?(0,n.jsx)(y,{}):null,i===m.qX.twilio_text?(0,n.jsx)(v,{}):null]})]})},_=()=>(0,n.jsx)(j,{})},19043:function(e,t,i){"use strict";i.d(t,{Bw:function(){return a},D4:function(){return s},Dy:function(){return o},XD:function(){return u},cz:function(){return c},hE:function(){return l},oK:function(){return r}});var n=i(76649);let s=e=>"error"in e,r=e=>(0,n.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,a=e=>(0,n.Ln)({status:"number",data:{}},e),l=e=>(0,n.Ln)({detail:"string"},e),o=e=>(0,n.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),u=e=>(0,n.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,n.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)},76649:function(e,t,i){"use strict";i.d(t,{Ln:function(){return n}});let n=(e,t)=>r(e,t),s=Symbol("SOME"),r=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?s in e?e.some(e=>r(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>r(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,i])=>r(i,t[e]));class a{static narrow(e){return new a(t=>n(e,t))}constructor(e){this.NF=void 0,this.NF=e}satisfied(e){return this.NF(e)}build(e){return e}and(e){let t=this.NF,i=e instanceof a?e.NF:e instanceof Function?e:t=>n(e,t);return new a(e=>t(e)&&i(e))}}new a(e=>!0)}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=13687)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5979],{23663:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/privacy-requests/configure/storage",function(){return n(49755)}])},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var i=n(24246),s=n(77181),r=n(88038),a=n.n(r),o=n(86677);n(27378);var l=n(25980),u=n(90867),c=n(77830),d=()=>{let e=(0,o.useRouter)();return(0,i.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(s.xuv,{children:[(0,i.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(s.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,i.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},g=e=>{let{children:t,title:n,padded:r=!0,mainProps:c}=e,g=(0,l.hz)(),p=(0,o.useRouter)(),f="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,m=!(g.flags.privacyRequestsConfiguration&&f),{data:h}=(0,u.JE)(void 0,{skip:m}),{data:v}=(0,u.PW)(void 0,{skip:m}),x=g.flags.privacyRequestsConfiguration&&(!h||!v)&&f;return(0,i.jsxs)(s.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(a(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(s.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[x?(0,i.jsx)(d,{}):null,t]})]})}},58754:function(e,t,n){"use strict";var i=n(24246),s=n(77181),r=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:a=!0,children:o,rightContent:l,style:u,...c}=e;return(0,i.jsxs)("div",{...c,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...u}:{paddingBottom:"24px",...u},children:[(0,i.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(s.X6q,{className:n||o?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,l&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,i.jsx)(r.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},97181:function(e,t,n){"use strict";n.d(t,{d:function(){return u}});var i=n(24246),s=n(77181),r=n(34090),a=n(27378),o=n(91613),l=n(40324);let u=e=>{let{name:t,label:n,labelProps:u,tooltip:c,isRequired:d,layout:g="inline",...p}=e,[f,m,{setValue:h}]=(0,r.U$)(t),v=!!(m.touched&&m.error),[x,y]=(0,a.useState)("");f.value||"tags"!==p.mode&&"multiple"!==p.mode||(f.value=[]),"tags"===p.mode&&"string"==typeof f.value&&(f.value=[f.value]);let j="tags"===p.mode?(e,t)=>e?e.value!==x||f.value.includes(x)?p.optionRender?p.optionRender(e,t):e.label:'Create "'.concat(x,'"'):void 0:p.optionRender||void 0,_=e=>{y(e),p.onSearch&&p.onSearch(e)},b=(e,t)=>{h(e),p.onChange&&p.onChange(e,t)};return"inline"===g?(0,i.jsx)(s.NIc,{isInvalid:v,isRequired:d,children:(0,i.jsxs)(s.rjZ,{templateColumns:n?"1fr 3fr":"1fr",children:[n?(0,i.jsx)(l.__,{htmlFor:p.id||t,...u,children:n}):null,(0,i.jsxs)(s.jqI,{align:"center",children:[(0,i.jsxs)(s.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,i.jsx)(s.WPr,{...f,id:p.id||t,"data-testid":"controlled-select-".concat(f.name),...p,optionRender:j,onSearch:"tags"===p.mode?_:void 0,onChange:b,value:f.value||void 0,status:v?"error":void 0}),(0,i.jsx)(l.Bc,{isInvalid:v,message:m.error,fieldName:f.name})]}),c?(0,i.jsx)(o.Z,{label:c}):null]})]})}):(0,i.jsx)(s.NIc,{isInvalid:v,isRequired:d,children:(0,i.jsxs)(s.gCW,{alignItems:"start",children:[(0,i.jsxs)(s.jqI,{align:"center",children:[n?(0,i.jsx)(l.__,{htmlFor:p.id||t,fontSize:"xs",my:0,mr:1,...u,children:n}):null,c?(0,i.jsx)(o.Z,{label:c}):null]}),(0,i.jsx)(s.WPr,{...f,id:p.id||t,"data-testid":"controlled-select-".concat(f.name),...p,optionRender:j,onSearch:"tags"===p.mode?_:void 0,onChange:b,value:f.value||void 0,status:v?"error":void 0}),(0,i.jsx)(l.Bc,{isInvalid:v,message:m.error,fieldName:f.name})]})})}},812:function(e,t,n){"use strict";n.d(t,{D4:function(){return r.D4},MM:function(){return g},Ot:function(){return u},c6:function(){return s},cj:function(){return f},e$:function(){return o},fn:function(){return l},iC:function(){return p},nU:function(){return d},tB:function(){return c}});var i,s,r=n(19043);let a="An unexpected error occurred. Please try again.",o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;if((0,r.Bw)(e)){if((0,r.hE)(e.data))return e.data.detail;if((0,r.cz)(e.data)){var n;let t=null===(n=e.data.detail)||void 0===n?void 0:n[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,r.Dy)(e.data)||404===e.status&&(0,r.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function l(e){return"object"==typeof e&&null!=e&&"status"in e}function u(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:a};if((0,r.oK)(e))return{status:e.originalStatus,message:e.data};if((0,r.Bw)(e)){let{status:n}=e;return{status:n,message:o(e,t.message)}}return t},g=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(i=s||(s={})).GVL="gvl",i.AC="gacp",i.COMPASS="compass";let p={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},f=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},14047:function(e,t,n){"use strict";n.d(t,{H:function(){return r},V:function(){return i.V}});var i=n(84306),s=n(812);let r=()=>{let{errorAlert:e}=(0,i.V)();return{handleError:t=>{let n="An unexpected error occurred. Please try again.";(0,s.Ot)(t)?n=t.data.detail:(0,s.tB)(t)&&(n=t.data.detail[0].msg),e(n)}}}},84306:function(e,t,n){"use strict";n.d(t,{V:function(){return r}});var i=n(24246),s=n(77181);let r=()=>{let e=(0,s.pmc)();return{errorAlert:(t,n,r)=>{let a={...r,position:(null==r?void 0:r.position)||"top",render:e=>{let{onClose:r}=e;return(0,i.jsxs)(s.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,i.jsx)(s.zMQ,{}),(0,i.jsxs)(s.xuv,{children:[n&&(0,i.jsx)(s.CdC,{children:n}),(0,i.jsx)(s.XaZ,{children:t})]}),(0,i.jsx)(s.PZ7,{onClick:r,position:"relative",right:0,size:"sm",top:-1})]})}};(null==r?void 0:r.id)&&e.isActive(r.id)?e.update(r.id,a):e(a)},successAlert:(t,n,r)=>{let a={...r,position:(null==r?void 0:r.position)||"top",render:e=>{let{onClose:r}=e;return(0,i.jsxs)(s.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,i.jsx)(s.zMQ,{}),(0,i.jsxs)(s.xuv,{children:[n&&(0,i.jsx)(s.CdC,{children:n}),(0,i.jsx)(s.XaZ,{children:t})]}),(0,i.jsx)(s.PZ7,{onClick:r,position:"relative",right:0,size:"sm",top:-1})]})}};(null==r?void 0:r.id)&&e.isActive(r.id)?e.update(r.id,a):e(a)}}}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return u}});var i=n(24246),s=n(77181),r=n(79894),a=n.n(r),o=n(27378);let{Text:l}=s.AntTypography,u=e=>{let{items:t,...n}=e,r=(0,o.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let r=n===t.length-1,o={...e},u=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,i.jsx)(l,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:o.title})),u)?o.title=(0,i.jsx)(s.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,i.jsx)(a(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,i.jsx)(s.zrq,{items:r,...n})}},7426:function(e,t,n){"use strict";n.d(t,{D2:function(){return g},L:function(){return o},U7:function(){return u},Yh:function(){return f},ak:function(){return l},iR:function(){return h},km:function(){return a},tB:function(){return r}});var i=n(3228);let s=n(78780).u.injectEndpoints({endpoints:e=>({getConfigurationSettings:e.query({query:e=>{let{api_set:t}=e;return{url:"/config",method:"GET",params:{api_set:t}}},providesTags:["Configuration Settings"]}),putConfigurationSettings:e.mutation({query:e=>({url:"/config",method:"PUT",body:e}),invalidatesTags:["Configuration Settings"]}),patchConfigurationSettings:e.mutation({query:e=>({url:"/config",method:"PATCH",body:e}),invalidatesTags:["Configuration Settings","Privacy Notices"]})})}),{useGetConfigurationSettingsQuery:r,usePutConfigurationSettingsMutation:a,usePatchConfigurationSettingsMutation:o}=s,l=(0,i.P1)([e=>e,s.endpoints.getConfigurationSettings.select({api_set:!0}),s.endpoints.getConfigurationSettings.select({api_set:!1})],(e,t,n)=>{var i,s,r;let{data:a}=t,{data:o}=n;return{configSet:{cors_origins:(null==o?void 0:null===(i=o.security)||void 0===i?void 0:i.cors_origins)||[],cors_origin_regex:null==o?void 0:null===(s=o.security)||void 0===s?void 0:s.cors_origin_regex},apiSet:{cors_origins:(null==a?void 0:null===(r=a.security)||void 0===r?void 0:r.cors_origins)||[]}}}),u=()=>(0,i.P1)([e=>e,s.endpoints.getConfigurationSettings.select({api_set:!0})],(e,t)=>{let{data:n}=t;return n}),c={enabled:!1,cmp_api_required:!1},d=(e,t,n,i)=>{let s=n&&n[e],r=i&&i[e];return s&&r?{...i[e],...n[e]}:r?i[e]:s?{...n[e]}:t},g=(0,i.P1)([e=>e,s.endpoints.getConfigurationSettings.select({api_set:!0}),s.endpoints.getConfigurationSettings.select({api_set:!1})],(e,t,n)=>{let{data:i}=t,{data:s}=n;return d("gpp",c,i,s)}),p={tcf_publisher_country_code:null},f=(0,i.P1)([e=>e,s.endpoints.getConfigurationSettings.select({api_set:!0}),s.endpoints.getConfigurationSettings.select({api_set:!1})],(e,t,n)=>{let{data:i}=t,{data:s}=n;return d("plus_consent_settings",p,i,s)}),m={allow_username_password_login:!1},h=(0,i.P1)([e=>e,s.endpoints.getConfigurationSettings.select({api_set:!0}),s.endpoints.getConfigurationSettings.select({api_set:!1})],(e,t,n)=>{let{data:i}=t,{data:s}=n;return d("plus_security_settings",m,i,s)})},71784:function(e,t,n){"use strict";n.d(t,{DE:function(){return l},I3:function(){return s},kN:function(){return a},qX:function(){return o},rE:function(){return r}});var i=n(62656);let s=[...new Map([[i.q2.APPROVED,"Approved"],[i.q2.CANCELED,"Canceled"],[i.q2.COMPLETE,"Completed"],[i.q2.DENIED,"Denied"],[i.q2.ERROR,"Error"],[i.q2.IN_PROCESSING,"In Progress"],[i.q2.PENDING,"New"],[i.q2.PAUSED,"Paused"],[i.q2.IDENTITY_UNVERIFIED,"Unverified"],[i.q2.REQUIRES_INPUT,"Requires input"]])].map(e=>{let[t,n]=e;return{label:n,value:t}}),r=new Map([[i.Us.ACCESS,"Access"],[i.Us.ERASURE,"Erasure"],[i.Us.CONSENT,"Consent"],[i.Us.UPDATE,"Update"]]),a=[...r].map(e=>{let[t,n]=e;return{label:n,value:t}}),o={mailgun:"mailgun",twilio_email:"twilio_email",twilio_text:"twilio_text"},l={local:"local",s3:"s3"}},49755:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return y}});var i=n(24246),s=n(77181),r=n(27378),a=n(812),o=n(14047),l=n(77213),u=n(77830),c=n(58754),d=n(7426),g=n(71784),p=n(90867),f=n(34090),m=n(97181),h=n(40324),v=e=>{var t,n,l,u,c;let{storageDetails:d}=e,[v,x]=(0,r.useState)(""),[y]=(0,p.gC)(),[j]=(0,p.cf)(),{handleError:_}=(0,o.H)(),{successAlert:b}=(0,o.V)(),C={type:g.DE.s3,auth_method:null!==(l=null==d?void 0:null===(t=d.details)||void 0===t?void 0:t.auth_method)&&void 0!==l?l:"",bucket:null!==(u=null==d?void 0:null===(n=d.details)||void 0===n?void 0:n.bucket)&&void 0!==u?u:"",format:null!==(c=null==d?void 0:d.format)&&void 0!==c?c:""},S=async e=>{let t=await y({type:g.DE.s3,details:{auth_method:e.auth_method,bucket:e.bucket},format:e.format});(0,a.D4)(t)?_(t.error):(x(e.auth_method),b("S3 storage credentials successfully updated."))},w=async e=>{let t=await j({details:{aws_access_key_id:e.aws_access_key_id,aws_secret_access_key:e.aws_secret_access_key},type:g.DE.s3});(0,a.D4)(t)?_(t.error):b("S3 storage secrets successfully updated.")};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"S3 storage configuration"}),(0,i.jsx)(s.Kqy,{children:(0,i.jsx)(f.J9,{initialValues:C,onSubmit:S,enableReinitialize:!0,children:e=>{let{isSubmitting:t,handleReset:n}=e;return(0,i.jsxs)(f.l0,{children:[(0,i.jsxs)(s.Kqy,{mt:5,spacing:5,children:[(0,i.jsx)(m.d,{name:"format",label:"Format",options:[{label:"json",value:"json"},{label:"csv",value:"csv"}],"data-testid":"format",isRequired:!0}),(0,i.jsx)(m.d,{name:"auth_method",label:"Auth method",options:[{label:"secret_keys",value:"secret_keys"},{label:"automatic",value:"automatic"}],"data-testid":"auth_method",isRequired:!0}),(0,i.jsx)(h.j0,{"data-testid":"bucket",name:"bucket",label:"Bucket",isRequired:!0})]}),(0,i.jsx)(s.wpx,{onClick:()=>n(),className:"mr-2 mt-5",children:"Cancel"}),(0,i.jsx)(s.wpx,{htmlType:"submit",className:"mt-5",disabled:t,type:"primary","data-testid":"save-btn",children:"Save"})]})}})}),"secret_keys"===v?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.izJ,{mt:5}),(0,i.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",mt:5,children:"Storage destination"}),(0,i.jsx)(s.Kqy,{children:(0,i.jsx)(f.J9,{initialValues:{aws_access_key_id:"",aws_secret_access_key:""},onSubmit:w,children:e=>{let{isSubmitting:t,handleReset:n}=e;return(0,i.jsxs)(f.l0,{children:[(0,i.jsxs)(s.Kqy,{mt:5,spacing:5,children:[(0,i.jsx)(h.j0,{name:"aws_access_key_id",label:"AWS access key ID"}),(0,i.jsx)(h.j0,{name:"aws_secret_access_key",label:"AWS secret access key",type:"password"})]}),(0,i.jsxs)(s.xuv,{mt:10,children:[(0,i.jsx)(s.wpx,{onClick:()=>n(),className:"mr-2 mt-5",children:"Cancel"}),(0,i.jsx)(s.wpx,{disabled:t,htmlType:"submit",type:"primary",className:"mt-5","data-testid":"save-btn",children:"Save"})]})]})}})})]}):null]})},x=()=>{let{successAlert:e}=(0,o.V)(),{handleError:t}=(0,o.H)(),[n,f]=(0,r.useState)(""),{data:m}=(0,p.PW)(),{data:h}=(0,p.Au)({type:n}),[x,{isLoading:y}]=(0,p.gC)(),[j]=(0,d.L)();(0,r.useEffect)(()=>{m&&f(m.type)},[m]);let _=async n=>{let{value:i}=n.target;if(i===g.DE.local){let n=await x({type:i,details:{},format:"json"});(0,a.D4)(n)?t(n.error):e("Configured storage details successfully.")}let s=await j({storage:{active_default_storage_type:i}});(0,a.D4)(s)?t(s.error):f(i)};return(0,i.jsxs)(l.Z,{title:"Configure Privacy Requests - Storage",children:[(0,i.jsx)(c.Z,{heading:"Privacy Requests",breadcrumbItems:[{title:"All requests",href:u.Jw},{title:"Configure requests",href:u.fz},{title:"Storage"}]}),(0,i.jsx)(s.X6q,{mb:5,fontSize:"md",fontWeight:"semibold",children:"Configure storage"}),(0,i.jsxs)(s.xuv,{display:"flex",flexDirection:"column",width:"50%",children:[(0,i.jsx)(s.xuv,{mb:5,children:"Fides requires a storage destination to store and share the results of privacy requests. For a production setup, it is highly recommended to have S3 as a storage destination. Ensure you have completed the setup for the storage destination and have the details handy prior to the following steps."}),(0,i.jsxs)(s.xuv,{children:["To configure a Storage destination, first choose a method to store your results. Fides currently supports"," ",(0,i.jsx)(s.xvT,{as:"span",color:"complimentary.500",children:"Local"})," ","and"," ",(0,i.jsx)(s.xvT,{as:"span",color:"complimentary.500",children:"S3"})," ","storage methods."]}),(0,i.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"Choose storage type to configure"}),(0,i.jsx)(s.y02.Group,{disabled:y,onChange:_,value:n,"data-testid":"privacy-requests-storage-selection",className:"p-3",children:(0,i.jsxs)(s.jqI,{children:[(0,i.jsx)(s.y02,{value:"local","data-testid":"option-local",children:"Local"},"local"),(0,i.jsx)(s.y02,{value:"s3","data-testid":"option-s3",children:"S3"},"s3")]})}),"s3"===n&&h?(0,i.jsx)(v,{storageDetails:h}):null]})]})},y=()=>(0,i.jsx)(x,{})},19043:function(e,t,n){"use strict";n.d(t,{Bw:function(){return a},D4:function(){return s},Dy:function(){return l},XD:function(){return u},cz:function(){return c},hE:function(){return o},oK:function(){return r}});var i=n(76649);let s=e=>"error"in e,r=e=>(0,i.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,a=e=>(0,i.Ln)({status:"number",data:{}},e),o=e=>(0,i.Ln)({detail:"string"},e),l=e=>(0,i.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),u=e=>(0,i.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,i.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)},76649:function(e,t,n){"use strict";n.d(t,{Ln:function(){return i}});let i=(e,t)=>r(e,t),s=Symbol("SOME"),r=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?s in e?e.some(e=>r(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>r(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,n])=>r(n,t[e]));class a{static narrow(e){return new a(t=>i(e,t))}constructor(e){this.NF=void 0,this.NF=e}satisfied(e){return this.NF(e)}build(e){return e}and(e){let t=this.NF,n=e instanceof a?e.NF:e instanceof Function?e:t=>i(e,t);return new a(e=>t(e)&&n(e))}}new a(e=>!0)}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=23663)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1242],{29221:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/privacy-requests/configure",function(){return r(57916)}])},77213:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var i=r(24246),n=r(56078),s=r(88038),o=r.n(s),a=r(86677);r(27378);var d=r(25980),c=r(90867),l=r(77830),u=()=>{let e=(0,a.useRouter)();return(0,i.jsx)(n.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(n.xuv,{children:[(0,i.jsxs)(n.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(n.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(n.wpx,{onClick:()=>{e.push(l.fz)},children:"Configure"})]}),(0,i.jsxs)(n.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:r,padded:s=!0,mainProps:l}=e,p=(0,d.hz)(),g=(0,a.useRouter)(),h="/privacy-requests"===g.pathname||"/datastore-connection"===g.pathname,x=!(p.flags.privacyRequestsConfiguration&&h),{data:m}=(0,c.JE)(void 0,{skip:x}),{data:f}=(0,c.PW)(void 0,{skip:x}),y=p.flags.privacyRequestsConfiguration&&(!m||!f)&&h;return(0,i.jsxs)(n.kCb,{"data-testid":r,direction:"column",h:"100vh",children:[(0,i.jsxs)(o(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",r]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(n.kCb,{as:"main",direction:"column",py:s?6:0,px:s?10:0,h:s?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...l,children:[y?(0,i.jsx)(u,{}):null,t]})]})}},58754:function(e,t,r){"use strict";var i=r(24246),n=r(56078),s=r(70788);t.Z=e=>{let{heading:t,breadcrumbItems:r,isSticky:o=!0,children:a,rightContent:d,style:c,...l}=e;return(0,i.jsxs)("div",{...l,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,i.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(n.X6q,{className:r||a?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,d&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:d})]}),!!r&&(0,i.jsx)(s.m,{className:a?"pb-4":void 0,items:r,"data-testid":"page-breadcrumb"}),a]})}},70788:function(e,t,r){"use strict";r.d(t,{m:function(){return c}});var i=r(24246),n=r(56078),s=r(79894),o=r.n(s),a=r(27378);let{Text:d}=n.AntTypography,c=e=>{let{items:t,...r}=e,s=(0,a.useMemo)(()=>null==t?void 0:t.map((e,r)=>{let s=r===t.length-1,a={...e},c=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,i.jsx)(d,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:a.title})),c)?a.title=(0,i.jsx)(n.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,i.jsx)(o(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,i.jsx)(n.zrq,{items:s,...r})}},57916:function(e,t,r){"use strict";r.r(t);var i=r(24246),n=r(56078),s=r(79894),o=r.n(s),a=r(77213),d=r(77830),c=r(58754);let{Text:l}=n.AntTypography;t.default=()=>(0,i.jsxs)(a.Z,{title:"Configure Privacy Requests",children:[(0,i.jsx)(c.Z,{heading:"Privacy Requests",breadcrumbItems:[{title:"All requests",href:d.Jw},{title:"Configure requests"}]}),(0,i.jsx)(l,{strong:!0,children:"Configure your privacy requests:"}),(0,i.jsxs)(n.xuv,{display:"flex",alignItems:"center",my:5,"data-testid":"privacy-requests-configure",children:[(0,i.jsxs)(n.fGe,{p:"5",borderWidth:"1px",rounded:"md",borderColor:"gray.300",_hover:{borderColor:"complimentary.500",cursor:"pointer"},mr:5,minHeight:"100%",children:[(0,i.jsx)(n.X6q,{mb:2,size:"sm",children:(0,i.jsx)(n.AB5,{as:o(),href:"/privacy-requests/configure/messaging",children:"Configure messaging provider"})}),"Fides supports email (Mailgun & Twilio) and SMS (Twilio) server configurations for sending processing notices to privacy request subjects. Configure your settings here."]}),(0,i.jsxs)(n.fGe,{p:"5",borderWidth:"1px",rounded:"md",borderColor:"gray.300",_hover:{borderColor:"complimentary.500",cursor:"pointer"},minHeight:"100%",children:[(0,i.jsx)(n.X6q,{mb:2,size:"sm",children:(0,i.jsx)(n.AB5,{as:o(),href:"/privacy-requests/configure/storage",children:"Configure storage"})}),"The data produced by an access request will need to be uploaded to a storage destination (e.g. an S3 bucket) in order to be returned to the user. At least one storage destination must be configured to process access requests. Configure your settings here."]})]})]})}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=29221)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1242],{29221:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/privacy-requests/configure",function(){return r(57916)}])},77213:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var i=r(24246),n=r(77181),s=r(88038),o=r.n(s),a=r(86677);r(27378);var d=r(25980),c=r(90867),l=r(77830),u=()=>{let e=(0,a.useRouter)();return(0,i.jsx)(n.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(n.xuv,{children:[(0,i.jsxs)(n.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(n.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(n.wpx,{onClick:()=>{e.push(l.fz)},children:"Configure"})]}),(0,i.jsxs)(n.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:r,padded:s=!0,mainProps:l}=e,p=(0,d.hz)(),g=(0,a.useRouter)(),h="/privacy-requests"===g.pathname||"/datastore-connection"===g.pathname,x=!(p.flags.privacyRequestsConfiguration&&h),{data:m}=(0,c.JE)(void 0,{skip:x}),{data:f}=(0,c.PW)(void 0,{skip:x}),y=p.flags.privacyRequestsConfiguration&&(!m||!f)&&h;return(0,i.jsxs)(n.kCb,{"data-testid":r,direction:"column",h:"100vh",children:[(0,i.jsxs)(o(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",r]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(n.kCb,{as:"main",direction:"column",py:s?6:0,px:s?10:0,h:s?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...l,children:[y?(0,i.jsx)(u,{}):null,t]})]})}},58754:function(e,t,r){"use strict";var i=r(24246),n=r(77181),s=r(70788);t.Z=e=>{let{heading:t,breadcrumbItems:r,isSticky:o=!0,children:a,rightContent:d,style:c,...l}=e;return(0,i.jsxs)("div",{...l,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,i.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(n.X6q,{className:r||a?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,d&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:d})]}),!!r&&(0,i.jsx)(s.m,{className:a?"pb-4":void 0,items:r,"data-testid":"page-breadcrumb"}),a]})}},70788:function(e,t,r){"use strict";r.d(t,{m:function(){return c}});var i=r(24246),n=r(77181),s=r(79894),o=r.n(s),a=r(27378);let{Text:d}=n.AntTypography,c=e=>{let{items:t,...r}=e,s=(0,a.useMemo)(()=>null==t?void 0:t.map((e,r)=>{let s=r===t.length-1,a={...e},c=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,i.jsx)(d,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:a.title})),c)?a.title=(0,i.jsx)(n.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,i.jsx)(o(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,i.jsx)(n.zrq,{items:s,...r})}},57916:function(e,t,r){"use strict";r.r(t);var i=r(24246),n=r(77181),s=r(79894),o=r.n(s),a=r(77213),d=r(77830),c=r(58754);let{Text:l}=n.AntTypography;t.default=()=>(0,i.jsxs)(a.Z,{title:"Configure Privacy Requests",children:[(0,i.jsx)(c.Z,{heading:"Privacy Requests",breadcrumbItems:[{title:"All requests",href:d.Jw},{title:"Configure requests"}]}),(0,i.jsx)(l,{strong:!0,children:"Configure your privacy requests:"}),(0,i.jsxs)(n.xuv,{display:"flex",alignItems:"center",my:5,"data-testid":"privacy-requests-configure",children:[(0,i.jsxs)(n.fGe,{p:"5",borderWidth:"1px",rounded:"md",borderColor:"gray.300",_hover:{borderColor:"complimentary.500",cursor:"pointer"},mr:5,minHeight:"100%",children:[(0,i.jsx)(n.X6q,{mb:2,size:"sm",children:(0,i.jsx)(n.AB5,{as:o(),href:"/privacy-requests/configure/messaging",children:"Configure messaging provider"})}),"Fides supports email (Mailgun & Twilio) and SMS (Twilio) server configurations for sending processing notices to privacy request subjects. Configure your settings here."]}),(0,i.jsxs)(n.fGe,{p:"5",borderWidth:"1px",rounded:"md",borderColor:"gray.300",_hover:{borderColor:"complimentary.500",cursor:"pointer"},minHeight:"100%",children:[(0,i.jsx)(n.X6q,{mb:2,size:"sm",children:(0,i.jsx)(n.AB5,{as:o(),href:"/privacy-requests/configure/storage",children:"Configure storage"})}),"The data produced by an access request will need to be uploaded to a storage destination (e.g. an S3 bucket) in order to be returned to the user. At least one storage destination must be configured to process access requests. Configure your settings here."]})]})]})}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=29221)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2369],{1565:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/privacy-requests",function(){return r(22017)}])},35287:function(e,t,r){"use strict";var l=r(24246),i=r(77181),a=r(88038),n=r.n(a);r(27378),t.Z=e=>{let{children:t,title:r,mainProps:a}=e;return(0,l.jsxs)(i.kCb,{"data-testid":r,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,l.jsxs)(n(),{children:[(0,l.jsxs)("title",{children:["Fides Admin UI - ",r]}),(0,l.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,l.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,l.jsx)(i.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...a,children:t})]})}},87361:function(e,t,r){"use strict";var l=r(24246),i=r(77181);t.Z=e=>{let{title:t,text:r,onClose:a}=e;return(0,l.jsxs)(i.Ugi,{backgroundColor:"gray.50",border:"1px solid",borderRadius:"md",justifyContent:"space-between",py:4,pr:6,pl:3,"data-testid":"empty-state",gap:2,position:"relative",children:[a&&(0,l.jsx)(i.Two,{boxSize:5,position:"absolute",right:3,top:3,zIndex:1,cursor:"pointer",p:1,onClick:a}),(0,l.jsx)(i.iid,{alignSelf:"start",color:"minos",mt:.5,flexGrow:0}),(0,l.jsxs)(i.kCb,{direction:"column",gap:2,flexGrow:1,children:[(0,l.jsx)(i.X6q,{fontSize:"md",children:t}),(0,l.jsx)(i.xvT,{fontSize:"sm",color:"gray.600",lineHeight:"5",children:r})]})]})}},96718:function(e,t,r){"use strict";r.d(t,{z:function(){return a}});var l=r(24246),i=r(77181);let a=e=>{let{...t}=e,r="multiple"===t.mode;return(0,l.jsx)(i.WPr,{defaultActiveFirstOption:!1,maxTagCount:"responsive",allowClear:!0,dropdownStyle:r?void 0:{width:"auto",minWidth:"200px"},className:"w-auto","data-testid":"filter-select",...t})}},97181:function(e,t,r){"use strict";r.d(t,{d:function(){return d}});var l=r(24246),i=r(77181),a=r(34090),n=r(27378),s=r(91613),o=r(40324);let d=e=>{let{name:t,label:r,labelProps:d,tooltip:u,isRequired:c,layout:p="inline",...m}=e,[h,v,{setValue:x}]=(0,a.U$)(t),f=!!(v.touched&&v.error),[y,b]=(0,n.useState)("");h.value||"tags"!==m.mode&&"multiple"!==m.mode||(h.value=[]),"tags"===m.mode&&"string"==typeof h.value&&(h.value=[h.value]);let _="tags"===m.mode?(e,t)=>e?e.value!==y||h.value.includes(y)?m.optionRender?m.optionRender(e,t):e.label:'Create "'.concat(y,'"'):void 0:m.optionRender||void 0,j=e=>{b(e),m.onSearch&&m.onSearch(e)},g=(e,t)=>{x(e),m.onChange&&m.onChange(e,t)};return"inline"===p?(0,l.jsx)(i.NIc,{isInvalid:f,isRequired:c,children:(0,l.jsxs)(i.rjZ,{templateColumns:r?"1fr 3fr":"1fr",children:[r?(0,l.jsx)(o.__,{htmlFor:m.id||t,...d,children:r}):null,(0,l.jsxs)(i.jqI,{align:"center",children:[(0,l.jsxs)(i.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,l.jsx)(i.WPr,{...h,id:m.id||t,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:_,onSearch:"tags"===m.mode?j:void 0,onChange:g,value:h.value||void 0,status:f?"error":void 0}),(0,l.jsx)(o.Bc,{isInvalid:f,message:v.error,fieldName:h.name})]}),u?(0,l.jsx)(s.Z,{label:u}):null]})]})}):(0,l.jsx)(i.NIc,{isInvalid:f,isRequired:c,children:(0,l.jsxs)(i.gCW,{alignItems:"start",children:[(0,l.jsxs)(i.jqI,{align:"center",children:[r?(0,l.jsx)(o.__,{htmlFor:m.id||t,fontSize:"xs",my:0,mr:1,...d,children:r}):null,u?(0,l.jsx)(s.Z,{label:u}):null]}),(0,l.jsx)(i.WPr,{...h,id:m.id||t,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:_,onSearch:"tags"===m.mode?j:void 0,onChange:g,value:h.value||void 0,status:f?"error":void 0}),(0,l.jsx)(o.Bc,{isInvalid:f,message:v.error,fieldName:h.name})]})})}},71784:function(e,t,r){"use strict";r.d(t,{DE:function(){return o},I3:function(){return i},kN:function(){return n},qX:function(){return s},rE:function(){return a}});var l=r(62656);let i=[...new Map([[l.q2.APPROVED,"Approved"],[l.q2.CANCELED,"Canceled"],[l.q2.COMPLETE,"Completed"],[l.q2.DENIED,"Denied"],[l.q2.ERROR,"Error"],[l.q2.IN_PROCESSING,"In Progress"],[l.q2.PENDING,"New"],[l.q2.PAUSED,"Paused"],[l.q2.IDENTITY_UNVERIFIED,"Unverified"],[l.q2.REQUIRES_INPUT,"Requires input"]])].map(e=>{let[t,r]=e;return{label:r,value:t}}),a=new Map([[l.Us.ACCESS,"Access"],[l.Us.ERASURE,"Erasure"],[l.Us.CONSENT,"Consent"],[l.Us.UPDATE,"Update"]]),n=[...a].map(e=>{let[t,r]=e;return{label:r,value:t}}),s={mailgun:"mailgun",twilio_email:"twilio_email",twilio_text:"twilio_text"},o={local:"local",s3:"s3"}},22017:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return es}});var l,i,a=r(24246),n=r(35287),s=r(77181),o=r(65218),d=r.n(o),u=r(27378),c=r(25980),p=r(19904),m=r(59003),h=r(92222),v=r(86677),x=r(16125),f=r(91317),y=r(14048),b=r(14481),_=r(90867),j=r(16394),g=r(71784),q=r(62656);let C={approved:{colorScheme:"success",label:"Approved"},complete:{label:"Completed",colorScheme:"success"},awaiting_email_send:{label:"Awaiting Email Send",colorScheme:"marble"},denied:{label:"Denied",colorScheme:"warning"},canceled:{label:"Canceled",colorScheme:"marble"},error:{label:"Error",colorScheme:"error"},in_processing:{label:"In Progress",colorScheme:"caution"},paused:{label:"Paused",colorScheme:"marble"},pending:{label:"New",colorScheme:"info"},identity_unverified:{label:"Unverified",colorScheme:"marble"},requires_input:{colorScheme:"alert",label:"Requires Input"}},E=e=>{let{value:t}=e;return(0,a.jsx)(b.A4,{color:C[t].colorScheme,value:C[t].label,"data-testid":"request-status-badge"})},R=e=>{let t,{daysLeft:r,timeframe:l=45,status:i,includeText:n=!1}=e;if(null==r||i===q.q2.COMPLETE||i===q.q2.CANCELED||i===q.q2.DENIED||i===q.q2.IDENTITY_UNVERIFIED)return null;let s=100*r/l;return s<25?t="error":s>=75?t="success":s>=25&&(t="warning"),(0,a.jsx)(b.A4,{value:n?"".concat(r," days left"):r.toString(),color:t})},w=e=>Array.from(new Set(e.filter(e=>Object.values(q.Us).includes(e.action_type)).map(e=>e.action_type))),S=e=>{let{value:t}=e,r=w(t).map(e=>g.rE.get(e));return(0,a.jsx)(b.WP,{value:r,cellState:{isExpanded:!0}})};var I=r(58452),P=r(57526),k=r(66548),T=r(45489);let D=e=>{let{subjectRequest:t,...r}=e,l=(0,s.qY0)(),i=(0,s.qY0)(),n=(0,s.qY0)(),{handleApproveRequest:o,handleDenyRequest:d,handleDeleteRequest:u,isLoading:c}=(0,T.Z)({subjectRequest:t});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(s.Ugi,{...r,children:["pending"!==t.status?null:(0,a.jsx)(s.wpx,{title:"Approve","aria-label":"Approve",icon:(0,a.jsx)(s.nQG,{w:2,h:2}),onClick:l.onOpen,loading:c,disabled:c,"data-testid":"privacy-request-approve-btn",size:"small"}),"pending"!==t.status?null:(0,a.jsx)(s.wpx,{title:"Deny","aria-label":"Deny",icon:(0,a.jsx)(s.Two,{w:2,h:2}),onClick:i.onOpen,loading:c,disabled:c,"data-testid":"privacy-request-deny-btn",size:"small"}),(0,a.jsx)(p.ZP,{scopes:[q.Sh.PRIVACY_REQUEST_DELETE],children:(0,a.jsx)(s.wpx,{title:"Delete","aria-label":"Delete",icon:(0,a.jsx)(s.pJl,{w:2,h:2}),onClick:n.onOpen,loading:c,disabled:c,"data-testid":"privacy-request-delete-btn",size:"small"})})]}),(0,a.jsx)(s.h_i,{children:(0,a.jsx)(P.Z,{isOpen:l.isOpen,isLoading:c,onClose:l.onClose,onApproveRequest:o,subjectRequest:t})}),(0,a.jsx)(s.h_i,{children:(0,a.jsx)(k.Z,{isOpen:i.isOpen,onClose:i.onClose,onDenyRequest:d})}),(0,a.jsx)(I.Z,{isOpen:n.isOpen,onClose:n.onClose,onConfirm:u,message:(0,a.jsx)(s.xvT,{children:"You are about to permanently delete the privacy request. Are you sure you would like to continue?"})})]})};(l=i||(i={})).STATUS="status",l.DAYS_LEFT="due_date",l.SOURCE="source",l.REQUEST_TYPE="request_type",l.SUBJECT_IDENTITY="subject_identity",l.TIME_RECEIVED="created_at",l.CREATED_BY="created_by",l.REVIEWER="reviewer",l.ID="id",l.ACTIONS="actions";let A=(0,h.Cl)(),O=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return[A.accessor(e=>e.status,{id:"status",cell:e=>{let{getValue:t}=e;return(0,a.jsx)(E,{value:t()})},header:e=>(0,a.jsx)(b.Rr,{value:"Status",...e})}),A.accessor(e=>e.days_left,{id:"due_date",cell:e=>{let{row:t,getValue:r}=e;return(0,a.jsx)(R,{daysLeft:r(),timeframe:t.original.policy.execution_timeframe,status:t.original.status})},header:e=>(0,a.jsx)(b.Rr,{value:"Days left",...e})}),...e?[A.accessor(e=>e.source,{id:"source",cell:e=>e.getValue()?(0,a.jsx)(b.A4,{value:e.getValue()}):(0,a.jsx)(b.G3,{value:void 0}),header:e=>(0,a.jsx)(b.Rr,{value:"Source",...e}),enableSorting:!1})]:[],A.accessor(e=>e.policy.rules,{id:"request_type",cell:e=>{let{getValue:t}=e;return(0,a.jsx)(S,{value:t()})},header:e=>(0,a.jsx)(b.Rr,{value:"Request type",...e}),enableSorting:!1}),A.accessor(e=>{var t,r;return(null===(t=e.identity)||void 0===t?void 0:t.email.value)||(null===(r=e.identity)||void 0===r?void 0:r.phone_number.value)||""},{id:"subject_identity",cell:e=>{let{getValue:t}=e;return(0,a.jsx)(b.G3,{value:t()})},header:e=>(0,a.jsx)(b.Rr,{value:"Subject identity",...e}),enableSorting:!1}),A.accessor(e=>e.created_at,{id:"created_at",cell:e=>{let{getValue:t}=e;return(0,a.jsx)(b.G3,{value:(0,j.p6)(t())})},header:e=>(0,a.jsx)(b.Rr,{value:"Time received",...e})}),A.accessor(e=>{var t;return(null===(t=e.reviewer)||void 0===t?void 0:t.username)||""},{id:"reviewer",cell:e=>{let{getValue:t}=e;return(0,a.jsx)(b.G3,{value:t()})},header:e=>(0,a.jsx)(b.Rr,{value:"Reviewed by",...e}),enableSorting:!1}),A.accessor(e=>e.id,{id:"id",cell:e=>{let{getValue:t}=e;return(0,a.jsx)(b.G3,{value:t()})},header:e=>(0,a.jsx)(b.Rr,{value:"Request ID",...e}),enableSorting:!1}),A.display({id:"actions",cell:e=>{let{row:t}=e;return(0,a.jsx)(D,{subjectRequest:t.original})},header:e=>(0,a.jsx)(b.Rr,{value:"Actions",...e}),meta:{disableRowClick:!0}})]},N=e=>{let t=(0,x.v9)(_.dp),r=(0,x.I0)();return{handleStatusChange:t=>{r((0,_.CI)(t)),e()},handleActionTypeChange:t=>{r((0,_.aM)(t)),e()},handleFromChange:t=>{r((0,_.su)(null==t?void 0:t.target.value)),e()},handleToChange:t=>{r((0,_.Ue)(null==t?void 0:t.target.value)),e()},handleClearAllFilters:()=>{r((0,_.Mk)()),e()},...t}};var U=r(96718);let F=e=>{let{onClose:t,onFilterChange:r,...l}=e,{handleStatusChange:i,handleActionTypeChange:n,handleFromChange:o,handleToChange:d,handleClearAllFilters:u,from:c,to:p,status:m,action_type:h}=N(r);return(0,a.jsxs)(s.u_l,{onClose:t,size:"xl",...l,children:[(0,a.jsx)(s.ZAr,{}),(0,a.jsxs)(s.hzk,{children:[(0,a.jsx)(s.xBx,{borderBottomWidth:1,borderBottomColor:"gray.200",children:"All Filters"}),(0,a.jsx)(s.olH,{}),(0,a.jsx)(s.fef,{py:4,sx:{"& label":{mb:0}},children:(0,a.jsxs)(s.Kqy,{gap:4,children:[(0,a.jsxs)(s.Kqy,{children:[(0,a.jsx)(s.lXp,{size:"md",id:"request-date-range-label",children:"Date range"}),(0,a.jsxs)(s.Ugi,{gap:3,children:[(0,a.jsxs)(s.BZy,{size:"sm",flex:1,children:[(0,a.jsx)(s.UiE,{as:"label",htmlFor:"from-date",borderRadius:"md",children:"From"}),(0,a.jsx)(s.IIB,{type:"date",name:"From",value:c,max:p||void 0,onChange:o,borderRadius:"md",id:"from-date","aria-describedby":"request-date-range-label"})]}),(0,a.jsxs)(s.BZy,{size:"sm",flex:1,children:[(0,a.jsx)(s.UiE,{as:"label",htmlFor:"to-date",borderRadius:"md",children:"To"}),(0,a.jsx)(s.IIB,{type:"date",borderRadius:"md",name:"To",value:p,min:c||void 0,onChange:d,id:"to-date","aria-describedby":"request-date-range-label"})]})]})]}),(0,a.jsxs)(s.Kqy,{children:[(0,a.jsx)(s.lXp,{size:"md",htmlFor:"request-status",children:"Status"}),(0,a.jsx)(U.z,{id:"request-status",mode:"multiple",options:g.I3,value:m,onChange:i,"data-testid":"request-status-filter"})]}),(0,a.jsxs)(s.Kqy,{children:[(0,a.jsx)(s.lXp,{size:"md",htmlFor:"request-action-type",children:"Request Type"}),(0,a.jsx)(U.z,{id:"request-action-type",mode:"multiple",options:g.kN,value:h,onChange:n,"data-testid":"request-action-type-filter"})]})]})}),(0,a.jsxs)(s.mzw,{justifyContent:"space-between",children:[(0,a.jsx)(s.wpx,{type:"text",onClick:u,children:"Clear all"}),(0,a.jsx)(s.wpx,{type:"primary",onClick:t,children:"Done"})]})]})]})},z=e=>{let{...t}=e,{plus:r}=(0,c.hz)(),[l,i]=(0,u.useState)(""),n=(0,x.v9)(_.dp),o=(0,x.v9)(f.rK),d=(0,s.pmc)(),p=(0,v.useRouter)(),j=(0,x.I0)(),{PAGE_SIZES:g,pageSize:q,setPageSize:C,onPreviousPageClick:E,isPreviousPageDisabled:R,onNextPageClick:w,isNextPageDisabled:S,startRange:I,endRange:P,pageIndex:k,setTotalPages:T,resetPageIndexToDefault:D}=(0,b.oi)(),{isOpen:A,onOpen:N,onClose:U}=(0,s.qY0)(),{data:z,isLoading:Z,isFetching:M}=(0,_.QA)({...n,page:k,size:q}),{items:V,total:Y}=(0,u.useMemo)(()=>{let e=z||{items:[],total:0,pages:0};return T(e.pages),e},[z,T]),G=(0,u.useCallback)(e=>{j((0,_.mU)(e)),i(e),D()},[j,D,i]),B=async()=>{let e;try{await (0,_.py)({...n,token:o})}catch(t){e=t instanceof Error?t.message:"Unknown error occurred"}e&&d({description:"".concat(e),duration:5e3,status:"error"})},L=e=>{p.push("/privacy-requests/".concat(e))},W=(0,m.b7)({getCoreRowModel:(0,h.sC)(),data:V,columns:(0,u.useMemo)(()=>O(r),[r]),getRowId:e=>"".concat(e.status,"-").concat(e.id),manualPagination:!0,columnResizeMode:"onChange"});return(0,a.jsxs)(s.xuv,{...t,children:[(0,a.jsxs)(b.Q$,{children:[(0,a.jsx)(b.HO,{globalFilter:l,setGlobalFilter:G,placeholder:"Search by request ID or identity value"}),(0,a.jsxs)(s.Ugi,{alignItems:"center",spacing:2,children:[(0,a.jsx)(s.wpx,{"data-testid":"filter-btn",onClick:N,children:"Filter"}),(0,a.jsx)(s.wpx,{"aria-label":"Export report","data-testid":"export-btn",icon:(0,a.jsx)(y.nM,{ml:"1.5px"}),onClick:B})]}),(0,a.jsx)(s.h_i,{children:(0,a.jsx)(F,{isOpen:A,onClose:U,onFilterChange:D})})]}),Z?(0,a.jsx)(s.xuv,{p:2,borderWidth:1,children:(0,a.jsx)(b.I4,{rowHeight:26,numRows:10})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b.ZK,{tableInstance:W,onRowClick:e=>L(e.id),onSort:e=>{if(!e){j((0,_.p2)()),D();return}let{id:t,desc:r}=e;j((0,_.PU)(t)),j((0,_.iX)(r?"desc":"asc")),D()}}),(0,a.jsx)(b.s8,{totalRows:Y||0,pageSizes:g,setPageSize:C,onPreviousPageClick:E,isPreviousPageDisabled:R||M,onNextPageClick:w,isNextPageDisabled:S||M,startRange:I,endRange:P})]})]})};var Z=r(812),M=r(87361),V=r(46628),Y=r(34090),G=r(55484),B=r(40324);let L=(e,t)=>null==t?void 0:t.find(t=>t.policy_key===e),W=e=>{var t,r;if(!e)return G.Ry().shape({policy_key:G.Z_().required().label("Request type")});let l=e.custom_privacy_request_fields?Object.entries(e.custom_privacy_request_fields).map(e=>{let[t,r]=e;return{[t]:G.Ry().shape({value:r.required&&!r.hidden?G.Z_().required().label(r.label):G.Z_().nullable()})}}).reduce((e,t)=>({...e,...t}),{}):{};return G.Ry().shape({policy_key:G.Z_().required().label("Request type"),identity:G.Ry().shape({email:(null===(t=e.identity_inputs)||void 0===t?void 0:t.email)==="required"?G.Z_().email().required().label("Email address"):G.Z_().nullable(),phone_number:(null===(r=e.identity_inputs)||void 0===r?void 0:r.phone)==="required"?G.Z_().matches(/^\+?[1-9]\d{1,14}$/,"Phone number must be formatted correctly (e.g. 15555555555)").required().label("Phone number"):G.Z_().matches(/^\+?[1-9]\d{1,14}$/,"Phone number must be formatted correctly (e.g. 15555555555)").nullable()}),custom_privacy_request_fields:G.Ry().shape(l)})};var X=r(97181);let K={is_verified:!1,policy_key:"",identity:{}},Q=e=>{let{identityInputs:t}=e;return t?(0,a.jsxs)(a.Fragment,{children:[t.email?(0,a.jsx)(B.j0,{name:"identity.email",label:"User email address",isRequired:"required"===t.email,variant:"stacked"}):null,t.phone?(0,a.jsx)(B.j0,{name:"identity.phone_number",label:"User phone number",isRequired:"required"===t.phone,variant:"stacked"}):null]}):null},H=e=>{let{customFieldInputs:t}=e;if(!t)return null;let r=Object.entries(t);return(0,a.jsx)(a.Fragment,{children:r.map(e=>{let[t,r]=e;return(0,a.jsx)(B.j0,{name:"custom_privacy_request_fields.".concat(t,".value"),label:r.label,isRequired:!!r.required,variant:"stacked"},t)})})};var $=e=>{let{onSubmit:t,onCancel:r}=e,{data:l}=(0,_.xv)();return(0,a.jsx)(Y.J9,{initialValues:K,onSubmit:t,validationSchema:()=>(0,G.Vo)(e=>W(L(e.policy_key,null==l?void 0:l.actions))),children:e=>{var t;let{values:i,dirty:n,isValid:o,isSubmitting:d,setFieldValue:u}=e,c=L(i.policy_key,null==l?void 0:l.actions);return(0,a.jsx)(Y.l0,{children:(0,a.jsxs)(s.Kqy,{spacing:6,mb:2,children:[(0,a.jsx)(X.d,{name:"policy_key",label:"Request type",options:null!==(t=null==l?void 0:l.actions.map(e=>({label:e.title,value:e.policy_key})))&&void 0!==t?t:[],onChange:e=>{let t=L(e,null==l?void 0:l.actions);if(!(null==t?void 0:t.custom_privacy_request_fields)){u("custom_privacy_request_fields",void 0);return}u("custom_privacy_request_fields",Object.entries(t.custom_privacy_request_fields).map(e=>{let[t,r]=e;return{[t]:{label:r.label,value:r.default_value}}}).reduce((e,t)=>({...e,...t}),{}))},layout:"stacked",isRequired:!0}),(0,a.jsx)(Q,{identityInputs:null==c?void 0:c.identity_inputs}),(0,a.jsx)(H,{customFieldInputs:null==c?void 0:c.custom_privacy_request_fields}),(0,a.jsx)(B.Xl,{name:"is_verified",label:"I confirm that I have verified this user information"}),(0,a.jsxs)("div",{className:"flex gap-4 self-end",children:[(0,a.jsx)(s.wpx,{onClick:r,children:"Cancel"}),(0,a.jsx)(s.wpx,{htmlType:"submit",type:"primary",disabled:!i.is_verified||!n||!o,loading:d,"data-testid":"submit-btn",children:"Create"})]})]})})}})},J=r(31883);let ee=e=>{let{isOpen:t,onClose:r}=e,[l]=(0,_.M6)(),i=(0,s.pmc)(),n=async e=>{let{is_verified:t,...a}=e,n=a.custom_privacy_request_fields?Object.entries(a.custom_privacy_request_fields).map(e=>{let[t,r]=e;return r.value?{[t]:r}:{}}).reduce((e,t)=>({...e,...t}),{}):void 0,s={...a,custom_privacy_request_fields:n},o=await l([s]);(0,J.D4)(o)?i((0,V.Vo)((0,Z.e$)(o.error,"An error occurred while creating this privacy request. Please try again"))):i((0,V.t5)("Privacy request created")),r()};return(0,a.jsxs)(s.u_l,{isOpen:t,onClose:r,size:"2xl",isCentered:!0,children:[(0,a.jsx)(s.ZAr,{}),(0,a.jsxs)(s.hzk,{"data-testid":"submit-request-modal",maxHeight:"80%",overflowY:"auto",children:[(0,a.jsx)(s.xBx,{children:"Create privacy request"}),(0,a.jsx)(s.fef,{children:(0,a.jsxs)(s.Kqy,{spacing:4,children:[(0,a.jsx)(M.Z,{title:"Warning: You are bypassing identity verification",text:"You are bypassing Fides' built-in identity verification step. Please ensure that you are only entering information on behalf of a verified and approved user's privacy request."}),(0,a.jsx)($,{onSubmit:n,onCancel:()=>r()})]})})]})]})};var et=()=>{let{onOpen:e,isOpen:t,onClose:r}=(0,s.qY0)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ee,{isOpen:t,onClose:r}),(0,a.jsx)(s.wpx,{type:"primary",onClick:e,"data-testid":"submit-request-btn",children:"Create request"})]})},er=r(58754),el=r(14047);let ei=()=>{let{errorAlert:e}=(0,el.V)(),[t,r]=(0,u.useState)(!1),[l,i]=(0,u.useState)({count:0,total:0}),[n,o]=(0,u.useState)(!0),d=q.q2.ERROR,{data:c}=(0,_.tE)(),{data:p}=(0,_.QA)({status:[d]},{pollingInterval:15e3,skip:n});return(0,u.useEffect)(()=>{o(!(c&&c.notify_after_failures>0))},[c]),(0,u.useEffect)(()=>{let e=(null==p?void 0:p.total)||0;e>=((null==c?void 0:c.notify_after_failures)||0)&&e>l.total?(i({count:e-l.total,total:e}),r(!0)):r(!1)},[null==p?void 0:p.total,null==c?void 0:c.notify_after_failures,l.total]),{processing:()=>{t&&e((0,a.jsxs)(s.xuv,{children:["DSR automation has failed for"," ",(0,a.jsx)(s.xvT,{as:"span",fontWeight:"semibold",children:l.count})," ","privacy request(s). Please review the event log for further details."]}),void 0,{containerStyle:{maxWidth:"max-content"},duration:null,id:"dsrErrorAlert"})}}},ea=d()(()=>r.e(9676).then(r.bind(r,59676)),{loadableGenerated:{webpack:()=>[59676]},loading:()=>(0,a.jsx)("div",{children:"Loading..."})});var en=()=>{let{processing:e}=ei(),{plus:t}=(0,c.hz)();return(0,u.useEffect)(()=>{e()},[e]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(er.Z,{heading:"Privacy Requests",breadcrumbItems:[{title:"All requests"}],rightContent:(0,a.jsxs)(s.vyj,{children:[t&&(0,a.jsx)(p.ZP,{scopes:[q.Sh.PRIVACY_REQUEST_CREATE],children:(0,a.jsx)(et,{})}),(0,a.jsx)(ea,{})]}),"data-testid":"privacy-requests"}),(0,a.jsx)(z,{})]})},es=()=>(0,a.jsx)(n.Z,{title:"Privacy Requests",children:(0,a.jsx)(en,{})})},31883:function(e,t,r){"use strict";r.d(t,{Bw:function(){return l.Bw},D4:function(){return l.D4}});var l=r(19043)},76737:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return s},noSSR:function(){return n}});let l=r(51538);r(24246),r(27378);let i=l._(r(21887));function a(e){return{default:(null==e?void 0:e.default)||e}}function n(e,t){return delete t.webpack,delete t.modules,e(t)}function s(e,t){let r=i.default,l={loading:e=>{let{error:t,isLoading:r,pastDelay:l}=e;return null}};e instanceof Promise?l.loader=()=>e:"function"==typeof e?l.loader=e:"object"==typeof e&&(l={...l,...e});let s=(l={...l,...t}).loader;return(l.loadableGenerated&&(l={...l,...l.loadableGenerated},delete l.loadableGenerated),"boolean"!=typeof l.ssr||l.ssr)?r({...l,loader:()=>null!=s?s().then(a):Promise.resolve(a(()=>null))}):(delete l.webpack,delete l.modules,n(r,l))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28438:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return l}});let l=r(51538)._(r(27378)).default.createContext(null)},21887:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return p}});let l=r(51538)._(r(27378)),i=r(28438),a=[],n=[],s=!1;function o(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class d{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function u(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),a=null;function o(){if(!a){let t=new d(e,r);a={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return a.promise()}if(!s){let e=r.webpack?r.webpack():r.modules;e&&n.push(t=>{for(let r of e)if(t.includes(r))return o()})}function u(e,t){!function(){o();let e=l.default.useContext(i.LoadableContext);e&&Array.isArray(r.modules)&&r.modules.forEach(t=>{e(t)})}();let n=l.default.useSyncExternalStore(a.subscribe,a.getCurrentValue,a.getCurrentValue);return l.default.useImperativeHandle(t,()=>({retry:a.retry}),[]),l.default.useMemo(()=>{var t;return n.loading||n.error?l.default.createElement(r.loading,{isLoading:n.loading,pastDelay:n.pastDelay,timedOut:n.timedOut,error:n.error,retry:a.retry}):n.loaded?l.default.createElement((t=n.loaded)&&t.default?t.default:t,e):null},[e,n])}return u.preload=()=>o(),u.displayName="LoadableComponent",l.default.forwardRef(u)}(o,e)}function c(e,t){let r=[];for(;e.length;){let l=e.pop();r.push(l(t))}return Promise.all(r).then(()=>{if(e.length)return c(e,t)})}u.preloadAll=()=>new Promise((e,t)=>{c(a).then(e,t)}),u.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let r=()=>(s=!0,t());c(n,e).then(r,r)})),window.__NEXT_PRELOADREADY=u.preloadReady;let p=u},65218:function(e,t,r){e.exports=r(76737)}},function(e){e.O(0,[8033,6060,4481,8433,2888,9774,179],function(){return e(e.s=1565)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8161],{23321:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/properties/[id]",function(){return t(56041)}])},56041:function(e,r,t){"use strict";t.r(r);var n=t(24246),u=t(56078),i=t(86677),s=t(812),c=t(77213),l=t(77830),o=t(58754),p=t(46628),a=t(98795),d=t(18880),f=t(31883);r.default=()=>{let e=(0,u.pmc)(),{id:r}=(0,i.useRouter)().query,{data:t}=(0,a.J6)(r),[_]=(0,a.f2)(),h=async r=>{let{id:t,messaging_templates:n,...u}=r,i=await _({id:t,property:u});if((0,f.D4)(i)){e((0,p.Vo)((0,s.e$)(i.error)));return}e((0,p.t5)("Property ".concat(r.name," updated successfully")))};return t?(0,n.jsxs)(c.Z,{title:t.name,children:[(0,n.jsx)(o.Z,{heading:"Properties",breadcrumbItems:[{title:"All properties",href:l.ru},{title:t.name}]}),(0,n.jsx)(u.xuv,{maxWidth:"720px",children:(0,n.jsx)(d.Z,{property:t,handleSubmit:h})})]}):null}}},function(e){e.O(0,[9282,4060,2888,9774,179],function(){return e(e.s=23321)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8161],{23321:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/properties/[id]",function(){return t(56041)}])},56041:function(e,r,t){"use strict";t.r(r);var n=t(24246),u=t(77181),i=t(86677),s=t(812),c=t(77213),l=t(77830),o=t(58754),p=t(46628),a=t(98795),d=t(18880),f=t(31883);r.default=()=>{let e=(0,u.pmc)(),{id:r}=(0,i.useRouter)().query,{data:t}=(0,a.J6)(r),[_]=(0,a.f2)(),h=async r=>{let{id:t,messaging_templates:n,...u}=r,i=await _({id:t,property:u});if((0,f.D4)(i)){e((0,p.Vo)((0,s.e$)(i.error)));return}e((0,p.t5)("Property ".concat(r.name," updated successfully")))};return t?(0,n.jsxs)(c.Z,{title:t.name,children:[(0,n.jsx)(o.Z,{heading:"Properties",breadcrumbItems:[{title:"All properties",href:l.ru},{title:t.name}]}),(0,n.jsx)(u.xuv,{maxWidth:"720px",children:(0,n.jsx)(d.Z,{property:t,handleSubmit:h})})]}):null}}},function(e){e.O(0,[9282,4060,2888,9774,179],function(){return e(e.s=23321)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1855],{89772:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/properties/add-property",function(){return r(59575)}])},59575:function(e,t,r){"use strict";r.r(t);var n=r(24246),u=r(56078),c=r(86677),i=r(812),s=r(77213),o=r(77830),a=r(58754),d=r(46628),p=r(98795),l=r(18880),_=r(31883);t.default=()=>{let e=(0,u.pmc)(),t=(0,c.useRouter)(),[r]=(0,p.dX)(),f=async n=>{let u=await r(n);if((0,_.D4)(u)){e((0,d.Vo)((0,i.e$)(u.error)));return}let c=u.data;e((0,d.t5)("Property ".concat(n.name," created successfully"))),t.push("".concat(o.ru,"/").concat(c.id))};return(0,n.jsxs)(s.Z,{title:"Add property",children:[(0,n.jsx)(a.Z,{heading:"Properties",breadcrumbItems:[{title:"All properties",href:o.ru},{title:"Add property"}]}),(0,n.jsx)(u.xuv,{maxWidth:"720px",children:(0,n.jsx)(l.Z,{handleSubmit:f})})]})}}},function(e){e.O(0,[9282,4060,2888,9774,179],function(){return e(e.s=89772)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1855],{89772:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/properties/add-property",function(){return r(59575)}])},59575:function(e,t,r){"use strict";r.r(t);var n=r(24246),u=r(77181),c=r(86677),i=r(812),s=r(77213),o=r(77830),a=r(58754),d=r(46628),p=r(98795),l=r(18880),_=r(31883);t.default=()=>{let e=(0,u.pmc)(),t=(0,c.useRouter)(),[r]=(0,p.dX)(),f=async n=>{let u=await r(n);if((0,_.D4)(u)){e((0,d.Vo)((0,i.e$)(u.error)));return}let c=u.data;e((0,d.t5)("Property ".concat(n.name," created successfully"))),t.push("".concat(o.ru,"/").concat(c.id))};return(0,n.jsxs)(s.Z,{title:"Add property",children:[(0,n.jsx)(a.Z,{heading:"Properties",breadcrumbItems:[{title:"All properties",href:o.ru},{title:"Add property"}]}),(0,n.jsx)(u.xuv,{maxWidth:"720px",children:(0,n.jsx)(l.Z,{handleSubmit:f})})]})}}},function(e){e.O(0,[9282,4060,2888,9774,179],function(){return e(e.s=89772)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7322],{29303:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/properties",function(){return i(42652)}])},42652:function(e,n,i){"use strict";i.r(n);var r=i(24246),s=i(56078),t=i(77213),o=i(58754),a=i(25783);n.default=()=>(0,r.jsxs)(t.Z,{title:"Properties",children:[(0,r.jsx)(o.Z,{heading:"Properties",children:(0,r.jsx)(s.xvT,{fontSize:"sm",width:{base:"100%",lg:"60%"},children:"Review and manage your properties below. Properties are the locations you have configured for consent management such as a website or mobile app."})}),(0,r.jsx)(a.V,{})]})}},function(e){e.O(0,[8033,6060,4481,79,2888,9774,179],function(){return e(e.s=29303)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7322],{29303:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/properties",function(){return i(42652)}])},42652:function(e,n,i){"use strict";i.r(n);var r=i(24246),s=i(77181),t=i(77213),o=i(58754),a=i(25783);n.default=()=>(0,r.jsxs)(t.Z,{title:"Properties",children:[(0,r.jsx)(o.Z,{heading:"Properties",children:(0,r.jsx)(s.xvT,{fontSize:"sm",width:{base:"100%",lg:"60%"},children:"Review and manage your properties below. Properties are the locations you have configured for consent management such as a website or mobile app."})}),(0,r.jsx)(a.V,{})]})}},function(e){e.O(0,[8033,6060,4481,79,2888,9774,179],function(){return e(e.s=29303)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9196],{95372:function(e){e.exports=function(e,t,a,s){for(var r=e.length,i=a+(s?1:-1);s?i--:++i<r;)if(t(e[i],i,e))return i;return -1}},67375:function(e,t,a){var s=a(52033),r=a(80068);e.exports=function(e,t){var a=-1,i=r(e)?Array(e.length):[];return s(e,function(e,s,r){i[++a]=t(e,s,r)}),i}},74833:function(e,t,a){var s=a(56127),r=/^\s+/;e.exports=function(e){return e?e.slice(0,s(e)+1).replace(r,""):e}},56632:function(e,t,a){var s=a(89278),r=a(80068),i=a(50098);e.exports=function(e){return function(t,a,n){var o=Object(t);if(!r(t)){var l=s(a,3);t=i(t),a=function(e){return l(o[e],e,o)}}var c=e(t,a,n);return c>-1?o[l?t[c]:c]:void 0}}},56127:function(e){var t=/\s/;e.exports=function(e){for(var a=e.length;a--&&t.test(e.charAt(a)););return a}},64925:function(e,t,a){var s=a(56632)(a(66259));e.exports=s},66259:function(e,t,a){var s=a(95372),r=a(89278),i=a(47991),n=Math.max;e.exports=function(e,t,a){var o=null==e?0:e.length;if(!o)return -1;var l=null==a?0:i(a);return l<0&&(l=n(o+l,0)),s(e,r(t,3),l)}},55807:function(e,t,a){var s=a(66070),r=a(89278),i=a(67375),n=a(19785);e.exports=function(e,t){return(n(e)?s:i)(e,r(t,3))}},32526:function(e,t,a){var s=a(68267)(function(e,t,a){return e+(a?"_":"")+t.toLowerCase()});e.exports=s},94919:function(e,t,a){var s=a(91936),r=1/0;e.exports=function(e){return e?(e=s(e))===r||e===-r?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,a){var s=a(94919);e.exports=function(e){var t=s(e),a=t%1;return t==t?a?t-a:t:0}},91936:function(e,t,a){var s=a(74833),r=a(11611),i=a(55193),n=0/0,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return n;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=s(e);var a=l.test(e);return a||c.test(e)?d(e.slice(2),a?2:8):o.test(e)?n:+e}},86548:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/reporting/datamap",function(){return a(11803)}])},624:function(e,t,a){"use strict";var s=a(24246),r=a(77181),i=a(27378);let n=e=>{let t=e.split("."),a=[];return t.forEach(e=>{let t=a.length>0?a[a.length-1]:null;t?a.push("".concat(t,".").concat(e)):a.push(e)}),a},o=(e,t)=>{let a=n(t).filter(e=>e!==t);return e.filter(e=>a.includes(e)).length>0},l=(e,t)=>!!(e===t||e.startsWith("".concat(t,"."))),c=(e,t,a)=>{let s=null!=a?a:[];return e.forEach(e=>{e.children&&c(e.children,t,s),l(e.value,t)&&s.push(e)}),s},d=e=>{let{node:t,isChecked:a,onChecked:i,isExpanded:n,onExpanded:o,isIndeterminate:l,isDisabled:c,children:d}=e,{value:u,label:_}=t,p=!!t.children&&t.children.length>0;return(0,s.jsxs)(r.xuv,{children:[(0,s.jsxs)(r.xuv,{display:"flex",justifyContent:"space-between",_hover:{backgroundColor:"gray.100",cursor:"pointer"},onClick:()=>o(t),minHeight:8,children:[(0,s.jsx)(r.XZJ,{colorScheme:"complimentary",value:u,isChecked:!l&&a,isIndeterminate:l,isDisabled:c,onChange:()=>i(t),mx:2,"data-testid":"checkbox-".concat(_),children:_}),p?(0,s.jsx)(r.wpx,{"data-testid":"expand-".concat(_),"aria-label":n?"collapse":"expand",icon:(0,s.jsx)(r.v4q,{boxSize:5}),type:"text",onClick:()=>o(t),className:n?"rotate-180":void 0}):null]}),d&&(0,s.jsx)(r.xuv,{ml:5,children:d})]})};t.ZP=e=>{let{nodes:t,selected:a,onSelected:u,..._}=e,[p,m]=(0,i.useState)([]),[E,S]=(0,i.useState)([]);(0,i.useEffect)(()=>{let e=Array.from(new Set([...a.map(e=>n(e)).reduce((e,t)=>e.concat(t),[]),...a.map(e=>c(t,e)).reduce((e,t)=>e.concat(t),[]).map(e=>e.value)]));S(e),m(e)},[a,t]);let h=e=>{let s=[],r=[];p.indexOf(e.value)>=0?(s=p.filter(t=>!l(t,e.value)),r=a.filter(t=>!l(t,e.value))):(s=[...p,...c(t,e.value).map(e=>e.value)],r=[...a,e.value]),m(s),u(r)},f=e=>{E.indexOf(e.value)>=0?S(E.filter(t=>!l(t,e.value))):S([...E,e.value])},g=e=>{if(e.children){let r=p.indexOf(e.value)>=0,n=E.indexOf(e.value)>=0,l=c(t,e.value),u=r&&e.children.length>0&&p.filter(t=>t.startsWith("".concat(e.value,"."))).length+1!==l.length,_=o(a,e.value);return(0,s.jsx)(d,{node:e,isChecked:r,onChecked:h,isExpanded:n,onExpanded:f,isDisabled:_,isIndeterminate:u,children:n?e.children.map(e=>(0,s.jsx)(i.Fragment,{children:g(e)},e.value)):void 0})}return null};return(0,s.jsx)(r.xuv,{..._,children:t.map(e=>(0,s.jsx)(r.xuv,{children:g(e)},e.value))})}},35287:function(e,t,a){"use strict";var s=a(24246),r=a(77181),i=a(88038),n=a.n(i);a(27378),t.Z=e=>{let{children:t,title:a,mainProps:i}=e;return(0,s.jsxs)(r.kCb,{"data-testid":a,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,s.jsxs)(n(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",a]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsx)(r.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...i,children:t})]})}},56358:function(e,t,a){"use strict";a.d(t,{q:function(){return r}});var s=a(24246);let r=(0,a(77181).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,s.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},19904:function(e,t,a){"use strict";a.d(t,{Tg:function(){return n}});var s=a(24246),r=a(16134),i=a(31793);let n=e=>(0,r.C)(i.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:a}=e;return n(t)?(0,s.jsx)(s.Fragment,{children:a}):null}},70416:function(e,t,a){"use strict";a.d(t,{d:function(){return r}});var s=a(24246);let r=(0,a(77181).IUT)({displayName:"AddIcon",viewBox:"0 0 10 10",path:(0,s.jsx)("path",{d:"M4.33331 4.33398V0.333984H5.66665V4.33398H9.66665V5.66732H5.66665V9.66732H4.33331V5.66732H0.333313V4.33398H4.33331Z",fill:"currentColor"})})},34929:function(e,t,a){"use strict";var s=a(24246),r=a(64925),i=a.n(r),n=a(27378),o=a(16134),l=a(30002),c=a(28079),d=a(57072);let u=()=>{let{isLoading:e}=(0,c.fd)(),t=(0,o.C)(c.U3),{isLoading:a}=(0,d.MO)(),s=(0,o.C)(d.qb),{isLoading:r}=(0,l.te)();return{dataUses:t,dataSubjects:(0,o.C)(l.ZL),dataCategories:s,isLoading:e||a||r}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:a,isLoading:r}=u(),o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},l=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=t(e);if(!s)return{};let r=t(o(e,a)),i=!!s.parent_key;return{name:s.name||void 0,primaryName:i&&(null==r?void 0:r.name)!==s.name&&(null==r?void 0:r.name)||void 0}},c=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:r,primaryName:i}=l(e,t,a);return r?i?(0,s.jsxs)(n.Fragment,{children:[(0,s.jsxs)("strong",{children:[i,":"]})," ",r]},e):(0,s.jsx)("strong",{children:r},e):e},d=t=>i()(e,{fides_key:t}),_=e=>i()(t,{fides_key:e}),p=e=>i()(a,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:d,getDataUseDisplayName:e=>c(e,d,1),getDataUseDisplayNameProps:e=>l(e,d,1),getDataCategories:()=>t,getDataCategoryByKey:_,getDataCategoryDisplayName:e=>c(e,_,2),getDataCategoryDisplayNameProps:e=>l(e,_,2),getDataSubjects:()=>a,getDataSubjectByKey:p,getDataSubjectDisplayName:e=>{let t=p(e);return t?t.name:e},getPrimaryKey:o,isLoading:r}}},59001:function(e,t,a){"use strict";a.d(t,{Ch:function(){return n},Hy:function(){return o},Lo:function(){return r}});var s,r,i=a(62656);let n="root";(s=r||(r={})).DATA_CATEGORIES="Data categories",s.DATA_USES="Data uses",s.DATA_SUBJECTS="Data subjects";let o=e=>{switch(e){case"Data categories":return{UPDATE:i.Sh.DATA_CATEGORY_UPDATE,CREATE:i.Sh.DATA_CATEGORY_CREATE,DELETE:i.Sh.DATA_CATEGORY_DELETE,READ:i.Sh.DATA_CATEGORY_READ};case"Data uses":return{UPDATE:i.Sh.DATA_USE_UPDATE,CREATE:i.Sh.DATA_USE_CREATE,DELETE:i.Sh.DATA_USE_DELETE,READ:i.Sh.DATA_USE_READ};case"Data subjects":return{UPDATE:i.Sh.DATA_SUBJECT_UPDATE,CREATE:i.Sh.DATA_SUBJECT_CREATE,DELETE:i.Sh.DATA_SUBJECT_DELETE,READ:i.Sh.DATA_SUBJECT_READ};default:throw Error("Unknown taxonomy type: ".concat(e))}}},90673:function(e,t,a){"use strict";a.d(t,{Cd:function(){return i},Xl:function(){return n}});var s=a(62656),r=a(59001);let i=(e,t)=>{let a;if(null==t&&e.every(e=>void 0===e.parent_key))a=e;else{let s=null!=t?t:null;a=e.filter(e=>e.parent_key===s)}return a.map(t=>{var a,s;let r=t.fides_key;return{value:t.fides_key,label:""===t.name||null==t.name?t.fides_key:t.name,description:t.description,children:i(e,r),is_default:null!==(a=t.is_default)&&void 0!==a&&a,active:null!==(s=t.active)&&void 0!==s&&s}})},n=e=>{switch(e){case r.Lo.DATA_CATEGORIES:return s.P6.DATA_CATEGORY;case r.Lo.DATA_SUBJECTS:return s.P6.DATA_SUBJECT;case r.Lo.DATA_USES:return s.P6.DATA_USE;default:return}}},11803:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return ex}});var s,r,i,n,o=a(24246),l=a(27378),c=a(35287),d=a(58754),u=a(71795),_=a(62656);(s=i||(i={})).COLUMN_EXPANSION_STATE="datamap-column-expansion-state",s.COLUMN_NAMES="datamap-column-names",s.COLUMN_ORDER="datamap-column-order",s.COLUMN_SIZING="datamap-column-sizing",s.COLUMN_VISIBILITY="datamap-column-visibility",s.CUSTOM_REPORT_ID="datamap-custom-report-id",s.FILTERS="datamap-filters",s.GROUP_BY="datamap-group-by",s.SORTING_STATE="datamap-sorting-state",s.WRAPPING_COLUMNS="datamap-wrapping-columns",(r=n||(n={})).SYSTEM_NAME="system_name",r.DATA_USE="data_uses",r.DATA_CATEGORY="data_categories",r.DATA_SUBJECT="data_subjects",r.LEGAL_NAME="legal_name",r.DPO="dpo",r.LEGAL_BASIS_FOR_PROCESSING="legal_basis_for_processing",r.ADMINISTRATING_DEPARTMENT="administrating_department",r.COOKIE_MAX_AGE_SECONDS="cookie_max_age_seconds",r.PRIVACY_POLICY="privacy_policy",r.LEGAL_ADDRESS="legal_address",r.COOKIE_REFRESH="cookie_refresh",r.DATA_SECURITY_PRACTICES="data_security_practices",r.DATA_SHARED_WITH_THIRD_PARTIES="data_shared_with_third_parties",r.DATA_STEWARDS="data_stewards",r.DECLARATION_NAME="declaration_name",r.DOES_INTERNATIONAL_TRANSFERS="does_international_transfers",r.DPA_LOCATION="dpa_location",r.DESTINATIONS="egress",r.EXEMPT_FROM_PRIVACY_REGULATIONS="exempt_from_privacy_regulations",r.FEATURES="features",r.FIDES_KEY="fides_key",r.FLEXIBLE_LEGAL_BASIS_FOR_PROCESSING="flexible_legal_basis_for_processing",r.IMPACT_ASSESSMENT_LOCATION="impact_assessment_location",r.SOURCES="ingress",r.JOINT_CONTROLLER_INFO="joint_controller_info",r.LEGAL_BASIS_FOR_PROFILING="legal_basis_for_profiling",r.LEGAL_BASIS_FOR_TRANSFERS="legal_basis_for_transfers",r.LEGITIMATE_INTEREST_DISCLOSURE_URL="legitimate_interest_disclosure_url",r.PROCESSES_PERSONAL_DATA="processes_personal_data",r.REASON_FOR_EXEMPTION="reason_for_exemption",r.REQUIRES_DATA_PROTECTION_ASSESSMENTS="requires_data_protection_assessments",r.RESPONSIBILITY="responsibility",r.RETENTION_PERIOD="retention_period",r.SHARED_CATEGORIES="shared_categories",r.SPECIAL_CATEGORY_LEGAL_BASIS="special_category_legal_basis",r.THIRD_PARTIES="third_parties",r.COOKIES="cookies",r.USES_COOKIES="uses_cookies",r.USES_NON_COOKIE_ACCESS="uses_non_cookie_access",r.USES_PROFILING="uses_profiling",r.SYSTEM_UNDECLARED_DATA_CATEGORIES="system_undeclared_data_categories",r.DATA_USE_UNDECLARED_DATA_CATEGORIES="data_use_undeclared_data_categories",r.PROCESSES_SPECIAL_CATEGORY_DATA="processes_special_category_data";let p={system_name:"System",data_uses:"Data use",data_categories:"Data categories",data_subjects:"Data subject",legal_name:"Legal name",dpo:"Data privacy officer",legal_basis_for_processing:"Legal basis for processing",administrating_department:"Administrating department",cookie_max_age_seconds:"Cookie max age seconds",privacy_policy:"Privacy policy",legal_address:"Legal address",cookie_refresh:"Cookie refresh",data_security_practices:"Data security practices",data_shared_with_third_parties:"Data shared with third parties",data_stewards:"Data stewards",declaration_name:"Declaration name",does_international_transfers:"Does international transfers",dpa_location:"DPA location",egress:"Destination",exempt_from_privacy_regulations:"Exempt from privacy regulations",features:"Features",fides_key:"Fides key",flexible_legal_basis_for_processing:"Flexible legal basis for processing",impact_assessment_location:"Impact assessment location",ingress:"Source",joint_controller_info:"Joint controller info",legal_basis_for_profiling:"Legal basis for profiling",legal_basis_for_transfers:"Legal basis for transfers",legitimate_interest_disclosure_url:"Legitimate interest disclosure URL",processes_personal_data:"Processes personal data",reason_for_exemption:"Reason for exemption",requires_data_protection_assessments:"Requires data protection assessments",responsibility:"Responsibility",retention_period:"Retention period",shared_categories:"Shared categories",special_category_legal_basis:"Special category legal basis",third_parties:"Third parties",system_undeclared_data_categories:"System undeclared data categories",data_use_undeclared_data_categories:"Data use undeclared data categories",cookies:"Cookies",uses_cookies:"Uses cookies",uses_non_cookie_access:"Uses non-cookie access",uses_profiling:"Uses profiling",processes_special_category_data:"Processes special category data"},m={[n.SYSTEM_UNDECLARED_DATA_CATEGORIES]:!1,[n.DATA_USE_UNDECLARED_DATA_CATEGORIES]:!1},E={dataUses:[],dataSubjects:[],dataCategories:[]},S=(0,l.createContext)({}),h=e=>{let{children:t}=e,[a,s]=(0,u._)(i.CUSTOM_REPORT_ID,""),[r,n]=(0,u._)(i.GROUP_BY,_.fI.SYSTEM_DATA_USE),[c,d]=(0,u._)(i.FILTERS,E),[p,h]=(0,u._)(i.COLUMN_ORDER,[]),[f,g]=(0,u._)(i.COLUMN_VISIBILITY,m),[A,x]=(0,u._)(i.COLUMN_SIZING,{}),[T,C]=(0,u._)(i.COLUMN_NAMES,{}),v=(0,l.useMemo)(()=>({savedCustomReportId:a,setSavedCustomReportId:s,groupBy:r,setGroupBy:n,selectedFilters:c,setSelectedFilters:d,columnOrder:p,setColumnOrder:h,columnVisibility:f,setColumnVisibility:g,columnSizing:A,setColumnSizing:x,columnNameMapOverrides:T,setColumnNameMapOverrides:C}),[a,s,r,n,c,d,p,h,f,g,A,x,T,C]);return(0,o.jsx)(S.Provider,{value:v,children:t})},f=()=>{let e=(0,l.useContext)(S);if(!e||0===Object.keys(e).length)throw Error("useDatamapReport must be used within a DatamapReportProvider");return e};var g=a(59003),A=a(92222),x=a(14481),T=a(77181),C=a(34090),v=a(66726),R=a.n(v),O=a(16134),j=a(34929),b=a(14048),y=a(19904),D=a(16394),I=a(38943),N=a(35258),L=e=>{let{children:t,heading:a,onCancel:s,onConfirm:r,isLoading:i,cancelButtonText:n,continueButtonText:l,"data-testid":c="standard-dialog",...d}=e,{onClose:u}=d;return(0,o.jsxs)(T.u_l,{closeOnOverlayClick:i,...d,children:[(0,o.jsx)(T.ZAr,{}),(0,o.jsxs)(T.hzk,{"data-testid":c,children:[a&&(0,o.jsx)(T.xBx,{children:a}),(0,o.jsx)(T.olH,{isDisabled:i,"data-testid":"standard-dialog-close-btn"}),t&&(0,o.jsx)(T.fef,{children:t}),(0,o.jsxs)(T.mzw,{gap:3,width:"100%",sx:{"& button":{width:"100%"}},children:[(0,o.jsx)(T.wpx,{onClick:()=>{s&&s(),u()},"data-testid":"".concat(c?"".concat(c,"-"):"","cancel-btn"),disabled:i,children:n||"Cancel"}),(0,o.jsx)(T.wpx,{onClick:r,type:"primary","data-testid":"".concat(c?"".concat(c,"-"):"","continue-btn"),loading:i,children:l||"Continue"})]})]})]})},w=a(22968),P=e=>{let[t,a]=(0,l.useState)(w.T2.csv),{onConfirm:s}=e;return(0,o.jsx)(L,{heading:"Export report",continueButtonText:"Download",size:"xl",...e,onConfirm:()=>s(t),"data-testid":"export-modal",children:(0,o.jsxs)(T.kCb,{direction:"column",gap:3,pb:3,children:[(0,o.jsx)(T.xvT,{textAlign:"left",children:"Export your data map report using the options below. Depending on the number of rows, the file may take a few minutes to process."}),(0,o.jsxs)(T.NIc,{children:[(0,o.jsx)(T.lXp,{htmlFor:"format",children:"Choose Format"}),(0,o.jsx)(T.WPr,{id:"format",value:t,onChange:a,"data-testid":"export-format-select",options:[{value:w.T2.csv,label:"CSV"},{value:w.T2.xlsx,label:"XLSX"}],className:"w-full"})]})]})})},M=a(624),U=a(30002),k=a(28079),G=a(90673),H=a(39864);let Y=e=>{let{label:t,children:a,...s}=e;return(0,o.jsxs)(T.Qdk,{...s,children:[(0,o.jsx)(T.X6q,{children:(0,o.jsxs)(T.KFZ,{height:"100%","data-testid":"filter-modal-accordion-button",textAlign:"left",fontWeight:600,children:[(0,o.jsx)(T.xuv,{flex:1,children:t}),(0,o.jsx)(T.XEm,{boxSize:7})]})}),(0,o.jsx)(T.Hk3,{children:a})]})},F=e=>{let{columnNameMap:t,selectedFilters:a,onFilterChange:s,onClose:r,...i}=e;(0,k.fd)(),(0,U.te)(),(0,H.MO)();let{dataUses:n,dataSubjects:c,dataCategories:d}=a,u=(0,O.C)(k.U3),_=(0,O.C)(U.ZL),p=(0,O.C)(H.qb),[m,E]=(0,l.useState)(n),[S,h]=(0,l.useState)(c),[f,g]=(0,l.useState)(d);(0,l.useEffect)(()=>{E(n)},[n]),(0,l.useEffect)(()=>{h(c)},[c]),(0,l.useEffect)(()=>{g(d)},[d]);let A=(0,l.useMemo)(()=>(0,G.Cd)(u),[u]),x=(0,l.useMemo)(()=>(0,G.Cd)(_),[_]),C=(0,l.useMemo)(()=>(0,G.Cd)(p),[p]);return(0,o.jsx)(L,{heading:"Filter Datamap Report",...i,onCancel:()=>{E([]),h([]),g([]),s({dataUses:[],dataSubjects:[],dataCategories:[]}),r()},onConfirm:()=>{s({dataUses:m,dataSubjects:S,dataCategories:f}),r()},onClose:r,cancelButtonText:"Reset filters",continueButtonText:"Done","data-testid":"datamap-report-filter-modal",children:(0,o.jsxs)(T.UQy,{allowToggle:!0,children:[(0,o.jsx)(Y,{label:t.data_uses,children:(0,o.jsx)(M.ZP,{nodes:A,selected:m,onSelected:E,"data-testid":"filter-modal-checkbox-tree-uses"})}),(0,o.jsx)(Y,{label:t.data_categories,children:(0,o.jsx)(M.ZP,{nodes:C,selected:f,onSelected:g,"data-testid":"filter-modal-checkbox-tree-categories"})}),(0,o.jsx)(Y,{label:t.data_subjects,children:(0,o.jsx)(M.ZP,{nodes:x,selected:S,onSelected:h,"data-testid":"filter-modal-checkbox-tree-subjects"})})]})})};var V=a(32885),Z=a(70416),B=a(812),z=a(56358);let{useGetMinimalCustomReportsQuery:W,useLazyGetCustomReportByIdQuery:q,usePostCustomReportMutation:X,useDeleteCustomReportMutation:J}=a(78780).u.injectEndpoints({endpoints:e=>({getMinimalCustomReports:e.query({query:e=>{let{pageIndex:t=1,pageSize:a=50,report_type:s=_.C2.DATAMAP}=e,r="page=".concat(t,"&size=").concat(a,"&report_type=").concat(s);return{url:"plus/custom-report/minimal?".concat(r)}},providesTags:["Custom Reports"]}),getCustomReportById:e.query({query:e=>({url:"plus/custom-report/".concat(e)}),providesTags:(e,t,a)=>[{type:"Custom Reports",id:a}]}),postCustomReport:e.mutation({query:e=>({method:"POST",url:"plus/custom-report",body:e}),invalidatesTags:["Custom Reports"]}),deleteCustomReport:e.mutation({query:e=>({method:"DELETE",url:"plus/custom-report/".concat(e)}),invalidatesTags:["Custom Reports"]})})});var K=a(55484),Q=a(40324);let $="Report name",ee=e=>{let{isOpen:t,handleClose:a,tableStateToSave:s,columnMapToSave:r={},unavailableNames:i,onCreateCustomReport:n}=e,c=(0,T.pmc)(),[d]=X(),u=(0,l.useMemo)(()=>K.Ry().shape({reportName:K.Z_().label($).required("Please provide a name for this report").test("is-unique","",async(e,t)=>null==i||!i.includes(e)||t.createError({message:"This name already exists"})).max(80,"Report name is too long (max 80 characters)")}),[i]),p=async e=>{var t;let i={};Object.entries(r).forEach(e=>{let[t,a]=e;i[t]={label:a,enabled:!0}}),Object.entries(null!==(t=null==s?void 0:s.columnVisibility)&&void 0!==t?t:{}).forEach(e=>{let[t,a]=e;i[t]||(i[t]={}),i[t].enabled=a});try{let t={name:e.trim(),type:_.C2.DATAMAP,config:{column_map:i,table_state:s}},r=await d(t);if((0,B.D4)(r))throw r.error;n(r.data),a()}catch(e){c({status:"error",description:(0,B.e$)(e,"A problem occurred while creating the report.")})}};return(0,o.jsxs)(T.u_l,{size:"lg",isOpen:t,onClose:a,motionPreset:"none",children:[(0,o.jsx)(T.ZAr,{}),(0,o.jsxs)(T.hzk,{children:[(0,o.jsx)(T.xBx,{pb:0,children:"Create a report"}),(0,o.jsx)(C.J9,{initialValues:{reportName:""},onSubmit:e=>p(e.reportName),onReset:a,validateOnBlur:!1,validationSchema:u,children:e=>{let{dirty:t,isValid:a}=e;return(0,o.jsxs)(C.l0,{"data-testid":"custom-report-form",children:[(0,o.jsxs)(T.fef,{children:[(0,o.jsx)(T.xvT,{fontSize:"sm",color:"gray.600",pb:6,children:"Customize and save your current filter settings for easy access in the future. This saved report will include the column layout and currently applied filter settings."}),(0,o.jsx)(Q.j0,{id:"reportName",name:"reportName",isRequired:!0,label:$,placeholder:"Enter a name for the report...",variant:"stacked",maxLength:80})]}),(0,o.jsxs)(T.mzw,{gap:2,children:[(0,o.jsx)(T.wpx,{size:"small",htmlType:"reset",children:"Cancel"}),(0,o.jsx)(T.wpx,{size:"small",disabled:!t||!a,type:"primary","data-testid":"custom-report-form-submit",htmlType:"submit",children:"Save"})]})]})}})]})]})},et="Report",ea="Reports",es=e=>{var t;let{reportType:a,savedReportId:s,tableStateToSave:r,currentColumnMap:i,onCustomReportSaved:n,onSavedReportDeleted:c}=e,d=(0,y.Tg)([_.Sh.CUSTOM_REPORT_CREATE]),u=(0,y.Tg)([_.Sh.CUSTOM_REPORT_DELETE]),p=(0,T.pmc)({id:"custom-report-toast"}),{data:m,isLoading:E}=W({report_type:a}),[S,h]=(0,l.useState)(),[f]=q(),[g]=J(),{isOpen:A,onToggle:x,onOpen:v,onClose:R}=(0,T.qY0)(),{isOpen:O,onOpen:j,onClose:b}=(0,T.qY0)(),{isOpen:D,onOpen:I,onClose:N}=(0,T.qY0)(),[L,w]=(0,l.useState)(),[P,M]=(0,l.useState)(),[U,k]=(0,l.useState)(),[G,H]=(0,l.useState)(!1),Y=(0,l.useMemo)(()=>{var e;let t=null==m?void 0:null===(e=m.items.find(e=>e.id===s))||void 0===e?void 0:e.name;return null!=t?t:ea},[null==m?void 0:m.items,s]),F=!E&&!(null==m?void 0:null===(t=m.items)||void 0===t?void 0:t.length),V=e=>{h(null==m?void 0:m.items.filter(t=>t.name.toLowerCase().includes(e.toLowerCase())))},X=async e=>{w(e);let{data:t,isError:a,error:s}=await f(e);if(a){let e=(0,B.e$)(s,"A problem occurred while fetching the ".concat(et,"."));e.includes("not found")&&c(),p({status:"error",description:e})}else M(t)},K=()=>{w(""),M(void 0),H(!1)},Q=()=>{P?(H(!1),P.id!==s&&n(P),R()):L?H(!0):(n(null),R())},$=async e=>{e===(null==P?void 0:P.id)&&(K(),c()),g(e)};(0,l.useEffect)(()=>{m&&h(m.items)},[m]),(0,l.useEffect)(()=>{G&&(H(!1),Q())},[P]),(0,l.useEffect)(()=>{s?X(s):K()},[s]),(0,l.useEffect)(()=>{U&&I()},[I,U]);let es=!P&&!s||(null==P?void 0:P.id)===s;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(T.J2e,{placement:"bottom-end",isOpen:A,onClose:Q,id:"custom-reports-selection",children:[(0,o.jsx)(T.xol,{children:(0,o.jsx)(T.wpx,{className:"max-w-40",icon:(0,o.jsx)(T.v4q,{}),iconPosition:"end","data-testid":"custom-reports-trigger",onClick:x,children:(0,o.jsx)(T.xvT,{noOfLines:1,display:"inline-block",children:Y})})}),(0,o.jsx)(T.h_i,{children:(0,o.jsxs)(T.yky,{"data-testid":"custom-reports-popover",children:[(0,o.jsx)(T.QHN,{}),(0,o.jsx)(C.J9,{initialValues:{},onSubmit:Q,onReset:K,children:(0,o.jsxs)(C.l0,{children:[(0,o.jsx)(T.wpx,{size:"small",disabled:F,htmlType:"reset",className:"absolute left-2 top-2","data-testid":"custom-reports-reset-button",children:"Reset"}),(0,o.jsxs)(T.Ytg,{textAlign:"center",children:[(0,o.jsx)(T.xvT,{fontSize:"sm",children:ea}),(0,o.jsx)(T.BZy,{size:"sm",mt:3,children:(0,o.jsx)(T.IIB,{type:"text",borderRadius:"md",placeholder:"Search...",onChange:e=>V(e.target.value)})})]}),(0,o.jsx)(T.usR,{top:2,onClick:()=>{s?X(s):K(),R()},"data-testid":"custom-report-popover-cancel"}),(0,o.jsxs)(T.baG,{px:6,pt:5,pb:1,children:[F&&(0,o.jsxs)(T.gCW,{px:2,pt:6,pb:3,"data-testid":"custom-reports-empty-state",children:[(0,o.jsx)(T.hU,{variant:"primary",backgroundColor:"gray.500",isRound:!0,size:"xs","aria-label":"add ".concat(et),icon:(0,o.jsx)(Z.d,{}),onClick:j,"data-testid":"add-report-button"}),(0,o.jsxs)(T.xvT,{fontSize:"sm",textAlign:"center",color:"gray.500",children:["No ",ea.toLowerCase()," have been created. Start by applying your preferred filter and column settings, then create a"," ",et.toLowerCase()," for easy access later."]})]}),!F&&(E?(0,o.jsxs)(T.gCW,{pb:2,children:[(0,o.jsx)(T.OdW,{width:"100%",height:T.rSc.space[4]}),(0,o.jsx)(T.OdW,{width:"100%",height:T.rSc.space[4]}),(0,o.jsx)(T.OdW,{width:"100%",height:T.rSc.space[4]})]}):(0,o.jsx)(T.y02.Group,{onChange:e=>X(e.target.value),value:L,className:"flex flex-col gap-2",children:null==S?void 0:S.map(e=>(0,o.jsxs)(T.jqI,{className:u?"justify-between":"justify-start",children:[(0,o.jsx)(T.y02,{value:e.id,name:"custom-report-id","data-testid":"custom-report-item",children:(0,o.jsx)(T.xvT,{fontSize:"sm",children:e.name})}),u&&(0,o.jsx)(T.wpx,{type:"text",size:"small",icon:(0,o.jsx)(z.q,{fontSize:16}),onClick:()=>k(e),"data-testid":"delete-report-button"})]},e.id))}))]}),(0,o.jsx)(T.DT9,{border:"none",px:6,pb:4,pt:4,children:(0,o.jsxs)(T.Ugi,{children:[d&&r&&(0,o.jsxs)(T.wpx,{size:"small",onClick:j,className:"w-full","data-testid":"create-report-button",htmlType:"button",children:["+ Create ",et.toLowerCase()]}),(0,o.jsx)(T.wpx,{size:"small",type:"primary",loading:G,disabled:es,className:"w-full","data-testid":"apply-report-button",htmlType:"submit",children:"Apply"})]})})]})})]})})]}),(0,o.jsx)(ee,{isOpen:O,handleClose:()=>{b(),setTimeout(()=>{v()},100)},tableStateToSave:r,columnMapToSave:i,unavailableNames:null==m?void 0:m.items.map(e=>e.name),onCreateCustomReport:n}),(0,o.jsx)(T.cVQ,{isOpen:D,onClose:()=>{k(void 0),N()},onConfirm:()=>{U&&$(U.id),N()},title:"Delete ".concat(et),message:(0,o.jsxs)(T.xvT,{children:["You are about to permanently delete the"," ",et.toLowerCase()," named"," ",(0,o.jsx)("strong",{children:null==U?void 0:U.name}),". Are you sure you would like to continue?"]})})]})};var er=a(19785),ei=a.n(er),en=a(55807),eo=a.n(en),el=a(32526),ec=a.n(el),ed=a(72625),eu=a(43862);let e_=(0,A.Cl)(),ep=(e,t)=>({cell:e=>(0,o.jsx)(x.G3,{value:e.getValue()}),header:a=>{let s={};return Object.keys(e).forEach(t=>{"string"==typeof e[t]?s[t]=e[t]:e[t].label&&(s[t]=e[t].label||"")}),(0,o.jsx)(ed.Hm,{value:(0,eu.AH)({columnId:a.column.id,columnNameMap:s}),defaultValue:p[a.column.id]||(0,eu.AH)({columnId:a.column.id}),isEditing:t,...a})}}),em=(e,t)=>{var a;let s=(null==e?void 0:null===(a=e.items)||void 0===a?void 0:a.length)?Object.keys(e.items[0]):[],r=Object.values(n);return s.filter(e=>!r.includes(e)).filter(e=>e.startsWith("privacy_declaration_")||e.startsWith("system_")).map(e=>{let a=t.find(t=>e.includes(ec()(t.name)));return e_.accessor(t=>t[e],{id:e,cell:e=>Array.isArray(e.getValue())?(0,o.jsx)(x.WP,{value:e.getValue(),ignoreZero:!0,...e}):(0,o.jsx)(x.G3,{value:e.getValue()}),meta:{showHeaderMenu:(null==a?void 0:a.field_type)==="string[]"}})})},eE=e=>{let{onSelectRow:t,getDataUseDisplayName:a,getDataCategoryDisplayName:s,getDataSubjectDisplayName:r,datamapReport:i,customFields:l,isRenaming:c=!1}=e,d=em(i,l);return[e_.accessor(e=>e.system_name,{enableGrouping:!0,id:n.SYSTEM_NAME,meta:{onCellClick:t}}),e_.accessor(e=>e.data_uses,{id:n.DATA_USE,cell:e=>{let t=e.getValue();return(0,o.jsx)(x.WP,{suffix:"data uses",ignoreZero:!0,value:ei()(t)?eo()(t,a):a(t||""),tagProps:{color:"white"},...e})},meta:{width:"auto"}}),e_.accessor(e=>e.data_categories,{id:n.DATA_CATEGORY,cell:e=>{let t=e.getValue();if(!t||0===t.length)return null;let a=ei()(t)?t.map(e=>({label:s(e),key:e})):[{label:s(t),key:t}];return(0,o.jsx)(ed.mb,{values:a,cellProps:e})},meta:{showHeaderMenu:!c,showHeaderMenuWrapOption:!0,width:"auto",overflow:"hidden"}}),e_.accessor(e=>e.data_subjects,{id:n.DATA_SUBJECT,cell:e=>{let t=e.getValue();return(0,o.jsx)(x.WP,{suffix:"data subjects",ignoreZero:!0,value:ei()(t)?eo()(t,r):r(t||""),tagProps:{color:"white"},...e})},meta:{showHeaderMenu:!c}}),e_.accessor(e=>e.legal_name,{id:n.LEGAL_NAME}),e_.accessor(e=>e.dpo,{id:n.DPO}),e_.accessor(e=>e.legal_basis_for_processing,{id:n.LEGAL_BASIS_FOR_PROCESSING}),e_.accessor(e=>e.administrating_department,{id:n.ADMINISTRATING_DEPARTMENT}),e_.accessor(e=>e.cookie_max_age_seconds,{id:n.COOKIE_MAX_AGE_SECONDS}),e_.accessor(e=>e.privacy_policy,{id:n.PRIVACY_POLICY}),e_.accessor(e=>e.legal_address,{id:n.LEGAL_ADDRESS}),e_.accessor(e=>e.cookie_refresh,{id:n.COOKIE_REFRESH}),e_.accessor(e=>e.data_security_practices,{id:n.DATA_SECURITY_PRACTICES}),e_.accessor(e=>e.data_shared_with_third_parties,{id:n.DATA_SHARED_WITH_THIRD_PARTIES}),e_.accessor(e=>e.processes_special_category_data,{id:n.PROCESSES_SPECIAL_CATEGORY_DATA}),e_.accessor(e=>e.data_stewards,{id:n.DATA_STEWARDS,cell:e=>(0,o.jsx)(x.WP,{suffix:"data stewards",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!c,width:"auto"}}),e_.accessor(e=>e.declaration_name,{id:n.DECLARATION_NAME}),e_.accessor(e=>e.does_international_transfers,{id:n.DOES_INTERNATIONAL_TRANSFERS}),e_.accessor(e=>e.dpa_location,{id:n.DPA_LOCATION}),e_.accessor(e=>e.egress,{id:n.DESTINATIONS,cell:e=>(0,o.jsx)(x.WP,{suffix:"destinations",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!c,width:"auto"}}),e_.accessor(e=>e.exempt_from_privacy_regulations,{id:n.EXEMPT_FROM_PRIVACY_REGULATIONS}),e_.accessor(e=>e.features,{id:n.FEATURES,cell:e=>(0,o.jsx)(x.WP,{suffix:"features",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!c,width:"auto"}}),e_.accessor(e=>e.fides_key,{id:n.FIDES_KEY}),e_.accessor(e=>e.flexible_legal_basis_for_processing,{id:n.FLEXIBLE_LEGAL_BASIS_FOR_PROCESSING}),e_.accessor(e=>e.impact_assessment_location,{id:n.IMPACT_ASSESSMENT_LOCATION}),e_.accessor(e=>e.ingress,{id:n.SOURCES,cell:e=>(0,o.jsx)(x.WP,{suffix:"sources",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!c,width:"auto"}}),e_.accessor(e=>e.joint_controller_info,{id:n.JOINT_CONTROLLER_INFO}),e_.accessor(e=>e.legal_basis_for_profiling,{id:n.LEGAL_BASIS_FOR_PROFILING,cell:e=>(0,o.jsx)(x.WP,{suffix:"profiles",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!c,width:"auto"}}),e_.accessor(e=>e.legal_basis_for_transfers,{id:n.LEGAL_BASIS_FOR_TRANSFERS,cell:e=>(0,o.jsx)(x.WP,{suffix:"transfers",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!c,width:"auto"}}),e_.accessor(e=>e.legitimate_interest_disclosure_url,{id:n.LEGITIMATE_INTEREST_DISCLOSURE_URL}),e_.accessor(e=>e.processes_personal_data,{id:n.PROCESSES_PERSONAL_DATA}),e_.accessor(e=>e.reason_for_exemption,{id:n.REASON_FOR_EXEMPTION}),e_.accessor(e=>e.requires_data_protection_assessments,{id:n.REQUIRES_DATA_PROTECTION_ASSESSMENTS}),e_.accessor(e=>e.responsibility,{id:n.RESPONSIBILITY,cell:e=>(0,o.jsx)(x.WP,{suffix:"responsibilities",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!c,width:"auto"}}),e_.accessor(e=>e.retention_period,{id:n.RETENTION_PERIOD}),e_.accessor(e=>e.shared_categories,{id:n.SHARED_CATEGORIES,cell:e=>(0,o.jsx)(x.WP,{suffix:"shared categories",ignoreZero:!0,value:e.getValue(),tagProps:{color:"white"},...e}),meta:{showHeaderMenu:!c,width:"auto"}}),e_.accessor(e=>e.special_category_legal_basis,{id:n.SPECIAL_CATEGORY_LEGAL_BASIS}),e_.accessor(e=>e.third_parties,{id:n.THIRD_PARTIES}),e_.accessor(e=>e.system_undeclared_data_categories,{id:n.SYSTEM_UNDECLARED_DATA_CATEGORIES,cell:e=>{let t=e.getValue();if(!t||0===t.length)return null;let a=ei()(t)?t.map(e=>({label:s(e),key:e})):[{label:s(t),key:t}];return(0,o.jsx)(ed.mb,{values:a,cellProps:e})},meta:{showHeaderMenu:!c,showHeaderMenuWrapOption:!0,width:"auto",overflow:"hidden"}}),e_.accessor(e=>e.data_use_undeclared_data_categories,{id:n.DATA_USE_UNDECLARED_DATA_CATEGORIES,cell:e=>{let t=e.getValue();if(!t||0===t.length)return null;let a=ei()(t)?t.map(e=>({label:s(e),key:e})):[{label:s(t),key:t}];return(0,o.jsx)(ed.mb,{values:a,cellProps:e})},meta:{showHeaderMenu:!c,showHeaderMenuWrapOption:!0,width:"auto",overflow:"hidden"}}),e_.accessor(e=>e.cookies,{id:n.COOKIES,cell:e=>(0,o.jsx)(x.WP,{ignoreZero:!0,suffix:"cookies",value:e.getValue(),...e}),meta:{showHeaderMenu:!c,width:"auto"}}),e_.accessor(e=>e.uses_cookies,{id:n.USES_COOKIES}),e_.accessor(e=>e.uses_non_cookie_access,{id:n.USES_NON_COOKIE_ACCESS}),e_.accessor(e=>e.uses_profiling,{id:n.USES_PROFILING}),...d]},eS=e=>e===_.fI.DATA_USE_SYSTEM?[n.DATA_USE]:[n.SYSTEM_NAME],eh=e=>{let t=[];return _.fI.SYSTEM_DATA_USE===e&&(t=[n.SYSTEM_NAME,n.DATA_USE]),_.fI.DATA_USE_SYSTEM===e&&(t=[n.DATA_USE,n.SYSTEM_NAME]),t},ef=(e,t)=>eh(e).concat(t.filter(e=>e!==n.SYSTEM_NAME&&e!==n.DATA_USE)),eg={items:[],total:0,page:1,size:25,pages:1},eA=()=>{let e=(0,y.Tg)([_.Sh.CUSTOM_REPORT_READ]),{isLoading:t}=(0,V.x8)(),{PAGE_SIZES:a,pageSize:s,setPageSize:r,onPreviousPageClick:n,isPreviousPageDisabled:c,onNextPageClick:d,isNextPageDisabled:u,startRange:S,endRange:h,pageIndex:v,setTotalPages:L,resetPageIndexToDefault:w}=(0,x.oi)(),M=(0,T.pmc)({id:"datamap-report-toast"}),{isOpen:U,onClose:k,onOpen:G}=(0,T.qY0)(),{getDataUseDisplayName:H,getDataCategoryDisplayName:Y,getDataSubjectDisplayName:Z,isLoading:B}=(0,j.Z)(),[z,W]=(0,l.useState)(),{savedCustomReportId:q,setSavedCustomReportId:X,groupBy:J,setGroupBy:K,selectedFilters:Q,setSelectedFilters:$,columnOrder:ee,setColumnOrder:et,columnVisibility:ea,setColumnVisibility:er,columnSizing:ei,setColumnSizing:en,columnNameMapOverrides:eo,setColumnNameMapOverrides:el}=f(),[ec,ed]=(0,l.useState)(!1),eu=e=>{X(""),K(e),ed(!0),w()},[e_,em]=(0,l.useState)(""),eA=(0,l.useCallback)(e=>{w(),em(e)},[w,em]),ex={pageIndex:v,pageSize:s,groupBy:J,search:e_,dataUses:(0,D.du)(Q.dataUses,"data_uses"),dataSubjects:(0,D.du)(Q.dataSubjects,"data_subjects"),dataCategories:(0,D.du)(Q.dataCategories,"data_categories")},{data:eT,isLoading:eC,isFetching:ev}=(0,I.tH)(ex),[eR,{isLoading:eO,isError:ej}]=(0,I.Eo)(),{data:eb,totalRows:ey}=(0,l.useMemo)(()=>{let e=eT||eg,t=e.items;return ec&&ed(!1),L(e.pages),{totalRows:e.total,data:t}},[eT]);(0,V.GH)();let eD=(0,O.C)(V.fN),[eI,eN]=(0,l.useState)(!1),eL=(0,l.useMemo)(()=>eT?eE({onSelectRow:e=>W(e.fides_key),getDataUseDisplayName:H,getDataCategoryDisplayName:Y,getDataSubjectDisplayName:Z,datamapReport:eT,customFields:eD,isRenaming:eI}):[],[H,Z,Y,eT,eD,eI]),{isOpen:ew,onOpen:eP,onClose:eM}=(0,T.qY0)(),{isOpen:eU,onOpen:ek,onClose:eG}=(0,T.qY0)(),eH=(0,g.b7)({getCoreRowModel:(0,A.sC)(),getGroupedRowModel:(0,A.qe)(),getExpandedRowModel:(0,A.rV)(),manualPagination:!0,enableColumnResizing:!0,columnResizeMode:"onChange",columns:eL,defaultColumn:ep({...p,...eo},eI),data:eb,initialState:{expanded:!0,columnSizing:ei,columnOrder:ee,columnVisibility:ea,grouping:eS(J)}});(0,l.useEffect)(()=>{J&&eH&&eT&&(0===eH.getState().columnOrder.length?et(ef(J,eH.getAllColumns().map(e=>e.id))):et(ef(J,eH.getState().columnOrder)))},[J,eH,eT]),(0,l.useEffect)(()=>{let e=eS(J);eT&&eH.setGrouping(e)},[eT]);let eY=(0,l.useMemo)(()=>R()(en,300),[en]);(0,l.useEffect)(()=>{let e=eH.getState().columnSizing;e&&eY(e)},[eH.getState().columnSizing]);let eF=()=>{switch(J){case _.fI.SYSTEM_DATA_USE:return"system";case _.fI.DATA_USE_SYSTEM:return"data use";default:return"system"}},eV=(e,t)=>{if(e||q){if(!e){try{X(""),er(m),eH.toggleAllColumnsVisible(!0),eH.setColumnVisibility(m),et([]),eH.setColumnOrder([]),K(_.fI.SYSTEM_DATA_USE),$(E),el({}),t({values:{}})}catch(e){M({status:"error",description:"There was a problem resetting the report."})}return}try{var a,s,r,i;if(null===(a=e.config)||void 0===a?void 0:a.table_state){let{groupBy:t,filters:a,columnOrder:s}=e.config.table_state,i={};Object.entries(null!==(r=e.config.column_map)&&void 0!==r?r:{}).forEach(e=>{let[t,a]=e;i[t]=a.enabled||!1}),t&&K(t),a&&$(a),s&&(et(s),eH.setColumnOrder(s)),i&&(er(i),eH.setColumnVisibility(i))}if(null===(s=e.config)||void 0===s?void 0:s.column_map){let a={};Object.entries(null!==(i=e.config.column_map)&&void 0!==i?i:{}).forEach(e=>{let[t,s]=e;s.label&&(a[t]=s.label)}),el(a),t({values:a})}X(e.id),M({status:"success",description:"Report applied successfully."})}catch(e){M({status:"error",description:"There was a problem applying report."})}}};return eC||t||B?(0,o.jsx)(x.I4,{rowHeight:36,numRows:15}):(0,o.jsxs)(T.kCb,{flex:1,direction:"column",overflow:"auto",children:[(0,o.jsx)(F,{columnNameMap:{...p,...eo},selectedFilters:Q,isOpen:U,onClose:k,onFilterChange:e=>{X(""),$(e)}}),(0,o.jsx)(x.F1,{isOpen:ew,onClose:eM,headerText:"Data map settings",columnNameMap:{...p,...eo},prefixColumns:eh(J),tableInstance:eH,savedCustomReportId:q,onColumnOrderChange:e=>{X(""),eH.setColumnOrder(e),et(e)},onColumnVisibilityChange:e=>{X(""),eH.setColumnVisibility(e),er(e)}}),(0,o.jsx)(P,{isOpen:eU,onClose:eG,onConfirm:e=>{let t={};Object.entries(ea).forEach(e=>{let[a,s]=e;t[a]={enabled:s}}),Object.entries(eo).forEach(e=>{let[a,s]=e;if(t[a])t[a].label=s;else{var r;t[a]={label:s,enabled:null===(r=ea[a])||void 0===r||r}}}),eR({...ex,format:e,report_id:q,report:{name:"",type:"datamap",config:{column_map:t,table_state:{groupBy:J,filters:Q,columnOrder:ee}}}}).then(()=>{ej||eG()})},isLoading:eO}),(0,o.jsx)(C.J9,{initialValues:eo,onSubmit:e=>{X(""),el(e),eN(!1)},children:t=>{let{submitForm:a,resetForm:s}=t;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(x.Q$,{children:[(0,o.jsx)(x.HO,{globalFilter:e_,setGlobalFilter:eA,placeholder:"System name, Fides key, or ID"}),(0,o.jsxs)(T.kCb,{alignItems:"center",gap:2,children:[e&&(0,o.jsx)(es,{reportType:_.C2.DATAMAP,savedReportId:q,tableStateToSave:{groupBy:J,filters:Q,columnOrder:ee,columnVisibility:ea},currentColumnMap:eo,onCustomReportSaved:e=>eV(e,s),onSavedReportDeleted:()=>{X("")}}),(0,o.jsxs)(T.v2r,{children:[(0,o.jsxs)(T.j2t,{as:T.wpx,icon:(0,o.jsx)(T.v4q,{}),iconPosition:"end",loading:ec,"data-testid":"group-by-menu",children:["Group by ",eF()]}),(0,o.jsxs)(T.qyq,{zIndex:11,"data-testid":"group-by-menu-list",children:[(0,o.jsx)(T.iiZ,{onClick:()=>{eu(_.fI.SYSTEM_DATA_USE)},isChecked:_.fI.SYSTEM_DATA_USE===J,value:_.fI.SYSTEM_DATA_USE,"data-testid":"group-by-system-data-use",children:"System"}),(0,o.jsx)(T.iiZ,{onClick:()=>{eu(_.fI.DATA_USE_SYSTEM)},isChecked:_.fI.DATA_USE_SYSTEM===J,value:_.fI.DATA_USE_SYSTEM,"data-testid":"group-by-data-use-system",children:"Data use"})]})]}),(0,o.jsx)(T.wpx,{"data-testid":"filter-multiple-systems-btn",onClick:G,children:"Filter"}),(0,o.jsx)(T.wpx,{"aria-label":"Export report","data-testid":"export-btn",onClick:ek,icon:(0,o.jsx)(b.nM,{ml:"1.5px"})}),(0,o.jsxs)(T.v2r,{placement:"bottom-end",children:[(0,o.jsx)(T.j2t,{as:T.wpx,icon:(0,o.jsx)(T.nXP,{className:"rotate-90"}),"data-testid":"more-menu","aria-label":"More options",className:"w-6 gap-0"}),(0,o.jsxs)(T.qyq,{"data-testid":"more-menu-list",children:[(0,o.jsx)(T.sNh,{onClick:eP,"data-testid":"edit-columns-btn",children:"Edit columns"}),(0,o.jsx)(T.sNh,{onClick:()=>eN(!0),"data-testid":"rename-columns-btn",children:"Rename columns"})]})]}),eI&&(0,o.jsxs)("div",{className:"flex gap-2",children:[(0,o.jsx)(T.wpx,{size:"small","data-testid":"rename-columns-reset-btn",onClick:()=>{el({}),X(""),s({values:{}}),eN(!1)},children:"Reset all"}),(0,o.jsx)(T.wpx,{size:"small","data-testid":"rename-columns-cancel-btn",onClick:()=>{s({values:eo}),eN(!1)},children:"Cancel"}),(0,o.jsx)(T.wpx,{size:"small",type:"primary",htmlType:"submit","data-testid":"rename-columns-apply-btn",onClick:a,children:"Apply"})]})]})]}),(0,o.jsx)(C.l0,{children:(0,o.jsx)(x.ZK,{tableInstance:eH,columnExpandStorageKey:i.COLUMN_EXPANSION_STATE,columnWrapStorageKey:i.WRAPPING_COLUMNS})})]})}}),(0,o.jsx)(x.s8,{totalRows:ey||0,pageSizes:a,setPageSize:r,onPreviousPageClick:n,isPreviousPageDisabled:c||ev,onNextPageClick:d,isNextPageDisabled:u||ev,startRange:S,endRange:h}),(0,o.jsx)(N.Z,{selectedSystemId:z,resetSelectedSystemId:()=>W(void 0)})]})};var ex=()=>(0,o.jsxs)(c.Z,{title:"Datamap Report",children:[(0,o.jsx)(d.Z,{"data-testid":"datamap-report-heading",heading:"Data map report"}),(0,o.jsx)(h,{children:(0,o.jsx)(eA,{})})]})}},function(e){e.O(0,[8033,6060,2858,2866,9278,9187,4481,9951,9572,2888,9774,179],function(){return e(e.s=86548)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2447],{81327:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/about",function(){return n(58557)}])},77213:function(e,i,n){"use strict";n.d(i,{Z:function(){return u}});var t=n(24246),s=n(56078),r=n(88038),l=n.n(r),o=n(86677);n(27378);var a=n(25980),c=n(90867),d=n(77830),x=()=>{let e=(0,o.useRouter)();return(0,t.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,t.jsxs)(s.xuv,{children:[(0,t.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,t.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,t.jsx)(s.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,t.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},u=e=>{let{children:i,title:n,padded:r=!0,mainProps:d}=e,u=(0,a.hz)(),h=(0,o.useRouter)(),p="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,m=!(u.flags.privacyRequestsConfiguration&&p),{data:f}=(0,c.JE)(void 0,{skip:m}),{data:j}=(0,c.PW)(void 0,{skip:m}),g=u.flags.privacyRequestsConfiguration&&(!f||!j)&&p;return(0,t.jsxs)(s.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,t.jsxs)(l(),{children:[(0,t.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,t.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,t.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,t.jsxs)(s.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[g?(0,t.jsx)(x,{}):null,i]})]})}},58754:function(e,i,n){"use strict";var t=n(24246),s=n(56078),r=n(70788);i.Z=e=>{let{heading:i,breadcrumbItems:n,isSticky:l=!0,children:o,rightContent:a,style:c,...d}=e;return(0,t.jsxs)("div",{...d,style:l?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,t.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof i?(0,t.jsx)(s.X6q,{className:n||o?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:i}):i,a&&(0,t.jsx)("div",{"data-testid":"page-header-right-content",children:a})]}),!!n&&(0,t.jsx)(r.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},70788:function(e,i,n){"use strict";n.d(i,{m:function(){return c}});var t=n(24246),s=n(56078),r=n(79894),l=n.n(r),o=n(27378);let{Text:a}=s.AntTypography,c=e=>{let{items:i,...n}=e,r=(0,o.useMemo)(()=>null==i?void 0:i.map((e,n)=>{let r=n===i.length-1,o={...e},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,t.jsx)(a,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:o.title})),c)?o.title=(0,t.jsx)(s.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,t.jsx)(l(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[i]);return(0,t.jsx)(s.zrq,{items:r,...n})}},58557:function(e,i,n){"use strict";n.r(i),n.d(i,{default:function(){return x}});var t=n(24246),s=n(56078),r=n(25980),l=n(62165),o=n(16394);let a=e=>{let{flag:i,value:n,override:r}=e;return"boolean"!=typeof n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.xvT,{fontSize:"sm",children:i}),(0,t.jsx)(s.xvT,{fontSize:"sm",children:n})]}):l.Ky[i].userCannotModify?null:(0,t.jsxs)(s.NIc,{display:"contents",children:[(0,t.jsx)(s.xuv,{justifySelf:"center",children:(0,t.jsx)(s.rAg,{id:"flag-".concat(i),checked:n,onChange:()=>r({flag:i,value:!n})})}),(0,t.jsx)(s.xuv,{children:(0,t.jsx)(s.lXp,{margin:0,fontSize:"sm",htmlFor:"flag-".concat(i),title:i,children:(0,o.Py)(i)})}),(0,t.jsx)(s.xuv,{children:(0,t.jsx)(s.xvT,{fontSize:"sm",children:l.Ky[i].description})})]})};var c=n(77213),d=n(58754),x=()=>{let e=(0,r.hz)(),{flags:i,override:n,reset:o}=(0,l.Vb)();return(0,t.jsxs)(c.Z,{title:"About Fides",children:[(0,t.jsx)(d.Z,{heading:"About Fides",children:(0,t.jsxs)(s.kCb,{direction:"column",gap:4,children:[(0,t.jsxs)(s.xuv,{children:[(0,t.jsxs)(s.xvT,{as:"span",fontWeight:"bold",children:["Fides Core Version:"," "]}),(0,t.jsx)(s.xvT,{as:"pre",display:"inline",children:e.version})]}),e.plusVersion?(0,t.jsxs)(s.xuv,{children:[(0,t.jsxs)(s.xvT,{as:"span",fontWeight:"bold",children:["Fides Plus Version:"," "]}),(0,t.jsx)(s.xvT,{as:"pre",display:"inline",children:e.plusVersion})]}):null,(0,t.jsx)(s.izJ,{})]})}),(0,t.jsxs)(s.kCb,{alignItems:"center",gap:4,children:[(0,t.jsx)(s.X6q,{as:"h2",fontSize:"xl",children:"Beta Features"}),(0,t.jsx)(s.wpx,{onClick:o,children:"Reset"})]}),(0,t.jsx)(s.rjZ,{gridTemplateColumns:"1fr 2fr 6fr",gridColumnGap:4,gridRowGap:2,alignItems:"center",className:"py-6",children:l.R$.map(e=>(0,t.jsx)(a,{flag:e,value:i[e],override:n},e))}),(0,t.jsxs)(s.xuv,{children:[(0,t.jsxs)(s.xvT,{fontSize:"sm",children:["Please visit"," ",(0,t.jsx)(s.rUS,{color:"complimentary.500",href:"https://docs.ethyca.com",isExternal:!0,children:"docs.ethyca.com"})," ","for more information on these features."]}),(0,t.jsxs)(s.xvT,{fontSize:"sm",children:["For questions and feedback, please join us at"," ",(0,t.jsx)(s.rUS,{color:"complimentary.500",href:"https://fidescommunity.slack.com",isExternal:!0,children:"fidescommunity.slack.com"}),"."]})]})]})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=81327)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2447],{81327:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/about",function(){return n(58557)}])},77213:function(e,i,n){"use strict";n.d(i,{Z:function(){return u}});var t=n(24246),s=n(77181),r=n(88038),l=n.n(r),o=n(86677);n(27378);var a=n(25980),c=n(90867),d=n(77830),x=()=>{let e=(0,o.useRouter)();return(0,t.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,t.jsxs)(s.xuv,{children:[(0,t.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,t.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,t.jsx)(s.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,t.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},u=e=>{let{children:i,title:n,padded:r=!0,mainProps:d}=e,u=(0,a.hz)(),h=(0,o.useRouter)(),p="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,m=!(u.flags.privacyRequestsConfiguration&&p),{data:f}=(0,c.JE)(void 0,{skip:m}),{data:j}=(0,c.PW)(void 0,{skip:m}),g=u.flags.privacyRequestsConfiguration&&(!f||!j)&&p;return(0,t.jsxs)(s.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,t.jsxs)(l(),{children:[(0,t.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,t.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,t.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,t.jsxs)(s.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[g?(0,t.jsx)(x,{}):null,i]})]})}},58754:function(e,i,n){"use strict";var t=n(24246),s=n(77181),r=n(70788);i.Z=e=>{let{heading:i,breadcrumbItems:n,isSticky:l=!0,children:o,rightContent:a,style:c,...d}=e;return(0,t.jsxs)("div",{...d,style:l?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,t.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof i?(0,t.jsx)(s.X6q,{className:n||o?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:i}):i,a&&(0,t.jsx)("div",{"data-testid":"page-header-right-content",children:a})]}),!!n&&(0,t.jsx)(r.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},70788:function(e,i,n){"use strict";n.d(i,{m:function(){return c}});var t=n(24246),s=n(77181),r=n(79894),l=n.n(r),o=n(27378);let{Text:a}=s.AntTypography,c=e=>{let{items:i,...n}=e,r=(0,o.useMemo)(()=>null==i?void 0:i.map((e,n)=>{let r=n===i.length-1,o={...e},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,t.jsx)(a,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:o.title})),c)?o.title=(0,t.jsx)(s.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,t.jsx)(l(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[i]);return(0,t.jsx)(s.zrq,{items:r,...n})}},58557:function(e,i,n){"use strict";n.r(i),n.d(i,{default:function(){return x}});var t=n(24246),s=n(77181),r=n(25980),l=n(62165),o=n(16394);let a=e=>{let{flag:i,value:n,override:r}=e;return"boolean"!=typeof n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.xvT,{fontSize:"sm",children:i}),(0,t.jsx)(s.xvT,{fontSize:"sm",children:n})]}):l.Ky[i].userCannotModify?null:(0,t.jsxs)(s.NIc,{display:"contents",children:[(0,t.jsx)(s.xuv,{justifySelf:"center",children:(0,t.jsx)(s.rAg,{id:"flag-".concat(i),checked:n,onChange:()=>r({flag:i,value:!n})})}),(0,t.jsx)(s.xuv,{children:(0,t.jsx)(s.lXp,{margin:0,fontSize:"sm",htmlFor:"flag-".concat(i),title:i,children:(0,o.Py)(i)})}),(0,t.jsx)(s.xuv,{children:(0,t.jsx)(s.xvT,{fontSize:"sm",children:l.Ky[i].description})})]})};var c=n(77213),d=n(58754),x=()=>{let e=(0,r.hz)(),{flags:i,override:n,reset:o}=(0,l.Vb)();return(0,t.jsxs)(c.Z,{title:"About Fides",children:[(0,t.jsx)(d.Z,{heading:"About Fides",children:(0,t.jsxs)(s.kCb,{direction:"column",gap:4,children:[(0,t.jsxs)(s.xuv,{children:[(0,t.jsxs)(s.xvT,{as:"span",fontWeight:"bold",children:["Fides Core Version:"," "]}),(0,t.jsx)(s.xvT,{as:"pre",display:"inline",children:e.version})]}),e.plusVersion?(0,t.jsxs)(s.xuv,{children:[(0,t.jsxs)(s.xvT,{as:"span",fontWeight:"bold",children:["Fides Plus Version:"," "]}),(0,t.jsx)(s.xvT,{as:"pre",display:"inline",children:e.plusVersion})]}):null,(0,t.jsx)(s.izJ,{})]})}),(0,t.jsxs)(s.kCb,{alignItems:"center",gap:4,children:[(0,t.jsx)(s.X6q,{as:"h2",fontSize:"xl",children:"Beta Features"}),(0,t.jsx)(s.wpx,{onClick:o,children:"Reset"})]}),(0,t.jsx)(s.rjZ,{gridTemplateColumns:"1fr 2fr 6fr",gridColumnGap:4,gridRowGap:2,alignItems:"center",className:"py-6",children:l.R$.map(e=>(0,t.jsx)(a,{flag:e,value:i[e],override:n},e))}),(0,t.jsxs)(s.xuv,{children:[(0,t.jsxs)(s.xvT,{fontSize:"sm",children:["Please visit"," ",(0,t.jsx)(s.rUS,{color:"complimentary.500",href:"https://docs.ethyca.com",isExternal:!0,children:"docs.ethyca.com"})," ","for more information on these features."]}),(0,t.jsxs)(s.xvT,{fontSize:"sm",children:["For questions and feedback, please join us at"," ",(0,t.jsx)(s.rUS,{color:"complimentary.500",href:"https://fidescommunity.slack.com",isExternal:!0,children:"fidescommunity.slack.com"}),"."]})]})]})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=81327)}),_N_E=e.O()}]);