ethyca-fides 2.59.2b3__py2.py3-none-any.whl → 2.59.2rc0__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 (274) hide show
  1. {ethyca_fides-2.59.2b3.dist-info → ethyca_fides-2.59.2rc0.dist-info}/METADATA +2 -2
  2. {ethyca_fides-2.59.2b3.dist-info → ethyca_fides-2.59.2rc0.dist-info}/RECORD +212 -215
  3. {ethyca_fides-2.59.2b3.dist-info → ethyca_fides-2.59.2rc0.dist-info}/WHEEL +1 -1
  4. fides/_version.py +3 -3
  5. fides/api/api/v1/endpoints/storage_endpoints.py +6 -7
  6. fides/api/db/system.py +121 -1
  7. fides/api/models/asset.py +2 -1
  8. fides/api/models/privacy_notice.py +19 -14
  9. fides/api/models/sql_models.py +51 -0
  10. fides/api/schemas/application_config.py +0 -1
  11. fides/api/schemas/connection_configuration/connection_secrets_datahub.py +3 -3
  12. fides/api/schemas/connection_configuration/connection_secrets_mysql.py +0 -12
  13. fides/api/schemas/connection_configuration/connection_secrets_postgres.py +4 -0
  14. fides/api/schemas/consentable_item.py +8 -5
  15. fides/api/schemas/messaging/messaging.py +2 -9
  16. fides/api/schemas/storage/storage.py +4 -40
  17. fides/api/schemas/storage/storage_secrets_docs_only.py +2 -8
  18. fides/api/schemas/system.py +2 -1
  19. fides/api/service/connectors/mysql_connector.py +1 -13
  20. fides/api/service/connectors/postgres_connector.py +4 -2
  21. fides/api/service/connectors/saas_connector.py +13 -18
  22. fides/api/service/saas_request/saas_request_override_factory.py +3 -3
  23. fides/api/service/storage/storage_authenticator_service.py +16 -39
  24. fides/api/service/storage/storage_uploader_service.py +1 -25
  25. fides/api/task/graph_task.py +3 -2
  26. fides/api/tasks/storage.py +2 -50
  27. fides/api/util/aws_util.py +17 -28
  28. fides/api/util/consent_util.py +4 -10
  29. fides/api/util/storage_util.py +0 -2
  30. fides/service/messaging/aws_ses_service.py +16 -25
  31. fides/ui-build/static/admin/404.html +1 -1
  32. fides/ui-build/static/admin/_next/static/P3RkpoojridGfvvbDI91a/_buildManifest.js +1 -0
  33. fides/ui-build/static/admin/_next/static/chunks/1100-45c0634b4f51d10c.js +1 -0
  34. fides/ui-build/static/admin/_next/static/chunks/1376-92890c17ce39ca0d.js +1 -0
  35. fides/ui-build/static/admin/_next/static/chunks/146-d1820217dc36d46d.js +1 -0
  36. fides/ui-build/static/admin/_next/static/chunks/{1817-90e54de7c706b571.js → 1817-6abbe957a53026d7.js} +1 -1
  37. fides/ui-build/static/admin/_next/static/chunks/{1904-e1034674c6eef004.js → 1904-281183a117e26585.js} +1 -1
  38. fides/ui-build/static/admin/_next/static/chunks/{2479-b4f7654c27a15c05.js → 2479-b4f7a1c7c711cb65.js} +1 -1
  39. fides/ui-build/static/admin/_next/static/chunks/3086-d1ba90bc6ac9174b.js +1 -0
  40. fides/ui-build/static/admin/_next/static/chunks/3244-3d94bf3393366412.js +1 -0
  41. fides/ui-build/static/admin/_next/static/chunks/{3702-8a6360b2deef2a87.js → 3702-3d814671c31eaca3.js} +1 -1
  42. fides/ui-build/static/admin/_next/static/chunks/3855-237afbbea7f54707.js +1 -0
  43. fides/ui-build/static/admin/_next/static/chunks/3872-c53d74aebd12cfd3.js +1 -0
  44. fides/ui-build/static/admin/_next/static/chunks/401-50974f107c2712fc.js +1 -0
  45. fides/ui-build/static/admin/_next/static/chunks/4060-52fd85fb1e15a2b8.js +1 -0
  46. fides/ui-build/static/admin/_next/static/chunks/4121-476f657b03a78965.js +1 -0
  47. fides/ui-build/static/admin/_next/static/chunks/4481-288d74a33473cff7.js +1 -0
  48. fides/ui-build/static/admin/_next/static/chunks/5102-626b9ff42e904276.js +1 -0
  49. fides/ui-build/static/admin/_next/static/chunks/5480-1623dbacdf4e6794.js +1 -0
  50. fides/ui-build/static/admin/_next/static/chunks/5487-9a2aecb0ec63d567.js +1 -0
  51. fides/ui-build/static/admin/_next/static/chunks/{5826-8a035114917033bb.js → 5826-1f4f74bf3b5348e4.js} +1 -1
  52. fides/ui-build/static/admin/_next/static/chunks/5973-942ce645a4279587.js +1 -0
  53. fides/ui-build/static/admin/_next/static/chunks/{6372-3d6d19a89e1d7a37.js → 6372-2aee10b79089521a.js} +1 -1
  54. fides/ui-build/static/admin/_next/static/chunks/6395-4224d6d26d1e8bb7.js +1 -0
  55. fides/ui-build/static/admin/_next/static/chunks/6853-ca5dacd25c9ccb7c.js +1 -0
  56. fides/ui-build/static/admin/_next/static/chunks/6954-127745bfdc5bc0b3.js +1 -0
  57. fides/ui-build/static/admin/_next/static/chunks/7751-3913b8c055f599e5.js +1 -0
  58. fides/ui-build/static/admin/_next/static/chunks/79-77cfed02164241ca.js +1 -0
  59. fides/ui-build/static/admin/_next/static/chunks/8433-c4c765833ab9cc07.js +1 -0
  60. fides/ui-build/static/admin/_next/static/chunks/8934-ffa2b0509bc7a845.js +1 -0
  61. fides/ui-build/static/admin/_next/static/chunks/9282-1a48b10b114d01f4.js +1 -0
  62. fides/ui-build/static/admin/_next/static/chunks/9327-4970d356f7000c0b.js +1 -0
  63. fides/ui-build/static/admin/_next/static/chunks/{9392.9178313b7a01d889.js → 9392.da35a8e778812d91.js} +1 -1
  64. fides/ui-build/static/admin/_next/static/chunks/9572-2b9b10e146130c85.js +1 -0
  65. fides/ui-build/static/admin/_next/static/chunks/{9676.d1e42fd1d03c4a76.js → 9676.f297a1347ac09c56.js} +1 -1
  66. fides/ui-build/static/admin/_next/static/chunks/9767-bf415d0daea960cd.js +1 -0
  67. fides/ui-build/static/admin/_next/static/chunks/{9951-a0ba5bccbbbd5f33.js → 9951-66aad0602aadfbe2.js} +1 -1
  68. fides/ui-build/static/admin/_next/static/chunks/pages/{404-b482dd9e6ba3397d.js → 404-29560aa2e6a60963.js} +1 -1
  69. fides/ui-build/static/admin/_next/static/chunks/pages/{_app-dc66d9fb6547cb04.js → _app-1ce747bb4aa843da.js} +48 -48
  70. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-58e9256e86916ecd.js +1 -0
  71. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-892fc00510cddef8.js → multiple-2392e3a101fae073.js} +1 -1
  72. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-a6926f7ec7ad10cf.js +1 -0
  73. fides/ui-build/static/admin/_next/static/chunks/pages/ant-poc-404f3c9018952800.js +1 -0
  74. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-cc58c1e18966fcfd.js → add-vendors-7dfe37b9f0ff9a3c.js} +1 -1
  75. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-422f4d002822a5ce.js → configure-dba7848b760ba227.js} +1 -1
  76. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-cd8bb60adf783c4a.js → [id]-78de4bde88e18b0f.js} +1 -1
  77. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{new-300fd2800c417d0b.js → new-c02b14c50b19bd91.js} +1 -1
  78. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience-7eeeee3769e73f78.js +1 -0
  79. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-72dd15bfd87616c9.js → [id]-75c2ed6ba3de48cd.js} +1 -1
  80. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-8bbccdd747f4100c.js → new-487ae57dc7e2ded2.js} +1 -1
  81. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-65091908d6296afc.js +1 -0
  82. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-55cc394ebc428e59.js → properties-f67fda6a71d0a46b.js} +1 -1
  83. fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-7a1976c0d1aca8b6.js +1 -0
  84. fides/ui-build/static/admin/_next/static/chunks/pages/{consent-ec420ff6cfb82abd.js → consent-75395dfc224cf44b.js} +1 -1
  85. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-b0b976e8dd5e4cd6.js → [projectUrn]-fa65c67ec8c4b5e6.js} +1 -1
  86. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-4ea56a1c3010ba99.js → projects-e76a07ee6ee8d55f.js} +1 -1
  87. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-75989f9732d90793.js +1 -0
  88. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-6b3d1fe762c747d8.js +1 -0
  89. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-61eafb8444bffb76.js +1 -0
  90. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-38476c697da53480.js +1 -0
  91. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-e7869f658e3017b9.js +1 -0
  92. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-10f789d4ab2b8927.js → [resourceUrn]-1bcaa606739ea1c5.js} +1 -1
  93. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-f473b2ee1c67be3c.js → detection-22f55dc12354b4c6.js} +1 -1
  94. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-2569551ae75ea5a2.js → [resourceUrn]-86111c25dc30ef2b.js} +1 -1
  95. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-ad077f30849fdc0a.js → discovery-853be75f08b9ab5c.js} +1 -1
  96. fides/ui-build/static/admin/_next/static/chunks/pages/{datamap-4b12c6b141f6cda3.js → datamap-423172d31de8e9c6.js} +1 -1
  97. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-da407b63cd3f5276.js → [...subfieldNames]-704553f5329fb9d4.js} +1 -1
  98. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-76205fa5ddc5c3ae.js → [collectionName]-06c19dca941edb14.js} +1 -1
  99. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-ab7c88da427b6396.js → [datasetId]-eac517f43d5f53a8.js} +1 -1
  100. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{new-8dba366b1d55a15c.js → new-5aff1d01c6c30ad6.js} +1 -1
  101. fides/ui-build/static/admin/_next/static/chunks/pages/{dataset-ee98d1a24a68f13b.js → dataset-f4d57b3432c57112.js} +1 -1
  102. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-e39d66c8dfdc4c6f.js → [id]-b2b1168d0361baa8.js} +1 -1
  103. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-8f2cfc79022cb6d0.js → new-c804349a417a888b.js} +1 -1
  104. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-0faa9b3c4555e585.js +1 -0
  105. fides/ui-build/static/admin/_next/static/chunks/pages/index-e72904e316ede1b0.js +1 -0
  106. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-17191a759e167ca8.js +1 -0
  107. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-88e51c81a380ebad.js +1 -0
  108. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{[id]-1d18e28fa55a149b.js → [id]-66f5fbadd8455805.js} +1 -1
  109. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{add-template-11bdab1b292c6f89.js → add-template-d441abb1f045940f.js} +1 -1
  110. fides/ui-build/static/admin/_next/static/chunks/pages/messaging-eef56c95b08aa24c.js +1 -0
  111. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{[id]-96350050e842bde5.js → [id]-54ea39f203182c53.js} +1 -1
  112. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-d889076067104e56.js +1 -0
  113. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-3355b4803b2916f3.js +1 -0
  114. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure-b8c94b10ab90b061.js +1 -0
  115. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-3ac47981f1e2b0aa.js +1 -0
  116. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-835b7c4dd2240d16.js → [id]-f4fb941df069b7bf.js} +1 -1
  117. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-984851804558be53.js → add-property-bccb6ffab25aa214.js} +1 -1
  118. fides/ui-build/static/admin/_next/static/chunks/pages/{properties-d2b95b0ebae06804.js → properties-9a7ac623370b7c00.js} +1 -1
  119. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-fe743440d7eb007b.js +1 -0
  120. fides/ui-build/static/admin/_next/static/chunks/pages/settings/about-4412a7b468b6d4bf.js +1 -0
  121. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-cdc866af93898716.js +1 -0
  122. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-a7dc8113067dff42.js +1 -0
  123. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-87df4b6493ca8162.js → domain-records-d9088f5cd9fb2822.js} +1 -1
  124. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-2f03e981234c40ad.js +1 -0
  125. fides/ui-build/static/admin/_next/static/chunks/pages/settings/email-templates-cf09ad896c7396a6.js +1 -0
  126. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-a8cd013bdd3aef75.js → locations-759564ca0ae62840.js} +1 -1
  127. fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-5bcc7a6976e01a56.js +1 -0
  128. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-5abb227df116c9c4.js → regulations-2dce4501fca920b3.js} +1 -1
  129. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-0b47ff26897c1d9a.js +1 -0
  130. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-693c726f22ae11c5.js → [id]-dd053a3bf2a9ca6c.js} +1 -1
  131. fides/ui-build/static/admin/_next/static/chunks/pages/systems-820893393f1516ee.js +1 -0
  132. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-8fccd670220dbf60.js +1 -0
  133. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/{new-65ef1bdebb679666.js → new-082c3156175f9267.js} +1 -1
  134. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-28abb07c95f2c7c2.js → [id]-d527d1d1635541df.js} +1 -1
  135. fides/ui-build/static/admin/_next/static/chunks/pages/user-management-facb8c0128a44cb1.js +1 -0
  136. fides/ui-build/static/admin/_next/static/chunks/{webpack-cf42f5a0e9af0ace.js → webpack-03e375f6d6b2c71b.js} +1 -1
  137. fides/ui-build/static/admin/_next/static/css/687135955af5b7e1.css +1 -0
  138. fides/ui-build/static/admin/add-systems/manual.html +1 -1
  139. fides/ui-build/static/admin/add-systems/multiple.html +1 -1
  140. fides/ui-build/static/admin/add-systems.html +1 -1
  141. fides/ui-build/static/admin/ant-poc.html +1 -1
  142. fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
  143. fides/ui-build/static/admin/consent/configure.html +1 -1
  144. fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
  145. fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
  146. fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
  147. fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
  148. fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
  149. fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
  150. fides/ui-build/static/admin/consent/properties.html +1 -1
  151. fides/ui-build/static/admin/consent/reporting.html +1 -1
  152. fides/ui-build/static/admin/consent.html +1 -1
  153. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
  154. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
  155. fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
  156. fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
  157. fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
  158. fides/ui-build/static/admin/data-catalog.html +1 -1
  159. fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
  160. fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
  161. fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
  162. fides/ui-build/static/admin/data-discovery/activity.html +1 -1
  163. fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
  164. fides/ui-build/static/admin/data-discovery/detection.html +1 -1
  165. fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
  166. fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
  167. fides/ui-build/static/admin/datamap.html +1 -1
  168. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
  169. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
  170. fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
  171. fides/ui-build/static/admin/dataset/new.html +1 -1
  172. fides/ui-build/static/admin/dataset.html +1 -1
  173. fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
  174. fides/ui-build/static/admin/datastore-connection/new.html +1 -1
  175. fides/ui-build/static/admin/datastore-connection.html +1 -1
  176. fides/ui-build/static/admin/index.html +1 -1
  177. fides/ui-build/static/admin/integrations/[id].html +1 -1
  178. fides/ui-build/static/admin/integrations.html +1 -1
  179. fides/ui-build/static/admin/login/[provider].html +1 -1
  180. fides/ui-build/static/admin/login.html +1 -1
  181. fides/ui-build/static/admin/messaging/[id].html +1 -1
  182. fides/ui-build/static/admin/messaging/add-template.html +1 -1
  183. fides/ui-build/static/admin/messaging.html +1 -1
  184. fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
  185. fides/ui-build/static/admin/privacy-requests/configure/messaging.html +1 -1
  186. fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
  187. fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
  188. fides/ui-build/static/admin/privacy-requests.html +1 -1
  189. fides/ui-build/static/admin/properties/[id].html +1 -1
  190. fides/ui-build/static/admin/properties/add-property.html +1 -1
  191. fides/ui-build/static/admin/properties.html +1 -1
  192. fides/ui-build/static/admin/reporting/datamap.html +1 -1
  193. fides/ui-build/static/admin/settings/about.html +1 -1
  194. fides/ui-build/static/admin/settings/consent.html +1 -1
  195. fides/ui-build/static/admin/settings/custom-fields.html +1 -1
  196. fides/ui-build/static/admin/settings/domain-records.html +1 -1
  197. fides/ui-build/static/admin/settings/domains.html +1 -1
  198. fides/ui-build/static/admin/settings/email-templates.html +1 -1
  199. fides/ui-build/static/admin/settings/locations.html +1 -1
  200. fides/ui-build/static/admin/settings/organization.html +1 -1
  201. fides/ui-build/static/admin/settings/regulations.html +1 -1
  202. fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
  203. fides/ui-build/static/admin/systems/configure/[id].html +1 -1
  204. fides/ui-build/static/admin/systems.html +1 -1
  205. fides/ui-build/static/admin/taxonomy.html +1 -1
  206. fides/ui-build/static/admin/user-management/new.html +1 -1
  207. fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
  208. fides/ui-build/static/admin/user-management.html +1 -1
  209. fides/api/alembic/migrations/versions/c9c72b3d550b_data_migration_cookie_asset.py +0 -218
  210. fides/api/service/storage/gcs.py +0 -38
  211. fides/ui-build/static/admin/_next/static/WiKelYdZvuyhqjL7rLRaz/_buildManifest.js +0 -1
  212. fides/ui-build/static/admin/_next/static/chunks/1100-0046887f49e9e7c7.js +0 -1
  213. fides/ui-build/static/admin/_next/static/chunks/3503-2e773a38d4a79c2d.js +0 -1
  214. fides/ui-build/static/admin/_next/static/chunks/3513-2ee2ff13c15af241.js +0 -1
  215. fides/ui-build/static/admin/_next/static/chunks/3855-7a43acdb1f8de2f5.js +0 -1
  216. fides/ui-build/static/admin/_next/static/chunks/3872-53b86dcc7ee3ddec.js +0 -1
  217. fides/ui-build/static/admin/_next/static/chunks/401-a15fcc78cc272c09.js +0 -1
  218. fides/ui-build/static/admin/_next/static/chunks/4060-93514991b84ca46c.js +0 -1
  219. fides/ui-build/static/admin/_next/static/chunks/4121-01e2b9f905b8ca29.js +0 -1
  220. fides/ui-build/static/admin/_next/static/chunks/4481-c19a0c5e273a3ec7.js +0 -1
  221. fides/ui-build/static/admin/_next/static/chunks/5487-b6957c5ba835167b.js +0 -1
  222. fides/ui-build/static/admin/_next/static/chunks/5835-2e2aa29b4a8bf4e6.js +0 -1
  223. fides/ui-build/static/admin/_next/static/chunks/5973-4b83cf367b6d82a2.js +0 -1
  224. fides/ui-build/static/admin/_next/static/chunks/6277-2f2d89b83a19ee67.js +0 -1
  225. fides/ui-build/static/admin/_next/static/chunks/6853-45e8c48ad0fdf1db.js +0 -1
  226. fides/ui-build/static/admin/_next/static/chunks/6954-6de30beefefac64a.js +0 -1
  227. fides/ui-build/static/admin/_next/static/chunks/7751-f83e9877478aafcf.js +0 -1
  228. fides/ui-build/static/admin/_next/static/chunks/79-576004c5ee5116f6.js +0 -1
  229. fides/ui-build/static/admin/_next/static/chunks/8433-234a6feeb457cbb8.js +0 -1
  230. fides/ui-build/static/admin/_next/static/chunks/8934-e357867355f1f924.js +0 -1
  231. fides/ui-build/static/admin/_next/static/chunks/9282-c7f853a8175266bc.js +0 -1
  232. fides/ui-build/static/admin/_next/static/chunks/9327-0bc418b9b16cc2c5.js +0 -1
  233. fides/ui-build/static/admin/_next/static/chunks/9572-c34e18bd40467909.js +0 -1
  234. fides/ui-build/static/admin/_next/static/chunks/9719-d3de30714871f267.js +0 -1
  235. fides/ui-build/static/admin/_next/static/chunks/9767-ee5b0af0e65d3802.js +0 -1
  236. fides/ui-build/static/admin/_next/static/chunks/9965-8880affd11242777.js +0 -1
  237. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-e16fcedb2215db13.js +0 -1
  238. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-cb85a0014fad7c58.js +0 -1
  239. fides/ui-build/static/admin/_next/static/chunks/pages/ant-poc-2bade915860dd327.js +0 -1
  240. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience-046051bb82ec1c53.js +0 -1
  241. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-1f402b7525f78140.js +0 -1
  242. fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-de9118ec446ce994.js +0 -1
  243. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-7efbc1558febf026.js +0 -1
  244. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-cdd23dc94e1fbf89.js +0 -1
  245. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-94308fff1468b5e6.js +0 -1
  246. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-920ed6df7e0aa3a5.js +0 -1
  247. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-7e25ddfe45048b35.js +0 -1
  248. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-340e311fa02584dc.js +0 -1
  249. fides/ui-build/static/admin/_next/static/chunks/pages/index-259c1f1281f9b634.js +0 -1
  250. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-0fc3ffd11ba163f9.js +0 -1
  251. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-d584110d81e5b395.js +0 -1
  252. fides/ui-build/static/admin/_next/static/chunks/pages/messaging-de5efa1ff6d0e9ea.js +0 -1
  253. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-e8e9ae8d58acceb2.js +0 -1
  254. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-a76f1d1a19e61fe8.js +0 -1
  255. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure-6b9a46fef5031a0b.js +0 -1
  256. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-630db544f2a27167.js +0 -1
  257. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-5d1aededc7523146.js +0 -1
  258. fides/ui-build/static/admin/_next/static/chunks/pages/settings/about-44f96bcf57cd4cbf.js +0 -1
  259. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-0ba66c149139737a.js +0 -1
  260. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-943dfe977678edb5.js +0 -1
  261. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-39d098cbcb33d4f5.js +0 -1
  262. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-45a8a86266308028.js +0 -1
  263. fides/ui-build/static/admin/_next/static/chunks/pages/settings/email-templates-272eb2c0b7ffd290.js +0 -1
  264. fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-aaa200f916ba79d8.js +0 -1
  265. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-da1b2dd3ec61a08e.js +0 -1
  266. fides/ui-build/static/admin/_next/static/chunks/pages/systems-5eccb5fe50f7aaa9.js +0 -1
  267. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-0611d707ce426ec7.js +0 -1
  268. fides/ui-build/static/admin/_next/static/chunks/pages/user-management-4eb69d5c6af8581b.js +0 -1
  269. fides/ui-build/static/admin/_next/static/css/e728309361a9758b.css +0 -1
  270. fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +0 -1
  271. {ethyca_fides-2.59.2b3.dist-info → ethyca_fides-2.59.2rc0.dist-info}/entry_points.txt +0 -0
  272. {ethyca_fides-2.59.2b3.dist-info → ethyca_fides-2.59.2rc0.dist-info}/licenses/LICENSE +0 -0
  273. {ethyca_fides-2.59.2b3.dist-info → ethyca_fides-2.59.2rc0.dist-info}/top_level.txt +0 -0
  274. /fides/ui-build/static/admin/_next/static/{WiKelYdZvuyhqjL7rLRaz → P3RkpoojridGfvvbDI91a}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
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(91922),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(91922);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(91922).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(91922),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:g}=(0,c.JE)(void 0,{skip:p}),{data:j}=(0,c.PW)(void 0,{skip:p}),y=h.flags.privacyRequestsConfiguration&&(!g||!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:[y?(0,s.jsx)(u,{}):null,t]})]})}},58754:function(e,t,n){"use strict";var s=n(24246),i=n(91922),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(91922),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,g,{setValue:j}]=(0,r.U$)(t),y=!!(g.touched&&g.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,C=e=>{v(e),m.onSearch&&m.onSearch(e)},w=(e,t)=>{j(e),m.onChange&&m.onChange(e,t)};return"inline"===h?(0,s.jsx)(i.NIc,{isInvalid:y,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?C:void 0,onChange:w,value:p.value||void 0,status:y?"error":void 0}),x&&(0,s.jsx)(i.Q6r,{children:x}),(0,s.jsx)(o.Bc,{isInvalid:y,message:g.error,fieldName:p.name})]}),(0,s.jsx)(l.b,{label:d})]})]})}):(0,s.jsx)(i.NIc,{isInvalid:y,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?C:void 0,onChange:w,value:p.value||void 0,status:y?"error":void 0}),x&&(0,s.jsx)(i.Q6r,{style:{marginTop:0},children:x}),(0,s.jsx)(o.Bc,{isInvalid:y,message:g.error,fieldName:p.name})]})})}},812:function(e,t,n){"use strict";n.d(t,{D4:function(){return r.D4},MM:function(){return h},Ot:function(){return c},c6:function(){return i},cj:function(){return m},e$:function(){return l},fn:function(){return o},iC:function(){return x},nU:function(){return u},tB:function(){return d}});var s,i,r=n(19043);let a="An unexpected error occurred. Please try again.",l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;if((0,r.Bw)(e)){if((0,r.hE)(e.data))return e.data.detail;if((0,r.cz)(e.data)){var n;let t=null===(n=e.data.detail)||void 0===n?void 0:n[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,r.Dy)(e.data)||404===e.status&&(0,r.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function o(e){return"object"==typeof e&&null!=e&&"status"in e}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function d(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:a};if((0,r.oK)(e))return{status:e.originalStatus,message:e.data};if((0,r.Bw)(e)){let{status:n}=e;return{status:n,message:l(e,t.message)}}return t},h=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(s=i||(i={})).GVL="gvl",s.AC="gacp",s.COMPASS="compass";let x={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},m=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},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(91922);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})},58452:function(e,t,n){"use strict";var s=n(24246),i=n(91922);t.Z=e=>{let{isOpen:t,onClose:n,onConfirm:r,onCancel:a,title:l,message:o,cancelButtonText:c,continueButtonText:d,isLoading:u,returnFocusOnClose:h,isCentered:x,testId:m="confirmation-modal",icon:p}=e;return(0,s.jsxs)(i.u_l,{isOpen:t,onClose:n,size:"lg",returnFocusOnClose:null==h||h,isCentered:x,children:[(0,s.jsx)(i.ZAr,{}),(0,s.jsxs)(i.hzk,{textAlign:"center",p:6,"data-testid":m,children:[p?(0,s.jsx)(i.M5Y,{mb:2,children:p}):null,l?(0,s.jsx)(i.xBx,{fontWeight:"medium",pb:0,children:l}):null,o?(0,s.jsx)(i.fef,{children:o}):null,(0,s.jsx)(i.mzw,{children:(0,s.jsxs)(i.MIq,{columns:2,width:"100%",children:[(0,s.jsx)(i.wpx,{onClick:()=>{a&&a(),n()},size:"large",className:"mr-3","data-testid":"cancel-btn",disabled:u,children:c||"Cancel"}),(0,s.jsx)(i.wpx,{type:"primary",size:"large",onClick:r,"data-testid":"continue-btn",loading:u,children:d||"Continue"})]})})]})]})}},57899:function(e,t,n){"use strict";var s=n(24246),i=n(91922),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(91922),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})}},46628:function(e,t,n){"use strict";n.d(t,{MA:function(){return l},Vo:function(){return c},t5:function(){return o}});var s=n(24246),i=n(91922);let r=e=>{let{children:t,title:n="Success"}=e;return(0,s.jsxs)(i.xvT,{"data-testid":"toast-success-msg",children:[(0,s.jsxs)("strong",{children:[n,":"]})," ",t]})},a=e=>{let{children:t}=e;return(0,s.jsxs)(i.xvT,{"data-testid":"toast-error-msg",children:[(0,s.jsx)("strong",{children:"Error:"})," ",t]})},l={variant:"subtle",position:"top",description:"",duration:5e3,status:"success",isClosable:!0},o=(e,t)=>{let n=(0,s.jsx)(r,{title:t,children:e});return{...l,description:n}},c=e=>{let t=(0,s.jsx)(a,{children:e});return{...l,description:t,status:"error"}}},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(91922),d=n(3124),u=n.n(d),h=n(86677),x=n(25980),m=n(14048),p=n(58452);let g=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),y=n(16643),f=n(69e3),v=n(77867),b=n(32885),C=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===y.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]})},w=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)(g,{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)(w.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)(w.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)(y.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)(y.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)(C,{onClick:()=>{e((0,o.sz)()),e((0,o.CQ)(w.D.DATA_FLOW))}})]})]})]})},S=n(34090),A=n(55484),T=n(40324),z=n(812),I=n(14047),O=n(97181),q=n(70788),N=n(28416);let D=e=>"system_type"in e,{useGenerateMutation:F}=n(78780).u.injectEndpoints({endpoints:e=>({generate:e.mutation({query:e=>({url:"generate",method:"POST",body:e})})})});var R=n(59301);let Z=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===y.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)(R.Z,{href:N.zu,children:"the required permissions"})," ","to these credentials as part of your IAM policy. If you need more help in configuring IAM policies, you can read about them"," ",(0,s.jsx)(R.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)(Z,{message:t.message}),(0,s.jsxs)(c.xvT,{children:["If this error does not clarify why scanning failed, please"," ",(0,s.jsx)(R.Z,{href:N.we,children:"create a new issue"}),"."]})]})]})},E=n(57899);let B=(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 K=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:B,confirmButtonText:"Yes, Cancel",cancelButtonText:"No, Continue Scanning"})]})};let U={aws_access_key_id:"",aws_secret_access_key:"",aws_session_token:"",region_name:""},L=A.Ry().shape({aws_access_key_id:A.Z_().required().trim().matches(/^\w+$/,"Cannot contain spaces or special characters").label("Access Key ID"),aws_secret_access_key:A.Z_().required().trim().matches(/^[^\s]+$/,"Cannot contain spaces").label("Secret"),aws_session_token:A.Z_().optional().trim().matches(/^[^\s]+$/,"Cannot contain spaces").label("Session Token (for temporary credentials)"),region_name:A.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(D);t((0,o.un)(s)),t((0,o.sz)()),n("Your scan was successfully completed, with ".concat(s.length," new systems detected!"),"Scan Successfully Completed",{isClosable:!0})},u=e=>{l((0,z.nU)(e,{status:500,message:"Our system encountered a problem while connecting to AWS."}))},h=()=>{t((0,o.sz)(2))},[x,{isLoading:m}]=F(),p=async t=>{l(void 0);let n=await x({organization_key:e,generate:{config:t,target:y.GC.AWS,type:y.j.SYSTEMS}});(0,z.D4)(n)?u(n.error):d(n.data.generate_results)};return(0,s.jsx)(S.J9,{initialValues:U,validationSchema:L,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)(K,{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)(q.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)(T.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)(T.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)(T.j0,{type:"password",name:"aws_session_token",label:"Session Token",tooltip:"The session token when using temporary credentials."}),(0,s.jsx)(O.d,{name:"region_name",label:"AWS Region",tooltip:"The geographic region of the cloud hosting provider you would like to scan.",options:N.xO,isRequired:!0,placeholder:"Select a region"})]})]}),n?null:(0,s.jsxs)(c.Ugi,{children:[(0,s.jsx)(c.wpx,{onClick: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 P={orgUrl:"",token:""},V=A.Ry().shape({orgUrl:A.Z_().required().trim().url().label("URL"),token:A.Z_().required().trim().matches(/^[^\s]+$/,"Cannot contain spaces").label("Token")});var X=()=>{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(D);t((0,o.un)(s)),t((0,o.sz)()),n("Your scan was successfully completed, with ".concat(s.length," new systems detected!"),"Scan Successfully Completed",{isClosable:!0})},u=e=>{l((0,z.nU)(e,{status:500,message:"Our system encountered a problem while connecting to Okta."}))},h=()=>{t((0,o.sz)(2))},[x,{isLoading:m}]=F(),p=async t=>{l(void 0);let n=await x({organization_key:e,generate:{config:t,target:y.GC.OKTA,type:y.j.SYSTEMS}});(0,z.D4)(n)?u(n.error):d(n.data.generate_results)};return(0,s.jsx)(S.J9,{initialValues:P,validationSchema:V,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)(K,{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)(q.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)(T.j0,{name:"orgUrl",label:"Domain",tooltip:"The URL for your organization's account on Okta"}),(0,s.jsx)(T.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"})]})]})})}})},G=n(46628),Y=n(31883),$=()=>{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,Y.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,G.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)(K,{title:"Infrastructure scanning in progress",onClose:p})},J=()=>{let e=(0,r.C)(o.Ll);return(0,s.jsxs)(c.xuv,{w:"40%",children:[e===y.GC.AWS?(0,s.jsx)(M,{}):null,e===y.GC.OKTA?(0,s.jsx)(X,{}):null,e===w.D.DATA_FLOW?(0,s.jsx)($,{}):null]})},Q=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,Q.vz)(),[l]=(0,Q.$f)(),{data:d,isLoading:u}=(0,Q.GQ)(Q.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:Q.Av,organization_fides_key:Q.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),[g,j]=(0,i.useState)(eo),{handleError:y}=(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)?y(e.error):f(a)},b=()=>{t((0,o.sz)(2))},C=(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)(q.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:g,onChange:j})})]}),(0,s.jsx)(ea,{allSystems:e,checked:m,onChange:p,columns:g}),(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:C,handleConfirm:v,isOpen:l,onClose:u})]})},ed=()=>{let e=(0,r.C)(o.xx);return(0,s.jsx)(c.Kqy,{direction:["column","row"],bg:"white",children:(0,s.jsxs)(c.xuv,{display:"flex",justifyContent:"flex-start",w:"100%",children:[1===e?(0,s.jsx)(et,{}):null,2===e?(0,s.jsx)(_,{}):null,3===e?(0,s.jsx)(J,{}):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,{})]})}},19043:function(e,t,n){"use strict";n.d(t,{Bw:function(){return a},D4:function(){return i},Dy:function(){return o},XD:function(){return c},cz:function(){return d},hE:function(){return l},oK:function(){return r}});var s=n(76649);let i=e=>"error"in e,r=e=>(0,s.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,a=e=>(0,s.Ln)({status:"number",data:{}},e),l=e=>(0,s.Ln)({detail:"string"},e),o=e=>(0,s.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,s.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),d=e=>(0,s.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)},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,[2888,9774,179],function(){return e(e.s=74245)}),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3082],{37152:function(e,l,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/ant-poc",function(){return s(316)}])},58754:function(e,l,s){"use strict";var i=s(24246),a=s(91922),r=s(70788);l.Z=e=>{let{heading:l,breadcrumbItems:s,isSticky:n=!0,children:t,rightContent:c,style:d,...o}=e;return(0,i.jsxs)("div",{...o,style:n?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,i.jsxs)(a.jqI,{justify:"space-between",children:["string"==typeof l?(0,i.jsx)(a.lQT,{className:s||t?"pb-4":void 0,level:1,"data-testid":"page-heading",children:l}):l,c&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:c})]}),!!s&&(0,i.jsx)(r.m,{className:t?"pb-4":void 0,items:s,"data-testid":"page-breadcrumb"}),t]})}},70788:function(e,l,s){"use strict";s.d(l,{m:function(){return d}});var i=s(24246),a=s(91922),r=s(79894),n=s.n(r),t=s(27378);let{Text:c}=a.AntTypography,d=e=>{let{items:l,...s}=e,r=(0,t.useMemo)(()=>null==l?void 0:l.map((e,s)=>{let r=s===l.length-1,t={...e},d=t.onClick&&!t.href;return("string"==typeof t.title&&(t.title=(0,i.jsx)(c,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:t.title})),d)?t.title=(0,i.jsx)(a.wpx,{type:"text",size:"small",icon:t.icon,onClick:t.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:t.title}):(t.icon&&(t.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:t.icon}),t.title]})),t.href&&t.title&&(t.title=(0,i.jsx)(n(),{href:t.href,className:"ant-breadcrumb-link",children:t.title}),delete t.href)),t}),[l]);return(0,i.jsx)(a.zrq,{items:r,...s})}},316:function(e,l,s){"use strict";s.r(l);var i=s(24246),a=s(91922),r=s(46238),n=s(58754);let{Content:t}=a.AntLayout,{Link:c,Paragraph:d,Text:o,Title:h}=a.AntTypography,u=[];for(let e=10;e<36;e+=1)u.push({label:e.toString(36)+e,value:e.toString(36)+e});l.default=()=>(0,i.jsx)(a.AntLayout,{children:(0,i.jsxs)(t,{className:"overflow-auto px-10 py-6",children:[(0,i.jsx)(n.Z,{heading:"Ant Design Proof of Concept"}),(0,i.jsxs)(a.bue,{gutter:16,className:"mt-6",children:[(0,i.jsx)(a.JGx,{span:8,children:(0,i.jsx)(a.V4A,{title:"Button",variant:"borderless",className:"h-full",children:(0,i.jsxs)(a.vyj,{direction:"vertical",children:[(0,i.jsx)(a.wpx,{type:"primary",children:"Primary Button"}),(0,i.jsx)(a.wpx,{children:"Default Button"}),(0,i.jsx)(a.wpx,{type:"dashed",children:"Dashed Button"}),(0,i.jsx)(a.wpx,{type:"text",children:"Text Button"}),(0,i.jsx)(a.wpx,{type:"link",children:"Link Button"}),(0,i.jsx)(a.wpx,{type:"primary",loading:!0,children:"Loading Button"}),(0,i.jsx)(a.wpx,{type:"primary",disabled:!0,children:"Disabled Button"})]})})}),(0,i.jsx)(a.JGx,{span:8,children:(0,i.jsx)(a.V4A,{title:"Switch",variant:"borderless",className:"h-full",children:(0,i.jsxs)(a.vyj,{direction:"vertical",children:[(0,i.jsx)(a.rAg,{defaultChecked:!0}),(0,i.jsx)(a.rAg,{size:"small",defaultChecked:!0}),(0,i.jsx)(a.rAg,{loading:!0,defaultChecked:!0})]})})}),(0,i.jsx)(a.JGx,{span:8,children:(0,i.jsx)(a.V4A,{title:"Select",variant:"borderless",className:"h-full",children:(0,i.jsxs)(a.vyj,{direction:"vertical",children:[(0,i.jsx)(a.WPr,{defaultValue:"lucy",className:"w-32",options:[{value:"jack",label:"Jack"},{value:"lucy",label:"Lucy"},{value:"Yiminghe",label:"yiminghe"},{value:"disabled",label:"Disabled",disabled:!0}]}),(0,i.jsx)(a.WPr,{defaultValue:"lucy",className:"w-32",disabled:!0,options:[{value:"lucy",label:"Lucy"}]}),(0,i.jsx)(a.WPr,{defaultValue:"lucy",className:"w-32",loading:!0,options:[{value:"lucy",label:"Lucy"}]}),(0,i.jsx)(a.WPr,{defaultValue:"lucy",className:"w-32",allowClear:!0,options:[{value:"lucy",label:"Lucy"}]}),(0,i.jsx)(a.WPr,{mode:"multiple",allowClear:!0,className:"w-full",placeholder:"Please select",defaultValue:["a10","c12"],options:u}),(0,i.jsx)(a.WPr,{mode:"multiple",disabled:!0,className:"w-full",placeholder:"Please select",defaultValue:["a10","c12"],options:u})]})})})]}),(0,i.jsx)("br",{}),(0,i.jsxs)(a.bue,{gutter:16,children:[(0,i.jsx)(a.JGx,{span:8,children:(0,i.jsx)(a.V4A,{title:"Checkbox",variant:"borderless",className:"h-full",children:(0,i.jsxs)(a.vyj,{direction:"vertical",children:[(0,i.jsx)(a.E_O,{children:"Checkbox"}),(0,i.jsx)(a.E_O,{defaultChecked:!0,children:"Checkbox"}),(0,i.jsx)(a.E_O,{disabled:!0,children:"Disabled"}),(0,i.jsx)(a.E_O,{indeterminate:!0,children:"Indeterminate"}),(0,i.jsx)(a.E_O.Group,{options:[{label:"Apple",value:"Apple"},{label:"Pear",value:"Pear"},{label:"Orange",value:"Orange",disabled:!0}],defaultValue:["Apple"]})]})})}),(0,i.jsx)(a.JGx,{span:8,children:(0,i.jsx)(a.V4A,{title:"Radio",variant:"borderless",className:"h-full",children:(0,i.jsxs)(a.vyj,{direction:"vertical",children:[(0,i.jsx)(a.y02,{children:"Radio"}),(0,i.jsx)(a.y02,{defaultChecked:!0,children:"Radio"}),(0,i.jsx)(a.y02,{disabled:!0,children:"Disabled"}),(0,i.jsx)(a.y02.Group,{options:[{label:"Apple",value:"Apple"},{label:"Pear",value:"Pear"},{label:"Orange",value:"Orange",disabled:!0}],defaultValue:"Apple"}),(0,i.jsx)(a.y02.Group,{options:[{label:"Apple",value:"Apple"},{label:"Pear",value:"Pear"},{label:"Orange",value:"Orange"}],defaultValue:"Apple",optionType:"button"}),(0,i.jsx)(a.y02.Group,{options:[{label:"Apple",value:"Apple"},{label:"Pear",value:"Pear"},{label:"Orange",value:"Orange"}],defaultValue:"Apple",optionType:"button",buttonStyle:"solid"})]})})}),(0,i.jsx)(a.JGx,{span:8,children:(0,i.jsx)(a.V4A,{title:"Input",variant:"borderless",className:"h-full",children:(0,i.jsxs)(a.vyj,{direction:"vertical",size:"middle",children:[(0,i.jsx)(a.vyj.Compact,{children:(0,i.jsx)(a.uFc,{defaultValue:"26888888"})}),(0,i.jsxs)(a.vyj.Compact,{children:[(0,i.jsx)(a.uFc,{className:"w-1/5",defaultValue:"0571"}),(0,i.jsx)(a.uFc,{className:"w-4/5",defaultValue:"26888888"})]}),(0,i.jsx)(a.vyj.Compact,{children:(0,i.jsx)(a.uFc.Search,{addonBefore:"https://",placeholder:"input search text",allowClear:!0})}),(0,i.jsxs)(a.vyj.Compact,{className:"w-full",children:[(0,i.jsx)(a.uFc,{defaultValue:"Combine input and button"}),(0,i.jsx)(a.wpx,{type:"primary",children:"Submit"})]}),(0,i.jsxs)(a.vyj.Compact,{children:[(0,i.jsx)(a.WPr,{defaultValue:"Zhejiang",options:u}),(0,i.jsx)(a.uFc,{defaultValue:"Xihu District, Hangzhou"})]})]})})})]}),(0,i.jsx)("br",{}),(0,i.jsxs)(a.bue,{gutter:16,children:[(0,i.jsx)(a.JGx,{span:8,children:(0,i.jsx)(a.V4A,{title:"Tooltip",variant:"borderless",className:"h-full",children:(0,i.jsxs)(a.vyj,{direction:"vertical",children:[(0,i.jsx)(a.esZ,{title:"I'm a tooltip",children:(0,i.jsx)("span",{children:"Hover this text"})}),(0,i.jsx)(r.b,{label:"Tooltip will show on mouse enter."})]})})}),(0,i.jsx)(a.JGx,{span:8,children:(0,i.jsx)(a.V4A,{title:"Alert",variant:"borderless",className:"h-full",children:(0,i.jsxs)(a.vyj,{direction:"vertical",children:[(0,i.jsx)(a.DUx,{message:"Success Tips",type:"success",showIcon:!0}),(0,i.jsx)(a.DUx,{message:"Informational Notes",type:"info",showIcon:!0}),(0,i.jsx)(a.DUx,{message:"Warning",type:"warning",showIcon:!0,closable:!0}),(0,i.jsx)(a.DUx,{message:"Error",type:"error",showIcon:!0})]})})}),(0,i.jsx)(a.JGx,{span:8,children:(0,i.jsx)(a.V4A,{title:"Tag",variant:"borderless",className:"h-full",children:(0,i.jsxs)(a.jqI,{wrap:!0,gap:"small",children:[(0,i.jsx)(a.j8w,{color:"default",children:"default"}),(0,i.jsx)(a.j8w,{color:"corinth",children:"corinth"}),(0,i.jsx)(a.j8w,{color:"minos",children:"minos"}),(0,i.jsx)(a.j8w,{color:"terracotta",children:"terracotta"}),(0,i.jsx)(a.j8w,{color:"olive",children:"olive"}),(0,i.jsx)(a.j8w,{color:"marble",children:"marble"}),(0,i.jsx)(a.j8w,{color:"sandstone",children:"sandstone"}),(0,i.jsx)(a.j8w,{color:"nectar",children:"nectar"}),(0,i.jsx)(a.j8w,{color:"error",children:"error"}),(0,i.jsx)(a.j8w,{color:"warning",children:"warning"}),(0,i.jsx)(a.j8w,{color:"caution",children:"caution"}),(0,i.jsx)(a.j8w,{color:"success",children:"success"}),(0,i.jsx)(a.j8w,{color:"info",children:"info"}),(0,i.jsx)(a.j8w,{color:"alert",children:"alert"}),(0,i.jsx)(a.j8w,{color:"white",children:"white"}),(0,i.jsx)(a.j8w,{closable:!0,onClose:()=>console.log("closed"),children:"Closable Tag"}),(0,i.jsx)(a.j8w,{onClick:()=>console.log("clicked"),addable:!0}),(0,i.jsx)(a.j8w,{onClick:()=>console.log("clicked"),addable:!0,children:"Add More"}),(0,i.jsxs)(a.j8w,{hasSparkle:!0,onClick:()=>console.log("clicked"),children:["Data Use",(0,i.jsx)(a.PJP.I8b,{})]}),(0,i.jsx)(a.j8w,{hasSparkle:!0,onClick:()=>console.log("clicked"),closable:!0,onClose:()=>console.log("closed"),children:"Data Category"})]})})})]}),(0,i.jsx)("br",{}),(0,i.jsxs)(a.bue,{gutter:16,children:[(0,i.jsx)(a.JGx,{span:8,children:(0,i.jsx)(a.V4A,{title:"Typography Headings",variant:"borderless",className:"h-full",children:(0,i.jsxs)(a.vyj,{direction:"vertical",children:[(0,i.jsx)(h,{level:1,children:"H1 default"}),(0,i.jsx)(h,{level:1,headingSize:2,children:"H1 sized as H2"}),(0,i.jsx)(h,{level:1,headingSize:3,children:"H1 sized as H3"}),(0,i.jsx)(a.htM,{style:{margin:0}}),(0,i.jsx)(h,{level:2,children:"H2 default"}),(0,i.jsx)(h,{level:2,headingSize:1,children:"H2 sized as H1"}),(0,i.jsx)(h,{level:2,headingSize:3,children:"H2 sized as H3"}),(0,i.jsx)(a.htM,{style:{margin:0}}),(0,i.jsx)(h,{level:3,children:"H3 default"}),(0,i.jsx)(h,{level:3,headingSize:1,children:"H3 sized as H1"}),(0,i.jsx)(h,{level:3,headingSize:2,children:"H3 sized as H2"})]})})}),(0,i.jsx)(a.JGx,{span:8,children:(0,i.jsx)(a.V4A,{title:"Typography Paragraphs",variant:"borderless",className:"h-full",children:(0,i.jsxs)(a.AntTypography,{children:[(0,i.jsx)(d,{children:"This paragraph has a bottom margin. Imperdiet ex curae laoreet turpis adipiscing pulvinar erat conubia rhoncus, faucibus dictum porta integer tincidunt iaculis pharetra. Dis praesent egestas curae tortor primis volutpat metus ridiculus sit rutrum vitae ac aenean, nisi dolor a per molestie etiam ad tristique magnis fames laoreet."}),(0,i.jsx)(d,{children:"This paragraph has no bottom margin. Imperdiet ex curae laoreet turpis adipiscing pulvinar erat conubia rhoncus, faucibus dictum porta integer tincidunt iaculis pharetra. Dis praesent egestas curae tortor primis volutpat metus ridiculus sit rutrum vitae ac aenean, nisi dolor a per molestie etiam ad tristique magnis fames laoreet."})]})})}),(0,i.jsx)(a.JGx,{span:8,children:(0,i.jsx)(a.V4A,{title:"Typography Text & Link",variant:"borderless",className:"h-full",children:(0,i.jsxs)(a.vyj,{direction:"vertical",children:[(0,i.jsx)(o,{children:"Ant Design (default)"}),(0,i.jsx)(o,{size:"sm",children:"Ant Design (small)"}),(0,i.jsx)(o,{size:"lg",children:"Ant Design (large)"}),(0,i.jsx)(o,{type:"secondary",children:"Ant Design (secondary)"}),(0,i.jsx)(o,{type:"success",children:"Ant Design (success)"}),(0,i.jsx)(o,{type:"warning",children:"Ant Design (warning)"}),(0,i.jsx)(o,{type:"danger",children:"Ant Design (danger)"}),(0,i.jsx)(o,{disabled:!0,children:"Ant Design (disabled)"}),(0,i.jsx)(o,{mark:!0,children:"Ant Design (mark)"}),(0,i.jsx)(o,{code:!0,children:"Ant Design (code)"}),(0,i.jsx)(o,{keyboard:!0,children:"Ant Design (keyboard)"}),(0,i.jsx)(o,{underline:!0,children:"Ant Design (underline)"}),(0,i.jsx)(o,{delete:!0,children:"Ant Design (delete)"}),(0,i.jsx)(o,{strong:!0,children:"Ant Design (strong)"}),(0,i.jsx)(o,{italic:!0,children:"Ant Design (italic)"}),(0,i.jsx)(c,{href:"https://ant.design",target:"_blank",children:"Ant Design (Link)"})]})})})]})]})})}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=37152)}),_N_E=e.O()}]);
@@ -1 +0,0 @@
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(91922).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 N}});var i=s(24246),n=s(91922),a=s(27378),r=s(35287),o=s(92222),l=s(59003),c=s(14481),d=s(77830),p=s(19904),u=s(45277),x=s(59301),h=s(812),y=s(46628),g=s(32885),m=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:m,getInputProps:j,isDragActive:f}=(0,u.uI)({onDrop:e=>{var t;if("css"!==(null===(t=e[0].name.split(".").pop())||void 0===t?void 0:t.toLowerCase())){p((0,y.Vo)("Only css files are allowed."));return}d(e[0])}}),[v,{isLoading:b}]=(0,g.JQ)(),w=async()=>{if(c){let e=await v({assetType:o,file:c});if((0,h.D4)(e)){p((0,y.Vo)((0,h.e$)(e.error)));return}p((0,y.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)(x.Z,{href:"https://raw.githubusercontent.com/ethyca/fides/main/clients/fides-js/src/components/fides.css",children:"here"}),"."," ",(0,i.jsx)(x.Z,{href:"https://fid.es/customize-styles",children:"Learn more"}),"."]}),(0,i.jsxs)(n.xuv,{...m(),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"})]})]})]})},j=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)(m,{isOpen:s.isOpen,onClose:s.onClose,assetType:t})]})},f=s(72625),v=s(32222),b=s(94315);let w=e=>{var t;let s=null!==(t=v.J.get(e))&&void 0!==t?t:e;return(0,i.jsx)(f.G3,{value:s})},C=e=>{let{row:t,getValue:s}=e,[n]=(0,b.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)(f.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 T=s(88340),_=s(25980),S=s(14048);let R="{privacy-center-hostname-and-path}",P='<script src="https://'.concat(R,'/fides.js"></script>'),k="<script>Fides.gtm()</script>";var E=()=>{let e=(0,n.qY0)(),t=(0,a.useRef)(null),{fidesCloud:s}=(0,_.hz)(),{data:r,isSuccess:o}=(0,g.Vh)(void 0,{skip:!s}),l=(0,a.useMemo)(()=>s&&o&&(null==r?void 0:r.privacy_center_url)?P.replace(R,r.privacy_center_url):P,[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)(S.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)(T.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:k}),(0,i.jsx)(T.Z,{copyText:k})]}),(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"})]})]})})]})]})]})},z=s(22286),I=s(16643);let M={items:[],total:0,page:1,size:25,pages:1},O=()=>(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:()=>{window.location.href="".concat(d.w0,"/new")},size:"small",type:"primary","data-testid":"add-privacy-experience-btn",children:"Create new experience"})]}),D=(0,o.Cl)(),F=()=>{let{isLoading:e}=(0,g.x8)(),t=(0,p.Tg)([I.Sh.PRIVACY_EXPERIENCE_UPDATE]),{PAGE_SIZES:s,pageSize:r,setPageSize:u,onPreviousPageClick:x,isPreviousPageDisabled:h,onNextPageClick:y,isNextPageDisabled:m,startRange:f,endRange:v,pageIndex:T,setTotalPages:_}=(0,c.oi)(),{isFetching:S,isLoading:R,data:P}=(0,b.cq)({page:T,size:r}),{items:k,total:F,pages:N}=(0,a.useMemo)(()=>P||M,[P]);(0,a.useEffect)(()=>{_(N)},[N,_]);let V=(0,a.useMemo)(()=>[D.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})}),D.accessor(e=>e.component,{id:"component",cell:e=>w(e.getValue()),header:e=>(0,i.jsx)(c.Rr,{value:"Component",...e})}),D.accessor(e=>e.regions,{id:"regions",cell:e=>(0,i.jsx)(c.WP,{suffix:"Locations",value:(0,z.JL)(e.getValue()),...e}),header:e=>(0,i.jsx)(c.Rr,{value:"Locations",...e}),meta:{showHeaderMenu:!0}}),D.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}}),D.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})}),t&&D.accessor(e=>e.disabled,{id:"enable",cell:C,header:e=>(0,i.jsx)(c.Rr,{value:"Enable",...e}),meta:{disableRowClick:!0}})].filter(Boolean),[t]),W=(0,l.b7)({getCoreRowModel:(0,o.sC)(),getGroupedRowModel:(0,o.qe)(),getExpandedRowModel:(0,o.rV)(),columns:V,manualPagination:!0,data:k,state:{expanded:!0},columnResizeMode:"onChange"});return R||e?(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:[t&&(0,i.jsxs)(c.Q$,{children:[(0,i.jsxs)(n.Ugi,{alignItems:"center",spacing:2,children:[(0,i.jsx)(E,{}),(0,i.jsx)(p.ZP,{scopes:[I.Sh.CUSTOM_ASSET_UPDATE],children:(0,i.jsx)(j,{assetType:I.Db.CUSTOM_FIDES_CSS})})]}),(0,i.jsx)(n.wpx,{onClick:()=>{window.location.href="".concat(d.w0,"/new")},type:"primary","data-testid":"add-privacy-experience-btn",children:"Create new experience"})]}),(0,i.jsx)(c.ZK,{tableInstance:W,onRowClick:t?e=>{let{id:s}=e;t&&(window.location.href="".concat(d.w0,"/").concat(s))}:void 0,emptyTableNotice:(0,i.jsx)(O,{})}),(0,i.jsx)(c.s8,{totalRows:F||0,pageSizes:s,setPageSize:u,onPreviousPageClick:x,isPreviousPageDisabled:h||S,onNextPageClick:y,isNextPageDisabled:m||S,startRange:f,endRange:v})]})})};var N=()=>(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)(F,{})})]})}},function(e){e.O(0,[8033,6060,5277,4481,6853,2888,9774,179],function(){return e(e.s=55173)}),_N_E=e.O()}]);
@@ -1 +0,0 @@
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(91922),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(91922),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(91922),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(16643);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,4481,6853,2888,9774,179],function(){return e(e.s=81575)}),_N_E=e.O()}]);
@@ -1 +0,0 @@
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,s=a?i:-1,o=Object(n);(a?s--:++s<i)&&!1!==t(o[s],s,o););return n}}},18911:function(e){e.exports=function(e){return function(a,n,r){for(var t=-1,i=Object(a),s=r(a),o=s.length;o--;){var l=s[e?o:++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),s=n(19785);e.exports=function(e,a){return(s(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),s=n(19785),o=n(80068),l=n(43854),_=n(56016),c=n(48519),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(o(e)&&(s(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(91922),i=n(88038),s=n.n(i);n(27378),a.Z=e=>{let{children:a,title:n,mainProps:i}=e;return(0,r.jsxs)(t.kCb,{"data-testid":n,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,r.jsxs)(s(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsx)(t.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...i,children:a})]})}},58754:function(e,a,n){"use strict";var r=n(24246),t=n(91922),i=n(70788);a.Z=e=>{let{heading:a,breadcrumbItems:n,isSticky:s=!0,children:o,rightContent:l,style:_,...c}=e;return(0,r.jsxs)("div",{...c,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",..._}:{paddingBottom:"24px",..._},children:[(0,r.jsxs)(t.jqI,{justify:"space-between",children:["string"==typeof a?(0,r.jsx)(t.lQT,{className:n||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:a}):a,l&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,r.jsx)(i.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},70788:function(e,a,n){"use strict";n.d(a,{m:function(){return _}});var r=n(24246),t=n(91922),i=n(79894),s=n.n(i),o=n(27378);let{Text:l}=t.AntTypography,_=e=>{let{items:a,...n}=e,i=(0,o.useMemo)(()=>null==a?void 0:a.map((e,n)=>{let i=n===a.length-1,o={...e},_=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,r.jsx)(l,{style:{color:"inherit",maxWidth:i?void 0:400},ellipsis:!i,children:o.title})),_)?o.title=(0,r.jsx)(t.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,r.jsx)(s(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[a]);return(0,r.jsx)(t.zrq,{items:i,...n})}},8411:function(e,a,n){"use strict";n.d(a,{NA:function(){return i},Z8:function(){return t}});var r=n(16643);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"},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),s=n(27693),o=n.n(s),l=n(91922),_=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(16643);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 E=(0,i.Cl)();var R=()=>{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)(()=>[E.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}),E.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}),E.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,[s,o]=(0,_.useState)(!1),[c,d]=(0,_.useState)(),[F]=x(),p=(0,l.pmc)();(0,_.useEffect)(()=>{a||(d(void 0),o(!1))},[a]);let h=async e=>{o(!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),o(!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}=R(),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:s})})}),(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:s,isDownloadingReport:o}=w(),_=async()=>{await s({startDate:t,endDate:i}),n()};return(0,r.jsxs)(l.u_l,{id:"consent-report-download-modal",isOpen:a,onClose:n,size:"xl",returnFocusOnClose:!1,isCentered:!0,children:[(0,r.jsx)(l.ZAr,{}),(0,r.jsxs)(l.hzk,{children:[(0,r.jsx)(l.olH,{}),(0,r.jsx)(l.xBx,{pb:2,children:"Download consent report"}),(0,r.jsxs)(l.fef,{children:[(0,r.jsx)(l.AntTypography.Paragraph,{children:"The downloaded CSV may differ from the UI in Fides, including column order and naming."}),(0,r.jsx)(l.AntTypography.Paragraph,{children:'For large datasets, file generation may take a few minutes after selecting "Download".'}),(0,r.jsx)(l.jqI,{justify:"flex-end",children:(0,r.jsx)(l.wpx,{loading:o,onClick:_,"data-testid":"download-report-btn",type:"primary",className:"mb-2",children:"Download"})})]})]})]})},G=e=>{let{isOpen:a,onClose:n,tcfPreferences:s}=e,{tcfColumns:o,mapTcfPreferencesToRowColumns:_,filterTcfConsentPreferences:c}=R(),d=c(_(s)),F=(0,t.b7)({getCoreRowModel:(0,i.sC)(),data:d||[],columns:o,getRowId:e=>"".concat(e.key,"-").concat(e.id),manualPagination:!0});return(0,r.jsxs)(l.u_l,{id:"consent-lookup-modal",isOpen:a,onClose:n,size:"4xl",returnFocusOnClose:!1,isCentered:!0,children:[(0,r.jsx)(l.ZAr,{}),(0,r.jsxs)(l.hzk,{"data-testid":"consent-tcf-detail-modal",children:[(0,r.jsx)(l.olH,{}),(0,r.jsx)(l.xBx,{pb:2,children:"TCF Consent Details"}),(0,r.jsx)(l.fef,{children:(0,r.jsx)("div",{className:"mb-4",children:(0,r.jsx)(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(),s=i&&y[i]||i,o=i&&b[i]||"",_="tcf"===i&&t.original.tcf_preferences;return(0,r.jsx)(l.jqI,{align:"center",children:(0,r.jsx)(u.A4,{color:o,value:s,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.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)(()=>o()(),[]),[n,s]=(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:E}=(0,_.useMemo)(()=>{let e=A||{items:[],total:0,pages:0};return I(e.pages),e},[A,I]),R=L({onTcfDetailViewClick:e=>{j(!0),y(e)}}),w=(0,t.b7)({getCoreRowModel:(0,i.sC)(),data:T,columns:R,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=>{s(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)}),(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:E||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,4481,2888,9774,179],function(){return e(e.s=15806)}),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4231],{95372:function(e){e.exports=function(e,t,s,a){for(var i=e.length,n=s+(a?1:-1);a?n--:++n<i;)if(t(e[n],n,e))return n;return -1}},74833:function(e,t,s){var a=s(56127),i=/^\s+/;e.exports=function(e){return e?e.slice(0,a(e)+1).replace(i,""):e}},56632:function(e,t,s){var a=s(89278),i=s(80068),n=s(50098);e.exports=function(e){return function(t,s,r){var l=Object(t);if(!i(t)){var o=a(s,3);t=n(t),s=function(e){return o(l[e],e,l)}}var d=e(t,s,r);return d>-1?l[o?t[d]:d]:void 0}}},56127:function(e){var t=/\s/;e.exports=function(e){for(var s=e.length;s--&&t.test(e.charAt(s)););return s}},64925:function(e,t,s){var a=s(56632)(s(66259));e.exports=a},66259:function(e,t,s){var a=s(95372),i=s(89278),n=s(47991),r=Math.max;e.exports=function(e,t,s){var l=null==e?0:e.length;if(!l)return -1;var o=null==s?0:n(s);return o<0&&(o=r(l+o,0)),a(e,i(t,3),o)}},94919:function(e,t,s){var a=s(91936),i=1/0;e.exports=function(e){return e?(e=a(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,s){var a=s(94919);e.exports=function(e){var t=a(e),s=t%1;return t==t?s?t-s:t:0}},91936:function(e,t,s){var a=s(74833),i=s(11611),n=s(55193),r=0/0,l=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,d=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(n(e))return r;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=a(e);var s=o.test(e);return s||d.test(e)?c(e.slice(2),s?2:8):l.test(e)?r:+e}},66248:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog",function(){return s(99375)}])},77213:function(e,t,s){"use strict";s.d(t,{Z:function(){return p}});var a=s(24246),i=s(91922),n=s(88038),r=s.n(n),l=s(86677);s(27378);var o=s(25980),d=s(90867),c=s(77830),u=()=>{let e=(0,l.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."," "]})]})})},p=e=>{let{children:t,title:s,padded:n=!0,mainProps:c}=e,p=(0,o.hz)(),m=(0,l.useRouter)(),x="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,f=!(p.flags.privacyRequestsConfiguration&&x),{data:h}=(0,d.JE)(void 0,{skip:f}),{data:v}=(0,d.PW)(void 0,{skip:f}),g=p.flags.privacyRequestsConfiguration&&(!h||!v)&&x;return(0,a.jsxs)(i.kCb,{"data-testid":s,direction:"column",h:"100vh",children:[(0,a.jsxs)(r(),{children:[(0,a.jsxs)("title",{children:["Fides Admin UI - ",s]}),(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,t]})]})}},58754:function(e,t,s){"use strict";var a=s(24246),i=s(91922),n=s(70788);t.Z=e=>{let{heading:t,breadcrumbItems:s,isSticky:r=!0,children:l,rightContent:o,style:d,...c}=e;return(0,a.jsxs)("div",{...c,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,a.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,a.jsx)(i.lQT,{className:s||l?"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})]}),!!s&&(0,a.jsx)(n.m,{className:l?"pb-4":void 0,items:s,"data-testid":"page-breadcrumb"}),l]})}},79789:function(e,t,s){"use strict";s.d(t,{Hn:function(){return l},XU:function(){return r},Z5:function(){return o},aG:function(){return u},cB:function(){return n},hX:function(){return c},vQ:function(){return d}});var a=s(24246),i=s(91922);let n=e=>{let{text:t,...s}=e;return(0,a.jsx)(i.X6q,{fontSize:"sm",mt:4,mb:1,...s,children:t})},r=e=>{let{children:t}=e;return(0,a.jsx)(i.xvT,{fontSize:"14px",mb:4,children:t})},l=e=>{let{children:t,href:s}=e;return(0,a.jsx)(i.rUS,{href:s,textDecoration:"underline",isExternal:!0,children:t})},o=e=>{let{children:t}=e;return(0,a.jsx)(i.QI$,{fontSize:"14px",mb:4,children:t})},d=e=>{let{children:t}=e;return(0,a.jsx)(i.GSI,{fontSize:"14px",mb:4,ml:6,children:t})},c=e=>{let{children:t}=e;return(0,a.jsx)(i.EKh,{display:"block",whiteSpace:"pre",p:4,mb:4,overflowX:"scroll",children:t})},u=e=>{let{data:t}=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:t.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,t,s){"use strict";var a=s(24246),i=s(79283),n=s(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:s=!1,...r}=e,{getDataUseDisplayNameProps:l,getDataUses:o}=(0,n.Z)(),d=(s?o():o().filter(e=>e.active)).filter(e=>!t.includes(e.fides_key)).map(e=>{let{name:t,primaryName:s}=l(e.fides_key);return{value:e.fides_key,name:t,primaryName:s,description:e.description||""}});return(0,a.jsx)(i.l,{options:d,...r})}},79283:function(e,t,s){"use strict";s.d(t,{l:function(){return o}});var a=s(24246),i=s(91922),n=s(72707),r=s.n(n);let l=e=>{let{data:t}=e;return(0,a.jsxs)(i.jqI,{gap:12,title:"".concat(t.primaryName||"").concat(t.primaryName?": ":"").concat(t.name," - ").concat(t.description),children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:t.primaryName||t.name}),t.primaryName&&": ".concat(t.name)]}),(0,a.jsx)("em",{children:t.description})]})},o=e=>{let{options:t,...s}=e,n=null==t?void 0:t.map(e=>({...e,className:r().option}));return(0,a.jsx)(i.WPr,{options:n,autoFocus:!0,variant:"borderless",optionRender:l,dropdownStyle:{minWidth:"500px"},className:"w-full p-0","data-testid":"taxonomy-select",...s})}},97181:function(e,t,s){"use strict";s.d(t,{d:function(){return d}});var a=s(24246),i=s(91922),n=s(34090),r=s(27378),l=s(46238),o=s(40324);let d=e=>{let{name:t,label:s,labelProps:d,tooltip:c,isRequired:u,layout:p="inline",helperText:m,...x}=e,[f,h,{setValue:v}]=(0,n.U$)(t),g=!!(h.touched&&h.error),[j,y]=(0,r.useState)("");f.value||"tags"!==x.mode&&"multiple"!==x.mode||(f.value=[]),"tags"===x.mode&&"string"==typeof f.value&&(f.value=[f.value]);let b="tags"===x.mode?(e,t)=>e?e.value!==j||f.value.includes(j)?x.optionRender?x.optionRender(e,t):e.label:'Create "'.concat(j,'"'):void 0:x.optionRender||void 0,_=e=>{y(e),x.onSearch&&x.onSearch(e)},w=(e,t)=>{v(e),x.onChange&&x.onChange(e,t)};return"inline"===p?(0,a.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,a.jsxs)(i.rjZ,{templateColumns:s?"1fr 3fr":"1fr",children:[s?(0,a.jsx)(o.__,{htmlFor:x.id||t,...d,children:s}):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,{...f,id:x.id||t,"data-testid":"controlled-select-".concat(f.name),...x,optionRender:b,onSearch:"tags"===x.mode?_:void 0,onChange:w,value:f.value||void 0,status:g?"error":void 0}),m&&(0,a.jsx)(i.Q6r,{children:m}),(0,a.jsx)(o.Bc,{isInvalid:g,message:h.error,fieldName:f.name})]}),(0,a.jsx)(l.b,{label:c})]})]})}):(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:[s?(0,a.jsx)(o.__,{htmlFor:x.id||t,fontSize:"xs",my:0,mr:1,...d,children:s}):null,(0,a.jsx)(l.b,{label:c})]}),(0,a.jsx)(i.WPr,{...f,id:x.id||t,"data-testid":"controlled-select-".concat(f.name),...x,optionRender:b,onSearch:"tags"===x.mode?_:void 0,onChange:w,value:f.value||void 0,status:g?"error":void 0}),m&&(0,a.jsx)(i.Q6r,{style:{marginTop:0},children:m}),(0,a.jsx)(o.Bc,{isInvalid:g,message:h.error,fieldName:f.name})]})})}},34929:function(e,t,s){"use strict";var a=s(24246),i=s(64925),n=s.n(i),r=s(27378),l=s(16134),o=s(30002),d=s(28079),c=s(57072);let u=()=>{let{isLoading:e}=(0,d.fd)(),t=(0,l.C)(d.U3),{isLoading:s}=(0,c.MO)(),a=(0,l.C)(c.qb),{isLoading:i}=(0,o.te)();return{dataUses:t,dataSubjects:(0,l.C)(o.ZL),dataCategories:a,isLoading:e||s||i}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:s,isLoading:i}=u(),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},o=function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=t(e);if(!a)return{};let i=t(l(e,s)),n=!!a.parent_key;return{name:a.name||void 0,primaryName:n&&(null==i?void 0:i.name)!==a.name&&(null==i?void 0:i.name)||void 0}},d=function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:i,primaryName:n}=o(e,t,s);return i?n?(0,a.jsxs)(r.Fragment,{children:[(0,a.jsxs)("strong",{children:[n,":"]})," ",i]},e):(0,a.jsx)("strong",{children:i},e):e},c=t=>n()(e,{fides_key:t}),p=e=>n()(t,{fides_key:e}),m=e=>n()(s,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:c,getDataUseDisplayName:e=>d(e,c,1),getDataUseDisplayNameProps:e=>o(e,c,1),getDataCategories:()=>t,getDataCategoryByKey:p,getDataCategoryDisplayName:e=>d(e,p,2),getDataCategoryDisplayNameProps:e=>o(e,p,2),getDataSubjects:()=>s,getDataSubjectByKey:m,getDataSubjectDisplayName:e=>{let t=m(e);return t?t.name:e},getPrimaryKey:l,isLoading:i}}},8133:function(e,t,s){"use strict";var a=s(24246),i=s(91922);t.Z=e=>{let{title:t,children:s,isOpen:n,onClose:r,...l}=e;return(0,a.jsxs)(i.u_l,{isOpen:n,onClose:r,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...l,children:[(0,a.jsx)(i.ZAr,{}),(0,a.jsxs)(i.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",children:[(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:t})})}),(0,a.jsx)(i.fef,{pb:4,overflow:"auto",children:s})]})]})}},70788:function(e,t,s){"use strict";s.d(t,{m:function(){return d}});var a=s(24246),i=s(91922),n=s(79894),r=s.n(n),l=s(27378);let{Text:o}=i.AntTypography,d=e=>{let{items:t,...s}=e,n=(0,l.useMemo)(()=>null==t?void 0:t.map((e,s)=>{let n=s===t.length-1,l={...e},d=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,a.jsx)(o,{style:{color:"inherit",maxWidth:n?void 0:400},ellipsis:!n,children:l.title})),d)?l.title=(0,a.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,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,a.jsx)(r(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,a.jsx)(i.zrq,{items:n,...s})}},79609:function(e,t,s){"use strict";s.d(t,{N4:function(){return r},UG:function(){return i},xw:function(){return n}});var a=s(54427);let{useGetCatalogSystemsQuery:i,useGetCatalogProjectsQuery:n,useGetCatalogDatasetsQuery:r}=s(78780).u.injectEndpoints({endpoints:e=>({getCatalogSystems:e.query({query:e=>({method:"GET",url:"/plus/data-catalog/system",params:e}),providesTags:["Catalog Systems","System"]}),getCatalogProjects:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/project",params:t}},providesTags:["Discovery Monitor Results"]}),getCatalogDatasets:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/dataset",params:t}},providesTags:["Discovery Monitor Results"]})})});(0,a.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},81406:function(e,t,s){"use strict";var a=s(24246),i=s(91922);t.Z=()=>(0,a.jsxs)(i.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:[(0,a.jsx)(i.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"}),(0,a.jsx)(i.xvT,{fontSize:"sm",children:"You're up to date!"})]})},26183:function(e,t,s){"use strict";var a=s(24246);s(27378),t.Z=e=>{let{children:t,className:s,...i}=e;return(0,a.jsx)("div",{className:"relative flex w-full flex-wrap items-center gap-2 overflow-x-auto py-2 ".concat(s||""),...i,children:t})}},3765:function(e,t,s){"use strict";var a=s(91922),i=s(812),n=s(46628),r=s(1315),l=s(31883);t.Z=e=>{let t=(0,a.pmc)(),[s]=(0,r.qQ)(),o=s=>!!e.privacy_declarations.find(e=>e.data_use===s.data_use&&e.name===s.name)&&(t((0,n.Vo)("A declaration already exists with that data use in this system. Please supply a different data use.")),!0),d=(e,s)=>{if((0,l.D4)(e)){let s=(0,i.e$)(e.error,"An unexpected error occurred while updating the system. Please try again.");t((0,n.Vo)(s));return}return t.closeAll(),t((0,n.t5)(s?"Data use deleted":"Data use saved")),e.data.privacy_declarations},c=async(t,a)=>{let i=t.map(e=>{var t;return{...e,name:null!==(t=e.name)&&void 0!==t?t:""}}),n={...e,privacy_declarations:i};return d(await s(n),a)};return{createDataUse:async s=>{if(!o(s))return t.closeAll(),c([...e.privacy_declarations,s])},updateDataUse:async(t,s)=>{if(!(s.id!==t.id&&o(s)))return c(e.privacy_declarations.map(e=>e.id===t.id?s:e))},deleteDataUse:async t=>c(e.privacy_declarations.filter(e=>e.id!==t.id),!0),deleteDeclarationByDataUse:async t=>c(e.privacy_declarations.filter(e=>e.data_use!==t),!0)}}},54748:function(e,t,s){"use strict";var a=s(27378),i=s(16643);t.Z=()=>({legalBasisOptions:(0,a.useMemo)(()=>Object.keys(i.gP).map(e=>({value:i.gP[e],label:i.gP[e]})),[])})},28325:function(e,t,s){"use strict";var a=s(27378),i=s(16643);t.Z=()=>({specialCategoryLegalBasisOptions:(0,a.useMemo)(()=>Object.keys(i.nV).map(e=>({value:i.nV[e],label:i.nV[e]})),[])})},99375:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return M}});var a=s(24246),i=s(77213),n=s(58754),r=s(92222),l=s(59003),o=s(86677),d=s(27378),c=s(77830),u=s(14481),p=s(16394),m=s(79609),x=s(81406),f=s(91922),h=s(79789),v=s(83099),g=s(34929),j=s(34090),y=s(55484),b=s(97181),_=s(40324),w=s(8133),C=s(54748),k=s(28325),N=s(34151),S=s.n(N);let D=y.Ry().shape({data_use:y.Z_().required("Data use is required")});var R=e=>{let{isOpen:t,onClose:s,onSave:i,declaration:n}=e,{getDataUses:r,getDataCategories:l,getDataSubjects:o}=(0,g.Z)(),{isOpen:d,onToggle:c}=(0,f.qY0)(),u=r().map(e=>({label:e.fides_key,value:e.fides_key})),p=l().map(e=>({label:e.fides_key,value:e.fides_key})),m=o().map(e=>({label:e.fides_key,value:e.fides_key})),{legalBasisOptions:x}=(0,C.Z)(),{specialCategoryLegalBasisOptions:h}=(0,k.Z)();return(0,a.jsx)(j.J9,{initialValues:n,enableReinitialize:!0,onSubmit:e=>{i(e),s()},validationSchema:D,children:e=>{let{dirty:i,isValid:n,values:r,resetForm:l}=e;return(0,a.jsx)(w.Z,{title:"Edit data use",isOpen:t,onClose:s,children:(0,a.jsxs)(j.l0,{children:[(0,a.jsxs)(f.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:p,mode:"multiple",layout:"stacked"}),(0,a.jsx)(b.d,{name:"data_subjects",label:"Data subjects",options:m,mode:"multiple",layout:"stacked"}),(0,a.jsx)(_.j0,{name:"name",label:"Declaration name",variant:"stacked"}),(0,a.jsxs)(f.jqI,{vertical:!0,className:"gap-6 p-4 ".concat(S().advancedSettings),children:[(0,a.jsxs)(f.jqI,{className:"cursor-pointer justify-between",onClick:c,children:[(0,a.jsx)(f.xvT,{fontSize:"xs",children:"Advanced settings"}),(0,a.jsx)(f.v4q,{className:d?"rotate-180":void 0})]}),(0,a.jsx)(f.UO1,{in:d,children:(0,a.jsxs)(f.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)(f.UO1,{in:(null==r?void 0:r.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)(f.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)(f.UO1,{in:null==r?void 0:r.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:h,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)(f.wpx,{onClick:()=>{l(),s()},children:"Cancel"}),(0,a.jsx)(f.wpx,{type:"primary",htmlType:"submit",disabled:!i||!n,loading:!1,"data-testid":"save-btn",children:"Save"})]})]})})}})},q=s(26183),T=s(3765);let z=e=>({data_use:e,data_categories:["system"]});var I=e=>{var t,s;let{system:i}=e,[n,r]=(0,d.useState)(!1),[l,o]=(0,d.useState)(void 0),{getDataUseDisplayName:c}=(0,g.Z)(),{isOpen:u,onOpen:p,onClose:m}=(0,f.qY0)(),x=e=>{o(e),p()},{createDataUse:h,deleteDeclarationByDataUse:j,updateDataUse:y}=(0,T.Z)(i),b=null!==(s=null===(t=i.privacy_declarations)||void 0===t?void 0:t.map(e=>e.data_use))&&void 0!==s?s:[];return(0,a.jsxs)(q.Z,{children:[!n&&(0,a.jsxs)(a.Fragment,{children:[b.map((e,t)=>(0,a.jsxs)(f.j8w,{"data-testid":"data-use-".concat(e),color:"white",onClick:()=>x(i.privacy_declarations[t]),closable:!0,onClose:()=>j(e),closeButtonLabel:"Remove data use",children:[(0,a.jsx)(f.PJP.I8b,{size:10}),c(e)]},e)),(0,a.jsx)(f.j8w,{onClick:()=>r(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"}),(0,a.jsx)(R,{isOpen:u,onClose:m,onSave:e=>y(l,e),declaration:l})]}),n&&(0,a.jsx)(f.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=>{h(z(e)),r(!1)},selectedTaxonomies:b,onBlur:()=>r(!1),open:!0})})]})},P=e=>{var t;let{system:s,onEdit:i,onClose:n}=e;return(0,a.jsxs)(f.dys,{isOpen:!!s,onClose:n,size:"md",children:[(0,a.jsx)(f.P1B,{}),(0,a.jsxs)(f.scA,{"data-testid":"system-details",children:[(0,a.jsx)(f.OXI,{children:(null==s?void 0:s.name)||(null==s?void 0:s.fides_key)}),(0,a.jsx)(f.cCv,{}),(0,a.jsxs)(f.Ng0,{children:[(0,a.jsx)(h.cB,{text:"Title",mt:0}),(0,a.jsx)(h.XU,{children:null!==(t=null==s?void 0:s.name)&&void 0!==t?t:null==s?void 0:s.fides_key}),(null==s?void 0:s.description)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.cB,{text:"Description"}),(0,a.jsx)(h.XU,{children:null==s?void 0:s.description})]}),(0,a.jsx)(h.cB,{text:"Data uses"}),(0,a.jsx)(I,{system:s})]}),(0,a.jsx)(f.zeN,{children:(0,a.jsx)(f.wpx,{onClick:i,"data-testid":"edit-system-btn",children:"Edit system"})})]})]})},Z=e=>{let{onDetailClick:t}=e;return(0,a.jsxs)(f.v2r,{children:[(0,a.jsx)(f.j2t,{as:f.wpx,size:"small",type:"text",className:"max-w-4",icon:(0,a.jsx)(f.nXP,{transform:"rotate(90deg)",ml:2}),"data-testid":"system-actions-menu"}),(0,a.jsx)(f.qyq,{children:t&&(0,a.jsx)(f.sNh,{onClick:t,"data-testid":"view-system-details",children:"View details"})})]})},O=s(70675);let B={items:[],total:0,page:1,size:50,pages:1},U=(0,r.Cl)();var E=()=>{let[e,t]=(0,d.useState)({}),s=(0,o.useRouter)(),{PAGE_SIZES:i,pageSize:n,setPageSize:f,onPreviousPageClick:h,isPreviousPageDisabled:v,onNextPageClick:g,isNextPageDisabled:j,startRange:y,endRange:b,pageIndex:_,setTotalPages:w}=(0,u.oi)(),{data:C,isLoading:k}=(0,m.UG)({page:_,size:n,show_hidden:!1}),[N]=(0,O.j3)(),{items:S,total:D,pages:R}=(0,d.useMemo)(()=>null!=C?C:B,[C]);(0,d.useEffect)(()=>{w(R)},[R,w]);let[q,T]=(0,d.useState)(void 0),z=(0,d.useMemo)(()=>S.find(e=>e.fides_key===q),[S,q]),E=async e=>{var t,a;let i=await N({connection_config_key:e.connection_configs.key,page:1,size:1}),n=!!(null==i?void 0:null===(t=i.data)||void 0===t?void 0:t.total),r=(0,p.du)(null!==(a=e.monitor_config_keys)&&void 0!==a?a:[],"monitor_config_ids"),l="".concat(c.mX,"/").concat(e.fides_key,"/").concat(n?"projects":"resources","?").concat(r);s.push(l)},M=(0,d.useMemo)(()=>[U.accessor(e=>e.name,{id:"name",cell:e=>{var t;let{getValue:s,row:i}=e;return(0,a.jsx)(u.G3,{value:s(),fontWeight:(null===(t=i.original.connection_configs)||void 0===t?void 0:t.key)?"semibold":"normal"})},header:e=>(0,a.jsx)(u.Rr,{value:"Name",...e})}),U.display({id:"data-uses",cell:e=>{let{row:t}=e;return(0,a.jsx)(I,{system:t.original})},header:e=>(0,a.jsx)(u.Rr,{value:"Data uses",...e}),meta:{disableRowClick:!0},minSize:280}),U.display({id:"actions",cell:e=>(0,a.jsx)(Z,{onDetailClick:()=>T(e.row.original.fides_key)}),maxSize:20,enableResizing:!1,meta:{cellProps:{borderLeft:"none"},disableRowClick:!0}})],[]),A=(0,l.b7)({getCoreRowModel:(0,r.sC)(),getGroupedRowModel:(0,r.qe)(),getExpandedRowModel:(0,r.rV)(),getRowId:e=>e.fides_key,manualPagination:!0,columnResizeMode:"onChange",columns:M,data:S,onRowSelectionChange:t,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:E,getRowIsClickable:e=>{var t;return!!(null===(t=e.connection_configs)||void 0===t?void 0:t.key)}}),(0,a.jsx)(u.s8,{totalRows:D||0,pageSizes:i,setPageSize:f,onPreviousPageClick:h,isPreviousPageDisabled:v,onNextPageClick:g,isNextPageDisabled:j,startRange:y,endRange:b}),(0,a.jsx)(P,{system:z,onClose:()=>T(void 0),onEdit:()=>s.push({pathname:c.Dv,query:{id:q}})})]})},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)(E,{})]})},31883:function(e,t,s){"use strict";s.d(t,{Bw:function(){return a.Bw},D4:function(){return a.D4}});var a=s(19043)},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}},34151:function(e){e.exports={advancedSettings:"EditMinimalDataUseModal_advancedSettings___i9jS"}}},function(e){e.O(0,[8033,6060,2858,2866,9278,4481,2888,9774,179],function(){return e(e.s=66248)}),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4154],{58095:function(e,t,s){var n=s(8817);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},21796:function(e){e.exports=function(e,t,s){for(var n=-1,a=null==e?0:e.length;++n<a;)if(s(t,e[n]))return!0;return!1}},8817:function(e,t,s){var n=s(95372),a=s(1129),r=s(58263);e.exports=function(e,t,s){return t==t?r(e,t,s):n(e,a,s)}},1129:function(e){e.exports=function(e){return e!=e}},92198:function(e,t,s){var n=s(52485),a=s(58095),r=s(21796),i=s(65581),o=s(47111),l=s(43735);e.exports=function(e,t,s){var d=-1,c=a,u=e.length,m=!0,g=[],h=g;if(s)m=!1,c=r;else if(u>=200){var y=t?null:o(e);if(y)return l(y);m=!1,c=i,h=new n}else h=t?[]:g;e:for(;++d<u;){var v=e[d],f=t?t(v):v;if(v=s||0!==v?v:0,m&&f==f){for(var p=h.length;p--;)if(h[p]===f)continue e;t&&h.push(f),g.push(v)}else c(h,f,s)||(h!==g&&h.push(f),g.push(v))}return g}},47111:function(e,t,s){var n=s(46151),a=s(50344),r=s(43735),i=n&&1/r(new n([,-0]))[1]==1/0?function(e){return new n(e)}:a;e.exports=i},58263:function(e){e.exports=function(e,t,s){for(var n=s-1,a=e.length;++n<a;)if(e[n]===t)return n;return -1}},50344:function(e){e.exports=function(){}},83766:function(e,t,s){var n=s(92198);e.exports=function(e){return e&&e.length?n(e):[]}},25654:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/[monitorId]/[systemId]",function(){return s(52641)}])},35287:function(e,t,s){"use strict";var n=s(24246),a=s(91922),r=s(88038),i=s.n(r);s(27378),t.Z=e=>{let{children:t,title:s,mainProps:r}=e;return(0,n.jsxs)(a.kCb,{"data-testid":s,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,n.jsxs)(i(),{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)(a.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...r,children:t})]})}},45938:function(e,t,s){"use strict";s.d(t,{Gt:function(){return m},eB:function(){return g},oI:function(){return u}});var n=s(24246),a=s(34090),r=s(27378),i=s(16134),o=s(38602),l=s(58452);let d=(0,r.createRef)(),c=(0,r.createRef)(),u=()=>{let e=(0,i.T)(),t=(0,i.C)(o.DB),s=(0,r.useCallback)(()=>{c.current=void 0,d.current=void 0},[]),n=(0,r.useCallback)(()=>{e((0,o.Mr)()),c.current&&(c.current(!0),s())},[e,s]),a=(0,r.useCallback)(()=>{e((0,o.Mr)()),c.current&&(c.current(!1),s())},[e,s]);return{attemptAction:(0,r.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:a}},m=e=>{let{id:t,name:s}=e,{dirty:n}=(0,a.u6)(),l=(0,i.T)();return(0,r.useEffect)(()=>(l((0,o.Zu)({id:t,name:s})),()=>{l((0,o.dz)({id:t}))}),[l,t,s]),(0,r.useEffect)(()=>{l((0,o.$p)({id:t,isDirty:n}))},[n,l,t]),null},g=()=>{let{onConfirm:e,onClose:t}=u(),s=(0,i.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 g},EY:function(){return c},Ud:function(){return r},Vr:function(){return h},WJ:function(){return o},nP:function(){return d},nS:function(){return u},rs:function(){return l},sX:function(){return m},wi:function(){return i}});var n=s(78780),a=s(16394);let{useGetAggregateMonitorResultsQuery:r,useGetDiscoveredSystemAggregateQuery:i,useGetDiscoveredAssetsQuery:o,useAddMonitorResultSystemsMutation:l,useIgnoreMonitorResultSystemsMutation:d,useAddMonitorResultAssetsMutation:c,useIgnoreMonitorResultAssetsMutation:u,useUpdateAssetsSystemMutation:m,useUpdateAssetsDataUseMutation:g,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:a,diff_status:r}=e;return{url:"/plus/discovery-monitor/system-aggregate-results",params:{monitor_config_id:t,page:s,size:n,search:a,diff_status:r}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredAssets:e.query({query:e=>{let{key:t,system:s,page:n=1,size:a=20,search:r,diff_status:i}=e;return{url:"/plus/discovery-monitor/".concat(t,"/results"),params:{resolved_system_id:s,page:n,size:a,search:r,diff_status:i,sort_by:"urn"}}},providesTags:()=>["Discovery Monitor Results"]}),addMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:s}=e,n=(0,a.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,a.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"]}),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";var n=s(86677),a=s(27378),r=s(16643);let i={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(i).find(e=>e.hash===t)},l=e=>Object.values(i).find(t=>t.index===e);t.Z=e=>{var t;let{systemId:s,initialHash:d}=e,c=(0,n.useRouter)(),[u,m]=(0,a.useState)(d?null===(t=o(d))||void 0===t?void 0:t.index:i.ATTENTION_REQUIRED.index),g=(0,a.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]),h=[{label:"Attention required",params:{diff_status:[r.LL.ADDITION],system:s}},{label:"Recent activity",params:{diff_status:[r.LL.MONITORED]}},{label:"Ignored",params:{diff_status:[r.LL.MUTED],system:s}}],{diff_status:y,system:v}=h[u].params,f=y.includes(r.LL.MONITORED);return{filterTabs:h,filterTabIndex:u,onTabChange:g,activeParams:s?{diff_status:y,system:v}:{diff_status:y},actionsDisabled:f}}},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)},52641:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return H}});var n=s(24246),a=s(86677),r=s(27378),i=s(35287),o=s(77830),l=s(58754),d=s(59003),c=s(92222),u=s(91922),m=s(83766),g=s.n(m),h=s(66379),y=s(812),v=s(14047),f=s(14481),p=s(37059),x=s(8133),j=s(79283),b=s(34929),_=s(78238),w=e=>{let{selectedTaxonomies:t,...s}=e,{getDataUseDisplayNameProps:a,getDataUses:r}=(0,b.Z)(),i=r().filter(e=>e.active&&_.g.includes(e.fides_key)).map(e=>{let{name:t,primaryName:s}=a(e.fides_key);return{value:e.fides_key,name:t,primaryName:s,description:e.description||""}});return(0,n.jsx)(j.l,{options:i,...s})};let{Text:C}=u.AntTypography;var S=e=>{let{onSave:t,isSaving:s,onClose:a,...i}=e,[o,l]=(0,r.useState)([]),d=()=>{l([]),a()};return(0,n.jsxs)(x.Z,{title:"Add consent category",...i,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"})]})]})},R=s(90057),k=s(16643),T=s(30952),I=s(29850),A=s(77685);let{Text:D}=u.AntTypography,P=e=>{let{onSave:t,isSaving:s,...a}=e,[i,o]=(0,r.useState)(),[l,d]=(0,r.useState)(!1),c=(0,r.useCallback)(e=>{e.preventDefault(),d(!0)},[]),m=()=>{d(!1)},g=()=>{o(void 0),a.onClose()};return(0,n.jsxs)(x.Z,{title:"Assign system",...a,onClose:g,children:[(0,n.jsxs)(u.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,n.jsx)(D,{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:i})]})," ",(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:!i,loading:s,onClick:()=>{t(i)},"data-testid":"save-btn",children:"Save"})]}),l&&(0,n.jsx)(A.i,{isOpen:!0,onClose:m,onSuccessfulSubmit:(e,t)=>{m(),o({label:t,value:e})},toastOnSuccess:!0})]})};var L=s(8411),E=s(72625);let M=e=>{let{asset:t}=e,[s,{isLoading:a}]=(0,p.EY)(),[r,{isLoading:i}]=(0,p.nS)(),{successAlert:o,errorAlert:l}=(0,v.V)(),d=a||i,{urn:c,name:m,resource_type:g,diff_status:h}=t,f=async()=>{let e=await s({urnList:[c]});(0,y.D4)(e)?l((0,y.e$)(e.error)):o("".concat(g,' "').concat(m,'" has been added to the system inventory.'),"Confirmed")},x=async()=>{let e=await r({urnList:[c]});(0,y.D4)(e)?l((0,y.e$)(e.error)):o("".concat(g,' "').concat(m,'" has been ignored and will not appear in future scans.'),"Ignored")};return(0,n.jsxs)(u.vyj,{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:f,disabled:!t.system||d,loading:a,children:"Add"})}),h!==k.LL.MUTED&&(0,n.jsx)(u.wpx,{"data-testid":"ignore-btn",size:"small",onClick:x,disabled:d,loading:i,children:"Ignore"})]})};var N=s(26183),q=s(31883),z=e=>{var t;let{asset:s,readonly:a}=e,[i,o]=(0,r.useState)(!1),[l]=(0,p.Ak)(),{successAlert:d,errorAlert:c}=(0,v.V)(),{getDataUseDisplayName:m}=(0,b.Z)(),g=s.user_assigned_data_uses||s.data_uses||[],h=async e=>{let t=await l({monitorId:s.monitor_config_id,urnList:[s.urn],dataUses:[...g,e]});(0,q.D4)(t)?c((0,y.e$)(t.error)):d("Consent category added to ".concat(s.resource_type,' "').concat(s.name,'" .'),"Confirmed"),o(!1)},f=async e=>{let t=await l({monitorId:s.monitor_config_id,urnList:[s.urn],dataUses:g.filter(t=>t!==e)});(0,q.D4)(t)?c((0,y.e$)(t.error)):d("Consent category removed from ".concat(s.resource_type,' "').concat(s.name,'".'),"Confirmed")},x=(null===(t=s.user_assigned_data_uses)||void 0===t?void 0:t.length)?s.user_assigned_data_uses:s.data_uses,j=null==x?void 0:x.filter(e=>(0,_.Z)(e));return a?(0,n.jsx)(N.Z,{children:null==j?void 0:j.map(e=>(0,n.jsx)(u.j8w,{color:"white",children:m(e)},e))}):(0,n.jsxs)(N.Z,{children:[!i&&(0,n.jsxs)(n.Fragment,{children:[null==j?void 0:j.map(e=>(0,n.jsx)(u.j8w,{"data-testid":"data-use-".concat(e),color:"white",closable:!0,onClose:()=>f(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"})]}),i&&(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:j||[],onSelect:h,onBlur:()=>o(!1),open:!0})})]})},O=s(43862),Z=s(70675);let U=e=>{let{aggregateSystem:t,monitorConfigId:s,readonly:a}=e,{resource_type:i,name:o,urn:l,system:d,user_assigned_system_key:c,system_key:m}=t,[g,h]=(0,r.useState)(!1),[f,p]=(0,r.useState)(!1),[x,{isLoading:j}]=(0,Z.NA)(),{successAlert:b,errorAlert:_}=(0,v.V)(),w=(0,r.useCallback)(e=>{e.preventDefault(),p(!0)},[]),C=async(e,t,n)=>{let a=await x({staged_resource_urn:l,monitor_config_id:s,user_assigned_system_key:e});(0,y.D4)(a)?_((0,y.e$)(a.error)):b(n?"".concat(t," has been added to your system inventory and the ").concat(i,' "').concat(o,'" has been assigned to that system.'):"".concat(i,' "').concat(o,'" has been assigned to ').concat(t,"."),"Confirmed"),h(!1)};return a?(0,n.jsx)("div",{style:(0,O.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,O.J9)(),children:d?(0,n.jsxs)(u.j8w,{onClick:()=>h(!0),"data-testid":"system-badge",children:[d,(0,n.jsx)(u.PJP.I8b,{})]}):(0,n.jsx)(u.j8w,{onClick:()=>h(!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"&&h(!1)},onAddSystem:w,onSelect:(e,t)=>C(e,t.label),loading:j}),f&&(0,n.jsx)(A.i,{isOpen:!0,onClose:()=>{p(!1)},onSuccessfulSubmit:(e,t)=>C(e,t,!0)})]})},V=e=>{let{readonly:t}=e,s=(0,c.Cl)(),a=[s.accessor(e=>e.name,{id:"name",cell:e=>(0,n.jsx)(f.G3,{value:e.getValue()}),header:"Asset",size:300,meta:{headerProps:{paddingLeft:"0px"},cellProps:{padding:"0 !important"}}}),s.accessor(e=>e.resource_type,{id:"resource_type",cell:e=>(0,n.jsx)(f.G3,{value:e.getValue()}),header:"Type"}),s.accessor(e=>e.system,{id:"system",cell:e=>!!e.row.original.monitor_config_id&&(0,n.jsx)(U,{aggregateSystem:e.row.original,monitorConfigId:e.row.original.monitor_config_id,readonly:t}),header:"System",size:200,meta:{noPadding:!0}}),s.display({id:"data_use",cell:e=>(0,n.jsx)(z,{asset:e.row.original,readonly:t}),header:"Categories of consent",size:400,meta:{disableRowClick:!0}}),s.accessor(e=>e.locations,{id:"locations",cell:e=>(0,n.jsx)(E.mb,{values:e.getValue().map(e=>{var t;return{label:null!==(t=L.Z8[e])&&void 0!==t?t:e,key:e}}),cellProps:e}),header:"Locations",size:300,meta:{showHeaderMenu:!0,disableRowClick:!0}}),s.accessor(e=>e.domain,{id:"domain",cell:e=>(0,n.jsx)(f.G3,{value:e.getValue()}),header:"Domain"}),s.accessor(e=>e.page,{id:"page",cell:e=>(0,n.jsx)(E.tc,{values:e.getValue(),valueSuffix:"pages",cellProps:e}),header:e=>(0,n.jsx)(E.Rr,{value:"Detected on",...e}),meta:{showHeaderMenu:!0,disableRowClick:!0}})];return t?{columns:a}:{columns:[s.display({id:"select",cell:e=>{let{row:t}=e;return(0,n.jsx)(f.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)(f.k,{isChecked:t.getIsAllPageRowsSelected(),isIndeterminate:t.getIsSomeRowsSelected(),onChange:t.getToggleAllRowsSelectedHandler(),dataTestId:"select-all-rows"})},maxSize:40,meta:{cellProps:{borderRight:"none"}}}),...a,s.display({id:"actions",cell:e=>(0,n.jsx)(M,{asset:e.row.original}),header:"Actions",meta:{disableRowClick:!0}})]}},$=e=>{let{monitorId:t,systemId:s,onSystemName:i}=e,l=(0,a.useRouter)(),m=l.asPath.split("#")[1],[x,j]=(0,r.useState)(s),[b,_]=(0,r.useState)({}),[w,C]=(0,r.useState)(!1),[I,A]=(0,r.useState)(!1),[D,{isLoading:L}]=(0,p.EY)(),[E,{isLoading:M}]=(0,p.nS)(),[N,{isLoading:q}]=(0,p.rs)(),[z,{isLoading:O}]=(0,p.sX)(),[Z,{isLoading:U}]=(0,p.Vr)(),$=L||M||q||O,H=$||s===o.Kl,{PAGE_SIZES:B,pageSize:J,setPageSize:K,onPreviousPageClick:W,isPreviousPageDisabled:F,onNextPageClick:G,isNextPageDisabled:Y,startRange:X,endRange:Q,pageIndex:ee,setTotalPages:et,resetPageIndexToDefault:es}=(0,f.oi)(),[en,ea]=(0,r.useState)(""),{successAlert:er,errorAlert:ei}=(0,v.V)();(0,r.useEffect)(()=>{es()},[t,en,es]);let{filterTabs:eo,filterTabIndex:el,onTabChange:ed,activeParams:ec,actionsDisabled:eu}=(0,R.Z)({systemId:s,initialHash:m}),{data:em,isLoading:eg,isFetching:eh}=(0,p.WJ)({key:t,page:ee,size:J,search:en,...ec});(0,r.useEffect)(()=>{if(em){var e;let t=(null===(e=em.items[0])||void 0===e?void 0:e.system)||x||s||"";et(em.pages||1),j(t),null==i||i(t)}},[em,s,i,et,x]);let{columns:ey}=V({readonly:eu}),ev=(0,d.b7)({getCoreRowModel:(0,c.sC)(),columns:ey,manualPagination:!0,data:(null==em?void 0:em.items)||[],columnResizeMode:"onChange",onRowSelectionChange:_,state:{rowSelection:b}}),ef=ev.getSelectedRowModel().rows.map(e=>e.original.urn),ep=async()=>{let e=await D({urnList:ef});(0,y.D4)(e)?ei((0,y.e$)(e.error)):(ev.resetRowSelection(),er("".concat(ef.length," assets from ").concat(x," have been added to the system inventory."),"Confirmed"))},ex=async e=>{if("string"==typeof(null==e?void 0:e.value)){let s=await z({monitorId:t,urnList:ef,systemKey:e.value});(0,y.D4)(s)?ei((0,y.e$)(s.error)):(ev.resetRowSelection(),er("".concat(ef.length," assets have been assigned to ").concat(e.label,"."),"Confirmed"))}C(!1)},ej=async e=>{let s=null==em?void 0:em.items.filter(e=>ef.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}}),a=await Z({monitorId:t,assets:n});(0,y.D4)(a)?ei((0,y.e$)(a.error)):(ev.resetRowSelection(),er("Consent categories added to ".concat(ef.length," assets").concat(x?" from ".concat(x):"","."),"Confirmed")),A(!1)},eb=async()=>{let e=await E({urnList:ef});(0,y.D4)(e)?ei((0,y.e$)(e.error)):(ev.resetRowSelection(),er(x===o.Kl?"".concat(ef.length," uncategorized assets have been ignored and will not appear in future scans."):"".concat(ef.length," assets from ").concat(x," have been ignored and will not appear in future scans."),"Confirmed"))},e_=async()=>{let e=(null==em?void 0:em.items.length)||0,n=await N({monitor_config_key:t,resolved_system_ids:[s]});(0,y.D4)(n)?ei((0,y.e$)(n.error)):(l.push("".concat(o.vi,"/").concat(t)),er("".concat(e," assets from ").concat(x," have been added to the system inventory."),"Confirmed"))};return t&&s?eg?(0,n.jsx)(f.I4,{rowHeight:36,numRows:36}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h.Z,{data:eo,"data-testid":"filter-tabs",index:el,isLazy:!0,isManual:!0,onChange:e=>{ed(e),_({})}}),(0,n.jsxs)(f.Q$,{children:[(0,n.jsx)(T.f,{value:en,onChange:ea,placeholder:"Search by asset name..."}),(0,n.jsxs)(u.kCb,{alignItems:"center",children:[!!ef.length&&(0,n.jsx)(u.xvT,{fontSize:"xs",fontWeight:"semibold",minW:16,mr:6,"data-testid":"selected-count",children:"".concat(ef.length," selected")}),(0,n.jsxs)(u.Ugi,{children:[(0,n.jsxs)(u.v2r,{children:[(0,n.jsx)(u.j2t,{as:u.wpx,icon:(0,n.jsx)(u.PJP._ME,{}),iconPosition:"end",loading:$,"data-testid":"bulk-actions-menu",disabled:!ef.length||$||eu,type:"primary",children:"Actions"}),(0,n.jsxs)(u.qyq,{children:[(0,n.jsx)(u.sNh,{fontSize:"small",onClick:ep,"data-testid":"bulk-add",children:"Add"}),(0,n.jsx)(u.sNh,{fontSize:"small",onClick:()=>A(!0),"data-testid":"bulk-add-data-use",children:"Add consent category"}),(0,n.jsx)(u.sNh,{fontSize:"small",onClick:()=>{C(!0)},"data-testid":"bulk-assign-system",children:"Assign system"}),!ec.diff_status.includes(k.LL.MUTED)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.RaW,{}),(0,n.jsx)(u.sNh,{fontSize:"small",onClick:eb,"data-testid":"bulk-ignore",children:"Ignore"})]})]})]}),(0,n.jsx)(u.esZ,{title:H?"These assets require a system before you can add them to the inventory.":void 0,children:(0,n.jsx)(u.wpx,{onClick:e_,disabled:H,loading:q,type:"primary",icon:(0,n.jsx)(u.PJP.MCw,{}),iconPosition:"end","data-testid":"add-all",children:"Add all"})})]})]})]}),(0,n.jsx)(f.ZK,{tableInstance:ev,emptyTableNotice:(0,n.jsx)(u.oj8,{image:u.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})}),(0,n.jsx)(f.s8,{totalRows:(null==em?void 0:em.total)||0,pageSizes:B,setPageSize:K,onPreviousPageClick:W,isPreviousPageDisabled:F||eh,onNextPageClick:G,isNextPageDisabled:Y||eh,startRange:X,endRange:Q}),(0,n.jsx)(P,{isOpen:w,onClose:()=>{C(!1)},onSave:ex,isSaving:O}),(0,n.jsx)(S,{isOpen:I,onClose:()=>{A(!1)},onSave:ej,isSaving:U})]}):null};var H=()=>{let e=(0,a.useRouter)(),t=decodeURIComponent(e.query.monitorId),s=decodeURIComponent(e.query.systemId),[d,c]=(0,r.useState)(s===o.Kl?"Uncategorized assets":s);return(0,n.jsxs)(i.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)($,{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,4481,9719,401,3503,2888,9774,179],function(){return e(e.s=25654)}),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2423],{95372:function(e){e.exports=function(e,a,n,t){for(var i=e.length,s=n+(t?1:-1);t?s--:++s<i;)if(a(e[s],s,e))return s;return -1}},56632:function(e,a,n){var t=n(89278),i=n(80068),s=n(50098);e.exports=function(e){return function(a,n,r){var o=Object(a);if(!i(a)){var l=t(n,3);a=s(a),n=function(e){return l(o[e],e,o)}}var d=e(a,n,r);return d>-1?o[l?a[d]:d]:void 0}}},64925:function(e,a,n){var t=n(56632)(n(66259));e.exports=t},66259:function(e,a,n){var t=n(95372),i=n(89278),s=n(47991),r=Math.max;e.exports=function(e,a,n){var o=null==e?0:e.length;if(!o)return -1;var l=null==n?0:s(n);return l<0&&(l=r(o+l,0)),t(e,i(a,3),l)}},94919:function(e,a,n){var t=n(91936),i=1/0;e.exports=function(e){return e?(e=t(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,a,n){var t=n(94919);e.exports=function(e){var a=t(e),n=a%1;return a==a?n?a-n:a:0}},86850:function(e,a,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/[monitorId]",function(){return n(56856)}])},35287:function(e,a,n){"use strict";var t=n(24246),i=n(91922),s=n(88038),r=n.n(s);n(27378),a.Z=e=>{let{children:a,title:n,mainProps:s}=e;return(0,t.jsxs)(i.kCb,{"data-testid":n,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,t.jsxs)(r(),{children:[(0,t.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,t.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,t.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,t.jsx)(i.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...s,children:a})]})}},34929:function(e,a,n){"use strict";var t=n(24246),i=n(64925),s=n.n(i),r=n(27378),o=n(16134),l=n(30002),d=n(28079),_=n(57072);let u=()=>{let{isLoading:e}=(0,d.fd)(),a=(0,o.C)(d.U3),{isLoading:n}=(0,_.MO)(),t=(0,o.C)(_.qb),{isLoading:i}=(0,l.te)();return{dataUses:a,dataSubjects:(0,o.C)(l.ZL),dataCategories:t,isLoading:e||n||i}};a.Z=()=>{let{dataUses:e,dataCategories:a,dataSubjects:n,isLoading:i}=u(),o=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,a).join(".")},l=function(e,a){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,t=a(e);if(!t)return{};let i=a(o(e,n)),s=!!t.parent_key;return{name:t.name||void 0,primaryName:s&&(null==i?void 0:i.name)!==t.name&&(null==i?void 0:i.name)||void 0}},d=function(e,a){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:i,primaryName:s}=l(e,a,n);return i?s?(0,t.jsxs)(r.Fragment,{children:[(0,t.jsxs)("strong",{children:[s,":"]})," ",i]},e):(0,t.jsx)("strong",{children:i},e):e},_=a=>s()(e,{fides_key:a}),c=e=>s()(a,{fides_key:e}),F=e=>s()(n,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:_,getDataUseDisplayName:e=>d(e,_,1),getDataUseDisplayNameProps:e=>l(e,_,1),getDataCategories:()=>a,getDataCategoryByKey:c,getDataCategoryDisplayName:e=>d(e,c,2),getDataCategoryDisplayNameProps:e=>l(e,c,2),getDataSubjects:()=>n,getDataSubjectByKey:F,getDataSubjectDisplayName:e=>{let a=F(e);return a?a.name:e},getPrimaryKey:o,isLoading:i}}},8411:function(e,a,n){"use strict";n.d(a,{NA:function(){return s},Z8:function(){return i}});var t=n(16643);let i={[t._F.ER]:"Eritrea",[t._F.DJ]:"Djibouti",[t._F.MR]:"Mauritania",[t._F.NA]:"Namibia",[t._F.GH]:"Ghana",[t._F.SS]:"South Sudan",[t._F.SC]:"Seychelles",[t._F.IO]:"British Indian Ocean Territory",[t._F.GQ]:"Equatorial Guinea",[t._F.AO]:"Angola",[t._F.CG]:"Republic of the Congo",[t._F.BW]:"Botswana",[t._F.BI]:"Burundi",[t._F.DZ]:"Algeria",[t._F.TD]:"Chad",[t._F.NG]:"Nigeria",[t._F.TZ]:"Tanzania",[t._F.EH]:"Western Sahara",[t._F.SN]:"Senegal",[t._F.LR]:"Liberia",[t._F.ZA]:"South Africa",[t._F.CV]:"Cape Verde",[t._F.GM]:"Gambia",[t._F.SD]:"Sudan",[t._F.KM]:"Comoros",[t._F.SZ]:"Eswatini",[t._F.UG]:"Uganda",[t._F.MG]:"Madagascar",[t._F.RW]:"Rwanda",[t._F.CD]:"DR Congo",[t._F.CM]:"Cameroon",[t._F.SH]:"Saint Helena, Ascension and Tristan da Cunha",[t._F.TG]:"Togo",[t._F.MU]:"Mauritius",[t._F.NE]:"Niger",[t._F.BJ]:"Benin",[t._F.EG]:"Egypt",[t._F.LS]:"Lesotho",[t._F.ET]:"Ethiopia",[t._F.MA]:"Morocco",[t._F.YT]:"Mayotte",[t._F.BF]:"Burkina Faso",[t._F.RE]:"R\xe9union",[t._F.ST]:"S\xe3o Tom\xe9 and Pr\xedncipe",[t._F.CF]:"Central African Republic",[t._F.MZ]:"Mozambique",[t._F.MW]:"Malawi",[t._F.ML]:"Mali",[t._F.ZM]:"Zambia",[t._F.LY]:"Libya",[t._F.GW]:"Guinea-Bissau",[t._F.SO]:"Somalia",[t._F.KE]:"Kenya",[t._F.GN]:"Guinea",[t._F.ZW]:"Zimbabwe",[t._F.TN]:"Tunisia",[t._F.SL]:"Sierra Leone",[t._F.GA]:"Gabon",[t._F.CI]:"Ivory Coast",[t._F.JO]:"Jordan",[t._F.PK]:"Pakistan",[t._F.KP]:"North Korea",[t._F.MO]:"Macau",[t._F.AM]:"Armenia",[t._F.SY]:"Syria",[t._F.TJ]:"Tajikistan",[t._F.SA]:"Saudi Arabia",[t._F.KR]:"South Korea",[t._F.NP]:"Nepal",[t._F.PH]:"Philippines",[t._F.IQ]:"Iraq",[t._F.LB]:"Lebanon",[t._F.MN]:"Mongolia",[t._F.PS]:"Palestine",[t._F.YE]:"Yemen",[t._F.JP]:"Japan",[t._F.KZ]:"Kazakhstan",[t._F.LK]:"Sri Lanka",[t._F.MM]:"Myanmar",[t._F.KG]:"Kyrgyzstan",[t._F.CN]:"China",[t._F.AF]:"Afghanistan",[t._F.OM]:"Oman",[t._F.IN]:"India",[t._F.LA]:"Laos",[t._F.UZ]:"Uzbekistan",[t._F.MV]:"Maldives",[t._F.ID]:"Indonesia",[t._F.VN]:"Vietnam",[t._F.MY]:"Malaysia",[t._F.TW]:"Taiwan",[t._F.KH]:"Cambodia",[t._F.AE]:"United Arab Emirates",[t._F.HK]:"Hong Kong",[t._F.GE]:"Georgia (Country)",[t._F.BD]:"Bangladesh",[t._F.KW]:"Kuwait",[t._F.TM]:"Turkmenistan",[t._F.QA]:"Qatar",[t._F.BH]:"Bahrain",[t._F.BN]:"Brunei",[t._F.TH]:"Thailand",[t._F.BT]:"Bhutan",[t._F.SG]:"Singapore",[t._F.IL]:"Israel",[t._F.AZ]:"Azerbaijan",[t._F.TL]:"Timor-Leste",[t._F.IR]:"Iran",[t._F.TR]:"Turkey",[t._F.MK]:"North Macedonia",[t._F.IE]:"Ireland",[t._F.DK]:"Denmark",[t._F.SK]:"Slovakia",[t._F.MD]:"Moldova",[t._F.AX]:"\xc5land Islands",[t._F.PL]:"Poland",[t._F.BA]:"Bosnia and Herzegovina",[t._F.SM]:"San Marino",[t._F.CZ]:"Czechia",[t._F.EE]:"Estonia",[t._F.XK]:"Kosovo",[t._F.FO]:"Faroe Islands",[t._F.SJ]:"Svalbard and Jan Mayen",[t._F.GG]:"Guernsey",[t._F.FR]:"France",[t._F.NL]:"Netherlands",[t._F.FI]:"Finland",[t._F.PT]:"Portugal",[t._F.DE]:"Germany",[t._F.MT]:"Malta",[t._F.JE]:"Jersey",[t._F.IS]:"Iceland",[t._F.ES]:"Spain",[t._F.GI]:"Gibraltar",[t._F.NO]:"Norway",[t._F.CY]:"Cyprus",[t._F.RS]:"Serbia",[t._F.LT]:"Lithuania",[t._F.MC]:"Monaco",[t._F.LU]:"Luxembourg",[t._F.UA]:"Ukraine",[t._F.IM]:"Isle of Man",[t._F.RO]:"Romania",[t._F.BE]:"Belgium",[t._F.SE]:"Sweden",[t._F.ME]:"Montenegro",[t._F.LV]:"Latvia",[t._F.VA]:"Vatican City",[t._F.AT]:"Austria",[t._F.AL]:"Albania",[t._F.LI]:"Liechtenstein",[t._F.GR]:"Greece",[t._F.IT]:"Italy",[t._F.AD]:"Andorra",[t._F.GB]:"United Kingdom",[t._F.RU]:"Russia",[t._F.SI]:"Slovenia",[t._F.BY]:"Belarus",[t._F.CH]:"Switzerland",[t._F.HU]:"Hungary",[t._F.BG]:"Bulgaria",[t._F.HR]:"Croatia",[t._F.TC]:"Turks and Caicos Islands",[t._F.CW]:"Cura\xe7ao",[t._F.GP]:"Guadeloupe",[t._F.UM]:"United States Minor Outlying Islands",[t._F.GT]:"Guatemala",[t._F.PM]:"Saint Pierre and Miquelon",[t._F.BQ]:"Caribbean Netherlands",[t._F.GL]:"Greenland",[t._F.SX]:"Sint Maarten",[t._F.PA]:"Panama",[t._F.AW]:"Aruba",[t._F.MQ]:"Martinique",[t._F.AG]:"Antigua and Barbuda",[t._F.BM]:"Bermuda",[t._F.CU]:"Cuba",[t._F.GD]:"Grenada",[t._F.NI]:"Nicaragua",[t._F.LC]:"Saint Lucia",[t._F.KN]:"Saint Kitts and Nevis",[t._F.DO]:"Dominican Republic",[t._F.VC]:"Saint Vincent and the Grenadines",[t._F.BZ]:"Belize",[t._F.HT]:"Haiti",[t._F.JM]:"Jamaica",[t._F.BS]:"Bahamas",[t._F.MX]:"Mexico",[t._F.MF]:"Saint Martin",[t._F.SV]:"El Salvador",[t._F.BL]:"Saint Barth\xe9lemy",[t._F.AI]:"Anguilla",[t._F.MS]:"Montserrat",[t._F.VG]:"British Virgin Islands",[t._F.BB]:"Barbados",[t._F.HN]:"Honduras",[t._F.KY]:"Cayman Islands",[t._F.DM]:"Dominica",[t._F.TT]:"Trinidad and Tobago",[t._F.CR]:"Costa Rica",[t._F.SR]:"Suriname",[t._F.CX]:"Christmas Island",[t._F.WS]:"Samoa",[t._F.PF]:"French Polynesia",[t._F.AS]:"American Samoa",[t._F.NC]:"New Caledonia",[t._F.TK]:"Tokelau",[t._F.PW]:"Palau",[t._F.KI]:"Kiribati",[t._F.VU]:"Vanuatu",[t._F.PN]:"Pitcairn Islands",[t._F.CK]:"Cook Islands",[t._F.FJ]:"Fiji",[t._F.PG]:"Papua New Guinea",[t._F.MP]:"Northern Mariana Islands",[t._F.NU]:"Niue",[t._F.TV]:"Tuvalu",[t._F.NF]:"Norfolk Island",[t._F.TO]:"Tonga",[t._F.FM]:"Micronesia",[t._F.SB]:"Solomon Islands",[t._F.NR]:"Nauru",[t._F.WF]:"Wallis and Futuna",[t._F.GU]:"Guam",[t._F.AU]:"Australia",[t._F.NZ]:"New Zealand",[t._F.MH]:"Marshall Islands",[t._F.CC]:"Cocos (Keeling) Islands",[t._F.VE]:"Venezuela",[t._F.PY]:"Paraguay",[t._F.BR]:"Brazil",[t._F.CO]:"Colombia",[t._F.PE]:"Peru",[t._F.CL]:"Chile",[t._F.UY]:"Uruguay",[t._F.AR]:"Argentina",[t._F.GY]:"Guyana",[t._F.BO]:"Bolivia",[t._F.GF]:"French Guiana",[t._F.EC]:"Ecuador",[t._F.FK]:"Falkland Islands",[t._F.US_AL]:"Alabama",[t._F.US_AK]:"Alaska",[t._F.US_AZ]:"Arizona",[t._F.US_AR]:"Arkansas",[t._F.US_CA]:"California",[t._F.US_CO]:"Colorado",[t._F.US_CT]:"Connecticut",[t._F.US_DE]:"Delaware",[t._F.US_DC]:"District of Columbia (DC)",[t._F.US_FL]:"Florida",[t._F.US_GA]:"Georgia",[t._F.US_HI]:"Hawaii",[t._F.US_ID]:"Idaho",[t._F.US_IL]:"Illinois",[t._F.US_IN]:"Indiana",[t._F.US_IA]:"Iowa",[t._F.US_KS]:"Kansas",[t._F.US_KY]:"Kentucky",[t._F.US_LA]:"Louisiana",[t._F.US_ME]:"Maine",[t._F.US_MD]:"Maryland",[t._F.US_MA]:"Massachusetts",[t._F.US_MI]:"Michigan",[t._F.US_MN]:"Minnesota",[t._F.US_MS]:"Mississippi",[t._F.US_MO]:"Missouri",[t._F.US_MT]:"Montana",[t._F.US_NE]:"Nebraska",[t._F.US_NV]:"Nevada",[t._F.US_NH]:"New Hampshire",[t._F.US_NJ]:"New Jersey",[t._F.US_NM]:"New Mexico",[t._F.US_NY]:"New York",[t._F.US_NC]:"North Carolina",[t._F.US_ND]:"North Dakota",[t._F.US_OH]:"Ohio",[t._F.US_OK]:"Oklahoma",[t._F.US_OR]:"Oregon",[t._F.US_PA]:"Pennsylvania",[t._F.US_PR]:"Puerto Rico",[t._F.US_RI]:"Rhode Island",[t._F.US_SC]:"South Carolina",[t._F.US_SD]:"South Dakota",[t._F.US_TN]:"Tennessee",[t._F.US_TX]:"Texas",[t._F.US_UT]:"Utah",[t._F.US_VA]:"Virginia",[t._F.US_VI]:"United States Virgin Islands",[t._F.US_VT]:"Vermont",[t._F.US_WA]:"Washington",[t._F.US_WV]:"West Virginia",[t._F.US_WI]:"Wisconsin",[t._F.US_WY]:"Wyoming",[t._F.CA_AB]:"Alberta",[t._F.CA_BC]:"British Columbia",[t._F.CA_MB]:"Manitoba",[t._F.CA_NB]:"New Brunswick",[t._F.CA_NL]:"Newfoundland and Labrador",[t._F.CA_NS]:"Nova Scotia",[t._F.CA_ON]:"Ontario",[t._F.CA_PE]:"Prince Edward Island",[t._F.CA_QC]:"Quebec",[t._F.CA_SK]:"Saskatchewan",[t._F.CA_NT]:"Northwest Territories",[t._F.CA_NU]:"Nunavut",[t._F.CA_YT]:"Yukon",[t._F.CA]:"Canada",[t._F.US]:"United States",[t._F.MEXICO_CENTRAL_AMERICA]:"Mexico and Central America",[t._F.CARIBBEAN]:"Caribbean",[t._F.EEA]:"European Economic Area (EEA)",[t._F.NON_EEA]:"Non European Economic Area"},s=new Map(Object.entries(i));Object.entries(i).map(e=>({value:e[0],label:e[1]}))},37059:function(e,a,n){"use strict";n.d(a,{Ak:function(){return F},EY:function(){return _},Ud:function(){return s},Vr:function(){return m},WJ:function(){return o},nP:function(){return d},nS:function(){return u},rs:function(){return l},sX:function(){return c},wi:function(){return r}});var t=n(78780),i=n(16394);let{useGetAggregateMonitorResultsQuery:s,useGetDiscoveredSystemAggregateQuery:r,useGetDiscoveredAssetsQuery:o,useAddMonitorResultSystemsMutation:l,useIgnoreMonitorResultSystemsMutation:d,useAddMonitorResultAssetsMutation:_,useIgnoreMonitorResultAssetsMutation:u,useUpdateAssetsSystemMutation:c,useUpdateAssetsDataUseMutation:F,useUpdateAssetsMutation:m}=t.u.injectEndpoints({endpoints:e=>({getAggregateMonitorResults:e.query({query:e=>{let{page:a=1,size:n=20,search:t}=e;return{url:"/plus/discovery-monitor/aggregate-results",params:{page:a,size:n,search:t,diff_status:"addition"}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredSystemAggregate:e.query({query:e=>{let{key:a,page:n=1,size:t=20,search:i,diff_status:s}=e;return{url:"/plus/discovery-monitor/system-aggregate-results",params:{monitor_config_id:a,page:n,size:t,search:i,diff_status:s}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredAssets:e.query({query:e=>{let{key:a,system:n,page:t=1,size:i=20,search:s,diff_status:r}=e;return{url:"/plus/discovery-monitor/".concat(a,"/results"),params:{resolved_system_id:n,page:t,size:i,search:s,diff_status:r,sort_by:"urn"}}},providesTags:()=>["Discovery Monitor Results"]}),addMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:a,resolved_system_ids:n}=e,t=(0,i.du)(n,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(a,"/promote?").concat(t)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:a,resolved_system_ids:n}=e,t=(0,i.du)(n,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(a,"/mute?").concat(t)}},invalidatesTags:["Discovery Monitor Results"]}),addMonitorResultAssets:e.mutation({query:e=>{var a;let n=new URLSearchParams;return null===(a=e.urnList)||void 0===a||a.forEach(e=>n.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/promote?".concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultAssets:e.mutation({query:e=>{var a;let n=new URLSearchParams;return null===(a=e.urnList)||void 0===a||a.forEach(e=>n.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/mute?".concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),updateAssetsSystem:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.urnList.map(a=>({urn:a,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(a=>({urn:a,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,a,n){"use strict";var t=n(86677),i=n(27378),s=n(16643);let r={ATTENTION_REQUIRED:{index:0,hash:"#attention-required"},RECENT_ACTIVITY:{index:1,hash:"#recent-activity"},IGNORED:{index:2,hash:"#ignored"}},o=e=>{let a=e.startsWith("#")?e:"#".concat(e);return Object.values(r).find(e=>e.hash===a)},l=e=>Object.values(r).find(a=>a.index===e);a.Z=e=>{var a;let{systemId:n,initialHash:d}=e,_=(0,t.useRouter)(),[u,c]=(0,i.useState)(d?null===(a=o(d))||void 0===a?void 0:a.index:r.ATTENTION_REQUIRED.index),F=(0,i.useCallback)(async e=>{if(c(e),_.isReady){let a=l(e);if(a){let e={..._.query};await _.replace({pathname:_.pathname,query:e,hash:a.hash},void 0,{shallow:!0})}}},[_]),m=[{label:"Attention required",params:{diff_status:[s.LL.ADDITION],system:n}},{label:"Recent activity",params:{diff_status:[s.LL.MONITORED]}},{label:"Ignored",params:{diff_status:[s.LL.MUTED],system:n}}],{diff_status:g,system:h}=m[u].params,S=g.includes(s.LL.MONITORED);return{filterTabs:m,filterTabIndex:u,onTabChange:F,activeParams:n?{diff_status:g,system:h}:{diff_status:g},actionsDisabled:S}}},78238:function(e,a,n){"use strict";n.d(a,{g:function(){return t}});let t=["essential","functional.service.improve","personalize","analytics","marketing.advertising.first_party.targeted","marketing.advertising.third_party.targeted"];a.Z=e=>t.includes(e)},56839:function(e,a,n){"use strict";n.d(a,{dK:function(){return _},Rv:function(){return F},$P:function(){return c},zj:function(){return m},Kr:function(){return g},q1:function(){return u},QL:function(){return h}});var t=n(24246),i=n(91922);let s=(0,i.IUT)({displayName:"CircleIcon",viewBox:"0 0 200 200",path:(0,t.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"})}),r=(0,i.IUT)({displayName:"RightDownArrowIcon",viewBox:"0 0 8 8",path:(0,t.jsx)("path",{fill:"currentColor",d:"M7.23192 8H8V7.23192V1.85539V1.08731H6.46385V1.85539V5.37654L1.62976 0.544855L1.08731 0L0 1.08731L0.542454 1.62976L5.37654 6.46385H1.85539H1.08731V8H1.85539H7.23192Z"})}),o=(0,i.IUT)({displayName:"RightUpArrowIcon",viewBox:"0 0 8 8",path:(0,t.jsx)("path",{fill:"currentColor",d:"M7.23192 0H8V0.768077V6.14461V6.91269H6.46385V6.14461V2.62346L1.62976 7.45515L1.08731 8L0 6.91269L0.542454 6.37024L5.37654 1.53615H1.85539H1.08731V0H1.85539H7.23192Z"})}),l=(0,i.IUT)({displayName:"TagIcon",viewBox:"0 0 9 10",path:(0,t.jsx)("path",{fill:"currentColor",d:"M0 0.5V5L4.5 9.5L9 5L4.5 0.5H0ZM2.25 2.10714C2.4205 2.10714 2.58401 2.17487 2.70457 2.29543C2.82513 2.41599 2.89286 2.5795 2.89286 2.75C2.89286 2.9205 2.82513 3.08401 2.70457 3.20457C2.58401 3.32513 2.4205 3.39286 2.25 3.39286C2.0795 3.39286 1.91599 3.32513 1.79543 3.20457C1.67487 3.08401 1.60714 2.9205 1.60714 2.75C1.60714 2.5795 1.67487 2.41599 1.79543 2.29543C1.91599 2.17487 2.0795 2.10714 2.25 2.10714Z"})});var d=n(28278);let _=()=>(0,t.jsx)(o,{color:"green.400",boxSize:2,mr:2,"data-testid":"add-icon"}),u=()=>(0,t.jsx)(r,{color:"red.400",boxSize:2,mr:2,"data-testid":"remove-icon"}),c=()=>(0,t.jsx)(l,{color:"orange.400",boxSize:3,mr:1,"data-testid":"classify-icon"}),F=()=>(0,t.jsx)(s,{color:"blue.400",boxSize:2.5,mb:"2px",mr:"6px","data-testid":"change-icon"}),m=()=>(0,t.jsx)(s,{color:"green.400",boxSize:2,mr:2,"data-testid":"monitored-icon"}),g=()=>(0,t.jsx)(s,{color:"red.400",boxSize:2,mr:2,"data-testid":"muted-icon"}),h={[d.E.ADDITION]:(0,t.jsx)(_,{}),[d.E.REMOVAL]:(0,t.jsx)(u,{}),[d.E.CLASSIFICATION]:(0,t.jsx)(c,{}),[d.E.CHANGE]:(0,t.jsx)(F,{}),[d.E.MONITORED]:(0,t.jsx)(m,{}),[d.E.MUTED]:(0,t.jsx)(g,{}),[d.E.IN_PROGRESS]:(0,t.jsx)(()=>(0,t.jsx)(s,{color:"orange.400",boxSize:2,mr:2,"data-testid":"in-progress-icon"}),{}),[d.E.NONE]:null}},28278:function(e,a,n){"use strict";var t,i;n.d(a,{E:function(){return t}}),(i=t||(t={})).ADDITION="Addition",i.CHANGE="Change",i.REMOVAL="Removal",i.CLASSIFICATION="Classification",i.IN_PROGRESS="Classifying",i.MONITORED="Monitoring",i.MUTED="Unmonitored",i.NONE="--"},56856:function(e,a,n){"use strict";n.r(a),n.d(a,{default:function(){return E}});var t=n(24246),i=n(86677),s=n(35287),r=n(77830),o=n(58754),l=n(59003),d=n(92222),_=n(91922),u=n(27378),c=n(66379),F=n(812),m=n(14047),g=n(14481),h=n(37059),S=n(90057),y=n(16643),v=n(31883),C=n(30952),p=n(8411),f=n(72625),M=n(34929),A=n(78238),I=e=>{var a,n;let{system:i}=e,{getDataUseDisplayName:s}=(0,M.Z)(),r=(null!==(n=null===(a=i.data_uses)||void 0===a?void 0:a.filter(e=>(0,A.Z)(e)))&&void 0!==n?n:[]).map(e=>({label:s(e),key:e}));return(0,t.jsx)(f.mb,{values:r})};let N=e=>{let{monitorId:a,system:n,allowIgnore:i}=e,[s,{isLoading:o}]=(0,h.rs)(),[l,{isLoading:d}]=(0,h.nP)(),{successAlert:u,errorAlert:c}=(0,m.V)(),g=o||d,{id:S,name:y,system_key:v,total_updates:C}=n,p=async()=>{let e=await s({monitor_config_key:a,resolved_system_ids:[S]});(0,F.D4)(e)?c((0,F.e$)(e.error)):u(v?"".concat(C," assets from ").concat(y," have been added to the system inventory."):"".concat(y," and ").concat(C," assets have been added to the system inventory. ").concat(y," is now configured for consent."),"Confirmed")},f=async()=>{let e=await l({monitor_config_key:a,resolved_system_ids:[S||r.Kl]});(0,F.D4)(e)?c((0,F.e$)(e.error)):u(y?"".concat(C," assets from ").concat(y," have been ignored and will not appear in future scans."):"".concat(C," uncategorized assets have been ignored and will not appear in future scans."),"Confirmed")};return(0,t.jsxs)(_.vyj,{children:[(0,t.jsx)(_.esZ,{title:n.id?void 0:"These assets must be categorized before you can add them to the inventory.",children:(0,t.jsx)(_.wpx,{"data-testid":"add-btn",size:"small",onClick:p,disabled:!n.id||g,loading:o,children:"Add"})}),i&&(0,t.jsx)(_.wpx,{"data-testid":"ignore-btn",size:"small",onClick:f,disabled:g,loading:d,children:"Ignore"})]})};var b=n(56839);let x=e=>{let{system:a}=e;return(0,t.jsxs)(_.kCb,{alignItems:"center",height:"100%",children:[!(null==a?void 0:a.system_key)&&(0,t.jsx)(_.esZ,{title:"New system",children:(0,t.jsx)("span",{children:b.QL.Change})}),(0,t.jsx)(_.xvT,{fontSize:"xs",fontWeight:"semibold",lineHeight:4,overflow:"hidden",textOverflow:"ellipsis",children:(null==a?void 0:a.name)||"Uncategorized assets"})]})},T=e=>{let{monitorId:a,readonly:n,allowIgnore:i}=e,s=(0,d.Cl)(),r=s.display({id:"select",cell:e=>{let{row:a}=e;return(0,t.jsx)(g.k,{isChecked:a.getIsSelected(),onChange:a.getToggleSelectedHandler(),dataTestId:"select-".concat(a.original.name||a.id)})},header:e=>{let{table:a}=e;return(0,t.jsx)(g.k,{isChecked:a.getIsAllPageRowsSelected(),isIndeterminate:a.getIsSomeRowsSelected(),onChange:a.getToggleAllRowsSelectedHandler(),dataTestId:"select-all-rows"})},maxSize:40,meta:{disableRowClick:!0,cellProps:{borderRight:"none"}}}),o=s.accessor(e=>e.name,{id:"system_name",cell:e=>(0,t.jsx)(x,{system:e.row.original}),header:"System",size:300,meta:{headerProps:{paddingLeft:"0px"},cellProps:{padding:"0 !important"}}}),l=s.accessor(e=>e.total_updates,{id:"total_updates",cell:e=>(0,t.jsx)(g.G3,{value:e.getValue()}),header:"Assets",size:80}),_=s.display({id:"data_use",cell:e=>(0,t.jsx)(I,{system:e.row.original}),header:"Categories of consent",size:400,meta:{disableRowClick:!0}}),c=s.accessor(e=>e.locations,{id:"locations",cell:e=>(0,t.jsx)(f.mb,{values:e.getValue().map(e=>({label:p.Z8[e],key:e}))}),header:"Locations",size:300,meta:{showHeaderMenu:!0,disableRowClick:!0}}),F=s.accessor(e=>e.domains,{id:"domains",cell:e=>(0,t.jsx)(f.tc,{values:e.getValue(),valueSuffix:"domains",cellProps:e}),header:"Domains",meta:{showHeaderMenu:!0,disableRowClick:!0}}),m=s.display({id:"actions",cell:e=>(0,t.jsx)(N,{system:e.row.original,monitorId:a,allowIgnore:i}),header:"Actions",meta:{disableRowClick:!0}}),h=(0,u.useMemo)(()=>[o,l,_,c,F],[o,l,_,c,F]);return n?{columns:h}:{columns:[r,...h,m]}},U=e=>{let{monitorId:a}=e,n=(0,i.useRouter)(),s=n.asPath.split("#")[1],{PAGE_SIZES:o,pageSize:p,setPageSize:f,onPreviousPageClick:M,isPreviousPageDisabled:A,onNextPageClick:I,isNextPageDisabled:N,startRange:b,endRange:x,pageIndex:U,setTotalPages:E,resetPageIndexToDefault:R}=(0,g.oi)(),[w,{isLoading:L}]=(0,h.rs)(),[j,{isLoading:D}]=(0,h.nP)(),{successAlert:P,errorAlert:k}=(0,m.V)(),[O,B]=(0,u.useState)(""),[G,H]=(0,u.useState)({});(0,u.useEffect)(()=>{R()},[a,O,R]);let{filterTabs:V,filterTabIndex:K,onTabChange:z,activeParams:Z,actionsDisabled:W}=(0,S.Z)({initialHash:s}),{data:q,isLoading:Y,isFetching:J}=(0,h.wi)({key:a,page:U,size:p,search:O,...Z});(0,u.useEffect)(()=>{q&&E(q.pages||1)},[q,E]);let{columns:Q}=T({monitorId:a,readonly:W,allowIgnore:!Z.diff_status.includes(y.LL.MUTED)}),X=(0,l.b7)({getCoreRowModel:(0,d.sC)(),columns:Q,manualPagination:!0,data:(null==q?void 0:q.items)||[],columnResizeMode:"onChange",onRowSelectionChange:H,state:{rowSelection:G}}),$=X.getSelectedRowModel().rows,ee=$.some(e=>null===e.original.id);if(Y)return(0,t.jsx)(g.I4,{rowHeight:36,numRows:36});let ea=async()=>{let e=$.reduce((e,a)=>e+a.original.total_updates,0),n=await w({monitor_config_key:a,resolved_system_ids:$.map(e=>e.original.id)});(0,v.D4)(n)?k((0,F.e$)(n.error)):(P("".concat(e," assets have been added to the system inventory.")),H({}))},en=async()=>{let e=$.reduce((e,a)=>e+a.original.total_updates,0),n=await j({monitor_config_key:a,resolved_system_ids:$.map(e=>{var a;return null!==(a=e.original.id)&&void 0!==a?a:r.Kl})});(0,v.D4)(n)?k((0,F.e$)(n.error)):(P("".concat(e," assets have been ignored and will not appear in future scans.")),H({}))};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.Z,{data:V,"data-testid":"filter-tabs",index:K,isLazy:!0,isManual:!0,onChange:e=>{z(e),H({})}}),(0,t.jsx)(g.Q$,{children:(0,t.jsxs)(_.kCb,{direction:"row",alignItems:"center",justifyContent:"space-between",width:"full",children:[(0,t.jsx)(_.kCb,{gap:6,align:"center",children:(0,t.jsx)(_.xuv,{flexShrink:0,children:(0,t.jsx)(C.f,{value:O,onChange:B})})}),(0,t.jsxs)(_.kCb,{align:"center",children:[!!$.length&&(0,t.jsx)(_.xvT,{fontSize:"xs",fontWeight:"semibold",minW:16,mr:6,"data-testid":"selected-count",children:"".concat($.length," selected")}),(0,t.jsxs)(_.v2r,{children:[(0,t.jsx)(_.j2t,{as:_.wpx,icon:(0,t.jsx)(_.PJP._ME,{}),iconPosition:"end",loading:L||D,"data-testid":"bulk-actions-menu",disabled:!$.length,type:"primary",children:"Actions"}),(0,t.jsxs)(_.qyq,{children:[(0,t.jsx)(_.esZ,{title:ee?"Uncategorized assets can't be added to the inventory":null,placement:"left",children:(0,t.jsx)(_.sNh,{fontSize:"small",onClick:ea,"data-testid":"bulk-add",isDisabled:ee,children:"Add"})}),!Z.diff_status.includes(y.LL.MUTED)&&(0,t.jsx)(_.sNh,{fontSize:"small",onClick:en,"data-testid":"bulk-ignore",children:"Ignore"})]})]})]})]})}),(0,t.jsx)(g.ZK,{tableInstance:X,onRowClick:e=>{var t;let i="".concat(r.vi,"/").concat(a,"/").concat(null!==(t=e.id)&&void 0!==t?t:r.Kl).concat(s?"#".concat(s):"");n.push(i)},emptyTableNotice:(0,t.jsx)(_.oj8,{image:_.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})}),(0,t.jsx)(g.s8,{totalRows:(null==q?void 0:q.total)||0,pageSizes:o,setPageSize:f,onPreviousPageClick:M,isPreviousPageDisabled:A||J,onNextPageClick:I,isNextPageDisabled:N||J,startRange:b,endRange:x})]})};var E=()=>{let e=decodeURIComponent((0,i.useRouter)().query.monitorId);return(0,t.jsxs)(s.Z,{title:"Action center - Discovered assets by system",children:[(0,t.jsx)(o.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:r.vi},{title:e}]}),(0,t.jsx)(U,{monitorId:e})]})}},31883:function(e,a,n){"use strict";n.d(a,{Bw:function(){return t.Bw},D4:function(){return t.D4}});var t=n(19043)}},function(e){e.O(0,[8033,6060,2858,2866,9278,4481,9719,2888,9774,179],function(){return e(e.s=86850)}),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8443],{74833:function(t,e,n){var i=n(56127),r=/^\s+/;t.exports=function(t){return t?t.slice(0,i(t)+1).replace(r,""):t}},56127:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},66726:function(t,e,n){var i=n(11611),r=n(82846),s=n(91936),o=Math.max,a=Math.min;t.exports=function(t,e,n){var u,l,c,d,p,g,f=0,m=!1,v=!1,y=!0;if("function"!=typeof t)throw TypeError("Expected a function");function h(e){var n=u,i=l;return u=l=void 0,f=e,d=t.apply(i,n)}function x(t){var n=t-g,i=t-f;return void 0===g||n>=e||n<0||v&&i>=c}function j(){var t,n,i,s=r();if(x(s))return _(s);p=setTimeout(j,(t=s-g,n=s-f,i=e-t,v?a(i,c-n):i))}function _(t){return(p=void 0,y&&u)?h(t):(u=l=void 0,d)}function b(){var t,n=r(),i=x(n);if(u=arguments,l=this,g=n,i){if(void 0===p)return f=t=g,p=setTimeout(j,e),m?h(t):d;if(v)return clearTimeout(p),p=setTimeout(j,e),h(g)}return void 0===p&&(p=setTimeout(j,e)),d}return e=s(e)||0,i(n)&&(m=!!n.leading,c=(v="maxWait"in n)?o(s(n.maxWait)||0,e):c,y="trailing"in n?!!n.trailing:y),b.cancel=function(){void 0!==p&&clearTimeout(p),f=0,u=g=l=p=void 0},b.flush=function(){return void 0===p?d:_(r())},b}},11611:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},55193:function(t,e,n){var i=n(99736),r=n(92360);t.exports=function(t){return"symbol"==typeof t||r(t)&&"[object Symbol]"==i(t)}},82846:function(t,e,n){var i=n(77400);t.exports=function(){return i.Date.now()}},91936:function(t,e,n){var i=n(74833),r=n(11611),s=n(55193),o=0/0,a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(s(t))return o;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=i(t);var n=u.test(t);return n||l.test(t)?c(t.slice(2),n?2:8):a.test(t)?o:+t}},40741:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center",function(){return n(51500)}])},30952:function(t,e,n){"use strict";n.d(e,{f:function(){return u}});var i=n(24246),r=n(66726),s=n.n(r),o=n(27378),a=n(26917);let u=t=>{let{value:e,onChange:n,placeholder:r,...u}=t,[l,c]=(0,o.useState)(e),d=s()(n,500),p=(0,o.useCallback)(t=>{c(t),d(t)},[]);return(0,i.jsx)(a.Z,{value:l,onChange:p,onClear:()=>{c(""),n("")},placeholder:r,...u})}},77213:function(t,e,n){"use strict";n.d(e,{Z:function(){return p}});var i=n(24246),r=n(91922),s=n(88038),o=n.n(s),a=n(86677);n(27378);var u=n(25980),l=n(90867),c=n(77830),d=()=>{let t=(0,a.useRouter)();return(0,i.jsx)(r.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(r.xuv,{children:[(0,i.jsxs)(r.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(r.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(r.wpx,{onClick:()=>{t.push(c.fz)},children:"Configure"})]}),(0,i.jsxs)(r.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=t=>{let{children:e,title:n,padded:s=!0,mainProps:c}=t,p=(0,u.hz)(),g=(0,a.useRouter)(),f="/privacy-requests"===g.pathname||"/datastore-connection"===g.pathname,m=!(p.flags.privacyRequestsConfiguration&&f),{data:v}=(0,l.JE)(void 0,{skip:m}),{data:y}=(0,l.PW)(void 0,{skip:m}),h=p.flags.privacyRequestsConfiguration&&(!v||!y)&&f;return(0,i.jsxs)(r.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(o(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(r.kCb,{as:"main",direction:"column",py:s?6:0,px:s?10:0,h:s?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[h?(0,i.jsx)(d,{}):null,e]})]})}},58754:function(t,e,n){"use strict";var i=n(24246),r=n(91922),s=n(70788);e.Z=t=>{let{heading:e,breadcrumbItems:n,isSticky:o=!0,children:a,rightContent:u,style:l,...c}=t;return(0,i.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",...l}:{paddingBottom:"24px",...l},children:[(0,i.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof e?(0,i.jsx)(r.lQT,{className:n||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:e}):e,u&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:u})]}),!!n&&(0,i.jsx)(s.m,{className:a?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),a]})}},70788:function(t,e,n){"use strict";n.d(e,{m:function(){return l}});var i=n(24246),r=n(91922),s=n(79894),o=n.n(s),a=n(27378);let{Text:u}=r.AntTypography,l=t=>{let{items:e,...n}=t,s=(0,a.useMemo)(()=>null==e?void 0:e.map((t,n)=>{let s=n===e.length-1,a={...t},l=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,i.jsx)(u,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:a.title})),l)?a.title=(0,i.jsx)(r.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,i.jsx)(o(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[e]);return(0,i.jsx)(r.zrq,{items:s,...n})}},7426:function(t,e,n){"use strict";n.d(e,{D2:function(){return p},L:function(){return a},U7:function(){return l},Yh:function(){return f},ak:function(){return u},iR:function(){return v},km:function(){return o},tB:function(){return s}});var i=n(3228);let r=n(78780).u.injectEndpoints({endpoints:t=>({getConfigurationSettings:t.query({query:t=>{let{api_set:e}=t;return{url:"/config",method:"GET",params:{api_set:e}}},providesTags:["Configuration Settings"]}),putConfigurationSettings:t.mutation({query:t=>({url:"/config",method:"PUT",body:t}),invalidatesTags:["Configuration Settings"]}),patchConfigurationSettings:t.mutation({query:t=>({url:"/config",method:"PATCH",body:t}),invalidatesTags:["Configuration Settings","Privacy Notices"]})})}),{useGetConfigurationSettingsQuery:s,usePutConfigurationSettingsMutation:o,usePatchConfigurationSettingsMutation:a}=r,u=(0,i.P1)([t=>t,r.endpoints.getConfigurationSettings.select({api_set:!0}),r.endpoints.getConfigurationSettings.select({api_set:!1})],(t,e,n)=>{var i,r,s;let{data:o}=e,{data:a}=n;return{configSet:{cors_origins:(null==a?void 0:null===(i=a.security)||void 0===i?void 0:i.cors_origins)||[],cors_origin_regex:null==a?void 0:null===(r=a.security)||void 0===r?void 0:r.cors_origin_regex},apiSet:{cors_origins:(null==o?void 0:null===(s=o.security)||void 0===s?void 0:s.cors_origins)||[]}}}),l=()=>(0,i.P1)([t=>t,r.endpoints.getConfigurationSettings.select({api_set:!0})],(t,e)=>{let{data:n}=e;return n}),c={enabled:!1,cmp_api_required:!1},d=(t,e,n,i)=>{let r=n&&n[t],s=i&&i[t];return r&&s?{...i[t],...n[t]}:s?i[t]:r?{...n[t]}:e},p=(0,i.P1)([t=>t,r.endpoints.getConfigurationSettings.select({api_set:!0}),r.endpoints.getConfigurationSettings.select({api_set:!1})],(t,e,n)=>{let{data:i}=e,{data:r}=n;return d("gpp",c,i,r)}),g={tcf_publisher_country_code:null},f=(0,i.P1)([t=>t,r.endpoints.getConfigurationSettings.select({api_set:!0}),r.endpoints.getConfigurationSettings.select({api_set:!1})],(t,e,n)=>{let{data:i}=e,{data:r}=n;return d("plus_consent_settings",g,i,r)}),m={allow_username_password_login:!1},v=(0,i.P1)([t=>t,r.endpoints.getConfigurationSettings.select({api_set:!0}),r.endpoints.getConfigurationSettings.select({api_set:!1})],(t,e,n)=>{let{data:i}=e,{data:r}=n;return d("plus_security_settings",m,i,r)})},37059:function(t,e,n){"use strict";n.d(e,{Ak:function(){return g},EY:function(){return c},Ud:function(){return s},Vr:function(){return f},WJ:function(){return a},nP:function(){return l},nS:function(){return d},rs:function(){return u},sX:function(){return p},wi:function(){return o}});var i=n(78780),r=n(16394);let{useGetAggregateMonitorResultsQuery:s,useGetDiscoveredSystemAggregateQuery:o,useGetDiscoveredAssetsQuery:a,useAddMonitorResultSystemsMutation:u,useIgnoreMonitorResultSystemsMutation:l,useAddMonitorResultAssetsMutation:c,useIgnoreMonitorResultAssetsMutation:d,useUpdateAssetsSystemMutation:p,useUpdateAssetsDataUseMutation:g,useUpdateAssetsMutation:f}=i.u.injectEndpoints({endpoints:t=>({getAggregateMonitorResults:t.query({query:t=>{let{page:e=1,size:n=20,search:i}=t;return{url:"/plus/discovery-monitor/aggregate-results",params:{page:e,size:n,search:i,diff_status:"addition"}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredSystemAggregate:t.query({query:t=>{let{key:e,page:n=1,size:i=20,search:r,diff_status:s}=t;return{url:"/plus/discovery-monitor/system-aggregate-results",params:{monitor_config_id:e,page:n,size:i,search:r,diff_status:s}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredAssets:t.query({query:t=>{let{key:e,system:n,page:i=1,size:r=20,search:s,diff_status:o}=t;return{url:"/plus/discovery-monitor/".concat(e,"/results"),params:{resolved_system_id:n,page:i,size:r,search:s,diff_status:o,sort_by:"urn"}}},providesTags:()=>["Discovery Monitor Results"]}),addMonitorResultSystems:t.mutation({query:t=>{let{monitor_config_key:e,resolved_system_ids:n}=t,i=(0,r.du)(n,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(e,"/promote?").concat(i)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultSystems:t.mutation({query:t=>{let{monitor_config_key:e,resolved_system_ids:n}=t,i=(0,r.du)(n,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(e,"/mute?").concat(i)}},invalidatesTags:["Discovery Monitor Results"]}),addMonitorResultAssets:t.mutation({query:t=>{var e;let n=new URLSearchParams;return null===(e=t.urnList)||void 0===e||e.forEach(t=>n.append("staged_resource_urns",t)),{method:"POST",url:"/plus/discovery-monitor/promote?".concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultAssets:t.mutation({query:t=>{var e;let n=new URLSearchParams;return null===(e=t.urnList)||void 0===e||e.forEach(t=>n.append("staged_resource_urns",t)),{method:"POST",url:"/plus/discovery-monitor/mute?".concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),updateAssetsSystem:t.mutation({query:t=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(t.monitorId,"/results"),body:t.urnList.map(e=>({urn:e,user_assigned_system_key:t.systemKey}))}),invalidatesTags:["Discovery Monitor Results","System Assets"]}),updateAssetsDataUse:t.mutation({query:t=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(t.monitorId,"/results"),body:t.urnList.map(e=>({urn:e,user_assigned_data_uses:t.dataUses}))}),invalidatesTags:["Discovery Monitor Results"]}),updateAssets:t.mutation({query:t=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(t.monitorId,"/results"),body:t.assets}),invalidatesTags:["Discovery Monitor Results"]})})})},51500:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return _}});var i=n(24246),r=n(91922),s=n(79894),o=n.n(s),a=n(27378),u=n(30952),l=n(77213),c=n(77830),d=n(58754),p=n(14481),g=n(7426),f=n(37059);let m=t=>{let{isConfigLoading:e}=t;return(0,i.jsx)(l.Z,{title:"Action center",mainProps:{className:"h-full"},children:(0,i.jsx)(r.jqI,{justify:"center",align:"center",className:"h-full",children:e?(0,i.jsx)(r.$jN,{color:"primary.900"}):(0,i.jsx)(r.DUx,{message:"Coming soon...",description:"Action center is currently disabled.",type:"info",showIcon:!0})})})},v=()=>(0,i.jsx)(r.oj8,{image:r.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up! Set up an integration monitor to track your infrastructure in greater detail.",children:(0,i.jsx)(o(),{href:c.KH,passHref:!0,legacyBehavior:!0,children:(0,i.jsx)(r.wpx,{type:"primary",children:"Visit integrations"})})});var y=n(7195),h=n(16394);let{Text:x}=r.AntTypography,j=t=>{let{monitorSummary:e,showSkeleton:n,...s}=t,[u,l]=(0,a.useState)(void 0),{name:d,property:p,total_updates:g,updates:f,last_monitored:m,warning:v,secrets:j,key:_}=e,b=Object.entries(f).map(t=>"".concat(t[1]," ").concat(t[0],"s")).join(", "),C=m?(0,h.p6)(new Date(m)):void 0,S=m?(0,y.B)(new Date(m),new Date,{addSuffix:!0}):void 0;return(0,a.useEffect)(()=>{p&&l((0,h.tl)(p,60)),(null==j?void 0:j.url)&&l((0,h.tl)((0,h.ge)(j.url),60))},[p,null==j?void 0:j.url]),(0,i.jsx)(r.krs.Item,{"data-testid":"monitor-result-".concat(_),...s,children:(0,i.jsx)(r.N_L,{avatar:!0,title:!1,loading:n,active:!0,children:(0,i.jsxs)(r.bue,{gutter:12,className:"w-full",children:[(0,i.jsx)(r.JGx,{span:18,className:"align-middle",children:(0,i.jsx)(r.krs.Item.Meta,{avatar:(0,i.jsx)(r.t3Z,{src:u,size:30,icon:(0,i.jsx)(r.PJP.huD,{}),style:{backgroundColor:"transparent",color:"var(--ant-color-text)"}}),title:(0,i.jsxs)(o(),{href:"".concat(c.vi,"/").concat(_),className:"whitespace-nowrap",children:["".concat(g," assets detected").concat(p?" on ".concat(p):""),!!v&&(0,i.jsx)(r.esZ,{title:"string"==typeof v?v:void 0,children:(0,i.jsx)(r.PJP.OdJ,{className:"ml-1 inline-block align-middle",style:{color:"var(--fidesui-error)"}})})]}),description:"".concat(b," detected.")})}),(0,i.jsx)(r.JGx,{span:4,className:"flex items-center justify-end",children:(0,i.jsx)(x,{ellipsis:{tooltip:d},children:d})}),(0,i.jsx)(r.JGx,{span:2,className:"flex items-center justify-end",children:!!S&&(0,i.jsx)(r.esZ,{title:C,children:(0,i.jsx)(x,{"data-testid":"monitor-date",ellipsis:{tooltip:C},children:S})})})]})})})};var _=()=>{var t;let e=(0,r.pmc)(),{PAGE_SIZES:n,pageSize:s,setPageSize:y,onPreviousPageClick:h,isPreviousPageDisabled:x,onNextPageClick:_,isNextPageDisabled:b,startRange:C,endRange:S,pageIndex:T,setTotalPages:w,resetPageIndexToDefault:P}=(0,p.oi)(),[k,R]=(0,a.useState)(""),{data:q,isLoading:N}=(0,g.tB)({api_set:!1}),A=!!(null==q?void 0:null===(t=q.detection_discovery)||void 0===t?void 0:t.website_monitor_enabled);(0,a.useEffect)(()=>{P()},[k,P]);let{data:E,isError:D,isLoading:M,isFetching:I}=(0,f.Ud)({page:T,size:s,search:k},{skip:N||!A});(0,a.useEffect)(()=>{D&&e&&A&&e({title:"Error fetching data",description:"Please try again later",status:"error"})},[D,e,A]),(0,a.useEffect)(()=>{E&&w(E.total||1)},[E,w]);let L=(null==E?void 0:E.items)||[],O=I?Array.from({length:s},(t,e)=>({key:e.toString(),updates:[],last_monitored:null})):[],U=(0,a.useCallback)(t=>[(0,i.jsx)(o(),{href:"".concat(c.vi,"/").concat(t),passHref:!0,legacyBehavior:!0,children:(0,i.jsx)(r.wpx,{type:"link",className:"p-0","data-testid":"review-button-".concat(t),children:"Review"})},"review")],[]);return A?(0,i.jsxs)(l.Z,{title:"Action center",children:[(0,i.jsx)(d.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity"}]}),(0,i.jsx)(r.jqI,{className:"justify-between py-6",children:(0,i.jsx)(u.f,{value:k,onChange:R})}),(0,i.jsx)(r.krs,{loading:M,dataSource:L||O,locale:{emptyText:(0,i.jsx)(v,{})},renderItem:t=>!!t&&(0,i.jsx)(j,{showSkeleton:I,monitorSummary:t,actions:U(t.key)},t.key)}),!!L&&!!(null==E?void 0:E.total)&&E.total>s&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.htM,{className:"mb-6 mt-0"}),(0,i.jsx)(p.s8,{totalRows:(null==E?void 0:E.total)||0,pageSizes:n,setPageSize:y,onPreviousPageClick:h,isPreviousPageDisabled:x||I,onNextPageClick:_,isNextPageDisabled:b||I,startRange:C,endRange:S})]})]}):(0,i.jsx)(m,{isConfigLoading:N})}}},function(t){t.O(0,[8033,6060,4481,2888,9774,179],function(){return t(t.s=40741)}),_N_E=t.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7477],{74833:function(e,t,i){var n=i(56127),r=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(r,""):e}},56127:function(e){var t=/\s/;e.exports=function(e){for(var i=e.length;i--&&t.test(e.charAt(i)););return i}},66726:function(e,t,i){var n=i(11611),r=i(82846),s=i(91936),o=Math.max,a=Math.min;e.exports=function(e,t,i){var l,c,d,u,f,x,h=0,L=!1,g=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function m(t){var i=l,n=c;return l=c=void 0,h=t,u=e.apply(n,i)}function j(e){var i=e-x,n=e-h;return void 0===x||i>=t||i<0||g&&n>=d}function p(){var e,i,n,s=r();if(j(s))return I(s);f=setTimeout(p,(e=s-x,i=s-h,n=t-e,g?a(n,d-i):n))}function I(e){return(f=void 0,v&&l)?m(e):(l=c=void 0,u)}function _(){var e,i=r(),n=j(i);if(l=arguments,c=this,x=i,n){if(void 0===f)return h=e=x,f=setTimeout(p,t),L?m(e):u;if(g)return clearTimeout(f),f=setTimeout(p,t),m(x)}return void 0===f&&(f=setTimeout(p,t)),u}return t=s(t)||0,n(i)&&(L=!!i.leading,d=(g="maxWait"in i)?o(s(i.maxWait)||0,t):d,v="trailing"in i?!!i.trailing:v),_.cancel=function(){void 0!==f&&clearTimeout(f),h=0,l=x=c=f=void 0},_.flush=function(){return void 0===f?u:I(r())},_}},11611:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},55193:function(e,t,i){var n=i(99736),r=i(92360);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==n(e)}},82846:function(e,t,i){var n=i(77400);e.exports=function(){return n.Date.now()}},91936:function(e,t,i){var n=i(74833),r=i(11611),s=i(55193),o=0/0,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(s(e))return o;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var i=l.test(e);return i||c.test(e)?d(e.slice(2),i?2:8):a.test(e)?o:+e}},45550:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/activity",function(){return i(3680)}])},30952:function(e,t,i){"use strict";i.d(t,{f:function(){return l}});var n=i(24246),r=i(66726),s=i.n(r),o=i(27378),a=i(26917);let l=e=>{let{value:t,onChange:i,placeholder:r,...l}=e,[c,d]=(0,o.useState)(t),u=s()(i,500),f=(0,o.useCallback)(e=>{d(e),u(e)},[]);return(0,n.jsx)(a.Z,{value:c,onChange:f,onClear:()=>{d(""),i("")},placeholder:r,...l})}},35287:function(e,t,i){"use strict";var n=i(24246),r=i(91922),s=i(88038),o=i.n(s);i(27378),t.Z=e=>{let{children:t,title:i,mainProps:s}=e;return(0,n.jsxs)(r.kCb,{"data-testid":i,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,n.jsxs)(o(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsx)(r.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...s,children:t})]})}},58754:function(e,t,i){"use strict";var n=i(24246),r=i(91922),s=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:o=!0,children:a,rightContent:l,style:c,...d}=e;return(0,n.jsxs)("div",{...d,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",...c}:{paddingBottom:"24px",...c},children:[(0,n.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(r.lQT,{className:i||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!i&&(0,n.jsx)(s.m,{className:a?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),a]})}},14047:function(e,t,i){"use strict";i.d(t,{H:function(){return s},V:function(){return n.V}});var n=i(84306),r=i(812);let s=()=>{let{errorAlert:e}=(0,n.V)();return{handleError:t=>{let i="An unexpected error occurred. Please try again.";(0,r.Ot)(t)?i=t.data.detail:(0,r.tB)(t)&&(i=t.data.detail[0].msg),e(i)}}}},84306:function(e,t,i){"use strict";i.d(t,{V:function(){return s}});var n=i(24246),r=i(91922);let s=()=>{let e=(0,r.pmc)();return{errorAlert:(t,i,s)=>{let o={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=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:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:t})]}),(0,n.jsx)(r.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,o):e(o)},successAlert:(t,i,s)=>{let o={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=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:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:t})]}),(0,n.jsx)(r.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,o):e(o)}}}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return c}});var n=i(24246),r=i(91922),s=i(79894),o=i.n(s),a=i(27378);let{Text:l}=r.AntTypography,c=e=>{let{items:t,...i}=e,s=(0,a.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let s=i===t.length-1,a={...e},c=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,n.jsx)(l,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:a.title})),c)?a.title=(0,n.jsx)(r.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,n.jsx)(o(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,n.jsx)(r.zrq,{items:s,...i})}},79494:function(e,t,i){"use strict";var n=i(24246),r=i(91922);t.Z=e=>{let{title:t,icon:i,type:s,...o}=e;return(0,n.jsx)(r.wpx,{size:"small",type:s,"data-testid":"action-".concat(t),icon:i,iconPosition:"start",...o,children:t})}},38347:function(e,t,i){"use strict";var n=i(24246),r=i(91922),s=i(56839);t.Z=()=>(0,n.jsxs)(r.J2e,{isLazy:!0,trigger:"hover",children:[(0,n.jsx)(r.xol,{children:(0,n.jsx)(r.UOT,{color:"gray.400"})}),(0,n.jsxs)(r.yky,{bgColor:"gray.800",color:"white",fontSize:"sm",w:"auto",border:"none",children:[(0,n.jsx)(r.Ytg,{fontWeight:"semibold",border:"none",pb:0,children:"Activity legend:"}),(0,n.jsx)(r.QHN,{bgColor:"gray.800"}),(0,n.jsx)(r.baG,{border:"none",children:(0,n.jsxs)(r.MIq,{columns:2,spacing:2,children:[(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(s.Rv,{})," Change detected"]}),(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(s.$P,{})," Data labeled"]}),(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(s.zj,{})," Monitoring"]}),(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(s.dK,{})," Addition detected"]}),(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(s.Kr,{})," Unmonitored"]}),(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(s.q1,{})," Removal detected"]})]})})]})]})},47182:function(e,t,i){"use strict";var n=i(86677),r=i(77830);t.Z=()=>{let e=(0,n.useRouter)();return{monitorId:e.query.monitorId,resourceUrn:e.query.resourceUrn,navigateToDetectionResults:t=>{let{resourceUrn:i,filterTabIndex:n}=t;e.push({pathname:r.dS,query:{resourceUrn:i,filterTabIndex:n}})},navigateToDiscoveryResults:t=>{let{resourceUrn:i,filterTabIndex:n}=t;e.push({pathname:r.Sj,query:{resourceUrn:i,filterTabIndex:n}})}}}},56839:function(e,t,i){"use strict";i.d(t,{dK:function(){return d},Rv:function(){return x},$P:function(){return f},zj:function(){return h},Kr:function(){return L},q1:function(){return u},QL:function(){return g}});var n=i(24246),r=i(91922);let s=(0,r.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"})}),o=(0,r.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"})}),a=(0,r.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,r.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 c=i(28278);let d=()=>(0,n.jsx)(a,{color:"green.400",boxSize:2,mr:2,"data-testid":"add-icon"}),u=()=>(0,n.jsx)(o,{color:"red.400",boxSize:2,mr:2,"data-testid":"remove-icon"}),f=()=>(0,n.jsx)(l,{color:"orange.400",boxSize:3,mr:1,"data-testid":"classify-icon"}),x=()=>(0,n.jsx)(s,{color:"blue.400",boxSize:2.5,mb:"2px",mr:"6px","data-testid":"change-icon"}),h=()=>(0,n.jsx)(s,{color:"green.400",boxSize:2,mr:2,"data-testid":"monitored-icon"}),L=()=>(0,n.jsx)(s,{color:"red.400",boxSize:2,mr:2,"data-testid":"muted-icon"}),g={[c.E.ADDITION]:(0,n.jsx)(d,{}),[c.E.REMOVAL]:(0,n.jsx)(u,{}),[c.E.CLASSIFICATION]:(0,n.jsx)(f,{}),[c.E.CHANGE]:(0,n.jsx)(x,{}),[c.E.MONITORED]:(0,n.jsx)(h,{}),[c.E.MUTED]:(0,n.jsx)(L,{}),[c.E.IN_PROGRESS]:(0,n.jsx)(()=>(0,n.jsx)(s,{color:"orange.400",boxSize:2,mr:2,"data-testid":"in-progress-icon"}),{}),[c.E.NONE]:null}},54409:function(e,t,i){"use strict";i.d(t,{Z:function(){return h}});var n=i(24246),r=i(91922),s=i(812),o=i(14047),a=i(16643),l=i(31883);let c=(0,r.IUT)({displayName:"MonitorOffIcon",viewBox:"0 0 12 12",path:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.47125 1H5.85H6.15H6.51188L6.58875 1.36914L7.52062 5.83268L6.42408 4.98635L6.03375 3.11719L5.8038 4.50761L4.99323 3.882L5.40562 1.38867L5.47125 1ZM4.80795 5.0022L4.67675 5.79545L5.48735 6.42109L5.61854 5.62783L4.80795 5.0022ZM6.73856 6.49227L6.96125 7.55866L8.42407 8.6877L8.69498 8.00228L7.94864 7.42624L7.88625 7.58398L7.83501 7.33853L6.73856 6.49227ZM8.33138 6.45844L9.07755 7.03434L9.30188 6.4668H11.55H12V5.5293H11.55H9H8.69812L8.58375 5.82031L8.33138 6.45844ZM7.27551 9.06443L7.35399 9.125H7.28813L7.27551 9.06443ZM4.49147 6.91566L5.30209 7.54131L4.79437 10.6113L4.72875 11H4.35H4.05H3.69563L3.61313 10.6406L2.64563 6.46875H0.45H0V5.53125H0.45H2.69777L3.49646 6.1477L4.15125 8.97266L4.49147 6.91566Z",fill:"currentColor"}),(0,n.jsx)("g",{"clip-path":"url(#clip0_341_3102)",children:(0,n.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.6755 10.4168L0.164222 2.304L0.775218 1.51237L11.2865 9.62517L10.6755 10.4168Z",fill:"currentColor"})}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"clip0_341_3102",children:(0,n.jsx)("rect",{width:"11.5",height:"9",fill:"white",transform:"translate(0 1.5)"})})})]})}),d=(0,r.IUT)({displayName:"MonitorOnIcon",viewBox:"0 0 12 10",path:(0,n.jsx)("path",{d:"M5.47125 0H5.85H6.15H6.51188L6.58875 0.369141L7.88625 6.58398L8.58375 4.82031L8.69812 4.5293H9H11.55H12V5.4668H11.55H9.30188L8.36625 7.83398L8.25188 8.125H7.95H7.65H7.28813L7.21125 7.75586L6.03375 2.11719L4.79437 9.61133L4.72875 10H4.35H4.05H3.69563L3.61313 9.64062L2.64563 5.46875H0.45H0V4.53125H0.45H3H3.35438L3.43688 4.89062L4.15125 7.97266L5.40562 0.388672L5.47125 0Z",fill:"currentColor"})});var u=i(79494),f=i(70675),x=i(7940),h=e=>{let{resource:t,ignoreChildActions:i=!1}=e,h=(0,x.G)(t),[L,{isLoading:g}]=(0,f.v8)(),[v,{isLoading:m}]=(0,f.vi)(),[j,{isLoading:p}]=(0,f.Tl)(),{successAlert:I,errorAlert:_}=(0,o.V)(),C=async()=>{let e=await L({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id});(0,l.D4)(e)?_((0,s.e$)(e.error,"Failed to confirm resource")):I("Data discovery has started. The results may take some time to appear in the “Data discovery“ tab.","".concat(t.name||"The resource"," is now being monitored."))},A=async()=>{let e=await j({staged_resource_urn:t.urn});(0,l.D4)(e)?_((0,s.e$)(e.error),"Failed to un-mute resource"):I("".concat(t.name||"The resource"," has been un-muted and is now being monitored."))},T=async()=>{let e=await L({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id,unmute_children:!0,classify_monitored_resources:!0});(0,l.D4)(e)?_((0,s.e$)(e.error),"Failed to un-mute resource"):I("Data discovery has started. The results may take some time to appear in the “Data discovery“ tab.","".concat(t.name||"The resource"," is now being monitored."))},D=async()=>{let e=await L({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id});(0,l.D4)(e)?_((0,s.e$)(e.error),"Failed to confirm resource"):I('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},E=async()=>{let e=await v({staged_resource_urn:t.urn});(0,l.D4)(e)?_((0,s.e$)(e.error),"Failed to mute resource"):I("Ignored data will not be monitored for changes or added to Fides datasets.","".concat(t.name||"Resource"," ignored"))},S=g||m||p,{diff_status:b,child_diff_statuses:y}=t,N=h===a.D$.SCHEMA,O=h===a.D$.FIELD,w=N&&void 0===b||!O&&b===a.LL.ADDITION,Z=b!==a.LL.MUTED,M=b===a.LL.MUTED&&!O,R=b===a.LL.MUTED&&O,H=y&&(y[a.LL.ADDITION]||y[a.LL.REMOVAL]),F=b===a.LL.MONITORED&&!i&&H;return(0,n.jsxs)(r.Ugi,{children:[w&&(0,n.jsx)(u.Z,{title:"Monitor",icon:(0,n.jsx)(d,{}),onClick:C,disabled:S,loading:g}),R&&(0,n.jsx)(u.Z,{title:"Un-Mute",icon:(0,n.jsx)(d,{}),onClick:A,disabled:S,loading:g}),M&&(0,n.jsx)(u.Z,{title:"Monitor",icon:(0,n.jsx)(d,{}),onClick:T,disabled:S,loading:g}),F&&(0,n.jsx)(u.Z,{title:"Confirm",icon:(0,n.jsx)(r.nQG,{}),onClick:D,disabled:S,loading:g}),Z&&(0,n.jsx)(u.Z,{title:"Ignore",icon:(0,n.jsx)(c,{}),onClick:E,disabled:S,loading:m})]})}},91761:function(e,t,i){"use strict";var n=i(24246),r=i(91922),s=i(812),o=i(14047),a=i(7940),l=i(98559),c=i(16643),d=i(79494),u=i(70675);t.Z=e=>{let{resource:t}=e,[i,{isLoading:f}]=(0,u.v8)(),[x,{isLoading:h}]=(0,u.cM)(),[L,{isLoading:g}]=(0,u.vi)(),v=h||g||f,{diff_status:m,child_diff_statuses:j,top_level_field_name:p}=t,{successAlert:I,errorAlert:_}=(0,o.V)(),C=m===c.LL.CLASSIFICATION_ADDITION||m===c.LL.CLASSIFICATION_UPDATE,A=j&&(j[c.LL.CLASSIFICATION_ADDITION]||j[c.LL.CLASSIFICATION_UPDATE]),T=(C||A)&&!p,D=C||A,E=(0,a.G)(t)!==c.D$.FIELD,S=T&&D&&E,b=async()=>{let e=await x({staged_resource_urn:t.urn});(0,s.D4)(e)?_((0,s.e$)(e.error),"Failed to promote resource"):I('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},y=async()=>{let e=await L({staged_resource_urn:t.urn});(0,s.D4)(e)?_((0,s.e$)(e.error),"Failed to mute resource"):I("Ignored changes will not be added to a Fides dataset.","".concat(t.name||"Changes"," ignored"))},N=async()=>{let e=await i({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id,start_classification:!0,classify_monitored_resources:!0});(0,s.D4)(e)?_((0,s.e$)(e.error),"Failed to reclassify resource"):I("Reclassification of ".concat((0,l.Z)(t)||"the resource"," has begun. The results may take some time to appear in the “Data discovery“ tab."),"Reclassification started")};return(0,n.jsxs)(r.Ugi,{gap:2,children:[T&&(0,n.jsx)(d.Z,{title:"Confirm",icon:(0,n.jsx)(r.nQG,{}),onClick:b,disabled:v,loading:h}),D&&(0,n.jsx)(d.Z,{title:"Ignore",icon:(0,n.jsx)(r.tpL,{}),onClick:y,disabled:v,loading:g}),E&&!S&&(0,n.jsx)(d.Z,{title:"Reclassify",icon:(0,n.jsx)(r.nyI,{}),onClick:N,disabled:v,loading:f}),S&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.LZC,{}),(0,n.jsxs)(r.v2r,{children:[(0,n.jsx)(r.j2t,{as:r.wpx,size:"small",type:"text",icon:(0,n.jsx)(r.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-overflow-btn"}),(0,n.jsx)(r.qyq,{children:(0,n.jsx)(r.sNh,{onClick:N,icon:(0,n.jsx)(r.nyI,{}),"data-testid":"action-reclassify",children:"Reclassify"})})]})]})]})}},87667:function(e,t,i){"use strict";var n=i(24246),r=i(91922),s=i(56839),o=i(20449),a=i(98559),l=i(80356);t.Z=e=>{let{result:t,changeTypeOverride:i}=e,c=null!=i?i:(0,o.Z)(t);return(0,n.jsxs)(r.kCb,{alignItems:"center",height:"100%",children:[(0,n.jsx)(r.esZ,{title:c,children:(0,n.jsx)("span",{children:s.QL[c]})}),(0,n.jsx)(r.xvT,{fontSize:"xs",lineHeight:4,fontWeight:(0,l.Z)(t)?"semibold":"normal",overflow:"hidden",textOverflow:"ellipsis",children:(0,a.Z)(t)})]})}},50169:function(e,t,i){"use strict";var n=i(24246),r=i(14481),s=i(28278),o=i(20449);let a={[s.E.MUTED]:{color:"marble",label:"Unmonitored"},[s.E.MONITORED]:{color:"success",label:"Monitoring"},[s.E.IN_PROGRESS]:{color:"info",label:"Classifying"}};t.Z=e=>{var t,i,s,l,c;let{result:d,changeTypeOverride:u}=e;if(null===(t=d.user_assigned_data_categories)||void 0===t?void 0:t.length)return(0,n.jsx)(r.A4,{color:"success",value:"Reviewed"});let f=null!=u?u:(0,o.Z)(d);return(0,n.jsx)(r.A4,{color:null!==(l=null===(i=a[f])||void 0===i?void 0:i.color)&&void 0!==l?l:"warning",value:null!==(c=null===(s=a[f])||void 0===s?void 0:s.label)&&void 0!==c?c:"Pending review"})}},28278:function(e,t,i){"use strict";var n,r;i.d(t,{E:function(){return n}}),(r=n||(n={})).ADDITION="Addition",r.CHANGE="Change",r.REMOVAL="Removal",r.CLASSIFICATION="Classification",r.IN_PROGRESS="Classifying",r.MONITORED="Monitoring",r.MUTED="Unmonitored",r.NONE="--"},74241:function(e,t){"use strict";t.Z=e=>{let t=e.split(".");return t.length>1?t[1]:""}},20449:function(e,t,i){"use strict";var n=i(28278),r=i(16643);t.Z=e=>e.diff_status===r.LL.ADDITION?n.E.ADDITION:e.diff_status===r.LL.REMOVAL?n.E.REMOVAL:e.diff_status===r.LL.CLASSIFYING||e.diff_status===r.LL.CLASSIFICATION_QUEUED?n.E.IN_PROGRESS:e.diff_status===r.LL.CLASSIFICATION_ADDITION||e.diff_status===r.LL.CLASSIFICATION_UPDATE?n.E.CLASSIFICATION:e.child_diff_statuses?e.child_diff_statuses[r.LL.CLASSIFYING]||e.child_diff_statuses[r.LL.CLASSIFICATION_QUEUED]?n.E.IN_PROGRESS:e.child_diff_statuses[r.LL.CLASSIFICATION_ADDITION]||e.child_diff_statuses[r.LL.CLASSIFICATION_UPDATE]?n.E.CLASSIFICATION:e.child_diff_statuses[r.LL.ADDITION]||e.child_diff_statuses[r.LL.REMOVAL]?n.E.CHANGE:e.diff_status===r.LL.MONITORED?n.E.MONITORED:e.diff_status===r.LL.MUTED?n.E.MUTED:n.E.NONE:n.E.NONE},7940:function(e,t,i){"use strict";i.d(t,{G:function(){return r}});var n=i(16643);let r=e=>{var t,i,r;return e?e.resource_type?e.resource_type:(null===(t=e.schemas)||void 0===t?void 0:t.length)?n.D$.DATABASE:(null===(i=e.tables)||void 0===i?void 0:i.length)?n.D$.SCHEMA:(null===(r=e.fields)||void 0===r?void 0:r.length)?n.D$.TABLE:n.D$.FIELD:void 0}},98559:function(e,t){"use strict";t.Z=e=>{let{name:t,urn:i,monitor_config_id:n,database_name:r,schema_name:s,table_name:o,top_level_field_name:a,top_level_field_urn:l}=e;if(!a)return t;let c=i.split(".");return l?i.replace("".concat(l).concat("."),""):([n,r,s,o,a].forEach(e=>{if(e){let t=c.indexOf(e);t>-1&&c.splice(t,1)}}),c.join("."))}},80285:function(e,t){"use strict";t.Z=e=>e.urn},36168:function(e,t){"use strict";t.Z=e=>{var t;return!!e.parent_table_urn&&null!==(t=e.sub_field_urns)&&void 0!==t&&!!t.length&&!e.top_level_field_name}},80356:function(e,t,i){"use strict";var n=i(7940),r=i(36168),s=i(16643);t.Z=e=>(0,n.G)(e)!==s.D$.FIELD||(0,r.Z)(e)},3680:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return O}});var n,r,s=i(24246),o=i(27378),a=i(35287),l=i(58754),c=i(47182),d=i(92222),u=i(59003),f=i(91922),x=i(14481),h=i(72625),L=i(70675),g=i(38347),v=i(87667),m=i(50169),j=i(80285),p=i(30952);(n=r||(r={})).DATASET="Dataset",n.CLASSIFICATION="Classification";var I=i(74241),_=i(28278),C=i(20449),A=e=>(0,C.Z)(e)===_.E.CLASSIFICATION?r.CLASSIFICATION:r.DATASET,T=i(54409),D=i(91761);let E={items:[],total:0,page:1,size:50,pages:1},S=()=>(0,s.jsx)(f.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,s.jsxs)(f.gCW,{children:[(0,s.jsx)(f.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,s.jsx)(f.xvT,{fontSize:"sm",children:"You're up to date!"})]})}),b=(0,d.Cl)();var y=e=>{let{onRowClick:t,statusFilters:i,childsStatusFilters:n}=e,[a,l]=(0,o.useState)(""),{PAGE_SIZES:c,pageSize:_,setPageSize:C,onPreviousPageClick:y,isPreviousPageDisabled:N,onNextPageClick:O,isNextPageDisabled:w,startRange:Z,endRange:M,pageIndex:R,setTotalPages:H}=(0,x.oi)(),{isFetching:F,isLoading:V,data:k}=(0,L.z8)({diff_status:i,child_diff_status:n,page:R,size:_,search:a}),{items:U,total:P,pages:z}=(0,o.useMemo)(()=>null!=k?k:E,[k]);(0,o.useEffect)(()=>{H(z)},[z,H]);let $=(0,o.useMemo)(()=>[b.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(v.Z,{result:e.row.original}),header:e=>(0,s.jsx)(x.Rr,{value:"Name",...e})}),b.accessor(e=>e.urn,{id:"project",cell:e=>(0,s.jsx)(x.G3,{value:(0,I.Z)(e.getValue())}),header:e=>(0,s.jsx)(x.Rr,{value:"Project",...e})}),b.display({id:"status",cell:e=>(0,s.jsx)(m.Z,{result:e.row.original}),header:e=>(0,s.jsx)(x.Rr,{value:"Status",...e})}),b.accessor(e=>e.system,{id:"system",cell:e=>(0,s.jsx)(x.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(x.Rr,{value:"System",...e})}),b.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,s.jsx)(x.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(x.Rr,{value:"Detected by",...e})}),b.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,s.jsx)(h.Cy,{time:e.getValue()}),header:e=>(0,s.jsx)(x.Rr,{value:"When",...e})}),b.accessor(e=>e,{id:"action",cell:e=>A(e.getValue())===r.DATASET?(0,s.jsx)(T.Z,{resource:e.getValue()}):(0,s.jsx)(D.Z,{resource:e.getValue()}),header:e=>(0,s.jsx)(x.Rr,{value:"Action",...e})})],[]),G=(0,u.b7)({getCoreRowModel:(0,d.sC)(),getGroupedRowModel:(0,d.qe)(),getExpandedRowModel:(0,d.rV)(),getRowId:j.Z,columns:$,manualPagination:!0,data:U,columnResizeMode:"onChange"});return V?(0,s.jsx)(x.I4,{rowHeight:36,numRows:36}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(x.Q$,{children:(0,s.jsxs)(f.kCb,{gap:6,align:"center",children:[(0,s.jsx)(f.xuv,{flexShrink:0,children:(0,s.jsx)(p.f,{value:a,onChange:l})}),(0,s.jsx)(g.Z,{})]})}),(0,s.jsx)(x.ZK,{tableInstance:G,onRowClick:t,emptyTableNotice:(0,s.jsx)(S,{})}),(0,s.jsx)(x.s8,{totalRows:P||0,pageSizes:c,setPageSize:C,onPreviousPageClick:y,isPreviousPageDisabled:N||F,onNextPageClick:O,isNextPageDisabled:w||F,startRange:Z,endRange:M})]})},N=i(16643),O=()=>{let{navigateToDetectionResults:e,navigateToDiscoveryResults:t}=(0,c.Z)();return(0,s.jsxs)(a.Z,{title:"Data discovery",children:[(0,s.jsx)(l.Z,{heading:"All activity"}),(0,s.jsx)(y,{onRowClick:i=>{if(A(i)===r.DATASET){e({resourceUrn:i.urn});return}t({resourceUrn:i.urn})},statusFilters:[N.LL.ADDITION,N.LL.REMOVAL,N.LL.CLASSIFICATION_ADDITION,N.LL.CLASSIFICATION_UPDATE],childsStatusFilters:[N.LL.ADDITION,N.LL.REMOVAL,N.LL.CLASSIFICATION_ADDITION,N.LL.CLASSIFICATION_UPDATE]})]})}},31883:function(e,t,i){"use strict";i.d(t,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=i(19043)}},function(e){e.O(0,[8033,6060,4481,2888,9774,179],function(){return e(e.s=45550)}),_N_E=e.O()}]);