ethyca-fides 2.69.3b1__py2.py3-none-any.whl → 2.69.3b2__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 (304) hide show
  1. {ethyca_fides-2.69.3b1.dist-info → ethyca_fides-2.69.3b2.dist-info}/METADATA +1 -1
  2. {ethyca_fides-2.69.3b1.dist-info → ethyca_fides-2.69.3b2.dist-info}/RECORD +242 -226
  3. fides/_version.py +3 -3
  4. fides/api/alembic/migrations/versions/5fa78b1f324d_add_event_audit_table.py +82 -0
  5. fides/api/alembic/migrations/versions/b9bfa12c167b_add_not_applicable_to_asset_consentstatus.py +46 -0
  6. fides/api/alembic/migrations/versions/fd7571bef683_adds_new_fields_to_messagingconfig_for_.py +31 -0
  7. fides/api/api/v1/endpoints/messaging_endpoints.py +164 -34
  8. fides/api/db/base.py +1 -0
  9. fides/api/db/seed.py +34 -0
  10. fides/api/models/asset.py +1 -0
  11. fides/api/models/event_audit.py +68 -0
  12. fides/api/models/messaging.py +30 -10
  13. fides/api/models/taxonomy.py +16 -4
  14. fides/api/schemas/application_config.py +4 -1
  15. fides/api/schemas/messaging/messaging.py +33 -66
  16. fides/api/schemas/messaging/messaging_secrets_docs_only.py +1 -1
  17. fides/api/schemas/messaging/shared_schemas.py +102 -0
  18. fides/api/service/deps.py +10 -2
  19. fides/api/service/messaging/message_dispatch_service.py +16 -15
  20. fides/api/service/messaging/messaging_crud_service.py +5 -9
  21. fides/api/service/privacy_request/request_runner_service.py +18 -0
  22. fides/api/tasks/__init__.py +1 -0
  23. fides/api/worker/__init__.py +2 -0
  24. fides/common/api/v1/urn_registry.py +2 -1
  25. fides/service/event_audit_service.py +115 -0
  26. fides/service/messaging/aws_ses_service.py +2 -4
  27. fides/service/taxonomy/taxonomy_service.py +49 -3
  28. fides/ui-build/static/admin/404.html +1 -1
  29. fides/ui-build/static/admin/_next/static/86A8z6OnbTuDYww0DJkX0/_buildManifest.js +1 -0
  30. fides/ui-build/static/admin/_next/static/chunks/1115-d5a834cdaa717edc.js +1 -0
  31. fides/ui-build/static/admin/_next/static/chunks/155-b5e4370b158e5ee3.js +1 -0
  32. fides/ui-build/static/admin/_next/static/chunks/1817-dc2bba3ca736d39e.js +1 -0
  33. fides/ui-build/static/admin/_next/static/chunks/1841-2052c3239f2a0a1a.js +1 -0
  34. fides/ui-build/static/admin/_next/static/chunks/2040-3f9c66c56a05b336.js +1 -0
  35. fides/ui-build/static/admin/_next/static/chunks/2751-58285ccf50a0ba4b.js +1 -0
  36. fides/ui-build/static/admin/_next/static/chunks/3377-c5e0cc3de1a5ffd1.js +1 -0
  37. fides/ui-build/static/admin/_next/static/chunks/3696-fff4f944d7d5ff20.js +1 -0
  38. fides/ui-build/static/admin/_next/static/chunks/3872-4786ccbe7c6f65b0.js +1 -0
  39. fides/ui-build/static/admin/_next/static/chunks/409-e1deab19fc7e6d99.js +1 -0
  40. fides/ui-build/static/admin/_next/static/chunks/4230-c55d5531697a715c.js +1 -0
  41. fides/ui-build/static/admin/_next/static/chunks/4608-2fbc3389681f6924.js +1 -0
  42. fides/ui-build/static/admin/_next/static/chunks/4786-8d78ec773d171562.js +1 -0
  43. fides/ui-build/static/admin/_next/static/chunks/5185-a219b390ef17ff4b.js +1 -0
  44. fides/ui-build/static/admin/_next/static/chunks/5309-e994c5195f99b1eb.js +1 -0
  45. fides/ui-build/static/admin/_next/static/chunks/5783-c62c79e7be21be73.js +1 -0
  46. fides/ui-build/static/admin/_next/static/chunks/6084-29cbe703bffdccfe.js +1 -0
  47. fides/ui-build/static/admin/_next/static/chunks/6416-79eee298a5b3f80f.js +1 -0
  48. fides/ui-build/static/admin/_next/static/chunks/6780-eeb7775eb21d7a12.js +1 -0
  49. fides/ui-build/static/admin/_next/static/chunks/6882-55dbb142f7c40f53.js +1 -0
  50. fides/ui-build/static/admin/_next/static/chunks/7476-3da7a490debad8e2.js +1 -0
  51. fides/ui-build/static/admin/_next/static/chunks/7630-22f9c4b25d6aed29.js +1 -0
  52. fides/ui-build/static/admin/_next/static/chunks/7725-b2fa93d747d3d85d.js +1 -0
  53. fides/ui-build/static/admin/_next/static/chunks/7929-4314e317b1717257.js +1 -0
  54. fides/ui-build/static/admin/_next/static/chunks/796-8e4da90ae82dfebb.js +1 -0
  55. fides/ui-build/static/admin/_next/static/chunks/8002-78d78545309b2c1c.js +1 -0
  56. fides/ui-build/static/admin/_next/static/chunks/8373-bd50fa53cbcab2aa.js +1 -0
  57. fides/ui-build/static/admin/_next/static/chunks/9037-453224ba3ee65b13.js +1 -0
  58. fides/ui-build/static/admin/_next/static/chunks/9046-0f92802b0e3382a9.js +1 -0
  59. fides/ui-build/static/admin/_next/static/chunks/9226-49dbcdb135bf9793.js +1 -0
  60. fides/ui-build/static/admin/_next/static/chunks/9826-f316eb1d61cb90b6.js +1 -0
  61. fides/ui-build/static/admin/_next/static/chunks/pages/{_app-a653cee14ce2366b.js → _app-c780470042750062.js} +2 -2
  62. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-adaec1ec185160af.js → manual-fb9434d926ebf0b3.js} +1 -1
  63. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-92034daafd2187a0.js +1 -0
  64. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure-87919c1192e68b1a.js +1 -0
  65. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-17cdca29c6d4cdd6.js → properties-c985ea8c1a0e0550.js} +1 -1
  66. fides/ui-build/static/admin/_next/static/chunks/pages/consent-35c0ae9d5b5a940c.js +1 -0
  67. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/{[resourceUrn]-d0dbba5bff738b57.js → [resourceUrn]-6a196c704f1c6dd7.js} +1 -1
  68. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-06ba907e7d91a724.js +1 -0
  69. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/{[resourceUrn]-cfc118e68285405c.js → [resourceUrn]-9cee4e222ebb2b60.js} +1 -1
  70. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-f99af5669b9ab44c.js +1 -0
  71. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-db7f1a269d3e7fc2.js +1 -0
  72. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-de957913f9b47daa.js +1 -0
  73. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-5868591ff1e5f881.js +1 -0
  74. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-715064e1c9788e1a.js +1 -0
  75. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-8f736b078e9842da.js → [resourceUrn]-9ae81f5c245b8a01.js} +1 -1
  76. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-eb814e3c22807871.js → detection-6537c93c69b597c7.js} +1 -1
  77. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-6875b7783fcfda2f.js → [resourceUrn]-5db26067d921a94a.js} +1 -1
  78. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-172dbd7740e212ca.js → discovery-9f6a62614d7eb113.js} +1 -1
  79. fides/ui-build/static/admin/_next/static/chunks/pages/datamap-aed0e6dafc143b97.js +1 -0
  80. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-72b9878ea9b91529.js +1 -0
  81. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]-f36a46381a6c25d4.js +1 -0
  82. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-b653fd60e7db989b.js +1 -0
  83. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-5bb96c8684a38bbf.js +1 -0
  84. fides/ui-build/static/admin/_next/static/chunks/pages/dataset-639046f6c76bc8bd.js +1 -0
  85. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-785205655317b1d3.js → [id]-6bf117315d909ad1.js} +1 -1
  86. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-a6985f77afbc5bc0.js → new-1e2fa11f22dbc449.js} +1 -1
  87. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-c55e3e0e19030f3f.js +1 -0
  88. fides/ui-build/static/admin/_next/static/chunks/pages/index-d66ea87b457af21e.js +1 -0
  89. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-0159fbb2e0440709.js +1 -0
  90. fides/ui-build/static/admin/_next/static/chunks/pages/{integrations-f297e6cdb9fe97b9.js → integrations-267d2742fffaebe5.js} +1 -1
  91. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-670b05b03ba11e0a.js +1 -0
  92. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-482a7256925a6e06.js +1 -0
  93. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure-331147598052f25c.js +1 -0
  94. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-28083bfb2dec7b9f.js +1 -0
  95. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-3d2a77cb07aa8dc0.js → [id]-e02dc4b4b385c86f.js} +1 -1
  96. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-210e7e3b3d776d44.js → add-property-74c2a0ff4c992633.js} +1 -1
  97. fides/ui-build/static/admin/_next/static/chunks/pages/{properties-18257b6a70fa8a97.js → properties-7459d56e548925b2.js} +1 -1
  98. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/{datamap-adbea0f9fd21ff3a.js → datamap-aed018025b09c045.js} +1 -1
  99. fides/ui-build/static/admin/_next/static/chunks/pages/settings/about/alpha-68eaac2d79133679.js +1 -0
  100. fides/ui-build/static/admin/_next/static/chunks/pages/settings/about-6c4904c157477285.js +1 -0
  101. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-e8cab942d09aa358.js +1 -0
  102. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-128f952a49a0e8dc.js +1 -0
  103. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domain-records-cca3d1a26e1269bb.js +1 -0
  104. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-07e1b9937a169e32.js +1 -0
  105. fides/ui-build/static/admin/_next/static/chunks/pages/settings/email-templates-3bc799dac8423f50.js +1 -0
  106. fides/ui-build/static/admin/_next/static/chunks/pages/settings/messaging-providers/[key]-f8887b2b29aed1b9.js +1 -0
  107. fides/ui-build/static/admin/_next/static/chunks/pages/settings/messaging-providers/new-5473558807e94462.js +1 -0
  108. fides/ui-build/static/admin/_next/static/chunks/pages/settings/messaging-providers-1065fbefd449719c.js +1 -0
  109. fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-3e23d92d789fff99.js +1 -0
  110. fides/ui-build/static/admin/_next/static/chunks/pages/settings/privacy-requests-907bfbb71d84646f.js +1 -0
  111. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-aa1ada4d4ac09759.js +1 -0
  112. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-a659f18a30ef89f3.js → [id]-02b0dde03a1ad159.js} +1 -1
  113. fides/ui-build/static/admin/_next/static/chunks/pages/systems-4a6ef2509e8cedfc.js +1 -0
  114. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-16b122b83e57bb8c.js +1 -0
  115. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/{new-92f52c43f522a350.js → new-6304dad2c5fab694.js} +1 -1
  116. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-763861f5eb207db5.js → [id]-0a8ec3aa2ed59a33.js} +1 -1
  117. fides/ui-build/static/admin/add-systems/manual.html +1 -1
  118. fides/ui-build/static/admin/add-systems/multiple.html +1 -1
  119. fides/ui-build/static/admin/add-systems.html +1 -1
  120. fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
  121. fides/ui-build/static/admin/consent/configure.html +1 -1
  122. fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
  123. fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
  124. fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
  125. fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
  126. fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
  127. fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
  128. fides/ui-build/static/admin/consent/properties.html +1 -1
  129. fides/ui-build/static/admin/consent/reporting.html +1 -1
  130. fides/ui-build/static/admin/consent.html +1 -1
  131. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
  132. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
  133. fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
  134. fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
  135. fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
  136. fides/ui-build/static/admin/data-catalog.html +1 -1
  137. fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
  138. fides/ui-build/static/admin/data-discovery/action-center/[monitorId].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-headless.js +1 -1
  159. fides/ui-build/static/admin/lib/fides-preview.js +1 -1
  160. fides/ui-build/static/admin/lib/fides-tcf.js +2 -2
  161. fides/ui-build/static/admin/lib/fides.js +2 -2
  162. fides/ui-build/static/admin/login/[provider].html +1 -1
  163. fides/ui-build/static/admin/login.html +1 -1
  164. fides/ui-build/static/admin/messaging/[id].html +1 -1
  165. fides/ui-build/static/admin/messaging/add-template.html +1 -1
  166. fides/ui-build/static/admin/messaging.html +1 -1
  167. fides/ui-build/static/admin/poc/ant-components.html +1 -1
  168. fides/ui-build/static/admin/poc/form-experiments/AntForm.html +1 -1
  169. fides/ui-build/static/admin/poc/form-experiments/FormikAntFormItem.html +1 -1
  170. fides/ui-build/static/admin/poc/form-experiments/FormikControlled.html +1 -1
  171. fides/ui-build/static/admin/poc/form-experiments/FormikField.html +1 -1
  172. fides/ui-build/static/admin/poc/form-experiments/FormikSpreadField.html +1 -1
  173. fides/ui-build/static/admin/poc/forms.html +1 -1
  174. fides/ui-build/static/admin/poc/table-migration.html +1 -1
  175. fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
  176. fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
  177. fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
  178. fides/ui-build/static/admin/privacy-requests.html +1 -1
  179. fides/ui-build/static/admin/properties/[id].html +1 -1
  180. fides/ui-build/static/admin/properties/add-property.html +1 -1
  181. fides/ui-build/static/admin/properties.html +1 -1
  182. fides/ui-build/static/admin/reporting/datamap.html +1 -1
  183. fides/ui-build/static/admin/settings/about/alpha.html +1 -1
  184. fides/ui-build/static/admin/settings/about.html +1 -1
  185. fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +1 -1
  186. fides/ui-build/static/admin/settings/consent.html +1 -1
  187. fides/ui-build/static/admin/settings/custom-fields.html +1 -1
  188. fides/ui-build/static/admin/settings/domain-records.html +1 -1
  189. fides/ui-build/static/admin/settings/domains.html +1 -1
  190. fides/ui-build/static/admin/settings/email-templates.html +1 -1
  191. fides/ui-build/static/admin/settings/locations.html +1 -1
  192. fides/ui-build/static/admin/settings/messaging-providers/[key].html +1 -0
  193. fides/ui-build/static/admin/settings/messaging-providers/new.html +1 -0
  194. fides/ui-build/static/admin/settings/messaging-providers.html +1 -0
  195. fides/ui-build/static/admin/settings/organization.html +1 -1
  196. fides/ui-build/static/admin/settings/privacy-requests.html +1 -1
  197. fides/ui-build/static/admin/settings/regulations.html +1 -1
  198. fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
  199. fides/ui-build/static/admin/systems/configure/[id].html +1 -1
  200. fides/ui-build/static/admin/systems.html +1 -1
  201. fides/ui-build/static/admin/taxonomy.html +1 -1
  202. fides/ui-build/static/admin/user-management/new.html +1 -1
  203. fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
  204. fides/ui-build/static/admin/user-management.html +1 -1
  205. fides/ui-build/static/admin/_next/static/_b75ACzlGNz3tZqGUPTE5/_buildManifest.js +0 -1
  206. fides/ui-build/static/admin/_next/static/chunks/1099-718ce18b9bd70cdb.js +0 -1
  207. fides/ui-build/static/admin/_next/static/chunks/1345-1961771e9619db39.js +0 -1
  208. fides/ui-build/static/admin/_next/static/chunks/1817-9423665774c2c08f.js +0 -1
  209. fides/ui-build/static/admin/_next/static/chunks/3620-34355b0c44325537.js +0 -1
  210. fides/ui-build/static/admin/_next/static/chunks/3642-c052564812532324.js +0 -1
  211. fides/ui-build/static/admin/_next/static/chunks/3729-c8accd71498f6fe4.js +0 -1
  212. fides/ui-build/static/admin/_next/static/chunks/3872-c022bb7259a9f323.js +0 -1
  213. fides/ui-build/static/admin/_next/static/chunks/4164-cadb4c6528662248.js +0 -1
  214. fides/ui-build/static/admin/_next/static/chunks/4608-caa9cb70fb66ac99.js +0 -1
  215. fides/ui-build/static/admin/_next/static/chunks/4786-d2b03ba5c82a02ed.js +0 -1
  216. fides/ui-build/static/admin/_next/static/chunks/4808-57c5ac15fd8b0d81.js +0 -1
  217. fides/ui-build/static/admin/_next/static/chunks/4831-c0d20b2a0b7332bb.js +0 -1
  218. fides/ui-build/static/admin/_next/static/chunks/4844-e5064a161a7e5a12.js +0 -1
  219. fides/ui-build/static/admin/_next/static/chunks/5258-0062e0a1e4f8c03e.js +0 -1
  220. fides/ui-build/static/admin/_next/static/chunks/5487-46774dc9df554af1.js +0 -1
  221. fides/ui-build/static/admin/_next/static/chunks/549-170c96caa601e15a.js +0 -1
  222. fides/ui-build/static/admin/_next/static/chunks/6084-2c7b81cbcae7e3b4.js +0 -1
  223. fides/ui-build/static/admin/_next/static/chunks/7476-fdd0eb08a12e0334.js +0 -1
  224. fides/ui-build/static/admin/_next/static/chunks/7630-8613916021366672.js +0 -1
  225. fides/ui-build/static/admin/_next/static/chunks/787-f2eca25837ff7305.js +0 -1
  226. fides/ui-build/static/admin/_next/static/chunks/79-68834fd07d69f428.js +0 -1
  227. fides/ui-build/static/admin/_next/static/chunks/796-8fbae2fc714e7a3a.js +0 -1
  228. fides/ui-build/static/admin/_next/static/chunks/8002-193a97fe4de8b779.js +0 -1
  229. fides/ui-build/static/admin/_next/static/chunks/9046-1afcfb1c4dbdd6c6.js +0 -1
  230. fides/ui-build/static/admin/_next/static/chunks/9826-d49a56431e896acb.js +0 -1
  231. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-0a2b2f4a30245089.js +0 -1
  232. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure-b7b7fb3e8b2ea816.js +0 -1
  233. fides/ui-build/static/admin/_next/static/chunks/pages/consent-9b4e0a08ae6216c7.js +0 -1
  234. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-25c5916c8357f98d.js +0 -1
  235. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-9fa11c01b44ba8f1.js +0 -1
  236. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-fb16cb8fd2b3826f.js +0 -1
  237. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-a481a5be96dede96.js +0 -1
  238. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-6c65b86a61340753.js +0 -1
  239. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-7fe1ca395914f77f.js +0 -1
  240. fides/ui-build/static/admin/_next/static/chunks/pages/datamap-ea1eabce2a3fc2c7.js +0 -1
  241. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-3c629aecee30c575.js +0 -1
  242. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]-a13ea13e0316d5a2.js +0 -1
  243. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-a6ae353b3b1536cc.js +0 -1
  244. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-85b28db67d96f201.js +0 -1
  245. fides/ui-build/static/admin/_next/static/chunks/pages/dataset-409fe1a086fb7d38.js +0 -1
  246. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-93d5c01dd927bad2.js +0 -1
  247. fides/ui-build/static/admin/_next/static/chunks/pages/index-bf3042fdbfb12b3d.js +0 -1
  248. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-e545f8ef5c945f45.js +0 -1
  249. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-6e864b293571a508.js +0 -1
  250. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-0fc3f1f3b1cd6f2a.js +0 -1
  251. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-089c166287a89166.js +0 -1
  252. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure-5a3cd9b14a37ef27.js +0 -1
  253. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-73be3cfaaa95ece4.js +0 -1
  254. fides/ui-build/static/admin/_next/static/chunks/pages/settings/about/alpha-b678e7577eef5e5c.js +0 -1
  255. fides/ui-build/static/admin/_next/static/chunks/pages/settings/about-3f3039c7e86cab2f.js +0 -1
  256. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-d502bf1e7580df06.js +0 -1
  257. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-b841d63011827b43.js +0 -1
  258. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domain-records-50f9b26c6907d6de.js +0 -1
  259. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-5ae0d30eb3b770ab.js +0 -1
  260. fides/ui-build/static/admin/_next/static/chunks/pages/settings/email-templates-f5924e64a15a0dc3.js +0 -1
  261. fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-88f6badc1bb38b97.js +0 -1
  262. fides/ui-build/static/admin/_next/static/chunks/pages/settings/privacy-requests-d5f8db89c7e91a02.js +0 -1
  263. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-0366184eda09a933.js +0 -1
  264. fides/ui-build/static/admin/_next/static/chunks/pages/systems-f4bf47ed2c4746ba.js +0 -1
  265. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-2d9548cfa6086e8f.js +0 -1
  266. fides/ui-build/static/admin/privacy-requests/configure/messaging.html +0 -1
  267. {ethyca_fides-2.69.3b1.dist-info → ethyca_fides-2.69.3b2.dist-info}/WHEEL +0 -0
  268. {ethyca_fides-2.69.3b1.dist-info → ethyca_fides-2.69.3b2.dist-info}/entry_points.txt +0 -0
  269. {ethyca_fides-2.69.3b1.dist-info → ethyca_fides-2.69.3b2.dist-info}/licenses/LICENSE +0 -0
  270. {ethyca_fides-2.69.3b1.dist-info → ethyca_fides-2.69.3b2.dist-info}/top_level.txt +0 -0
  271. /fides/ui-build/static/admin/_next/static/{_b75ACzlGNz3tZqGUPTE5 → 86A8z6OnbTuDYww0DJkX0}/_ssgManifest.js +0 -0
  272. /fides/ui-build/static/admin/_next/static/chunks/{2921-765918f8aa37fdb2.js → 2921-cdc7a13973f4a0ba.js} +0 -0
  273. /fides/ui-build/static/admin/_next/static/chunks/{3855-0565d44d150c985a.js → 3855-8377b3fcbb3d93b0.js} +0 -0
  274. /fides/ui-build/static/admin/_next/static/chunks/{3923-23df37eef17d6ea2.js → 3923-db57401384d1de8f.js} +0 -0
  275. /fides/ui-build/static/admin/_next/static/chunks/{401-45f399d4d1325340.js → 401-4e56e924f35317f2.js} +0 -0
  276. /fides/ui-build/static/admin/_next/static/chunks/{6853-8fb39280a8f0eb89.js → 6853-91a8641cd2784b54.js} +0 -0
  277. /fides/ui-build/static/admin/_next/static/chunks/{6954-3b26ff8259c4d5c3.js → 6954-6dfafd38b02d5852.js} +0 -0
  278. /fides/ui-build/static/admin/_next/static/chunks/{9951-0c8a80f01e431957.js → 9951-c389c51ca6353035.js} +0 -0
  279. /fides/ui-build/static/admin/_next/static/chunks/pages/{404-8d9c703c96662265.js → 404-e4a1f93a7ce944f0.js} +0 -0
  280. /fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-20050dbae806179d.js → multiple-a4f821c4902f2df8.js} +0 -0
  281. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-7b8cec88b5ad53d1.js → add-vendors-96245b63aafc5168.js} +0 -0
  282. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-c30382719d6f797a.js → [id]-4fea66e59bd59de8.js} +0 -0
  283. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-dff842dbed2bc6c8.js → privacy-experience-ae8a64fffe3f8c66.js} +0 -0
  284. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-074cdbfc678ba791.js → [id]-c8038e05f35da8d1.js} +0 -0
  285. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-bcddda632b4df409.js → new-f3a40101a8f3fd00.js} +0 -0
  286. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-23d3e50db42f31b3.js → privacy-notices-d7d9ff9ed28fa790.js} +0 -0
  287. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/{reporting-75be0acd400cf527.js → reporting-ddf6ba92355f81de.js} +0 -0
  288. /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-8ffd8d148269d323.js → [projectUrn]-965af6c1fd01334e.js} +0 -0
  289. /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{resources-9b7e4b86b1e8a40a.js → resources-5afecf141308bfc5.js} +0 -0
  290. /fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{[id]-f03f1fdaa1f5a0c6.js → [id]-4352e55f110556b4.js} +0 -0
  291. /fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{add-template-8f90e275e932940b.js → add-template-c533120e94e049e3.js} +0 -0
  292. /fides/ui-build/static/admin/_next/static/chunks/pages/{messaging-68385a251c7ade5f.js → messaging-b14f5f38b2d711a8.js} +0 -0
  293. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/{ant-components-fc7d652910f3ad8d.js → ant-components-31d51e3b9227c8d5.js} +0 -0
  294. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{AntForm-fb6e6f4b276b6189.js → AntForm-8794a0d2e7554a05.js} +0 -0
  295. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikAntFormItem-00869abf79950a9a.js → FormikAntFormItem-90b31073e478c99c.js} +0 -0
  296. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikControlled-5716d749236c9f70.js → FormikControlled-0a6859a0225b7e00.js} +0 -0
  297. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikField-d6dfb9daa3935db3.js → FormikField-eb0552917907fe21.js} +0 -0
  298. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/{forms-9697549bce7060be.js → forms-b2a2a084d8cfe22d.js} +0 -0
  299. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/{table-migration-888656ae0bd40f62.js → table-migration-0c944cfa9c6acbff.js} +0 -0
  300. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/{[purpose_id]-c64b87694eda4785.js → [purpose_id]-7f2c50044806c094.js} +0 -0
  301. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-e29384f7a3db5221.js → locations-9f36b6c213ae524c.js} +0 -0
  302. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-46d06037fcadaf00.js → regulations-f0f0ea35d0185ae3.js} +0 -0
  303. /fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-98a3277820e232c7.js → user-management-4036b023366b7eec.js} +0 -0
  304. /fides/ui-build/static/admin/_next/static/chunks/{webpack-606818148553db7b.js → webpack-55e1c55932df2413.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(96306),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(72250);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.Z,{data:null!=t?t:"ethyca",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,4164,401,9951,4808,4844,4786,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(96306),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(72250);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.Z,{data:null!=t?t:"ethyca",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,1841,409,401,9951,6416,6780,4786,2888,9774,179],function(){return e(e.s=43376)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5023],{74245:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/add-systems",function(){return n(5923)}])},69e3:function(e,t,n){"use strict";var s=n(24246),i=n(96306),a=n(91507),r=n.n(a);t.Z=e=>{let{color:t,description:n,title:a,icon:l}=e;return(0,s.jsx)(i.xuv,{borderLeft:"9px solid ".concat(t),borderRadius:"6px",className:r().container,children:(0,s.jsxs)(i.V4A,{className:r().card,"data-testid":"tile-".concat(a),children:[(0,s.jsxs)("div",{className:"mb-1 flex items-center gap-1.5",children:[l,(0,s.jsx)(i.AntTypography.Title,{level:3,children:a})]}),(0,s.jsx)(i.AntTypography.Text,{children:n})]})})}},77867:function(e,t,n){"use strict";var s=n(24246),i=n(96306);t.Z=e=>{let{connected:t,...n}=e,a="red.500";return null==t?a="gray.300":t&&(a="green.500"),(0,s.jsx)(i.xuv,{width:"12px",height:"12px",borderRadius:"6px",backgroundColor:a,...n})}},59301:function(e,t,n){"use strict";var s=n(24246);let{Link:i}=n(96306).AntTypography;t.Z=e=>(0,s.jsx)(i,{target:"_blank",rel:"noopener noreferrer",...e})},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var s=n(24246),i=n(96306),a=n(88038),r=n.n(a),l=n(86677);n(27378);var o=n(25980),c=n(90867),d=n(42478),u=n(77830),m=()=>{let e=(0,l.useRouter)();return(0,s.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,s.jsxs)(i.xuv,{children:[(0,s.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,s.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,s.jsx)(i.wpx,{onClick:()=>{e.push(u.AD)},children:"Configure"})]}),(0,s.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},h=e=>{let{children:t,title:n,padded:a=!0,mainProps:u}=e,h=(0,o.hz)(),x=(0,l.useRouter)(),g="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,p=!(h.flags.messagingConfiguration&&g),{data:y}=(0,d.JE)(void 0,{skip:p}),{data:f}=(0,c.PW)(void 0,{skip:p}),j=h.flags.messagingConfiguration&&(!y||!f)&&g;return(0,s.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,s.jsxs)(r(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsxs)(i.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[j?(0,s.jsx)(m,{}):null,t]})]})}},58754:function(e,t,n){"use strict";var s=n(24246),i=n(96306),a=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:r=!0,children:l,rightContent:o,style:c,...d}=e;return(0,s.jsxs)("div",{...d,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,s.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(i.lQT,{className:n||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,s.jsx)(a.m,{className:l?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),l]})}},97181:function(e,t,n){"use strict";n.d(t,{d:function(){return c}});var s=n(24246),i=n(96306),a=n(34090),r=n(27378),l=n(46238),o=n(40324);let c=e=>{let{name:t,label:n,labelProps:c,tooltip:d,isRequired:u,layout:m="inline",helperText:h,...x}=e,[g,p,{setValue:y}]=(0,a.U$)(t),f=!!(p.touched&&p.error),[j,v]=(0,r.useState)("");g.value||"tags"!==x.mode&&"multiple"!==x.mode||(g.value=[]),"tags"===x.mode&&"string"==typeof g.value&&(g.value=[g.value]);let b="tags"===x.mode?(e,t)=>e?e.value!==j||g.value.includes(j)?x.optionRender?x.optionRender(e,t):e.label:'Create "'.concat(j,'"'):void 0:x.optionRender||void 0,C=e=>{v(e),x.onSearch&&x.onSearch(e)},w=(e,t)=>{y(e),x.onChange&&x.onChange(e,t)};return"inline"===m?(0,s.jsx)(i.NIc,{isInvalid:f,isRequired:u,children:(0,s.jsxs)(i.rjZ,{templateColumns:n?"1fr 3fr":"1fr",children:[n?(0,s.jsx)(o.__,{htmlFor:x.id||t,...c,children:n}):null,(0,s.jsxs)(i.jqI,{align:"center",children:[(0,s.jsxs)(i.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,s.jsx)(i.WPr,{...g,id:x.id||t,"data-testid":"controlled-select-".concat(g.name),...x,optionRender:b,onSearch:"tags"===x.mode?C:void 0,onChange:w,value:g.value||void 0,status:f?"error":void 0}),h&&(0,s.jsx)(i.Q6r,{children:h}),(0,s.jsx)(o.Bc,{isInvalid:f,message:p.error,fieldName:g.name})]}),(0,s.jsx)(l.b,{label:d,className:f?"mt-2 self-start":void 0})]})]})}):(0,s.jsx)(i.NIc,{isInvalid:f,isRequired:u,children:(0,s.jsxs)(i.gCW,{alignItems:"start",children:[(0,s.jsxs)(i.jqI,{align:"center",children:[n?(0,s.jsx)(o.__,{htmlFor:x.id||t,fontSize:"xs",my:0,mr:1,...c,children:n}):null,(0,s.jsx)(l.b,{label:d})]}),(0,s.jsx)(i.WPr,{...g,id:x.id||t,"data-testid":"controlled-select-".concat(g.name),...x,optionRender:b,onSearch:"tags"===x.mode?C:void 0,onChange:w,value:g.value||void 0,status:f?"error":void 0}),h&&(0,s.jsx)(i.Q6r,{style:{marginTop:0},children:h}),(0,s.jsx)(o.Bc,{isInvalid:f,message:p.error,fieldName:g.name})]})})}},16220:function(e,t,n){"use strict";n.d(t,{V:function(){return a}});var s=n(25980),i=n(77830);let a=()=>({systemOrDatamapRoute:(0,s.hz)().plus?i.oG:i.So})},57899:function(e,t,n){"use strict";var s=n(24246),i=n(96306),a=n(27378);t.Z=e=>{let{handleConfirm:t,isOpen:n,onClose:r,title:l,message:o,confirmButtonText:c="Continue",cancelButtonText:d="Cancel"}=e,u=(0,a.useRef)(null);return(0,s.jsx)(i.aRR,{isOpen:n,leastDestructiveRef:u,onClose:r,children:(0,s.jsx)(i.dhV,{children:(0,s.jsxs)(i._Tf,{alignItems:"center",textAlign:"center",children:[(0,s.jsx)(i.aNP,{marginTop:3}),(0,s.jsx)(i.fYl,{fontSize:"lg",fontWeight:"bold",children:l}),(0,s.jsx)(i.iPF,{pt:0,children:o}),(0,s.jsxs)(i.xoY,{children:[(0,s.jsx)(i.wpx,{ref:u,onClick:r,size:"large",children:d}),(0,s.jsx)(i.wpx,{onClick:()=>t(),type:"primary",size:"large",className:"ml-3","data-testid":"warning-modal-confirm-btn",children:c})]})]})})})}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return c}});var s=n(24246),i=n(96306),a=n(79894),r=n.n(a),l=n(27378);let{Text:o}=i.AntTypography,c=e=>{let{items:t,...n}=e,a=(0,l.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let a=n===t.length-1,l={...e},c=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,s.jsx)(o,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,id:a?"breadcrumb-current-page":void 0,children:l.title})),c)?l.title=(0,s.jsx)(i.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,s.jsx)(r(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,s.jsx)(i.zrq,{items:a,...n})}},42478:function(e,t,n){"use strict";n.d(t,{FU:function(){return c},JE:function(){return i},Ki:function(){return u},SU:function(){return m},W:function(){return h},h9:function(){return a},jc:function(){return s},qt:function(){return o},sn:function(){return d}});let{useGetEmailInviteStatusQuery:s,useGetActiveMessagingProviderQuery:i,useCreateMessagingConfigurationMutation:a,useCreateMessagingConfigurationSecretsMutation:r,useGetMessagingConfigurationDetailsQuery:l,useGetMessagingConfigurationsQuery:o,useGetMessagingConfigurationByKeyQuery:c,useUpdateMessagingConfigurationByKeyMutation:d,useUpdateMessagingConfigurationSecretsByKeyMutation:u,useCreateTestConnectionMessageMutation:m,useDeleteMessagingConfigurationByKeyMutation:h}=n(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,t,n,s)=>{let i=await s({url:"messaging/default/active"});return i.error&&404===i.error.status?{data:null}:i},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},5923:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return eu}});var s=n(24246),i=n(27378),a=n(16134),r=n(77213),l=n(58754),o=n(15677),c=n(96306),d=n(3124),u=n.n(d),m=n(86677),h=n(25980),x=n(14048),g=n(58452);let p=e=>{let{onCancel:t,onConfirm:n,isOpen:i,onClose:a}=e;return(0,s.jsx)(g.Z,{isOpen:i,onClose:a,onCancel:t,isCentered:!0,title:"Upgrade to choose vendors",message:"To choose vendors and have system information auto-populated using Fides Compass, you will need to upgrade Fides. Meanwhile, you can manually add individual systems using the button below.",cancelButtonText:"Add vendors manually",continueButtonText:"Upgrade",onConfirm:n})};var y=n(77830),f=n(21910),j=n(69e3),v=n(77867),b=n(32885),C=e=>{var t;let{onClick:n}=e,{plus:i,dataFlowScanning:r}=(0,h.hz)(),l=(0,a.C)(b.bw),o=null!==(t=null==l?void 0:l.cluster_health)&&void 0!==t?t:"unknown",d=o===f.wW.HEALTHY;if(!i)return null;let m=null;return r?d||(m="Your cluster appears not to be healthy. Its status is ".concat(o,".")):m="The data flow scanner is not enabled, please check your configuration.",(0,s.jsxs)(c.xuv,{position:"relative",children:[(0,s.jsx)(c.esZ,{title:m,popupVisible:!!m,children:(0,s.jsx)("button",{disabled:!r||!d,type:"button","aria-label":"Data flow scan",className:"text-left",onClick:n,children:(0,s.jsx)(j.Z,{title:"Data flow scan",color:u().FIDESUI_NECTAR,description:"Automatically discover new systems in your Kubernetes infrastructure",icon:(0,s.jsx)(x.pt,{boxSize:6}),"data-testid":"data-flow-scan-btn"})})}),r?(0,s.jsx)(v.Z,{connected:d,title:d?"Cluster is connected and healthy":"Cluster is ".concat(o),position:"absolute",right:-1,top:-1,"data-testid":"cluster-health-indicator"}):null]})},w=n(38764);let T=e=>{let{children:t}=e;return(0,s.jsx)(c.X6q,{as:"h4",size:"xs",fontWeight:"semibold",color:"gray.600",textTransform:"uppercase",mb:4,children:t})};var S=()=>{let e=(0,a.T)(),t=(0,m.useRouter)(),{isOpen:n,onClose:i,onOpen:r}=(0,c.qY0)(),{dictionaryService:l}=(0,h.hz)();return(0,s.jsxs)(c.Kqy,{spacing:9,"data-testid":"add-systems",children:[(0,s.jsxs)(c.Kqy,{spacing:6,maxWidth:"600px",children:[(0,s.jsx)(c.X6q,{as:"h3",size:"md",fontWeight:"semibold",children:"Fides helps you map your systems to manage your privacy"}),(0,s.jsx)(c.xvT,{children:"In Fides, systems describe any services that store or process data for your organization, including third-party APIs, web applications, databases, and data warehouses."}),(0,s.jsx)(c.xvT,{children:"Fides can automatically discover new systems in your AWS infrastructure or Okta accounts. For services not covered by the automated scanners or analog processes, you may also manually add new systems to your map."})]}),(0,s.jsx)(p,{isOpen:n,onConfirm:()=>{window.open("https://fid.es/upgrade-compass")},onCancel:()=>{t.push(y.N5)},onClose:i}),(0,s.jsxs)(c.xuv,{"data-testid":"manual-options",children:[(0,s.jsx)(T,{children:"Manually add systems"}),(0,s.jsxs)(c.MIq,{columns:{base:1,md:2,xl:3},spacing:"4",children:[(0,s.jsx)("button",{className:"flex flex-col text-left",type:"button","aria-label":"Add a system",onClick:()=>{e((0,o.CQ)(w.D.MANUAL)),t.push(y.N5)},"data-testid":"manual-btn",children:(0,s.jsx)(j.Z,{title:"Add a system",color:u().FIDESUI_SANDSTONE,icon:(0,s.jsx)(x.P$,{boxSize:6}),description:"Manually add a system for services not covered by automated scanners"})}),(0,s.jsx)("button",{className:"flex flex-col text-left",type:"button","aria-label":"Add multiple systems",onClick:()=>{l?(e((0,o.CQ)(w.D.MANUAL)),t.push(y.bJ)):r()},"data-testid":"multiple-btn",children:(0,s.jsx)(j.Z,{title:"Add multiple systems",color:u().FIDESUI_OLIVE,icon:(0,s.jsx)(x.P$,{boxSize:6}),description:"Choose vendors and automatically populate system details"})})]})]}),(0,s.jsxs)(c.xuv,{"data-testid":"automated-options",children:[(0,s.jsx)(T,{children:"Automated infrastructure scanning"}),(0,s.jsxs)(c.MIq,{columns:{base:1,md:2,xl:3},spacing:"4",children:[(0,s.jsx)("button",{className:"flex flex-col text-left",type:"button","aria-label":"Scan your infrastructure (AWS)",onClick:()=>{e((0,o.CQ)(f.GC.AWS)),e((0,o.sz)())},"data-testid":"aws-btn",children:(0,s.jsx)(j.Z,{title:"Scan your infrastructure (AWS)",color:u().FIDESUI_TERRACOTTA,description:"Automatically discover new systems in your AWS infrastructure",icon:(0,s.jsx)(x.bj,{boxSize:6})})}),(0,s.jsx)("button",{className:"flex flex-col text-left",type:"button","aria-label":"Scan your Sign On Provider (Okta)",onClick:()=>{e((0,o.CQ)(f.GC.OKTA)),e((0,o.sz)())},"data-testid":"okta-btn",children:(0,s.jsx)(j.Z,{title:"Scan your Sign On Provider (Okta)",color:u().FIDESUI_MINOS,description:"Automatically discover new systems in your Okta infrastructure",icon:(0,s.jsx)(x.tb,{boxSize:6})})}),(0,s.jsx)(C,{onClick:()=>{e((0,o.sz)()),e((0,o.CQ)(w.D.DATA_FLOW))}})]})]})]})},k=n(34090),_=n(55484),A=n(40324),q=n(812),z=n(41841),I=n(97181),O=n(70788),N=n(28416);let D=e=>"system_type"in e,{useGenerateMutation:F}=n(78780).u.injectEndpoints({endpoints:e=>({generate:e.mutation({query:e=>({url:"generate",method:"POST",body:e})})})});var W=n(59301);let M=e=>{let{message:t}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.izJ,{}),(0,s.jsx)(c.W20,{maxH:"50vh",overflow:"auto",children:(0,s.jsx)(c.xvT,{as:"pre","data-testid":"error-log",children:t})}),(0,s.jsx)(c.izJ,{})]})};var R=e=>{let{error:t,scanType:n=""}=e;return(0,s.jsxs)(c.Kqy,{"data-testid":"scanner-error",spacing:"4",children:[(0,s.jsxs)(c.Ugi,{children:[(0,s.jsx)(c.j8w,{color:"error",children:"Error"}),(0,s.jsx)(c.X6q,{color:"red.500",size:"lg",children:"Failed to Scan"})]}),403===t.status&&n===f.GC.AWS?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.xvT,{"data-testid":"permission-msg",children:"Fides was unable to scan AWS. It appears that the credentials were valid to login but they did not have adequate permission to complete the scan."}),(0,s.jsxs)(c.xvT,{children:["To fix this issue, double check that you have granted"," ",(0,s.jsx)(W.Z,{href:N.zu,children:"the required permissions"})," ","to these credentials as part of your IAM policy. If you need more help in configuring IAM policies, you can read about them"," ",(0,s.jsx)(W.Z,{href:"https://docs.aws.amazon.com/IAM/latest/UserGuide/introduction_access-management.html",children:"here"}),"."]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.xvT,{"data-testid":"generic-msg",children:"Fides was unable to scan your infrastructure. Please ensure your credentials are accurate and inspect the error log below for more details."}),(0,s.jsx)(M,{message:t.message}),(0,s.jsxs)(c.xvT,{children:["If this error does not clarify why scanning failed, please"," ",(0,s.jsx)(W.Z,{href:N.we,children:"create a new issue"}),"."]})]})]})},E=n(57899);let K=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.xvT,{color:"gray.500",mb:3,children:"Warning, you are about to cancel the scan!"}),(0,s.jsx)(c.xvT,{color:"gray.500",mb:3,children:"If you cancel scanning, the scanner will stop and no systems will be returned."}),(0,s.jsx)(c.xvT,{color:"gray.500",mb:3,children:"Are you sure you want to cancel?"})]});var Z=e=>{let{title:t,onClose:n}=e,{isOpen:i,onOpen:a,onClose:r}=(0,c.qY0)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.Kqy,{spacing:8,"data-testid":"scanner-loading",children:[(0,s.jsxs)(c.Ugi,{children:[(0,s.jsx)(c.xvT,{alignItems:"center",as:"b",color:"gray.900",display:"flex",fontSize:"xl",children:t}),(0,s.jsx)(c.PZ7,{"data-testid":"close-scan-in-progress",display:"inline-block",onClick:a})]}),(0,s.jsx)(c.Kqy,{alignItems:"center",children:(0,s.jsx)(c.$jN,{thickness:"4px",speed:"0.65s",emptyColor:"gray.200",color:"green.300",size:"xl"})})]}),(0,s.jsx)(E.Z,{isOpen:i,onClose:r,handleConfirm:n,title:"Cancel Scan!",message:K,confirmButtonText:"Yes, Cancel",cancelButtonText:"No, Continue Scanning"})]})};let U={aws_access_key_id:"",aws_secret_access_key:"",aws_session_token:"",region_name:""},B=_.Ry().shape({aws_access_key_id:_.Z_().required().trim().matches(/^\w+$/,"Cannot contain spaces or special characters").label("Access Key ID"),aws_secret_access_key:_.Z_().required().trim().matches(/^[^\s]+$/,"Cannot contain spaces").label("Secret"),aws_session_token:_.Z_().optional().trim().matches(/^[^\s]+$/,"Cannot contain spaces").label("Session Token (for temporary credentials)"),region_name:_.Z_().required().label("Default Region")});var P=()=>{let e=(0,a.C)(o.De),t=(0,a.T)(),{successAlert:n}=(0,z.VY)(),[r,l]=(0,i.useState)(),d=e=>{let s=(null!=e?e:[]).filter(D);t((0,o.un)(s)),t((0,o.sz)()),n("Your scan was successfully completed, with ".concat(s.length," new systems detected!"),"Scan Successfully Completed",{isClosable:!0})},u=e=>{l((0,q.nU)(e,{status:500,message:"Our system encountered a problem while connecting to AWS."}))},m=()=>{t((0,o.sz)(2))},[h,{isLoading:x}]=F(),g=async t=>{l(void 0);let n=await h({organization_key:e,generate:{config:t,target:f.GC.AWS,type:f.j.SYSTEMS}});(0,q.D4)(n)?u(n.error):d(n.data.generate_results)};return(0,s.jsx)(k.J9,{initialValues:U,validationSchema:B,onSubmit:g,children:e=>{let{isValid:t,isSubmitting:n,dirty:i}=e;return(0,s.jsx)(k.l0,{"data-testid":"authenticate-aws-form",children:(0,s.jsxs)(c.Kqy,{spacing:10,children:[n?(0,s.jsx)(Z,{title:"System scanning in progress",onClose:m}):null,r?(0,s.jsx)(R,{error:r,scanType:"aws"}):null,n||r?null:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.xuv,{children:[(0,s.jsx)(O.m,{className:"mb-4",items:[{title:"Add systems",href:"",onClick:e=>{e.preventDefault(),m()}},{title:"Authenticate AWS Scanner"}]}),(0,s.jsx)(c.xvT,{children:"To use the scanner to inventory systems in AWS, you must first authenticate to your AWS cloud by providing the following information:"})]}),(0,s.jsxs)(c.Kqy,{children:[(0,s.jsx)(A.j0,{name:"aws_access_key_id",label:"Access Key ID",tooltip:"The Access Key ID created by the cloud hosting provider.",isRequired:!0}),(0,s.jsx)(A.j0,{type:"password",name:"aws_secret_access_key",label:"Secret",tooltip:"The secret associated with the Access Key ID used for authentication.",isRequired:!0}),(0,s.jsx)(A.j0,{type:"password",name:"aws_session_token",label:"Session Token",tooltip:"The session token when using temporary credentials."}),(0,s.jsx)(I.d,{name:"region_name",label:"AWS Region",tooltip:"The geographic region of the cloud hosting provider you would like to scan.",options:N.xO,isRequired:!0,placeholder:"Select a region"})]})]}),n?null:(0,s.jsxs)(c.Ugi,{children:[(0,s.jsx)(c.wpx,{onClick:m,children:"Cancel"}),(0,s.jsx)(c.wpx,{htmlType:"submit",type:"primary",disabled:!i||!t,loading:x,"data-testid":"submit-btn",children:"Save and continue"})]})]})})}})};let Y={orgUrl:"",token:""},L=_.Ry().shape({orgUrl:_.Z_().required().trim().url().label("URL"),token:_.Z_().required().trim().matches(/^[^\s]+$/,"Cannot contain spaces").label("Token")});var X=()=>{let e=(0,a.C)(o.De),t=(0,a.T)(),{successAlert:n}=(0,z.VY)(),[r,l]=(0,i.useState)(),d=e=>{let s=(null!=e?e:[]).filter(D);t((0,o.un)(s)),t((0,o.sz)()),n("Your scan was successfully completed, with ".concat(s.length," new systems detected!"),"Scan Successfully Completed",{isClosable:!0})},u=e=>{l((0,q.nU)(e,{status:500,message:"Our system encountered a problem while connecting to Okta."}))},m=()=>{t((0,o.sz)(2))},[h,{isLoading:x}]=F(),g=async t=>{l(void 0);let n=await h({organization_key:e,generate:{config:t,target:f.GC.OKTA,type:f.j.SYSTEMS}});(0,q.D4)(n)?u(n.error):d(n.data.generate_results)};return(0,s.jsx)(k.J9,{initialValues:Y,validationSchema:L,onSubmit:g,children:e=>{let{isValid:t,isSubmitting:n,dirty:i}=e;return(0,s.jsx)(k.l0,{"data-testid":"authenticate-okta-form",children:(0,s.jsxs)(c.Kqy,{spacing:10,children:[n?(0,s.jsx)(Z,{title:"System scanning in progress",onClose:m}):null,r?(0,s.jsx)(R,{error:r}):null,n||r?null:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.xuv,{children:[(0,s.jsx)(O.m,{className:"mb-4",items:[{title:"Add systems",href:"",onClick:e=>{e.preventDefault(),m()}},{title:"Authenticate Okta Scanner"}]}),(0,s.jsx)(c.xvT,{children:"To use the scanner to inventory systems in Okta, you must first authenticate to your Okta account by providing the following information:"})]}),(0,s.jsxs)(c.Kqy,{children:[(0,s.jsx)(A.j0,{name:"orgUrl",label:"Domain",tooltip:"The URL for your organization's account on Okta"}),(0,s.jsx)(A.j0,{name:"token",label:"Okta token",type:"password",tooltip:"The token generated by Okta for your account."})]})]}),n?null:(0,s.jsxs)(c.Ugi,{children:[(0,s.jsx)(c.wpx,{onClick:m,children:"Cancel"}),(0,s.jsx)(c.wpx,{htmlType:"submit",type:"primary",disabled:!i||!t,loading:x,"data-testid":"submit-btn",children:"Save and continue"})]})]})})}})},J=n(46628),$=n(31883),V=()=>{let e=(0,a.T)(),t=(0,c.pmc)(),[n]=(0,b.J9)(),[r,{data:l}]=(0,b.KW)(),[d,u]=(0,i.useState)(),[m,h]=(0,i.useState)(!1),x=e=>{u((0,q.nU)(e,{status:500,message:"Our system encountered a problem while scanning your infrastructure."}))};(0,i.useEffect)(()=>{(async()=>{let{error:e}=await n();h(!(e&&(0,$.Bw)(e)&&404===e.status));let t=await r({classify:!0});(0,q.D4)(t)&&x(t.error)})()},[r,n]),(0,i.useEffect)(()=>{(async()=>{if(l){let{data:s}=await n(),i=m?(null==s?void 0:s.added_systems)||[]:l.systems;t((0,J.t5)("Your scan was successfully completed, with ".concat(i.length," new systems detected!"))),e((0,o.un)(i)),e((0,o.sz)())}})()},[l,t,e,m,n]);let g=()=>{e((0,o.sz)(2))};return d?(0,s.jsxs)(c.Kqy,{children:[(0,s.jsx)(R,{error:d}),(0,s.jsx)(c.xuv,{children:(0,s.jsx)(c.wpx,{onClick:g,"data-testid":"cancel-btn",children:"Cancel"})})]}):(0,s.jsx)(Z,{title:"Infrastructure scanning in progress",onClose:g})},G=()=>{let e=(0,a.C)(o.Ll);return(0,s.jsxs)(c.xuv,{w:"40%",children:[e===f.GC.AWS?(0,s.jsx)(P,{}):null,e===f.GC.OKTA?(0,s.jsx)(X,{}):null,e===w.D.DATA_FLOW?(0,s.jsx)(V,{}):null]})},Q=n(83265),H=n(46238);let ee=()=>{var e,t;let n=(0,a.T)(),s=e=>{n((0,o.nD)(e)),n((0,o.sz)())},[r]=(0,Q.vz)(),[l]=(0,Q.$f)(),{data:d,isLoading:u}=(0,Q.GQ)(Q.Av),[m,h]=(0,i.useState)(!1);(0,i.useEffect)(()=>{!u&&!m&&(null==d?void 0:d.name)&&(null==d?void 0:d.description)&&n((0,o.sz)())},[u,d,n,m]);let x=(0,c.pmc)();return(0,k.TA)({initialValues:{name:null!==(e=null==d?void 0:d.name)&&void 0!==e?e:"",description:null!==(t=null==d?void 0:d.description)&&void 0!==t?t:""},onSubmit:async e=>{var t,n,i;h(!0);let a={name:null!==(t=e.name)&&void 0!==t?t:null==d?void 0:d.name,description:null!==(n=e.description)&&void 0!==n?n:null==d?void 0:d.description,fides_key:null!==(i=null==d?void 0:d.fides_key)&&void 0!==i?i:Q.Av,organization_fides_key:Q.Av};if(d){let e=await l(a);if((0,q.D4)(e)){x({status:"error",description:(0,q.e$)(e.error)});return}x.closeAll(),s(a)}else{let e=await r(a);if((0,q.D4)(e)){x({status:"error",description:(0,q.e$)(e.error)});return}x.closeAll(),s(a)}},enableReinitialize:!0,validate:e=>{let t={};return e.name||(t.name="Organization name is required"),e.description||(t.description="Organization description is required"),t}})};var et=()=>{let{errors:e,handleBlur:t,handleChange:n,handleSubmit:i,touched:a,values:r,isSubmitting:l}=ee();return(0,s.jsx)(c.m$N.form,{onSubmit:i,w:"40%","data-testid":"organization-info-form",children:(0,s.jsxs)(c.Kqy,{spacing:10,children:[(0,s.jsx)(c.X6q,{as:"h3",size:"lg",children:"Create your Organization"}),(0,s.jsx)("div",{children:"Provide your organization information. This information is used to configure your organization in Fides for data map reporting purposes."}),(0,s.jsx)(c.Kqy,{children:(0,s.jsxs)(c.NIc,{children:[(0,s.jsxs)(c.Kqy,{direction:"row",mb:5,justifyContent:"flex-end",children:[(0,s.jsx)(c.lXp,{w:"100%",children:"Organization name"}),(0,s.jsx)(c.IIB,{type:"text",id:"name",name:"name",focusBorderColor:"gray.700",onChange:n,onBlur:t,value:r.name,isInvalid:a.name&&!!e.name,minW:"65%",w:"65%","data-testid":"input-name"}),(0,s.jsx)(H.b,{label:"The legal name of your organization"})]}),(0,s.jsxs)(c.Kqy,{direction:"row",justifyContent:"flex-end",children:[(0,s.jsx)(c.lXp,{w:"100%",children:"Description"}),(0,s.jsx)(c.IIB,{type:"text",id:"description",name:"description",focusBorderColor:"gray.700",onChange:n,onBlur:t,value:r.description,isInvalid:a.description&&!!e.description,minW:"65%",w:"65%","data-testid":"input-description"}),(0,s.jsx)(H.b,{label:'An explanation of the type of organization and primary activity. For example "Acme Inc. is an e-commerce company that sells scarves."'})]})]})}),(0,s.jsx)(c.wpx,{type:"primary",htmlType:"submit",disabled:!r.name||!r.description,loading:l,"data-testid":"submit-btn",children:"Save and continue"})]})})},en=e=>{let{allColumns:t,selectedColumns:n,onChange:a}=e,r=(0,i.useMemo)(()=>{let e=new Map;return t.forEach(t=>e.set(t.name,!!n.find(e=>e.name===t.name))),e},[t,n]),l=()=>{r.forEach((e,t)=>r.set(t,!1)),a([])},o=e=>{var n;let s=null!==(n=r.get(e.name))&&void 0!==n&&n;r.set(e.name,!s),a(t.filter(e=>r.get(e.name)))};return(0,s.jsx)(c.v2r,{children:e=>{let{onClose:i}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.j2t,{as:c.wpx,icon:(0,s.jsx)(c.mCO,{}),fontWeight:"normal","data-testid":"column-dropdown",children:"Columns"}),(0,s.jsx)(c.qyq,{children:(0,s.jsxs)(c.xuv,{px:2,children:[(0,s.jsxs)(c.xuv,{display:"flex",justifyContent:"space-between",mb:2,children:[(0,s.jsx)(c.wpx,{size:"small",onClick:l,"data-testid":"column-clear-btn",children:"Clear"}),(0,s.jsx)(c.wpx,{type:"primary",size:"small",onClick:i,"data-testid":"column-done-btn",children:"Done"})]}),(0,s.jsx)(c.cOn,{colorScheme:"complimentary",children:(0,s.jsx)(c.Kqy,{children:t.map(e=>{let t=n.filter(t=>t.name===e.name).length>0;return(0,s.jsx)(c.XZJ,{id:e.name,_hover:{bg:"gray.100"},isChecked:t,onChange:()=>o(e),"data-testid":"checkbox-".concat(e.name),children:e.name},e.name)})})})]})})]})}})},es=n(16220);let ei=(e,t)=>t.split(".").reduce((e,t)=>e?e[t]:void 0,e),ea=e=>{let{system:t,attribute:n}=e;if("name"===n)return(0,s.jsx)("label",{htmlFor:"checkbox-".concat(t.fides_key),children:t.name});if("fidesctl_meta.resource_id"===n){var i,a;return(0,s.jsx)(c.xuv,{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",title:(null===(i=t.fidesctl_meta)||void 0===i?void 0:i.resource_id)||"",children:null===(a=t.fidesctl_meta)||void 0===a?void 0:a.resource_id})}return(0,s.jsx)(s.Fragment,{children:ei(t,n)})},er=e=>{let{allSystems:t,checked:n,onChange:i,columns:a,tableHeadProps:r}=e,l=e=>{n.indexOf(e)>=0?i(n.filter(t=>t.fides_key!==e.fides_key)):i([...n,e])},o=t.length===n.length;return 0===a.length?(0,s.jsx)(c.xvT,{children:"No columns selected to display"}):(0,s.jsxs)(c.iA_,{size:"sm",sx:{tableLayout:"fixed"},children:[(0,s.jsx)(c.hrZ,{...r,children:(0,s.jsxs)(c.Tr,{children:[(0,s.jsx)(c.Th,{width:"15px",children:(0,s.jsx)(c.XZJ,{colorScheme:"complimentary",title:"Select All",isChecked:o,onChange:e=>{e.target.checked?i(t):i([])},"data-testid":"select-all"})}),a.map(e=>(0,s.jsx)(c.Th,{children:e.name},e.attribute))]})}),(0,s.jsx)(c.p3B,{children:t.map(e=>(0,s.jsxs)(c.Tr,{children:[(0,s.jsx)(c.Td,{children:(0,s.jsx)(c.XZJ,{colorScheme:"complimentary",value:e.fides_key,isChecked:n.indexOf(e)>=0,onChange:()=>l(e),"data-testid":"checkbox-".concat(e.fides_key)})}),a.map(t=>(0,s.jsx)(c.Td,{children:(0,s.jsx)(ea,{system:e,attribute:t.attribute})},t.attribute))]},e.fides_key))})]})};var el=n(1315);let eo=[{name:"Name",attribute:"name"},{name:"System type",attribute:"system_type"},{name:"Resource ID",attribute:"fidesctl_meta.resource_id"}];var ec=()=>{let e=(0,a.C)(o.j4),t=(0,a.T)(),n=(0,m.useRouter)(),{systemOrDatamapRoute:r}=(0,es.V)(),{isOpen:l,onOpen:d,onClose:u}=(0,c.qY0)(),[h]=(0,el.dB)(),[x,g]=(0,i.useState)(e),[p,y]=(0,i.useState)(eo),{handleError:f}=(0,z.HK)(),j=e=>{n.push(e).then(()=>{t((0,o.mc)())})},v=async()=>{let e=await h(x);return(0,q.D4)(e)?f(e.error):j(r)},b=()=>{t((0,o.sz)(2))},C=(0,s.jsxs)(c.xvT,{color:"gray.500",mb:3,children:["You’re registering ",x.length," of ",e.length," systems available. Do you want to continue with registration or cancel and register all systems now?"]});return(0,s.jsxs)(c.xuv,{maxW:"full",children:[(0,s.jsxs)(c.Kqy,{spacing:10,"data-testid":"scan-results",children:[(0,s.jsx)(O.m,{className:"mb-4",items:[{title:"Add systems",href:"",onClick:e=>{e.preventDefault(),b()}},{title:"Authenticate"},{title:"Scan results"}]}),0===e.length?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.xvT,{"data-testid":"no-results",children:"No results were found for your infrastructure scan."}),(0,s.jsx)(c.Ugi,{children:(0,s.jsx)(c.wpx,{onClick:b,"data-testid":"back-btn",children:"Back"})})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.xuv,{children:[(0,s.jsx)(c.xvT,{children:"Below are the results of your infrastructure scan. To continue, select the systems you would like registered in your data map and reports."}),(0,s.jsx)(c.xuv,{display:"flex",justifyContent:"end",children:(0,s.jsx)(en,{allColumns:eo,selectedColumns:p,onChange:y})})]}),(0,s.jsx)(er,{allSystems:e,checked:x,onChange:g,columns:p}),(0,s.jsxs)(c.Ugi,{children:[(0,s.jsx)(c.wpx,{onClick:b,children:"Back"}),(0,s.jsx)(c.wpx,{onClick:()=>{e.length>x.length?d():v()},type:"primary",disabled:0===x.length,"data-testid":"register-btn",children:"Register selected systems"})]})]})]}),(0,s.jsx)(E.Z,{title:"Warning",message:C,handleConfirm:v,isOpen:l,onClose:u})]})},ed=()=>{let e=(0,a.C)(o.xx);return(0,s.jsx)(c.Kqy,{direction:["column","row"],bg:"white",children:(0,s.jsxs)(c.xuv,{display:"flex",justifyContent:"flex-start",w:"100%",children:[1===e?(0,s.jsx)(et,{}):null,2===e?(0,s.jsx)(S,{}):null,3===e?(0,s.jsx)(G,{}):null,4===e?(0,s.jsx)(c.xuv,{pr:10,children:(0,s.jsx)(ec,{})}):null]})})},eu=()=>{let e=(0,a.T)();return(0,i.useEffect)(()=>{e((0,o.sz)(2))},[e]),(0,s.jsxs)(r.Z,{title:"Add systems",children:[(0,s.jsx)(l.Z,{heading:"Add systems"}),(0,s.jsx)(ed,{})]})}},31883:function(e,t,n){"use strict";n.d(t,{Bw:function(){return s.Bw},D4:function(){return s.D4}});var s=n(19043)},91507:function(e){e.exports={container:"CalloutNavCard_container__DXPJb",card:"CalloutNavCard_card__q_XX6"}}},function(e){e.O(0,[431,1841,2888,9774,179],function(){return e(e.s=74245)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3709],{54727:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/configure",function(){return n(47672)}])},77213:function(e,s,n){"use strict";n.d(s,{Z:function(){return p}});var t=n(24246),i=n(96306),a=n(88038),r=n.n(a),l=n(86677);n(27378);var o=n(25980),c=n(90867),u=n(42478),d=n(77830),g=()=>{let e=(0,l.useRouter)();return(0,t.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,t.jsxs)(i.xuv,{children:[(0,t.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,t.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,t.jsx)(i.wpx,{onClick:()=>{e.push(d.AD)},children:"Configure"})]}),(0,t.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:s,title:n,padded:a=!0,mainProps:d}=e,p=(0,o.hz)(),x=(0,l.useRouter)(),h="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,f=!(p.flags.messagingConfiguration&&h),{data:m}=(0,u.JE)(void 0,{skip:f}),{data:j}=(0,c.PW)(void 0,{skip:f}),C=p.flags.messagingConfiguration&&(!m||!j)&&h;return(0,t.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,t.jsxs)(r(),{children:[(0,t.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,t.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,t.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,t.jsxs)(i.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[C?(0,t.jsx)(g,{}):null,s]})]})}},58754:function(e,s,n){"use strict";var t=n(24246),i=n(96306),a=n(70788);s.Z=e=>{let{heading:s,breadcrumbItems:n,isSticky:r=!0,children:l,rightContent:o,style:c,...u}=e;return(0,t.jsxs)("div",{...u,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,t.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof s?(0,t.jsx)(i.lQT,{className:n||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:s}):s,o&&(0,t.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,t.jsx)(a.m,{className:l?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),l]})}},70788:function(e,s,n){"use strict";n.d(s,{m:function(){return c}});var t=n(24246),i=n(96306),a=n(79894),r=n.n(a),l=n(27378);let{Text:o}=i.AntTypography,c=e=>{let{items:s,...n}=e,a=(0,l.useMemo)(()=>null==s?void 0:s.map((e,n)=>{let a=n===s.length-1,l={...e},c=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,t.jsx)(o,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,id:a?"breadcrumb-current-page":void 0,children:l.title})),c)?l.title=(0,t.jsx)(i.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,t.jsx)(r(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[s]);return(0,t.jsx)(i.zrq,{items:a,...n})}},6675:function(e,s,n){"use strict";n.d(s,{ZS:function(){return l},a4:function(){return a}});var t=n(3228);let i=n(78780).u.injectEndpoints({endpoints:e=>({getPurposes:e.query({query:()=>"purposes"})})}),{useGetPurposesQuery:a}=i,r={purposes:{},special_purposes:{}},l=(0,t.P1)(i.endpoints.getPurposes.select(),e=>{let{data:s}=e;return s||r})},48347:function(e,s,n){"use strict";n.d(s,{W:function(){return o},m:function(){return c}});var t=n(24246),i=n(96306),a=n(32885);let{Text:r,Title:l}=i.AntTypography,o=()=>{let{isOpen:e,onOpen:s,onClose:n}=(0,i.qY0)();return{isOpen:e,onOpen:s,onClose:n}},c=e=>{let{isOpen:s,onClose:n,fidesKey:o}=e,{data:c,isLoading:u}=(0,a.ho)(o),d=(e,s)=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l,{level:5,children:e}),(null==s?void 0:s.length)?(0,t.jsx)("div",{children:(0,t.jsx)(i.vyj,{size:[0,2],wrap:!0,children:null==s?void 0:s.map(e=>(0,t.jsx)(i.j8w,{children:e},e))})}):(0,t.jsxs)(r,{italic:!0,children:["no known ",e.toLowerCase()]})]});return(0,t.jsxs)(i.u_l,{isOpen:s,onClose:n,size:"xxl",returnFocusOnClose:!1,isCentered:!0,children:[(0,t.jsx)(i.ZAr,{}),(0,t.jsxs)(i.hzk,{maxWidth:"800px",children:[(0,t.jsx)(i.xBx,{children:c?null==c?void 0:c.name:"Vendor"}),(0,t.jsx)(i.fef,{children:u?(0,t.jsx)(i.jqI,{className:"h-80 w-full",align:"center",justify:"center",children:(0,t.jsx)(i.$jN,{})}):!!c&&(0,t.jsxs)(i.AntTypography,{children:[(0,t.jsx)(l,{level:5,children:"Purposes"}),Object.entries(c.purposes||{}).length>0?(0,t.jsx)(i.UQy,{allowMultiple:!0,children:Object.entries(c.purposes).map((e,s)=>{let[n]=e;return(0,t.jsx)(i.Qdk,{children:e=>{let{isExpanded:s}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(i.KFZ,{backgroundColor:s?"gray.50":"unset",children:[(0,t.jsx)(i.xuv,{flex:"1",textAlign:"left",children:n}),(0,t.jsx)(i.XEm,{})]}),(0,t.jsxs)(i.Hk3,{backgroundColor:"gray.50",children:[(0,t.jsx)(i.jqI,{className:"my-4",vertical:!0,children:d("Data uses",c.purposes[n].data_uses)}),(0,t.jsx)(i.jqI,{className:"my-4",vertical:!0,children:d("Legal basis",c.purposes[n].legal_bases)})]})]})}},s)})}):(0,t.jsx)(r,{italic:!0,children:"no known purposes"}),(0,t.jsx)("div",{className:"my-4",children:d("Features",c.features)}),(0,t.jsx)("div",{className:"my-4",children:d("Data categories",c.data_categories)})]})}),(0,t.jsxs)(i.mzw,{children:[(0,t.jsx)(i.wpx,{size:"small",onClick:n,children:"Close"}),(0,t.jsx)(i.LZC,{})]})]})]})}},42478:function(e,s,n){"use strict";n.d(s,{FU:function(){return c},JE:function(){return i},Ki:function(){return d},SU:function(){return g},W:function(){return p},h9:function(){return a},jc:function(){return t},qt:function(){return o},sn:function(){return u}});let{useGetEmailInviteStatusQuery:t,useGetActiveMessagingProviderQuery:i,useCreateMessagingConfigurationMutation:a,useCreateMessagingConfigurationSecretsMutation:r,useGetMessagingConfigurationDetailsQuery:l,useGetMessagingConfigurationsQuery:o,useGetMessagingConfigurationByKeyQuery:c,useUpdateMessagingConfigurationByKeyMutation:u,useUpdateMessagingConfigurationSecretsByKeyMutation:d,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:p}=n(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,s,n,t)=>{let i=await t({url:"messaging/default/active"});return i.error&&404===i.error.status?{data:null}:i},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},47672:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return P}});var t=n(24246),i=n(96306),a=n(27378),r=n(77213),l=n(58754),o=n(92222),c=n(59003),u=n(25980),d=n(47935),g=n(86677);let p=(e,s)=>{let n=e.filter(e=>e.isChecked);return n.length>0?"".concat(s,"=").concat(n.map(e=>e.value).join("&".concat(s,"="))):void 0},x=e=>{let{value:s,displayText:n,isChecked:a,onCheckboxChange:r}=e;return(0,t.jsx)(i.XZJ,{value:s,height:"20px",mb:"25px",isChecked:a,onChange:e=>{let{target:n}=e;r(s,n.checked)},_focusWithin:{bg:"gray.100"},colorScheme:"complimentary",children:(0,t.jsx)(i.xvT,{fontSize:"sm",lineHeight:5,textOverflow:"ellipsis",overflow:"hidden",children:n})},s)},h=e=>{let{options:s,header:n,onCheckboxChange:r,columns:l=3,numDefaultOptions:o=15}=e,[c,u]=(0,a.useState)(!1),d=c?s:s.slice(0,o),g=s.length>o;return(0,t.jsxs)(i.Qdk,{border:"0px",padding:"12px 8px 8px 12px",children:[(0,t.jsx)(i.X6q,{height:"56px",children:(0,t.jsxs)(i.KFZ,{height:"100%",children:[(0,t.jsx)(i.xuv,{flex:"1",alignItems:"center",justifyContent:"center",textAlign:"left",fontWeight:600,children:n}),(0,t.jsx)(i.XEm,{})]})}),(0,t.jsxs)(i.Hk3,{id:"panel-".concat(n),children:[(0,t.jsx)(i.MIq,{columns:l,children:d.map(e=>(0,t.jsx)(x,{...e,onCheckboxChange:r},e.value))}),!c&&g?(0,t.jsx)(i.wpx,{type:"text",onClick:()=>{u(!0)},children:"View more"}):null,c&&g?(0,t.jsx)(i.wpx,{type:"text",onClick:()=>{u(!1)},children:"View less"}):null]})]})},f=e=>{let{heading:s,children:n}=e;return(0,t.jsxs)(i.xuv,{padding:"12px 8px 8px 12px",maxHeight:600,children:[s?(0,t.jsx)(i.X6q,{size:"md",lineHeight:6,fontWeight:"bold",mb:2,children:s}):null,n]})},m=e=>{let{resetFilters:s,isOpen:n,onClose:a,children:r,...l}=e;return(0,t.jsxs)(i.u_l,{isOpen:n,onClose:a,isCentered:!0,size:"2xl",...l,children:[(0,t.jsx)(i.ZAr,{}),(0,t.jsxs)(i.hzk,{children:[(0,t.jsx)(i.xBx,{children:"Filters"}),(0,t.jsx)(i.olH,{}),(0,t.jsx)(i.izJ,{}),(0,t.jsx)(i.fef,{maxH:"85vh",padding:"0px",overflowX:"auto",style:{scrollbarGutter:"stable"},children:r}),(0,t.jsx)(i.mzw,{children:(0,t.jsxs)(i.xuv,{display:"flex",justifyContent:"space-between",width:"100%",children:[(0,t.jsx)(i.wpx,{onClick:s,className:"mr-3 grow",children:"Reset filters"}),(0,t.jsx)(i.wpx,{type:"primary",onClick:a,className:"grow",children:"Done"})]})})]})]})};var j=n(77830),C=n(23923),y=n(16134),v=n(6675),b=n(28079);let k=()=>{let{isOpen:e,onClose:s,onOpen:n}=(0,i.qY0)();(0,b.fd)();let t=(0,y.C)(b.U3);(0,v.a4)();let r=(0,y.C)(v.ZS),[l,o]=(0,a.useState)([]),[c,u]=(0,a.useState)([]),[d,g]=(0,a.useState)([{displayText:"Consent",value:"Consent",isChecked:!1},{displayText:"Legitimate Interest",value:"Legitimate interests",isChecked:!1}]),[p,x]=(0,a.useState)([{displayText:"Advertising",value:"advertising",isChecked:!1},{displayText:"Analytics",value:"analytics",isChecked:!1},{displayText:"Functional",value:"functional",isChecked:!1},{displayText:"Essential",value:"essential",isChecked:!1}]);(0,a.useEffect)(()=>{0===c.length&&u(t.map(e=>({value:e.fides_key,displayText:e.name||e.fides_key,isChecked:!1})))},[t,c,u]),(0,a.useEffect)(()=>{0===l.length&&o([...Object.entries(r.purposes).map(e=>({value:"normal.".concat(e[0]),displayText:e[1].name,isChecked:!1})),...Object.entries(r.special_purposes).map(e=>({value:"special.".concat(e[0]),displayText:e[1].name,isChecked:!1}))])},[r,l,u]);let h=(e,s,n,t)=>{t(n.map(n=>n.value===e?{...n,isChecked:s}:n))};return{isOpen:e,onClose:s,onOpen:n,resetFilters:()=>{u(e=>e.map(e=>({...e,isChecked:!1}))),g(e=>e.map(e=>({...e,isChecked:!1}))),o(e=>e.map(e=>({...e,isChecked:!1}))),x(e=>e.map(e=>({...e,isChecked:!1})))},purposeOptions:l,onPurposeChange:(e,s)=>{h(e,s,l,o)},dataUseOptions:c,onDataUseChange:(e,s)=>{h(e,s,c,u)},legalBasisOptions:d,onLegalBasisChange:(e,s)=>{h(e,s,d,g)},consentCategoryOptions:p,onConsentCategoryChange:(e,s)=>{h(e,s,p,x)}}},w=e=>{let{isOpen:s,isTcfEnabled:n,onClose:a,resetFilters:r,purposeOptions:l,onPurposeChange:o,dataUseOptions:c,onDataUseChange:u,legalBasisOptions:d,onLegalBasisChange:g,consentCategoryOptions:p,onConsentCategoryChange:x}=e;return(0,t.jsx)(m,{isOpen:s,onClose:a,resetFilters:r,children:(0,t.jsx)(i.UQy,{children:(0,t.jsxs)(f,{children:[n?(0,t.jsx)(h,{options:l,onCheckboxChange:o,header:"TCF purposes",columns:1,numDefaultOptions:5}):null,(0,t.jsx)(h,{options:c,onCheckboxChange:u,header:"Data uses"}),n?(0,t.jsx)(h,{options:d,onCheckboxChange:g,header:"Legal basis"}):null,n?null:(0,t.jsx)(h,{options:p,onCheckboxChange:x,header:"Consent categories"})]})})})};var T=n(48347),_=n(32885);let S=(0,o.Cl)(),M={items:[],total:0,page:1,size:25,pages:1},q=()=>{let{tcf:e,dictionaryService:s}=(0,u.hz)(),{isLoading:n}=(0,_.x8)(),{isOpen:r,onOpen:l,onClose:x}=(0,T.W)(),h=(0,g.useRouter)(),[f,m]=(0,a.useState)(),{isOpen:y,onOpen:v,onClose:b,resetFilters:q,purposeOptions:O,onPurposeChange:P,dataUseOptions:E,onDataUseChange:F,legalBasisOptions:z,onLegalBasisChange:N,consentCategoryOptions:R,onConsentCategoryChange:I}=k(),A=(0,a.useMemo)(()=>p(E,"data_uses"),[E]),L=(0,a.useMemo)(()=>p(z,"legal_bases"),[z]),B=(0,a.useMemo)(()=>p(O.filter(e=>e.value.includes("normal")).map(e=>({...e,value:e.value.split(".")[1]})),"purposes"),[O]),U=(0,a.useMemo)(()=>p(O.filter(e=>e.value.includes("special")).map(e=>({...e,value:e.value.split(".")[1]})),"special_purposes"),[O]),Z=(0,a.useMemo)(()=>p(R,"consent_category"),[R]),{PAGE_SIZES:D,pageSize:V,setPageSize:W,onPreviousPageClick:H,isPreviousPageDisabled:K,onNextPageClick:X,isNextPageDisabled:Q,startRange:G,endRange:J,pageIndex:Y,setTotalPages:$,resetPageIndexToDefault:ee}=(0,d.oi)(),[es,en]=(0,a.useState)(),et=(0,a.useCallback)(e=>{ee(),en(e)},[ee,en]),{isFetching:ei,isLoading:ea,data:er}=(0,_.de)({pageIndex:Y,pageSize:V,dataUses:A,search:es,legalBasis:L,purposes:B,specialPurposes:U,consentCategories:Z}),{items:el,total:eo,pages:ec}=(0,a.useMemo)(()=>er||M,[er]);(0,a.useEffect)(()=>{$(ec)},[ec,$]);let eu=(0,a.useMemo)(()=>[S.accessor(e=>e.name,{id:"name",cell:e=>(0,t.jsx)(d.G3,{value:e.getValue()}),header:e=>(0,t.jsx)(d.Rr,{value:"Vendor",...e})}),S.accessor(e=>e.data_uses,{id:"tcf_purpose",cell:e=>(0,t.jsx)(d.CI,{plSuffix:"purposes",singSuffix:"purpose",count:e.getValue()}),header:e=>(0,t.jsx)(d.Rr,{value:"TCF purpose",...e})}),S.accessor(e=>e.data_uses,{id:"data_uses",cell:e=>(0,t.jsx)(d.CI,{plSuffix:"data uses",singSuffix:"data use",count:e.getValue()}),header:e=>(0,t.jsx)(d.Rr,{value:"Data use",...e})}),S.accessor(e=>e.legal_bases,{id:"legal_bases",cell:e=>(0,t.jsx)(d.CI,{plSuffix:"bases",singSuffix:"basis",count:e.getValue()}),header:e=>(0,t.jsx)(d.Rr,{value:"Legal basis",...e})}),S.accessor(e=>e.consent_categories,{id:"consent_categories",cell:e=>(0,t.jsx)(d.CI,{plSuffix:"categories",singSuffix:"category",count:e.getValue()}),header:e=>(0,t.jsx)(d.Rr,{value:"Categories",...e})}),S.accessor(e=>e.cookies,{id:"cookies",cell:e=>(0,t.jsx)(d.CI,{plSuffix:"cookies",singSuffix:"cookie",count:e.getValue()}),header:e=>(0,t.jsx)(d.Rr,{value:"Cookies",...e})})],[]),ed=(0,c.b7)({columns:eu,data:el,state:{columnVisibility:{tcf_purpose:e,data_uses:e,legal_bases:e,consent_categories:!e,cookies:!e}},getCoreRowModel:(0,o.sC)(),columnResizeMode:"onChange",enableColumnResizing:!0});return ea||n?(0,t.jsx)(d.I4,{rowHeight:36,numRows:15}):(0,t.jsxs)(i.kCb,{flex:1,direction:"column",overflow:"auto",children:[r&&f?(0,t.jsx)(T.m,{isOpen:r,fidesKey:f,onClose:x}):null,(0,t.jsxs)(d.Q$,{children:[(0,t.jsx)(d.HO,{globalFilter:es,setGlobalFilter:et,placeholder:"Search"}),(0,t.jsx)(w,{isOpen:y,isTcfEnabled:e,onClose:b,resetFilters:q,purposeOptions:O,onPurposeChange:P,dataUseOptions:E,onDataUseChange:F,legalBasisOptions:z,onLegalBasisChange:N,consentCategoryOptions:R,onConsentCategoryChange:I}),(0,t.jsxs)(i.Ugi,{alignItems:"center",spacing:2,children:[(0,t.jsx)(C.Z,{buttonLabel:"Add vendors",onButtonClick:s?()=>{h.push(j.Gg)}:void 0}),(0,t.jsx)(i.wpx,{onClick:v,"data-testid":"filter-multiple-systems-btn",children:"Filter"})]})]}),(0,t.jsx)(d.ZK,{tableInstance:ed,onRowClick:e=>{m(e.fides_key),l()}}),(0,t.jsx)(d.s8,{totalRows:eo||0,pageSizes:D,setPageSize:W,onPreviousPageClick:H,isPreviousPageDisabled:K||ei,onNextPageClick:X,isNextPageDisabled:Q||ei,startRange:G,endRange:J})]})},{Text:O}=i.AntTypography;var P=()=>(0,t.jsxs)(r.Z,{title:"Vendors",children:[(0,t.jsx)(l.Z,{heading:"Vendors",children:(0,t.jsx)(O,{className:"block w-1/2",children:"Use the table below to manage your vendors. Modify the legal basis for a vendor if permitted and view and group your views by applying different filters"})}),(0,t.jsx)(q,{})]})}},function(e){e.O(0,[401,3923,2888,9774,179],function(){return e(e.s=54727)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1285],{63641:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/properties",function(){return i(63063)}])},63063:function(e,n,i){"use strict";i.r(n);var r=i(24246),s=i(96306),t=i(77213),o=i(58754),a=i(25783);n.default=()=>(0,r.jsxs)(t.Z,{title:"Properties",children:[(0,r.jsx)(o.Z,{heading:"Properties",children:(0,r.jsx)(s.xvT,{fontSize:"sm",width:{base:"100%",lg:"60%"},children:"Review and manage your properties below. Properties are the locations you have configured for consent management such as a website or mobile app."})}),(0,r.jsx)(a.V,{})]})}},function(e){e.O(0,[79,2888,9774,179],function(){return e(e.s=63641)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1285],{63641:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/properties",function(){return i(63063)}])},63063:function(e,n,i){"use strict";i.r(n);var r=i(24246),s=i(96306),t=i(77213),o=i(58754),a=i(25783);n.default=()=>(0,r.jsxs)(t.Z,{title:"Properties",children:[(0,r.jsx)(o.Z,{heading:"Properties",children:(0,r.jsx)(s.xvT,{fontSize:"sm",width:{base:"100%",lg:"60%"},children:"Review and manage your properties below. Properties are the locations you have configured for consent management such as a website or mobile app."})}),(0,r.jsx)(a.V,{})]})}},function(e){e.O(0,[2040,5783,2888,9774,179],function(){return e(e.s=63641)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9851],{66393:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent",function(){return i(78220)}])},77213:function(e,n,i){"use strict";i.d(n,{Z:function(){return f}});var t=i(24246),s=i(96306),r=i(88038),o=i.n(r),a=i(86677);i(27378);var g=i(25980),u=i(90867),c=i(42478),d=i(77830),l=()=>{let e=(0,a.useRouter)();return(0,t.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,t.jsxs)(s.xuv,{children:[(0,t.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,t.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,t.jsx)(s.wpx,{onClick:()=>{e.push(d.AD)},children:"Configure"})]}),(0,t.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},f=e=>{let{children:n,title:i,padded:r=!0,mainProps:d}=e,f=(0,g.hz)(),y=(0,a.useRouter)(),m="/privacy-requests"===y.pathname||"/datastore-connection"===y.pathname,C=!(f.flags.messagingConfiguration&&m),{data:p}=(0,c.JE)(void 0,{skip:C}),{data:v}=(0,u.PW)(void 0,{skip:C}),h=f.flags.messagingConfiguration&&(!p||!v)&&m;return(0,t.jsxs)(s.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,t.jsxs)(o(),{children:[(0,t.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,t.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,t.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,t.jsxs)(s.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[h?(0,t.jsx)(l,{}):null,n]})]})}},42478:function(e,n,i){"use strict";i.d(n,{FU:function(){return u},JE:function(){return s},Ki:function(){return d},SU:function(){return l},W:function(){return f},h9:function(){return r},jc:function(){return t},qt:function(){return g},sn:function(){return c}});let{useGetEmailInviteStatusQuery:t,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:r,useCreateMessagingConfigurationSecretsMutation:o,useGetMessagingConfigurationDetailsQuery:a,useGetMessagingConfigurationsQuery:g,useGetMessagingConfigurationByKeyQuery:u,useUpdateMessagingConfigurationByKeyMutation:c,useUpdateMessagingConfigurationSecretsByKeyMutation:d,useCreateTestConnectionMessageMutation:l,useDeleteMessagingConfigurationByKeyMutation:f}=i(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,n,i,t)=>{let s=await t({url:"messaging/default/active"});return s.error&&404===s.error.status?{data:null}:s},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},78220:function(e,n,i){"use strict";i.r(n);var t=i(24246),s=i(96306),r=i(86677),o=i(27378),a=i(77213),g=i(77830);n.default=()=>{let e=(0,r.useRouter)();return(0,o.useEffect)(()=>{e.push(g.IT)},[e]),(0,t.jsx)(a.Z,{title:"Consent",children:(0,t.jsx)(s.M5Y,{children:(0,t.jsx)(s.$jN,{})})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=66393)}),_N_E=e.O()}]);
@@ -1 +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,4164,1099,3620,3855,2888,9774,179],function(){return e(e.s=92812)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3296],{92812:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]",function(){return n(93251)}])},93251:function(e,t,n){"use strict";n.r(t);var r=n(24246),c=n(86677),o=n(18225),s=n(77213),a=n(77830),u=n(58754),l=n(25077),i=n(94780),d=n(1315);t.default=()=>{var e,t;let{query:n}=(0,c.useRouter)(),_=n.systemId,f=n.projectUrn,m=n.resourceUrn,{data:p,isLoading:h}=(0,d.rn)(_),j=(0,c.useRouter)(),k=null!==(e=(0,i.X5)(m,"".concat(a.mX,"/").concat(_,"/projects")))&&void 0!==e?e:[];return h?(0,r.jsx)(o.Z,{}):(0,r.jsxs)(s.Z,{title:"Data catalog",children:[(0,r.jsx)(u.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:a.mX},{title:null!==(t=null==p?void 0:p.name)&&void 0!==t?t:null==p?void 0:p.fides_key,href:a.mX},...k]}),(0,r.jsx)(l.Z,{resourceUrn:m,onRowClick:e=>j.push("".concat(a.mX,"/").concat(p.fides_key,"/projects/").concat(f,"/").concat(e.urn))})]})}}},function(e){e.O(0,[431,8765,9278,5163,1841,409,6882,3855,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([[165],{21865:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/projects",function(){return a(98791)}])},79609:function(e,t,a){"use strict";a.d(t,{N4:function(){return n},UG:function(){return o},xw:function(){return i}});var s=a(54427);let{useGetCatalogSystemsQuery:o,useGetCatalogProjectsQuery:i,useGetCatalogDatasetsQuery:n}=a(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,s.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},98791:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return S}});var s=a(24246),o=a(86677),i=a(18225),n=a(77213),r=a(77830),l=a(58754),u=a(92222),d=a(59003),c=a(96306),g=a(27378),m=a(47935),p=a(72625),f=a(89200),x=a(5945),h=a(79609),j=a(99763),y=a(28976),C=a(8151);let w={items:[],total:0,page:1,size:50,pages:1},_=()=>(0,s.jsx)(c.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,s.jsx)(c.gCW,{children:(0,s.jsx)(c.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"})})}),v=(0,u.Cl)();var R=e=>{let{systemKey:t,monitorConfigIds:a}=e,[i,n]=(0,g.useState)({}),{PAGE_SIZES:l,pageSize:c,setPageSize:R,onPreviousPageClick:b,isPreviousPageDisabled:S,onNextPageClick:P,isNextPageDisabled:E,startRange:k,endRange:D,pageIndex:N,setTotalPages:T}=(0,m.oi)(),{isFetching:M,isLoading:z,data:I}=(0,h.xw)({page:N,size:c,monitor_config_ids:a}),Z=(0,o.useRouter)(),{items:q,total:G,pages:V}=(0,g.useMemo)(()=>null!=I?I:w,[I]);(0,g.useEffect)(()=>{T(V)},[V,T]);let[W,X]=(0,g.useState)(void 0),U=(0,g.useMemo)(()=>[v.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(f.Z,{resource:e.row.original}),header:"Project"}),v.display({id:"status",cell:e=>{let{row:t}=e;return(0,s.jsx)(x.Z,{status:(0,C.u)(t.original)})},header:"Status"}),v.accessor(e=>e.monitor_config_id,{id:"monitorConfigId",cell:e=>(0,s.jsx)(m.G3,{value:e.getValue()}),header:"Detected by"}),v.accessor(e=>e.description,{id:"description",cell:e=>(0,s.jsx)(m.G3,{value:e.getValue()}),header:"Description"}),v.accessor(e=>e.updated_at,{id:"lastUpdated",cell:e=>(0,s.jsx)(p.Cy,{time:e.getValue()}),header:"Updated",meta:{cellProps:{borderRight:"none"}}}),v.display({id:"actions",cell:e=>{let{row:t}=e;return(0,s.jsx)(y.Z,{onDetailClick:()=>X(t.original)})},size:25,meta:{disableRowClick:!0}})],[]),K=(0,d.b7)({getCoreRowModel:(0,u.sC)(),getGroupedRowModel:(0,u.qe)(),getExpandedRowModel:(0,u.rV)(),manualPagination:!0,columnResizeMode:"onChange",columns:U,data:q,getRowId:e=>e.urn,onRowSelectionChange:n,state:{rowSelection:i}});return z||M?(0,s.jsx)(m.I4,{rowHeight:36,numRows:36}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(m.ZK,{tableInstance:K,emptyTableNotice:(0,s.jsx)(_,{}),onRowClick:e=>Z.push("".concat(r.mX,"/").concat(t,"/projects/").concat(e.urn))}),(0,s.jsx)(m.s8,{totalRows:G||0,pageSizes:l,setPageSize:R,onPreviousPageClick:b,isPreviousPageDisabled:S,onNextPageClick:P,isNextPageDisabled:E,startRange:k,endRange:D}),(0,s.jsx)(j.Z,{resource:W,onClose:()=>X(void 0)})]})},b=a(1315),S=()=>{var e;let{query:t}=(0,o.useRouter)(),a=t.systemId,u=t.monitor_config_ids,{data:d,isLoading:c}=(0,b.rn)(a);return c?(0,s.jsx)(i.Z,{}):(0,s.jsxs)(n.Z,{title:"Data catalog",children:[(0,s.jsx)(l.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:r.mX},{title:null!==(e=null==d?void 0:d.name)&&void 0!==e?e:null==d?void 0:d.fides_key}]}),(0,s.jsx)(R,{systemKey:a,monitorConfigIds:u})]})}}},function(e){e.O(0,[8765,9278,5163,409,6882,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,4164,1099,3620,3855,2888,9774,179],function(){return e(e.s=37441)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4745],{37441:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/resources/[resourceUrn]",function(){return n(51887)}])},51887:function(e,t,n){"use strict";n.r(t);var r=n(24246),s=n(86677),c=n(18225),u=n(77213),o=n(77830),a=n(58754),l=n(25077),i=n(94780),d=n(1315);t.default=()=>{var e;let{query:t}=(0,s.useRouter)(),n=t.systemId,_=t.resourceUrn,{data:f,isLoading:m}=(0,d.rn)(n),h=(0,s.useRouter)(),k=(0,i.pN)(_,"".concat(o.mX,"/").concat(n,"/resources"));return m?(0,r.jsx)(c.Z,{}):(0,r.jsxs)(u.Z,{title:"Data catalog",children:[(0,r.jsx)(a.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:o.mX},{title:null!==(e=null==f?void 0:f.name)&&void 0!==e?e:null==f?void 0:f.fides_key,href:"".concat(o.mX)},...k]}),(0,r.jsx)(l.Z,{resourceUrn:_,onRowClick:e=>h.push("".concat(o.mX,"/").concat(f.fides_key,"/resources/").concat(e.urn))})]})}}},function(e){e.O(0,[431,8765,9278,5163,1841,409,6882,3855,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([[4231],{66248:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog",function(){return s(99375)}])},77213:function(e,t,s){"use strict";s.d(t,{Z:function(){return m}});var i=s(24246),a=s(96306),n=s(88038),r=s.n(n),o=s(86677);s(27378);var l=s(25980),d=s(90867),c=s(42478),u=s(77830),g=()=>{let e=(0,o.useRouter)();return(0,i.jsx)(a.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(a.xuv,{children:[(0,i.jsxs)(a.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(a.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(a.wpx,{onClick:()=>{e.push(u.AD)},children:"Configure"})]}),(0,i.jsxs)(a.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=e=>{let{children:t,title:s,padded:n=!0,mainProps:u}=e,m=(0,l.hz)(),p=(0,o.useRouter)(),x="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,f=!(m.flags.messagingConfiguration&&x),{data:v}=(0,c.JE)(void 0,{skip:f}),{data:h}=(0,d.PW)(void 0,{skip:f}),j=m.flags.messagingConfiguration&&(!v||!h)&&x;return(0,i.jsxs)(a.kCb,{"data-testid":s,direction:"column",h:"100vh",children:[(0,i.jsxs)(r(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",s]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(a.kCb,{as:"main",direction:"column",py:n?6:0,px:n?10:0,h:n?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[j?(0,i.jsx)(g,{}):null,t]})]})}},79789:function(e,t,s){"use strict";s.d(t,{Hn:function(){return o},XU:function(){return r},Z5:function(){return l},aG:function(){return u},cB:function(){return n},hX:function(){return c},vQ:function(){return d}});var i=s(24246),a=s(96306);let n=e=>{let{text:t,...s}=e;return(0,i.jsx)(a.X6q,{fontSize:"sm",mt:4,mb:1,...s,children:t})},r=e=>{let{children:t}=e;return(0,i.jsx)(a.xvT,{fontSize:"14px",mb:4,children:t})},o=e=>{let{children:t,href:s}=e;return(0,i.jsx)(a.rUS,{href:s,textDecoration:"underline",isExternal:!0,children:t})},l=e=>{let{children:t}=e;return(0,i.jsx)(a.QI$,{fontSize:"14px",mb:4,children:t})},d=e=>{let{children:t}=e;return(0,i.jsx)(a.GSI,{fontSize:"14px",mb:4,ml:6,children:t})},c=e=>{let{children:t}=e;return(0,i.jsx)(a.EKh,{display:"block",whiteSpace:"pre",p:4,mb:4,overflowX:"scroll",children:t})},u=e=>{let{data:t}=e;return(0,i.jsxs)(a.iA_,{fontSize:"14px",children:[(0,i.jsx)(a.hrZ,{children:(0,i.jsxs)(a.Tr,{children:[(0,i.jsx)(a.Th,{children:"Permission"}),(0,i.jsx)(a.Th,{children:"Description"})]})}),(0,i.jsx)(a.p3B,{children:t.map(e=>(0,i.jsxs)(a.Tr,{children:[(0,i.jsx)(a.Td,{children:(0,i.jsx)(a.Vp9,{children:e.permission})}),(0,i.jsx)(a.Td,{children:e.description})]},e.permission))})]})}},83099:function(e,t,s){"use strict";var i=s(24246),a=s(79283),n=s(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:s=!1,...r}=e,{getDataUseDisplayNameProps:o,getDataUses:l}=(0,n.Z)(),d=(s?l():l().filter(e=>e.active)).filter(e=>!(null==t?void 0:t.includes(e.fides_key))).map(e=>{let{name:t,primaryName:s}=o(e.fides_key);return{value:e.fides_key,name:t,primaryName:s,description:e.description||""}});return(0,i.jsx)(a.l,{options:d,...r})}},97181:function(e,t,s){"use strict";s.d(t,{d:function(){return d}});var i=s(24246),a=s(96306),n=s(34090),r=s(27378),o=s(46238),l=s(40324);let d=e=>{let{name:t,label:s,labelProps:d,tooltip:c,isRequired:u,layout:g="inline",helperText:m,...p}=e,[x,f,{setValue:v}]=(0,n.U$)(t),h=!!(f.touched&&f.error),[j,y]=(0,r.useState)("");x.value||"tags"!==p.mode&&"multiple"!==p.mode||(x.value=[]),"tags"===p.mode&&"string"==typeof x.value&&(x.value=[x.value]);let b="tags"===p.mode?(e,t)=>e?e.value!==j||x.value.includes(j)?p.optionRender?p.optionRender(e,t):e.label:'Create "'.concat(j,'"'):void 0:p.optionRender||void 0,_=e=>{y(e),p.onSearch&&p.onSearch(e)},C=(e,t)=>{v(e),p.onChange&&p.onChange(e,t)};return"inline"===g?(0,i.jsx)(a.NIc,{isInvalid:h,isRequired:u,children:(0,i.jsxs)(a.rjZ,{templateColumns:s?"1fr 3fr":"1fr",children:[s?(0,i.jsx)(l.__,{htmlFor:p.id||t,...d,children:s}):null,(0,i.jsxs)(a.jqI,{align:"center",children:[(0,i.jsxs)(a.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,i.jsx)(a.WPr,{...x,id:p.id||t,"data-testid":"controlled-select-".concat(x.name),...p,optionRender:b,onSearch:"tags"===p.mode?_:void 0,onChange:C,value:x.value||void 0,status:h?"error":void 0}),m&&(0,i.jsx)(a.Q6r,{children:m}),(0,i.jsx)(l.Bc,{isInvalid:h,message:f.error,fieldName:x.name})]}),(0,i.jsx)(o.b,{label:c,className:h?"mt-2 self-start":void 0})]})]})}):(0,i.jsx)(a.NIc,{isInvalid:h,isRequired:u,children:(0,i.jsxs)(a.gCW,{alignItems:"start",children:[(0,i.jsxs)(a.jqI,{align:"center",children:[s?(0,i.jsx)(l.__,{htmlFor:p.id||t,fontSize:"xs",my:0,mr:1,...d,children:s}):null,(0,i.jsx)(o.b,{label:c})]}),(0,i.jsx)(a.WPr,{...x,id:p.id||t,"data-testid":"controlled-select-".concat(x.name),...p,optionRender:b,onSearch:"tags"===p.mode?_:void 0,onChange:C,value:x.value||void 0,status:h?"error":void 0}),m&&(0,i.jsx)(a.Q6r,{style:{marginTop:0},children:m}),(0,i.jsx)(l.Bc,{isInvalid:h,message:f.error,fieldName:x.name})]})})}},8133:function(e,t,s){"use strict";var i=s(24246),a=s(96306);t.Z=e=>{let{title:t,children:s,isOpen:n,onClose:r,modalContentProps:o,showCloseButton:l=!1,footer:d,...c}=e;return(0,i.jsxs)(a.u_l,{isOpen:n,onClose:r,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...c,children:[(0,i.jsx)(a.ZAr,{}),(0,i.jsxs)(a.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...o,children:[l&&(0,i.jsx)(a.olH,{}),(0,i.jsx)(a.xBx,{p:0,children:(0,i.jsx)(a.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,i.jsx)(a.X6q,{as:"h3",size:"sm",children:t})})}),(0,i.jsx)(a.fef,{pb:4,overflow:"auto",children:s}),d&&(0,i.jsx)(a.mzw,{children:d})]})]})}},79609:function(e,t,s){"use strict";s.d(t,{N4:function(){return r},UG:function(){return a},xw:function(){return n}});var i=s(54427);let{useGetCatalogSystemsQuery:a,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,i.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},81406:function(e,t,s){"use strict";var i=s(24246),a=s(96306);t.Z=()=>(0,i.jsxs)(a.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:[(0,i.jsx)(a.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"}),(0,i.jsx)(a.xvT,{fontSize:"sm",children:"You're up to date!"})]})},3765:function(e,t,s){"use strict";var i=s(96306),a=s(812),n=s(46628),r=s(1315),o=s(31883);t.Z=e=>{let t=(0,i.pmc)(),[s]=(0,r.qQ)(),l=s=>!!e.privacy_declarations.find(e=>e.data_use===s.data_use&&e.name===s.name)&&(t((0,n.Vo)("A declaration already exists with that data use in this system. Please supply a different data use.")),!0),d=(e,s)=>{if((0,o.D4)(e)){let s=(0,a.e$)(e.error,"An unexpected error occurred while updating the system. Please try again.");t((0,n.Vo)(s));return}return t.closeAll(),t((0,n.t5)(s?"Data use deleted":"Data use saved")),e.data.privacy_declarations},c=async(t,i)=>{let a=t.map(e=>{var t;return{...e,name:null!==(t=e.name)&&void 0!==t?t:""}}),n={...e,privacy_declarations:a};return d(await s(n),i)};return{createDataUse:async s=>{if(!l(s))return t.closeAll(),c([...e.privacy_declarations,s])},updateDataUse:async(t,s)=>{if(!(s.id!==t.id&&l(s)))return c(e.privacy_declarations.map(e=>e.id===t.id?s:e))},deleteDataUse:async t=>c(e.privacy_declarations.filter(e=>e.id!==t.id),!0),deleteDeclarationByDataUse:async t=>c(e.privacy_declarations.filter(e=>e.data_use!==t),!0)}}},42478:function(e,t,s){"use strict";s.d(t,{FU:function(){return d},JE:function(){return a},Ki:function(){return u},SU:function(){return g},W:function(){return m},h9:function(){return n},jc:function(){return i},qt:function(){return l},sn:function(){return c}});let{useGetEmailInviteStatusQuery:i,useGetActiveMessagingProviderQuery:a,useCreateMessagingConfigurationMutation:n,useCreateMessagingConfigurationSecretsMutation:r,useGetMessagingConfigurationDetailsQuery:o,useGetMessagingConfigurationsQuery:l,useGetMessagingConfigurationByKeyQuery:d,useUpdateMessagingConfigurationByKeyMutation:c,useUpdateMessagingConfigurationSecretsByKeyMutation:u,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:m}=s(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,s,i)=>{let a=await i({url:"messaging/default/active"});return a.error&&404===a.error.status?{data:null}:a},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},54748:function(e,t,s){"use strict";var i=s(27378),a=s(21910);t.Z=()=>({legalBasisOptions:(0,i.useMemo)(()=>Object.keys(a.gP).map(e=>({value:a.gP[e],label:a.gP[e]})),[])})},28325:function(e,t,s){"use strict";var i=s(27378),a=s(21910);t.Z=()=>({specialCategoryLegalBasisOptions:(0,i.useMemo)(()=>Object.keys(a.nV).map(e=>({value:a.nV[e],label:a.nV[e]})),[])})},99375:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return O}});var i=s(24246),a=s(77213),n=s(58754),r=s(92222),o=s(59003),l=s(86677),d=s(27378),c=s(77830),u=s(47935),g=s(16394),m=s(79609),p=s(81406),x=s(96306),f=s(79789),v=s(83099),h=s(34929),j=s(34090),y=s(55484),b=s(97181),_=s(40324),C=s(8133),w=s(54748),k=s(28325),S=s(34151),q=s.n(S);let T=y.Ry().shape({data_use:y.Z_().required("Data use is required")});var R=e=>{let{isOpen:t,onClose:s,onSave:a,declaration:n}=e,{getDataUses:r,getDataCategories:o,getDataSubjects:l}=(0,h.Z)(),{isOpen:d,onToggle:c}=(0,x.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})),m=l().map(e=>({label:e.fides_key,value:e.fides_key})),{legalBasisOptions:p}=(0,w.Z)(),{specialCategoryLegalBasisOptions:f}=(0,k.Z)();return(0,i.jsx)(j.J9,{initialValues:n,enableReinitialize:!0,onSubmit:e=>{a(e),s()},validationSchema:T,children:e=>{let{dirty:a,isValid:n,values:r,resetForm:o}=e;return(0,i.jsx)(C.Z,{title:"Edit data use",isOpen:t,onClose:s,children:(0,i.jsxs)(j.l0,{children:[(0,i.jsxs)(x.jqI,{vertical:!0,className:"gap-6 py-4",children:[(0,i.jsx)(b.d,{name:"data_use",label:"Data use",options:u,layout:"stacked",isRequired:!0}),(0,i.jsx)(b.d,{name:"data_categories",label:"Data categories",options:g,mode:"multiple",layout:"stacked"}),(0,i.jsx)(b.d,{name:"data_subjects",label:"Data subjects",options:m,mode:"multiple",layout:"stacked"}),(0,i.jsx)(_.j0,{name:"name",label:"Declaration name",variant:"stacked"}),(0,i.jsxs)(x.jqI,{vertical:!0,className:"gap-6 p-4 ".concat(q().advancedSettings),children:[(0,i.jsxs)(x.jqI,{className:"cursor-pointer justify-between",onClick:c,children:[(0,i.jsx)(x.xvT,{fontSize:"xs",children:"Advanced settings"}),(0,i.jsx)(x.v4q,{className:d?"rotate-180":void 0})]}),(0,i.jsx)(x.UO1,{in:d,children:(0,i.jsxs)(x.jqI,{vertical:!0,className:"gap-4",children:[(0,i.jsx)(b.d,{name:"legal_basis_for_processing",label:"Legal basis for processing",options:p,layout:"stacked"}),(0,i.jsx)(x.UO1,{in:(null==r?void 0:r.legal_basis_for_processing)==="Legitimate interests",animateOpacity:!0,style:{overflow:"visible"},children:(0,i.jsx)("div",{className:"mt-4",children:(0,i.jsx)(_.j0,{name:"impact_assessment_location",label:"Impact assessment location",tooltip:"Where is the legitimate interest impact assessment stored?",variant:"stacked"})})}),(0,i.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,i.jsx)(_.j0,{name:"retention_period",label:"Retention period (days)",tooltip:"How long is personal data retained for this purpose?",variant:"stacked"}),(0,i.jsxs)(x.Kqy,{spacing:0,children:[(0,i.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,i.jsx)(x.UO1,{in:null==r?void 0:r.processes_special_category_data,animateOpacity:!0,style:{overflow:"visible"},children:(0,i.jsx)("div",{className:"mt-4",children:(0,i.jsx)(b.d,{isRequired:!0,name:"special_category_legal_basis",label:"Legal basis for processing",options:f,tooltip:"What is the legal basis under which the special category data is processed?",layout:"stacked"})})})]})]})})]})]}),(0,i.jsxs)("div",{className:"flex w-full justify-between",children:[(0,i.jsx)(x.wpx,{onClick:()=>{o(),s()},children:"Cancel"}),(0,i.jsx)(x.wpx,{type:"primary",htmlType:"submit",disabled:!a||!n,loading:!1,"data-testid":"save-btn",children:"Save"})]})]})})}})},D=s(26183),M=s(3765);let P=e=>({data_use:e,data_categories:["system"]});var z=e=>{var t,s;let{system:a}=e,[n,r]=(0,d.useState)(!1),[o,l]=(0,d.useState)(void 0),{getDataUseDisplayName:c}=(0,h.Z)(),{isOpen:u,onOpen:g,onClose:m}=(0,x.qY0)(),p=e=>{l(e),g()},{createDataUse:f,deleteDeclarationByDataUse:j,updateDataUse:y}=(0,M.Z)(a),b=null!==(s=null===(t=a.privacy_declarations)||void 0===t?void 0:t.map(e=>e.data_use))&&void 0!==s?s:[];return(0,i.jsxs)(D.Z,{children:[!n&&(0,i.jsxs)(i.Fragment,{children:[b.map((e,t)=>(0,i.jsxs)(x.j8w,{"data-testid":"data-use-".concat(e),color:"white",onClick:()=>p(a.privacy_declarations[t]),closable:!0,onClose:()=>j(e),closeButtonLabel:"Remove data use",children:[(0,i.jsx)(x.PJP.I8b,{size:10}),c(e)]},e)),(0,i.jsx)(x.j8w,{onClick:()=>r(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"}),(0,i.jsx)(R,{isOpen:u,onClose:m,onSave:e=>y(o,e),declaration:o})]}),n&&(0,i.jsx)(x.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,i.jsx)(v.Z,{onChange:e=>{f(P(e)),r(!1)},selectedTaxonomies:b,onBlur:()=>r(!1),open:!0})})]})},I=e=>{var t;let{system:s,onEdit:a,onClose:n}=e;return(0,i.jsxs)(x.dys,{isOpen:!!s,onClose:n,size:"md",children:[(0,i.jsx)(x.P1B,{}),(0,i.jsxs)(x.scA,{"data-testid":"system-details",children:[(0,i.jsx)(x.OXI,{children:(null==s?void 0:s.name)||(null==s?void 0:s.fides_key)}),(0,i.jsx)(x.cCv,{}),(0,i.jsxs)(x.Ng0,{children:[(0,i.jsx)(f.cB,{text:"Title",mt:0}),(0,i.jsx)(f.XU,{children:null!==(t=null==s?void 0:s.name)&&void 0!==t?t:null==s?void 0:s.fides_key}),(null==s?void 0:s.description)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.cB,{text:"Description"}),(0,i.jsx)(f.XU,{children:null==s?void 0:s.description})]}),(0,i.jsx)(f.cB,{text:"Data uses"}),(0,i.jsx)(z,{system:s})]}),(0,i.jsx)(x.zeN,{children:(0,i.jsx)(x.wpx,{onClick:a,"data-testid":"edit-system-btn",children:"Edit system"})})]})]})},N=e=>{let{onDetailClick:t}=e;return(0,i.jsxs)(x.v2r,{children:[(0,i.jsx)(x.j2t,{as:x.wpx,size:"small",type:"text",className:"max-w-4",icon:(0,i.jsx)(x.nXP,{transform:"rotate(90deg)",ml:2}),"data-testid":"system-actions-menu"}),(0,i.jsx)(x.qyq,{children:t&&(0,i.jsx)(x.sNh,{onClick:t,"data-testid":"view-system-details",children:"View details"})})]})},E=s(70675);let Z={items:[],total:0,page:1,size:50,pages:1},B=(0,r.Cl)();var U=()=>{let[e,t]=(0,d.useState)({}),s=(0,l.useRouter)(),{PAGE_SIZES:a,pageSize:n,setPageSize:x,onPreviousPageClick:f,isPreviousPageDisabled:v,onNextPageClick:h,isNextPageDisabled:j,startRange:y,endRange:b,pageIndex:_,setTotalPages:C}=(0,u.oi)(),{data:w,isLoading:k}=(0,m.UG)({page:_,size:n,show_hidden:!1}),[S]=(0,E.j3)(),{items:q,total:T,pages:R}=(0,d.useMemo)(()=>null!=w?w:Z,[w]);(0,d.useEffect)(()=>{C(R)},[R,C]);let[D,M]=(0,d.useState)(void 0),P=(0,d.useMemo)(()=>q.find(e=>e.fides_key===D),[q,D]),U=async e=>{var t,i;let a=await S({connection_config_key:e.connection_configs.key,page:1,size:1}),n=!!(null==a?void 0:null===(t=a.data)||void 0===t?void 0:t.total),r=(0,g.du)(null!==(i=e.monitor_config_keys)&&void 0!==i?i:[],"monitor_config_ids"),o="".concat(c.mX,"/").concat(e.fides_key,"/").concat(n?"projects":"resources","?").concat(r);s.push(o)},O=(0,d.useMemo)(()=>[B.accessor(e=>e.name,{id:"name",cell:e=>{var t;let{getValue:s,row:a}=e;return(0,i.jsx)(u.G3,{value:s(),fontWeight:(null===(t=a.original.connection_configs)||void 0===t?void 0:t.key)?"semibold":"normal"})},header:e=>(0,i.jsx)(u.Rr,{value:"Name",...e})}),B.display({id:"data-uses",cell:e=>{let{row:t}=e;return(0,i.jsx)(z,{system:t.original})},header:e=>(0,i.jsx)(u.Rr,{value:"Data uses",...e}),meta:{disableRowClick:!0},minSize:280}),B.display({id:"actions",cell:e=>(0,i.jsx)(N,{onDetailClick:()=>M(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:O,data:q,onRowSelectionChange:t,state:{rowSelection:e}});return k?(0,i.jsx)(u.I4,{rowHeight:36,numRows:36}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.ZK,{tableInstance:A,emptyTableNotice:(0,i.jsx)(p.Z,{}),onRowClick:U,getRowIsClickable:e=>{var t;return!!(null===(t=e.connection_configs)||void 0===t?void 0:t.key)}}),(0,i.jsx)(u.s8,{totalRows:T||0,pageSizes:a,setPageSize:x,onPreviousPageClick:f,isPreviousPageDisabled:v,onNextPageClick:h,isNextPageDisabled:j,startRange:y,endRange:b}),(0,i.jsx)(I,{system:P,onClose:()=>M(void 0),onEdit:()=>s.push({pathname:c.Dv,query:{id:D}})})]})},O=()=>(0,i.jsxs)(a.Z,{title:"Data catalog",children:[(0,i.jsx)(n.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems"}]}),(0,i.jsx)(U,{})]})},31883:function(e,t,s){"use strict";s.d(t,{Bw:function(){return i.Bw},D4:function(){return i.D4}});var i=s(19043)},34151:function(e){e.exports={advancedSettings:"EditMinimalDataUseModal_advancedSettings___i9jS"}}},function(e){e.O(0,[8765,9278,5163,409,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([[4154],{58095:function(e,t,s){var n=s(8817);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},21796:function(e){e.exports=function(e,t,s){for(var n=-1,a=null==e?0:e.length;++n<a;)if(s(t,e[n]))return!0;return!1}},8817:function(e,t,s){var n=s(95372),a=s(1129),o=s(58263);e.exports=function(e,t,s){return t==t?o(e,t,s):n(e,a,s)}},1129:function(e){e.exports=function(e){return e!=e}},92198:function(e,t,s){var n=s(52485),a=s(58095),o=s(21796),l=s(65581),r=s(47111),i=s(43735);e.exports=function(e,t,s){var d=-1,c=a,u=e.length,m=!0,g=[],y=g;if(s)m=!1,c=o;else if(u>=200){var h=t?null:r(e);if(h)return i(h);m=!1,c=l,y=new n}else y=t?[]:g;e:for(;++d<u;){var p=e[d],v=t?t(p):p;if(p=s||0!==p?p:0,m&&v==v){for(var f=y.length;f--;)if(y[f]===v)continue e;t&&y.push(v),g.push(p)}else c(y,v,s)||(y!==g&&y.push(v),g.push(p))}return g}},47111:function(e,t,s){var n=s(46151),a=s(50344),o=s(43735),l=n&&1/o(new n([,-0]))[1]==1/0?function(e){return new n(e)}:a;e.exports=l},58263:function(e){e.exports=function(e,t,s){for(var n=s-1,a=e.length;++n<a;)if(e[n]===t)return n;return -1}},50344:function(e){e.exports=function(){}},83766:function(e,t,s){var n=s(92198);e.exports=function(e){return e&&e.length?n(e):[]}},25654:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/[monitorId]/[systemId]",function(){return s(74473)}])},79283:function(e,t,s){"use strict";s.d(t,{l:function(){return i}});var n=s(24246),a=s(96306),o=s(72707),l=s.n(o);let r=e=>{let{data:{formattedTitle:t,description:s,name:o,primaryName:l}}=e;return(0,n.jsxs)(a.jqI,{gap:12,title:"".concat(t," - ").concat(s),children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("strong",{children:l||o}),l&&": ".concat(o)]}),(0,n.jsx)("em",{children:s})]})},i=e=>{let{options:t,...s}=e,o=null==t?void 0:t.map(e=>({...e,className:l().option,formattedTitle:[e.primaryName,e.name].filter(e=>e).join(": ")}));return(0,n.jsx)(a.WPr,{options:o,filterOption:(e,t)=>(null==t?void 0:t.formattedTitle.toLowerCase().includes(e.toLowerCase()))||(null==t?void 0:t.value.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",...s})}},45938:function(e,t,s){"use strict";s.d(t,{Gt:function(){return m},eB:function(){return g},oI:function(){return u}});var n=s(24246),a=s(34090),o=s(27378),l=s(16134),r=s(38602),i=s(58452);let d=(0,o.createRef)(),c=(0,o.createRef)(),u=()=>{let e=(0,l.T)(),t=(0,l.C)(r.DB),s=(0,o.useCallback)(()=>{c.current=void 0,d.current=void 0},[]),n=(0,o.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!0),s())},[e,s]),a=(0,o.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!1),s())},[e,s]);return{attemptAction:(0,o.useCallback)(()=>t?(e((0,r.h7)()),d.current||(d.current=new Promise(e=>{c.current=e})),d.current):Promise.resolve(!0),[t,e]),onConfirm:n,onClose:a}},m=e=>{let{id:t,name:s}=e,{dirty:n}=(0,a.u6)(),i=(0,l.T)();return(0,o.useEffect)(()=>(i((0,r.Zu)({id:t,name:s})),()=>{i((0,r.dz)({id:t}))}),[i,t,s]),(0,o.useEffect)(()=>{i((0,r.$p)({id:t,isDirty:n}))},[n,i,t]),null},g=()=>{let{onConfirm:e,onClose:t}=u(),s=(0,l.C)(r.uv);return(0,n.jsx)(i.Z,{isOpen:s,onClose:t,onConfirm:e,isCentered:!0,title:"Unsaved Changes",message:"You have unsaved changes"})}},74473:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return en}});var n=s(24246),a=s(86677),o=s(27378),l=s(35287),r=s(77830),i=s(58754),d=s(96306),c=s(25415),u=s(21910),m=s(30952),g=s(8133),y=s(79283),h=s(34929),p=s(78238),v=e=>{let{selectedTaxonomies:t,...s}=e,{getDataUseDisplayNameProps:a,getDataUses:o}=(0,h.Z)(),l=o().filter(e=>e.active&&p.g.includes(e.fides_key)).map(e=>{let{name:t,primaryName:s}=a(e.fides_key);return{value:e.fides_key,name:t,primaryName:s,description:e.description||""}});return(0,n.jsx)(y.l,{options:l,...s})};let{Text:f}=d.AntTypography;var x=e=>{let{onSave:t,isSaving:s,onClose:a,...l}=e,[r,i]=(0,o.useState)([]),c=()=>{i([]),a()};return(0,n.jsxs)(g.Z,{title:"Add consent category",...l,onClose:c,children:[(0,n.jsxs)(d.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,n.jsx)(f,{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,n.jsx)(v,{mode:"tags",selectedTaxonomies:r,onSelect:(e,t)=>i([...r,t.value]),variant:"outlined"})]}),(0,n.jsxs)(d.jqI,{justify:"space-between",children:[(0,n.jsx)(d.wpx,{htmlType:"reset",onClick:c,"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(d.wpx,{htmlType:"submit",type:"primary",disabled:!r.length,loading:s,onClick:()=>{t(r),c()},"data-testid":"save-btn",children:"Save"})]})]})},j=s(29850),_=s(77685);let{Text:b}=d.AntTypography,C=e=>{let{onSave:t,isSaving:s,...a}=e,[l,r]=(0,o.useState)(),[i,c]=(0,o.useState)(!1),u=(0,o.useCallback)(e=>{e.preventDefault(),c(!0)},[]),m=()=>{c(!1)},y=()=>{r(void 0),a.onClose()};return(0,n.jsxs)(g.Z,{title:"Assign system",...a,onClose:y,children:[(0,n.jsxs)(d.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,n.jsx)(b,{children:"Assign a system to the selected assets. If no system exists, select 'Add new system' to create one."}),(0,n.jsx)(j.R,{placeholder:"Search or select...",onSelect:(e,t)=>{r(t)},onAddSystem:u,value:l})]})," ",(0,n.jsxs)(d.jqI,{justify:"space-between",children:[(0,n.jsx)(d.wpx,{htmlType:"reset",onClick:y,"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(d.wpx,{htmlType:"submit",type:"primary",disabled:!l,loading:s,onClick:()=>{t(l),y()},"data-testid":"save-btn",children:"Save"})]}),i&&(0,n.jsx)(_.i,{isOpen:!0,onClose:m,onSuccessfulSubmit:(e,t)=>{m(),r({label:t,value:e})},toastOnSuccess:!0})]})};var w=s(8411),k=s(32735),S=s(8125),E=s(37059),T=s(98145);let{Link:N}=d.AntTypography,A=e=>{let{stagedResource:t,status:s}=e,a=(0,S.o)({pagination:{defaultPageSize:10,pageSizeOptions:[10,...k.VZ]}}),{pageIndex:l,pageSize:r}=a,{data:i,isFetching:d,isError:c}=(0,E.mi)({stagedResourceUrn:t.urn,status:s,page:l,size:r}),{items:u,total:m}=(0,o.useMemo)(()=>i||{items:[],total:0,pages:0,filterOptions:{assigned_users:[],systems:[]}},[i]),g=(0,o.useMemo)(()=>({enableSelection:!1,getRowKey:e=>e.location,isLoading:d,dataSource:u,totalRows:null!=m?m:0}),[d,u,m]),y=(0,S.V)(a,g);return{columns:(0,o.useMemo)(()=>[{title:"Location",dataIndex:T.EI.LOCATION,key:T.EI.LOCATION,render:e=>{var t;return null!==(t=w.Z8[e])&&void 0!==t?t:e}},{title:"Page",dataIndex:T.EI.PAGE,key:T.EI.PAGE,render:e=>(0,n.jsx)(N,{href:e,target:"_blank",rel:"noopener noreferrer",children:e})}],[]),data:i,isLoading:d,isError:c,totalRows:m,tableProps:y.tableProps,hasData:u.length>0}},{Paragraph:I,Text:O}=d.AntTypography,D=e=>{var t,s,a;let{isOpen:o,stagedResource:l,status:r,onCancel:i,onDownload:c}=e,{columns:u,tableProps:m,isError:g}=A({stagedResource:l,status:r});return(0,n.jsx)(d.$zI,{title:"Consent discovery",width:768,open:o,onCancel:i,footer:[(0,n.jsx)(d.wpx,{onClick:i,children:"Cancel"},"cancel"),!!c&&(0,n.jsx)(d.wpx,{type:"primary",onClick:c,children:"Download"},"download")],"data-testid":"consent-breakdown-modal",children:(0,n.jsxs)(d.jqI,{vertical:!0,className:"gap-6","data-testid":"consent-breakdown-modal-content",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(I,{children:"View all instances where this asset was detected without consent, organized by location and page. Use this to investigate potential compliance issues."}),(0,n.jsxs)(I,{children:[(0,n.jsx)(O,{strong:!0,children:"Asset name:"})," ",null!==(t=l.name)&&void 0!==t?t:(0,n.jsx)(O,{italic:!0,children:"Unknown"}),","," ",(0,n.jsx)(O,{strong:!0,children:"System:"})," ",null!==(s=l.system)&&void 0!==s?s:(0,n.jsx)(O,{italic:!0,children:"Unassigned"}),","," ",(0,n.jsx)(O,{strong:!0,children:"Domain:"})," ",null!==(a=l.domain)&&void 0!==a?a:(0,n.jsx)(O,{italic:!0,children:"Unknown"})]})]}),g?(0,n.jsx)(d.DUx,{type:"error",message:"Error fetching data",description:"Please try again later.",showIcon:!0}):(0,n.jsx)(d.V5H,{...m,columns:u,"data-testid":"consent-breakdown-modal-table"})]})})};var P=s(83766),L=s.n(P),R=s(62165),U=s(812),G=s(26070),M=s(3110),Z=s(46628),V=s(16394),z=s(54762),W=s(9320),B=s(88708);let K=e=>{let{asset:t,onTabChange:s}=e,[o,{isLoading:l}]=(0,E.EY)(),[i,{isLoading:c}]=(0,E.nS)(),[m,{isLoading:g}]=(0,E.Tj)(),y=(0,d.pmc)(),h=(0,a.useRouter)(),p=l||c||g,{urn:v,name:f,resource_type:x,diff_status:j,system_key:_,user_assigned_system_key:b}=t,C=async()=>{let e=await o({urnList:[v]});if((0,U.D4)(e))y((0,Z.Vo)((0,U.e$)(e.error)));else{let e=b||_,t="".concat(r.So,"/configure/").concat(e,"#assets");y((0,Z.t5)((0,W._)("".concat(x,' "').concat(f,'" has been added to the system inventory.'),e?()=>h.push(t):void 0)))}},w=async()=>{let e=await i({urnList:[v]});(0,U.D4)(e)?y((0,Z.Vo)((0,U.e$)(e.error))):y((0,Z.t5)((0,W._)("".concat(x,' "').concat(f,'" has been ignored and will not appear in future scans.'),async()=>{await s(B.A.IGNORED)})))},k=async()=>{let e=await m({urnList:[v]});(0,U.D4)(e)?y((0,Z.Vo)((0,U.e$)(e.error))):y((0,Z.t5)("".concat(x,' "').concat(f,'" is no longer ignored and will appear in future scans.')))};return(0,n.jsxs)(d.vyj,{children:[j!==u.LL.MUTED&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.esZ,{title:t.system?void 0:"This asset requires a system before you can add it to the inventory.",children:(0,n.jsx)(d.wpx,{"data-testid":"add-btn",size:"small",onClick:C,disabled:!t.system||p,loading:l,children:"Add"})}),(0,n.jsx)(d.wpx,{"data-testid":"ignore-btn",size:"small",onClick:w,disabled:p,loading:c,children:"Ignore"})]}),j===u.LL.MUTED&&(0,n.jsx)(d.wpx,{"data-testid":"restore-btn",size:"small",onClick:k,disabled:p,loading:g,children:"Restore"})]})};var X=s(41841),$=s(18992),Y=s.n($),q=s(2525),H=s(31883),F=e=>{var t,s,a;let{asset:l,readonly:r,columnState:i}=e,[c,u]=(0,o.useState)(!1),[m]=(0,E.Ak)(),{successAlert:g,errorAlert:y}=(0,X.VY)(),{getDataUseDisplayName:f}=(0,h.Z)(),x=(null===(t=l.user_assigned_data_uses)||void 0===t?void 0:t.length)?l.user_assigned_data_uses:(null===(s=l.data_uses)||void 0===s?void 0:s.length)?l.data_uses:[],j=async e=>{let t=await m({monitorId:l.monitor_config_id,urnList:[l.urn],dataUses:[...x,e]});(0,H.D4)(t)?y((0,U.e$)(t.error)):g("Consent category added to ".concat(l.resource_type,' "').concat(l.name,'" .'),"Confirmed"),u(!1)},_=async e=>{let t=await m({monitorId:l.monitor_config_id,urnList:[l.urn],dataUses:x.filter(t=>t!==e)});(0,H.D4)(t)?y((0,U.e$)(t.error)):g("Consent category removed from ".concat(l.resource_type,' "').concat(l.name,'".'),"Confirmed")},b=(null===(a=l.user_assigned_data_uses)||void 0===a?void 0:a.length)?l.user_assigned_data_uses:l.data_uses,C=null==b?void 0:b.filter(e=>(0,p.Z)(e));return r?(0,n.jsx)(q.Q,{values:null==C?void 0:C.map(e=>({label:f(e),key:e})),columnState:i}):(0,n.jsxs)(n.Fragment,{children:[!c&&(0,n.jsxs)(d.vyj,{align:"start",children:[(0,n.jsx)(d.j8w,{onClick:()=>u(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"}),(0,n.jsx)(q.Q,{values:null==C?void 0:C.map(e=>({label:f(e),key:e})),columnState:i,tagProps:{closable:!0,closeButtonLabel:"Remove data use"},onTagClose:_})]}),c&&(0,n.jsx)("div",{className:Y().cellBleed,style:{backgroundColor:"var(--fides-color-white)"},children:(0,n.jsx)(v,{selectedTaxonomies:C||[],onSelect:j,onBlur:()=>u(!1),open:!0})})]})};let J=e=>{let{consentAggregated:t,stagedResource:s,onShowBreakdown:a}=e;return(0,n.jsxs)(n.Fragment,{children:[t===u.lg.WITHOUT_CONSENT&&(0,n.jsx)(d.esZ,{title:"Asset was detected before the user gave consent or without any consent. Click the info icon for more details.",children:(0,n.jsx)(d.j8w,{color:"error",closeIcon:(0,n.jsx)(d.PJP.daM,{style:{width:12,height:12}}),closeButtonLabel:"View details",onClose:()=>{null==a||a(s,t)},"data-testid":"status-badge_without-consent",children:T.X1.WITHOUT_CONSENT})}),t===u.lg.WITH_CONSENT&&(0,n.jsx)(d.esZ,{title:"Asset was detected after the user gave consent",children:(0,n.jsx)(d.j8w,{color:"success","data-testid":"status-badge_with-consent",children:T.X1.WITH_CONSENT})}),t===u.lg.EXEMPT&&(0,n.jsx)(d.esZ,{title:"Asset is valid regardless of consent",children:(0,n.jsx)(d.j8w,{"data-testid":"status-badge_consent-exempt",children:T.X1.EXEMPT})}),t===u.lg.UNKNOWN&&(0,n.jsx)(d.esZ,{title:"Did not find consent information for this asset. You may need to re-run the monitor.",children:(0,n.jsx)(d.j8w,{"data-testid":"status-badge_unknown",children:T.X1.UNKNOWN})})]})};var Q=s(70675);let ee=e=>{let{aggregateSystem:t,monitorConfigId:s,readonly:a}=e,{resource_type:l,name:r,urn:i,system:c,user_assigned_system_key:u,system_key:m}=t,[g,y]=(0,o.useState)(!1),[h,p]=(0,o.useState)(!1),[v,{isLoading:f}]=(0,Q.NA)(),{successAlert:x,errorAlert:b}=(0,X.VY)(),C=(0,o.useCallback)(e=>{e.preventDefault(),p(!0)},[]),w=async(e,t,n)=>{let a=await v({staged_resource_urn:i,monitor_config_id:s,user_assigned_system_key:e});(0,U.D4)(a)?b((0,U.e$)(a.error)):x(n?"".concat(t," has been added to your system inventory and the ").concat(l,' "').concat(r,'" has been assigned to that system.'):"".concat(l,' "').concat(r,'" has been assigned to ').concat(t,"."),"Confirmed"),y(!1)};return a?c?(0,n.jsx)(d.j8w,{"data-testid":"system-badge",color:"white",children:c}):null:(0,n.jsxs)(n.Fragment,{children:[!g&&(c?(0,n.jsxs)(d.j8w,{onClick:()=>y(!0),"data-testid":"system-badge",children:[c,(0,n.jsx)(d.PJP.I8b,{})]}):(0,n.jsx)(d.j8w,{onClick:()=>y(!0),"data-testid":"add-system-btn",addable:!0})),!!g&&(0,n.jsx)("div",{className:Y().cellBleed,children:(0,n.jsx)(j.R,{variant:"borderless",autoFocus:!0,defaultOpen:!0,defaultValue:u||m,onBlur:e=>{var t;(null===(t=e.relatedTarget)||void 0===t?void 0:t.getAttribute("id"))!=="add-new-system"&&y(!1)},onAddSystem:C,onSelect:(e,t)=>w(e,t.label),loading:f})}),h&&(0,n.jsx)(_.i,{isOpen:!0,onClose:()=>{p(!1)},onSuccessfulSubmit:(e,t)=>w(e,t,!0)})]})},et=e=>{let{monitorId:t,systemId:s,onSystemName:l,onShowBreakdown:i}=e,c=(0,a.useRouter)(),m=(0,d.pmc)(),[g,y]=(0,o.useState)(s),[h,v]=(0,o.useState)(),[f,x]=(0,o.useState)(!1),[j,_]=(0,o.useState)(!1),[b,C]=(0,o.useState)(!1),[k,N]=(0,o.useState)(0),[A,I]=(0,o.useState)(0),[O,D]=(0,o.useState)(0),{flags:P}=(0,R.hz)(),{assetConsentStatusLabels:X}=P,{filterTabs:$,activeTab:Y,onTabChange:q,activeParams:H,actionsDisabled:Q}=(0,B.Z)(s),et=(0,S.o)({sorting:{validColumns:Object.values(T.r6)}}),{columnFilters:es,pageIndex:en,pageSize:ea,resetState:eo,sortKey:el,sortOrder:er,searchQuery:ei,updateSearch:ed,updateFilters:ec,updateSorting:eu,updatePageIndex:em,updatePageSize:eg}=et,{data:ey,isLoading:eh,isFetching:ep}=(0,E.WJ)({key:t,page:en,size:ea,search:ei,sort_by:el?[el]:[T.r6.CONSENT_AGGREGATED,"urn"],sort_asc:"descend"!==er,...H,...es}),[ev,{isLoading:ef}]=(0,E.EY)(),[ex,{isLoading:ej}]=(0,E.nS)(),[e_,{isLoading:eb}]=(0,E.rs)(),[eC,{isLoading:ew}]=(0,E.sX)(),[ek,{isLoading:eS}]=(0,E.Vr)(),[eE,{isLoading:eT}]=(0,E.Tj)(),eN=ef||ej||eb||ew||eT||eS,eA=eN||s===r.Kl,{data:eI}=(0,E.ut)({monitor_config_id:t,resolved_system_id:s,diff_status:null==H?void 0:H.diff_status,search:ei,...es}),eO=(0,o.useMemo)(()=>({enableSelection:Y!==B.A.ADDED,getRowKey:e=>e.urn,isLoading:eh,isFetching:ep,dataSource:(null==ey?void 0:ey.items)||[],totalRows:(null==ey?void 0:ey.total)||0,customTableProps:{locale:{emptyText:(0,n.jsx)("div",{children:(0,n.jsx)("div",{children:"All caught up!"})})}}}),[Y,eh,ep,null==ey?void 0:ey.items,null==ey?void 0:ey.total]),eD=(0,S.V)(et,eO),eP=(0,o.useMemo)(()=>{var e;let t=[{title:"Asset",dataIndex:T.r6.NAME,key:T.r6.NAME,sorter:!0,sortOrder:el===T.r6.NAME?er:null,render:e=>(0,n.jsx)(d.lKn,{ellipsis:{tooltip:!0},style:{maxWidth:300},children:e}),fixed:"left"},{title:"Type",dataIndex:T.r6.RESOURCE_TYPE,key:T.r6.RESOURCE_TYPE,sorter:!0,sortOrder:el===T.r6.RESOURCE_TYPE?er:null,filters:(0,V.nZ)(null==eI?void 0:eI.resource_type),filteredValue:(null==es?void 0:es.resource_type)||null},{title:"System",dataIndex:T.r6.SYSTEM,key:T.r6.SYSTEM,render:(e,t)=>!!t.monitor_config_id&&(0,n.jsx)(ee,{aggregateSystem:t,monitorConfigId:t.monitor_config_id,readonly:Q||Y===B.A.IGNORED})},{title:"Categories of consent",key:T.r6.DATA_USES,menu:{items:M.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?(C(!0),D(e=>e+1)):"collapse-all"===e.key&&(C(!1),D(e=>e+1))}},filters:(0,V.nZ)(null==eI?void 0:null===(e=eI.data_uses)||void 0===e?void 0:e.filter(e=>(0,p.Z)(e))),filteredValue:(null==es?void 0:es.data_uses)||null,render:(e,t)=>(0,n.jsx)(F,{asset:t,readonly:Q||Y===B.A.IGNORED,columnState:{isExpanded:b,version:O}})},{title:"Locations",dataIndex:T.r6.LOCATIONS,key:T.r6.LOCATIONS,menu:{items:M.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?(x(!0),N(e=>e+1)):"collapse-all"===e.key&&(x(!1),N(e=>e+1))}},filters:(0,V.nZ)(null==eI?void 0:eI.locations,e=>{var t;return null!==(t=w.Z8[e])&&void 0!==t?t:e}),filteredValue:(null==es?void 0:es.locations)||null,render:e=>{var t;return(0,n.jsx)(G.Q,{values:null!==(t=null==e?void 0:e.map(e=>{var t;return{label:null!==(t=w.Z8[e])&&void 0!==t?t:e,key:e}}))&&void 0!==t?t:[],columnState:{isExpanded:f,version:k}})}},{title:"Domain",dataIndex:T.r6.DOMAIN,key:T.r6.DOMAIN},{title:"Detected on",dataIndex:T.r6.PAGE,menu:{items:M.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?(_(!0),I(e=>e+1)):"collapse-all"===e.key&&(_(!1),I(e=>e+1))}},key:T.r6.PAGE,render:e=>(0,n.jsx)(G.v,{values:e,valueSuffix:"pages",columnState:{isExpanded:j,version:A}})}];return X&&t.push({title:()=>(0,n.jsxs)(d.vyj,{children:[(0,n.jsx)("div",{children:"Compliance"}),h===u.lg.WITHOUT_CONSENT&&(0,n.jsx)(z.l,{consentStatus:{status:u.pF.ALERT,message:"One or more assets were detected without consent"}})]}),dataIndex:T.r6.CONSENT_AGGREGATED,key:T.r6.CONSENT_AGGREGATED,sorter:!0,sortOrder:el===T.r6.CONSENT_AGGREGATED?er:null,filters:(0,V.nZ)(null==eI?void 0:eI[T.r6.CONSENT_AGGREGATED],e=>{var t;return null!==(t=({with_consent:T.X1.WITH_CONSENT,without_consent:T.X1.WITHOUT_CONSENT,exempt:T.X1.EXEMPT,unknown:T.X1.UNKNOWN})[e])&&void 0!==t?t:e}),filteredValue:(null==es?void 0:es[T.r6.CONSENT_AGGREGATED])||null,render:(e,t)=>(0,n.jsx)(J,{consentAggregated:null!=e?e:u.lg.UNKNOWN,stagedResource:t,onShowBreakdown:i})}),Q||t.push({title:"Actions",key:T.r6.ACTIONS,fixed:"right",render:(e,t)=>(0,n.jsx)(K,{asset:t,onTabChange:q})}),t},[el,er,eI,es,X,Q,Y,b,f,j,O,k,A,h,i,q]);(0,o.useEffect)(()=>{if(ey){var e;let t=(null===(e=ey.items[0])||void 0===e?void 0:e.system)||g||s||"";y(t),null==l||l(t)}},[ey,s,l,g]),(0,o.useEffect)(()=>{if((null==ey?void 0:ey.items)&&!h){var e;v(null===(e=ey.items.find(e=>e.consent_aggregated===u.lg.WITHOUT_CONSENT))||void 0===e?void 0:e.consent_aggregated)}},[ey,h]);let{selectedKeys:eL,selectedRows:eR,resetSelections:eU}=eD,eG=(0,o.useCallback)(async()=>{var e,t;let s=await ev({urnList:eL}),n=(null===(e=eR[0])||void 0===e?void 0:e.user_assigned_system_key)||(null===(t=eR[0])||void 0===t?void 0:t.system_key),a=eR.every(e=>(e.user_assigned_system_key||e.system_key)===n)?n:void 0;(0,U.D4)(s)?m((0,Z.Vo)((0,U.e$)(s.error))):(m((0,Z.t5)((0,W._)("".concat(eL.length," assets from ").concat(g," have been added to the system inventory."),a?()=>c.push("".concat(r.So,"/configure/").concat(a,"#assets")):()=>c.push(r.So)))),eU())},[ev,eL,eR,g,m,c,eU]),eM=(0,o.useCallback)(async e=>{if("string"==typeof(null==e?void 0:e.value)){let s=await eC({monitorId:t,urnList:eL,systemKey:e.value});(0,U.D4)(s)?m((0,Z.Vo)((0,U.e$)(s.error))):m((0,Z.t5)("".concat(eL.length," assets have been assigned to ").concat(e.label,"."),"Confirmed"))}},[eC,t,eL,m]),eZ=(0,o.useCallback)(async e=>{if(!eR.length)return;let s=eR.map(t=>{let s=L()([...t.user_assigned_data_uses||t.data_uses||[],...e]);return{urn:t.urn,user_assigned_data_uses:s}}),n=await ek({monitorId:t,assets:s});(0,U.D4)(n)?m((0,Z.Vo)((0,U.e$)(n.error))):m((0,Z.t5)("Consent categories added to ".concat(eL.length," assets").concat(g?" from ".concat(g):"","."),"Confirmed"))},[eR,ek,t,eL,g,m]),eV=(0,o.useCallback)(async()=>{let e=await ex({urnList:eL});(0,U.D4)(e)?m((0,Z.Vo)((0,U.e$)(e.error))):(m((0,Z.t5)(g===r.Kl?"".concat(eL.length," uncategorized assets have been ignored and will not appear in future scans."):"".concat(eL.length," assets from ").concat(g," have been ignored and will not appear in future scans."),"Confirmed")),eU())},[ex,eL,g,m,eU]),ez=(0,o.useCallback)(async()=>{let e=await eE({urnList:eL});(0,U.D4)(e)?m((0,Z.Vo)((0,U.e$)(e.error))):(m((0,Z.t5)("".concat(eL.length," assets have been restored and will appear in future scans."),"Confirmed")),eU())},[eE,eL,m,eU]),eW=(0,o.useCallback)(async()=>{let e=(null==ey?void 0:ey.items.length)||0,n=await e_({monitor_config_key:t,resolved_system_ids:[s]});(0,U.D4)(n)?m((0,Z.Vo)((0,U.e$)(n.error))):(c.push("".concat(r.vi,"/").concat(t)),m((0,Z.t5)("".concat(e," assets from ").concat(g," have been added to the system inventory."),"Confirmed")),eU())},[null==ey?void 0:ey.items.length,e_,t,s,c,m,g,eU]),eB=(0,o.useCallback)(async e=>{await q(e),eo(),eU()},[q,eo,eU]);return{columns:eP,data:ey,isLoading:eh,isFetching:ep,tableState:et,searchQuery:ei,updateSearch:ed,updateFilters:ec,updateSorting:eu,updatePageIndex:em,updatePageSize:eg,resetState:eo,tableProps:eD.tableProps,selectionProps:eD.selectionProps,filterTabs:$,activeTab:Y,handleTabChange:eB,activeParams:H,actionsDisabled:Q,selectedRows:eR,selectedUrns:eL,hasSelectedRows:eD.hasSelectedRows,resetSelections:eU,systemName:g,firstItemConsentStatus:h,handleBulkAdd:eG,handleBulkAssignSystem:eM,handleBulkAddDataUse:eZ,handleBulkIgnore:eV,handleBulkRestore:ez,handleAddAll:eW,anyBulkActionIsLoading:eN,isAddingResults:ef,isIgnoringResults:ej,isAddingAllResults:eb,isBulkUpdatingSystem:ew,isBulkAddingDataUses:eS,isRestoringResults:eT,disableAddAll:eA}},es=e=>{var t;let{monitorId:s,systemId:a,onSystemName:l}=e,[r,i]=(0,o.useState)(!1),[g,y]=(0,o.useState)(!1),[h,p]=(0,o.useState)(null),{columns:v,searchQuery:f,updateSearch:j,resetState:_,tableProps:b,selectionProps:w,filterTabs:k,activeTab:S,handleTabChange:E,activeParams:T,actionsDisabled:N,selectedUrns:A,hasSelectedRows:I,resetSelections:O,handleBulkAdd:P,handleBulkAssignSystem:L,handleBulkAddDataUse:R,handleBulkIgnore:U,handleBulkRestore:G,handleAddAll:M,anyBulkActionIsLoading:Z,isAddingAllResults:V,isBulkUpdatingSystem:z,isBulkAddingDataUses:W,disableAddAll:B}=et({monitorId:s,systemId:a,onSystemName:l,onShowBreakdown:(e,t)=>{p({stagedResource:e,status:t})}}),K=async e=>{await L(e),i(!1)},X=async e=>{await R(e),y(!1)};return s&&a?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.Niu,{"aria-label":"Asset state filter",mode:"horizontal",items:k.map(e=>({key:e.hash,label:e.label})),selectedKeys:[S],onClick:async e=>{await E(e.key)},className:"mb-4","data-testid":"asset-state-filter"}),(0,n.jsxs)(d.jqI,{justify:"space-between",align:"center",className:"mb-4",children:[(0,n.jsx)(m.f,{value:f,onChange:j,placeholder:"Search by asset name..."}),(0,n.jsxs)(d.vyj,{size:"large",children:[I&&(0,n.jsx)(c.a,{count:A.length}),(0,n.jsxs)(d.vyj,{size:"small",children:[(0,n.jsx)(d.wpx,{onClick:()=>{_(),O()},"data-testid":"clear-filters",children:"Clear filters"}),(0,n.jsx)(d.S0p,{overlayClassName:"bulk-actions-menu-dropdown",menu:{items:[...(null==T?void 0:null===(t=T.diff_status)||void 0===t?void 0:t.includes(u.LL.MUTED))?[{key:"restore",label:"Restore",onClick:G}]:[{key:"add",label:"Add",onClick:P},{key:"add-data-use",label:"Add consent category",onClick:()=>y(!0)},{key:"assign-system",label:"Assign system",onClick:()=>i(!0)},{type:"divider"},{key:"ignore",label:"Ignore",onClick:U}]]},trigger:["click"],children:(0,n.jsx)(d.wpx,{icon:(0,n.jsx)(d.PJP._ME,{}),iconPosition:"end",loading:Z,"data-testid":"bulk-actions-menu",disabled:!I||Z||N,type:"primary",children:"Actions"})}),(0,n.jsx)(d.esZ,{title:B?"These assets require a system before you can add them to the inventory.":void 0,children:(0,n.jsx)(d.wpx,{onClick:M,disabled:B,loading:V,type:"primary",icon:(0,n.jsx)(d.PJP.MCw,{}),iconPosition:"end","data-testid":"add-all",children:"Add all"})})]})]})]}),(0,n.jsx)(d.V5H,{...b,columns:v,rowSelection:w,locale:{emptyText:(0,n.jsx)(d.oj8,{image:d.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})},"aria-labelledby":"breadcrumb-current-page"}),(0,n.jsx)(C,{isOpen:r,onClose:()=>{i(!1)},onSave:K,isSaving:z}),(0,n.jsx)(x,{isOpen:g,onClose:()=>{y(!1)},onSave:X,isSaving:W}),h&&(0,n.jsx)(D,{isOpen:!!h,stagedResource:h.stagedResource,status:h.status,onCancel:()=>{p(null)}})]}):null};var en=()=>{let e=(0,a.useRouter)(),t=decodeURIComponent(e.query.monitorId),s=decodeURIComponent(e.query.systemId),[d,c]=(0,o.useState)(s===r.Kl?"Uncategorized assets":s);return(0,n.jsxs)(l.Z,{title:"Action center - Discovered assets",children:[(0,n.jsx)(i.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:r.vi},{title:t,href:"".concat(r.vi,"/").concat(t)},{title:s===r.Kl?"Uncategorized assets":d}]}),(0,n.jsx)(es,{monitorId:t,systemId:s,onSystemName:c})]})}},31883:function(e,t,s){"use strict";s.d(t,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=s(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,8765,9278,5163,1841,401,6780,7725,7929,2888,9774,179],function(){return e(e.s=25654)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2423],{66726:function(a,e,n){var t=n(11611),i=n(82846),s=n(91936),o=Math.max,r=Math.min;a.exports=function(a,e,n){var l,_,F,u,d,c,S=0,m=!1,C=!1,h=!0;if("function"!=typeof a)throw TypeError("Expected a function");function v(e){var n=l,t=_;return l=_=void 0,S=e,u=a.apply(t,n)}function y(a){var n=a-c,t=a-S;return void 0===c||n>=e||n<0||C&&t>=F}function A(){var a,n,t,s=i();if(y(s))return I(s);d=setTimeout(A,(a=s-c,n=s-S,t=e-a,C?r(t,F-n):t))}function I(a){return(d=void 0,h&&l)?v(a):(l=_=void 0,u)}function N(){var a,n=i(),t=y(n);if(l=arguments,_=this,c=n,t){if(void 0===d)return S=a=c,d=setTimeout(A,e),m?v(a):u;if(C)return clearTimeout(d),d=setTimeout(A,e),v(c)}return void 0===d&&(d=setTimeout(A,e)),u}return e=s(e)||0,t(n)&&(m=!!n.leading,F=(C="maxWait"in n)?o(s(n.maxWait)||0,e):F,h="trailing"in n?!!n.trailing:h),N.cancel=function(){void 0!==d&&clearTimeout(d),S=0,l=c=_=d=void 0},N.flush=function(){return void 0===d?u:I(i())},N}},82846:function(a,e,n){var t=n(77400);a.exports=function(){return t.Date.now()}},86850:function(a,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/[monitorId]",function(){return n(12109)}])},30952:function(a,e,n){"use strict";n.d(e,{f:function(){return l}});var t=n(24246),i=n(66726),s=n.n(i),o=n(27378),r=n(26917);let l=a=>{let{value:e,onChange:n,placeholder:i,...l}=a,[_,F]=(0,o.useState)(e);(0,o.useEffect)(()=>{F(e||"")},[e]);let u=s()(n,500),d=(0,o.useCallback)(a=>{F(a),u(a)},[]);return(0,t.jsx)(r.Z,{value:_,onChange:d,onClear:()=>{F(""),n("")},placeholder:i,...l})}},26089:function(a,e,n){"use strict";var t=n(24246),i=n(96306),s=n(99830),o=n.n(s);e.Z=a=>{let{onClick:e,children:n}=a;return(0,t.jsx)(i.wpx,{onClick:e,type:"link",role:"link",size:"small",className:o().toastLink,children:n})}},8411:function(a,e,n){"use strict";n.d(e,{NA:function(){return s},Z8:function(){return i}});var t=n(21910);let i={[t._F.ER]:"Eritrea",[t._F.DJ]:"Djibouti",[t._F.MR]:"Mauritania",[t._F.NA]:"Namibia",[t._F.GH]:"Ghana",[t._F.SS]:"South Sudan",[t._F.SC]:"Seychelles",[t._F.IO]:"British Indian Ocean Territory",[t._F.GQ]:"Equatorial Guinea",[t._F.AO]:"Angola",[t._F.CG]:"Republic of the Congo",[t._F.BW]:"Botswana",[t._F.BI]:"Burundi",[t._F.DZ]:"Algeria",[t._F.TD]:"Chad",[t._F.NG]:"Nigeria",[t._F.TZ]:"Tanzania",[t._F.EH]:"Western Sahara",[t._F.SN]:"Senegal",[t._F.LR]:"Liberia",[t._F.ZA]:"South Africa",[t._F.CV]:"Cape Verde",[t._F.GM]:"Gambia",[t._F.SD]:"Sudan",[t._F.KM]:"Comoros",[t._F.SZ]:"Eswatini",[t._F.UG]:"Uganda",[t._F.MG]:"Madagascar",[t._F.RW]:"Rwanda",[t._F.CD]:"DR Congo",[t._F.CM]:"Cameroon",[t._F.SH]:"Saint Helena, Ascension and Tristan da Cunha",[t._F.TG]:"Togo",[t._F.MU]:"Mauritius",[t._F.NE]:"Niger",[t._F.BJ]:"Benin",[t._F.EG]:"Egypt",[t._F.LS]:"Lesotho",[t._F.ET]:"Ethiopia",[t._F.MA]:"Morocco",[t._F.YT]:"Mayotte",[t._F.BF]:"Burkina Faso",[t._F.RE]:"R\xe9union",[t._F.ST]:"S\xe3o Tom\xe9 and Pr\xedncipe",[t._F.CF]:"Central African Republic",[t._F.MZ]:"Mozambique",[t._F.MW]:"Malawi",[t._F.ML]:"Mali",[t._F.ZM]:"Zambia",[t._F.LY]:"Libya",[t._F.GW]:"Guinea-Bissau",[t._F.SO]:"Somalia",[t._F.KE]:"Kenya",[t._F.GN]:"Guinea",[t._F.ZW]:"Zimbabwe",[t._F.TN]:"Tunisia",[t._F.SL]:"Sierra Leone",[t._F.GA]:"Gabon",[t._F.CI]:"Ivory Coast",[t._F.JO]:"Jordan",[t._F.PK]:"Pakistan",[t._F.KP]:"North Korea",[t._F.MO]:"Macau",[t._F.AM]:"Armenia",[t._F.SY]:"Syria",[t._F.TJ]:"Tajikistan",[t._F.SA]:"Saudi Arabia",[t._F.KR]:"South Korea",[t._F.NP]:"Nepal",[t._F.PH]:"Philippines",[t._F.IQ]:"Iraq",[t._F.LB]:"Lebanon",[t._F.MN]:"Mongolia",[t._F.PS]:"Palestine",[t._F.YE]:"Yemen",[t._F.JP]:"Japan",[t._F.KZ]:"Kazakhstan",[t._F.LK]:"Sri Lanka",[t._F.MM]:"Myanmar",[t._F.KG]:"Kyrgyzstan",[t._F.CN]:"China",[t._F.AF]:"Afghanistan",[t._F.OM]:"Oman",[t._F.IN]:"India",[t._F.LA]:"Laos",[t._F.UZ]:"Uzbekistan",[t._F.MV]:"Maldives",[t._F.ID]:"Indonesia",[t._F.VN]:"Vietnam",[t._F.MY]:"Malaysia",[t._F.TW]:"Taiwan",[t._F.KH]:"Cambodia",[t._F.AE]:"United Arab Emirates",[t._F.HK]:"Hong Kong",[t._F.GE]:"Georgia (Country)",[t._F.BD]:"Bangladesh",[t._F.KW]:"Kuwait",[t._F.TM]:"Turkmenistan",[t._F.QA]:"Qatar",[t._F.BH]:"Bahrain",[t._F.BN]:"Brunei",[t._F.TH]:"Thailand",[t._F.BT]:"Bhutan",[t._F.SG]:"Singapore",[t._F.IL]:"Israel",[t._F.AZ]:"Azerbaijan",[t._F.TL]:"Timor-Leste",[t._F.IR]:"Iran",[t._F.TR]:"Turkey",[t._F.MK]:"North Macedonia",[t._F.IE]:"Ireland",[t._F.DK]:"Denmark",[t._F.SK]:"Slovakia",[t._F.MD]:"Moldova",[t._F.AX]:"\xc5land Islands",[t._F.PL]:"Poland",[t._F.BA]:"Bosnia and Herzegovina",[t._F.SM]:"San Marino",[t._F.CZ]:"Czechia",[t._F.EE]:"Estonia",[t._F.XK]:"Kosovo",[t._F.FO]:"Faroe Islands",[t._F.SJ]:"Svalbard and Jan Mayen",[t._F.GG]:"Guernsey",[t._F.FR]:"France",[t._F.NL]:"Netherlands",[t._F.FI]:"Finland",[t._F.PT]:"Portugal",[t._F.DE]:"Germany",[t._F.MT]:"Malta",[t._F.JE]:"Jersey",[t._F.IS]:"Iceland",[t._F.ES]:"Spain",[t._F.GI]:"Gibraltar",[t._F.NO]:"Norway",[t._F.CY]:"Cyprus",[t._F.RS]:"Serbia",[t._F.LT]:"Lithuania",[t._F.MC]:"Monaco",[t._F.LU]:"Luxembourg",[t._F.UA]:"Ukraine",[t._F.IM]:"Isle of Man",[t._F.RO]:"Romania",[t._F.BE]:"Belgium",[t._F.SE]:"Sweden",[t._F.ME]:"Montenegro",[t._F.LV]:"Latvia",[t._F.VA]:"Vatican City",[t._F.AT]:"Austria",[t._F.AL]:"Albania",[t._F.LI]:"Liechtenstein",[t._F.GR]:"Greece",[t._F.IT]:"Italy",[t._F.AD]:"Andorra",[t._F.GB]:"United Kingdom",[t._F.RU]:"Russia",[t._F.SI]:"Slovenia",[t._F.BY]:"Belarus",[t._F.CH]:"Switzerland",[t._F.HU]:"Hungary",[t._F.BG]:"Bulgaria",[t._F.HR]:"Croatia",[t._F.TC]:"Turks and Caicos Islands",[t._F.CW]:"Cura\xe7ao",[t._F.GP]:"Guadeloupe",[t._F.UM]:"United States Minor Outlying Islands",[t._F.GT]:"Guatemala",[t._F.PM]:"Saint Pierre and Miquelon",[t._F.BQ]:"Caribbean Netherlands",[t._F.GL]:"Greenland",[t._F.SX]:"Sint Maarten",[t._F.PA]:"Panama",[t._F.AW]:"Aruba",[t._F.MQ]:"Martinique",[t._F.AG]:"Antigua and Barbuda",[t._F.BM]:"Bermuda",[t._F.CU]:"Cuba",[t._F.GD]:"Grenada",[t._F.NI]:"Nicaragua",[t._F.LC]:"Saint Lucia",[t._F.KN]:"Saint Kitts and Nevis",[t._F.DO]:"Dominican Republic",[t._F.VC]:"Saint Vincent and the Grenadines",[t._F.BZ]:"Belize",[t._F.HT]:"Haiti",[t._F.JM]:"Jamaica",[t._F.BS]:"Bahamas",[t._F.MX]:"Mexico",[t._F.MF]:"Saint Martin",[t._F.SV]:"El Salvador",[t._F.BL]:"Saint Barth\xe9lemy",[t._F.AI]:"Anguilla",[t._F.MS]:"Montserrat",[t._F.VG]:"British Virgin Islands",[t._F.BB]:"Barbados",[t._F.HN]:"Honduras",[t._F.KY]:"Cayman Islands",[t._F.DM]:"Dominica",[t._F.TT]:"Trinidad and Tobago",[t._F.CR]:"Costa Rica",[t._F.SR]:"Suriname",[t._F.CX]:"Christmas Island",[t._F.WS]:"Samoa",[t._F.PF]:"French Polynesia",[t._F.AS]:"American Samoa",[t._F.NC]:"New Caledonia",[t._F.TK]:"Tokelau",[t._F.PW]:"Palau",[t._F.KI]:"Kiribati",[t._F.VU]:"Vanuatu",[t._F.PN]:"Pitcairn Islands",[t._F.CK]:"Cook Islands",[t._F.FJ]:"Fiji",[t._F.PG]:"Papua New Guinea",[t._F.MP]:"Northern Mariana Islands",[t._F.NU]:"Niue",[t._F.TV]:"Tuvalu",[t._F.NF]:"Norfolk Island",[t._F.TO]:"Tonga",[t._F.FM]:"Micronesia",[t._F.SB]:"Solomon Islands",[t._F.NR]:"Nauru",[t._F.WF]:"Wallis and Futuna",[t._F.GU]:"Guam",[t._F.AU]:"Australia",[t._F.NZ]:"New Zealand",[t._F.MH]:"Marshall Islands",[t._F.CC]:"Cocos (Keeling) Islands",[t._F.VE]:"Venezuela",[t._F.PY]:"Paraguay",[t._F.BR]:"Brazil",[t._F.CO]:"Colombia",[t._F.PE]:"Peru",[t._F.CL]:"Chile",[t._F.UY]:"Uruguay",[t._F.AR]:"Argentina",[t._F.GY]:"Guyana",[t._F.BO]:"Bolivia",[t._F.GF]:"French Guiana",[t._F.EC]:"Ecuador",[t._F.FK]:"Falkland Islands",[t._F.US_AL]:"Alabama",[t._F.US_AK]:"Alaska",[t._F.US_AZ]:"Arizona",[t._F.US_AR]:"Arkansas",[t._F.US_CA]:"California",[t._F.US_CO]:"Colorado",[t._F.US_CT]:"Connecticut",[t._F.US_DE]:"Delaware",[t._F.US_DC]:"District of Columbia (DC)",[t._F.US_FL]:"Florida",[t._F.US_GA]:"Georgia",[t._F.US_HI]:"Hawaii",[t._F.US_ID]:"Idaho",[t._F.US_IL]:"Illinois",[t._F.US_IN]:"Indiana",[t._F.US_IA]:"Iowa",[t._F.US_KS]:"Kansas",[t._F.US_KY]:"Kentucky",[t._F.US_LA]:"Louisiana",[t._F.US_ME]:"Maine",[t._F.US_MD]:"Maryland",[t._F.US_MA]:"Massachusetts",[t._F.US_MI]:"Michigan",[t._F.US_MN]:"Minnesota",[t._F.US_MS]:"Mississippi",[t._F.US_MO]:"Missouri",[t._F.US_MT]:"Montana",[t._F.US_NE]:"Nebraska",[t._F.US_NV]:"Nevada",[t._F.US_NH]:"New Hampshire",[t._F.US_NJ]:"New Jersey",[t._F.US_NM]:"New Mexico",[t._F.US_NY]:"New York",[t._F.US_NC]:"North Carolina",[t._F.US_ND]:"North Dakota",[t._F.US_OH]:"Ohio",[t._F.US_OK]:"Oklahoma",[t._F.US_OR]:"Oregon",[t._F.US_PA]:"Pennsylvania",[t._F.US_PR]:"Puerto Rico",[t._F.US_RI]:"Rhode Island",[t._F.US_SC]:"South Carolina",[t._F.US_SD]:"South Dakota",[t._F.US_TN]:"Tennessee",[t._F.US_TX]:"Texas",[t._F.US_UT]:"Utah",[t._F.US_VA]:"Virginia",[t._F.US_VI]:"United States Virgin Islands",[t._F.US_VT]:"Vermont",[t._F.US_WA]:"Washington",[t._F.US_WV]:"West Virginia",[t._F.US_WI]:"Wisconsin",[t._F.US_WY]:"Wyoming",[t._F.CA_AB]:"Alberta",[t._F.CA_BC]:"British Columbia",[t._F.CA_MB]:"Manitoba",[t._F.CA_NB]:"New Brunswick",[t._F.CA_NL]:"Newfoundland and Labrador",[t._F.CA_NS]:"Nova Scotia",[t._F.CA_ON]:"Ontario",[t._F.CA_PE]:"Prince Edward Island",[t._F.CA_QC]:"Quebec",[t._F.CA_SK]:"Saskatchewan",[t._F.CA_NT]:"Northwest Territories",[t._F.CA_NU]:"Nunavut",[t._F.CA_YT]:"Yukon",[t._F.CA]:"Canada",[t._F.US]:"United States",[t._F.MEXICO_CENTRAL_AMERICA]:"Mexico and Central America",[t._F.CARIBBEAN]:"Caribbean",[t._F.EEA]:"European Economic Area (EEA)",[t._F.NON_EEA]:"Non European Economic Area",[t._F.GLOBAL]:"Global"},s=new Map(Object.entries(i));Object.entries(i).map(a=>({value:a[0],label:a[1]}))},99640:function(a,e,n){"use strict";n.d(e,{Z:function(){return _}});var t=n(24246),i=n(96306),s=n(79894),o=n.n(s);let{Link:r,Text:l}=i.AntTypography,_=a=>{let{href:e,children:n,...i}=a;return e?(0,t.jsx)(o(),{href:e,passHref:!0,legacyBehavior:!0,children:(0,t.jsx)(r,{strong:!0,ellipsis:!0,onClick:a=>a.stopPropagation(),...i,children:n})}):(0,t.jsx)(l,{strong:!0,ellipsis:!0,...i,children:n})}},14908:function(a,e,n){"use strict";var t=n(86677),i=n(27378);let s=a=>a.startsWith("#")?a.slice(1):a;e.Z=a=>{let{tabKeys:e,initialTab:n}=a,o=(0,t.useRouter)(),r=o.asPath.split("#")[1]||e[0],[l,_]=(0,i.useState)(r);return(0,i.useEffect)(()=>{n&&e.includes(n)&&_(n)},[n,e,o.isReady]),{activeTab:l,onTabChange:(0,i.useCallback)(async a=>{if(!e.includes(a)){await o.replace({pathname:o.pathname,query:o.query,hash:void 0}),_(e[0]);return}o.isReady&&(await o.replace({pathname:o.pathname,query:o.query,hash:s(a)},void 0,{shallow:!0}),_(a))},[o,e])}}},76904:function(a,e,n){"use strict";n.d(e,{dK:function(){return u},Rv:function(){return m},$P:function(){return c},zj:function(){return C},Kr:function(){return h},q1:function(){return d},QL:function(){return v}});var t=n(24246),i=n(96306),s=n(3124),o=n.n(s);let r=a=>{let{...e}=a;return(0,t.jsx)("svg",{viewBox:"0 0 8 8",focusable:"false",...e,children:(0,t.jsx)("path",{fill:"currentColor",d:"M7.23192 8H8V7.23192V1.85539V1.08731H6.46385V1.85539V5.37654L1.62976 0.544855L1.08731 0L0 1.08731L0.542454 1.62976L5.37654 6.46385H1.85539H1.08731V8H1.85539H7.23192Z"})})},l=a=>{let{...e}=a;return(0,t.jsx)("svg",{viewBox:"0 0 8 8",focusable:"false",...e,children:(0,t.jsx)("path",{fill:"currentColor",d:"M7.23192 0H8V0.768077V6.14461V6.91269H6.46385V6.14461V2.62346L1.62976 7.45515L1.08731 8L0 6.91269L0.542454 6.37024L5.37654 1.53615H1.85539H1.08731V0H1.85539H7.23192Z"})})},_=a=>{let{...e}=a;return(0,t.jsx)("svg",{viewBox:"0 0 9 10",focusable:"false",...e,children:(0,t.jsx)("path",{fill:"currentColor",d:"M0 0.5V5L4.5 9.5L9 5L4.5 0.5H0ZM2.25 2.10714C2.4205 2.10714 2.58401 2.17487 2.70457 2.29543C2.82513 2.41599 2.89286 2.5795 2.89286 2.75C2.89286 2.9205 2.82513 3.08401 2.70457 3.20457C2.58401 3.32513 2.4205 3.39286 2.25 3.39286C2.0795 3.39286 1.91599 3.32513 1.79543 3.20457C1.67487 3.08401 1.60714 2.9205 1.60714 2.75C1.60714 2.5795 1.67487 2.41599 1.79543 2.29543C1.91599 2.17487 2.0795 2.10714 2.25 2.10714Z"})})};var F=n(28278);let u=()=>(0,t.jsx)(l,{style:{color:o().FIDESUI_SUCCESS},className:"size-2","data-testid":"add-icon"}),d=()=>(0,t.jsx)(r,{style:{color:o().FIDESUI_ERROR},className:"size-2","data-testid":"remove-icon"}),c=()=>(0,t.jsx)(_,{style:{color:o().FIDESUI_WARNING},className:"size-3","data-testid":"classify-icon"}),S=a=>{let{color:e,...n}=a;return(0,t.jsx)(i.PJP.fRw,{style:{color:e},className:"size-2",...n})},m=()=>(0,t.jsx)(S,{color:o().FIDESUI_INFO,"data-testid":"change-icon"}),C=()=>(0,t.jsx)(S,{color:o().FIDESUI_SUCCESS,"data-testid":"monitored-icon"}),h=()=>(0,t.jsx)(S,{color:o().FIDESUI_ERROR,"data-testid":"muted-icon"}),v={[F.E.ADDITION]:(0,t.jsx)(u,{}),[F.E.REMOVAL]:(0,t.jsx)(d,{}),[F.E.CLASSIFICATION]:(0,t.jsx)(c,{}),[F.E.CHANGE]:(0,t.jsx)(m,{}),[F.E.MONITORED]:(0,t.jsx)(C,{}),[F.E.MUTED]:(0,t.jsx)(h,{}),[F.E.IN_PROGRESS]:(0,t.jsx)(()=>(0,t.jsx)(S,{color:o().FIDESUI_WARNING,"data-testid":"in-progress-icon"}),{}),[F.E.NONE]:null}},28278:function(a,e,n){"use strict";var t,i;n.d(e,{E:function(){return t}}),(i=t||(t={})).ADDITION="Addition",i.CHANGE="Change",i.REMOVAL="Removal",i.CLASSIFICATION="Classification",i.IN_PROGRESS="Classifying",i.MONITORED="Monitoring",i.MUTED="Unmonitored",i.NONE="--"},12109:function(a,e,n){"use strict";n.r(e),n.d(e,{default:function(){return w}});var t=n(24246),i=n(86677),s=n(35287),o=n(77830),r=n(58754),l=n(96306),_=n(25415),F=n(21910),u=n(30952),d=n(27378),c=n(812),S=n(8125),m=n(46628),C=n(37059),h=n(98145),v=n(9320),y=n(88708),A=n(8411),I=n(26070),N=n(3110),M=n(54762);let f=a=>{let{monitorId:e,system:n,allowIgnore:s,onTabChange:r}=a,[_,{isLoading:F}]=(0,C.rs)(),[u,{isLoading:d}]=(0,C.nP)(),S=(0,i.useRouter)(),h=(0,l.pmc)(),A=F||d,{id:I,name:N,system_key:M,total_updates:f}=n,p=async()=>{let a=await _({monitor_config_key:e,resolved_system_ids:[I]});if((0,c.D4)(a))h((0,m.Vo)((0,c.e$)(a.error)));else{let a="".concat(o.So,"/configure/").concat(M,"#assets");h((0,m.t5)((0,v._)(M?"".concat(f," assets from ").concat(N," have been added to the system inventory."):"".concat(N," and ").concat(f," assets have been added to the system inventory. ").concat(N," is now configured for consent."),M?()=>S.push(a):void 0)))}},E=async()=>{let a=await u({monitor_config_key:e,resolved_system_ids:[I||o.Kl]});(0,c.D4)(a)?h((0,m.Vo)((0,c.e$)(a.error))):h((0,m.t5)((0,v._)(N?"".concat(f," assets from ").concat(N," have been ignored and will not appear in future scans."):"".concat(f," uncategorized assets have been ignored and will not appear in future scans."),async()=>{await r(y.A.IGNORED)})))};return(0,t.jsxs)(l.vyj,{children:[(0,t.jsx)(l.esZ,{title:n.id?void 0:"These assets must be categorized before you can add them to the inventory.",children:(0,t.jsx)(l.wpx,{"data-testid":"add-btn",size:"small",onClick:p,disabled:!n.id||A,loading:F,children:"Add"})}),s&&(0,t.jsx)(l.wpx,{"data-testid":"ignore-btn",size:"small",onClick:E,disabled:A,loading:d,children:"Ignore"})]})};var p=n(99640),E=n(76904);let g=a=>{let{system:e,rowClickUrl:n}=a,i=null==n?void 0:n(e);return(0,t.jsxs)(l.vyj,{className:"max-w-[250px] flex-nowrap",children:[!e.system_key&&(0,t.jsx)(l.esZ,{title:"New system",children:(0,t.jsx)("span",{children:E.QL.Change})}),(0,t.jsx)(p.Z,{href:i,"data-testid":i?"system-name-link":"system-name-text",children:e.name||"Uncategorized assets"}),(0,t.jsx)(M.l,{consentStatus:e.consent_status})]})};var U=n(34929),b=n(2525),x=n(78238),T=a=>{var e,n;let{system:i,columnState:s}=a,{getDataUseDisplayName:o}=(0,U.Z)(),r=(null!==(n=null===(e=i.data_uses)||void 0===e?void 0:e.filter(a=>(0,x.Z)(a)))&&void 0!==n?n:[]).map(a=>({label:o(a),key:a}));return(0,t.jsx)(b.Q,{values:r,columnState:s})};let k=a=>{let{monitorId:e,readonly:n,allowIgnore:i,onTabChange:s,consentStatus:o,rowClickUrl:r}=a,[_,F]=(0,d.useState)(!1),[u,c]=(0,d.useState)(!1),[S,m]=(0,d.useState)(!1),[C,v]=(0,d.useState)(0),[y,p]=(0,d.useState)(0),[E,U]=(0,d.useState)(0);return{columns:(0,d.useMemo)(()=>{let a=[{title:()=>(0,t.jsxs)(l.vyj,{children:[(0,t.jsx)("div",{children:"System"}),(0,t.jsx)(M.l,{consentStatus:o})]}),dataIndex:"name",key:h.vQ.SYSTEM_NAME,fixed:"left",render:(a,e)=>(0,t.jsx)(g,{system:e,rowClickUrl:r})},{title:"Assets",dataIndex:"total_updates",key:h.vQ.TOTAL_UPDATES},{title:"Categories of consent",key:h.vQ.DATA_USE,menu:{items:N.DI,onClick:a=>{a.domEvent.stopPropagation(),"expand-all"===a.key?(m(!0),U(a=>a+1)):"collapse-all"===a.key&&(m(!1),U(a=>a+1))}},render:(a,e)=>(0,t.jsx)(T,{system:e,columnState:{isExpanded:S,version:E}})},{title:"Locations",menu:{items:N.DI,onClick:a=>{a.domEvent.stopPropagation(),"expand-all"===a.key?(F(!0),v(a=>a+1)):"collapse-all"===a.key&&(F(!1),v(a=>a+1))}},dataIndex:"locations",key:h.vQ.LOCATIONS,render:a=>{var e;return(0,t.jsx)(I.Q,{values:null!==(e=null==a?void 0:a.map(a=>{var e;return{label:null!==(e=A.Z8[a])&&void 0!==e?e:a,key:a}}))&&void 0!==e?e:[],columnState:{isExpanded:_,isWrapped:!0,version:C}})}},{title:"Domains",menu:{items:N.DI,onClick:a=>{a.domEvent.stopPropagation(),"expand-all"===a.key?(c(!0),p(a=>a+1)):"collapse-all"===a.key&&(c(!1),p(a=>a+1))}},dataIndex:"domains",key:h.vQ.DOMAINS,render:a=>(0,t.jsx)(I.v,{values:a,valueSuffix:"domains",columnState:{isExpanded:u,version:y}})}];return n||a.push({title:"Actions",key:h.vQ.ACTIONS,fixed:"right",render:(a,n)=>(0,t.jsx)(f,{system:n,monitorId:e,allowIgnore:i,onTabChange:s})}),a},[n,o,r,S,_,u,E,C,y,e,i,s])}},L=a=>{let{monitorId:e}=a,n=(0,i.useRouter)(),s=(0,l.pmc)(),[r,_]=(0,d.useState)(),{filterTabs:u,activeTab:A,onTabChange:I,activeParams:N,actionsDisabled:M}=(0,y.Z)(),f=(0,S.o)({sorting:{validColumns:Object.values(h.vQ)}}),{pageIndex:p,pageSize:E,searchQuery:g,updateSearch:U,resetState:b}=f,{data:x,isLoading:T,isFetching:L}=(0,C.wi)({key:e,page:p,size:E,search:g,...N}),[j,{isLoading:w}]=(0,C.rs)(),[R,{isLoading:G}]=(0,C.nP)(),D=(0,d.useCallback)(a=>{var e,n,t;return null!==(t=null!==(n=null!==(e=a.id)&&void 0!==e?e:a.vendor_id)&&void 0!==n?n:a.name)&&void 0!==t?t:o.Kl},[]),P=(0,d.useCallback)(a=>{var n;return"".concat(o.vi,"/").concat(e,"/").concat(null!==(n=a.id)&&void 0!==n?n:o.Kl).concat(A?"#".concat(A):"")},[e,A]),B=(0,d.useMemo)(()=>({enableSelection:!0,getRowKey:D,isLoading:T,isFetching:L,dataSource:(null==x?void 0:x.items)||[],totalRows:(null==x?void 0:x.total)||0,customTableProps:{locale:{emptyText:(0,t.jsx)(l.oj8,{image:l.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})}}}),[D,T,L,null==x?void 0:x.items,null==x?void 0:x.total]),O=(0,S.V)(f,B),{selectedRows:K,resetSelections:V}=O,H=(0,d.useCallback)(async a=>{_(void 0),await I(a),b(),V()},[I,b,V]),{columns:Z}=k({monitorId:e,onTabChange:H,readonly:M,allowIgnore:!N.diff_status.includes(F.LL.MUTED),consentStatus:r,rowClickUrl:P});(0,d.useEffect)(()=>{if((null==x?void 0:x.items)&&!r){var a;let e=null===(a=x.items.find(a=>{var e;return(null===(e=a.consent_status)||void 0===e?void 0:e.status)===F.pF.ALERT}))||void 0===a?void 0:a.consent_status;_(null!=e?e:void 0)}},[x,r]);let z=(0,d.useCallback)(async()=>{let a=K.reduce((a,e)=>a+e.total_updates,0),t=await j({monitor_config_key:e,resolved_system_ids:K.map(a=>a.id)});(0,c.D4)(t)?s((0,m.Vo)((0,c.e$)(t.error))):(s((0,m.t5)((0,v._)("".concat(a," assets have been added to the system inventory."),()=>n.push(o.So)))),V())},[K,j,e,s,n,V]),W=(0,d.useCallback)(async()=>{let a=K.reduce((a,e)=>a+e.total_updates,0),n=await R({monitor_config_key:e,resolved_system_ids:K.map(a=>{var e;return null!==(e=a.id)&&void 0!==e?e:o.Kl})});(0,c.D4)(n)?s((0,m.Vo)((0,c.e$)(n.error))):(s((0,m.t5)((0,v._)("".concat(a," assets have been ignored and will not appear in future scans."),async()=>{await I(y.A.IGNORED)}))),V())},[K,R,e,s,I,V]),Q=K.some(a=>null===a.id);return{columns:Z,data:x,isLoading:T,isFetching:L,searchQuery:g,updateSearch:U,resetState:b,tableProps:O.tableProps,selectionProps:O.selectionProps,filterTabs:u,activeTab:A,handleTabChange:H,activeParams:N,actionsDisabled:M,selectedRows:K,hasSelectedRows:O.hasSelectedRows,resetSelections:V,uncategorizedIsSelected:Q,handleBulkAdd:z,handleBulkIgnore:W,anyBulkActionIsLoading:w||G,isAddingResults:w,isIgnoringResults:G}},j=a=>{let{monitorId:e}=a,{columns:n,searchQuery:i,updateSearch:s,tableProps:o,selectionProps:r,filterTabs:d,activeTab:c,handleTabChange:S,activeParams:m,selectedRows:C,hasSelectedRows:h,uncategorizedIsSelected:v,handleBulkAdd:y,handleBulkIgnore:A,anyBulkActionIsLoading:I}=L({monitorId:e});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.Niu,{"aria-label":"Asset state filter",mode:"horizontal",items:d.map(a=>({key:a.hash,label:a.label})),selectedKeys:[c],onClick:async a=>{await S(a.key)},className:"mb-4","data-testid":"asset-state-filter"}),(0,t.jsxs)(l.jqI,{justify:"space-between",align:"center",className:"mb-4",children:[(0,t.jsx)(u.f,{value:i,onChange:s}),(0,t.jsxs)(l.vyj,{size:"large",children:[h&&(0,t.jsx)(_.a,{count:C.length}),(0,t.jsx)(l.S0p,{menu:{items:[{key:"add",label:(0,t.jsx)(l.esZ,{title:v?"Uncategorized assets can't be added to the inventory":null,placement:"left",children:"Add"}),onClick:y,disabled:v},m.diff_status.includes(F.LL.MUTED)?null:{key:"ignore",label:"Ignore",onClick:A}]},trigger:["click"],children:(0,t.jsx)(l.wpx,{type:"primary",icon:(0,t.jsx)(l.PJP._ME,{}),iconPosition:"end",loading:I,disabled:!h,"data-testid":"bulk-actions-menu",children:"Actions"})})]})]}),(0,t.jsx)(l.V5H,{...o,columns:n,rowSelection:r})]})};var w=()=>{let a=decodeURIComponent((0,i.useRouter)().query.monitorId);return(0,t.jsxs)(s.Z,{title:"Action center - Discovered assets by system",children:[(0,t.jsx)(r.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:o.vi},{title:a}]}),(0,t.jsx)(j,{monitorId:a})]})}},99830:function(a){a.exports={toastLink:"ToastLink_toastLink__OLSeq"}}},function(a){a.O(0,[431,8765,9278,5163,1841,7725,7929,2888,9774,179],function(){return a(a.s=86850)}),_N_E=a.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8443],{66726:function(e,t,n){var i=n(11611),s=n(82846),a=n(91936),r=Math.max,o=Math.min;e.exports=function(e,t,n){var c,u,l,d,g,f,m=0,v=!1,y=!1,p=!0;if("function"!=typeof e)throw TypeError("Expected a function");function x(t){var n=c,i=u;return c=u=void 0,m=t,d=e.apply(i,n)}function h(e){var n=e-f,i=e-m;return void 0===f||n>=t||n<0||y&&i>=l}function j(){var e,n,i,a=s();if(h(a))return C(a);g=setTimeout(j,(e=a-f,n=a-m,i=t-e,y?o(i,l-n):i))}function C(e){return(g=void 0,p&&c)?x(e):(c=u=void 0,d)}function b(){var e,n=s(),i=h(n);if(c=arguments,u=this,f=n,i){if(void 0===g)return m=e=f,g=setTimeout(j,t),v?x(e):d;if(y)return clearTimeout(g),g=setTimeout(j,t),x(f)}return void 0===g&&(g=setTimeout(j,t)),d}return t=a(t)||0,i(n)&&(v=!!n.leading,l=(y="maxWait"in n)?r(a(n.maxWait)||0,t):l,p="trailing"in n?!!n.trailing:p),b.cancel=function(){void 0!==g&&clearTimeout(g),m=0,c=f=u=g=void 0},b.flush=function(){return void 0===g?d:C(s())},b}},11611:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},55193:function(e,t,n){var i=n(99736),s=n(92360);e.exports=function(e){return"symbol"==typeof e||s(e)&&"[object Symbol]"==i(e)}},82846:function(e,t,n){var i=n(77400);e.exports=function(){return i.Date.now()}},40741:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center",function(){return n(2656)}])},30952:function(e,t,n){"use strict";n.d(t,{f:function(){return c}});var i=n(24246),s=n(66726),a=n.n(s),r=n(27378),o=n(26917);let c=e=>{let{value:t,onChange:n,placeholder:s,...c}=e,[u,l]=(0,r.useState)(t);(0,r.useEffect)(()=>{l(t||"")},[t]);let d=a()(n,500),g=(0,r.useCallback)(e=>{l(e),d(e)},[]);return(0,i.jsx)(o.Z,{value:u,onChange:g,onClear:()=>{l(""),n("")},placeholder:s,...c})}},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var i=n(24246),s=n(96306),a=n(88038),r=n.n(a),o=n(86677);n(27378);var c=n(25980),u=n(90867),l=n(42478),d=n(77830),g=()=>{let e=(0,o.useRouter)();return(0,i.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(s.xuv,{children:[(0,i.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(s.wpx,{onClick:()=>{e.push(d.AD)},children:"Configure"})]}),(0,i.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},f=e=>{let{children:t,title:n,padded:a=!0,mainProps:d}=e,f=(0,c.hz)(),m=(0,o.useRouter)(),v="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,y=!(f.flags.messagingConfiguration&&v),{data:p}=(0,l.JE)(void 0,{skip:y}),{data:x}=(0,u.PW)(void 0,{skip:y}),h=f.flags.messagingConfiguration&&(!p||!x)&&v;return(0,i.jsxs)(s.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(r(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(s.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[h?(0,i.jsx)(g,{}):null,t]})]})}},42478:function(e,t,n){"use strict";n.d(t,{FU:function(){return u},JE:function(){return s},Ki:function(){return d},SU:function(){return g},W:function(){return f},h9:function(){return a},jc:function(){return i},qt:function(){return c},sn:function(){return l}});let{useGetEmailInviteStatusQuery:i,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:a,useCreateMessagingConfigurationSecretsMutation:r,useGetMessagingConfigurationDetailsQuery:o,useGetMessagingConfigurationsQuery:c,useGetMessagingConfigurationByKeyQuery:u,useUpdateMessagingConfigurationByKeyMutation:l,useUpdateMessagingConfigurationSecretsByKeyMutation:d,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:f}=n(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,t,n,i)=>{let s=await i({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"]})})})},2656:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return k}});var i=n(24246),s=n(96306),a=n(79894),r=n.n(a),o=n(27378),c=n(30952),u=n(77213),l=n(77830),d=n(58754),g=n(47935),f=n(7426),m=n(37059);let v=e=>{let{isConfigLoading:t}=e;return(0,i.jsx)(u.Z,{title:"Action center",mainProps:{className:"h-full"},children:(0,i.jsx)(s.jqI,{justify:"center",align:"center",className:"h-full",children:t?(0,i.jsx)(s.$jN,{color:"primary.900"}):(0,i.jsx)(s.DUx,{message:"Coming soon...",description:"Action center is currently disabled.",type:"info",showIcon:!0})})})},y=()=>(0,i.jsx)(s.oj8,{image:s.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up! Set up an integration monitor to track your infrastructure in greater detail.",children:(0,i.jsx)(r(),{href:l.KH,passHref:!0,legacyBehavior:!0,children:(0,i.jsx)(s.wpx,{type:"primary",children:"Visit integrations"})})});var p=n(10969),x=n(60145),h=n(11558),j=n(70641),C=n(7317),b=n(85302),T=n(64892),w=n(16394),M=n(21910),S=n(54762);let{Text:E}=s.AntTypography,_=e=>{let{monitorSummary:t,showSkeleton:n,...a}=e,{name:c,consent_status:u,total_updates:d,updates:g,last_monitored:f,secrets:m,key:v,connection_type:y}=t,_=(0,o.useMemo)(()=>(null==m?void 0:m.url)?(0,w.ge)(m.url):void 0,[null==m?void 0:m.url]),k=(0,o.useMemo)(()=>_?(0,w.tl)(_,60):void 0,[_]),P=Object.entries(g).map(e=>"".concat(e[1]," ").concat(e[0],"s")).join(", "),q=f?(0,w.p6)(new Date(f)):void 0,D=f?function(e,t,n){let i;let s=(0,x.j)(),a=n?.locale??s.locale??p._,r=(0,b.U)(e,t);if(isNaN(r))throw RangeError("Invalid time value");let o=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:r}),[c,u]=(0,C.d)(n?.in,...r>0?[t,e]:[e,t]),l=(0,h.u)(n?.roundingMethod??"round"),d=u.getTime()-c.getTime(),g=d/T.yJ,f=(d-((0,j.D)(u)-(0,j.D)(c)))/T.yJ,m=n?.unit;if("second"===(i=m||(g<1?"second":g<60?"minute":g<T.H_?"hour":f<T.fH?"day":f<T.UU?"month":"year"))){let e=l(d/1e3);return a.formatDistance("xSeconds",e,o)}if("minute"===i){let e=l(g);return a.formatDistance("xMinutes",e,o)}if("hour"===i){let e=l(g/60);return a.formatDistance("xHours",e,o)}if("day"===i){let e=l(f/T.H_);return a.formatDistance("xDays",e,o)}if("month"===i){let e=l(f/T.fH);return 12===e&&"month"!==m?a.formatDistance("xYears",1,o):a.formatDistance("xMonths",e,o)}{let e=l(f/T.UU);return a.formatDistance("xYears",e,o)}}(new Date(f),new Date,{addSuffix:!0}):void 0;return(0,i.jsx)(s.krs.Item,{"data-testid":"monitor-result-".concat(v),...a,children:(0,i.jsx)(s.N_L,{avatar:!0,title:!1,loading:n,active:!0,children:(0,i.jsxs)(s.bue,{gutter:12,className:"w-full",children:[(0,i.jsx)(s.JGx,{span:17,className:"align-middle",children:(0,i.jsx)(s.krs.Item.Meta,{avatar:(0,i.jsx)(s.t3Z,{src:k,size:30,icon:(0,i.jsx)(s.PJP.huD,{size:30}),style:{backgroundColor:"transparent",color:"var(--ant-color-text)"},alt:"".concat(_," icon")}),title:(0,i.jsxs)(s.jqI,{align:"center",gap:4,children:[(0,i.jsx)(r(),{href:"".concat(l.vi,"/").concat(v),className:"whitespace-nowrap",children:"".concat(d," assets detected").concat(_?" on ".concat(_):"")}),(0,i.jsx)(S.l,{consentStatus:u}),y===M.Rj.TEST_WEBSITE&&(0,i.jsx)(s.j8w,{color:"nectar",style:{fontWeight:"normal"},children:"test monitor"})]}),description:"".concat(P," detected.")})}),(0,i.jsx)(s.JGx,{span:4,className:"flex items-center justify-end",children:(0,i.jsx)(E,{ellipsis:{tooltip:c},children:c})}),(0,i.jsx)(s.JGx,{span:3,className:"flex items-center justify-end",children:!!D&&(0,i.jsx)(E,{"data-testid":"monitor-date",ellipsis:{tooltip:q},children:D})})]})})})};var k=()=>{var e;let t=(0,s.pmc)(),{PAGE_SIZES:n,pageSize:a,setPageSize:p,onPreviousPageClick:x,isPreviousPageDisabled:h,onNextPageClick:j,isNextPageDisabled:C,startRange:b,endRange:T,pageIndex:w,setTotalPages:M,resetPageIndexToDefault:S}=(0,g.oi)(),[E,k]=(0,o.useState)(""),{data:P,isLoading:q}=(0,f.tB)({api_set:!1}),D=!!(null==P?void 0:null===(e=P.detection_discovery)||void 0===e?void 0:e.website_monitor_enabled);(0,o.useEffect)(()=>{S()},[E,S]);let{data:N,isError:I,isLoading:A,isFetching:U}=(0,m.Ud)({page:w,size:a,search:E},{skip:q||!D});(0,o.useEffect)(()=>{I&&t&&D&&t({title:"Error fetching data",description:"Please try again later",status:"error"})},[I,t,D]),(0,o.useEffect)(()=>{if(N){var e;M(null!==(e=N.total)&&void 0!==e?e:1)}},[N,M]);let R=(null==N?void 0:N.items)||[],B=U?Array.from({length:a},(e,t)=>({key:t.toString(),updates:[],last_monitored:null})):[],H=(0,o.useCallback)(e=>[(0,i.jsx)(r(),{href:"".concat(l.vi,"/").concat(e),passHref:!0,legacyBehavior:!0,children:(0,i.jsx)(s.wpx,{type:"link",className:"p-0","data-testid":"review-button-".concat(e),children:"Review"})},"review")],[]);return D?(0,i.jsxs)(u.Z,{title:"Action center",children:[(0,i.jsx)(d.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity"}]}),(0,i.jsx)(s.jqI,{className:"justify-between py-6",children:(0,i.jsx)(c.f,{value:E,onChange:k})}),(0,i.jsx)(s.krs,{loading:A,dataSource:R||B,locale:{emptyText:(0,i.jsx)(y,{})},renderItem:e=>!!(null==e?void 0:e.key)&&(0,i.jsx)(_,{showSkeleton:U,monitorSummary:e,actions:H(e.key)},e.key)}),!!R&&!!(null==N?void 0:N.total)&&N.total>a&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.htM,{className:"mb-6 mt-0"}),(0,i.jsx)(g.s8,{totalRows:(null==N?void 0:N.total)||0,pageSizes:n,setPageSize:p,onPreviousPageClick:x,isPreviousPageDisabled:h||U,onNextPageClick:j,isNextPageDisabled:C||U,startRange:b,endRange:T})]})]}):(0,i.jsx)(v,{isConfigLoading:q})}}},function(e){e.O(0,[7725,2888,9774,179],function(){return e(e.s=40741)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7477],{74833:function(e,t,i){var s=i(56127),a=/^\s+/;e.exports=function(e){return e?e.slice(0,s(e)+1).replace(a,""):e}},56127:function(e){var t=/\s/;e.exports=function(e){for(var i=e.length;i--&&t.test(e.charAt(i)););return i}},11611:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},55193:function(e,t,i){var s=i(99736),a=i(92360);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==s(e)}},91936:function(e,t,i){var s=i(74833),a=i(11611),n=i(55193),r=0/0,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(n(e))return r;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=s(e);var i=l.test(e);return i||c.test(e)?d(e.slice(2),i?2:8):o.test(e)?r:+e}},45550:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/activity",function(){return i(3680)}])},58754:function(e,t,i){"use strict";var s=i(24246),a=i(96306),n=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:r=!0,children:o,rightContent:l,style:c,...d}=e;return(0,s.jsxs)("div",{...d,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,s.jsxs)(a.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(a.lQT,{className:i||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!i&&(0,s.jsx)(n.m,{className:o?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),o]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return c}});var s=i(24246),a=i(96306),n=i(79894),r=i.n(n),o=i(27378);let{Text:l}=a.AntTypography,c=e=>{let{items:t,...i}=e,n=(0,o.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let n=i===t.length-1,o={...e},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,s.jsx)(l,{style:{color:"inherit",maxWidth:n?void 0:400},ellipsis:!n,id:n?"breadcrumb-current-page":void 0,children:o.title})),c)?o.title=(0,s.jsx)(a.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,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,s.jsx)(r(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,s.jsx)(a.zrq,{items:n,...i})}},54409:function(e,t,i){"use strict";i.d(t,{Z:function(){return f}});var s=i(24246),a=i(96306),n=i(812),r=i(41841),o=i(21910),l=i(31883);let c=(0,a.IUT)({displayName:"MonitorOffIcon",viewBox:"0 0 12 12",path:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.47125 1H5.85H6.15H6.51188L6.58875 1.36914L7.52062 5.83268L6.42408 4.98635L6.03375 3.11719L5.8038 4.50761L4.99323 3.882L5.40562 1.38867L5.47125 1ZM4.80795 5.0022L4.67675 5.79545L5.48735 6.42109L5.61854 5.62783L4.80795 5.0022ZM6.73856 6.49227L6.96125 7.55866L8.42407 8.6877L8.69498 8.00228L7.94864 7.42624L7.88625 7.58398L7.83501 7.33853L6.73856 6.49227ZM8.33138 6.45844L9.07755 7.03434L9.30188 6.4668H11.55H12V5.5293H11.55H9H8.69812L8.58375 5.82031L8.33138 6.45844ZM7.27551 9.06443L7.35399 9.125H7.28813L7.27551 9.06443ZM4.49147 6.91566L5.30209 7.54131L4.79437 10.6113L4.72875 11H4.35H4.05H3.69563L3.61313 10.6406L2.64563 6.46875H0.45H0V5.53125H0.45H2.69777L3.49646 6.1477L4.15125 8.97266L4.49147 6.91566Z",fill:"currentColor"}),(0,s.jsx)("g",{clipPath:"url(#clip0_341_3102)",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6755 10.4168L0.164222 2.304L0.775218 1.51237L11.2865 9.62517L10.6755 10.4168Z",fill:"currentColor"})}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_341_3102",children:(0,s.jsx)("rect",{width:"11.5",height:"9",fill:"white",transform:"translate(0 1.5)"})})})]})}),d=(0,a.IUT)({displayName:"MonitorOnIcon",viewBox:"0 0 12 10",path:(0,s.jsx)("path",{d:"M5.47125 0H5.85H6.15H6.51188L6.58875 0.369141L7.88625 6.58398L8.58375 4.82031L8.69812 4.5293H9H11.55H12V5.4668H11.55H9.30188L8.36625 7.83398L8.25188 8.125H7.95H7.65H7.28813L7.21125 7.75586L6.03375 2.11719L4.79437 9.61133L4.72875 10H4.35H4.05H3.69563L3.61313 9.64062L2.64563 5.46875H0.45H0V4.53125H0.45H3H3.35438L3.43688 4.89062L4.15125 7.97266L5.40562 0.388672L5.47125 0Z",fill:"currentColor"})});var u=i(79494),L=i(70675),g=i(7940),f=e=>{let{resource:t,ignoreChildActions:i=!1}=e,f=(0,g.G)(t),[x,{isLoading:h}]=(0,L.v8)(),[m,{isLoading:p}]=(0,L.vi)(),[I,{isLoading:j}]=(0,L.Tl)(),{successAlert:_,errorAlert:v}=(0,r.VY)(),C=async()=>{let e=await x({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id});(0,l.D4)(e)?v((0,n.e$)(e.error,"Failed to confirm resource")):_("Data discovery has started. The results may take some time to appear in the “Data discovery“ tab.","".concat(t.name||"The resource"," is now being monitored."))},A=async()=>{let e=await I({staged_resource_urn:t.urn});(0,l.D4)(e)?v((0,n.e$)(e.error),"Failed to un-mute resource"):_("".concat(t.name||"The resource"," has been un-muted and is now being monitored."))},T=async()=>{let e=await x({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id,unmute_children:!0,classify_monitored_resources:!0});(0,l.D4)(e)?v((0,n.e$)(e.error),"Failed to un-mute resource"):_("Data discovery has started. The results may take some time to appear in the “Data discovery“ tab.","".concat(t.name||"The resource"," is now being monitored."))},D=async()=>{let e=await m({staged_resource_urn:t.urn});(0,l.D4)(e)?v((0,n.e$)(e.error),"Failed to mute resource"):_("Ignored data will not be monitored for changes or added to Fides datasets.","".concat(t.name||"Resource"," ignored"))},y=h||p||j,{diff_status:b,child_diff_statuses:S}=t,N=f===o.D$.SCHEMA,w=f===o.D$.FIELD,H=S&&(S[o.LL.CLASSIFICATION_ADDITION]||S[o.LL.CLASSIFICATION_UPDATE]),O=N&&void 0===b||!w&&b===o.LL.ADDITION||H,F=b!==o.LL.MUTED,R=b===o.LL.MUTED&&!w,Z=b===o.LL.MUTED&&w,E=S&&(S[o.LL.ADDITION]||S[o.LL.REMOVAL]),M=b===o.LL.MONITORED&&!i&&E&&!H;return(0,s.jsxs)(a.Ugi,{children:[(O||M)&&(0,s.jsx)(u.Z,{title:"Monitor",icon:(0,s.jsx)(d,{}),onClick:C,disabled:y,loading:h}),Z&&(0,s.jsx)(u.Z,{title:"Un-Mute",icon:(0,s.jsx)(d,{}),onClick:A,disabled:y,loading:h}),R&&(0,s.jsx)(u.Z,{title:"Monitor",icon:(0,s.jsx)(d,{}),onClick:T,disabled:y,loading:h}),F&&(0,s.jsx)(u.Z,{title:"Ignore",icon:(0,s.jsx)(c,{}),onClick:D,disabled:y,loading:p})]})}},91761:function(e,t,i){"use strict";var s=i(24246),a=i(96306),n=i(812),r=i(41841),o=i(7940),l=i(98559),c=i(21910),d=i(79494),u=i(70675);t.Z=e=>{let{resource:t}=e,[i,{isLoading:L}]=(0,u.v8)(),[g,{isLoading:f}]=(0,u.cM)(),[x,{isLoading:h}]=(0,u.vi)(),m=f||h||L,{diff_status:p,child_diff_statuses:I,top_level_field_name:j}=t,{successAlert:_,errorAlert:v}=(0,r.VY)(),C=p===c.LL.CLASSIFICATION_ADDITION||p===c.LL.CLASSIFICATION_UPDATE,A=I&&(I[c.LL.CLASSIFICATION_ADDITION]||I[c.LL.CLASSIFICATION_UPDATE]),T=(C||A)&&!j,D=C||A,y=(0,o.G)(t)!==c.D$.FIELD,b=T&&D&&y,S=async()=>{let e=await g({staged_resource_urn:t.urn});(0,n.D4)(e)?v((0,n.e$)(e.error),"Failed to promote resource"):_('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},N=async()=>{let e=await x({staged_resource_urn:t.urn});(0,n.D4)(e)?v((0,n.e$)(e.error),"Failed to mute resource"):_("Ignored changes will not be added to a Fides dataset.","".concat(t.name||"Changes"," ignored"))},w=async()=>{let e=await i({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id,start_classification:!0,diff_statuses_to_classify:[c.LL.CLASSIFICATION_ADDITION,c.LL.CLASSIFICATION_UPDATE,c.LL.CLASSIFYING,c.LL.CLASSIFICATION_QUEUED]});(0,n.D4)(e)?v((0,n.e$)(e.error),"Failed to reclassify resource"):_("Reclassification of ".concat((0,l.Z)(t)||"the resource"," has begun. The results may take some time to appear in the “Data discovery“ tab."),"Reclassification started")};return(0,s.jsxs)(a.Ugi,{gap:2,children:[T&&(0,s.jsx)(d.Z,{title:"Confirm",icon:(0,s.jsx)(a.nQG,{}),onClick:S,disabled:m,loading:f}),D&&(0,s.jsx)(d.Z,{title:"Ignore",icon:(0,s.jsx)(a.tpL,{}),onClick:N,disabled:m,loading:h}),y&&!b&&(0,s.jsx)(d.Z,{title:"Reclassify",icon:(0,s.jsx)(a.nyI,{}),onClick:w,disabled:m,loading:L}),b&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.LZC,{}),(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":"actions-overflow-btn"}),(0,s.jsx)(a.qyq,{children:(0,s.jsx)(a.sNh,{onClick:w,icon:(0,s.jsx)(a.nyI,{}),"data-testid":"action-reclassify",children:"Reclassify"})})]})]})]})}},3680:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return H}});var s,a,n=i(24246),r=i(27378),o=i(35287),l=i(58754),c=i(47182),d=i(92222),u=i(59003),L=i(96306),g=i(47935),f=i(72625),x=i(70675),h=i(38347),m=i(87667),p=i(50169),I=i(80285),j=i(30952);(s=a||(a={})).DATASET="Dataset",s.CLASSIFICATION="Classification";var _=i(74241),v=i(28278),C=i(20449),A=e=>(0,C.Z)(e)===v.E.CLASSIFICATION?a.CLASSIFICATION:a.DATASET,T=i(54409),D=i(91761);let y={items:[],total:0,page:1,size:50,pages:1},b=()=>(0,n.jsx)(L.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,n.jsxs)(L.gCW,{children:[(0,n.jsx)(L.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,n.jsx)(L.xvT,{fontSize:"sm",children:"You're up to date!"})]})}),S=(0,d.Cl)();var N=e=>{let{onRowClick:t,statusFilters:i,childsStatusFilters:s}=e,[o,l]=(0,r.useState)(""),{PAGE_SIZES:c,pageSize:v,setPageSize:C,onPreviousPageClick:N,isPreviousPageDisabled:w,onNextPageClick:H,isNextPageDisabled:O,startRange:F,endRange:R,pageIndex:Z,setTotalPages:E}=(0,g.oi)(),{isFetching:M,isLoading:k,data:P}=(0,x.z8)({diff_status:i,child_diff_status:s,page:Z,size:v,search:o}),{items:U,total:V,pages:$}=(0,r.useMemo)(()=>null!=P?P:y,[P]);(0,r.useEffect)(()=>{E($)},[$,E]);let z=(0,r.useMemo)(()=>[S.accessor(e=>e.name,{id:"name",cell:e=>(0,n.jsx)(m.Z,{result:e.row.original}),header:e=>(0,n.jsx)(g.Rr,{value:"Name",...e})}),S.accessor(e=>e.urn,{id:"project",cell:e=>(0,n.jsx)(g.G3,{value:(0,_.Z)(e.getValue())}),header:e=>(0,n.jsx)(g.Rr,{value:"Project",...e})}),S.display({id:"status",cell:e=>(0,n.jsx)(p.Z,{result:e.row.original}),header:e=>(0,n.jsx)(g.Rr,{value:"Status",...e})}),S.accessor(e=>e.system,{id:"system",cell:e=>(0,n.jsx)(g.G3,{value:e.getValue()}),header:e=>(0,n.jsx)(g.Rr,{value:"System",...e})}),S.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,n.jsx)(g.G3,{value:e.getValue()}),header:e=>(0,n.jsx)(g.Rr,{value:"Detected by",...e})}),S.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,n.jsx)(f.Cy,{time:e.getValue()}),header:e=>(0,n.jsx)(g.Rr,{value:"When",...e})}),S.accessor(e=>e,{id:"action",cell:e=>A(e.getValue())===a.DATASET?(0,n.jsx)(T.Z,{resource:e.getValue()}):(0,n.jsx)(D.Z,{resource:e.getValue()}),header:e=>(0,n.jsx)(g.Rr,{value:"Action",...e})})],[]),G=(0,u.b7)({getCoreRowModel:(0,d.sC)(),getGroupedRowModel:(0,d.qe)(),getExpandedRowModel:(0,d.rV)(),getRowId:I.Z,columns:z,manualPagination:!0,data:U,columnResizeMode:"onChange"});return k?(0,n.jsx)(g.I4,{rowHeight:36,numRows:36}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(g.Q$,{children:(0,n.jsxs)(L.kCb,{gap:6,align:"center",children:[(0,n.jsx)(L.xuv,{flexShrink:0,children:(0,n.jsx)(j.f,{value:o,onChange:l})}),(0,n.jsx)(h.a,{})]})}),(0,n.jsx)(g.ZK,{tableInstance:G,onRowClick:t,emptyTableNotice:(0,n.jsx)(b,{})}),(0,n.jsx)(g.s8,{totalRows:V||0,pageSizes:c,setPageSize:C,onPreviousPageClick:N,isPreviousPageDisabled:w||M,onNextPageClick:H,isNextPageDisabled:O||M,startRange:F,endRange:R})]})},w=i(21910),H=()=>{let{navigateToDetectionResults:e,navigateToDiscoveryResults:t}=(0,c.Z)();return(0,n.jsxs)(o.Z,{title:"Data discovery",children:[(0,n.jsx)(l.Z,{heading:"All activity"}),(0,n.jsx)(N,{onRowClick:i=>{if(A(i)===a.DATASET){e({resourceUrn:i.urn});return}t({resourceUrn:i.urn})},statusFilters:[w.LL.ADDITION,w.LL.REMOVAL,w.LL.CLASSIFICATION_ADDITION,w.LL.CLASSIFICATION_UPDATE],childsStatusFilters:[w.LL.ADDITION,w.LL.REMOVAL,w.LL.CLASSIFICATION_ADDITION,w.LL.CLASSIFICATION_UPDATE]})]})}},31883:function(e,t,i){"use strict";i.d(t,{Bw:function(){return s.Bw},D4:function(){return s.D4}});var s=i(19043)}},function(e){e.O(0,[431,1841,8002,2888,9774,179],function(){return e(e.s=45550)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5744],{24354:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/detection/[resourceUrn]",function(){return r(42705)}])},42705:function(e,n,r){"use strict";r.r(n);var t=r(24246);r(27378);var c=r(35287),i=r(77830),u=r(58754),s=r(69828),o=r(47182),a=r(1039);n.default=()=>{let{resourceUrn:e,navigateToDetectionResults:n}=(0,o.Z)();return(0,t.jsxs)(c.Z,{title:"Data detection",children:[(0,t.jsx)(u.Z,{heading:"Data detection",children:(0,t.jsx)(s.Z,{parentLink:i.XY,resourceUrn:e,onPathClick:e=>n({resourceUrn:e})})}),(0,t.jsx)(a.Z,{resourceUrn:e})]})}}},function(e){e.O(0,[431,4164,8002,1345,2888,9774,179],function(){return e(e.s=24354)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5744],{24354:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/detection/[resourceUrn]",function(){return r(42705)}])},42705:function(e,n,r){"use strict";r.r(n);var t=r(24246);r(27378);var c=r(35287),i=r(77830),u=r(58754),s=r(69828),o=r(47182),a=r(1039);n.default=()=>{let{resourceUrn:e,navigateToDetectionResults:n}=(0,o.Z)();return(0,t.jsxs)(c.Z,{title:"Data detection",children:[(0,t.jsx)(u.Z,{heading:"Data detection",children:(0,t.jsx)(s.Z,{parentLink:i.XY,resourceUrn:e,onPathClick:e=>n({resourceUrn:e})})}),(0,t.jsx)(a.Z,{resourceUrn:e})]})}}},function(e){e.O(0,[431,1841,8002,5309,2888,9774,179],function(){return e(e.s=24354)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3453],{35041:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/detection",function(){return e(82660)}])},82660:function(n,t,e){"use strict";e.r(t);var i=e(24246);e(27378);var c=e(35287),a=e(77830),s=e(58754),u=e(69828),r=e(1039);t.default=()=>(0,i.jsxs)(c.Z,{title:"Data detection",children:[(0,i.jsx)(s.Z,{heading:"Data detection",children:(0,i.jsx)(u.Z,{parentLink:a.XY})}),(0,i.jsx)(r.Z,{})]})}},function(n){n.O(0,[431,4164,8002,1345,2888,9774,179],function(){return n(n.s=35041)}),_N_E=n.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3453],{35041:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/detection",function(){return e(82660)}])},82660:function(n,t,e){"use strict";e.r(t);var i=e(24246);e(27378);var c=e(35287),a=e(77830),s=e(58754),u=e(69828),r=e(1039);t.default=()=>(0,i.jsxs)(c.Z,{title:"Data detection",children:[(0,i.jsx)(s.Z,{heading:"Data detection",children:(0,i.jsx)(u.Z,{parentLink:a.XY})}),(0,i.jsx)(r.Z,{})]})}},function(n){n.O(0,[431,1841,8002,5309,2888,9774,179],function(){return n(n.s=35041)}),_N_E=n.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1571],{11207:function(r,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/discovery/[resourceUrn]",function(){return n(55124)}])},55124:function(r,e,n){"use strict";n.r(e);var s=n(24246);n(27378);var c=n(35287),t=n(77830),i=n(58754),u=n(69828),o=n(47182),a=n(11904);e.default=()=>{let{resourceUrn:r,navigateToDiscoveryResults:e}=(0,o.Z)();return(0,s.jsxs)(c.Z,{title:"Data discovery",children:[(0,s.jsx)(i.Z,{heading:"Data discovery",children:(0,s.jsx)(u.Z,{parentLink:t.zE,resourceUrn:r,onPathClick:r=>e({resourceUrn:r})})}),(0,s.jsx)(a.Z,{resourceUrn:r})]})}}},function(r){r.O(0,[431,8765,9278,5163,4164,8002,1099,9046,2888,9774,179],function(){return r(r.s=11207)}),_N_E=r.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1571],{11207:function(r,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/discovery/[resourceUrn]",function(){return n(55124)}])},55124:function(r,e,n){"use strict";n.r(e);var s=n(24246);n(27378);var c=n(35287),t=n(77830),i=n(58754),u=n(69828),o=n(47182),a=n(11904);e.default=()=>{let{resourceUrn:r,navigateToDiscoveryResults:e}=(0,o.Z)();return(0,s.jsxs)(c.Z,{title:"Data discovery",children:[(0,s.jsx)(i.Z,{heading:"Data discovery",children:(0,s.jsx)(u.Z,{parentLink:t.zE,resourceUrn:r,onPathClick:r=>e({resourceUrn:r})})}),(0,s.jsx)(a.Z,{resourceUrn:r})]})}}},function(r){r.O(0,[431,8765,9278,5163,1841,409,8002,9046,2888,9774,179],function(){return r(r.s=11207)}),_N_E=r.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2320],{48570:function(n,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/discovery",function(){return i(49730)}])},49730:function(n,e,i){"use strict";i.r(e);var s=i(24246);i(27378);var t=i(35287),r=i(77830),c=i(58754),a=i(69828),u=i(11904);e.default=()=>(0,s.jsxs)(t.Z,{title:"Data discovery",children:[(0,s.jsx)(c.Z,{heading:"Data discovery",children:(0,s.jsx)(a.Z,{parentLink:r.zE})}),(0,s.jsx)(u.Z,{})]})}},function(n){n.O(0,[431,8765,9278,5163,4164,8002,1099,9046,2888,9774,179],function(){return n(n.s=48570)}),_N_E=n.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2320],{48570:function(n,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/discovery",function(){return i(49730)}])},49730:function(n,e,i){"use strict";i.r(e);var s=i(24246);i(27378);var t=i(35287),r=i(77830),c=i(58754),a=i(69828),u=i(11904);e.default=()=>(0,s.jsxs)(t.Z,{title:"Data discovery",children:[(0,s.jsx)(c.Z,{heading:"Data discovery",children:(0,s.jsx)(a.Z,{parentLink:r.zE})}),(0,s.jsx)(u.Z,{})]})}},function(n){n.O(0,[431,8765,9278,5163,1841,409,8002,9046,2888,9774,179],function(){return n(n.s=48570)}),_N_E=n.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9738],{53910:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/datamap",function(){return n(18839)}])},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var i=n(24246),s=n(96306),r=n(88038),l=n.n(r),a=n(86677);n(27378);var o=n(25980),d=n(90867),u=n(42478),c=n(77830),g=()=>{let e=(0,a.useRouter)();return(0,i.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(s.xuv,{children:[(0,i.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(s.wpx,{onClick:()=>{e.push(c.AD)},children:"Configure"})]}),(0,i.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},x=e=>{let{children:t,title:n,padded:r=!0,mainProps:c}=e,x=(0,o.hz)(),h=(0,a.useRouter)(),f="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,m=!(x.flags.messagingConfiguration&&f),{data:p}=(0,u.JE)(void 0,{skip:m}),{data:y}=(0,d.PW)(void 0,{skip:m}),j=x.flags.messagingConfiguration&&(!p||!y)&&f;return(0,i.jsxs)(s.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(l(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(s.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[j?(0,i.jsx)(g,{}):null,t]})]})}},99811:function(e,t,n){"use strict";n.d(t,{m:function(){return s}});var i=n(27378);class s{updateTableInstance(e){this.tableInstance=e}constructor(e=null){this.tableInstance=e,this.updateTableInstance=this.updateTableInstance.bind(this)}}let r=i.createContext(new s);t.Z=r},42478:function(e,t,n){"use strict";n.d(t,{FU:function(){return d},JE:function(){return s},Ki:function(){return c},SU:function(){return g},W:function(){return x},h9:function(){return r},jc:function(){return i},qt:function(){return o},sn:function(){return u}});let{useGetEmailInviteStatusQuery:i,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:r,useCreateMessagingConfigurationSecretsMutation:l,useGetMessagingConfigurationDetailsQuery:a,useGetMessagingConfigurationsQuery:o,useGetMessagingConfigurationByKeyQuery:d,useUpdateMessagingConfigurationByKeyMutation:u,useUpdateMessagingConfigurationSecretsByKeyMutation:c,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:x}=n(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,t,n,i)=>{let s=await i({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"]})})})},18839:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return U}});var i=n(24246),s=n(27378),r=n(45938),l=n(77213),a=n(58754),o=n(96306),d=n(65218),u=n.n(d),c=n(16134),g=n(35258),x=n(92222),h=n(59003),f=n(30002),m=n(28079),p=n(49600),y=n(99811);let j=e=>{var t;let{column:n}=e,{tableInstance:i}=(0,s.useContext)(y.Z),r=s.useMemo(()=>Array.from(n.getFacetedUniqueValues().keys()),[n]),l=s.useMemo(()=>{let e={};return r.forEach(t=>{e[t]=!1}),e},[r]);return{filterValue:null!==(t=n.getFilterValue())&&void 0!==t?t:l,clearFilterOptions:()=>{let e={};r.forEach(t=>{e[t]=!1}),n.setFilterValue(e)},toggleFilterOption:(e,t)=>{var s;let r={...null!==(s=n.getFilterValue())&&void 0!==s?s:l,[e]:t};Object.values(r).every(e=>!e)?null==i||i.setColumnFilters(null==i?void 0:i.getState().columnFilters.filter(e=>e.id!==n.id)):n.setFilterValue(r)},options:r,header:n.columnDef.header}};var v=n(57072);let C=(0,x.Cl)(),b={multifield:(e,t,n)=>n[e.original[t]]},w=()=>{let e=(0,c.T)(),{updateTableInstance:t}=(0,s.useContext)(y.Z),n=(0,c.C)(p.eo),{data:i,isLoading:r}=(0,p.Ex)({organizationName:"default_organization"});(0,v.MO)(),(0,m.fd)(),(0,f.te)();let l=(0,s.useRef)(!1);(0,s.useEffect)(()=>{if(i){let{columns:t,rows:n}=i;e((0,p.dd)(t)),l.current||(l.current=!0,0===n.length?e((0,p.ym)(!0)):e((0,p.ym)(!1)))}},[i,e]);let a=(0,s.useMemo)(()=>i?i.rows:[],[i]),o=(0,s.useMemo)(()=>(n||[]).map(e=>{let{text:t,value:n}=e;return C.accessor(e=>e[n],{id:n,header:t,cell:e=>{let{getValue:t}=e,n=t();return Array.isArray(n)?n.join(", "):n},filterFn:b.multifield})}),[n]),d=(0,h.b7)({columns:o,data:a,filterFns:b,getCoreRowModel:(0,x.sC)(),getFilteredRowModel:(0,x.vL)(),getFacetedRowModel:(0,x.o6)(),getFacetedUniqueValues:(0,x.JG)(),manualPagination:!0,columnResizeMode:"onChange"});return(0,s.useEffect)(()=>t(d),[d,t]),{...d,isLoading:r}};var k=n(83766),M=n.n(k),S=n(25980),T=n(46238),F=n(47935),q=n(22968);let E=e=>{var t,n,s;let{option:r,columnId:l,filterValue:a,toggleFilterOption:d}=e,u=(0,c.C)(v.L5),g=l===q.Ux&&null!==(n=null===(t=u.get(r))||void 0===t?void 0:t.name)&&void 0!==n?n:r;return(0,i.jsx)(o.XZJ,{value:r,width:"193px",height:"20px",mb:"25px",isChecked:null!==(s=a[r])&&void 0!==s&&s,onChange:e=>{let{target:t}=e;d(r,t.checked)},_focusWithin:{bg:"gray.100"},colorScheme:"complimentary",children:(0,i.jsx)(o.xvT,{fontSize:"sm",lineHeight:5,height:"20px",width:"170px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",children:g})},r)};var I=e=>{let{column:t}=e,{filterValue:n,toggleFilterOption:r,options:l}=j({column:t}),[a,d]=(0,s.useState)(!1),u=a?l:l.slice(0,15),c=l.length>15;return(0,i.jsx)(o.UQy,{width:"100%",allowToggle:!0,children:(0,i.jsxs)(o.Qdk,{border:"0px",children:[(0,i.jsx)(o.X6q,{height:"56px",children:(0,i.jsxs)(o.KFZ,{height:"100%",children:[(0,i.jsx)(o.xuv,{flex:"1",alignItems:"center",justifyContent:"center",textAlign:"left",children:t.columnDef.header}),(0,i.jsx)(o.XEm,{})]})}),(0,i.jsxs)(o.Hk3,{children:[(0,i.jsx)(o.MIq,{columns:3,children:u.map(e=>(0,i.jsx)(E,{columnId:t.id,option:e,filterValue:n,toggleFilterOption:r},e))}),!a&&c?(0,i.jsx)(o.wpx,{type:"text",onClick:()=>{d(!0)},children:"View more"}):null,a&&c?(0,i.jsx)(o.wpx,{type:"text",onClick:()=>{d(!1)},children:"View less"}):null]})]})},t.id)};let O=e=>{let{heading:t,children:n}=e;return(0,i.jsxs)(o.xuv,{padding:"24px 8px 8px 24px",children:[(0,i.jsx)(o.X6q,{size:"md",lineHeight:6,fontWeight:"bold",mb:2,children:t}),n]})};var P=e=>{let t,{isOpen:n,onClose:r}=e,{tableInstance:l}=(0,s.useContext)(y.Z),a=null==l?void 0:l.getHeaderGroups(),d=(e,t)=>e.filter(e=>e.id===t).map(e=>(0,i.jsx)(I,{column:e.column},t)),u=(0,s.useMemo)(()=>(null==a?void 0:a[0].headers)||[],[a]);return(0,i.jsxs)(o.u_l,{isOpen:n,onClose:r,isCentered:!0,size:"2xl",children:[(0,i.jsx)(o.ZAr,{}),(0,i.jsxs)(o.hzk,{children:[(0,i.jsx)(o.xBx,{children:"Filters"}),(0,i.jsx)(o.olH,{}),(0,i.jsx)(o.izJ,{}),(0,i.jsx)(o.fef,{maxH:"85vh",padding:"0px",overflowX:"auto",children:(t=[q.vy,q.Ux,q.OL],u.some(e=>t.indexOf(e.id)>-1))?(0,i.jsxs)(O,{heading:"Privacy attributes",children:[d(u,q.vy),d(u,q.Ux),d(u,q.OL)]}):null}),(0,i.jsx)(o.mzw,{children:(0,i.jsxs)(o.xuv,{display:"flex",justifyContent:"space-between",width:"100%",children:[(0,i.jsx)(o.wpx,{onClick:()=>{null==l||l.resetColumnFilters()},className:"mr-3 grow",children:"Reset Filters"}),(0,i.jsx)(o.wpx,{onClick:r,type:"primary",className:"grow",children:"Done"})]})})]})]})};let _=()=>{let{isOpen:e,onOpen:t,onClose:n}=(0,o.qY0)();return{isFilterModalOpen:e,onFilterModalOpen:t,onFilterModalClose:n}};var R=()=>{let{isFilterModalOpen:e,onFilterModalOpen:t,onFilterModalClose:n}=_(),{tableInstance:r}=(0,s.useContext)(y.Z),{systemsCount:l,dictionaryService:a}=(0,S.hz)(),d=null==r?void 0:r.getRowModel(),u=(0,s.useMemo)(()=>{let e=(null==d?void 0:d.rows)||[];return M()(null==e?void 0:e.map(e=>e.original["system.fides_key"]))},[d]);if(!r)return null;let c=u.length,g=r.getState().columnFilters.length;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(o.kCb,{justifyContent:"flex-end",flexDirection:"row",alignItems:"center",flexWrap:"wrap",rowGap:4,columnGap:4,children:[(0,i.jsx)(o.kCb,{flexGrow:1,children:(0,i.jsx)(F.HO,{globalFilter:r.getState().globalFilter,setGlobalFilter:r.setGlobalFilter})}),(0,i.jsxs)(o.kCb,{children:[l>0?(0,i.jsxs)(o.kCb,{alignItems:"center",borderRadius:"md",gap:1,marginRight:4,children:[(0,i.jsxs)(o.xvT,{fontSize:"xs",children:[c," of ",l," systems displayed"]}),a?(0,i.jsx)(T.b,{label:"Note that Global Vendor List (GVL) and Additional Consent (AC) systems are not currently included in these reports"}):null]}):null,(0,i.jsxs)(o.wpx,{"aria-label":"Open Filter Settings",onClick:t,children:["Filter",g>0?(0,i.jsx)(o.j8w,{className:"ml-2",children:g}):null]})]})]}),(0,i.jsx)(P,{isOpen:e,onClose:n})]})},A=n(38943),N=n(77830),Z=()=>(0,i.jsx)(o.M5Y,{flex:1,"data-testid":"get-started-modal",backgroundColor:"gray.100",children:(0,i.jsx)(o.xuv,{backgroundColor:"white",p:10,borderRadius:"6px",boxShadow:"0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06)",maxWidth:{base:"80%",lg:"60%",xl:"50%"},maxHeight:"90%",textAlign:"center",children:(0,i.jsxs)(o.Kqy,{spacing:4,children:[(0,i.jsx)(o.xvT,{color:"gray.700",fontWeight:"600",children:"Privacy engineering can seem like an endlessly complex confluence of legal and data engineering terminology—fear not—Fides is here to simplify this."}),(0,i.jsx)(o.xvT,{children:"Start by scanning your infrastructure. The scanner will connect to your infrastructure to automatically scan and create a list of all systems available and then classify each system containing PII."}),(0,i.jsx)(o.xvT,{children:"Let's get started!"}),(0,i.jsx)(o.xuv,{children:(0,i.jsx)(o.wpx,{href:N.xo,role:"link",type:"primary",className:"w-fit","data-testid":"add-systems-btn",children:"Add Systems"})})]})})});let z=u()(()=>Promise.all([n.e(105),n.e(1096),n.e(8765),n.e(9278),n.e(699),n.e(6148),n.e(5619),n.e(4259),n.e(1975)]).then(n.bind(n,34849)),{loadableGenerated:{webpack:()=>[34849]},ssr:!1,loading:()=>(0,i.jsx)(o.M5Y,{width:"100%",flex:"1",children:(0,i.jsx)(o.$jN,{})})}),V=()=>{let e=(0,c.C)(A.Xt),{attemptAction:t}=(0,r.oI)(),[n,i]=(0,s.useState)(),l=(0,s.useCallback)(e=>{t().then(t=>{t&&i(e)})},[t,i]),a=(0,s.useCallback)(()=>{t().then(e=>{e&&n&&i(void 0)})},[t,n]);return{isGettingStarted:e,selectedSystemId:n,setSelectedSystemId:l,resetSelectedSystemId:a}};var W=()=>{let{isGettingStarted:e,setSelectedSystemId:t,selectedSystemId:n,resetSelectedSystemId:s}=V(),{isLoading:r}=w();return r?(0,i.jsx)(o.M5Y,{width:"100%",flex:"1",children:(0,i.jsx)(o.$jN,{})}):e?(0,i.jsx)(Z,{}):(0,i.jsxs)(o.kCb,{direction:"column",height:"100%",children:[(0,i.jsx)(o.xuv,{marginBottom:3,marginRight:10,children:(0,i.jsx)(R,{})}),(0,i.jsxs)(o.kCb,{position:"relative",flex:1,direction:"row",overflow:"auto",borderWidth:"1px",borderStyle:"solid",borderColor:"gray.200",children:[(0,i.jsx)(o.xuv,{flex:1,minWidth:"50%",maxWidth:"100%",children:(0,i.jsx)(z,{setSelectedSystemId:t,selectedSystemId:n})}),(0,i.jsx)(g.Z,{selectedSystemId:n,resetSelectedSystemId:s})]})]})},U=()=>{let e=(0,s.useMemo)(()=>new y.m,[]);return(0,i.jsxs)(l.Z,{title:"Data lineage",mainProps:{padding:"24px 0 0 40px"},children:[(0,i.jsx)(a.Z,{style:{paddingLeft:0},heading:"Data lineage"}),(0,i.jsxs)(y.Z.Provider,{value:e,children:[(0,i.jsx)(W,{}),(0,i.jsx)(r.eB,{})]})]})}}},function(e){e.O(0,[431,5163,255,1841,9951,4230,2888,9774,179],function(){return e(e.s=53910)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2096],{78859:function(e,t,o){var n=o(71928),a=o(76747),l=o(42383),i=o(11611),s=o(37948);e.exports=function(e,t,o,r){if(!i(e))return e;t=a(t,e);for(var d=-1,c=t.length,u=c-1,f=e;null!=f&&++d<c;){var m=s(t[d]),h=o;if("__proto__"===m||"constructor"===m||"prototype"===m)break;if(d!=u){var p=f[m];void 0===(h=r?r(p,m,f):void 0)&&(h=i(p)?p:l(t[d+1])?[]:{})}n(f,m,h),f=f[m]}return e}},80396:function(e,t,o){var n=o(79867),a=o(78859);e.exports=function(e,t,o,l){return a(e,t,o(n(e,t)),l)}},62079:function(e,t,o){var n=o(31137);e.exports=function(e){return"function"==typeof e?e:n}},30454:function(e,t,o){var n=o(40699);e.exports=function(e){return n(e,5)}},47215:function(e,t,o){var n=o(78859);e.exports=function(e,t,o){return null==e?e:n(e,t,o)}},90271:function(e,t,o){var n=o(80396),a=o(62079);e.exports=function(e,t,o){return null==e?e:n(e,t,a(o))}},16383:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]/[collectionName]/[...subfieldNames]",function(){return o(26052)}])},12627:function(e,t,o){"use strict";var n=o(24246),a=o(79283),l=o(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:o=!1,...i}=e,{getDataCategoryDisplayNameProps:s,getDataCategories:r}=(0,l.Z)(),d=(o?r():r().filter(e=>e.active)).filter(e=>!(null==t?void 0:t.includes(e.fides_key))).map(e=>{let{name:t,primaryName:o}=s(e.fides_key);return{value:e.fides_key,name:t,primaryName:o,description:e.description||""}});return(0,n.jsx)(a.l,{options:d,...i})}},66112:function(e,t,o){"use strict";var n=o(24246),a=o(96306),l=o(27378),i=o(12627),s=o(34929),r=o(26183);t.Z=e=>{let{selectedTaxonomies:t,onAddTaxonomy:o,onRemoveTaxonomy:d}=e,[c,u]=(0,l.useState)(!1),{getDataCategoryDisplayName:f}=(0,s.Z)();return(0,n.jsxs)(r.Z,{children:[t.map(e=>(0,n.jsx)(a.j8w,{"data-testid":"classification-".concat(e),color:"white",closable:!0,onClose:()=>d(e),closeButtonLabel:"Remove category",children:f(e)},e)),(0,n.jsx)(a.j8w,{onClick:()=>u(!0),"data-testid":"add-category-btn",addable:!0,"aria-label":"Add category"}),c&&(0,n.jsx)(a.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,n.jsx)(i.Z,{selectedTaxonomies:t,onChange:e=>{u(!1),o(e)},onBlur:()=>u(!1),open:c})})]})}},76252:function(e,t,o){"use strict";var n=o(24246),a=o(96306),l=o(30454),i=o.n(l),s=o(47215),r=o.n(s),d=o(90271),c=o.n(d),u=o(79806),f=o(20386),m=o(63927),h=o(69435);t.Z=e=>{let{field:t,isOpen:o,onClose:l,dataset:s,collectionName:d,subfields:p}=e,[v]=(0,f.TG)(),{isOpen:x,onOpen:g,onClose:b}=(0,a.qY0)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.ZP,{isOpen:o,onClose:l,description:"Fields are an array of objects that describe the collection's fields. Provide additional context to this field by filling out the fields below.",header:(0,n.jsx)(u.zR,{title:"Field Name: ".concat(null==t?void 0:t.name)}),footer:(0,n.jsx)(u.Gn,{onClose:l,onDelete:g,formId:m.e}),children:(0,n.jsx)(m.Z,{values:t,onSubmit:e=>{let o=(0,h.Fk)({dataset:s,collectionName:d,subfields:p?[...p,(null==t?void 0:t.name)||""]:[(null==t?void 0:t.name)||""]}),n={...t,...e},a=i()(s);r()(a,o,n),v(a),l()},dataType:"field"})}),(0,n.jsx)(a.cVQ,{isOpen:x,onClose:b,onConfirm:()=>{let e=(0,h.Fk)({dataset:s,collectionName:d,subfields:p}),o=i()(s);c()(o,e,e=>({...e,fields:e.fields.filter(e=>e.name!==(null==t?void 0:t.name))})),v(o),l(),b()},title:"Delete Field",message:(0,n.jsxs)(a.xvT,{children:["You are about to permanently delete the field named"," ",(0,n.jsx)(a.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==t?void 0:t.name})," ","from this dataset. Are you sure you would like to continue?"]})})]})}},26052:function(e,t,o){"use strict";o.r(t);var n=o(24246),a=o(92222),l=o(59003),i=o(96306),s=o(30454),r=o.n(s),d=o(47215),c=o.n(d),u=o(86677),f=o(27378),m=o(77213),h=o(77830),p=o(58754),v=o(47935),x=o(66112),g=o(69828),b=o(41966),j=o(76252),C=o(69435);let w=(0,a.Cl)(),y=()=>(0,n.jsx)(i.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,n.jsx)(i.gCW,{children:(0,n.jsx)(i.xvT,{fontSize:"md",fontWeight:"600",children:"No fields found."})})});t.default=()=>{let e=(0,u.useRouter)(),[t]=(0,b.TG)(),o=decodeURIComponent(e.query.datasetId),s=decodeURIComponent(e.query.collectionName),d=e.query.subfieldNames.map(decodeURIComponent),{isLoading:_,data:R}=(0,b.oM)(o),k=(0,f.useMemo)(()=>(null==R?void 0:R.collections)||[],[R]).find(e=>e.name===s),N=(0,f.useMemo)(()=>(null==k?void 0:k.fields)||[],[k]),T=(0,f.useMemo)(()=>{let e=N;return d.forEach(t=>{let o=e.find(e=>e.name===t);e=(null==o?void 0:o.fields)||[]}),e},[N,d]),[Z,F]=(0,f.useState)(),I=(0,f.useCallback)(e=>{let{dataCategory:o,field:n}=e,a=n.data_categories||[],l=(0,C.Fk)({dataset:R,collectionName:s,subfields:[...d,n.name]}),i=r()(R);c()(i,"".concat(l,".data_categories"),[...a,o]),t(i)},[R,t,s,d]),M=(0,f.useCallback)(e=>{let{dataCategory:o,field:n}=e,a=n.data_categories||[],l=(0,C.Fk)({dataset:R,collectionName:s,subfields:[...d,null==n?void 0:n.name]}),i=r()(R);c()(i,"".concat(l,".data_categories"),a.filter(e=>e!==o)),t(i)},[R,t,s,d]),z=(0,f.useCallback)(t=>{let n=[...d.map(encodeURIComponent),t.name];e.push({pathname:h.y1,query:{datasetId:o,collectionName:s,subfieldNames:n}})},[o,e,s,d]),S=(0,f.useMemo)(()=>[w.accessor(e=>e.name,{id:"name",cell:e=>{var t;let o=e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0;return(0,n.jsx)(v.G3,{fontWeight:o?"semibold":"normal",value:e.getValue()})},header:e=>(0,n.jsx)(v.Rr,{value:"Field Name",...e}),size:180}),w.accessor(e=>{var t;return null===(t=e.fides_meta)||void 0===t?void 0:t.data_type},{id:"type",cell:e=>e.getValue()?(0,n.jsx)(v.A4,{value:e.getValue()}):(0,n.jsx)(v.G3,{value:void 0}),header:e=>(0,n.jsx)(v.Rr,{value:"Type",...e}),size:80}),w.accessor(e=>e.description,{id:"description",cell:e=>(0,n.jsx)(v.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,n.jsx)(v.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),w.accessor(e=>e.data_categories,{id:"data_categories",cell:e=>{var t;let o=e.row.original;return!(e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0)&&(0,n.jsx)(x.Z,{selectedTaxonomies:e.getValue()||[],onAddTaxonomy:e=>I({dataCategory:e,field:o}),onRemoveTaxonomy:e=>M({dataCategory:e,field:o})})},header:e=>(0,n.jsx)(v.Rr,{value:"Data categories",...e}),size:300,meta:{disableRowClick:!0}}),w.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,o=t.original;return(0,n.jsx)(i.Ugi,{spacing:0,"data-testid":"field-".concat(o.name),children:(0,n.jsx)(i.wpx,{size:"small",icon:(0,n.jsx)(i.dY8,{}),onClick:()=>{D(o),A(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[I,M]),q=(0,f.useMemo)(()=>Z?T.filter(e=>e.name.toLowerCase().includes(Z.toLowerCase())):T,[T,Z]),E=(0,l.b7)({getCoreRowModel:(0,a.sC)(),getFilteredRowModel:(0,a.vL)(),getSortedRowModel:(0,a.tj)(),columns:S,data:q,columnResizeMode:"onChange"}),[O,A]=(0,f.useState)(!1),[G,D]=(0,f.useState)(),U=(0,f.useMemo)(()=>{let e=[{title:"All datasets",href:h.$m},{title:o,href:{pathname:h.o5,query:{datasetId:o}},icon:g.Y[1]},{title:s,icon:g.Y[2],href:{pathname:h.RF,query:{datasetId:o,collectionName:s}}}];return d.forEach((t,n)=>{e.push({title:t,href:n<d.length-1?{pathname:h.y1,query:{datasetId:o,collectionName:s,subfieldNames:d.slice(0,n+1).map(encodeURIComponent)}}:void 0,icon:g.Y[3]})}),e},[o,s,d]);return(0,n.jsxs)(m.Z,{title:"Dataset - ".concat(o),children:[(0,n.jsx)(p.Z,{heading:"Datasets",breadcrumbItems:U}),_?(0,n.jsx)(v.I4,{rowHeight:36,numRows:15}):(0,n.jsxs)(i.xuv,{"data-testid":"fields-table",children:[(0,n.jsx)(v.Q$,{children:(0,n.jsx)(v.HO,{globalFilter:Z,setGlobalFilter:F,placeholder:"Search",testid:"fields-search"})}),(0,n.jsx)(v.ZK,{tableInstance:E,emptyTableNotice:(0,n.jsx)(y,{}),onRowClick:z,getRowIsClickable:e=>{var t;return!!(e.fields&&(null===(t=e.fields)||void 0===t?void 0:t.length)>0)}}),(0,n.jsx)(j.Z,{isOpen:O,onClose:()=>{A(!1),D(void 0)},field:G,dataset:R,collectionName:s,subfields:d})]})]})}}},function(e){e.O(0,[8765,9278,5163,699,409,9226,2888,9774,179],function(){return e(e.s=16383)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6556],{78859:function(e,t,o){var n=o(71928),i=o(76747),l=o(42383),a=o(11611),s=o(37948);e.exports=function(e,t,o,r){if(!a(e))return e;t=i(t,e);for(var d=-1,c=t.length,u=c-1,f=e;null!=f&&++d<c;){var m=s(t[d]),x=o;if("__proto__"===m||"constructor"===m||"prototype"===m)break;if(d!=u){var v=f[m];void 0===(x=r?r(v,m,f):void 0)&&(x=a(v)?v:l(t[d+1])?[]:{})}n(f,m,x),f=f[m]}return e}},80396:function(e,t,o){var n=o(79867),i=o(78859);e.exports=function(e,t,o,l){return i(e,t,o(n(e,t)),l)}},62079:function(e,t,o){var n=o(31137);e.exports=function(e){return"function"==typeof e?e:n}},30454:function(e,t,o){var n=o(40699);e.exports=function(e){return n(e,5)}},47215:function(e,t,o){var n=o(78859);e.exports=function(e,t,o){return null==e?e:n(e,t,o)}},90271:function(e,t,o){var n=o(80396),i=o(62079);e.exports=function(e,t,o){return null==e?e:n(e,t,i(o))}},59972:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]/[collectionName]",function(){return o(47355)}])},12627:function(e,t,o){"use strict";var n=o(24246),i=o(79283),l=o(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:o=!1,...a}=e,{getDataCategoryDisplayNameProps:s,getDataCategories:r}=(0,l.Z)(),d=(o?r():r().filter(e=>e.active)).filter(e=>!(null==t?void 0:t.includes(e.fides_key))).map(e=>{let{name:t,primaryName:o}=s(e.fides_key);return{value:e.fides_key,name:t,primaryName:o,description:e.description||""}});return(0,n.jsx)(i.l,{options:d,...a})}},66112:function(e,t,o){"use strict";var n=o(24246),i=o(96306),l=o(27378),a=o(12627),s=o(34929),r=o(26183);t.Z=e=>{let{selectedTaxonomies:t,onAddTaxonomy:o,onRemoveTaxonomy:d}=e,[c,u]=(0,l.useState)(!1),{getDataCategoryDisplayName:f}=(0,s.Z)();return(0,n.jsxs)(r.Z,{children:[t.map(e=>(0,n.jsx)(i.j8w,{"data-testid":"classification-".concat(e),color:"white",closable:!0,onClose:()=>d(e),closeButtonLabel:"Remove category",children:f(e)},e)),(0,n.jsx)(i.j8w,{onClick:()=>u(!0),"data-testid":"add-category-btn",addable:!0,"aria-label":"Add category"}),c&&(0,n.jsx)(i.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,n.jsx)(a.Z,{selectedTaxonomies:t,onChange:e=>{u(!1),o(e)},onBlur:()=>u(!1),open:c})})]})}},76252:function(e,t,o){"use strict";var n=o(24246),i=o(96306),l=o(30454),a=o.n(l),s=o(47215),r=o.n(s),d=o(90271),c=o.n(d),u=o(79806),f=o(20386),m=o(63927),x=o(69435);t.Z=e=>{let{field:t,isOpen:o,onClose:l,dataset:s,collectionName:d,subfields:v}=e,[p]=(0,f.TG)(),{isOpen:h,onOpen:g,onClose:j}=(0,i.qY0)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.ZP,{isOpen:o,onClose:l,description:"Fields are an array of objects that describe the collection's fields. Provide additional context to this field by filling out the fields below.",header:(0,n.jsx)(u.zR,{title:"Field Name: ".concat(null==t?void 0:t.name)}),footer:(0,n.jsx)(u.Gn,{onClose:l,onDelete:g,formId:m.e}),children:(0,n.jsx)(m.Z,{values:t,onSubmit:e=>{let o=(0,x.Fk)({dataset:s,collectionName:d,subfields:v?[...v,(null==t?void 0:t.name)||""]:[(null==t?void 0:t.name)||""]}),n={...t,...e},i=a()(s);r()(i,o,n),p(i),l()},dataType:"field"})}),(0,n.jsx)(i.cVQ,{isOpen:h,onClose:j,onConfirm:()=>{let e=(0,x.Fk)({dataset:s,collectionName:d,subfields:v}),o=a()(s);c()(o,e,e=>({...e,fields:e.fields.filter(e=>e.name!==(null==t?void 0:t.name))})),p(o),l(),j()},title:"Delete Field",message:(0,n.jsxs)(i.xvT,{children:["You are about to permanently delete the field named"," ",(0,n.jsx)(i.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==t?void 0:t.name})," ","from this dataset. Are you sure you would like to continue?"]})})]})}},47355:function(e,t,o){"use strict";o.r(t);var n=o(24246),i=o(92222),l=o(59003),a=o(96306),s=o(86677),r=o(27378),d=o(77213),c=o(77830),u=o(58754),f=o(47935),m=o(66112),x=o(69828),v=o(41966),p=o(76252),h=o(69435);let g=(0,i.Cl)(),j=()=>(0,n.jsx)(a.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,n.jsx)(a.gCW,{children:(0,n.jsx)(a.xvT,{fontSize:"md",fontWeight:"600",children:"No fields found."})})});t.default=()=>{let e=(0,s.useRouter)(),[t]=(0,v.TG)(),o=decodeURIComponent(e.query.datasetId),b=decodeURIComponent(e.query.collectionName),{isLoading:C,data:w}=(0,v.oM)(o),_=(0,r.useMemo)(()=>(null==w?void 0:w.collections)||[],[w]),y=_.find(e=>e.name===b),R=(0,r.useMemo)(()=>(null==y?void 0:y.fields)||[],[y]),[k,N]=(0,r.useState)(),I=(0,r.useCallback)(e=>{let{dataCategory:o,field:n}=e,i=n.data_categories||[],l={...n,data_categories:[...i,o]},a=_.indexOf(y),s=y.fields.indexOf(n);t((0,h._n)(w,l,a,s))},[y,_,w,t]),T=(0,r.useCallback)(e=>{var o;let{dataCategory:n,field:i}=e,l={...i,data_categories:null===(o=i.data_categories)||void 0===o?void 0:o.filter(e=>e!==n)},a=_.indexOf(y),s=y.fields.indexOf(i);t((0,h._n)(w,l,a,s))},[y,_,w,t]),Z=(0,r.useCallback)(t=>{e.push({pathname:c.y1,query:{datasetId:encodeURIComponent(o),collectionName:encodeURIComponent(b),subfieldNames:encodeURIComponent(t.name)}})},[o,e,b]),O=(0,r.useMemo)(()=>[g.accessor(e=>e.name,{id:"name",cell:e=>{var t;let o=e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0;return(0,n.jsx)(f.G3,{fontWeight:o?"semibold":"normal",value:e.getValue()})},header:e=>(0,n.jsx)(f.Rr,{value:"Field Name",...e}),size:180}),g.accessor(e=>{var t;return null===(t=e.fides_meta)||void 0===t?void 0:t.data_type},{id:"type",cell:e=>e.getValue()?(0,n.jsx)(f.A4,{value:e.getValue()}):(0,n.jsx)(f.G3,{value:void 0}),header:e=>(0,n.jsx)(f.Rr,{value:"Type",...e}),size:80}),g.accessor(e=>e.description,{id:"description",cell:e=>(0,n.jsx)(f.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,n.jsx)(f.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),g.accessor(e=>e.data_categories,{id:"data_categories",cell:e=>{var t;let o=e.row.original;return!(e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0)&&(0,n.jsx)(m.Z,{selectedTaxonomies:e.getValue()||[],onAddTaxonomy:e=>I({dataCategory:e,field:o}),onRemoveTaxonomy:e=>T({dataCategory:e,field:o})})},header:e=>(0,n.jsx)(f.Rr,{value:"Data categories",...e}),size:300,meta:{disableRowClick:!0}}),g.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,o=t.original;return(0,n.jsx)(a.Ugi,{spacing:0,"data-testid":"field-".concat(o.name),children:(0,n.jsx)(a.wpx,{size:"small",icon:(0,n.jsx)(a.dY8,{}),onClick:()=>{G(o),S(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[I,T]),M=(0,r.useMemo)(()=>k?R.filter(e=>e.name.toLowerCase().includes(k.toLowerCase())):R,[R,k]),F=(0,l.b7)({getCoreRowModel:(0,i.sC)(),getFilteredRowModel:(0,i.vL)(),getSortedRowModel:(0,i.tj)(),columns:O,data:M,columnResizeMode:"onChange"}),[z,S]=(0,r.useState)(!1),[A,G]=(0,r.useState)(),D=(0,r.useMemo)(()=>[{title:"All datasets",href:c.$m},{title:o,href:{pathname:c.o5,query:{datasetId:o}},icon:x.Y[1]},{title:b,icon:x.Y[2]}],[o,b]);return(0,n.jsxs)(d.Z,{title:"Dataset - ".concat(o),children:[(0,n.jsx)(u.Z,{heading:"Datasets",breadcrumbItems:D}),C?(0,n.jsx)(f.I4,{rowHeight:36,numRows:15}):(0,n.jsxs)(a.xuv,{"data-testid":"fields-table",children:[(0,n.jsx)(f.Q$,{children:(0,n.jsx)(f.HO,{globalFilter:k,setGlobalFilter:N,placeholder:"Search",testid:"fields-search"})}),(0,n.jsx)(f.ZK,{tableInstance:F,emptyTableNotice:(0,n.jsx)(j,{}),onRowClick:Z,getRowIsClickable:e=>{var t;return!!(e.fields&&(null===(t=e.fields)||void 0===t?void 0:t.length)>0)}}),(0,n.jsx)(p.Z,{isOpen:z,onClose:()=>{S(!1),G(void 0)},field:A,dataset:w,collectionName:b})]})]})}}},function(e){e.O(0,[8765,9278,5163,699,409,9226,2888,9774,179],function(){return e(e.s=59972)}),_N_E=e.O()}]);