ethyca-fides 2.63.3rc0__py2.py3-none-any.whl → 2.64.1b0__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (362) hide show
  1. {ethyca_fides-2.63.3rc0.dist-info → ethyca_fides-2.64.1b0.dist-info}/METADATA +2 -2
  2. {ethyca_fides-2.63.3rc0.dist-info → ethyca_fides-2.64.1b0.dist-info}/RECORD +249 -242
  3. fides/_version.py +3 -3
  4. fides/api/alembic/migrations/versions/ba414a58ba90_create_manual_task_config_tables.py +121 -0
  5. fides/api/api/v1/endpoints/connection_endpoints.py +16 -3
  6. fides/api/api/v1/endpoints/oauth_endpoints.py +8 -2
  7. fides/api/db/base.py +4 -0
  8. fides/api/models/attachment.py +37 -23
  9. fides/api/models/manual_tasks/__init__.py +6 -0
  10. fides/api/models/manual_tasks/manual_task.py +11 -1
  11. fides/api/models/manual_tasks/manual_task_config.py +136 -0
  12. fides/api/models/manual_tasks/manual_task_log.py +13 -9
  13. fides/api/schemas/connection_configuration/connection_config.py +19 -4
  14. fides/api/schemas/manual_tasks/manual_task_config.py +311 -0
  15. fides/api/schemas/manual_tasks/manual_task_schemas.py +1 -1
  16. fides/api/schemas/manual_tasks/manual_task_status.py +1 -1
  17. fides/api/schemas/privacy_request.py +2 -0
  18. fides/api/service/connectors/query_configs/saas_query_config.py +15 -0
  19. fides/api/service/privacy_request/attachment_handling.py +132 -0
  20. fides/api/service/privacy_request/dsr_package/dsr_report_builder.py +264 -46
  21. fides/api/service/privacy_request/dsr_package/templates/attachments_index.html +33 -0
  22. fides/api/service/privacy_request/dsr_package/templates/collection_index.html +34 -9
  23. fides/api/service/privacy_request/dsr_package/templates/main.css +45 -2
  24. fides/api/service/privacy_request/dsr_package/templates/welcome.html +12 -8
  25. fides/api/service/privacy_request/request_runner_service.py +258 -139
  26. fides/api/service/storage/gcs.py +15 -3
  27. fides/api/service/storage/s3.py +28 -14
  28. fides/api/service/storage/util.py +45 -7
  29. fides/api/tasks/csv_utils.py +170 -0
  30. fides/api/tasks/encryption_utils.py +42 -0
  31. fides/api/tasks/storage.py +85 -91
  32. fides/api/util/cache.py +6 -3
  33. fides/api/util/saas_util.py +1 -0
  34. fides/config/redis_settings.py +105 -44
  35. fides/service/manual_tasks/manual_task_config_service.py +370 -0
  36. fides/service/manual_tasks/manual_task_service.py +231 -87
  37. fides/service/manual_tasks/utils.py +185 -0
  38. fides/ui-build/static/admin/404.html +1 -1
  39. fides/ui-build/static/admin/_next/static/chunks/1040-630c7f4284dc6f70.js +1 -0
  40. fides/ui-build/static/admin/_next/static/chunks/1100-d43cb04522a6505c.js +1 -0
  41. fides/ui-build/static/admin/_next/static/chunks/1316-6cc72a45ebf7ff81.js +1 -0
  42. fides/ui-build/static/admin/_next/static/chunks/1817-b4688ba5042ec687.js +1 -0
  43. fides/ui-build/static/admin/_next/static/chunks/2430-b480401d44c55416.js +1 -0
  44. fides/ui-build/static/admin/_next/static/chunks/2599-6c4d22e75028d8b6.js +1 -0
  45. fides/ui-build/static/admin/_next/static/chunks/2921-aabf41bf3d7573f9.js +1 -0
  46. fides/ui-build/static/admin/_next/static/chunks/3450-bdaeb35442d810b4.js +1 -0
  47. fides/ui-build/static/admin/_next/static/chunks/3505-a79256cd851dfab4.js +1 -0
  48. fides/ui-build/static/admin/_next/static/chunks/3513-8677ee280eaef0da.js +1 -0
  49. fides/ui-build/static/admin/_next/static/chunks/3855-0dec3e7d9e886550.js +1 -0
  50. fides/ui-build/static/admin/_next/static/chunks/3872-ffa16c2df7ef0ab6.js +1 -0
  51. fides/ui-build/static/admin/_next/static/chunks/3923-5d580fbb1dd6ae01.js +1 -0
  52. fides/ui-build/static/admin/_next/static/chunks/401-fceaae662cfca5a5.js +1 -0
  53. fides/ui-build/static/admin/_next/static/chunks/4060-71cd041e5a57ca5a.js +1 -0
  54. fides/ui-build/static/admin/_next/static/chunks/409-037cfc3f096150f0.js +1 -0
  55. fides/ui-build/static/admin/_next/static/chunks/4121-78a76e980acbd539.js +1 -0
  56. fides/ui-build/static/admin/_next/static/chunks/4230-1cdb7ea1be370ed3.js +1 -0
  57. fides/ui-build/static/admin/_next/static/chunks/431-f72599f01b98f07d.js +1 -0
  58. fides/ui-build/static/admin/_next/static/chunks/4481-f597a7cf03f8c9e1.js +1 -0
  59. fides/ui-build/static/admin/_next/static/chunks/5309-4511df9708d5a63c.js +1 -0
  60. fides/ui-build/static/admin/_next/static/chunks/5574-3cd33b3a6c937899.js +1 -0
  61. fides/ui-build/static/admin/_next/static/chunks/6277-3fb4c7fc790a6d20.js +1 -0
  62. fides/ui-build/static/admin/_next/static/chunks/6662-cb11881dcaabe5e2.js +1 -0
  63. fides/ui-build/static/admin/_next/static/chunks/6853-a4097260e402980e.js +1 -0
  64. fides/ui-build/static/admin/_next/static/chunks/6882-3cc73d407a088d7d.js +1 -0
  65. fides/ui-build/static/admin/_next/static/chunks/69-6889d6674c95e7b5.js +1 -0
  66. fides/ui-build/static/admin/_next/static/chunks/6954-13a25cef3a8fdd76.js +1 -0
  67. fides/ui-build/static/admin/_next/static/chunks/699-8ca44b0de9fa20f0.js +1 -0
  68. fides/ui-build/static/admin/_next/static/chunks/7553-a95939c32d54b5b7.js +1 -0
  69. fides/ui-build/static/admin/_next/static/chunks/79-5670e31eb65d0a53.js +1 -0
  70. fides/ui-build/static/admin/_next/static/chunks/796-9a6b13c838e25538.js +1 -0
  71. fides/ui-build/static/admin/_next/static/chunks/8433-adb1fcb29d82f1b7.js +1 -0
  72. fides/ui-build/static/admin/_next/static/chunks/9046-fdf53cc7e926a8c1.js +1 -0
  73. fides/ui-build/static/admin/_next/static/chunks/{905-8ab919e7b274ed50.js → 905-742074a074be1055.js} +2 -2
  74. fides/ui-build/static/admin/_next/static/chunks/9226-ba6587e46ec7659a.js +1 -0
  75. fides/ui-build/static/admin/_next/static/chunks/{9392.81edc11e3a175275.js → 9392.25024e070026343d.js} +1 -1
  76. fides/ui-build/static/admin/_next/static/chunks/9676.e60a53f1f5890847.js +1 -0
  77. fides/ui-build/static/admin/_next/static/chunks/9767-e49b065d03ce4e80.js +1 -0
  78. fides/ui-build/static/admin/_next/static/chunks/9951-f9ab5cac7e2c05ab.js +1 -0
  79. fides/ui-build/static/admin/_next/static/chunks/pages/404-ac2f0844e5c4b4cd.js +1 -0
  80. fides/ui-build/static/admin/_next/static/chunks/pages/{_app-f70bffa5a7903c46.js → _app-8ec6e466f3373ac0.js} +10 -10
  81. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-0a5f2310ce6b1059.js +1 -0
  82. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/multiple-00cb904825aad7e3.js +1 -0
  83. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-587e21d14e0a5196.js +1 -0
  84. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/add-vendors-fa7305b88c1afd20.js +1 -0
  85. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure-f140ec9d8e8a0f7a.js +1 -0
  86. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/[id]-0edb7c92518e7d21.js +1 -0
  87. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience-d8d926f0735a2546.js +1 -0
  88. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/[id]-5c949f2e3cef2398.js +1 -0
  89. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/new-130155cfb4a0bcc7.js +1 -0
  90. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-1135ad8924d32c36.js +1 -0
  91. fides/ui-build/static/admin/_next/static/chunks/pages/consent/properties-776855e370414beb.js +1 -0
  92. fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-21c23f75ff1135d9.js +1 -0
  93. fides/ui-build/static/admin/_next/static/chunks/pages/consent-4d5ea70a77df1bb8.js +1 -0
  94. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/{[resourceUrn]-18e3faf7963962e4.js → [resourceUrn]-c623d6f1a61c8ea9.js} +1 -1
  95. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-030ee304cbe5e530.js +1 -0
  96. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-cfac259a30641e68.js +1 -0
  97. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/{[resourceUrn]-7320524a47104798.js → [resourceUrn]-57bd5cdf784f059f.js} +1 -1
  98. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-7b5aec33da578745.js +1 -0
  99. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-c948f93c833d4358.js +1 -0
  100. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-333f53caab751428.js +1 -0
  101. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-27205f8457a1ecb0.js +1 -0
  102. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-20a1043f6a06198f.js +1 -0
  103. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-4c526db0c30c488a.js → [resourceUrn]-06edce289876dea1.js} +1 -1
  104. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-6f27dbb7c8edc69d.js → detection-faf326a6200637d0.js} +1 -1
  105. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-562d2b8ae90dd1f0.js → [resourceUrn]-64acf269256ee74f.js} +1 -1
  106. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-fe7f51502eda57c9.js → discovery-8c3e4be6d36da66d.js} +1 -1
  107. fides/ui-build/static/admin/_next/static/chunks/pages/datamap-fb50de22f83edd4a.js +1 -0
  108. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-41ab27c4195cfa93.js +1 -0
  109. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]-6e2caba24b3e78c2.js +1 -0
  110. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-904d43e31157aa55.js +1 -0
  111. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-d4e31a1c4a58800e.js +1 -0
  112. fides/ui-build/static/admin/_next/static/chunks/pages/dataset-8f7d16bc5e9229c8.js +1 -0
  113. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/[id]-4a33dd0371dbaebc.js +1 -0
  114. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-e88509346b2d2851.js +1 -0
  115. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-8f9b8890018e1ea5.js +1 -0
  116. fides/ui-build/static/admin/_next/static/chunks/pages/{fides-js-docs-80b241bf6cddb72e.js → fides-js-docs-5d8fd1af75f19e2f.js} +1 -1
  117. fides/ui-build/static/admin/_next/static/chunks/pages/index-1adb6bcb71701ac2.js +1 -0
  118. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-fdc2964fa7d1d8fd.js +1 -0
  119. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-adc286ff254e7f41.js +1 -0
  120. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/[id]-9b4d1d61c7c97509.js +1 -0
  121. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/add-template-f8fd4795e260887c.js +1 -0
  122. fides/ui-build/static/admin/_next/static/chunks/pages/messaging-aa744ae8b61e5ff2.js +1 -0
  123. fides/ui-build/static/admin/_next/static/chunks/pages/poc/ant-components-3407158757fb3627.js +1 -0
  124. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/AntForm-47e947c02ae90fd0.js +1 -0
  125. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikAntFormItem-24f9a44512ce8827.js +1 -0
  126. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikControlled-e567a69f8c37fb9a.js +1 -0
  127. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikField-35a33f9c7def2220.js +1 -0
  128. fides/ui-build/static/admin/_next/static/chunks/pages/poc/forms-780e18dde8e38099.js +1 -0
  129. fides/ui-build/static/admin/_next/static/chunks/pages/poc/table-migration-7a17dffa515e5560.js +1 -0
  130. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-91dd0039cc2b70bc.js +1 -0
  131. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-b01cbbaac34dadbc.js +1 -0
  132. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-a15410de7f1d0f84.js +1 -0
  133. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure-1a1aa83a3f88844c.js +1 -0
  134. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-c4e1b69fb5bab61a.js +1 -0
  135. fides/ui-build/static/admin/_next/static/chunks/pages/properties/[id]-19737d4f21aadbee.js +1 -0
  136. fides/ui-build/static/admin/_next/static/chunks/pages/properties/add-property-9ccb295110feee20.js +1 -0
  137. fides/ui-build/static/admin/_next/static/chunks/pages/properties-3a1037a2e036212a.js +1 -0
  138. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-4cdbbb8cd1d8698e.js +1 -0
  139. fides/ui-build/static/admin/_next/static/chunks/pages/settings/about/alpha-965cc21889b25e44.js +1 -0
  140. fides/ui-build/static/admin/_next/static/chunks/pages/settings/about-0e1c381d488a7ada.js +1 -0
  141. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-d0e350d2a2667883.js +1 -0
  142. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-7796fbf458f8f159.js +1 -0
  143. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-6f866bc799a5f67f.js +1 -0
  144. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domain-records-0b44b2b224077dcd.js +1 -0
  145. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-5d00e1155bd11178.js +1 -0
  146. fides/ui-build/static/admin/_next/static/chunks/pages/settings/email-templates-d2cdbe770683e9df.js +1 -0
  147. fides/ui-build/static/admin/_next/static/chunks/pages/settings/locations-811dadb489f23d7d.js +1 -0
  148. fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-24108f615ff5e1e7.js +1 -0
  149. fides/ui-build/static/admin/_next/static/chunks/pages/settings/regulations-54f142bc3e4c95ba.js +1 -0
  150. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-fef247a87baeb080.js +1 -0
  151. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]-6eb886e7b7e6785b.js +1 -0
  152. fides/ui-build/static/admin/_next/static/chunks/pages/systems-7b71274334c559a4.js +1 -0
  153. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-18534d2a79a3850b.js +1 -0
  154. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/[id]-75d41fde668b9025.js +1 -0
  155. fides/ui-build/static/admin/_next/static/chunks/pages/user-management-dd43755b687c09a7.js +1 -0
  156. fides/ui-build/static/admin/_next/static/chunks/webpack-0a61b5bd21a41fe6.js +1 -0
  157. fides/ui-build/static/admin/_next/static/css/c693338e3bc8dcc6.css +1 -0
  158. fides/ui-build/static/admin/_next/static/nRQ3pmK_d3F5PJE39rP2h/_buildManifest.js +1 -0
  159. fides/ui-build/static/admin/add-systems/manual.html +1 -1
  160. fides/ui-build/static/admin/add-systems/multiple.html +1 -1
  161. fides/ui-build/static/admin/add-systems.html +1 -1
  162. fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
  163. fides/ui-build/static/admin/consent/configure.html +1 -1
  164. fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
  165. fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
  166. fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
  167. fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
  168. fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
  169. fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
  170. fides/ui-build/static/admin/consent/properties.html +1 -1
  171. fides/ui-build/static/admin/consent/reporting.html +1 -1
  172. fides/ui-build/static/admin/consent.html +1 -1
  173. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
  174. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
  175. fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
  176. fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
  177. fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
  178. fides/ui-build/static/admin/data-catalog.html +1 -1
  179. fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
  180. fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
  181. fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
  182. fides/ui-build/static/admin/data-discovery/activity.html +1 -1
  183. fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
  184. fides/ui-build/static/admin/data-discovery/detection.html +1 -1
  185. fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
  186. fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
  187. fides/ui-build/static/admin/datamap.html +1 -1
  188. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
  189. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
  190. fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
  191. fides/ui-build/static/admin/dataset/new.html +1 -1
  192. fides/ui-build/static/admin/dataset.html +1 -1
  193. fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
  194. fides/ui-build/static/admin/datastore-connection/new.html +1 -1
  195. fides/ui-build/static/admin/datastore-connection.html +1 -1
  196. fides/ui-build/static/admin/images/connector-logos/salesforce.svg +41 -0
  197. fides/ui-build/static/admin/index.html +1 -1
  198. fides/ui-build/static/admin/integrations/[id].html +1 -1
  199. fides/ui-build/static/admin/integrations.html +1 -1
  200. fides/ui-build/static/admin/lib/fides-ext-gpp.js +1 -1
  201. fides/ui-build/static/admin/lib/fides-headless.js +1 -1
  202. fides/ui-build/static/admin/lib/fides-preview.js +1 -1
  203. fides/ui-build/static/admin/lib/fides-tcf.js +2 -2
  204. fides/ui-build/static/admin/lib/fides.js +2 -2
  205. fides/ui-build/static/admin/login/[provider].html +1 -1
  206. fides/ui-build/static/admin/login.html +1 -1
  207. fides/ui-build/static/admin/messaging/[id].html +1 -1
  208. fides/ui-build/static/admin/messaging/add-template.html +1 -1
  209. fides/ui-build/static/admin/messaging.html +1 -1
  210. fides/ui-build/static/admin/poc/ant-components.html +1 -1
  211. fides/ui-build/static/admin/poc/form-experiments/AntForm.html +1 -1
  212. fides/ui-build/static/admin/poc/form-experiments/FormikAntFormItem.html +1 -1
  213. fides/ui-build/static/admin/poc/form-experiments/FormikControlled.html +1 -1
  214. fides/ui-build/static/admin/poc/form-experiments/FormikField.html +1 -1
  215. fides/ui-build/static/admin/poc/form-experiments/FormikSpreadField.html +1 -1
  216. fides/ui-build/static/admin/poc/forms.html +1 -1
  217. fides/ui-build/static/admin/poc/table-migration.html +1 -1
  218. fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
  219. fides/ui-build/static/admin/privacy-requests/configure/messaging.html +1 -1
  220. fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
  221. fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
  222. fides/ui-build/static/admin/privacy-requests.html +1 -1
  223. fides/ui-build/static/admin/properties/[id].html +1 -1
  224. fides/ui-build/static/admin/properties/add-property.html +1 -1
  225. fides/ui-build/static/admin/properties.html +1 -1
  226. fides/ui-build/static/admin/reporting/datamap.html +1 -1
  227. fides/ui-build/static/admin/settings/about/alpha.html +1 -1
  228. fides/ui-build/static/admin/settings/about.html +1 -1
  229. fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +1 -1
  230. fides/ui-build/static/admin/settings/consent.html +1 -1
  231. fides/ui-build/static/admin/settings/custom-fields.html +1 -1
  232. fides/ui-build/static/admin/settings/domain-records.html +1 -1
  233. fides/ui-build/static/admin/settings/domains.html +1 -1
  234. fides/ui-build/static/admin/settings/email-templates.html +1 -1
  235. fides/ui-build/static/admin/settings/locations.html +1 -1
  236. fides/ui-build/static/admin/settings/organization.html +1 -1
  237. fides/ui-build/static/admin/settings/regulations.html +1 -1
  238. fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
  239. fides/ui-build/static/admin/systems/configure/[id].html +1 -1
  240. fides/ui-build/static/admin/systems.html +1 -1
  241. fides/ui-build/static/admin/taxonomy.html +1 -1
  242. fides/ui-build/static/admin/user-management/new.html +1 -1
  243. fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
  244. fides/ui-build/static/admin/user-management.html +1 -1
  245. fides/api/service/privacy_request/dsr_package/templates/item.html +0 -37
  246. fides/ui-build/static/admin/_next/static/chunks/1099-667e84655846e78c.js +0 -1
  247. fides/ui-build/static/admin/_next/static/chunks/1100-0b01f500b1eaf60d.js +0 -1
  248. fides/ui-build/static/admin/_next/static/chunks/1817-951f58ddd5d46081.js +0 -1
  249. fides/ui-build/static/admin/_next/static/chunks/1904-964f8eb328dc2715.js +0 -1
  250. fides/ui-build/static/admin/_next/static/chunks/2310-744354001d01f366.js +0 -1
  251. fides/ui-build/static/admin/_next/static/chunks/2921-49af55ad7c631c93.js +0 -1
  252. fides/ui-build/static/admin/_next/static/chunks/3119-e36ae5071c8f27a5.js +0 -1
  253. fides/ui-build/static/admin/_next/static/chunks/3505-113f9c95d34b7aae.js +0 -1
  254. fides/ui-build/static/admin/_next/static/chunks/3513-5c2d412a84a78971.js +0 -1
  255. fides/ui-build/static/admin/_next/static/chunks/3872-45cc725e241211f0.js +0 -1
  256. fides/ui-build/static/admin/_next/static/chunks/3923-b4f701ada3ef0ee0.js +0 -1
  257. fides/ui-build/static/admin/_next/static/chunks/401-7e800aed05537126.js +0 -1
  258. fides/ui-build/static/admin/_next/static/chunks/4060-90a52a9afc655bfc.js +0 -1
  259. fides/ui-build/static/admin/_next/static/chunks/4121-66b0e00d5e7ae817.js +0 -1
  260. fides/ui-build/static/admin/_next/static/chunks/4132-9b1731bfec6ee537.js +0 -1
  261. fides/ui-build/static/admin/_next/static/chunks/4481-7f6710c928bb0cb0.js +0 -1
  262. fides/ui-build/static/admin/_next/static/chunks/5258-2079138c8cc34f6c.js +0 -1
  263. fides/ui-build/static/admin/_next/static/chunks/5404-2694509cf5fa96da.js +0 -1
  264. fides/ui-build/static/admin/_next/static/chunks/5487-2cbd8d2169eb2a65.js +0 -1
  265. fides/ui-build/static/admin/_next/static/chunks/5683-37137111b3e769fb.js +0 -1
  266. fides/ui-build/static/admin/_next/static/chunks/6202-081545c7822d09af.js +0 -1
  267. fides/ui-build/static/admin/_next/static/chunks/6277-459e054b2702c60e.js +0 -1
  268. fides/ui-build/static/admin/_next/static/chunks/641-7e4eef3222cbda70.js +0 -1
  269. fides/ui-build/static/admin/_next/static/chunks/6853-688df0b88fe65fd5.js +0 -1
  270. fides/ui-build/static/admin/_next/static/chunks/69-00cba94689b9e740.js +0 -1
  271. fides/ui-build/static/admin/_next/static/chunks/6954-4e313b4599b8763d.js +0 -1
  272. fides/ui-build/static/admin/_next/static/chunks/7553-08bc3d9f66695111.js +0 -1
  273. fides/ui-build/static/admin/_next/static/chunks/79-fc548561beed136f.js +0 -1
  274. fides/ui-build/static/admin/_next/static/chunks/796-d6586308ed44334b.js +0 -1
  275. fides/ui-build/static/admin/_next/static/chunks/7980-736f9fd1e749ddd2.js +0 -1
  276. fides/ui-build/static/admin/_next/static/chunks/8032-74d94f7bd5b81c89.js +0 -1
  277. fides/ui-build/static/admin/_next/static/chunks/8433-51870336908fb253.js +0 -1
  278. fides/ui-build/static/admin/_next/static/chunks/8499-1fd392d0be9e8ee4.js +0 -1
  279. fides/ui-build/static/admin/_next/static/chunks/8702-d1c8296f9f6afc10.js +0 -1
  280. fides/ui-build/static/admin/_next/static/chunks/9033-fdd87182c15b91e2.js +0 -1
  281. fides/ui-build/static/admin/_next/static/chunks/9187-851756440f79cd75.js +0 -1
  282. fides/ui-build/static/admin/_next/static/chunks/9327-6a53461c9764b16f.js +0 -1
  283. fides/ui-build/static/admin/_next/static/chunks/9494-1ffb888b95289891.js +0 -1
  284. fides/ui-build/static/admin/_next/static/chunks/9676.61cf5f6d6a083175.js +0 -1
  285. fides/ui-build/static/admin/_next/static/chunks/9767-afd674014a1d1152.js +0 -1
  286. fides/ui-build/static/admin/_next/static/chunks/pages/404-ec04f826f3dd79ea.js +0 -1
  287. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-1bec086d567aacff.js +0 -1
  288. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/multiple-f68bf100e4e60e88.js +0 -1
  289. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-effde5cfe49de55f.js +0 -1
  290. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/add-vendors-ec95ed8cb0712828.js +0 -1
  291. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure-4cc195e15e0c3cc8.js +0 -1
  292. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/[id]-be8972c79fb39705.js +0 -1
  293. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience-ccf96207de3b74ea.js +0 -1
  294. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/[id]-b9823cc008372cee.js +0 -1
  295. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/new-373f5772ab41bc93.js +0 -1
  296. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-b9beeee1bde5ca79.js +0 -1
  297. fides/ui-build/static/admin/_next/static/chunks/pages/consent/properties-6ab3a5baafebd199.js +0 -1
  298. fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-8562790ae07f17c9.js +0 -1
  299. fides/ui-build/static/admin/_next/static/chunks/pages/consent-42d4d2d6e0253671.js +0 -1
  300. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-9d1df6d890671b0c.js +0 -1
  301. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-7eb08af333baaa8e.js +0 -1
  302. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-bb57eed84f59a932.js +0 -1
  303. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-47eb34aef3e31ac6.js +0 -1
  304. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-76cefefc53e84c7f.js +0 -1
  305. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-9d8e84a8b4bf568d.js +0 -1
  306. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-f208fef5e72dafd6.js +0 -1
  307. fides/ui-build/static/admin/_next/static/chunks/pages/datamap-db45aa864e9dda8a.js +0 -1
  308. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-d5cfdebc74654337.js +0 -1
  309. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]-618b89228f83435e.js +0 -1
  310. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-12fc86f15a4c764e.js +0 -1
  311. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-c23d18a9b56c2e3c.js +0 -1
  312. fides/ui-build/static/admin/_next/static/chunks/pages/dataset-e3b2d8e3980ab093.js +0 -1
  313. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/[id]-6e27257eccf65f01.js +0 -1
  314. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-bbac1f624424282d.js +0 -1
  315. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-84eb56f5a07bdf4f.js +0 -1
  316. fides/ui-build/static/admin/_next/static/chunks/pages/index-773182b5e35d0045.js +0 -1
  317. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-eb28c927da5bd653.js +0 -1
  318. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-781808bca01f8048.js +0 -1
  319. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/[id]-b51bee8680d66b20.js +0 -1
  320. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/add-template-1de479533f733fbd.js +0 -1
  321. fides/ui-build/static/admin/_next/static/chunks/pages/messaging-7dc295b3ed3d2224.js +0 -1
  322. fides/ui-build/static/admin/_next/static/chunks/pages/poc/ant-components-f64dac3392f5ded7.js +0 -1
  323. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/AntForm-eb020bfac4bee532.js +0 -1
  324. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikAntFormItem-0bd62e28b539e114.js +0 -1
  325. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikControlled-936877004113c2a6.js +0 -1
  326. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikField-6416f01524482af9.js +0 -1
  327. fides/ui-build/static/admin/_next/static/chunks/pages/poc/forms-3f4e1313d1f2969b.js +0 -1
  328. fides/ui-build/static/admin/_next/static/chunks/pages/poc/table-migration-1db7a54437db7db0.js +0 -1
  329. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-64236fd0141414fd.js +0 -1
  330. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-8cab04871908cfeb.js +0 -1
  331. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-150d40428245ee0c.js +0 -1
  332. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure-b6c876dceb16ad1b.js +0 -1
  333. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-20cdb2c8a03deae1.js +0 -1
  334. fides/ui-build/static/admin/_next/static/chunks/pages/properties/[id]-54bcc875592d1fb9.js +0 -1
  335. fides/ui-build/static/admin/_next/static/chunks/pages/properties/add-property-644dc669b508a79a.js +0 -1
  336. fides/ui-build/static/admin/_next/static/chunks/pages/properties-9a88220d03e7e02f.js +0 -1
  337. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-70dc1081df37ea69.js +0 -1
  338. fides/ui-build/static/admin/_next/static/chunks/pages/settings/about/alpha-3c71b4dbcb6fd6c9.js +0 -1
  339. fides/ui-build/static/admin/_next/static/chunks/pages/settings/about-7cb16e0000dd16c9.js +0 -1
  340. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-a18d8f12ee8dcf5d.js +0 -1
  341. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-dc220e116ad5c09e.js +0 -1
  342. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-55ddc5f25b86f28e.js +0 -1
  343. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domain-records-5ca7decded228bc8.js +0 -1
  344. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-a6fafa1be2834c40.js +0 -1
  345. fides/ui-build/static/admin/_next/static/chunks/pages/settings/email-templates-e633750d2b45ddd6.js +0 -1
  346. fides/ui-build/static/admin/_next/static/chunks/pages/settings/locations-3948686cbd372969.js +0 -1
  347. fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-04ece499c22d23f4.js +0 -1
  348. fides/ui-build/static/admin/_next/static/chunks/pages/settings/regulations-7752305084280cca.js +0 -1
  349. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-9e5f9066be6f218d.js +0 -1
  350. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]-86de9e6d72098e45.js +0 -1
  351. fides/ui-build/static/admin/_next/static/chunks/pages/systems-cac52e6c3abf6a15.js +0 -1
  352. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-60d5930b6855679b.js +0 -1
  353. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/[id]-b0f4c34752d32c73.js +0 -1
  354. fides/ui-build/static/admin/_next/static/chunks/pages/user-management-7dee83dd6d9292aa.js +0 -1
  355. fides/ui-build/static/admin/_next/static/chunks/webpack-8457bad7859c44f0.js +0 -1
  356. fides/ui-build/static/admin/_next/static/css/1fdf5c593349dbc6.css +0 -1
  357. fides/ui-build/static/admin/_next/static/f_8LkSZkhtDM14f8gbC0b/_buildManifest.js +0 -1
  358. {ethyca_fides-2.63.3rc0.dist-info → ethyca_fides-2.64.1b0.dist-info}/WHEEL +0 -0
  359. {ethyca_fides-2.63.3rc0.dist-info → ethyca_fides-2.64.1b0.dist-info}/entry_points.txt +0 -0
  360. {ethyca_fides-2.63.3rc0.dist-info → ethyca_fides-2.64.1b0.dist-info}/licenses/LICENSE +0 -0
  361. {ethyca_fides-2.63.3rc0.dist-info → ethyca_fides-2.64.1b0.dist-info}/top_level.txt +0 -0
  362. /fides/ui-build/static/admin/_next/static/{f_8LkSZkhtDM14f8gbC0b → nRQ3pmK_d3F5PJE39rP2h}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8012],{43376:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/add-systems/manual",function(){return s(33688)}])},33688:function(e,t,s){"use strict";s.r(t);var a=s(24246),r=s(62051),n=s(86677),i=s(27378),o=s(16134),u=s(7617),d=s(77213),l=s(77830),m=s(58754),c=s(41337),y=s(57865),h=s(72774),b=s(72250);let x=e=>{let{connector:t}=e;return(0,a.jsxs)(r.xuv,{display:"flex",mb:4,alignItems:"center","data-testid":"header",children:[(0,a.jsx)(c.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,tabIndex:s,onTabChange:c}=(0,b.Z)({isCreate:!0}),f=(0,i.useMemo)(()=>{if(e)return JSON.parse(Array.isArray(e)?e[0]:e)},[e]),_=(0,o.C)(y.gU);return(0,a.jsxs)(d.Z,{title:"Describe your system",children:[(0,a.jsx)(m.Z,{heading:"Add systems",breadcrumbItems:[{title:"Add systems",href:l.xo},{title:"New system"}]}),(0,a.jsx)(x,{connector:f}),_?(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)(u.Z,{data:t,"data-testid":"system-tabs",index:s,isLazy:!0,isManual:!0,onChange:c})]})]})}}},function(e){e.O(0,[8033,6060,2858,2866,9278,699,5277,7553,4481,409,401,9951,1040,3450,2888,9774,179],function(){return e(e.s=43376)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5822],{87321:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/add-systems/multiple",function(){return t(17035)}])},17035:function(e,s,t){"use strict";t.r(s);var o=t(24246),n=t(62051),r=t(77213),d=t(77830),i=t(58754),a=t(15826);s.default=()=>(0,o.jsxs)(r.Z,{title:"Choose vendors",children:[(0,o.jsx)(i.Z,{heading:"Add systems",breadcrumbItems:[{title:"Add systems",href:d.xo},{title:"Choose vendors"}]}),(0,o.jsx)(n.xuv,{w:{base:"100%",md:"75%"},children:(0,o.jsxs)(n.xvT,{fontSize:"sm",mb:8,children:["Select your vendors below and they will be added as systems to your data map. Fides Compass will automatically populate the system information so that you can quickly configure privacy requests and consent. To add custom systems or unlisted vendors, please",(0,o.jsxs)(n.rUS,{href:d.N5,color:"complimentary.500",children:[" ","click here."," "]})]})}),(0,o.jsx)(a.$,{redirectRoute:d.oG})]})}},function(e){e.O(0,[8033,6060,7553,4481,401,3923,796,2888,9774,179],function(){return e(e.s=87321)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5023],{74245:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/add-systems",function(){return n(5923)}])},69e3:function(e,t,n){"use strict";var s=n(24246),i=n(62051),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(62051);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(62051).AntTypography;t.Z=e=>(0,s.jsx)(i,{target:"_blank",rel:"noopener noreferrer",...e})},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var s=n(24246),i=n(62051),r=n(88038),a=n.n(r),l=n(86677);n(27378);var o=n(25980),c=n(90867),d=n(77830),u=()=>{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(d.fz)},children:"Configure"})]}),(0,s.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},h=e=>{let{children:t,title:n,padded:r=!0,mainProps:d}=e,h=(0,o.hz)(),x=(0,l.useRouter)(),m="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,p=!(h.flags.privacyRequestsConfiguration&&m),{data:y}=(0,c.JE)(void 0,{skip:p}),{data:j}=(0,c.PW)(void 0,{skip:p}),g=h.flags.privacyRequestsConfiguration&&(!y||!j)&&m;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",...d,children:[g?(0,s.jsx)(u,{}):null,t]})]})}},58754:function(e,t,n){"use strict";var s=n(24246),i=n(62051),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(62051),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:x,...m}=e,[p,y,{setValue:j}]=(0,r.U$)(t),g=!!(y.touched&&y.error),[f,v]=(0,a.useState)("");p.value||"tags"!==m.mode&&"multiple"!==m.mode||(p.value=[]),"tags"===m.mode&&"string"==typeof p.value&&(p.value=[p.value]);let b="tags"===m.mode?(e,t)=>e?e.value!==f||p.value.includes(f)?m.optionRender?m.optionRender(e,t):e.label:'Create "'.concat(f,'"'):void 0:m.optionRender||void 0,w=e=>{v(e),m.onSearch&&m.onSearch(e)},C=(e,t)=>{j(e),m.onChange&&m.onChange(e,t)};return"inline"===h?(0,s.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,s.jsxs)(i.rjZ,{templateColumns:n?"1fr 3fr":"1fr",children:[n?(0,s.jsx)(o.__,{htmlFor:m.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,{...p,id:m.id||t,"data-testid":"controlled-select-".concat(p.name),...m,optionRender:b,onSearch:"tags"===m.mode?w:void 0,onChange:C,value:p.value||void 0,status:g?"error":void 0}),x&&(0,s.jsx)(i.Q6r,{children:x}),(0,s.jsx)(o.Bc,{isInvalid:g,message:y.error,fieldName:p.name})]}),(0,s.jsx)(l.b,{label:d,className:g?"mt-2 self-start":void 0})]})]})}):(0,s.jsx)(i.NIc,{isInvalid:g,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:m.id||t,fontSize:"xs",my:0,mr:1,...c,children:n}):null,(0,s.jsx)(l.b,{label:d})]}),(0,s.jsx)(i.WPr,{...p,id:m.id||t,"data-testid":"controlled-select-".concat(p.name),...m,optionRender:b,onSearch:"tags"===m.mode?w:void 0,onChange:C,value:p.value||void 0,status:g?"error":void 0}),x&&(0,s.jsx)(i.Q6r,{style:{marginTop:0},children:x}),(0,s.jsx)(o.Bc,{isInvalid:g,message:y.error,fieldName:p.name})]})})}},14047:function(e,t,n){"use strict";n.d(t,{H:function(){return r},V:function(){return s.V}});var s=n(84306),i=n(812);let r=()=>{let{errorAlert:e}=(0,s.V)();return{handleError:t=>{let n="An unexpected error occurred. Please try again.";(0,i.Ot)(t)?n=t.data.detail:(0,i.tB)(t)&&(n=t.data.detail[0].msg),e(n)}}}},84306:function(e,t,n){"use strict";n.d(t,{V:function(){return r}});var s=n(24246),i=n(62051);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(62051),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(62051),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,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})}},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(62051),d=n(3124),u=n.n(d),h=n(86677),x=n(25980),m=n(14048),p=n(58452);let y=e=>{let{onCancel:t,onConfirm:n,isOpen:i,onClose:r}=e;return(0,s.jsx)(p.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 j=n(77830),g=n(46420),f=n(69e3),v=n(77867),b=n(32885),w=e=>{var t;let{onClick:n}=e,{plus:i,dataFlowScanning:a}=(0,x.hz)(),l=(0,r.C)(b.bw),o=null!==(t=null==l?void 0:l.cluster_health)&&void 0!==t?t:"unknown",d=o===g.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)(f.Z,{title:"Data flow scan",color:u().FIDESUI_NECTAR,description:"Automatically discover new systems in your Kubernetes infrastructure",icon:(0,s.jsx)(m.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]})},C=n(38764);let k=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 _=()=>{let e=(0,r.T)(),t=(0,h.useRouter)(),{isOpen:n,onClose:i,onOpen:a}=(0,c.qY0)(),{dictionaryService:l}=(0,x.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)(y,{isOpen:n,onConfirm:()=>{window.open("https://fid.es/upgrade-compass")},onCancel:()=>{t.push(j.N5)},onClose:i}),(0,s.jsxs)(c.xuv,{"data-testid":"manual-options",children:[(0,s.jsx)(k,{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)(C.D.MANUAL)),t.push(j.N5)},"data-testid":"manual-btn",children:(0,s.jsx)(f.Z,{title:"Add a system",color:u().FIDESUI_SANDSTONE,icon:(0,s.jsx)(m.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)(C.D.MANUAL)),t.push(j.bJ)):a()},"data-testid":"multiple-btn",children:(0,s.jsx)(f.Z,{title:"Add multiple systems",color:u().FIDESUI_OLIVE,icon:(0,s.jsx)(m.P$,{boxSize:6}),description:"Choose vendors and automatically populate system details"})})]})]}),(0,s.jsxs)(c.xuv,{"data-testid":"automated-options",children:[(0,s.jsx)(k,{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)(g.GC.AWS)),e((0,o.sz)())},"data-testid":"aws-btn",children:(0,s.jsx)(f.Z,{title:"Scan your infrastructure (AWS)",color:u().FIDESUI_TERRACOTTA,description:"Automatically discover new systems in your AWS infrastructure",icon:(0,s.jsx)(m.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)(g.GC.OKTA)),e((0,o.sz)())},"data-testid":"okta-btn",children:(0,s.jsx)(f.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)(m.tb,{boxSize:6})})}),(0,s.jsx)(w,{onClick:()=>{e((0,o.sz)()),e((0,o.CQ)(C.D.DATA_FLOW))}})]})]})]})},S=n(34090),T=n(55484),A=n(40324),z=n(812),I=n(14047),q=n(97181),N=n(70788),O=n(28416);let F=e=>"system_type"in e,{useGenerateMutation:D}=n(78780).u.injectEndpoints({endpoints:e=>({generate:e.mutation({query:e=>({url:"generate",method:"POST",body:e})})})});var Z=n(59301);let R=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 W=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===g.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)(Z.Z,{href:O.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)(Z.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)(R,{message:t.message}),(0,s.jsxs)(c.xvT,{children:["If this error does not clarify why scanning failed, please"," ",(0,s.jsx)(Z.Z,{href:O.we,children:"create a new issue"}),"."]})]})]})},E=n(57899);let K=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.xvT,{color:"gray.500",mb:3,children:"Warning, you are about to cancel the scan!"}),(0,s.jsx)(c.xvT,{color:"gray.500",mb:3,children:"If you cancel scanning, the scanner will stop and no systems will be returned."}),(0,s.jsx)(c.xvT,{color:"gray.500",mb:3,children:"Are you sure you want to cancel?"})]});var U=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)(E.Z,{isOpen:i,onClose:a,handleConfirm:n,title:"Cancel Scan!",message:K,confirmButtonText:"Yes, Cancel",cancelButtonText:"No, Continue Scanning"})]})};let B={aws_access_key_id:"",aws_secret_access_key:"",aws_session_token:"",region_name:""},P=T.Ry().shape({aws_access_key_id:T.Z_().required().trim().matches(/^\w+$/,"Cannot contain spaces or special characters").label("Access Key ID"),aws_secret_access_key:T.Z_().required().trim().matches(/^[^\s]+$/,"Cannot contain spaces").label("Secret"),aws_session_token:T.Z_().optional().trim().matches(/^[^\s]+$/,"Cannot contain spaces").label("Session Token (for temporary credentials)"),region_name:T.Z_().required().label("Default Region")});var M=()=>{let e=(0,r.C)(o.De),t=(0,r.T)(),{successAlert:n}=(0,I.V)(),[a,l]=(0,i.useState)(),d=e=>{let s=(null!=e?e:[]).filter(F);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))},[x,{isLoading:m}]=D(),p=async t=>{l(void 0);let n=await x({organization_key:e,generate:{config:t,target:g.GC.AWS,type:g.j.SYSTEMS}});(0,z.D4)(n)?u(n.error):d(n.data.generate_results)};return(0,s.jsx)(S.J9,{initialValues:B,validationSchema:P,onSubmit:p,children:e=>{let{isValid:t,isSubmitting:n,dirty:i}=e;return(0,s.jsx)(S.l0,{"data-testid":"authenticate-aws-form",children:(0,s.jsxs)(c.Kqy,{spacing:10,children:[n?(0,s.jsx)(U,{title:"System scanning in progress",onClose:h}):null,a?(0,s.jsx)(W,{error:a,scanType:"aws"}):null,n||a?null:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.xuv,{children:[(0,s.jsx)(N.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)(q.d,{name:"region_name",label:"AWS Region",tooltip:"The geographic region of the cloud hosting provider you would like to scan.",options:O.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:m,"data-testid":"submit-btn",children:"Save and continue"})]})]})})}})};let X={orgUrl:"",token:""},L=T.Ry().shape({orgUrl:T.Z_().required().trim().url().label("URL"),token:T.Z_().required().trim().matches(/^[^\s]+$/,"Cannot contain spaces").label("Token")});var V=()=>{let e=(0,r.C)(o.De),t=(0,r.T)(),{successAlert:n}=(0,I.V)(),[a,l]=(0,i.useState)(),d=e=>{let s=(null!=e?e:[]).filter(F);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))},[x,{isLoading:m}]=D(),p=async t=>{l(void 0);let n=await x({organization_key:e,generate:{config:t,target:g.GC.OKTA,type:g.j.SYSTEMS}});(0,z.D4)(n)?u(n.error):d(n.data.generate_results)};return(0,s.jsx)(S.J9,{initialValues:X,validationSchema:L,onSubmit:p,children:e=>{let{isValid:t,isSubmitting:n,dirty:i}=e;return(0,s.jsx)(S.l0,{"data-testid":"authenticate-okta-form",children:(0,s.jsxs)(c.Kqy,{spacing:10,children:[n?(0,s.jsx)(U,{title:"System scanning in progress",onClose:h}):null,a?(0,s.jsx)(W,{error:a}):null,n||a?null:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.xuv,{children:[(0,s.jsx)(N.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:m,"data-testid":"submit-btn",children:"Save and continue"})]})]})})}})},Y=n(46628),$=n(31883),J=()=>{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,x]=(0,i.useState)(!1),m=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();x(!(e&&(0,$.Bw)(e)&&404===e.status));let t=await a({classify:!0});(0,z.D4)(t)&&m(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,Y.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 p=()=>{e((0,o.sz)(2))};return d?(0,s.jsxs)(c.Kqy,{children:[(0,s.jsx)(W,{error:d}),(0,s.jsx)(c.xuv,{children:(0,s.jsx)(c.wpx,{onClick:p,"data-testid":"cancel-btn",children:"Cancel"})})]}):(0,s.jsx)(U,{title:"Infrastructure scanning in progress",onClose:p})},Q=()=>{let e=(0,r.C)(o.Ll);return(0,s.jsxs)(c.xuv,{w:"40%",children:[e===g.GC.AWS?(0,s.jsx)(M,{}):null,e===g.GC.OKTA?(0,s.jsx)(V,{}):null,e===C.D.DATA_FLOW?(0,s.jsx)(J,{}):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,x]=(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 m=(0,c.pmc)();return(0,S.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;x(!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)){m({status:"error",description:(0,z.e$)(e.error)});return}m.closeAll(),s(r)}else{let e=await a(r);if((0,z.D4)(e)){m({status:"error",description:(0,z.e$)(e.error)});return}m.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)(),[x]=(0,el.dB)(),[m,p]=(0,i.useState)(e),[y,j]=(0,i.useState)(eo),{handleError:g}=(0,I.H)(),f=e=>{n.push(e).then(()=>{t((0,o.mc)())})},v=async()=>{let e=await x(m);return(0,z.D4)(e)?g(e.error):f(a)},b=()=>{t((0,o.sz)(2))},w=(0,s.jsxs)(c.xvT,{color:"gray.500",mb:3,children:["You’re registering ",m.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)(N.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:y,onChange:j})})]}),(0,s.jsx)(ea,{allSystems:e,checked:m,onChange:p,columns:y}),(0,s.jsxs)(c.Ugi,{children:[(0,s.jsx)(c.wpx,{onClick:b,children:"Back"}),(0,s.jsx)(c.wpx,{onClick:()=>{e.length>m.length?d():v()},type:"primary",disabled:0===m.length,"data-testid":"register-btn",children:"Register selected systems"})]})]})]}),(0,s.jsx)(E.Z,{title:"Warning",message:w,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)(_,{}):null,3===e?(0,s.jsx)(Q,{}):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"}},76649:function(e,t,n){"use strict";n.d(t,{Ln:function(){return s}});let s=(e,t)=>r(e,t),i=Symbol("SOME"),r=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?i in e?e.some(e=>r(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>r(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,n])=>r(n,t[e]));class a{static narrow(e){return new a(t=>s(e,t))}constructor(e){this.NF=void 0,this.NF=e}satisfied(e){return this.NF(e)}build(e){return e}and(e){let t=this.NF,n=e instanceof a?e.NF:e instanceof Function?e:t=>s(e,t);return new a(e=>t(e)&&n(e))}}new a(e=>!0)}},function(e){e.O(0,[7553,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([[4290],{73906:function(e,n,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/configure/add-vendors",function(){return o(32805)}])},32805:function(e,n,o){"use strict";o.r(n);var s=o(24246),t=o(62051),r=o(77213),a=o(77830),i=o(58754),c=o(15826);let{Text:d}=t.AntTypography;n.default=()=>(0,s.jsxs)(r.Z,{title:"Choose vendors",children:[(0,s.jsx)(i.Z,{heading:"Vendors",breadcrumbItems:[{title:"All vendors",href:a.zo},{title:"Choose vendors"}],children:(0,s.jsx)(d,{className:"block w-1/2",children:"Select your vendors below and they will be added as systems to your data map. Fides Compass will automatically populate the system information so that you can quickly configure privacy requests and consent."})}),(0,s.jsx)(c.$,{redirectRoute:a.zo})]})}},function(e){e.O(0,[8033,6060,7553,4481,401,3923,796,2888,9774,179],function(){return e(e.s=73906)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3709],{54727:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/configure",function(){return t(47672)}])},77213:function(e,s,t){"use strict";t.d(s,{Z:function(){return p}});var n=t(24246),i=t(62051),l=t(88038),a=t.n(l),r=t(86677);t(27378);var o=t(25980),c=t(90867),d=t(77830),u=()=>{let e=(0,r.useRouter)();return(0,n.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,n.jsxs)(i.xuv,{children:[(0,n.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(i.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,n.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:s,title:t,padded:l=!0,mainProps:d}=e,p=(0,o.hz)(),x=(0,r.useRouter)(),h="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,g=!(p.flags.privacyRequestsConfiguration&&h),{data:j}=(0,c.JE)(void 0,{skip:g}),{data:m}=(0,c.PW)(void 0,{skip:g}),f=p.flags.privacyRequestsConfiguration&&(!j||!m)&&h;return(0,n.jsxs)(i.kCb,{"data-testid":t,direction:"column",h:"100vh",children:[(0,n.jsxs)(a(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",t]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(i.kCb,{as:"main",direction:"column",py:l?6:0,px:l?10:0,h:l?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[f?(0,n.jsx)(u,{}):null,s]})]})}},58754:function(e,s,t){"use strict";var n=t(24246),i=t(62051),l=t(70788);s.Z=e=>{let{heading:s,breadcrumbItems:t,isSticky:a=!0,children:r,rightContent:o,style:c,...d}=e;return(0,n.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,n.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof s?(0,n.jsx)(i.lQT,{className:t||r?"pb-4":void 0,level:1,"data-testid":"page-heading",children:s}):s,o&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!t&&(0,n.jsx)(l.m,{className:r?"pb-4":void 0,items:t,"data-testid":"page-breadcrumb"}),r]})}},70788:function(e,s,t){"use strict";t.d(s,{m:function(){return c}});var n=t(24246),i=t(62051),l=t(79894),a=t.n(l),r=t(27378);let{Text:o}=i.AntTypography,c=e=>{let{items:s,...t}=e,l=(0,r.useMemo)(()=>null==s?void 0:s.map((e,t)=>{let l=t===s.length-1,r={...e},c=r.onClick&&!r.href;return("string"==typeof r.title&&(r.title=(0,n.jsx)(o,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,children:r.title})),c)?r.title=(0,n.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,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:r.icon}),r.title]})),r.href&&r.title&&(r.title=(0,n.jsx)(a(),{href:r.href,className:"ant-breadcrumb-link",children:r.title}),delete r.href)),r}),[s]);return(0,n.jsx)(i.zrq,{items:l,...t})}},6675:function(e,s,t){"use strict";t.d(s,{ZS:function(){return r},a4:function(){return l}});var n=t(3228);let i=t(78780).u.injectEndpoints({endpoints:e=>({getPurposes:e.query({query:()=>"purposes"})})}),{useGetPurposesQuery:l}=i,a={purposes:{},special_purposes:{}},r=(0,n.P1)(i.endpoints.getPurposes.select(),e=>{let{data:s}=e;return s||a})},48347:function(e,s,t){"use strict";t.d(s,{W:function(){return o},m:function(){return c}});var n=t(24246),i=t(62051),l=t(32885);let{Text:a,Title:r}=i.AntTypography,o=()=>{let{isOpen:e,onOpen:s,onClose:t}=(0,i.qY0)();return{isOpen:e,onOpen:s,onClose:t}},c=e=>{let{isOpen:s,onClose:t,fidesKey:o}=e,{data:c,isLoading:d}=(0,l.ho)(o),u=(e,s)=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r,{level:5,children:e}),(null==s?void 0:s.length)?(0,n.jsx)("div",{children:(0,n.jsx)(i.vyj,{size:[0,2],wrap:!0,children:null==s?void 0:s.map(e=>(0,n.jsx)(i.j8w,{children:e},e))})}):(0,n.jsxs)(a,{italic:!0,children:["no known ",e.toLowerCase()]})]});return(0,n.jsxs)(i.u_l,{isOpen:s,onClose:t,size:"xxl",returnFocusOnClose:!1,isCentered:!0,children:[(0,n.jsx)(i.ZAr,{}),(0,n.jsxs)(i.hzk,{maxWidth:"800px",children:[(0,n.jsx)(i.xBx,{children:c?null==c?void 0:c.name:"Vendor"}),(0,n.jsx)(i.fef,{children:d?(0,n.jsx)(i.jqI,{className:"h-80 w-full",align:"center",justify:"center",children:(0,n.jsx)(i.$jN,{})}):!!c&&(0,n.jsxs)(i.AntTypography,{children:[(0,n.jsx)(r,{level:5,children:"Purposes"}),Object.entries(c.purposes||{}).length>0?(0,n.jsx)(i.UQy,{allowMultiple:!0,children:Object.entries(c.purposes).map((e,s)=>{let[t]=e;return(0,n.jsx)(i.Qdk,{children:e=>{let{isExpanded:s}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(i.KFZ,{backgroundColor:s?"gray.50":"unset",children:[(0,n.jsx)(i.xuv,{flex:"1",textAlign:"left",children:t}),(0,n.jsx)(i.XEm,{})]}),(0,n.jsxs)(i.Hk3,{backgroundColor:"gray.50",children:[(0,n.jsx)(i.jqI,{className:"my-4",vertical:!0,children:u("Data uses",c.purposes[t].data_uses)}),(0,n.jsx)(i.jqI,{className:"my-4",vertical:!0,children:u("Legal basis",c.purposes[t].legal_bases)})]})]})}},s)})}):(0,n.jsx)(a,{italic:!0,children:"no known purposes"}),(0,n.jsx)("div",{className:"my-4",children:u("Features",c.features)}),(0,n.jsx)("div",{className:"my-4",children:u("Data categories",c.data_categories)})]})}),(0,n.jsxs)(i.mzw,{children:[(0,n.jsx)(i.wpx,{size:"small",onClick:t,children:"Close"}),(0,n.jsx)(i.LZC,{})]})]})]})}},47672:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return N}});var n=t(24246),i=t(62051),l=t(27378),a=t(77213),r=t(58754),o=t(92222),c=t(59003),d=t(25980),u=t(14481),p=t(86677);let x=(e,s)=>{let t=e.filter(e=>e.isChecked);return t.length>0?"".concat(s,"=").concat(t.map(e=>e.value).join("&".concat(s,"="))):void 0},h=e=>{let{value:s,displayText:t,isChecked:l,onCheckboxChange:a}=e;return(0,n.jsx)(i.XZJ,{value:s,height:"20px",mb:"25px",isChecked:l,onChange:e=>{let{target:t}=e;a(s,t.checked)},_focusWithin:{bg:"gray.100"},colorScheme:"complimentary",children:(0,n.jsx)(i.xvT,{fontSize:"sm",lineHeight:5,textOverflow:"ellipsis",overflow:"hidden",children:t})},s)},g=e=>{let{options:s,header:t,onCheckboxChange:a,columns:r=3,numDefaultOptions:o=15}=e,[c,d]=(0,l.useState)(!1),u=c?s:s.slice(0,o),p=s.length>o;return(0,n.jsxs)(i.Qdk,{border:"0px",padding:"12px 8px 8px 12px",children:[(0,n.jsx)(i.X6q,{height:"56px",children:(0,n.jsxs)(i.KFZ,{height:"100%",children:[(0,n.jsx)(i.xuv,{flex:"1",alignItems:"center",justifyContent:"center",textAlign:"left",fontWeight:600,children:t}),(0,n.jsx)(i.XEm,{})]})}),(0,n.jsxs)(i.Hk3,{id:"panel-".concat(t),children:[(0,n.jsx)(i.MIq,{columns:r,children:u.map(e=>(0,n.jsx)(h,{...e,onCheckboxChange:a},e.value))}),!c&&p?(0,n.jsx)(i.wpx,{type:"text",onClick:()=>{d(!0)},children:"View more"}):null,c&&p?(0,n.jsx)(i.wpx,{type:"text",onClick:()=>{d(!1)},children:"View less"}):null]})]})},j=e=>{let{heading:s,children:t}=e;return(0,n.jsxs)(i.xuv,{padding:"12px 8px 8px 12px",maxHeight:600,children:[s?(0,n.jsx)(i.X6q,{size:"md",lineHeight:6,fontWeight:"bold",mb:2,children:s}):null,t]})},m=e=>{let{resetFilters:s,isOpen:t,onClose:l,children:a,...r}=e;return(0,n.jsxs)(i.u_l,{isOpen:t,onClose:l,isCentered:!0,size:"2xl",...r,children:[(0,n.jsx)(i.ZAr,{}),(0,n.jsxs)(i.hzk,{children:[(0,n.jsx)(i.xBx,{children:"Filters"}),(0,n.jsx)(i.olH,{}),(0,n.jsx)(i.izJ,{}),(0,n.jsx)(i.fef,{maxH:"85vh",padding:"0px",overflowX:"auto",style:{scrollbarGutter:"stable"},children:a}),(0,n.jsx)(i.mzw,{children:(0,n.jsxs)(i.xuv,{display:"flex",justifyContent:"space-between",width:"100%",children:[(0,n.jsx)(i.wpx,{onClick:s,className:"mr-3 grow",children:"Reset filters"}),(0,n.jsx)(i.wpx,{type:"primary",onClick:l,className:"grow",children:"Done"})]})})]})]})};var f=t(77830),C=t(23923),v=t(16134),y=t(6675),b=t(28079);let k=()=>{let{isOpen:e,onClose:s,onOpen:t}=(0,i.qY0)();(0,b.fd)();let n=(0,v.C)(b.U3);(0,y.a4)();let a=(0,v.C)(y.ZS),[r,o]=(0,l.useState)([]),[c,d]=(0,l.useState)([]),[u,p]=(0,l.useState)([{displayText:"Consent",value:"Consent",isChecked:!1},{displayText:"Legitimate Interest",value:"Legitimate interests",isChecked:!1}]),[x,h]=(0,l.useState)([{displayText:"Advertising",value:"advertising",isChecked:!1},{displayText:"Analytics",value:"analytics",isChecked:!1},{displayText:"Functional",value:"functional",isChecked:!1},{displayText:"Essential",value:"essential",isChecked:!1}]);(0,l.useEffect)(()=>{0===c.length&&d(n.map(e=>({value:e.fides_key,displayText:e.name||e.fides_key,isChecked:!1})))},[n,c,d]),(0,l.useEffect)(()=>{0===r.length&&o([...Object.entries(a.purposes).map(e=>({value:"normal.".concat(e[0]),displayText:e[1].name,isChecked:!1})),...Object.entries(a.special_purposes).map(e=>({value:"special.".concat(e[0]),displayText:e[1].name,isChecked:!1}))])},[a,r,d]);let g=(e,s,t,n)=>{n(t.map(t=>t.value===e?{...t,isChecked:s}:t))};return{isOpen:e,onClose:s,onOpen:t,resetFilters:()=>{d(e=>e.map(e=>({...e,isChecked:!1}))),p(e=>e.map(e=>({...e,isChecked:!1}))),o(e=>e.map(e=>({...e,isChecked:!1}))),h(e=>e.map(e=>({...e,isChecked:!1})))},purposeOptions:r,onPurposeChange:(e,s)=>{g(e,s,r,o)},dataUseOptions:c,onDataUseChange:(e,s)=>{g(e,s,c,d)},legalBasisOptions:u,onLegalBasisChange:(e,s)=>{g(e,s,u,p)},consentCategoryOptions:x,onConsentCategoryChange:(e,s)=>{g(e,s,x,h)}}},w=e=>{let{isOpen:s,isTcfEnabled:t,onClose:l,resetFilters:a,purposeOptions:r,onPurposeChange:o,dataUseOptions:c,onDataUseChange:d,legalBasisOptions:u,onLegalBasisChange:p,consentCategoryOptions:x,onConsentCategoryChange:h}=e;return(0,n.jsx)(m,{isOpen:s,onClose:l,resetFilters:a,children:(0,n.jsx)(i.UQy,{children:(0,n.jsxs)(j,{children:[t?(0,n.jsx)(g,{options:r,onCheckboxChange:o,header:"TCF purposes",columns:1,numDefaultOptions:5}):null,(0,n.jsx)(g,{options:c,onCheckboxChange:d,header:"Data uses"}),t?(0,n.jsx)(g,{options:u,onCheckboxChange:p,header:"Legal basis"}):null,t?null:(0,n.jsx)(g,{options:x,onCheckboxChange:h,header:"Consent categories"})]})})})};var _=t(48347),S=t(32885);let T=(0,o.Cl)(),O={items:[],total:0,page:1,size:25,pages:1},R=()=>{let{tcf:e,dictionaryService:s}=(0,d.hz)(),{isLoading:t}=(0,S.x8)(),{isOpen:a,onOpen:r,onClose:h}=(0,_.W)(),g=(0,p.useRouter)(),[j,m]=(0,l.useState)(),{isOpen:v,onOpen:y,onClose:b,resetFilters:R,purposeOptions:z,onPurposeChange:N,dataUseOptions:F,onDataUseChange:P,legalBasisOptions:q,onLegalBasisChange:I,consentCategoryOptions:E,onConsentCategoryChange:L}=k(),Z=(0,l.useMemo)(()=>x(F,"data_uses"),[F]),M=(0,l.useMemo)(()=>x(q,"legal_bases"),[q]),V=(0,l.useMemo)(()=>x(z.filter(e=>e.value.includes("normal")).map(e=>({...e,value:e.value.split(".")[1]})),"purposes"),[z]),A=(0,l.useMemo)(()=>x(z.filter(e=>e.value.includes("special")).map(e=>({...e,value:e.value.split(".")[1]})),"special_purposes"),[z]),B=(0,l.useMemo)(()=>x(E,"consent_category"),[E]),{PAGE_SIZES:D,pageSize:U,setPageSize:W,onPreviousPageClick:H,isPreviousPageDisabled:X,onNextPageClick:Q,isNextPageDisabled:K,startRange:G,endRange:J,pageIndex:Y,setTotalPages:$,resetPageIndexToDefault:ee}=(0,u.oi)(),[es,et]=(0,l.useState)(),en=(0,l.useCallback)(e=>{ee(),et(e)},[ee,et]),{isFetching:ei,isLoading:el,data:ea}=(0,S.de)({pageIndex:Y,pageSize:U,dataUses:Z,search:es,legalBasis:M,purposes:V,specialPurposes:A,consentCategories:B}),{items:er,total:eo,pages:ec}=(0,l.useMemo)(()=>ea||O,[ea]);(0,l.useEffect)(()=>{$(ec)},[ec,$]);let ed=(0,l.useMemo)(()=>[T.accessor(e=>e.name,{id:"name",cell:e=>(0,n.jsx)(u.G3,{value:e.getValue()}),header:e=>(0,n.jsx)(u.Rr,{value:"Vendor",...e})}),T.accessor(e=>e.data_uses,{id:"tcf_purpose",cell:e=>(0,n.jsx)(u.CI,{plSuffix:"purposes",singSuffix:"purpose",count:e.getValue()}),header:e=>(0,n.jsx)(u.Rr,{value:"TCF purpose",...e})}),T.accessor(e=>e.data_uses,{id:"data_uses",cell:e=>(0,n.jsx)(u.CI,{plSuffix:"data uses",singSuffix:"data use",count:e.getValue()}),header:e=>(0,n.jsx)(u.Rr,{value:"Data use",...e})}),T.accessor(e=>e.legal_bases,{id:"legal_bases",cell:e=>(0,n.jsx)(u.CI,{plSuffix:"bases",singSuffix:"basis",count:e.getValue()}),header:e=>(0,n.jsx)(u.Rr,{value:"Legal basis",...e})}),T.accessor(e=>e.consent_categories,{id:"consent_categories",cell:e=>(0,n.jsx)(u.CI,{plSuffix:"categories",singSuffix:"category",count:e.getValue()}),header:e=>(0,n.jsx)(u.Rr,{value:"Categories",...e})}),T.accessor(e=>e.cookies,{id:"cookies",cell:e=>(0,n.jsx)(u.CI,{plSuffix:"cookies",singSuffix:"cookie",count:e.getValue()}),header:e=>(0,n.jsx)(u.Rr,{value:"Cookies",...e})})],[]),eu=(0,c.b7)({columns:ed,data:er,state:{columnVisibility:{tcf_purpose:e,data_uses:e,legal_bases:e,consent_categories:!e,cookies:!e}},getCoreRowModel:(0,o.sC)(),columnResizeMode:"onChange",enableColumnResizing:!0});return el||t?(0,n.jsx)(u.I4,{rowHeight:36,numRows:15}):(0,n.jsxs)(i.kCb,{flex:1,direction:"column",overflow:"auto",children:[a&&j?(0,n.jsx)(_.m,{isOpen:a,fidesKey:j,onClose:h}):null,(0,n.jsxs)(u.Q$,{children:[(0,n.jsx)(u.HO,{globalFilter:es,setGlobalFilter:en,placeholder:"Search"}),(0,n.jsx)(w,{isOpen:v,isTcfEnabled:e,onClose:b,resetFilters:R,purposeOptions:z,onPurposeChange:N,dataUseOptions:F,onDataUseChange:P,legalBasisOptions:q,onLegalBasisChange:I,consentCategoryOptions:E,onConsentCategoryChange:L}),(0,n.jsxs)(i.Ugi,{alignItems:"center",spacing:2,children:[(0,n.jsx)(C.Z,{buttonLabel:"Add vendors",onButtonClick:s?()=>{g.push(f.Gg)}:void 0}),(0,n.jsx)(i.wpx,{onClick:y,"data-testid":"filter-multiple-systems-btn",children:"Filter"})]})]}),(0,n.jsx)(u.ZK,{tableInstance:eu,onRowClick:e=>{m(e.fides_key),r()}}),(0,n.jsx)(u.s8,{totalRows:eo||0,pageSizes:D,setPageSize:W,onPreviousPageClick:H,isPreviousPageDisabled:X||ei,onNextPageClick:Q,isNextPageDisabled:K||ei,startRange:G,endRange:J})]})},{Text:z}=i.AntTypography;var N=()=>(0,n.jsxs)(a.Z,{title:"Vendors",children:[(0,n.jsx)(r.Z,{heading:"Vendors",children:(0,n.jsx)(z,{className:"block w-1/2",children:"Use the table below to manage your vendors. Modify the legal basis for a vendor if permitted and view and group your views by applying different filters"})}),(0,n.jsx)(R,{})]})}},function(e){e.O(0,[8033,6060,7553,4481,401,3923,2888,9774,179],function(){return e(e.s=54727)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2357],{5123:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/privacy-experience/[id]",function(){return n(41884)}])},41884:function(e,i,n){"use strict";n.r(i);var r=n(24246),c=n(62051),s=n(86677),t=n(77213),d=n(11817),u=n(94315);i.default=()=>{let e=(0,s.useRouter)(),i="";e.query.id&&(i=Array.isArray(e.query.id)?e.query.id[0]:e.query.id);let{data:n,isLoading:a}=(0,u.Qv)(i),{data:l,isLoading:o}=(0,u.fc)(i);return a||o?(0,r.jsx)(t.Z,{title:"Privacy experience",children:(0,r.jsx)(c.kCb,{className:"size-full items-center justify-center overflow-scroll",children:(0,r.jsx)(c.M5Y,{children:(0,r.jsx)(c.$jN,{})})})}):n?(0,r.jsx)(t.Z,{title:"Privacy experience ".concat(n.component),padded:!1,children:(0,r.jsx)(d.Z,{passedInExperience:n,passedInTranslations:l})}):(0,r.jsx)(t.Z,{title:"Privacy experience",children:(0,r.jsxs)(c.xvT,{children:["No privacy experience with id ",i," found."]})})}}},function(e){e.O(0,[2858,2866,3662,3670,69,6277,1817,2888,9774,179],function(){return e(e.s=5123)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[354],{55173:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/privacy-experience",function(){return s(44061)}])},59301:function(e,t,s){"use strict";var i=s(24246);let{Link:n}=s(62051).AntTypography;t.Z=e=>(0,i.jsx)(n,{target:"_blank",rel:"noopener noreferrer",...e})},32222:function(e,t,s){"use strict";s.d(t,{J:function(){return i}});let i=new Map([["overlay","Overlay"],["privacy_center","Privacy center"],["tcf_overlay","TCF overlay"],["modal","Modal"],["banner_and_modal","Banner and modal"],["headless","Headless"]])},44061:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return V}});var i=s(24246),n=s(62051),a=s(27378),r=s(35287),o=s(92222),l=s(59003),c=s(14481),d=s(86677),p=s(77830),u=s(19904),x=s(45277),h=s(59301),y=s(812),g=s(46628),m=s(32885),j=e=>{let{isOpen:t,onClose:s,testId:r="custom-asset-modal",assetType:o}=e,l=(0,a.useRef)(null),[c,d]=(0,a.useState)(null),p=(0,n.pmc)(),{getRootProps:u,getInputProps:j,isDragActive:f}=(0,x.uI)({onDrop:e=>{var t;if("css"!==(null===(t=e[0].name.split(".").pop())||void 0===t?void 0:t.toLowerCase())){p((0,g.Vo)("Only css files are allowed."));return}d(e[0])}}),[v,{isLoading:b}]=(0,m.JQ)(),w=async()=>{if(c){let e=await v({assetType:o,file:c});if((0,y.D4)(e)){p((0,g.Vo)((0,y.e$)(e.error)));return}p((0,g.t5)("Stylesheet uploaded successfully")),s()}};return(0,i.jsxs)(n.u_l,{initialFocusRef:l,isOpen:t,onClose:s,size:"2xl",children:[(0,i.jsx)(n.ZAr,{}),(0,i.jsxs)(n.hzk,{textAlign:"left",p:2,"data-testid":r,children:[(0,i.jsx)(n.xBx,{tabIndex:-1,ref:l,children:"Upload stylesheet"}),(0,i.jsxs)(n.fef,{children:[(0,i.jsxs)(n.xvT,{fontSize:"sm",mb:4,children:["To customize the appearance of your consent experiences, you may upload a CSS stylesheet. To download a template as a helpful starting point, click"," ",(0,i.jsx)(h.Z,{href:"https://raw.githubusercontent.com/ethyca/fides/main/clients/fides-js/src/components/fides.css",children:"here"}),"."," ",(0,i.jsx)(h.Z,{href:"https://fid.es/customize-styles",children:"Learn more"}),"."]}),(0,i.jsxs)(n.xuv,{...u(),bg:f?"gray.100":"gray.50",border:"2px dashed",borderColor:f?"gray.300":"gray.200",borderRadius:"md",cursor:"pointer",minHeight:"150px",display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",children:[(0,i.jsx)("input",{...j()}),c?(0,i.jsx)(n.xvT,{children:c.name}):f?(0,i.jsx)(n.xvT,{children:"Drop the file here..."}):(0,i.jsx)(n.xvT,{children:"Click or drag and drop your file here."})]})]}),(0,i.jsxs)(n.mzw,{className:"flex w-full justify-end gap-2",children:[(0,i.jsx)(n.wpx,{onClick:s,"data-testid":"cancel-btn",disabled:b,children:"Cancel"}),(0,i.jsx)(n.wpx,{type:"primary",htmlType:"submit",disabled:!c||b,onClick:w,"data-testid":"submit-btn",children:"Submit"})]})]})]})},f=e=>{let{assetType:t}=e,s=(0,n.qY0)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.wpx,{onClick:s.onOpen,children:"Upload stylesheet"}),(0,i.jsx)(j,{isOpen:s.isOpen,onClose:s.onClose,assetType:t})]})},v=s(72625),b=s(32222),w=s(94315);let C=e=>{var t;let s=null!==(t=b.J.get(e))&&void 0!==t?t:e;return(0,i.jsx)(v.G3,{value:s})},T=e=>{let{row:t,getValue:s}=e,[n]=(0,w.o3)(),[r,o]=(0,a.useState)(!1),l=async e=>{o(!0);let s=await n({id:t.original.id,disabled:!e});return o(!1),s},c=s(),{regions:d}=t.original,p=!!d&&d.length>1;return(0,i.jsx)(v.S1,{enabled:!c,onToggle:l,title:p?"Disabling multiple states":"Disabling experience",message:p?"Warning, you are about to disable this privacy experience for multiple locations. If you continue, your privacy notices will not be accessible to users in these locations.":"Warning, you are about to disable this privacy experience. If you continue, your privacy notices will not be accessible to users in this location.",loading:r})};var _=s(88340),S=s(25980),R=s(14048);let P="{privacy-center-hostname-and-path}",k='<script src="https://'.concat(P,'/fides.js"></script>'),E="<script>Fides.gtm()</script>";var z=()=>{let e=(0,n.qY0)(),t=(0,a.useRef)(null),{fidesCloud:s}=(0,S.hz)(),{data:r,isSuccess:o}=(0,m.Vh)(void 0,{skip:!s}),l=(0,a.useMemo)(()=>s&&o&&(null==r?void 0:r.privacy_center_url)?k.replace(P,r.privacy_center_url):k,[null==r?void 0:r.privacy_center_url,s,o]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.wpx,{onClick:e.onOpen,icon:(0,i.jsx)(R.TI,{}),iconPosition:"end","data-testid":"js-tag-btn",children:"Get JavaScript tag"}),(0,i.jsxs)(n.u_l,{isOpen:e.isOpen,onClose:e.onClose,isCentered:!0,size:"xl",initialFocusRef:t,children:[(0,i.jsx)(n.ZAr,{}),(0,i.jsxs)(n.hzk,{"data-testid":"copy-js-tag-modal",children:[(0,i.jsx)(n.xBx,{tabIndex:-1,ref:t,pb:0,children:"Copy JavaScript tag"}),(0,i.jsx)(n.fef,{pt:3,pb:6,children:(0,i.jsxs)(n.Kqy,{spacing:3,children:[(0,i.jsx)(n.xvT,{children:"Copy the code below and paste it onto every page of your website, as high up in the <head> as possible. Replace the bracketed component with your privacy center's hostname and path."}),(0,i.jsxs)(n.EKh,{display:"flex",justifyContent:"space-between",alignItems:"center",p:0,children:[(0,i.jsx)(n.xvT,{p:4,children:l}),(0,i.jsx)(_.Z,{copyText:l})]}),(0,i.jsx)(n.xvT,{children:"Optionally, you can enable Google Tag Manager for managing tags on your website by including the script tag below along with the Fides.js tag. Place it below the Fides.js script tag."}),(0,i.jsxs)(n.EKh,{display:"flex",justifyContent:"space-between",alignItems:"center",p:0,children:[(0,i.jsx)(n.xvT,{p:4,children:E}),(0,i.jsx)(_.Z,{copyText:E})]}),(0,i.jsxs)(n.xvT,{children:["For more information about adding a JavaScript tag to your website, please visit"," ",(0,i.jsx)(n.rUS,{color:"complimentary.500",href:"https://docs.ethyca.com/tutorials/consent-management-configuration/install-fides#install-fidesjs-script-on-your-website",isExternal:!0,children:"docs.ethyca.com"})]})]})})]})]})]})},I=s(22286),M=s(46420);let O={items:[],total:0,page:1,size:25,pages:1},D=()=>{let e=(0,d.useRouter)();return(0,i.jsxs)(n.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:[(0,i.jsxs)(n.gCW,{children:[(0,i.jsx)(n.xvT,{fontSize:"md",fontWeight:"600",children:"No privacy experiences found."}),(0,i.jsx)(n.xvT,{fontSize:"sm",children:'Click "Create new experience" to add your first privacy experience to Fides.'})]}),(0,i.jsx)(n.wpx,{onClick:()=>e.push("".concat(p.w0,"/new")),size:"small",type:"primary","data-testid":"add-privacy-experience-btn",children:"Create new experience"})]})},F=(0,o.Cl)(),N=()=>{let e=(0,d.useRouter)(),{isLoading:t}=(0,m.x8)(),s=(0,u.Tg)([M.Sh.PRIVACY_EXPERIENCE_UPDATE]),{PAGE_SIZES:r,pageSize:x,setPageSize:h,onPreviousPageClick:y,isPreviousPageDisabled:g,onNextPageClick:j,isNextPageDisabled:v,startRange:b,endRange:_,pageIndex:S,setTotalPages:R}=(0,c.oi)(),{isFetching:P,isLoading:k,data:E}=(0,w.cq)({page:S,size:x}),{items:N,total:V,pages:W}=(0,a.useMemo)(()=>E||O,[E]);(0,a.useEffect)(()=>{R(W)},[W,R]);let Z=(0,a.useMemo)(()=>[F.accessor(e=>e.name,{id:"name",cell:e=>(0,i.jsx)(c.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(c.Rr,{value:"Title",...e})}),F.accessor(e=>e.component,{id:"component",cell:e=>C(e.getValue()),header:e=>(0,i.jsx)(c.Rr,{value:"Component",...e})}),F.accessor(e=>e.regions,{id:"regions",cell:e=>(0,i.jsx)(c.WP,{suffix:"Locations",value:(0,I.JL)(e.getValue()),...e}),header:e=>(0,i.jsx)(c.Rr,{value:"Locations",...e}),meta:{showHeaderMenu:!0}}),F.accessor(e=>e.properties.map(e=>e.name),{id:"properties",cell:e=>(0,i.jsx)(c.WP,{suffix:"Properties",value:e.getValue(),...e}),header:e=>(0,i.jsx)(c.Rr,{value:"Properties",...e}),meta:{showHeaderMenu:!0}}),F.accessor(e=>e.updated_at,{id:"updated_at",cell:e=>(0,i.jsx)(c.G3,{value:new Date(e.getValue()).toDateString()}),header:e=>(0,i.jsx)(c.Rr,{value:"Last update",...e})}),s&&F.accessor(e=>e.disabled,{id:"enable",cell:T,header:e=>(0,i.jsx)(c.Rr,{value:"Enable",...e}),meta:{disableRowClick:!0}})].filter(Boolean),[s]),A=(0,l.b7)({getCoreRowModel:(0,o.sC)(),getGroupedRowModel:(0,o.qe)(),getExpandedRowModel:(0,o.rV)(),columns:Z,manualPagination:!0,data:N,state:{expanded:!0},columnResizeMode:"onChange"});return k||t?(0,i.jsx)(c.I4,{rowHeight:36,numRows:15}):(0,i.jsx)("div",{children:(0,i.jsxs)(n.kCb,{flex:1,direction:"column",overflow:"auto",children:[s&&(0,i.jsxs)(c.Q$,{children:[(0,i.jsxs)(n.Ugi,{alignItems:"center",spacing:2,children:[(0,i.jsx)(z,{}),(0,i.jsx)(u.ZP,{scopes:[M.Sh.CUSTOM_ASSET_UPDATE],children:(0,i.jsx)(f,{assetType:M.Db.CUSTOM_FIDES_CSS})})]}),(0,i.jsx)(n.wpx,{onClick:()=>e.push("".concat(p.w0,"/new")),type:"primary","data-testid":"add-privacy-experience-btn",children:"Create new experience"})]}),(0,i.jsx)(c.ZK,{tableInstance:A,onRowClick:s?t=>{let{id:i}=t;s&&e.push("".concat(p.w0,"/").concat(i))}:void 0,emptyTableNotice:(0,i.jsx)(D,{})}),(0,i.jsx)(c.s8,{totalRows:V||0,pageSizes:r,setPageSize:h,onPreviousPageClick:y,isPreviousPageDisabled:g||P,onNextPageClick:j,isNextPageDisabled:v||P,startRange:b,endRange:_})]})})};var V=()=>(0,i.jsxs)(r.Z,{title:"Privacy experiences",children:[(0,i.jsx)(n.xuv,{mb:4,"data-testid":"privacy-experience-page",children:(0,i.jsx)(n.X6q,{fontSize:"2xl",fontWeight:"semibold",mb:2,"data-testid":"header",children:"Privacy experience"})}),(0,i.jsx)(n.xvT,{fontSize:"sm",mb:8,width:{base:"100%",lg:"70%"},children:"Based on your privacy notices, Fides has created the banner and modal privacy experience configuration below. Each experience contains privacy notices and locations where the notices will be displayed. Edit each banner, modal, or privacy center to adjust the included privacy notices, locations, and text that is displayed to your users. When you’re ready to include these privacy notices on your website, copy the JavaScript using the button on this page and place it on your website."}),(0,i.jsx)(n.xuv,{children:(0,i.jsx)(N,{})})]})}},function(e){e.O(0,[8033,6060,5277,7553,4481,6853,2888,9774,179],function(){return e(e.s=55173)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4648],{12037:function(i,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/privacy-notices/[id]",function(){return t(48161)}])},48161:function(i,e,t){"use strict";t.r(e);var n=t(24246),c=t(62051),s=t(86677),r=t(77213),a=t(77830),o=t(58754),d=t(71922),u=t(34391);e.default=()=>{let i=(0,s.useRouter)(),e="";i.query.id&&(e=Array.isArray(i.query.id)?i.query.id[0]:i.query.id);let{data:t,isLoading:l}=(0,d._g)(e),{data:h}=(0,d.Wq)(e);return l?(0,n.jsx)(r.Z,{title:"Privacy notice",children:(0,n.jsx)(c.M5Y,{children:(0,n.jsx)(c.$jN,{})})}):t?(0,n.jsxs)(r.Z,{title:"Privacy notice ".concat(t.name),children:[(0,n.jsx)(o.Z,{heading:"Privacy Notices",breadcrumbItems:[{title:"All privacy Notices",href:a.IT},{title:t.name}]}),(0,n.jsxs)(c.xuv,{width:{base:"100%",lg:"70%"},"data-testid":"privacy-notice-detail-page",children:[(0,n.jsx)(c.xvT,{fontSize:"sm",mb:8,children:"Configure your privacy notice including consent mechanism, associated data uses and the locations in which this should be displayed to users."}),(0,n.jsx)(u.Z,{privacyNotice:t,availableTranslations:h})]})]}):(0,n.jsx)(r.Z,{title:"Privacy notice",children:(0,n.jsxs)(c.xvT,{children:["No privacy notice with id ",e," found."]})})}}},function(i){i.O(0,[2858,2866,3662,6659,69,6277,6954,2888,9774,179],function(){return i(i.s=12037)}),_N_E=i.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2158],{15786:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/privacy-notices/new",function(){return n(11739)}])},11739:function(e,i,n){"use strict";n.r(i);var t=n(24246),s=n(62051),c=n(77213),a=n(77830),o=n(58754),r=n(34391);i.default=()=>(0,t.jsxs)(c.Z,{title:"New privacy notice",children:[(0,t.jsx)(o.Z,{heading:"Privacy Notices",breadcrumbItems:[{title:"All privacy Notices",href:a.IT},{title:"New privacy notice"}]}),(0,t.jsxs)(s.xuv,{width:{base:"100%",lg:"70%"},children:[(0,t.jsx)(s.xvT,{fontSize:"sm",mb:8,children:"Configure your privacy notice including consent mechanism, associated data uses and the locations in which this should be displayed to users."}),(0,t.jsx)(s.xuv,{"data-testid":"new-privacy-notice-page",children:(0,t.jsx)(r.Z,{})})]})]})}},function(e){e.O(0,[2858,2866,3662,6659,69,6277,6954,2888,9774,179],function(){return e(e.s=15786)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7262],{81575:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/privacy-notices",function(){return i(13089)}])},58754:function(e,t,i){"use strict";var a=i(24246),n=i(62051),s=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:l=!0,children:r,rightContent:o,style:c,...d}=e;return(0,a.jsxs)("div",{...d,style:l?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,a.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,a.jsx)(n.lQT,{className:i||r?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,a.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,a.jsx)(s.m,{className:r?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),r]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return c}});var a=i(24246),n=i(62051),s=i(79894),l=i.n(s),r=i(27378);let{Text:o}=n.AntTypography,c=e=>{let{items:t,...i}=e,s=(0,r.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let s=i===t.length-1,r={...e},c=r.onClick&&!r.href;return("string"==typeof r.title&&(r.title=(0,a.jsx)(o,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:r.title})),c)?r.title=(0,a.jsx)(n.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,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"anticon align-text-bottom",children:r.icon}),r.title]})),r.href&&r.title&&(r.title=(0,a.jsx)(l(),{href:r.href,className:"ant-breadcrumb-link",children:r.title}),delete r.href)),r}),[t]);return(0,a.jsx)(n.zrq,{items:s,...i})}},13089:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return P}});var a=i(24246),n=i(62051),s=i(27378),l=i(35287),r=i(58754),o=i(92222),c=i(59003),d=i(14481),u=i(79894),h=i.n(u),p=i(86677),x=i(77830),g=i(8411),m=i(19904),v=i(72625),j=i(32885),f=i(22286),b=i(65063),y=i(71922),w=i(46420);let k={items:[],total:0,page:1,size:25,pages:1},C=()=>(0,a.jsxs)(n.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:[(0,a.jsxs)(n.gCW,{children:[(0,a.jsx)(n.xvT,{fontSize:"md",fontWeight:"600",children:"No privacy notices found."}),(0,a.jsx)(n.xvT,{fontSize:"sm",children:'Click "Add a privacy notice" to add your first privacy notice to Fides.'})]}),(0,a.jsx)(n.wpx,{href:"".concat(x.IT,"/new"),role:"link",size:"small",type:"primary","data-testid":"add-privacy-notice-btn",children:"Add a privacy notice +"})]}),R=(0,o.Cl)(),N=()=>{let{isLoading:e}=(0,j.x8)(),t=(0,p.useRouter)(),i=(0,m.Tg)([w.Sh.PRIVACY_NOTICE_UPDATE]),{PAGE_SIZES:l,pageSize:r,setPageSize:u,onPreviousPageClick:N,isPreviousPageDisabled:P,onNextPageClick:T,isNextPageDisabled:_,startRange:z,endRange:M,pageIndex:E,setTotalPages:I}=(0,d.oi)(),{isFetching:S,isLoading:V,data:A}=(0,y.J6)({page:E,size:r}),{items:W,total:q,pages:L}=(0,s.useMemo)(()=>A||k,[A]);(0,s.useEffect)(()=>{I(L)},[L,I]);let Z=(0,s.useMemo)(()=>[R.accessor(e=>e.name,{id:"name",cell:e=>(0,a.jsx)(d.G3,{value:e.getValue()}),header:e=>(0,a.jsx)(d.Rr,{value:"Title",...e})}),R.accessor(e=>e.consent_mechanism,{id:"consent_mechanism",cell:e=>(0,f.JA)(e.getValue()),header:e=>(0,a.jsx)(d.Rr,{value:"Mechanism",...e})}),R.accessor(e=>e.configured_regions,{id:"regions",cell:e=>{var t,i;return(0,a.jsx)(v.mb,{values:null!==(i=null===(t=e.getValue())||void 0===t?void 0:t.map(e=>{var t;return{label:null!==(t=g.Z8[e])&&void 0!==t?t:e,key:e}}))&&void 0!==i?i:[],cellProps:e})},header:e=>(0,a.jsx)(d.Rr,{value:"Locations",...e}),size:250,meta:{showHeaderMenu:!0,disableRowClick:!0}}),R.accessor(e=>e.disabled,{id:"status",cell:e=>(0,f.jN)(e),header:e=>(0,a.jsx)(d.Rr,{value:"Status",...e})}),R.accessor(e=>e.framework,{id:"framework",cell:e=>e.getValue()?(0,a.jsx)(d.A4,{value:b.Ep.get(e.getValue())}):null,header:e=>(0,a.jsx)(d.Rr,{value:"Framework",...e})}),R.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,a.jsx)(d.WP,{suffix:"Children",value:(0,f.Mq)(e.getValue()),...e}):(0,a.jsx)(d.G3,{value:"Unassigned"})},header:e=>(0,a.jsx)(d.Rr,{value:"Children",...e}),meta:{showHeaderMenu:!0}}),i&&R.accessor(e=>e.disabled,{id:"enable",cell:f.PS,header:e=>(0,a.jsx)(d.Rr,{value:"Enable",...e}),meta:{disableRowClick:!0}})].filter(Boolean),[i]),B=(0,c.b7)({getCoreRowModel:(0,o.sC)(),getGroupedRowModel:(0,o.qe)(),getExpandedRowModel:(0,o.rV)(),columns:Z,manualPagination:!0,data:W,state:{expanded:!0},columnResizeMode:"onChange"});return V||e?(0,a.jsx)(d.I4,{rowHeight:36,numRows:15}):(0,a.jsx)("div",{children:(0,a.jsxs)(n.kCb,{flex:1,direction:"column",overflow:"auto",children:[i&&(0,a.jsx)(d.Q$,{children:(0,a.jsx)(n.Ugi,{alignItems:"center",spacing:4,marginLeft:"auto",children:(0,a.jsx)(h(),{href:"".concat(x.IT,"/new"),passHref:!0,legacyBehavior:!0,children:(0,a.jsx)(n.wpx,{type:"primary","data-testid":"add-privacy-notice-btn",children:"Add a privacy notice +"})})})}),(0,a.jsx)(d.ZK,{tableInstance:B,onRowClick:i?e=>{let{id:a}=e;i&&t.push("".concat(x.IT,"/").concat(a))}:void 0,emptyTableNotice:(0,a.jsx)(C,{})}),(0,a.jsx)(d.s8,{totalRows:q||0,pageSizes:l,setPageSize:u,onPreviousPageClick:N,isPreviousPageDisabled:P||S,onNextPageClick:T,isNextPageDisabled:_||S,startRange:z,endRange:M})]})})};var P=()=>(0,a.jsxs)(l.Z,{title:"Privacy notices",children:[(0,a.jsx)(r.Z,{heading:"Privacy Notices",children:(0,a.jsx)(n.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,a.jsx)(n.xuv,{"data-testid":"privacy-notices-page",children:(0,a.jsx)(N,{})})]})}},function(e){e.O(0,[8033,6060,7553,4481,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([[1285],{63641:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/properties",function(){return i(63063)}])},63063:function(e,n,i){"use strict";i.r(n);var r=i(24246),s=i(62051),t=i(77213),o=i(58754),a=i(25783);n.default=()=>(0,r.jsxs)(t.Z,{title:"Properties",children:[(0,r.jsx)(o.Z,{heading:"Properties",children:(0,r.jsx)(s.xvT,{fontSize:"sm",width:{base:"100%",lg:"60%"},children:"Review and manage your properties below. Properties are the locations you have configured for consent management such as a website or mobile app."})}),(0,r.jsx)(a.V,{})]})}},function(e){e.O(0,[8033,6060,7553,4481,79,2888,9774,179],function(){return e(e.s=63641)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3422],{80594:function(e){e.exports=function(e,a){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==a(e[n],n,e););return e}},52033:function(e,a,n){var r=n(26194),t=n(26789)(r);e.exports=t},49819:function(e,a,n){var r=n(18911)();e.exports=r},26194:function(e,a,n){var r=n(49819),t=n(50098);e.exports=function(e,a){return e&&r(e,a,t)}},62079:function(e,a,n){var r=n(31137);e.exports=function(e){return"function"==typeof e?e:r}},26789:function(e,a,n){var r=n(80068);e.exports=function(e,a){return function(n,t){if(null==n)return n;if(!r(n))return e(n,t);for(var i=n.length,o=a?i:-1,s=Object(n);(a?o--:++o<i)&&!1!==t(s[o],o,s););return n}}},18911:function(e){e.exports=function(e){return function(a,n,r){for(var t=-1,i=Object(a),o=r(a),s=o.length;s--;){var l=o[e?s:++t];if(!1===n(i[l],l,i))break}return a}}},47003:function(e,a,n){var r=n(80594),t=n(52033),i=n(62079),o=n(19785);e.exports=function(e,a){return(o(e)?r:t)(e,i(a))}},31137:function(e){e.exports=function(e){return e}},90104:function(e,a,n){var r=n(20186),t=n(3533),i=n(2900),o=n(19785),s=n(80068),l=n(43854),_=n(56016),c=n(48519),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(o(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||c(e)||i(e)))return!e.length;var a=t(e);if("[object Map]"==a||"[object Set]"==a)return!e.size;if(_(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},15806:function(e,a,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/reporting",function(){return n(31881)}])},35287:function(e,a,n){"use strict";var r=n(24246),t=n(62051),i=n(88038),o=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)(o(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsx)(t.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...i,children:a})]})}},58754:function(e,a,n){"use strict";var r=n(24246),t=n(62051),i=n(70788);a.Z=e=>{let{heading:a,breadcrumbItems:n,isSticky:o=!0,children:s,rightContent:l,style:_,...c}=e;return(0,r.jsxs)("div",{...c,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",..._}:{paddingBottom:"24px",..._},children:[(0,r.jsxs)(t.jqI,{justify:"space-between",children:["string"==typeof a?(0,r.jsx)(t.lQT,{className:n||s?"pb-4":void 0,level:1,"data-testid":"page-heading",children:a}):a,l&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,r.jsx)(i.m,{className:s?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),s]})}},70788:function(e,a,n){"use strict";n.d(a,{m:function(){return _}});var r=n(24246),t=n(62051),i=n(79894),o=n.n(i),s=n(27378);let{Text:l}=t.AntTypography,_=e=>{let{items:a,...n}=e,i=(0,s.useMemo)(()=>null==a?void 0:a.map((e,n)=>{let i=n===a.length-1,s={...e},_=s.onClick&&!s.href;return("string"==typeof s.title&&(s.title=(0,r.jsx)(l,{style:{color:"inherit",maxWidth:i?void 0:400},ellipsis:!i,children:s.title})),_)?s.title=(0,r.jsx)(t.wpx,{type:"text",size:"small",icon:s.icon,onClick:s.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:s.title}):(s.icon&&(s.title=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:s.icon}),s.title]})),s.href&&s.title&&(s.title=(0,r.jsx)(o(),{href:s.href,className:"ant-breadcrumb-link",children:s.title}),delete s.href)),s}),[a]);return(0,r.jsx)(t.zrq,{items:i,...n})}},8411:function(e,a,n){"use strict";n.d(a,{NA:function(){return i},Z8:function(){return t}});var r=n(46420);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]}))},31881:function(e,a,n){"use strict";n.r(a),n.d(a,{default:function(){return K}});var r=n(24246),t=n(59003),i=n(92222),o=n(27693),s=n.n(o),l=n(62051),_=n(27378),c=n(35287),d=n(58754),u=n(14481),F=n(46628),p=n(78780);let h=e=>{var a;return null==e?void 0:null===(a=e.utc())||void 0===a?void 0:a.startOf("day").toISOString()},g=e=>{var a;return null==e?void 0:null===(a=e.utc())||void 0===a?void 0:a.endOf("day").toISOString()},{useLazyDownloadReportQuery:S,useGetAllHistoricalPrivacyPreferencesQuery:m,useLazyGetCurrentPrivacyPreferencesQuery:x}=p.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:h(a),created_lt:g(n),download_csv:"true"},responseHandler:"content-type"}},providesTags:["Consent Reporting Export"]}),getAllHistoricalPrivacyPreferences:e.query({query:e=>{let{page:a,size:n,startDate:r,endDate:t}=e;return{url:"historical-privacy-preferences",params:{page:a,size:n,request_timestamp_gt:h(r),request_timestamp_lt:g(t)}}},providesTags:["Consent Reporting"]})})});var C=n(90104),f=n.n(C),j=n(812),v=n(46420);let y={[v.pq.OPT_IN]:"Opt in",[v.pq.OPT_OUT]:"Opt out",[v.pq.ACKNOWLEDGE]:"Acknowledge",[v.pq.TCF]:"TCF"},b={[v.pq.OPT_IN]:"success",[v.pq.OPT_OUT]:"error",[v.pq.ACKNOWLEDGE]:"default",[v.pq.TCF]:"sandstone"},A={[v.jP.ACCEPT]:"Accept",[v.jP.BUTTON]:"Button",[v.jP.DISMISS]:"Dismiss",[v.jP.GPC]:"GPC",[v.jP.REJECT]:"Reject",[v.jP.SAVE]:"Save",[v.jP.SCRIPT]:"Script",[v.jP.INDIVIDUAL_NOTICE]:"Individual Notice",[v.jP.ACKNOWLEDGE]:"Acknowledge"},N={[v.Tz.API]:"API",[v.Tz.BANNER_AND_MODAL]:"Banner and Modal",[v.Tz.MODAL]:"Modal",[v.Tz.OVERLAY]:"Overlay",[v.Tz.PRIVACY_CENTER]:"Privacy Center",[v.Tz.TCF_OVERLAY]:"TCF Overlay"},M=(0,i.Cl)();var P=()=>(0,_.useMemo)(()=>[M.accessor(e=>e.notice_name,{id:"notice_name",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(u.G3,{value:a()})},header:e=>(0,r.jsx)(u.Rr,{value:"Privacy notice",...e}),enableSorting:!1}),M.accessor(e=>e.notice_key,{id:"notice_key",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(u.G3,{value:a()})},header:e=>(0,r.jsx)(u.Rr,{value:"Notice Key",...e}),enableSorting:!1}),M.accessor(e=>e.preference,{id:"preference",cell:e=>{let{getValue:a}=e,n=a(),t=n&&y[n]||n,i=n&&b[n]||"";return(0,r.jsx)(u.A4,{color:i,value:t})},header:e=>(0,r.jsx)(u.Rr,{value:"Preference",...e}),enableSorting:!1,size:100}),M.accessor(e=>e.privacy_notice_history_id,{id:"privacy_notice_history_id",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(u.G3,{value:a()})},header:e=>(0,r.jsx)(u.Rr,{value:"Privacy Notice History Id",...e}),enableSorting:!1})],[]),I=n(47003),T=n.n(I);let R=(0,i.Cl)();var E=()=>{let e=(0,_.useCallback)(e=>{let a=[];if(e){let{preferences:n,...r}=e;T()(r,(e,n)=>{e&&e.forEach(e=>{a.push({key:n,id:e.id,preference:e.preference})})})}return a},[]),a=(0,_.useCallback)(e=>e.filter(e=>!(e.key.startsWith("system_")||e.key.startsWith("vendor_"))),[]);return{tcfColumns:(0,_.useMemo)(()=>[R.accessor(e=>e.key,{id:"key",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(u.G3,{value:a()})},header:e=>(0,r.jsx)(u.Rr,{value:"Type",...e}),enableSorting:!1}),R.accessor(e=>e.id,{id:"id",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(u.G3,{value:a()})},header:e=>(0,r.jsx)(u.Rr,{value:"ID",...e}),enableSorting:!1}),R.accessor(e=>e.preference,{id:"preference",cell:e=>{let{getValue:a}=e,n=a(),t=n&&y[n]||n,i=n&&b[n]||"";return(0,r.jsx)(u.A4,{color:i,value:t})},header:e=>(0,r.jsx)(u.Rr,{value:"Preference",...e}),enableSorting:!1,size:100})],[]),mapTcfPreferencesToRowColumns:e,filterTcfConsentPreferences:a}},U=e=>{let{isOpen:a,onClose:n}=e,[o,s]=(0,_.useState)(!1),[c,d]=(0,_.useState)(),[F]=x(),p=(0,l.pmc)();(0,_.useEffect)(()=>{a||(d(void 0),s(!1))},[a]);let h=async e=>{s(!0);let{data:a,isError:n,error:r}=await F({search:e}),t=r&&"status"in r&&(null==r?void 0:r.status);n&&404!==t?p({status:"error",description:(0,j.e$)(r,"A problem occurred while looking up the preferences.")}):d(a||null),s(!1)},g=P(),S=(null==c?void 0:c.preferences)||[],m=!f()(S),C=(0,t.b7)({getCoreRowModel:(0,i.sC)(),data:S,columns:g,getRowId:e=>"".concat(e.privacy_notice_history_id),manualPagination:!0}),{tcfColumns:v,mapTcfPreferencesToRowColumns:y,filterTcfConsentPreferences:b}=E(),A=b(y(c)),N=!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:o})})}),(0,r.jsxs)("div",{className:"mb-4",children:[(!N||m)&&(0,r.jsx)(u.ZK,{tableInstance:C,emptyTableNotice:(0,r.jsx)(l.oj8,{description:void 0===c?"Search for an email, phone number, or device ID.":"No results found.",image:l.oj8.PRESENTED_IMAGE_SIMPLE,imageStyle:{marginBottom:15}})}),N&&(0,r.jsx)("div",{className:"mt-4",children:(0,r.jsx)(u.ZK,{tableInstance:M})})]})]})]})]})},w=()=>{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,j.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"});e.href=window.URL.createObjectURL(a),e.download="consent-reports.csv",e.click()}},isDownloadingReport:n}},k=e=>{let{isOpen:a,onClose:n,startDate:t,endDate:i}=e,{downloadReport:o,isDownloadingReport:s}=w(),_=async()=>{await o({startDate:t,endDate:i}),n()};return(0,r.jsxs)(l.u_l,{id:"consent-report-download-modal",isOpen:a,onClose:n,size:"xl",returnFocusOnClose:!1,isCentered:!0,children:[(0,r.jsx)(l.ZAr,{}),(0,r.jsxs)(l.hzk,{children:[(0,r.jsx)(l.olH,{}),(0,r.jsx)(l.xBx,{pb:2,children:"Download consent report"}),(0,r.jsxs)(l.fef,{children:[(0,r.jsx)(l.AntTypography.Paragraph,{children:"The downloaded CSV may differ from the UI in Fides, including column order and naming."}),(0,r.jsx)(l.AntTypography.Paragraph,{children:'For large datasets, file generation may take a few minutes after selecting "Download".'}),(0,r.jsx)(l.jqI,{justify:"flex-end",children:(0,r.jsx)(l.wpx,{loading:s,onClick:_,"data-testid":"download-report-btn",type:"primary",className:"mb-2",children:"Download"})})]})]})]})},G=e=>{let{isOpen:a,onClose:n,tcfPreferences:o}=e,{tcfColumns:s,mapTcfPreferencesToRowColumns:_,filterTcfConsentPreferences:c}=E(),d=c(_(o)),F=(0,t.b7)({getCoreRowModel:(0,i.sC)(),data:d||[],columns:s,getRowId:e=>"".concat(e.key,"-").concat(e.id),manualPagination:!0});return(0,r.jsxs)(l.u_l,{id:"consent-lookup-modal",isOpen:a,onClose:n,size:"4xl",returnFocusOnClose:!1,isCentered:!0,children:[(0,r.jsx)(l.ZAr,{}),(0,r.jsxs)(l.hzk,{"data-testid":"consent-tcf-detail-modal",children:[(0,r.jsx)(l.olH,{}),(0,r.jsx)(l.xBx,{pb:2,children:"TCF Consent Details"}),(0,r.jsx)(l.fef,{children:(0,r.jsx)("div",{className:"mb-4",children:(0,r.jsx)(u.ZK,{tableInstance:F,emptyTableNotice:(0,r.jsx)(l.oj8,{description:" No data found",image:l.oj8.PRESENTED_IMAGE_SIMPLE,imageStyle:{marginBottom:15}})})})})]})]})},B=n(8411),O=n(72625);let D=(0,i.Cl)();var L=e=>{let{onTcfDetailViewClick:a}=e;return(0,_.useMemo)(()=>[D.accessor(e=>e.fides_user_device_id,{id:"fides_user_device_id",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(u.G3,{value:a()})},header:e=>(0,r.jsx)(u.Rr,{value:"User device ID",...e}),enableSorting:!1}),D.accessor(e=>e.user_geography,{id:"user_geography",cell:e=>{let{getValue:a}=e,n=a(),t=n&&B.Z8[n]||n;return(0,r.jsx)(u.G3,{value:t})},header:e=>(0,r.jsx)(u.Rr,{value:"User geography",...e}),enableSorting:!1}),D.accessor(e=>e.preference,{id:"preference",cell:e=>{let{getValue:n,row:t}=e,i=n(),o=i&&y[i]||i,s=i&&b[i]||"",_="tcf"===i&&t.original.tcf_preferences;return(0,r.jsx)(l.jqI,{align:"center",children:(0,r.jsx)(u.A4,{color:s,value:o,onClick:_?()=>a(t.original.tcf_preferences):void 0})})},header:e=>(0,r.jsx)(u.Rr,{value:"Preference",...e}),enableSorting:!1,size:100}),D.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)(u.G3,{value:t})},header:e=>(0,r.jsx)(u.Rr,{value:"Privacy notice",...e}),enableSorting:!1}),D.accessor(e=>e.method,{id:"method",cell:e=>{let{getValue:a}=e,n=a(),t=n&&A[n]||n;return(0,r.jsx)(u.G3,{value:t})},header:e=>(0,r.jsx)(u.Rr,{value:"Method",...e}),enableSorting:!1,size:100}),D.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)(u.G3,{value:t})},header:e=>(0,r.jsx)(u.Rr,{value:"Request origin",...e}),enableSorting:!1,size:120}),D.accessor(e=>e.request_timestamp,{id:"request_timestamp",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(O.Cy,{time:a()})},header:e=>(0,r.jsx)(u.Rr,{value:"Request timestamp",...e}),size:120}),D.accessor(e=>e.url_recorded,{id:"url_recorded",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(u.G3,{value:a()})},header:e=>(0,r.jsx)(u.Rr,{value:"Recorded URL",...e})}),D.accessor(e=>e.external_id,{id:"external_id",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(u.G3,{value:a()})},header:e=>(0,r.jsx)(u.Rr,{value:"External ID",...e}),enableSorting:!1}),D.accessor(e=>e.email,{id:"email",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(u.G3,{value:(0,r.jsx)(l.AntTypography.Link,{href:"mailto:".concat(a()),children:a()})})},header:e=>(0,r.jsx)(u.Rr,{value:"Email",...e}),enableSorting:!1}),D.accessor(e=>e.id,{id:"id",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(u.G3,{value:a()})},header:e=>(0,r.jsx)(u.Rr,{value:"Preference ID",...e}),enableSorting:!1})],[a])},K=()=>{let e=(0,u.oi)(),a=(0,_.useMemo)(()=>s()(),[]),[n,o]=(0,_.useState)(null),[p,h]=(0,_.useState)(null),[g,S]=(0,_.useState)(!1),[x,C]=(0,_.useState)(!1),[f,j]=(0,_.useState)(!1),[v,y]=(0,_.useState)(),b=(0,l.pmc)(),{data:A,isLoading:N,isFetching:M,refetch:P}=m({page:e.pageIndex,size:e.pageSize,startDate:n,endDate:p}),{setTotalPages:I}=e,{items:T,total:R}=(0,_.useMemo)(()=>{let e=A||{items:[],total:0,pages:0};return I(e.pages),e},[A,I]),E=L({onTcfDetailViewClick:e=>{j(!0),y(e)}}),w=(0,t.b7)({getCoreRowModel:(0,i.sC)(),data:T,columns:E,getRowId:e=>"".concat(e.id),manualPagination:!0}),B=async()=>{e.resetPageIndexToDefault(),await P(),b((0,F.t5)("Consent report refreshed successfully.","Report Refreshed"))};return(0,r.jsxs)(c.Z,{title:"Consent reporting",children:[(0,r.jsx)(d.Z,{heading:"Consent reporting",rightContent:(0,r.jsx)(l.wpx,{type:"primary",onClick:B,loading:M,children:"Refresh"})}),(0,r.jsx)("div",{"data-testid":"consent-reporting",className:"overflow-auto",children:N?(0,r.jsx)("div",{className:"border p-2",children:(0,r.jsx)(u.I4,{rowHeight:26,numRows:10})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(u.Q$,{children:[(0,r.jsx)(l.gwi,{placeholder:["From","To"],maxDate:a,"data-testid":"input-date-range",onChange:e=>{o(e&&e[0]),h(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:()=>C(!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:()=>S(!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)(u.ZK,{tableInstance:w,emptyTableNotice:(0,r.jsx)(l.oj8,{description:"No results.",image:l.oj8.PRESENTED_IMAGE_SIMPLE,imageStyle:{marginBottom:15}})}),(0,r.jsx)(u.s8,{totalRows:R||0,pageSizes:u.W3,setPageSize:e.setPageSize,onPreviousPageClick:e.onPreviousPageClick,isPreviousPageDisabled:e.isPreviousPageDisabled||M,onNextPageClick:e.onNextPageClick,isNextPageDisabled:e.isNextPageDisabled||M,startRange:e.startRange,endRange:e.endRange})]})}),(0,r.jsx)(U,{isOpen:g,onClose:()=>S(!1)}),(0,r.jsx)(k,{isOpen:x,onClose:()=>C(!1),startDate:n,endDate:p}),(0,r.jsx)(G,{isOpen:f,onClose:()=>{j(!1),y(void 0)},tcfPreferences:v})]})}}},function(e){e.O(0,[8033,6060,2858,7553,4481,2888,9774,179],function(){return e(e.s=15806)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9851],{66393:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent",function(){return s(78220)}])},77213:function(e,n,s){"use strict";s.d(n,{Z:function(){return f}});var t=s(24246),i=s(62051),r=s(88038),o=s.n(r),u=s(86677);s(27378);var c=s(25980),a=s(90867),l=s(77830),d=()=>{let e=(0,u.useRouter)();return(0,t.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,t.jsxs)(i.xuv,{children:[(0,t.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,t.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,t.jsx)(i.wpx,{onClick:()=>{e.push(l.fz)},children:"Configure"})]}),(0,t.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},f=e=>{let{children:n,title:s,padded:r=!0,mainProps:l}=e,f=(0,c.hz)(),h=(0,u.useRouter)(),p="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,x=!(f.flags.privacyRequestsConfiguration&&p),{data:j}=(0,a.JE)(void 0,{skip:x}),{data:m}=(0,a.PW)(void 0,{skip:x}),v=f.flags.privacyRequestsConfiguration&&(!j||!m)&&p;return(0,t.jsxs)(i.kCb,{"data-testid":s,direction:"column",h:"100vh",children:[(0,t.jsxs)(o(),{children:[(0,t.jsxs)("title",{children:["Fides Admin UI - ",s]}),(0,t.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,t.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,t.jsxs)(i.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...l,children:[v?(0,t.jsx)(d,{}):null,n]})]})}},78220:function(e,n,s){"use strict";s.r(n);var t=s(24246),i=s(62051),r=s(86677),o=s(27378),u=s(77213),c=s(77830);n.default=()=>{let e=(0,r.useRouter)();return(0,o.useEffect)(()=>{e.push(c.IT)},[e]),(0,t.jsx)(u.Z,{title:"Consent",children:(0,t.jsx)(i.M5Y,{children:(0,t.jsx)(i.$jN,{})})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=66393)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3296],{92812:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]",function(){return n(93251)}])},93251:function(e,t,n){"use strict";n.r(t);var r=n(24246),c=n(86677),o=n(18225),s=n(77213),a=n(77830),u=n(58754),l=n(25077),i=n(94780),d=n(1315);t.default=()=>{var e,t;let{query:n}=(0,c.useRouter)(),_=n.systemId,f=n.projectUrn,m=n.resourceUrn,{data:p,isLoading:h}=(0,d.rn)(_),j=(0,c.useRouter)(),k=null!==(e=(0,i.X5)(m,"".concat(a.mX,"/").concat(_,"/projects")))&&void 0!==e?e:[];return h?(0,r.jsx)(o.Z,{}):(0,r.jsxs)(s.Z,{title:"Data catalog",children:[(0,r.jsx)(u.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:a.mX},{title:null!==(t=null==p?void 0:p.name)&&void 0!==t?t:null==p?void 0:p.fides_key,href:a.mX},...k]}),(0,r.jsx)(l.Z,{resourceUrn:m,onRowClick:e=>j.push("".concat(a.mX,"/").concat(p.fides_key,"/projects/").concat(f,"/").concat(e.urn))})]})}}},function(e){e.O(0,[8033,6060,2858,2866,9278,7553,4481,2310,1099,3119,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,[8033,6060,2858,2866,9278,7553,4481,409,6882,3855,2888,9774,179],function(){return e(e.s=92812)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7818],{50481:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/projects/[projectUrn]",function(){return n(32065)}])},94780:function(e,t,n){"use strict";n.d(t,{X5:function(){return i},pN:function(){return r},sv:function(){return s}});var o=n(24246),a=n(62051);let s=e=>e.split(".")[1],c=[(0,o.jsx)(a.PJP.S9g,{},"layers"),(0,o.jsx)(a.PJP.iA_,{},"table"),(0,o.jsx)(a.PJP.$4y,{style:{transform:"rotate(-90deg)"}},"field")],i=(e,t)=>{if(!e)return[];let n=e.split(".");if(n.length<2)return[];let i=n.splice(0,2).join("."),r=[];return n.reduce((e,o,a)=>{let s=a===n.length-1,l="".concat(e).concat(".").concat(o);return r.push({title:o,href:s?void 0:"".concat(t,"/").concat(i,"/").concat(l),icon:c[a]}),l},i),[{title:s(i),href:"".concat(t,"/").concat(i),icon:(0,o.jsx)(a.PJP.ehp,{})},...r]},r=(e,t)=>{if(!e)return[];let n=e.split(".");if(n.length<2)return[];let o=n.shift(),a=[];return n.reduce((e,o,s)=>{let i=s===n.length-1,r="".concat(e).concat(".").concat(o);return a.push({title:o,href:i?void 0:"".concat(t,"/").concat(r),icon:c[s]}),r},o),a}},32065:function(e,t,n){"use strict";n.r(t);var o=n(24246),a=n(59003),s=n(92222),c=n(62051),i=n(86677),r=n(27378),l=n(77213),u=n(77830),d=n(58754),g=n(14481),f=n(98800),p=n(81406),h=n(69172),P=n(94780),j=n(70675),m=n(1315);let x={items:[],total:0,page:1,size:50,pages:1};t.default=()=>{let{query:e,push:t}=(0,i.useRouter)(),n=e.systemId,_=e.projectUrn,[w,v]=(0,r.useState)(void 0),{data:b,isLoading:C}=(0,m.rn)(n),{PAGE_SIZES:R,pageSize:N,setPageSize:k,onPreviousPageClick:y,isPreviousPageDisabled:E,onNextPageClick:z,isNextPageDisabled:X,startRange:Z,endRange:D,pageIndex:I,setTotalPages:J}=(0,g.oi)(),{isFetching:M,isLoading:S,data:T}=(0,j.z8)({staged_resource_urn:_,page:I,size:N}),{items:A,total:O,pages:U}=(0,r.useMemo)(()=>null!=T?T:x,[T]);(0,r.useEffect)(()=>{J(U)},[U,J]);let q=(0,h.Z)({onDetailClick:e=>v(e)}),F=(0,a.b7)({getCoreRowModel:(0,s.sC)(),getGroupedRowModel:(0,s.qe)(),getExpandedRowModel:(0,s.rV)(),columns:q,manualPagination:!0,data:A,columnResizeMode:"onChange"}),G=!S&&!C&&!M;return(0,o.jsxs)(l.Z,{title:"Data catalog",children:[(0,o.jsx)(d.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:u.mX},{title:(null==b?void 0:b.name)||n,href:u.mX},{title:(0,P.sv)(_),icon:(0,o.jsx)(c.PJP.ehp,{})}]}),!G&&(0,o.jsx)(g.I4,{rowHeight:36,numRows:36}),G&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(g.ZK,{tableInstance:F,emptyTableNotice:(0,o.jsx)(p.Z,{}),onRowClick:e=>t("".concat(u.mX,"/").concat(n,"/projects/").concat(_,"/").concat(e.urn,"/"))}),(0,o.jsx)(g.s8,{totalRows:O||0,pageSizes:R,setPageSize:k,onPreviousPageClick:y,isPreviousPageDisabled:E,onNextPageClick:z,isNextPageDisabled:X,startRange:Z,endRange:D}),(0,o.jsx)(f.Z,{dataset:w,onClose:()=>v(void 0)})]})]})}}},function(e){e.O(0,[8033,6060,7553,4481,3872,2888,9774,179],function(){return e(e.s=50481)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[165],{21865:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/projects",function(){return a(98791)}])},79609:function(e,t,a){"use strict";a.d(t,{N4:function(){return n},UG:function(){return o},xw:function(){return i}});var s=a(54427);let{useGetCatalogSystemsQuery:o,useGetCatalogProjectsQuery:i,useGetCatalogDatasetsQuery:n}=a(78780).u.injectEndpoints({endpoints:e=>({getCatalogSystems:e.query({query:e=>({method:"GET",url:"/plus/data-catalog/system",params:e}),providesTags:["Catalog Systems","System"]}),getCatalogProjects:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/project",params:t}},providesTags:["Discovery Monitor Results"]}),getCatalogDatasets:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/dataset",params:t}},providesTags:["Discovery Monitor Results"]})})});(0,s.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},98791:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return S}});var s=a(24246),o=a(86677),i=a(18225),n=a(77213),r=a(77830),l=a(58754),u=a(92222),d=a(59003),c=a(62051),g=a(27378),m=a(14481),p=a(72625),f=a(89200),x=a(5945),h=a(79609),j=a(99763),y=a(28976),C=a(8151);let w={items:[],total:0,page:1,size:50,pages:1},_=()=>(0,s.jsx)(c.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,s.jsx)(c.gCW,{children:(0,s.jsx)(c.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"})})}),v=(0,u.Cl)();var R=e=>{let{systemKey:t,monitorConfigIds:a}=e,[i,n]=(0,g.useState)({}),{PAGE_SIZES:l,pageSize:c,setPageSize:R,onPreviousPageClick:b,isPreviousPageDisabled:S,onNextPageClick:P,isNextPageDisabled:E,startRange:k,endRange:D,pageIndex:N,setTotalPages:T}=(0,m.oi)(),{isFetching:M,isLoading:z,data:I}=(0,h.xw)({page:N,size:c,monitor_config_ids:a}),Z=(0,o.useRouter)(),{items:q,total:G,pages:V}=(0,g.useMemo)(()=>null!=I?I:w,[I]);(0,g.useEffect)(()=>{T(V)},[V,T]);let[W,X]=(0,g.useState)(void 0),U=(0,g.useMemo)(()=>[v.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(f.Z,{resource:e.row.original}),header:"Project"}),v.display({id:"status",cell:e=>{let{row:t}=e;return(0,s.jsx)(x.Z,{status:(0,C.u)(t.original)})},header:"Status"}),v.accessor(e=>e.monitor_config_id,{id:"monitorConfigId",cell:e=>(0,s.jsx)(m.G3,{value:e.getValue()}),header:"Detected by"}),v.accessor(e=>e.description,{id:"description",cell:e=>(0,s.jsx)(m.G3,{value:e.getValue()}),header:"Description"}),v.accessor(e=>e.updated_at,{id:"lastUpdated",cell:e=>(0,s.jsx)(p.Cy,{time:e.getValue()}),header:"Updated",meta:{cellProps:{borderRight:"none"}}}),v.display({id:"actions",cell:e=>{let{row:t}=e;return(0,s.jsx)(y.Z,{onDetailClick:()=>X(t.original)})},size:25,meta:{disableRowClick:!0}})],[]),K=(0,d.b7)({getCoreRowModel:(0,u.sC)(),getGroupedRowModel:(0,u.qe)(),getExpandedRowModel:(0,u.rV)(),manualPagination:!0,columnResizeMode:"onChange",columns:U,data:q,getRowId:e=>e.urn,onRowSelectionChange:n,state:{rowSelection:i}});return z||M?(0,s.jsx)(m.I4,{rowHeight:36,numRows:36}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(m.ZK,{tableInstance:K,emptyTableNotice:(0,s.jsx)(_,{}),onRowClick:e=>Z.push("".concat(r.mX,"/").concat(t,"/projects/").concat(e.urn))}),(0,s.jsx)(m.s8,{totalRows:G||0,pageSizes:l,setPageSize:R,onPreviousPageClick:b,isPreviousPageDisabled:S,onNextPageClick:P,isNextPageDisabled:E,startRange:k,endRange:D}),(0,s.jsx)(j.Z,{resource:W,onClose:()=>X(void 0)})]})},b=a(1315),S=()=>{var e;let{query:t}=(0,o.useRouter)(),a=t.systemId,u=t.monitor_config_ids,{data:d,isLoading:c}=(0,b.rn)(a);return c?(0,s.jsx)(i.Z,{}):(0,s.jsxs)(n.Z,{title:"Data catalog",children:[(0,s.jsx)(l.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:r.mX},{title:null!==(e=null==d?void 0:d.name)&&void 0!==e?e:null==d?void 0:d.fides_key}]}),(0,s.jsx)(R,{systemKey:a,monitorConfigIds:u})]})}}},function(e){e.O(0,[8033,6060,2858,2866,9278,7553,4481,409,6882,2888,9774,179],function(){return e(e.s=21865)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4745],{37441:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/resources/[resourceUrn]",function(){return n(51887)}])},51887:function(e,t,n){"use strict";n.r(t);var r=n(24246),s=n(86677),c=n(18225),u=n(77213),o=n(77830),a=n(58754),l=n(25077),i=n(94780),d=n(1315);t.default=()=>{var e;let{query:t}=(0,s.useRouter)(),n=t.systemId,_=t.resourceUrn,{data:f,isLoading:m}=(0,d.rn)(n),h=(0,s.useRouter)(),k=(0,i.pN)(_,"".concat(o.mX,"/").concat(n,"/resources"));return m?(0,r.jsx)(c.Z,{}):(0,r.jsxs)(u.Z,{title:"Data catalog",children:[(0,r.jsx)(a.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:o.mX},{title:null!==(e=null==f?void 0:f.name)&&void 0!==e?e:null==f?void 0:f.fides_key,href:"".concat(o.mX)},...k]}),(0,r.jsx)(l.Z,{resourceUrn:_,onRowClick:e=>h.push("".concat(o.mX,"/").concat(f.fides_key,"/resources/").concat(e.urn))})]})}}},function(e){e.O(0,[8033,6060,2858,2866,9278,7553,4481,2310,1099,3119,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,[8033,6060,2858,2866,9278,7553,4481,409,6882,3855,2888,9774,179],function(){return e(e.s=37441)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4231],{66248:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog",function(){return t(99375)}])},77213:function(e,s,t){"use strict";t.d(s,{Z:function(){return m}});var a=t(24246),i=t(62051),n=t(88038),l=t.n(n),r=t(86677);t(27378);var o=t(25980),d=t(90867),c=t(77830),u=()=>{let e=(0,r.useRouter)();return(0,a.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,a.jsxs)(i.xuv,{children:[(0,a.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,a.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,a.jsx)(i.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,a.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:s,title:t,padded:n=!0,mainProps:c}=e,m=(0,o.hz)(),p=(0,r.useRouter)(),x="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,h=!(m.flags.privacyRequestsConfiguration&&x),{data:j}=(0,d.JE)(void 0,{skip:h}),{data:v}=(0,d.PW)(void 0,{skip:h}),g=m.flags.privacyRequestsConfiguration&&(!j||!v)&&x;return(0,a.jsxs)(i.kCb,{"data-testid":t,direction:"column",h:"100vh",children:[(0,a.jsxs)(l(),{children:[(0,a.jsxs)("title",{children:["Fides Admin UI - ",t]}),(0,a.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,a.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,a.jsxs)(i.kCb,{as:"main",direction:"column",py:n?6:0,px:n?10:0,h:n?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[g?(0,a.jsx)(u,{}):null,s]})]})}},79789:function(e,s,t){"use strict";t.d(s,{Hn:function(){return r},XU:function(){return l},Z5:function(){return o},aG:function(){return u},cB:function(){return n},hX:function(){return c},vQ:function(){return d}});var a=t(24246),i=t(62051);let n=e=>{let{text:s,...t}=e;return(0,a.jsx)(i.X6q,{fontSize:"sm",mt:4,mb:1,...t,children:s})},l=e=>{let{children:s}=e;return(0,a.jsx)(i.xvT,{fontSize:"14px",mb:4,children:s})},r=e=>{let{children:s,href:t}=e;return(0,a.jsx)(i.rUS,{href:t,textDecoration:"underline",isExternal:!0,children:s})},o=e=>{let{children:s}=e;return(0,a.jsx)(i.QI$,{fontSize:"14px",mb:4,children:s})},d=e=>{let{children:s}=e;return(0,a.jsx)(i.GSI,{fontSize:"14px",mb:4,ml:6,children:s})},c=e=>{let{children:s}=e;return(0,a.jsx)(i.EKh,{display:"block",whiteSpace:"pre",p:4,mb:4,overflowX:"scroll",children:s})},u=e=>{let{data:s}=e;return(0,a.jsxs)(i.iA_,{fontSize:"14px",children:[(0,a.jsx)(i.hrZ,{children:(0,a.jsxs)(i.Tr,{children:[(0,a.jsx)(i.Th,{children:"Permission"}),(0,a.jsx)(i.Th,{children:"Description"})]})}),(0,a.jsx)(i.p3B,{children:s.map(e=>(0,a.jsxs)(i.Tr,{children:[(0,a.jsx)(i.Td,{children:(0,a.jsx)(i.Vp9,{children:e.permission})}),(0,a.jsx)(i.Td,{children:e.description})]},e.permission))})]})}},83099:function(e,s,t){"use strict";var a=t(24246),i=t(79283),n=t(34929);s.Z=e=>{let{selectedTaxonomies:s,showDisabled:t=!1,...l}=e,{getDataUseDisplayNameProps:r,getDataUses:o}=(0,n.Z)(),d=(t?o():o().filter(e=>e.active)).filter(e=>!s.includes(e.fides_key)).map(e=>{let{name:s,primaryName:t}=r(e.fides_key);return{value:e.fides_key,name:s,primaryName:t,description:e.description||""}});return(0,a.jsx)(i.l,{options:d,...l})}},97181:function(e,s,t){"use strict";t.d(s,{d:function(){return d}});var a=t(24246),i=t(62051),n=t(34090),l=t(27378),r=t(46238),o=t(40324);let d=e=>{let{name:s,label:t,labelProps:d,tooltip:c,isRequired:u,layout:m="inline",helperText:p,...x}=e,[h,j,{setValue:v}]=(0,n.U$)(s),g=!!(j.touched&&j.error),[f,y]=(0,l.useState)("");h.value||"tags"!==x.mode&&"multiple"!==x.mode||(h.value=[]),"tags"===x.mode&&"string"==typeof h.value&&(h.value=[h.value]);let b="tags"===x.mode?(e,s)=>e?e.value!==f||h.value.includes(f)?x.optionRender?x.optionRender(e,s):e.label:'Create "'.concat(f,'"'):void 0:x.optionRender||void 0,_=e=>{y(e),x.onSearch&&x.onSearch(e)},w=(e,s)=>{v(e),x.onChange&&x.onChange(e,s)};return"inline"===m?(0,a.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,a.jsxs)(i.rjZ,{templateColumns:t?"1fr 3fr":"1fr",children:[t?(0,a.jsx)(o.__,{htmlFor:x.id||s,...d,children:t}):null,(0,a.jsxs)(i.jqI,{align:"center",children:[(0,a.jsxs)(i.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,a.jsx)(i.WPr,{...h,id:x.id||s,"data-testid":"controlled-select-".concat(h.name),...x,optionRender:b,onSearch:"tags"===x.mode?_:void 0,onChange:w,value:h.value||void 0,status:g?"error":void 0}),p&&(0,a.jsx)(i.Q6r,{children:p}),(0,a.jsx)(o.Bc,{isInvalid:g,message:j.error,fieldName:h.name})]}),(0,a.jsx)(r.b,{label:c,className:g?"mt-2 self-start":void 0})]})]})}):(0,a.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,a.jsxs)(i.gCW,{alignItems:"start",children:[(0,a.jsxs)(i.jqI,{align:"center",children:[t?(0,a.jsx)(o.__,{htmlFor:x.id||s,fontSize:"xs",my:0,mr:1,...d,children:t}):null,(0,a.jsx)(r.b,{label:c})]}),(0,a.jsx)(i.WPr,{...h,id:x.id||s,"data-testid":"controlled-select-".concat(h.name),...x,optionRender:b,onSearch:"tags"===x.mode?_:void 0,onChange:w,value:h.value||void 0,status:g?"error":void 0}),p&&(0,a.jsx)(i.Q6r,{style:{marginTop:0},children:p}),(0,a.jsx)(o.Bc,{isInvalid:g,message:j.error,fieldName:h.name})]})})}},8133:function(e,s,t){"use strict";var a=t(24246),i=t(62051);s.Z=e=>{let{title:s,children:t,isOpen:n,onClose:l,showCloseButton:r=!1,modalContentProps:o,footer:d,...c}=e;return(0,a.jsxs)(i.u_l,{isOpen:n,onClose:l,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...c,children:[(0,a.jsx)(i.ZAr,{}),(0,a.jsxs)(i.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...o,children:[r&&(0,a.jsx)(i.olH,{}),(0,a.jsx)(i.xBx,{p:0,children:(0,a.jsx)(i.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,a.jsx)(i.X6q,{as:"h3",size:"sm",children:s})})}),(0,a.jsx)(i.fef,{pb:4,overflow:"auto",children:t}),d&&(0,a.jsx)(i.mzw,{children:d})]})]})}},79609:function(e,s,t){"use strict";t.d(s,{N4:function(){return l},UG:function(){return i},xw:function(){return n}});var a=t(54427);let{useGetCatalogSystemsQuery:i,useGetCatalogProjectsQuery:n,useGetCatalogDatasetsQuery:l}=t(78780).u.injectEndpoints({endpoints:e=>({getCatalogSystems:e.query({query:e=>({method:"GET",url:"/plus/data-catalog/system",params:e}),providesTags:["Catalog Systems","System"]}),getCatalogProjects:e.query({query:e=>{let{...s}=e;return{method:"GET",url:"/plus/data-catalog/project",params:s}},providesTags:["Discovery Monitor Results"]}),getCatalogDatasets:e.query({query:e=>{let{...s}=e;return{method:"GET",url:"/plus/data-catalog/dataset",params:s}},providesTags:["Discovery Monitor Results"]})})});(0,a.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},81406:function(e,s,t){"use strict";var a=t(24246),i=t(62051);s.Z=()=>(0,a.jsxs)(i.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:[(0,a.jsx)(i.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"}),(0,a.jsx)(i.xvT,{fontSize:"sm",children:"You're up to date!"})]})},3765:function(e,s,t){"use strict";var a=t(62051),i=t(812),n=t(46628),l=t(1315),r=t(31883);s.Z=e=>{let s=(0,a.pmc)(),[t]=(0,l.qQ)(),o=t=>!!e.privacy_declarations.find(e=>e.data_use===t.data_use&&e.name===t.name)&&(s((0,n.Vo)("A declaration already exists with that data use in this system. Please supply a different data use.")),!0),d=(e,t)=>{if((0,r.D4)(e)){let t=(0,i.e$)(e.error,"An unexpected error occurred while updating the system. Please try again.");s((0,n.Vo)(t));return}return s.closeAll(),s((0,n.t5)(t?"Data use deleted":"Data use saved")),e.data.privacy_declarations},c=async(s,a)=>{let i=s.map(e=>{var s;return{...e,name:null!==(s=e.name)&&void 0!==s?s:""}}),n={...e,privacy_declarations:i};return d(await t(n),a)};return{createDataUse:async t=>{if(!o(t))return s.closeAll(),c([...e.privacy_declarations,t])},updateDataUse:async(s,t)=>{if(!(t.id!==s.id&&o(t)))return c(e.privacy_declarations.map(e=>e.id===s.id?t:e))},deleteDataUse:async s=>c(e.privacy_declarations.filter(e=>e.id!==s.id),!0),deleteDeclarationByDataUse:async s=>c(e.privacy_declarations.filter(e=>e.data_use!==s),!0)}}},54748:function(e,s,t){"use strict";var a=t(27378),i=t(46420);s.Z=()=>({legalBasisOptions:(0,a.useMemo)(()=>Object.keys(i.gP).map(e=>({value:i.gP[e],label:i.gP[e]})),[])})},28325:function(e,s,t){"use strict";var a=t(27378),i=t(46420);s.Z=()=>({specialCategoryLegalBasisOptions:(0,a.useMemo)(()=>Object.keys(i.nV).map(e=>({value:i.nV[e],label:i.nV[e]})),[])})},99375:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return M}});var a=t(24246),i=t(77213),n=t(58754),l=t(92222),r=t(59003),o=t(86677),d=t(27378),c=t(77830),u=t(14481),m=t(16394),p=t(79609),x=t(81406),h=t(62051),j=t(79789),v=t(83099),g=t(34929),f=t(34090),y=t(55484),b=t(97181),_=t(40324),w=t(8133),C=t(54748),k=t(28325),R=t(34151),S=t.n(R);let q=y.Ry().shape({data_use:y.Z_().required("Data use is required")});var z=e=>{let{isOpen:s,onClose:t,onSave:i,declaration:n}=e,{getDataUses:l,getDataCategories:r,getDataSubjects:o}=(0,g.Z)(),{isOpen:d,onToggle:c}=(0,h.qY0)(),u=l().map(e=>({label:e.fides_key,value:e.fides_key})),m=r().map(e=>({label:e.fides_key,value:e.fides_key})),p=o().map(e=>({label:e.fides_key,value:e.fides_key})),{legalBasisOptions:x}=(0,C.Z)(),{specialCategoryLegalBasisOptions:j}=(0,k.Z)();return(0,a.jsx)(f.J9,{initialValues:n,enableReinitialize:!0,onSubmit:e=>{i(e),t()},validationSchema:q,children:e=>{let{dirty:i,isValid:n,values:l,resetForm:r}=e;return(0,a.jsx)(w.Z,{title:"Edit data use",isOpen:s,onClose:t,children:(0,a.jsxs)(f.l0,{children:[(0,a.jsxs)(h.jqI,{vertical:!0,className:"gap-6 py-4",children:[(0,a.jsx)(b.d,{name:"data_use",label:"Data use",options:u,layout:"stacked",isRequired:!0}),(0,a.jsx)(b.d,{name:"data_categories",label:"Data categories",options:m,mode:"multiple",layout:"stacked"}),(0,a.jsx)(b.d,{name:"data_subjects",label:"Data subjects",options:p,mode:"multiple",layout:"stacked"}),(0,a.jsx)(_.j0,{name:"name",label:"Declaration name",variant:"stacked"}),(0,a.jsxs)(h.jqI,{vertical:!0,className:"gap-6 p-4 ".concat(S().advancedSettings),children:[(0,a.jsxs)(h.jqI,{className:"cursor-pointer justify-between",onClick:c,children:[(0,a.jsx)(h.xvT,{fontSize:"xs",children:"Advanced settings"}),(0,a.jsx)(h.v4q,{className:d?"rotate-180":void 0})]}),(0,a.jsx)(h.UO1,{in:d,children:(0,a.jsxs)(h.jqI,{vertical:!0,className:"gap-4",children:[(0,a.jsx)(b.d,{name:"legal_basis_for_processing",label:"Legal basis for processing",options:x,layout:"stacked"}),(0,a.jsx)(h.UO1,{in:(null==l?void 0:l.legal_basis_for_processing)==="Legitimate interests",animateOpacity:!0,style:{overflow:"visible"},children:(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(_.j0,{name:"impact_assessment_location",label:"Impact assessment location",tooltip:"Where is the legitimate interest impact assessment stored?",variant:"stacked"})})}),(0,a.jsx)(_.w8,{name:"flexible_legal_basis_for_processing",label:"This legal basis is flexible",tooltip:"Has the vendor declared that the legal basis may be overridden?",variant:"stacked"}),(0,a.jsx)(_.j0,{name:"retention_period",label:"Retention period (days)",tooltip:"How long is personal data retained for this purpose?",variant:"stacked"}),(0,a.jsxs)(h.Kqy,{spacing:0,children:[(0,a.jsx)(_.w8,{name:"processes_special_category_data",label:"This system processes special category data",tooltip:"Is this system processing special category data as defined by GDPR Article 9?",variant:"stacked"}),(0,a.jsx)(h.UO1,{in:null==l?void 0:l.processes_special_category_data,animateOpacity:!0,style:{overflow:"visible"},children:(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(b.d,{isRequired:!0,name:"special_category_legal_basis",label:"Legal basis for processing",options:j,tooltip:"What is the legal basis under which the special category data is processed?",layout:"stacked"})})})]})]})})]})]}),(0,a.jsxs)("div",{className:"flex w-full justify-between",children:[(0,a.jsx)(h.wpx,{onClick:()=>{r(),t()},children:"Cancel"}),(0,a.jsx)(h.wpx,{type:"primary",htmlType:"submit",disabled:!i||!n,loading:!1,"data-testid":"save-btn",children:"Save"})]})]})})}})},D=t(26183),N=t(3765);let T=e=>({data_use:e,data_categories:["system"]});var I=e=>{var s,t;let{system:i}=e,[n,l]=(0,d.useState)(!1),[r,o]=(0,d.useState)(void 0),{getDataUseDisplayName:c}=(0,g.Z)(),{isOpen:u,onOpen:m,onClose:p}=(0,h.qY0)(),x=e=>{o(e),m()},{createDataUse:j,deleteDeclarationByDataUse:f,updateDataUse:y}=(0,N.Z)(i),b=null!==(t=null===(s=i.privacy_declarations)||void 0===s?void 0:s.map(e=>e.data_use))&&void 0!==t?t:[];return(0,a.jsxs)(D.Z,{children:[!n&&(0,a.jsxs)(a.Fragment,{children:[b.map((e,s)=>(0,a.jsxs)(h.j8w,{"data-testid":"data-use-".concat(e),color:"white",onClick:()=>x(i.privacy_declarations[s]),closable:!0,onClose:()=>f(e),closeButtonLabel:"Remove data use",children:[(0,a.jsx)(h.PJP.I8b,{size:10}),c(e)]},e)),(0,a.jsx)(h.j8w,{onClick:()=>l(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"}),(0,a.jsx)(z,{isOpen:u,onClose:p,onSave:e=>y(r,e),declaration:r})]}),n&&(0,a.jsx)(h.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,a.jsx)(v.Z,{onChange:e=>{j(T(e)),l(!1)},selectedTaxonomies:b,onBlur:()=>l(!1),open:!0})})]})},P=e=>{var s;let{system:t,onEdit:i,onClose:n}=e;return(0,a.jsxs)(h.dys,{isOpen:!!t,onClose:n,size:"md",children:[(0,a.jsx)(h.P1B,{}),(0,a.jsxs)(h.scA,{"data-testid":"system-details",children:[(0,a.jsx)(h.OXI,{children:(null==t?void 0:t.name)||(null==t?void 0:t.fides_key)}),(0,a.jsx)(h.cCv,{}),(0,a.jsxs)(h.Ng0,{children:[(0,a.jsx)(j.cB,{text:"Title",mt:0}),(0,a.jsx)(j.XU,{children:null!==(s=null==t?void 0:t.name)&&void 0!==s?s:null==t?void 0:t.fides_key}),(null==t?void 0:t.description)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(j.cB,{text:"Description"}),(0,a.jsx)(j.XU,{children:null==t?void 0:t.description})]}),(0,a.jsx)(j.cB,{text:"Data uses"}),(0,a.jsx)(I,{system:t})]}),(0,a.jsx)(h.zeN,{children:(0,a.jsx)(h.wpx,{onClick:i,"data-testid":"edit-system-btn",children:"Edit system"})})]})]})},Z=e=>{let{onDetailClick:s}=e;return(0,a.jsxs)(h.v2r,{children:[(0,a.jsx)(h.j2t,{as:h.wpx,size:"small",type:"text",className:"max-w-4",icon:(0,a.jsx)(h.nXP,{transform:"rotate(90deg)",ml:2}),"data-testid":"system-actions-menu"}),(0,a.jsx)(h.qyq,{children:s&&(0,a.jsx)(h.sNh,{onClick:s,"data-testid":"view-system-details",children:"View details"})})]})},E=t(70675);let B={items:[],total:0,page:1,size:50,pages:1},O=(0,l.Cl)();var U=()=>{let[e,s]=(0,d.useState)({}),t=(0,o.useRouter)(),{PAGE_SIZES:i,pageSize:n,setPageSize:h,onPreviousPageClick:j,isPreviousPageDisabled:v,onNextPageClick:g,isNextPageDisabled:f,startRange:y,endRange:b,pageIndex:_,setTotalPages:w}=(0,u.oi)(),{data:C,isLoading:k}=(0,p.UG)({page:_,size:n,show_hidden:!1}),[R]=(0,E.j3)(),{items:S,total:q,pages:z}=(0,d.useMemo)(()=>null!=C?C:B,[C]);(0,d.useEffect)(()=>{w(z)},[z,w]);let[D,N]=(0,d.useState)(void 0),T=(0,d.useMemo)(()=>S.find(e=>e.fides_key===D),[S,D]),U=async e=>{var s,a;let i=await R({connection_config_key:e.connection_configs.key,page:1,size:1}),n=!!(null==i?void 0:null===(s=i.data)||void 0===s?void 0:s.total),l=(0,m.du)(null!==(a=e.monitor_config_keys)&&void 0!==a?a:[],"monitor_config_ids"),r="".concat(c.mX,"/").concat(e.fides_key,"/").concat(n?"projects":"resources","?").concat(l);t.push(r)},M=(0,d.useMemo)(()=>[O.accessor(e=>e.name,{id:"name",cell:e=>{var s;let{getValue:t,row:i}=e;return(0,a.jsx)(u.G3,{value:t(),fontWeight:(null===(s=i.original.connection_configs)||void 0===s?void 0:s.key)?"semibold":"normal"})},header:e=>(0,a.jsx)(u.Rr,{value:"Name",...e})}),O.display({id:"data-uses",cell:e=>{let{row:s}=e;return(0,a.jsx)(I,{system:s.original})},header:e=>(0,a.jsx)(u.Rr,{value:"Data uses",...e}),meta:{disableRowClick:!0},minSize:280}),O.display({id:"actions",cell:e=>(0,a.jsx)(Z,{onDetailClick:()=>N(e.row.original.fides_key)}),maxSize:20,enableResizing:!1,meta:{cellProps:{borderLeft:"none"},disableRowClick:!0}})],[]),A=(0,r.b7)({getCoreRowModel:(0,l.sC)(),getGroupedRowModel:(0,l.qe)(),getExpandedRowModel:(0,l.rV)(),getRowId:e=>e.fides_key,manualPagination:!0,columnResizeMode:"onChange",columns:M,data:S,onRowSelectionChange:s,state:{rowSelection:e}});return k?(0,a.jsx)(u.I4,{rowHeight:36,numRows:36}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.ZK,{tableInstance:A,emptyTableNotice:(0,a.jsx)(x.Z,{}),onRowClick:U,getRowIsClickable:e=>{var s;return!!(null===(s=e.connection_configs)||void 0===s?void 0:s.key)}}),(0,a.jsx)(u.s8,{totalRows:q||0,pageSizes:i,setPageSize:h,onPreviousPageClick:j,isPreviousPageDisabled:v,onNextPageClick:g,isNextPageDisabled:f,startRange:y,endRange:b}),(0,a.jsx)(P,{system:T,onClose:()=>N(void 0),onEdit:()=>t.push({pathname:c.Dv,query:{id:D}})})]})},M=()=>(0,a.jsxs)(i.Z,{title:"Data catalog",children:[(0,a.jsx)(n.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems"}]}),(0,a.jsx)(U,{})]})},31883:function(e,s,t){"use strict";t.d(s,{Bw:function(){return a.Bw},D4:function(){return a.D4}});var a=t(19043)},34151:function(e){e.exports={advancedSettings:"EditMinimalDataUseModal_advancedSettings___i9jS"}}},function(e){e.O(0,[8033,6060,2858,2866,9278,7553,4481,409,2888,9774,179],function(){return e(e.s=66248)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4154],{58095:function(e,t,s){var n=s(8817);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},21796:function(e){e.exports=function(e,t,s){for(var n=-1,r=null==e?0:e.length;++n<r;)if(s(t,e[n]))return!0;return!1}},8817:function(e,t,s){var n=s(95372),r=s(1129),i=s(58263);e.exports=function(e,t,s){return t==t?i(e,t,s):n(e,r,s)}},1129:function(e){e.exports=function(e){return e!=e}},92198:function(e,t,s){var n=s(52485),r=s(58095),i=s(21796),a=s(65581),o=s(47111),l=s(43735);e.exports=function(e,t,s){var d=-1,c=r,u=e.length,m=!0,g=[],v=g;if(s)m=!1,c=i;else if(u>=200){var y=t?null:o(e);if(y)return l(y);m=!1,c=a,v=new n}else v=t?[]:g;e:for(;++d<u;){var h=e[d],p=t?t(h):h;if(h=s||0!==h?h:0,m&&p==p){for(var f=v.length;f--;)if(v[f]===p)continue e;t&&v.push(p),g.push(h)}else c(v,p,s)||(v!==g&&v.push(p),g.push(h))}return g}},47111:function(e,t,s){var n=s(46151),r=s(50344),i=s(43735),a=n&&1/i(new n([,-0]))[1]==1/0?function(e){return new n(e)}:r;e.exports=a},58263:function(e){e.exports=function(e,t,s){for(var n=s-1,r=e.length;++n<r;)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(52641)}])},66379:function(e,t,s){"use strict";var n=s(24246),r=s(62051),i=s(7617);t.Z=e=>{let{data:t,border:s="partial",borderWidth:a=2,...o}=e;return(0,n.jsx)(r.mQc,{colorScheme:"complimentary",...o,children:(0,n.jsx)(r.tdY,{width:"partial"===s?"max-content":void 0,borderBottomWidth:a,children:t.map(e=>(0,n.jsx)(i.q,{label:e.label,"data-testid":e.label,isDisabled:e.isDisabled,fontSize:o.fontSize},e.label))})})}},35287:function(e,t,s){"use strict";var n=s(24246),r=s(62051),i=s(88038),a=s.n(i);s(27378),t.Z=e=>{let{children:t,title:s,mainProps:i}=e;return(0,n.jsxs)(r.kCb,{"data-testid":s,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,n.jsxs)(a(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",s]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsx)(r.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...i,children:t})]})}},14047:function(e,t,s){"use strict";s.d(t,{H:function(){return i},V:function(){return n.V}});var n=s(84306),r=s(812);let i=()=>{let{errorAlert:e}=(0,n.V)();return{handleError:t=>{let s="An unexpected error occurred. Please try again.";(0,r.Ot)(t)?s=t.data.detail:(0,r.tB)(t)&&(s=t.data.detail[0].msg),e(s)}}}},84306:function(e,t,s){"use strict";s.d(t,{V:function(){return i}});var n=s(24246),r=s(62051);let i=()=>{let e=(0,r.pmc)();return{errorAlert:(t,s,i)=>{let a={...i,position:(null==i?void 0:i.position)||"top",render:e=>{let{onClose:i}=e;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[s&&(0,n.jsx)(r.CdC,{children:s}),(0,n.jsx)(r.XaZ,{children:t})]}),(0,n.jsx)(r.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,a):e(a)},successAlert:(t,s,i)=>{let a={...i,position:(null==i?void 0:i.position)||"top",render:e=>{let{onClose:i}=e;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[s&&(0,n.jsx)(r.CdC,{children:s}),(0,n.jsx)(r.XaZ,{children:t})]}),(0,n.jsx)(r.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,a):e(a)}}}},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),r=s(34090),i=s(27378),a=s(16134),o=s(38602),l=s(58452);let d=(0,i.createRef)(),c=(0,i.createRef)(),u=()=>{let e=(0,a.T)(),t=(0,a.C)(o.DB),s=(0,i.useCallback)(()=>{c.current=void 0,d.current=void 0},[]),n=(0,i.useCallback)(()=>{e((0,o.Mr)()),c.current&&(c.current(!0),s())},[e,s]),r=(0,i.useCallback)(()=>{e((0,o.Mr)()),c.current&&(c.current(!1),s())},[e,s]);return{attemptAction:(0,i.useCallback)(()=>t?(e((0,o.h7)()),d.current||(d.current=new Promise(e=>{c.current=e})),d.current):Promise.resolve(!0),[t,e]),onConfirm:n,onClose:r}},m=e=>{let{id:t,name:s}=e,{dirty:n}=(0,r.u6)(),l=(0,a.T)();return(0,i.useEffect)(()=>(l((0,o.Zu)({id:t,name:s})),()=>{l((0,o.dz)({id:t}))}),[l,t,s]),(0,i.useEffect)(()=>{l((0,o.$p)({id:t,isDirty:n}))},[n,l,t]),null},g=()=>{let{onConfirm:e,onClose:t}=u(),s=(0,a.C)(o.uv);return(0,n.jsx)(l.Z,{isOpen:s,onClose:t,onConfirm:e,isCentered:!0,title:"Unsaved Changes",message:"You have unsaved changes"})}},37059:function(e,t,s){"use strict";s.d(t,{Ak:function(){return y},EY:function(){return u},Tj:function(){return g},Ud:function(){return a},Vr:function(){return h},WJ:function(){return l},nP:function(){return c},nS:function(){return m},rs:function(){return d},sX:function(){return v},wi:function(){return o}});var n=s(78780),r=s(16394),i=s(46420);let{useGetAggregateMonitorResultsQuery:a,useGetDiscoveredSystemAggregateQuery:o,useGetDiscoveredAssetsQuery:l,useAddMonitorResultSystemsMutation:d,useIgnoreMonitorResultSystemsMutation:c,useAddMonitorResultAssetsMutation:u,useIgnoreMonitorResultAssetsMutation:m,useRestoreMonitorResultAssetsMutation:g,useUpdateAssetsSystemMutation:v,useUpdateAssetsDataUseMutation:y,useUpdateAssetsMutation:h}=n.u.injectEndpoints({endpoints:e=>({getAggregateMonitorResults:e.query({query:e=>{let{page:t=1,size:s=20,search:n}=e;return{url:"/plus/discovery-monitor/aggregate-results",params:{page:t,size:s,search:n,diff_status:"addition"}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredSystemAggregate:e.query({query:e=>{let{key:t,page:s=1,size:n=20,search:r,diff_status:i}=e;return{url:"/plus/discovery-monitor/system-aggregate-results",params:{monitor_config_id:t,page:s,size:n,search:r,diff_status:i}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredAssets:e.query({query:e=>{let{key:t,system:s,page:n=1,size:r=20,search:i,diff_status:a}=e;return{url:"/plus/discovery-monitor/".concat(t,"/results"),params:{resolved_system_id:s,page:n,size:r,search:i,diff_status:a,sort_by:"urn"}}},providesTags:()=>["Discovery Monitor Results"]}),addMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:s}=e,n=(0,r.du)(s,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(t,"/promote?").concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:s}=e,n=(0,r.du)(s,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(t,"/mute?").concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),addMonitorResultAssets:e.mutation({query:e=>{var t;let s=new URLSearchParams;return null===(t=e.urnList)||void 0===t||t.forEach(e=>s.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/promote?".concat(s)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultAssets:e.mutation({query:e=>{var t;let s=new URLSearchParams;return null===(t=e.urnList)||void 0===t||t.forEach(e=>s.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/mute?".concat(s)}},invalidatesTags:["Discovery Monitor Results"]}),restoreMonitorResultAssets:e.mutation({query:e=>{var t;let s=new URLSearchParams({status_to_set:i.LL.ADDITION});return null===(t=e.urnList)||void 0===t||t.forEach(e=>s.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/un-mute?".concat(s)}},invalidatesTags:["Discovery Monitor Results"]}),updateAssetsSystem:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.urnList.map(t=>({urn:t,user_assigned_system_key:e.systemKey}))}),invalidatesTags:["Discovery Monitor Results","System Assets"]}),updateAssetsDataUse:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.urnList.map(t=>({urn:t,user_assigned_data_uses:e.dataUses}))}),invalidatesTags:["Discovery Monitor Results"]}),updateAssets:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.assets}),invalidatesTags:["Discovery Monitor Results"]})})})},90057:function(e,t,s){"use strict";s.d(t,{T:function(){return d}});var n=s(86677),r=s(27378),i=s(46420);let a={ATTENTION_REQUIRED:{index:0,hash:"#attention-required"},RECENT_ACTIVITY:{index:1,hash:"#recent-activity"},IGNORED:{index:2,hash:"#ignored"}},o=e=>{let t=e.startsWith("#")?e:"#".concat(e);return Object.values(a).find(e=>e.hash===t)},l=e=>Object.values(a).find(t=>t.index===e),d=e=>{var t;return null===(t=o(e))||void 0===t?void 0:t.index};t.Z=e=>{var t;let{systemId:s,initialHash:d}=e,c=(0,n.useRouter)(),[u,m]=(0,r.useState)(d?null===(t=o(d))||void 0===t?void 0:t.index:a.ATTENTION_REQUIRED.index),g=(0,r.useCallback)(async e=>{if(m(e),c.isReady){let t=l(e);if(t){let e={...c.query};await c.replace({pathname:c.pathname,query:e,hash:t.hash},void 0,{shallow:!0})}}},[c]),v=[{label:"Attention required",params:{diff_status:[i.LL.ADDITION],system:s}},{label:"Recent activity",params:{diff_status:[i.LL.MONITORED]}},{label:"Ignored",params:{diff_status:[i.LL.MUTED],system:s}}],{diff_status:y,system:h}=v[u].params,p=y.includes(i.LL.MONITORED);return{filterTabs:v,filterTabIndex:u,onTabChange:g,activeParams:s?{diff_status:y,system:h}:{diff_status:y},actionsDisabled:p}}},78238:function(e,t,s){"use strict";s.d(t,{g:function(){return n}});let n=["essential","functional.service.improve","personalize","analytics","marketing.advertising.first_party.targeted","marketing.advertising.third_party.targeted"];t.Z=e=>n.includes(e)},96107:function(e,t,s){"use strict";s.d(t,{u:function(){return i}});var n=s(24246),r=s(26089);let i=(e,t)=>(0,n.jsxs)(n.Fragment,{children:[e," ",t&&(0,n.jsx)(r.Z,{onClick:t,children:"View"})]})},52641:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return F}});var n=s(24246),r=s(86677),i=s(27378),a=s(35287),o=s(77830),l=s(58754),d=s(59003),c=s(92222),u=s(62051),m=s(83766),g=s.n(m),v=s(66379),y=s(812),h=s(14481),p=s(46628),f=s(37059),x=s(8133),j=s(79283),_=s(34929),b=s(78238),w=e=>{let{selectedTaxonomies:t,...s}=e,{getDataUseDisplayNameProps:r,getDataUses:i}=(0,_.Z)(),a=i().filter(e=>e.active&&b.g.includes(e.fides_key)).map(e=>{let{name:t,primaryName:s}=r(e.fides_key);return{value:e.fides_key,name:t,primaryName:s,description:e.description||""}});return(0,n.jsx)(j.l,{options:a,...s})};let{Text:C}=u.AntTypography;var S=e=>{let{onSave:t,isSaving:s,onClose:r,...a}=e,[o,l]=(0,i.useState)([]),d=()=>{l([]),r()};return(0,n.jsxs)(x.Z,{title:"Add consent category",...a,onClose:d,children:[(0,n.jsxs)(u.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,n.jsx)(C,{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)(w,{mode:"tags",selectedTaxonomies:o,onSelect:(e,t)=>l([...o,t.value]),variant:"outlined"})]}),(0,n.jsxs)(u.jqI,{justify:"space-between",children:[(0,n.jsx)(u.wpx,{htmlType:"reset",onClick:d,"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(u.wpx,{htmlType:"submit",type:"primary",disabled:!o.length,loading:s,onClick:()=>{t(o),d()},"data-testid":"save-btn",children:"Save"})]})]})},k=s(90057),R=s(96107),T=s(46420),A=s(30952),I=s(29850),D=s(77685);let{Text:P}=u.AntTypography,L=e=>{let{onSave:t,isSaving:s,...r}=e,[a,o]=(0,i.useState)(),[l,d]=(0,i.useState)(!1),c=(0,i.useCallback)(e=>{e.preventDefault(),d(!0)},[]),m=()=>{d(!1)},g=()=>{o(void 0),r.onClose()};return(0,n.jsxs)(x.Z,{title:"Assign system",...r,onClose:g,children:[(0,n.jsxs)(u.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,n.jsx)(P,{children:"Assign a system to the selected assets. If no system exists, select 'Add new system' to create one."}),(0,n.jsx)(I.R,{placeholder:"Search or select...",onSelect:(e,t)=>{o(t)},onAddSystem:c,value:a})]})," ",(0,n.jsxs)(u.jqI,{justify:"space-between",children:[(0,n.jsx)(u.wpx,{htmlType:"reset",onClick:g,"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(u.wpx,{htmlType:"submit",type:"primary",disabled:!a,loading:s,onClick:()=>{t(a),g()},"data-testid":"save-btn",children:"Save"})]}),l&&(0,n.jsx)(D.i,{isOpen:!0,onClose:m,onSuccessfulSubmit:(e,t)=>{m(),o({label:t,value:e})},toastOnSuccess:!0})]})};var E=s(8411),M=s(72625);let Z=e=>{let{asset:t,onTabChange:s}=e,[i,{isLoading:a}]=(0,f.EY)(),[l,{isLoading:d}]=(0,f.nS)(),[c,{isLoading:m}]=(0,f.Tj)(),g=(0,u.pmc)(),v=(0,r.useRouter)(),h=a||d||m,{urn:x,name:j,resource_type:_,diff_status:b,system_key:w,user_assigned_system_key:C}=t,S=async()=>{let e=await i({urnList:[x]});if((0,y.D4)(e))g((0,p.Vo)((0,y.e$)(e.error)));else{var t,s;let n=(null===(s=e.data)||void 0===s?void 0:null===(t=s[0])||void 0===t?void 0:t.promoted_system_key)||C||w,r="".concat(o.So,"/configure/").concat(n,"#assets");g((0,p.t5)((0,R.u)("".concat(_,' "').concat(j,'" has been added to the system inventory.'),n?()=>v.push(r):void 0)))}},A=async()=>{let e=await l({urnList:[x]});(0,y.D4)(e)?g((0,p.Vo)((0,y.e$)(e.error))):g((0,p.t5)((0,R.u)("".concat(_,' "').concat(j,'" has been ignored and will not appear in future scans.'),()=>s((0,k.T)("#ignored")))))},I=async()=>{let e=await c({urnList:[x]});(0,y.D4)(e)?g((0,p.Vo)((0,y.e$)(e.error))):g((0,p.t5)("".concat(_,' "').concat(j,'" is no longer ignored and will appear in future scans.')))};return(0,n.jsxs)(u.vyj,{children:[b!==T.LL.MUTED&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.esZ,{title:t.system?void 0:"This asset requires a system before you can add it to the inventory.",children:(0,n.jsx)(u.wpx,{"data-testid":"add-btn",size:"small",onClick:S,disabled:!t.system||h,loading:a,children:"Add"})}),(0,n.jsx)(u.wpx,{"data-testid":"ignore-btn",size:"small",onClick:A,disabled:h,loading:d,children:"Ignore"})]}),b===T.LL.MUTED&&(0,n.jsx)(u.wpx,{"data-testid":"restore-btn",size:"small",onClick:I,disabled:h,loading:m,children:"Restore"})]})};var q=s(14047),z=s(26183),O=s(31883),N=e=>{var t;let{asset:s,readonly:r}=e,[a,o]=(0,i.useState)(!1),[l]=(0,f.Ak)(),{successAlert:d,errorAlert:c}=(0,q.V)(),{getDataUseDisplayName:m}=(0,_.Z)(),g=s.user_assigned_data_uses||s.data_uses||[],v=async e=>{let t=await l({monitorId:s.monitor_config_id,urnList:[s.urn],dataUses:[...g,e]});(0,O.D4)(t)?c((0,y.e$)(t.error)):d("Consent category added to ".concat(s.resource_type,' "').concat(s.name,'" .'),"Confirmed"),o(!1)},h=async e=>{let t=await l({monitorId:s.monitor_config_id,urnList:[s.urn],dataUses:g.filter(t=>t!==e)});(0,O.D4)(t)?c((0,y.e$)(t.error)):d("Consent category removed from ".concat(s.resource_type,' "').concat(s.name,'".'),"Confirmed")},p=(null===(t=s.user_assigned_data_uses)||void 0===t?void 0:t.length)?s.user_assigned_data_uses:s.data_uses,x=null==p?void 0:p.filter(e=>(0,b.Z)(e));return r?(0,n.jsx)(z.Z,{children:null==x?void 0:x.map(e=>(0,n.jsx)(u.j8w,{color:"white",children:m(e)},e))}):(0,n.jsxs)(z.Z,{children:[!a&&(0,n.jsxs)(n.Fragment,{children:[null==x?void 0:x.map(e=>(0,n.jsx)(u.j8w,{"data-testid":"data-use-".concat(e),color:"white",closable:!0,onClose:()=>h(e),closeButtonLabel:"Remove data use",children:m(e)},e)),(0,n.jsx)(u.j8w,{onClick:()=>o(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"})]}),a&&(0,n.jsx)(u.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,n.jsx)(w,{selectedTaxonomies:x||[],onSelect:v,onBlur:()=>o(!1),open:!0})})]})},V=s(43862),U=s(70675);let $=e=>{let{aggregateSystem:t,monitorConfigId:s,readonly:r}=e,{resource_type:a,name:o,urn:l,system:d,user_assigned_system_key:c,system_key:m}=t,[g,v]=(0,i.useState)(!1),[h,p]=(0,i.useState)(!1),[f,{isLoading:x}]=(0,U.NA)(),{successAlert:j,errorAlert:_}=(0,q.V)(),b=(0,i.useCallback)(e=>{e.preventDefault(),p(!0)},[]),w=async(e,t,n)=>{let r=await f({staged_resource_urn:l,monitor_config_id:s,user_assigned_system_key:e});(0,y.D4)(r)?_((0,y.e$)(r.error)):j(n?"".concat(t," has been added to your system inventory and the ").concat(a,' "').concat(o,'" has been assigned to that system.'):"".concat(a,' "').concat(o,'" has been assigned to ').concat(t,"."),"Confirmed"),v(!1)};return r?(0,n.jsx)("div",{style:(0,V.J9)(),children:(0,n.jsx)(u.j8w,{"data-testid":"system-badge",color:"white",children:d})}):(0,n.jsxs)(n.Fragment,{children:[!g&&(0,n.jsx)("div",{style:(0,V.J9)(),children:d?(0,n.jsxs)(u.j8w,{onClick:()=>v(!0),"data-testid":"system-badge",children:[d,(0,n.jsx)(u.PJP.I8b,{})]}):(0,n.jsx)(u.j8w,{onClick:()=>v(!0),"data-testid":"add-system-btn",addable:!0})}),!!g&&(0,n.jsx)(I.R,{variant:"borderless",className:"w-full",autoFocus:!0,defaultOpen:!0,defaultValue:c||m,onBlur:e=>{var t;(null===(t=e.relatedTarget)||void 0===t?void 0:t.getAttribute("id"))!=="add-new-system"&&v(!1)},onAddSystem:b,onSelect:(e,t)=>w(e,t.label),loading:x}),h&&(0,n.jsx)(D.i,{isOpen:!0,onClose:()=>{p(!1)},onSuccessfulSubmit:(e,t)=>w(e,t,!0)})]})},H=e=>{let{readonly:t,onTabChange:s}=e,r=(0,c.Cl)(),i=[r.accessor(e=>e.name,{id:"name",cell:e=>(0,n.jsx)(h.G3,{value:e.getValue()}),header:"Asset",size:300,meta:{headerProps:t?void 0:{paddingLeft:"0px"},cellProps:t?void 0:{padding:"0 !important"}}}),r.accessor(e=>e.resource_type,{id:"resource_type",cell:e=>(0,n.jsx)(h.G3,{value:e.getValue()}),header:"Type"}),r.accessor(e=>e.system,{id:"system",cell:e=>!!e.row.original.monitor_config_id&&(0,n.jsx)($,{aggregateSystem:e.row.original,monitorConfigId:e.row.original.monitor_config_id,readonly:t}),header:"System",size:200,meta:{noPadding:!0}}),r.display({id:"data_use",cell:e=>(0,n.jsx)(N,{asset:e.row.original,readonly:t}),header:"Categories of consent",size:400,meta:{disableRowClick:!0}}),r.accessor(e=>e.locations,{id:"locations",cell:e=>(0,n.jsx)(M.mb,{values:e.getValue().map(e=>{var t;return{label:null!==(t=E.Z8[e])&&void 0!==t?t:e,key:e}}),cellProps:e}),header:e=>(0,n.jsx)(M.Rr,{value:"Locations",...e}),size:300,meta:{showHeaderMenu:!0,disableRowClick:!0}}),r.accessor(e=>e.domain,{id:"domain",cell:e=>(0,n.jsx)(h.G3,{value:e.getValue()}),header:e=>(0,n.jsx)(M.Rr,{value:"Domain",...e})}),r.accessor(e=>e.page,{id:"page",cell:e=>(0,n.jsx)(M.tc,{values:e.getValue(),valueSuffix:"pages",cellProps:e}),header:e=>(0,n.jsx)(M.Rr,{value:"Detected on",...e}),meta:{showHeaderMenu:!0,disableRowClick:!0}})];return t?{columns:i}:{columns:[r.display({id:"select",cell:e=>{let{row:t}=e;return(0,n.jsx)(h.k,{isChecked:t.getIsSelected(),onChange:t.getToggleSelectedHandler(),dataTestId:"select-".concat(t.original.name||t.id)})},header:e=>{let{table:t}=e;return(0,n.jsx)(h.k,{isChecked:t.getIsAllPageRowsSelected(),isIndeterminate:t.getIsSomeRowsSelected(),onChange:t.getToggleAllRowsSelectedHandler(),dataTestId:"select-all-rows"})},maxSize:40,meta:{cellProps:{borderRight:"none"}}}),...i,r.display({id:"actions",cell:e=>(0,n.jsx)(Z,{asset:e.row.original,onTabChange:s}),header:"Actions",meta:{disableRowClick:!0}})]}},B=e=>{let{monitorId:t,systemId:s,onSystemName:a}=e,l=(0,r.useRouter)(),m=l.asPath.split("#")[1],[x,j]=(0,i.useState)(s),[_,b]=(0,i.useState)({}),[w,C]=(0,i.useState)(!1),[I,D]=(0,i.useState)(!1),[P,{isLoading:E}]=(0,f.EY)(),[M,{isLoading:Z}]=(0,f.nS)(),[q,{isLoading:z}]=(0,f.rs)(),[O,{isLoading:N}]=(0,f.sX)(),[V,{isLoading:U}]=(0,f.Vr)(),[$,{isLoading:B}]=(0,f.Tj)(),F=E||Z||z||N||B,J=F||s===o.Kl,{PAGE_SIZES:K,pageSize:W,setPageSize:G,onPreviousPageClick:Q,isPreviousPageDisabled:X,onNextPageClick:Y,isNextPageDisabled:ee,startRange:et,endRange:es,pageIndex:en,setTotalPages:er,resetPageIndexToDefault:ei}=(0,h.oi)(),[ea,eo]=(0,i.useState)(""),el=(0,u.pmc)(),{filterTabs:ed,filterTabIndex:ec,onTabChange:eu,activeParams:em,actionsDisabled:eg}=(0,k.Z)({systemId:s,initialHash:m});(0,i.useEffect)(()=>{ei()},[t,ea,ec,ei]);let{data:ev,isLoading:ey,isFetching:eh}=(0,f.WJ)({key:t,page:en,size:W,search:ea,...em});(0,i.useEffect)(()=>{if(ev){var e,t;let n=(null===(e=ev.items[0])||void 0===e?void 0:e.system)||x||s||"";er(null!==(t=ev.pages)&&void 0!==t?t:1),j(n),null==a||a(n)}},[ev,s,a,er,x]);let{columns:ep}=H({readonly:eg,onTabChange:eu}),ef=(0,d.b7)({getCoreRowModel:(0,c.sC)(),columns:ep,manualPagination:!0,data:(null==ev?void 0:ev.items)||[],columnResizeMode:"onChange",onRowSelectionChange:b,getRowId:e=>e.urn,state:{rowSelection:_}}),ex=ef.getSelectedRowModel().rows.map(e=>e.original.urn),ej=async()=>{var e,t,s,n,r;let i=await P({urnList:ex}),a=null!==(r=null==ev?void 0:ev.items.filter(e=>ex.includes(e.urn)))&&void 0!==r?r:[],d=(null===(e=a[0])||void 0===e?void 0:e.user_assigned_system_key)||(null===(t=a[0])||void 0===t?void 0:t.system_key),c=a.every(e=>(e.user_assigned_system_key||e.system_key)===d),u=null===(n=i.data)||void 0===n?void 0:null===(s=n[0])||void 0===s?void 0:s.promoted_system_key,m=c?null!=u?u:d:void 0;(0,y.D4)(i)?el((0,p.Vo)((0,y.e$)(i.error))):(ef.resetRowSelection(),el((0,p.t5)((0,R.u)("".concat(ex.length," assets from ").concat(x," have been added to the system inventory."),m?()=>l.push("".concat(o.So,"/configure/").concat(m,"#assets")):()=>l.push(o.So)))))},e_=async e=>{if("string"==typeof(null==e?void 0:e.value)){let s=await O({monitorId:t,urnList:ex,systemKey:e.value});(0,y.D4)(s)?el((0,p.Vo)((0,y.e$)(s.error))):el((0,p.t5)("".concat(ex.length," assets have been assigned to ").concat(e.label,"."),"Confirmed"))}C(!1)},eb=async e=>{let s=null==ev?void 0:ev.items.filter(e=>ex.includes(e.urn));if(!s)return;let n=s.map(t=>{let s=g()([...t.user_assigned_data_uses||t.data_uses||[],...e]);return{urn:t.urn,user_assigned_data_uses:s}}),r=await V({monitorId:t,assets:n});(0,y.D4)(r)?el((0,p.Vo)((0,y.e$)(r.error))):el((0,p.t5)("Consent categories added to ".concat(ex.length," assets").concat(x?" from ".concat(x):"","."),"Confirmed")),D(!1)},ew=async()=>{let e=await M({urnList:ex});(0,y.D4)(e)?el((0,p.Vo)((0,y.e$)(e.error))):(ef.resetRowSelection(),el((0,p.t5)(x===o.Kl?"".concat(ex.length," uncategorized assets have been ignored and will not appear in future scans."):"".concat(ex.length," assets from ").concat(x," have been ignored and will not appear in future scans."),"Confirmed")))},eC=async()=>{let e=await $({urnList:ex});(0,y.D4)(e)?el((0,p.Vo)((0,y.e$)(e.error))):(ef.resetRowSelection(),el((0,p.t5)("".concat(ex.length," assets have been restored and will appear in future scans."),"Confirmed")))},eS=async()=>{let e=(null==ev?void 0:ev.items.length)||0,n=await q({monitor_config_key:t,resolved_system_ids:[s]});(0,y.D4)(n)?el((0,p.Vo)((0,y.e$)(n.error))):(l.push("".concat(o.vi,"/").concat(t)),el((0,p.t5)("".concat(e," assets from ").concat(x," have been added to the system inventory."),"Confirmed")))};return t&&s?ey?(0,n.jsx)(h.I4,{rowHeight:36,numRows:36}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v.Z,{data:ed,"data-testid":"filter-tabs",index:ec,isLazy:!0,isManual:!0,onChange:e=>{eu(e),b({})}}),(0,n.jsxs)(h.Q$,{children:[(0,n.jsx)(A.f,{value:ea,onChange:eo,placeholder:"Search by asset name..."}),(0,n.jsxs)(u.kCb,{alignItems:"center",children:[!!ex.length&&(0,n.jsx)(u.xvT,{fontSize:"xs",fontWeight:"semibold",minW:16,mr:6,"data-testid":"selected-count",children:"".concat(ex.length," selected")}),(0,n.jsxs)(u.Ugi,{children:[(0,n.jsx)(u.S0p,{menu:{items:[{key:"add",label:"Add",onClick:ej},{key:"add-data-use",label:"Add consent category",onClick:()=>D(!0)},{key:"assign-system",label:"Assign system",onClick:()=>C(!0)},...em.diff_status.includes(T.LL.MUTED)?[{key:"restore",label:"Restore",onClick:eC}]:[{type:"divider"},{key:"ignore",label:"Ignore",onClick:ew}]]},trigger:["click"],children:(0,n.jsx)(u.wpx,{icon:(0,n.jsx)(u.PJP._ME,{}),iconPosition:"end",loading:F,"data-testid":"bulk-actions-menu",disabled:!ex.length||F||eg,type:"primary",children:"Actions"})}),(0,n.jsx)(u.esZ,{title:J?"These assets require a system before you can add them to the inventory.":void 0,children:(0,n.jsx)(u.wpx,{onClick:eS,disabled:J,loading:z,type:"primary",icon:(0,n.jsx)(u.PJP.MCw,{}),iconPosition:"end","data-testid":"add-all",children:"Add all"})})]})]})]}),(0,n.jsx)(h.ZK,{tableInstance:ef,emptyTableNotice:(0,n.jsx)(u.oj8,{image:u.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})}),(0,n.jsx)(h.s8,{totalRows:(null==ev?void 0:ev.total)||0,pageSizes:K,setPageSize:G,onPreviousPageClick:Q,isPreviousPageDisabled:X||eh,onNextPageClick:Y,isNextPageDisabled:ee||eh,startRange:et,endRange:es}),(0,n.jsx)(L,{isOpen:w,onClose:()=>{C(!1)},onSave:e_,isSaving:N}),(0,n.jsx)(S,{isOpen:I,onClose:()=>{D(!1)},onSave:eb,isSaving:U})]}):null};var F=()=>{let e=(0,r.useRouter)(),t=decodeURIComponent(e.query.monitorId),s=decodeURIComponent(e.query.systemId),[d,c]=(0,i.useState)(s===o.Kl?"Uncategorized assets":s);return(0,n.jsxs)(a.Z,{title:"Action center - Discovered assets",children:[(0,n.jsx)(l.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:o.vi},{title:t,href:"".concat(o.vi,"/").concat(t)},{title:s===o.Kl?"Uncategorized assets":d}]}),(0,n.jsx)(B,{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)}},function(e){e.O(0,[8033,6060,2858,2866,9278,7553,4481,409,401,1040,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],{95372:function(e){e.exports=function(e,t,a,n){for(var i=e.length,r=a+(n?1:-1);n?r--:++r<i;)if(t(e[r],r,e))return r;return -1}},74833:function(e,t,a){var n=a(56127),i=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(i,""):e}},56632:function(e,t,a){var n=a(89278),i=a(80068),r=a(50098);e.exports=function(e){return function(t,a,s){var o=Object(t);if(!i(t)){var l=n(a,3);t=r(t),a=function(e){return l(o[e],e,o)}}var d=e(t,a,s);return d>-1?o[l?t[d]:d]:void 0}}},56127:function(e){var t=/\s/;e.exports=function(e){for(var a=e.length;a--&&t.test(e.charAt(a)););return a}},66726:function(e,t,a){var n=a(11611),i=a(82846),r=a(91936),s=Math.max,o=Math.min;e.exports=function(e,t,a){var l,d,u,c,_,F,m=0,g=!1,h=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function p(t){var a=l,n=d;return l=d=void 0,m=t,c=e.apply(n,a)}function f(e){var a=e-F,n=e-m;return void 0===F||a>=t||a<0||h&&n>=u}function S(){var e,a,n,r=i();if(f(r))return y(r);_=setTimeout(S,(e=r-F,a=r-m,n=t-e,h?o(n,u-a):n))}function y(e){return(_=void 0,v&&l)?p(e):(l=d=void 0,c)}function x(){var e,a=i(),n=f(a);if(l=arguments,d=this,F=a,n){if(void 0===_)return m=e=F,_=setTimeout(S,t),g?p(e):c;if(h)return clearTimeout(_),_=setTimeout(S,t),p(F)}return void 0===_&&(_=setTimeout(S,t)),c}return t=r(t)||0,n(a)&&(g=!!a.leading,u=(h="maxWait"in a)?s(r(a.maxWait)||0,t):u,v="trailing"in a?!!a.trailing:v),x.cancel=function(){void 0!==_&&clearTimeout(_),m=0,l=F=d=_=void 0},x.flush=function(){return void 0===_?c:y(i())},x}},64925:function(e,t,a){var n=a(56632)(a(66259));e.exports=n},66259:function(e,t,a){var n=a(95372),i=a(89278),r=a(47991),s=Math.max;e.exports=function(e,t,a){var o=null==e?0:e.length;if(!o)return -1;var l=null==a?0:r(a);return l<0&&(l=s(o+l,0)),n(e,i(t,3),l)}},82846:function(e,t,a){var n=a(77400);e.exports=function(){return n.Date.now()}},94919:function(e,t,a){var n=a(91936),i=1/0;e.exports=function(e){return e?(e=n(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,a){var n=a(94919);e.exports=function(e){var t=n(e),a=t%1;return t==t?a?t-a:t:0}},91936:function(e,t,a){var n=a(74833),i=a(11611),r=a(55193),s=0/0,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,d=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(r(e))return s;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var a=l.test(e);return a||d.test(e)?u(e.slice(2),a?2:8):o.test(e)?s:+e}},86850:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/[monitorId]",function(){return a(56856)}])},7617:function(e,t,a){"use strict";a.d(t,{q:function(){return r}});var n=a(24246),i=a(62051);let r=e=>{let{label:t,isDisabled:a,...r}=e;return(0,n.jsx)(i.OK9,{"data-testid":"tab-".concat(t),_selected:{fontWeight:"600",color:"complimentary.500",borderColor:"complimentary.500"},fontSize:r.fontSize,fontWeight:"500",color:"gray.500",isDisabled:a||!1,children:t})};t.Z=e=>{let{data:t,border:a="partial",...s}=e;return(0,n.jsxs)(i.mQc,{colorScheme:"complimentary",...s,children:[(0,n.jsx)(i.tdY,{width:"partial"===a?"max-content":void 0,children:t.map(e=>(0,n.jsx)(r,{label:e.label,isDisabled:e.isDisabled,fontSize:s.fontSize},e.label))}),(0,n.jsx)(i.nPR,{children:t.map(e=>(0,n.jsx)(i.x45,{px:0,"data-testid":"tab-panel-".concat(e.label),children:e.content},e.label))})]})}},66379:function(e,t,a){"use strict";var n=a(24246),i=a(62051),r=a(7617);t.Z=e=>{let{data:t,border:a="partial",borderWidth:s=2,...o}=e;return(0,n.jsx)(i.mQc,{colorScheme:"complimentary",...o,children:(0,n.jsx)(i.tdY,{width:"partial"===a?"max-content":void 0,borderBottomWidth:s,children:t.map(e=>(0,n.jsx)(r.q,{label:e.label,"data-testid":e.label,isDisabled:e.isDisabled,fontSize:o.fontSize},e.label))})})}},30952:function(e,t,a){"use strict";a.d(t,{f:function(){return l}});var n=a(24246),i=a(66726),r=a.n(i),s=a(27378),o=a(26917);let l=e=>{let{value:t,onChange:a,placeholder:i,...l}=e,[d,u]=(0,s.useState)(t),c=r()(a,500),_=(0,s.useCallback)(e=>{u(e),c(e)},[]);return(0,n.jsx)(o.Z,{value:d,onChange:_,onClear:()=>{u(""),a("")},placeholder:i,...l})}},35287:function(e,t,a){"use strict";var n=a(24246),i=a(62051),r=a(88038),s=a.n(r);a(27378),t.Z=e=>{let{children:t,title:a,mainProps:r}=e;return(0,n.jsxs)(i.kCb,{"data-testid":a,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,n.jsxs)(s(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",a]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsx)(i.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...r,children:t})]})}},58754:function(e,t,a){"use strict";var n=a(24246),i=a(62051),r=a(70788);t.Z=e=>{let{heading:t,breadcrumbItems:a,isSticky:s=!0,children:o,rightContent:l,style:d,...u}=e;return(0,n.jsxs)("div",{...u,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,n.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(i.lQT,{className:a||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!a&&(0,n.jsx)(r.m,{className:o?"pb-4":void 0,items:a,"data-testid":"page-breadcrumb"}),o]})}},26089:function(e,t,a){"use strict";var n=a(24246),i=a(62051),r=a(99830),s=a.n(r);t.Z=e=>{let{onClick:t,children:a}=e;return(0,n.jsx)(i.wpx,{onClick:t,type:"link",role:"link",size:"small",className:s().toastLink,children:a})}},34929:function(e,t,a){"use strict";var n=a(24246),i=a(64925),r=a.n(i),s=a(27378),o=a(16134),l=a(30002),d=a(28079),u=a(57072);let c=()=>{let{isLoading:e}=(0,d.fd)(),t=(0,o.C)(d.U3),{isLoading:a}=(0,u.MO)(),n=(0,o.C)(u.qb),{isLoading:i}=(0,l.te)();return{dataUses:t,dataSubjects:(0,o.C)(l.ZL),dataCategories:n,isLoading:e||a||i}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:a,isLoading:i}=c(),o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},l=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=t(e);if(!n)return{};let i=t(o(e,a)),r=!!n.parent_key;return{name:n.name||void 0,primaryName:r&&(null==i?void 0:i.name)!==n.name&&(null==i?void 0:i.name)||void 0}},d=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:i,primaryName:r}=l(e,t,a);return i?r?(0,n.jsxs)(s.Fragment,{children:[(0,n.jsxs)("strong",{children:[r,":"]})," ",i]},e):(0,n.jsx)("strong",{children:i},e):e},u=t=>r()(e,{fides_key:t}),_=e=>r()(t,{fides_key:e}),F=e=>r()(a,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:u,getDataUseDisplayName:e=>d(e,u,1),getDataUseDisplayNameProps:e=>l(e,u,1),getDataCategories:()=>t,getDataCategoryByKey:_,getDataCategoryDisplayName:e=>d(e,_,2),getDataCategoryDisplayNameProps:e=>l(e,_,2),getDataSubjects:()=>a,getDataSubjectByKey:F,getDataSubjectDisplayName:e=>{let t=F(e);return t?t.name:e},getPrimaryKey:o,isLoading:i}}},70788:function(e,t,a){"use strict";a.d(t,{m:function(){return d}});var n=a(24246),i=a(62051),r=a(79894),s=a.n(r),o=a(27378);let{Text:l}=i.AntTypography,d=e=>{let{items:t,...a}=e,r=(0,o.useMemo)(()=>null==t?void 0:t.map((e,a)=>{let r=a===t.length-1,o={...e},d=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,n.jsx)(l,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:o.title})),d)?o.title=(0,n.jsx)(i.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,n.jsx)(s(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,n.jsx)(i.zrq,{items:r,...a})}},8411:function(e,t,a){"use strict";a.d(t,{NA:function(){return r},Z8:function(){return i}});var n=a(46420);let i={[n._F.ER]:"Eritrea",[n._F.DJ]:"Djibouti",[n._F.MR]:"Mauritania",[n._F.NA]:"Namibia",[n._F.GH]:"Ghana",[n._F.SS]:"South Sudan",[n._F.SC]:"Seychelles",[n._F.IO]:"British Indian Ocean Territory",[n._F.GQ]:"Equatorial Guinea",[n._F.AO]:"Angola",[n._F.CG]:"Republic of the Congo",[n._F.BW]:"Botswana",[n._F.BI]:"Burundi",[n._F.DZ]:"Algeria",[n._F.TD]:"Chad",[n._F.NG]:"Nigeria",[n._F.TZ]:"Tanzania",[n._F.EH]:"Western Sahara",[n._F.SN]:"Senegal",[n._F.LR]:"Liberia",[n._F.ZA]:"South Africa",[n._F.CV]:"Cape Verde",[n._F.GM]:"Gambia",[n._F.SD]:"Sudan",[n._F.KM]:"Comoros",[n._F.SZ]:"Eswatini",[n._F.UG]:"Uganda",[n._F.MG]:"Madagascar",[n._F.RW]:"Rwanda",[n._F.CD]:"DR Congo",[n._F.CM]:"Cameroon",[n._F.SH]:"Saint Helena, Ascension and Tristan da Cunha",[n._F.TG]:"Togo",[n._F.MU]:"Mauritius",[n._F.NE]:"Niger",[n._F.BJ]:"Benin",[n._F.EG]:"Egypt",[n._F.LS]:"Lesotho",[n._F.ET]:"Ethiopia",[n._F.MA]:"Morocco",[n._F.YT]:"Mayotte",[n._F.BF]:"Burkina Faso",[n._F.RE]:"R\xe9union",[n._F.ST]:"S\xe3o Tom\xe9 and Pr\xedncipe",[n._F.CF]:"Central African Republic",[n._F.MZ]:"Mozambique",[n._F.MW]:"Malawi",[n._F.ML]:"Mali",[n._F.ZM]:"Zambia",[n._F.LY]:"Libya",[n._F.GW]:"Guinea-Bissau",[n._F.SO]:"Somalia",[n._F.KE]:"Kenya",[n._F.GN]:"Guinea",[n._F.ZW]:"Zimbabwe",[n._F.TN]:"Tunisia",[n._F.SL]:"Sierra Leone",[n._F.GA]:"Gabon",[n._F.CI]:"Ivory Coast",[n._F.JO]:"Jordan",[n._F.PK]:"Pakistan",[n._F.KP]:"North Korea",[n._F.MO]:"Macau",[n._F.AM]:"Armenia",[n._F.SY]:"Syria",[n._F.TJ]:"Tajikistan",[n._F.SA]:"Saudi Arabia",[n._F.KR]:"South Korea",[n._F.NP]:"Nepal",[n._F.PH]:"Philippines",[n._F.IQ]:"Iraq",[n._F.LB]:"Lebanon",[n._F.MN]:"Mongolia",[n._F.PS]:"Palestine",[n._F.YE]:"Yemen",[n._F.JP]:"Japan",[n._F.KZ]:"Kazakhstan",[n._F.LK]:"Sri Lanka",[n._F.MM]:"Myanmar",[n._F.KG]:"Kyrgyzstan",[n._F.CN]:"China",[n._F.AF]:"Afghanistan",[n._F.OM]:"Oman",[n._F.IN]:"India",[n._F.LA]:"Laos",[n._F.UZ]:"Uzbekistan",[n._F.MV]:"Maldives",[n._F.ID]:"Indonesia",[n._F.VN]:"Vietnam",[n._F.MY]:"Malaysia",[n._F.TW]:"Taiwan",[n._F.KH]:"Cambodia",[n._F.AE]:"United Arab Emirates",[n._F.HK]:"Hong Kong",[n._F.GE]:"Georgia (Country)",[n._F.BD]:"Bangladesh",[n._F.KW]:"Kuwait",[n._F.TM]:"Turkmenistan",[n._F.QA]:"Qatar",[n._F.BH]:"Bahrain",[n._F.BN]:"Brunei",[n._F.TH]:"Thailand",[n._F.BT]:"Bhutan",[n._F.SG]:"Singapore",[n._F.IL]:"Israel",[n._F.AZ]:"Azerbaijan",[n._F.TL]:"Timor-Leste",[n._F.IR]:"Iran",[n._F.TR]:"Turkey",[n._F.MK]:"North Macedonia",[n._F.IE]:"Ireland",[n._F.DK]:"Denmark",[n._F.SK]:"Slovakia",[n._F.MD]:"Moldova",[n._F.AX]:"\xc5land Islands",[n._F.PL]:"Poland",[n._F.BA]:"Bosnia and Herzegovina",[n._F.SM]:"San Marino",[n._F.CZ]:"Czechia",[n._F.EE]:"Estonia",[n._F.XK]:"Kosovo",[n._F.FO]:"Faroe Islands",[n._F.SJ]:"Svalbard and Jan Mayen",[n._F.GG]:"Guernsey",[n._F.FR]:"France",[n._F.NL]:"Netherlands",[n._F.FI]:"Finland",[n._F.PT]:"Portugal",[n._F.DE]:"Germany",[n._F.MT]:"Malta",[n._F.JE]:"Jersey",[n._F.IS]:"Iceland",[n._F.ES]:"Spain",[n._F.GI]:"Gibraltar",[n._F.NO]:"Norway",[n._F.CY]:"Cyprus",[n._F.RS]:"Serbia",[n._F.LT]:"Lithuania",[n._F.MC]:"Monaco",[n._F.LU]:"Luxembourg",[n._F.UA]:"Ukraine",[n._F.IM]:"Isle of Man",[n._F.RO]:"Romania",[n._F.BE]:"Belgium",[n._F.SE]:"Sweden",[n._F.ME]:"Montenegro",[n._F.LV]:"Latvia",[n._F.VA]:"Vatican City",[n._F.AT]:"Austria",[n._F.AL]:"Albania",[n._F.LI]:"Liechtenstein",[n._F.GR]:"Greece",[n._F.IT]:"Italy",[n._F.AD]:"Andorra",[n._F.GB]:"United Kingdom",[n._F.RU]:"Russia",[n._F.SI]:"Slovenia",[n._F.BY]:"Belarus",[n._F.CH]:"Switzerland",[n._F.HU]:"Hungary",[n._F.BG]:"Bulgaria",[n._F.HR]:"Croatia",[n._F.TC]:"Turks and Caicos Islands",[n._F.CW]:"Cura\xe7ao",[n._F.GP]:"Guadeloupe",[n._F.UM]:"United States Minor Outlying Islands",[n._F.GT]:"Guatemala",[n._F.PM]:"Saint Pierre and Miquelon",[n._F.BQ]:"Caribbean Netherlands",[n._F.GL]:"Greenland",[n._F.SX]:"Sint Maarten",[n._F.PA]:"Panama",[n._F.AW]:"Aruba",[n._F.MQ]:"Martinique",[n._F.AG]:"Antigua and Barbuda",[n._F.BM]:"Bermuda",[n._F.CU]:"Cuba",[n._F.GD]:"Grenada",[n._F.NI]:"Nicaragua",[n._F.LC]:"Saint Lucia",[n._F.KN]:"Saint Kitts and Nevis",[n._F.DO]:"Dominican Republic",[n._F.VC]:"Saint Vincent and the Grenadines",[n._F.BZ]:"Belize",[n._F.HT]:"Haiti",[n._F.JM]:"Jamaica",[n._F.BS]:"Bahamas",[n._F.MX]:"Mexico",[n._F.MF]:"Saint Martin",[n._F.SV]:"El Salvador",[n._F.BL]:"Saint Barth\xe9lemy",[n._F.AI]:"Anguilla",[n._F.MS]:"Montserrat",[n._F.VG]:"British Virgin Islands",[n._F.BB]:"Barbados",[n._F.HN]:"Honduras",[n._F.KY]:"Cayman Islands",[n._F.DM]:"Dominica",[n._F.TT]:"Trinidad and Tobago",[n._F.CR]:"Costa Rica",[n._F.SR]:"Suriname",[n._F.CX]:"Christmas Island",[n._F.WS]:"Samoa",[n._F.PF]:"French Polynesia",[n._F.AS]:"American Samoa",[n._F.NC]:"New Caledonia",[n._F.TK]:"Tokelau",[n._F.PW]:"Palau",[n._F.KI]:"Kiribati",[n._F.VU]:"Vanuatu",[n._F.PN]:"Pitcairn Islands",[n._F.CK]:"Cook Islands",[n._F.FJ]:"Fiji",[n._F.PG]:"Papua New Guinea",[n._F.MP]:"Northern Mariana Islands",[n._F.NU]:"Niue",[n._F.TV]:"Tuvalu",[n._F.NF]:"Norfolk Island",[n._F.TO]:"Tonga",[n._F.FM]:"Micronesia",[n._F.SB]:"Solomon Islands",[n._F.NR]:"Nauru",[n._F.WF]:"Wallis and Futuna",[n._F.GU]:"Guam",[n._F.AU]:"Australia",[n._F.NZ]:"New Zealand",[n._F.MH]:"Marshall Islands",[n._F.CC]:"Cocos (Keeling) Islands",[n._F.VE]:"Venezuela",[n._F.PY]:"Paraguay",[n._F.BR]:"Brazil",[n._F.CO]:"Colombia",[n._F.PE]:"Peru",[n._F.CL]:"Chile",[n._F.UY]:"Uruguay",[n._F.AR]:"Argentina",[n._F.GY]:"Guyana",[n._F.BO]:"Bolivia",[n._F.GF]:"French Guiana",[n._F.EC]:"Ecuador",[n._F.FK]:"Falkland Islands",[n._F.US_AL]:"Alabama",[n._F.US_AK]:"Alaska",[n._F.US_AZ]:"Arizona",[n._F.US_AR]:"Arkansas",[n._F.US_CA]:"California",[n._F.US_CO]:"Colorado",[n._F.US_CT]:"Connecticut",[n._F.US_DE]:"Delaware",[n._F.US_DC]:"District of Columbia (DC)",[n._F.US_FL]:"Florida",[n._F.US_GA]:"Georgia",[n._F.US_HI]:"Hawaii",[n._F.US_ID]:"Idaho",[n._F.US_IL]:"Illinois",[n._F.US_IN]:"Indiana",[n._F.US_IA]:"Iowa",[n._F.US_KS]:"Kansas",[n._F.US_KY]:"Kentucky",[n._F.US_LA]:"Louisiana",[n._F.US_ME]:"Maine",[n._F.US_MD]:"Maryland",[n._F.US_MA]:"Massachusetts",[n._F.US_MI]:"Michigan",[n._F.US_MN]:"Minnesota",[n._F.US_MS]:"Mississippi",[n._F.US_MO]:"Missouri",[n._F.US_MT]:"Montana",[n._F.US_NE]:"Nebraska",[n._F.US_NV]:"Nevada",[n._F.US_NH]:"New Hampshire",[n._F.US_NJ]:"New Jersey",[n._F.US_NM]:"New Mexico",[n._F.US_NY]:"New York",[n._F.US_NC]:"North Carolina",[n._F.US_ND]:"North Dakota",[n._F.US_OH]:"Ohio",[n._F.US_OK]:"Oklahoma",[n._F.US_OR]:"Oregon",[n._F.US_PA]:"Pennsylvania",[n._F.US_PR]:"Puerto Rico",[n._F.US_RI]:"Rhode Island",[n._F.US_SC]:"South Carolina",[n._F.US_SD]:"South Dakota",[n._F.US_TN]:"Tennessee",[n._F.US_TX]:"Texas",[n._F.US_UT]:"Utah",[n._F.US_VA]:"Virginia",[n._F.US_VI]:"United States Virgin Islands",[n._F.US_VT]:"Vermont",[n._F.US_WA]:"Washington",[n._F.US_WV]:"West Virginia",[n._F.US_WI]:"Wisconsin",[n._F.US_WY]:"Wyoming",[n._F.CA_AB]:"Alberta",[n._F.CA_BC]:"British Columbia",[n._F.CA_MB]:"Manitoba",[n._F.CA_NB]:"New Brunswick",[n._F.CA_NL]:"Newfoundland and Labrador",[n._F.CA_NS]:"Nova Scotia",[n._F.CA_ON]:"Ontario",[n._F.CA_PE]:"Prince Edward Island",[n._F.CA_QC]:"Quebec",[n._F.CA_SK]:"Saskatchewan",[n._F.CA_NT]:"Northwest Territories",[n._F.CA_NU]:"Nunavut",[n._F.CA_YT]:"Yukon",[n._F.CA]:"Canada",[n._F.US]:"United States",[n._F.MEXICO_CENTRAL_AMERICA]:"Mexico and Central America",[n._F.CARIBBEAN]:"Caribbean",[n._F.EEA]:"European Economic Area (EEA)",[n._F.NON_EEA]:"Non European Economic Area",[n._F.GLOBAL]:"Global"},r=new Map(Object.entries(i));Object.entries(i).map(e=>({value:e[0],label:e[1]}))},37059:function(e,t,a){"use strict";a.d(t,{Ak:function(){return g},EY:function(){return c},Tj:function(){return F},Ud:function(){return s},Vr:function(){return h},WJ:function(){return l},nP:function(){return u},nS:function(){return _},rs:function(){return d},sX:function(){return m},wi:function(){return o}});var n=a(78780),i=a(16394),r=a(46420);let{useGetAggregateMonitorResultsQuery:s,useGetDiscoveredSystemAggregateQuery:o,useGetDiscoveredAssetsQuery:l,useAddMonitorResultSystemsMutation:d,useIgnoreMonitorResultSystemsMutation:u,useAddMonitorResultAssetsMutation:c,useIgnoreMonitorResultAssetsMutation:_,useRestoreMonitorResultAssetsMutation:F,useUpdateAssetsSystemMutation:m,useUpdateAssetsDataUseMutation:g,useUpdateAssetsMutation:h}=n.u.injectEndpoints({endpoints:e=>({getAggregateMonitorResults:e.query({query:e=>{let{page:t=1,size:a=20,search:n}=e;return{url:"/plus/discovery-monitor/aggregate-results",params:{page:t,size:a,search:n,diff_status:"addition"}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredSystemAggregate:e.query({query:e=>{let{key:t,page:a=1,size:n=20,search:i,diff_status:r}=e;return{url:"/plus/discovery-monitor/system-aggregate-results",params:{monitor_config_id:t,page:a,size:n,search:i,diff_status:r}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredAssets:e.query({query:e=>{let{key:t,system:a,page:n=1,size:i=20,search:r,diff_status:s}=e;return{url:"/plus/discovery-monitor/".concat(t,"/results"),params:{resolved_system_id:a,page:n,size:i,search:r,diff_status:s,sort_by:"urn"}}},providesTags:()=>["Discovery Monitor Results"]}),addMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:a}=e,n=(0,i.du)(a,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(t,"/promote?").concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:a}=e,n=(0,i.du)(a,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(t,"/mute?").concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),addMonitorResultAssets:e.mutation({query:e=>{var t;let a=new URLSearchParams;return null===(t=e.urnList)||void 0===t||t.forEach(e=>a.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/promote?".concat(a)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultAssets:e.mutation({query:e=>{var t;let a=new URLSearchParams;return null===(t=e.urnList)||void 0===t||t.forEach(e=>a.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/mute?".concat(a)}},invalidatesTags:["Discovery Monitor Results"]}),restoreMonitorResultAssets:e.mutation({query:e=>{var t;let a=new URLSearchParams({status_to_set:r.LL.ADDITION});return null===(t=e.urnList)||void 0===t||t.forEach(e=>a.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/un-mute?".concat(a)}},invalidatesTags:["Discovery Monitor Results"]}),updateAssetsSystem:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.urnList.map(t=>({urn:t,user_assigned_system_key:e.systemKey}))}),invalidatesTags:["Discovery Monitor Results","System Assets"]}),updateAssetsDataUse:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.urnList.map(t=>({urn:t,user_assigned_data_uses:e.dataUses}))}),invalidatesTags:["Discovery Monitor Results"]}),updateAssets:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.assets}),invalidatesTags:["Discovery Monitor Results"]})})})},90057:function(e,t,a){"use strict";a.d(t,{T:function(){return d}});var n=a(86677),i=a(27378),r=a(46420);let s={ATTENTION_REQUIRED:{index:0,hash:"#attention-required"},RECENT_ACTIVITY:{index:1,hash:"#recent-activity"},IGNORED:{index:2,hash:"#ignored"}},o=e=>{let t=e.startsWith("#")?e:"#".concat(e);return Object.values(s).find(e=>e.hash===t)},l=e=>Object.values(s).find(t=>t.index===e),d=e=>{var t;return null===(t=o(e))||void 0===t?void 0:t.index};t.Z=e=>{var t;let{systemId:a,initialHash:d}=e,u=(0,n.useRouter)(),[c,_]=(0,i.useState)(d?null===(t=o(d))||void 0===t?void 0:t.index:s.ATTENTION_REQUIRED.index),F=(0,i.useCallback)(async e=>{if(_(e),u.isReady){let t=l(e);if(t){let e={...u.query};await u.replace({pathname:u.pathname,query:e,hash:t.hash},void 0,{shallow:!0})}}},[u]),m=[{label:"Attention required",params:{diff_status:[r.LL.ADDITION],system:a}},{label:"Recent activity",params:{diff_status:[r.LL.MONITORED]}},{label:"Ignored",params:{diff_status:[r.LL.MUTED],system:a}}],{diff_status:g,system:h}=m[c].params,v=g.includes(r.LL.MONITORED);return{filterTabs:m,filterTabIndex:c,onTabChange:F,activeParams:a?{diff_status:g,system:h}:{diff_status:g},actionsDisabled:v}}},78238:function(e,t,a){"use strict";a.d(t,{g:function(){return n}});let n=["essential","functional.service.improve","personalize","analytics","marketing.advertising.first_party.targeted","marketing.advertising.third_party.targeted"];t.Z=e=>n.includes(e)},96107:function(e,t,a){"use strict";a.d(t,{u:function(){return r}});var n=a(24246),i=a(26089);let r=(e,t)=>(0,n.jsxs)(n.Fragment,{children:[e," ",t&&(0,n.jsx)(i.Z,{onClick:t,children:"View"})]})},56839:function(e,t,a){"use strict";a.d(t,{dK:function(){return u},Rv:function(){return F},$P:function(){return _},zj:function(){return m},Kr:function(){return g},q1:function(){return c},QL:function(){return h}});var n=a(24246),i=a(62051);let r=(0,i.IUT)({displayName:"CircleIcon",viewBox:"0 0 200 200",path:(0,n.jsx)("path",{fill:"currentColor",d:"M 100, 100 m -75, 0 a 75,75 0 1,0 150,0 a 75,75 0 1,0 -150,0"})}),s=(0,i.IUT)({displayName:"RightDownArrowIcon",viewBox:"0 0 8 8",path:(0,n.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"})}),o=(0,i.IUT)({displayName:"RightUpArrowIcon",viewBox:"0 0 8 8",path:(0,n.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=(0,i.IUT)({displayName:"TagIcon",viewBox:"0 0 9 10",path:(0,n.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 d=a(28278);let u=()=>(0,n.jsx)(o,{color:"green.400",boxSize:2,mr:2,"data-testid":"add-icon"}),c=()=>(0,n.jsx)(s,{color:"red.400",boxSize:2,mr:2,"data-testid":"remove-icon"}),_=()=>(0,n.jsx)(l,{color:"orange.400",boxSize:3,mr:1,"data-testid":"classify-icon"}),F=()=>(0,n.jsx)(r,{color:"blue.400",boxSize:2.5,mb:"2px",mr:"6px","data-testid":"change-icon"}),m=()=>(0,n.jsx)(r,{color:"green.400",boxSize:2,mr:2,"data-testid":"monitored-icon"}),g=()=>(0,n.jsx)(r,{color:"red.400",boxSize:2,mr:2,"data-testid":"muted-icon"}),h={[d.E.ADDITION]:(0,n.jsx)(u,{}),[d.E.REMOVAL]:(0,n.jsx)(c,{}),[d.E.CLASSIFICATION]:(0,n.jsx)(_,{}),[d.E.CHANGE]:(0,n.jsx)(F,{}),[d.E.MONITORED]:(0,n.jsx)(m,{}),[d.E.MUTED]:(0,n.jsx)(g,{}),[d.E.IN_PROGRESS]:(0,n.jsx)(()=>(0,n.jsx)(r,{color:"orange.400",boxSize:2,mr:2,"data-testid":"in-progress-icon"}),{}),[d.E.NONE]:null}},28278:function(e,t,a){"use strict";var n,i;a.d(t,{E:function(){return n}}),(i=n||(n={})).ADDITION="Addition",i.CHANGE="Change",i.REMOVAL="Removal",i.CLASSIFICATION="Classification",i.IN_PROGRESS="Classifying",i.MONITORED="Monitoring",i.MUTED="Unmonitored",i.NONE="--"},56856:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return U}});var n=a(24246),i=a(86677),r=a(35287),s=a(77830),o=a(58754),l=a(59003),d=a(92222),u=a(62051),c=a(27378),_=a(66379),F=a(812),m=a(14481),g=a(46628),h=a(37059),v=a(90057),p=a(96107),f=a(46420),S=a(31883),y=a(30952),x=a(8411),C=a(72625),b=a(34929),M=a(78238),A=e=>{var t,a;let{system:i}=e,{getDataUseDisplayName:r}=(0,b.Z)(),s=(null!==(a=null===(t=i.data_uses)||void 0===t?void 0:t.filter(e=>(0,M.Z)(e)))&&void 0!==a?a:[]).map(e=>({label:r(e),key:e}));return(0,n.jsx)(C.mb,{values:s})};let T=e=>{let{monitorId:t,system:a,allowIgnore:r,onTabChange:o}=e,[l,{isLoading:d}]=(0,h.rs)(),[c,{isLoading:_}]=(0,h.nP)(),m=(0,i.useRouter)(),f=(0,u.pmc)(),S=d||_,{id:y,name:x,system_key:C,total_updates:b}=a,M=async()=>{let e=await l({monitor_config_key:t,resolved_system_ids:[y]});if((0,F.D4)(e))f((0,g.Vo)((0,F.e$)(e.error)));else{var a,n,i;let t=(null===(i=e.data)||void 0===i?void 0:null===(n=i.items)||void 0===n?void 0:null===(a=n[0])||void 0===a?void 0:a.promoted_system_key)||C,r="".concat(s.So,"/configure/").concat(t,"#assets");f((0,g.t5)((0,p.u)(C?"".concat(b," assets from ").concat(x," have been added to the system inventory."):"".concat(x," and ").concat(b," assets have been added to the system inventory. ").concat(x," is now configured for consent."),t?()=>m.push(r):void 0)))}},A=async()=>{let e=await c({monitor_config_key:t,resolved_system_ids:[y||s.Kl]});(0,F.D4)(e)?f((0,g.Vo)((0,F.e$)(e.error))):f((0,g.t5)((0,p.u)(x?"".concat(b," assets from ").concat(x," have been ignored and will not appear in future scans."):"".concat(b," uncategorized assets have been ignored and will not appear in future scans."),()=>o((0,v.T)("#ignored")))))};return(0,n.jsxs)(u.vyj,{children:[(0,n.jsx)(u.esZ,{title:a.id?void 0:"These assets must be categorized before you can add them to the inventory.",children:(0,n.jsx)(u.wpx,{"data-testid":"add-btn",size:"small",onClick:M,disabled:!a.id||S,loading:d,children:"Add"})}),r&&(0,n.jsx)(u.wpx,{"data-testid":"ignore-btn",size:"small",onClick:A,disabled:S,loading:_,children:"Ignore"})]})};var I=a(56839);let N=e=>{let{system:t}=e;return(0,n.jsxs)(u.kCb,{alignItems:"center",height:"100%",children:[!(null==t?void 0:t.system_key)&&(0,n.jsx)(u.esZ,{title:"New system",children:(0,n.jsx)("span",{children:I.QL.Change})}),(0,n.jsx)(u.xvT,{fontSize:"xs",fontWeight:"semibold",lineHeight:4,overflow:"hidden",textOverflow:"ellipsis",children:(null==t?void 0:t.name)||"Uncategorized assets"})]})},j=e=>{let{monitorId:t,readonly:a,allowIgnore:i,onTabChange:r}=e,s=(0,d.Cl)(),o=s.display({id:"select",cell:e=>{let{row:t}=e;return(0,n.jsx)(m.k,{isChecked:t.getIsSelected(),onChange:t.getToggleSelectedHandler(),dataTestId:"select-".concat(t.original.name||t.id)})},header:e=>{let{table:t}=e;return(0,n.jsx)(m.k,{isChecked:t.getIsAllPageRowsSelected(),isIndeterminate:t.getIsSomeRowsSelected(),onChange:t.getToggleAllRowsSelectedHandler(),dataTestId:"select-all-rows"})},maxSize:40,meta:{disableRowClick:!0,cellProps:{borderRight:"none"}}}),l=s.accessor(e=>e.name,{id:"system_name",cell:e=>(0,n.jsx)(N,{system:e.row.original}),header:"System",size:300,meta:{headerProps:a?void 0:{paddingLeft:"0px"},cellProps:a?void 0:{padding:"0 !important"}}}),u=s.accessor(e=>e.total_updates,{id:"total_updates",cell:e=>(0,n.jsx)(m.G3,{value:e.getValue()}),header:"Assets",size:80}),_=s.display({id:"data_use",cell:e=>(0,n.jsx)(A,{system:e.row.original}),header:"Categories of consent",size:400,meta:{disableRowClick:!0}}),F=s.accessor(e=>e.locations,{id:"locations",cell:e=>{var t,a;return(0,n.jsx)(C.mb,{values:null!==(a=null===(t=e.getValue())||void 0===t?void 0:t.map(e=>({label:x.Z8[e],key:e})))&&void 0!==a?a:[]})},header:e=>(0,n.jsx)(C.Rr,{value:"Locations",...e}),size:300,meta:{showHeaderMenu:!0,disableRowClick:!0}}),g=s.accessor(e=>e.domains,{id:"domains",cell:e=>(0,n.jsx)(C.tc,{values:e.getValue(),valueSuffix:"domains",cellProps:e}),header:e=>(0,n.jsx)(C.Rr,{value:"Domains",...e}),meta:{showHeaderMenu:!0,disableRowClick:!0}}),h=s.display({id:"actions",cell:e=>(0,n.jsx)(T,{system:e.row.original,monitorId:t,allowIgnore:i,onTabChange:r}),header:"Actions",meta:{disableRowClick:!0}}),v=(0,c.useMemo)(()=>[l,u,_,F,g],[l,u,_,F,g]);return a?{columns:v}:{columns:[o,...v,h]}},R=e=>{let{monitorId:t}=e,a=(0,i.useRouter)(),r=a.asPath.split("#")[1],{PAGE_SIZES:o,pageSize:x,setPageSize:C,onPreviousPageClick:b,isPreviousPageDisabled:M,onNextPageClick:A,isNextPageDisabled:T,startRange:I,endRange:N,pageIndex:R,setTotalPages:U,resetPageIndexToDefault:E}=(0,m.oi)(),[L,{isLoading:w}]=(0,h.rs)(),[D,{isLoading:k}]=(0,h.nP)(),P=(0,u.pmc)(),[O,B]=(0,c.useState)(""),[G,V]=(0,c.useState)({}),{filterTabs:z,filterTabIndex:H,onTabChange:K,activeParams:Z,actionsDisabled:W}=(0,v.Z)({initialHash:r});(0,c.useEffect)(()=>{E()},[t,O,E]);let{data:q,isLoading:Y,isFetching:J}=(0,h.wi)({key:t,page:R,size:x,search:O,...Z});(0,c.useEffect)(()=>{if(q){var e;U(null!==(e=q.pages)&&void 0!==e?e:1)}},[q,U]);let Q=e=>{K(e),V({})},{columns:X}=j({monitorId:t,onTabChange:Q,readonly:W,allowIgnore:!Z.diff_status.includes(f.LL.MUTED)}),$=(0,l.b7)({getCoreRowModel:(0,d.sC)(),columns:X,manualPagination:!0,data:(null==q?void 0:q.items)||[],columnResizeMode:"onChange",onRowSelectionChange:V,state:{rowSelection:G},getRowId:e=>{var t,a,n;return null!==(n=null!==(a=null!==(t=e.id)&&void 0!==t?t:e.vendor_id)&&void 0!==a?a:e.name)&&void 0!==n?n:s.Kl}}),ee=$.getSelectedRowModel().rows,et=ee.some(e=>null===e.original.id);if(Y)return(0,n.jsx)(m.I4,{rowHeight:36,numRows:36});let ea=async()=>{let e=ee.reduce((e,t)=>e+t.original.total_updates,0),n=await L({monitor_config_key:t,resolved_system_ids:ee.map(e=>e.original.id)});(0,S.D4)(n)?P((0,g.Vo)((0,F.e$)(n.error))):(P((0,g.t5)((0,p.u)("".concat(e," assets have been added to the system inventory."),()=>a.push(s.So)))),V({}))},en=async()=>{let e=ee.reduce((e,t)=>e+t.original.total_updates,0),a=await D({monitor_config_key:t,resolved_system_ids:ee.map(e=>{var t;return null!==(t=e.original.id)&&void 0!==t?t:s.Kl})});(0,S.D4)(a)?P((0,g.Vo)((0,F.e$)(a.error))):(P((0,g.t5)((0,p.u)("".concat(e," assets have been ignored and will not appear in future scans."),()=>K((0,v.T)("#ignored"))))),V({}))};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(_.Z,{data:z,"data-testid":"filter-tabs",index:H,isLazy:!0,isManual:!0,onChange:Q}),(0,n.jsx)(m.Q$,{children:(0,n.jsxs)(u.kCb,{direction:"row",alignItems:"center",justifyContent:"space-between",width:"full",children:[(0,n.jsx)(u.kCb,{gap:6,align:"center",children:(0,n.jsx)(u.xuv,{flexShrink:0,children:(0,n.jsx)(y.f,{value:O,onChange:B})})}),(0,n.jsxs)(u.kCb,{align:"center",children:[!!ee.length&&(0,n.jsx)(u.xvT,{fontSize:"xs",fontWeight:"semibold",minW:16,mr:6,"data-testid":"selected-count",children:"".concat(ee.length," selected")}),(0,n.jsx)(u.S0p,{menu:{items:[{key:"add",label:(0,n.jsx)(u.esZ,{title:et?"Uncategorized assets can't be added to the inventory":null,placement:"left",children:"Add"}),onClick:ea,disabled:et},Z.diff_status.includes(f.LL.MUTED)?null:{key:"ignore",label:"Ignore",onClick:en}]},trigger:["click"],children:(0,n.jsx)(u.wpx,{type:"primary",icon:(0,n.jsx)(u.PJP._ME,{}),iconPosition:"end",loading:w||k,disabled:!ee.length,"data-testid":"bulk-actions-menu",children:"Actions"})})]})]})}),(0,n.jsx)(m.ZK,{tableInstance:$,onRowClick:e=>{var n;let i="".concat(s.vi,"/").concat(t,"/").concat(null!==(n=e.id)&&void 0!==n?n:s.Kl).concat(r?"#".concat(r):"");a.push(i)},emptyTableNotice:(0,n.jsx)(u.oj8,{image:u.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})}),(0,n.jsx)(m.s8,{totalRows:(null==q?void 0:q.total)||0,pageSizes:o,setPageSize:C,onPreviousPageClick:b,isPreviousPageDisabled:M||J,onNextPageClick:A,isNextPageDisabled:T||J,startRange:I,endRange:N})]})};var U=()=>{let e=decodeURIComponent((0,i.useRouter)().query.monitorId);return(0,n.jsxs)(r.Z,{title:"Action center - Discovered assets by system",children:[(0,n.jsx)(o.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:s.vi},{title:e}]}),(0,n.jsx)(R,{monitorId:e})]})}},31883:function(e,t,a){"use strict";a.d(t,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=a(19043)},99830:function(e){e.exports={toastLink:"ToastLink_toastLink__OLSeq"}}},function(e){e.O(0,[8033,6060,2858,2866,9278,7553,4481,2888,9774,179],function(){return e(e.s=86850)}),_N_E=e.O()}]);