ethyca-fides 2.71.1b1__py2.py3-none-any.whl → 2.74.0rc1__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ethyca-fides might be problematic. Click here for more details.

Files changed (495) hide show
  1. {ethyca_fides-2.71.1b1.dist-info → ethyca_fides-2.74.0rc1.dist-info}/METADATA +3 -2
  2. {ethyca_fides-2.71.1b1.dist-info → ethyca_fides-2.74.0rc1.dist-info}/RECORD +377 -327
  3. fides/_version.py +3 -3
  4. fides/api/alembic/alembic.ini +5 -1
  5. fides/api/alembic/migrations/env.py +7 -1
  6. fides/api/alembic/migrations/versions/4bfbeff34611_add_polling_status.py +68 -0
  7. fides/api/alembic/migrations/versions/65a1bc82ae09_adds_experience_config_for_delete_.py +53 -0
  8. fides/api/alembic/migrations/versions/7db29f9cd77b_create_new_sub_request_table.py +95 -0
  9. fides/api/alembic/migrations/versions/a55e12c2c2df_add_tagging_instructions_to_data_.py +29 -0
  10. fides/api/alembic/migrations/versions/b97e92b038d2_add_digest_execution_model.py +117 -0
  11. fides/api/alembic/migrations/versions/c09e76282dd1_add_privacy_request_duplication_cols.py +64 -0
  12. fides/api/alembic/migrations/versions/xx_2025_10_17_1603_5093e92e2a5a_add_consent_data_v3_to_the_database.py +72 -0
  13. fides/api/alembic/migrations/versions/xx_2025_10_27_1834_67f0f2f4748e_adding_identity_definition_model.py +45 -0
  14. fides/api/alembic/migrations/versions/xx_2025_10_29_1659_80d28dea3b6b_added_duplicate_group_table.py +79 -0
  15. fides/api/alembic/migrations/versions/xx_2025_11_05_0200_f1a2b3c4d5e6_create_staged_resource_error_table.py +82 -0
  16. fides/api/api/v1/endpoints/connection_endpoints.py +38 -45
  17. fides/api/api/v1/endpoints/generic_overrides.py +75 -6
  18. fides/api/api/v1/endpoints/privacy_request_endpoints.py +60 -6
  19. fides/api/api/v1/endpoints/saas_config_endpoints.py +60 -48
  20. fides/api/api/v1/endpoints/system.py +11 -43
  21. fides/api/api/v1/endpoints/user_endpoints.py +8 -1
  22. fides/api/app_setup.py +1 -3
  23. fides/api/common_exceptions.py +8 -0
  24. fides/api/db/base.py +2 -0
  25. fides/api/db/database.py +257 -2
  26. fides/api/email_templates/get_email_template.py +3 -0
  27. fides/api/email_templates/template_names.py +1 -0
  28. fides/api/email_templates/templates/manual_task_digest.html +316 -0
  29. fides/api/main.py +2 -2
  30. fides/api/models/attachment.py +1 -0
  31. fides/api/models/detection_discovery/__init__.py +2 -0
  32. fides/api/models/detection_discovery/core.py +10 -0
  33. fides/api/models/detection_discovery/monitor_task.py +1 -0
  34. fides/api/models/detection_discovery/staged_resource_error.py +25 -0
  35. fides/api/models/digest/__init__.py +2 -0
  36. fides/api/models/digest/digest_config.py +10 -1
  37. fides/api/models/digest/digest_execution.py +142 -0
  38. fides/api/models/event_audit.py +17 -0
  39. fides/api/models/identity_definition.py +65 -0
  40. fides/api/models/messaging_template.py +7 -0
  41. fides/api/models/privacy_experience.py +11 -0
  42. fides/api/models/privacy_preference.py +2 -0
  43. fides/api/models/privacy_request/duplicate_group.py +84 -0
  44. fides/api/models/privacy_request/privacy_request.py +56 -8
  45. fides/api/models/privacy_request/request_task.py +98 -1
  46. fides/api/models/sql_models.py +3 -0
  47. fides/api/models/taxonomy.py +14 -4
  48. fides/api/models/v3/__init__.py +0 -0
  49. fides/api/models/v3/privacy_preferences.py +85 -0
  50. fides/api/models/worker_task.py +8 -0
  51. fides/api/schemas/application_config.py +28 -0
  52. fides/api/schemas/connection_configuration/connection_config.py +1 -30
  53. fides/api/schemas/messaging/messaging.py +15 -0
  54. fides/api/schemas/privacy_request.py +17 -3
  55. fides/api/schemas/saas/async_polling_configuration.py +81 -0
  56. fides/api/schemas/saas/saas_config.py +10 -3
  57. fides/api/schemas/saas/strategy_configuration.py +0 -12
  58. fides/api/schemas/taxonomy_extensions.py +8 -0
  59. fides/api/service/async_dsr/handlers/__init__.py +0 -0
  60. fides/api/service/async_dsr/handlers/polling_attachment_handler.py +155 -0
  61. fides/api/service/async_dsr/handlers/polling_request_handler.py +88 -0
  62. fides/api/service/async_dsr/handlers/polling_response_handler.py +261 -0
  63. fides/api/service/async_dsr/handlers/polling_sub_request_handler.py +123 -0
  64. fides/api/service/async_dsr/strategies/__init__.py +0 -0
  65. fides/api/service/async_dsr/strategies/async_dsr_strategy.py +52 -0
  66. fides/api/service/async_dsr/strategies/async_dsr_strategy_callback.py +199 -0
  67. fides/api/service/async_dsr/strategies/async_dsr_strategy_factory.py +72 -0
  68. fides/api/service/async_dsr/strategies/async_dsr_strategy_polling.py +686 -0
  69. fides/api/service/async_dsr/utils.py +130 -0
  70. fides/api/service/connectors/bigquery_connector.py +34 -16
  71. fides/api/service/connectors/fides/fides_client.py +63 -1
  72. fides/api/service/connectors/query_configs/saas_query_config.py +160 -79
  73. fides/api/service/connectors/saas/connector_registry_service.py +1 -138
  74. fides/api/service/connectors/saas_connector.py +116 -94
  75. fides/api/service/connectors/sql_connector.py +14 -4
  76. fides/api/service/deps.py +8 -0
  77. fides/api/service/messaging/message_dispatch_service.py +38 -1
  78. fides/api/service/privacy_request/attachment_handling.py +9 -2
  79. fides/api/service/privacy_request/duplication_detection.py +424 -0
  80. fides/api/service/privacy_request/request_runner_service.py +46 -84
  81. fides/api/service/privacy_request/request_service.py +47 -74
  82. fides/api/service/saas_request/saas_request_override_factory.py +71 -1
  83. fides/api/task/execute_request_tasks.py +17 -9
  84. fides/api/task/filter_results.py +35 -2
  85. fides/api/task/graph_task.py +37 -8
  86. fides/api/tasks/__init__.py +0 -1
  87. fides/api/util/connection_util.py +99 -215
  88. fides/api/util/event_audit_util.py +230 -0
  89. fides/api/util/logger_context_utils.py +3 -1
  90. fides/api/util/masking_util.py +31 -0
  91. fides/api/util/memory_watchdog.py +118 -0
  92. fides/api/util/saas_config_updater.py +66 -0
  93. fides/api/util/saas_util.py +28 -1
  94. fides/common/api/scope_registry.py +0 -7
  95. fides/common/api/v1/urn_registry.py +2 -0
  96. fides/config/__init__.py +10 -1
  97. fides/config/celery_settings.py +42 -0
  98. fides/config/config_proxy.py +10 -0
  99. fides/config/duplicate_detection_settings.py +31 -0
  100. fides/config/execution_settings.py +7 -3
  101. fides/config/utils.py +5 -0
  102. fides/data/language/languages.yml +2 -0
  103. fides/service/connection/__init__.py +0 -0
  104. fides/service/connection/connection_service.py +651 -0
  105. fides/service/event_audit_service.py +16 -22
  106. fides/service/privacy_request/privacy_request_service.py +162 -43
  107. fides/service/taxonomy/handlers/legacy_handler.py +3 -3
  108. fides/service/taxonomy/taxonomy_service.py +15 -15
  109. fides/ui-build/static/admin/404.html +1 -1
  110. fides/ui-build/static/admin/_next/static/FZTEUgamBvOhgPWce135w/_buildManifest.js +1 -0
  111. fides/ui-build/static/admin/_next/static/chunks/{1115-90baef2a89f361ad.js → 1115-0da062111df309bf.js} +1 -1
  112. fides/ui-build/static/admin/_next/static/chunks/{6148-59a59d5c5925344f.js → 1533-84e250d1f26e6d7d.js} +1 -1
  113. fides/ui-build/static/admin/_next/static/chunks/1817-508b16628e8eb225.js +1 -0
  114. fides/ui-build/static/admin/_next/static/chunks/1840-5bbe6d878ed73fb4.js +1 -0
  115. fides/ui-build/static/admin/_next/static/chunks/{1975.78e719130cfe3fd6.js → 1975.afe8cad52f904fcf.js} +1 -1
  116. fides/ui-build/static/admin/_next/static/chunks/{2040-fdecc41a18e40bdc.js → 2040-fe1a06d82c0413f1.js} +1 -1
  117. fides/ui-build/static/admin/_next/static/chunks/2397-40b8db1cb2f23e2a.js +1 -0
  118. fides/ui-build/static/admin/_next/static/chunks/2921-b10bbc3a9104933b.js +1 -0
  119. fides/ui-build/static/admin/_next/static/chunks/3214-90ce0a366b0f461a.js +1 -0
  120. fides/ui-build/static/admin/_next/static/chunks/3377-eb5cd82b3ee6ab0c.js +1 -0
  121. fides/ui-build/static/admin/_next/static/chunks/3615-5e2d062d684b8fa1.js +1 -0
  122. fides/ui-build/static/admin/_next/static/chunks/3655-93ecd09f1cb9dbef.js +1 -0
  123. fides/ui-build/static/admin/_next/static/chunks/{3696-90c8b336bbc46782.js → 3696-6db05a35ae806825.js} +1 -1
  124. fides/ui-build/static/admin/_next/static/chunks/{3923-98bea73b618292aa.js → 3923-44255a63d6d80ff5.js} +1 -1
  125. fides/ui-build/static/admin/_next/static/chunks/401-fe8db8b5d8f600de.js +1 -0
  126. fides/ui-build/static/admin/_next/static/chunks/{4259.d1507e0db19cbed7.js → 4259.05038c9b78467244.js} +1 -1
  127. fides/ui-build/static/admin/_next/static/chunks/4277-13bcf4516326d474.js +1 -0
  128. fides/ui-build/static/admin/_next/static/chunks/431-e01ee730c8ad9ece.js +1 -0
  129. fides/ui-build/static/admin/_next/static/chunks/4496-bed72bd5639075be.js +1 -0
  130. fides/ui-build/static/admin/_next/static/chunks/454-d5c2c84f1a14e4f1.js +1 -0
  131. fides/ui-build/static/admin/_next/static/chunks/4817-d29f40d4ce729f37.js +1 -0
  132. fides/ui-build/static/admin/_next/static/chunks/5185-b2ac9fecc00b67e7.js +1 -0
  133. fides/ui-build/static/admin/_next/static/chunks/5258-4672eae0656430f9.js +1 -0
  134. fides/ui-build/static/admin/_next/static/chunks/5487-8dedd1ca94fbba54.js +1 -0
  135. fides/ui-build/static/admin/_next/static/chunks/549-6e2442db533a711e.js +1 -0
  136. fides/ui-build/static/admin/_next/static/chunks/5643-55d758444a8d7162.js +1 -0
  137. fides/ui-build/static/admin/_next/static/chunks/5724-1e40975cefa405f0.js +1 -0
  138. fides/ui-build/static/admin/_next/static/chunks/{5783-d119cb132abd8a91.js → 5783-6055edba275155ca.js} +1 -1
  139. fides/ui-build/static/admin/_next/static/chunks/6084-82e2df433fe5ba85.js +1 -0
  140. fides/ui-build/static/admin/_next/static/chunks/6344-3e21444374f8059f.js +1 -0
  141. fides/ui-build/static/admin/_next/static/chunks/6362-12e3fd23130ccf15.js +1 -0
  142. fides/ui-build/static/admin/_next/static/chunks/6372-a8d0f08dac1ebd0e.js +1 -0
  143. fides/ui-build/static/admin/_next/static/chunks/6780-3db5133c1f4c6f1e.js +1 -0
  144. fides/ui-build/static/admin/_next/static/chunks/6853-1adbdf6418ec3d62.js +1 -0
  145. fides/ui-build/static/admin/_next/static/chunks/6954-aa0c60ee1092be8e.js +1 -0
  146. fides/ui-build/static/admin/_next/static/chunks/7059-12be23a345a94c1e.js +1 -0
  147. fides/ui-build/static/admin/_next/static/chunks/7079-6e6efc3396ff1ebb.js +1 -0
  148. fides/ui-build/static/admin/_next/static/chunks/7218-d297a4a06f924b09.js +1 -0
  149. fides/ui-build/static/admin/_next/static/chunks/7245-686665c197b58e68.js +1 -0
  150. fides/ui-build/static/admin/_next/static/chunks/{7476-d055aa931da47ac0.js → 7476-a43c046c24de37cc.js} +1 -1
  151. fides/ui-build/static/admin/_next/static/chunks/7630-c654c61ba98d8c74.js +1 -0
  152. fides/ui-build/static/admin/_next/static/chunks/7654-716cf37a020b3d11.js +1 -0
  153. fides/ui-build/static/admin/_next/static/chunks/{796-02086581996a0548.js → 796-e83ace3c6ab99ac7.js} +1 -1
  154. fides/ui-build/static/admin/_next/static/chunks/8212-b9e8295ca883c9f8.js +1 -0
  155. fides/ui-build/static/admin/_next/static/chunks/8939-4925751c57c51f87.js +1 -0
  156. fides/ui-build/static/admin/_next/static/chunks/9014-eeae6f581158e645.js +1 -0
  157. fides/ui-build/static/admin/_next/static/chunks/9046-e4daf28840a69fd6.js +1 -0
  158. fides/ui-build/static/admin/_next/static/chunks/{5596-29a7c8322530b7cf.js → 9195-550bd50d538c5f79.js} +3 -3
  159. fides/ui-build/static/admin/_next/static/chunks/9330-e519adec48222d45.js +1 -0
  160. fides/ui-build/static/admin/_next/static/chunks/9341-bfc0e59bcc56c604.js +1 -0
  161. fides/ui-build/static/admin/_next/static/chunks/9450-b7b7bb1d755ecf57.js +1 -0
  162. fides/ui-build/static/admin/_next/static/chunks/{9676.b86ecbcfe5afd25d.js → 9676.7d029a5383595b69.js} +1 -1
  163. fides/ui-build/static/admin/_next/static/chunks/9682-da69ac5d06f281da.js +1 -0
  164. fides/ui-build/static/admin/_next/static/chunks/{9826-ccedc28e978ca9e1.js → 9826-657652d55936a8c6.js} +1 -1
  165. fides/ui-build/static/admin/_next/static/chunks/9911-ece086f2230e34f0.js +1 -0
  166. fides/ui-build/static/admin/_next/static/chunks/9965-56c5e4fc9cd3b3a5.js +1 -0
  167. fides/ui-build/static/admin/_next/static/chunks/pages/{404-2eb8aed4939f1142.js → 404-d079b8bf35250874.js} +1 -1
  168. fides/ui-build/static/admin/_next/static/chunks/pages/{_app-c1c2f757b1f3da12.js → _app-e64fd8510033a27c.js} +63 -63
  169. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-ddd9d7d40847fc28.js +1 -0
  170. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/multiple-b4d18c1f4d414f5f.js +1 -0
  171. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-d451bc8932330141.js +1 -0
  172. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-7a258b7ecd6da4b8.js → add-vendors-c24663cd5dec57db.js} +1 -1
  173. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-fb5017ff5fa54fcc.js → configure-d93418688bd258eb.js} +1 -1
  174. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-e1e2fd704ac2d71d.js → [id]-9b1f2b1c06968166.js} +1 -1
  175. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{new-a5e738a234dadc7e.js → new-115a085e5d42de45.js} +1 -1
  176. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience-d9b7b311195df29e.js +1 -0
  177. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-5fc78b78a51c239c.js → [id]-3de34624829cbce8.js} +1 -1
  178. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-b79bcb93b5f4c734.js → new-dc95e7ed278d1a29.js} +1 -1
  179. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-cdfc9bb19f47c709.js +1 -0
  180. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-069f4e3ee96ebf77.js → properties-0b995b01dc4dbd1f.js} +1 -1
  181. fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-e3ad3a55624e302a.js +1 -0
  182. fides/ui-build/static/admin/_next/static/chunks/pages/{consent-d2bf72508c3cad55.js → consent-b37ed76849330edd.js} +1 -1
  183. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/{[resourceUrn]-2fa4b3a58f75f81d.js → [resourceUrn]-dd82729296dee5c5.js} +1 -1
  184. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-49e5477eb1a11b92.js +1 -0
  185. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-dfc1ead4a12c9ffa.js +1 -0
  186. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/{[resourceUrn]-5b31e3d7727b917a.js → [resourceUrn]-8442eb219958ac7e.js} +1 -1
  187. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources-feda358d1801c18d.js +1 -0
  188. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-d16acb6fc07aad46.js +1 -0
  189. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/datastore/[monitorId]-c51a1e98c45d231a.js +1 -0
  190. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/datastore-4498881c26f1458d.js +1 -0
  191. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/[monitorId]/[systemId]-bcfe38eebca30f8c.js +1 -0
  192. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/[monitorId]-f66d0655897c4400.js +1 -0
  193. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website-5b3e0009d442bc3f.js +1 -0
  194. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-6f1e012cd641da19.js +1 -0
  195. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-581d6248fcf98d17.js +1 -0
  196. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-844a8de0d1b506e2.js → [resourceUrn]-ddc1c1641e1e9430.js} +1 -1
  197. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-11b07cf2d91b17ef.js → detection-2b48f7e524743b2b.js} +1 -1
  198. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-5525cf287d4ab493.js → [resourceUrn]-862b67418600251e.js} +1 -1
  199. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-ed4723e1b67d890e.js → discovery-0ffec855f5df262c.js} +1 -1
  200. fides/ui-build/static/admin/_next/static/chunks/pages/datamap-6a030ab8c2e2b0db.js +1 -0
  201. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-6cb66f649b8ca4bf.js +1 -0
  202. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]-0b008dad90b00aaa.js +1 -0
  203. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-5566edf9a9d1be2d.js +1 -0
  204. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-d4ca1f485b6e9e02.js +1 -0
  205. fides/ui-build/static/admin/_next/static/chunks/pages/dataset-85dee7e81dc4bafb.js +1 -0
  206. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/[id]-e905e018a2cab35d.js +1 -0
  207. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-912723bc86299b1a.js +1 -0
  208. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-f1f0affc18327033.js +1 -0
  209. fides/ui-build/static/admin/_next/static/chunks/pages/{fides-js-docs-1f4335dca5c09860.js → fides-js-docs-5235760b3e508d7d.js} +1 -1
  210. fides/ui-build/static/admin/_next/static/chunks/pages/{index-b74d1e8608ae5b5d.js → index-692d27dbe9392c9f.js} +1 -1
  211. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-1b94e2d769a182b2.js +1 -0
  212. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-adfe6c5ac5b703d0.js +1 -0
  213. fides/ui-build/static/admin/_next/static/chunks/pages/new-privacy-requests-f9be7080ebbb7445.js +1 -0
  214. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests/[id]-caaa8602a1d449b1.js +1 -0
  215. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests/new-9b106b1d2d93985b.js +1 -0
  216. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests-6a1ded8cdde836c4.js +1 -0
  217. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers/[key]-f94e3accf9507ebf.js +1 -0
  218. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers/new-5e83220ff1f2a250.js +1 -0
  219. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers-a03cbd698a23e5b3.js +1 -0
  220. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates/[id]-3cde574b3c8447c0.js +1 -0
  221. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates/add-template-0448bb4ae8536c58.js +1 -0
  222. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates-1621a4b87c432117.js +1 -0
  223. fides/ui-build/static/admin/_next/static/chunks/pages/notifications-4ea28f6b1dd63642.js +1 -0
  224. fides/ui-build/static/admin/_next/static/chunks/pages/poc/ant-components-e02516d9fd314528.js +1 -0
  225. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/AntForm-fec08bea801b4918.js +1 -0
  226. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikAntFormItem-d911e5fbf5a4a888.js +1 -0
  227. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikControlled-91b1adcac6a57b2d.js +1 -0
  228. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikField-de309d8813b1ebfb.js +1 -0
  229. fides/ui-build/static/admin/_next/static/chunks/pages/poc/forms-f2943c1309062284.js +1 -0
  230. fides/ui-build/static/admin/_next/static/chunks/pages/poc/{table-migration-29fb7b39f8962650.js → table-migration-03eda417711ae909.js} +1 -1
  231. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-1fe486f3af832c80.js +1 -0
  232. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-ea6f78fa8b2d3f6c.js +1 -0
  233. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-8f577df28ebca869.js → configure-bda7b474493e7128.js} +1 -1
  234. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-2c0ec8fed16c20ae.js +1 -0
  235. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-57a75c7e9659271a.js → [id]-30d298a47e85709f.js} +1 -1
  236. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-8964c2300206bc89.js → add-property-438084cca0d0f10d.js} +1 -1
  237. fides/ui-build/static/admin/_next/static/chunks/pages/{properties-08472b2a6bf1d392.js → properties-17fd44d98f5bd5b6.js} +1 -1
  238. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-baf77d34a3b3bece.js +1 -0
  239. fides/ui-build/static/admin/_next/static/chunks/pages/sandbox/privacy-notices-8c80391025ca7339.js +1 -0
  240. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-7c19810858b708cc.js +1 -0
  241. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-ee8820fe0fa14c77.js +1 -0
  242. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/{[id]-bd1042a0e9be6aff.js → [id]-8eb862182f19a6c2.js} +1 -1
  243. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/{new-469ad83c8cfa1290.js → new-37c29ef618e9fe3c.js} +1 -1
  244. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-1db425150dcb1b6b.js +1 -0
  245. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-744f669431b84f71.js → domain-records-e334b43fa5c5b1e6.js} +1 -1
  246. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-9d18eb5c38d85522.js +1 -0
  247. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-604790638c656fbd.js → email-templates-cb937ed7c4b1e5a8.js} +1 -1
  248. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-be2a885150adc133.js → locations-835281251f0785cd.js} +1 -1
  249. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-3c86162afe9759df.js → organization-7fd050c92866938c.js} +1 -1
  250. fides/ui-build/static/admin/_next/static/chunks/pages/settings/privacy-requests-59ea66130fca0d05.js +1 -0
  251. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-4fe3b90747d885e5.js → regulations-b0fe1051d908f366.js} +1 -1
  252. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-f108bf5015144d2f.js +1 -0
  253. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-4d470bbf199a2f9c.js → [id]-0e7c7228d01290ea.js} +1 -1
  254. fides/ui-build/static/admin/_next/static/chunks/pages/systems-adc13b542e10a37d.js +1 -0
  255. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-23dd250da26511c5.js +1 -0
  256. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-98f737e735eaa0f0.js → [id]-aed30fb22ae7c9ec.js} +1 -1
  257. fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-562624e5461083ec.js → user-management-6b88ca3e02ee67c9.js} +1 -1
  258. fides/ui-build/static/admin/_next/static/chunks/webpack-6f97ebe373e7ef6b.js +1 -0
  259. fides/ui-build/static/admin/_next/static/css/012b10627a654d5c.css +1 -0
  260. fides/ui-build/static/admin/_next/static/css/05d05fc31d09638b.css +1 -0
  261. fides/ui-build/static/admin/_next/static/css/0fd6e0884cfcc5f3.css +1 -0
  262. fides/ui-build/static/admin/_next/static/css/14ba79c49597d37a.css +1 -0
  263. fides/ui-build/static/admin/_next/static/css/{34a7eb08b86ddb57.css → 3d6582469f7d56e0.css} +1 -1
  264. fides/ui-build/static/admin/_next/static/css/4861ca3e088f2d05.css +1 -0
  265. fides/ui-build/static/admin/_next/static/css/65ae906f224cd8ae.css +1 -0
  266. fides/ui-build/static/admin/_next/static/css/a1800714b486e230.css +1 -0
  267. fides/ui-build/static/admin/_next/static/css/af32fcac7a177a0e.css +1 -0
  268. fides/ui-build/static/admin/_next/static/css/cb417f0587918f85.css +1 -0
  269. fides/ui-build/static/admin/_next/static/css/d5701118537cbdd2.css +1 -0
  270. fides/ui-build/static/admin/_next/static/css/dd15c278b964de80.css +1 -0
  271. fides/ui-build/static/admin/_next/static/css/{5f393dea1c0d031c.css → f89607996ad54f4b.css} +1 -1
  272. fides/ui-build/static/admin/_next/static/css/f9a2a44d3d34c904.css +1 -0
  273. fides/ui-build/static/admin/add-systems/manual.html +1 -1
  274. fides/ui-build/static/admin/add-systems/multiple.html +1 -1
  275. fides/ui-build/static/admin/add-systems.html +1 -1
  276. fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
  277. fides/ui-build/static/admin/consent/configure.html +1 -1
  278. fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
  279. fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
  280. fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
  281. fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
  282. fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
  283. fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
  284. fides/ui-build/static/admin/consent/properties.html +1 -1
  285. fides/ui-build/static/admin/consent/reporting.html +1 -1
  286. fides/ui-build/static/admin/consent.html +1 -1
  287. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
  288. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
  289. fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
  290. fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
  291. fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
  292. fides/ui-build/static/admin/data-catalog.html +1 -1
  293. fides/ui-build/static/admin/data-discovery/action-center/datastore/[monitorId].html +1 -0
  294. fides/ui-build/static/admin/data-discovery/action-center/datastore.html +1 -0
  295. fides/ui-build/static/admin/data-discovery/action-center/website/[monitorId]/[systemId].html +1 -0
  296. fides/ui-build/static/admin/data-discovery/action-center/website/[monitorId].html +1 -0
  297. fides/ui-build/static/admin/data-discovery/action-center/website.html +1 -0
  298. fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
  299. fides/ui-build/static/admin/data-discovery/activity.html +1 -1
  300. fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
  301. fides/ui-build/static/admin/data-discovery/detection.html +1 -1
  302. fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
  303. fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
  304. fides/ui-build/static/admin/datamap.html +1 -1
  305. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
  306. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
  307. fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
  308. fides/ui-build/static/admin/dataset/new.html +1 -1
  309. fides/ui-build/static/admin/dataset.html +1 -1
  310. fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
  311. fides/ui-build/static/admin/datastore-connection/new.html +1 -1
  312. fides/ui-build/static/admin/datastore-connection.html +1 -1
  313. fides/ui-build/static/admin/index.html +1 -1
  314. fides/ui-build/static/admin/integrations/[id].html +1 -1
  315. fides/ui-build/static/admin/integrations.html +1 -1
  316. fides/ui-build/static/admin/lib/fides-ext-gpp.js +1 -1
  317. fides/ui-build/static/admin/lib/fides-headless.js +1 -1
  318. fides/ui-build/static/admin/lib/fides-preview.js +1 -1
  319. fides/ui-build/static/admin/lib/fides-tcf.js +3 -3
  320. fides/ui-build/static/admin/lib/fides.js +3 -3
  321. fides/ui-build/static/admin/login/[provider].html +1 -1
  322. fides/ui-build/static/admin/login.html +1 -1
  323. fides/ui-build/static/admin/new-privacy-requests.html +1 -0
  324. fides/ui-build/static/admin/notifications/digests/[id].html +1 -0
  325. fides/ui-build/static/admin/notifications/digests/new.html +1 -0
  326. fides/ui-build/static/admin/notifications/digests.html +1 -0
  327. fides/ui-build/static/admin/notifications/providers/[key].html +1 -0
  328. fides/ui-build/static/admin/notifications/providers/new.html +1 -0
  329. fides/ui-build/static/admin/notifications/providers.html +1 -0
  330. fides/ui-build/static/admin/notifications/templates/[id].html +1 -0
  331. fides/ui-build/static/admin/notifications/templates/add-template.html +1 -0
  332. fides/ui-build/static/admin/notifications/templates.html +1 -0
  333. fides/ui-build/static/admin/notifications.html +1 -0
  334. fides/ui-build/static/admin/poc/ant-components.html +1 -1
  335. fides/ui-build/static/admin/poc/form-experiments/AntForm.html +1 -1
  336. fides/ui-build/static/admin/poc/form-experiments/FormikAntFormItem.html +1 -1
  337. fides/ui-build/static/admin/poc/form-experiments/FormikControlled.html +1 -1
  338. fides/ui-build/static/admin/poc/form-experiments/FormikField.html +1 -1
  339. fides/ui-build/static/admin/poc/form-experiments/FormikSpreadField.html +1 -1
  340. fides/ui-build/static/admin/poc/forms.html +1 -1
  341. fides/ui-build/static/admin/poc/table-migration.html +1 -1
  342. fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
  343. fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
  344. fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
  345. fides/ui-build/static/admin/privacy-requests.html +1 -1
  346. fides/ui-build/static/admin/properties/[id].html +1 -1
  347. fides/ui-build/static/admin/properties/add-property.html +1 -1
  348. fides/ui-build/static/admin/properties.html +1 -1
  349. fides/ui-build/static/admin/reporting/datamap.html +1 -1
  350. fides/ui-build/static/admin/sandbox/privacy-notices.html +1 -0
  351. fides/ui-build/static/admin/settings/about/alpha.html +1 -1
  352. fides/ui-build/static/admin/settings/about.html +1 -1
  353. fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +1 -1
  354. fides/ui-build/static/admin/settings/consent.html +1 -1
  355. fides/ui-build/static/admin/settings/custom-fields/[id].html +1 -1
  356. fides/ui-build/static/admin/settings/custom-fields/new.html +1 -1
  357. fides/ui-build/static/admin/settings/custom-fields.html +1 -1
  358. fides/ui-build/static/admin/settings/domain-records.html +1 -1
  359. fides/ui-build/static/admin/settings/domains.html +1 -1
  360. fides/ui-build/static/admin/settings/email-templates.html +1 -1
  361. fides/ui-build/static/admin/settings/locations.html +1 -1
  362. fides/ui-build/static/admin/settings/organization.html +1 -1
  363. fides/ui-build/static/admin/settings/privacy-requests.html +1 -1
  364. fides/ui-build/static/admin/settings/regulations.html +1 -1
  365. fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
  366. fides/ui-build/static/admin/systems/configure/[id].html +1 -1
  367. fides/ui-build/static/admin/systems.html +1 -1
  368. fides/ui-build/static/admin/taxonomy.html +1 -1
  369. fides/ui-build/static/admin/user-management/new.html +1 -1
  370. fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
  371. fides/ui-build/static/admin/user-management.html +1 -1
  372. fides/api/service/async_dsr/async_dsr_service.py +0 -195
  373. fides/api/service/async_dsr/async_dsr_strategy.py +0 -5
  374. fides/api/service/async_dsr/async_dsr_strategy_callback.py +0 -16
  375. fides/api/service/async_dsr/async_dsr_strategy_factory.py +0 -63
  376. fides/api/service/async_dsr/async_dsr_strategy_polling.py +0 -94
  377. fides/ui-build/static/admin/_next/static/_IxwgneyQjdSaZFEF3Tqu/_buildManifest.js +0 -1
  378. fides/ui-build/static/admin/_next/static/chunks/1316-2606e19807c08aa5.js +0 -1
  379. fides/ui-build/static/admin/_next/static/chunks/1467-8808ec8836e033f9.js +0 -1
  380. fides/ui-build/static/admin/_next/static/chunks/155-b4337d0826d5addc.js +0 -1
  381. fides/ui-build/static/admin/_next/static/chunks/1817-1ad037b7d6d2f6d2.js +0 -1
  382. fides/ui-build/static/admin/_next/static/chunks/1896-49010da5c2705fc5.js +0 -1
  383. fides/ui-build/static/admin/_next/static/chunks/2150-930ffaf2c4718edc.js +0 -1
  384. fides/ui-build/static/admin/_next/static/chunks/255-1bc0cbef7a59cdc6.js +0 -1
  385. fides/ui-build/static/admin/_next/static/chunks/2921-66f65496c3a09316.js +0 -1
  386. fides/ui-build/static/admin/_next/static/chunks/2962-e92d525bf570a9a3.js +0 -1
  387. fides/ui-build/static/admin/_next/static/chunks/346-aa3b88efb85f2e28.js +0 -1
  388. fides/ui-build/static/admin/_next/static/chunks/3550-83cb70e80cbe41ba.js +0 -1
  389. fides/ui-build/static/admin/_next/static/chunks/3585-f728d32fda6f1ac1.js +0 -1
  390. fides/ui-build/static/admin/_next/static/chunks/3855-ed226b8a8050bd40.js +0 -1
  391. fides/ui-build/static/admin/_next/static/chunks/3872-04d3afbfa41a7782.js +0 -1
  392. fides/ui-build/static/admin/_next/static/chunks/401-ffe4e8436e1eceb9.js +0 -1
  393. fides/ui-build/static/admin/_next/static/chunks/409-5c3d31163028339f.js +0 -1
  394. fides/ui-build/static/admin/_next/static/chunks/431-78bf05f35d7eec4f.js +0 -1
  395. fides/ui-build/static/admin/_next/static/chunks/4558-8305aee48def1dcd.js +0 -1
  396. fides/ui-build/static/admin/_next/static/chunks/4608-0c6ef78e30a51f84.js +0 -1
  397. fides/ui-build/static/admin/_next/static/chunks/4718-3a412bdb90add82f.js +0 -1
  398. fides/ui-build/static/admin/_next/static/chunks/502-0d9f4ac29ef34a1c.js +0 -1
  399. fides/ui-build/static/admin/_next/static/chunks/504-88caa30c03374e9b.js +0 -1
  400. fides/ui-build/static/admin/_next/static/chunks/5163-e682273cd76a7d07.js +0 -1
  401. fides/ui-build/static/admin/_next/static/chunks/5185-51eaa78e3ed6bfb7.js +0 -1
  402. fides/ui-build/static/admin/_next/static/chunks/5279-12c9cbdc67ad7b14.js +0 -1
  403. fides/ui-build/static/admin/_next/static/chunks/5309-3b6cf0cc9d0c6a83.js +0 -1
  404. fides/ui-build/static/admin/_next/static/chunks/5574-c31ea831371610d5.js +0 -1
  405. fides/ui-build/static/admin/_next/static/chunks/5619-9b50cec521203989.js +0 -1
  406. fides/ui-build/static/admin/_next/static/chunks/5643-10a36584c399526c.js +0 -1
  407. fides/ui-build/static/admin/_next/static/chunks/6277-182efc294d413f64.js +0 -1
  408. fides/ui-build/static/admin/_next/static/chunks/6419-9b3a86af57c86791.js +0 -1
  409. fides/ui-build/static/admin/_next/static/chunks/6853-7004a8c420b1ca02.js +0 -1
  410. fides/ui-build/static/admin/_next/static/chunks/6882-dbe0a25dcf1a8ee0.js +0 -1
  411. fides/ui-build/static/admin/_next/static/chunks/6954-4b24e1731c1cc3b3.js +0 -1
  412. fides/ui-build/static/admin/_next/static/chunks/699-8ca44b0de9fa20f0.js +0 -1
  413. fides/ui-build/static/admin/_next/static/chunks/7045-14e955890f1147e4.js +0 -1
  414. fides/ui-build/static/admin/_next/static/chunks/7079-50571e9f3269d74d.js +0 -1
  415. fides/ui-build/static/admin/_next/static/chunks/7158-04745cc8d684b2e7.js +0 -1
  416. fides/ui-build/static/admin/_next/static/chunks/7218-e2983b96b95e33b4.js +0 -1
  417. fides/ui-build/static/admin/_next/static/chunks/7630-d0d3a0fe3f95e971.js +0 -1
  418. fides/ui-build/static/admin/_next/static/chunks/7725-f2a7be705b75dcc3.js +0 -1
  419. fides/ui-build/static/admin/_next/static/chunks/7929-0fd0d4948bc8d70e.js +0 -1
  420. fides/ui-build/static/admin/_next/static/chunks/8002-ed832921ad190832.js +0 -1
  421. fides/ui-build/static/admin/_next/static/chunks/8765-f622a35b40a7ec63.js +0 -1
  422. fides/ui-build/static/admin/_next/static/chunks/9037-453224ba3ee65b13.js +0 -1
  423. fides/ui-build/static/admin/_next/static/chunks/9046-b6616ba7b59d947e.js +0 -1
  424. fides/ui-build/static/admin/_next/static/chunks/9187-7438242f0d380bb0.js +0 -1
  425. fides/ui-build/static/admin/_next/static/chunks/9226-4a7027057f55ca2a.js +0 -1
  426. fides/ui-build/static/admin/_next/static/chunks/9278-08cc704317fe535e.js +0 -1
  427. fides/ui-build/static/admin/_next/static/chunks/9729-fcf6ff4e3534e4a8.js +0 -1
  428. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-4ec03eed67572861.js +0 -1
  429. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/multiple-2ca59996860a33c5.js +0 -1
  430. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-19214babd1f219e3.js +0 -1
  431. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience-92182be6603c2842.js +0 -1
  432. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-ab54b19609bff325.js +0 -1
  433. fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-c1a3caf3c286bf5d.js +0 -1
  434. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-4a1af12d2d7cd660.js +0 -1
  435. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-99573a1ee3ef8f4c.js +0 -1
  436. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources-6e429b7511028d60.js +0 -1
  437. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-b7326c51d88cc2cc.js +0 -1
  438. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-5b57f9132426fe52.js +0 -1
  439. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-0d512528b498d75c.js +0 -1
  440. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-040813022f0890c9.js +0 -1
  441. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-a28cc0e23bbe4fc8.js +0 -1
  442. fides/ui-build/static/admin/_next/static/chunks/pages/datamap-7d22222608ec3aac.js +0 -1
  443. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-0abd30eada811b5b.js +0 -1
  444. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]-007965429368d9a3.js +0 -1
  445. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-60a4a9eb4aab4c11.js +0 -1
  446. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-d514cd4ec62e3b03.js +0 -1
  447. fides/ui-build/static/admin/_next/static/chunks/pages/dataset-0e3a6ac4797ffbbb.js +0 -1
  448. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/[id]-816e02b6cbe4a684.js +0 -1
  449. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-b6838162200141b3.js +0 -1
  450. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-223c2d1ded51bfb1.js +0 -1
  451. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-153eb88ab4e7dc6d.js +0 -1
  452. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-331544e9b85c4ac2.js +0 -1
  453. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/[id]-e8d2140787045acd.js +0 -1
  454. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/add-template-e3f93462a08251bf.js +0 -1
  455. fides/ui-build/static/admin/_next/static/chunks/pages/messaging-b5f7d6afdecd013d.js +0 -1
  456. fides/ui-build/static/admin/_next/static/chunks/pages/poc/ant-components-248ad9f65a872442.js +0 -1
  457. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/AntForm-aedb66a62042b10a.js +0 -1
  458. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikAntFormItem-018df38b7cd77fdb.js +0 -1
  459. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikControlled-6ca9099d03aab817.js +0 -1
  460. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikField-0f2c90786ea005a4.js +0 -1
  461. fides/ui-build/static/admin/_next/static/chunks/pages/poc/forms-200b51a725f8b2d1.js +0 -1
  462. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-7dac2302f573f5ee.js +0 -1
  463. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-479890582973deaf.js +0 -1
  464. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-7af00f72cf694077.js +0 -1
  465. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-f7753e9effae3816.js +0 -1
  466. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-f3e6e74e0efb005c.js +0 -1
  467. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-4d658222ec800511.js +0 -1
  468. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-2fcd95c41e578d57.js +0 -1
  469. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-a3275554ffe8e640.js +0 -1
  470. fides/ui-build/static/admin/_next/static/chunks/pages/settings/messaging-providers/[key]-77239269acc2d31a.js +0 -1
  471. fides/ui-build/static/admin/_next/static/chunks/pages/settings/messaging-providers/new-8bf1821722b082e9.js +0 -1
  472. fides/ui-build/static/admin/_next/static/chunks/pages/settings/messaging-providers-8d92be437793c96f.js +0 -1
  473. fides/ui-build/static/admin/_next/static/chunks/pages/settings/privacy-requests-97221067330c0c27.js +0 -1
  474. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-2deb6becece69d46.js +0 -1
  475. fides/ui-build/static/admin/_next/static/chunks/pages/systems-6c91bdea40875227.js +0 -1
  476. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-3059aba38adefa56.js +0 -1
  477. fides/ui-build/static/admin/_next/static/chunks/webpack-2766492c5dbceb0a.js +0 -1
  478. fides/ui-build/static/admin/_next/static/css/073713cd1eddda79.css +0 -1
  479. fides/ui-build/static/admin/_next/static/css/23cf870196941c9a.css +0 -1
  480. fides/ui-build/static/admin/_next/static/css/295d729ea1b11885.css +0 -1
  481. fides/ui-build/static/admin/_next/static/css/304c6f148886a8d4.css +0 -1
  482. fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +0 -1
  483. fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +0 -1
  484. fides/ui-build/static/admin/messaging/[id].html +0 -1
  485. fides/ui-build/static/admin/messaging/add-template.html +0 -1
  486. fides/ui-build/static/admin/messaging.html +0 -1
  487. fides/ui-build/static/admin/settings/messaging-providers/[key].html +0 -1
  488. fides/ui-build/static/admin/settings/messaging-providers/new.html +0 -1
  489. fides/ui-build/static/admin/settings/messaging-providers.html +0 -1
  490. {ethyca_fides-2.71.1b1.dist-info → ethyca_fides-2.74.0rc1.dist-info}/WHEEL +0 -0
  491. {ethyca_fides-2.71.1b1.dist-info → ethyca_fides-2.74.0rc1.dist-info}/entry_points.txt +0 -0
  492. {ethyca_fides-2.71.1b1.dist-info → ethyca_fides-2.74.0rc1.dist-info}/licenses/LICENSE +0 -0
  493. {ethyca_fides-2.71.1b1.dist-info → ethyca_fides-2.74.0rc1.dist-info}/top_level.txt +0 -0
  494. /fides/ui-build/static/admin/_next/static/{_IxwgneyQjdSaZFEF3Tqu → FZTEUgamBvOhgPWce135w}/_ssgManifest.js +0 -0
  495. /fides/ui-build/static/admin/_next/static/chunks/pages/user-management/{new-629c88e90699369b.js → new-7dce2916cc589c54.js} +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8012],{43376:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/add-systems/manual",function(){return s(33688)}])},33688:function(e,t,s){"use strict";s.r(t);var a=s(24246),r=s(98227),n=s(86677),i=s(27378),o=s(16134),u=s(77213),d=s(77830),l=s(58754),m=s(41337),c=s(57865),h=s(72774),y=s(21103);let b=e=>{let{connector:t}=e;return(0,a.jsxs)(r.xuv,{display:"flex",mb:4,alignItems:"center","data-testid":"header",children:[(0,a.jsx)(m.ZP,{data:t?(0,m.PT)(t):(0,m.Br)("ethyca"),className:"mr-2"}),(0,a.jsxs)(r.X6q,{fontSize:"md",children:["Describe your ",t?t.human_readable:"new"," system"]})]})};t.default=()=>{let{connectorType:e}=(0,n.useRouter)().query,{tabData:t,activeKey:s,onTabChange:m}=(0,y.Z)({isCreate:!0}),f=(0,i.useMemo)(()=>{if(e)return JSON.parse(Array.isArray(e)?e[0]:e)},[e]),x=(0,o.C)(c.gU);return(0,a.jsxs)(u.Z,{title:"Describe your system",children:[(0,a.jsx)(l.Z,{heading:"Add systems",breadcrumbItems:[{title:"Add systems",href:d.xo},{title:"New system"}]}),(0,a.jsx)(b,{connector:f}),x?(0,a.jsx)(h.Z,{}):null,(0,a.jsxs)(r.xuv,{w:{base:"100%",md:"75%"},children:[(0,a.jsx)(r.xvT,{fontSize:"sm",mb:8,children:"Systems are anything that might store or process data in your organization, from a web application, to a database or data warehouse. Describe your system below to register it to the map. You may optionally complete data entry for the system using the additional tabs to navigate the sections."}),(0,a.jsx)(r.A5g,{items:t,activeKey:s,onChange:m})]})]})}}},function(e){e.O(0,[431,454,5277,6344,7245,401,7218,8939,6780,7079,2888,9774,179],function(){return e(e.s=43376)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5822],{87321:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/add-systems/multiple",function(){return t(17035)}])},17035:function(e,s,t){"use strict";t.r(s);var n=t(24246),o=t(98227),d=t(79894),i=t.n(d),r=t(77213),a=t(77830),u=t(58754),l=t(15826);s.default=()=>(0,n.jsxs)(r.Z,{title:"Choose vendors",children:[(0,n.jsx)(u.Z,{heading:"Add systems",breadcrumbItems:[{title:"Add systems",href:a.xo},{title:"Choose vendors"}]}),(0,n.jsx)(o.xuv,{w:{base:"100%",md:"75%"},children:(0,n.jsxs)(o.xvT,{fontSize:"sm",mb:8,children:["Select your vendors below and they will be added as systems to your data map. Fides Compass will automatically populate the system information so that you can quickly configure privacy requests and consent. Add custom systems or unlisted vendors on the ",(0,n.jsx)(i(),{href:a.N5,passHref:!0,legacyBehavior:!0,children:(0,n.jsx)(o.FKJ,{children:"Add a system"})})," ","page."]})}),(0,n.jsx)(l.$,{redirectRoute:a.oG})]})}},function(e){e.O(0,[401,3923,796,2888,9774,179],function(){return e(e.s=87321)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5023],{74245:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/add-systems",function(){return n(5923)}])},69e3:function(e,t,n){"use strict";var s=n(24246),i=n(98227),a=n(91507),r=n.n(a);t.Z=e=>{let{color:t,description:n,title:a,icon:l}=e;return(0,s.jsx)(i.xuv,{borderLeft:"9px solid ".concat(t),borderRadius:"6px",className:r().container,children:(0,s.jsxs)(i.V4A,{className:r().card,"data-testid":"tile-".concat(a),children:[(0,s.jsxs)("div",{className:"mb-1 flex items-center gap-1.5",children:[l,(0,s.jsx)(i.AntTypography.Title,{level:3,children:a})]}),(0,s.jsx)(i.AntTypography.Text,{children:n})]})})}},77867:function(e,t,n){"use strict";var s=n(24246),i=n(98227);t.Z=e=>{let{connected:t,...n}=e,a="red.500";return null==t?a="gray.300":t&&(a="green.500"),(0,s.jsx)(i.xuv,{width:"12px",height:"12px",borderRadius:"6px",backgroundColor:a,...n})}},59301:function(e,t,n){"use strict";var s=n(24246);let{Link:i}=n(98227).AntTypography;t.Z=e=>{let{children:t,...n}=e;return(0,s.jsx)(i,{target:"_blank",rel:"noopener noreferrer",...n,children:t})}},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var s=n(24246),i=n(98227),a=n(88038),r=n.n(a),l=n(86677);n(27378);var o=n(25980),c=n(90867),d=n(42478),u=n(77830),m=()=>{let e=(0,l.useRouter)();return(0,s.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,s.jsxs)(i.xuv,{children:[(0,s.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,s.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,s.jsx)(i.wpx,{onClick:()=>{e.push(u.AD)},children:"Configure"})]}),(0,s.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},h=e=>{let{children:t,title:n,padded:a=!0,mainProps:u}=e,h=(0,o.hz)(),x=(0,l.useRouter)(),g="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,p=!(h.flags.messagingConfiguration&&g),{data:y}=(0,d.JE)(void 0,{skip:p}),{data:f}=(0,c.PW)(void 0,{skip:p}),j=h.flags.messagingConfiguration&&(!y||!f)&&g;return(0,s.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,s.jsxs)(r(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsxs)(i.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[j?(0,s.jsx)(m,{}):null,t]})]})}},58754:function(e,t,n){"use strict";var s=n(24246),i=n(98227),a=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:r=!0,children:l,rightContent:o,style:c,...d}=e;return(0,s.jsxs)("div",{...d,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,s.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(i.lQT,{className:n||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,s.jsx)(a.m,{className:l?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),l]})}},97181:function(e,t,n){"use strict";n.d(t,{d:function(){return c}});var s=n(24246),i=n(98227),a=n(34090),r=n(27378),l=n(46238),o=n(40324);let c=e=>{let{name:t,label:n,labelProps:c,tooltip:d,isRequired:u,layout:m="inline",helperText:h,...x}=e,[g,p,{setValue:y}]=(0,a.U$)(t),f=!!(p.touched&&p.error),[j,v]=(0,r.useState)("");g.value||"tags"!==x.mode&&"multiple"!==x.mode||(g.value=[]),"tags"===x.mode&&"string"==typeof g.value&&(g.value=[g.value]);let b="tags"===x.mode?(e,t)=>e?e.value!==j||g.value.includes(j)?x.optionRender?x.optionRender(e,t):e.label:'Create "'.concat(j,'"'):void 0:x.optionRender||void 0,C=e=>{v(e),x.onSearch&&x.onSearch(e)},w=(e,t)=>{y(e),x.onChange&&x.onChange(e,t)};return"inline"===m?(0,s.jsx)(i.NIc,{isInvalid:f,isRequired:u,children:(0,s.jsxs)(i.rjZ,{templateColumns:n?"1fr 3fr":"1fr",children:[n?(0,s.jsx)(o.__,{htmlFor:x.id||t,...c,children:n}):null,(0,s.jsxs)(i.jqI,{align:"center",children:[(0,s.jsxs)(i.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,s.jsx)(i.WPr,{...g,id:x.id||t,"data-testid":"controlled-select-".concat(g.name),...x,optionRender:b,onSearch:"tags"===x.mode?C:void 0,onChange:w,value:g.value||void 0,status:f?"error":void 0}),h&&(0,s.jsx)(i.Q6r,{children:h}),(0,s.jsx)(o.Bc,{isInvalid:f,message:p.error,fieldName:g.name})]}),(0,s.jsx)(l.b,{label:d,className:f?"mt-2 self-start":void 0})]})]})}):(0,s.jsx)(i.NIc,{isInvalid:f,isRequired:u,children:(0,s.jsxs)(i.gCW,{alignItems:"start",children:[(0,s.jsxs)(i.jqI,{align:"center",children:[n?(0,s.jsx)(o.__,{htmlFor:x.id||t,fontSize:"xs",my:0,mr:1,...c,children:n}):null,(0,s.jsx)(l.b,{label:d})]}),(0,s.jsx)(i.WPr,{...g,id:x.id||t,"data-testid":"controlled-select-".concat(g.name),...x,optionRender:b,onSearch:"tags"===x.mode?C:void 0,onChange:w,value:g.value||void 0,status:f?"error":void 0}),h&&(0,s.jsx)(i.Q6r,{style:{marginTop:0},children:h}),(0,s.jsx)(o.Bc,{isInvalid:f,message:p.error,fieldName:g.name})]})})}},16220:function(e,t,n){"use strict";n.d(t,{V:function(){return a}});var s=n(25980),i=n(77830);let a=()=>({systemOrDatamapRoute:(0,s.hz)().plus?i.oG:i.So})},57899:function(e,t,n){"use strict";var s=n(24246),i=n(98227),a=n(27378);t.Z=e=>{let{handleConfirm:t,isOpen:n,onClose:r,title:l,message:o,confirmButtonText:c="Continue",cancelButtonText:d="Cancel"}=e,u=(0,a.useRef)(null);return(0,s.jsx)(i.aRR,{isOpen:n,leastDestructiveRef:u,onClose:r,children:(0,s.jsx)(i.dhV,{children:(0,s.jsxs)(i._Tf,{alignItems:"center",textAlign:"center",children:[(0,s.jsx)(i.aNP,{marginTop:3}),(0,s.jsx)(i.fYl,{fontSize:"lg",fontWeight:"bold",children:l}),(0,s.jsx)(i.iPF,{pt:0,children:o}),(0,s.jsxs)(i.xoY,{children:[(0,s.jsx)(i.wpx,{ref:u,onClick:r,size:"large",children:d}),(0,s.jsx)(i.wpx,{onClick:()=>t(),type:"primary",size:"large",className:"ml-3","data-testid":"warning-modal-confirm-btn",children:c})]})]})})})}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return c}});var s=n(24246),i=n(98227),a=n(79894),r=n.n(a),l=n(27378);let{Text:o}=i.AntTypography,c=e=>{let{items:t,...n}=e,a=(0,l.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let a=n===t.length-1,l={...e},c=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,s.jsx)(o,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,id:a?"breadcrumb-current-page":void 0,children:l.title})),c)?l.title=(0,s.jsx)(i.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,s.jsx)(r(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,s.jsx)(i.zrq,{items:a,...n})}},42478:function(e,t,n){"use strict";n.d(t,{FU:function(){return c},JE:function(){return i},Ki:function(){return u},SU:function(){return m},W:function(){return h},h9:function(){return a},jc:function(){return s},qt:function(){return o},sn:function(){return d}});let{useGetEmailInviteStatusQuery:s,useGetActiveMessagingProviderQuery:i,useCreateMessagingConfigurationMutation:a,useCreateMessagingConfigurationSecretsMutation:r,useGetMessagingConfigurationDetailsQuery:l,useGetMessagingConfigurationsQuery:o,useGetMessagingConfigurationByKeyQuery:c,useUpdateMessagingConfigurationByKeyMutation:d,useUpdateMessagingConfigurationSecretsByKeyMutation:u,useCreateTestConnectionMessageMutation:m,useDeleteMessagingConfigurationByKeyMutation:h}=n(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,t,n,s)=>{let i=await s({url:"messaging/default/active"});return i.error&&404===i.error.status?{data:null}:i},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},5923:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return eu}});var s=n(24246),i=n(27378),a=n(16134),r=n(77213),l=n(58754),o=n(15677),c=n(98227),d=n(3124),u=n.n(d),m=n(86677),h=n(25980),x=n(14048),g=n(58452);let p=e=>{let{onCancel:t,onConfirm:n,isOpen:i,onClose:a}=e;return(0,s.jsx)(g.Z,{isOpen:i,onClose:a,onCancel:t,isCentered:!0,title:"Upgrade to choose vendors",message:"To choose vendors and have system information auto-populated using Fides Compass, you will need to upgrade Fides. Meanwhile, you can manually add individual systems using the button below.",cancelButtonText:"Add vendors manually",continueButtonText:"Upgrade",onConfirm:n})};var y=n(77830),f=n(65735),j=n(69e3),v=n(77867),b=n(32885),C=e=>{var t;let{onClick:n}=e,{plus:i,dataFlowScanning:r}=(0,h.hz)(),l=(0,a.C)(b.bw),o=null!==(t=null==l?void 0:l.cluster_health)&&void 0!==t?t:"unknown",d=o===f.wW.HEALTHY;if(!i)return null;let m=null;return r?d||(m="Your cluster appears not to be healthy. Its status is ".concat(o,".")):m="The data flow scanner is not enabled, please check your configuration.",(0,s.jsxs)(c.xuv,{position:"relative",children:[(0,s.jsx)(c.esZ,{title:m,popupVisible:!!m,children:(0,s.jsx)("button",{disabled:!r||!d,type:"button","aria-label":"Data flow scan",className:"text-left",onClick:n,children:(0,s.jsx)(j.Z,{title:"Data flow scan",color:u().FIDESUI_NECTAR,description:"Automatically discover new systems in your Kubernetes infrastructure",icon:(0,s.jsx)(x.pt,{boxSize:6}),"data-testid":"data-flow-scan-btn"})})}),r?(0,s.jsx)(v.Z,{connected:d,title:d?"Cluster is connected and healthy":"Cluster is ".concat(o),position:"absolute",right:-1,top:-1,"data-testid":"cluster-health-indicator"}):null]})},w=n(38764);let T=e=>{let{children:t}=e;return(0,s.jsx)(c.X6q,{as:"h4",size:"xs",fontWeight:"semibold",color:"gray.600",textTransform:"uppercase",mb:4,children:t})};var S=()=>{let e=(0,a.T)(),t=(0,m.useRouter)(),{isOpen:n,onClose:i,onOpen:r}=(0,c.qY0)(),{dictionaryService:l}=(0,h.hz)();return(0,s.jsxs)(c.Kqy,{spacing:9,"data-testid":"add-systems",children:[(0,s.jsxs)(c.Kqy,{spacing:6,maxWidth:"600px",children:[(0,s.jsx)(c.X6q,{as:"h3",size:"md",fontWeight:"semibold",children:"Fides helps you map your systems to manage your privacy"}),(0,s.jsx)(c.xvT,{children:"In Fides, systems describe any services that store or process data for your organization, including third-party APIs, web applications, databases, and data warehouses."}),(0,s.jsx)(c.xvT,{children:"Fides can automatically discover new systems in your AWS infrastructure or Okta accounts. For services not covered by the automated scanners or analog processes, you may also manually add new systems to your map."})]}),(0,s.jsx)(p,{isOpen:n,onConfirm:()=>{window.open("https://ethyca.com/speak-with-us")},onCancel:()=>{t.push(y.N5)},onClose:i}),(0,s.jsxs)(c.xuv,{"data-testid":"manual-options",children:[(0,s.jsx)(T,{children:"Manually add systems"}),(0,s.jsxs)(c.MIq,{columns:{base:1,md:2,xl:3},spacing:"4",children:[(0,s.jsx)("button",{className:"flex flex-col text-left",type:"button","aria-label":"Add a system",onClick:()=>{e((0,o.CQ)(w.D.MANUAL)),t.push(y.N5)},"data-testid":"manual-btn",children:(0,s.jsx)(j.Z,{title:"Add a system",color:u().FIDESUI_SANDSTONE,icon:(0,s.jsx)(x.P$,{boxSize:6}),description:"Manually add a system for services not covered by automated scanners"})}),(0,s.jsx)("button",{className:"flex flex-col text-left",type:"button","aria-label":"Add multiple systems",onClick:()=>{l?(e((0,o.CQ)(w.D.MANUAL)),t.push(y.bJ)):r()},"data-testid":"multiple-btn",children:(0,s.jsx)(j.Z,{title:"Add multiple systems",color:u().FIDESUI_OLIVE,icon:(0,s.jsx)(x.P$,{boxSize:6}),description:"Choose vendors and automatically populate system details"})})]})]}),(0,s.jsxs)(c.xuv,{"data-testid":"automated-options",children:[(0,s.jsx)(T,{children:"Automated infrastructure scanning"}),(0,s.jsxs)(c.MIq,{columns:{base:1,md:2,xl:3},spacing:"4",children:[(0,s.jsx)("button",{className:"flex flex-col text-left",type:"button","aria-label":"Scan your infrastructure (AWS)",onClick:()=>{e((0,o.CQ)(f.GC.AWS)),e((0,o.sz)())},"data-testid":"aws-btn",children:(0,s.jsx)(j.Z,{title:"Scan your infrastructure (AWS)",color:u().FIDESUI_TERRACOTTA,description:"Automatically discover new systems in your AWS infrastructure",icon:(0,s.jsx)(x.bj,{boxSize:6})})}),(0,s.jsx)("button",{className:"flex flex-col text-left",type:"button","aria-label":"Scan your Sign On Provider (Okta)",onClick:()=>{e((0,o.CQ)(f.GC.OKTA)),e((0,o.sz)())},"data-testid":"okta-btn",children:(0,s.jsx)(j.Z,{title:"Scan your Sign On Provider (Okta)",color:u().FIDESUI_MINOS,description:"Automatically discover new systems in your Okta infrastructure",icon:(0,s.jsx)(x.tb,{boxSize:6})})}),(0,s.jsx)(C,{onClick:()=>{e((0,o.sz)()),e((0,o.CQ)(w.D.DATA_FLOW))}})]})]})]})},k=n(34090),_=n(55484),A=n(40324),q=n(812),z=n(17245),I=n(97181),O=n(70788),N=n(28416);let D=e=>"system_type"in e,{useGenerateMutation:F}=n(78780).u.injectEndpoints({endpoints:e=>({generate:e.mutation({query:e=>({url:"generate",method:"POST",body:e})})})});var W=n(59301);let M=e=>{let{message:t}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.izJ,{}),(0,s.jsx)(c.W20,{maxH:"50vh",overflow:"auto",children:(0,s.jsx)(c.xvT,{as:"pre","data-testid":"error-log",children:t})}),(0,s.jsx)(c.izJ,{})]})};var R=e=>{let{error:t,scanType:n=""}=e;return(0,s.jsxs)(c.Kqy,{"data-testid":"scanner-error",spacing:"4",children:[(0,s.jsxs)(c.Ugi,{children:[(0,s.jsx)(c.j8w,{color:"error",children:"Error"}),(0,s.jsx)(c.X6q,{color:"red.500",size:"lg",children:"Failed to Scan"})]}),403===t.status&&n===f.GC.AWS?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.xvT,{"data-testid":"permission-msg",children:"Fides was unable to scan AWS. It appears that the credentials were valid to login but they did not have adequate permission to complete the scan."}),(0,s.jsxs)(c.xvT,{children:["To fix this issue, double check that you have granted"," ",(0,s.jsx)(W.Z,{href:N.zu,children:"the required permissions"})," ","to these credentials as part of your IAM policy. If you need more help in configuring IAM policies, you can read about them in the"," ",(0,s.jsx)(W.Z,{href:"https://docs.aws.amazon.com/IAM/latest/UserGuide/introduction_access-management.html",children:"AWS documentation"}),"."]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.xvT,{"data-testid":"generic-msg",children:"Fides was unable to scan your infrastructure. Please ensure your credentials are accurate and inspect the error log below for more details."}),(0,s.jsx)(M,{message:t.message}),(0,s.jsxs)(c.xvT,{children:["If this error does not clarify why scanning failed, please"," ",(0,s.jsx)(W.Z,{href:N.we,children:"create a new issue"}),"."]})]})]})},E=n(57899);let K=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.xvT,{color:"gray.500",mb:3,children:"Warning, you are about to cancel the scan!"}),(0,s.jsx)(c.xvT,{color:"gray.500",mb:3,children:"If you cancel scanning, the scanner will stop and no systems will be returned."}),(0,s.jsx)(c.xvT,{color:"gray.500",mb:3,children:"Are you sure you want to cancel?"})]});var Z=e=>{let{title:t,onClose:n}=e,{isOpen:i,onOpen:a,onClose:r}=(0,c.qY0)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.Kqy,{spacing:8,"data-testid":"scanner-loading",children:[(0,s.jsxs)(c.Ugi,{children:[(0,s.jsx)(c.xvT,{alignItems:"center",as:"b",color:"gray.900",display:"flex",fontSize:"xl",children:t}),(0,s.jsx)(c.PZ7,{"data-testid":"close-scan-in-progress",display:"inline-block",onClick:a})]}),(0,s.jsx)(c.Kqy,{alignItems:"center",children:(0,s.jsx)(c.$jN,{thickness:"4px",speed:"0.65s",emptyColor:"gray.200",color:"green.300",size:"xl"})})]}),(0,s.jsx)(E.Z,{isOpen:i,onClose:r,handleConfirm:n,title:"Cancel Scan!",message:K,confirmButtonText:"Yes, Cancel",cancelButtonText:"No, Continue Scanning"})]})};let U={aws_access_key_id:"",aws_secret_access_key:"",aws_session_token:"",region_name:""},B=_.Ry().shape({aws_access_key_id:_.Z_().required().trim().matches(/^\w+$/,"Cannot contain spaces or special characters").label("Access Key ID"),aws_secret_access_key:_.Z_().required().trim().matches(/^[^\s]+$/,"Cannot contain spaces").label("Secret"),aws_session_token:_.Z_().optional().trim().matches(/^[^\s]+$/,"Cannot contain spaces").label("Session Token (for temporary credentials)"),region_name:_.Z_().required().label("Default Region")});var P=()=>{let e=(0,a.C)(o.De),t=(0,a.T)(),{successAlert:n}=(0,z.VY)(),[r,l]=(0,i.useState)(),d=e=>{let s=(null!=e?e:[]).filter(D);t((0,o.un)(s)),t((0,o.sz)()),n("Your scan was successfully completed, with ".concat(s.length," new systems detected!"),"Scan Successfully Completed",{isClosable:!0})},u=e=>{l((0,q.nU)(e,{status:500,message:"Our system encountered a problem while connecting to AWS."}))},m=()=>{t((0,o.sz)(2))},[h,{isLoading:x}]=F(),g=async t=>{l(void 0);let n=await h({organization_key:e,generate:{config:t,target:f.GC.AWS,type:f.j.SYSTEMS}});(0,q.D4)(n)?u(n.error):d(n.data.generate_results)};return(0,s.jsx)(k.J9,{initialValues:U,validationSchema:B,onSubmit:g,children:e=>{let{isValid:t,isSubmitting:n,dirty:i}=e;return(0,s.jsx)(k.l0,{"data-testid":"authenticate-aws-form",children:(0,s.jsxs)(c.Kqy,{spacing:10,children:[n?(0,s.jsx)(Z,{title:"System scanning in progress",onClose:m}):null,r?(0,s.jsx)(R,{error:r,scanType:"aws"}):null,n||r?null:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.xuv,{children:[(0,s.jsx)(O.m,{className:"mb-4",items:[{title:"Add systems",href:"",onClick:e=>{e.preventDefault(),m()}},{title:"Authenticate AWS Scanner"}]}),(0,s.jsx)(c.xvT,{children:"To use the scanner to inventory systems in AWS, you must first authenticate to your AWS cloud by providing the following information:"})]}),(0,s.jsxs)(c.Kqy,{children:[(0,s.jsx)(A.j0,{name:"aws_access_key_id",label:"Access Key ID",tooltip:"The Access Key ID created by the cloud hosting provider.",isRequired:!0}),(0,s.jsx)(A.j0,{type:"password",name:"aws_secret_access_key",label:"Secret",tooltip:"The secret associated with the Access Key ID used for authentication.",isRequired:!0}),(0,s.jsx)(A.j0,{type:"password",name:"aws_session_token",label:"Session Token",tooltip:"The session token when using temporary credentials."}),(0,s.jsx)(I.d,{name:"region_name",label:"AWS Region",tooltip:"The geographic region of the cloud hosting provider you would like to scan.",options:N.xO,isRequired:!0,placeholder:"Select a region"})]})]}),n?null:(0,s.jsxs)(c.Ugi,{children:[(0,s.jsx)(c.wpx,{onClick:m,children:"Cancel"}),(0,s.jsx)(c.wpx,{htmlType:"submit",type:"primary",disabled:!i||!t,loading:x,"data-testid":"submit-btn",children:"Save and continue"})]})]})})}})};let Y={orgUrl:"",token:""},L=_.Ry().shape({orgUrl:_.Z_().required().trim().url().label("URL"),token:_.Z_().required().trim().matches(/^[^\s]+$/,"Cannot contain spaces").label("Token")});var X=()=>{let e=(0,a.C)(o.De),t=(0,a.T)(),{successAlert:n}=(0,z.VY)(),[r,l]=(0,i.useState)(),d=e=>{let s=(null!=e?e:[]).filter(D);t((0,o.un)(s)),t((0,o.sz)()),n("Your scan was successfully completed, with ".concat(s.length," new systems detected!"),"Scan Successfully Completed",{isClosable:!0})},u=e=>{l((0,q.nU)(e,{status:500,message:"Our system encountered a problem while connecting to Okta."}))},m=()=>{t((0,o.sz)(2))},[h,{isLoading:x}]=F(),g=async t=>{l(void 0);let n=await h({organization_key:e,generate:{config:t,target:f.GC.OKTA,type:f.j.SYSTEMS}});(0,q.D4)(n)?u(n.error):d(n.data.generate_results)};return(0,s.jsx)(k.J9,{initialValues:Y,validationSchema:L,onSubmit:g,children:e=>{let{isValid:t,isSubmitting:n,dirty:i}=e;return(0,s.jsx)(k.l0,{"data-testid":"authenticate-okta-form",children:(0,s.jsxs)(c.Kqy,{spacing:10,children:[n?(0,s.jsx)(Z,{title:"System scanning in progress",onClose:m}):null,r?(0,s.jsx)(R,{error:r}):null,n||r?null:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.xuv,{children:[(0,s.jsx)(O.m,{className:"mb-4",items:[{title:"Add systems",href:"",onClick:e=>{e.preventDefault(),m()}},{title:"Authenticate Okta Scanner"}]}),(0,s.jsx)(c.xvT,{children:"To use the scanner to inventory systems in Okta, you must first authenticate to your Okta account by providing the following information:"})]}),(0,s.jsxs)(c.Kqy,{children:[(0,s.jsx)(A.j0,{name:"orgUrl",label:"Domain",tooltip:"The URL for your organization's account on Okta"}),(0,s.jsx)(A.j0,{name:"token",label:"Okta token",type:"password",tooltip:"The token generated by Okta for your account."})]})]}),n?null:(0,s.jsxs)(c.Ugi,{children:[(0,s.jsx)(c.wpx,{onClick:m,children:"Cancel"}),(0,s.jsx)(c.wpx,{htmlType:"submit",type:"primary",disabled:!i||!t,loading:x,"data-testid":"submit-btn",children:"Save and continue"})]})]})})}})},J=n(46628),$=n(31883),V=()=>{let e=(0,a.T)(),t=(0,c.pmc)(),[n]=(0,b.J9)(),[r,{data:l}]=(0,b.KW)(),[d,u]=(0,i.useState)(),[m,h]=(0,i.useState)(!1),x=e=>{u((0,q.nU)(e,{status:500,message:"Our system encountered a problem while scanning your infrastructure."}))};(0,i.useEffect)(()=>{(async()=>{let{error:e}=await n();h(!(e&&(0,$.Bw)(e)&&404===e.status));let t=await r({classify:!0});(0,q.D4)(t)&&x(t.error)})()},[r,n]),(0,i.useEffect)(()=>{(async()=>{if(l){let{data:s}=await n(),i=m?(null==s?void 0:s.added_systems)||[]:l.systems;t((0,J.t5)("Your scan was successfully completed, with ".concat(i.length," new systems detected!"))),e((0,o.un)(i)),e((0,o.sz)())}})()},[l,t,e,m,n]);let g=()=>{e((0,o.sz)(2))};return d?(0,s.jsxs)(c.Kqy,{children:[(0,s.jsx)(R,{error:d}),(0,s.jsx)(c.xuv,{children:(0,s.jsx)(c.wpx,{onClick:g,"data-testid":"cancel-btn",children:"Cancel"})})]}):(0,s.jsx)(Z,{title:"Infrastructure scanning in progress",onClose:g})},G=()=>{let e=(0,a.C)(o.Ll);return(0,s.jsxs)(c.xuv,{w:"40%",children:[e===f.GC.AWS?(0,s.jsx)(P,{}):null,e===f.GC.OKTA?(0,s.jsx)(X,{}):null,e===w.D.DATA_FLOW?(0,s.jsx)(V,{}):null]})},Q=n(83265),H=n(46238);let ee=()=>{var e,t;let n=(0,a.T)(),s=e=>{n((0,o.nD)(e)),n((0,o.sz)())},[r]=(0,Q.vz)(),[l]=(0,Q.$f)(),{data:d,isLoading:u}=(0,Q.GQ)(Q.Av),[m,h]=(0,i.useState)(!1);(0,i.useEffect)(()=>{!u&&!m&&(null==d?void 0:d.name)&&(null==d?void 0:d.description)&&n((0,o.sz)())},[u,d,n,m]);let x=(0,c.pmc)();return(0,k.TA)({initialValues:{name:null!==(e=null==d?void 0:d.name)&&void 0!==e?e:"",description:null!==(t=null==d?void 0:d.description)&&void 0!==t?t:""},onSubmit:async e=>{var t,n,i;h(!0);let a={name:null!==(t=e.name)&&void 0!==t?t:null==d?void 0:d.name,description:null!==(n=e.description)&&void 0!==n?n:null==d?void 0:d.description,fides_key:null!==(i=null==d?void 0:d.fides_key)&&void 0!==i?i:Q.Av,organization_fides_key:Q.Av};if(d){let e=await l(a);if((0,q.D4)(e)){x({status:"error",description:(0,q.e$)(e.error)});return}x.closeAll(),s(a)}else{let e=await r(a);if((0,q.D4)(e)){x({status:"error",description:(0,q.e$)(e.error)});return}x.closeAll(),s(a)}},enableReinitialize:!0,validate:e=>{let t={};return e.name||(t.name="Organization name is required"),e.description||(t.description="Organization description is required"),t}})};var et=()=>{let{errors:e,handleBlur:t,handleChange:n,handleSubmit:i,touched:a,values:r,isSubmitting:l}=ee();return(0,s.jsx)(c.m$N.form,{onSubmit:i,w:"40%","data-testid":"organization-info-form",children:(0,s.jsxs)(c.Kqy,{spacing:10,children:[(0,s.jsx)(c.X6q,{as:"h3",size:"lg",children:"Create your Organization"}),(0,s.jsx)("div",{children:"Provide your organization information. This information is used to configure your organization in Fides for data map reporting purposes."}),(0,s.jsx)(c.Kqy,{children:(0,s.jsxs)(c.NIc,{children:[(0,s.jsxs)(c.Kqy,{direction:"row",mb:5,justifyContent:"flex-end",children:[(0,s.jsx)(c.lXp,{w:"100%",children:"Organization name"}),(0,s.jsx)(c.IIB,{type:"text",id:"name",name:"name",focusBorderColor:"gray.700",onChange:n,onBlur:t,value:r.name,isInvalid:a.name&&!!e.name,minW:"65%",w:"65%","data-testid":"input-name"}),(0,s.jsx)(H.b,{label:"The legal name of your organization"})]}),(0,s.jsxs)(c.Kqy,{direction:"row",justifyContent:"flex-end",children:[(0,s.jsx)(c.lXp,{w:"100%",children:"Description"}),(0,s.jsx)(c.IIB,{type:"text",id:"description",name:"description",focusBorderColor:"gray.700",onChange:n,onBlur:t,value:r.description,isInvalid:a.description&&!!e.description,minW:"65%",w:"65%","data-testid":"input-description"}),(0,s.jsx)(H.b,{label:'An explanation of the type of organization and primary activity. For example "Acme Inc. is an e-commerce company that sells scarves."'})]})]})}),(0,s.jsx)(c.wpx,{type:"primary",htmlType:"submit",disabled:!r.name||!r.description,loading:l,"data-testid":"submit-btn",children:"Save and continue"})]})})},en=e=>{let{allColumns:t,selectedColumns:n,onChange:a}=e,r=(0,i.useMemo)(()=>{let e=new Map;return t.forEach(t=>e.set(t.name,!!n.find(e=>e.name===t.name))),e},[t,n]),l=()=>{r.forEach((e,t)=>r.set(t,!1)),a([])},o=e=>{var n;let s=null!==(n=r.get(e.name))&&void 0!==n&&n;r.set(e.name,!s),a(t.filter(e=>r.get(e.name)))};return(0,s.jsx)(c.v2r,{children:e=>{let{onClose:i}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.j2t,{as:c.wpx,icon:(0,s.jsx)(c.mCO,{}),fontWeight:"normal","data-testid":"column-dropdown",children:"Columns"}),(0,s.jsx)(c.qyq,{children:(0,s.jsxs)(c.xuv,{px:2,children:[(0,s.jsxs)(c.xuv,{display:"flex",justifyContent:"space-between",mb:2,children:[(0,s.jsx)(c.wpx,{size:"small",onClick:l,"data-testid":"column-clear-btn",children:"Clear"}),(0,s.jsx)(c.wpx,{type:"primary",size:"small",onClick:i,"data-testid":"column-done-btn",children:"Done"})]}),(0,s.jsx)(c.cOn,{colorScheme:"complimentary",children:(0,s.jsx)(c.Kqy,{children:t.map(e=>{let t=n.filter(t=>t.name===e.name).length>0;return(0,s.jsx)(c.XZJ,{id:e.name,_hover:{bg:"gray.100"},isChecked:t,onChange:()=>o(e),"data-testid":"checkbox-".concat(e.name),children:e.name},e.name)})})})]})})]})}})},es=n(16220);let ei=(e,t)=>t.split(".").reduce((e,t)=>e?e[t]:void 0,e),ea=e=>{let{system:t,attribute:n}=e;if("name"===n)return(0,s.jsx)("label",{htmlFor:"checkbox-".concat(t.fides_key),children:t.name});if("fidesctl_meta.resource_id"===n){var i,a;return(0,s.jsx)(c.xuv,{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",title:(null===(i=t.fidesctl_meta)||void 0===i?void 0:i.resource_id)||"",children:null===(a=t.fidesctl_meta)||void 0===a?void 0:a.resource_id})}return(0,s.jsx)(s.Fragment,{children:ei(t,n)})},er=e=>{let{allSystems:t,checked:n,onChange:i,columns:a,tableHeadProps:r}=e,l=e=>{n.indexOf(e)>=0?i(n.filter(t=>t.fides_key!==e.fides_key)):i([...n,e])},o=t.length===n.length;return 0===a.length?(0,s.jsx)(c.xvT,{children:"No columns selected to display"}):(0,s.jsxs)(c.iA_,{size:"sm",sx:{tableLayout:"fixed"},children:[(0,s.jsx)(c.hrZ,{...r,children:(0,s.jsxs)(c.Tr,{children:[(0,s.jsx)(c.Th,{width:"15px",children:(0,s.jsx)(c.XZJ,{colorScheme:"complimentary",title:"Select All",isChecked:o,onChange:e=>{e.target.checked?i(t):i([])},"data-testid":"select-all"})}),a.map(e=>(0,s.jsx)(c.Th,{children:e.name},e.attribute))]})}),(0,s.jsx)(c.p3B,{children:t.map(e=>(0,s.jsxs)(c.Tr,{children:[(0,s.jsx)(c.Td,{children:(0,s.jsx)(c.XZJ,{colorScheme:"complimentary",value:e.fides_key,isChecked:n.indexOf(e)>=0,onChange:()=>l(e),"data-testid":"checkbox-".concat(e.fides_key)})}),a.map(t=>(0,s.jsx)(c.Td,{children:(0,s.jsx)(ea,{system:e,attribute:t.attribute})},t.attribute))]},e.fides_key))})]})};var el=n(1315);let eo=[{name:"Name",attribute:"name"},{name:"System type",attribute:"system_type"},{name:"Resource ID",attribute:"fidesctl_meta.resource_id"}];var ec=()=>{let e=(0,a.C)(o.j4),t=(0,a.T)(),n=(0,m.useRouter)(),{systemOrDatamapRoute:r}=(0,es.V)(),{isOpen:l,onOpen:d,onClose:u}=(0,c.qY0)(),[h]=(0,el.dB)(),[x,g]=(0,i.useState)(e),[p,y]=(0,i.useState)(eo),{handleError:f}=(0,z.HK)(),j=e=>{n.push(e).then(()=>{t((0,o.mc)())})},v=async()=>{let e=await h(x);return(0,q.D4)(e)?f(e.error):j(r)},b=()=>{t((0,o.sz)(2))},C=(0,s.jsxs)(c.xvT,{color:"gray.500",mb:3,children:["You’re registering ",x.length," of ",e.length," systems available. Do you want to continue with registration or cancel and register all systems now?"]});return(0,s.jsxs)(c.xuv,{maxW:"full",children:[(0,s.jsxs)(c.Kqy,{spacing:10,"data-testid":"scan-results",children:[(0,s.jsx)(O.m,{className:"mb-4",items:[{title:"Add systems",href:"",onClick:e=>{e.preventDefault(),b()}},{title:"Authenticate"},{title:"Scan results"}]}),0===e.length?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.xvT,{"data-testid":"no-results",children:"No results were found for your infrastructure scan."}),(0,s.jsx)(c.Ugi,{children:(0,s.jsx)(c.wpx,{onClick:b,"data-testid":"back-btn",children:"Back"})})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.xuv,{children:[(0,s.jsx)(c.xvT,{children:"Below are the results of your infrastructure scan. To continue, select the systems you would like registered in your data map and reports."}),(0,s.jsx)(c.xuv,{display:"flex",justifyContent:"end",children:(0,s.jsx)(en,{allColumns:eo,selectedColumns:p,onChange:y})})]}),(0,s.jsx)(er,{allSystems:e,checked:x,onChange:g,columns:p}),(0,s.jsxs)(c.Ugi,{children:[(0,s.jsx)(c.wpx,{onClick:b,children:"Back"}),(0,s.jsx)(c.wpx,{onClick:()=>{e.length>x.length?d():v()},type:"primary",disabled:0===x.length,"data-testid":"register-btn",children:"Register selected systems"})]})]})]}),(0,s.jsx)(E.Z,{title:"Warning",message:C,handleConfirm:v,isOpen:l,onClose:u})]})},ed=()=>{let e=(0,a.C)(o.xx);return(0,s.jsx)(c.Kqy,{direction:["column","row"],bg:"white",children:(0,s.jsxs)(c.xuv,{display:"flex",justifyContent:"flex-start",w:"100%",children:[1===e?(0,s.jsx)(et,{}):null,2===e?(0,s.jsx)(S,{}):null,3===e?(0,s.jsx)(G,{}):null,4===e?(0,s.jsx)(c.xuv,{pr:10,children:(0,s.jsx)(ec,{})}):null]})})},eu=()=>{let e=(0,a.T)();return(0,i.useEffect)(()=>{e((0,o.sz)(2))},[e]),(0,s.jsxs)(r.Z,{title:"Add systems",children:[(0,s.jsx)(l.Z,{heading:"Add systems"}),(0,s.jsx)(ed,{})]})}},31883:function(e,t,n){"use strict";n.d(t,{Bw:function(){return s.Bw},D4:function(){return s.D4}});var s=n(19043)},91507:function(e){e.exports={container:"CalloutNavCard_container__DXPJb",card:"CalloutNavCard_card__q_XX6"}}},function(e){e.O(0,[431,7245,2888,9774,179],function(){return e(e.s=74245)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4290],{73906:function(e,n,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/configure/add-vendors",function(){return o(32805)}])},32805:function(e,n,o){"use strict";o.r(n);var s=o(24246),t=o(96306),r=o(77213),a=o(77830),i=o(58754),c=o(15826);let{Text:d}=t.AntTypography;n.default=()=>(0,s.jsxs)(r.Z,{title:"Choose vendors",children:[(0,s.jsx)(i.Z,{heading:"Vendors",breadcrumbItems:[{title:"All vendors",href:a.zo},{title:"Choose vendors"}],children:(0,s.jsx)(d,{className:"block w-1/2",children:"Select your vendors below and they will be added as systems to your data map. Fides Compass will automatically populate the system information so that you can quickly configure privacy requests and consent."})}),(0,s.jsx)(c.$,{redirectRoute:a.zo})]})}},function(e){e.O(0,[401,3923,796,2888,9774,179],function(){return e(e.s=73906)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4290],{73906:function(e,n,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/configure/add-vendors",function(){return o(32805)}])},32805:function(e,n,o){"use strict";o.r(n);var s=o(24246),t=o(98227),r=o(77213),a=o(77830),i=o(58754),c=o(15826);let{Text:d}=t.AntTypography;n.default=()=>(0,s.jsxs)(r.Z,{title:"Choose vendors",children:[(0,s.jsx)(i.Z,{heading:"Vendors",breadcrumbItems:[{title:"All vendors",href:a.zo},{title:"Choose vendors"}],children:(0,s.jsx)(d,{className:"block w-1/2",children:"Select your vendors below and they will be added as systems to your data map. Fides Compass will automatically populate the system information so that you can quickly configure privacy requests and consent."})}),(0,s.jsx)(c.$,{redirectRoute:a.zo})]})}},function(e){e.O(0,[401,3923,796,2888,9774,179],function(){return e(e.s=73906)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3709],{54727:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/configure",function(){return n(47672)}])},77213:function(e,s,n){"use strict";n.d(s,{Z:function(){return p}});var t=n(24246),i=n(96306),a=n(88038),r=n.n(a),l=n(86677);n(27378);var o=n(25980),c=n(90867),u=n(42478),d=n(77830),g=()=>{let e=(0,l.useRouter)();return(0,t.jsx)(i.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)(i.xuv,{children:[(0,t.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,t.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,t.jsx)(i.wpx,{onClick:()=>{e.push(d.AD)},children:"Configure"})]}),(0,t.jsxs)(i.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:s,title:n,padded:a=!0,mainProps:d}=e,p=(0,o.hz)(),x=(0,l.useRouter)(),h="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,f=!(p.flags.messagingConfiguration&&h),{data:m}=(0,u.JE)(void 0,{skip:f}),{data:j}=(0,c.PW)(void 0,{skip:f}),C=p.flags.messagingConfiguration&&(!m||!j)&&h;return(0,t.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,t.jsxs)(r(),{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)(i.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[C?(0,t.jsx)(g,{}):null,s]})]})}},58754:function(e,s,n){"use strict";var t=n(24246),i=n(96306),a=n(70788);s.Z=e=>{let{heading:s,breadcrumbItems:n,isSticky:r=!0,children:l,rightContent:o,style:c,...u}=e;return(0,t.jsxs)("div",{...u,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,t.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof s?(0,t.jsx)(i.lQT,{className:n||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:s}):s,o&&(0,t.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,t.jsx)(a.m,{className:l?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),l]})}},70788:function(e,s,n){"use strict";n.d(s,{m:function(){return c}});var t=n(24246),i=n(96306),a=n(79894),r=n.n(a),l=n(27378);let{Text:o}=i.AntTypography,c=e=>{let{items:s,...n}=e,a=(0,l.useMemo)(()=>null==s?void 0:s.map((e,n)=>{let a=n===s.length-1,l={...e},c=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,t.jsx)(o,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,id:a?"breadcrumb-current-page":void 0,children:l.title})),c)?l.title=(0,t.jsx)(i.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,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,t.jsx)(r(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[s]);return(0,t.jsx)(i.zrq,{items:a,...n})}},6675:function(e,s,n){"use strict";n.d(s,{ZS:function(){return l},a4:function(){return a}});var t=n(3228);let i=n(78780).u.injectEndpoints({endpoints:e=>({getPurposes:e.query({query:()=>"purposes"})})}),{useGetPurposesQuery:a}=i,r={purposes:{},special_purposes:{}},l=(0,t.P1)(i.endpoints.getPurposes.select(),e=>{let{data:s}=e;return s||r})},48347:function(e,s,n){"use strict";n.d(s,{W:function(){return o},m:function(){return c}});var t=n(24246),i=n(96306),a=n(32885);let{Text:r,Title:l}=i.AntTypography,o=()=>{let{isOpen:e,onOpen:s,onClose:n}=(0,i.qY0)();return{isOpen:e,onOpen:s,onClose:n}},c=e=>{let{isOpen:s,onClose:n,fidesKey:o}=e,{data:c,isLoading:u}=(0,a.ho)(o),d=(e,s)=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l,{level:5,children:e}),(null==s?void 0:s.length)?(0,t.jsx)("div",{children:(0,t.jsx)(i.vyj,{size:[0,2],wrap:!0,children:null==s?void 0:s.map(e=>(0,t.jsx)(i.j8w,{children:e},e))})}):(0,t.jsxs)(r,{italic:!0,children:["no known ",e.toLowerCase()]})]});return(0,t.jsxs)(i.u_l,{isOpen:s,onClose:n,size:"xxl",returnFocusOnClose:!1,isCentered:!0,children:[(0,t.jsx)(i.ZAr,{}),(0,t.jsxs)(i.hzk,{maxWidth:"800px",children:[(0,t.jsx)(i.xBx,{children:c?null==c?void 0:c.name:"Vendor"}),(0,t.jsx)(i.fef,{children:u?(0,t.jsx)(i.jqI,{className:"h-80 w-full",align:"center",justify:"center",children:(0,t.jsx)(i.$jN,{})}):!!c&&(0,t.jsxs)(i.AntTypography,{children:[(0,t.jsx)(l,{level:5,children:"Purposes"}),Object.entries(c.purposes||{}).length>0?(0,t.jsx)(i.UQy,{allowMultiple:!0,children:Object.entries(c.purposes).map((e,s)=>{let[n]=e;return(0,t.jsx)(i.Qdk,{children:e=>{let{isExpanded:s}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(i.KFZ,{backgroundColor:s?"gray.50":"unset",children:[(0,t.jsx)(i.xuv,{flex:"1",textAlign:"left",children:n}),(0,t.jsx)(i.XEm,{})]}),(0,t.jsxs)(i.Hk3,{backgroundColor:"gray.50",children:[(0,t.jsx)(i.jqI,{className:"my-4",vertical:!0,children:d("Data uses",c.purposes[n].data_uses)}),(0,t.jsx)(i.jqI,{className:"my-4",vertical:!0,children:d("Legal basis",c.purposes[n].legal_bases)})]})]})}},s)})}):(0,t.jsx)(r,{italic:!0,children:"no known purposes"}),(0,t.jsx)("div",{className:"my-4",children:d("Features",c.features)}),(0,t.jsx)("div",{className:"my-4",children:d("Data categories",c.data_categories)})]})}),(0,t.jsxs)(i.mzw,{children:[(0,t.jsx)(i.wpx,{size:"small",onClick:n,children:"Close"}),(0,t.jsx)(i.LZC,{})]})]})]})}},42478:function(e,s,n){"use strict";n.d(s,{FU:function(){return c},JE:function(){return i},Ki:function(){return d},SU:function(){return g},W:function(){return p},h9:function(){return a},jc:function(){return t},qt:function(){return o},sn:function(){return u}});let{useGetEmailInviteStatusQuery:t,useGetActiveMessagingProviderQuery:i,useCreateMessagingConfigurationMutation:a,useCreateMessagingConfigurationSecretsMutation:r,useGetMessagingConfigurationDetailsQuery:l,useGetMessagingConfigurationsQuery:o,useGetMessagingConfigurationByKeyQuery:c,useUpdateMessagingConfigurationByKeyMutation:u,useUpdateMessagingConfigurationSecretsByKeyMutation:d,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:p}=n(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,s,n,t)=>{let i=await t({url:"messaging/default/active"});return i.error&&404===i.error.status?{data:null}:i},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},47672:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return P}});var t=n(24246),i=n(96306),a=n(27378),r=n(77213),l=n(58754),o=n(92222),c=n(59003),u=n(25980),d=n(47935),g=n(86677);let p=(e,s)=>{let n=e.filter(e=>e.isChecked);return n.length>0?"".concat(s,"=").concat(n.map(e=>e.value).join("&".concat(s,"="))):void 0},x=e=>{let{value:s,displayText:n,isChecked:a,onCheckboxChange:r}=e;return(0,t.jsx)(i.XZJ,{value:s,height:"20px",mb:"25px",isChecked:a,onChange:e=>{let{target:n}=e;r(s,n.checked)},_focusWithin:{bg:"gray.100"},colorScheme:"complimentary",children:(0,t.jsx)(i.xvT,{fontSize:"sm",lineHeight:5,textOverflow:"ellipsis",overflow:"hidden",children:n})},s)},h=e=>{let{options:s,header:n,onCheckboxChange:r,columns:l=3,numDefaultOptions:o=15}=e,[c,u]=(0,a.useState)(!1),d=c?s:s.slice(0,o),g=s.length>o;return(0,t.jsxs)(i.Qdk,{border:"0px",padding:"12px 8px 8px 12px",children:[(0,t.jsx)(i.X6q,{height:"56px",children:(0,t.jsxs)(i.KFZ,{height:"100%",children:[(0,t.jsx)(i.xuv,{flex:"1",alignItems:"center",justifyContent:"center",textAlign:"left",fontWeight:600,children:n}),(0,t.jsx)(i.XEm,{})]})}),(0,t.jsxs)(i.Hk3,{id:"panel-".concat(n),children:[(0,t.jsx)(i.MIq,{columns:l,children:d.map(e=>(0,t.jsx)(x,{...e,onCheckboxChange:r},e.value))}),!c&&g?(0,t.jsx)(i.wpx,{type:"text",onClick:()=>{u(!0)},children:"View more"}):null,c&&g?(0,t.jsx)(i.wpx,{type:"text",onClick:()=>{u(!1)},children:"View less"}):null]})]})},f=e=>{let{heading:s,children:n}=e;return(0,t.jsxs)(i.xuv,{padding:"12px 8px 8px 12px",maxHeight:600,children:[s?(0,t.jsx)(i.X6q,{size:"md",lineHeight:6,fontWeight:"bold",mb:2,children:s}):null,n]})},m=e=>{let{resetFilters:s,isOpen:n,onClose:a,children:r,...l}=e;return(0,t.jsxs)(i.u_l,{isOpen:n,onClose:a,isCentered:!0,size:"2xl",...l,children:[(0,t.jsx)(i.ZAr,{}),(0,t.jsxs)(i.hzk,{children:[(0,t.jsx)(i.xBx,{children:"Filters"}),(0,t.jsx)(i.olH,{}),(0,t.jsx)(i.izJ,{}),(0,t.jsx)(i.fef,{maxH:"85vh",padding:"0px",overflowX:"auto",style:{scrollbarGutter:"stable"},children:r}),(0,t.jsx)(i.mzw,{children:(0,t.jsxs)(i.xuv,{display:"flex",justifyContent:"space-between",width:"100%",children:[(0,t.jsx)(i.wpx,{onClick:s,className:"mr-3 grow",children:"Reset filters"}),(0,t.jsx)(i.wpx,{type:"primary",onClick:a,className:"grow",children:"Done"})]})})]})]})};var j=n(77830),C=n(23923),y=n(16134),v=n(6675),b=n(28079);let k=()=>{let{isOpen:e,onClose:s,onOpen:n}=(0,i.qY0)();(0,b.fd)();let t=(0,y.C)(b.U3);(0,v.a4)();let r=(0,y.C)(v.ZS),[l,o]=(0,a.useState)([]),[c,u]=(0,a.useState)([]),[d,g]=(0,a.useState)([{displayText:"Consent",value:"Consent",isChecked:!1},{displayText:"Legitimate Interest",value:"Legitimate interests",isChecked:!1}]),[p,x]=(0,a.useState)([{displayText:"Advertising",value:"advertising",isChecked:!1},{displayText:"Analytics",value:"analytics",isChecked:!1},{displayText:"Functional",value:"functional",isChecked:!1},{displayText:"Essential",value:"essential",isChecked:!1}]);(0,a.useEffect)(()=>{0===c.length&&u(t.map(e=>({value:e.fides_key,displayText:e.name||e.fides_key,isChecked:!1})))},[t,c,u]),(0,a.useEffect)(()=>{0===l.length&&o([...Object.entries(r.purposes).map(e=>({value:"normal.".concat(e[0]),displayText:e[1].name,isChecked:!1})),...Object.entries(r.special_purposes).map(e=>({value:"special.".concat(e[0]),displayText:e[1].name,isChecked:!1}))])},[r,l,u]);let h=(e,s,n,t)=>{t(n.map(n=>n.value===e?{...n,isChecked:s}:n))};return{isOpen:e,onClose:s,onOpen:n,resetFilters:()=>{u(e=>e.map(e=>({...e,isChecked:!1}))),g(e=>e.map(e=>({...e,isChecked:!1}))),o(e=>e.map(e=>({...e,isChecked:!1}))),x(e=>e.map(e=>({...e,isChecked:!1})))},purposeOptions:l,onPurposeChange:(e,s)=>{h(e,s,l,o)},dataUseOptions:c,onDataUseChange:(e,s)=>{h(e,s,c,u)},legalBasisOptions:d,onLegalBasisChange:(e,s)=>{h(e,s,d,g)},consentCategoryOptions:p,onConsentCategoryChange:(e,s)=>{h(e,s,p,x)}}},w=e=>{let{isOpen:s,isTcfEnabled:n,onClose:a,resetFilters:r,purposeOptions:l,onPurposeChange:o,dataUseOptions:c,onDataUseChange:u,legalBasisOptions:d,onLegalBasisChange:g,consentCategoryOptions:p,onConsentCategoryChange:x}=e;return(0,t.jsx)(m,{isOpen:s,onClose:a,resetFilters:r,children:(0,t.jsx)(i.UQy,{children:(0,t.jsxs)(f,{children:[n?(0,t.jsx)(h,{options:l,onCheckboxChange:o,header:"TCF purposes",columns:1,numDefaultOptions:5}):null,(0,t.jsx)(h,{options:c,onCheckboxChange:u,header:"Data uses"}),n?(0,t.jsx)(h,{options:d,onCheckboxChange:g,header:"Legal basis"}):null,n?null:(0,t.jsx)(h,{options:p,onCheckboxChange:x,header:"Consent categories"})]})})})};var T=n(48347),_=n(32885);let S=(0,o.Cl)(),M={items:[],total:0,page:1,size:25,pages:1},q=()=>{let{tcf:e,dictionaryService:s}=(0,u.hz)(),{isLoading:n}=(0,_.x8)(),{isOpen:r,onOpen:l,onClose:x}=(0,T.W)(),h=(0,g.useRouter)(),[f,m]=(0,a.useState)(),{isOpen:y,onOpen:v,onClose:b,resetFilters:q,purposeOptions:O,onPurposeChange:P,dataUseOptions:E,onDataUseChange:F,legalBasisOptions:z,onLegalBasisChange:N,consentCategoryOptions:R,onConsentCategoryChange:I}=k(),A=(0,a.useMemo)(()=>p(E,"data_uses"),[E]),L=(0,a.useMemo)(()=>p(z,"legal_bases"),[z]),B=(0,a.useMemo)(()=>p(O.filter(e=>e.value.includes("normal")).map(e=>({...e,value:e.value.split(".")[1]})),"purposes"),[O]),U=(0,a.useMemo)(()=>p(O.filter(e=>e.value.includes("special")).map(e=>({...e,value:e.value.split(".")[1]})),"special_purposes"),[O]),Z=(0,a.useMemo)(()=>p(R,"consent_category"),[R]),{PAGE_SIZES:D,pageSize:V,setPageSize:W,onPreviousPageClick:H,isPreviousPageDisabled:K,onNextPageClick:X,isNextPageDisabled:Q,startRange:G,endRange:J,pageIndex:Y,setTotalPages:$,resetPageIndexToDefault:ee}=(0,d.oi)(),[es,en]=(0,a.useState)(),et=(0,a.useCallback)(e=>{ee(),en(e)},[ee,en]),{isFetching:ei,isLoading:ea,data:er}=(0,_.de)({pageIndex:Y,pageSize:V,dataUses:A,search:es,legalBasis:L,purposes:B,specialPurposes:U,consentCategories:Z}),{items:el,total:eo,pages:ec}=(0,a.useMemo)(()=>er||M,[er]);(0,a.useEffect)(()=>{$(ec)},[ec,$]);let eu=(0,a.useMemo)(()=>[S.accessor(e=>e.name,{id:"name",cell:e=>(0,t.jsx)(d.G3,{value:e.getValue()}),header:e=>(0,t.jsx)(d.Rr,{value:"Vendor",...e})}),S.accessor(e=>e.data_uses,{id:"tcf_purpose",cell:e=>(0,t.jsx)(d.CI,{plSuffix:"purposes",singSuffix:"purpose",count:e.getValue()}),header:e=>(0,t.jsx)(d.Rr,{value:"TCF purpose",...e})}),S.accessor(e=>e.data_uses,{id:"data_uses",cell:e=>(0,t.jsx)(d.CI,{plSuffix:"data uses",singSuffix:"data use",count:e.getValue()}),header:e=>(0,t.jsx)(d.Rr,{value:"Data use",...e})}),S.accessor(e=>e.legal_bases,{id:"legal_bases",cell:e=>(0,t.jsx)(d.CI,{plSuffix:"bases",singSuffix:"basis",count:e.getValue()}),header:e=>(0,t.jsx)(d.Rr,{value:"Legal basis",...e})}),S.accessor(e=>e.consent_categories,{id:"consent_categories",cell:e=>(0,t.jsx)(d.CI,{plSuffix:"categories",singSuffix:"category",count:e.getValue()}),header:e=>(0,t.jsx)(d.Rr,{value:"Categories",...e})}),S.accessor(e=>e.cookies,{id:"cookies",cell:e=>(0,t.jsx)(d.CI,{plSuffix:"cookies",singSuffix:"cookie",count:e.getValue()}),header:e=>(0,t.jsx)(d.Rr,{value:"Cookies",...e})})],[]),ed=(0,c.b7)({columns:eu,data:el,state:{columnVisibility:{tcf_purpose:e,data_uses:e,legal_bases:e,consent_categories:!e,cookies:!e}},getCoreRowModel:(0,o.sC)(),columnResizeMode:"onChange",enableColumnResizing:!0});return ea||n?(0,t.jsx)(d.I4,{rowHeight:36,numRows:15}):(0,t.jsxs)(i.kCb,{flex:1,direction:"column",overflow:"auto",children:[r&&f?(0,t.jsx)(T.m,{isOpen:r,fidesKey:f,onClose:x}):null,(0,t.jsxs)(d.Q$,{children:[(0,t.jsx)(d.HO,{globalFilter:es,setGlobalFilter:et,placeholder:"Search"}),(0,t.jsx)(w,{isOpen:y,isTcfEnabled:e,onClose:b,resetFilters:q,purposeOptions:O,onPurposeChange:P,dataUseOptions:E,onDataUseChange:F,legalBasisOptions:z,onLegalBasisChange:N,consentCategoryOptions:R,onConsentCategoryChange:I}),(0,t.jsxs)(i.Ugi,{alignItems:"center",spacing:2,children:[(0,t.jsx)(C.Z,{buttonLabel:"Add vendors",onButtonClick:s?()=>{h.push(j.Gg)}:void 0}),(0,t.jsx)(i.wpx,{onClick:v,"data-testid":"filter-multiple-systems-btn",children:"Filter"})]})]}),(0,t.jsx)(d.ZK,{tableInstance:ed,onRowClick:e=>{m(e.fides_key),l()}}),(0,t.jsx)(d.s8,{totalRows:eo||0,pageSizes:D,setPageSize:W,onPreviousPageClick:H,isPreviousPageDisabled:K||ei,onNextPageClick:X,isNextPageDisabled:Q||ei,startRange:G,endRange:J})]})},{Text:O}=i.AntTypography;var P=()=>(0,t.jsxs)(r.Z,{title:"Vendors",children:[(0,t.jsx)(l.Z,{heading:"Vendors",children:(0,t.jsx)(O,{className:"block w-1/2",children:"Use the table below to manage your vendors. Modify the legal basis for a vendor if permitted and view and group your views by applying different filters"})}),(0,t.jsx)(q,{})]})}},function(e){e.O(0,[401,3923,2888,9774,179],function(){return e(e.s=54727)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3709],{54727:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/configure",function(){return n(47672)}])},77213:function(e,s,n){"use strict";n.d(s,{Z:function(){return p}});var t=n(24246),i=n(98227),a=n(88038),r=n.n(a),l=n(86677);n(27378);var o=n(25980),c=n(90867),u=n(42478),d=n(77830),g=()=>{let e=(0,l.useRouter)();return(0,t.jsx)(i.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)(i.xuv,{children:[(0,t.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,t.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,t.jsx)(i.wpx,{onClick:()=>{e.push(d.AD)},children:"Configure"})]}),(0,t.jsxs)(i.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:s,title:n,padded:a=!0,mainProps:d}=e,p=(0,o.hz)(),x=(0,l.useRouter)(),h="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,f=!(p.flags.messagingConfiguration&&h),{data:m}=(0,u.JE)(void 0,{skip:f}),{data:j}=(0,c.PW)(void 0,{skip:f}),C=p.flags.messagingConfiguration&&(!m||!j)&&h;return(0,t.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,t.jsxs)(r(),{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)(i.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[C?(0,t.jsx)(g,{}):null,s]})]})}},58754:function(e,s,n){"use strict";var t=n(24246),i=n(98227),a=n(70788);s.Z=e=>{let{heading:s,breadcrumbItems:n,isSticky:r=!0,children:l,rightContent:o,style:c,...u}=e;return(0,t.jsxs)("div",{...u,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,t.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof s?(0,t.jsx)(i.lQT,{className:n||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:s}):s,o&&(0,t.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,t.jsx)(a.m,{className:l?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),l]})}},70788:function(e,s,n){"use strict";n.d(s,{m:function(){return c}});var t=n(24246),i=n(98227),a=n(79894),r=n.n(a),l=n(27378);let{Text:o}=i.AntTypography,c=e=>{let{items:s,...n}=e,a=(0,l.useMemo)(()=>null==s?void 0:s.map((e,n)=>{let a=n===s.length-1,l={...e},c=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,t.jsx)(o,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,id:a?"breadcrumb-current-page":void 0,children:l.title})),c)?l.title=(0,t.jsx)(i.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,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,t.jsx)(r(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[s]);return(0,t.jsx)(i.zrq,{items:a,...n})}},6675:function(e,s,n){"use strict";n.d(s,{ZS:function(){return l},a4:function(){return a}});var t=n(3228);let i=n(78780).u.injectEndpoints({endpoints:e=>({getPurposes:e.query({query:()=>"purposes"})})}),{useGetPurposesQuery:a}=i,r={purposes:{},special_purposes:{}},l=(0,t.P1)(i.endpoints.getPurposes.select(),e=>{let{data:s}=e;return s||r})},48347:function(e,s,n){"use strict";n.d(s,{W:function(){return o},m:function(){return c}});var t=n(24246),i=n(98227),a=n(32885);let{Text:r,Title:l}=i.AntTypography,o=()=>{let{isOpen:e,onOpen:s,onClose:n}=(0,i.qY0)();return{isOpen:e,onOpen:s,onClose:n}},c=e=>{let{isOpen:s,onClose:n,fidesKey:o}=e,{data:c,isLoading:u}=(0,a.ho)(o),d=(e,s)=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l,{level:5,children:e}),(null==s?void 0:s.length)?(0,t.jsx)("div",{children:(0,t.jsx)(i.vyj,{size:[0,2],wrap:!0,children:null==s?void 0:s.map(e=>(0,t.jsx)(i.j8w,{children:e},e))})}):(0,t.jsxs)(r,{italic:!0,children:["no known ",e.toLowerCase()]})]});return(0,t.jsxs)(i.u_l,{isOpen:s,onClose:n,size:"xxl",returnFocusOnClose:!1,isCentered:!0,children:[(0,t.jsx)(i.ZAr,{}),(0,t.jsxs)(i.hzk,{maxWidth:"800px",children:[(0,t.jsx)(i.xBx,{children:c?null==c?void 0:c.name:"Vendor"}),(0,t.jsx)(i.fef,{children:u?(0,t.jsx)(i.jqI,{className:"h-80 w-full",align:"center",justify:"center",children:(0,t.jsx)(i.$jN,{})}):!!c&&(0,t.jsxs)(i.AntTypography,{children:[(0,t.jsx)(l,{level:5,children:"Purposes"}),Object.entries(c.purposes||{}).length>0?(0,t.jsx)(i.UQy,{allowMultiple:!0,children:Object.entries(c.purposes).map((e,s)=>{let[n]=e;return(0,t.jsx)(i.Qdk,{children:e=>{let{isExpanded:s}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(i.KFZ,{backgroundColor:s?"gray.50":"unset",children:[(0,t.jsx)(i.xuv,{flex:"1",textAlign:"left",children:n}),(0,t.jsx)(i.XEm,{})]}),(0,t.jsxs)(i.Hk3,{backgroundColor:"gray.50",children:[(0,t.jsx)(i.jqI,{className:"my-4",vertical:!0,children:d("Data uses",c.purposes[n].data_uses)}),(0,t.jsx)(i.jqI,{className:"my-4",vertical:!0,children:d("Legal basis",c.purposes[n].legal_bases)})]})]})}},s)})}):(0,t.jsx)(r,{italic:!0,children:"no known purposes"}),(0,t.jsx)("div",{className:"my-4",children:d("Features",c.features)}),(0,t.jsx)("div",{className:"my-4",children:d("Data categories",c.data_categories)})]})}),(0,t.jsxs)(i.mzw,{children:[(0,t.jsx)(i.wpx,{size:"small",onClick:n,children:"Close"}),(0,t.jsx)(i.LZC,{})]})]})]})}},42478:function(e,s,n){"use strict";n.d(s,{FU:function(){return c},JE:function(){return i},Ki:function(){return d},SU:function(){return g},W:function(){return p},h9:function(){return a},jc:function(){return t},qt:function(){return o},sn:function(){return u}});let{useGetEmailInviteStatusQuery:t,useGetActiveMessagingProviderQuery:i,useCreateMessagingConfigurationMutation:a,useCreateMessagingConfigurationSecretsMutation:r,useGetMessagingConfigurationDetailsQuery:l,useGetMessagingConfigurationsQuery:o,useGetMessagingConfigurationByKeyQuery:c,useUpdateMessagingConfigurationByKeyMutation:u,useUpdateMessagingConfigurationSecretsByKeyMutation:d,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:p}=n(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,s,n,t)=>{let i=await t({url:"messaging/default/active"});return i.error&&404===i.error.status?{data:null}:i},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},47672:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return P}});var t=n(24246),i=n(98227),a=n(27378),r=n(77213),l=n(58754),o=n(92222),c=n(59003),u=n(25980),d=n(47935),g=n(86677);let p=(e,s)=>{let n=e.filter(e=>e.isChecked);return n.length>0?"".concat(s,"=").concat(n.map(e=>e.value).join("&".concat(s,"="))):void 0},x=e=>{let{value:s,displayText:n,isChecked:a,onCheckboxChange:r}=e;return(0,t.jsx)(i.XZJ,{value:s,height:"20px",mb:"25px",isChecked:a,onChange:e=>{let{target:n}=e;r(s,n.checked)},_focusWithin:{bg:"gray.100"},colorScheme:"complimentary",children:(0,t.jsx)(i.xvT,{fontSize:"sm",lineHeight:5,textOverflow:"ellipsis",overflow:"hidden",children:n})},s)},h=e=>{let{options:s,header:n,onCheckboxChange:r,columns:l=3,numDefaultOptions:o=15}=e,[c,u]=(0,a.useState)(!1),d=c?s:s.slice(0,o),g=s.length>o;return(0,t.jsxs)(i.Qdk,{border:"0px",padding:"12px 8px 8px 12px",children:[(0,t.jsx)(i.X6q,{height:"56px",children:(0,t.jsxs)(i.KFZ,{height:"100%",children:[(0,t.jsx)(i.xuv,{flex:"1",alignItems:"center",justifyContent:"center",textAlign:"left",fontWeight:600,children:n}),(0,t.jsx)(i.XEm,{})]})}),(0,t.jsxs)(i.Hk3,{id:"panel-".concat(n),children:[(0,t.jsx)(i.MIq,{columns:l,children:d.map(e=>(0,t.jsx)(x,{...e,onCheckboxChange:r},e.value))}),!c&&g?(0,t.jsx)(i.wpx,{type:"text",onClick:()=>{u(!0)},children:"View more"}):null,c&&g?(0,t.jsx)(i.wpx,{type:"text",onClick:()=>{u(!1)},children:"View less"}):null]})]})},f=e=>{let{heading:s,children:n}=e;return(0,t.jsxs)(i.xuv,{padding:"12px 8px 8px 12px",maxHeight:600,children:[s?(0,t.jsx)(i.X6q,{size:"md",lineHeight:6,fontWeight:"bold",mb:2,children:s}):null,n]})},m=e=>{let{resetFilters:s,isOpen:n,onClose:a,children:r,...l}=e;return(0,t.jsxs)(i.u_l,{isOpen:n,onClose:a,isCentered:!0,size:"2xl",...l,children:[(0,t.jsx)(i.ZAr,{}),(0,t.jsxs)(i.hzk,{children:[(0,t.jsx)(i.xBx,{children:"Filters"}),(0,t.jsx)(i.olH,{}),(0,t.jsx)(i.izJ,{}),(0,t.jsx)(i.fef,{maxH:"85vh",padding:"0px",overflowX:"auto",style:{scrollbarGutter:"stable"},children:r}),(0,t.jsx)(i.mzw,{children:(0,t.jsxs)(i.xuv,{display:"flex",justifyContent:"space-between",width:"100%",children:[(0,t.jsx)(i.wpx,{onClick:s,className:"mr-3 grow",children:"Reset filters"}),(0,t.jsx)(i.wpx,{type:"primary",onClick:a,className:"grow",children:"Done"})]})})]})]})};var j=n(77830),C=n(23923),y=n(16134),v=n(6675),b=n(28079);let k=()=>{let{isOpen:e,onClose:s,onOpen:n}=(0,i.qY0)();(0,b.fd)();let t=(0,y.C)(b.U3);(0,v.a4)();let r=(0,y.C)(v.ZS),[l,o]=(0,a.useState)([]),[c,u]=(0,a.useState)([]),[d,g]=(0,a.useState)([{displayText:"Consent",value:"Consent",isChecked:!1},{displayText:"Legitimate Interest",value:"Legitimate interests",isChecked:!1}]),[p,x]=(0,a.useState)([{displayText:"Advertising",value:"advertising",isChecked:!1},{displayText:"Analytics",value:"analytics",isChecked:!1},{displayText:"Functional",value:"functional",isChecked:!1},{displayText:"Essential",value:"essential",isChecked:!1}]);(0,a.useEffect)(()=>{0===c.length&&u(t.map(e=>({value:e.fides_key,displayText:e.name||e.fides_key,isChecked:!1})))},[t,c,u]),(0,a.useEffect)(()=>{0===l.length&&o([...Object.entries(r.purposes).map(e=>({value:"normal.".concat(e[0]),displayText:e[1].name,isChecked:!1})),...Object.entries(r.special_purposes).map(e=>({value:"special.".concat(e[0]),displayText:e[1].name,isChecked:!1}))])},[r,l,u]);let h=(e,s,n,t)=>{t(n.map(n=>n.value===e?{...n,isChecked:s}:n))};return{isOpen:e,onClose:s,onOpen:n,resetFilters:()=>{u(e=>e.map(e=>({...e,isChecked:!1}))),g(e=>e.map(e=>({...e,isChecked:!1}))),o(e=>e.map(e=>({...e,isChecked:!1}))),x(e=>e.map(e=>({...e,isChecked:!1})))},purposeOptions:l,onPurposeChange:(e,s)=>{h(e,s,l,o)},dataUseOptions:c,onDataUseChange:(e,s)=>{h(e,s,c,u)},legalBasisOptions:d,onLegalBasisChange:(e,s)=>{h(e,s,d,g)},consentCategoryOptions:p,onConsentCategoryChange:(e,s)=>{h(e,s,p,x)}}},w=e=>{let{isOpen:s,isTcfEnabled:n,onClose:a,resetFilters:r,purposeOptions:l,onPurposeChange:o,dataUseOptions:c,onDataUseChange:u,legalBasisOptions:d,onLegalBasisChange:g,consentCategoryOptions:p,onConsentCategoryChange:x}=e;return(0,t.jsx)(m,{isOpen:s,onClose:a,resetFilters:r,children:(0,t.jsx)(i.UQy,{children:(0,t.jsxs)(f,{children:[n?(0,t.jsx)(h,{options:l,onCheckboxChange:o,header:"TCF purposes",columns:1,numDefaultOptions:5}):null,(0,t.jsx)(h,{options:c,onCheckboxChange:u,header:"Data uses"}),n?(0,t.jsx)(h,{options:d,onCheckboxChange:g,header:"Legal basis"}):null,n?null:(0,t.jsx)(h,{options:p,onCheckboxChange:x,header:"Consent categories"})]})})})};var T=n(48347),_=n(32885);let S=(0,o.Cl)(),M={items:[],total:0,page:1,size:25,pages:1},q=()=>{let{tcf:e,dictionaryService:s}=(0,u.hz)(),{isLoading:n}=(0,_.x8)(),{isOpen:r,onOpen:l,onClose:x}=(0,T.W)(),h=(0,g.useRouter)(),[f,m]=(0,a.useState)(),{isOpen:y,onOpen:v,onClose:b,resetFilters:q,purposeOptions:O,onPurposeChange:P,dataUseOptions:E,onDataUseChange:F,legalBasisOptions:z,onLegalBasisChange:N,consentCategoryOptions:R,onConsentCategoryChange:I}=k(),A=(0,a.useMemo)(()=>p(E,"data_uses"),[E]),L=(0,a.useMemo)(()=>p(z,"legal_bases"),[z]),B=(0,a.useMemo)(()=>p(O.filter(e=>e.value.includes("normal")).map(e=>({...e,value:e.value.split(".")[1]})),"purposes"),[O]),U=(0,a.useMemo)(()=>p(O.filter(e=>e.value.includes("special")).map(e=>({...e,value:e.value.split(".")[1]})),"special_purposes"),[O]),Z=(0,a.useMemo)(()=>p(R,"consent_category"),[R]),{PAGE_SIZES:D,pageSize:V,setPageSize:W,onPreviousPageClick:H,isPreviousPageDisabled:K,onNextPageClick:X,isNextPageDisabled:Q,startRange:G,endRange:J,pageIndex:Y,setTotalPages:$,resetPageIndexToDefault:ee}=(0,d.oi)(),[es,en]=(0,a.useState)(),et=(0,a.useCallback)(e=>{ee(),en(e)},[ee,en]),{isFetching:ei,isLoading:ea,data:er}=(0,_.de)({pageIndex:Y,pageSize:V,dataUses:A,search:es,legalBasis:L,purposes:B,specialPurposes:U,consentCategories:Z}),{items:el,total:eo,pages:ec}=(0,a.useMemo)(()=>er||M,[er]);(0,a.useEffect)(()=>{$(ec)},[ec,$]);let eu=(0,a.useMemo)(()=>[S.accessor(e=>e.name,{id:"name",cell:e=>(0,t.jsx)(d.G3,{value:e.getValue()}),header:e=>(0,t.jsx)(d.Rr,{value:"Vendor",...e})}),S.accessor(e=>e.data_uses,{id:"tcf_purpose",cell:e=>(0,t.jsx)(d.CI,{plSuffix:"purposes",singSuffix:"purpose",count:e.getValue()}),header:e=>(0,t.jsx)(d.Rr,{value:"TCF purpose",...e})}),S.accessor(e=>e.data_uses,{id:"data_uses",cell:e=>(0,t.jsx)(d.CI,{plSuffix:"data uses",singSuffix:"data use",count:e.getValue()}),header:e=>(0,t.jsx)(d.Rr,{value:"Data use",...e})}),S.accessor(e=>e.legal_bases,{id:"legal_bases",cell:e=>(0,t.jsx)(d.CI,{plSuffix:"bases",singSuffix:"basis",count:e.getValue()}),header:e=>(0,t.jsx)(d.Rr,{value:"Legal basis",...e})}),S.accessor(e=>e.consent_categories,{id:"consent_categories",cell:e=>(0,t.jsx)(d.CI,{plSuffix:"categories",singSuffix:"category",count:e.getValue()}),header:e=>(0,t.jsx)(d.Rr,{value:"Categories",...e})}),S.accessor(e=>e.cookies,{id:"cookies",cell:e=>(0,t.jsx)(d.CI,{plSuffix:"cookies",singSuffix:"cookie",count:e.getValue()}),header:e=>(0,t.jsx)(d.Rr,{value:"Cookies",...e})})],[]),ed=(0,c.b7)({columns:eu,data:el,state:{columnVisibility:{tcf_purpose:e,data_uses:e,legal_bases:e,consent_categories:!e,cookies:!e}},getCoreRowModel:(0,o.sC)(),columnResizeMode:"onChange",enableColumnResizing:!0});return ea||n?(0,t.jsx)(d.I4,{rowHeight:36,numRows:15}):(0,t.jsxs)(i.kCb,{flex:1,direction:"column",overflow:"auto",children:[r&&f?(0,t.jsx)(T.m,{isOpen:r,fidesKey:f,onClose:x}):null,(0,t.jsxs)(d.Q$,{children:[(0,t.jsx)(d.HO,{globalFilter:es,setGlobalFilter:et,placeholder:"Search"}),(0,t.jsx)(w,{isOpen:y,isTcfEnabled:e,onClose:b,resetFilters:q,purposeOptions:O,onPurposeChange:P,dataUseOptions:E,onDataUseChange:F,legalBasisOptions:z,onLegalBasisChange:N,consentCategoryOptions:R,onConsentCategoryChange:I}),(0,t.jsxs)(i.Ugi,{alignItems:"center",spacing:2,children:[(0,t.jsx)(C.Z,{buttonLabel:"Add vendors",onButtonClick:s?()=>{h.push(j.Gg)}:void 0}),(0,t.jsx)(i.wpx,{onClick:v,"data-testid":"filter-multiple-systems-btn",children:"Filter"})]})]}),(0,t.jsx)(d.ZK,{tableInstance:ed,onRowClick:e=>{m(e.fides_key),l()}}),(0,t.jsx)(d.s8,{totalRows:eo||0,pageSizes:D,setPageSize:W,onPreviousPageClick:H,isPreviousPageDisabled:K||ei,onNextPageClick:X,isNextPageDisabled:Q||ei,startRange:G,endRange:J})]})},{Text:O}=i.AntTypography;var P=()=>(0,t.jsxs)(r.Z,{title:"Vendors",children:[(0,t.jsx)(l.Z,{heading:"Vendors",children:(0,t.jsx)(O,{className:"block w-1/2",children:"Use the table below to manage your vendors. Modify the legal basis for a vendor if permitted and view and group your views by applying different filters"})}),(0,t.jsx)(q,{})]})}},function(e){e.O(0,[401,3923,2888,9774,179],function(){return e(e.s=54727)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2357],{5123:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/privacy-experience/[id]",function(){return n(41884)}])},41884:function(e,i,n){"use strict";n.r(i);var r=n(24246),c=n(96306),s=n(86677),t=n(77213),d=n(11817),u=n(94315);i.default=()=>{let e=(0,s.useRouter)(),i="";e.query.id&&(i=Array.isArray(e.query.id)?e.query.id[0]:e.query.id);let{data:n,isLoading:a}=(0,u.Qv)(i),{data:l,isLoading:o}=(0,u.fc)(i);return a||o?(0,r.jsx)(t.Z,{title:"Privacy experience",children:(0,r.jsx)(c.kCb,{className:"size-full items-center justify-center overflow-scroll",children:(0,r.jsx)(c.M5Y,{children:(0,r.jsx)(c.$jN,{})})})}):n?(0,r.jsx)(t.Z,{title:"Privacy experience ".concat(n.component),padded:!1,children:(0,r.jsx)(d.Z,{passedInExperience:n,passedInTranslations:l})}):(0,r.jsx)(t.Z,{title:"Privacy experience",children:(0,r.jsxs)(c.xvT,{children:["No privacy experience with id ",i," found."]})})}}},function(e){e.O(0,[8765,3662,6419,5279,6277,1817,2888,9774,179],function(){return e(e.s=5123)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2357],{5123:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/privacy-experience/[id]",function(){return n(41884)}])},41884:function(e,i,n){"use strict";n.r(i);var r=n(24246),c=n(98227),s=n(86677),t=n(77213),d=n(11817),u=n(94315);i.default=()=>{let e=(0,s.useRouter)(),i="";e.query.id&&(i=Array.isArray(e.query.id)?e.query.id[0]:e.query.id);let{data:n,isLoading:a}=(0,u.Qv)(i),{data:l,isLoading:o}=(0,u.fc)(i);return a||o?(0,r.jsx)(t.Z,{title:"Privacy experience",children:(0,r.jsx)(c.kCb,{className:"size-full items-center justify-center overflow-scroll",children:(0,r.jsx)(c.M5Y,{children:(0,r.jsx)(c.$jN,{})})})}):n?(0,r.jsx)(t.Z,{title:"Privacy experience ".concat(n.component),padded:!1,children:(0,r.jsx)(d.Z,{passedInExperience:n,passedInTranslations:l})}):(0,r.jsx)(t.Z,{title:"Privacy experience",children:(0,r.jsxs)(c.xvT,{children:["No privacy experience with id ",i," found."]})})}}},function(e){e.O(0,[3662,9014,6084,1817,2888,9774,179],function(){return e(e.s=5123)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7680],{49048:function(n,e,c){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/privacy-experience/new",function(){return c(16669)}])},16669:function(n,e,c){"use strict";c.r(e);var i=c(24246),t=c(77213),u=c(11817);e.default=()=>(0,i.jsx)(t.Z,{title:"Privacy Experience",padded:!1,children:(0,i.jsx)(u.Z,{})})}},function(n){n.O(0,[8765,3662,6419,5279,6277,1817,2888,9774,179],function(){return n(n.s=49048)}),_N_E=n.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7680],{49048:function(n,e,c){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/privacy-experience/new",function(){return c(16669)}])},16669:function(n,e,c){"use strict";c.r(e);var i=c(24246),t=c(77213),u=c(11817);e.default=()=>(0,i.jsx)(t.Z,{title:"Privacy Experience",padded:!1,children:(0,i.jsx)(u.Z,{})})}},function(n){n.O(0,[3662,9014,6084,1817,2888,9774,179],function(){return n(n.s=49048)}),_N_E=n.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[354],{55173:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/privacy-experience",function(){return s(44061)}])},59301:function(e,t,s){"use strict";var i=s(24246);let{Link:n}=s(98227).AntTypography;t.Z=e=>{let{children:t,...s}=e;return(0,i.jsx)(n,{target:"_blank",rel:"noopener noreferrer",...s,children:t})}},32222:function(e,t,s){"use strict";s.d(t,{J:function(){return i}});let i=new Map([["overlay","Overlay"],["privacy_center","Privacy center"],["tcf_overlay","TCF overlay"],["modal","Modal"],["banner_and_modal","Banner and modal"],["headless","Headless"]])},44061:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return V}});var i=s(24246),n=s(98227),a=s(27378),r=s(35287),o=s(92222),l=s(59003),c=s(47935),d=s(86677),p=s(77830),u=s(19904),x=s(45277),h=s(59301),y=s(812),g=s(46628),m=s(32885),j=e=>{let{isOpen:t,onClose:s,testId:r="custom-asset-modal",assetType:o}=e,l=(0,a.useRef)(null),[c,d]=(0,a.useState)(null),p=(0,n.pmc)(),{getRootProps:u,getInputProps:j,isDragActive:f}=(0,x.uI)({onDrop:e=>{var t;if("css"!==(null===(t=e[0].name.split(".").pop())||void 0===t?void 0:t.toLowerCase())){p((0,g.Vo)("Only css files are allowed."));return}d(e[0])}}),[v,{isLoading:b}]=(0,m.JQ)(),w=async()=>{if(c){let e=await v({assetType:o,file:c});if((0,y.D4)(e)){p((0,g.Vo)((0,y.e$)(e.error)));return}p((0,g.t5)("Stylesheet uploaded successfully")),s()}};return(0,i.jsxs)(n.u_l,{initialFocusRef:l,isOpen:t,onClose:s,size:"2xl",children:[(0,i.jsx)(n.ZAr,{}),(0,i.jsxs)(n.hzk,{textAlign:"left",p:2,"data-testid":r,children:[(0,i.jsx)(n.xBx,{tabIndex:-1,ref:l,children:"Upload stylesheet"}),(0,i.jsxs)(n.fef,{children:[(0,i.jsxs)(n.xvT,{fontSize:"sm",mb:4,children:["To customize the appearance of your consent experiences, you may upload a CSS stylesheet."," ",(0,i.jsx)(h.Z,{href:"https://raw.githubusercontent.com/ethyca/fides/main/clients/fides-js/src/components/fides.css",children:"Download a template"})," ","as a helpful starting point.",(0,i.jsx)(h.Z,{href:"https://fid.es/customize-styles",children:"Learn more about customizing styles"}),"."]}),(0,i.jsxs)(n.xuv,{...u(),bg:f?"gray.100":"gray.50",border:"2px dashed",borderColor:f?"gray.300":"gray.200",borderRadius:"md",cursor:"pointer",minHeight:"150px",display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",children:[(0,i.jsx)("input",{...j()}),c?(0,i.jsx)(n.xvT,{children:c.name}):f?(0,i.jsx)(n.xvT,{children:"Drop the file here..."}):(0,i.jsx)(n.xvT,{children:"Click or drag and drop your file here."})]})]}),(0,i.jsxs)(n.mzw,{className:"flex w-full justify-end gap-2",children:[(0,i.jsx)(n.wpx,{onClick:s,"data-testid":"cancel-btn",disabled:b,children:"Cancel"}),(0,i.jsx)(n.wpx,{type:"primary",htmlType:"submit",disabled:!c||b,onClick:w,"data-testid":"submit-btn",children:"Submit"})]})]})]})},f=e=>{let{assetType:t}=e,s=(0,n.qY0)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.wpx,{onClick:s.onOpen,children:"Upload stylesheet"}),(0,i.jsx)(j,{isOpen:s.isOpen,onClose:s.onClose,assetType:t})]})},v=s(72625),b=s(32222),w=s(94315);let C=e=>{var t;let s=null!==(t=b.J.get(e))&&void 0!==t?t:e;return(0,i.jsx)(v.G3,{value:s})},T=e=>{let{row:t,getValue:s}=e,[n]=(0,w.o3)(),[r,o]=(0,a.useState)(!1),l=async e=>{o(!0);let s=await n({id:t.original.id,disabled:!e});return o(!1),s},c=s(),{regions:d}=t.original,p=!!d&&d.length>1;return(0,i.jsx)(v.S1,{enabled:!c,onToggle:l,title:p?"Disabling multiple states":"Disabling experience",message:p?"Warning, you are about to disable this privacy experience for multiple locations. If you continue, your privacy notices will not be accessible to users in these locations.":"Warning, you are about to disable this privacy experience. If you continue, your privacy notices will not be accessible to users in this location.",loading:r})};var _=s(88340),S=s(25980),R=s(14048);let P="{privacy-center-hostname-and-path}",k='<script src="https://'.concat(P,'/fides.js"></script>'),E="<script>Fides.gtm()</script>";var z=()=>{let e=(0,n.qY0)(),t=(0,a.useRef)(null),{fidesCloud:s}=(0,S.hz)(),{data:r,isSuccess:o}=(0,m.Vh)(void 0,{skip:!s}),l=(0,a.useMemo)(()=>s&&o&&(null==r?void 0:r.privacy_center_url)?k.replace(P,r.privacy_center_url):k,[null==r?void 0:r.privacy_center_url,s,o]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.wpx,{onClick:e.onOpen,icon:(0,i.jsx)(R.TI,{}),iconPosition:"end","data-testid":"js-tag-btn",children:"Get JavaScript tag"}),(0,i.jsxs)(n.u_l,{isOpen:e.isOpen,onClose:e.onClose,isCentered:!0,size:"xl",initialFocusRef:t,children:[(0,i.jsx)(n.ZAr,{}),(0,i.jsxs)(n.hzk,{"data-testid":"copy-js-tag-modal",children:[(0,i.jsx)(n.xBx,{tabIndex:-1,ref:t,pb:0,children:"Copy JavaScript tag"}),(0,i.jsx)(n.fef,{pt:3,pb:6,children:(0,i.jsxs)(n.Kqy,{spacing:3,children:[(0,i.jsx)(n.xvT,{children:"Copy the code below and paste it onto every page of your website, as high up in the <head> as possible. Replace the bracketed component with your privacy center's hostname and path."}),(0,i.jsxs)(n.EKh,{display:"flex",justifyContent:"space-between",alignItems:"center",p:0,children:[(0,i.jsx)(n.xvT,{p:4,children:l}),(0,i.jsx)(_.Z,{copyText:l})]}),(0,i.jsx)(n.xvT,{children:"Optionally, you can enable Google Tag Manager for managing tags on your website by including the script tag below along with the Fides.js tag. Place it below the Fides.js script tag."}),(0,i.jsxs)(n.EKh,{display:"flex",justifyContent:"space-between",alignItems:"center",p:0,children:[(0,i.jsx)(n.xvT,{p:4,children:E}),(0,i.jsx)(_.Z,{copyText:E})]}),(0,i.jsxs)(n.xvT,{children:["For more information about adding a JavaScript tag to your website, please visit"," ",(0,i.jsx)(n.rUS,{color:"complimentary.500",href:"https://docs.ethyca.com/tutorials/consent-management-configuration/install-fides#install-fidesjs-script-on-your-website",isExternal:!0,children:"docs.ethyca.com"})]})]})})]})]})]})},I=s(22286),D=s(65735);let M={items:[],total:0,page:1,size:25,pages:1},O=()=>{let e=(0,d.useRouter)();return(0,i.jsxs)(n.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:[(0,i.jsxs)(n.gCW,{children:[(0,i.jsx)(n.xvT,{fontSize:"md",fontWeight:"600",children:"No privacy experiences found."}),(0,i.jsx)(n.xvT,{fontSize:"sm",children:'Click "Create new experience" to add your first privacy experience to Fides.'})]}),(0,i.jsx)(n.wpx,{onClick:()=>e.push("".concat(p.w0,"/new")),size:"small",type:"primary","data-testid":"add-privacy-experience-btn",children:"Create new experience"})]})},F=(0,o.Cl)(),N=()=>{let e=(0,d.useRouter)(),{isLoading:t}=(0,m.x8)(),s=(0,u.Tg)([D.Sh.PRIVACY_EXPERIENCE_UPDATE]),{PAGE_SIZES:r,pageSize:x,setPageSize:h,onPreviousPageClick:y,isPreviousPageDisabled:g,onNextPageClick:j,isNextPageDisabled:v,startRange:b,endRange:_,pageIndex:S,setTotalPages:R}=(0,c.oi)(),{isFetching:P,isLoading:k,data:E}=(0,w.cq)({page:S,size:x}),{items:N,total:V,pages:W}=(0,a.useMemo)(()=>E||M,[E]);(0,a.useEffect)(()=>{R(W)},[W,R]);let Z=(0,a.useMemo)(()=>[F.accessor(e=>e.name,{id:"name",cell:e=>(0,i.jsx)(c.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(c.Rr,{value:"Title",...e})}),F.accessor(e=>e.component,{id:"component",cell:e=>C(e.getValue()),header:e=>(0,i.jsx)(c.Rr,{value:"Component",...e})}),F.accessor(e=>e.regions,{id:"regions",cell:e=>(0,i.jsx)(c.WP,{suffix:"Locations",value:(0,I.JL)(e.getValue()),...e}),header:e=>(0,i.jsx)(c.Rr,{value:"Locations",...e}),meta:{showHeaderMenu:!0}}),F.accessor(e=>e.properties.map(e=>e.name),{id:"properties",cell:e=>(0,i.jsx)(c.WP,{suffix:"Properties",value:e.getValue(),...e}),header:e=>(0,i.jsx)(c.Rr,{value:"Properties",...e}),meta:{showHeaderMenu:!0}}),F.accessor(e=>e.updated_at,{id:"updated_at",cell:e=>(0,i.jsx)(c.G3,{value:new Date(e.getValue()).toDateString()}),header:e=>(0,i.jsx)(c.Rr,{value:"Last update",...e})}),s&&F.accessor(e=>e.disabled,{id:"enable",cell:T,header:e=>(0,i.jsx)(c.Rr,{value:"Enable",...e}),meta:{disableRowClick:!0}})].filter(Boolean),[s]),A=(0,l.b7)({getCoreRowModel:(0,o.sC)(),getGroupedRowModel:(0,o.qe)(),getExpandedRowModel:(0,o.rV)(),columns:Z,manualPagination:!0,data:N,state:{expanded:!0},columnResizeMode:"onChange"});return k||t?(0,i.jsx)(c.I4,{rowHeight:36,numRows:15}):(0,i.jsx)("div",{children:(0,i.jsxs)(n.kCb,{flex:1,direction:"column",overflow:"auto",children:[s&&(0,i.jsxs)(c.Q$,{children:[(0,i.jsxs)(n.Ugi,{alignItems:"center",spacing:2,children:[(0,i.jsx)(z,{}),(0,i.jsx)(u.ZP,{scopes:[D.Sh.CUSTOM_ASSET_UPDATE],children:(0,i.jsx)(f,{assetType:D.Db.CUSTOM_FIDES_CSS})})]}),(0,i.jsx)(n.wpx,{onClick:()=>e.push("".concat(p.w0,"/new")),type:"primary","data-testid":"add-privacy-experience-btn",children:"Create new experience"})]}),(0,i.jsx)(c.ZK,{tableInstance:A,onRowClick:s?t=>{let{id:i}=t;s&&e.push("".concat(p.w0,"/").concat(i))}:void 0,emptyTableNotice:(0,i.jsx)(O,{})}),(0,i.jsx)(c.s8,{totalRows:V||0,pageSizes:r,setPageSize:h,onPreviousPageClick:y,isPreviousPageDisabled:g||P,onNextPageClick:j,isNextPageDisabled:v||P,startRange:b,endRange:_})]})})};var V=()=>(0,i.jsxs)(r.Z,{title:"Privacy experiences",children:[(0,i.jsx)(n.xuv,{mb:4,"data-testid":"privacy-experience-page",children:(0,i.jsx)(n.X6q,{fontSize:"2xl",fontWeight:"semibold",mb:2,"data-testid":"header",children:"Privacy experience"})}),(0,i.jsx)(n.xvT,{fontSize:"sm",mb:8,width:{base:"100%",lg:"70%"},children:"Based on your privacy notices, Fides has created the banner and modal privacy experience configuration below. Each experience contains privacy notices and locations where the notices will be displayed. Edit each banner, modal, or privacy center to adjust the included privacy notices, locations, and text that is displayed to your users. When you’re ready to include these privacy notices on your website, copy the JavaScript using the button on this page and place it on your website."}),(0,i.jsx)(n.xuv,{children:(0,i.jsx)(N,{})})]})}},function(e){e.O(0,[5277,6853,2888,9774,179],function(){return e(e.s=55173)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4648],{12037:function(i,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/privacy-notices/[id]",function(){return t(48161)}])},48161:function(i,e,t){"use strict";t.r(e);var n=t(24246),c=t(96306),s=t(86677),r=t(77213),a=t(77830),o=t(58754),d=t(71922),u=t(34391);e.default=()=>{let i=(0,s.useRouter)(),e="";i.query.id&&(e=Array.isArray(i.query.id)?i.query.id[0]:i.query.id);let{data:t,isLoading:l}=(0,d._g)(e),{data:h}=(0,d.Wq)(e);return l?(0,n.jsx)(r.Z,{title:"Privacy notice",children:(0,n.jsx)(c.M5Y,{children:(0,n.jsx)(c.$jN,{})})}):t?(0,n.jsxs)(r.Z,{title:"Privacy notice ".concat(t.name),children:[(0,n.jsx)(o.Z,{heading:"Privacy Notices",breadcrumbItems:[{title:"All privacy Notices",href:a.IT},{title:t.name}]}),(0,n.jsxs)(c.xuv,{width:{base:"100%",lg:"70%"},"data-testid":"privacy-notice-detail-page",children:[(0,n.jsx)(c.xvT,{fontSize:"sm",mb:8,children:"Configure your privacy notice including consent mechanism, associated data uses and the locations in which this should be displayed to users."}),(0,n.jsx)(u.Z,{privacyNotice:t,availableTranslations:h})]})]}):(0,n.jsx)(r.Z,{title:"Privacy notice",children:(0,n.jsxs)(c.xvT,{children:["No privacy notice with id ",e," found."]})})}}},function(i){i.O(0,[8765,3662,6419,5279,6277,6954,2888,9774,179],function(){return i(i.s=12037)}),_N_E=i.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4648],{12037:function(i,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/privacy-notices/[id]",function(){return t(48161)}])},48161:function(i,e,t){"use strict";t.r(e);var n=t(24246),c=t(98227),s=t(86677),r=t(77213),a=t(77830),o=t(58754),d=t(71922),u=t(34391);e.default=()=>{let i=(0,s.useRouter)(),e="";i.query.id&&(e=Array.isArray(i.query.id)?i.query.id[0]:i.query.id);let{data:t,isLoading:l}=(0,d._g)(e),{data:h}=(0,d.Wq)(e);return l?(0,n.jsx)(r.Z,{title:"Privacy notice",children:(0,n.jsx)(c.M5Y,{children:(0,n.jsx)(c.$jN,{})})}):t?(0,n.jsxs)(r.Z,{title:"Privacy notice ".concat(t.name),children:[(0,n.jsx)(o.Z,{heading:"Privacy Notices",breadcrumbItems:[{title:"All privacy Notices",href:a.IT},{title:t.name}]}),(0,n.jsxs)(c.xuv,{width:{base:"100%",lg:"70%"},"data-testid":"privacy-notice-detail-page",children:[(0,n.jsx)(c.xvT,{fontSize:"sm",mb:8,children:"Configure your privacy notice including consent mechanism, associated data uses and the locations in which this should be displayed to users."}),(0,n.jsx)(u.Z,{privacyNotice:t,availableTranslations:h})]})]}):(0,n.jsx)(r.Z,{title:"Privacy notice",children:(0,n.jsxs)(c.xvT,{children:["No privacy notice with id ",e," found."]})})}}},function(i){i.O(0,[3662,3615,6084,6954,2888,9774,179],function(){return i(i.s=12037)}),_N_E=i.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2158],{15786:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/privacy-notices/new",function(){return n(11739)}])},11739:function(e,i,n){"use strict";n.r(i);var t=n(24246),s=n(96306),c=n(77213),a=n(77830),o=n(58754),r=n(34391);i.default=()=>(0,t.jsxs)(c.Z,{title:"New privacy notice",children:[(0,t.jsx)(o.Z,{heading:"Privacy Notices",breadcrumbItems:[{title:"All privacy Notices",href:a.IT},{title:"New privacy notice"}]}),(0,t.jsxs)(s.xuv,{width:{base:"100%",lg:"70%"},children:[(0,t.jsx)(s.xvT,{fontSize:"sm",mb:8,children:"Configure your privacy notice including consent mechanism, associated data uses and the locations in which this should be displayed to users."}),(0,t.jsx)(s.xuv,{"data-testid":"new-privacy-notice-page",children:(0,t.jsx)(r.Z,{})})]})]})}},function(e){e.O(0,[8765,3662,6419,5279,6277,6954,2888,9774,179],function(){return e(e.s=15786)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2158],{15786:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/privacy-notices/new",function(){return n(11739)}])},11739:function(e,i,n){"use strict";n.r(i);var t=n(24246),s=n(98227),c=n(77213),a=n(77830),o=n(58754),r=n(34391);i.default=()=>(0,t.jsxs)(c.Z,{title:"New privacy notice",children:[(0,t.jsx)(o.Z,{heading:"Privacy Notices",breadcrumbItems:[{title:"All privacy Notices",href:a.IT},{title:"New privacy notice"}]}),(0,t.jsxs)(s.xuv,{width:{base:"100%",lg:"70%"},children:[(0,t.jsx)(s.xvT,{fontSize:"sm",mb:8,children:"Configure your privacy notice including consent mechanism, associated data uses and the locations in which this should be displayed to users."}),(0,t.jsx)(s.xuv,{"data-testid":"new-privacy-notice-page",children:(0,t.jsx)(r.Z,{})})]})]})}},function(e){e.O(0,[3662,3615,6084,6954,2888,9774,179],function(){return e(e.s=15786)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7262],{81575:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/privacy-notices",function(){return a(13089)}])},58754:function(e,t,a){"use strict";var l=a(24246),i=a(98227),n=a(70788);t.Z=e=>{let{heading:t,breadcrumbItems:a,isSticky:s=!0,children:r,rightContent:o,style:c,...d}=e;return(0,l.jsxs)("div",{...d,style:s?{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,l.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,l.jsx)(i.lQT,{className:a||r?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,l.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!a&&(0,l.jsx)(n.m,{className:r?"pb-4":void 0,items:a,"data-testid":"page-breadcrumb"}),r]})}},70788:function(e,t,a){"use strict";a.d(t,{m:function(){return c}});var l=a(24246),i=a(98227),n=a(79894),s=a.n(n),r=a(27378);let{Text:o}=i.AntTypography,c=e=>{let{items:t,...a}=e,n=(0,r.useMemo)(()=>null==t?void 0:t.map((e,a)=>{let n=a===t.length-1,r={...e},c=r.onClick&&!r.href;return("string"==typeof r.title&&(r.title=(0,l.jsx)(o,{style:{color:"inherit",maxWidth:n?void 0:400},ellipsis:!n,id:n?"breadcrumb-current-page":void 0,children:r.title})),c)?r.title=(0,l.jsx)(i.wpx,{type:"text",size:"small",icon:r.icon,onClick:r.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:r.title}):(r.icon&&(r.title=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"anticon align-text-bottom",children:r.icon}),r.title]})),r.href&&r.title&&(r.title=(0,l.jsx)(s(),{href:r.href,className:"ant-breadcrumb-link",children:r.title}),delete r.href)),r}),[t]);return(0,l.jsx)(i.zrq,{items:n,...a})}},2525:function(e,t,a){"use strict";a.d(t,{Q:function(){return r}});var l=a(24246),i=a(98227),n=a(27378),s=a(3110);let r=e=>{let{values:t,columnState:a,tagProps:r,onTagClose:o,onStateChange:c,...d}=e,{isExpanded:u,isWrapped:p,version:h}=a||{},[x,g]=(0,n.useState)(!u),[m,v]=(0,n.useState)(!!p),[f,j]=(0,n.useState)(u?t:null==t?void 0:t.slice(0,2));(0,n.useEffect)(()=>{g(!u)},[u,h]),(0,n.useEffect)(()=>{v(!!p)},[p]),(0,n.useEffect)(()=>{(null==t?void 0:t.length)?j(x?t.slice(0,2):t):j(t)},[x,t,c]),(0,n.useEffect)(()=>{(null==t?void 0:t.length)&&t.length<=2&&!x&&(g(!0),null==c||c(!1))},[t,c,x]);let b=(0,n.useCallback)(()=>{j(null==t?void 0:t.slice(0,2)),g(!0),null==c||c(!1)},[t,c]),y=(0,n.useCallback)(()=>{g(!1),null==c||c(!0)},[c]),w=(0,n.useCallback)(()=>{x?y():b()},[x,y,b]);return(0,n.useMemo)(()=>(null==f?void 0:f.length)?(0,l.jsxs)(i.jqI,{align:x?"center":"start",wrap:m?"wrap":"nowrap",vertical:!x,gap:"small","data-testid":"tag-expandable-cell",style:{overflowX:"auto",...d.style},...d,children:[f.map(e=>(0,l.jsx)(i.j8w,{color:"white","data-testid":e.key,onClose:o?()=>o(e.key):void 0,...r,...e.tagProps,children:(0,l.jsx)(i.lKn,{ellipsis:!!x&&{tooltip:!0},style:{color:"inherit",maxWidth:x?s.TD:void 0},children:e.label})},e.key)),t&&t.length>2&&(0,l.jsx)(i.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),w()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:x?"+".concat(t.length-2," more"):s.T5})]}):(0,l.jsx)("span",{"data-testid":"tag-expandable-cell-empty"}),[f,x,m,d,t,r,o,w])}},3110:function(e,t,a){"use strict";a.d(t,{DI:function(){return r},T5:function(){return n},TD:function(){return s}});var l=a(24246),i=a(98227);let n="show less",s=150,r=[{key:"expand-all",label:"Expand all",icon:(0,l.jsx)(i.PJP.jbG,{})},{key:"collapse-all",label:"Collapse all",icon:(0,l.jsx)(i.PJP.MVB,{})}]},26070:function(e,t,a){"use strict";a.d(t,{v:function(){return o},Q:function(){return c.Q}});var l=a(24246),i=a(98227),n=a(27378),s=a(3110);let{Text:r}=i.AntTypography,o=e=>{let{values:t,valueSuffix:a,columnState:o}=e,{isExpanded:c,version:d}=o||{},[u,p]=(0,n.useState)(!c);(0,n.useEffect)(()=>{p(!c)},[c,d]);let h=(0,n.useCallback)(()=>{p(!0)},[]),x=(0,n.useCallback)(()=>{p(!1)},[]),g=(0,n.useCallback)(()=>{u?x():h()},[u,x,h]);return(0,n.useMemo)(()=>(null==t?void 0:t.length)?1===t.length?(0,l.jsx)(r,{ellipsis:!0,"data-testid":"list-expandable-cell-single",children:t[0]}):(0,l.jsxs)(i.jqI,{align:u?"center":"flex-start",vertical:!u,gap:u?"small":"none","data-testid":"list-expandable-cell",children:[u?(0,l.jsxs)(r,{ellipsis:!0,children:[t.length," ",a]}):(0,l.jsx)(i.krs,{dataSource:t,renderItem:e=>(0,l.jsx)("li",{children:e})}),(0,l.jsx)(i.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),g()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:u?"view":s.T5})]}):null,[u,t,a,g])};var c=a(2525)},13089:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return T}});var l=a(24246),i=a(98227),n=a(27378),s=a(35287),r=a(58754),o=a(92222),c=a(59003),d=a(47935),u=a(79894),p=a.n(u),h=a(86677),x=a(77830),g=a(8411),m=a(19904),v=a(32885),f=a(22286),j=a(65063),b=a(71922),y=a(65735),w=a(26070);let k={items:[],total:0,page:1,size:25,pages:1},C=()=>(0,l.jsxs)(i.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:[(0,l.jsxs)(i.gCW,{children:[(0,l.jsx)(i.xvT,{fontSize:"md",fontWeight:"600",children:"No privacy notices found."}),(0,l.jsx)(i.xvT,{fontSize:"sm",children:'Click "Add a privacy notice" to add your first privacy notice to Fides.'})]}),(0,l.jsx)(i.wpx,{href:"".concat(x.IT,"/new"),role:"link",size:"small",type:"primary","data-testid":"add-privacy-notice-btn",children:"Add a privacy notice +"})]}),P=(0,o.Cl)(),R=()=>{let{isLoading:e}=(0,v.x8)(),t=(0,h.useRouter)(),a=(0,m.Tg)([y.Sh.PRIVACY_NOTICE_UPDATE]),{PAGE_SIZES:s,pageSize:r,setPageSize:u,onPreviousPageClick:R,isPreviousPageDisabled:T,onNextPageClick:N,isNextPageDisabled:z,startRange:E,endRange:_,pageIndex:S,setTotalPages:M}=(0,d.oi)(),{isFetching:I,isLoading:V,data:A}=(0,b.J6)({page:S,size:r}),{items:q,total:Q,pages:W}=(0,n.useMemo)(()=>A||k,[A]);(0,n.useEffect)(()=>{M(W)},[W,M]);let D=(0,n.useMemo)(()=>[P.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(d.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(d.Rr,{value:"Title",...e})}),P.accessor(e=>e.consent_mechanism,{id:"consent_mechanism",cell:e=>(0,f.JA)(e.getValue()),header:e=>(0,l.jsx)(d.Rr,{value:"Mechanism",...e})}),P.accessor(e=>e.configured_regions,{id:"regions",cell:e=>{var t,a;return(0,l.jsx)(w.Q,{values:null!==(a=null===(t=e.getValue())||void 0===t?void 0:t.map(e=>{var t;let a=(0,i.QCN)(e);return{label:a?(0,i.c1K)({isoEntry:a,showFlag:!0}):null!==(t=g.Z8[e])&&void 0!==t?t:e,key:e}}))&&void 0!==a?a:[]})},header:e=>(0,l.jsx)(d.Rr,{value:"Locations",...e}),meta:{disableRowClick:!0}}),P.accessor(e=>e.disabled,{id:"status",cell:e=>(0,f.jN)(e),header:e=>(0,l.jsx)(d.Rr,{value:"Status",...e})}),P.accessor(e=>e.framework,{id:"framework",cell:e=>e.getValue()?(0,l.jsx)(d.A4,{value:j.Ep.get(e.getValue())}):null,header:e=>(0,l.jsx)(d.Rr,{value:"Framework",...e})}),P.accessor(e=>e.children,{id:"children",cell:e=>{var t;return(null===(t=(0,f.Mq)(e.getValue()))||void 0===t?void 0:t.length)?(0,l.jsx)(d.WP,{suffix:"Children",value:(0,f.Mq)(e.getValue()),...e}):(0,l.jsx)(d.G3,{value:"Unassigned"})},header:e=>(0,l.jsx)(d.Rr,{value:"Children",...e}),meta:{showHeaderMenu:!0}}),a&&P.accessor(e=>e.disabled,{id:"enable",cell:f.PS,header:e=>(0,l.jsx)(d.Rr,{value:"Enable",...e}),meta:{disableRowClick:!0}})].filter(Boolean),[a]),B=(0,c.b7)({getCoreRowModel:(0,o.sC)(),getGroupedRowModel:(0,o.qe)(),getExpandedRowModel:(0,o.rV)(),columns:D,manualPagination:!0,data:q,state:{expanded:!0},columnResizeMode:"onChange"});return V||e?(0,l.jsx)(d.I4,{rowHeight:36,numRows:15}):(0,l.jsx)("div",{children:(0,l.jsxs)(i.kCb,{flex:1,direction:"column",overflow:"auto",children:[a&&(0,l.jsx)(d.Q$,{children:(0,l.jsx)(i.Ugi,{alignItems:"center",spacing:4,marginLeft:"auto",children:(0,l.jsx)(p(),{href:"".concat(x.IT,"/new"),passHref:!0,legacyBehavior:!0,children:(0,l.jsx)(i.wpx,{type:"primary","data-testid":"add-privacy-notice-btn",children:"Add a privacy notice +"})})})}),(0,l.jsx)(d.ZK,{tableInstance:B,onRowClick:a?e=>{let{id:l}=e;a&&t.push("".concat(x.IT,"/").concat(l))}:void 0,emptyTableNotice:(0,l.jsx)(C,{})}),(0,l.jsx)(d.s8,{totalRows:Q||0,pageSizes:s,setPageSize:u,onPreviousPageClick:R,isPreviousPageDisabled:T||I,onNextPageClick:N,isNextPageDisabled:z||I,startRange:E,endRange:_})]})})};var T=()=>(0,l.jsxs)(s.Z,{title:"Privacy notices",children:[(0,l.jsx)(r.Z,{heading:"Privacy Notices",children:(0,l.jsx)(i.xvT,{fontSize:"sm",mb:8,width:{base:"100%",lg:"50%"},children:"Manage the privacy notices and mechanisms that are displayed to your users based on their location, what information you collect about them, and how you use that data."})}),(0,l.jsx)(i.xuv,{"data-testid":"privacy-notices-page",children:(0,l.jsx)(R,{})})]})}},function(e){e.O(0,[6853,2888,9774,179],function(){return e(e.s=81575)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1285],{63641:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/properties",function(){return i(63063)}])},63063:function(e,n,i){"use strict";i.r(n);var r=i(24246),s=i(96306),t=i(77213),o=i(58754),a=i(25783);n.default=()=>(0,r.jsxs)(t.Z,{title:"Properties",children:[(0,r.jsx)(o.Z,{heading:"Properties",children:(0,r.jsx)(s.xvT,{fontSize:"sm",width:{base:"100%",lg:"60%"},children:"Review and manage your properties below. Properties are the locations you have configured for consent management such as a website or mobile app."})}),(0,r.jsx)(a.V,{})]})}},function(e){e.O(0,[2040,5783,2888,9774,179],function(){return e(e.s=63641)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1285],{63641:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/properties",function(){return i(63063)}])},63063:function(e,n,i){"use strict";i.r(n);var r=i(24246),s=i(98227),t=i(77213),o=i(58754),a=i(25783);n.default=()=>(0,r.jsxs)(t.Z,{title:"Properties",children:[(0,r.jsx)(o.Z,{heading:"Properties",children:(0,r.jsx)(s.xvT,{fontSize:"sm",width:{base:"100%",lg:"60%"},children:"Review and manage your properties below. Properties are the locations you have configured for consent management such as a website or mobile app."})}),(0,r.jsx)(a.V,{})]})}},function(e){e.O(0,[2040,5783,2888,9774,179],function(){return e(e.s=63641)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3422],{80594:function(e){e.exports=function(e,a){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==a(e[n],n,e););return e}},52033:function(e,a,n){var r=n(26194),t=n(26789)(r);e.exports=t},49819:function(e,a,n){var r=n(18911)();e.exports=r},26194:function(e,a,n){var r=n(49819),t=n(50098);e.exports=function(e,a){return e&&r(e,a,t)}},62079:function(e,a,n){var r=n(31137);e.exports=function(e){return"function"==typeof e?e:r}},26789:function(e,a,n){var r=n(80068);e.exports=function(e,a){return function(n,t){if(null==n)return n;if(!r(n))return e(n,t);for(var i=n.length,o=a?i:-1,s=Object(n);(a?o--:++o<i)&&!1!==t(s[o],o,s););return n}}},18911:function(e){e.exports=function(e){return function(a,n,r){for(var t=-1,i=Object(a),o=r(a),s=o.length;s--;){var l=o[e?s:++t];if(!1===n(i[l],l,i))break}return a}}},47003:function(e,a,n){var r=n(80594),t=n(52033),i=n(62079),o=n(19785);e.exports=function(e,a){return(o(e)?r:t)(e,i(a))}},15806:function(e,a,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/reporting",function(){return n(45113)}])},35287:function(e,a,n){"use strict";var r=n(24246),t=n(98227),i=n(88038),o=n.n(i);n(27378),a.Z=e=>{let{children:a,title:n,fullHeight:i,fullWidth:s,mainProps:l}=e;return(0,r.jsxs)(t.kCb,{"data-testid":n,direction:"column",height:i?"100vh":"calc(100vh - 48px)",width:s?"100vw":"calc(100vw - 240px)",children:[(0,r.jsxs)(o(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsx)(t.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...l,children:a})]})}},58754:function(e,a,n){"use strict";var r=n(24246),t=n(98227),i=n(70788);a.Z=e=>{let{heading:a,breadcrumbItems:n,isSticky:o=!0,children:s,rightContent:l,style:_,...c}=e;return(0,r.jsxs)("div",{...c,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",..._}:{paddingBottom:"24px",..._},children:[(0,r.jsxs)(t.jqI,{justify:"space-between",children:["string"==typeof a?(0,r.jsx)(t.lQT,{className:n||s?"pb-4":void 0,level:1,"data-testid":"page-heading",children:a}):a,l&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,r.jsx)(i.m,{className:s?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),s]})}},70788:function(e,a,n){"use strict";n.d(a,{m:function(){return _}});var r=n(24246),t=n(98227),i=n(79894),o=n.n(i),s=n(27378);let{Text:l}=t.AntTypography,_=e=>{let{items:a,...n}=e,i=(0,s.useMemo)(()=>null==a?void 0:a.map((e,n)=>{let i=n===a.length-1,s={...e},_=s.onClick&&!s.href;return("string"==typeof s.title&&(s.title=(0,r.jsx)(l,{style:{color:"inherit",maxWidth:i?void 0:400},ellipsis:!i,id:i?"breadcrumb-current-page":void 0,children:s.title})),_)?s.title=(0,r.jsx)(t.wpx,{type:"text",size:"small",icon:s.icon,onClick:s.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:s.title}):(s.icon&&(s.title=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:s.icon}),s.title]})),s.href&&s.title&&(s.title=(0,r.jsx)(o(),{href:s.href,className:"ant-breadcrumb-link",children:s.title}),delete s.href)),s}),[a]);return(0,r.jsx)(t.zrq,{items:i,...n})}},8411:function(e,a,n){"use strict";n.d(a,{NA:function(){return i},Z8:function(){return t}});var r=n(65735);let t={[r._F.ER]:"Eritrea",[r._F.DJ]:"Djibouti",[r._F.MR]:"Mauritania",[r._F.NA]:"Namibia",[r._F.GH]:"Ghana",[r._F.SS]:"South Sudan",[r._F.SC]:"Seychelles",[r._F.IO]:"British Indian Ocean Territory",[r._F.GQ]:"Equatorial Guinea",[r._F.AO]:"Angola",[r._F.CG]:"Republic of the Congo",[r._F.BW]:"Botswana",[r._F.BI]:"Burundi",[r._F.DZ]:"Algeria",[r._F.TD]:"Chad",[r._F.NG]:"Nigeria",[r._F.TZ]:"Tanzania",[r._F.EH]:"Western Sahara",[r._F.SN]:"Senegal",[r._F.LR]:"Liberia",[r._F.ZA]:"South Africa",[r._F.CV]:"Cape Verde",[r._F.GM]:"Gambia",[r._F.SD]:"Sudan",[r._F.KM]:"Comoros",[r._F.SZ]:"Eswatini",[r._F.UG]:"Uganda",[r._F.MG]:"Madagascar",[r._F.RW]:"Rwanda",[r._F.CD]:"DR Congo",[r._F.CM]:"Cameroon",[r._F.SH]:"Saint Helena, Ascension and Tristan da Cunha",[r._F.TG]:"Togo",[r._F.MU]:"Mauritius",[r._F.NE]:"Niger",[r._F.BJ]:"Benin",[r._F.EG]:"Egypt",[r._F.LS]:"Lesotho",[r._F.ET]:"Ethiopia",[r._F.MA]:"Morocco",[r._F.YT]:"Mayotte",[r._F.BF]:"Burkina Faso",[r._F.RE]:"R\xe9union",[r._F.ST]:"S\xe3o Tom\xe9 and Pr\xedncipe",[r._F.CF]:"Central African Republic",[r._F.MZ]:"Mozambique",[r._F.MW]:"Malawi",[r._F.ML]:"Mali",[r._F.ZM]:"Zambia",[r._F.LY]:"Libya",[r._F.GW]:"Guinea-Bissau",[r._F.SO]:"Somalia",[r._F.KE]:"Kenya",[r._F.GN]:"Guinea",[r._F.ZW]:"Zimbabwe",[r._F.TN]:"Tunisia",[r._F.SL]:"Sierra Leone",[r._F.GA]:"Gabon",[r._F.CI]:"Ivory Coast",[r._F.JO]:"Jordan",[r._F.PK]:"Pakistan",[r._F.KP]:"North Korea",[r._F.MO]:"Macau",[r._F.AM]:"Armenia",[r._F.SY]:"Syria",[r._F.TJ]:"Tajikistan",[r._F.SA]:"Saudi Arabia",[r._F.KR]:"South Korea",[r._F.NP]:"Nepal",[r._F.PH]:"Philippines",[r._F.IQ]:"Iraq",[r._F.LB]:"Lebanon",[r._F.MN]:"Mongolia",[r._F.PS]:"Palestine",[r._F.YE]:"Yemen",[r._F.JP]:"Japan",[r._F.KZ]:"Kazakhstan",[r._F.LK]:"Sri Lanka",[r._F.MM]:"Myanmar",[r._F.KG]:"Kyrgyzstan",[r._F.CN]:"China",[r._F.AF]:"Afghanistan",[r._F.OM]:"Oman",[r._F.IN]:"India",[r._F.LA]:"Laos",[r._F.UZ]:"Uzbekistan",[r._F.MV]:"Maldives",[r._F.ID]:"Indonesia",[r._F.VN]:"Vietnam",[r._F.MY]:"Malaysia",[r._F.TW]:"Taiwan",[r._F.KH]:"Cambodia",[r._F.AE]:"United Arab Emirates",[r._F.HK]:"Hong Kong",[r._F.GE]:"Georgia (Country)",[r._F.BD]:"Bangladesh",[r._F.KW]:"Kuwait",[r._F.TM]:"Turkmenistan",[r._F.QA]:"Qatar",[r._F.BH]:"Bahrain",[r._F.BN]:"Brunei",[r._F.TH]:"Thailand",[r._F.BT]:"Bhutan",[r._F.SG]:"Singapore",[r._F.IL]:"Israel",[r._F.AZ]:"Azerbaijan",[r._F.TL]:"Timor-Leste",[r._F.IR]:"Iran",[r._F.TR]:"Turkey",[r._F.MK]:"North Macedonia",[r._F.IE]:"Ireland",[r._F.DK]:"Denmark",[r._F.SK]:"Slovakia",[r._F.MD]:"Moldova",[r._F.AX]:"\xc5land Islands",[r._F.PL]:"Poland",[r._F.BA]:"Bosnia and Herzegovina",[r._F.SM]:"San Marino",[r._F.CZ]:"Czechia",[r._F.EE]:"Estonia",[r._F.XK]:"Kosovo",[r._F.FO]:"Faroe Islands",[r._F.SJ]:"Svalbard and Jan Mayen",[r._F.GG]:"Guernsey",[r._F.FR]:"France",[r._F.NL]:"Netherlands",[r._F.FI]:"Finland",[r._F.PT]:"Portugal",[r._F.DE]:"Germany",[r._F.MT]:"Malta",[r._F.JE]:"Jersey",[r._F.IS]:"Iceland",[r._F.ES]:"Spain",[r._F.GI]:"Gibraltar",[r._F.NO]:"Norway",[r._F.CY]:"Cyprus",[r._F.RS]:"Serbia",[r._F.LT]:"Lithuania",[r._F.MC]:"Monaco",[r._F.LU]:"Luxembourg",[r._F.UA]:"Ukraine",[r._F.IM]:"Isle of Man",[r._F.RO]:"Romania",[r._F.BE]:"Belgium",[r._F.SE]:"Sweden",[r._F.ME]:"Montenegro",[r._F.LV]:"Latvia",[r._F.VA]:"Vatican City",[r._F.AT]:"Austria",[r._F.AL]:"Albania",[r._F.LI]:"Liechtenstein",[r._F.GR]:"Greece",[r._F.IT]:"Italy",[r._F.AD]:"Andorra",[r._F.GB]:"United Kingdom",[r._F.RU]:"Russia",[r._F.SI]:"Slovenia",[r._F.BY]:"Belarus",[r._F.CH]:"Switzerland",[r._F.HU]:"Hungary",[r._F.BG]:"Bulgaria",[r._F.HR]:"Croatia",[r._F.TC]:"Turks and Caicos Islands",[r._F.CW]:"Cura\xe7ao",[r._F.GP]:"Guadeloupe",[r._F.UM]:"United States Minor Outlying Islands",[r._F.GT]:"Guatemala",[r._F.PM]:"Saint Pierre and Miquelon",[r._F.BQ]:"Caribbean Netherlands",[r._F.GL]:"Greenland",[r._F.SX]:"Sint Maarten",[r._F.PA]:"Panama",[r._F.AW]:"Aruba",[r._F.MQ]:"Martinique",[r._F.AG]:"Antigua and Barbuda",[r._F.BM]:"Bermuda",[r._F.CU]:"Cuba",[r._F.GD]:"Grenada",[r._F.NI]:"Nicaragua",[r._F.LC]:"Saint Lucia",[r._F.KN]:"Saint Kitts and Nevis",[r._F.DO]:"Dominican Republic",[r._F.VC]:"Saint Vincent and the Grenadines",[r._F.BZ]:"Belize",[r._F.HT]:"Haiti",[r._F.JM]:"Jamaica",[r._F.BS]:"Bahamas",[r._F.MX]:"Mexico",[r._F.MF]:"Saint Martin",[r._F.SV]:"El Salvador",[r._F.BL]:"Saint Barth\xe9lemy",[r._F.AI]:"Anguilla",[r._F.MS]:"Montserrat",[r._F.VG]:"British Virgin Islands",[r._F.BB]:"Barbados",[r._F.HN]:"Honduras",[r._F.KY]:"Cayman Islands",[r._F.DM]:"Dominica",[r._F.TT]:"Trinidad and Tobago",[r._F.CR]:"Costa Rica",[r._F.SR]:"Suriname",[r._F.CX]:"Christmas Island",[r._F.WS]:"Samoa",[r._F.PF]:"French Polynesia",[r._F.AS]:"American Samoa",[r._F.NC]:"New Caledonia",[r._F.TK]:"Tokelau",[r._F.PW]:"Palau",[r._F.KI]:"Kiribati",[r._F.VU]:"Vanuatu",[r._F.PN]:"Pitcairn Islands",[r._F.CK]:"Cook Islands",[r._F.FJ]:"Fiji",[r._F.PG]:"Papua New Guinea",[r._F.MP]:"Northern Mariana Islands",[r._F.NU]:"Niue",[r._F.TV]:"Tuvalu",[r._F.NF]:"Norfolk Island",[r._F.TO]:"Tonga",[r._F.FM]:"Micronesia",[r._F.SB]:"Solomon Islands",[r._F.NR]:"Nauru",[r._F.WF]:"Wallis and Futuna",[r._F.GU]:"Guam",[r._F.AU]:"Australia",[r._F.NZ]:"New Zealand",[r._F.MH]:"Marshall Islands",[r._F.CC]:"Cocos (Keeling) Islands",[r._F.VE]:"Venezuela",[r._F.PY]:"Paraguay",[r._F.BR]:"Brazil",[r._F.CO]:"Colombia",[r._F.PE]:"Peru",[r._F.CL]:"Chile",[r._F.UY]:"Uruguay",[r._F.AR]:"Argentina",[r._F.GY]:"Guyana",[r._F.BO]:"Bolivia",[r._F.GF]:"French Guiana",[r._F.EC]:"Ecuador",[r._F.FK]:"Falkland Islands",[r._F.US_AL]:"Alabama",[r._F.US_AK]:"Alaska",[r._F.US_AZ]:"Arizona",[r._F.US_AR]:"Arkansas",[r._F.US_CA]:"California",[r._F.US_CO]:"Colorado",[r._F.US_CT]:"Connecticut",[r._F.US_DE]:"Delaware",[r._F.US_DC]:"District of Columbia (DC)",[r._F.US_FL]:"Florida",[r._F.US_GA]:"Georgia",[r._F.US_HI]:"Hawaii",[r._F.US_ID]:"Idaho",[r._F.US_IL]:"Illinois",[r._F.US_IN]:"Indiana",[r._F.US_IA]:"Iowa",[r._F.US_KS]:"Kansas",[r._F.US_KY]:"Kentucky",[r._F.US_LA]:"Louisiana",[r._F.US_ME]:"Maine",[r._F.US_MD]:"Maryland",[r._F.US_MA]:"Massachusetts",[r._F.US_MI]:"Michigan",[r._F.US_MN]:"Minnesota",[r._F.US_MS]:"Mississippi",[r._F.US_MO]:"Missouri",[r._F.US_MT]:"Montana",[r._F.US_NE]:"Nebraska",[r._F.US_NV]:"Nevada",[r._F.US_NH]:"New Hampshire",[r._F.US_NJ]:"New Jersey",[r._F.US_NM]:"New Mexico",[r._F.US_NY]:"New York",[r._F.US_NC]:"North Carolina",[r._F.US_ND]:"North Dakota",[r._F.US_OH]:"Ohio",[r._F.US_OK]:"Oklahoma",[r._F.US_OR]:"Oregon",[r._F.US_PA]:"Pennsylvania",[r._F.US_PR]:"Puerto Rico",[r._F.US_RI]:"Rhode Island",[r._F.US_SC]:"South Carolina",[r._F.US_SD]:"South Dakota",[r._F.US_TN]:"Tennessee",[r._F.US_TX]:"Texas",[r._F.US_UT]:"Utah",[r._F.US_VA]:"Virginia",[r._F.US_VI]:"United States Virgin Islands",[r._F.US_VT]:"Vermont",[r._F.US_WA]:"Washington",[r._F.US_WV]:"West Virginia",[r._F.US_WI]:"Wisconsin",[r._F.US_WY]:"Wyoming",[r._F.CA_AB]:"Alberta",[r._F.CA_BC]:"British Columbia",[r._F.CA_MB]:"Manitoba",[r._F.CA_NB]:"New Brunswick",[r._F.CA_NL]:"Newfoundland and Labrador",[r._F.CA_NS]:"Nova Scotia",[r._F.CA_ON]:"Ontario",[r._F.CA_PE]:"Prince Edward Island",[r._F.CA_QC]:"Quebec",[r._F.CA_SK]:"Saskatchewan",[r._F.CA_NT]:"Northwest Territories",[r._F.CA_NU]:"Nunavut",[r._F.CA_YT]:"Yukon",[r._F.CA]:"Canada",[r._F.US]:"United States",[r._F.MEXICO_CENTRAL_AMERICA]:"Mexico and Central America",[r._F.CARIBBEAN]:"Caribbean",[r._F.EEA]:"European Economic Area (EEA)",[r._F.NON_EEA]:"Non European Economic Area",[r._F.GLOBAL]:"Global"},i=new Map(Object.entries(t));Object.entries(t).map(e=>({value:e[0],label:e[1]}))},45113:function(e,a,n){"use strict";n.r(a),n.d(a,{default:function(){return V}});var r=n(24246),t=n(59003),i=n(92222),o=n(27693),s=n.n(o),l=n(98227),_=n(27378),c=n(35287),d=n(17245),u=n(58754);let F=e=>{let{disableNext:a,pagination:n}=e;return(0,r.jsxs)(l.jqI,{gap:"middle",align:"center",justify:"right",children:[(0,r.jsx)(l.wpx,{onClick:n.previousPage,disabled:1===n.pageIndex,icon:(0,r.jsx)(l.PJP.s$$,{"aria-hidden":!0}),"aria-label":"Previous"}),(0,r.jsx)("span",{"aria-label":"Page ".concat(n.pageIndex),children:n.pageIndex}),(0,r.jsx)(l.wpx,{onClick:n.nextPage,disabled:a,icon:(0,r.jsx)(l.PJP._Qn,{"aria-hidden":!0}),"aria-label":"Next"}),(0,r.jsx)(l.WPr,{className:"w-auto",value:n.pageSize,onChange:n.updatePageSize,options:n.pageSizeOptions.map(e=>({label:e,value:e})),labelRender:e=>{let{value:a}=e;return(0,r.jsxs)("span",{children:[a," / page"]})},"aria-label":"Select page size"})]})};var p=n(47935),h=n(46628),m=n(78780);let S=e=>{var a,n;return null==e?void 0:null===(n=e.startOf("day"))||void 0===n?void 0:null===(a=n.utc())||void 0===a?void 0:a.toISOString()},g=e=>{var a,n;return null==e?void 0:null===(n=e.endOf("day"))||void 0===n?void 0:null===(a=n.utc())||void 0===a?void 0:a.toISOString()},{useLazyDownloadReportQuery:x,useGetAllHistoricalPrivacyPreferencesQuery:C,useLazyGetCurrentPrivacyPreferencesQuery:j}=m.u.injectEndpoints({endpoints:e=>({getCurrentPrivacyPreferences:e.query({query:e=>{let{search:a}=e;return{url:"current-privacy-preferences",params:{email:a,phone_number:a,fides_user_device_id:a,external_id:a}}},providesTags:["Current Privacy Preferences"]}),downloadReport:e.query({query:e=>{let{startDate:a,endDate:n}=e;return{url:"plus/consent_reporting",params:{created_gt:S(a),created_lt:g(n),download_csv:"true"},responseHandler:"content-type"}},providesTags:["Consent Reporting Export"]}),getAllHistoricalPrivacyPreferences:e.query({query:e=>{let{page:a,size:n,startDate:r,endDate:t,includeTotal:i=!0}=e;return{url:"historical-privacy-preferences",params:{page:a,size:n,request_timestamp_gt:S(r),request_timestamp_lt:g(t),include_total:i}}},providesTags:["Consent Reporting"]})})});var v=n(90104),b=n.n(v),f=n(812),A=n(65735);let y={[A.pq.OPT_IN]:"Opt in",[A.pq.OPT_OUT]:"Opt out",[A.pq.ACKNOWLEDGE]:"Acknowledge",[A.pq.TCF]:"TCF"},N={[A.pq.OPT_IN]:l.tAb.SUCCESS,[A.pq.OPT_OUT]:l.tAb.ERROR,[A.pq.ACKNOWLEDGE]:l.tAb.DEFAULT,[A.pq.TCF]:l.tAb.SANDSTONE},I={[A.jP.ACCEPT]:"Accept",[A.jP.BUTTON]:"Button",[A.jP.DISMISS]:"Dismiss",[A.jP.GPC]:"GPC",[A.jP.REJECT]:"Reject",[A.jP.SAVE]:"Save",[A.jP.SCRIPT]:"Script",[A.jP.INDIVIDUAL_NOTICE]:"Individual Notice",[A.jP.ACKNOWLEDGE]:"Acknowledge",[A.jP.EXTERNAL_PROVIDER]:"External Provider"},M={[A.Tz.API]:"API",[A.Tz.BANNER_AND_MODAL]:"Banner and Modal",[A.Tz.MODAL]:"Modal",[A.Tz.OVERLAY]:"Overlay",[A.Tz.PRIVACY_CENTER]:"Privacy Center",[A.Tz.TCF_OVERLAY]:"TCF Overlay"},P=(0,i.Cl)();var T=()=>(0,_.useMemo)(()=>[P.accessor(e=>e.notice_name,{id:"notice_name",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(p.G3,{value:a()})},header:e=>(0,r.jsx)(p.Rr,{value:"Privacy notice",...e}),enableSorting:!1}),P.accessor(e=>e.notice_key,{id:"notice_key",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(p.G3,{value:a()})},header:e=>(0,r.jsx)(p.Rr,{value:"Notice Key",...e}),enableSorting:!1}),P.accessor(e=>e.preference,{id:"preference",cell:e=>{let{getValue:a}=e,n=a(),t=n&&y[n]||n,i=n&&N[n]||"";return(0,r.jsx)(p.A4,{color:i,value:t})},header:e=>(0,r.jsx)(p.Rr,{value:"Preference",...e}),enableSorting:!1,size:100}),P.accessor(e=>e.privacy_notice_history_id,{id:"privacy_notice_history_id",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(p.G3,{value:a()})},header:e=>(0,r.jsx)(p.Rr,{value:"Privacy Notice History Id",...e}),enableSorting:!1})],[]),E=n(47003),R=n.n(E);let U=(0,i.Cl)();var w=()=>{let e=(0,_.useCallback)(e=>{let a=[];if(e){let{preferences:n,...r}=e;R()(r,(e,n)=>{e&&e.forEach(e=>{a.push({key:n,id:e.id,preference:e.preference})})})}return a},[]),a=(0,_.useCallback)(e=>e.filter(e=>!(e.key.startsWith("system_")||e.key.startsWith("vendor_"))),[]);return{tcfColumns:(0,_.useMemo)(()=>[U.accessor(e=>e.key,{id:"key",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(p.G3,{value:a()})},header:e=>(0,r.jsx)(p.Rr,{value:"Type",...e}),enableSorting:!1}),U.accessor(e=>e.id,{id:"id",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(p.G3,{value:a()})},header:e=>(0,r.jsx)(p.Rr,{value:"ID",...e}),enableSorting:!1}),U.accessor(e=>e.preference,{id:"preference",cell:e=>{let{getValue:a}=e,n=a(),t=n&&y[n]||n,i=n&&N[n]||"";return(0,r.jsx)(p.A4,{color:i,value:t})},header:e=>(0,r.jsx)(p.Rr,{value:"Preference",...e}),enableSorting:!1,size:100})],[]),mapTcfPreferencesToRowColumns:e,filterTcfConsentPreferences:a}},k=e=>{let{isOpen:a,onClose:n}=e,[o,s]=(0,_.useState)(!1),[c,d]=(0,_.useState)(),[u]=j(),F=(0,l.pmc)();(0,_.useEffect)(()=>{a||(d(void 0),s(!1))},[a]);let h=async e=>{s(!0);let{data:a,isError:n,error:r}=await u({search:e}),t=r&&"status"in r&&(null==r?void 0:r.status);n&&404!==t?F({status:"error",description:(0,f.e$)(r,"A problem occurred while looking up the preferences.")}):d(a||null),s(!1)},m=T(),S=(null==c?void 0:c.preferences)||[],g=!b()(S),x=(0,t.b7)({getCoreRowModel:(0,i.sC)(),data:S,columns:m,getRowId:e=>"".concat(e.privacy_notice_history_id),manualPagination:!0}),{tcfColumns:C,mapTcfPreferencesToRowColumns:v,filterTcfConsentPreferences:A}=w(),y=A(v(c)),N=!b()(y),I=(0,t.b7)({getCoreRowModel:(0,i.sC)(),data:y,columns:C,getRowId:e=>"".concat(e.key,"-").concat(e.id),manualPagination:!0});return(0,r.jsxs)(l.u_l,{id:"consent-lookup-modal",isOpen:a,onClose:n,size:"6xl",returnFocusOnClose:!1,isCentered:!0,children:[(0,r.jsx)(l.ZAr,{}),(0,r.jsxs)(l.hzk,{children:[(0,r.jsx)(l.olH,{}),(0,r.jsx)(l.xBx,{pb:2,children:"Consent preference lookup"}),(0,r.jsxs)(l.fef,{children:[(0,r.jsx)(l.AntTypography.Paragraph,{children:"Use this search to look up an individual's latest consent record. You can search by phone number, email, external ID or device ID to retrieve the most recent consent preference associated with that exact identifier."}),(0,r.jsxs)(l.AntTypography.Paragraph,{children:[(0,r.jsx)("strong",{children:"Note:"})," This is an exact match search—partial entries or similar results will not be returned. This lookup retrieves only the most recent consent preference, not the full consent history."]}),(0,r.jsx)(l.PPS,{layout:"vertical",className:"w-1/2",children:(0,r.jsx)(l.PPS.Item,{label:"Subject search",className:"mb-4 mt-6",children:(0,r.jsx)(l.AntInput.Search,{"data-testid":"subject-search-input",placeholder:"Enter email, phone number, external ID or device ID",enterButton:"Search",onSearch:h,loading:o})})}),(0,r.jsxs)("div",{className:"mb-4",children:[(!N||g)&&(0,r.jsx)(p.ZK,{tableInstance:x,emptyTableNotice:(0,r.jsx)(l.oj8,{description:void 0===c?"Search for an email, phone number, or device ID.":"No results found.",image:l.oj8.PRESENTED_IMAGE_SIMPLE,imageStyle:{marginBottom:15}})}),N&&(0,r.jsx)("div",{className:"mt-4",children:(0,r.jsx)(p.ZK,{tableInstance:I})})]})]})]})]})},G=()=>{let e=(0,l.pmc)(),[a,{isFetching:n}]=x();return{downloadReport:async n=>{let{startDate:r,endDate:t}=n,i=await a({startDate:r,endDate:t});if(i.isError)e({status:"error",description:(0,f.e$)(i.error,"A problem occurred while generating your consent report. Please try again.")});else{let e=document.createElement("a"),a=new Blob([i.data],{type:"text/csv"}),n=window.URL.createObjectURL(a);e.href=n,e.download="consent-reports.csv",e.click(),window.URL.revokeObjectURL(n)}},isDownloadingReport:n}},O=e=>{let{isOpen:a,onClose:n,startDate:t,endDate:i}=e,{downloadReport:o,isDownloadingReport:s}=G(),_=async()=>{await o({startDate:t,endDate:i}),n()};return(0,r.jsxs)(l.u_l,{id:"consent-report-download-modal",isOpen:a,onClose:n,size:"xl",returnFocusOnClose:!1,isCentered:!0,children:[(0,r.jsx)(l.ZAr,{}),(0,r.jsxs)(l.hzk,{children:[(0,r.jsx)(l.olH,{}),(0,r.jsx)(l.xBx,{pb:2,children:"Download consent report"}),(0,r.jsxs)(l.fef,{children:[(0,r.jsx)(l.AntTypography.Paragraph,{children:"The downloaded CSV may differ from the UI in Fides, including column order and naming."}),(0,r.jsx)(l.AntTypography.Paragraph,{children:'For large datasets, file generation may take a few minutes after selecting "Download".'}),(0,r.jsx)(l.jqI,{justify:"flex-end",children:(0,r.jsx)(l.wpx,{loading:s,onClick:_,"data-testid":"download-report-btn",type:"primary",className:"mb-2",children:"Download"})})]})]})]})},B=e=>{let{isOpen:a,onClose:n,tcfPreferences:o}=e,{tcfColumns:s,mapTcfPreferencesToRowColumns:_,filterTcfConsentPreferences:c}=w(),d=c(_(o)),u=(0,t.b7)({getCoreRowModel:(0,i.sC)(),data:d||[],columns:s,getRowId:e=>"".concat(e.key,"-").concat(e.id),manualPagination:!0});return(0,r.jsxs)(l.u_l,{id:"consent-lookup-modal",isOpen:a,onClose:n,size:"4xl",returnFocusOnClose:!1,isCentered:!0,children:[(0,r.jsx)(l.ZAr,{}),(0,r.jsxs)(l.hzk,{"data-testid":"consent-tcf-detail-modal",children:[(0,r.jsx)(l.olH,{}),(0,r.jsx)(l.xBx,{pb:2,children:"TCF Consent Details"}),(0,r.jsx)(l.fef,{children:(0,r.jsx)("div",{className:"mb-4",children:(0,r.jsx)(p.ZK,{tableInstance:u,emptyTableNotice:(0,r.jsx)(l.oj8,{description:" No data found",image:l.oj8.PRESENTED_IMAGE_SIMPLE,imageStyle:{marginBottom:15}})})})})]})]})},L=n(8411),D=n(72625);let K=(0,i.Cl)();var z=e=>{let{onTcfDetailViewClick:a}=e;return(0,_.useMemo)(()=>[K.accessor(e=>e.fides_user_device_id,{id:"fides_user_device_id",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(p.G3,{value:a()})},header:e=>(0,r.jsx)(p.Rr,{value:"User device ID",...e}),enableSorting:!1}),K.accessor(e=>e.user_geography,{id:"user_geography",cell:e=>{let{getValue:a}=e,n=a(),t=n&&(0,l.QCN)(n),i=n&&L.Z8[n]||n,o=t?(0,l.c1K)({isoEntry:t}):i;return(0,r.jsx)(p.G3,{value:o})},header:e=>(0,r.jsx)(p.Rr,{value:"User geography",...e}),enableSorting:!1}),K.accessor(e=>e.preference,{id:"preference",cell:e=>{let{getValue:n,row:t}=e,i=n(),o=i&&y[i]||i,s=i&&N[i]||void 0;return"tcf"===i&&t.original.tcf_preferences?(0,r.jsx)(l.j8w,{color:s,closeIcon:(0,r.jsx)(l.PJP.daM,{}),closeButtonLabel:"View details",onClose:()=>a(t.original.tcf_preferences),children:o}):(0,r.jsx)(p.A4,{color:s,value:o})},header:e=>(0,r.jsx)(p.Rr,{value:"Preference",...e}),enableSorting:!1,size:100}),K.accessor(e=>e.notice_name,{id:"notice_name",cell:e=>{let{getValue:a}=e,n=a(),t="tcf"===n?n.toUpperCase():n;return(0,r.jsx)(p.G3,{value:t})},header:e=>(0,r.jsx)(p.Rr,{value:"Privacy notice",...e}),enableSorting:!1}),K.accessor(e=>e.method,{id:"method",cell:e=>{let{getValue:a}=e,n=a(),t=n&&I[n]||n;return(0,r.jsx)(p.G3,{value:t})},header:e=>(0,r.jsx)(p.Rr,{value:"Method",...e}),enableSorting:!1,size:100}),K.accessor(e=>e.request_origin,{id:"request_origin",cell:e=>{let{getValue:a}=e,n=a(),t=n&&M[n]||n;return(0,r.jsx)(p.G3,{value:t})},header:e=>(0,r.jsx)(p.Rr,{value:"Request origin",...e}),enableSorting:!1,size:120}),K.accessor(e=>e.request_timestamp,{id:"request_timestamp",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(D.Cy,{time:a()})},header:e=>(0,r.jsx)(p.Rr,{value:"Request timestamp",...e}),size:120}),K.accessor(e=>e.url_recorded,{id:"url_recorded",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(p.G3,{value:a()})},header:e=>(0,r.jsx)(p.Rr,{value:"Recorded URL",...e})}),K.accessor(e=>e.external_id,{id:"external_id",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(p.G3,{value:a()})},header:e=>(0,r.jsx)(p.Rr,{value:"External ID",...e}),enableSorting:!1}),K.accessor(e=>e.email,{id:"email",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(p.G3,{value:(0,r.jsx)(l.AntTypography.Link,{href:"mailto:".concat(a()),children:a()})})},header:e=>(0,r.jsx)(p.Rr,{value:"Email",...e}),enableSorting:!1}),K.accessor(e=>e.id,{id:"id",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(p.G3,{value:a()})},header:e=>(0,r.jsx)(p.Rr,{value:"Preference ID",...e}),enableSorting:!1})],[a])},V=()=>{var e,a;let n=(0,d.h0)(),{pageIndex:o,pageSize:m,updatePageIndex:S}=n,g=(0,_.useMemo)(()=>s()(),[]),[x,j]=(0,_.useState)(null),[v,b]=(0,_.useState)(null),[f,A]=(0,_.useState)(!1),[y,N]=(0,_.useState)(!1),[I,M]=(0,_.useState)(!1),[P,T]=(0,_.useState)(),E=(0,l.pmc)(),{data:R,isLoading:U,isFetching:w,refetch:G}=C({page:o,size:m,startDate:x,endDate:v,includeTotal:!1}),{items:L}=(0,_.useMemo)(()=>R||{items:[],total:0,pages:0},[R]),D=z({onTcfDetailViewClick:e=>{M(!0),T(e)}}),K=(0,t.b7)({getCoreRowModel:(0,i.sC)(),data:L,columns:D,getRowId:e=>"".concat(e.id),manualPagination:!0}),V=async()=>{S(1),await G(),E((0,h.t5)("Consent report refreshed successfully.","Report Refreshed"))};return(0,r.jsxs)(c.Z,{title:"Consent reporting",children:[(0,r.jsx)(u.Z,{heading:"Consent reporting",rightContent:(0,r.jsx)(l.wpx,{type:"primary",onClick:V,loading:w,children:"Refresh"})}),(0,r.jsx)("div",{"data-testid":"consent-reporting",className:"overflow-auto",children:(0,r.jsxs)(l.jqI,{vertical:!0,gap:"middle",children:[U?(0,r.jsx)("div",{className:"border p-2",children:(0,r.jsx)(p.I4,{rowHeight:26,numRows:10})}):(0,r.jsxs)("div",{children:[(0,r.jsxs)(p.Q$,{children:[(0,r.jsx)(l.gwi,{placeholder:["From","To"],maxDate:g,"data-testid":"input-date-range",onChange:e=>{j(e&&e[0]),b(e&&e[1])}}),(0,r.jsxs)(l.jqI,{gap:12,children:[(0,r.jsx)(l.wpx,{icon:(0,r.jsx)(l.PJP.UWx,{}),"data-testid":"download-btn",onClick:()=>N(!0),"aria-label":"Download Consent Report"}),(0,r.jsx)(l.S0p,{menu:{items:[{key:"1",label:(0,r.jsx)("span",{"data-testid":"consent-preference-lookup-btn",children:"Consent preference lookup"}),onClick:()=>A(!0)}]},overlayStyle:{width:"220px"},trigger:["click"],children:(0,r.jsx)(l.wpx,{"aria-label":"Menu",icon:(0,r.jsx)(l.PJP.r43,{}),"data-testid":"consent-reporting-dropdown-btn"})})]})]}),(0,r.jsx)(p.ZK,{tableInstance:K,emptyTableNotice:(0,r.jsx)(l.oj8,{description:"No results.",image:l.oj8.PRESENTED_IMAGE_SIMPLE,styles:{image:{marginBottom:15}}})})]}),(0,r.jsx)(F,{disableNext:(null!==(a=null==R?void 0:null===(e=R.items)||void 0===e?void 0:e.length)&&void 0!==a?a:0)<m,pagination:n})]})}),(0,r.jsx)(k,{isOpen:f,onClose:()=>A(!1)}),(0,r.jsx)(O,{isOpen:y,onClose:()=>N(!1),startDate:x,endDate:v}),(0,r.jsx)(B,{isOpen:I,onClose:()=>{M(!1),T(void 0)},tcfPreferences:P})]})}}},function(e){e.O(0,[431,7245,2888,9774,179],function(){return e(e.s=15806)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9851],{66393:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent",function(){return i(78220)}])},77213:function(e,n,i){"use strict";i.d(n,{Z:function(){return f}});var t=i(24246),s=i(96306),r=i(88038),o=i.n(r),a=i(86677);i(27378);var g=i(25980),u=i(90867),c=i(42478),d=i(77830),l=()=>{let e=(0,a.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.AD)},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."," "]})]})})},f=e=>{let{children:n,title:i,padded:r=!0,mainProps:d}=e,f=(0,g.hz)(),y=(0,a.useRouter)(),m="/privacy-requests"===y.pathname||"/datastore-connection"===y.pathname,C=!(f.flags.messagingConfiguration&&m),{data:p}=(0,c.JE)(void 0,{skip:C}),{data:v}=(0,u.PW)(void 0,{skip:C}),h=f.flags.messagingConfiguration&&(!p||!v)&&m;return(0,t.jsxs)(s.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,t.jsxs)(o(),{children:[(0,t.jsxs)("title",{children:["Fides Admin UI - ",i]}),(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:[h?(0,t.jsx)(l,{}):null,n]})]})}},42478:function(e,n,i){"use strict";i.d(n,{FU:function(){return u},JE:function(){return s},Ki:function(){return d},SU:function(){return l},W:function(){return f},h9:function(){return r},jc:function(){return t},qt:function(){return g},sn:function(){return c}});let{useGetEmailInviteStatusQuery:t,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:r,useCreateMessagingConfigurationSecretsMutation:o,useGetMessagingConfigurationDetailsQuery:a,useGetMessagingConfigurationsQuery:g,useGetMessagingConfigurationByKeyQuery:u,useUpdateMessagingConfigurationByKeyMutation:c,useUpdateMessagingConfigurationSecretsByKeyMutation:d,useCreateTestConnectionMessageMutation:l,useDeleteMessagingConfigurationByKeyMutation:f}=i(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,n,i,t)=>{let s=await t({url:"messaging/default/active"});return s.error&&404===s.error.status?{data:null}:s},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},78220:function(e,n,i){"use strict";i.r(n);var t=i(24246),s=i(96306),r=i(86677),o=i(27378),a=i(77213),g=i(77830);n.default=()=>{let e=(0,r.useRouter)();return(0,o.useEffect)(()=>{e.push(g.IT)},[e]),(0,t.jsx)(a.Z,{title:"Consent",children:(0,t.jsx)(s.M5Y,{children:(0,t.jsx)(s.$jN,{})})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=66393)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9851],{66393:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent",function(){return i(78220)}])},77213:function(e,n,i){"use strict";i.d(n,{Z:function(){return f}});var t=i(24246),s=i(98227),r=i(88038),o=i.n(r),a=i(86677);i(27378);var g=i(25980),u=i(90867),c=i(42478),d=i(77830),l=()=>{let e=(0,a.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.AD)},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."," "]})]})})},f=e=>{let{children:n,title:i,padded:r=!0,mainProps:d}=e,f=(0,g.hz)(),y=(0,a.useRouter)(),m="/privacy-requests"===y.pathname||"/datastore-connection"===y.pathname,C=!(f.flags.messagingConfiguration&&m),{data:p}=(0,c.JE)(void 0,{skip:C}),{data:v}=(0,u.PW)(void 0,{skip:C}),h=f.flags.messagingConfiguration&&(!p||!v)&&m;return(0,t.jsxs)(s.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,t.jsxs)(o(),{children:[(0,t.jsxs)("title",{children:["Fides Admin UI - ",i]}),(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:[h?(0,t.jsx)(l,{}):null,n]})]})}},42478:function(e,n,i){"use strict";i.d(n,{FU:function(){return u},JE:function(){return s},Ki:function(){return d},SU:function(){return l},W:function(){return f},h9:function(){return r},jc:function(){return t},qt:function(){return g},sn:function(){return c}});let{useGetEmailInviteStatusQuery:t,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:r,useCreateMessagingConfigurationSecretsMutation:o,useGetMessagingConfigurationDetailsQuery:a,useGetMessagingConfigurationsQuery:g,useGetMessagingConfigurationByKeyQuery:u,useUpdateMessagingConfigurationByKeyMutation:c,useUpdateMessagingConfigurationSecretsByKeyMutation:d,useCreateTestConnectionMessageMutation:l,useDeleteMessagingConfigurationByKeyMutation:f}=i(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,n,i,t)=>{let s=await t({url:"messaging/default/active"});return s.error&&404===s.error.status?{data:null}:s},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},78220:function(e,n,i){"use strict";i.r(n);var t=i(24246),s=i(98227),r=i(86677),o=i(27378),a=i(77213),g=i(77830);n.default=()=>{let e=(0,r.useRouter)();return(0,o.useEffect)(()=>{e.push(g.IT)},[e]),(0,t.jsx)(a.Z,{title:"Consent",children:(0,t.jsx)(s.M5Y,{children:(0,t.jsx)(s.$jN,{})})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=66393)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3296],{92812:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]",function(){return n(93251)}])},93251:function(e,t,n){"use strict";n.r(t);var r=n(24246),c=n(86677),o=n(18225),s=n(77213),a=n(77830),u=n(58754),l=n(25077),i=n(94780),d=n(1315);t.default=()=>{var e,t;let{query:n}=(0,c.useRouter)(),_=n.systemId,f=n.projectUrn,m=n.resourceUrn,{data:p,isLoading:h}=(0,d.rn)(_),j=(0,c.useRouter)(),k=null!==(e=(0,i.X5)(m,"".concat(a.mX,"/").concat(_,"/projects")))&&void 0!==e?e:[];return h?(0,r.jsx)(o.Z,{}):(0,r.jsxs)(s.Z,{title:"Data catalog",children:[(0,r.jsx)(u.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:a.mX},{title:null!==(t=null==p?void 0:p.name)&&void 0!==t?t:null==p?void 0:p.fides_key,href:a.mX},...k]}),(0,r.jsx)(l.Z,{resourceUrn:m,onRowClick:e=>j.push("".concat(a.mX,"/").concat(p.fides_key,"/projects/").concat(f,"/").concat(e.urn))})]})}}},function(e){e.O(0,[8765,431,9278,5163,409,6882,3855,2888,9774,179],function(){return e(e.s=92812)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3296],{92812:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]",function(){return n(93251)}])},93251:function(e,t,n){"use strict";n.r(t);var r=n(24246),c=n(86677),o=n(18225),s=n(77213),a=n(77830),u=n(58754),l=n(25077),i=n(94780),d=n(1315);t.default=()=>{var e,t;let{query:n}=(0,c.useRouter)(),_=n.systemId,f=n.projectUrn,m=n.resourceUrn,{data:p,isLoading:h}=(0,d.rn)(_),j=(0,c.useRouter)(),k=null!==(e=(0,i.X5)(m,"".concat(a.mX,"/").concat(_,"/projects")))&&void 0!==e?e:[];return h?(0,r.jsx)(o.Z,{}):(0,r.jsxs)(s.Z,{title:"Data catalog",children:[(0,r.jsx)(u.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:a.mX},{title:null!==(t=null==p?void 0:p.name)&&void 0!==t?t:null==p?void 0:p.fides_key,href:a.mX},...k]}),(0,r.jsx)(l.Z,{resourceUrn:m,onRowClick:e=>j.push("".concat(a.mX,"/").concat(p.fides_key,"/projects/").concat(f,"/").concat(e.urn))})]})}}},function(e){e.O(0,[431,7245,6372,9682,9330,2888,9774,179],function(){return e(e.s=92812)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7818],{50481:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/projects/[projectUrn]",function(){return n(32065)}])},98800:function(e,t,n){"use strict";var s=n(24246),i=n(98227),a=n(79789);t.Z=e=>{var t;let{dataset:n,onClose:r}=e;return(0,s.jsxs)(i.dys,{isOpen:!!n,onClose:r,size:"md",children:[(0,s.jsx)(i.P1B,{}),(0,s.jsxs)(i.scA,{children:[(0,s.jsx)(i.OXI,{children:(null==n?void 0:n.name)||(null==n?void 0:n.urn)}),(0,s.jsx)(i.cCv,{}),(0,s.jsxs)(i.Ng0,{children:[(0,s.jsx)(a.cB,{text:"Title",mt:0}),(0,s.jsx)(a.XU,{children:null!==(t=null==n?void 0:n.name)&&void 0!==t?t:null==n?void 0:n.urn}),(null==n?void 0:n.description)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.cB,{text:"Description"}),(0,s.jsx)(a.XU,{children:null==n?void 0:n.description})]})]})]})]})}},81406:function(e,t,n){"use strict";var s=n(24246),i=n(98227);t.Z=()=>(0,s.jsxs)(i.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:[(0,s.jsx)(i.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"}),(0,s.jsx)(i.xvT,{fontSize:"sm",children:"You're up to date!"})]})},69172:function(e,t,n){"use strict";var s=n(24246),i=n(92222),a=n(98227),r=n(27378),l=n(47935),o=n(72625),c=n(89200),u=n(5945),d=n(8151);let p=(0,i.Cl)(),g=e=>{let{onDetailClick:t}=e;return(0,s.jsxs)(a.v2r,{children:[(0,s.jsx)(a.j2t,{as:a.wpx,size:"small",type:"text",icon:(0,s.jsx)(a.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"dataset-actions"}),(0,s.jsx)(a.qyq,{children:(0,s.jsx)(a.sNh,{"data-testid":"view-dataset-details",onClick:t,children:"View details"})})]})};t.Z=e=>{let{onDetailClick:t}=e;return(0,r.useMemo)(()=>[p.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(c.Z,{resource:e.row.original}),header:"Dataset"}),p.display({id:"status",cell:e=>{let{row:t}=e;return(0,s.jsx)(u.Z,{status:(0,d.u)(t.original)})},header:"Status"}),p.accessor(e=>e.description,{id:"description",cell:e=>(0,s.jsx)(l.G3,{value:e.getValue()}),header:"Description"}),p.accessor(e=>e.updated_at,{id:"lastUpdated",cell:e=>(0,s.jsx)(o.Cy,{time:e.getValue()}),header:"Updated"}),p.display({id:"actions",cell:e=>{let{row:n}=e;return(0,s.jsx)(g,{onDetailClick:()=>t(n.original)})},size:25,meta:{disableRowClick:!0}})],[t])}},94780:function(e,t,n){"use strict";n.d(t,{X5:function(){return l},pN:function(){return o},sv:function(){return a}});var s=n(24246),i=n(98227);let a=e=>e.split(".")[1],r=[(0,s.jsx)(i.PJP.S9g,{},"layers"),(0,s.jsx)(i.PJP.iA_,{},"table"),(0,s.jsx)(i.PJP.$4y,{style:{transform:"rotate(-90deg)"}},"field")],l=(e,t)=>{if(!e)return[];let n=e.split(".");if(n.length<2)return[];let l=n.splice(0,2).join("."),o=[];return n.reduce((e,s,i)=>{let a=i===n.length-1,c="".concat(e).concat(".").concat(s);return o.push({title:s,href:a?void 0:"".concat(t,"/").concat(l,"/").concat(c),icon:r[i]}),c},l),[{title:a(l),href:"".concat(t,"/").concat(l),icon:(0,s.jsx)(i.PJP.ehp,{})},...o]},o=(e,t)=>{if(!e)return[];let n=e.split(".");if(n.length<2)return[];let s=n.shift(),i=[];return n.reduce((e,s,a)=>{let l=a===n.length-1,o="".concat(e).concat(".").concat(s);return i.push({title:s,href:l?void 0:"".concat(t,"/").concat(o),icon:r[a]}),o},s),i}},7940:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});var s=n(65735);let i=e=>{var t,n,i;return e?e.resource_type?e.resource_type:(null===(t=e.schemas)||void 0===t?void 0:t.length)?s.D$.DATABASE:(null===(n=e.tables)||void 0===n?void 0:n.length)?s.D$.SCHEMA:(null===(i=e.fields)||void 0===i?void 0:i.length)?s.D$.TABLE:s.D$.FIELD:void 0}},98559:function(e,t){"use strict";t.Z=e=>{let{name:t,urn:n,monitor_config_id:s,database_name:i,schema_name:a,table_name:r,top_level_field_name:l,top_level_field_urn:o}=e;if(!l)return t;let c=n.split(".");return o?n.replace("".concat(o).concat("."),""):([s,i,a,r,l].forEach(e=>{if(e){let t=c.indexOf(e);t>-1&&c.splice(t,1)}}),c.join("."))}},36168:function(e,t){"use strict";t.Z=e=>{var t;return!!e.parent_table_urn&&null!==(t=e.sub_field_urns)&&void 0!==t&&!!t.length&&!e.top_level_field_name}},80356:function(e,t,n){"use strict";var s=n(7940),i=n(36168),a=n(65735);t.Z=e=>(0,s.G)(e)!==a.D$.FIELD||(0,i.Z)(e)},32065:function(e,t,n){"use strict";n.r(t);var s=n(24246),i=n(59003),a=n(92222),r=n(98227),l=n(86677),o=n(27378),c=n(77213),u=n(77830),d=n(58754),p=n(47935),g=n(98800),h=n(81406),x=n(69172),f=n(94780),j=n(70675),v=n(1315);let m={items:[],total:0,page:1,size:50,pages:1};t.default=()=>{let{query:e,push:t}=(0,l.useRouter)(),n=e.systemId,_=e.projectUrn,[P,w]=(0,o.useState)(void 0),{data:C,isLoading:D}=(0,v.rn)(n),{PAGE_SIZES:b,pageSize:y,setPageSize:Z,onPreviousPageClick:E,isPreviousPageDisabled:N,onNextPageClick:R,isNextPageDisabled:k,startRange:z,endRange:S,pageIndex:X,setTotalPages:A}=(0,p.oi)(),{isFetching:I,isLoading:T,data:M}=(0,j.z8)({staged_resource_urn:_,page:X,size:y}),{items:U,total:$,pages:B}=(0,o.useMemo)(()=>null!=M?M:m,[M]);(0,o.useEffect)(()=>{A(B)},[B,A]);let J=(0,x.Z)({onDetailClick:e=>w(e)}),O=(0,i.b7)({getCoreRowModel:(0,a.sC)(),getGroupedRowModel:(0,a.qe)(),getExpandedRowModel:(0,a.rV)(),columns:J,manualPagination:!0,data:U,columnResizeMode:"onChange"}),F=!T&&!D&&!I;return(0,s.jsxs)(c.Z,{title:"Data catalog",children:[(0,s.jsx)(d.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:u.mX},{title:(null==C?void 0:C.name)||n,href:u.mX},{title:(0,f.sv)(_),icon:(0,s.jsx)(r.PJP.ehp,{})}]}),!F&&(0,s.jsx)(p.I4,{rowHeight:36,numRows:36}),F&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p.ZK,{tableInstance:O,emptyTableNotice:(0,s.jsx)(h.Z,{}),onRowClick:e=>t("".concat(u.mX,"/").concat(n,"/projects/").concat(_,"/").concat(e.urn,"/"))}),(0,s.jsx)(p.s8,{totalRows:$||0,pageSizes:b,setPageSize:Z,onPreviousPageClick:E,isPreviousPageDisabled:N,onNextPageClick:R,isNextPageDisabled:k,startRange:z,endRange:S}),(0,s.jsx)(g.Z,{dataset:P,onClose:()=>w(void 0)})]})]})}}},function(e){e.O(0,[9682,2888,9774,179],function(){return e(e.s=50481)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[165],{74833:function(e,t,s){var r=s(56127),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},56127:function(e){var t=/\s/;e.exports=function(e){for(var s=e.length;s--&&t.test(e.charAt(s)););return s}},91936:function(e,t,s){var r=s(74833),i=s(11611),n=s(55193),a=0/0,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(n(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var s=l.test(e);return s||c.test(e)?u(e.slice(2),s?2:8):o.test(e)?a:+e}},21865:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/projects",function(){return s(98791)}])},18225:function(e,t,s){"use strict";var r=s(24246),i=s(98227);t.Z=e=>{let{alignment:t="center",...s}=e;return(0,r.jsx)(i.kCb,{boxSize:"full",align:"center",justify:t,children:(0,r.jsx)(i.$jN,{color:"primary",...s})})}},79609:function(e,t,s){"use strict";s.d(t,{N4:function(){return a},UG:function(){return i},xw:function(){return n}});var r=s(54427);let{useGetCatalogSystemsQuery:i,useGetCatalogProjectsQuery:n,useGetCatalogDatasetsQuery:a}=s(78780).u.injectEndpoints({endpoints:e=>({getCatalogSystems:e.query({query:e=>({method:"GET",url:"/plus/data-catalog/system",params:e}),providesTags:["Catalog Systems","System"]}),getCatalogProjects:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/project",params:t}},providesTags:["Discovery Monitor Results"]}),getCatalogDatasets:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/dataset",params:t}},providesTags:["Discovery Monitor Results"]})})});(0,r.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},99763:function(e,t,s){"use strict";var r=s(24246),i=s(98227),n=s(79789),a=s(8151),o=s(61099),l=s(7940),c=s(65735);t.Z=e=>{var t;let{resource:s,onClose:u}=e,d=(0,l.G)(s),g=(0,a.u)(s),x=(d===c.D$.FIELD||d===c.D$.TABLE)&&g===a.e.IN_REVIEW;return(0,r.jsxs)(i.dys,{isOpen:!!s,onClose:u,size:"md",children:[(0,r.jsx)(i.P1B,{}),(0,r.jsxs)(i.scA,{"data-testid":"resource-details",children:[(0,r.jsx)(i.OXI,{children:(null==s?void 0:s.name)||(null==s?void 0:s.urn)}),(0,r.jsx)(i.cCv,{}),(0,r.jsxs)(i.Ng0,{children:[(0,r.jsx)(n.cB,{text:"Title",mt:0}),(0,r.jsx)(n.XU,{children:null!==(t=null==s?void 0:s.name)&&void 0!==t?t:null==s?void 0:s.urn}),(null==s?void 0:s.description)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.cB,{text:"Description"}),(0,r.jsx)(n.XU,{children:null==s?void 0:s.description})]}),x&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.cB,{text:"Data categories"}),(0,r.jsx)(o.Z,{resource:s})]})]})]})]})}},28976:function(e,t,s){"use strict";var r=s(24246),i=s(98227);t.Z=e=>{let{onHideClick:t,onDetailClick:s}=e;return(0,r.jsxs)(i.v2r,{children:[(0,r.jsx)(i.j2t,{as:i.wpx,size:"small",type:"text",icon:(0,r.jsx)(i.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-menu"}),(0,r.jsxs)(i.qyq,{children:[s&&(0,r.jsx)(i.sNh,{onClick:s,"data-testid":"view-resource-details",children:"View details"}),t&&(0,r.jsx)(i.sNh,{onClick:t,"data-testid":"hide-resource",children:"Hide"})]})]})}},98791:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return N}});var r=s(24246),i=s(86677),n=s(18225),a=s(77213),o=s(77830),l=s(58754),c=s(92222),u=s(59003),d=s(98227),g=s(27378),x=s(47935),p=s(72625),m=s(89200),f=s(5945),j=s(79609),h=s(99763),v=s(28976),y=s(8151);let C={items:[],total:0,page:1,size:50,pages:1},w=()=>(0,r.jsx)(d.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,r.jsx)(d.gCW,{children:(0,r.jsx)(d.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"})})}),_=(0,c.Cl)();var R=e=>{let{systemKey:t,monitorConfigIds:s}=e,[n,a]=(0,g.useState)({}),{PAGE_SIZES:l,pageSize:d,setPageSize:R,onPreviousPageClick:b,isPreviousPageDisabled:N,onNextPageClick:D,isNextPageDisabled:E,startRange:P,endRange:S,pageIndex:k,setTotalPages:I}=(0,x.oi)(),{isFetching:T,isLoading:Z,data:z}=(0,j.xw)({page:k,size:d,monitor_config_ids:s}),q=(0,i.useRouter)(),{items:M,total:G,pages:X}=(0,g.useMemo)(()=>null!=z?z:C,[z]);(0,g.useEffect)(()=>{I(X)},[X,I]);let[O,V]=(0,g.useState)(void 0),$=(0,g.useMemo)(()=>[_.accessor(e=>e.name,{id:"name",cell:e=>(0,r.jsx)(m.Z,{resource:e.row.original}),header:"Project"}),_.display({id:"status",cell:e=>{let{row:t}=e;return(0,r.jsx)(f.Z,{status:(0,y.u)(t.original)})},header:"Status"}),_.accessor(e=>e.monitor_config_id,{id:"monitorConfigId",cell:e=>(0,r.jsx)(x.G3,{value:e.getValue()}),header:"Detected by"}),_.accessor(e=>e.description,{id:"description",cell:e=>(0,r.jsx)(x.G3,{value:e.getValue()}),header:"Description"}),_.accessor(e=>e.updated_at,{id:"lastUpdated",cell:e=>(0,r.jsx)(p.Cy,{time:e.getValue()}),header:"Updated",meta:{cellProps:{borderRight:"none"}}}),_.display({id:"actions",cell:e=>{let{row:t}=e;return(0,r.jsx)(v.Z,{onDetailClick:()=>V(t.original)})},size:25,meta:{disableRowClick:!0}})],[]),B=(0,u.b7)({getCoreRowModel:(0,c.sC)(),getGroupedRowModel:(0,c.qe)(),getExpandedRowModel:(0,c.rV)(),manualPagination:!0,columnResizeMode:"onChange",columns:$,data:M,getRowId:e=>e.urn,onRowSelectionChange:a,state:{rowSelection:n}});return Z||T?(0,r.jsx)(x.I4,{rowHeight:36,numRows:36}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.ZK,{tableInstance:B,emptyTableNotice:(0,r.jsx)(w,{}),onRowClick:e=>q.push("".concat(o.mX,"/").concat(t,"/projects/").concat(e.urn))}),(0,r.jsx)(x.s8,{totalRows:G||0,pageSizes:l,setPageSize:R,onPreviousPageClick:b,isPreviousPageDisabled:N,onNextPageClick:D,isNextPageDisabled:E,startRange:P,endRange:S}),(0,r.jsx)(h.Z,{resource:O,onClose:()=>V(void 0)})]})},b=s(1315),N=()=>{var e;let{query:t}=(0,i.useRouter)(),s=t.systemId,c=t.monitor_config_ids,{data:u,isLoading:d}=(0,b.rn)(s);return d?(0,r.jsx)(n.Z,{}):(0,r.jsxs)(a.Z,{title:"Data catalog",children:[(0,r.jsx)(l.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:o.mX},{title:null!==(e=null==u?void 0:u.name)&&void 0!==e?e:null==u?void 0:u.fides_key}]}),(0,r.jsx)(R,{systemKey:s,monitorConfigIds:c})]})}}},function(e){e.O(0,[6372,9682,2888,9774,179],function(){return e(e.s=21865)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4745],{37441:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/resources/[resourceUrn]",function(){return n(51887)}])},51887:function(e,t,n){"use strict";n.r(t);var r=n(24246),s=n(86677),c=n(18225),u=n(77213),o=n(77830),a=n(58754),l=n(25077),i=n(94780),d=n(1315);t.default=()=>{var e;let{query:t}=(0,s.useRouter)(),n=t.systemId,_=t.resourceUrn,{data:f,isLoading:m}=(0,d.rn)(n),h=(0,s.useRouter)(),k=(0,i.pN)(_,"".concat(o.mX,"/").concat(n,"/resources"));return m?(0,r.jsx)(c.Z,{}):(0,r.jsxs)(u.Z,{title:"Data catalog",children:[(0,r.jsx)(a.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:o.mX},{title:null!==(e=null==f?void 0:f.name)&&void 0!==e?e:null==f?void 0:f.fides_key,href:"".concat(o.mX)},...k]}),(0,r.jsx)(l.Z,{resourceUrn:_,onRowClick:e=>h.push("".concat(o.mX,"/").concat(f.fides_key,"/resources/").concat(e.urn))})]})}}},function(e){e.O(0,[8765,431,9278,5163,409,6882,3855,2888,9774,179],function(){return e(e.s=37441)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4745],{37441:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/resources/[resourceUrn]",function(){return n(51887)}])},51887:function(e,t,n){"use strict";n.r(t);var r=n(24246),s=n(86677),c=n(18225),u=n(77213),o=n(77830),a=n(58754),l=n(25077),i=n(94780),d=n(1315);t.default=()=>{var e;let{query:t}=(0,s.useRouter)(),n=t.systemId,_=t.resourceUrn,{data:f,isLoading:m}=(0,d.rn)(n),h=(0,s.useRouter)(),k=(0,i.pN)(_,"".concat(o.mX,"/").concat(n,"/resources"));return m?(0,r.jsx)(c.Z,{}):(0,r.jsxs)(u.Z,{title:"Data catalog",children:[(0,r.jsx)(a.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:o.mX},{title:null!==(e=null==f?void 0:f.name)&&void 0!==e?e:null==f?void 0:f.fides_key,href:"".concat(o.mX)},...k]}),(0,r.jsx)(l.Z,{resourceUrn:_,onRowClick:e=>h.push("".concat(o.mX,"/").concat(f.fides_key,"/resources/").concat(e.urn))})]})}}},function(e){e.O(0,[431,7245,6372,9682,9330,2888,9774,179],function(){return e(e.s=37441)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5158],{57300:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/resources",function(){return s(21174)}])},79609:function(e,t,s){"use strict";s.d(t,{N4:function(){return r},UG:function(){return i},xw:function(){return n}});var a=s(54427);let{useGetCatalogSystemsQuery:i,useGetCatalogProjectsQuery:n,useGetCatalogDatasetsQuery:r}=s(78780).u.injectEndpoints({endpoints:e=>({getCatalogSystems:e.query({query:e=>({method:"GET",url:"/plus/data-catalog/system",params:e}),providesTags:["Catalog Systems","System"]}),getCatalogProjects:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/project",params:t}},providesTags:["Discovery Monitor Results"]}),getCatalogDatasets:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/dataset",params:t}},providesTags:["Discovery Monitor Results"]})})});(0,a.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},98800:function(e,t,s){"use strict";var a=s(24246),i=s(98227),n=s(79789);t.Z=e=>{var t;let{dataset:s,onClose:r}=e;return(0,a.jsxs)(i.dys,{isOpen:!!s,onClose:r,size:"md",children:[(0,a.jsx)(i.P1B,{}),(0,a.jsxs)(i.scA,{children:[(0,a.jsx)(i.OXI,{children:(null==s?void 0:s.name)||(null==s?void 0:s.urn)}),(0,a.jsx)(i.cCv,{}),(0,a.jsxs)(i.Ng0,{children:[(0,a.jsx)(n.cB,{text:"Title",mt:0}),(0,a.jsx)(n.XU,{children:null!==(t=null==s?void 0:s.name)&&void 0!==t?t:null==s?void 0:s.urn}),(null==s?void 0:s.description)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.cB,{text:"Description"}),(0,a.jsx)(n.XU,{children:null==s?void 0:s.description})]})]})]})]})}},81406:function(e,t,s){"use strict";var a=s(24246),i=s(98227);t.Z=()=>(0,a.jsxs)(i.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:[(0,a.jsx)(i.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"}),(0,a.jsx)(i.xvT,{fontSize:"sm",children:"You're up to date!"})]})},69172:function(e,t,s){"use strict";var a=s(24246),i=s(92222),n=s(98227),r=s(27378),l=s(47935),o=s(72625),d=s(89200),c=s(5945),u=s(8151);let g=(0,i.Cl)(),p=e=>{let{onDetailClick:t}=e;return(0,a.jsxs)(n.v2r,{children:[(0,a.jsx)(n.j2t,{as:n.wpx,size:"small",type:"text",icon:(0,a.jsx)(n.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"dataset-actions"}),(0,a.jsx)(n.qyq,{children:(0,a.jsx)(n.sNh,{"data-testid":"view-dataset-details",onClick:t,children:"View details"})})]})};t.Z=e=>{let{onDetailClick:t}=e;return(0,r.useMemo)(()=>[g.accessor(e=>e.name,{id:"name",cell:e=>(0,a.jsx)(d.Z,{resource:e.row.original}),header:"Dataset"}),g.display({id:"status",cell:e=>{let{row:t}=e;return(0,a.jsx)(c.Z,{status:(0,u.u)(t.original)})},header:"Status"}),g.accessor(e=>e.description,{id:"description",cell:e=>(0,a.jsx)(l.G3,{value:e.getValue()}),header:"Description"}),g.accessor(e=>e.updated_at,{id:"lastUpdated",cell:e=>(0,a.jsx)(o.Cy,{time:e.getValue()}),header:"Updated"}),g.display({id:"actions",cell:e=>{let{row:s}=e;return(0,a.jsx)(p,{onDetailClick:()=>t(s.original)})},size:25,meta:{disableRowClick:!0}})],[t])}},7940:function(e,t,s){"use strict";s.d(t,{G:function(){return i}});var a=s(65735);let i=e=>{var t,s,i;return e?e.resource_type?e.resource_type:(null===(t=e.schemas)||void 0===t?void 0:t.length)?a.D$.DATABASE:(null===(s=e.tables)||void 0===s?void 0:s.length)?a.D$.SCHEMA:(null===(i=e.fields)||void 0===i?void 0:i.length)?a.D$.TABLE:a.D$.FIELD:void 0}},98559:function(e,t){"use strict";t.Z=e=>{let{name:t,urn:s,monitor_config_id:a,database_name:i,schema_name:n,table_name:r,top_level_field_name:l,top_level_field_urn:o}=e;if(!l)return t;let d=s.split(".");return o?s.replace("".concat(o).concat("."),""):([a,i,n,r,l].forEach(e=>{if(e){let t=d.indexOf(e);t>-1&&d.splice(t,1)}}),d.join("."))}},36168:function(e,t){"use strict";t.Z=e=>{var t;return!!e.parent_table_urn&&null!==(t=e.sub_field_urns)&&void 0!==t&&!!t.length&&!e.top_level_field_name}},80356:function(e,t,s){"use strict";var a=s(7940),i=s(36168),n=s(65735);t.Z=e=>(0,a.G)(e)!==n.D$.FIELD||(0,i.Z)(e)},21174:function(e,t,s){"use strict";s.r(t);var a=s(24246),i=s(59003),n=s(92222),r=s(86677),l=s(27378),o=s(77213),d=s(77830),c=s(58754),u=s(47935),g=s(79609),p=s(98800),m=s(81406),x=s(69172),v=s(1315);let f={items:[],total:0,page:1,size:50,pages:1};t.default=()=>{let{query:e,push:t}=(0,r.useRouter)(),s=e.systemId,h=e.monitor_config_ids,{data:j,isLoading:_}=(0,v.rn)(s),{PAGE_SIZES:y,pageSize:C,setPageSize:w,onPreviousPageClick:D,isPreviousPageDisabled:E,onNextPageClick:b,isNextPageDisabled:Z,startRange:N,endRange:R,pageIndex:S,setTotalPages:T}=(0,u.oi)(),{isFetching:P,isLoading:k,data:z}=(0,g.N4)({page:S,size:C,monitor_config_ids:h}),{items:M,total:q,pages:G}=(0,l.useMemo)(()=>null!=z?z:f,[z]);(0,l.useEffect)(()=>{T(G)},[G,T]);let[I,X]=(0,l.useState)(void 0),A=(0,x.Z)({onDetailClick:e=>X(e)}),B=(0,i.b7)({getCoreRowModel:(0,n.sC)(),getGroupedRowModel:(0,n.qe)(),getExpandedRowModel:(0,n.rV)(),columns:A,manualPagination:!0,data:M,columnResizeMode:"onChange"}),O=!k&&!_&&!P;return(0,a.jsxs)(o.Z,{title:"Data catalog",children:[(0,a.jsx)(c.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:d.mX},{title:(null==j?void 0:j.name)||s}]}),!O&&(0,a.jsx)(u.I4,{rowHeight:36,numRows:36}),O&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.ZK,{tableInstance:B,emptyTableNotice:(0,a.jsx)(m.Z,{}),onRowClick:e=>t("".concat(d.mX,"/").concat(s,"/resources/").concat(e.urn))}),(0,a.jsx)(u.s8,{totalRows:q||0,pageSizes:y,setPageSize:w,onPreviousPageClick:D,isPreviousPageDisabled:E,onNextPageClick:b,isNextPageDisabled:Z,startRange:N,endRange:R}),(0,a.jsx)(p.Z,{dataset:I,onClose:()=>X(void 0)})]})]})}}},function(e){e.O(0,[9682,2888,9774,179],function(){return e(e.s=57300)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4231],{95372:function(e){e.exports=function(e,t,i,n){for(var s=e.length,a=i+(n?1:-1);n?a--:++a<s;)if(t(e[a],a,e))return a;return -1}},74833:function(e,t,i){var n=i(56127),s=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(s,""):e}},56632:function(e,t,i){var n=i(89278),s=i(80068),a=i(50098);e.exports=function(e){return function(t,i,r){var o=Object(t);if(!s(t)){var l=n(i,3);t=a(t),i=function(e){return l(o[e],e,o)}}var d=e(t,i,r);return d>-1?o[l?t[d]:d]:void 0}}},56127:function(e){var t=/\s/;e.exports=function(e){for(var i=e.length;i--&&t.test(e.charAt(i)););return i}},64925:function(e,t,i){var n=i(56632)(i(66259));e.exports=n},66259:function(e,t,i){var n=i(95372),s=i(89278),a=i(47991),r=Math.max;e.exports=function(e,t,i){var o=null==e?0:e.length;if(!o)return -1;var l=null==i?0:a(i);return l<0&&(l=r(o+l,0)),n(e,s(t,3),l)}},94919:function(e,t,i){var n=i(91936),s=1/0;e.exports=function(e){return e?(e=n(e))===s||e===-s?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,i){var n=i(94919);e.exports=function(e){var t=n(e),i=t%1;return t==t?i?t-i:t:0}},91936:function(e,t,i){var n=i(74833),s=i(11611),a=i(55193),r=0/0,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,d=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return r;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var i=l.test(e);return i||d.test(e)?c(e.slice(2),i?2:8):o.test(e)?r:+e}},66248:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog",function(){return i(99375)}])},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return p}});var n=i(24246),s=i(98227),a=i(88038),r=i.n(a),o=i(86677);i(27378);var l=i(25980),d=i(90867),c=i(42478),u=i(77830),g=()=>{let e=(0,o.useRouter)();return(0,n.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(s.xuv,{children:[(0,n.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(s.wpx,{onClick:()=>{e.push(u.AD)},children:"Configure"})]}),(0,n.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:i,padded:a=!0,mainProps:u}=e,p=(0,l.hz)(),m=(0,o.useRouter)(),f="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,x=!(p.flags.messagingConfiguration&&f),{data:v}=(0,c.JE)(void 0,{skip:x}),{data:h}=(0,d.PW)(void 0,{skip:x}),y=p.flags.messagingConfiguration&&(!v||!h)&&f;return(0,n.jsxs)(s.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(r(),{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:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[y?(0,n.jsx)(g,{}):null,t]})]})}},58754:function(e,t,i){"use strict";var n=i(24246),s=i(98227),a=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:r=!0,children:o,rightContent:l,style:d,...c}=e;return(0,n.jsxs)("div",{...c,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,n.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(s.lQT,{className:i||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!i&&(0,n.jsx)(a.m,{className:o?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),o]})}},79789:function(e,t,i){"use strict";i.d(t,{Hn:function(){return o},XU:function(){return r},Z5:function(){return l},aG:function(){return u},cB:function(){return a},hX:function(){return c},vQ:function(){return d}});var n=i(24246),s=i(98227);let a=e=>{let{text:t,...i}=e;return(0,n.jsx)(s.X6q,{fontSize:"sm",mt:4,mb:1,...i,children:t})},r=e=>{let{children:t}=e;return(0,n.jsx)(s.xvT,{fontSize:"14px",mb:4,children:t})},o=e=>{let{children:t,href:i}=e;return(0,n.jsx)(s.rUS,{href:i,textDecoration:"underline",isExternal:!0,children:t})},l=e=>{let{children:t}=e;return(0,n.jsx)(s.QI$,{fontSize:"14px",mb:4,children:t})},d=e=>{let{children:t}=e;return(0,n.jsx)(s.GSI,{fontSize:"14px",mb:4,ml:6,children:t})},c=e=>{let{children:t}=e;return(0,n.jsx)(s.EKh,{display:"block",whiteSpace:"pre",p:4,mb:4,overflowX:"scroll",children:t})},u=e=>{let{data:t}=e;return(0,n.jsxs)(s.iA_,{fontSize:"14px",children:[(0,n.jsx)(s.hrZ,{children:(0,n.jsxs)(s.Tr,{children:[(0,n.jsx)(s.Th,{children:"Permission"}),(0,n.jsx)(s.Th,{children:"Description"})]})}),(0,n.jsx)(s.p3B,{children:t.map(e=>(0,n.jsxs)(s.Tr,{children:[(0,n.jsx)(s.Td,{children:(0,n.jsx)(s.Vp9,{children:e.permission})}),(0,n.jsx)(s.Td,{children:e.description})]},e.permission))})]})}},83099:function(e,t,i){"use strict";var n=i(24246),s=i(79283),a=i(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:i=!1,...r}=e,{getDataUseDisplayNameProps:o,getDataUses:l}=(0,a.Z)(),d=(i?l():l().filter(e=>e.active)).filter(e=>!(null==t?void 0:t.includes(e.fides_key))).map(e=>{let{name:t,primaryName:i}=o(e.fides_key);return{value:e.fides_key,name:t,primaryName:i,description:e.description||""}});return(0,n.jsx)(s.l,{options:d,...r})}},79283:function(e,t,i){"use strict";i.d(t,{l:function(){return c}});var n=i(24246),s=i(98227),a=i(72707),r=i.n(a);let o=e=>{let{data:{formattedTitle:t,description:i,name:a,primaryName:r}}=e;return(0,n.jsxs)(s.jqI,{gap:12,title:"".concat(t," - ").concat(i),children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("strong",{children:r||a}),r&&": ".concat(a)]}),(0,n.jsx)("em",{children:i})]})},l=e=>"options"in e&&Array.isArray(e.options),d=e=>({...e,className:r().option,formattedTitle:e.formattedTitle||[e.primaryName,e.name].filter(e=>e).join(": ")}),c=e=>{let{options:t,...i}=e,a=null==t?void 0:t.map(e=>l(e)?{...e,options:e.options.map(d)}:d(e));return(0,n.jsx)(s.WPr,{options:a,filterOption:(e,t)=>{var i,n;return(null==t?void 0:null===(i=t.formattedTitle)||void 0===i?void 0:i.toLowerCase().includes(e.toLowerCase()))||(null==t?void 0:null===(n=t.value)||void 0===n?void 0:n.toLowerCase().includes(e.toLowerCase()))||!1},optionFilterProp:"label",autoFocus:!0,variant:"borderless",optionRender:o,styles:{popup:{root:{minWidth:"500px"}}},className:"w-full p-0","data-testid":"taxonomy-select",...i})}},97181:function(e,t,i){"use strict";i.d(t,{d:function(){return d}});var n=i(24246),s=i(98227),a=i(34090),r=i(27378),o=i(46238),l=i(40324);let d=e=>{let{name:t,label:i,labelProps:d,tooltip:c,isRequired:u,layout:g="inline",helperText:p,...m}=e,[f,x,{setValue:v}]=(0,a.U$)(t),h=!!(x.touched&&x.error),[y,j]=(0,r.useState)("");f.value||"tags"!==m.mode&&"multiple"!==m.mode||(f.value=[]),"tags"===m.mode&&"string"==typeof f.value&&(f.value=[f.value]);let b="tags"===m.mode?(e,t)=>e?e.value!==y||f.value.includes(y)?m.optionRender?m.optionRender(e,t):e.label:'Create "'.concat(y,'"'):void 0:m.optionRender||void 0,_=e=>{j(e),m.onSearch&&m.onSearch(e)},C=(e,t)=>{v(e),m.onChange&&m.onChange(e,t)};return"inline"===g?(0,n.jsx)(s.NIc,{isInvalid:h,isRequired:u,children:(0,n.jsxs)(s.rjZ,{templateColumns:i?"1fr 3fr":"1fr",children:[i?(0,n.jsx)(l.__,{htmlFor:m.id||t,...d,children:i}):null,(0,n.jsxs)(s.jqI,{align:"center",children:[(0,n.jsxs)(s.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,n.jsx)(s.WPr,{...f,id:m.id||t,"data-testid":"controlled-select-".concat(f.name),...m,optionRender:b,onSearch:"tags"===m.mode?_:void 0,onChange:C,value:f.value||void 0,status:h?"error":void 0}),p&&(0,n.jsx)(s.Q6r,{children:p}),(0,n.jsx)(l.Bc,{isInvalid:h,message:x.error,fieldName:f.name})]}),(0,n.jsx)(o.b,{label:c,className:h?"mt-2 self-start":void 0})]})]})}):(0,n.jsx)(s.NIc,{isInvalid:h,isRequired:u,children:(0,n.jsxs)(s.gCW,{alignItems:"start",children:[(0,n.jsxs)(s.jqI,{align:"center",children:[i?(0,n.jsx)(l.__,{htmlFor:m.id||t,fontSize:"xs",my:0,mr:1,...d,children:i}):null,(0,n.jsx)(o.b,{label:c})]}),(0,n.jsx)(s.WPr,{...f,id:m.id||t,"data-testid":"controlled-select-".concat(f.name),...m,optionRender:b,onSearch:"tags"===m.mode?_:void 0,onChange:C,value:f.value||void 0,status:h?"error":void 0}),p&&(0,n.jsx)(s.Q6r,{style:{marginTop:0},children:p}),(0,n.jsx)(l.Bc,{isInvalid:h,message:x.error,fieldName:f.name})]})})}},34929:function(e,t,i){"use strict";var n=i(24246),s=i(64925),a=i.n(s),r=i(27378),o=i(16134),l=i(30002),d=i(28079),c=i(57072);let u=()=>{let{isLoading:e}=(0,d.fd)(),t=(0,o.C)(d.U3),{isLoading:i}=(0,c.MO)(),n=(0,o.C)(c.qb),{isLoading:s}=(0,l.te)();return{dataUses:t,dataSubjects:(0,o.C)(l.ZL),dataCategories:n,isLoading:e||i||s}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:i,isLoading:s}=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 i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=t(e);if(!n)return{};let s=t(o(e,i)),a=!!n.parent_key;return{name:n.name||void 0,primaryName:a&&(null==s?void 0:s.name)!==n.name&&(null==s?void 0:s.name)||void 0}},d=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:s,primaryName:a}=l(e,t,i);return s?a?(0,n.jsxs)(r.Fragment,{children:[(0,n.jsxs)("strong",{children:[a,":"]})," ",s]},e):(0,n.jsx)("strong",{children:s},e):e},c=t=>a()(e,{fides_key:t}),g=e=>a()(t,{fides_key:e}),p=e=>a()(i,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:c,getDataUseDisplayName:e=>d(e,c,1),getDataUseDisplayNameProps:e=>l(e,c,1),getDataCategories:()=>t,getDataCategoryByKey:g,getDataCategoryDisplayName:e=>d(e,g,2),getDataCategoryDisplayNameProps:e=>l(e,g,2),getDataSubjects:()=>i,getDataSubjectByKey:p,getDataSubjectDisplayName:e=>{let t=p(e);return t?t.name:e},getPrimaryKey:o,isLoading:s}}},8133:function(e,t,i){"use strict";var n=i(24246),s=i(98227);t.Z=e=>{let{title:t,children:i,isOpen:a,onClose:r,modalContentProps:o,showCloseButton:l=!1,footer:d,...c}=e;return(0,n.jsxs)(s.u_l,{isOpen:a,onClose:r,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...c,children:[(0,n.jsx)(s.ZAr,{}),(0,n.jsxs)(s.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...o,children:[l&&(0,n.jsx)(s.olH,{}),(0,n.jsx)(s.xBx,{p:0,children:(0,n.jsx)(s.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,n.jsx)(s.X6q,{as:"h3",size:"sm",children:t})})}),(0,n.jsx)(s.fef,{pb:4,overflow:"auto",children:i}),d&&(0,n.jsx)(s.mzw,{children:d})]})]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return d}});var n=i(24246),s=i(98227),a=i(79894),r=i.n(a),o=i(27378);let{Text:l}=s.AntTypography,d=e=>{let{items:t,...i}=e,a=(0,o.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let a=i===t.length-1,o={...e},d=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,n.jsx)(l,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,id:a?"breadcrumb-current-page":void 0,children:o.title})),d)?o.title=(0,n.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,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,n.jsx)(r(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,n.jsx)(s.zrq,{items:a,...i})}},79609:function(e,t,i){"use strict";i.d(t,{N4:function(){return r},UG:function(){return s},xw:function(){return a}});var n=i(54427);let{useGetCatalogSystemsQuery:s,useGetCatalogProjectsQuery:a,useGetCatalogDatasetsQuery:r}=i(78780).u.injectEndpoints({endpoints:e=>({getCatalogSystems:e.query({query:e=>({method:"GET",url:"/plus/data-catalog/system",params:e}),providesTags:["Catalog Systems","System"]}),getCatalogProjects:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/project",params:t}},providesTags:["Discovery Monitor Results"]}),getCatalogDatasets:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/dataset",params:t}},providesTags:["Discovery Monitor Results"]})})});(0,n.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},81406:function(e,t,i){"use strict";var n=i(24246),s=i(98227);t.Z=()=>(0,n.jsxs)(s.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:[(0,n.jsx)(s.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"}),(0,n.jsx)(s.xvT,{fontSize:"sm",children:"You're up to date!"})]})},26183:function(e,t,i){"use strict";var n=i(24246);i(27378),t.Z=e=>{let{children:t,className:i,...s}=e;return(0,n.jsx)("div",{className:"relative flex w-full flex-wrap items-center gap-2 overflow-x-auto py-2 ".concat(i||""),...s,children:t})}},3765:function(e,t,i){"use strict";var n=i(98227),s=i(812),a=i(46628),r=i(32885),o=i(1315),l=i(65735),d=i(31883);let c=(e,t)=>{let i=[],n=[];return Object.entries(e).forEach(e=>{let[s,a]=e;a?i.push({id:s,value:a,resource_id:t,custom_field_definition_id:s}):n.push(s)}),{upsert:i,delete:n,resource_type:l.P6.PRIVACY_DECLARATION,resource_id:t}};t.Z=e=>{let t=(0,n.pmc)(),[i]=(0,o.qQ)(),[l]=(0,r._D)(),u=i=>!!e.privacy_declarations.find(e=>e.data_use===i.data_use&&e.name===i.name)&&(t((0,a.Vo)("A declaration already exists with that data use in this system. Please supply a different data use.")),!0),g=e=>{let{systemResult:i,customFieldsResult:n,isDelete:r}=e;if((0,d.D4)(i)){let e=(0,s.e$)(i.error,"An unexpected error occurred while updating the system. Please try again.");t((0,a.Vo)(e));return}if(n&&(0,d.D4)(n)){let e=(0,s.e$)(n.error,"Data use was updated, but an error occurred while updating custom fields. Please try again.");t((0,a.Vo)(e));return}return t((0,a.t5)(r?"Data use deleted":"Data use saved")),i.data.privacy_declarations},p=async(t,n,s,a)=>{let r;let o=t.map(e=>{var t;return{...e,name:null!==(t=e.name)&&void 0!==t?t:""}}),d={...e,privacy_declarations:o},u=await i(d);if(s&&a){var p,m;let e=null==u?void 0:null===(m=u.data)||void 0===m?void 0:null===(p=m.privacy_declarations)||void 0===p?void 0:p.find(e=>e.data_use===a);if(e){let t=c(s,e.id);r=await l(t)}}return g({systemResult:u,customFieldsResult:r,isDelete:n})};return{createDataUse:async i=>{if(u(i))return;let{customFieldValues:n,...s}=i;return t.closeAll(),p([...e.privacy_declarations,s],!1,n,s.data_use)},updateDataUse:async(t,i)=>{if(i.id!==t.id&&u(i))return;let{customFieldValues:n,...s}=i;return p(e.privacy_declarations.map(e=>e.id===t.id?s:e),!1,n,s.data_use)},deleteDataUse:async t=>p(e.privacy_declarations.filter(e=>e.id!==t.id),!0),deleteDeclarationByDataUse:async t=>p(e.privacy_declarations.filter(e=>e.data_use!==t),!0)}}},42478:function(e,t,i){"use strict";i.d(t,{FU:function(){return d},JE:function(){return s},Ki:function(){return u},SU:function(){return g},W:function(){return p},h9:function(){return a},jc:function(){return n},qt:function(){return l},sn:function(){return c}});let{useGetEmailInviteStatusQuery:n,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:a,useCreateMessagingConfigurationSecretsMutation:r,useGetMessagingConfigurationDetailsQuery:o,useGetMessagingConfigurationsQuery:l,useGetMessagingConfigurationByKeyQuery:d,useUpdateMessagingConfigurationByKeyMutation:c,useUpdateMessagingConfigurationSecretsByKeyMutation:u,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:p}=i(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,t,i,n)=>{let s=await n({url:"messaging/default/active"});return s.error&&404===s.error.status?{data:null}:s},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},54748:function(e,t,i){"use strict";var n=i(27378),s=i(65735);t.Z=()=>({legalBasisOptions:(0,n.useMemo)(()=>Object.keys(s.gP).map(e=>({value:s.gP[e],label:s.gP[e]})),[])})},28325:function(e,t,i){"use strict";var n=i(27378),s=i(65735);t.Z=()=>({specialCategoryLegalBasisOptions:(0,n.useMemo)(()=>Object.keys(s.nV).map(e=>({value:s.nV[e],label:s.nV[e]})),[])})},57072:function(e,t,i){"use strict";i.d(t,{Bd:function(){return n.Bd},L5:function(){return n.L5},MO:function(){return n.MO},qb:function(){return n.qb}});var n=i(5785)},99375:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return U}});var n=i(24246),s=i(77213),a=i(58754),r=i(92222),o=i(59003),l=i(86677),d=i(27378),c=i(77830),u=i(47935),g=i(16394),p=i(79609),m=i(81406),f=i(98227),x=i(79789),v=i(83099),h=i(34929),y=i(34090),j=i(55484),b=i(97181),_=i(40324),C=i(8133),w=i(54748),k=i(28325),S=i(34151),q=i.n(S);let T=j.Ry().shape({data_use:j.Z_().required("Data use is required")});var D=e=>{let{isOpen:t,onClose:i,onSave:s,declaration:a}=e,{getDataUses:r,getDataCategories:o,getDataSubjects:l}=(0,h.Z)(),{isOpen:d,onToggle:c}=(0,f.qY0)(),u=r().map(e=>({label:e.fides_key,value:e.fides_key})),g=o().map(e=>({label:e.fides_key,value:e.fides_key})),p=l().map(e=>({label:e.fides_key,value:e.fides_key})),{legalBasisOptions:m}=(0,w.Z)(),{specialCategoryLegalBasisOptions:x}=(0,k.Z)();return(0,n.jsx)(y.J9,{initialValues:a,enableReinitialize:!0,onSubmit:e=>{s(e),i()},validationSchema:T,children:e=>{let{dirty:s,isValid:a,values:r,resetForm:o}=e;return(0,n.jsx)(C.Z,{title:"Edit data use",isOpen:t,onClose:i,children:(0,n.jsxs)(y.l0,{children:[(0,n.jsxs)(f.jqI,{vertical:!0,className:"gap-6 py-4",children:[(0,n.jsx)(b.d,{name:"data_use",label:"Data use",options:u,layout:"stacked",isRequired:!0}),(0,n.jsx)(b.d,{name:"data_categories",label:"Data categories",options:g,mode:"multiple",layout:"stacked"}),(0,n.jsx)(b.d,{name:"data_subjects",label:"Data subjects",options:p,mode:"multiple",layout:"stacked"}),(0,n.jsx)(_.j0,{name:"name",label:"Declaration name",variant:"stacked"}),(0,n.jsxs)(f.jqI,{vertical:!0,className:"gap-6 p-4 ".concat(q().advancedSettings),children:[(0,n.jsxs)(f.jqI,{className:"cursor-pointer justify-between",onClick:c,children:[(0,n.jsx)(f.xvT,{fontSize:"xs",children:"Advanced settings"}),(0,n.jsx)(f.v4q,{className:d?"rotate-180":void 0})]}),(0,n.jsx)(f.UO1,{in:d,children:(0,n.jsxs)(f.jqI,{vertical:!0,className:"gap-4",children:[(0,n.jsx)(b.d,{name:"legal_basis_for_processing",label:"Legal basis for processing",options:m,layout:"stacked"}),(0,n.jsx)(f.UO1,{in:(null==r?void 0:r.legal_basis_for_processing)==="Legitimate interests",animateOpacity:!0,style:{overflow:"visible"},children:(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(_.j0,{name:"impact_assessment_location",label:"Impact assessment location",tooltip:"Where is the legitimate interest impact assessment stored?",variant:"stacked"})})}),(0,n.jsx)(_.w8,{name:"flexible_legal_basis_for_processing",label:"This legal basis is flexible",tooltip:"Has the vendor declared that the legal basis may be overridden?",variant:"stacked"}),(0,n.jsx)(_.j0,{name:"retention_period",label:"Retention period (days)",tooltip:"How long is personal data retained for this purpose?",variant:"stacked"}),(0,n.jsxs)(f.Kqy,{spacing:0,children:[(0,n.jsx)(_.w8,{name:"processes_special_category_data",label:"This system processes special category data",tooltip:"Is this system processing special category data as defined by GDPR Article 9?",variant:"stacked"}),(0,n.jsx)(f.UO1,{in:null==r?void 0:r.processes_special_category_data,animateOpacity:!0,style:{overflow:"visible"},children:(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(b.d,{isRequired:!0,name:"special_category_legal_basis",label:"Legal basis for processing",options:x,tooltip:"What is the legal basis under which the special category data is processed?",layout:"stacked"})})})]})]})})]})]}),(0,n.jsxs)("div",{className:"flex w-full justify-between",children:[(0,n.jsx)(f.wpx,{onClick:()=>{o(),i()},children:"Cancel"}),(0,n.jsx)(f.wpx,{type:"primary",htmlType:"submit",disabled:!s||!a,loading:!1,"data-testid":"save-btn",children:"Save"})]})]})})}})},N=i(26183),R=i(3765);let P=e=>({data_use:e,data_categories:["system"]});var M=e=>{var t,i;let{system:s}=e,[a,r]=(0,d.useState)(!1),[o,l]=(0,d.useState)(void 0),{getDataUseDisplayName:c}=(0,h.Z)(),{isOpen:u,onOpen:g,onClose:p}=(0,f.qY0)(),m=e=>{l(e),g()},{createDataUse:x,deleteDeclarationByDataUse:y,updateDataUse:j}=(0,R.Z)(s),b=null!==(i=null===(t=s.privacy_declarations)||void 0===t?void 0:t.map(e=>e.data_use))&&void 0!==i?i:[];return(0,n.jsxs)(N.Z,{children:[!a&&(0,n.jsxs)(n.Fragment,{children:[b.map((e,t)=>(0,n.jsxs)(f.j8w,{"data-testid":"data-use-".concat(e),color:"white",onClick:()=>m(s.privacy_declarations[t]),closable:!0,onClose:()=>y(e),closeButtonLabel:"Remove data use",children:[(0,n.jsx)(f.PJP.I8b,{size:10}),c(e)]},e)),(0,n.jsx)(f.j8w,{onClick:()=>r(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"}),(0,n.jsx)(D,{isOpen:u,onClose:p,onSave:e=>j(o,e),declaration:o})]}),a&&(0,n.jsx)(f.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,n.jsx)(v.Z,{onChange:e=>{x(P(e)),r(!1)},selectedTaxonomies:b,onBlur:()=>r(!1),open:!0})})]})},I=e=>{var t;let{system:i,onEdit:s,onClose:a}=e;return(0,n.jsxs)(f.dys,{isOpen:!!i,onClose:a,size:"md",children:[(0,n.jsx)(f.P1B,{}),(0,n.jsxs)(f.scA,{"data-testid":"system-details",children:[(0,n.jsx)(f.OXI,{children:(null==i?void 0:i.name)||(null==i?void 0:i.fides_key)}),(0,n.jsx)(f.cCv,{}),(0,n.jsxs)(f.Ng0,{children:[(0,n.jsx)(x.cB,{text:"Title",mt:0}),(0,n.jsx)(x.XU,{children:null!==(t=null==i?void 0:i.name)&&void 0!==t?t:null==i?void 0:i.fides_key}),(null==i?void 0:i.description)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.cB,{text:"Description"}),(0,n.jsx)(x.XU,{children:null==i?void 0:i.description})]}),(0,n.jsx)(x.cB,{text:"Data uses"}),(0,n.jsx)(M,{system:i})]}),(0,n.jsx)(f.zeN,{children:(0,n.jsx)(f.wpx,{onClick:s,"data-testid":"edit-system-btn",children:"Edit system"})})]})]})},z=e=>{let{onDetailClick:t}=e;return(0,n.jsxs)(f.v2r,{children:[(0,n.jsx)(f.j2t,{as:f.wpx,size:"small",type:"text",className:"max-w-4",icon:(0,n.jsx)(f.nXP,{transform:"rotate(90deg)",ml:2}),"data-testid":"system-actions-menu"}),(0,n.jsx)(f.qyq,{children:t&&(0,n.jsx)(f.sNh,{onClick:t,"data-testid":"view-system-details",children:"View details"})})]})},Z=i(70675);let E={items:[],total:0,page:1,size:50,pages:1},O=(0,r.Cl)();var B=()=>{let[e,t]=(0,d.useState)({}),i=(0,l.useRouter)(),{PAGE_SIZES:s,pageSize:a,setPageSize:f,onPreviousPageClick:x,isPreviousPageDisabled:v,onNextPageClick:h,isNextPageDisabled:y,startRange:j,endRange:b,pageIndex:_,setTotalPages:C}=(0,u.oi)(),{data:w,isLoading:k}=(0,p.UG)({page:_,size:a,show_hidden:!1}),[S]=(0,Z.j3)(),{items:q,total:T,pages:D}=(0,d.useMemo)(()=>null!=w?w:E,[w]);(0,d.useEffect)(()=>{C(D)},[D,C]);let[N,R]=(0,d.useState)(void 0),P=(0,d.useMemo)(()=>q.find(e=>e.fides_key===N),[q,N]),B=async e=>{var t,n;let s=await S({connection_config_key:e.connection_configs.key,page:1,size:1}),a=!!(null==s?void 0:null===(t=s.data)||void 0===t?void 0:t.total),r=(0,g.du)(null!==(n=e.monitor_config_keys)&&void 0!==n?n:[],"monitor_config_ids"),o="".concat(c.mX,"/").concat(e.fides_key,"/").concat(a?"projects":"resources","?").concat(r);i.push(o)},U=(0,d.useMemo)(()=>[O.accessor(e=>e.name,{id:"name",cell:e=>{var t;let{getValue:i,row:s}=e;return(0,n.jsx)(u.G3,{value:i(),fontWeight:(null===(t=s.original.connection_configs)||void 0===t?void 0:t.key)?"semibold":"normal"})},header:e=>(0,n.jsx)(u.Rr,{value:"Name",...e})}),O.display({id:"data-uses",cell:e=>{let{row:t}=e;return(0,n.jsx)(M,{system:t.original})},header:e=>(0,n.jsx)(u.Rr,{value:"Data uses",...e}),meta:{disableRowClick:!0},minSize:280}),O.display({id:"actions",cell:e=>(0,n.jsx)(z,{onDetailClick:()=>R(e.row.original.fides_key)}),maxSize:20,enableResizing:!1,meta:{cellProps:{borderLeft:"none"},disableRowClick:!0}})],[]),A=(0,o.b7)({getCoreRowModel:(0,r.sC)(),getGroupedRowModel:(0,r.qe)(),getExpandedRowModel:(0,r.rV)(),getRowId:e=>e.fides_key,manualPagination:!0,columnResizeMode:"onChange",columns:U,data:q,onRowSelectionChange:t,state:{rowSelection:e}});return k?(0,n.jsx)(u.I4,{rowHeight:36,numRows:36}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.ZK,{tableInstance:A,emptyTableNotice:(0,n.jsx)(m.Z,{}),onRowClick:B,getRowIsClickable:e=>{var t;return!!(null===(t=e.connection_configs)||void 0===t?void 0:t.key)}}),(0,n.jsx)(u.s8,{totalRows:T||0,pageSizes:s,setPageSize:f,onPreviousPageClick:x,isPreviousPageDisabled:v,onNextPageClick:h,isNextPageDisabled:y,startRange:j,endRange:b}),(0,n.jsx)(I,{system:P,onClose:()=>R(void 0),onEdit:()=>i.push({pathname:c.Dv,query:{id:N}})})]})},U=()=>(0,n.jsxs)(s.Z,{title:"Data catalog",children:[(0,n.jsx)(a.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems"}]}),(0,n.jsx)(B,{})]})},31883:function(e,t,i){"use strict";i.d(t,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=i(19043)},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}},34151:function(e){e.exports={advancedSettings:"EditMinimalDataUseModal_advancedSettings___i9jS"}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=66248)}),_N_E=e.O()}]);