ethyca-fides 2.73.2b0__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 (336) hide show
  1. {ethyca_fides-2.73.2b0.dist-info → ethyca_fides-2.74.0rc1.dist-info}/METADATA +2 -1
  2. {ethyca_fides-2.73.2b0.dist-info → ethyca_fides-2.74.0rc1.dist-info}/RECORD +273 -276
  3. fides/_version.py +3 -3
  4. fides/api/alembic/migrations/versions/xx_2025_10_29_1659_80d28dea3b6b_added_duplicate_group_table.py +79 -0
  5. fides/api/alembic/migrations/versions/xx_2025_11_05_0200_f1a2b3c4d5e6_create_staged_resource_error_table.py +82 -0
  6. fides/api/api/v1/endpoints/privacy_request_endpoints.py +33 -6
  7. fides/api/db/database.py +225 -0
  8. fides/api/models/detection_discovery/__init__.py +2 -0
  9. fides/api/models/detection_discovery/core.py +10 -0
  10. fides/api/models/detection_discovery/staged_resource_error.py +25 -0
  11. fides/api/models/privacy_preference.py +1 -0
  12. fides/api/models/privacy_request/duplicate_group.py +84 -0
  13. fides/api/models/privacy_request/privacy_request.py +53 -8
  14. fides/api/schemas/privacy_request.py +16 -4
  15. fides/api/service/async_dsr/strategies/async_dsr_strategy_polling.py +13 -6
  16. fides/api/service/privacy_request/duplication_detection.py +424 -0
  17. fides/api/service/privacy_request/request_runner_service.py +5 -0
  18. fides/api/service/saas_request/saas_request_override_factory.py +7 -2
  19. fides/api/util/logger_context_utils.py +3 -1
  20. fides/api/util/memory_watchdog.py +118 -0
  21. fides/common/api/v1/urn_registry.py +1 -0
  22. fides/config/__init__.py +7 -1
  23. fides/config/celery_settings.py +42 -0
  24. fides/service/privacy_request/privacy_request_service.py +66 -5
  25. fides/ui-build/static/admin/404.html +1 -1
  26. fides/ui-build/static/admin/_next/static/FZTEUgamBvOhgPWce135w/_buildManifest.js +1 -0
  27. fides/ui-build/static/admin/_next/static/chunks/{1115-26393b586775ea29.js → 1115-0da062111df309bf.js} +1 -1
  28. fides/ui-build/static/admin/_next/static/chunks/{6148-59a59d5c5925344f.js → 1533-84e250d1f26e6d7d.js} +1 -1
  29. fides/ui-build/static/admin/_next/static/chunks/1817-508b16628e8eb225.js +1 -0
  30. fides/ui-build/static/admin/_next/static/chunks/1840-5bbe6d878ed73fb4.js +1 -0
  31. fides/ui-build/static/admin/_next/static/chunks/3214-90ce0a366b0f461a.js +1 -0
  32. fides/ui-build/static/admin/_next/static/chunks/3377-eb5cd82b3ee6ab0c.js +1 -0
  33. fides/ui-build/static/admin/_next/static/chunks/3615-5e2d062d684b8fa1.js +1 -0
  34. fides/ui-build/static/admin/_next/static/chunks/3655-93ecd09f1cb9dbef.js +1 -0
  35. fides/ui-build/static/admin/_next/static/chunks/{4259.d1507e0db19cbed7.js → 4259.05038c9b78467244.js} +1 -1
  36. fides/ui-build/static/admin/_next/static/chunks/4277-13bcf4516326d474.js +1 -0
  37. fides/ui-build/static/admin/_next/static/chunks/454-d5c2c84f1a14e4f1.js +1 -0
  38. fides/ui-build/static/admin/_next/static/chunks/5487-8dedd1ca94fbba54.js +1 -0
  39. fides/ui-build/static/admin/_next/static/chunks/549-6e2442db533a711e.js +1 -0
  40. fides/ui-build/static/admin/_next/static/chunks/5643-55d758444a8d7162.js +1 -0
  41. fides/ui-build/static/admin/_next/static/chunks/5724-1e40975cefa405f0.js +1 -0
  42. fides/ui-build/static/admin/_next/static/chunks/6084-82e2df433fe5ba85.js +1 -0
  43. fides/ui-build/static/admin/_next/static/chunks/6344-3e21444374f8059f.js +1 -0
  44. fides/ui-build/static/admin/_next/static/chunks/6362-12e3fd23130ccf15.js +1 -0
  45. fides/ui-build/static/admin/_next/static/chunks/6372-a8d0f08dac1ebd0e.js +1 -0
  46. fides/ui-build/static/admin/_next/static/chunks/6780-3db5133c1f4c6f1e.js +1 -0
  47. fides/ui-build/static/admin/_next/static/chunks/6954-aa0c60ee1092be8e.js +1 -0
  48. fides/ui-build/static/admin/_next/static/chunks/7079-6e6efc3396ff1ebb.js +1 -0
  49. fides/ui-build/static/admin/_next/static/chunks/7218-d297a4a06f924b09.js +1 -0
  50. fides/ui-build/static/admin/_next/static/chunks/{7245-c9bc628d078c2170.js → 7245-686665c197b58e68.js} +1 -1
  51. fides/ui-build/static/admin/_next/static/chunks/7654-716cf37a020b3d11.js +1 -0
  52. fides/ui-build/static/admin/_next/static/chunks/8939-4925751c57c51f87.js +1 -0
  53. fides/ui-build/static/admin/_next/static/chunks/9014-eeae6f581158e645.js +1 -0
  54. fides/ui-build/static/admin/_next/static/chunks/{9046-d9c6498368b993d1.js → 9046-e4daf28840a69fd6.js} +1 -1
  55. fides/ui-build/static/admin/_next/static/chunks/{5596-29a7c8322530b7cf.js → 9195-550bd50d538c5f79.js} +3 -3
  56. fides/ui-build/static/admin/_next/static/chunks/9341-bfc0e59bcc56c604.js +1 -0
  57. fides/ui-build/static/admin/_next/static/chunks/9450-b7b7bb1d755ecf57.js +1 -0
  58. fides/ui-build/static/admin/_next/static/chunks/9682-da69ac5d06f281da.js +1 -0
  59. fides/ui-build/static/admin/_next/static/chunks/9911-ece086f2230e34f0.js +1 -0
  60. fides/ui-build/static/admin/_next/static/chunks/9965-56c5e4fc9cd3b3a5.js +1 -0
  61. fides/ui-build/static/admin/_next/static/chunks/pages/{_app-ee588a308812715d.js → _app-e64fd8510033a27c.js} +63 -63
  62. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-7081e0e49f67716c.js → manual-ddd9d7d40847fc28.js} +1 -1
  63. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-1b02a4991201b7e4.js → [id]-9b1f2b1c06968166.js} +1 -1
  64. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{new-a5e738a234dadc7e.js → new-115a085e5d42de45.js} +1 -1
  65. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-8c164c4b8310214e.js → [id]-3de34624829cbce8.js} +1 -1
  66. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-db789002d84c8829.js → new-dc95e7ed278d1a29.js} +1 -1
  67. fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-e3ad3a55624e302a.js +1 -0
  68. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/{[resourceUrn]-32bd7a7c990e5bf6.js → [resourceUrn]-dd82729296dee5c5.js} +1 -1
  69. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-49e5477eb1a11b92.js +1 -0
  70. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-07e7d38ce34e1e6c.js → projects-dfc1ead4a12c9ffa.js} +1 -1
  71. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/{[resourceUrn]-b07a0707f8c2ec0d.js → [resourceUrn]-8442eb219958ac7e.js} +1 -1
  72. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources-feda358d1801c18d.js +1 -0
  73. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-d16acb6fc07aad46.js +1 -0
  74. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/datastore/[monitorId]-c51a1e98c45d231a.js +1 -0
  75. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/[monitorId]/[systemId]-bcfe38eebca30f8c.js +1 -0
  76. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/{[monitorId]-73085f50abb775c0.js → [monitorId]-f66d0655897c4400.js} +1 -1
  77. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-6f1e012cd641da19.js +1 -0
  78. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{activity-24a82e07a0008516.js → activity-581d6248fcf98d17.js} +1 -1
  79. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-b072cf25aefc98f6.js → [resourceUrn]-ddc1c1641e1e9430.js} +1 -1
  80. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-fd3e8817d8e6dee4.js → detection-2b48f7e524743b2b.js} +1 -1
  81. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-146624cf59792bf7.js → [resourceUrn]-862b67418600251e.js} +1 -1
  82. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-9695cc9c85592ec5.js → discovery-0ffec855f5df262c.js} +1 -1
  83. fides/ui-build/static/admin/_next/static/chunks/pages/datamap-6a030ab8c2e2b0db.js +1 -0
  84. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-5f88280db168083e.js → [...subfieldNames]-6cb66f649b8ca4bf.js} +1 -1
  85. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-bfbcf19c28c794ae.js → [collectionName]-0b008dad90b00aaa.js} +1 -1
  86. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-6fbe2b584a509226.js → [datasetId]-5566edf9a9d1be2d.js} +1 -1
  87. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-d4ca1f485b6e9e02.js +1 -0
  88. fides/ui-build/static/admin/_next/static/chunks/pages/dataset-85dee7e81dc4bafb.js +1 -0
  89. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/[id]-e905e018a2cab35d.js +1 -0
  90. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-912723bc86299b1a.js +1 -0
  91. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-f1f0affc18327033.js +1 -0
  92. fides/ui-build/static/admin/_next/static/chunks/pages/{fides-js-docs-1f4335dca5c09860.js → fides-js-docs-5235760b3e508d7d.js} +1 -1
  93. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-1b94e2d769a182b2.js +1 -0
  94. fides/ui-build/static/admin/_next/static/chunks/pages/{integrations-a733e5d7c3ce9bb8.js → integrations-adfe6c5ac5b703d0.js} +1 -1
  95. fides/ui-build/static/admin/_next/static/chunks/pages/new-privacy-requests-f9be7080ebbb7445.js +1 -0
  96. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers/{[key]-720cde29f81db47f.js → [key]-f94e3accf9507ebf.js} +1 -1
  97. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers/{new-3668866076b53016.js → new-5e83220ff1f2a250.js} +1 -1
  98. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates-1621a4b87c432117.js +1 -0
  99. fides/ui-build/static/admin/_next/static/chunks/pages/poc/{ant-components-9cfb469de7b4aeab.js → ant-components-e02516d9fd314528.js} +1 -1
  100. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-1fe486f3af832c80.js +1 -0
  101. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-2c0ec8fed16c20ae.js +1 -0
  102. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-baf77d34a3b3bece.js +1 -0
  103. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-ee8820fe0fa14c77.js +1 -0
  104. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/{[id]-8634aae3259def37.js → [id]-8eb862182f19a6c2.js} +1 -1
  105. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/{new-2d9dcca17965dc57.js → new-37c29ef618e9fe3c.js} +1 -1
  106. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-1db425150dcb1b6b.js +1 -0
  107. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-f108bf5015144d2f.js +1 -0
  108. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-59c89489fa32a4cb.js → [id]-0e7c7228d01290ea.js} +1 -1
  109. fides/ui-build/static/admin/_next/static/chunks/pages/{systems-cfaa37a0df83674b.js → systems-adc13b542e10a37d.js} +1 -1
  110. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-23dd250da26511c5.js +1 -0
  111. fides/ui-build/static/admin/_next/static/chunks/webpack-6f97ebe373e7ef6b.js +1 -0
  112. fides/ui-build/static/admin/_next/static/css/65ae906f224cd8ae.css +1 -0
  113. fides/ui-build/static/admin/_next/static/css/d5701118537cbdd2.css +1 -0
  114. fides/ui-build/static/admin/add-systems/manual.html +1 -1
  115. fides/ui-build/static/admin/add-systems/multiple.html +1 -1
  116. fides/ui-build/static/admin/add-systems.html +1 -1
  117. fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
  118. fides/ui-build/static/admin/consent/configure.html +1 -1
  119. fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
  120. fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
  121. fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
  122. fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
  123. fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
  124. fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
  125. fides/ui-build/static/admin/consent/properties.html +1 -1
  126. fides/ui-build/static/admin/consent/reporting.html +1 -1
  127. fides/ui-build/static/admin/consent.html +1 -1
  128. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
  129. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
  130. fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
  131. fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
  132. fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
  133. fides/ui-build/static/admin/data-catalog.html +1 -1
  134. fides/ui-build/static/admin/data-discovery/action-center/datastore/[monitorId].html +1 -1
  135. fides/ui-build/static/admin/data-discovery/action-center/datastore.html +1 -1
  136. fides/ui-build/static/admin/data-discovery/action-center/website/[monitorId]/[systemId].html +1 -1
  137. fides/ui-build/static/admin/data-discovery/action-center/website/[monitorId].html +1 -1
  138. fides/ui-build/static/admin/data-discovery/action-center/website.html +1 -1
  139. fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
  140. fides/ui-build/static/admin/data-discovery/activity.html +1 -1
  141. fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
  142. fides/ui-build/static/admin/data-discovery/detection.html +1 -1
  143. fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
  144. fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
  145. fides/ui-build/static/admin/datamap.html +1 -1
  146. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
  147. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
  148. fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
  149. fides/ui-build/static/admin/dataset/new.html +1 -1
  150. fides/ui-build/static/admin/dataset.html +1 -1
  151. fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
  152. fides/ui-build/static/admin/datastore-connection/new.html +1 -1
  153. fides/ui-build/static/admin/datastore-connection.html +1 -1
  154. fides/ui-build/static/admin/index.html +1 -1
  155. fides/ui-build/static/admin/integrations/[id].html +1 -1
  156. fides/ui-build/static/admin/integrations.html +1 -1
  157. fides/ui-build/static/admin/lib/fides-ext-gpp.js +1 -1
  158. fides/ui-build/static/admin/lib/fides-preview.js +1 -1
  159. fides/ui-build/static/admin/lib/fides-tcf.js +2 -2
  160. fides/ui-build/static/admin/login/[provider].html +1 -1
  161. fides/ui-build/static/admin/login.html +1 -1
  162. fides/ui-build/static/admin/new-privacy-requests.html +1 -1
  163. fides/ui-build/static/admin/notifications/digests/[id].html +1 -1
  164. fides/ui-build/static/admin/notifications/digests/new.html +1 -1
  165. fides/ui-build/static/admin/notifications/digests.html +1 -1
  166. fides/ui-build/static/admin/notifications/providers/[key].html +1 -1
  167. fides/ui-build/static/admin/notifications/providers/new.html +1 -1
  168. fides/ui-build/static/admin/notifications/providers.html +1 -1
  169. fides/ui-build/static/admin/notifications/templates/[id].html +1 -1
  170. fides/ui-build/static/admin/notifications/templates/add-template.html +1 -1
  171. fides/ui-build/static/admin/notifications/templates.html +1 -1
  172. fides/ui-build/static/admin/notifications.html +1 -1
  173. fides/ui-build/static/admin/poc/ant-components.html +1 -1
  174. fides/ui-build/static/admin/poc/form-experiments/AntForm.html +1 -1
  175. fides/ui-build/static/admin/poc/form-experiments/FormikAntFormItem.html +1 -1
  176. fides/ui-build/static/admin/poc/form-experiments/FormikControlled.html +1 -1
  177. fides/ui-build/static/admin/poc/form-experiments/FormikField.html +1 -1
  178. fides/ui-build/static/admin/poc/form-experiments/FormikSpreadField.html +1 -1
  179. fides/ui-build/static/admin/poc/forms.html +1 -1
  180. fides/ui-build/static/admin/poc/table-migration.html +1 -1
  181. fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
  182. fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
  183. fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
  184. fides/ui-build/static/admin/privacy-requests.html +1 -1
  185. fides/ui-build/static/admin/properties/[id].html +1 -1
  186. fides/ui-build/static/admin/properties/add-property.html +1 -1
  187. fides/ui-build/static/admin/properties.html +1 -1
  188. fides/ui-build/static/admin/reporting/datamap.html +1 -1
  189. fides/ui-build/static/admin/sandbox/privacy-notices.html +1 -1
  190. fides/ui-build/static/admin/settings/about/alpha.html +1 -1
  191. fides/ui-build/static/admin/settings/about.html +1 -1
  192. fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +1 -1
  193. fides/ui-build/static/admin/settings/consent.html +1 -1
  194. fides/ui-build/static/admin/settings/custom-fields/[id].html +1 -1
  195. fides/ui-build/static/admin/settings/custom-fields/new.html +1 -1
  196. fides/ui-build/static/admin/settings/custom-fields.html +1 -1
  197. fides/ui-build/static/admin/settings/domain-records.html +1 -1
  198. fides/ui-build/static/admin/settings/domains.html +1 -1
  199. fides/ui-build/static/admin/settings/email-templates.html +1 -1
  200. fides/ui-build/static/admin/settings/locations.html +1 -1
  201. fides/ui-build/static/admin/settings/organization.html +1 -1
  202. fides/ui-build/static/admin/settings/privacy-requests.html +1 -1
  203. fides/ui-build/static/admin/settings/regulations.html +1 -1
  204. fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
  205. fides/ui-build/static/admin/systems/configure/[id].html +1 -1
  206. fides/ui-build/static/admin/systems.html +1 -1
  207. fides/ui-build/static/admin/taxonomy.html +1 -1
  208. fides/ui-build/static/admin/user-management/new.html +1 -1
  209. fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
  210. fides/ui-build/static/admin/user-management.html +1 -1
  211. fides/ui-build/static/admin/_next/static/chunks/1099-31f9d973bc287df8.js +0 -1
  212. fides/ui-build/static/admin/_next/static/chunks/1316-2606e19807c08aa5.js +0 -1
  213. fides/ui-build/static/admin/_next/static/chunks/1437-8b1f6c8797c68bfd.js +0 -1
  214. fides/ui-build/static/admin/_next/static/chunks/1467-8808ec8836e033f9.js +0 -1
  215. fides/ui-build/static/admin/_next/static/chunks/155-f6302d32cba4cab6.js +0 -1
  216. fides/ui-build/static/admin/_next/static/chunks/1817-2d5cf537a2992c79.js +0 -1
  217. fides/ui-build/static/admin/_next/static/chunks/2962-342ad1b4ab402ded.js +0 -1
  218. fides/ui-build/static/admin/_next/static/chunks/3377-988ac2f3a2e8d5d4.js +0 -1
  219. fides/ui-build/static/admin/_next/static/chunks/3446-f40c352c43ac950c.js +0 -1
  220. fides/ui-build/static/admin/_next/static/chunks/346-aa3b88efb85f2e28.js +0 -1
  221. fides/ui-build/static/admin/_next/static/chunks/3700-f695f2f6b8251971.js +0 -1
  222. fides/ui-build/static/admin/_next/static/chunks/3772-9f1713f9d5f97a10.js +0 -1
  223. fides/ui-build/static/admin/_next/static/chunks/3873-d18e47b327445db5.js +0 -1
  224. fides/ui-build/static/admin/_next/static/chunks/5163-e682273cd76a7d07.js +0 -1
  225. fides/ui-build/static/admin/_next/static/chunks/5279-bd6cccabdd6ca447.js +0 -1
  226. fides/ui-build/static/admin/_next/static/chunks/549-28537a6de666944b.js +0 -1
  227. fides/ui-build/static/admin/_next/static/chunks/5619-9b50cec521203989.js +0 -1
  228. fides/ui-build/static/admin/_next/static/chunks/5643-3459282d296a3c59.js +0 -1
  229. fides/ui-build/static/admin/_next/static/chunks/6277-3759894435cb8569.js +0 -1
  230. fides/ui-build/static/admin/_next/static/chunks/6315-e2fb5ea77179a871.js +0 -1
  231. fides/ui-build/static/admin/_next/static/chunks/6344-ca66a6e10d128179.js +0 -1
  232. fides/ui-build/static/admin/_next/static/chunks/6419-11d67f7fd4e2f247.js +0 -1
  233. fides/ui-build/static/admin/_next/static/chunks/6954-84789a4e4fb04eb9.js +0 -1
  234. fides/ui-build/static/admin/_next/static/chunks/699-8ca44b0de9fa20f0.js +0 -1
  235. fides/ui-build/static/admin/_next/static/chunks/7488-cf92601852e3c509.js +0 -1
  236. fides/ui-build/static/admin/_next/static/chunks/7773-9ae233109bc64ec2.js +0 -1
  237. fides/ui-build/static/admin/_next/static/chunks/8011-75af8b480fa114e6.js +0 -1
  238. fides/ui-build/static/admin/_next/static/chunks/8373-22b4d20e8cc06b3a.js +0 -1
  239. fides/ui-build/static/admin/_next/static/chunks/8765-f622a35b40a7ec63.js +0 -1
  240. fides/ui-build/static/admin/_next/static/chunks/9037-453224ba3ee65b13.js +0 -1
  241. fides/ui-build/static/admin/_next/static/chunks/9187-7438242f0d380bb0.js +0 -1
  242. fides/ui-build/static/admin/_next/static/chunks/9278-08cc704317fe535e.js +0 -1
  243. fides/ui-build/static/admin/_next/static/chunks/9682-d1a3afa1394f8304.js +0 -1
  244. fides/ui-build/static/admin/_next/static/chunks/9729-fcf6ff4e3534e4a8.js +0 -1
  245. fides/ui-build/static/admin/_next/static/chunks/9899-d6437facac926264.js +0 -1
  246. fides/ui-build/static/admin/_next/static/chunks/9965-25621dd507e0cfd6.js +0 -1
  247. fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-11f1683aa15e1a62.js +0 -1
  248. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-d60761c20382b259.js +0 -1
  249. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources-aed94957009eb3fd.js +0 -1
  250. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-127c114dd8f102ed.js +0 -1
  251. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/datastore/[monitorId]-5aa7a9fa96160de8.js +0 -1
  252. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/[monitorId]/[systemId]-899bf30dde8b3292.js +0 -1
  253. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-823d0dd77e66585b.js +0 -1
  254. fides/ui-build/static/admin/_next/static/chunks/pages/datamap-3b100c44ea9e3988.js +0 -1
  255. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-3d1e48f4b95d7f6b.js +0 -1
  256. fides/ui-build/static/admin/_next/static/chunks/pages/dataset-d3c6ecf7f29bea6e.js +0 -1
  257. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/[id]-0a4aa42be2da0255.js +0 -1
  258. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-14313e441a13192c.js +0 -1
  259. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-f139d1ce26404f30.js +0 -1
  260. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-b2d3d28b10a758e6.js +0 -1
  261. fides/ui-build/static/admin/_next/static/chunks/pages/new-privacy-requests-df0c95e408c54c7e.js +0 -1
  262. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates-a14c876b49422597.js +0 -1
  263. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-cdd3754289a28317.js +0 -1
  264. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-6e4c535b6d614596.js +0 -1
  265. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-632b3ee563d070f2.js +0 -1
  266. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-5b6807dced8d03c5.js +0 -1
  267. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-7dce52bfc1b2652c.js +0 -1
  268. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-b72d36243a0a545c.js +0 -1
  269. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-56a5434969cbe9ba.js +0 -1
  270. fides/ui-build/static/admin/_next/static/chunks/webpack-c2c11809187b9f84.js +0 -1
  271. fides/ui-build/static/admin/_next/static/css/d41a048a166d50e4.css +0 -1
  272. fides/ui-build/static/admin/_next/static/css/d78390d6134d8328.css +0 -1
  273. fides/ui-build/static/admin/_next/static/wCNFtmYQhEDMaMPeBB4BM/_buildManifest.js +0 -1
  274. {ethyca_fides-2.73.2b0.dist-info → ethyca_fides-2.74.0rc1.dist-info}/WHEEL +0 -0
  275. {ethyca_fides-2.73.2b0.dist-info → ethyca_fides-2.74.0rc1.dist-info}/entry_points.txt +0 -0
  276. {ethyca_fides-2.73.2b0.dist-info → ethyca_fides-2.74.0rc1.dist-info}/licenses/LICENSE +0 -0
  277. {ethyca_fides-2.73.2b0.dist-info → ethyca_fides-2.74.0rc1.dist-info}/top_level.txt +0 -0
  278. /fides/ui-build/static/admin/_next/static/{wCNFtmYQhEDMaMPeBB4BM → FZTEUgamBvOhgPWce135w}/_ssgManifest.js +0 -0
  279. /fides/ui-build/static/admin/_next/static/chunks/{2040-7eed8491ca7276ed.js → 2040-fe1a06d82c0413f1.js} +0 -0
  280. /fides/ui-build/static/admin/_next/static/chunks/{2397-083fc511acb6105d.js → 2397-40b8db1cb2f23e2a.js} +0 -0
  281. /fides/ui-build/static/admin/_next/static/chunks/{2921-34a43f2f8f5e5e69.js → 2921-b10bbc3a9104933b.js} +0 -0
  282. /fides/ui-build/static/admin/_next/static/chunks/{3696-6f90e41a53d22920.js → 3696-6db05a35ae806825.js} +0 -0
  283. /fides/ui-build/static/admin/_next/static/chunks/{3923-f0a85dc5c3684fa0.js → 3923-44255a63d6d80ff5.js} +0 -0
  284. /fides/ui-build/static/admin/_next/static/chunks/{401-7c345d019bb9bcbd.js → 401-fe8db8b5d8f600de.js} +0 -0
  285. /fides/ui-build/static/admin/_next/static/chunks/{4496-4ff19366c597ec16.js → 4496-bed72bd5639075be.js} +0 -0
  286. /fides/ui-build/static/admin/_next/static/chunks/{4817-1f3e6ea38625d8d5.js → 4817-d29f40d4ce729f37.js} +0 -0
  287. /fides/ui-build/static/admin/_next/static/chunks/{5185-e7f8b81dd3dfbe0b.js → 5185-b2ac9fecc00b67e7.js} +0 -0
  288. /fides/ui-build/static/admin/_next/static/chunks/{5258-62d6bc19add60aa6.js → 5258-4672eae0656430f9.js} +0 -0
  289. /fides/ui-build/static/admin/_next/static/chunks/{5783-21775c232dce7af7.js → 5783-6055edba275155ca.js} +0 -0
  290. /fides/ui-build/static/admin/_next/static/chunks/{6853-de9905d28e5b19b3.js → 6853-1adbdf6418ec3d62.js} +0 -0
  291. /fides/ui-build/static/admin/_next/static/chunks/{7059-2bb7c38578549703.js → 7059-12be23a345a94c1e.js} +0 -0
  292. /fides/ui-build/static/admin/_next/static/chunks/{7476-a02d970ea4d3f7d0.js → 7476-a43c046c24de37cc.js} +0 -0
  293. /fides/ui-build/static/admin/_next/static/chunks/{7630-a11610c2b31ab2ca.js → 7630-c654c61ba98d8c74.js} +0 -0
  294. /fides/ui-build/static/admin/_next/static/chunks/{796-e36d610066135f8c.js → 796-e83ace3c6ab99ac7.js} +0 -0
  295. /fides/ui-build/static/admin/_next/static/chunks/{8212-393420e5a9751791.js → 8212-b9e8295ca883c9f8.js} +0 -0
  296. /fides/ui-build/static/admin/_next/static/chunks/{9330-f753636a31c4ea04.js → 9330-e519adec48222d45.js} +0 -0
  297. /fides/ui-build/static/admin/_next/static/chunks/{9826-a737a9956c1d0905.js → 9826-657652d55936a8c6.js} +0 -0
  298. /fides/ui-build/static/admin/_next/static/chunks/pages/{404-eb019192ce498f32.js → 404-d079b8bf35250874.js} +0 -0
  299. /fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-a188f84239f4b2a8.js → multiple-b4d18c1f4d414f5f.js} +0 -0
  300. /fides/ui-build/static/admin/_next/static/chunks/pages/{add-systems-ee9df33ebd471099.js → add-systems-d451bc8932330141.js} +0 -0
  301. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-4f9cf087fcee87e6.js → add-vendors-c24663cd5dec57db.js} +0 -0
  302. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-9af75caefc74eaca.js → configure-d93418688bd258eb.js} +0 -0
  303. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-b08abefec298ccf1.js → privacy-experience-d9b7b311195df29e.js} +0 -0
  304. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-6528eb24165aceb6.js → privacy-notices-cdfc9bb19f47c709.js} +0 -0
  305. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-5cba30eba1e97e56.js → properties-0b995b01dc4dbd1f.js} +0 -0
  306. /fides/ui-build/static/admin/_next/static/chunks/pages/{consent-614af0a2c2ba966c.js → consent-b37ed76849330edd.js} +0 -0
  307. /fides/ui-build/static/admin/_next/static/chunks/pages/{index-1343fa525a206571.js → index-692d27dbe9392c9f.js} +0 -0
  308. /fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests/{[id]-63b3be660fb12c0f.js → [id]-caaa8602a1d449b1.js} +0 -0
  309. /fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests/{new-d3b577962dd33266.js → new-9b106b1d2d93985b.js} +0 -0
  310. /fides/ui-build/static/admin/_next/static/chunks/pages/notifications/{digests-aed9afd988a48acf.js → digests-6a1ded8cdde836c4.js} +0 -0
  311. /fides/ui-build/static/admin/_next/static/chunks/pages/notifications/{providers-36a0ac36062abd02.js → providers-a03cbd698a23e5b3.js} +0 -0
  312. /fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates/{[id]-8063dceb32310c85.js → [id]-3cde574b3c8447c0.js} +0 -0
  313. /fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates/{add-template-4931c70bee62232f.js → add-template-0448bb4ae8536c58.js} +0 -0
  314. /fides/ui-build/static/admin/_next/static/chunks/pages/{notifications-93af719dab3bd053.js → notifications-4ea28f6b1dd63642.js} +0 -0
  315. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{AntForm-e715cc654fb6a5cd.js → AntForm-fec08bea801b4918.js} +0 -0
  316. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikAntFormItem-72ae299bcb6adae6.js → FormikAntFormItem-d911e5fbf5a4a888.js} +0 -0
  317. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikControlled-2337f8c81a766eb0.js → FormikControlled-91b1adcac6a57b2d.js} +0 -0
  318. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikField-0af454f55494f6fa.js → FormikField-de309d8813b1ebfb.js} +0 -0
  319. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/{forms-d1b90ffa996fbd89.js → forms-f2943c1309062284.js} +0 -0
  320. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/{table-migration-19724b9e0581b96d.js → table-migration-03eda417711ae909.js} +0 -0
  321. /fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{storage-cc41ae605f2b55ae.js → storage-ea6f78fa8b2d3f6c.js} +0 -0
  322. /fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-fa82cffba448ccd8.js → configure-bda7b474493e7128.js} +0 -0
  323. /fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-bc1c289647e52c48.js → [id]-30d298a47e85709f.js} +0 -0
  324. /fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-cbfaa23d96f5ed0b.js → add-property-438084cca0d0f10d.js} +0 -0
  325. /fides/ui-build/static/admin/_next/static/chunks/pages/{properties-a15a3fd0ed88f39c.js → properties-17fd44d98f5bd5b6.js} +0 -0
  326. /fides/ui-build/static/admin/_next/static/chunks/pages/sandbox/{privacy-notices-afe921f6e2a526fb.js → privacy-notices-8c80391025ca7339.js} +0 -0
  327. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/{[purpose_id]-19de0024418a4924.js → [purpose_id]-7c19810858b708cc.js} +0 -0
  328. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-3b87002753b23ca5.js → domain-records-e334b43fa5c5b1e6.js} +0 -0
  329. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domains-aacd9d0ad47082d4.js → domains-9d18eb5c38d85522.js} +0 -0
  330. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-3cdd0b39901190ba.js → email-templates-cb937ed7c4b1e5a8.js} +0 -0
  331. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-61076eedbfd137b9.js → locations-835281251f0785cd.js} +0 -0
  332. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-b07b11d6002f8c8c.js → organization-7fd050c92866938c.js} +0 -0
  333. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{privacy-requests-084a2b4431d35322.js → privacy-requests-59ea66130fca0d05.js} +0 -0
  334. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-b7c0d3b1b754e70f.js → regulations-b0fe1051d908f366.js} +0 -0
  335. /fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-5d5a68e555d18693.js → [id]-aed30fb22ae7c9ec.js} +0 -0
  336. /fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-e6a211d8a0401086.js → user-management-6b88ca3e02ee67c9.js} +0 -0
@@ -1 +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,8765,9278,5163,699,5277,6344,7245,401,9899,1437,7773,3700,2888,9774,179],function(){return e(e.s=43376)}),_N_E=e.O()}]);
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()}]);
@@ -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(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,[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()}]);
@@ -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(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,[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(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,[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([[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([[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,8765,9278,5163,7245,9682,1099,9330,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()}]);
@@ -1 +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,[8765,9278,5163,9682,1099,2888,9774,179],function(){return e(e.s=21865)}),_N_E=e.O()}]);
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,[431,8765,9278,5163,7245,9682,1099,9330,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()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6721],{74833:function(e,t,r){var n=r(56127),l=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(l,""):e}},56632:function(e,t,r){var n=r(89278),l=r(80068),i=r(50098);e.exports=function(e){return function(t,r,a){var o=Object(t);if(!l(t)){var s=n(r,3);t=i(t),r=function(e){return s(o[e],e,o)}}var c=e(t,r,a);return c>-1?o[s?t[c]:c]:void 0}}},56127:function(e){var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},66726:function(e,t,r){var n=r(11611),l=r(82846),i=r(91936),a=Math.max,o=Math.min;e.exports=function(e,t,r){var s,c,u,d,p,f,h=0,g=!1,m=!1,y=!0;if("function"!=typeof e)throw TypeError("Expected a function");function v(t){var r=s,n=c;return s=c=void 0,h=t,d=e.apply(n,r)}function x(e){var r=e-f,n=e-h;return void 0===f||r>=t||r<0||m&&n>=u}function _(){var e,r,n,i=l();if(x(i))return S(i);p=setTimeout(_,(e=i-f,r=i-h,n=t-e,m?o(n,u-r):n))}function S(e){return(p=void 0,y&&s)?v(e):(s=c=void 0,d)}function A(){var e,r=l(),n=x(r);if(s=arguments,c=this,f=r,n){if(void 0===p)return h=e=f,p=setTimeout(_,t),g?v(e):d;if(m)return clearTimeout(p),p=setTimeout(_,t),v(f)}return void 0===p&&(p=setTimeout(_,t)),d}return t=i(t)||0,n(r)&&(g=!!r.leading,u=(m="maxWait"in r)?a(i(r.maxWait)||0,t):u,y="trailing"in r?!!r.trailing:y),A.cancel=function(){void 0!==p&&clearTimeout(p),h=0,s=f=c=p=void 0},A.flush=function(){return void 0===p?d:S(l())},A}},64925:function(e,t,r){var n=r(56632)(r(66259));e.exports=n},66259:function(e,t,r){var n=r(95372),l=r(89278),i=r(47991),a=Math.max;e.exports=function(e,t,r){var o=null==e?0:e.length;if(!o)return -1;var s=null==r?0:i(r);return s<0&&(s=a(o+s,0)),n(e,l(t,3),s)}},82846:function(e,t,r){var n=r(77400);e.exports=function(){return n.Date.now()}},94919:function(e,t,r){var n=r(91936),l=1/0;e.exports=function(e){return e?(e=n(e))===l||e===-l?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,r){var n=r(94919);e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},91936:function(e,t,r){var n=r(74833),l=r(11611),i=r(55193),a=0/0,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return a;if(l(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=l(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=s.test(e);return r||c.test(e)?u(e.slice(2),r?2:8):o.test(e)?a:+e}},83806:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/datastore/[monitorId]",function(){return r(66792)}])},30952:function(e,t,r){"use strict";r.d(t,{f:function(){return s}});var n=r(24246),l=r(66726),i=r.n(l),a=r(27378),o=r(26917);let s=e=>{let{value:t,onChange:r,placeholder:l,...s}=e,[c,u]=(0,a.useState)(t);(0,a.useEffect)(()=>{u(t||"")},[t]);let d=i()(r,500),p=(0,a.useCallback)(e=>{u(e),d(e)},[]);return(0,n.jsx)(o.Z,{value:c,onChange:p,onClear:()=>{u(""),r("")},placeholder:l,...s})}},35287:function(e,t,r){"use strict";var n=r(24246),l=r(98227),i=r(88038),a=r.n(i);r(27378),t.Z=e=>{let{children:t,title:r,fullHeight:i,fullWidth:o,mainProps:s}=e;return(0,n.jsxs)(l.kCb,{"data-testid":r,direction:"column",height:i?"100vh":"calc(100vh - 48px)",width:o?"100vw":"calc(100vw - 240px)",children:[(0,n.jsxs)(a(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",r]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsx)(l.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...s,children:t})]})}},12627:function(e,t,r){"use strict";var n=r(24246),l=r(79283),i=r(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:r=!1,...a}=e,{getDataCategoryDisplayNameProps:o,getDataCategories:s}=(0,i.Z)(),c=(r?s():s().filter(e=>e.active)).filter(e=>!(null==t?void 0:t.includes(e.fides_key))).map(e=>{let{name:t,primaryName:r}=o(e.fides_key);return{value:e.fides_key,name:t,primaryName:r,description:e.description||""}});return(0,n.jsx)(l.l,{options:c,...a})}},79283:function(e,t,r){"use strict";r.d(t,{l:function(){return u}});var n=r(24246),l=r(98227),i=r(72707),a=r.n(i);let o=e=>{let{data:{formattedTitle:t,description:r,name:i,primaryName:a}}=e;return(0,n.jsxs)(l.jqI,{gap:12,title:"".concat(t," - ").concat(r),children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("strong",{children:a||i}),a&&": ".concat(i)]}),(0,n.jsx)("em",{children:r})]})},s=e=>"options"in e&&Array.isArray(e.options),c=e=>({...e,className:a().option,formattedTitle:e.formattedTitle||[e.primaryName,e.name].filter(e=>e).join(": ")}),u=e=>{let{options:t,...r}=e,i=null==t?void 0:t.map(e=>s(e)?{...e,options:e.options.map(c)}:c(e));return(0,n.jsx)(l.WPr,{options:i,filterOption:(e,t)=>{var r,n;return(null==t?void 0:null===(r=t.formattedTitle)||void 0===r?void 0:r.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",...r})}},34929:function(e,t,r){"use strict";var n=r(24246),l=r(64925),i=r.n(l),a=r(27378),o=r(16134),s=r(30002),c=r(28079),u=r(57072);let d=()=>{let{isLoading:e}=(0,c.fd)(),t=(0,o.C)(c.U3),{isLoading:r}=(0,u.MO)(),n=(0,o.C)(u.qb),{isLoading:l}=(0,s.te)();return{dataUses:t,dataSubjects:(0,o.C)(s.ZL),dataCategories:n,isLoading:e||r||l}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:r,isLoading:l}=d(),o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},s=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=t(e);if(!n)return{};let l=t(o(e,r)),i=!!n.parent_key;return{name:n.name||void 0,primaryName:i&&(null==l?void 0:l.name)!==n.name&&(null==l?void 0:l.name)||void 0}},c=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:l,primaryName:i}=s(e,t,r);return l?i?(0,n.jsxs)(a.Fragment,{children:[(0,n.jsxs)("strong",{children:[i,":"]})," ",l]},e):(0,n.jsx)("strong",{children:l},e):e},u=t=>i()(e,{fides_key:t}),p=e=>i()(t,{fides_key:e}),f=e=>i()(r,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:u,getDataUseDisplayName:e=>c(e,u,1),getDataUseDisplayNameProps:e=>s(e,u,1),getDataCategories:()=>t,getDataCategoryByKey:p,getDataCategoryDisplayName:e=>c(e,p,2),getDataCategoryDisplayNameProps:e=>s(e,p,2),getDataSubjects:()=>r,getDataSubjectByKey:f,getDataSubjectDisplayName:e=>{let t=f(e);return t?t.name:e},getPrimaryKey:o,isLoading:l}}},9270:function(e,t,r){"use strict";r.d(t,{S:function(){return i}});var n=r(27378),l=r(36866);let i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,l.h)(e),{pageIndex:r,pageSize:i,updatePageIndex:a,updatePageSize:o,pageSizeOptions:s,showSizeChanger:c}=t,u=(0,n.useMemo)(()=>({current:r,pageSize:i,showSizeChanger:c,pageSizeOptions:s.map(String),onChange:a,onShowSizeChange:(e,t)=>{o(t)}}),[r,i,c,s,a,o]);return{...t,paginationProps:u}}},57072:function(e,t,r){"use strict";r.d(t,{Bd:function(){return n.Bd},L5:function(){return n.L5},MO:function(){return n.MO},qb:function(){return n.qb}});var n=r(5785)},66792:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return e1}});var n,l,i,a,o=r(24246),s=r(98227),c=r(25980),u=r(86677),d=r(27378),p=r(43929),f=r(30952),h=r(35287),g=r(17245),m=r(77830),y=r(58754),v=r(9270),x=r(37059),_=r(65735);(n=i||(i={})).CLASSIFY="classify",n.APPROVE="approve",n.UN_APPROVE="un-approve",n.PROMOTE="promote",n.PROMOTE_REMOVALS="promote-removals",n.MUTE="mute",n.UN_MUTE="un-mute",n.ASSIGN_CATEGORIES="assign-categories";let{APPROVE:S,CLASSIFY:A,PROMOTE:b,MUTE:I,UN_MUTE:E}=i,j={approve:"Approve","assign-categories":"Assign categories",classify:"Classify",mute:"Ignore",promote:"Confirm","promote-removals":"Promote removals","un-approve":"Un-approve","un-mute":"Restore"},L={approve:"Approving","assign-categories":"Updating data categories",classify:"Classifying",mute:"Ignoring",promote:"Confirming","promote-removals":"Promoting removals","un-approve":"Un-approving","un-mute":"Restoring"},T={approve:"Approved","assign-categories":"Data category updated",classify:"Classified",mute:"Ignored",promote:"Confirmed","promote-removals":"Promoted removals","un-approve":"Un-approved","un-mute":"Restored"},C=[S,b],O=[A,S,b,I,E],k=[A,b],R={[S]:"You can only approve resources with a data category applied",[A]:"You cannot classify resources that are already in classification or ignored",[I]:"You cannot ignore resources that are already ignored",[b]:"You can only confirm resources that have a data category applied",[E]:"You can only restore resources that are ignored"},D={classify:[_.LL.ADDITION,_.LL.CLASSIFICATION_ADDITION,_.LL.CLASSIFICATION_UPDATE,_.LL.CLASSIFICATION_ERROR],approve:[_.LL.CLASSIFICATION_ADDITION,_.LL.CLASSIFICATION_UPDATE,_.LL.APPROVED],"un-approve":[_.LL.APPROVED],promote:[_.LL.CLASSIFICATION_ADDITION,_.LL.CLASSIFICATION_UPDATE,_.LL.APPROVED,_.LL.PROMOTION_ERROR],"promote-removals":[_.LL.REMOVAL,_.LL.REMOVAL_PROMOTION_ERROR],mute:[_.LL.ADDITION,_.LL.CLASSIFICATION_ADDITION,_.LL.CLASSIFICATION_UPDATE,_.LL.APPROVED,_.LL.REMOVAL,_.LL.CLASSIFICATION_ERROR,_.LL.PROMOTION_ERROR,_.LL.REMOVAL_PROMOTION_ERROR],"un-mute":[_.LL.MUTED],"assign-categories":[_.LL.ADDITION,_.LL.CLASSIFICATION_ADDITION,_.LL.CLASSIFICATION_UPDATE,_.LL.APPROVED,_.LL.CLASSIFICATION_ERROR,_.LL.PROMOTION_ERROR]},P={"assign-categories":null,"promote-removals":null,"un-approve":null,"un-mute":(0,o.jsx)(s.PJP.G7x,{}),approve:(0,o.jsx)(s.PJP.MCw,{}),classify:(0,o.jsx)(s.QMR,{size:14}),mute:(0,o.jsx)(s.PJP.uzw,{}),promote:(0,o.jsx)(s.PJP.MCw,{})},w={"assign-categories":e=>null,"promote-removals":e=>null,"un-approve":e=>null,"un-mute":e=>"Are you sure you want to restore ".concat(e.toLocaleString()," resources?"),approve:e=>"Are you sure you want to approve ".concat(e.toLocaleString()," resources?"),classify:e=>"Are you sure you want to run the classifier and apply data categories to ".concat(e.toLocaleString()," unlabeled resources?"),mute:e=>"Are you sure you want to ignore ".concat(e.toLocaleString()," resources? After ignoring, these resources may reappear in future scans."),promote:e=>"Are you sure you want to confirm these ".concat(e.toLocaleString()," resources? After confirming this data can be used for policy automation and DSRs. ")},N={onCancel:async()=>!1,onOk:async()=>!0,icon:null,width:542};var M=r(98784),U=r.n(M);let F="space",q=e=>e.map(e=>{let{itemKey:t}=e;return t}),z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{activeListItem:t=null,enableKeyboardShortcuts:r=!1}=e,[n,l]=(0,d.useState)("inclusive"),[i,a]=(0,d.useState)([]),[o,s]=(0,d.useState)([]),c=e=>{s(U().uniqBy(e,"itemKey"))},u=(e,t)=>{let r=i.find(t=>e===t.itemKey);r&&((("inclusive"===n?t:!t)?"add":"remove")=="add"?c([...o,r]):c(o.filter(t=>t.itemKey!==e)))},f=e=>{l(e),s([])},h=i.filter(e=>{let{itemKey:t}=e;return!o.find(e=>e.itemKey===t)}),g="inclusive"===n?o:h,m="exclusive"===n?o:h;return(0,p.y1)("h",()=>{f("exclusive")},{enabled:r}),(0,p.y1)("l",()=>{f("inclusive")},{enabled:r}),(0,p.y1)(F,e=>{if(t){e.preventDefault();let r=g.some(e=>e.itemKey===t.itemKey);u(t.itemKey,!r)}},{enabled:r},[t,g,u]),{excludedListItems:m,indeterminate:"inclusive"===n?g.length>0&&i.length!==g.length:m.length>0,isBulkSelect:"inclusive"===n?g.length>0&&i.length===g.length:0===m.length,listSelectMode:n,resetListSelect:()=>{s([]),l("inclusive")},selectedListItems:g,updateListItems:a,updateListSelectMode:f,updateSelectedListItem:u}},V=e=>{let{...t}=e;return(0,o.jsx)(s.$zI,{title:"Keyboard shortcuts",footer:null,...t,children:(0,o.jsx)(s.Yfl,{bordered:!0,column:1,items:[{key:"".concat(s.dHR.NAVIGATE_UP,"-").concat(s.dHR.NAVIGATE_DOWN),label:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s.AntTypography.Text,{keyboard:!0,children:s.dHR.NAVIGATE_DOWN})," ","/"," ",(0,o.jsx)(s.AntTypography.Text,{keyboard:!0,children:s.dHR.NAVIGATE_UP})]}),children:"Activate the next/previous field"},{key:F,label:(0,o.jsx)(s.AntTypography.Text,{keyboard:!0,children:F}),children:"Toggle checkbox of the active field"},{key:"h",label:(0,o.jsx)(s.AntTypography.Text,{keyboard:!0,children:"h"}),children:"Select all fields"},{key:"l",label:(0,o.jsx)(s.AntTypography.Text,{keyboard:!0,children:"l"}),children:"Deselect all fields"},{key:s.dHR.CLEAR_FOCUS,label:(0,o.jsx)(s.AntTypography.Text,{keyboard:!0,children:s.dHR.CLEAR_FOCUS}),children:"Clear the active field"},{key:"o",label:(0,o.jsx)(s.AntTypography.Text,{keyboard:!0,children:"o"}),children:"Open/close details drawer for active field"},{key:"a",label:(0,o.jsx)(s.AntTypography.Text,{keyboard:!0,children:"a"}),children:"Approve the active field"},{key:"c",label:(0,o.jsx)(s.AntTypography.Text,{keyboard:!0,children:"c"}),children:"Confirm the active field"},{key:"i",label:(0,o.jsx)(s.AntTypography.Text,{keyboard:!0,children:"i"}),children:"Ignore the active field"},{key:"r",label:(0,o.jsx)(s.AntTypography.Text,{keyboard:!0,children:"r"}),children:"Restore the active field"},{key:"e",label:(0,o.jsx)(s.AntTypography.Text,{keyboard:!0,children:"e"}),children:"Edit data categories for the active field"},{key:"?",label:(0,o.jsx)(s.AntTypography.Text,{keyboard:!0,children:"?"}),children:"Open/close this modal"}]})})};var $=r(78780),K=r(16394);let{useFieldActionsMutation:G,useGetMonitorFieldsQuery:J,useLazyGetAllowedActionsQuery:W}=$.u.injectEndpoints({endpoints:e=>({getMonitorFields:e.query({query:e=>{let{path:{monitor_config_id:t},query:{page:r=1,size:n=20,search:l,diff_status:i,confidence_score:a,...o}}=e,s=(0,K.$J)({...o,...l?{search:[l]}:{},...i?{diff_status:i}:{},...a?{confidence_score:a}:{}});return{url:"/plus/discovery-monitor/".concat(t,"/fields?").concat(null==s?void 0:s.toString()),params:{page:r,size:n}}},providesTags:["Monitor Field Results"]}),fieldActions:e.mutation({query:e=>{let{path:{monitor_config_id:t,action_type:r},query:{search:n,diff_status:l,confidence_score:i,...a},...o}=e,s=(0,K.$J)({...a,...n?{search:[n]}:{},...l?{diff_status:l}:{},...i?{confidence_score:i}:{}});return{url:"/plus/discovery-monitor/".concat(t,"/fields/").concat(r,"?").concat(s.toString()),method:"POST",body:o}},invalidatesTags:["Monitor Field Results","Monitor Field Details"]}),getAllowedActions:e.query({query:e=>{let{path:{monitor_config_id:t},query:{search:r,diff_status:n,confidence_score:l,...i},...a}=e,o=(0,K.$J)({...i,...r?{search:[r]}:{},...n?{diff_status:n}:{},...l?{confidence_score:l}:{}});return{url:"/plus/discovery-monitor/".concat(t,"/fields/allowed-actions?").concat(o.toString()),method:"POST",body:a}},providesTags:["Allowed Monitor Field Actions"]})})});var Y=r(83766),H=r.n(Y),Z=r(59001),B=r(90673),Q=r(39864),X=r(3124),ee=r.n(X);let et="load_more",er="skeleton",en=["Unlabeled","Classifying","In Review","Approved","Confirming...","Confirmed","Removed","Ignored","Error"],el=["Confirmed","Ignored","Confirming..."],ei=e=>e.filter(e=>!el.includes(e)),ea={addition:{label:"Unlabeled"},approved:{label:"Approved",color:s.tAb.SUCCESS},classification_addition:{label:"In Review",color:s.tAb.CAUTION},classification_error:{label:"Error",color:s.tAb.ERROR},classification_queued:{label:"Classifying",color:s.tAb.INFO},classification_update:{label:"In Review",color:s.tAb.CAUTION},classifying:{label:"Classifying",color:s.tAb.INFO},monitored:{label:"Confirmed",color:s.tAb.MINOS},muted:{label:"Ignored",color:s.tAb.DEFAULT},promoting:{label:"Confirming...",color:s.tAb.DEFAULT},promotion_error:{label:"Error",color:s.tAb.ERROR},removal:{label:"Removed",color:s.tAb.ERROR},removing:{label:"In Review",color:s.tAb.CAUTION},removal_promotion_error:{label:"Error",color:s.tAb.ERROR}},eo={[_.D$.DATABASE]:s.PJP.S9g,[_.D$.FIELD]:s.PJP.sgG,[_.D$.SCHEMA]:s.PJP.ehp,[_.D$.TABLE]:s.PJP.iA_},es={STATUS:"status-section",DATA_CATEGORY:"data-category-section",CONFIDENCE:"confidence-section"},ec={[_.Ag.ADDITION]:{color:ee().FIDESUI_SUCCESS,tooltip:"This resource was added in the latest scan"},[_.Ag.REMOVAL]:{color:ee().FIDESUI_ERROR,tooltip:"This resource was removed in the latest scan"},[_.Ag.CHANGE]:{color:ee().FIDESUI_WARNING,tooltip:"This resource was modified in the latest scan"}},eu=(e,t)=>{if(!e||0===e.length)return[];let r=(e,t)=>{let n=t=>{if(t.value===e)return{title:t.label||e,children:t.children||[]};if(t.children&&t.children.length>0){let n=r(e,t.children);if(n)return n}return null};return t.reduce((e,t)=>null!=e?e:n(t),null)},n=new Map;e.forEach(e=>{let l=e.split(".");l.forEach((e,i)=>{let a=l.slice(0,i+1).join(".");if(!n.has(a)){let e=r(a,t);n.set(a,{title:(null==e?void 0:e.title)||(0,K.kC)(a.split(".").pop()||a),key:a,checkable:!0,selectable:!1})}})});let l=Array.from(n.values()),i=new Map;l.forEach(e=>{let t=e.key.toString().split(".");if(t.length>1){let r=t.slice(0,-1).join(".");i.has(r)||i.set(r,[]),i.get(r).push(e)}});let a=e=>(i.get(e)||[]).map(e=>{let t=a(e.key.toString());return{...e,children:t.length>0?t:void 0,isLeaf:0===t.length}});return l.filter(e=>1===e.key.toString().split(".").length).map(e=>{let t=a(e.key.toString());return{...e,children:t.length>0?t:void 0,isLeaf:0===t.length}})},ed=e=>{let{resourceStatus:t,setResourceStatus:r,dataCategory:n,setDataCategory:l,resetToInitialState:i,monitorId:a,stagedResourceUrn:c}=e,[u,p]=(0,d.useState)(t),[f,h]=(0,d.useState)(n),[g,m]=(0,d.useState)([es.STATUS]);(0,d.useEffect)(()=>{p(t)},[t]),(0,d.useEffect)(()=>{h(n)},[n]);let y=c.join(",");(0,d.useEffect)(()=>{i()},[y]);let{data:v,refetch:_}=(0,x.S0)({monitor_config_id:a,staged_resource_urn:c},{refetchOnMountOrArgChange:!0}),[S,{data:A=[]}]=(0,Q.ci)();(0,d.useEffect)(()=>{S(Z.ac.DATA_CATEGORY)},[S]);let b=(0,d.useMemo)(()=>(0,B.Cd)(A),[A]),I=(0,d.useMemo)(()=>en.map(e=>({title:e.replace(/\.{3}$/,""),key:e,checkable:!0,selectable:!1,isLeaf:!0})),[]),E=(0,d.useMemo)(()=>(null==v?void 0:v.data_category)&&0!==v.data_category.length?eu(v.data_category,b):[],[null==v?void 0:v.data_category,b]),j=(0,d.useMemo)(()=>{let e=[];return I.length>0&&e.push({title:"Status",key:es.STATUS,checkable:!0,selectable:!1,isLeaf:!1,children:I}),E.length>0&&e.push({title:"Data category",key:es.DATA_CATEGORY,checkable:!0,selectable:!1,isLeaf:!1,children:E}),e},[I,E]),L=(0,d.useMemo)(()=>H()([...null!=u?u:[],...null!=f?f:[]]),[u,f]),T=(0,d.useMemo)(()=>{let e=0;return t&&(e+=new Set(t).size),n&&(e+=new Set(n).size),e},[t,n]);return(0,o.jsx)(s.wn$,{treeProps:{checkable:!0,checkedKeys:L,onCheck:e=>{let t=Array.isArray(e)?e:e.checked,r=[],n=[],l=Object.values(es),i=(e,t)=>t.some(t=>t!==e&&t.startsWith("".concat(e,"."))),a=t.map(e=>e.toString());t.forEach(e=>{let t=e.toString();if(l.some(e=>e===t))return;let o=en.find(e=>e===t);o?r.push(o):i(t,a)||n.push(t)}),p(r.length>0?r:[]),h(n.length>0?n:[])},treeData:j,expandedKeys:g,onExpand:e=>{m(e)}},onApply:()=>{r(u&&u.length>0?Array.from(new Set(u)):u),l(f&&f.length>0?Array.from(new Set(f)):f)},onReset:()=>{i(),p(ei([...en])),h([])},onClear:()=>{p([]),h([])},onOpenChange:e=>{if(e){_();return}p(t),h(n)},activeFiltersCount:T})};(l=a||(a={})).LOW="low",l.HIGH="high",l.MANUAL="manual";let ep=e=>{let{percent:t,confidenceScore:r}=e;return null},ef=e=>{switch(e){case 1:return _.D$.DATABASE;case 2:return _.D$.SCHEMA;case 3:return _.D$.TABLE;default:return _.D$.FIELD}},eh=e=>{if(!e||"string"!=typeof e)return[];let t=e.trim();if(!t)return[];let r=t.split(".");if(r.length<2)return[];let n=r.filter(e=>e&&e.trim().length>0);return n.length<2?[]:(n.shift(),n.length>0&&n.pop(),0===n.length)?[]:n.map((e,t)=>{let r=eo[ef(t+1)];return{title:e.trim(),IconComponent:r}})};var eg=r(79283),em=r(34929),ey=e=>{let{onSelectDataCategory:t,urn:r,...n}=e,{getDataCategoryDisplayNameProps:l,getDataCategories:i}=(0,em.Z)(),a=i().filter(e=>e.active),[c,u]=(0,d.useState)(!1),p=a.map(e=>{let{name:t,primaryName:r}=l(e.fides_key);return{value:e.fides_key,label:(0,o.jsxs)("div",{children:[(0,o.jsx)("strong",{children:r||t}),r&&": ".concat(t)]}),name:t,primaryName:r,description:e.description||""}});return(0,o.jsx)(eg.l,{options:p,prefix:(0,o.jsx)(s.wpx,{"aria-label":"Add Data Category",type:"text",size:"small",icon:(0,o.jsx)(s.PJP.mm_,{}),disabled:n.disabled}),placeholder:"",suffixIcon:null,classNames:{root:"w-full max-w-full overflow-hidden p-0 cursor-pointer -ml-5"},style:{"--ant-select-multiple-selector-bg-disabled":"transparent"},variant:"borderless",autoFocus:!1,maxTagCount:"responsive",open:c,onOpenChange:e=>u(e),onSelect:e=>{t(e),u(!1)},"data-classification-select":r,...n})},ev=r(97947),ex=r.n(ev);let e_=e=>{let{label:t,closable:r,onClose:n,isFromClassifier:l}=e;return(0,o.jsx)(s.j8w,{color:"white",bordered:!0,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},closable:r,onClose:n,style:{marginInlineEnd:"calc((var(--ant-padding-xs) * 0.5))"},icon:l&&(0,o.jsx)(s.QMR,{}),children:(0,o.jsx)(s.lKn,{size:"sm",children:t})})},eS=e=>{let{title:t,IconComponent:r}=e;return{title:r?(0,o.jsxs)(s.jqI,{gap:3,align:"center",children:[(0,o.jsx)(r,{}),(0,o.jsx)("span",{children:t})]}):t}};var eA=e=>{let{urn:t,classifications:r,name:n,diff_status:l,selected:i,onSelect:c,onSetDataCategories:u,dataCategoriesDisabled:d,onNavigate:p,preferred_data_categories:f,actions:h}=e;return(0,o.jsx)(s.krs.Item,{actions:[r&&r.length>0&&(0,o.jsx)(ep,{percent:r.find(e=>e.confidence_score===a.HIGH)?100:25}),...null!=h?h:[]],children:(0,o.jsx)(s.krs.Item.Meta,{avatar:(0,o.jsx)("div",{className:"ml-2",children:(0,o.jsx)(s.E_O,{checked:i,onChange:e=>c&&c(t,e.target.checked)})}),title:(0,o.jsxs)(s.jqI,{gap:12,align:"center",className:ex()["monitor-field__title"],children:[(0,o.jsx)(s.wpx,{type:"text",size:"small",className:"-mx-2",onClick:()=>p&&p(t),children:n}),l&&l!==_.LL.ADDITION&&(0,o.jsx)(s.j8w,{bordered:!1,color:ea[l].color,children:ea[l].label}),(0,o.jsx)(s.esZ,{title:t,mouseEnterDelay:.5,children:(0,o.jsx)(s.zrq,{className:ex()["monitor-field__breadcrumb"],items:eh(t).map(eS),role:"presentation",style:{overflow:"hidden"}})})]}),description:(0,o.jsx)(ey,{mode:"multiple",value:null!=f?f:[],urn:t,tagRender:e=>{let n=!!(null==r?void 0:r.find(t=>t.label===e.value));return e_({...e,isFromClassifier:n,onClose:()=>{var r;u(t,null!==(r=null==f?void 0:f.filter(t=>t!==e.value))&&void 0!==r?r:[])}})},onSelectDataCategory:e=>{(null==f?void 0:f.includes(e))||u(t,[...null!=f?f:[],e])},disabled:d})})},t)},eb=r(812);let eI=(e,t)=>e.find(e=>{let{children:r}=e;return r&&!!r.find(e=>e.key.toString()===t)}),eE=(e,t)=>e.reduce((e,r)=>{if(r.children){var n;return null!==(n=eI(r.children,t))&&void 0!==n?n:eE(r.children,t)}return e},null),ej=e=>{let{node:t,treeData:r,onLoadMore:n}=e;if(!t.title)return null;if(t.key.toString().startsWith(et)){let e=eE(r,t.key.toString());return(0,o.jsx)(s.wpx,{type:"link",block:!0,onClick:()=>{(null==e?void 0:e.key)&&n(e.key.toString())},className:"p-0",children:t.title})}if(t.key.toString().startsWith(er))return(0,o.jsx)(s.N_L,{paragraph:!1,title:{width:"80px"},active:!0,children:t.title});let l=t.status?ec[t.status]:null;return(0,o.jsxs)(s.jqI,{gap:4,align:"center",className:"inline-flex",children:[l&&(0,o.jsx)(s.esZ,{title:l.tooltip,children:(0,o.jsx)(s.PJP.fRw,{className:"size-2",style:{color:l.color}})}),(0,o.jsx)(s.lKn,{ellipsis:{tooltip:t.title},children:t.title})]})},eL=(e,t,r)=>e.map(e=>e.key===t?{...e,status:r}:e.children?{...e,children:eL(e.children,t,r)}:e),eT=(e,t)=>e.map(e=>{if(e.key===t){let{children:t,...r}=e;return r}return e.children?{...e,children:eT(e.children,t)}:e}),eC=e=>{let t=[];return e.children&&e.children.length>0&&e.children.forEach(e=>{"string"==typeof e.key&&(t.push(e.key),t.push(...eC(e)))}),t},eO=(e,t)=>{for(let r of e){if(r.key===t)return r;if(r.children){let e=eO(r.children,t);if(e)return e}}},ek=(e,t)=>{var r;let n=e.items.map(e=>{let t=e.resource_type?eo[e.resource_type]:void 0;return{title:e.name,key:e.urn,selectable:!0,icon:t?()=>(0,o.jsx)(t,{className:"h-full"}):void 0,status:e.update_status,isLeaf:e.resource_type===_.D$.FIELD||!e.has_grandchildren,classifyable:[_.D$.SCHEMA,_.D$.TABLE,_.D$.ENDPOINT,_.D$.FIELD].includes(e.resource_type)}});return(null!==(r=null==n?void 0:n.length)&&void 0!==r?r:0)<100?n:[...n,{title:"Load more...",key:"".concat(et,"-").concat(e.page,"-").concat(t),selectable:!1,isLeaf:!0}]},eR=(e,t,r)=>e.map(e=>{if(e.key===t){var n,l;return{...e,children:[...null!==(l=null===(n=e.children)||void 0===n?void 0:n.filter(e=>!(e.key.toString().startsWith(et)||e.key.toString().startsWith(er))))&&void 0!==l?l:[],...r]}}return e.children?{...e,children:eR(e.children,t,r)}:e}),eD=(e,t,r)=>e.map(e=>e.key===t?{...e,children:r}:e.children?{...e,children:eD(e.children,t,r)}:e),eP=(e,t,r)=>e.map(e=>{if(e.key===t){var n;let t=(null!==(n=e.children)&&void 0!==n?n:[]).filter(e=>!(e.key.toString().startsWith(et)||e.key.toString().startsWith(er))),l=new Map(r.map(e=>[e.key,e])),i=new Map(t.map(e=>[e.key,e])),a=t.map(e=>{let t=l.get(e.key);return null!=t?t:e});return r.forEach(e=>{i.has(e.key)||a.push(e)}),{...e,children:a}}return e.children?{...e,children:eP(e.children,t,r)}:e}),ew=(0,d.forwardRef)((e,t)=>{let{selectedNodeKeys:r,setSelectedNodeKeys:n,onClickClassifyButton:l}=e,i=(0,u.useRouter)(),{errorAlert:a}=(0,g.VY)(),c=decodeURIComponent(i.query.monitorId),[p]=(0,x.RV)(),[f]=(0,x.M8)(),[h,m]=(0,d.useState)({}),[y,v]=(0,d.useState)([]),[_,S]=(0,d.useState)([]),A=(0,d.useRef)({}),b=(0,d.useRef)({}),I=(0,d.useCallback)(async e=>{var t;let{nodeKey:r,queryParams:n,fastUpdateFn:l,detailedUpdateFn:i}=e,a=(null!==(t=A.current[r])&&void 0!==t?t:0)+1;A.current[r]=a;let o=p({...n,include_descendant_details:!1}),s=p({...n,include_descendant_details:!0});o.then(e=>{let{data:t}=e;t&&A.current[r]===a&&b.current[r]!==a&&l(t)}),s.then(e=>{let{data:t}=e;t&&A.current[r]===a&&(b.current[r]=a,(null!=i?i:l)(t))})},[p]),E=(0,d.useCallback)(e=>new Promise(t=>{let{children:r,key:n}=e;if(r){t();return}let l=n.toString();I({nodeKey:l,queryParams:{monitor_config_id:c,staged_resource_urn:l,size:100},fastUpdateFn:e=>{v(t=>eD(t,n,ek(e,l))),m(e=>({...e,[l]:{pageSize:100,pageIndex:1}}))}}),t()}),[I,c]),j=(0,d.useCallback)(e=>{let t=h[e];t&&(v(t=>eR(t,e,[...Array(100)].map((t,r)=>({key:"".concat(er,"-").concat(e,"-").concat(r),title:"SKELETON",isLeaf:!0})))),I({nodeKey:e,queryParams:{monitor_config_id:c,staged_resource_urn:e,size:100,page:t.pageIndex+1},fastUpdateFn:t=>{v(r=>eR(r,e,ek(t,e)))},detailedUpdateFn:t=>{v(r=>eP(r,e,ek(t,e))),m(t=>{var r,n;return{...t,[e]:{pageSize:100,pageIndex:(null!==(n=null===(r=t[e])||void 0===r?void 0:r.pageIndex)&&void 0!==n?n:0)+1}}})}}))},[h,I,c]),L=(0,d.useCallback)(e=>{v(t=>{let r=eO(t,e),n=[e];return r&&n.push(...eC(r)),S(e=>e.filter(e=>!n.includes(e.toString()))),m(e=>{let t={...e};return n.forEach(e=>{delete t[e]}),t}),n.forEach(e=>{delete A.current[e],delete b.current[e]}),eT(t,e)})},[]),T=(0,d.useCallback)(async e=>{let t=async e=>{try{let t=await f({monitor_config_id:c,...e&&{staged_resource_urn:e}});if(t.error){a((0,eb.e$)(t.error),"Failed to get schema explorer ancestors statuses");return}let r=t.data;if(!r)return;e?L(e):r.forEach(e=>{L(e.urn)}),v(e=>r.reduce((e,t)=>eL(e,t.urn,t.update_status),e))}catch(e){a("An unexpected error occurred while refreshing the schema explorer")}};if(0===e.length){await t();return}await Promise.all(e.map(e=>t(e)))},[f,c,L,a]),C=(0,d.useCallback)((e,t)=>{S(e),t.expanded&&!t.node.children&&E&&E(t.node)},[E]);return(0,d.useImperativeHandle)(t,()=>({refreshResourcesAndAncestors:T})),(0,d.useEffect)(()=>{(async()=>{y.length>0||I({nodeKey:"root",queryParams:{monitor_config_id:c,size:100},fastUpdateFn:e=>{v(ek(e))}})})()},[I,c,v,y.length]),(0,o.jsxs)(s.jqI,{gap:"middle",vertical:!0,className:"h-full",children:[(0,o.jsx)(s.lQT,{level:3,className:"sticky top-0",children:"Schema explorer"}),(0,o.jsx)(s.a$q,{loadData:E,treeData:y,expandedKeys:_,onExpand:C,onSelect:(e,t)=>{n(t.selectedNodes.filter(e=>e.classifyable).map(e=>e.key))},showIcon:!0,showLine:!0,blockNode:!0,rootClassName:"h-full overflow-x-hidden",titleRender:e=>(0,o.jsx)(ej,{node:e,treeData:y,onLoadMore:j})}),r.length>0&&(0,o.jsxs)(s.jqI,{justify:"space-between",align:"center",children:[(0,o.jsxs)("span",{children:[r.length," selected"]}),(0,o.jsx)(s.wpx,{"aria-label":"Classify ".concat(r.length," Selected Nodes"),icon:(0,o.jsx)(s.QMR,{size:12}),size:"small",onClick:l})]})]})});ew.displayName="MonitorTree";var eN=r(12627),eM=r(84418);let eU=(e,t)=>(0,o.jsx)(t,{...e,className:"!sticky top-0 z-[2] bg-white"}),eF=e=>{var t,r,n,l,i;let{resource:a,fieldActions:c,...u}=e;return(0,o.jsx)(eM.d,{...u,classNames:{body:"!pt-0 !mt-[var(--ant-padding-lg)] max-h-full"},children:a?(0,o.jsx)(s.A5g,{defaultActiveKey:"details",renderTabBar:eU,items:[{key:"details",label:"Details",children:(0,o.jsxs)(s.jqI,{gap:"middle",vertical:!0,children:[(0,o.jsx)(s.Yfl,{bordered:!0,size:"small",column:1,items:[{key:"system",label:"System",children:a.system_key},{key:"path",label:"Path",children:a.urn},{key:"data-type",label:"Data type",children:a.resource_type},{key:"description",label:"Description",children:a.description}]}),(0,o.jsx)(s.PPS,{layout:"vertical",children:(0,o.jsx)(s.PPS.Item,{label:"Data categories",children:(0,o.jsx)(eN.Z,{variant:"outlined",mode:"multiple",maxTagCount:"responsive",value:[...null!==(l=null===(t=a.classifications)||void 0===t?void 0:t.map(e=>{let{label:t}=e;return t}))&&void 0!==l?l:[],...null!==(i=null===(r=a.user_assigned_data_categories)||void 0===r?void 0:r.map(e=>e))&&void 0!==i?i:[]],autoFocus:!1,disabled:null==a||!a.diff_status||!D["assign-categories"].some(e=>e===a.diff_status),onChange:e=>c["assign-categories"]([a.urn],{user_assigned_data_categories:e})})})}),a.classifications&&a.classifications.length>0&&(0,o.jsx)(s.krs,{dataSource:a.classifications,renderItem:e=>(0,o.jsx)(s.krs.Item,{children:(0,o.jsx)(s.krs.Item.Meta,{avatar:(0,o.jsx)(s.t3Z,{style:{backgroundColor:null===ee()||void 0===ee()?void 0:ee().FIDESUI_BG_DEFAULT},icon:(0,o.jsx)(s.QMR,{color:"black"})}),title:(0,o.jsxs)(s.jqI,{align:"center",gap:"middle",children:[(0,o.jsx)("div",{children:e.label}),(0,o.jsx)(ep,{percent:100*e.score})]}),description:e.rationale})})})]})},{key:"activity",label:"Activity",children:(0,o.jsx)(s.krs,{dataSource:"errors"in a&&a.errors?null===(n=a.errors)||void 0===n?void 0:n.map((e,t)=>({key:t,title:e.phase,description:new Date(e.timestamp).toLocaleString(),content:e.message})):[],renderItem:(e,t)=>(0,o.jsxs)(s.krs.Item,{children:[(0,o.jsx)(s.krs.Item.Meta,{title:e.title,description:e.description}),(0,o.jsx)(s.FUI,{ellipsis:{expandable:"collapsible",rows:3},copyable:{icon:(0,o.jsx)(s.PJP.CKM,{className:"pt-1",size:18})},children:e.content})]},t),itemLayout:"vertical"})}]}):null})};var eq=r(31883);let ez=(e,t)=>({title:e,okText:e,content:t,...N}),eV=(e,t)=>"".concat(T[e]).concat((0,K._6)(null!=t?t:0,"","".concat(e===i.ASSIGN_CATEGORIES?" for":""," ").concat(null==t?void 0:t.toLocaleString()," resources"))),e$=e=>"".concat(T[e]," failed").concat(e===i.CLASSIFY||e===i.PROMOTE?": View summary in the activity tab":""),eK=(e,t,r,n)=>{let[l]=G(),a=a=>async(o,s,c)=>{let u=Date.now();if(!await t.confirm(ez(j[a],w[a](c))))return;r.open({key:u,type:"loading",content:"".concat(L[a]," ").concat(c," ").concat((0,K._6)(c,"resource","resources"),"..."),duration:0});let d=await l({query:{...o.query},path:{monitor_config_id:e,action_type:a},body:{excluded_resource_urns:s}});if((0,eq.D4)(d)){r.open({key:u,type:"error",content:e$(a),duration:5});return}if(r.open({key:u,type:"success",content:eV(a,c),duration:5}),n&&a!==i.APPROVE){let e=o.query.staged_resource_urn||[];await n(e)}};return{"assign-categories":a(i.ASSIGN_CATEGORIES),"promote-removals":a(i.PROMOTE_REMOVALS),"un-approve":a(i.UN_APPROVE),"un-mute":a(i.UN_MUTE),approve:a(i.APPROVE),classify:a(i.CLASSIFY),mute:a(i.MUTE),promote:a(i.PROMOTE)}},eG={DRAWER_OPEN:".ant-drawer-open",DRAWER_SELECT:".ant-drawer-open .ant-select",SELECT:".ant-select",SELECT_SELECTOR:".ant-select-selector",SELECT_DISABLED:"ant-select-disabled",INPUT:"input",LIST_ITEM_SELECT:"[data-classification-select]"},eJ=(e,t,r,n,l,a)=>{let o=e=>{let t=e.querySelector(eG.SELECT_SELECTOR);if(!t)return!1;if(e.classList.contains(eG.SELECT_DISABLED))return l.warning("You cannot assign categories to this resource in its current state"),!1;let r=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});t.dispatchEvent(r);let n=e.querySelector(eG.INPUT);return n&&n.focus(),!0},s=r=>{var n;e&&(e.diff_status&&(null===(n=D[r])||void 0===n?void 0:n.includes(e.diff_status))?t[r]([e.urn]):l.warning(R[r]))};(0,p.y1)("a",()=>s(i.APPROVE),[e,t]),(0,p.y1)("c",()=>s(i.PROMOTE),[e,t]),(0,p.y1)("i",()=>s(i.MUTE),[e,t]),(0,p.y1)("r",()=>s(i.UN_MUTE),[e,t]),(0,p.y1)("o",()=>{e&&a?n(void 0):e&&!a&&n(e.urn)},[e,n,a]),(0,p.y1)("e",t=>{if(t.preventDefault(),!e)return;let r=null;if(a){let e=document.querySelector(eG.DRAWER_OPEN);e&&(r=e.querySelector(eG.SELECT))}else{let t=CSS.escape(e.urn);r=document.querySelector('[data-classification-select="'.concat(t,'"]'))}r&&o(r)},[e,l,a]),(0,p.y1)("escape",e=>{let t=document.activeElement;if((null==t?void 0:t.tagName)!=="INPUT")return;let r=t.closest(eG.LIST_ITEM_SELECT),n=t.closest(eG.DRAWER_SELECT);(r||n)&&(e.preventDefault(),e.stopPropagation(),t.blur())},{enableOnFormTags:["INPUT"]},[a])};var eW=r(70675);let eY=e=>{let[t,...r]=e.map(e=>Object.values(i).flatMap(t=>D[t].some(t=>t===e)?[t]:[]));return r.reduce((e,t)=>U().intersection(e,[...t]),null!=t?t:[])},eH=(e,t,r,n)=>{let[l]=(0,eW.LI)(),[a]=(0,x.Av)(),[o]=(0,eW.zV)(),[s]=(0,eW.Hf)(),[c]=(0,eW._J)(),[u]=(0,eW.NA)(),d=(e,l)=>async(i,a)=>{let o=Date.now();if(!(1===i.length||await t.confirm(ez(j[e],w[e](i.length)))))return;r.open({key:o,type:"loading",content:"".concat(L[e]," ").concat(i.length," ").concat((0,K._6)(i.length,"resource","resources"),"..."),duration:0});let s=await l(i,a);if((0,eq.D4)(s)){r.open({key:o,type:"error",content:e$(e),duration:5});return}r.open({key:o,type:"success",content:eV(e,i.length),duration:5}),n&&await n(i)},p=async e=>o({staged_resource_urns:e}),f=async e=>c({staged_resource_urns:e}),h=async e=>s({staged_resource_urns:e}),g=async t=>a({monitor_config_key:e,staged_resource_urns:t}),m=async(t,r)=>{var n;let[l]=t;return u({monitor_config_id:e,staged_resource_urn:l,user_assigned_data_categories:null!==(n=null==r?void 0:r.user_assigned_data_categories)&&void 0!==n?n:void 0})},y=async t=>l({monitor_config_key:e,staged_resource_urns:t});return{"assign-categories":d(i.ASSIGN_CATEGORIES,m),"promote-removals":()=>{},"un-approve":()=>{},"un-mute":d(i.UN_MUTE,f),approve:d(i.APPROVE,y),classify:d(i.CLASSIFY,g),mute:d(i.MUTE,p),promote:d(i.PROMOTE,h)}};var eZ=r(40431);let eB=()=>{let[e,t]=(0,eZ.v1)("resourceStatus",(0,eZ.S$)((0,eZ.km)(en))),[r,n]=(0,eZ.v1)("confidenceScore",(0,eZ.S$)((0,eZ.jx)(Object.values(a)))),[l,i]=(0,eZ.v1)("dataCategory",(0,eZ.S$)(eZ.Oi));return(0,d.useEffect)(()=>{if(null===e){let e=ei([...en]);t(e.length>0?e:[])}},[]),{resourceStatus:e,setResourceStatus:t,confidenceScore:r,setConfidenceScore:n,dataCategory:l,setDataCategory:i,reset:()=>{t([]),n([]),i([])},resetToInitialState:()=>{t(ei([...en])),n(null),i(null)}}},eQ=e=>Object.values(_.LL).flatMap(t=>ea[t].label===e?[t]:[]);var eX=()=>{var e,t,r,n,l;let i=decodeURIComponent((0,u.useRouter)().query.monitorId),a=(0,d.useRef)(null),[c,_]=s.Pg3.useMessage(),[S,A]=s.$zI.useModal(),[b,I]=(0,d.useState)(!1),{paginationProps:E,pageIndex:L,pageSize:T,resetPagination:w}=(0,v.S)({defaultPageSize:25}),N=(0,g.Rx)(),{resourceStatus:M,confidenceScore:U,dataCategory:F,...$}=eB(),{data:K}=(0,x.vc)({monitor_config_id:i}),[G,Y]=(0,d.useState)([]),H={path:{monitor_config_id:i},query:{staged_resource_urn:G.map(e=>e.toString()),search:N.searchProps.value,diff_status:M?M.flatMap(eQ):void 0,confidence_score:U||void 0,data_category:F||void 0}},{data:Z,isFetching:B,refetch:Q}=J({...H,query:{...H.query,size:T,page:L}}),[X,ee]=(0,d.useState)(),[et,er]=(0,d.useState)(),[en,el]=(0,x.mC)(),[ei,{data:eo,isFetching:es}]=W(),ec=el.data,eu=eK(i,S,c,async e=>{var t;await (null===(t=a.current)||void 0===t?void 0:t.refreshResourcesAndAncestors(e))}),ep=eH(i,S,c,async e=>{var t;await (null===(t=a.current)||void 0===t?void 0:t.refreshResourcesAndAncestors(e))}),{excludedListItems:ef,indeterminate:eh,isBulkSelect:eg,listSelectMode:em,resetListSelect:ey,selectedListItems:ev,updateListItems:ex,updateListSelectMode:e_,updateSelectedListItem:eS}=z({activeListItem:et,enableKeyboardShortcuts:!0}),eb=async e=>{ee(e)};(0,p.y1)("?",()=>I(!b),{useKey:!0},[b]);let eI=eg?null==eo?void 0:eo.allowed_actions:eY(ev.flatMap(e=>{let{diff_status:t}=e;return t?[t]:[]})),eE=null!==(r=null==Z?void 0:Z.total)&&void 0!==r?r:0,ej="exclusive"===em&&(null==Z?void 0:Z.total)?eE-ef.length:ev.length;return(0,d.useEffect)(()=>{Z&&ex(Z.items.map(e=>{let{urn:t,...r}=e;return{itemKey:t,urn:t,...r}}))},[null==Z?void 0:Z.items]),(0,d.useEffect)(()=>{X&&en({stagedResourceUrn:X})},[X]),(0,d.useEffect)(()=>{w(),ey()},[M,U,G,N.searchQuery,F]),eJ(et,ep,eS,eb,c,!!X),(0,o.jsxs)(h.Z,{title:"Action center - Discovered assets by system",mainProps:{overflow:"hidden"},fullHeight:!0,children:[(0,o.jsx)(y.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:m.vi},{title:i}],isSticky:!1}),(0,o.jsxs)(s.LgQ,{className:"h-[calc(100%-48px)] overflow-hidden",children:[(0,o.jsx)(s.LgQ.Panel,{defaultSize:250,style:{paddingRight:"var(--ant-padding-md)"},children:(0,o.jsx)(ew,{ref:a,selectedNodeKeys:G,setSelectedNodeKeys:Y,onClickClassifyButton:()=>{ep.classify(G.map(e=>e.toString()))}})}),(0,o.jsx)(s.LgQ.Panel,{style:{paddingLeft:"var(--ant-padding-md)"},children:(0,o.jsxs)(s.jqI,{vertical:!0,gap:"middle",className:"h-full",children:[(0,o.jsxs)(s.jqI,{justify:"space-between",children:[(0,o.jsx)(s.lQT,{level:2,children:"Monitor results"}),(0,o.jsx)(s.jqI,{align:"center",children:(null==K?void 0:K.last_monitored)&&(0,o.jsxs)(s.lKn,{type:"secondary",children:["Last scan:"," ",new Date(null==K?void 0:K.last_monitored).toLocaleString()]})})]}),(0,o.jsxs)(s.jqI,{justify:"space-between",children:[(0,o.jsxs)(s.jqI,{gap:"small",children:[(0,o.jsx)(f.f,{value:N.searchQuery,onChange:N.updateSearch,placeholder:"Search"}),(0,o.jsx)(s.esZ,{title:"Display keyboard shortcuts",children:(0,o.jsx)(s.wpx,{"aria-label":"Display keyboard shortcuts",icon:(0,o.jsx)(s.PJP.N1d,{}),onClick:()=>I(!0)})})]}),(0,o.jsxs)(s.jqI,{gap:"small",children:[(0,o.jsx)(ed,{resourceStatus:M,confidenceScore:U,dataCategory:F,...$,monitorId:i,stagedResourceUrn:G.map(e=>e.toString())}),(0,o.jsx)(s.S0p,{onOpenChange:e=>{e&&eg&&ei({...H,query:{...H.query},body:{excluded_resource_urns:q(ef).map(e=>e.toString())}})},menu:{items:[...O.map(e=>({key:e,label:!es&&(null==eI?void 0:eI.includes(e))?j[e]:(0,o.jsx)(s.esZ,{title:R[e],children:j[e]}),disabled:es||!(null==eI?void 0:eI.includes(e)),onClick:()=>{eg?eu[e](H,ef.map(e=>e.itemKey.toString()),ej):ep[e](ev.map(e=>{let{itemKey:t}=e;return t.toString()}))}}))]},disabled:ev.length<=0,children:(0,o.jsx)(s.wpx,{type:"primary",icon:(0,o.jsx)(s.PJP._ME,{}),iconPosition:"end",loading:es,children:"Actions"})}),(0,o.jsx)(s.esZ,{title:"Refresh",children:(0,o.jsx)(s.wpx,{icon:(0,o.jsx)(s.PJP.CQM,{}),onClick:()=>Q(),"aria-label":"Refresh"})})]})]}),(0,o.jsxs)(s.jqI,{gap:"middle",align:"center",children:[(0,o.jsx)(s.E_O,{id:"select-all",checked:eg,indeterminate:eh,onChange:e=>e_(e.target.checked?"exclusive":"inclusive")}),(0,o.jsx)("label",{htmlFor:"select-all",children:"Select all"}),!!ej&&(0,o.jsxs)(s.lKn,{strong:!0,children:[ej.toLocaleString()," selected"]})]}),(0,o.jsx)(s.krs,{dataSource:null==Z?void 0:Z.items,className:"-ml-3 h-full overflow-y-scroll pl-1",loading:B,enableKeyboardShortcuts:!0,onActiveItemChange:(0,d.useCallback)(e=>{(null==e?void 0:e.urn)?(er({...e,itemKey:e.urn}),X&&e.urn!==X&&ee(e.urn)):er(void 0)},[X]),renderItem:e=>eA({...e,selected:q(ev).includes(e.urn),onSelect:eS,onNavigate:eb,onSetDataCategories:(e,t)=>ep["assign-categories"]([e],{user_assigned_data_categories:t}),dataCategoriesDisabled:null==e||!e.diff_status||!D["assign-categories"].some(t=>t===e.diff_status),actions:(null==e?void 0:e.diff_status)?k.map(t=>(0,o.jsx)(s.esZ,{title:j[t],children:(0,o.jsx)(s.wpx,{"aria-label":j[t],icon:P[t],onClick:()=>ep[t]([e.urn]),disabled:null==e||!e.diff_status||!D[t].some(t=>t===e.diff_status),style:{fontSize:"var(--ant-button-content-font-size-lg)"}})},t)):[]})}),(0,o.jsx)(s.B7X,{...E,showSizeChanger:{suffixIcon:(0,o.jsx)(s.PJP._ME,{})},total:(null==Z?void 0:Z.total)||0,hideOnSinglePage:(null===(e=E.pageSize)||void 0===e?void 0:e.toString())===(null===(t=E.pageSizeOptions)||void 0===t?void 0:t[0])})]})})]}),(0,o.jsx)(eF,{itemKey:null!==(n=null==ec?void 0:ec.urn)&&void 0!==n?n:"",title:null!==(l=null==ec?void 0:ec.name)&&void 0!==l?l:null,titleIcon:(0,o.jsx)(s.PJP.sgG,{}),titleTag:{bordered:!1,color:(null==ec?void 0:ec.diff_status)?ea[ec.diff_status].color:void 0,className:"font-normal text-[var(--ant-font-size-sm)]",children:(null==ec?void 0:ec.diff_status)?ea[ec.diff_status].label:null},actions:C.map(e=>({label:j[e],callback:t=>ep[e]([t]),disabled:null==ec||!ec.diff_status||!D[e].some(e=>e===ec.diff_status)})),open:!!X,onClose:()=>ee(void 0),resource:ec,fieldActions:ep}),(0,o.jsx)(V,{open:b,onCancel:()=>I(!1)}),A,_]})};let e0=()=>(0,o.jsx)(o.Fragment,{children:"Attempting to access monitor results without the required feature flag enabled"});var e1=()=>{let{flags:e}=(0,c.hz)();return e.heliosV2?(0,o.jsx)(eX,{}):(0,o.jsx)(s.ux6,{status:"error",title:(0,o.jsx)(e0,{})})}},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}},97947:function(e){e.exports={"monitor-field__title":"MonitorFieldListItem_monitor-field__title__YrxOU","monitor-field__breadcrumb":"MonitorFieldListItem_monitor-field__breadcrumb__Rn4vE"}}},function(e){e.O(0,[431,7245,7059,9341,2888,9774,179],function(){return e(e.s=83806)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8922],{58095:function(e,t,n){var s=n(8817);e.exports=function(e,t){return!!(null==e?0:e.length)&&s(e,t,0)>-1}},21796:function(e){e.exports=function(e,t,n){for(var s=-1,a=null==e?0:e.length;++s<a;)if(n(t,e[s]))return!0;return!1}},8817:function(e,t,n){var s=n(95372),a=n(1129),l=n(58263);e.exports=function(e,t,n){return t==t?l(e,t,n):s(e,a,n)}},1129:function(e){e.exports=function(e){return e!=e}},92198:function(e,t,n){var s=n(52485),a=n(58095),l=n(21796),i=n(65581),r=n(47111),o=n(43735);e.exports=function(e,t,n){var d=-1,c=a,u=e.length,p=!0,g=[],m=g;if(n)p=!1,c=l;else if(u>=200){var h=t?null:r(e);if(h)return o(h);p=!1,c=i,m=new s}else m=t?[]:g;e:for(;++d<u;){var f=e[d],v=t?t(f):f;if(f=n||0!==f?f:0,p&&v==v){for(var y=m.length;y--;)if(m[y]===v)continue e;t&&m.push(v),g.push(f)}else c(m,v,n)||(m!==g&&m.push(v),g.push(f))}return g}},47111:function(e,t,n){var s=n(46151),a=n(50344),l=n(43735),i=s&&1/l(new s([,-0]))[1]==1/0?function(e){return new s(e)}:a;e.exports=i},58263:function(e){e.exports=function(e,t,n){for(var s=n-1,a=e.length;++s<a;)if(e[s]===t)return s;return -1}},50344:function(e){e.exports=function(){}},83766:function(e,t,n){var s=n(92198);e.exports=function(e){return e&&e.length?s(e):[]}},14599:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/website/[monitorId]/[systemId]",function(){return n(26363)}])},35287:function(e,t,n){"use strict";var s=n(24246),a=n(98227),l=n(88038),i=n.n(l);n(27378),t.Z=e=>{let{children:t,title:n,fullHeight:l,fullWidth:r,mainProps:o}=e;return(0,s.jsxs)(a.kCb,{"data-testid":n,direction:"column",height:l?"100vh":"calc(100vh - 48px)",width:r?"100vw":"calc(100vw - 240px)",children:[(0,s.jsxs)(i(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsx)(a.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...o,children:t})]})}},58754:function(e,t,n){"use strict";var s=n(24246),a=n(98227),l=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:i=!0,children:r,rightContent:o,style:d,...c}=e;return(0,s.jsxs)("div",{...c,style:i?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,s.jsxs)(a.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(a.lQT,{className:n||r?"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)(l.m,{className:r?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),r]})}},79283:function(e,t,n){"use strict";n.d(t,{l:function(){return c}});var s=n(24246),a=n(98227),l=n(72707),i=n.n(l);let r=e=>{let{data:{formattedTitle:t,description:n,name:l,primaryName:i}}=e;return(0,s.jsxs)(a.jqI,{gap:12,title:"".concat(t," - ").concat(n),children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:i||l}),i&&": ".concat(l)]}),(0,s.jsx)("em",{children:n})]})},o=e=>"options"in e&&Array.isArray(e.options),d=e=>({...e,className:i().option,formattedTitle:e.formattedTitle||[e.primaryName,e.name].filter(e=>e).join(": ")}),c=e=>{let{options:t,...n}=e,l=null==t?void 0:t.map(e=>o(e)?{...e,options:e.options.map(d)}:d(e));return(0,s.jsx)(a.WPr,{options:l,filterOption:(e,t)=>{var n,s;return(null==t?void 0:null===(n=t.formattedTitle)||void 0===n?void 0:n.toLowerCase().includes(e.toLowerCase()))||(null==t?void 0:null===(s=t.value)||void 0===s?void 0:s.toLowerCase().includes(e.toLowerCase()))||!1},optionFilterProp:"label",autoFocus:!0,variant:"borderless",optionRender:r,styles:{popup:{root:{minWidth:"500px"}}},className:"w-full p-0","data-testid":"taxonomy-select",...n})}},45938:function(e,t,n){"use strict";n.d(t,{Gt:function(){return p},eB:function(){return g},oI:function(){return u}});var s=n(24246),a=n(34090),l=n(27378),i=n(16134),r=n(38602),o=n(58452);let d=(0,l.createRef)(),c=(0,l.createRef)(),u=()=>{let e=(0,i.T)(),t=(0,i.C)(r.DB),n=(0,l.useCallback)(()=>{c.current=void 0,d.current=void 0},[]),s=(0,l.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!0),n())},[e,n]),a=(0,l.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!1),n())},[e,n]);return{attemptAction:(0,l.useCallback)(()=>t?(e((0,r.h7)()),d.current||(d.current=new Promise(e=>{c.current=e})),d.current):Promise.resolve(!0),[t,e]),onConfirm:s,onClose:a}},p=e=>{let{id:t,name:n}=e,{dirty:s}=(0,a.u6)(),o=(0,i.T)();return(0,l.useEffect)(()=>(o((0,r.Zu)({id:t,name:n})),()=>{o((0,r.dz)({id:t}))}),[o,t,n]),(0,l.useEffect)(()=>{o((0,r.$p)({id:t,isDirty:s}))},[s,o,t]),null},g=()=>{let{onConfirm:e,onClose:t}=u(),n=(0,i.C)(r.uv);return(0,s.jsx)(o.Z,{isOpen:n,onClose:t,onConfirm:e,isCentered:!0,title:"Unsaved Changes",message:"You have unsaved changes"})}},34929:function(e,t,n){"use strict";var s=n(24246),a=n(64925),l=n.n(a),i=n(27378),r=n(16134),o=n(30002),d=n(28079),c=n(57072);let u=()=>{let{isLoading:e}=(0,d.fd)(),t=(0,r.C)(d.U3),{isLoading:n}=(0,c.MO)(),s=(0,r.C)(c.qb),{isLoading:a}=(0,o.te)();return{dataUses:t,dataSubjects:(0,r.C)(o.ZL),dataCategories:s,isLoading:e||n||a}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:n,isLoading:a}=u(),r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},o=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=t(e);if(!s)return{};let a=t(r(e,n)),l=!!s.parent_key;return{name:s.name||void 0,primaryName:l&&(null==a?void 0:a.name)!==s.name&&(null==a?void 0:a.name)||void 0}},d=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:a,primaryName:l}=o(e,t,n);return a?l?(0,s.jsxs)(i.Fragment,{children:[(0,s.jsxs)("strong",{children:[l,":"]})," ",a]},e):(0,s.jsx)("strong",{children:a},e):e},c=t=>l()(e,{fides_key:t}),p=e=>l()(t,{fides_key:e}),g=e=>l()(n,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:c,getDataUseDisplayName:e=>d(e,c,1),getDataUseDisplayNameProps:e=>o(e,c,1),getDataCategories:()=>t,getDataCategoryByKey:p,getDataCategoryDisplayName:e=>d(e,p,2),getDataCategoryDisplayNameProps:e=>o(e,p,2),getDataSubjects:()=>n,getDataSubjectByKey:g,getDataSubjectDisplayName:e=>{let t=g(e);return t?t.name:e},getPrimaryKey:r,isLoading:a}}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return d}});var s=n(24246),a=n(98227),l=n(79894),i=n.n(l),r=n(27378);let{Text:o}=a.AntTypography,d=e=>{let{items:t,...n}=e,l=(0,r.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let l=n===t.length-1,r={...e},d=r.onClick&&!r.href;return("string"==typeof r.title&&(r.title=(0,s.jsx)(o,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,id:l?"breadcrumb-current-page":void 0,children:r.title})),d)?r.title=(0,s.jsx)(a.wpx,{type:"text",size:"small",icon:r.icon,onClick:r.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:r.title}):(r.icon&&(r.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:r.icon}),r.title]})),r.href&&r.title&&(r.title=(0,s.jsx)(i(),{href:r.href,className:"ant-breadcrumb-link",children:r.title}),delete r.href)),r}),[t]);return(0,s.jsx)(a.zrq,{items:l,...n})}},25415:function(e,t,n){"use strict";n.d(t,{a:function(){return l}});var s=n(24246);let{Text:a}=n(98227).AntTypography,l=e=>{let{count:t}=e;return(0,s.jsx)(a,{size:"sm",strong:!0,"data-testid":"selected-count",children:"".concat(t," selected")})}},2525:function(e,t,n){"use strict";n.d(t,{Q:function(){return r}});var s=n(24246),a=n(98227),l=n(27378),i=n(3110);let r=e=>{let{values:t,columnState:n,tagProps:r,onTagClose:o,onStateChange:d,...c}=e,{isExpanded:u,isWrapped:p,version:g}=n||{},[m,h]=(0,l.useState)(!u),[f,v]=(0,l.useState)(!!p),[y,x]=(0,l.useState)(u?t:null==t?void 0:t.slice(0,2));(0,l.useEffect)(()=>{h(!u)},[u,g]),(0,l.useEffect)(()=>{v(!!p)},[p]),(0,l.useEffect)(()=>{(null==t?void 0:t.length)?x(m?t.slice(0,2):t):x(t)},[m,t,d]),(0,l.useEffect)(()=>{(null==t?void 0:t.length)&&t.length<=2&&!m&&(h(!0),null==d||d(!1))},[t,d,m]);let j=(0,l.useCallback)(()=>{x(null==t?void 0:t.slice(0,2)),h(!0),null==d||d(!1)},[t,d]),b=(0,l.useCallback)(()=>{h(!1),null==d||d(!0)},[d]),C=(0,l.useCallback)(()=>{m?b():j()},[m,b,j]);return(0,l.useMemo)(()=>(null==y?void 0:y.length)?(0,s.jsxs)(a.jqI,{align:m?"center":"start",wrap:f?"wrap":"nowrap",vertical:!m,gap:"small","data-testid":"tag-expandable-cell",style:{overflowX:"auto",...c.style},...c,children:[y.map(e=>(0,s.jsx)(a.j8w,{color:"white","data-testid":e.key,onClose:o?()=>o(e.key):void 0,...r,...e.tagProps,children:(0,s.jsx)(a.lKn,{ellipsis:!!m&&{tooltip:!0},style:{color:"inherit",maxWidth:m?i.TD:void 0},children:e.label})},e.key)),t&&t.length>2&&(0,s.jsx)(a.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),C()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:m?"+".concat(t.length-2," more"):i.T5})]}):(0,s.jsx)("span",{"data-testid":"tag-expandable-cell-empty"}),[y,m,f,c,t,r,o,C])}},3110:function(e,t,n){"use strict";n.d(t,{DI:function(){return r},T5:function(){return l},TD:function(){return i}});var s=n(24246),a=n(98227);let l="show less",i=150,r=[{key:"expand-all",label:"Expand all",icon:(0,s.jsx)(a.PJP.jbG,{})},{key:"collapse-all",label:"Collapse all",icon:(0,s.jsx)(a.PJP.MVB,{})}]},26070:function(e,t,n){"use strict";n.d(t,{v:function(){return o},Q:function(){return d.Q}});var s=n(24246),a=n(98227),l=n(27378),i=n(3110);let{Text:r}=a.AntTypography,o=e=>{let{values:t,valueSuffix:n,columnState:o}=e,{isExpanded:d,version:c}=o||{},[u,p]=(0,l.useState)(!d);(0,l.useEffect)(()=>{p(!d)},[d,c]);let g=(0,l.useCallback)(()=>{p(!0)},[]),m=(0,l.useCallback)(()=>{p(!1)},[]),h=(0,l.useCallback)(()=>{u?m():g()},[u,m,g]);return(0,l.useMemo)(()=>(null==t?void 0:t.length)?1===t.length?(0,s.jsx)(r,{ellipsis:!0,"data-testid":"list-expandable-cell-single",children:t[0]}):(0,s.jsxs)(a.jqI,{align:u?"center":"flex-start",vertical:!u,gap:u?"small":"none","data-testid":"list-expandable-cell",children:[u?(0,s.jsxs)(r,{ellipsis:!0,children:[t.length," ",n]}):(0,s.jsx)(a.krs,{dataSource:t,renderItem:e=>(0,s.jsx)("li",{children:e})}),(0,s.jsx)(a.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),h()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:u?"view":i.T5})]}):null,[u,t,n,h])};var d=n(2525)},8125:function(e,t,n){"use strict";n.d(t,{V:function(){return l},o:function(){return d}});var s=n(27378),a=n(32735);let l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{enableSelection:n=!1,getRowKey:l,bulkActions:i,isLoading:r=!1,isFetching:o=!1,dataSource:d=[],totalRows:c=0,currentPage:u,pageSize:p,customTableProps:g={}}=t,m=(0,s.useCallback)(e=>{if(e&&"object"==typeof e){if(e.id)return String(e.id);if(e.key)return String(e.key)}return String(e)},[]),h=l||m,[f,v]=(0,s.useState)([]),[y,x]=(0,s.useState)([]),j=(0,s.useCallback)(()=>{v([]),x([])},[]),b=(0,s.useMemo)(()=>({selectedRowKeys:f,selectedRows:y,resetSelections:j}),[f,y,j]),C=(0,s.useMemo)(()=>{if(n)return{selectedRowKeys:f,onChange:(e,t)=>{v(e),x(t)}}},[n,f]),k=(0,s.useCallback)((t,n,s)=>{var a,l;let i=null!==(a=t.current)&&void 0!==a?a:e.pageIndex,r=null!==(l=t.pageSize)&&void 0!==l?l:e.pageSize,o=i!==e.pageIndex||r!==e.pageSize;o?(t.current&&t.current!==e.pageIndex&&e.updatePageIndex(t.current),t.pageSize&&t.pageSize!==e.pageSize&&e.updatePageSize(t.pageSize)):e.updateFilters(n||{});let d=s&&!Array.isArray(s)?s.field:void 0,c=s&&!Array.isArray(s)&&null!==s.order?s.order:void 0;o||e.updateSorting(d,c)},[e]),S=(0,s.useMemo)(()=>{var t,n,s,l,i;return{current:null!=u?u:e.pageIndex,pageSize:null!=p?p:e.pageSize,total:c,showSizeChanger:null===(l=null===(t=e.paginationConfig)||void 0===t?void 0:t.showSizeChanger)||void 0===l||l,pageSizeOptions:null!==(i=null===(s=e.paginationConfig)||void 0===s?void 0:null===(n=s.pageSizeOptions)||void 0===n?void 0:n.map(String))&&void 0!==i?i:a.VZ}},[u,e.pageIndex,p,e.pageSize,c,e.paginationConfig]),w=(0,s.useMemo)(()=>({dataSource:d,loading:r||o,pagination:S,onChange:k,rowKey:h,scroll:{x:"max-content",scrollToFirstRowOnChange:!0},size:"small",bordered:!0,...g}),[d,r,o,S,k,h,g]),_=f.map(String),E=y.length>0,A=(0,s.useCallback)(e=>{let t=null==i?void 0:i.actions.find(t=>t.key===e);return t?{disabled:!E||!!t.disabled&&t.disabled(y),loading:t.loading||!1,onClick:()=>t.onClick(y)}:{disabled:!0,loading:!1}},[i,E,y]);return(0,s.useMemo)(()=>({tableProps:w,selectionProps:C,selectionState:b,selectedRows:y,selectedKeys:_,hasSelectedRows:E,resetSelections:j,getBulkActionProps:A,isLoadingOrFetching:r||o,hasData:d.length>0}),[w,C,b,y,_,E,j,A,r,o,d.length])};var i=n(40431),r=n(17245);let o=()=>({filters:(0,i.WJ)(e=>e).withDefault({})}),d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{pagination:t={},sorting:n={},search:a={},onStateChange:l,disableUrlState:d=!1}=e,{pageIndex:c,pageSize:u,resetPagination:p,updatePageIndex:g,updatePageSize:m,pageSizeOptions:h,showSizeChanger:f}=(0,r.h0)({...t,disableUrlState:d}),{sortKey:v,sortOrder:y,updateSorting:x,resetSorting:j}=(0,r.rK)({...n,disableUrlState:d}),{searchQuery:b,updateSearch:C,resetSearch:k}=(0,r.Rx)({...a,disableUrlState:d}),[S,w]=(0,s.useState)({}),_=(0,s.useMemo)(()=>d?null:o(),[d]),[E,A]=(0,i.XI)(null!=_?_:{},{history:"push"}),I=(0,s.useMemo)(()=>{var e;return{pageIndex:c,pageSize:u,sortKey:v,sortOrder:y,columnFilters:d?S:null!==(e=E.filters)&&void 0!==e?e:{},searchQuery:b}},[d,S,E,c,u,v,y,b]),T=(0,s.useCallback)((e,t)=>{x(e,t),p()},[x,p]),D=(0,s.useCallback)(e=>{if(d)w(e);else{let t=Object.fromEntries(Object.entries(e).filter(e=>{let[,t]=e;return null!=t}));A({filters:Object.keys(t).length>0?t:null})}p()},[d,A,p]),N=(0,s.useCallback)(e=>{C(e),p()},[C,p]),O=(0,s.useCallback)(()=>{d?w({}):A({filters:null}),p(),j(),k()},[d,A,p,j,k]);return(0,s.useEffect)(()=>{l&&l(I)},[I,l]),{state:I,pageIndex:I.pageIndex,pageSize:I.pageSize,updatePageIndex:g,updatePageSize:m,sortKey:I.sortKey,sortOrder:I.sortOrder,updateSorting:T,columnFilters:I.columnFilters,updateFilters:D,searchQuery:I.searchQuery,updateSearch:N,resetState:O,paginationConfig:{pageSizeOptions:h,showSizeChanger:f}}}},54762:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});var s=n(24246),a=n(98227),l=n(62165),i=n(65735);let r=e=>{let{consentStatus:t}=e,{flags:n}=(0,l.hz)(),{assetConsentStatusLabels:r}=n;return r&&(null==t?void 0:t.status)===i.pF.ALERT?(0,s.jsx)(a.esZ,{title:null==t?void 0:t.message,"data-testid":"discovery-status-icon-alert-tooltip",children:(0,s.jsx)("div",{className:"mb-px","data-testid":"discovery-status-icon-alert",children:(0,s.jsx)(a.PJP.OdJ,{style:{color:"var(--fidesui-error)"}})})}):null}},9320:function(e,t,n){"use strict";n.d(t,{_:function(){return l}});var s=n(24246),a=n(26089);let l=(e,t)=>(0,s.jsxs)(s.Fragment,{children:[e," ",t&&(0,s.jsx)(a.Z,{onClick:t,children:"View"})]})},88708:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var s,a,l=n(27378),i=n(14908),r=n(65735);(s=a||(a={})).ATTENTION_REQUIRED="attention-required",s.ADDED="added",s.IGNORED="ignored",t.Z=e=>{let{activeTab:t,onTabChange:n}=(0,i.Z)({tabKeys:Object.values(a)}),s=(0,l.useMemo)(()=>[{label:"Attention required",params:{diff_status:[r.LL.ADDITION],system:e},hash:"attention-required"},{label:"Added",params:{diff_status:[r.LL.MONITORED]},hash:"added"},{label:"Ignored",params:{diff_status:[r.LL.MUTED],system:e},hash:"ignored"}],[e]),{diff_status:o,system:d}=(0,l.useMemo)(()=>{var e;return null!==(e=s.find(e=>e.hash===t))&&void 0!==e?e:s[0]},[s,t]).params,c=(0,l.useMemo)(()=>o.includes(r.LL.MONITORED),[o]);return{filterTabs:s,activeTab:t,onTabChange:n,activeParams:(0,l.useMemo)(()=>e?{diff_status:o,system:d}:{diff_status:o},[e,o,d]),actionsDisabled:c}}},78238:function(e,t,n){"use strict";n.d(t,{g:function(){return s}});let s=["essential","functional.service.improve","personalize","analytics","marketing.advertising.first_party.targeted","marketing.advertising.third_party.targeted"];t.Z=e=>s.includes(e)},57072:function(e,t,n){"use strict";n.d(t,{Bd:function(){return s.Bd},L5:function(){return s.L5},MO:function(){return s.MO},qb:function(){return s.qb}});var s=n(5785)},26363:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return eo}});var s=n(24246),a=n(86677),l=n(27378),i=n(35287),r=n(77830),o=n(58754),d=n(37059),c=n(98227),u=n(25415),p=n(65735),g=n(30952),m=n(8133),h=n(79283),f=n(34929),v=n(78238),y=e=>{let{selectedTaxonomies:t,...n}=e,{getDataUseDisplayNameProps:a,getDataUses:i}=(0,f.Z)(),r=[...i()].filter(e=>!(null==t?void 0:t.includes(e.fides_key))).sort(),o=r.filter(e=>e.active&&v.g.includes(e.fides_key)),d=r.map(e=>{let{name:t,primaryName:n}=a(e.fides_key);return{value:e.fides_key,name:t,primaryName:n,description:e.description||""}}),u=(0,l.useMemo)(()=>{let e=[],t=[];return d.forEach(n=>{o.some(e=>e.fides_key===n.value)?e.push(n):t.push(n)}),{suggested:e,all:t}},[d,o]),p=u.suggested.length?[{label:(0,s.jsxs)(c.vyj,{children:[(0,s.jsx)(c.QMR,{size:14}),(0,s.jsx)("span",{children:"Categories of consent"}),(0,s.jsx)("em",{className:"font-normal",children:"Recommended"})]}),options:u.suggested},{label:(0,s.jsxs)(c.vyj,{children:[(0,s.jsx)(c.PJP.BBB,{}),(0,s.jsx)("span",{children:"Other data uses"})]}),options:u.all}]:u.all;return(0,s.jsx)(h.l,{options:p,...n})};let{Text:x}=c.AntTypography;var j=e=>{let{onSave:t,isSaving:n,onClose:a,...i}=e,[r,o]=(0,l.useState)([]),d=()=>{o([]),a()};return(0,s.jsxs)(m.Z,{title:"Add consent category",...i,onClose:d,children:[(0,s.jsxs)(c.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,s.jsx)(x,{children:"Assign consent categories to selected assets. This configures the system for consent management. Consent categories apply to both individual assets and the system."}),(0,s.jsx)(y,{mode:"tags",onSelect:(e,t)=>o([...r,t.value]),variant:"outlined"})]}),(0,s.jsxs)(c.jqI,{justify:"space-between",children:[(0,s.jsx)(c.wpx,{htmlType:"reset",onClick:d,"data-testid":"cancel-btn",children:"Cancel"}),(0,s.jsx)(c.wpx,{htmlType:"submit",type:"primary",disabled:!r.length,loading:n,onClick:()=>{t(r),d()},"data-testid":"save-btn",children:"Save"})]})]})},b=n(29850),C=n(77685);let{Text:k}=c.AntTypography,S=e=>{let{onSave:t,isSaving:n,...a}=e,[i,r]=(0,l.useState)(),[o,d]=(0,l.useState)(!1),u=(0,l.useCallback)(e=>{e.preventDefault(),d(!0)},[]),p=()=>{d(!1)},g=()=>{r(void 0),a.onClose()};return(0,s.jsxs)(m.Z,{title:"Assign system",...a,onClose:g,children:[(0,s.jsxs)(c.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,s.jsx)(k,{children:"Assign a system to the selected assets. If no system exists, select 'Add new system' to create one."}),(0,s.jsx)(b.R,{placeholder:"Search or select...",onSelect:(e,t)=>{r(t)},onAddSystem:u,value:i})]})," ",(0,s.jsxs)(c.jqI,{justify:"space-between",children:[(0,s.jsx)(c.wpx,{htmlType:"reset",onClick:g,"data-testid":"cancel-btn",children:"Cancel"}),(0,s.jsx)(c.wpx,{htmlType:"submit",type:"primary",disabled:!i,loading:n,onClick:()=>{t(i),g()},"data-testid":"save-btn",children:"Save"})]}),o&&(0,s.jsx)(C.i,{isOpen:!0,onClose:p,onSuccessfulSubmit:(e,t)=>{p(),r({label:t,value:e})},toastOnSuccess:!0})]})};var w=n(8411),_=n(32735),E=n(8125),A=n(16394),I=n(98145);let{Link:T}=c.AntTypography,D=e=>{let{stagedResource:t}=e,n=(0,E.o)({pagination:{defaultPageSize:10,pageSizeOptions:[10,..._.VZ]},disableUrlState:!0}),{pageIndex:a,pageSize:i}=n,{data:r,isFetching:o,isError:u}=(0,d.mi)({stagedResourceUrn:t.urn,statuses:I.LM,page:a,size:i}),{items:p,total:g}=(0,l.useMemo)(()=>r||{items:[],total:0,pages:0,filterOptions:{assigned_users:[],systems:[]}},[r]),m=(0,l.useMemo)(()=>({enableSelection:!1,getRowKey:e=>"".concat(e.location,"-").concat(e.page),isLoading:o,dataSource:p,totalRows:null!=g?g:0,customTableProps:{scroll:{scrollToFirstRowOnChange:!0},tableLayout:"fixed"}}),[o,p,g]),h=(0,E.V)(n,m);return{columns:(0,l.useMemo)(()=>[{title:"Location",dataIndex:I.EI.LOCATION,key:I.EI.LOCATION,render:e=>{var t;let n=(0,c.QCN)(e),a=n?(0,c.c1K)({isoEntry:n,showFlag:!0}):null!==(t=null===w.Z8||void 0===w.Z8?void 0:w.Z8[e])&&void 0!==t?t:e;return(0,s.jsx)(c.AntTypography.Text,{ellipsis:{tooltip:e},children:a})},width:180},{title:"Page",dataIndex:I.EI.PAGE,key:I.EI.PAGE,render:e=>{let t=(0,A.hL)(e,50);return(0,s.jsx)(T,{href:e,target:"_blank",rel:"noopener noreferrer",variant:"primary",children:(0,s.jsx)(c.AntTypography.Text,{ellipsis:{tooltip:e},unStyled:!0,children:t})})},minWidth:100},{title:"Compliance",dataIndex:I.EI.STATUS,key:I.EI.STATUS,width:160,render:e=>{let t=I.Vq[e];return(0,s.jsx)(c.esZ,{title:t,children:(0,s.jsx)(c.j8w,{color:"error","data-testid":"status-badge_".concat(e.replace(/_/g,"-")),children:I.X1[e]})})}}],[]),data:r,isLoading:o,isError:u,totalRows:g,tableProps:h.tableProps,hasData:p.length>0}},{Paragraph:N,Text:O}=c.AntTypography,L=e=>{var t,n,a;let{isOpen:l,stagedResource:i,onCancel:r,onDownload:o}=e,{columns:d,tableProps:u,isError:p}=D({stagedResource:i});return(0,s.jsx)(c.$zI,{title:"Compliance issues",width:768,open:l,onCancel:r,footer:[(0,s.jsx)(c.wpx,{onClick:r,children:"Cancel"},"cancel"),!!o&&(0,s.jsx)(c.wpx,{type:"primary",onClick:o,children:"Download"},"download")],"data-testid":"consent-breakdown-modal",children:(0,s.jsxs)(c.jqI,{vertical:!0,className:"gap-6","data-testid":"consent-breakdown-modal-content",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(N,{children:"View all instances where this asset was detected with consent compliance issues, organized by location and page. This includes assets loaded without consent, before consent, or when CMP failed."}),(0,s.jsxs)(N,{children:[(0,s.jsx)(O,{strong:!0,children:"Asset name:"})," ",null!==(t=i.name)&&void 0!==t?t:(0,s.jsx)(O,{italic:!0,children:"Unknown"}),","," ",(0,s.jsx)(O,{strong:!0,children:"System:"})," ",null!==(n=i.system)&&void 0!==n?n:(0,s.jsx)(O,{italic:!0,children:"Unassigned"}),","," ",(0,s.jsx)(O,{strong:!0,children:"Domain:"})," ",null!==(a=i.domain)&&void 0!==a?a:(0,s.jsx)(O,{italic:!0,children:"Unknown"})]})]}),p?(0,s.jsx)(c.DUx,{type:"error",message:"Error fetching data",description:"Please try again later.",showIcon:!0}):(0,s.jsx)(c.V5H,{...u,columns:d,"data-testid":"consent-breakdown-modal-table"})]})})};var P=n(83766),R=n.n(P),z=n(62165),M=n(812),Z=n(26070),U=n(3110),V=n(46628),G=n(54762),q=n(9320),K=n(26092),B=n.n(K),F=n(88708),Q=e=>!!e&&I.LM.includes(e);let $=e=>{let{asset:t,onTabChange:n,showComplianceIssueDetails:l}=e,{flags:i}=(0,z.hz)(),{assetConsentStatusLabels:o}=i,[u,{isLoading:g}]=(0,d.EY)(),[m,{isLoading:h}]=(0,d.nS)(),[f,{isLoading:v}]=(0,d.Tj)(),y=(0,c.pmc)(),x=(0,a.useRouter)(),j=g||h||v,{urn:b,name:C,resource_type:k,diff_status:S,system_key:w,user_assigned_system_key:_,consent_aggregated:E}=t,A=B()(C||"",{length:50}),I=Q(E),T=async()=>{let e=await u({urnList:[b]});if((0,M.D4)(e))y((0,V.Vo)((0,M.e$)(e.error)));else{let e=_||w,t="".concat(r.So,"/configure/").concat(e,"#assets");y((0,V.t5)((0,q._)("".concat(k,' "').concat(A,'" has been added to the system inventory.'),e?()=>x.push(t):void 0)))}},D=async()=>{let e=await m({urnList:[b]});(0,M.D4)(e)?y((0,V.Vo)((0,M.e$)(e.error))):y((0,V.t5)((0,q._)("".concat(k,' "').concat(A,'" has been ignored and will not appear in future scans.'),async()=>{await n(F.A.IGNORED)})))},N=async()=>{let e=await f({urnList:[b]});(0,M.D4)(e)?y((0,V.Vo)((0,M.e$)(e.error))):y((0,V.t5)("".concat(k,' "').concat(A,'" is no longer ignored and will appear in future scans.')))};return(0,s.jsxs)(c.vyj,{children:[S!==p.LL.MUTED&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.esZ,{title:t.system?void 0:"This asset requires a system before you can add it to the inventory.",children:(0,s.jsx)(c.wpx,{"data-testid":"add-btn",size:"small",onClick:T,disabled:!t.system||j,loading:g,children:"Add"})}),(0,s.jsx)(c.wpx,{"data-testid":"ignore-btn",size:"small",onClick:D,disabled:j,loading:h,children:"Ignore"}),I&&o&&(0,s.jsx)(c.wpx,{"data-testid":"view-compliance-details-btn",size:"small",onClick:()=>{null==l||l(t)},disabled:j,loading:v,icon:(0,s.jsx)(c.PJP.OdJ,{style:{color:"var(--fidesui-error)",width:14}}),title:"View compliance issue","aria-label":"View compliance issue"})]}),S===p.LL.MUTED&&(0,s.jsx)(c.wpx,{"data-testid":"restore-btn",size:"small",onClick:N,disabled:j,loading:v,children:"Restore"})]})};var W=n(17245),J=n(18992),Y=n.n(J),X=n(2525),H=n(31883),ee=e=>{let{asset:t,readonly:n,columnState:a,onChange:i}=e,[r,o]=(0,l.useState)(!1),[u,p]=(0,l.useState)((null==a?void 0:a.isExpanded)||!1),[g]=(0,d.Ak)(),{successAlert:m,errorAlert:h}=(0,W.VY)(),{getDataUseDisplayName:v}=(0,f.Z)(),x=[...t.preferred_data_uses||[]].sort(),j=B()(t.name||"",{length:50}),b=async e=>{let n=await g({monitorId:t.monitor_config_id,urnList:[t.urn],dataUses:[...x,e]});(0,H.D4)(n)?h((0,M.e$)(n.error)):(m("Consent category added to ".concat(t.resource_type,' "').concat(j,'".'),"Confirmed"),null==i||i([...x,e])),o(!1)},C=async e=>{let n=await g({monitorId:t.monitor_config_id,urnList:[t.urn],dataUses:x.filter(t=>t!==e)});(0,H.D4)(n)?h((0,M.e$)(n.error)):(m("Consent category removed from ".concat(t.resource_type,' "').concat(j,'".'),"Confirmed"),null==i||i(x.filter(t=>t!==e)))};return((0,l.useEffect)(()=>{p((null==a?void 0:a.isExpanded)||!1)},[null==a?void 0:a.isExpanded]),n)?(0,s.jsx)(X.Q,{values:null==x?void 0:x.map(e=>({label:v(e),key:e})),columnState:a,onStateChange:p}):(0,s.jsxs)(s.Fragment,{children:[!r&&(0,s.jsxs)(c.vyj,{align:"start",children:[(0,s.jsx)(c.j8w,{onClick:()=>o(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"}),(0,s.jsx)(X.Q,{values:null==x?void 0:x.map(e=>({label:v(e),key:e})),columnState:{...a,isExpanded:u},tagProps:{closable:!0,closeButtonLabel:"Remove data use"},onTagClose:C,onStateChange:p})]}),r&&(0,s.jsx)("div",{className:Y().cellBleed,style:{backgroundColor:"var(--fides-color-white)"},children:(0,s.jsx)(y,{selectedTaxonomies:x,onSelect:b,onBlur:()=>o(!1),onKeyDown:e=>{"Escape"===e.key&&o(!1)},open:!0})})]})};let et=e=>{let{consentAggregated:t,stagedResource:n}=e,a=I.LM.includes(t);if(!(a||t===p.lg.UNKNOWN))return null;let l=!!n.data_uses&&n.data_uses.length>0,i=I.Vq[t];return t!==p.lg.UNKNOWN||l||(i="Add a category of consent to this asset to find consent information."),(0,s.jsx)(c.esZ,{title:i,children:(0,s.jsx)(c.j8w,{color:a?"error":void 0,"data-testid":"status-badge_".concat(t.replace(/_/g,"-")),children:I.X1[t]})})};var en=n(70675);let es=e=>{let{aggregateSystem:t,monitorConfigId:n,readonly:a,onChange:i}=e,{resource_type:r,name:o,urn:d,system:u,user_assigned_system_key:p,system_key:g}=t,m=B()(o||"",{length:50}),[h,f]=(0,l.useState)(!1),[v,y]=(0,l.useState)(!1),[x,{isLoading:j}]=(0,en.NA)(),{successAlert:k,errorAlert:S}=(0,W.VY)(),w=(0,l.useCallback)(e=>{e.preventDefault(),y(!0)},[]),_=async(e,t,s)=>{let a=await x({staged_resource_urn:d,monitor_config_id:n,user_assigned_system_key:e}),l=B()(t,{length:50});(0,M.D4)(a)?S((0,M.e$)(a.error)):(k(s?"".concat(l," has been added to your system inventory and the ").concat(r,' "').concat(m,'" has been assigned to that system.'):"".concat(r,' "').concat(m,'" has been assigned to ').concat(l,"."),"Confirmed"),null==i||i(e)),f(!1)};return a?u?(0,s.jsx)(c.j8w,{"data-testid":"system-badge",color:"white",children:u}):null:(0,s.jsxs)(s.Fragment,{children:[!h&&(u?(0,s.jsxs)(c.j8w,{onClick:()=>f(!0),"data-testid":"system-badge",children:[u,(0,s.jsx)(c.PJP.I8b,{})]}):(0,s.jsx)(c.j8w,{onClick:()=>f(!0),"data-testid":"add-system-btn",addable:!0})),!!h&&(0,s.jsx)("div",{className:Y().cellBleed,children:(0,s.jsx)(b.R,{variant:"borderless",autoFocus:!0,defaultOpen:!0,defaultValue:p||g,onBlur:e=>{var t;(null===(t=e.relatedTarget)||void 0===t?void 0:t.getAttribute("id"))!=="add-new-system"&&f(!1)},onAddSystem:w,onSelect:(e,t)=>_(e,t.label),loading:j})}),v&&(0,s.jsx)(C.i,{isOpen:!0,onClose:()=>{y(!1)},onSuccessfulSubmit:(e,t)=>_(e,t,!0)})]})},ea=e=>{let{monitorId:t,systemId:n,consentStatus:i,onShowComplianceIssueDetails:o}=e,u=(0,a.useRouter)(),g=(0,c.pmc)(),[m,h]=(0,l.useState)(n),[f,y]=(0,l.useState)(!1),[x,j]=(0,l.useState)(!1),[b,C]=(0,l.useState)(!1),[k,S]=(0,l.useState)(0),[_,T]=(0,l.useState)(0),[D,N]=(0,l.useState)(0),{flags:O}=(0,z.hz)(),{assetConsentStatusLabels:L}=O,{filterTabs:P,activeTab:K,onTabChange:B,activeParams:Q,actionsDisabled:W}=(0,F.Z)(n),J=(0,E.o)({sorting:{validColumns:Object.values(I.r6)}}),{columnFilters:Y,pageIndex:X,pageSize:H,resetState:en,sortKey:ea,sortOrder:el,searchQuery:ei,updateSearch:er,updateFilters:eo,updateSorting:ed,updatePageIndex:ec,updatePageSize:eu}=J,{data:ep,isLoading:eg,isFetching:em}=(0,d.WJ)({key:t,page:X,size:H,search:ei,sort_by:ea?[ea]:[I.r6.NAME],sort_asc:"descend"!==el,...Q,...Y}),[eh,{isLoading:ef}]=(0,d.EY)(),[ev,{isLoading:ey}]=(0,d.nS)(),[ex,{isLoading:ej}]=(0,d.rs)(),[eb,{isLoading:eC}]=(0,d.sX)(),[ek,{isLoading:eS}]=(0,d.Vr)(),[ew,{isLoading:e_}]=(0,d.Tj)(),eE=ef||ey||ej||eC||e_||eS,eA=eE||n===r.Kl,{data:eI}=(0,d.ut)({monitor_config_id:t,resolved_system_id:n,diff_status:null==Q?void 0:Q.diff_status,search:ei,...Y}),eT=(0,l.useMemo)(()=>({enableSelection:K!==F.A.ADDED,getRowKey:e=>e.urn,isLoading:eg,isFetching:em,dataSource:(null==ep?void 0:ep.items)||[],totalRows:(null==ep?void 0:ep.total)||0,sortBy:[I.r6.NAME],sortAsc:!0,customTableProps:{locale:{emptyText:(0,s.jsx)("div",{children:(0,s.jsx)("div",{children:"All caught up!"})})}}}),[K,eg,em,null==ep?void 0:ep.items,null==ep?void 0:ep.total]),eD=(0,E.V)(J,eT),{selectedKeys:eN,selectedRows:eO,resetSelections:eL}=eD,eP=(0,l.useMemo)(()=>{var e;let t=[{title:"Asset",dataIndex:I.r6.NAME,key:I.r6.NAME,sorter:!0,sortOrder:ea===I.r6.NAME?el:null,render:e=>(0,s.jsx)(c.lKn,{ellipsis:{tooltip:!0},style:{maxWidth:300},children:e}),fixed:"left"},{title:"Type",dataIndex:I.r6.RESOURCE_TYPE,key:I.r6.RESOURCE_TYPE,sorter:!0,sortOrder:ea===I.r6.RESOURCE_TYPE?el:null,filters:(0,A.nZ)(null==eI?void 0:eI.resource_type),filteredValue:(null==Y?void 0:Y.resource_type)||null},{title:"System",dataIndex:I.r6.SYSTEM,key:I.r6.SYSTEM,render:(e,t)=>!!t.monitor_config_id&&(0,s.jsx)(es,{aggregateSystem:t,monitorConfigId:t.monitor_config_id,readonly:W||K===F.A.IGNORED,onChange:()=>{eL()}})},{title:"Categories of consent",key:I.r6.DATA_USES,menu:{items:U.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?(C(!0),N(e=>e+1)):"collapse-all"===e.key&&(C(!1),N(e=>e+1))}},filters:(0,A.nZ)(null==eI?void 0:null===(e=eI.data_uses)||void 0===e?void 0:e.filter(e=>(0,v.Z)(e))),filteredValue:(null==Y?void 0:Y.data_uses)||null,render:(e,t)=>(0,s.jsx)(ee,{asset:t,readonly:W||K===F.A.IGNORED,columnState:{isExpanded:b,version:D},onChange:()=>{eL()}})},{title:"Locations",dataIndex:I.r6.LOCATIONS,key:I.r6.LOCATIONS,menu:{items:U.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?(y(!0),S(e=>e+1)):"collapse-all"===e.key&&(y(!1),S(e=>e+1))}},filters:(0,A.nZ)(null==eI?void 0:eI.locations,e=>{var t;let n=(0,c.QCN)(e);return n?(0,c.c1K)({isoEntry:n}):null!==(t=w.Z8[e])&&void 0!==t?t:e}),filteredValue:(null==Y?void 0:Y.locations)||null,render:e=>{var t;return(0,s.jsx)(Z.Q,{values:null!==(t=null==e?void 0:e.map(e=>{var t;let n=(0,c.QCN)(e);return{label:n?(0,c.c1K)({isoEntry:n}):null!==(t=w.Z8[e])&&void 0!==t?t:e,key:e}}))&&void 0!==t?t:[],columnState:{isExpanded:f,version:k}})}},{title:"Domain",dataIndex:I.r6.DOMAIN,key:I.r6.DOMAIN},{title:"Detected on",dataIndex:I.r6.PAGE,menu:{items:U.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?(j(!0),T(e=>e+1)):"collapse-all"===e.key&&(j(!1),T(e=>e+1))}},key:I.r6.PAGE,render:e=>(0,s.jsx)(Z.v,{values:e,valueSuffix:"pages",columnState:{isExpanded:x,version:_}})}];return L&&t.push({title:()=>(0,s.jsxs)(c.vyj,{children:[(0,s.jsx)("div",{children:"Compliance"}),(null==i?void 0:i.status)===p.pF.ALERT&&(0,s.jsx)(G.l,{consentStatus:i})]}),dataIndex:I.r6.CONSENT_AGGREGATED,key:I.r6.CONSENT_AGGREGATED,sorter:!0,sortOrder:ea===I.r6.CONSENT_AGGREGATED?el:null,filters:(0,A.nZ)(null==eI?void 0:eI[I.r6.CONSENT_AGGREGATED],e=>{var t;return null!==(t=I.X1[e])&&void 0!==t?t:e}),filteredValue:(null==Y?void 0:Y[I.r6.CONSENT_AGGREGATED])||null,render:(e,t)=>(0,s.jsx)(et,{consentAggregated:null!=e?e:p.lg.UNKNOWN,stagedResource:t})}),W||t.push({title:"Actions",key:I.r6.ACTIONS,fixed:"right",render:(e,t)=>(0,s.jsx)($,{asset:t,onTabChange:B,showComplianceIssueDetails:o})}),t},[ea,el,eI,Y,L,W,K,b,D,eL,f,k,x,_,i,B,o]);(0,l.useEffect)(()=>{if(ep){var e;h((null===(e=ep.items[0])||void 0===e?void 0:e.system)||m||n||"")}},[ep,n,m]);let eR=(0,l.useCallback)(async()=>{var e,t;let n=await eh({urnList:eN}),s=(null===(e=eO[0])||void 0===e?void 0:e.user_assigned_system_key)||(null===(t=eO[0])||void 0===t?void 0:t.system_key),a=eO.every(e=>(e.user_assigned_system_key||e.system_key)===s)?s:void 0;(0,M.D4)(n)?g((0,V.Vo)((0,M.e$)(n.error))):(g((0,V.t5)((0,q._)("".concat(eN.length," assets from ").concat(m," have been added to the system inventory."),a?()=>u.push("".concat(r.So,"/configure/").concat(a,"#assets")):()=>u.push(r.So)))),eL())},[eh,eN,eO,m,g,u,eL]),ez=(0,l.useCallback)(async e=>{if("string"==typeof(null==e?void 0:e.value)){let n=await eb({monitorId:t,urnList:eN,systemKey:e.value});(0,M.D4)(n)?g((0,V.Vo)((0,M.e$)(n.error))):(g((0,V.t5)("".concat(eN.length," assets have been assigned to ").concat(e.label,"."),"Confirmed")),eL())}},[eb,t,eN,g,eL]),eM=(0,l.useCallback)(async e=>{if(!eO.length)return;let n=eO.map(t=>{let n=R()([...t.preferred_data_uses||[],...e]);return{urn:t.urn,user_assigned_data_uses:n}}),s=await ek({monitorId:t,assets:n});(0,M.D4)(s)?g((0,V.Vo)((0,M.e$)(s.error))):(g((0,V.t5)("Consent categories added to ".concat(eN.length," assets").concat(m?" from ".concat(m):"","."),"Confirmed")),eL())},[eO,ek,t,eN,m,g,eL]),eZ=(0,l.useCallback)(async()=>{let e=await ev({urnList:eN});(0,M.D4)(e)?g((0,V.Vo)((0,M.e$)(e.error))):(g((0,V.t5)(m===r.Kl?"".concat(eN.length," uncategorized assets have been ignored and will not appear in future scans."):"".concat(eN.length," assets from ").concat(m," have been ignored and will not appear in future scans."),"Confirmed")),eL())},[ev,eN,m,g,eL]),eU=(0,l.useCallback)(async()=>{let e=await ew({urnList:eN});(0,M.D4)(e)?g((0,V.Vo)((0,M.e$)(e.error))):(g((0,V.t5)("".concat(eN.length," assets have been restored and will appear in future scans."),"Confirmed")),eL())},[ew,eN,g,eL]),eV=(0,l.useCallback)(async()=>{let e=(null==ep?void 0:ep.items.length)||0,s=await ex({monitor_config_key:t,resolved_system_ids:[n]});(0,M.D4)(s)?g((0,V.Vo)((0,M.e$)(s.error))):(u.push({pathname:r.lA,query:{monitorId:encodeURIComponent(t)}}),g((0,V.t5)("".concat(e," assets from ").concat(m," have been added to the system inventory."),"Confirmed")),eL())},[null==ep?void 0:ep.items.length,ex,t,n,u,g,m,eL]),eG=(0,l.useCallback)(async e=>{await B(e),en(),eL()},[B,en,eL]);return{columns:eP,data:ep,isLoading:eg,isFetching:em,tableState:J,searchQuery:ei,updateSearch:er,updateFilters:eo,updateSorting:ed,updatePageIndex:ec,updatePageSize:eu,resetState:en,tableProps:eD.tableProps,selectionProps:eD.selectionProps,filterTabs:P,activeTab:K,handleTabChange:eG,activeParams:Q,actionsDisabled:W,selectedRows:eO,selectedUrns:eN,hasSelectedRows:eD.hasSelectedRows,resetSelections:eL,systemName:m,consentStatus:i,handleBulkAdd:eR,handleBulkAssignSystem:ez,handleBulkAddDataUse:eM,handleBulkIgnore:eZ,handleBulkRestore:eU,handleAddAll:eV,anyBulkActionIsLoading:eE,isAddingResults:ef,isIgnoringResults:ey,isAddingAllResults:ej,isBulkUpdatingSystem:eC,isBulkAddingDataUses:eS,isRestoringResults:e_,disableAddAll:eA}},el=e=>{var t;let{monitorId:n,systemId:a,consentStatus:i}=e,[r,o]=(0,l.useState)(!1),[d,m]=(0,l.useState)(!1),[h,f]=(0,l.useState)(null),{columns:v,searchQuery:y,updateSearch:x,resetState:b,tableProps:C,selectionProps:k,filterTabs:w,activeTab:_,handleTabChange:E,activeParams:A,actionsDisabled:I,selectedUrns:T,hasSelectedRows:D,resetSelections:N,handleBulkAdd:O,handleBulkAssignSystem:P,handleBulkAddDataUse:R,handleBulkIgnore:z,handleBulkRestore:M,handleAddAll:Z,anyBulkActionIsLoading:U,isAddingAllResults:V,isBulkUpdatingSystem:G,isBulkAddingDataUses:q,disableAddAll:K}=ea({monitorId:n,systemId:a,consentStatus:i,onShowComplianceIssueDetails:e=>{f(e)}}),B=async e=>{await P(e),o(!1)},F=async e=>{await R(e),m(!1)};return n&&a?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.Niu,{"aria-label":"Asset state filter",mode:"horizontal",items:w.map(e=>({key:e.hash,label:e.label})),selectedKeys:[_],onClick:async e=>{await E(e.key)},className:"mb-4","data-testid":"asset-state-filter"}),(0,s.jsxs)(c.jqI,{justify:"space-between",align:"center",className:"mb-4",children:[(0,s.jsx)(g.f,{value:y,onChange:x,placeholder:"Search by asset name..."}),(0,s.jsxs)(c.vyj,{size:"large",children:[D&&(0,s.jsx)(u.a,{count:T.length}),(0,s.jsxs)(c.vyj,{size:"small",children:[(0,s.jsx)(c.wpx,{onClick:()=>{b(),N()},"data-testid":"clear-filters",children:"Clear filters"}),(0,s.jsx)(c.S0p,{overlayClassName:"bulk-actions-menu-dropdown",menu:{items:[...(null==A?void 0:null===(t=A.diff_status)||void 0===t?void 0:t.includes(p.LL.MUTED))?[{key:"restore",label:"Restore",onClick:M}]:[{key:"add",label:"Add",onClick:O},{key:"add-data-use",label:"Add consent category",onClick:()=>m(!0)},{key:"assign-system",label:"Assign system",onClick:()=>o(!0)},{type:"divider"},{key:"ignore",label:"Ignore",onClick:z}]]},trigger:["click"],children:(0,s.jsx)(c.wpx,{icon:(0,s.jsx)(c.PJP._ME,{}),iconPosition:"end",loading:U,"data-testid":"bulk-actions-menu",disabled:!D||U||I,type:"primary",children:"Actions"})}),(0,s.jsx)(c.esZ,{title:K?"These assets require a system before you can add them to the inventory.":void 0,children:(0,s.jsx)(c.wpx,{onClick:Z,disabled:K,loading:V,type:"primary",icon:(0,s.jsx)(c.PJP.MCw,{}),iconPosition:"end","data-testid":"add-all",children:"Add all"})})]})]})]}),(0,s.jsx)(c.V5H,{...C,columns:v,rowSelection:k,locale:{emptyText:(0,s.jsx)(c.oj8,{image:c.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})},"aria-labelledby":"breadcrumb-current-page"}),(0,s.jsx)(S,{isOpen:r,onClose:()=>{o(!1)},onSave:B,isSaving:G}),(0,s.jsx)(j,{isOpen:d,onClose:()=>{m(!1)},onSave:F,isSaving:q}),h&&(0,s.jsx)(L,{isOpen:!!h,stagedResource:h,onCancel:()=>{f(null)}})]}):null};var ei=n(71985),er=n(98243),eo=()=>{let e=(0,a.useRouter)(),t=decodeURIComponent(e.query.monitorId),n=decodeURIComponent(e.query.systemId),{data:c}=(0,d.wi)({key:t,page:1,size:1,search:"",diff_status:[er.L.ADDITION],resolved_system_id:n}),u=null==c?void 0:c.items[0];return(0,l.useEffect)(()=>{c&&0===c.items.length&&e.push({pathname:r.lA,query:{monitorId:encodeURIComponent(t)}})},[c,e,t]),(0,s.jsxs)(i.Z,{title:"Action center - Discovered assets",children:[(0,s.jsx)(o.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:r.vi},{title:t,href:"".concat(r.vi,"/").concat(ei.w.WEBSITE,"/").concat(t)},{title:n===r.Kl?"Uncategorized assets":null==u?void 0:u.name}]}),(0,s.jsx)(el,{monitorId:t,systemId:n,consentStatus:null==u?void 0:u.consent_status})]})}},31883:function(e,t,n){"use strict";n.d(t,{Bw:function(){return s.Bw},D4:function(){return s.D4}});var s=n(19043)},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}},18992:function(e){e.exports={cellBleed:"Cells_cellBleed__dik43"}}},function(e){e.O(0,[431,6344,7245,401,7059,6780,2888,9774,179],function(){return e(e.s=14599)}),_N_E=e.O()}]);