ethyca-fides 2.69.3b2__py2.py3-none-any.whl → 2.70.0rc1__py2.py3-none-any.whl

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

Potentially problematic release.


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

Files changed (256) hide show
  1. {ethyca_fides-2.69.3b2.dist-info → ethyca_fides-2.70.0rc1.dist-info}/METADATA +1 -1
  2. {ethyca_fides-2.69.3b2.dist-info → ethyca_fides-2.70.0rc1.dist-info}/RECORD +220 -214
  3. fides/_version.py +3 -3
  4. fides/api/alembic/migrations/versions/4d8c0fcc5771_adding_default_system_groups.py +78 -0
  5. fides/api/api/v1/endpoints/privacy_request_endpoints.py +87 -23
  6. fides/api/util/cache.py +1 -1
  7. fides/ui-build/static/admin/404.html +1 -1
  8. fides/ui-build/static/admin/_next/static/chunks/{155-b5e4370b158e5ee3.js → 155-88303b05c6e115a5.js} +1 -1
  9. fides/ui-build/static/admin/_next/static/chunks/2121.1de2fa060eae34aa.js +1 -0
  10. fides/ui-build/static/admin/_next/static/chunks/3585-451504ea5ed7a1ea.js +1 -0
  11. fides/ui-build/static/admin/_next/static/chunks/3700-2a7094f112a1608a.js +1 -0
  12. fides/ui-build/static/admin/_next/static/chunks/3855-12ee1dfbbe47fd28.js +1 -0
  13. fides/ui-build/static/admin/_next/static/chunks/409-c1256ecda1b15db6.js +1 -0
  14. fides/ui-build/static/admin/_next/static/chunks/431-78bf05f35d7eec4f.js +1 -0
  15. fides/ui-build/static/admin/_next/static/chunks/4558-de5ced790b3380dc.js +1 -0
  16. fides/ui-build/static/admin/_next/static/chunks/4608-96f480766541124b.js +1 -0
  17. fides/ui-build/static/admin/_next/static/chunks/4718-6585c97c26647e65.js +1 -0
  18. fides/ui-build/static/admin/_next/static/chunks/502-a40d39e615f7b664.js +1 -0
  19. fides/ui-build/static/admin/_next/static/chunks/504-afd3588f1908ac33.js +1 -0
  20. fides/ui-build/static/admin/_next/static/chunks/5309-3b6cf0cc9d0c6a83.js +1 -0
  21. fides/ui-build/static/admin/_next/static/chunks/5574-b8c4cba5a6938c00.js +1 -0
  22. fides/ui-build/static/admin/_next/static/chunks/{5596-bb601cbf40e47a0f.js → 5596-29a7c8322530b7cf.js} +1 -1
  23. fides/ui-build/static/admin/_next/static/chunks/5698.2135391a128cc373.js +164 -0
  24. fides/ui-build/static/admin/_next/static/chunks/{6416-79eee298a5b3f80f.js → 6416-18d438ff85d807f8.js} +1 -1
  25. fides/ui-build/static/admin/_next/static/chunks/7045-f15044a4d4525946.js +1 -0
  26. fides/ui-build/static/admin/_next/static/chunks/7158-835ba42fd881d8dd.js +1 -0
  27. fides/ui-build/static/admin/_next/static/chunks/7202.3febe9e89640c712.js +1 -0
  28. fides/ui-build/static/admin/_next/static/chunks/7929-919e2dff24e40397.js +1 -0
  29. fides/ui-build/static/admin/_next/static/chunks/9046-2a332fe338535c84.js +1 -0
  30. fides/ui-build/static/admin/_next/static/chunks/9226-2f960b7ca530642a.js +1 -0
  31. fides/ui-build/static/admin/_next/static/chunks/{9676.9fd9552ef744c717.js → 9676.b86ecbcfe5afd25d.js} +1 -1
  32. fides/ui-build/static/admin/_next/static/chunks/{9951-c389c51ca6353035.js → 9951-651d521d9a02b6df.js} +1 -1
  33. fides/ui-build/static/admin/_next/static/chunks/pages/{_app-c780470042750062.js → _app-e08a732e348aa667.js} +63 -226
  34. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-fb9434d926ebf0b3.js → manual-939253f8daf349b2.js} +1 -1
  35. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-f90aa48500c1cbde.js +1 -0
  36. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-a94e19870fe3e210.js +1 -0
  37. fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-09be5455ba85db39.js +1 -0
  38. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/{[resourceUrn]-6a196c704f1c6dd7.js → [resourceUrn]-293c1f2d9aefb447.js} +1 -1
  39. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/{[resourceUrn]-9cee4e222ebb2b60.js → [resourceUrn]-18501152fa1e4f40.js} +1 -1
  40. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/{[systemId]-db7f1a269d3e7fc2.js → [systemId]-758d51b4d37dbd09.js} +1 -1
  41. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-0e4d9ff89c63793c.js +1 -0
  42. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-2635ef588bf06145.js +1 -0
  43. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-9ae81f5c245b8a01.js → [resourceUrn]-0497f3ffdb632516.js} +1 -1
  44. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-6537c93c69b597c7.js → detection-a780390da99f3e43.js} +1 -1
  45. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-5db26067d921a94a.js → [resourceUrn]-1901c26cdde820da.js} +1 -1
  46. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-9f6a62614d7eb113.js → discovery-0cea22af5929c81f.js} +1 -1
  47. fides/ui-build/static/admin/_next/static/chunks/pages/datamap-619f27c745188adb.js +1 -0
  48. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-78e052c8f95110c4.js +1 -0
  49. fides/ui-build/static/admin/_next/static/chunks/pages/dataset-d6d7ee8bd8858a8a.js +1 -0
  50. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-6bf117315d909ad1.js → [id]-cc149157d290a94d.js} +1 -1
  51. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-1e2fa11f22dbc449.js → new-4c9fb068a5561658.js} +1 -1
  52. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-8b13bb5f7bee61c6.js +1 -0
  53. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-6f109ef64304ef59.js +1 -0
  54. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{[id]-670b05b03ba11e0a.js → [id]-8566e3b7b2a632fa.js} +1 -1
  55. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-1b38b656807ed0cd.js +1 -0
  56. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-65f0d5672041a202.js +1 -0
  57. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-b20c53b82a54f5ea.js +1 -0
  58. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-26ce8fc493993765.js +1 -0
  59. fides/ui-build/static/admin/_next/static/chunks/pages/settings/messaging-providers/{[key]-f8887b2b29aed1b9.js → [key]-b0d93bf478bf63ee.js} +1 -1
  60. fides/ui-build/static/admin/_next/static/chunks/pages/settings/messaging-providers/{new-5473558807e94462.js → new-084f9756b9987285.js} +1 -1
  61. fides/ui-build/static/admin/_next/static/chunks/pages/settings/messaging-providers-6c51ffd46bb598e7.js +1 -0
  62. fides/ui-build/static/admin/_next/static/chunks/pages/settings/privacy-requests-fbe7e8030d837aed.js +1 -0
  63. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/{test-datasets-aa1ada4d4ac09759.js → test-datasets-a86bafe1b4e1205f.js} +1 -1
  64. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]-1895c6a13b543436.js +1 -0
  65. fides/ui-build/static/admin/_next/static/chunks/pages/systems-ae3f3470e2734933.js +1 -0
  66. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-1b9c4b2749e3ece4.js +1 -0
  67. fides/ui-build/static/admin/_next/static/chunks/webpack-2766492c5dbceb0a.js +1 -0
  68. fides/ui-build/static/admin/_next/static/mcntn488F1AKOmZCrH0tI/_buildManifest.js +1 -0
  69. fides/ui-build/static/admin/add-systems/manual.html +1 -1
  70. fides/ui-build/static/admin/add-systems/multiple.html +1 -1
  71. fides/ui-build/static/admin/add-systems.html +1 -1
  72. fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
  73. fides/ui-build/static/admin/consent/configure.html +1 -1
  74. fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
  75. fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
  76. fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
  77. fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
  78. fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
  79. fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
  80. fides/ui-build/static/admin/consent/properties.html +1 -1
  81. fides/ui-build/static/admin/consent/reporting.html +1 -1
  82. fides/ui-build/static/admin/consent.html +1 -1
  83. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
  84. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
  85. fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
  86. fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
  87. fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
  88. fides/ui-build/static/admin/data-catalog.html +1 -1
  89. fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
  90. fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
  91. fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
  92. fides/ui-build/static/admin/data-discovery/activity.html +1 -1
  93. fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
  94. fides/ui-build/static/admin/data-discovery/detection.html +1 -1
  95. fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
  96. fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
  97. fides/ui-build/static/admin/datamap.html +1 -1
  98. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
  99. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
  100. fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
  101. fides/ui-build/static/admin/dataset/new.html +1 -1
  102. fides/ui-build/static/admin/dataset.html +1 -1
  103. fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
  104. fides/ui-build/static/admin/datastore-connection/new.html +1 -1
  105. fides/ui-build/static/admin/datastore-connection.html +1 -1
  106. fides/ui-build/static/admin/index.html +1 -1
  107. fides/ui-build/static/admin/integrations/[id].html +1 -1
  108. fides/ui-build/static/admin/integrations.html +1 -1
  109. fides/ui-build/static/admin/login/[provider].html +1 -1
  110. fides/ui-build/static/admin/login.html +1 -1
  111. fides/ui-build/static/admin/messaging/[id].html +1 -1
  112. fides/ui-build/static/admin/messaging/add-template.html +1 -1
  113. fides/ui-build/static/admin/messaging.html +1 -1
  114. fides/ui-build/static/admin/poc/ant-components.html +1 -1
  115. fides/ui-build/static/admin/poc/form-experiments/AntForm.html +1 -1
  116. fides/ui-build/static/admin/poc/form-experiments/FormikAntFormItem.html +1 -1
  117. fides/ui-build/static/admin/poc/form-experiments/FormikControlled.html +1 -1
  118. fides/ui-build/static/admin/poc/form-experiments/FormikField.html +1 -1
  119. fides/ui-build/static/admin/poc/form-experiments/FormikSpreadField.html +1 -1
  120. fides/ui-build/static/admin/poc/forms.html +1 -1
  121. fides/ui-build/static/admin/poc/table-migration.html +1 -1
  122. fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
  123. fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
  124. fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
  125. fides/ui-build/static/admin/privacy-requests.html +1 -1
  126. fides/ui-build/static/admin/properties/[id].html +1 -1
  127. fides/ui-build/static/admin/properties/add-property.html +1 -1
  128. fides/ui-build/static/admin/properties.html +1 -1
  129. fides/ui-build/static/admin/reporting/datamap.html +1 -1
  130. fides/ui-build/static/admin/settings/about/alpha.html +1 -1
  131. fides/ui-build/static/admin/settings/about.html +1 -1
  132. fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +1 -1
  133. fides/ui-build/static/admin/settings/consent.html +1 -1
  134. fides/ui-build/static/admin/settings/custom-fields.html +1 -1
  135. fides/ui-build/static/admin/settings/domain-records.html +1 -1
  136. fides/ui-build/static/admin/settings/domains.html +1 -1
  137. fides/ui-build/static/admin/settings/email-templates.html +1 -1
  138. fides/ui-build/static/admin/settings/locations.html +1 -1
  139. fides/ui-build/static/admin/settings/messaging-providers/[key].html +1 -1
  140. fides/ui-build/static/admin/settings/messaging-providers/new.html +1 -1
  141. fides/ui-build/static/admin/settings/messaging-providers.html +1 -1
  142. fides/ui-build/static/admin/settings/organization.html +1 -1
  143. fides/ui-build/static/admin/settings/privacy-requests.html +1 -1
  144. fides/ui-build/static/admin/settings/regulations.html +1 -1
  145. fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
  146. fides/ui-build/static/admin/systems/configure/[id].html +1 -1
  147. fides/ui-build/static/admin/systems.html +1 -1
  148. fides/ui-build/static/admin/taxonomy.html +1 -1
  149. fides/ui-build/static/admin/user-management/new.html +1 -1
  150. fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
  151. fides/ui-build/static/admin/user-management.html +1 -1
  152. fides/ui-build/static/admin/_next/static/86A8z6OnbTuDYww0DJkX0/_buildManifest.js +0 -1
  153. fides/ui-build/static/admin/_next/static/chunks/1841-2052c3239f2a0a1a.js +0 -1
  154. fides/ui-build/static/admin/_next/static/chunks/2751-58285ccf50a0ba4b.js +0 -1
  155. fides/ui-build/static/admin/_next/static/chunks/3377-c5e0cc3de1a5ffd1.js +0 -1
  156. fides/ui-build/static/admin/_next/static/chunks/3855-8377b3fcbb3d93b0.js +0 -1
  157. fides/ui-build/static/admin/_next/static/chunks/409-e1deab19fc7e6d99.js +0 -1
  158. fides/ui-build/static/admin/_next/static/chunks/4230-c55d5531697a715c.js +0 -1
  159. fides/ui-build/static/admin/_next/static/chunks/431-86ad2beeb93c95c9.js +0 -1
  160. fides/ui-build/static/admin/_next/static/chunks/4608-2fbc3389681f6924.js +0 -1
  161. fides/ui-build/static/admin/_next/static/chunks/4786-8d78ec773d171562.js +0 -1
  162. fides/ui-build/static/admin/_next/static/chunks/5309-e994c5195f99b1eb.js +0 -1
  163. fides/ui-build/static/admin/_next/static/chunks/6780-eeb7775eb21d7a12.js +0 -1
  164. fides/ui-build/static/admin/_next/static/chunks/7929-4314e317b1717257.js +0 -1
  165. fides/ui-build/static/admin/_next/static/chunks/8373-bd50fa53cbcab2aa.js +0 -1
  166. fides/ui-build/static/admin/_next/static/chunks/9046-0f92802b0e3382a9.js +0 -1
  167. fides/ui-build/static/admin/_next/static/chunks/9226-49dbcdb135bf9793.js +0 -1
  168. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-92034daafd2187a0.js +0 -1
  169. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-d7d9ff9ed28fa790.js +0 -1
  170. fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-ddf6ba92355f81de.js +0 -1
  171. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-de957913f9b47daa.js +0 -1
  172. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-715064e1c9788e1a.js +0 -1
  173. fides/ui-build/static/admin/_next/static/chunks/pages/datamap-aed0e6dafc143b97.js +0 -1
  174. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-5bb96c8684a38bbf.js +0 -1
  175. fides/ui-build/static/admin/_next/static/chunks/pages/dataset-639046f6c76bc8bd.js +0 -1
  176. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-0159fbb2e0440709.js +0 -1
  177. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-267d2742fffaebe5.js +0 -1
  178. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-482a7256925a6e06.js +0 -1
  179. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-28083bfb2dec7b9f.js +0 -1
  180. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-aed018025b09c045.js +0 -1
  181. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-128f952a49a0e8dc.js +0 -1
  182. fides/ui-build/static/admin/_next/static/chunks/pages/settings/messaging-providers-1065fbefd449719c.js +0 -1
  183. fides/ui-build/static/admin/_next/static/chunks/pages/settings/privacy-requests-907bfbb71d84646f.js +0 -1
  184. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]-02b0dde03a1ad159.js +0 -1
  185. fides/ui-build/static/admin/_next/static/chunks/pages/systems-4a6ef2509e8cedfc.js +0 -1
  186. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-16b122b83e57bb8c.js +0 -1
  187. fides/ui-build/static/admin/_next/static/chunks/webpack-55e1c55932df2413.js +0 -1
  188. {ethyca_fides-2.69.3b2.dist-info → ethyca_fides-2.70.0rc1.dist-info}/WHEEL +0 -0
  189. {ethyca_fides-2.69.3b2.dist-info → ethyca_fides-2.70.0rc1.dist-info}/entry_points.txt +0 -0
  190. {ethyca_fides-2.69.3b2.dist-info → ethyca_fides-2.70.0rc1.dist-info}/licenses/LICENSE +0 -0
  191. {ethyca_fides-2.69.3b2.dist-info → ethyca_fides-2.70.0rc1.dist-info}/top_level.txt +0 -0
  192. /fides/ui-build/static/admin/_next/static/chunks/{1115-d5a834cdaa717edc.js → 1115-7888473b3dc28cda.js} +0 -0
  193. /fides/ui-build/static/admin/_next/static/chunks/{1817-dc2bba3ca736d39e.js → 1817-17079d2f8cf94941.js} +0 -0
  194. /fides/ui-build/static/admin/_next/static/chunks/{2040-3f9c66c56a05b336.js → 2040-ab6212a3074f34f9.js} +0 -0
  195. /fides/ui-build/static/admin/_next/static/chunks/{2921-cdc7a13973f4a0ba.js → 2921-66f65496c3a09316.js} +0 -0
  196. /fides/ui-build/static/admin/_next/static/chunks/{3696-fff4f944d7d5ff20.js → 3696-c25dc8d1b0e1aee1.js} +0 -0
  197. /fides/ui-build/static/admin/_next/static/chunks/{3872-4786ccbe7c6f65b0.js → 3872-3514b712afd683c0.js} +0 -0
  198. /fides/ui-build/static/admin/_next/static/chunks/{3923-db57401384d1de8f.js → 3923-a551756b413367ea.js} +0 -0
  199. /fides/ui-build/static/admin/_next/static/chunks/{401-4e56e924f35317f2.js → 401-ffe4e8436e1eceb9.js} +0 -0
  200. /fides/ui-build/static/admin/_next/static/chunks/{5185-a219b390ef17ff4b.js → 5185-33f50cf9ae17b42e.js} +0 -0
  201. /fides/ui-build/static/admin/_next/static/chunks/{5783-c62c79e7be21be73.js → 5783-8de76df87af55e98.js} +0 -0
  202. /fides/ui-build/static/admin/_next/static/chunks/{6084-29cbe703bffdccfe.js → 6084-2cd165179c428a6f.js} +0 -0
  203. /fides/ui-build/static/admin/_next/static/chunks/{6853-91a8641cd2784b54.js → 6853-7004a8c420b1ca02.js} +0 -0
  204. /fides/ui-build/static/admin/_next/static/chunks/{6882-55dbb142f7c40f53.js → 6882-447f15e87b8c48a5.js} +0 -0
  205. /fides/ui-build/static/admin/_next/static/chunks/{6954-6dfafd38b02d5852.js → 6954-599f2de2c902e9b2.js} +0 -0
  206. /fides/ui-build/static/admin/_next/static/chunks/{7476-3da7a490debad8e2.js → 7476-0b6e114658b15eaa.js} +0 -0
  207. /fides/ui-build/static/admin/_next/static/chunks/{7630-22f9c4b25d6aed29.js → 7630-e7ea13be69c118a1.js} +0 -0
  208. /fides/ui-build/static/admin/_next/static/chunks/{7725-b2fa93d747d3d85d.js → 7725-dd6736855807936a.js} +0 -0
  209. /fides/ui-build/static/admin/_next/static/chunks/{796-8e4da90ae82dfebb.js → 796-e07ac2c543f569e3.js} +0 -0
  210. /fides/ui-build/static/admin/_next/static/chunks/{8002-78d78545309b2c1c.js → 8002-25fd174aec9b077b.js} +0 -0
  211. /fides/ui-build/static/admin/_next/static/chunks/{9826-f316eb1d61cb90b6.js → 9826-c02be5882205bbbc.js} +0 -0
  212. /fides/ui-build/static/admin/_next/static/chunks/pages/{404-e4a1f93a7ce944f0.js → 404-2eb8aed4939f1142.js} +0 -0
  213. /fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-a4f821c4902f2df8.js → multiple-83ed7da0bb90b0a5.js} +0 -0
  214. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-96245b63aafc5168.js → add-vendors-46b88bda3d7b15c5.js} +0 -0
  215. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-87919c1192e68b1a.js → configure-c0db068d1863222f.js} +0 -0
  216. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-4fea66e59bd59de8.js → [id]-fd41ffaff543e05a.js} +0 -0
  217. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-ae8a64fffe3f8c66.js → privacy-experience-92a337ee96845af2.js} +0 -0
  218. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-c8038e05f35da8d1.js → [id]-1fd2cda8707314f6.js} +0 -0
  219. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-f3a40101a8f3fd00.js → new-2987e397445713c5.js} +0 -0
  220. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-c985ea8c1a0e0550.js → properties-069f4e3ee96ebf77.js} +0 -0
  221. /fides/ui-build/static/admin/_next/static/chunks/pages/{consent-35c0ae9d5b5a940c.js → consent-e5a33654a2dfaf35.js} +0 -0
  222. /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-965af6c1fd01334e.js → [projectUrn]-6a4b0d49dcbf17a8.js} +0 -0
  223. /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-06ba907e7d91a724.js → projects-be7b385073f22414.js} +0 -0
  224. /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{resources-5afecf141308bfc5.js → resources-af80fdca3bbdc82f.js} +0 -0
  225. /fides/ui-build/static/admin/_next/static/chunks/pages/{data-catalog-f99af5669b9ab44c.js → data-catalog-351caadeef03876a.js} +0 -0
  226. /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{action-center-5868591ff1e5f881.js → action-center-1554afcb8b9da2ab.js} +0 -0
  227. /fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-72b9878ea9b91529.js → [...subfieldNames]-ef71f387fbbab425.js} +0 -0
  228. /fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-f36a46381a6c25d4.js → [collectionName]-d790553662caf5c3.js} +0 -0
  229. /fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-b653fd60e7db989b.js → [datasetId]-cb63db8594fe8dc1.js} +0 -0
  230. /fides/ui-build/static/admin/_next/static/chunks/pages/{datastore-connection-c55e3e0e19030f3f.js → datastore-connection-a832084ce294f8af.js} +0 -0
  231. /fides/ui-build/static/admin/_next/static/chunks/pages/{index-d66ea87b457af21e.js → index-269b8f81546dad66.js} +0 -0
  232. /fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{[id]-4352e55f110556b4.js → [id]-d8c5c03fb2f31d65.js} +0 -0
  233. /fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{add-template-c533120e94e049e3.js → add-template-0e0c06e3c8aabe02.js} +0 -0
  234. /fides/ui-build/static/admin/_next/static/chunks/pages/{messaging-b14f5f38b2d711a8.js → messaging-3f15804cf9625f01.js} +0 -0
  235. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/{ant-components-31d51e3b9227c8d5.js → ant-components-248ad9f65a872442.js} +0 -0
  236. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{AntForm-8794a0d2e7554a05.js → AntForm-aedb66a62042b10a.js} +0 -0
  237. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikAntFormItem-90b31073e478c99c.js → FormikAntFormItem-018df38b7cd77fdb.js} +0 -0
  238. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikControlled-0a6859a0225b7e00.js → FormikControlled-6ca9099d03aab817.js} +0 -0
  239. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikField-eb0552917907fe21.js → FormikField-0f2c90786ea005a4.js} +0 -0
  240. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/{forms-b2a2a084d8cfe22d.js → forms-200b51a725f8b2d1.js} +0 -0
  241. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/{table-migration-0c944cfa9c6acbff.js → table-migration-e551fccfcaae76e7.js} +0 -0
  242. /fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-331147598052f25c.js → configure-b00532a0ad4f6927.js} +0 -0
  243. /fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-e02dc4b4b385c86f.js → [id]-322a01e2bceab3fb.js} +0 -0
  244. /fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-74c2a0ff4c992633.js → add-property-777ed2d73812043d.js} +0 -0
  245. /fides/ui-build/static/admin/_next/static/chunks/pages/{properties-7459d56e548925b2.js → properties-08472b2a6bf1d392.js} +0 -0
  246. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/{[purpose_id]-7f2c50044806c094.js → [purpose_id]-f3e6e74e0efb005c.js} +0 -0
  247. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{consent-e8cab942d09aa358.js → consent-55e36839d219a503.js} +0 -0
  248. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-cca3d1a26e1269bb.js → domain-records-7ddf9d992fe714a6.js} +0 -0
  249. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domains-07e1b9937a169e32.js → domains-7c78ae51f0dd7102.js} +0 -0
  250. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-3bc799dac8423f50.js → email-templates-05ffbda19ab894b9.js} +0 -0
  251. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-9f36b6c213ae524c.js → locations-77fb85bdd0be42b5.js} +0 -0
  252. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-3e23d92d789fff99.js → organization-44456bfe54ac4ad5.js} +0 -0
  253. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-f0f0ea35d0185ae3.js → regulations-2866ac99faa5a542.js} +0 -0
  254. /fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-0a8ec3aa2ed59a33.js → [id]-ff4711db191099cd.js} +0 -0
  255. /fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-4036b023366b7eec.js → user-management-82fcf1151e2fe2ba.js} +0 -0
  256. /fides/ui-build/static/admin/_next/static/{86A8z6OnbTuDYww0DJkX0 → mcntn488F1AKOmZCrH0tI}/_ssgManifest.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,1841,409,401,9951,6416,6780,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(21103);let b=e=>{let{connector:t}=e;return(0,a.jsxs)(r.xuv,{display:"flex",mb:4,alignItems:"center","data-testid":"header",children:[(0,a.jsx)(m.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,409,7045,401,9951,6416,3585,3700,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),r=n(91507),a=n.n(r);t.Z=e=>{let{color:t,description:n,title:r,icon:l}=e;return(0,s.jsx)(i.xuv,{borderLeft:"9px solid ".concat(t),borderRadius:"6px",className:a().container,children:(0,s.jsxs)(i.V4A,{className:a().card,"data-testid":"tile-".concat(r),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:r})]}),(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,r="red.500";return null==t?r="gray.300":t&&(r="green.500"),(0,s.jsx)(i.xuv,{width:"12px",height:"12px",borderRadius:"6px",backgroundColor:r,...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 m}});var s=n(24246),i=n(96306),r=n(88038),a=n.n(r),l=n(86677);n(27378);var o=n(25980),c=n(90867),d=n(42478),u=n(77830),h=()=>{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."," "]})]})})},m=e=>{let{children:t,title:n,padded:r=!0,mainProps:u}=e,m=(0,o.hz)(),g=(0,l.useRouter)(),x="/privacy-requests"===g.pathname||"/datastore-connection"===g.pathname,p=!(m.flags.messagingConfiguration&&x),{data:y}=(0,d.JE)(void 0,{skip:p}),{data:f}=(0,c.PW)(void 0,{skip:p}),j=m.flags.messagingConfiguration&&(!y||!f)&&x;return(0,s.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,s.jsxs)(a(),{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:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[j?(0,s.jsx)(h,{}):null,t]})]})}},58754:function(e,t,n){"use strict";var s=n(24246),i=n(96306),r=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:a=!0,children:l,rightContent:o,style:c,...d}=e;return(0,s.jsxs)("div",{...d,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...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)(r.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),r=n(34090),a=n(27378),l=n(46238),o=n(40324);let c=e=>{let{name:t,label:n,labelProps:c,tooltip:d,isRequired:u,layout:h="inline",helperText:m,...g}=e,[x,p,{setValue:y}]=(0,r.U$)(t),f=!!(p.touched&&p.error),[j,v]=(0,a.useState)("");x.value||"tags"!==g.mode&&"multiple"!==g.mode||(x.value=[]),"tags"===g.mode&&"string"==typeof x.value&&(x.value=[x.value]);let b="tags"===g.mode?(e,t)=>e?e.value!==j||x.value.includes(j)?g.optionRender?g.optionRender(e,t):e.label:'Create "'.concat(j,'"'):void 0:g.optionRender||void 0,C=e=>{v(e),g.onSearch&&g.onSearch(e)},w=(e,t)=>{y(e),g.onChange&&g.onChange(e,t)};return"inline"===h?(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:g.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,{...x,id:g.id||t,"data-testid":"controlled-select-".concat(x.name),...g,optionRender:b,onSearch:"tags"===g.mode?C:void 0,onChange:w,value:x.value||void 0,status:f?"error":void 0}),m&&(0,s.jsx)(i.Q6r,{children:m}),(0,s.jsx)(o.Bc,{isInvalid:f,message:p.error,fieldName:x.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:g.id||t,fontSize:"xs",my:0,mr:1,...c,children:n}):null,(0,s.jsx)(l.b,{label:d})]}),(0,s.jsx)(i.WPr,{...x,id:g.id||t,"data-testid":"controlled-select-".concat(x.name),...g,optionRender:b,onSearch:"tags"===g.mode?C:void 0,onChange:w,value:x.value||void 0,status:f?"error":void 0}),m&&(0,s.jsx)(i.Q6r,{style:{marginTop:0},children:m}),(0,s.jsx)(o.Bc,{isInvalid:f,message:p.error,fieldName:x.name})]})})}},17245:function(e,t,n){"use strict";n.d(t,{HK:function(){return a},VY:function(){return i.V},pI:function(){return d},h0:function(){return s.h},Rx:function(){return m},rK:function(){return x}});var s=n(36866),i=n(84306),r=n(812);let a=()=>{let{errorAlert:e}=(0,i.V)();return{handleError:t=>{let n="An unexpected error occurred. Please try again.";(0,r.Ot)(t)?n=t.data.detail:(0,r.tB)(t)&&(n=t.data.detail[0].msg),e(n)}}};var l=n(27378),o=n(20682),c=n(21910);let d=e=>{let{data:t}=(0,o.$I)({}),n=(0,l.useMemo)(()=>(null==t?void 0:t.items)||[],[t]);return(0,l.useMemo)(()=>{var t;if(!e)return"";if(e.connection_type===c.Rj.SAAS&&(null===(t=e.saas_config)||void 0===t?void 0:t.type)){let t=n.find(t=>{var n;return t.identifier===(null===(n=e.saas_config)||void 0===n?void 0:n.type)});if(t)return t}return e},[e,n])};var u=n(40431);let h=()=>({search:u.Oi.withDefault("")}),m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultSearchQuery:t,onSearchChange:n}=e,s=(0,l.useMemo)(()=>h(),[]),[i,r]=(0,u.XI)(s,{history:"push"}),a=(0,l.useMemo)(()=>({searchQuery:i.search||t||void 0}),[i,t]),o=(0,l.useCallback)(e=>{r({search:e||null})},[r]),c=(0,l.useCallback)(()=>{r({search:null})},[r]);return(0,l.useEffect)(()=>{n&&n(a)},[a,n]),{...a,updateSearch:o,resetSearch:c,searchProps:{value:a.searchQuery||"",onChange:o,onClear:()=>o("")}}},g=e=>({sortKey:e?(0,u.jx)([...e]):u.Oi.withDefault(""),sortOrder:(0,u.km)(["ascend","descend"])}),x=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultSortKey:t,defaultSortOrder:n,onSortingChange:s,validColumns:i}=e,r=(0,l.useMemo)(()=>g(i),[i]),[a,o]=(0,u.XI)(r,{history:"push"}),c=(0,l.useMemo)(()=>{var e;return{sortKey:a.sortKey||t,sortOrder:null!==(e=a.sortOrder)&&void 0!==e?e:n}},[a,t,n]),d=(0,l.useCallback)((e,t)=>{o({sortKey:e?String(e):null,sortOrder:null!=t?t:null})},[o]),h=(0,l.useCallback)(()=>{o({sortKey:null,sortOrder:null})},[o]);return(0,l.useEffect)(()=>{s&&s(c)},[c,s]),{...c,updateSorting:d,resetSorting:h,sortingProps:{sortDirections:["ascend","descend"],defaultSortOrder:c.sortOrder,sortedInfo:c.sortKey?{field:c.sortKey,order:c.sortOrder}:void 0}}}},84306:function(e,t,n){"use strict";n.d(t,{V:function(){return r}});var s=n(24246),i=n(96306);let r=()=>{let e=(0,i.pmc)();return{errorAlert:(t,n,r)=>{let a={...r,position:(null==r?void 0:r.position)||"top",render:e=>{let{onClose:r}=e;return(0,s.jsxs)(i.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,s.jsx)(i.zMQ,{}),(0,s.jsxs)(i.xuv,{children:[n&&(0,s.jsx)(i.CdC,{children:n}),(0,s.jsx)(i.XaZ,{children:t})]}),(0,s.jsx)(i.PZ7,{onClick:r,position:"relative",right:0,size:"sm",top:-1})]})}};(null==r?void 0:r.id)&&e.isActive(r.id)?e.update(r.id,a):e(a)},successAlert:(t,n,r)=>{let a={...r,position:(null==r?void 0:r.position)||"top",render:e=>{let{onClose:r}=e;return(0,s.jsxs)(i.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,s.jsx)(i.zMQ,{}),(0,s.jsxs)(i.xuv,{children:[n&&(0,s.jsx)(i.CdC,{children:n}),(0,s.jsx)(i.XaZ,{children:t})]}),(0,s.jsx)(i.PZ7,{onClick:r,position:"relative",right:0,size:"sm",top:-1})]})}};(null==r?void 0:r.id)&&e.isActive(r.id)?e.update(r.id,a):e(a)}}}},16220:function(e,t,n){"use strict";n.d(t,{V:function(){return r}});var s=n(25980),i=n(77830);let r=()=>({systemOrDatamapRoute:(0,s.hz)().plus?i.oG:i.So})},57899:function(e,t,n){"use strict";var s=n(24246),i=n(96306),r=n(27378);t.Z=e=>{let{handleConfirm:t,isOpen:n,onClose:a,title:l,message:o,confirmButtonText:c="Continue",cancelButtonText:d="Cancel"}=e,u=(0,r.useRef)(null);return(0,s.jsx)(i.aRR,{isOpen:n,leastDestructiveRef:u,onClose:a,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:a,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),r=n(79894),a=n.n(r),l=n(27378);let{Text:o}=i.AntTypography,c=e=>{let{items:t,...n}=e,r=(0,l.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let r=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:r?void 0:400},ellipsis:!r,id:r?"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)(a(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,s.jsx)(i.zrq,{items:r,...n})}},36866:function(e,t,n){"use strict";n.d(t,{h:function(){return c}});var s=n(40431),i=n(27378),r=n(55484);let a=(0,s.jo)({parse(e){let t=parseInt(e,10);try{return r.Rx().integer().positive().validateSync(t),t}catch(e){return null}},serialize:e=>e.toString()});var l=n(32735);let o=function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{page:a.withDefault(l.Ej),size:n.pageSizeOptions?(0,s.bJ)(n.pageSizeOptions).withDefault(null!==(e=n.pageSize)&&void 0!==e?e:l.L8):a.withDefault(null!==(t=n.pageSize)&&void 0!==t?t:l.L8)}},c=function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultPageSize:r=l.L8,pageSizeOptions:a,showSizeChanger:c=!0}=n,d=null!=a?a:l.VZ,u=(0,i.useMemo)(()=>o({pageSize:r,pageSizeOptions:a}),[r,a]),[h,m]=(0,s.XI)(u,{history:"push"}),g={pageIndex:null!==(e=h.page)&&void 0!==e?e:l.Ej,pageSize:null!==(t=h.size)&&void 0!==t?t:r};return{...g,updatePageIndex:e=>{m({page:e})},updatePageSize:e=>{m({page:e!==g.pageSize?l.Ej:g.pageIndex,size:e})},resetPagination:()=>{m({page:l.Ej,size:r})},nextPage:()=>{m(e=>{let{page:t,size:n}=e;return{page:t+1,size:n}})},previousPage:()=>{m(e=>{let{page:t,size:n}=e;return{page:t-1,size:n}})},pageSizeOptions:d,showSizeChanger:c}}},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 h},W:function(){return m},h9:function(){return r},jc:function(){return s},qt:function(){return o},sn:function(){return d}});let{useGetEmailInviteStatusQuery:s,useGetActiveMessagingProviderQuery:i,useCreateMessagingConfigurationMutation:r,useCreateMessagingConfigurationSecretsMutation:a,useGetMessagingConfigurationDetailsQuery:l,useGetMessagingConfigurationsQuery:o,useGetMessagingConfigurationByKeyQuery:c,useUpdateMessagingConfigurationByKeyMutation:d,useUpdateMessagingConfigurationSecretsByKeyMutation:u,useCreateTestConnectionMessageMutation:h,useDeleteMessagingConfigurationByKeyMutation:m}=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),r=n(16134),a=n(77213),l=n(58754),o=n(15677),c=n(96306),d=n(3124),u=n.n(d),h=n(86677),m=n(25980),g=n(14048),x=n(58452);let p=e=>{let{onCancel:t,onConfirm:n,isOpen:i,onClose:r}=e;return(0,s.jsx)(x.Z,{isOpen:i,onClose:r,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:a}=(0,m.hz)(),l=(0,r.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 h=null;return a?d||(h="Your cluster appears not to be healthy. Its status is ".concat(o,".")):h="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:h,popupVisible:!!h,children:(0,s.jsx)("button",{disabled:!a||!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)(g.pt,{boxSize:6}),"data-testid":"data-flow-scan-btn"})})}),a?(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 S=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 k=()=>{let e=(0,r.T)(),t=(0,h.useRouter)(),{isOpen:n,onClose:i,onOpen:a}=(0,c.qY0)(),{dictionaryService:l}=(0,m.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)(S,{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)(g.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)):a()},"data-testid":"multiple-btn",children:(0,s.jsx)(j.Z,{title:"Add multiple systems",color:u().FIDESUI_OLIVE,icon:(0,s.jsx)(g.P$,{boxSize:6}),description:"Choose vendors and automatically populate system details"})})]})]}),(0,s.jsxs)(c.xuv,{"data-testid":"automated-options",children:[(0,s.jsx)(S,{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)(g.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)(g.tb,{boxSize:6})})}),(0,s.jsx)(C,{onClick:()=>{e((0,o.sz)()),e((0,o.CQ)(w.D.DATA_FLOW))}})]})]})]})},T=n(34090),_=n(55484),A=n(40324),z=n(812),q=n(17245),I=n(97181),O=n(70788),D=n(28416);let N=e=>"system_type"in e,{useGenerateMutation:M}=n(78780).u.injectEndpoints({endpoints:e=>({generate:e.mutation({query:e=>({url:"generate",method:"POST",body:e})})})});var K=n(59301);let E=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 Z=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)(K.Z,{href:D.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)(K.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)(E,{message:t.message}),(0,s.jsxs)(c.xvT,{children:["If this error does not clarify why scanning failed, please"," ",(0,s.jsx)(K.Z,{href:D.we,children:"create a new issue"}),"."]})]})]})},R=n(57899);let F=(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 W=e=>{let{title:t,onClose:n}=e,{isOpen:i,onOpen:r,onClose:a}=(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:r})]}),(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)(R.Z,{isOpen:i,onClose:a,handleConfirm:n,title:"Cancel Scan!",message:F,confirmButtonText:"Yes, Cancel",cancelButtonText:"No, Continue Scanning"})]})};let P={aws_access_key_id:"",aws_secret_access_key:"",aws_session_token:"",region_name:""},U=_.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 B=()=>{let e=(0,r.C)(o.De),t=(0,r.T)(),{successAlert:n}=(0,q.VY)(),[a,l]=(0,i.useState)(),d=e=>{let s=(null!=e?e:[]).filter(N);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,z.nU)(e,{status:500,message:"Our system encountered a problem while connecting to AWS."}))},h=()=>{t((0,o.sz)(2))},[m,{isLoading:g}]=M(),x=async t=>{l(void 0);let n=await m({organization_key:e,generate:{config:t,target:f.GC.AWS,type:f.j.SYSTEMS}});(0,z.D4)(n)?u(n.error):d(n.data.generate_results)};return(0,s.jsx)(T.J9,{initialValues:P,validationSchema:U,onSubmit:x,children:e=>{let{isValid:t,isSubmitting:n,dirty:i}=e;return(0,s.jsx)(T.l0,{"data-testid":"authenticate-aws-form",children:(0,s.jsxs)(c.Kqy,{spacing:10,children:[n?(0,s.jsx)(W,{title:"System scanning in progress",onClose:h}):null,a?(0,s.jsx)(Z,{error:a,scanType:"aws"}):null,n||a?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(),h()}},{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:D.xO,isRequired:!0,placeholder:"Select a region"})]})]}),n?null:(0,s.jsxs)(c.Ugi,{children:[(0,s.jsx)(c.wpx,{onClick:h,children:"Cancel"}),(0,s.jsx)(c.wpx,{htmlType:"submit",type:"primary",disabled:!i||!t,loading:g,"data-testid":"submit-btn",children:"Save and continue"})]})]})})}})};let X={orgUrl:"",token:""},L=_.Ry().shape({orgUrl:_.Z_().required().trim().url().label("URL"),token:_.Z_().required().trim().matches(/^[^\s]+$/,"Cannot contain spaces").label("Token")});var Y=()=>{let e=(0,r.C)(o.De),t=(0,r.T)(),{successAlert:n}=(0,q.VY)(),[a,l]=(0,i.useState)(),d=e=>{let s=(null!=e?e:[]).filter(N);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,z.nU)(e,{status:500,message:"Our system encountered a problem while connecting to Okta."}))},h=()=>{t((0,o.sz)(2))},[m,{isLoading:g}]=M(),x=async t=>{l(void 0);let n=await m({organization_key:e,generate:{config:t,target:f.GC.OKTA,type:f.j.SYSTEMS}});(0,z.D4)(n)?u(n.error):d(n.data.generate_results)};return(0,s.jsx)(T.J9,{initialValues:X,validationSchema:L,onSubmit:x,children:e=>{let{isValid:t,isSubmitting:n,dirty:i}=e;return(0,s.jsx)(T.l0,{"data-testid":"authenticate-okta-form",children:(0,s.jsxs)(c.Kqy,{spacing:10,children:[n?(0,s.jsx)(W,{title:"System scanning in progress",onClose:h}):null,a?(0,s.jsx)(Z,{error:a}):null,n||a?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(),h()}},{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:h,children:"Cancel"}),(0,s.jsx)(c.wpx,{htmlType:"submit",type:"primary",disabled:!i||!t,loading:g,"data-testid":"submit-btn",children:"Save and continue"})]})]})})}})},V=n(46628),J=n(31883),Q=()=>{let e=(0,r.T)(),t=(0,c.pmc)(),[n]=(0,b.J9)(),[a,{data:l}]=(0,b.KW)(),[d,u]=(0,i.useState)(),[h,m]=(0,i.useState)(!1),g=e=>{u((0,z.nU)(e,{status:500,message:"Our system encountered a problem while scanning your infrastructure."}))};(0,i.useEffect)(()=>{(async()=>{let{error:e}=await n();m(!(e&&(0,J.Bw)(e)&&404===e.status));let t=await a({classify:!0});(0,z.D4)(t)&&g(t.error)})()},[a,n]),(0,i.useEffect)(()=>{(async()=>{if(l){let{data:s}=await n(),i=h?(null==s?void 0:s.added_systems)||[]:l.systems;t((0,V.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,h,n]);let x=()=>{e((0,o.sz)(2))};return d?(0,s.jsxs)(c.Kqy,{children:[(0,s.jsx)(Z,{error:d}),(0,s.jsx)(c.xuv,{children:(0,s.jsx)(c.wpx,{onClick:x,"data-testid":"cancel-btn",children:"Cancel"})})]}):(0,s.jsx)(W,{title:"Infrastructure scanning in progress",onClose:x})},$=()=>{let e=(0,r.C)(o.Ll);return(0,s.jsxs)(c.xuv,{w:"40%",children:[e===f.GC.AWS?(0,s.jsx)(B,{}):null,e===f.GC.OKTA?(0,s.jsx)(Y,{}):null,e===w.D.DATA_FLOW?(0,s.jsx)(Q,{}):null]})},G=n(83265),H=n(46238);let ee=()=>{var e,t;let n=(0,r.T)(),s=e=>{n((0,o.nD)(e)),n((0,o.sz)())},[a]=(0,G.vz)(),[l]=(0,G.$f)(),{data:d,isLoading:u}=(0,G.GQ)(G.Av),[h,m]=(0,i.useState)(!1);(0,i.useEffect)(()=>{!u&&!h&&(null==d?void 0:d.name)&&(null==d?void 0:d.description)&&n((0,o.sz)())},[u,d,n,h]);let g=(0,c.pmc)();return(0,T.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;m(!0);let r={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:G.Av,organization_fides_key:G.Av};if(d){let e=await l(r);if((0,z.D4)(e)){g({status:"error",description:(0,z.e$)(e.error)});return}g.closeAll(),s(r)}else{let e=await a(r);if((0,z.D4)(e)){g({status:"error",description:(0,z.e$)(e.error)});return}g.closeAll(),s(r)}},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:r,values:a,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:a.name,isInvalid:r.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:a.description,isInvalid:r.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:!a.name||!a.description,loading:l,"data-testid":"submit-btn",children:"Save and continue"})]})})},en=e=>{let{allColumns:t,selectedColumns:n,onChange:r}=e,a=(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=()=>{a.forEach((e,t)=>a.set(t,!1)),r([])},o=e=>{var n;let s=null!==(n=a.get(e.name))&&void 0!==n&&n;a.set(e.name,!s),r(t.filter(e=>a.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),er=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,r;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===(r=t.fidesctl_meta)||void 0===r?void 0:r.resource_id})}return(0,s.jsx)(s.Fragment,{children:ei(t,n)})},ea=e=>{let{allSystems:t,checked:n,onChange:i,columns:r,tableHeadProps:a}=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===r.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,{...a,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"})}),r.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)})}),r.map(t=>(0,s.jsx)(c.Td,{children:(0,s.jsx)(er,{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,r.C)(o.j4),t=(0,r.T)(),n=(0,h.useRouter)(),{systemOrDatamapRoute:a}=(0,es.V)(),{isOpen:l,onOpen:d,onClose:u}=(0,c.qY0)(),[m]=(0,el.dB)(),[g,x]=(0,i.useState)(e),[p,y]=(0,i.useState)(eo),{handleError:f}=(0,q.HK)(),j=e=>{n.push(e).then(()=>{t((0,o.mc)())})},v=async()=>{let e=await m(g);return(0,z.D4)(e)?f(e.error):j(a)},b=()=>{t((0,o.sz)(2))},C=(0,s.jsxs)(c.xvT,{color:"gray.500",mb:3,children:["You’re registering ",g.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)(ea,{allSystems:e,checked:g,onChange:x,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>g.length?d():v()},type:"primary",disabled:0===g.length,"data-testid":"register-btn",children:"Register selected systems"})]})]})]}),(0,s.jsx)(R.Z,{title:"Warning",message:C,handleConfirm:v,isOpen:l,onClose:u})]})},ed=()=>{let e=(0,r.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)(k,{}):null,3===e?(0,s.jsx)($,{}):null,4===e?(0,s.jsx)(c.xuv,{pr:10,children:(0,s.jsx)(ec,{})}):null]})})},eu=()=>{let e=(0,r.T)();return(0,i.useEffect)(()=>{e((0,o.sz)(2))},[e]),(0,s.jsxs)(a.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,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([[7262],{81575:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/privacy-notices",function(){return a(13089)}])},58754:function(e,t,a){"use strict";var l=a(24246),i=a(96306),n=a(70788);t.Z=e=>{let{heading:t,breadcrumbItems:a,isSticky:s=!0,children:r,rightContent:o,style:c,...d}=e;return(0,l.jsxs)("div",{...d,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,l.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,l.jsx)(i.lQT,{className:a||r?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,l.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!a&&(0,l.jsx)(n.m,{className:r?"pb-4":void 0,items:a,"data-testid":"page-breadcrumb"}),r]})}},70788:function(e,t,a){"use strict";a.d(t,{m:function(){return c}});var l=a(24246),i=a(96306),n=a(79894),s=a.n(n),r=a(27378);let{Text:o}=i.AntTypography,c=e=>{let{items:t,...a}=e,n=(0,r.useMemo)(()=>null==t?void 0:t.map((e,a)=>{let n=a===t.length-1,r={...e},c=r.onClick&&!r.href;return("string"==typeof r.title&&(r.title=(0,l.jsx)(o,{style:{color:"inherit",maxWidth:n?void 0:400},ellipsis:!n,id:n?"breadcrumb-current-page":void 0,children:r.title})),c)?r.title=(0,l.jsx)(i.wpx,{type:"text",size:"small",icon:r.icon,onClick:r.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:r.title}):(r.icon&&(r.title=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"anticon align-text-bottom",children:r.icon}),r.title]})),r.href&&r.title&&(r.title=(0,l.jsx)(s(),{href:r.href,className:"ant-breadcrumb-link",children:r.title}),delete r.href)),r}),[t]);return(0,l.jsx)(i.zrq,{items:n,...a})}},2525:function(e,t,a){"use strict";a.d(t,{Q:function(){return r}});var l=a(24246),i=a(96306),n=a(27378),s=a(3110);let r=e=>{let{values:t,columnState:a,tagProps:r,onTagClose:o,...c}=e,{isExpanded:d,isWrapped:u,version:p}=a||{},[h,x]=(0,n.useState)(!d),[g,m]=(0,n.useState)(!!u),[v,f]=(0,n.useState)(d?t:null==t?void 0:t.slice(0,2));(0,n.useEffect)(()=>{x(!d)},[d,p]),(0,n.useEffect)(()=>{m(!!u)},[u]),(0,n.useEffect)(()=>{(null==t?void 0:t.length)&&f(h?t.slice(0,2):t)},[h,t]);let j=(0,n.useCallback)(()=>{f(null==t?void 0:t.slice(0,2)),x(!0)},[t]),b=(0,n.useCallback)(()=>{x(!1)},[]),y=(0,n.useCallback)(()=>{h?b():j()},[h,b,j]);return(0,n.useMemo)(()=>(null==v?void 0:v.length)?(0,l.jsxs)(i.jqI,{align:h?"center":"start",wrap:g?"wrap":"nowrap",vertical:!h,gap:"small","data-testid":"tag-expandable-cell",style:{overflowX:"auto",...c.style},...c,children:[v.map(e=>(0,l.jsx)(i.j8w,{color:"white","data-testid":e.key,onClose:o?()=>o(e.key):void 0,...r,...e.tagProps,children:(0,l.jsx)(i.lKn,{ellipsis:!!h&&{tooltip:!0},style:{color:"inherit",maxWidth:h?s.TD:void 0},children:e.label})},e.key)),t&&t.length>2&&(0,l.jsx)(i.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),y()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:h?"+".concat(t.length-2," more"):s.T5})]}):(0,l.jsx)("span",{"data-testid":"tag-expandable-cell-empty"}),[v,h,g,c,t,r,o,y])}},3110:function(e,t,a){"use strict";a.d(t,{DI:function(){return r},T5:function(){return n},TD:function(){return s}});var l=a(24246),i=a(96306);let n="show less",s=150,r=[{key:"expand-all",label:"Expand all",icon:(0,l.jsx)(i.PJP.jbG,{})},{key:"collapse-all",label:"Collapse all",icon:(0,l.jsx)(i.PJP.MVB,{})}]},26070:function(e,t,a){"use strict";a.d(t,{v:function(){return o},Q:function(){return c.Q}});var l=a(24246),i=a(96306),n=a(27378),s=a(3110);let{Text:r}=i.AntTypography,o=e=>{let{values:t,valueSuffix:a,columnState:o}=e,{isExpanded:c,version:d}=o||{},[u,p]=(0,n.useState)(!c);(0,n.useEffect)(()=>{p(!c)},[c,d]);let h=(0,n.useCallback)(()=>{p(!0)},[]),x=(0,n.useCallback)(()=>{p(!1)},[]),g=(0,n.useCallback)(()=>{u?x():h()},[u,x,h]);return(0,n.useMemo)(()=>(null==t?void 0:t.length)?1===t.length?(0,l.jsx)(r,{ellipsis:!0,"data-testid":"list-expandable-cell-single",children:t[0]}):(0,l.jsxs)(i.jqI,{align:u?"center":"flex-start",vertical:!u,gap:u?"small":"none","data-testid":"list-expandable-cell",children:[u?(0,l.jsxs)(r,{ellipsis:!0,children:[t.length," ",a]}):(0,l.jsx)(i.krs,{dataSource:t,renderItem:e=>(0,l.jsx)("li",{children:e})}),(0,l.jsx)(i.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),g()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:u?"view":s.T5})]}):null,[u,t,a,g])};var c=a(2525)},13089:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return T}});var l=a(24246),i=a(96306),n=a(27378),s=a(35287),r=a(58754),o=a(92222),c=a(59003),d=a(47935),u=a(79894),p=a.n(u),h=a(86677),x=a(77830),g=a(8411),m=a(19904),v=a(32885),f=a(22286),j=a(65063),b=a(71922),y=a(21910),w=a(26070);let k={items:[],total:0,page:1,size:25,pages:1},C=()=>(0,l.jsxs)(i.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:[(0,l.jsxs)(i.gCW,{children:[(0,l.jsx)(i.xvT,{fontSize:"md",fontWeight:"600",children:"No privacy notices found."}),(0,l.jsx)(i.xvT,{fontSize:"sm",children:'Click "Add a privacy notice" to add your first privacy notice to Fides.'})]}),(0,l.jsx)(i.wpx,{href:"".concat(x.IT,"/new"),role:"link",size:"small",type:"primary","data-testid":"add-privacy-notice-btn",children:"Add a privacy notice +"})]}),P=(0,o.Cl)(),R=()=>{let{isLoading:e}=(0,v.x8)(),t=(0,h.useRouter)(),a=(0,m.Tg)([y.Sh.PRIVACY_NOTICE_UPDATE]),{PAGE_SIZES:s,pageSize:r,setPageSize:u,onPreviousPageClick:R,isPreviousPageDisabled:T,onNextPageClick:N,isNextPageDisabled:z,startRange:_,endRange:E,pageIndex:M,setTotalPages:S}=(0,d.oi)(),{isFetching:I,isLoading:V,data:A}=(0,b.J6)({page:M,size:r}),{items:q,total:Q,pages:W}=(0,n.useMemo)(()=>A||k,[A]);(0,n.useEffect)(()=>{S(W)},[W,S]);let D=(0,n.useMemo)(()=>[P.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(d.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(d.Rr,{value:"Title",...e})}),P.accessor(e=>e.consent_mechanism,{id:"consent_mechanism",cell:e=>(0,f.JA)(e.getValue()),header:e=>(0,l.jsx)(d.Rr,{value:"Mechanism",...e})}),P.accessor(e=>e.configured_regions,{id:"regions",cell:e=>{var t,a;return(0,l.jsx)(w.Q,{values:null!==(a=null===(t=e.getValue())||void 0===t?void 0:t.map(e=>{var t;let a=(0,i.QCN)(e);return{label:a?(0,i.c1K)({isoEntry:a,showFlag:!0}):null!==(t=g.Z8[e])&&void 0!==t?t:e,key:e}}))&&void 0!==a?a:[]})},header:e=>(0,l.jsx)(d.Rr,{value:"Locations",...e}),meta:{showHeaderMenu:!0,disableRowClick:!0,width:"auto"}}),P.accessor(e=>e.disabled,{id:"status",cell:e=>(0,f.jN)(e),header:e=>(0,l.jsx)(d.Rr,{value:"Status",...e})}),P.accessor(e=>e.framework,{id:"framework",cell:e=>e.getValue()?(0,l.jsx)(d.A4,{value:j.Ep.get(e.getValue())}):null,header:e=>(0,l.jsx)(d.Rr,{value:"Framework",...e})}),P.accessor(e=>e.children,{id:"children",cell:e=>{var t;return(null===(t=(0,f.Mq)(e.getValue()))||void 0===t?void 0:t.length)?(0,l.jsx)(d.WP,{suffix:"Children",value:(0,f.Mq)(e.getValue()),...e}):(0,l.jsx)(d.G3,{value:"Unassigned"})},header:e=>(0,l.jsx)(d.Rr,{value:"Children",...e}),meta:{showHeaderMenu:!0}}),a&&P.accessor(e=>e.disabled,{id:"enable",cell:f.PS,header:e=>(0,l.jsx)(d.Rr,{value:"Enable",...e}),meta:{disableRowClick:!0}})].filter(Boolean),[a]),B=(0,c.b7)({getCoreRowModel:(0,o.sC)(),getGroupedRowModel:(0,o.qe)(),getExpandedRowModel:(0,o.rV)(),columns:D,manualPagination:!0,data:q,state:{expanded:!0},columnResizeMode:"onChange"});return V||e?(0,l.jsx)(d.I4,{rowHeight:36,numRows:15}):(0,l.jsx)("div",{children:(0,l.jsxs)(i.kCb,{flex:1,direction:"column",overflow:"auto",children:[a&&(0,l.jsx)(d.Q$,{children:(0,l.jsx)(i.Ugi,{alignItems:"center",spacing:4,marginLeft:"auto",children:(0,l.jsx)(p(),{href:"".concat(x.IT,"/new"),passHref:!0,legacyBehavior:!0,children:(0,l.jsx)(i.wpx,{type:"primary","data-testid":"add-privacy-notice-btn",children:"Add a privacy notice +"})})})}),(0,l.jsx)(d.ZK,{tableInstance:B,onRowClick:a?e=>{let{id:l}=e;a&&t.push("".concat(x.IT,"/").concat(l))}:void 0,emptyTableNotice:(0,l.jsx)(C,{})}),(0,l.jsx)(d.s8,{totalRows:Q||0,pageSizes:s,setPageSize:u,onPreviousPageClick:R,isPreviousPageDisabled:T||I,onNextPageClick:N,isNextPageDisabled:z||I,startRange:_,endRange:E})]})})};var T=()=>(0,l.jsxs)(s.Z,{title:"Privacy notices",children:[(0,l.jsx)(r.Z,{heading:"Privacy Notices",children:(0,l.jsx)(i.xvT,{fontSize:"sm",mb:8,width:{base:"100%",lg:"50%"},children:"Manage the privacy notices and mechanisms that are displayed to your users based on their location, what information you collect about them, and how you use that data."})}),(0,l.jsx)(i.xuv,{"data-testid":"privacy-notices-page",children:(0,l.jsx)(R,{})})]})}},function(e){e.O(0,[6853,2888,9774,179],function(){return e(e.s=81575)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3422],{15806:function(e,a,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/reporting",function(){return n(45113)}])},35287:function(e,a,n){"use strict";var r=n(24246),t=n(96306),i=n(88038),s=n.n(i);n(27378),a.Z=e=>{let{children:a,title:n,mainProps:i}=e;return(0,r.jsxs)(t.kCb,{"data-testid":n,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,r.jsxs)(s(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsx)(t.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...i,children:a})]})}},58754:function(e,a,n){"use strict";var r=n(24246),t=n(96306),i=n(70788);a.Z=e=>{let{heading:a,breadcrumbItems:n,isSticky:s=!0,children:o,rightContent:l,style:d,...c}=e;return(0,r.jsxs)("div",{...c,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,r.jsxs)(t.jqI,{justify:"space-between",children:["string"==typeof a?(0,r.jsx)(t.lQT,{className:n||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:a}):a,l&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,r.jsx)(i.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},17245:function(e,a,n){"use strict";n.d(a,{HK:function(){return s},VY:function(){return t.V},pI:function(){return c},h0:function(){return r.h},Rx:function(){return F},rK:function(){return h}});var r=n(36866),t=n(84306),i=n(812);let s=()=>{let{errorAlert:e}=(0,t.V)();return{handleError:a=>{let n="An unexpected error occurred. Please try again.";(0,i.Ot)(a)?n=a.data.detail:(0,i.tB)(a)&&(n=a.data.detail[0].msg),e(n)}}};var o=n(27378),l=n(20682),d=n(21910);let c=e=>{let{data:a}=(0,l.$I)({}),n=(0,o.useMemo)(()=>(null==a?void 0:a.items)||[],[a]);return(0,o.useMemo)(()=>{var a;if(!e)return"";if(e.connection_type===d.Rj.SAAS&&(null===(a=e.saas_config)||void 0===a?void 0:a.type)){let a=n.find(a=>{var n;return a.identifier===(null===(n=e.saas_config)||void 0===n?void 0:n.type)});if(a)return a}return e},[e,n])};var _=n(40431);let u=()=>({search:_.Oi.withDefault("")}),F=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultSearchQuery:a,onSearchChange:n}=e,r=(0,o.useMemo)(()=>u(),[]),[t,i]=(0,_.XI)(r,{history:"push"}),s=(0,o.useMemo)(()=>({searchQuery:t.search||a||void 0}),[t,a]),l=(0,o.useCallback)(e=>{i({search:e||null})},[i]),d=(0,o.useCallback)(()=>{i({search:null})},[i]);return(0,o.useEffect)(()=>{n&&n(s)},[s,n]),{...s,updateSearch:l,resetSearch:d,searchProps:{value:s.searchQuery||"",onChange:l,onClear:()=>l("")}}},p=e=>({sortKey:e?(0,_.jx)([...e]):_.Oi.withDefault(""),sortOrder:(0,_.km)(["ascend","descend"])}),h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultSortKey:a,defaultSortOrder:n,onSortingChange:r,validColumns:t}=e,i=(0,o.useMemo)(()=>p(t),[t]),[s,l]=(0,_.XI)(i,{history:"push"}),d=(0,o.useMemo)(()=>{var e;return{sortKey:s.sortKey||a,sortOrder:null!==(e=s.sortOrder)&&void 0!==e?e:n}},[s,a,n]),c=(0,o.useCallback)((e,a)=>{l({sortKey:e?String(e):null,sortOrder:null!=a?a:null})},[l]),u=(0,o.useCallback)(()=>{l({sortKey:null,sortOrder:null})},[l]);return(0,o.useEffect)(()=>{r&&r(d)},[d,r]),{...d,updateSorting:c,resetSorting:u,sortingProps:{sortDirections:["ascend","descend"],defaultSortOrder:d.sortOrder,sortedInfo:d.sortKey?{field:d.sortKey,order:d.sortOrder}:void 0}}}},84306:function(e,a,n){"use strict";n.d(a,{V:function(){return i}});var r=n(24246),t=n(96306);let i=()=>{let e=(0,t.pmc)();return{errorAlert:(a,n,i)=>{let s={...i,position:(null==i?void 0:i.position)||"top",render:e=>{let{onClose:i}=e;return(0,r.jsxs)(t.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,r.jsx)(t.zMQ,{}),(0,r.jsxs)(t.xuv,{children:[n&&(0,r.jsx)(t.CdC,{children:n}),(0,r.jsx)(t.XaZ,{children:a})]}),(0,r.jsx)(t.PZ7,{onClick:i,position:"relative",right:0,size:"sm",top:-1})]})}};(null==i?void 0:i.id)&&e.isActive(i.id)?e.update(i.id,s):e(s)},successAlert:(a,n,i)=>{let s={...i,position:(null==i?void 0:i.position)||"top",render:e=>{let{onClose:i}=e;return(0,r.jsxs)(t.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,r.jsx)(t.zMQ,{}),(0,r.jsxs)(t.xuv,{children:[n&&(0,r.jsx)(t.CdC,{children:n}),(0,r.jsx)(t.XaZ,{children:a})]}),(0,r.jsx)(t.PZ7,{onClick:i,position:"relative",right:0,size:"sm",top:-1})]})}};(null==i?void 0:i.id)&&e.isActive(i.id)?e.update(i.id,s):e(s)}}}},70788:function(e,a,n){"use strict";n.d(a,{m:function(){return d}});var r=n(24246),t=n(96306),i=n(79894),s=n.n(i),o=n(27378);let{Text:l}=t.AntTypography,d=e=>{let{items:a,...n}=e,i=(0,o.useMemo)(()=>null==a?void 0:a.map((e,n)=>{let i=n===a.length-1,o={...e},d=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,r.jsx)(l,{style:{color:"inherit",maxWidth:i?void 0:400},ellipsis:!i,id:i?"breadcrumb-current-page":void 0,children:o.title})),d)?o.title=(0,r.jsx)(t.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,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,r.jsx)(s(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[a]);return(0,r.jsx)(t.zrq,{items:i,...n})}},36866:function(e,a,n){"use strict";n.d(a,{h:function(){return d}});var r=n(40431),t=n(27378),i=n(55484);let s=(0,r.jo)({parse(e){let a=parseInt(e,10);try{return i.Rx().integer().positive().validateSync(a),a}catch(e){return null}},serialize:e=>e.toString()});var o=n(32735);let l=function(){var e,a;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{page:s.withDefault(o.Ej),size:n.pageSizeOptions?(0,r.bJ)(n.pageSizeOptions).withDefault(null!==(e=n.pageSize)&&void 0!==e?e:o.L8):s.withDefault(null!==(a=n.pageSize)&&void 0!==a?a:o.L8)}},d=function(){var e,a;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultPageSize:i=o.L8,pageSizeOptions:s,showSizeChanger:d=!0}=n,c=null!=s?s:o.VZ,_=(0,t.useMemo)(()=>l({pageSize:i,pageSizeOptions:s}),[i,s]),[u,F]=(0,r.XI)(_,{history:"push"}),p={pageIndex:null!==(e=u.page)&&void 0!==e?e:o.Ej,pageSize:null!==(a=u.size)&&void 0!==a?a:i};return{...p,updatePageIndex:e=>{F({page:e})},updatePageSize:e=>{F({page:e!==p.pageSize?o.Ej:p.pageIndex,size:e})},resetPagination:()=>{F({page:o.Ej,size:i})},nextPage:()=>{F(e=>{let{page:a,size:n}=e;return{page:a+1,size:n}})},previousPage:()=>{F(e=>{let{page:a,size:n}=e;return{page:a-1,size:n}})},pageSizeOptions:c,showSizeChanger:d}}},8411:function(e,a,n){"use strict";n.d(a,{NA:function(){return i},Z8:function(){return t}});var r=n(21910);let t={[r._F.ER]:"Eritrea",[r._F.DJ]:"Djibouti",[r._F.MR]:"Mauritania",[r._F.NA]:"Namibia",[r._F.GH]:"Ghana",[r._F.SS]:"South Sudan",[r._F.SC]:"Seychelles",[r._F.IO]:"British Indian Ocean Territory",[r._F.GQ]:"Equatorial Guinea",[r._F.AO]:"Angola",[r._F.CG]:"Republic of the Congo",[r._F.BW]:"Botswana",[r._F.BI]:"Burundi",[r._F.DZ]:"Algeria",[r._F.TD]:"Chad",[r._F.NG]:"Nigeria",[r._F.TZ]:"Tanzania",[r._F.EH]:"Western Sahara",[r._F.SN]:"Senegal",[r._F.LR]:"Liberia",[r._F.ZA]:"South Africa",[r._F.CV]:"Cape Verde",[r._F.GM]:"Gambia",[r._F.SD]:"Sudan",[r._F.KM]:"Comoros",[r._F.SZ]:"Eswatini",[r._F.UG]:"Uganda",[r._F.MG]:"Madagascar",[r._F.RW]:"Rwanda",[r._F.CD]:"DR Congo",[r._F.CM]:"Cameroon",[r._F.SH]:"Saint Helena, Ascension and Tristan da Cunha",[r._F.TG]:"Togo",[r._F.MU]:"Mauritius",[r._F.NE]:"Niger",[r._F.BJ]:"Benin",[r._F.EG]:"Egypt",[r._F.LS]:"Lesotho",[r._F.ET]:"Ethiopia",[r._F.MA]:"Morocco",[r._F.YT]:"Mayotte",[r._F.BF]:"Burkina Faso",[r._F.RE]:"R\xe9union",[r._F.ST]:"S\xe3o Tom\xe9 and Pr\xedncipe",[r._F.CF]:"Central African Republic",[r._F.MZ]:"Mozambique",[r._F.MW]:"Malawi",[r._F.ML]:"Mali",[r._F.ZM]:"Zambia",[r._F.LY]:"Libya",[r._F.GW]:"Guinea-Bissau",[r._F.SO]:"Somalia",[r._F.KE]:"Kenya",[r._F.GN]:"Guinea",[r._F.ZW]:"Zimbabwe",[r._F.TN]:"Tunisia",[r._F.SL]:"Sierra Leone",[r._F.GA]:"Gabon",[r._F.CI]:"Ivory Coast",[r._F.JO]:"Jordan",[r._F.PK]:"Pakistan",[r._F.KP]:"North Korea",[r._F.MO]:"Macau",[r._F.AM]:"Armenia",[r._F.SY]:"Syria",[r._F.TJ]:"Tajikistan",[r._F.SA]:"Saudi Arabia",[r._F.KR]:"South Korea",[r._F.NP]:"Nepal",[r._F.PH]:"Philippines",[r._F.IQ]:"Iraq",[r._F.LB]:"Lebanon",[r._F.MN]:"Mongolia",[r._F.PS]:"Palestine",[r._F.YE]:"Yemen",[r._F.JP]:"Japan",[r._F.KZ]:"Kazakhstan",[r._F.LK]:"Sri Lanka",[r._F.MM]:"Myanmar",[r._F.KG]:"Kyrgyzstan",[r._F.CN]:"China",[r._F.AF]:"Afghanistan",[r._F.OM]:"Oman",[r._F.IN]:"India",[r._F.LA]:"Laos",[r._F.UZ]:"Uzbekistan",[r._F.MV]:"Maldives",[r._F.ID]:"Indonesia",[r._F.VN]:"Vietnam",[r._F.MY]:"Malaysia",[r._F.TW]:"Taiwan",[r._F.KH]:"Cambodia",[r._F.AE]:"United Arab Emirates",[r._F.HK]:"Hong Kong",[r._F.GE]:"Georgia (Country)",[r._F.BD]:"Bangladesh",[r._F.KW]:"Kuwait",[r._F.TM]:"Turkmenistan",[r._F.QA]:"Qatar",[r._F.BH]:"Bahrain",[r._F.BN]:"Brunei",[r._F.TH]:"Thailand",[r._F.BT]:"Bhutan",[r._F.SG]:"Singapore",[r._F.IL]:"Israel",[r._F.AZ]:"Azerbaijan",[r._F.TL]:"Timor-Leste",[r._F.IR]:"Iran",[r._F.TR]:"Turkey",[r._F.MK]:"North Macedonia",[r._F.IE]:"Ireland",[r._F.DK]:"Denmark",[r._F.SK]:"Slovakia",[r._F.MD]:"Moldova",[r._F.AX]:"\xc5land Islands",[r._F.PL]:"Poland",[r._F.BA]:"Bosnia and Herzegovina",[r._F.SM]:"San Marino",[r._F.CZ]:"Czechia",[r._F.EE]:"Estonia",[r._F.XK]:"Kosovo",[r._F.FO]:"Faroe Islands",[r._F.SJ]:"Svalbard and Jan Mayen",[r._F.GG]:"Guernsey",[r._F.FR]:"France",[r._F.NL]:"Netherlands",[r._F.FI]:"Finland",[r._F.PT]:"Portugal",[r._F.DE]:"Germany",[r._F.MT]:"Malta",[r._F.JE]:"Jersey",[r._F.IS]:"Iceland",[r._F.ES]:"Spain",[r._F.GI]:"Gibraltar",[r._F.NO]:"Norway",[r._F.CY]:"Cyprus",[r._F.RS]:"Serbia",[r._F.LT]:"Lithuania",[r._F.MC]:"Monaco",[r._F.LU]:"Luxembourg",[r._F.UA]:"Ukraine",[r._F.IM]:"Isle of Man",[r._F.RO]:"Romania",[r._F.BE]:"Belgium",[r._F.SE]:"Sweden",[r._F.ME]:"Montenegro",[r._F.LV]:"Latvia",[r._F.VA]:"Vatican City",[r._F.AT]:"Austria",[r._F.AL]:"Albania",[r._F.LI]:"Liechtenstein",[r._F.GR]:"Greece",[r._F.IT]:"Italy",[r._F.AD]:"Andorra",[r._F.GB]:"United Kingdom",[r._F.RU]:"Russia",[r._F.SI]:"Slovenia",[r._F.BY]:"Belarus",[r._F.CH]:"Switzerland",[r._F.HU]:"Hungary",[r._F.BG]:"Bulgaria",[r._F.HR]:"Croatia",[r._F.TC]:"Turks and Caicos Islands",[r._F.CW]:"Cura\xe7ao",[r._F.GP]:"Guadeloupe",[r._F.UM]:"United States Minor Outlying Islands",[r._F.GT]:"Guatemala",[r._F.PM]:"Saint Pierre and Miquelon",[r._F.BQ]:"Caribbean Netherlands",[r._F.GL]:"Greenland",[r._F.SX]:"Sint Maarten",[r._F.PA]:"Panama",[r._F.AW]:"Aruba",[r._F.MQ]:"Martinique",[r._F.AG]:"Antigua and Barbuda",[r._F.BM]:"Bermuda",[r._F.CU]:"Cuba",[r._F.GD]:"Grenada",[r._F.NI]:"Nicaragua",[r._F.LC]:"Saint Lucia",[r._F.KN]:"Saint Kitts and Nevis",[r._F.DO]:"Dominican Republic",[r._F.VC]:"Saint Vincent and the Grenadines",[r._F.BZ]:"Belize",[r._F.HT]:"Haiti",[r._F.JM]:"Jamaica",[r._F.BS]:"Bahamas",[r._F.MX]:"Mexico",[r._F.MF]:"Saint Martin",[r._F.SV]:"El Salvador",[r._F.BL]:"Saint Barth\xe9lemy",[r._F.AI]:"Anguilla",[r._F.MS]:"Montserrat",[r._F.VG]:"British Virgin Islands",[r._F.BB]:"Barbados",[r._F.HN]:"Honduras",[r._F.KY]:"Cayman Islands",[r._F.DM]:"Dominica",[r._F.TT]:"Trinidad and Tobago",[r._F.CR]:"Costa Rica",[r._F.SR]:"Suriname",[r._F.CX]:"Christmas Island",[r._F.WS]:"Samoa",[r._F.PF]:"French Polynesia",[r._F.AS]:"American Samoa",[r._F.NC]:"New Caledonia",[r._F.TK]:"Tokelau",[r._F.PW]:"Palau",[r._F.KI]:"Kiribati",[r._F.VU]:"Vanuatu",[r._F.PN]:"Pitcairn Islands",[r._F.CK]:"Cook Islands",[r._F.FJ]:"Fiji",[r._F.PG]:"Papua New Guinea",[r._F.MP]:"Northern Mariana Islands",[r._F.NU]:"Niue",[r._F.TV]:"Tuvalu",[r._F.NF]:"Norfolk Island",[r._F.TO]:"Tonga",[r._F.FM]:"Micronesia",[r._F.SB]:"Solomon Islands",[r._F.NR]:"Nauru",[r._F.WF]:"Wallis and Futuna",[r._F.GU]:"Guam",[r._F.AU]:"Australia",[r._F.NZ]:"New Zealand",[r._F.MH]:"Marshall Islands",[r._F.CC]:"Cocos (Keeling) Islands",[r._F.VE]:"Venezuela",[r._F.PY]:"Paraguay",[r._F.BR]:"Brazil",[r._F.CO]:"Colombia",[r._F.PE]:"Peru",[r._F.CL]:"Chile",[r._F.UY]:"Uruguay",[r._F.AR]:"Argentina",[r._F.GY]:"Guyana",[r._F.BO]:"Bolivia",[r._F.GF]:"French Guiana",[r._F.EC]:"Ecuador",[r._F.FK]:"Falkland Islands",[r._F.US_AL]:"Alabama",[r._F.US_AK]:"Alaska",[r._F.US_AZ]:"Arizona",[r._F.US_AR]:"Arkansas",[r._F.US_CA]:"California",[r._F.US_CO]:"Colorado",[r._F.US_CT]:"Connecticut",[r._F.US_DE]:"Delaware",[r._F.US_DC]:"District of Columbia (DC)",[r._F.US_FL]:"Florida",[r._F.US_GA]:"Georgia",[r._F.US_HI]:"Hawaii",[r._F.US_ID]:"Idaho",[r._F.US_IL]:"Illinois",[r._F.US_IN]:"Indiana",[r._F.US_IA]:"Iowa",[r._F.US_KS]:"Kansas",[r._F.US_KY]:"Kentucky",[r._F.US_LA]:"Louisiana",[r._F.US_ME]:"Maine",[r._F.US_MD]:"Maryland",[r._F.US_MA]:"Massachusetts",[r._F.US_MI]:"Michigan",[r._F.US_MN]:"Minnesota",[r._F.US_MS]:"Mississippi",[r._F.US_MO]:"Missouri",[r._F.US_MT]:"Montana",[r._F.US_NE]:"Nebraska",[r._F.US_NV]:"Nevada",[r._F.US_NH]:"New Hampshire",[r._F.US_NJ]:"New Jersey",[r._F.US_NM]:"New Mexico",[r._F.US_NY]:"New York",[r._F.US_NC]:"North Carolina",[r._F.US_ND]:"North Dakota",[r._F.US_OH]:"Ohio",[r._F.US_OK]:"Oklahoma",[r._F.US_OR]:"Oregon",[r._F.US_PA]:"Pennsylvania",[r._F.US_PR]:"Puerto Rico",[r._F.US_RI]:"Rhode Island",[r._F.US_SC]:"South Carolina",[r._F.US_SD]:"South Dakota",[r._F.US_TN]:"Tennessee",[r._F.US_TX]:"Texas",[r._F.US_UT]:"Utah",[r._F.US_VA]:"Virginia",[r._F.US_VI]:"United States Virgin Islands",[r._F.US_VT]:"Vermont",[r._F.US_WA]:"Washington",[r._F.US_WV]:"West Virginia",[r._F.US_WI]:"Wisconsin",[r._F.US_WY]:"Wyoming",[r._F.CA_AB]:"Alberta",[r._F.CA_BC]:"British Columbia",[r._F.CA_MB]:"Manitoba",[r._F.CA_NB]:"New Brunswick",[r._F.CA_NL]:"Newfoundland and Labrador",[r._F.CA_NS]:"Nova Scotia",[r._F.CA_ON]:"Ontario",[r._F.CA_PE]:"Prince Edward Island",[r._F.CA_QC]:"Quebec",[r._F.CA_SK]:"Saskatchewan",[r._F.CA_NT]:"Northwest Territories",[r._F.CA_NU]:"Nunavut",[r._F.CA_YT]:"Yukon",[r._F.CA]:"Canada",[r._F.US]:"United States",[r._F.MEXICO_CENTRAL_AMERICA]:"Mexico and Central America",[r._F.CARIBBEAN]:"Caribbean",[r._F.EEA]:"European Economic Area (EEA)",[r._F.NON_EEA]:"Non European Economic Area",[r._F.GLOBAL]:"Global"},i=new Map(Object.entries(t));Object.entries(t).map(e=>({value:e[0],label:e[1]}))},45113:function(e,a,n){"use strict";n.r(a),n.d(a,{default:function(){return V}});var r=n(24246),t=n(59003),i=n(92222),s=n(27693),o=n.n(s),l=n(96306),d=n(27378),c=n(35287),_=n(17245),u=n(58754);let F=e=>{let{disableNext:a,pagination:n}=e;return(0,r.jsxs)(l.jqI,{gap:"middle",align:"center",justify:"right",children:[(0,r.jsx)(l.wpx,{onClick:n.previousPage,disabled:1===n.pageIndex,icon:(0,r.jsx)(l.PJP.s$$,{"aria-hidden":!0}),"aria-label":"Previous"}),(0,r.jsx)("span",{"aria-label":"Page ".concat(n.pageIndex),children:n.pageIndex}),(0,r.jsx)(l.wpx,{onClick:n.nextPage,disabled:a,icon:(0,r.jsx)(l.PJP._Qn,{"aria-hidden":!0}),"aria-label":"Next"}),(0,r.jsx)(l.WPr,{className:"w-auto",value:n.pageSize,onChange:n.updatePageSize,options:n.pageSizeOptions.map(e=>({label:e,value:e})),labelRender:e=>{let{value:a}=e;return(0,r.jsxs)("span",{children:[a," / page"]})}})]})};var p=n(47935),h=n(46628),g=n(78780);let m=e=>{var a,n;return null==e?void 0:null===(n=e.startOf("day"))||void 0===n?void 0:null===(a=n.utc())||void 0===a?void 0:a.toISOString()},x=e=>{var a,n;return null==e?void 0:null===(n=e.endOf("day"))||void 0===n?void 0:null===(a=n.utc())||void 0===a?void 0:a.toISOString()},{useLazyDownloadReportQuery:S,useGetAllHistoricalPrivacyPreferencesQuery:v,useLazyGetCurrentPrivacyPreferencesQuery:C}=g.u.injectEndpoints({endpoints:e=>({getCurrentPrivacyPreferences:e.query({query:e=>{let{search:a}=e;return{url:"current-privacy-preferences",params:{email:a,phone_number:a,fides_user_device_id:a,external_id:a}}},providesTags:["Current Privacy Preferences"]}),downloadReport:e.query({query:e=>{let{startDate:a,endDate:n}=e;return{url:"plus/consent_reporting",params:{created_gt:m(a),created_lt:x(n),download_csv:"true"},responseHandler:"content-type"}},providesTags:["Consent Reporting Export"]}),getAllHistoricalPrivacyPreferences:e.query({query:e=>{let{page:a,size:n,startDate:r,endDate:t,includeTotal:i=!0}=e;return{url:"historical-privacy-preferences",params:{page:a,size:n,request_timestamp_gt:m(r),request_timestamp_lt:x(t),include_total:i}}},providesTags:["Consent Reporting"]})})});var j=n(90104),f=n.n(j),y=n(812),b=n(21910);let A={[b.pq.OPT_IN]:"Opt in",[b.pq.OPT_OUT]:"Opt out",[b.pq.ACKNOWLEDGE]:"Acknowledge",[b.pq.TCF]:"TCF"},I={[b.pq.OPT_IN]:"success",[b.pq.OPT_OUT]:"error",[b.pq.ACKNOWLEDGE]:"default",[b.pq.TCF]:"sandstone"},M={[b.jP.ACCEPT]:"Accept",[b.jP.BUTTON]:"Button",[b.jP.DISMISS]:"Dismiss",[b.jP.GPC]:"GPC",[b.jP.REJECT]:"Reject",[b.jP.SAVE]:"Save",[b.jP.SCRIPT]:"Script",[b.jP.INDIVIDUAL_NOTICE]:"Individual Notice",[b.jP.ACKNOWLEDGE]:"Acknowledge"},N={[b.Tz.API]:"API",[b.Tz.BANNER_AND_MODAL]:"Banner and Modal",[b.Tz.MODAL]:"Modal",[b.Tz.OVERLAY]:"Overlay",[b.Tz.PRIVACY_CENTER]:"Privacy Center",[b.Tz.TCF_OVERLAY]:"TCF Overlay"},P=(0,i.Cl)();var T=()=>(0,d.useMemo)(()=>[P.accessor(e=>e.notice_name,{id:"notice_name",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(p.G3,{value:a()})},header:e=>(0,r.jsx)(p.Rr,{value:"Privacy notice",...e}),enableSorting:!1}),P.accessor(e=>e.notice_key,{id:"notice_key",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(p.G3,{value:a()})},header:e=>(0,r.jsx)(p.Rr,{value:"Notice Key",...e}),enableSorting:!1}),P.accessor(e=>e.preference,{id:"preference",cell:e=>{let{getValue:a}=e,n=a(),t=n&&A[n]||n,i=n&&I[n]||"";return(0,r.jsx)(p.A4,{color:i,value:t})},header:e=>(0,r.jsx)(p.Rr,{value:"Preference",...e}),enableSorting:!1,size:100}),P.accessor(e=>e.privacy_notice_history_id,{id:"privacy_notice_history_id",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(p.G3,{value:a()})},header:e=>(0,r.jsx)(p.Rr,{value:"Privacy Notice History Id",...e}),enableSorting:!1})],[]),E=n(47003),w=n.n(E);let R=(0,i.Cl)();var U=()=>{let e=(0,d.useCallback)(e=>{let a=[];if(e){let{preferences:n,...r}=e;w()(r,(e,n)=>{e&&e.forEach(e=>{a.push({key:n,id:e.id,preference:e.preference})})})}return a},[]),a=(0,d.useCallback)(e=>e.filter(e=>!(e.key.startsWith("system_")||e.key.startsWith("vendor_"))),[]);return{tcfColumns:(0,d.useMemo)(()=>[R.accessor(e=>e.key,{id:"key",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(p.G3,{value:a()})},header:e=>(0,r.jsx)(p.Rr,{value:"Type",...e}),enableSorting:!1}),R.accessor(e=>e.id,{id:"id",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(p.G3,{value:a()})},header:e=>(0,r.jsx)(p.Rr,{value:"ID",...e}),enableSorting:!1}),R.accessor(e=>e.preference,{id:"preference",cell:e=>{let{getValue:a}=e,n=a(),t=n&&A[n]||n,i=n&&I[n]||"";return(0,r.jsx)(p.A4,{color:i,value:t})},header:e=>(0,r.jsx)(p.Rr,{value:"Preference",...e}),enableSorting:!1,size:100})],[]),mapTcfPreferencesToRowColumns:e,filterTcfConsentPreferences:a}},k=e=>{let{isOpen:a,onClose:n}=e,[s,o]=(0,d.useState)(!1),[c,_]=(0,d.useState)(),[u]=C(),F=(0,l.pmc)();(0,d.useEffect)(()=>{a||(_(void 0),o(!1))},[a]);let h=async e=>{o(!0);let{data:a,isError:n,error:r}=await u({search:e}),t=r&&"status"in r&&(null==r?void 0:r.status);n&&404!==t?F({status:"error",description:(0,y.e$)(r,"A problem occurred while looking up the preferences.")}):_(a||null),o(!1)},g=T(),m=(null==c?void 0:c.preferences)||[],x=!f()(m),S=(0,t.b7)({getCoreRowModel:(0,i.sC)(),data:m,columns:g,getRowId:e=>"".concat(e.privacy_notice_history_id),manualPagination:!0}),{tcfColumns:v,mapTcfPreferencesToRowColumns:j,filterTcfConsentPreferences:b}=U(),A=b(j(c)),I=!f()(A),M=(0,t.b7)({getCoreRowModel:(0,i.sC)(),data:A,columns:v,getRowId:e=>"".concat(e.key,"-").concat(e.id),manualPagination:!0});return(0,r.jsxs)(l.u_l,{id:"consent-lookup-modal",isOpen:a,onClose:n,size:"6xl",returnFocusOnClose:!1,isCentered:!0,children:[(0,r.jsx)(l.ZAr,{}),(0,r.jsxs)(l.hzk,{children:[(0,r.jsx)(l.olH,{}),(0,r.jsx)(l.xBx,{pb:2,children:"Consent preference lookup"}),(0,r.jsxs)(l.fef,{children:[(0,r.jsx)(l.AntTypography.Paragraph,{children:"Use this search to look up an individual's latest consent record. You can search by phone number, email, external ID or device ID to retrieve the most recent consent preference associated with that exact identifier."}),(0,r.jsxs)(l.AntTypography.Paragraph,{children:[(0,r.jsx)("strong",{children:"Note:"})," This is an exact match search—partial entries or similar results will not be returned. This lookup retrieves only the most recent consent preference, not the full consent history."]}),(0,r.jsx)(l.PPS,{layout:"vertical",className:"w-1/2",children:(0,r.jsx)(l.PPS.Item,{label:"Subject search",className:"mb-4 mt-6",children:(0,r.jsx)(l.uFc.Search,{"data-testid":"subject-search-input",placeholder:"Enter email, phone number, external ID or device ID",enterButton:"Search",onSearch:h,loading:s})})}),(0,r.jsxs)("div",{className:"mb-4",children:[(!I||x)&&(0,r.jsx)(p.ZK,{tableInstance:S,emptyTableNotice:(0,r.jsx)(l.oj8,{description:void 0===c?"Search for an email, phone number, or device ID.":"No results found.",image:l.oj8.PRESENTED_IMAGE_SIMPLE,imageStyle:{marginBottom:15}})}),I&&(0,r.jsx)("div",{className:"mt-4",children:(0,r.jsx)(p.ZK,{tableInstance:M})})]})]})]})]})},O=()=>{let e=(0,l.pmc)(),[a,{isFetching:n}]=S();return{downloadReport:async n=>{let{startDate:r,endDate:t}=n,i=await a({startDate:r,endDate:t});if(i.isError)e({status:"error",description:(0,y.e$)(i.error,"A problem occurred while generating your consent report. Please try again.")});else{let e=document.createElement("a"),a=new Blob([i.data],{type:"text/csv"}),n=window.URL.createObjectURL(a);e.href=n,e.download="consent-reports.csv",e.click(),window.URL.revokeObjectURL(n)}},isDownloadingReport:n}},G=e=>{let{isOpen:a,onClose:n,startDate:t,endDate:i}=e,{downloadReport:s,isDownloadingReport:o}=O(),d=async()=>{await s({startDate:t,endDate:i}),n()};return(0,r.jsxs)(l.u_l,{id:"consent-report-download-modal",isOpen:a,onClose:n,size:"xl",returnFocusOnClose:!1,isCentered:!0,children:[(0,r.jsx)(l.ZAr,{}),(0,r.jsxs)(l.hzk,{children:[(0,r.jsx)(l.olH,{}),(0,r.jsx)(l.xBx,{pb:2,children:"Download consent report"}),(0,r.jsxs)(l.fef,{children:[(0,r.jsx)(l.AntTypography.Paragraph,{children:"The downloaded CSV may differ from the UI in Fides, including column order and naming."}),(0,r.jsx)(l.AntTypography.Paragraph,{children:'For large datasets, file generation may take a few minutes after selecting "Download".'}),(0,r.jsx)(l.jqI,{justify:"flex-end",children:(0,r.jsx)(l.wpx,{loading:o,onClick:d,"data-testid":"download-report-btn",type:"primary",className:"mb-2",children:"Download"})})]})]})]})},B=e=>{let{isOpen:a,onClose:n,tcfPreferences:s}=e,{tcfColumns:o,mapTcfPreferencesToRowColumns:d,filterTcfConsentPreferences:c}=U(),_=c(d(s)),u=(0,t.b7)({getCoreRowModel:(0,i.sC)(),data:_||[],columns:o,getRowId:e=>"".concat(e.key,"-").concat(e.id),manualPagination:!0});return(0,r.jsxs)(l.u_l,{id:"consent-lookup-modal",isOpen:a,onClose:n,size:"4xl",returnFocusOnClose:!1,isCentered:!0,children:[(0,r.jsx)(l.ZAr,{}),(0,r.jsxs)(l.hzk,{"data-testid":"consent-tcf-detail-modal",children:[(0,r.jsx)(l.olH,{}),(0,r.jsx)(l.xBx,{pb:2,children:"TCF Consent Details"}),(0,r.jsx)(l.fef,{children:(0,r.jsx)("div",{className:"mb-4",children:(0,r.jsx)(p.ZK,{tableInstance:u,emptyTableNotice:(0,r.jsx)(l.oj8,{description:" No data found",image:l.oj8.PRESENTED_IMAGE_SIMPLE,imageStyle:{marginBottom:15}})})})})]})]})},D=n(8411),L=n(72625);let K=(0,i.Cl)();var z=e=>{let{onTcfDetailViewClick:a}=e;return(0,d.useMemo)(()=>[K.accessor(e=>e.fides_user_device_id,{id:"fides_user_device_id",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(p.G3,{value:a()})},header:e=>(0,r.jsx)(p.Rr,{value:"User device ID",...e}),enableSorting:!1}),K.accessor(e=>e.user_geography,{id:"user_geography",cell:e=>{let{getValue:a}=e,n=a(),t=n&&D.Z8[n]||n;return(0,r.jsx)(p.G3,{value:t})},header:e=>(0,r.jsx)(p.Rr,{value:"User geography",...e}),enableSorting:!1}),K.accessor(e=>e.preference,{id:"preference",cell:e=>{let{getValue:n,row:t}=e,i=n(),s=i&&A[i]||i,o=i&&I[i]||"";return"tcf"===i&&t.original.tcf_preferences?(0,r.jsx)(l.j8w,{color:o,closeIcon:(0,r.jsx)(l.PJP.daM,{}),closeButtonLabel:"View details",onClose:()=>a(t.original.tcf_preferences),children:s}):(0,r.jsx)(p.A4,{color:o,value:s})},header:e=>(0,r.jsx)(p.Rr,{value:"Preference",...e}),enableSorting:!1,size:100}),K.accessor(e=>e.notice_name,{id:"notice_name",cell:e=>{let{getValue:a}=e,n=a(),t="tcf"===n?n.toUpperCase():n;return(0,r.jsx)(p.G3,{value:t})},header:e=>(0,r.jsx)(p.Rr,{value:"Privacy notice",...e}),enableSorting:!1}),K.accessor(e=>e.method,{id:"method",cell:e=>{let{getValue:a}=e,n=a(),t=n&&M[n]||n;return(0,r.jsx)(p.G3,{value:t})},header:e=>(0,r.jsx)(p.Rr,{value:"Method",...e}),enableSorting:!1,size:100}),K.accessor(e=>e.request_origin,{id:"request_origin",cell:e=>{let{getValue:a}=e,n=a(),t=n&&N[n]||n;return(0,r.jsx)(p.G3,{value:t})},header:e=>(0,r.jsx)(p.Rr,{value:"Request origin",...e}),enableSorting:!1,size:120}),K.accessor(e=>e.request_timestamp,{id:"request_timestamp",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(L.Cy,{time:a()})},header:e=>(0,r.jsx)(p.Rr,{value:"Request timestamp",...e}),size:120}),K.accessor(e=>e.url_recorded,{id:"url_recorded",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(p.G3,{value:a()})},header:e=>(0,r.jsx)(p.Rr,{value:"Recorded URL",...e})}),K.accessor(e=>e.external_id,{id:"external_id",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(p.G3,{value:a()})},header:e=>(0,r.jsx)(p.Rr,{value:"External ID",...e}),enableSorting:!1}),K.accessor(e=>e.email,{id:"email",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(p.G3,{value:(0,r.jsx)(l.AntTypography.Link,{href:"mailto:".concat(a()),children:a()})})},header:e=>(0,r.jsx)(p.Rr,{value:"Email",...e}),enableSorting:!1}),K.accessor(e=>e.id,{id:"id",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(p.G3,{value:a()})},header:e=>(0,r.jsx)(p.Rr,{value:"Preference ID",...e}),enableSorting:!1})],[a])},V=()=>{var e,a;let n=(0,_.h0)(),{pageIndex:s,pageSize:g,updatePageIndex:m}=n,x=(0,d.useMemo)(()=>o()(),[]),[S,C]=(0,d.useState)(null),[j,f]=(0,d.useState)(null),[y,b]=(0,d.useState)(!1),[A,I]=(0,d.useState)(!1),[M,N]=(0,d.useState)(!1),[P,T]=(0,d.useState)(),E=(0,l.pmc)(),{data:w,isLoading:R,isFetching:U,refetch:O}=v({page:s,size:g,startDate:S,endDate:j,includeTotal:!1}),{items:D}=(0,d.useMemo)(()=>w||{items:[],total:0,pages:0},[w]),L=z({onTcfDetailViewClick:e=>{N(!0),T(e)}}),K=(0,t.b7)({getCoreRowModel:(0,i.sC)(),data:D,columns:L,getRowId:e=>"".concat(e.id),manualPagination:!0}),V=async()=>{m(1),await O(),E((0,h.t5)("Consent report refreshed successfully.","Report Refreshed"))};return(0,r.jsxs)(c.Z,{title:"Consent reporting",children:[(0,r.jsx)(u.Z,{heading:"Consent reporting",rightContent:(0,r.jsx)(l.wpx,{type:"primary",onClick:V,loading:U,children:"Refresh"})}),(0,r.jsx)("div",{"data-testid":"consent-reporting",className:"overflow-auto",children:(0,r.jsxs)(l.jqI,{vertical:!0,gap:"middle",children:[R?(0,r.jsx)("div",{className:"border p-2",children:(0,r.jsx)(p.I4,{rowHeight:26,numRows:10})}):(0,r.jsxs)("div",{children:[(0,r.jsxs)(p.Q$,{children:[(0,r.jsx)(l.gwi,{placeholder:["From","To"],maxDate:x,"data-testid":"input-date-range",onChange:e=>{C(e&&e[0]),f(e&&e[1])}}),(0,r.jsxs)(l.jqI,{gap:12,children:[(0,r.jsx)(l.wpx,{icon:(0,r.jsx)(l.PJP.UWx,{}),"data-testid":"download-btn",onClick:()=>I(!0),"aria-label":"Download Consent Report"}),(0,r.jsx)(l.S0p,{menu:{items:[{key:"1",label:(0,r.jsx)("span",{"data-testid":"consent-preference-lookup-btn",children:"Consent preference lookup"}),onClick:()=>b(!0)}]},overlayStyle:{width:"220px"},trigger:["click"],children:(0,r.jsx)(l.wpx,{icon:(0,r.jsx)(l.PJP.r43,{}),"data-testid":"consent-reporting-dropdown-btn"})})]})]}),(0,r.jsx)(p.ZK,{tableInstance:K,emptyTableNotice:(0,r.jsx)(l.oj8,{description:"No results.",image:l.oj8.PRESENTED_IMAGE_SIMPLE,styles:{image:{marginBottom:15}}})})]}),(0,r.jsx)(F,{disableNext:(null!==(a=null==w?void 0:null===(e=w.items)||void 0===e?void 0:e.length)&&void 0!==a?a:0)<g,pagination:n})]})}),(0,r.jsx)(k,{isOpen:y,onClose:()=>b(!1)}),(0,r.jsx)(G,{isOpen:A,onClose:()=>I(!1),startDate:S,endDate:j}),(0,r.jsx)(B,{isOpen:M,onClose:()=>{N(!1),T(void 0)},tcfPreferences:P})]})}}},function(e){e.O(0,[431,2150,2888,9774,179],function(){return e(e.s=15806)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3296],{92812:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]",function(){return n(93251)}])},93251:function(e,t,n){"use strict";n.r(t);var r=n(24246),c=n(86677),o=n(18225),s=n(77213),a=n(77830),u=n(58754),l=n(25077),i=n(94780),d=n(1315);t.default=()=>{var e,t;let{query:n}=(0,c.useRouter)(),_=n.systemId,f=n.projectUrn,m=n.resourceUrn,{data:p,isLoading:h}=(0,d.rn)(_),j=(0,c.useRouter)(),k=null!==(e=(0,i.X5)(m,"".concat(a.mX,"/").concat(_,"/projects")))&&void 0!==e?e:[];return h?(0,r.jsx)(o.Z,{}):(0,r.jsxs)(s.Z,{title:"Data catalog",children:[(0,r.jsx)(u.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:a.mX},{title:null!==(t=null==p?void 0:p.name)&&void 0!==t?t:null==p?void 0:p.fides_key,href:a.mX},...k]}),(0,r.jsx)(l.Z,{resourceUrn:m,onRowClick:e=>j.push("".concat(a.mX,"/").concat(p.fides_key,"/projects/").concat(f,"/").concat(e.urn))})]})}}},function(e){e.O(0,[431,8765,9278,5163,1841,409,6882,3855,2888,9774,179],function(){return e(e.s=92812)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3296],{92812:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]",function(){return n(93251)}])},93251:function(e,t,n){"use strict";n.r(t);var r=n(24246),c=n(86677),o=n(18225),s=n(77213),a=n(77830),u=n(58754),l=n(25077),i=n(94780),d=n(1315);t.default=()=>{var e,t;let{query:n}=(0,c.useRouter)(),_=n.systemId,f=n.projectUrn,m=n.resourceUrn,{data:p,isLoading:h}=(0,d.rn)(_),j=(0,c.useRouter)(),k=null!==(e=(0,i.X5)(m,"".concat(a.mX,"/").concat(_,"/projects")))&&void 0!==e?e:[];return h?(0,r.jsx)(o.Z,{}):(0,r.jsxs)(s.Z,{title:"Data catalog",children:[(0,r.jsx)(u.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:a.mX},{title:null!==(t=null==p?void 0:p.name)&&void 0!==t?t:null==p?void 0:p.fides_key,href:a.mX},...k]}),(0,r.jsx)(l.Z,{resourceUrn:m,onRowClick:e=>j.push("".concat(a.mX,"/").concat(p.fides_key,"/projects/").concat(f,"/").concat(e.urn))})]})}}},function(e){e.O(0,[431,8765,9278,5163,409,6882,3855,2888,9774,179],function(){return e(e.s=92812)}),_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,1841,409,6882,3855,2888,9774,179],function(){return e(e.s=37441)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4745],{37441:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/resources/[resourceUrn]",function(){return n(51887)}])},51887:function(e,t,n){"use strict";n.r(t);var r=n(24246),s=n(86677),c=n(18225),u=n(77213),o=n(77830),a=n(58754),l=n(25077),i=n(94780),d=n(1315);t.default=()=>{var e;let{query:t}=(0,s.useRouter)(),n=t.systemId,_=t.resourceUrn,{data:f,isLoading:m}=(0,d.rn)(n),h=(0,s.useRouter)(),k=(0,i.pN)(_,"".concat(o.mX,"/").concat(n,"/resources"));return m?(0,r.jsx)(c.Z,{}):(0,r.jsxs)(u.Z,{title:"Data catalog",children:[(0,r.jsx)(a.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:o.mX},{title:null!==(e=null==f?void 0:f.name)&&void 0!==e?e:null==f?void 0:f.fides_key,href:"".concat(o.mX)},...k]}),(0,r.jsx)(l.Z,{resourceUrn:_,onRowClick:e=>h.push("".concat(o.mX,"/").concat(f.fides_key,"/resources/").concat(e.urn))})]})}}},function(e){e.O(0,[431,8765,9278,5163,409,6882,3855,2888,9774,179],function(){return e(e.s=37441)}),_N_E=e.O()}]);
@@ -1 +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()}]);
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(17245),$=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,7045,401,3585,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,d,u,c,S=0,m=!1,C=!1,v=!0;if("function"!=typeof a)throw TypeError("Expected a function");function h(e){var n=_,t=l;return _=l=void 0,S=e,d=a.apply(t,n)}function A(a){var n=a-c,t=a-S;return void 0===c||n>=e||n<0||C&&t>=F}function I(){var a,n,t,s=i();if(A(s))return y(s);u=setTimeout(I,(a=s-c,n=s-S,t=e-a,C?r(t,F-n):t))}function y(a){return(u=void 0,v&&_)?h(a):(_=l=void 0,d)}function N(){var a,n=i(),t=A(n);if(_=arguments,l=this,c=n,t){if(void 0===u)return S=a=c,u=setTimeout(I,e),m?h(a):d;if(C)return clearTimeout(u),u=setTimeout(I,e),h(c)}return void 0===u&&(u=setTimeout(I,e)),d}return e=s(e)||0,t(n)&&(m=!!n.leading,F=(C="maxWait"in n)?o(s(n.maxWait)||0,e):F,v="trailing"in n?!!n.trailing:v),N.cancel=function(){void 0!==u&&clearTimeout(u),S=0,_=c=l=u=void 0},N.flush=function(){return void 0===u?d:y(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 _}});var t=n(24246),i=n(66726),s=n.n(i),o=n(27378),r=n(26917);let _=a=>{let{value:e,onChange:n,placeholder:i,..._}=a,[l,F]=(0,o.useState)(e);(0,o.useEffect)(()=>{F(e||"")},[e]);let d=s()(n,500),u=(0,o.useCallback)(a=>{F(a),d(a)},[]);return(0,t.jsx)(r.Z,{value:l,onChange:u,onClear:()=>{F(""),n("")},placeholder:i,..._})}},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 l}});var t=n(24246),i=n(96306),s=n(79894),o=n.n(s);let{Link:r,Text:_}=i.AntTypography,l=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)(_,{strong:!0,ellipsis:!0,...i,children:n})}},76904:function(a,e,n){"use strict";n.d(e,{dK:function(){return d},Rv:function(){return m},$P:function(){return c},zj:function(){return C},Kr:function(){return v},q1:function(){return u},QL:function(){return h}});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"})})},_=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"})})},l=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 d=()=>(0,t.jsx)(_,{style:{color:o().FIDESUI_SUCCESS},className:"size-2","data-testid":"add-icon"}),u=()=>(0,t.jsx)(r,{style:{color:o().FIDESUI_ERROR},className:"size-2","data-testid":"remove-icon"}),c=()=>(0,t.jsx)(l,{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"}),v=()=>(0,t.jsx)(S,{color:o().FIDESUI_ERROR,"data-testid":"muted-icon"}),h={[F.E.ADDITION]:(0,t.jsx)(d,{}),[F.E.REMOVAL]:(0,t.jsx)(u,{}),[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)(v,{}),[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),_=n(96306),l=n(25415),F=n(21910),d=n(30952),u=n(27378),c=n(812),S=n(8125),m=n(46628),C=n(37059),v=n(98145),h=n(9320),A=n(88708),I=n(8411),y=n(26070),N=n(3110),M=n(54762);let f=a=>{let{monitorId:e,system:n,allowIgnore:s,onTabChange:r}=a,[l,{isLoading:F}]=(0,C.rs)(),[d,{isLoading:u}]=(0,C.nP)(),S=(0,i.useRouter)(),v=(0,_.pmc)(),I=F||u,{id:y,name:N,system_key:M,total_updates:f}=n,E=async()=>{let a=await l({monitor_config_key:e,resolved_system_ids:[y]});if((0,c.D4)(a))v((0,m.Vo)((0,c.e$)(a.error)));else{let a="".concat(o.So,"/configure/").concat(M,"#assets");v((0,m.t5)((0,h._)(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)))}},g=async()=>{let a=await d({monitor_config_key:e,resolved_system_ids:[y||o.Kl]});(0,c.D4)(a)?v((0,m.Vo)((0,c.e$)(a.error))):v((0,m.t5)((0,h._)(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(A.A.IGNORED)})))};return(0,t.jsxs)(_.vyj,{children:[(0,t.jsx)(_.esZ,{title:n.id?void 0:"These assets must be categorized before you can add them to the inventory.",children:(0,t.jsx)(_.wpx,{"data-testid":"add-btn",size:"small",onClick:E,disabled:!n.id||I,loading:F,children:"Add"})}),s&&(0,t.jsx)(_.wpx,{"data-testid":"ignore-btn",size:"small",onClick:g,disabled:I,loading:u,children:"Ignore"})]})};var E=n(99640),g=n(76904);let p=a=>{let{system:e,rowClickUrl:n}=a,i=null==n?void 0:n(e);return(0,t.jsxs)(_.vyj,{className:"max-w-[250px] flex-nowrap",children:[!e.system_key&&(0,t.jsx)(_.esZ,{title:"New system",children:(0,t.jsx)("span",{children:g.QL.Change})}),(0,t.jsx)(E.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),x=n(2525),b=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,b.Z)(a)))&&void 0!==n?n:[]).map(a=>({label:o(a),key:a}));return(0,t.jsx)(x.Q,{values:r,columnState:s})};let k=a=>{let{monitorId:e,readonly:n,allowIgnore:i,onTabChange:s,consentStatus:o,rowClickUrl:r}=a,[l,F]=(0,u.useState)(!1),[d,c]=(0,u.useState)(!1),[S,m]=(0,u.useState)(!1),[C,h]=(0,u.useState)(0),[A,E]=(0,u.useState)(0),[g,U]=(0,u.useState)(0);return{columns:(0,u.useMemo)(()=>{let a=[{title:()=>(0,t.jsxs)(_.vyj,{children:[(0,t.jsx)("div",{children:"System"}),(0,t.jsx)(M.l,{consentStatus:o})]}),dataIndex:"name",key:v.vQ.SYSTEM_NAME,fixed:"left",render:(a,e)=>(0,t.jsx)(p,{system:e,rowClickUrl:r})},{title:"Assets",dataIndex:"total_updates",key:v.vQ.TOTAL_UPDATES},{title:"Categories of consent",key:v.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:g}})},{title:"Locations",menu:{items:N.DI,onClick:a=>{a.domEvent.stopPropagation(),"expand-all"===a.key?(F(!0),h(a=>a+1)):"collapse-all"===a.key&&(F(!1),h(a=>a+1))}},dataIndex:"locations",key:v.vQ.LOCATIONS,render:a=>{var e;return(0,t.jsx)(y.Q,{values:null!==(e=null==a?void 0:a.map(a=>{var e;return{label:null!==(e=I.Z8[a])&&void 0!==e?e:a,key:a}}))&&void 0!==e?e:[],columnState:{isExpanded:l,isWrapped:!0,version:C}})}},{title:"Domains",menu:{items:N.DI,onClick:a=>{a.domEvent.stopPropagation(),"expand-all"===a.key?(c(!0),E(a=>a+1)):"collapse-all"===a.key&&(c(!1),E(a=>a+1))}},dataIndex:"domains",key:v.vQ.DOMAINS,render:a=>(0,t.jsx)(y.v,{values:a,valueSuffix:"domains",columnState:{isExpanded:d,version:A}})}];return n||a.push({title:"Actions",key:v.vQ.ACTIONS,fixed:"right",render:(a,n)=>(0,t.jsx)(f,{system:n,monitorId:e,allowIgnore:i,onTabChange:s})}),a},[n,o,r,S,l,d,g,C,A,e,i,s])}},L=a=>{let{monitorId:e}=a,n=(0,i.useRouter)(),s=(0,_.pmc)(),[r,l]=(0,u.useState)(),{filterTabs:d,activeTab:I,onTabChange:y,activeParams:N,actionsDisabled:M}=(0,A.Z)(),f=(0,S.o)({sorting:{validColumns:Object.values(v.vQ)}}),{pageIndex:E,pageSize:g,searchQuery:p,updateSearch:U,resetState:x}=f,{data:b,isLoading:T,isFetching:L}=(0,C.wi)({key:e,page:E,size:g,search:p,...N}),[j,{isLoading:w}]=(0,C.rs)(),[R,{isLoading:G}]=(0,C.nP)(),D=(0,u.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,u.useCallback)(a=>{var n;return"".concat(o.vi,"/").concat(e,"/").concat(null!==(n=a.id)&&void 0!==n?n:o.Kl).concat(I?"#".concat(I):"")},[e,I]),B=(0,u.useMemo)(()=>({enableSelection:!0,getRowKey:D,isLoading:T,isFetching:L,dataSource:(null==b?void 0:b.items)||[],totalRows:(null==b?void 0:b.total)||0,customTableProps:{locale:{emptyText:(0,t.jsx)(_.oj8,{image:_.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})}}}),[D,T,L,null==b?void 0:b.items,null==b?void 0:b.total]),O=(0,S.V)(f,B),{selectedRows:K,resetSelections:V}=O,H=(0,u.useCallback)(async a=>{l(void 0),await y(a),x(),V()},[y,x,V]),{columns:Z}=k({monitorId:e,onTabChange:H,readonly:M,allowIgnore:!N.diff_status.includes(F.LL.MUTED),consentStatus:r,rowClickUrl:P});(0,u.useEffect)(()=>{if((null==b?void 0:b.items)&&!r){var a;let e=null===(a=b.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;l(null!=e?e:void 0)}},[b,r]);let z=(0,u.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,h._)("".concat(a," assets have been added to the system inventory."),()=>n.push(o.So)))),V())},[K,j,e,s,n,V]),W=(0,u.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,h._)("".concat(a," assets have been ignored and will not appear in future scans."),async()=>{await y(A.A.IGNORED)}))),V())},[K,R,e,s,y,V]),Q=K.some(a=>null===a.id);return{columns:Z,data:b,isLoading:T,isFetching:L,searchQuery:p,updateSearch:U,resetState:x,tableProps:O.tableProps,selectionProps:O.selectionProps,filterTabs:d,activeTab:I,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:u,activeTab:c,handleTabChange:S,activeParams:m,selectedRows:C,hasSelectedRows:v,uncategorizedIsSelected:h,handleBulkAdd:A,handleBulkIgnore:I,anyBulkActionIsLoading:y}=L({monitorId:e});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(_.Niu,{"aria-label":"Asset state filter",mode:"horizontal",items:u.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)(_.jqI,{justify:"space-between",align:"center",className:"mb-4",children:[(0,t.jsx)(d.f,{value:i,onChange:s}),(0,t.jsxs)(_.vyj,{size:"large",children:[v&&(0,t.jsx)(l.a,{count:C.length}),(0,t.jsx)(_.S0p,{menu:{items:[{key:"add",label:(0,t.jsx)(_.esZ,{title:h?"Uncategorized assets can't be added to the inventory":null,placement:"left",children:"Add"}),onClick:A,disabled:h},m.diff_status.includes(F.LL.MUTED)?null:{key:"ignore",label:"Ignore",onClick:I}]},trigger:["click"],children:(0,t.jsx)(_.wpx,{type:"primary",icon:(0,t.jsx)(_.PJP._ME,{}),iconPosition:"end",loading:y,disabled:!v,"data-testid":"bulk-actions-menu",children:"Actions"})})]})]}),(0,t.jsx)(_.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,7045,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([[7477],{74833:function(e,t,i){var r=i(56127),n=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(n,""):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 r=i(99736),n=i(92360);e.exports=function(e){return"symbol"==typeof e||n(e)&&"[object Symbol]"==r(e)}},91936:function(e,t,i){var r=i(74833),n=i(11611),s=i(55193),a=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(s(e))return a;if(n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=n(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var i=l.test(e);return i||c.test(e)?d(e.slice(2),i?2:8):o.test(e)?a:+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 r=i(24246),n=i(96306),s=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:a=!0,children:o,rightContent:l,style:c,...d}=e;return(0,r.jsxs)("div",{...d,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,r.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,r.jsx)(n.lQT,{className:i||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!i&&(0,r.jsx)(s.m,{className:o?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),o]})}},17245:function(e,t,i){"use strict";i.d(t,{HK:function(){return a},VY:function(){return n.V},pI:function(){return d},h0:function(){return r.h},Rx:function(){return f},rK:function(){return h}});var r=i(36866),n=i(84306),s=i(812);let a=()=>{let{errorAlert:e}=(0,n.V)();return{handleError:t=>{let i="An unexpected error occurred. Please try again.";(0,s.Ot)(t)?i=t.data.detail:(0,s.tB)(t)&&(i=t.data.detail[0].msg),e(i)}}};var o=i(27378),l=i(20682),c=i(21910);let d=e=>{let{data:t}=(0,l.$I)({}),i=(0,o.useMemo)(()=>(null==t?void 0:t.items)||[],[t]);return(0,o.useMemo)(()=>{var t;if(!e)return"";if(e.connection_type===c.Rj.SAAS&&(null===(t=e.saas_config)||void 0===t?void 0:t.type)){let t=i.find(t=>{var i;return t.identifier===(null===(i=e.saas_config)||void 0===i?void 0:i.type)});if(t)return t}return e},[e,i])};var u=i(40431);let g=()=>({search:u.Oi.withDefault("")}),f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultSearchQuery:t,onSearchChange:i}=e,r=(0,o.useMemo)(()=>g(),[]),[n,s]=(0,u.XI)(r,{history:"push"}),a=(0,o.useMemo)(()=>({searchQuery:n.search||t||void 0}),[n,t]),l=(0,o.useCallback)(e=>{s({search:e||null})},[s]),c=(0,o.useCallback)(()=>{s({search:null})},[s]);return(0,o.useEffect)(()=>{i&&i(a)},[a,i]),{...a,updateSearch:l,resetSearch:c,searchProps:{value:a.searchQuery||"",onChange:l,onClear:()=>l("")}}},p=e=>({sortKey:e?(0,u.jx)([...e]):u.Oi.withDefault(""),sortOrder:(0,u.km)(["ascend","descend"])}),h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultSortKey:t,defaultSortOrder:i,onSortingChange:r,validColumns:n}=e,s=(0,o.useMemo)(()=>p(n),[n]),[a,l]=(0,u.XI)(s,{history:"push"}),c=(0,o.useMemo)(()=>{var e;return{sortKey:a.sortKey||t,sortOrder:null!==(e=a.sortOrder)&&void 0!==e?e:i}},[a,t,i]),d=(0,o.useCallback)((e,t)=>{l({sortKey:e?String(e):null,sortOrder:null!=t?t:null})},[l]),g=(0,o.useCallback)(()=>{l({sortKey:null,sortOrder:null})},[l]);return(0,o.useEffect)(()=>{r&&r(c)},[c,r]),{...c,updateSorting:d,resetSorting:g,sortingProps:{sortDirections:["ascend","descend"],defaultSortOrder:c.sortOrder,sortedInfo:c.sortKey?{field:c.sortKey,order:c.sortOrder}:void 0}}}},84306:function(e,t,i){"use strict";i.d(t,{V:function(){return s}});var r=i(24246),n=i(96306);let s=()=>{let e=(0,n.pmc)();return{errorAlert:(t,i,s)=>{let a={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=e;return(0,r.jsxs)(n.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,r.jsx)(n.zMQ,{}),(0,r.jsxs)(n.xuv,{children:[i&&(0,r.jsx)(n.CdC,{children:i}),(0,r.jsx)(n.XaZ,{children:t})]}),(0,r.jsx)(n.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,a):e(a)},successAlert:(t,i,s)=>{let a={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=e;return(0,r.jsxs)(n.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,r.jsx)(n.zMQ,{}),(0,r.jsxs)(n.xuv,{children:[i&&(0,r.jsx)(n.CdC,{children:i}),(0,r.jsx)(n.XaZ,{children:t})]}),(0,r.jsx)(n.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,a):e(a)}}}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return c}});var r=i(24246),n=i(96306),s=i(79894),a=i.n(s),o=i(27378);let{Text:l}=n.AntTypography,c=e=>{let{items:t,...i}=e,s=(0,o.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let s=i===t.length-1,o={...e},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,r.jsx)(l,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,id:s?"breadcrumb-current-page":void 0,children:o.title})),c)?o.title=(0,r.jsx)(n.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,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,r.jsx)(a(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,r.jsx)(n.zrq,{items:s,...i})}},36866:function(e,t,i){"use strict";i.d(t,{h:function(){return c}});var r=i(40431),n=i(27378),s=i(55484);let a=(0,r.jo)({parse(e){let t=parseInt(e,10);try{return s.Rx().integer().positive().validateSync(t),t}catch(e){return null}},serialize:e=>e.toString()});var o=i(32735);let l=function(){var e,t;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{page:a.withDefault(o.Ej),size:i.pageSizeOptions?(0,r.bJ)(i.pageSizeOptions).withDefault(null!==(e=i.pageSize)&&void 0!==e?e:o.L8):a.withDefault(null!==(t=i.pageSize)&&void 0!==t?t:o.L8)}},c=function(){var e,t;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultPageSize:s=o.L8,pageSizeOptions:a,showSizeChanger:c=!0}=i,d=null!=a?a:o.VZ,u=(0,n.useMemo)(()=>l({pageSize:s,pageSizeOptions:a}),[s,a]),[g,f]=(0,r.XI)(u,{history:"push"}),p={pageIndex:null!==(e=g.page)&&void 0!==e?e:o.Ej,pageSize:null!==(t=g.size)&&void 0!==t?t:s};return{...p,updatePageIndex:e=>{f({page:e})},updatePageSize:e=>{f({page:e!==p.pageSize?o.Ej:p.pageIndex,size:e})},resetPagination:()=>{f({page:o.Ej,size:s})},nextPage:()=>{f(e=>{let{page:t,size:i}=e;return{page:t+1,size:i}})},previousPage:()=>{f(e=>{let{page:t,size:i}=e;return{page:t-1,size:i}})},pageSizeOptions:d,showSizeChanger:c}}},54409:function(e,t,i){"use strict";i.d(t,{Z:function(){return p}});var r=i(24246),n=i(96306),s=i(812),a=i(17245),o=i(21910),l=i(31883);let c=(0,n.IUT)({displayName:"MonitorOffIcon",viewBox:"0 0 12 12",path:(0,r.jsxs)(r.Fragment,{children:[(0,r.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,r.jsx)("g",{clipPath:"url(#clip0_341_3102)",children:(0,r.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,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_341_3102",children:(0,r.jsx)("rect",{width:"11.5",height:"9",fill:"white",transform:"translate(0 1.5)"})})})]})}),d=(0,n.IUT)({displayName:"MonitorOnIcon",viewBox:"0 0 12 10",path:(0,r.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),g=i(70675),f=i(7940),p=e=>{let{resource:t,ignoreChildActions:i=!1}=e,p=(0,f.G)(t),[h,{isLoading:L}]=(0,g.v8)(),[x,{isLoading:m}]=(0,g.vi)(),[v,{isLoading:j}]=(0,g.Tl)(),{successAlert:I,errorAlert:C}=(0,a.VY)(),_=async()=>{let e=await h({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id});(0,l.D4)(e)?C((0,s.e$)(e.error,"Failed to confirm resource")):I("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."))},y=async()=>{let e=await v({staged_resource_urn:t.urn});(0,l.D4)(e)?C((0,s.e$)(e.error),"Failed to un-mute resource"):I("".concat(t.name||"The resource"," has been un-muted and is now being monitored."))},A=async()=>{let e=await h({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id,unmute_children:!0,classify_monitored_resources:!0});(0,l.D4)(e)?C((0,s.e$)(e.error),"Failed to un-mute resource"):I("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 x({staged_resource_urn:t.urn});(0,l.D4)(e)?C((0,s.e$)(e.error),"Failed to mute resource"):I("Ignored data will not be monitored for changes or added to Fides datasets.","".concat(t.name||"Resource"," ignored"))},S=L||m||j,{diff_status:T,child_diff_statuses:b}=t,O=p===o.D$.SCHEMA,w=p===o.D$.FIELD,N=b&&(b[o.LL.CLASSIFICATION_ADDITION]||b[o.LL.CLASSIFICATION_UPDATE]),M=O&&void 0===T||!w&&T===o.LL.ADDITION||N,H=T!==o.LL.MUTED,Z=T===o.LL.MUTED&&!w,E=T===o.LL.MUTED&&w,R=b&&(b[o.LL.ADDITION]||b[o.LL.REMOVAL]),k=T===o.LL.MONITORED&&!i&&R&&!N;return(0,r.jsxs)(n.Ugi,{children:[(M||k)&&(0,r.jsx)(u.Z,{title:"Monitor",icon:(0,r.jsx)(d,{}),onClick:_,disabled:S,loading:L}),E&&(0,r.jsx)(u.Z,{title:"Un-Mute",icon:(0,r.jsx)(d,{}),onClick:y,disabled:S,loading:L}),Z&&(0,r.jsx)(u.Z,{title:"Monitor",icon:(0,r.jsx)(d,{}),onClick:A,disabled:S,loading:L}),H&&(0,r.jsx)(u.Z,{title:"Ignore",icon:(0,r.jsx)(c,{}),onClick:D,disabled:S,loading:m})]})}},91761:function(e,t,i){"use strict";var r=i(24246),n=i(96306),s=i(812),a=i(17245),o=i(7940),l=i(98559),c=i(21910),d=i(79494),u=i(70675);t.Z=e=>{let{resource:t}=e,[i,{isLoading:g}]=(0,u.v8)(),[f,{isLoading:p}]=(0,u.cM)(),[h,{isLoading:L}]=(0,u.vi)(),x=p||L||g,{diff_status:m,child_diff_statuses:v,top_level_field_name:j}=t,{successAlert:I,errorAlert:C}=(0,a.VY)(),_=m===c.LL.CLASSIFICATION_ADDITION||m===c.LL.CLASSIFICATION_UPDATE,y=v&&(v[c.LL.CLASSIFICATION_ADDITION]||v[c.LL.CLASSIFICATION_UPDATE]),A=(_||y)&&!j,D=_||y,S=(0,o.G)(t)!==c.D$.FIELD,T=A&&D&&S,b=async()=>{let e=await f({staged_resource_urn:t.urn});(0,s.D4)(e)?C((0,s.e$)(e.error),"Failed to promote resource"):I('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},O=async()=>{let e=await h({staged_resource_urn:t.urn});(0,s.D4)(e)?C((0,s.e$)(e.error),"Failed to mute resource"):I("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,s.D4)(e)?C((0,s.e$)(e.error),"Failed to reclassify resource"):I("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,r.jsxs)(n.Ugi,{gap:2,children:[A&&(0,r.jsx)(d.Z,{title:"Confirm",icon:(0,r.jsx)(n.nQG,{}),onClick:b,disabled:x,loading:p}),D&&(0,r.jsx)(d.Z,{title:"Ignore",icon:(0,r.jsx)(n.tpL,{}),onClick:O,disabled:x,loading:L}),S&&!T&&(0,r.jsx)(d.Z,{title:"Reclassify",icon:(0,r.jsx)(n.nyI,{}),onClick:w,disabled:x,loading:g}),T&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.LZC,{}),(0,r.jsxs)(n.v2r,{children:[(0,r.jsx)(n.j2t,{as:n.wpx,size:"small",type:"text",icon:(0,r.jsx)(n.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-overflow-btn"}),(0,r.jsx)(n.qyq,{children:(0,r.jsx)(n.sNh,{onClick:w,icon:(0,r.jsx)(n.nyI,{}),"data-testid":"action-reclassify",children:"Reclassify"})})]})]})]})}},3680:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return N}});var r,n,s=i(24246),a=i(27378),o=i(35287),l=i(58754),c=i(47182),d=i(92222),u=i(59003),g=i(96306),f=i(47935),p=i(72625),h=i(70675),L=i(38347),x=i(87667),m=i(50169),v=i(80285),j=i(30952);(r=n||(n={})).DATASET="Dataset",r.CLASSIFICATION="Classification";var I=i(74241),C=i(28278),_=i(20449),y=e=>(0,_.Z)(e)===C.E.CLASSIFICATION?n.CLASSIFICATION:n.DATASET,A=i(54409),D=i(91761);let S={items:[],total:0,page:1,size:50,pages:1},T=()=>(0,s.jsx)(g.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,s.jsxs)(g.gCW,{children:[(0,s.jsx)(g.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,s.jsx)(g.xvT,{fontSize:"sm",children:"You're up to date!"})]})}),b=(0,d.Cl)();var O=e=>{let{onRowClick:t,statusFilters:i,childsStatusFilters:r}=e,[o,l]=(0,a.useState)(""),{PAGE_SIZES:c,pageSize:C,setPageSize:_,onPreviousPageClick:O,isPreviousPageDisabled:w,onNextPageClick:N,isNextPageDisabled:M,startRange:H,endRange:Z,pageIndex:E,setTotalPages:R}=(0,f.oi)(),{isFetching:k,isLoading:F,data:z}=(0,h.z8)({diff_status:i,child_diff_status:r,page:E,size:C,search:o}),{items:P,total:V,pages:U}=(0,a.useMemo)(()=>null!=z?z:S,[z]);(0,a.useEffect)(()=>{R(U)},[U,R]);let $=(0,a.useMemo)(()=>[b.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(x.Z,{result:e.row.original}),header:e=>(0,s.jsx)(f.Rr,{value:"Name",...e})}),b.accessor(e=>e.urn,{id:"project",cell:e=>(0,s.jsx)(f.G3,{value:(0,I.Z)(e.getValue())}),header:e=>(0,s.jsx)(f.Rr,{value:"Project",...e})}),b.display({id:"status",cell:e=>(0,s.jsx)(m.Z,{result:e.row.original}),header:e=>(0,s.jsx)(f.Rr,{value:"Status",...e})}),b.accessor(e=>e.system,{id:"system",cell:e=>(0,s.jsx)(f.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(f.Rr,{value:"System",...e})}),b.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,s.jsx)(f.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(f.Rr,{value:"Detected by",...e})}),b.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,s.jsx)(p.Cy,{time:e.getValue()}),header:e=>(0,s.jsx)(f.Rr,{value:"When",...e})}),b.accessor(e=>e,{id:"action",cell:e=>y(e.getValue())===n.DATASET?(0,s.jsx)(A.Z,{resource:e.getValue()}):(0,s.jsx)(D.Z,{resource:e.getValue()}),header:e=>(0,s.jsx)(f.Rr,{value:"Action",...e})})],[]),K=(0,u.b7)({getCoreRowModel:(0,d.sC)(),getGroupedRowModel:(0,d.qe)(),getExpandedRowModel:(0,d.rV)(),getRowId:v.Z,columns:$,manualPagination:!0,data:P,columnResizeMode:"onChange"});return F?(0,s.jsx)(f.I4,{rowHeight:36,numRows:36}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(f.Q$,{children:(0,s.jsxs)(g.kCb,{gap:6,align:"center",children:[(0,s.jsx)(g.xuv,{flexShrink:0,children:(0,s.jsx)(j.f,{value:o,onChange:l})}),(0,s.jsx)(L.a,{})]})}),(0,s.jsx)(f.ZK,{tableInstance:K,onRowClick:t,emptyTableNotice:(0,s.jsx)(T,{})}),(0,s.jsx)(f.s8,{totalRows:V||0,pageSizes:c,setPageSize:_,onPreviousPageClick:O,isPreviousPageDisabled:w||k,onNextPageClick:N,isNextPageDisabled:M||k,startRange:H,endRange:Z})]})},w=i(21910),N=()=>{let{navigateToDetectionResults:e,navigateToDiscoveryResults:t}=(0,c.Z)();return(0,s.jsxs)(o.Z,{title:"Data discovery",children:[(0,s.jsx)(l.Z,{heading:"All activity"}),(0,s.jsx)(O,{onRowClick:i=>{if(y(i)===n.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 r.Bw},D4:function(){return r.D4}});var r=i(19043)}},function(e){e.O(0,[431,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,1841,8002,5309,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,7045,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,1841,8002,5309,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,7045,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,1841,409,8002,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,409,7045,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,1841,409,8002,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,409,7045,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),r=n(96306),s=n(88038),l=n.n(s),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)(r.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)(r.xuv,{children:[(0,i.jsxs)(r.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(r.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(r.wpx,{onClick:()=>{e.push(c.AD)},children:"Configure"})]}),(0,i.jsxs)(r.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:s=!0,mainProps:c}=e,x=(0,o.hz)(),h=(0,a.useRouter)(),m="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,p=!(x.flags.messagingConfiguration&&m),{data:f}=(0,u.JE)(void 0,{skip:p}),{data:v}=(0,d.PW)(void 0,{skip:p}),j=x.flags.messagingConfiguration&&(!f||!v)&&m;return(0,i.jsxs)(r.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)(r.kCb,{as:"main",direction:"column",py:s?6:0,px:s?10:0,h:s?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[j?(0,i.jsx)(g,{}):null,t]})]})}},58754:function(e,t,n){"use strict";var i=n(24246),r=n(96306),s=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:l=!0,children:a,rightContent:o,style:d,...u}=e;return(0,i.jsxs)("div",{...u,style:l?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,i.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(r.lQT,{className:n||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,i.jsx)(s.m,{className:a?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),a]})}},97181:function(e,t,n){"use strict";n.d(t,{d:function(){return d}});var i=n(24246),r=n(96306),s=n(34090),l=n(27378),a=n(46238),o=n(40324);let d=e=>{let{name:t,label:n,labelProps:d,tooltip:u,isRequired:c,layout:g="inline",helperText:x,...h}=e,[m,p,{setValue:f}]=(0,s.U$)(t),v=!!(p.touched&&p.error),[j,y]=(0,l.useState)("");m.value||"tags"!==h.mode&&"multiple"!==h.mode||(m.value=[]),"tags"===h.mode&&"string"==typeof m.value&&(m.value=[m.value]);let C="tags"===h.mode?(e,t)=>e?e.value!==j||m.value.includes(j)?h.optionRender?h.optionRender(e,t):e.label:'Create "'.concat(j,'"'):void 0:h.optionRender||void 0,b=e=>{y(e),h.onSearch&&h.onSearch(e)},w=(e,t)=>{f(e),h.onChange&&h.onChange(e,t)};return"inline"===g?(0,i.jsx)(r.NIc,{isInvalid:v,isRequired:c,children:(0,i.jsxs)(r.rjZ,{templateColumns:n?"1fr 3fr":"1fr",children:[n?(0,i.jsx)(o.__,{htmlFor:h.id||t,...d,children:n}):null,(0,i.jsxs)(r.jqI,{align:"center",children:[(0,i.jsxs)(r.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,i.jsx)(r.WPr,{...m,id:h.id||t,"data-testid":"controlled-select-".concat(m.name),...h,optionRender:C,onSearch:"tags"===h.mode?b:void 0,onChange:w,value:m.value||void 0,status:v?"error":void 0}),x&&(0,i.jsx)(r.Q6r,{children:x}),(0,i.jsx)(o.Bc,{isInvalid:v,message:p.error,fieldName:m.name})]}),(0,i.jsx)(a.b,{label:u,className:v?"mt-2 self-start":void 0})]})]})}):(0,i.jsx)(r.NIc,{isInvalid:v,isRequired:c,children:(0,i.jsxs)(r.gCW,{alignItems:"start",children:[(0,i.jsxs)(r.jqI,{align:"center",children:[n?(0,i.jsx)(o.__,{htmlFor:h.id||t,fontSize:"xs",my:0,mr:1,...d,children:n}):null,(0,i.jsx)(a.b,{label:u})]}),(0,i.jsx)(r.WPr,{...m,id:h.id||t,"data-testid":"controlled-select-".concat(m.name),...h,optionRender:C,onSearch:"tags"===h.mode?b:void 0,onChange:w,value:m.value||void 0,status:v?"error":void 0}),x&&(0,i.jsx)(r.Q6r,{style:{marginTop:0},children:x}),(0,i.jsx)(o.Bc,{isInvalid:v,message:p.error,fieldName:m.name})]})})}},17245:function(e,t,n){"use strict";n.d(t,{HK:function(){return l},VY:function(){return r.V},pI:function(){return u},h0:function(){return i.h},Rx:function(){return x},rK:function(){return m}});var i=n(36866),r=n(84306),s=n(812);let l=()=>{let{errorAlert:e}=(0,r.V)();return{handleError:t=>{let n="An unexpected error occurred. Please try again.";(0,s.Ot)(t)?n=t.data.detail:(0,s.tB)(t)&&(n=t.data.detail[0].msg),e(n)}}};var a=n(27378),o=n(20682),d=n(21910);let u=e=>{let{data:t}=(0,o.$I)({}),n=(0,a.useMemo)(()=>(null==t?void 0:t.items)||[],[t]);return(0,a.useMemo)(()=>{var t;if(!e)return"";if(e.connection_type===d.Rj.SAAS&&(null===(t=e.saas_config)||void 0===t?void 0:t.type)){let t=n.find(t=>{var n;return t.identifier===(null===(n=e.saas_config)||void 0===n?void 0:n.type)});if(t)return t}return e},[e,n])};var c=n(40431);let g=()=>({search:c.Oi.withDefault("")}),x=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultSearchQuery:t,onSearchChange:n}=e,i=(0,a.useMemo)(()=>g(),[]),[r,s]=(0,c.XI)(i,{history:"push"}),l=(0,a.useMemo)(()=>({searchQuery:r.search||t||void 0}),[r,t]),o=(0,a.useCallback)(e=>{s({search:e||null})},[s]),d=(0,a.useCallback)(()=>{s({search:null})},[s]);return(0,a.useEffect)(()=>{n&&n(l)},[l,n]),{...l,updateSearch:o,resetSearch:d,searchProps:{value:l.searchQuery||"",onChange:o,onClear:()=>o("")}}},h=e=>({sortKey:e?(0,c.jx)([...e]):c.Oi.withDefault(""),sortOrder:(0,c.km)(["ascend","descend"])}),m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultSortKey:t,defaultSortOrder:n,onSortingChange:i,validColumns:r}=e,s=(0,a.useMemo)(()=>h(r),[r]),[l,o]=(0,c.XI)(s,{history:"push"}),d=(0,a.useMemo)(()=>{var e;return{sortKey:l.sortKey||t,sortOrder:null!==(e=l.sortOrder)&&void 0!==e?e:n}},[l,t,n]),u=(0,a.useCallback)((e,t)=>{o({sortKey:e?String(e):null,sortOrder:null!=t?t:null})},[o]),g=(0,a.useCallback)(()=>{o({sortKey:null,sortOrder:null})},[o]);return(0,a.useEffect)(()=>{i&&i(d)},[d,i]),{...d,updateSorting:u,resetSorting:g,sortingProps:{sortDirections:["ascend","descend"],defaultSortOrder:d.sortOrder,sortedInfo:d.sortKey?{field:d.sortKey,order:d.sortOrder}:void 0}}}},84306:function(e,t,n){"use strict";n.d(t,{V:function(){return s}});var i=n(24246),r=n(96306);let s=()=>{let e=(0,r.pmc)();return{errorAlert:(t,n,s)=>{let l={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=e;return(0,i.jsxs)(r.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,i.jsx)(r.zMQ,{}),(0,i.jsxs)(r.xuv,{children:[n&&(0,i.jsx)(r.CdC,{children:n}),(0,i.jsx)(r.XaZ,{children:t})]}),(0,i.jsx)(r.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,l):e(l)},successAlert:(t,n,s)=>{let l={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=e;return(0,i.jsxs)(r.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,i.jsx)(r.zMQ,{}),(0,i.jsxs)(r.xuv,{children:[n&&(0,i.jsx)(r.CdC,{children:n}),(0,i.jsx)(r.XaZ,{children:t})]}),(0,i.jsx)(r.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,l):e(l)}}}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return d}});var i=n(24246),r=n(96306),s=n(79894),l=n.n(s),a=n(27378);let{Text:o}=r.AntTypography,d=e=>{let{items:t,...n}=e,s=(0,a.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let s=n===t.length-1,a={...e},d=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,i.jsx)(o,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,id:s?"breadcrumb-current-page":void 0,children:a.title})),d)?a.title=(0,i.jsx)(r.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,i.jsx)(l(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,i.jsx)(r.zrq,{items:s,...n})}},36866:function(e,t,n){"use strict";n.d(t,{h:function(){return d}});var i=n(40431),r=n(27378),s=n(55484);let l=(0,i.jo)({parse(e){let t=parseInt(e,10);try{return s.Rx().integer().positive().validateSync(t),t}catch(e){return null}},serialize:e=>e.toString()});var a=n(32735);let o=function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{page:l.withDefault(a.Ej),size:n.pageSizeOptions?(0,i.bJ)(n.pageSizeOptions).withDefault(null!==(e=n.pageSize)&&void 0!==e?e:a.L8):l.withDefault(null!==(t=n.pageSize)&&void 0!==t?t:a.L8)}},d=function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultPageSize:s=a.L8,pageSizeOptions:l,showSizeChanger:d=!0}=n,u=null!=l?l:a.VZ,c=(0,r.useMemo)(()=>o({pageSize:s,pageSizeOptions:l}),[s,l]),[g,x]=(0,i.XI)(c,{history:"push"}),h={pageIndex:null!==(e=g.page)&&void 0!==e?e:a.Ej,pageSize:null!==(t=g.size)&&void 0!==t?t:s};return{...h,updatePageIndex:e=>{x({page:e})},updatePageSize:e=>{x({page:e!==h.pageSize?a.Ej:h.pageIndex,size:e})},resetPagination:()=>{x({page:a.Ej,size:s})},nextPage:()=>{x(e=>{let{page:t,size:n}=e;return{page:t+1,size:n}})},previousPage:()=>{x(e=>{let{page:t,size:n}=e;return{page:t-1,size:n}})},pageSizeOptions:u,showSizeChanger:d}}},99811:function(e,t,n){"use strict";n.d(t,{m:function(){return r}});var i=n(27378);class r{updateTableInstance(e){this.tableInstance=e}constructor(e=null){this.tableInstance=e,this.updateTableInstance=this.updateTableInstance.bind(this)}}let s=i.createContext(new r);t.Z=s},42478:function(e,t,n){"use strict";n.d(t,{FU:function(){return d},JE:function(){return r},Ki:function(){return c},SU:function(){return g},W:function(){return x},h9:function(){return s},jc:function(){return i},qt:function(){return o},sn:function(){return u}});let{useGetEmailInviteStatusQuery:i,useGetActiveMessagingProviderQuery:r,useCreateMessagingConfigurationMutation:s,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 r=await i({url:"messaging/default/active"});return r.error&&404===r.error.status?{data:null}:r},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 W}});var i=n(24246),r=n(27378),s=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),m=n(30002),p=n(28079),f=n(49600),v=n(99811);let j=e=>{var t;let{column:n}=e,{tableInstance:i}=(0,r.useContext)(v.Z),s=r.useMemo(()=>Array.from(n.getFacetedUniqueValues().keys()),[n]),l=r.useMemo(()=>{let e={};return s.forEach(t=>{e[t]=!1}),e},[s]);return{filterValue:null!==(t=n.getFilterValue())&&void 0!==t?t:l,clearFilterOptions:()=>{let e={};s.forEach(t=>{e[t]=!1}),n.setFilterValue(e)},toggleFilterOption:(e,t)=>{var r;let s={...null!==(r=n.getFilterValue())&&void 0!==r?r:l,[e]:t};Object.values(s).every(e=>!e)?null==i||i.setColumnFilters(null==i?void 0:i.getState().columnFilters.filter(e=>e.id!==n.id)):n.setFilterValue(s)},options:s,header:n.columnDef.header}};var y=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,r.useContext)(v.Z),n=(0,c.C)(f.eo),{data:i,isLoading:s}=(0,f.Ex)({organizationName:"default_organization"});(0,y.MO)(),(0,p.fd)(),(0,m.te)();let l=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(i){let{columns:t,rows:n}=i;e((0,f.dd)(t)),l.current||(l.current=!0,0===n.length?e((0,f.ym)(!0)):e((0,f.ym)(!1)))}},[i,e]);let a=(0,r.useMemo)(()=>i?i.rows:[],[i]),o=(0,r.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,r.useEffect)(()=>t(d),[d,t]),{...d,isLoading:s}};var S=n(83766),k=n.n(S),M=n(25980),I=n(46238),T=n(47935),F=n(22968);let q=e=>{var t,n,r;let{option:s,columnId:l,filterValue:a,toggleFilterOption:d}=e,u=(0,c.C)(y.L5),g=l===F.Ux&&null!==(n=null===(t=u.get(s))||void 0===t?void 0:t.name)&&void 0!==n?n:s;return(0,i.jsx)(o.XZJ,{value:s,width:"193px",height:"20px",mb:"25px",isChecked:null!==(r=a[s])&&void 0!==r&&r,onChange:e=>{let{target:t}=e;d(s,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})},s)};var z=e=>{let{column:t}=e,{filterValue:n,toggleFilterOption:s,options:l}=j({column:t}),[a,d]=(0,r.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)(q,{columnId:t.id,option:e,filterValue:n,toggleFilterOption:s},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:s}=e,{tableInstance:l}=(0,r.useContext)(v.Z),a=null==l?void 0:l.getHeaderGroups(),d=(e,t)=>e.filter(e=>e.id===t).map(e=>(0,i.jsx)(z,{column:e.column},t)),u=(0,r.useMemo)(()=>(null==a?void 0:a[0].headers)||[],[a]);return(0,i.jsxs)(o.u_l,{isOpen:n,onClose:s,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=[F.vy,F.Ux,F.OL],u.some(e=>t.indexOf(e.id)>-1))?(0,i.jsxs)(O,{heading:"Privacy attributes",children:[d(u,F.vy),d(u,F.Ux),d(u,F.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:s,type:"primary",className:"grow",children:"Done"})]})})]})]})};let E=()=>{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}=E(),{tableInstance:s}=(0,r.useContext)(v.Z),{systemsCount:l,dictionaryService:a}=(0,M.hz)(),d=null==s?void 0:s.getRowModel(),u=(0,r.useMemo)(()=>{let e=(null==d?void 0:d.rows)||[];return k()(null==e?void 0:e.map(e=>e.original["system.fides_key"]))},[d]);if(!s)return null;let c=u.length,g=s.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)(T.HO,{globalFilter:s.getState().globalFilter,setGlobalFilter:s.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)(I.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})]})},_=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 A=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,{})})}),K=()=>{let e=(0,c.C)(_.Xt),{attemptAction:t}=(0,s.oI)(),[n,i]=(0,r.useState)(),l=(0,r.useCallback)(e=>{t().then(t=>{t&&i(e)})},[t,i]),a=(0,r.useCallback)(()=>{t().then(e=>{e&&n&&i(void 0)})},[t,n]);return{isGettingStarted:e,selectedSystemId:n,setSelectedSystemId:l,resetSelectedSystemId:a}};var V=()=>{let{isGettingStarted:e,setSelectedSystemId:t,selectedSystemId:n,resetSelectedSystemId:r}=K(),{isLoading:s}=w();return s?(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)(A,{setSelectedSystemId:t,selectedSystemId:n})}),(0,i.jsx)(g.Z,{selectedSystemId:n,resetSelectedSystemId:r})]})]})},W=()=>{let e=(0,r.useMemo)(()=>new v.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)(v.Z.Provider,{value:e,children:[(0,i.jsx)(V,{}),(0,i.jsx)(s.eB,{})]})]})}}},function(e){e.O(0,[431,5163,255,9951,504,2888,9774,179],function(){return e(e.s=53910)}),_N_E=e.O()}]);