ethyca-fides 2.57.1b5__py2.py3-none-any.whl → 2.57.1b7__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 (221) hide show
  1. {ethyca_fides-2.57.1b5.dist-info → ethyca_fides-2.57.1b7.dist-info}/METADATA +1 -1
  2. {ethyca_fides-2.57.1b5.dist-info → ethyca_fides-2.57.1b7.dist-info}/RECORD +190 -189
  3. fides/_version.py +3 -3
  4. fides/api/api/v1/endpoints/config_endpoints.py +4 -2
  5. fides/api/models/attachment.py +6 -8
  6. fides/api/models/comment.py +17 -17
  7. fides/api/models/privacy_request/privacy_request.py +61 -0
  8. fides/api/service/storage/s3.py +133 -0
  9. fides/api/service/storage/util.py +10 -0
  10. fides/api/tasks/storage.py +12 -111
  11. fides/config/__init__.py +1 -1
  12. fides/ui-build/static/admin/404.html +1 -1
  13. fides/ui-build/static/admin/_next/static/chunks/1376-c177d8d0c60b1166.js +1 -0
  14. fides/ui-build/static/admin/_next/static/chunks/2201-0452b4135058f0fc.js +1 -0
  15. fides/ui-build/static/admin/_next/static/chunks/302-fb0e3cd140c4364d.js +1 -0
  16. fides/ui-build/static/admin/_next/static/chunks/3320-317483e6c10bae51.js +1 -0
  17. fides/ui-build/static/admin/_next/static/chunks/355-6a87b50acf54e985.js +1 -0
  18. fides/ui-build/static/admin/_next/static/chunks/3662-6a0cafa3023aa7a2.js +1 -0
  19. fides/ui-build/static/admin/_next/static/chunks/4723-1a785d558dfb6441.js +1 -0
  20. fides/ui-build/static/admin/_next/static/chunks/6362-0ca70f8cfd020723.js +1 -0
  21. fides/ui-build/static/admin/_next/static/chunks/6954-f7daf613febc36ef.js +1 -0
  22. fides/ui-build/static/admin/_next/static/chunks/7434-3d4a0beb84ec57f7.js +1 -0
  23. fides/ui-build/static/admin/_next/static/chunks/7495-b7fa6fdbd910bd72.js +1 -0
  24. fides/ui-build/static/admin/_next/static/chunks/7980-91800d54c5964ba3.js +1 -0
  25. fides/ui-build/static/admin/_next/static/chunks/pages/{_app-b8d38dabe3db0ee0.js → _app-e53d13729068a001.js} +8 -8
  26. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-05ab19822a7e9f80.js → manual-f8c0b05aae0bbcd1.js} +1 -1
  27. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-18b0b521255289a3.js → multiple-6a7208eee5e588fb.js} +1 -1
  28. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-a33f82e79cb09478.js +1 -0
  29. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-64f83e9a2b777bf3.js → add-vendors-ba0c5fa9764cbd89.js} +1 -1
  30. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-e11ace4f273ebb47.js → configure-1af99ffa7a507e86.js} +1 -1
  31. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-443e6dd191ce5588.js → [id]-c02510104f9e503a.js} +1 -1
  32. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{new-36162d5bea29dcc2.js → new-e96415629f3b4223.js} +1 -1
  33. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-2d651499c07d12d9.js → [id]-66827da90b8a2d1e.js} +1 -1
  34. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-36e57d2f2446be82.js → new-13d48f980bf707e5.js} +1 -1
  35. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-1a3bb713fc7bc298.js +1 -0
  36. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-5892ca5d93ea6165.js +1 -0
  37. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-5c37c3ad1c3cfba5.js +1 -0
  38. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-4fac7e0a54eebc32.js +1 -0
  39. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-45016545c099e183.js +1 -0
  40. fides/ui-build/static/admin/_next/static/chunks/pages/dataset-5ddd3cd7d29e89c0.js +1 -0
  41. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-0616437e1a82d3ed.js → [id]-f68c3ee92505994f.js} +1 -1
  42. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-f8218440494e8532.js → new-89bc670d278e3749.js} +1 -1
  43. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-3742c349e9a0020d.js +1 -0
  44. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-577b95cb0006f387.js +1 -0
  45. fides/ui-build/static/admin/_next/static/chunks/pages/messaging-5a161e167c251519.js +1 -0
  46. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-c3e234ad95e6e213.js +1 -0
  47. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-347e203faa31716f.js +1 -0
  48. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-729fa8ed0f10bc8e.js +1 -0
  49. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-ff6edba56dfec090.js +1 -0
  50. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-ad368857e86fe01b.js +1 -0
  51. fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-f45920358a405167.js +1 -0
  52. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-ca753b60ca1745c5.js → [id]-c234398ee8265485.js} +1 -1
  53. fides/ui-build/static/admin/_next/static/css/dd9922a434d21e22.css +1 -0
  54. fides/ui-build/static/admin/_next/static/dctUooMB4AAq5YqgLKNt9/_buildManifest.js +1 -0
  55. fides/ui-build/static/admin/add-systems/manual.html +1 -1
  56. fides/ui-build/static/admin/add-systems/multiple.html +1 -1
  57. fides/ui-build/static/admin/add-systems.html +1 -1
  58. fides/ui-build/static/admin/ant-poc.html +1 -1
  59. fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
  60. fides/ui-build/static/admin/consent/configure.html +1 -1
  61. fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
  62. fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
  63. fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
  64. fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
  65. fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
  66. fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
  67. fides/ui-build/static/admin/consent/properties.html +1 -1
  68. fides/ui-build/static/admin/consent/reporting.html +1 -1
  69. fides/ui-build/static/admin/consent.html +1 -1
  70. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
  71. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
  72. fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
  73. fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
  74. fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
  75. fides/ui-build/static/admin/data-catalog.html +1 -1
  76. fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
  77. fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
  78. fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
  79. fides/ui-build/static/admin/data-discovery/activity.html +1 -1
  80. fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
  81. fides/ui-build/static/admin/data-discovery/detection.html +1 -1
  82. fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
  83. fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
  84. fides/ui-build/static/admin/datamap.html +1 -1
  85. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
  86. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
  87. fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
  88. fides/ui-build/static/admin/dataset/new.html +1 -1
  89. fides/ui-build/static/admin/dataset.html +1 -1
  90. fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
  91. fides/ui-build/static/admin/datastore-connection/new.html +1 -1
  92. fides/ui-build/static/admin/datastore-connection.html +1 -1
  93. fides/ui-build/static/admin/index.html +1 -1
  94. fides/ui-build/static/admin/integrations/[id].html +1 -1
  95. fides/ui-build/static/admin/integrations.html +1 -1
  96. fides/ui-build/static/admin/login/[provider].html +1 -1
  97. fides/ui-build/static/admin/login.html +1 -1
  98. fides/ui-build/static/admin/messaging/[id].html +1 -1
  99. fides/ui-build/static/admin/messaging/add-template.html +1 -1
  100. fides/ui-build/static/admin/messaging.html +1 -1
  101. fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
  102. fides/ui-build/static/admin/privacy-requests/configure/messaging.html +1 -1
  103. fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
  104. fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
  105. fides/ui-build/static/admin/privacy-requests.html +1 -1
  106. fides/ui-build/static/admin/properties/[id].html +1 -1
  107. fides/ui-build/static/admin/properties/add-property.html +1 -1
  108. fides/ui-build/static/admin/properties.html +1 -1
  109. fides/ui-build/static/admin/reporting/datamap.html +1 -1
  110. fides/ui-build/static/admin/settings/about.html +1 -1
  111. fides/ui-build/static/admin/settings/consent.html +1 -1
  112. fides/ui-build/static/admin/settings/custom-fields.html +1 -1
  113. fides/ui-build/static/admin/settings/domain-records.html +1 -1
  114. fides/ui-build/static/admin/settings/domains.html +1 -1
  115. fides/ui-build/static/admin/settings/email-templates.html +1 -1
  116. fides/ui-build/static/admin/settings/locations.html +1 -1
  117. fides/ui-build/static/admin/settings/organization.html +1 -1
  118. fides/ui-build/static/admin/settings/regulations.html +1 -1
  119. fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
  120. fides/ui-build/static/admin/systems/configure/[id].html +1 -1
  121. fides/ui-build/static/admin/systems.html +1 -1
  122. fides/ui-build/static/admin/taxonomy.html +1 -1
  123. fides/ui-build/static/admin/user-management/new.html +1 -1
  124. fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
  125. fides/ui-build/static/admin/user-management.html +1 -1
  126. fides/ui-build/static/admin/_next/static/chunks/3215-c8c683b93919e0a5.js +0 -1
  127. fides/ui-build/static/admin/_next/static/chunks/3320-87c75df57a47487e.js +0 -1
  128. fides/ui-build/static/admin/_next/static/chunks/3662-420d9807c30008ab.js +0 -1
  129. fides/ui-build/static/admin/_next/static/chunks/3949-9888699e2ac564c4.js +0 -1
  130. fides/ui-build/static/admin/_next/static/chunks/4723-81d28e5be5c7b6d7.js +0 -1
  131. fides/ui-build/static/admin/_next/static/chunks/5574-a4047e826a8cd4c3.js +0 -1
  132. fides/ui-build/static/admin/_next/static/chunks/5834-bd9ed01c4ab2ef5c.js +0 -1
  133. fides/ui-build/static/admin/_next/static/chunks/5973-3226fe183b48668b.js +0 -1
  134. fides/ui-build/static/admin/_next/static/chunks/6277-cad7c7c8cf48dbec.js +0 -1
  135. fides/ui-build/static/admin/_next/static/chunks/6954-6eb480eb132239c3.js +0 -1
  136. fides/ui-build/static/admin/_next/static/chunks/7044-88111db2aca2cf65.js +0 -1
  137. fides/ui-build/static/admin/_next/static/chunks/7980-2597c279c30fbcda.js +0 -1
  138. fides/ui-build/static/admin/_next/static/chunks/9767-9af77524ed1648c1.js +0 -1
  139. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-136bcbd20ac59bf5.js +0 -1
  140. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-942d68a88b321067.js +0 -1
  141. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-b9fe0f7ef05fd12c.js +0 -1
  142. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-deec7b789ef30dc4.js +0 -1
  143. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-2220c30c3863b5a5.js +0 -1
  144. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-740824dfa6823e26.js +0 -1
  145. fides/ui-build/static/admin/_next/static/chunks/pages/dataset-5541ecd2f62711a5.js +0 -1
  146. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-a8e08ecb0c6c3a7c.js +0 -1
  147. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-1a6965d78bfb26b0.js +0 -1
  148. fides/ui-build/static/admin/_next/static/chunks/pages/messaging-f263e6bacf0f2d19.js +0 -1
  149. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-b96ee3fea3920fcf.js +0 -1
  150. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-1b0f9469cb65abfc.js +0 -1
  151. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-eebd2f4ead19cfd6.js +0 -1
  152. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-4769f55b138073f7.js +0 -1
  153. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-775f55b3f80cd452.js +0 -1
  154. fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-14def4ca3cc9cda5.js +0 -1
  155. fides/ui-build/static/admin/_next/static/css/957d0e4fea846ff0.css +0 -1
  156. fides/ui-build/static/admin/_next/static/nO-B4awcqTzE1AwRkxKgF/_buildManifest.js +0 -1
  157. {ethyca_fides-2.57.1b5.dist-info → ethyca_fides-2.57.1b7.dist-info}/LICENSE +0 -0
  158. {ethyca_fides-2.57.1b5.dist-info → ethyca_fides-2.57.1b7.dist-info}/WHEEL +0 -0
  159. {ethyca_fides-2.57.1b5.dist-info → ethyca_fides-2.57.1b7.dist-info}/entry_points.txt +0 -0
  160. {ethyca_fides-2.57.1b5.dist-info → ethyca_fides-2.57.1b7.dist-info}/top_level.txt +0 -0
  161. /fides/ui-build/static/admin/_next/static/chunks/{1150-73440d7b319558e8.js → 1150-d4a5eef84e70de22.js} +0 -0
  162. /fides/ui-build/static/admin/_next/static/chunks/{2397-d8161100e3634f2c.js → 2397-c6d0dcb3b921555f.js} +0 -0
  163. /fides/ui-build/static/admin/_next/static/chunks/{3086-be6b52546c3efc90.js → 3086-d099019708303444.js} +0 -0
  164. /fides/ui-build/static/admin/_next/static/chunks/{3855-386aec4f0e0e89f1.js → 3855-4d5d936a58a0dd5f.js} +0 -0
  165. /fides/ui-build/static/admin/_next/static/chunks/{3872-0da2c6a790542bd6.js → 3872-2b2bf5ebd4b0a70f.js} +0 -0
  166. /fides/ui-build/static/admin/_next/static/chunks/{4481-0500c40ed13000c0.js → 4481-f2f57e7a75a90e79.js} +0 -0
  167. /fides/ui-build/static/admin/_next/static/chunks/{5246-9fc6af1a6499e0a4.js → 5246-ac8b0fcb44b00af7.js} +0 -0
  168. /fides/ui-build/static/admin/_next/static/chunks/{5258-3a650be9142cf914.js → 5258-a05dcab2f9315dab.js} +0 -0
  169. /fides/ui-build/static/admin/_next/static/chunks/{5480-f5bec5e881f72f8d.js → 5480-c6c1fb87006e471a.js} +0 -0
  170. /fides/ui-build/static/admin/_next/static/chunks/{5487-d96e1abc93f92631.js → 5487-509639439bf9fb46.js} +0 -0
  171. /fides/ui-build/static/admin/_next/static/chunks/{5826-16e497af363a0cbc.js → 5826-e3970cd9440be33b.js} +0 -0
  172. /fides/ui-build/static/admin/_next/static/chunks/{6315-dee79f6861c94d2d.js → 6315-daf94fa7520fb253.js} +0 -0
  173. /fides/ui-build/static/admin/_next/static/chunks/{6372-f1b54f3cb4888660.js → 6372-41afe1e6a9181cc7.js} +0 -0
  174. /fides/ui-build/static/admin/_next/static/chunks/{6853-2777b5ab5717fada.js → 6853-7f95c36e396d3fb8.js} +0 -0
  175. /fides/ui-build/static/admin/_next/static/chunks/{7751-25e0c1307988ffd7.js → 7751-130668529ab1d0b6.js} +0 -0
  176. /fides/ui-build/static/admin/_next/static/chunks/{79-ba88d0cf4c65aaa2.js → 79-1c326c00cf111c00.js} +0 -0
  177. /fides/ui-build/static/admin/_next/static/chunks/{8433-969280d321d1c3a2.js → 8433-b2a96b825124b596.js} +0 -0
  178. /fides/ui-build/static/admin/_next/static/chunks/{8499-07507004e8275df2.js → 8499-34620330ecf2ac53.js} +0 -0
  179. /fides/ui-build/static/admin/_next/static/chunks/{9046-b18572b89f0aaa92.js → 9046-e7b9a3fd010b01ad.js} +0 -0
  180. /fides/ui-build/static/admin/_next/static/chunks/{9282-1a5a2f6f4d9ed586.js → 9282-6ee061da1eb51d65.js} +0 -0
  181. /fides/ui-build/static/admin/_next/static/chunks/{9999-f2e40d5b13343220.js → 9999-8600f6f495a80b38.js} +0 -0
  182. /fides/ui-build/static/admin/_next/static/chunks/pages/{404-1087258931760074.js → 404-8e0baa6e128803ab.js} +0 -0
  183. /fides/ui-build/static/admin/_next/static/chunks/pages/{ant-poc-b3b4d0a98450ffd1.js → ant-poc-39267961e03be6c5.js} +0 -0
  184. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-8b9f75fc0f131240.js → privacy-experience-ed38f18c095141fe.js} +0 -0
  185. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-da37afbe5ec81339.js → privacy-notices-7339b3cdf5d4da32.js} +0 -0
  186. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-c57b209feef7c2da.js → properties-b5b3196eba90246a.js} +0 -0
  187. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/{reporting-81ca1ac6f52ec342.js → reporting-38b8ec1a221610ff.js} +0 -0
  188. /fides/ui-build/static/admin/_next/static/chunks/pages/{consent-24bef021ee71e36c.js → consent-df2388d953c85c2a.js} +0 -0
  189. /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/{[resourceUrn]-6cbd79481199812d.js → [resourceUrn]-5e851b9f27bda8a4.js} +0 -0
  190. /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-46b9790da2fec05a.js → [projectUrn]-9f9112b22fdfb32a.js} +0 -0
  191. /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-742849f39b646a2f.js → projects-ddca867936c89a72.js} +0 -0
  192. /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/{[resourceUrn]-e7833c1c606081a9.js → [resourceUrn]-85e3d6f1b2afd3e7.js} +0 -0
  193. /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{resources-bed368d048ea6883.js → resources-9831226436d884b5.js} +0 -0
  194. /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{activity-0cfa8a9caf7c75c3.js → activity-a0749240265da17d.js} +0 -0
  195. /fides/ui-build/static/admin/_next/static/chunks/pages/{datamap-9cd0c40bef77b120.js → datamap-819ac99e7a56465a.js} +0 -0
  196. /fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-ab9bc1a3640547db.js → [...subfieldNames]-259d4a94861afe2b.js} +0 -0
  197. /fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-17ec8385bb1fa6d4.js → [collectionName]-25283f5bcac8fa73.js} +0 -0
  198. /fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-e14c1c07658f8a10.js → [datasetId]-aaedf8f2a849c97f.js} +0 -0
  199. /fides/ui-build/static/admin/_next/static/chunks/pages/{datastore-connection-b8eaa9b9d3832b30.js → datastore-connection-61adfcd5f7f69101.js} +0 -0
  200. /fides/ui-build/static/admin/_next/static/chunks/pages/{index-94e6d589c4edf360.js → index-1072281d6cfe8295.js} +0 -0
  201. /fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{[id]-6b032de0a6c2c400.js → [id]-268918d8c1dfe82a.js} +0 -0
  202. /fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{add-template-c0d6ae68ff7979c6.js → add-template-cd75949bee7497b6.js} +0 -0
  203. /fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{[id]-bbe5854b7d19b7e9.js → [id]-d1f4178b8a7e2145.js} +0 -0
  204. /fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-4bad69cd42c9722c.js → configure-37e800a20e654064.js} +0 -0
  205. /fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-b4c808a8a0287d11.js → [id]-92145503c4d2d75e.js} +0 -0
  206. /fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-5a701477b006a63b.js → add-property-ab94805694ebd35c.js} +0 -0
  207. /fides/ui-build/static/admin/_next/static/chunks/pages/{properties-9a1899dfe052023e.js → properties-5e623dcd92418638.js} +0 -0
  208. /fides/ui-build/static/admin/_next/static/chunks/pages/reporting/{datamap-449ad3b08750bfc2.js → datamap-710839776b9995ce.js} +0 -0
  209. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{about-d073be113e9ca7b0.js → about-175d39bdd74f148c.js} +0 -0
  210. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{custom-fields-ce9305fa04fecbb8.js → custom-fields-1262d596c0cdcd81.js} +0 -0
  211. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-c5cd5fb578de9515.js → domain-records-f0c6e6034d37dbcf.js} +0 -0
  212. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-39c7ae3602ac69b2.js → email-templates-6ee49492a7769f89.js} +0 -0
  213. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-f35bd2d0c10aa58c.js → locations-deb754d42982562b.js} +0 -0
  214. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-ba8c25b63bbf7dc2.js → regulations-f9e97decfe56b018.js} +0 -0
  215. /fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/{test-datasets-73ef0438c85014bb.js → test-datasets-ae133b6e8e1107f2.js} +0 -0
  216. /fides/ui-build/static/admin/_next/static/chunks/pages/{systems-c320df35d51dc537.js → systems-4d6a17a7a24aca97.js} +0 -0
  217. /fides/ui-build/static/admin/_next/static/chunks/pages/{taxonomy-181ea5b0ac975239.js → taxonomy-46f47c04a01319cf.js} +0 -0
  218. /fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-622e16a17a11c096.js → [id]-5b752ba934baee94.js} +0 -0
  219. /fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-aa872b21bb835d34.js → user-management-4fbb29cf0a611aae.js} +0 -0
  220. /fides/ui-build/static/admin/_next/static/chunks/{webpack-4df2ba5ee2d40f0a.js → webpack-815e3c35038201da.js} +0 -0
  221. /fides/ui-build/static/admin/_next/static/{nO-B4awcqTzE1AwRkxKgF → dctUooMB4AAq5YqgLKNt9}/_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(56351),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:5,style:{marginBottom:1,textAlign:"left"},children:r})]}),(0,s.jsx)(i.AntTypography.Text,{style:{textAlign:"left"},children:n})]})})}},77867:function(e,t,n){"use strict";var s=n(24246),i=n(56351);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),i=n(56351);t.Z=e=>(0,s.jsx)(i.rUS,{isExternal:!0,color:"complimentary.500",...e})},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var s=n(24246),i=n(56351),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."," "]})]})})},x=e=>{let{children:t,title:n,padded:r=!0,mainProps:d}=e,x=(0,o.hz)(),m=(0,l.useRouter)(),h="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,p=!(x.flags.privacyRequestsConfiguration&&h),{data:g}=(0,c.JE)(void 0,{skip:p}),{data:y}=(0,c.PW)(void 0,{skip:p}),f=x.flags.privacyRequestsConfiguration&&(!g||!y)&&h;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:[f?(0,s.jsx)(u,{}):null,t]})]})}},58754:function(e,t,n){"use strict";var s=n(24246),i=n(56351),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.X6q,{className:n||l?"pb-4":void 0,fontSize:"2xl","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(56351),r=n(34090),a=n(27378),l=n(91613),o=n(40324);let c=e=>{let{name:t,label:n,labelProps:c,tooltip:d,isRequired:u,layout:x="inline",...m}=e,[h,p,{setValue:g}]=(0,r.U$)(t),y=!!(p.touched&&p.error),[f,j]=(0,a.useState)("");h.value||"tags"!==m.mode&&"multiple"!==m.mode||(h.value=[]),"tags"===m.mode&&"string"==typeof h.value&&(h.value=[h.value]);let v="tags"===m.mode?(e,t)=>e?e.value!==f||h.value.includes(f)?m.optionRender?m.optionRender(e,t):e.label:'Create "'.concat(f,'"'):void 0:m.optionRender||void 0,b=e=>{j(e),m.onSearch&&m.onSearch(e)},C=(e,t)=>{g(e),m.onChange&&m.onChange(e,t)};return"inline"===x?(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,{...h,id:m.id||t,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:v,onSearch:"tags"===m.mode?b:void 0,onChange:C,value:h.value||void 0}),(0,s.jsx)(o.Bc,{isInvalid:y,message:p.error,fieldName:h.name})]}),d?(0,s.jsx)(l.Z,{label:d}):null]})]})}):(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,d?(0,s.jsx)(l.Z,{label:d}):null]}),(0,s.jsx)(i.WPr,{...h,id:m.id||t,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:v,onSearch:"tags"===m.mode?b:void 0,onChange:C,value:h.value||void 0}),(0,s.jsx)(o.Bc,{isInvalid:y,message:p.error,fieldName:h.name})]})})}},812:function(e,t,n){"use strict";n.d(t,{D4:function(){return r.D4},MM:function(){return x},Ot:function(){return c},c6:function(){return i},cj:function(){return h},e$:function(){return l},fn:function(){return o},iC:function(){return m},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},x=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(s=i||(i={})).GVL="gvl",s.AC="gacp",s.COMPASS="compass";let m={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},h=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(56351);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(56351);t.Z=e=>{let{isOpen:t,onClose:n,onConfirm:r,onCancel:a,title:l,message:o,cancelButtonText:c,continueButtonText:d,isLoading:u,returnFocusOnClose:x,isCentered:m,testId:h="confirmation-modal",icon:p}=e;return(0,s.jsxs)(i.u_l,{isOpen:t,onClose:n,size:"lg",returnFocusOnClose:null==x||x,isCentered:m,children:[(0,s.jsx)(i.ZAr,{}),(0,s.jsxs)(i.hzk,{textAlign:"center",p:6,"data-testid":h,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(56351),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(56351),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(56351);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 ed}});var s=n(24246),i=n(27378),r=n(16134),a=n(77213),l=n(58754),o=n(15677),c=n(56351),d=n(3124),u=n.n(d),x=n(86677),m=n(25980),h=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 y=n(77830),f=n(21702),j=n(69e3),v=n(77867),b=n(32885),C=e=>{var t;let{onClick:n}=e,{plus:i,dataFlowScanning:a}=(0,m.hz)(),l=(0,r.C)(b.bw),o=null!==(t=null==l?void 0:l.cluster_health)&&void 0!==t?t:"unknown",d=o===f.wW.HEALTHY;if(!i)return null;let x=null;return a?d||(x="Your cluster appears not to be healthy. Its status is ".concat(o,".")):x="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:x,popupVisible:!!x,children:(0,s.jsx)("button",{disabled:!a||!d,type:"button","aria-label":"Data flow scan",className:"text-left",onClick:n,children:(0,s.jsx)(j.Z,{title:"Data flow scan",color:u().FIDESUI_NECTAR,description:"Automatically discover new systems in your Kubernetes infrastructure",icon:(0,s.jsx)(h.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 S=()=>{let e=(0,r.T)(),t=(0,x.useRouter)(),{isOpen:n,onClose:i,onOpen:a}=(0,c.qY0)(),{dictionaryService:l}=(0,m.hz)();return(0,s.jsxs)(c.Kqy,{spacing:9,"data-testid":"add-systems",children:[(0,s.jsxs)(c.Kqy,{spacing:6,maxWidth:"600px",children:[(0,s.jsx)(c.X6q,{as:"h3",size:"md",fontWeight:"semibold",children:"Fides helps you map your systems to manage your privacy"}),(0,s.jsx)(c.xvT,{children:"In Fides, systems describe any services that store or process data for your organization, including third-party APIs, web applications, databases, and data warehouses."}),(0,s.jsx)(c.xvT,{children:"Fides can automatically discover new systems in your AWS infrastructure or Okta accounts. For services not covered by the automated scanners or analog processes, you may also manually add new systems to your map."})]}),(0,s.jsx)(g,{isOpen:n,onConfirm:()=>{window.open("https://fid.es/upgrade-compass")},onCancel:()=>{t.push(y.N5)},onClose:i}),(0,s.jsxs)(c.xuv,{"data-testid":"manual-options",children:[(0,s.jsx)(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(y.N5)},"data-testid":"manual-btn",children:(0,s.jsx)(j.Z,{title:"Add a system",color:u().FIDESUI_SANDSTONE,icon:(0,s.jsx)(h.P$,{boxSize:6}),description:"Manually add a system for services not covered by automated scanners"})}),(0,s.jsx)("button",{className:"flex flex-col text-left",type:"button","aria-label":"Add multiple systems",onClick:()=>{l?(e((0,o.CQ)(w.D.MANUAL)),t.push(y.bJ)):a()},"data-testid":"multiple-btn",children:(0,s.jsx)(j.Z,{title:"Add multiple systems",color:u().FIDESUI_OLIVE,icon:(0,s.jsx)(h.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)(f.GC.AWS)),e((0,o.sz)())},"data-testid":"aws-btn",children:(0,s.jsx)(j.Z,{title:"Scan your infrastructure (AWS)",color:u().FIDESUI_TERRACOTTA,description:"Automatically discover new systems in your AWS infrastructure",icon:(0,s.jsx)(h.bj,{boxSize:6})})}),(0,s.jsx)("button",{className:"flex flex-col text-left",type:"button","aria-label":"Scan your Sign On Provider (Okta)",onClick:()=>{e((0,o.CQ)(f.GC.OKTA)),e((0,o.sz)())},"data-testid":"okta-btn",children:(0,s.jsx)(j.Z,{title:"Scan your Sign On Provider (Okta)",color:u().FIDESUI_MINOS,description:"Automatically discover new systems in your Okta infrastructure",icon:(0,s.jsx)(h.tb,{boxSize:6})})}),(0,s.jsx)(C,{onClick:()=>{e((0,o.sz)()),e((0,o.CQ)(w.D.DATA_FLOW))}})]})]})]})},_=n(34090),A=n(59389),T=n(40324),z=n(812),O=n(14047),I=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 Z=n(59301);let R=e=>{let{message:t}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.izJ,{}),(0,s.jsx)(c.W20,{maxH:"50vh",overflow:"auto",children:(0,s.jsx)(c.xvT,{as:"pre","data-testid":"error-log",children:t})}),(0,s.jsx)(c.izJ,{})]})};var W=e=>{let{error:t,scanType:n=""}=e;return(0,s.jsxs)(c.Kqy,{"data-testid":"scanner-error",spacing:"4",children:[(0,s.jsxs)(c.Ugi,{children:[(0,s.jsx)(c.j8w,{color:"error",children:"Error"}),(0,s.jsx)(c.X6q,{color:"red.500",size:"lg",children:"Failed to Scan"})]}),403===t.status&&n===f.GC.AWS?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.xvT,{"data-testid":"permission-msg",children:"Fides was unable to scan AWS. It appears that the credentials were valid to login but they did not have adequate permission to complete the scan."}),(0,s.jsxs)(c.xvT,{children:["To fix this issue, double check that you have granted"," ",(0,s.jsx)(Z.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)(Z.Z,{href:"https://docs.aws.amazon.com/IAM/latest/UserGuide/introduction_access-management.html",children:"here"}),"."]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.xvT,{"data-testid":"generic-msg",children:"Fides was unable to scan your infrastructure. Please ensure your credentials are accurate and inspect the error log below for more details."}),(0,s.jsx)(R,{message:t.message}),(0,s.jsxs)(c.xvT,{children:["If this error does not clarify why scanning failed, please"," ",(0,s.jsx)(Z.Z,{href: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 U=e=>{let{title:t,onClose:n}=e,{isOpen:i,onOpen:r,onClose:a}=(0,c.qY0)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.Kqy,{spacing:8,"data-testid":"scanner-loading",children:[(0,s.jsxs)(c.Ugi,{children:[(0,s.jsx)(c.xvT,{alignItems:"center",as:"b",color:"gray.900",display:"flex",fontSize:"xl",children:t}),(0,s.jsx)(c.PZ7,{"data-testid":"close-scan-in-progress",display:"inline-block",onClick:r})]}),(0,s.jsx)(c.Kqy,{alignItems:"center",children:(0,s.jsx)(c.$jN,{thickness:"4px",speed:"0.65s",emptyColor:"gray.200",color:"green.300",size:"xl"})})]}),(0,s.jsx)(E.Z,{isOpen:i,onClose:a,handleConfirm:n,title:"Cancel Scan!",message:B,confirmButtonText:"Yes, Cancel",cancelButtonText:"No, Continue Scanning"})]})};let K={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,O.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."}))},x=()=>{t((0,o.sz)(2))},[m,{isLoading:h}]=F(),p=async t=>{l(void 0);let n=await m({organization_key:e,generate:{config:t,target:f.GC.AWS,type:f.j.SYSTEMS}});(0,z.D4)(n)?u(n.error):d(n.data.generate_results)};return(0,s.jsx)(_.J9,{initialValues:K,validationSchema:L,onSubmit:p,children:e=>{let{isValid:t,isSubmitting:n,dirty:i}=e;return(0,s.jsx)(_.l0,{"data-testid":"authenticate-aws-form",children:(0,s.jsxs)(c.Kqy,{spacing:10,children:[n?(0,s.jsx)(U,{title:"System scanning in progress",onClose:x}):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(),x()}},{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)(I.d,{name:"region_name",label:"AWS Region",tooltip:"The geographic region of the cloud hosting provider you would like to scan.",options:N.xO,isRequired:!0,placeholder:"Select a region"})]})]}),n?null:(0,s.jsxs)(c.Ugi,{children:[(0,s.jsx)(c.wpx,{onClick:x,children:"Cancel"}),(0,s.jsx)(c.wpx,{htmlType:"submit",type:"primary",disabled:!i||!t,loading:h,"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,O.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."}))},x=()=>{t((0,o.sz)(2))},[m,{isLoading:h}]=F(),p=async t=>{l(void 0);let n=await m({organization_key:e,generate:{config:t,target:f.GC.OKTA,type:f.j.SYSTEMS}});(0,z.D4)(n)?u(n.error):d(n.data.generate_results)};return(0,s.jsx)(_.J9,{initialValues:P,validationSchema:V,onSubmit:p,children:e=>{let{isValid:t,isSubmitting:n,dirty:i}=e;return(0,s.jsx)(_.l0,{"data-testid":"authenticate-okta-form",children:(0,s.jsxs)(c.Kqy,{spacing:10,children:[n?(0,s.jsx)(U,{title:"System scanning in progress",onClose:x}):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(),x()}},{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:x,children:"Cancel"}),(0,s.jsx)(c.wpx,{htmlType:"submit",type:"primary",disabled:!i||!t,loading:h,"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)(),[x,m]=(0,i.useState)(!1),h=e=>{u((0,z.nU)(e,{status:500,message:"Our system encountered a problem while scanning your infrastructure."}))};(0,i.useEffect)(()=>{(async()=>{let{error:e}=await n();m(!(e&&(0,Y.Bw)(e)&&404===e.status));let t=await a({classify:!0});(0,z.D4)(t)&&h(t.error)})()},[a,n]),(0,i.useEffect)(()=>{(async()=>{if(l){let{data:s}=await n(),i=x?(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,x,n]);let p=()=>{e((0,o.sz)(2))};return d?(0,s.jsxs)(c.Kqy,{children:[(0,s.jsx)(W,{error:d}),(0,s.jsx)(c.xuv,{children:(0,s.jsx)(c.wpx,{onClick:p,"data-testid":"cancel-btn",children:"Cancel"})})]}):(0,s.jsx)(U,{title:"Infrastructure scanning in progress",onClose:p})},J=()=>{let e=(0,r.C)(o.Ll);return(0,s.jsxs)(c.xuv,{w:"40%",children:[e===f.GC.AWS?(0,s.jsx)(M,{}):null,e===f.GC.OKTA?(0,s.jsx)(X,{}):null,e===w.D.DATA_FLOW?(0,s.jsx)($,{}):null]})},Q=n(83265);let H=()=>{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),[x,m]=(0,i.useState)(!1);(0,i.useEffect)(()=>{!u&&!x&&(null==d?void 0:d.name)&&(null==d?void 0:d.description)&&n((0,o.sz)())},[u,d,n,x]);let h=(0,c.pmc)();return(0,_.TA)({initialValues:{name:null!==(e=null==d?void 0:d.name)&&void 0!==e?e:"",description:null!==(t=null==d?void 0:d.description)&&void 0!==t?t:""},onSubmit:async e=>{var t,n,i;m(!0);let r={name:null!==(t=e.name)&&void 0!==t?t:null==d?void 0:d.name,description:null!==(n=e.description)&&void 0!==n?n:null==d?void 0:d.description,fides_key:null!==(i=null==d?void 0:d.fides_key)&&void 0!==i?i:Q.Av,organization_fides_key:Q.Av};if(d){let e=await l(r);if((0,z.D4)(e)){h({status:"error",description:(0,z.e$)(e.error)});return}h.closeAll(),s(r)}else{let e=await a(r);if((0,z.D4)(e)){h({status:"error",description:(0,z.e$)(e.error)});return}h.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 ee=()=>{let{errors:e,handleBlur:t,handleChange:n,handleSubmit:i,touched:r,values:a,isSubmitting:l}=H();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)(c.ua7,{fontSize:"md",label:"The legal name of your organization",placement:"right",children:(0,s.jsx)(c.UOT,{boxSize:5,color:"gray.400"})})]}),(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)(c.ua7,{fontSize:"md",label:"An explanation of the type of organization and primary activity. For example “Acme Inc. is an e-commerce company that sells scarves.”",placement:"right",children:(0,s.jsx)(c.UOT,{boxSize:5,color:"gray.400"})})]})]})}),(0,s.jsx)(c.wpx,{type:"primary",htmlType:"submit",disabled:!a.name||!a.description,loading:l,"data-testid":"submit-btn",children:"Save and continue"})]})})},et=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)})})})]})})]})}})},en=n(16220);let es=(e,t)=>t.split(".").reduce((e,t)=>e?e[t]:void 0,e),ei=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:es(t,n)})},er=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)(ei,{system:e,attribute:t.attribute})},t.attribute))]},e.fides_key))})]})};var ea=n(1315);let el=[{name:"Name",attribute:"name"},{name:"System type",attribute:"system_type"},{name:"Resource ID",attribute:"fidesctl_meta.resource_id"}];var eo=()=>{let e=(0,r.C)(o.j4),t=(0,r.T)(),n=(0,x.useRouter)(),{systemOrDatamapRoute:a}=(0,en.V)(),{isOpen:l,onOpen:d,onClose:u}=(0,c.qY0)(),[m]=(0,ea.dB)(),[h,p]=(0,i.useState)(e),[g,y]=(0,i.useState)(el),{handleError:f}=(0,O.H)(),j=e=>{n.push(e).then(()=>{t((0,o.mc)())})},v=async()=>{let e=await m(h);return(0,z.D4)(e)?f(e.error):j(a)},b=()=>{t((0,o.sz)(2))},C=(0,s.jsxs)(c.xvT,{color:"gray.500",mb:3,children:["You’re registering ",h.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)(et,{allColumns:el,selectedColumns:g,onChange:y})})]}),(0,s.jsx)(er,{allSystems:e,checked:h,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>h.length?d():v()},type:"primary",disabled:0===h.length,"data-testid":"register-btn",children:"Register selected systems"})]})]})]}),(0,s.jsx)(E.Z,{title:"Warning",message:C,handleConfirm:v,isOpen:l,onClose:u})]})},ec=()=>{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)(ee,{}):null,2===e?(0,s.jsx)(S,{}):null,3===e?(0,s.jsx)(J,{}):null,4===e?(0,s.jsx)(c.xuv,{pr:10,children:(0,s.jsx)(eo,{})}):null]})})},ed=()=>{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)(ec,{})]})}},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([[4231],{95372:function(e){e.exports=function(e,t,a,s){for(var i=e.length,n=a+(s?1:-1);s?n--:++n<i;)if(t(e[n],n,e))return n;return -1}},74833:function(e,t,a){var s=a(56127),i=/^\s+/;e.exports=function(e){return e?e.slice(0,s(e)+1).replace(i,""):e}},56632:function(e,t,a){var s=a(89278),i=a(80068),n=a(50098);e.exports=function(e){return function(t,a,r){var l=Object(t);if(!i(t)){var o=s(a,3);t=n(t),a=function(e){return o(l[e],e,l)}}var d=e(t,a,r);return d>-1?l[o?t[d]:d]:void 0}}},56127:function(e){var t=/\s/;e.exports=function(e){for(var a=e.length;a--&&t.test(e.charAt(a)););return a}},64925:function(e,t,a){var s=a(56632)(a(66259));e.exports=s},66259:function(e,t,a){var s=a(95372),i=a(89278),n=a(47991),r=Math.max;e.exports=function(e,t,a){var l=null==e?0:e.length;if(!l)return -1;var o=null==a?0:n(a);return o<0&&(o=r(l+o,0)),s(e,i(t,3),o)}},94919:function(e,t,a){var s=a(91936),i=1/0;e.exports=function(e){return e?(e=s(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,a){var s=a(94919);e.exports=function(e){var t=s(e),a=t%1;return t==t?a?t-a:t:0}},91936:function(e,t,a){var s=a(74833),i=a(11611),n=a(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=s(e);var a=o.test(e);return a||d.test(e)?c(e.slice(2),a?2:8):l.test(e)?r:+e}},66248:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog",function(){return a(99188)}])},77213:function(e,t,a){"use strict";a.d(t,{Z:function(){return p}});var s=a(24246),i=a(56351),n=a(88038),r=a.n(n),l=a(86677);a(27378);var o=a(25980),d=a(90867),c=a(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(c.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."," "]})]})})},p=e=>{let{children:t,title:a,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:g}=(0,d.PW)(void 0,{skip:f}),v=p.flags.privacyRequestsConfiguration&&(!h||!g)&&x;return(0,s.jsxs)(i.kCb,{"data-testid":a,direction:"column",h:"100vh",children:[(0,s.jsxs)(r(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",a]}),(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:n?6:0,px:n?10:0,h:n?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[v?(0,s.jsx)(u,{}):null,t]})]})}},58754:function(e,t,a){"use strict";var s=a(24246),i=a(56351),n=a(70788);t.Z=e=>{let{heading:t,breadcrumbItems:a,isSticky:r=!0,children:l,rightContent:o,style:d,...c}=e;return(0,s.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,s.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(i.X6q,{className:a||l?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,o&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!a&&(0,s.jsx)(n.m,{className:l?"pb-4":void 0,items:a,"data-testid":"page-breadcrumb"}),l]})}},79789:function(e,t,a){"use strict";a.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 s=a(24246),i=a(56351);let n=e=>{let{text:t,...a}=e;return(0,s.jsx)(i.X6q,{fontSize:"sm",mt:4,mb:1,...a,children:t})},r=e=>{let{children:t}=e;return(0,s.jsx)(i.xvT,{fontSize:"14px",mb:4,children:t})},l=e=>{let{children:t,href:a}=e;return(0,s.jsx)(i.rUS,{href:a,textDecoration:"underline",isExternal:!0,children:t})},o=e=>{let{children:t}=e;return(0,s.jsx)(i.QI$,{fontSize:"14px",mb:4,children:t})},d=e=>{let{children:t}=e;return(0,s.jsx)(i.GSI,{fontSize:"14px",mb:4,ml:6,children:t})},c=e=>{let{children:t}=e;return(0,s.jsx)(i.EKh,{display:"block",whiteSpace:"pre",p:4,mb:4,overflowX:"scroll",children:t})},u=e=>{let{data:t}=e;return(0,s.jsxs)(i.iA_,{fontSize:"14px",children:[(0,s.jsx)(i.hrZ,{children:(0,s.jsxs)(i.Tr,{children:[(0,s.jsx)(i.Th,{children:"Permission"}),(0,s.jsx)(i.Th,{children:"Description"})]})}),(0,s.jsx)(i.p3B,{children:t.map(e=>(0,s.jsxs)(i.Tr,{children:[(0,s.jsx)(i.Td,{children:(0,s.jsx)(i.Vp9,{children:e.permission})}),(0,s.jsx)(i.Td,{children:e.description})]},e.permission))})]})}},79283:function(e,t,a){"use strict";a.d(t,{l:function(){return o}});var s=a(24246),i=a(56351),n=a(72707),r=a.n(n);let l=e=>{let{data:t}=e;return(0,s.jsxs)(i.jqI,{gap:12,title:"".concat(t.primaryName||"").concat(t.primaryName?": ":"").concat(t.name," - ").concat(t.description),children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:t.primaryName||t.name}),t.primaryName&&": ".concat(t.name)]}),(0,s.jsx)("em",{children:t.description})]})},o=e=>{let{options:t,...a}=e,n=null==t?void 0:t.map(e=>({...e,className:r().option}));return(0,s.jsx)(i.WPr,{options:n,autoFocus:!0,variant:"borderless",optionRender:l,dropdownStyle:{minWidth:"500px"},className:"w-full p-0","data-testid":"taxonomy-select",...a})}},97181:function(e,t,a){"use strict";a.d(t,{d:function(){return d}});var s=a(24246),i=a(56351),n=a(34090),r=a(27378),l=a(91613),o=a(40324);let d=e=>{let{name:t,label:a,labelProps:d,tooltip:c,isRequired:u,layout:p="inline",...m}=e,[x,f,{setValue:h}]=(0,n.U$)(t),g=!!(f.touched&&f.error),[v,j]=(0,r.useState)("");x.value||"tags"!==m.mode&&"multiple"!==m.mode||(x.value=[]),"tags"===m.mode&&"string"==typeof x.value&&(x.value=[x.value]);let y="tags"===m.mode?(e,t)=>e?e.value!==v||x.value.includes(v)?m.optionRender?m.optionRender(e,t):e.label:'Create "'.concat(v,'"'):void 0:m.optionRender||void 0,b=e=>{j(e),m.onSearch&&m.onSearch(e)},_=(e,t)=>{h(e),m.onChange&&m.onChange(e,t)};return"inline"===p?(0,s.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,s.jsxs)(i.rjZ,{templateColumns:a?"1fr 3fr":"1fr",children:[a?(0,s.jsx)(o.__,{htmlFor:m.id||t,...d,children:a}):null,(0,s.jsxs)(i.jqI,{align:"center",children:[(0,s.jsxs)(i.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,s.jsx)(i.WPr,{...x,id:m.id||t,"data-testid":"controlled-select-".concat(x.name),...m,optionRender:y,onSearch:"tags"===m.mode?b:void 0,onChange:_,value:x.value||void 0}),(0,s.jsx)(o.Bc,{isInvalid:g,message:f.error,fieldName:x.name})]}),c?(0,s.jsx)(l.Z,{label:c}):null]})]})}):(0,s.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,s.jsxs)(i.gCW,{alignItems:"start",children:[(0,s.jsxs)(i.jqI,{align:"center",children:[a?(0,s.jsx)(o.__,{htmlFor:m.id||t,fontSize:"xs",my:0,mr:1,...d,children:a}):null,c?(0,s.jsx)(l.Z,{label:c}):null]}),(0,s.jsx)(i.WPr,{...x,id:m.id||t,"data-testid":"controlled-select-".concat(x.name),...m,optionRender:y,onSearch:"tags"===m.mode?b:void 0,onChange:_,value:x.value||void 0}),(0,s.jsx)(o.Bc,{isInvalid:g,message:f.error,fieldName:x.name})]})})}},34929:function(e,t,a){"use strict";var s=a(24246),i=a(64925),n=a.n(i),r=a(27378),l=a(16134),o=a(30002),d=a(28079),c=a(57072);let u=()=>{let{isLoading:e}=(0,d.fd)(),t=(0,l.C)(d.U3),{isLoading:a}=(0,c.MO)(),s=(0,l.C)(c.qb),{isLoading:i}=(0,o.te)();return{dataUses:t,dataSubjects:(0,l.C)(o.ZL),dataCategories:s,isLoading:e||a||i}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:a,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 a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=t(e);if(!s)return{};let i=t(l(e,a)),n=!!s.parent_key;return{name:s.name||void 0,primaryName:n&&(null==i?void 0:i.name)!==s.name&&(null==i?void 0:i.name)||void 0}},d=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:i,primaryName:n}=o(e,t,a);return i?n?(0,s.jsxs)(r.Fragment,{children:[(0,s.jsxs)("strong",{children:[n,":"]})," ",i]},e):(0,s.jsx)("strong",{children:i},e):e},c=t=>n()(e,{fides_key:t}),p=e=>n()(t,{fides_key:e}),m=e=>n()(a,{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:()=>a,getDataSubjectByKey:m,getDataSubjectDisplayName:e=>{let t=m(e);return t?t.name:e},getPrimaryKey:l,isLoading:i}}},8133:function(e,t,a){"use strict";var s=a(24246),i=a(56351);t.Z=e=>{let{title:t,children:a,isOpen:n,onClose:r,...l}=e;return(0,s.jsxs)(i.u_l,{isOpen:n,onClose:r,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...l,children:[(0,s.jsx)(i.ZAr,{}),(0,s.jsxs)(i.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",children:[(0,s.jsx)(i.xBx,{p:0,children:(0,s.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,s.jsx)(i.X6q,{as:"h3",size:"sm",children:t})})}),(0,s.jsx)(i.fef,{pb:4,overflow:"auto",children:a})]})]})}},70788:function(e,t,a){"use strict";a.d(t,{m:function(){return d}});var s=a(24246),i=a(56351),n=a(79894),r=a.n(n),l=a(27378);let{Text:o}=i.AntTypography,d=e=>{let{items:t,...a}=e,n=(0,l.useMemo)(()=>null==t?void 0:t.map((e,a)=>{let n=a===t.length-1,l={...e},d=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,s.jsx)(o,{style:{color:"inherit",maxWidth:n?void 0:400},ellipsis:!n,children:l.title})),d)?l.title=(0,s.jsx)(i.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,s.jsx)(r(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,s.jsx)(i.zrq,{items:n,...a})}},79609:function(e,t,a){"use strict";a.d(t,{N4:function(){return r},UG:function(){return i},xw:function(){return n}});var s=a(89319);let{useGetCatalogSystemsQuery:i,useGetCatalogProjectsQuery:n,useGetCatalogDatasetsQuery:r}=a(78780).u.injectEndpoints({endpoints:e=>({getCatalogSystems:e.query({query:e=>({method:"GET",url:"/plus/data-catalog/system",params:e}),providesTags:["Catalog Systems","System"]}),getCatalogProjects:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/project",params:t}},providesTags:["Discovery Monitor Results"]}),getCatalogDatasets:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/dataset",params:t}},providesTags:["Discovery Monitor Results"]})})});(0,s.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},81406:function(e,t,a){"use strict";var s=a(24246),i=a(56351);t.Z=()=>(0,s.jsxs)(i.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:[(0,s.jsx)(i.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"}),(0,s.jsx)(i.xvT,{fontSize:"sm",children:"You're up to date!"})]})},26183:function(e,t,a){"use strict";var s=a(24246);a(27378),t.Z=e=>{let{children:t,className:a,...i}=e;return(0,s.jsx)("div",{className:"relative flex w-full flex-wrap items-center gap-2 overflow-x-auto py-2 ".concat(a||""),...i,children:t})}},3765:function(e,t,a){"use strict";var s=a(56351),i=a(812),n=a(46628),r=a(1315),l=a(31883);t.Z=e=>{let t=(0,s.pmc)(),[a]=(0,r.qQ)(),o=a=>!!e.privacy_declarations.find(e=>e.data_use===a.data_use&&e.name===a.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,a)=>{if((0,l.D4)(e)){let a=(0,i.e$)(e.error,"An unexpected error occurred while updating the system. Please try again.");t((0,n.Vo)(a));return}return t.closeAll(),t((0,n.t5)(a?"Data use deleted":"Data use saved")),e.data.privacy_declarations},c=async(t,s)=>{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 a(n),s)};return{createDataUse:async a=>{if(!o(a))return t.closeAll(),c([...e.privacy_declarations,a])},updateDataUse:async(t,a)=>{if(!(a.id!==t.id&&o(a)))return c(e.privacy_declarations.map(e=>e.id===t.id?a: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,a){"use strict";var s=a(27378),i=a(21702);t.Z=()=>({legalBasisOptions:(0,s.useMemo)(()=>Object.keys(i.gP).map(e=>({value:i.gP[e],label:i.gP[e]})),[])})},28325:function(e,t,a){"use strict";var s=a(27378),i=a(21702);t.Z=()=>({specialCategoryLegalBasisOptions:(0,s.useMemo)(()=>Object.keys(i.nV).map(e=>({value:i.nV[e],label:i.nV[e]})),[])})},99188:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return A}});var s=a(24246),i=a(77213),n=a(58754),r=a(92222),l=a(59003),o=a(86677),d=a(27378),c=a(77830),u=a(14481),p=a(16394),m=a(79609),x=a(81406),f=a(56351),h=a(79789),g=a(79283),v=a(34929),j=e=>{let{selectedTaxonomies:t,showDisabled:a=!1,...i}=e,{getDataUseDisplayNameProps:n,getDataUses:r}=(0,v.Z)(),l=(a?r():r().filter(e=>e.active)).filter(e=>!t.includes(e.fides_key)).map(e=>{let{name:t,primaryName:a}=n(e.fides_key);return{value:e.fides_key,name:t,primaryName:a,description:e.description||""}});return(0,s.jsx)(g.l,{options:l,...i})},y=a(34090),b=a(59389),_=a(97181),w=a(40324),C=a(8133),k=a(54748),N=a(28325),S=a(34151),D=a.n(S);let R=b.Ry().shape({data_use:b.Z_().required("Data use is required")});var q=e=>{let{isOpen:t,onClose:a,onSave:i,declaration:n}=e,{getDataUses:r,getDataCategories:l,getDataSubjects:o}=(0,v.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,k.Z)(),{specialCategoryLegalBasisOptions:h}=(0,N.Z)();return(0,s.jsx)(y.J9,{initialValues:n,enableReinitialize:!0,onSubmit:e=>{i(e),a()},validationSchema:R,children:e=>{let{dirty:i,isValid:n,values:r,resetForm:l}=e;return(0,s.jsx)(C.Z,{title:"Edit data use",isOpen:t,onClose:a,children:(0,s.jsxs)(y.l0,{children:[(0,s.jsxs)(f.jqI,{vertical:!0,className:"gap-6 py-4",children:[(0,s.jsx)(_.d,{name:"data_use",label:"Data use",options:u,layout:"stacked",isRequired:!0}),(0,s.jsx)(_.d,{name:"data_categories",label:"Data categories",options:p,mode:"multiple",layout:"stacked"}),(0,s.jsx)(_.d,{name:"data_subjects",label:"Data subjects",options:m,mode:"multiple",layout:"stacked"}),(0,s.jsx)(w.j0,{name:"name",label:"Declaration name",variant:"stacked"}),(0,s.jsxs)(f.jqI,{vertical:!0,className:"gap-6 p-4 ".concat(D().advancedSettings),children:[(0,s.jsxs)(f.jqI,{className:"cursor-pointer justify-between",onClick:c,children:[(0,s.jsx)(f.xvT,{fontSize:"xs",children:"Advanced settings"}),(0,s.jsx)(f.v4q,{className:d?"rotate-180":void 0})]}),(0,s.jsx)(f.UO1,{in:d,children:(0,s.jsxs)(f.jqI,{vertical:!0,className:"gap-4",children:[(0,s.jsx)(_.d,{name:"legal_basis_for_processing",label:"Legal basis for processing",options:x,layout:"stacked"}),(0,s.jsx)(f.UO1,{in:(null==r?void 0:r.legal_basis_for_processing)==="Legitimate interests",animateOpacity:!0,style:{overflow:"visible"},children:(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(w.j0,{name:"impact_assessment_location",label:"Impact assessment location",tooltip:"Where is the legitimate interest impact assessment stored?",variant:"stacked"})})}),(0,s.jsx)(w.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,s.jsx)(w.j0,{name:"retention_period",label:"Retention period (days)",tooltip:"How long is personal data retained for this purpose?",variant:"stacked"}),(0,s.jsxs)(f.Kqy,{spacing:0,children:[(0,s.jsx)(w.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,s.jsx)(f.UO1,{in:null==r?void 0:r.processes_special_category_data,animateOpacity:!0,style:{overflow:"visible"},children:(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(_.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,s.jsxs)("div",{className:"flex w-full justify-between",children:[(0,s.jsx)(f.wpx,{onClick:()=>{l(),a()},children:"Cancel"}),(0,s.jsx)(f.wpx,{type:"primary",htmlType:"submit",disabled:!i||!n,loading:!1,"data-testid":"save-btn",children:"Save"})]})]})})}})},z=a(26183),I=a(3765);let T=e=>({data_use:e,data_categories:["system"]});var P=e=>{var t,a;let{system:i}=e,[n,r]=(0,d.useState)(!1),[l,o]=(0,d.useState)(void 0),{getDataUseDisplayName:c}=(0,v.Z)(),{isOpen:u,onOpen:p,onClose:m}=(0,f.qY0)(),x=e=>{o(e),p()},{createDataUse:h,deleteDeclarationByDataUse:g,updateDataUse:y}=(0,I.Z)(i),b=null!==(a=null===(t=i.privacy_declarations)||void 0===t?void 0:t.map(e=>e.data_use))&&void 0!==a?a:[];return(0,s.jsxs)(z.Z,{children:[!n&&(0,s.jsxs)(s.Fragment,{children:[b.map((e,t)=>(0,s.jsxs)(f.j8w,{"data-testid":"data-use-".concat(e),color:"white",onClick:()=>x(i.privacy_declarations[t]),closable:!0,onClose:()=>g(e),closeButtonLabel:"Remove data use",children:[(0,s.jsx)(f.PJP.I8b,{size:10}),c(e)]},e)),(0,s.jsx)(f.j8w,{onClick:()=>r(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"}),(0,s.jsx)(q,{isOpen:u,onClose:m,onSave:e=>y(l,e),declaration:l})]}),n&&(0,s.jsx)(f.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,s.jsx)(j,{onChange:e=>{h(T(e)),r(!1)},selectedTaxonomies:b,onBlur:()=>r(!1),open:!0})})]})},Z=e=>{var t;let{system:a,onEdit:i,onClose:n}=e;return(0,s.jsxs)(f.dys,{isOpen:!!a,onClose:n,size:"md",children:[(0,s.jsx)(f.P1B,{}),(0,s.jsxs)(f.scA,{"data-testid":"system-details",children:[(0,s.jsx)(f.OXI,{children:(null==a?void 0:a.name)||(null==a?void 0:a.fides_key)}),(0,s.jsx)(f.cCv,{}),(0,s.jsxs)(f.Ng0,{children:[(0,s.jsx)(h.cB,{text:"Title",mt:0}),(0,s.jsx)(h.XU,{children:null!==(t=null==a?void 0:a.name)&&void 0!==t?t:null==a?void 0:a.fides_key}),(null==a?void 0:a.description)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h.cB,{text:"Description"}),(0,s.jsx)(h.XU,{children:null==a?void 0:a.description})]}),(0,s.jsx)(h.cB,{text:"Data uses"}),(0,s.jsx)(P,{system:a})]}),(0,s.jsx)(f.zeN,{children:(0,s.jsx)(f.wpx,{onClick:i,"data-testid":"edit-system-btn",children:"Edit system"})})]})]})},O=e=>{let{onDetailClick:t}=e;return(0,s.jsxs)(f.v2r,{children:[(0,s.jsx)(f.j2t,{as:f.wpx,size:"small",type:"text",className:"max-w-4",icon:(0,s.jsx)(f.nXP,{transform:"rotate(90deg)",ml:2}),"data-testid":"system-actions-menu"}),(0,s.jsx)(f.qyq,{children:t&&(0,s.jsx)(f.sNh,{onClick:t,"data-testid":"view-system-details",children:"View details"})})]})},B=a(70675);let U={items:[],total:0,page:1,size:50,pages:1},E=(0,r.Cl)();var M=()=>{let[e,t]=(0,d.useState)({}),a=(0,o.useRouter)(),{PAGE_SIZES:i,pageSize:n,setPageSize:f,onPreviousPageClick:h,isPreviousPageDisabled:g,onNextPageClick:v,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,B.j3)(),{items:S,total:D,pages:R}=(0,d.useMemo)(()=>null!=C?C:U,[C]);(0,d.useEffect)(()=>{w(R)},[R,w]);let[q,z]=(0,d.useState)(void 0),I=(0,d.useMemo)(()=>S.find(e=>e.fides_key===q),[S,q]),T=async e=>{var t,s;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!==(s=e.monitor_config_keys)&&void 0!==s?s:[],"monitor_config_ids"),l="".concat(c.mX,"/").concat(e.fides_key,"/").concat(n?"projects":"resources","?").concat(r);a.push(l)},M=(0,d.useMemo)(()=>[E.accessor(e=>e.name,{id:"name",cell:e=>{var t;let{getValue:a,row:i}=e;return(0,s.jsx)(u.G3,{value:a(),fontWeight:(null===(t=i.original.connection_configs)||void 0===t?void 0:t.key)?"semibold":"normal"})},header:e=>(0,s.jsx)(u.Rr,{value:"Name",...e})}),E.display({id:"data-uses",cell:e=>{let{row:t}=e;return(0,s.jsx)(P,{system:t.original})},header:e=>(0,s.jsx)(u.Rr,{value:"Data uses",...e}),meta:{disableRowClick:!0},minSize:280}),E.display({id:"actions",cell:e=>(0,s.jsx)(O,{onDetailClick:()=>z(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,s.jsx)(u.I4,{rowHeight:36,numRows:36}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u.ZK,{tableInstance:A,emptyTableNotice:(0,s.jsx)(x.Z,{}),onRowClick:T,getRowIsClickable:e=>{var t;return!!(null===(t=e.connection_configs)||void 0===t?void 0:t.key)}}),(0,s.jsx)(u.s8,{totalRows:D||0,pageSizes:i,setPageSize:f,onPreviousPageClick:h,isPreviousPageDisabled:g,onNextPageClick:v,isNextPageDisabled:j,startRange:y,endRange:b}),(0,s.jsx)(Z,{system:I,onClose:()=>z(void 0),onEdit:()=>a.push({pathname:c.Dv,query:{id:q}})})]})},A=()=>(0,s.jsxs)(i.Z,{title:"Data catalog",children:[(0,s.jsx)(n.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems"}]}),(0,s.jsx)(M,{})]})},31883:function(e,t,a){"use strict";a.d(t,{Bw:function(){return s.Bw},D4:function(){return s.D4}});var s=a(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,2780,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,i=null==e?0:e.length;++n<i;)if(s(t,e[n]))return!0;return!1}},8817:function(e,t,s){var n=s(95372),i=s(1129),a=s(58263);e.exports=function(e,t,s){return t==t?a(e,t,s):n(e,i,s)}},1129:function(e){e.exports=function(e){return e!=e}},92198:function(e,t,s){var n=s(52485),i=s(58095),a=s(21796),r=s(65581),o=s(47111),l=s(43735);e.exports=function(e,t,s){var d=-1,c=i,u=e.length,m=!0,h=[],p=h;if(s)m=!1,c=a;else if(u>=200){var v=t?null:o(e);if(v)return l(v);m=!1,c=r,p=new n}else p=t?[]:h;e:for(;++d<u;){var g=e[d],y=t?t(g):g;if(g=s||0!==g?g:0,m&&y==y){for(var x=p.length;x--;)if(p[x]===y)continue e;t&&p.push(y),h.push(g)}else c(p,y,s)||(p!==h&&p.push(y),h.push(g))}return h}},47111:function(e,t,s){var n=s(46151),i=s(50344),a=s(43735),r=n&&1/a(new n([,-0]))[1]==1/0?function(e){return new n(e)}:i;e.exports=r},58263:function(e){e.exports=function(e,t,s){for(var n=s-1,i=e.length;++n<i;)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(58955)}])},35287:function(e,t,s){"use strict";var n=s(24246),i=s(56351),a=s(88038),r=s.n(a);s(27378),t.Z=e=>{let{children:t,title:s,mainProps:a}=e;return(0,n.jsxs)(i.kCb,{"data-testid":s,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,n.jsxs)(r(),{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)(i.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...a,children:t})]})}},58754:function(e,t,s){"use strict";var n=s(24246),i=s(56351),a=s(70788);t.Z=e=>{let{heading:t,breadcrumbItems:s,isSticky:r=!0,children:o,rightContent:l,style:d,...c}=e;return(0,n.jsxs)("div",{...c,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,n.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(i.X6q,{className:s||o?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,l&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!s&&(0,n.jsx)(a.m,{className:o?"pb-4":void 0,items:s,"data-testid":"page-breadcrumb"}),o]})}},79283:function(e,t,s){"use strict";s.d(t,{l:function(){return l}});var n=s(24246),i=s(56351),a=s(72707),r=s.n(a);let o=e=>{let{data:t}=e;return(0,n.jsxs)(i.jqI,{gap:12,title:"".concat(t.primaryName||"").concat(t.primaryName?": ":"").concat(t.name," - ").concat(t.description),children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("strong",{children:t.primaryName||t.name}),t.primaryName&&": ".concat(t.name)]}),(0,n.jsx)("em",{children:t.description})]})},l=e=>{let{options:t,...s}=e,a=null==t?void 0:t.map(e=>({...e,className:r().option}));return(0,n.jsx)(i.WPr,{options:a,autoFocus:!0,variant:"borderless",optionRender:o,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 n=s(24246),i=s(56351),a=s(34090),r=s(27378),o=s(91613),l=s(40324);let d=e=>{let{name:t,label:s,labelProps:d,tooltip:c,isRequired:u,layout:m="inline",...h}=e,[p,v,{setValue:g}]=(0,a.U$)(t),y=!!(v.touched&&v.error),[x,f]=(0,r.useState)("");p.value||"tags"!==h.mode&&"multiple"!==h.mode||(p.value=[]),"tags"===h.mode&&"string"==typeof p.value&&(p.value=[p.value]);let j="tags"===h.mode?(e,t)=>e?e.value!==x||p.value.includes(x)?h.optionRender?h.optionRender(e,t):e.label:'Create "'.concat(x,'"'):void 0:h.optionRender||void 0,b=e=>{f(e),h.onSearch&&h.onSearch(e)},w=(e,t)=>{g(e),h.onChange&&h.onChange(e,t)};return"inline"===m?(0,n.jsx)(i.NIc,{isInvalid:y,isRequired:u,children:(0,n.jsxs)(i.rjZ,{templateColumns:s?"1fr 3fr":"1fr",children:[s?(0,n.jsx)(l.__,{htmlFor:h.id||t,...d,children:s}):null,(0,n.jsxs)(i.jqI,{align:"center",children:[(0,n.jsxs)(i.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,n.jsx)(i.WPr,{...p,id:h.id||t,"data-testid":"controlled-select-".concat(p.name),...h,optionRender:j,onSearch:"tags"===h.mode?b:void 0,onChange:w,value:p.value||void 0}),(0,n.jsx)(l.Bc,{isInvalid:y,message:v.error,fieldName:p.name})]}),c?(0,n.jsx)(o.Z,{label:c}):null]})]})}):(0,n.jsx)(i.NIc,{isInvalid:y,isRequired:u,children:(0,n.jsxs)(i.gCW,{alignItems:"start",children:[(0,n.jsxs)(i.jqI,{align:"center",children:[s?(0,n.jsx)(l.__,{htmlFor:h.id||t,fontSize:"xs",my:0,mr:1,...d,children:s}):null,c?(0,n.jsx)(o.Z,{label:c}):null]}),(0,n.jsx)(i.WPr,{...p,id:h.id||t,"data-testid":"controlled-select-".concat(p.name),...h,optionRender:j,onSearch:"tags"===h.mode?b:void 0,onChange:w,value:p.value||void 0}),(0,n.jsx)(l.Bc,{isInvalid:y,message:v.error,fieldName:p.name})]})})}},14047:function(e,t,s){"use strict";s.d(t,{H:function(){return a},V:function(){return n.V}});var n=s(84306),i=s(812);let a=()=>{let{errorAlert:e}=(0,n.V)();return{handleError:t=>{let s="An unexpected error occurred. Please try again.";(0,i.Ot)(t)?s=t.data.detail:(0,i.tB)(t)&&(s=t.data.detail[0].msg),e(s)}}}},84306:function(e,t,s){"use strict";s.d(t,{V:function(){return a}});var n=s(24246),i=s(56351);let a=()=>{let e=(0,i.pmc)();return{errorAlert:(t,s,a)=>{let r={...a,position:(null==a?void 0:a.position)||"top",render:e=>{let{onClose:a}=e;return(0,n.jsxs)(i.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,n.jsx)(i.zMQ,{}),(0,n.jsxs)(i.xuv,{children:[s&&(0,n.jsx)(i.CdC,{children:s}),(0,n.jsx)(i.XaZ,{children:t})]}),(0,n.jsx)(i.PZ7,{onClick:a,position:"relative",right:0,size:"sm",top:-1})]})}};(null==a?void 0:a.id)&&e.isActive(a.id)?e.update(a.id,r):e(r)},successAlert:(t,s,a)=>{let r={...a,position:(null==a?void 0:a.position)||"top",render:e=>{let{onClose:a}=e;return(0,n.jsxs)(i.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,n.jsx)(i.zMQ,{}),(0,n.jsxs)(i.xuv,{children:[s&&(0,n.jsx)(i.CdC,{children:s}),(0,n.jsx)(i.XaZ,{children:t})]}),(0,n.jsx)(i.PZ7,{onClick:a,position:"relative",right:0,size:"sm",top:-1})]})}};(null==a?void 0:a.id)&&e.isActive(a.id)?e.update(a.id,r):e(r)}}}},45938:function(e,t,s){"use strict";s.d(t,{Gt:function(){return m},eB:function(){return h},oI:function(){return u}});var n=s(24246),i=s(34090),a=s(27378),r=s(16134),o=s(38602),l=s(58452);let d=(0,a.createRef)(),c=(0,a.createRef)(),u=()=>{let e=(0,r.T)(),t=(0,r.C)(o.DB),s=(0,a.useCallback)(()=>{c.current=void 0,d.current=void 0},[]),n=(0,a.useCallback)(()=>{e((0,o.Mr)()),c.current&&(c.current(!0),s())},[e,s]),i=(0,a.useCallback)(()=>{e((0,o.Mr)()),c.current&&(c.current(!1),s())},[e,s]);return{attemptAction:(0,a.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:i}},m=e=>{let{id:t,name:s}=e,{dirty:n}=(0,i.u6)(),l=(0,r.T)();return(0,a.useEffect)(()=>(l((0,o.Zu)({id:t,name:s})),()=>{l((0,o.dz)({id:t}))}),[l,t,s]),(0,a.useEffect)(()=>{l((0,o.$p)({id:t,isDirty:n}))},[n,l,t]),null},h=()=>{let{onConfirm:e,onClose:t}=u(),s=(0,r.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"})}},8133:function(e,t,s){"use strict";var n=s(24246),i=s(56351);t.Z=e=>{let{title:t,children:s,isOpen:a,onClose:r,...o}=e;return(0,n.jsxs)(i.u_l,{isOpen:a,onClose:r,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...o,children:[(0,n.jsx)(i.ZAr,{}),(0,n.jsxs)(i.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",children:[(0,n.jsx)(i.xBx,{p:0,children:(0,n.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,n.jsx)(i.X6q,{as:"h3",size:"sm",children:t})})}),(0,n.jsx)(i.fef,{pb:4,overflow:"auto",children:s})]})]})}},70788:function(e,t,s){"use strict";s.d(t,{m:function(){return d}});var n=s(24246),i=s(56351),a=s(79894),r=s.n(a),o=s(27378);let{Text:l}=i.AntTypography,d=e=>{let{items:t,...s}=e,a=(0,o.useMemo)(()=>null==t?void 0:t.map((e,s)=>{let a=s===t.length-1,o={...e},d=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,n.jsx)(l,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,children:o.title})),d)?o.title=(0,n.jsx)(i.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,n.jsx)(r(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,n.jsx)(i.zrq,{items:a,...s})}},37059:function(e,t,s){"use strict";s.d(t,{Ak:function(){return h},EY:function(){return c},Ud:function(){return a},Vr:function(){return p},WJ:function(){return o},nP:function(){return d},nS:function(){return u},rs:function(){return l},sX:function(){return m},wi:function(){return r}});var n=s(78780),i=s(16394);let{useGetAggregateMonitorResultsQuery:a,useGetDiscoveredSystemAggregateQuery:r,useGetDiscoveredAssetsQuery:o,useAddMonitorResultSystemsMutation:l,useIgnoreMonitorResultSystemsMutation:d,useAddMonitorResultAssetsMutation:c,useIgnoreMonitorResultAssetsMutation:u,useUpdateAssetsSystemMutation:m,useUpdateAssetsDataUseMutation:h,useUpdateAssetsMutation:p}=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:i}=e;return{url:"/plus/discovery-monitor/system-aggregate-results",params:{monitor_config_id:t,page:s,size:n,search:i,diff_status:"addition"}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredAssets:e.query({query:e=>{let{key:t,system:s,page:n=1,size:i=20,search:a}=e;return{url:"/plus/discovery-monitor/".concat(t,"/results"),params:{resolved_system_id:s,page:n,size:i,search:a,diff_status:"addition"}}},providesTags:()=>["Discovery Monitor Results"]}),addMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:s}=e,n=(0,i.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,i.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,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,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"]})})})},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)},26183:function(e,t,s){"use strict";var n=s(24246);s(27378),t.Z=e=>{let{children:t,className:s,...i}=e;return(0,n.jsx)("div",{className:"relative flex w-full flex-wrap items-center gap-2 overflow-x-auto py-2 ".concat(s||""),...i,children:t})}},33335:function(e,t,s){"use strict";s.d(t,{E:function(){return n}});let n=e=>e.toLowerCase().replace(/ /g,"_").replace(/[^a-zA-Z0-9._<>-]/g,"")},36345:function(e,t,s){"use strict";s.d(t,{Z:function(){return g}});var n=s(24246),i=s(56351),a=s(34090),r=s(27378),o=s(16134),l=s(40324);let d=(0,i.IUT)({displayName:"CompassIcon",viewBox:"0 0 512 512",path:(0,n.jsx)("path",{fill:"currentColor",d:"M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm306.7 69.1L162.4 380.6c-19.4 7.5-38.5-11.6-31-31l55.5-144.3c3.3-8.5 9.9-15.1 18.4-18.4l144.3-55.5c19.4-7.5 38.5 11.6 31 31L325.1 306.7c-3.2 8.5-9.9 15.1-18.4 18.4zM288 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"})});var c=s(91613),u=s(57865);let{Text:m}=i.AntTypography,h=e=>{let{searchText:t,suggestion:s,...i}=e;return t&&s?(0,n.jsxs)(m,{"aria-hidden":!0,style:{pointerEvents:"none",position:"absolute",zIndex:10,top:"var(--ant-line-width)",bottom:"var(--ant-line-width)",left:"var(--ant-padding-sm)",lineHeight:"calc(var(--ant-control-height) - var(--ant-line-width))"},...i,children:[(0,n.jsx)(m,{className:"text-transparent",children:t}),(0,n.jsx)(m,{type:"secondary",children:s.substring(t.length)})]}):null},p="Create new system",v=e=>{let{active:t,disabled:s,onRefreshSuggestions:a}=e,r={bg:t?"complimentary.500":"gray.100"};return(0,n.jsxs)(i.gCW,{children:[(0,n.jsx)(i.LZC,{minHeight:"18px"}),(0,n.jsxs)(i.v2r,{children:[(0,n.jsx)(i.j2t,{as:i.hU,size:"sm",isDisabled:s,icon:(0,n.jsx)(d,{color:t?"white":"gray.700",boxSize:4}),"aria-label":"Update information from Compass","data-testid":"refresh-suggestions-btn",_hover:{_disabled:r},...r}),(0,n.jsx)(i.qyq,{children:(0,n.jsx)(i.sNh,{onClick:a,children:(0,n.jsx)(i.xvT,{fontSize:"xs",lineHeight:4,children:"Reset to Compass defaults"})})})]})]})};var g=e=>{var t,s;let{label:d,isCreate:m,lockedForGVL:g,options:y,isLoading:x,onVendorSelected:f}=e,j=(0,o.C)(u.bN),[b,w,{setValue:C}]=(0,a.U$)("name"),S=!!(w.touched&&w.error),_={...b,value:null!==(t=b.value)&&void 0!==t?t:""},{touched:k,values:R,setTouched:I,setFieldValue:A,validateForm:T}=(0,a.u6)(),[N,P]=(0,r.useState)(!0),z=null!==(s=y.find(e=>e.value===_.value))&&void 0!==s?s:{label:_.value,value:_.value,description:""},q=(e,t)=>!!(null==t?void 0:t.label.toLowerCase().startsWith(e.toLowerCase())),[D,Z]=(0,r.useState)(""),M=(0,r.useMemo)(()=>y.filter(e=>q(D,e)),[y,D]),E=(0,r.useMemo)(()=>{let e=y;return m&&D&&(e=[...y,{label:"".concat(p,' "').concat(D,'"...'),value:D}]),e},[m,y,D]),L=!!D&&M.length>0,V=g&&!m;(0,r.useEffect)(()=>{P(!_.value&&!R.vendor_id)},[_.value,R.vendor_id,P]),(0,r.useEffect)(()=>{T()},[N,T]);let W=async()=>{Z(""),A("vendor_id",void 0),await C(""),I({...k,vendor_id:!1,name:!1}),f(void 0)},U=async e=>{if(e){let t=y.some(t=>t.value===e.value)?e.value:void 0;A("vendor_id",t),await C(e.label.startsWith(p)?e.value:e.label),I({...k,vendor_id:!0,name:!0}),f(t)}},B=async e=>{_.onBlur(e),D&&await C(D),I({...k,name:!0})},F=async e=>{M.length>0&&D!==M[0].label?(e.preventDefault(),Z(M[0].label),A("vendor_id",M[0].value),await C(M[0].label),f(M[0].value)):(A("vendor_id",void 0),await C(D)),I({...k,name:!0})},O=(0,n.jsx)(i.NIc,{isInvalid:S,isRequired:!0,width:"100%",children:(0,n.jsxs)(i.gCW,{alignItems:"start",position:"relative",width:"100%",children:[(0,n.jsxs)(i.Ugi,{spacing:1,children:[(0,n.jsx)(l.__,{htmlFor:"vendorName",fontSize:"xs",my:0,mr:1,children:d}),(0,n.jsx)(c.Z,{label:"Enter the system name"})]}),(0,n.jsxs)(i.xuv,{width:"100%",className:"relative",children:[(0,n.jsx)(i.WPr,{id:"vendorName",labelInValue:!0,autoFocus:!0,allowClear:!0,options:E,loading:x,filterOption:(e,t)=>q(e,t)||!!(null==t?void 0:t.label.startsWith(p)),optionFilterProp:"label",value:z,placeholder:"Enter system name...",disabled:V,onChange:U,onSearch:Z,onClear:W,onBlur:B,onInputKeyDown:e=>{D&&"Tab"===e.key&&F(e)},status:S?"error":void 0,"data-testid":"vendor-name-select"}),(0,n.jsx)(h,{searchText:D,suggestion:M.length?M[0].label:""})]}),(0,n.jsx)(l.Bc,{isInvalid:S,message:w.error,fieldName:"name"})]})});return(0,n.jsxs)(i.Ugi,{alignItems:"flex-start",width:"full",children:[N?O:(0,n.jsx)(l.j0,{autoFocus:!0,id:"name",name:"name",label:"System name",tooltip:"Enter the system name",variant:"stacked",disabled:V,isRequired:!0,inputRightElement:V?null:(0,n.jsx)(i.PZ7,{onClick:W,size:"sm","data-testid":"clear-btn"})}),(0,n.jsx)(v,{active:!!R.vendor_id||L,disabled:!R.vendor_id||"showing"===j,onRefreshSuggestions:()=>f(R.vendor_id)})]})}},58955:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return ea}});var n=s(24246),i=s(86677),a=s(27378),r=s(35287),o=s(77830),l=s(58754),d=s(59003),c=s(92222),u=s(56351),m=s(83766),h=s.n(m),p=s(812),v=s(14047),g=s(14481),y=s(37059),x=s(8133),f=s(79283),j=s(34929),b=s(78238),w=e=>{let{selectedTaxonomies:t,...s}=e,{getDataUseDisplayNameProps:i,getDataUses:a}=(0,j.Z)(),r=a().filter(e=>e.active&&b.g.includes(e.fides_key)).filter(e=>!t.includes(e.fides_key)).map(e=>{let{name:t,primaryName:s}=i(e.fides_key);return{value:e.fides_key,name:t,primaryName:s,description:e.description||""}});return(0,n.jsx)(f.l,{options:r,...s})};let{Text:C}=u.AntTypography;var S=e=>{let{onSave:t,isSaving:s,onClose:i,...r}=e,[o,l]=(0,a.useState)([]),d=()=>{l([]),i()};return(0,n.jsxs)(x.Z,{title:"Add consent category",...r,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),"data-testid":"save-btn",children:"Save"})]})]})},_=s(57454),k=s(65450);let R=e=>{let{children:t,className:s,style:i,...a}=e;return(0,n.jsx)(u.wpx,{...a,type:"text",className:"w-full justify-start ".concat(s),style:{fontWeight:600,padding:"var(--ant-select-option-padding)",backgroundColor:"var(--ant-select-option-selected-bg)",...i},children:t})};var I=s(16394);let A=(e,t)=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(R,{onClick:t,"data-testid":"add-new-system",id:"add-new-system",children:"Add new system +"}),e]}),T=e=>{var t;let{onAddSystem:s,...i}=e,[r,o]=(0,a.useState)(),{data:l,isFetching:d}=(0,k.xF)({page:1,size:25,search:r||void 0}),c=null==l?void 0:null===(t=l.items)||void 0===t?void 0:t.map(e=>({value:e.fides_key,label:e.name})),m=(0,a.useCallback)(e=>{(null==e?void 0:e.length)>1&&o(e),(null==e?void 0:e.length)===0&&o(void 0)},[o]),h=(0,a.useMemo)(()=>(0,I.Ds)(m,300),[m]);return(0,n.jsx)(u.WPr,{placeholder:"Search...","aria-label":"Search for a system to select",dropdownStyle:{minWidth:"500px"},dropdownRender:s?e=>A(e,s):void 0,"data-testid":"system-select",...i,filterOption:!1,options:c,onSearch:h,loading:i.loading||d})};var N=s(34090),P=s(59389),z=s(16134),q=s(25980),D=s(97181),Z=s(40324),M=s(45938),E=s(33335),L=s(32885),V=s(57865),W=s(93237),U=s(36345);let{Text:B}=u.AntTypography,F={name:"",vendor_id:void 0,description:"",tags:[]},O=e=>{let{onSuccessfulSubmit:t,toastOnSuccess:s,...i}=e,[r,o]=(0,a.useState)(!1),l=(0,z.T)(),{tcf:d,dictionaryService:c}=(0,q.hz)(),{isLoading:m}=(0,L.Rd)(void 0,{skip:!c}),h=(0,z.C)(L.o),g=(0,z.C)(V.gU),[y]=(0,k.in)(),[f]=(0,L.Qk)(),[j]=(0,k.f7)(),{successAlert:b,errorAlert:w}=(0,v.V)(),{setSuggestions:C,setLockedForGVL:S}=V.dictSuggestionsSlice.actions,_=(0,a.useRef)(null),R=(0,a.useMemo)(()=>P.Ry().shape({name:P.Z_().required().label("System name").test("is-unique","",async(e,t)=>{let{data:s}=await y({page:1,size:10,search:e});return!((null==s?void 0:s.items)||[]).filter(t=>t.name===e).some(t=>t.name===e)||t.createError({message:'You already have a system called "'.concat(e,'". Please specify a unique name for this system.')})})}),[y]),I=e=>{if(c){if(!e){l(C("hiding")),l(S(!1));return}l(C("showing")),d&&(0,p.cj)(e)===p.c6.GVL?l(S(!0)):l(S(!1))}},A=()=>{i.onClose(),l(C("initial")),l(S(!1))},T=async e=>{if(o(!0),e.vendor_id){let n=await f([e.vendor_id]);if((0,p.D4)(n))w((0,p.e$)(n.error));else{let{data:e}=n,i=e.systems[0];null==t||t(i.fides_key,i.name),s&&b("".concat(e.name," has been added to your system inventory."))}}else{let n={...e,fides_key:(0,E.E)(e.name),system_type:"",body:"",privacy_declarations:[]},i=await j(n);if((0,p.D4)(i))w((0,p.e$)(i.error));else{let{fides_key:n,name:a}=i.data;null==t||t(n,a),s&&b("".concat(e.name," has been added to your system inventory."))}A()}o(!1)};return(0,n.jsx)(x.Z,{title:"Add New System",...i,onClose:A,children:(0,n.jsx)(N.J9,{initialValues:F,onSubmit:T,validationSchema:R,innerRef:_,children:e=>{let{dirty:t,isValid:s}=e;return(0,n.jsxs)(N.l0,{children:[(0,n.jsx)(M.Gt,{id:"new-system-modal",name:"Add New System"}),(0,n.jsxs)(u.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,n.jsx)(B,{children:"Fides will add this system to your inventory and configure it for consent using the categories of consent listed below. Optionally, you can check if this system is listed within the Fides compass library by selecting the compass icon below."}),c?(0,n.jsx)(U.Z,{label:"System name",options:h,onVendorSelected:I,isCreate:!0,lockedForGVL:g,isLoading:m}):(0,n.jsx)(Z.j0,{id:"name",name:"name",label:"System name",tooltip:"Give the system a unique, and relevant name for reporting purposes. e.g. “Email Data Warehouse”",variant:"stacked",isRequired:!0}),(0,n.jsx)(W.Sv,{id:"description",name:"description",label:"Description",tooltip:"What services does this system perform?",disabled:g}),(0,n.jsx)(D.d,{mode:"tags",id:"tags",name:"tags",label:"System Tags",options:[],layout:"stacked",tooltip:"Are there any tags to associate with this system?",disabled:g})]}),(0,n.jsxs)(u.jqI,{justify:"space-between",children:[(0,n.jsx)(u.wpx,{htmlType:"reset",onClick:A,disabled:m||!t||!s,"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(u.wpx,{htmlType:"submit",type:"primary",disabled:m||!t||!s,loading:r,"data-testid":"save-btn",children:"Save"})]})]})}})})},{Text:$}=u.AntTypography,H=e=>{let{onSave:t,isSaving:s,...i}=e,[r,o]=(0,a.useState)(),[l,d]=(0,a.useState)(!1),c=(0,a.useCallback)(e=>{e.preventDefault(),d(!0)},[]),m=()=>{d(!1)},h=()=>{o(void 0),i.onClose()};return(0,n.jsxs)(x.Z,{title:"Assign system",...i,onClose:h,children:[(0,n.jsxs)(u.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,n.jsx)($,{children:"Assign a system to the selected assets. If no system exists, select 'Add new system' to create one."}),(0,n.jsx)(T,{placeholder:"Search or select...",onSelect:(e,t)=>{o(t)},onAddSystem:c,value:r})]})," ",(0,n.jsxs)(u.jqI,{justify:"space-between",children:[(0,n.jsx)(u.wpx,{htmlType:"reset",onClick:h,"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(u.wpx,{htmlType:"submit",type:"primary",disabled:!r,loading:s,onClick:()=>{t(r)},"data-testid":"save-btn",children:"Save"})]}),l&&(0,n.jsx)(O,{isOpen:!0,onClose:m,onSuccessfulSubmit:(e,t)=>{m(),o({label:t,value:e})},toastOnSuccess:!0})]})};var G=s(8411),X=s(72625);let J=e=>{let{asset:t}=e,[s,{isLoading:i}]=(0,y.EY)(),[a,{isLoading:r}]=(0,y.nS)(),{successAlert:o,errorAlert:l}=(0,v.V)(),d=i||r,{urn:c,name:m,resource_type:h}=t,g=async()=>{let e=await s({urnList:[c]});(0,p.D4)(e)?l((0,p.e$)(e.error)):o("".concat(h,' "').concat(m,'" has been added to the system inventory.'),"Confirmed")},x=async()=>{let e=await a({urnList:[c]});(0,p.D4)(e)?l((0,p.e$)(e.error)):o("".concat(h,' "').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:g,disabled:!t.system||d,loading:i,children:"Add"})}),(0,n.jsx)(u.wpx,{"data-testid":"ignore-btn",size:"small",onClick:x,disabled:d,loading:r,children:"Ignore"})]})};var K=s(26183),Y=s(31883),Q=e=>{var t;let{asset:s}=e,[i,r]=(0,a.useState)(!1),[o]=(0,y.Ak)(),{successAlert:l,errorAlert:d}=(0,v.V)(),{getDataUseDisplayName:c}=(0,j.Z)(),m=async e=>{let t=s.data_uses||[],n=await o({monitorId:s.monitor_config_id,urnList:[s.urn],dataUses:[...t,e]});(0,Y.D4)(n)?d((0,p.e$)(n.error)):l("Consent category added to ".concat(s.resource_type,' "').concat(s.name,'" .'),"Confirmed"),r(!1)},h=async e=>{let t=s.data_uses||[],n=await o({monitorId:s.monitor_config_id,urnList:[s.urn],dataUses:t.filter(t=>t!==e)});(0,Y.D4)(n)?d((0,p.e$)(n.error)):l("Consent category removed from ".concat(s.resource_type,' "').concat(s.name,'".'),"Confirmed")},g=null===(t=s.data_uses)||void 0===t?void 0:t.filter(e=>(0,b.Z)(e));return(0,n.jsxs)(K.Z,{children:[!i&&(0,n.jsxs)(n.Fragment,{children:[null==g?void 0:g.map(e=>(0,n.jsx)(u.j8w,{"data-testid":"data-use-".concat(e),color:"white",closable:!0,onClose:()=>h(e),closeButtonLabel:"Remove data use",children:c(e)},e)),(0,n.jsx)(u.j8w,{onClick:()=>r(!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:g||[],onSelect:m,onBlur:()=>r(!1),open:!0})})]})},ee=s(43862),et=s(70675);let es=e=>{let{aggregateSystem:t,monitorConfigId:s}=e,{resource_type:i,name:r,urn:o,system:l}=t,[d,c]=(0,a.useState)(!1),[m,h]=(0,a.useState)(!1),[g,{isLoading:y}]=(0,et.NA)(),{successAlert:x,errorAlert:f}=(0,v.V)(),j=(0,a.useCallback)(e=>{e.preventDefault(),h(!0)},[]),b=async(e,t,n)=>{let a=await g({staged_resource_urn:o,monitor_config_id:s,system_key:e});(0,p.D4)(a)?f((0,p.e$)(a.error)):x(n?"".concat(t," has been added to your system inventory and the ").concat(i,' "').concat(r,'" has been assigned to that system.'):"".concat(i,' "').concat(r,'" has been assigned to ').concat(t,"."),"Confirmed"),c(!1)};return(0,n.jsxs)(n.Fragment,{children:[!d&&(0,n.jsx)("div",{style:(0,ee.J9)(),children:l?(0,n.jsxs)(u.j8w,{onClick:()=>c(!0),"data-testid":"system-badge",children:[l,(0,n.jsx)(u.PJP.I8b,{})]}):(0,n.jsx)(u.j8w,{onClick:()=>c(!0),"data-testid":"add-system-btn",addable:!0})}),!!d&&(0,n.jsx)(T,{variant:"borderless",className:"w-full",autoFocus:!0,defaultOpen:!0,onBlur:e=>{var t;(null===(t=e.relatedTarget)||void 0===t?void 0:t.getAttribute("id"))!=="add-new-system"&&c(!1)},onAddSystem:j,onSelect:(e,t)=>b(e,t.label),loading:y}),m&&(0,n.jsx)(O,{isOpen:!0,onClose:()=>{h(!1)},onSuccessfulSubmit:(e,t)=>b(e,t,!0)})]})},en=()=>{let e=(0,c.Cl)();return{columns:[e.display({id:"select",cell:e=>{let{row:t}=e;return(0,n.jsx)(g.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)(g.k,{isChecked:t.getIsAllPageRowsSelected(),isIndeterminate:t.getIsSomeRowsSelected(),onChange:t.getToggleAllRowsSelectedHandler(),dataTestId:"select-all-rows"})},maxSize:40}),e.accessor(e=>e.name,{id:"name",cell:e=>(0,n.jsx)(g.G3,{value:e.getValue()}),header:"Asset",size:300}),e.accessor(e=>e.resource_type,{id:"resource_type",cell:e=>(0,n.jsx)(g.G3,{value:e.getValue()}),header:"Type"}),e.accessor(e=>e.system,{id:"system",cell:e=>!!e.row.original.monitor_config_id&&(0,n.jsx)(es,{aggregateSystem:e.row.original,monitorConfigId:e.row.original.monitor_config_id}),header:"System",size:200,meta:{noPadding:!0}}),e.display({id:"data_use",cell:e=>(0,n.jsx)(Q,{asset:e.row.original}),header:"Categories of consent",size:400,meta:{disableRowClick:!0}}),e.accessor(e=>e.locations,{id:"locations",cell:e=>(0,n.jsx)(g.G3,{value:e.getValue().length>1?"".concat(e.getValue().length," locations"):G.Z8[e.getValue()[0]]}),header:"Locations"}),e.accessor(e=>e.domain,{id:"domain",cell:e=>(0,n.jsx)(g.G3,{value:e.getValue()}),header:"Domain"}),e.accessor(e=>e.page,{id:"page",cell:e=>(0,n.jsx)(X.tc,{values:e.getValue(),valueSuffix:"pages",cellProps:e}),header:e=>(0,n.jsx)(X.Rr,{value:"Detected on",...e}),meta:{showHeaderMenu:!0,disableRowClick:!0}}),e.display({id:"actions",cell:e=>(0,n.jsx)(J,{asset:e.row.original}),header:"Actions",meta:{disableRowClick:!0}})]}},ei=e=>{let{monitorId:t,systemId:s,onSystemName:r}=e,l=(0,i.useRouter)(),[m,x]=(0,a.useState)(s),[f,j]=(0,a.useState)({}),[b,w]=(0,a.useState)(!1),[C,k]=(0,a.useState)(!1),[R,{isLoading:I}]=(0,y.EY)(),[A,{isLoading:T}]=(0,y.nS)(),[N,{isLoading:P}]=(0,y.rs)(),[z,{isLoading:q}]=(0,y.sX)(),[D,{isLoading:Z}]=(0,y.Vr)(),M=I||T||P||q,E=M||s===o.Kl,{PAGE_SIZES:L,pageSize:V,setPageSize:W,onPreviousPageClick:U,isPreviousPageDisabled:B,onNextPageClick:F,isNextPageDisabled:O,startRange:$,endRange:G,pageIndex:X,setTotalPages:J,resetPageIndexToDefault:K}=(0,g.oi)(),[Y,Q]=(0,a.useState)(""),{successAlert:ee,errorAlert:et}=(0,v.V)();(0,a.useEffect)(()=>{K()},[t,Y,K]);let{data:es,isLoading:ei,isFetching:ea}=(0,y.WJ)({key:t,system:s,page:X,size:V,search:Y});(0,a.useEffect)(()=>{if(es){var e;let t=(null===(e=es.items[0])||void 0===e?void 0:e.system)||s||"";J(es.pages||1),x(t),null==r||r(t)}},[es,s,r,J]);let{columns:er}=en(),eo=(0,d.b7)({getCoreRowModel:(0,c.sC)(),columns:er,manualPagination:!0,data:(null==es?void 0:es.items)||[],columnResizeMode:"onChange",onRowSelectionChange:j,state:{rowSelection:f}}),el=eo.getSelectedRowModel().rows.map(e=>e.original.urn),ed=async()=>{let e=await R({urnList:el});(0,p.D4)(e)?et((0,p.e$)(e.error)):(eo.resetRowSelection(),ee("".concat(el.length," assets from ").concat(m," have been added to the system inventory."),"Confirmed"))},ec=async e=>{if("string"==typeof(null==e?void 0:e.value)){let s=await z({monitorId:t,urnList:el,systemKey:e.value});(0,p.D4)(s)?et((0,p.e$)(s.error)):(eo.resetRowSelection(),ee("".concat(el.length," assets have been assigned to ").concat(e.label,"."),"Confirmed"))}w(!1)},eu=async e=>{let s=null==es?void 0:es.items.filter(e=>el.includes(e.urn));if(!s)return;let n=s.map(t=>{let s=h()([...t.data_uses||[],...e]);return{urn:t.urn,data_uses:s}}),i=await D({monitorId:t,assets:n});(0,p.D4)(i)?et((0,p.e$)(i.error)):(eo.resetRowSelection(),ee("Consent categories added to ".concat(el.length," assets from ").concat(m,"."),"Confirmed"))},em=async()=>{let e=await A({urnList:el});(0,p.D4)(e)?et((0,p.e$)(e.error)):(eo.resetRowSelection(),ee("".concat(el.length," assets from ").concat(m," have been ignored and will not appear in future scans."),"Confirmed"))},eh=async()=>{let e=(null==es?void 0:es.items.length)||0,n=await N({monitor_config_key:t,resolved_system_ids:[s]});(0,p.D4)(n)?et((0,p.e$)(n.error)):(l.push("".concat(o.vi,"/").concat(t)),ee("".concat(e," assets from ").concat(m," have been added to the system inventory."),"Confirmed"))};return t&&s?ei?(0,n.jsx)(g.I4,{rowHeight:36,numRows:36}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(g.Q$,{children:[(0,n.jsx)(_.M,{value:Y,onChange:Q}),(0,n.jsxs)(u.kCb,{alignItems:"center",children:[!!el.length&&(0,n.jsx)(u.xvT,{fontSize:"xs",fontWeight:"semibold",minW:16,mr:6,"data-testid":"selected-count",children:"".concat(el.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:M,"data-testid":"bulk-actions-menu",disabled:!el.length||M,type:"primary",children:"Actions"}),(0,n.jsxs)(u.qyq,{children:[(0,n.jsx)(u.sNh,{fontSize:"small",onClick:ed,"data-testid":"bulk-add",children:"Add"}),(0,n.jsx)(u.sNh,{fontSize:"small",onClick:()=>k(!0),"data-testid":"bulk-add-data-use",children:"Add consent category"}),(0,n.jsx)(u.sNh,{fontSize:"small",onClick:()=>{w(!0)},"data-testid":"bulk-assign-system",children:"Assign system"}),(0,n.jsx)(u.RaW,{}),(0,n.jsx)(u.sNh,{fontSize:"small",onClick:em,"data-testid":"bulk-ignore",children:"Ignore"})]})]}),(0,n.jsx)(u.esZ,{title:E?"These assets require a system before you can add them to the inventory.":void 0,children:(0,n.jsx)(u.wpx,{onClick:eh,disabled:E,loading:P,type:"primary",icon:(0,n.jsx)(u.PJP.MCw,{}),iconPosition:"end","data-testid":"add-all",children:"Add all"})})]})]})]}),(0,n.jsx)(g.ZK,{tableInstance:eo,emptyTableNotice:(0,n.jsx)(u.oj8,{image:u.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})}),(0,n.jsx)(g.s8,{totalRows:(null==es?void 0:es.total)||0,pageSizes:L,setPageSize:W,onPreviousPageClick:U,isPreviousPageDisabled:B||ea,onNextPageClick:F,isNextPageDisabled:O||ea,startRange:$,endRange:G}),(0,n.jsx)(H,{isOpen:b,onClose:()=>{w(!1)},onSave:ec,isSaving:q}),(0,n.jsx)(S,{isOpen:C,onClose:()=>{k(!1)},onSave:eu,isSaving:Z})]}):null};var ea=()=>{let e=(0,i.useRouter)(),t=decodeURIComponent(e.query.monitorId),s=decodeURIComponent(e.query.systemId),[d,c]=(0,a.useState)(s===o.Kl?"Uncategorized assets":s);return(0,n.jsxs)(r.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)(ei,{monitorId:t,systemId:s,onSystemName:c})]})}},31883:function(e,t,s){"use strict";s.d(t,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=s(19043)},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}}},function(e){e.O(0,[8033,2780,2858,2866,9278,4481,3215,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,t,s,n){for(var i=e.length,r=s+(n?1:-1);n?r--:++r<i;)if(t(e[r],r,e))return r;return -1}},56632:function(e,t,s){var n=s(89278),i=s(80068),r=s(50098);e.exports=function(e){return function(t,s,o){var a=Object(t);if(!i(t)){var l=n(s,3);t=r(t),s=function(e){return l(a[e],e,a)}}var d=e(t,s,o);return d>-1?a[l?t[d]:d]:void 0}}},64925:function(e,t,s){var n=s(56632)(s(66259));e.exports=n},66259:function(e,t,s){var n=s(95372),i=s(89278),r=s(47991),o=Math.max;e.exports=function(e,t,s){var a=null==e?0:e.length;if(!a)return -1;var l=null==s?0:r(s);return l<0&&(l=o(a+l,0)),n(e,i(t,3),l)}},94919:function(e,t,s){var n=s(91936),i=1/0;e.exports=function(e){return e?(e=n(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,s){var n=s(94919);e.exports=function(e){var t=n(e),s=t%1;return t==t?s?t-s:t:0}},86850:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/[monitorId]",function(){return s(56856)}])},34929:function(e,t,s){"use strict";var n=s(24246),i=s(64925),r=s.n(i),o=s(27378),a=s(16134),l=s(30002),d=s(28079),c=s(57072);let u=()=>{let{isLoading:e}=(0,d.fd)(),t=(0,a.C)(d.U3),{isLoading:s}=(0,c.MO)(),n=(0,a.C)(c.qb),{isLoading:i}=(0,l.te)();return{dataUses:t,dataSubjects:(0,a.C)(l.ZL),dataCategories:n,isLoading:e||s||i}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:s,isLoading:i}=u(),a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},l=function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=t(e);if(!n)return{};let i=t(a(e,s)),r=!!n.parent_key;return{name:n.name||void 0,primaryName:r&&(null==i?void 0:i.name)!==n.name&&(null==i?void 0:i.name)||void 0}},d=function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:i,primaryName:r}=l(e,t,s);return i?r?(0,n.jsxs)(o.Fragment,{children:[(0,n.jsxs)("strong",{children:[r,":"]})," ",i]},e):(0,n.jsx)("strong",{children:i},e):e},c=t=>r()(e,{fides_key:t}),g=e=>r()(t,{fides_key:e}),m=e=>r()(s,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:c,getDataUseDisplayName:e=>d(e,c,1),getDataUseDisplayNameProps:e=>l(e,c,1),getDataCategories:()=>t,getDataCategoryByKey:g,getDataCategoryDisplayName:e=>d(e,g,2),getDataCategoryDisplayNameProps:e=>l(e,g,2),getDataSubjects:()=>s,getDataSubjectByKey:m,getDataSubjectDisplayName:e=>{let t=m(e);return t?t.name:e},getPrimaryKey:a,isLoading:i}}},37059:function(e,t,s){"use strict";s.d(t,{Ak:function(){return m},EY:function(){return c},Ud:function(){return r},Vr:function(){return v},WJ:function(){return a},nP:function(){return d},nS:function(){return u},rs:function(){return l},sX:function(){return g},wi:function(){return o}});var n=s(78780),i=s(16394);let{useGetAggregateMonitorResultsQuery:r,useGetDiscoveredSystemAggregateQuery:o,useGetDiscoveredAssetsQuery:a,useAddMonitorResultSystemsMutation:l,useIgnoreMonitorResultSystemsMutation:d,useAddMonitorResultAssetsMutation:c,useIgnoreMonitorResultAssetsMutation:u,useUpdateAssetsSystemMutation:g,useUpdateAssetsDataUseMutation:m,useUpdateAssetsMutation:v}=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:i}=e;return{url:"/plus/discovery-monitor/system-aggregate-results",params:{monitor_config_id:t,page:s,size:n,search:i,diff_status:"addition"}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredAssets:e.query({query:e=>{let{key:t,system:s,page:n=1,size:i=20,search:r}=e;return{url:"/plus/discovery-monitor/".concat(t,"/results"),params:{resolved_system_id:s,page:n,size:i,search:r,diff_status:"addition"}}},providesTags:()=>["Discovery Monitor Results"]}),addMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:s}=e,n=(0,i.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,i.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,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,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"]})})})},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)},56856:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return R}});var n=s(24246),i=s(86677),r=s(35287),o=s(77830),a=s(58754),l=s(59003),d=s(92222),c=s(56351),u=s(27378),g=s(812),m=s(14047),v=s(14481),y=s(37059),h=s(31883),f=s(57454),p=s(34929),_=s(72625),x=s(78238),j=e=>{var t,s;let{system:i}=e,{getDataUseDisplayName:r}=(0,p.Z)(),o=(null!==(s=null===(t=i.data_uses)||void 0===t?void 0:t.filter(e=>(0,x.Z)(e)))&&void 0!==s?s:[]).map(e=>({label:r(e),key:e}));return(0,n.jsx)(_.mb,{values:o})};let b=e=>{let{monitorId:t,system:s}=e,[i,{isLoading:r}]=(0,y.rs)(),[a,{isLoading:l}]=(0,y.nP)(),{successAlert:d,errorAlert:u}=(0,m.V)(),v=r||l,{id:h,name:f,system_key:p,total_updates:_}=s,x=async()=>{let e=await i({monitor_config_key:t,resolved_system_ids:[h]});(0,g.D4)(e)?u((0,g.e$)(e.error)):d(p?"".concat(_," assets from ").concat(f," have been added to the system inventory."):"".concat(f," and ").concat(_," assets have been added to the system inventory. ").concat(f," is now configured for consent."),"Confirmed")},j=async()=>{let e=await a({monitor_config_key:t,resolved_system_ids:[h||o.Kl]});(0,g.D4)(e)?u((0,g.e$)(e.error)):d(f?"".concat(_," assets from ").concat(f," have been ignored and will not appear in future scans."):"".concat(_," uncategorized assets have been ignored and will not appear in future scans."),"Confirmed")};return(0,n.jsxs)(c.vyj,{children:[(0,n.jsx)(c.esZ,{title:s.id?void 0:"These assets must be categorized before you can add them to the inventory.",children:(0,n.jsx)(c.wpx,{"data-testid":"add-btn",size:"small",onClick:x,disabled:!s.id||v,loading:r,children:"Add"})}),(0,n.jsx)(c.wpx,{"data-testid":"ignore-btn",size:"small",onClick:j,disabled:v,loading:l,children:"Ignore"})]})};var w=s(56839);let k=e=>{let{system:t}=e;return(0,n.jsxs)(c.kCb,{alignItems:"center",height:"100%",children:[!(null==t?void 0:t.system_key)&&(0,n.jsx)(c.ua7,{label:"New system",children:(0,n.jsx)("span",{children:w.QL.Change})}),(0,n.jsx)(c.xvT,{fontSize:"xs",fontWeight:"semibold",lineHeight:4,overflow:"hidden",textOverflow:"ellipsis",children:(null==t?void 0:t.name)||"Uncategorized assets"})]})},C=e=>{let t=(0,d.Cl)();return{columns:[t.display({id:"select",cell:e=>{let{row:t}=e;return(0,n.jsx)(v.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)(v.k,{isChecked:t.getIsAllPageRowsSelected(),isIndeterminate:t.getIsSomeRowsSelected(),onChange:t.getToggleAllRowsSelectedHandler(),dataTestId:"select-all-rows"})},maxSize:40,meta:{disableRowClick:!0}}),t.accessor(e=>e.name,{id:"system_name",cell:e=>(0,n.jsx)(k,{system:e.row.original}),header:"System",size:300}),t.accessor(e=>e.total_updates,{id:"total_updates",cell:e=>(0,n.jsx)(v.G3,{value:e.getValue()}),header:"Assets",size:80}),t.display({id:"data_use",cell:e=>(0,n.jsx)(j,{system:e.row.original}),header:"Categories of consent",size:400,meta:{disableRowClick:!0}}),t.accessor(e=>e.locations,{id:"locations",cell:e=>(0,n.jsx)(v.G3,{value:e.getValue().length>1?"".concat(e.getValue().length," locations"):e.getValue()[0]}),header:"Locations"}),t.accessor(e=>e.domains,{id:"domains",cell:e=>(0,n.jsx)(v.G3,{value:e.getValue().length>1?"".concat(e.getValue().length," domains"):e.getValue()[0]}),header:"Domains"}),t.display({id:"actions",cell:t=>(0,n.jsx)(b,{system:t.row.original,monitorId:e}),header:"Actions",meta:{disableRowClick:!0}})]}},D=e=>{let{monitorId:t}=e,s=(0,i.useRouter)(),{PAGE_SIZES:r,pageSize:a,setPageSize:p,onPreviousPageClick:_,isPreviousPageDisabled:x,onNextPageClick:j,isNextPageDisabled:b,startRange:w,endRange:k,pageIndex:D,setTotalPages:R,resetPageIndexToDefault:S}=(0,v.oi)(),[P,{isLoading:T}]=(0,y.rs)(),[A,{isLoading:M}]=(0,y.nP)(),{successAlert:I,errorAlert:z}=(0,m.V)(),[L,N]=(0,u.useState)(""),[q,E]=(0,u.useState)({});(0,u.useEffect)(()=>{S()},[t,L,S]);let{data:U,isLoading:V,isFetching:Z}=(0,y.wi)({key:t,page:D,size:a,search:L});(0,u.useEffect)(()=>{U&&R(U.pages||1)},[U,R]);let{columns:O}=C(t),H=(0,l.b7)({getCoreRowModel:(0,d.sC)(),columns:O,manualPagination:!0,data:(null==U?void 0:U.items)||[],columnResizeMode:"onChange",onRowSelectionChange:E,state:{rowSelection:q}}),K=H.getSelectedRowModel().rows,$=K.some(e=>null===e.original.id);if(V)return(0,n.jsx)(v.I4,{rowHeight:36,numRows:36});let G=async()=>{let e=K.reduce((e,t)=>e+t.original.total_updates,0),s=await P({monitor_config_key:t,resolved_system_ids:K.map(e=>e.original.id)});(0,h.D4)(s)?z((0,g.e$)(s.error)):(I("".concat(e," assets have been added to the system inventory.")),E({}))},W=async()=>{let e=K.reduce((e,t)=>e+t.original.total_updates,0),s=await A({monitor_config_key:t,resolved_system_ids:K.map(e=>{var t;return null!==(t=e.original.id)&&void 0!==t?t:o.Kl})});(0,h.D4)(s)?z((0,g.e$)(s.error)):(I("".concat(e," assets have been ignored and will not appear in future scans.")),E({}))};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v.Q$,{children:(0,n.jsxs)(c.kCb,{direction:"row",alignItems:"center",justifyContent:"space-between",width:"full",children:[(0,n.jsx)(c.kCb,{gap:6,align:"center",children:(0,n.jsx)(c.xuv,{flexShrink:0,children:(0,n.jsx)(f.M,{value:L,onChange:N})})}),(0,n.jsxs)(c.kCb,{align:"center",children:[!!K.length&&(0,n.jsx)(c.xvT,{fontSize:"xs",fontWeight:"semibold",minW:16,mr:6,"data-testid":"selected-count",children:"".concat(K.length," selected")}),(0,n.jsxs)(c.v2r,{children:[(0,n.jsx)(c.j2t,{as:c.wpx,icon:(0,n.jsx)(c.PJP._ME,{}),iconPosition:"end",loading:T||M,"data-testid":"bulk-actions-menu",disabled:!K.length,type:"primary",children:"Actions"}),(0,n.jsxs)(c.qyq,{children:[(0,n.jsx)(c.esZ,{title:$?"Uncategorized assets can't be added to the inventory":null,placement:"left",children:(0,n.jsx)(c.sNh,{fontSize:"small",onClick:G,"data-testid":"bulk-add",isDisabled:$,children:"Add"})}),(0,n.jsx)(c.sNh,{fontSize:"small",onClick:W,"data-testid":"bulk-ignore",children:"Ignore"})]})]})]})]})}),(0,n.jsx)(v.ZK,{tableInstance:H,onRowClick:e=>{var n;s.push("".concat(o.vi,"/").concat(t,"/").concat(null!==(n=e.id)&&void 0!==n?n:o.Kl))},emptyTableNotice:(0,n.jsx)(c.oj8,{image:c.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})}),(0,n.jsx)(v.s8,{totalRows:(null==U?void 0:U.total)||0,pageSizes:r,setPageSize:p,onPreviousPageClick:_,isPreviousPageDisabled:x||Z,onNextPageClick:j,isNextPageDisabled:b||Z,startRange:w,endRange:k})]})};var R=()=>{let e=decodeURIComponent((0,i.useRouter)().query.monitorId);return(0,n.jsxs)(r.Z,{title:"Action center - Discovered assets by system",children:[(0,n.jsx)(a.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:o.vi},{title:e}]}),(0,n.jsx)(D,{monitorId:e})]})}},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,2780,2858,2866,9278,4481,9999,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 r=n(56127),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):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 r=n(11611),i=n(82846),s=n(91936),o=Math.max,a=Math.min;t.exports=function(t,e,n){var c,l,u,d,m,p,f=0,v=!1,g=!1,y=!0;if("function"!=typeof t)throw TypeError("Expected a function");function h(e){var n=c,r=l;return c=l=void 0,f=e,d=t.apply(r,n)}function x(t){var n=t-p,r=t-f;return void 0===p||n>=e||n<0||g&&r>=u}function j(){var t,n,r,s=i();if(x(s))return b(s);m=setTimeout(j,(t=s-p,n=s-f,r=e-t,g?a(r,u-n):r))}function b(t){return(m=void 0,y&&c)?h(t):(c=l=void 0,d)}function _(){var t,n=i(),r=x(n);if(c=arguments,l=this,p=n,r){if(void 0===m)return f=t=p,m=setTimeout(j,e),v?h(t):d;if(g)return clearTimeout(m),m=setTimeout(j,e),h(p)}return void 0===m&&(m=setTimeout(j,e)),d}return e=s(e)||0,r(n)&&(v=!!n.leading,u=(g="maxWait"in n)?o(s(n.maxWait)||0,e):u,y="trailing"in n?!!n.trailing:y),_.cancel=function(){void 0!==m&&clearTimeout(m),f=0,c=p=l=m=void 0},_.flush=function(){return void 0===m?d:b(i())},_}},11611:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},55193:function(t,e,n){var r=n(99736),i=n(92360);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},82846:function(t,e,n){var r=n(77400);t.exports=function(){return r.Date.now()}},91936:function(t,e,n){var r=n(74833),i=n(11611),s=n(55193),o=0/0,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(s(t))return o;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=c.test(t);return n||l.test(t)?u(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)}])},77213:function(t,e,n){"use strict";n.d(e,{Z:function(){return m}});var r=n(24246),i=n(56351),s=n(88038),o=n.n(s),a=n(86677);n(27378);var c=n(25980),l=n(90867),u=n(77830),d=()=>{let t=(0,a.useRouter)();return(0,r.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,r.jsxs)(i.xuv,{children:[(0,r.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,r.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,r.jsx)(i.wpx,{onClick:()=>{t.push(u.fz)},children:"Configure"})]}),(0,r.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=t=>{let{children:e,title:n,padded:s=!0,mainProps:u}=t,m=(0,c.hz)(),p=(0,a.useRouter)(),f="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,v=!(m.flags.privacyRequestsConfiguration&&f),{data:g}=(0,l.JE)(void 0,{skip:v}),{data:y}=(0,l.PW)(void 0,{skip:v}),h=m.flags.privacyRequestsConfiguration&&(!g||!y)&&f;return(0,r.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,r.jsxs)(o(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsxs)(i.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",...u,children:[h?(0,r.jsx)(d,{}):null,e]})]})}},58754:function(t,e,n){"use strict";var r=n(24246),i=n(56351),s=n(70788);e.Z=t=>{let{heading:e,breadcrumbItems:n,isSticky:o=!0,children:a,rightContent:c,style:l,...u}=t;return(0,r.jsxs)("div",{...u,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,r.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof e?(0,r.jsx)(i.X6q,{className:n||a?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:e}):e,c&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:c})]}),!!n&&(0,r.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 r=n(24246),i=n(56351),s=n(79894),o=n.n(s),a=n(27378);let{Text:c}=i.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,r.jsx)(c,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:a.title})),l)?a.title=(0,r.jsx)(i.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,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,r.jsx)(o(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[e]);return(0,r.jsx)(i.zrq,{items:s,...n})}},57454:function(t,e,n){"use strict";n.d(e,{M:function(){return c}});var r=n(24246),i=n(66726),s=n.n(i),o=n(27378),a=n(86780);let c=t=>{let{value:e,onChange:n}=t,[i,c]=(0,o.useState)(e),l=s()(n,500),u=(0,o.useCallback)(t=>{c(t),l(t)},[]);return(0,r.jsx)(a.Z,{search:i,onChange:u,onClear:()=>{c(""),n("")}})}},37059:function(t,e,n){"use strict";n.d(e,{Ak:function(){return p},EY:function(){return u},Ud:function(){return s},Vr:function(){return f},WJ:function(){return a},nP:function(){return l},nS:function(){return d},rs:function(){return c},sX:function(){return m},wi:function(){return o}});var r=n(78780),i=n(16394);let{useGetAggregateMonitorResultsQuery:s,useGetDiscoveredSystemAggregateQuery:o,useGetDiscoveredAssetsQuery:a,useAddMonitorResultSystemsMutation:c,useIgnoreMonitorResultSystemsMutation:l,useAddMonitorResultAssetsMutation:u,useIgnoreMonitorResultAssetsMutation:d,useUpdateAssetsSystemMutation:m,useUpdateAssetsDataUseMutation:p,useUpdateAssetsMutation:f}=r.u.injectEndpoints({endpoints:t=>({getAggregateMonitorResults:t.query({query:t=>{let{page:e=1,size:n=20,search:r}=t;return{url:"/plus/discovery-monitor/aggregate-results",params:{page:e,size:n,search:r,diff_status:"addition"}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredSystemAggregate:t.query({query:t=>{let{key:e,page:n=1,size:r=20,search:i}=t;return{url:"/plus/discovery-monitor/system-aggregate-results",params:{monitor_config_id:e,page:n,size:r,search:i,diff_status:"addition"}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredAssets:t.query({query:t=>{let{key:e,system:n,page:r=1,size:i=20,search:s}=t;return{url:"/plus/discovery-monitor/".concat(e,"/results"),params:{resolved_system_id:n,page:r,size:i,search:s,diff_status:"addition"}}},providesTags:()=>["Discovery Monitor Results"]}),addMonitorResultSystems:t.mutation({query:t=>{let{monitor_config_key:e,resolved_system_ids:n}=t,r=(0,i.du)(n,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(e,"/promote?").concat(r)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultSystems:t.mutation({query:t=>{let{monitor_config_key:e,resolved_system_ids:n}=t,r=(0,i.du)(n,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(e,"/mute?").concat(r)}},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,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,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 b}});var r=n(24246),i=n(56351),s=n(79894),o=n.n(s),a=n(27378),c=n(77213),l=n(77830),u=n(58754),d=n(14481),m=n(37059);let p=t=>{let{isConfigLoading:e}=t;return(0,r.jsx)(c.Z,{title:"Action center",mainProps:{className:"h-full"},children:(0,r.jsx)(i.jqI,{justify:"center",align:"center",className:"h-full",children:e?(0,r.jsx)(i.$jN,{color:"primary.900"}):(0,r.jsx)(i.DUx,{message:"Coming soon...",description:"Action center is currently disabled.",type:"info",showIcon:!0})})})},f=()=>(0,r.jsx)(i.oj8,{image:i.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up! Set up an integration monitor to track your infrastructure in greater detail.",children:(0,r.jsx)(o(),{href:l.KH,passHref:!0,legacyBehavior:!0,children:(0,r.jsx)(i.wpx,{type:"primary",children:"Visit integrations"})})});var v=n(7195),g=n(16394);let{Text:y}=i.AntTypography,h=t=>{let{monitorSummary:e,showSkeleton:n,...s}=t,[c,u]=(0,a.useState)(void 0),{name:d,property:m,total_updates:p,updates:f,last_monitored:h,warning:x,key:j}=e,b=Object.entries(f).map(t=>"".concat(t[1]," ").concat(t[0],"s")).join(", "),_=h?(0,v.B)(new Date(h),new Date,{addSuffix:!0}):void 0;return(0,a.useEffect)(()=>{m&&u((0,g.tl)(m))},[m]),(0,r.jsx)(i.krs.Item,{"data-testid":"monitor-result-".concat(j),...s,children:(0,r.jsxs)(i.N_L,{avatar:!0,title:!1,loading:n,active:!0,children:[(0,r.jsx)(i.krs.Item.Meta,{avatar:(0,r.jsx)(i.t3Z,{src:c,size:"small",icon:(0,r.jsx)(i.PJP.huD,{}),style:{backgroundColor:"transparent",color:"var(--ant-color-text)"}}),title:(0,r.jsxs)(o(),{href:"".concat(l.vi,"/").concat(j),className:"whitespace-nowrap",children:["".concat(p," assets detected").concat(m?" on ".concat(m):""),!!x&&(0,r.jsx)(i.esZ,{title:"string"==typeof x?x:void 0,children:(0,r.jsx)(i.PJP.OdJ,{className:"ml-1 inline-block align-middle",style:{color:"var(--fidesui-error)"}})})]}),description:"".concat(b," detected.")}),(0,r.jsxs)(i.jqI,{className:"gap-12",children:[(0,r.jsx)(y,{style:{maxWidth:300},ellipsis:{tooltip:d},children:d}),!!_&&(0,r.jsx)(i.esZ,{title:(0,g.p6)(h),children:(0,r.jsx)(y,{"data-testid":"monitor-date",children:_})})]})]})})};var x=n(57454),j=n(99716),b=()=>{var t;let e=(0,i.pmc)(),{PAGE_SIZES:n,pageSize:s,setPageSize:v,onPreviousPageClick:g,isPreviousPageDisabled:y,onNextPageClick:b,isNextPageDisabled:_,startRange:w,endRange:T,pageIndex:k,setTotalPages:P,resetPageIndexToDefault:C}=(0,d.oi)(),[R,S]=(0,a.useState)(""),{data:A,isLoading:q}=(0,j.tB)({api_set:!1}),M=!!(null==A?void 0:null===(t=A.detection_discovery)||void 0===t?void 0:t.website_monitor_enabled);(0,a.useEffect)(()=>{C()},[R,C]);let{data:E,isError:N,isLoading:D,isFetching:I}=(0,m.Ud)({page:k,size:s,search:R},{skip:q||!M});(0,a.useEffect)(()=>{N&&e&&M&&e({title:"Error fetching data",description:"Please try again later",status:"error"})},[N,e,M]),(0,a.useEffect)(()=>{E&&P(E.total||1)},[E,P]);let L=(null==E?void 0:E.items)||[],z=I?Array.from({length:s},(t,e)=>({key:e.toString(),updates:[],last_monitored:null})):[],O=(0,a.useCallback)(t=>[(0,r.jsx)(o(),{href:"".concat(l.vi,"/").concat(t),passHref:!0,legacyBehavior:!0,children:(0,r.jsx)(i.wpx,{type:"link",className:"p-0","data-testid":"review-button-".concat(t),children:"Review"})},"review")],[]);return M?(0,r.jsxs)(c.Z,{title:"Action center",children:[(0,r.jsx)(u.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity"}]}),(0,r.jsx)(i.jqI,{className:"justify-between py-6",children:(0,r.jsx)(x.M,{value:R,onChange:S})}),(0,r.jsx)(i.krs,{loading:D,dataSource:L||z,locale:{emptyText:(0,r.jsx)(f,{})},renderItem:t=>!!t&&(0,r.jsx)(h,{showSkeleton:I,monitorSummary:t,actions:O(t.key)},t.key)}),!!L&&!!(null==E?void 0:E.total)&&E.total>s&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.htM,{className:"mb-6 mt-0"}),(0,r.jsx)(d.s8,{totalRows:(null==E?void 0:E.total)||0,pageSizes:n,setPageSize:v,onPreviousPageClick:g,isPreviousPageDisabled:y||I,onNextPageClick:b,isNextPageDisabled:_||I,startRange:w,endRange:T})]})]}):(0,r.jsx)(p,{isConfigLoading:q})}}},function(t){t.O(0,[8033,2780,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([[8538],{73846:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/new",function(){return a(17294)}])},812:function(e,t,a){"use strict";a.d(t,{D4:function(){return s.D4},MM:function(){return f},Ot:function(){return u},c6:function(){return r},cj:function(){return g},e$:function(){return l},fn:function(){return o},iC:function(){return y},nU:function(){return d},tB:function(){return c}});var n,r,s=a(19043);let i="An unexpected error occurred. Please try again.",l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if((0,s.Bw)(e)){if((0,s.hE)(e.data))return e.data.detail;if((0,s.cz)(e.data)){var a;let t=null===(a=e.data.detail)||void 0===a?void 0:a[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,s.Dy)(e.data)||404===e.status&&(0,s.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 u(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:i};if((0,s.oK)(e))return{status:e.originalStatus,message:e.data};if((0,s.Bw)(e)){let{status:a}=e;return{status:a,message:l(e,t.message)}}return t},f=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(n=r||(r={})).GVL="gvl",n.AC="gacp",n.COMPASS="compass";let y={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},g=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},14047:function(e,t,a){"use strict";a.d(t,{H:function(){return s},V:function(){return n.V}});var n=a(84306),r=a(812);let s=()=>{let{errorAlert:e}=(0,n.V)();return{handleError:t=>{let a="An unexpected error occurred. Please try again.";(0,r.Ot)(t)?a=t.data.detail:(0,r.tB)(t)&&(a=t.data.detail[0].msg),e(a)}}}},58452:function(e,t,a){"use strict";var n=a(24246),r=a(56351);t.Z=e=>{let{isOpen:t,onClose:a,onConfirm:s,onCancel:i,title:l,message:o,cancelButtonText:u,continueButtonText:c,isLoading:d,returnFocusOnClose:f,isCentered:y,testId:g="confirmation-modal",icon:h}=e;return(0,n.jsxs)(r.u_l,{isOpen:t,onClose:a,size:"lg",returnFocusOnClose:null==f||f,isCentered:y,children:[(0,n.jsx)(r.ZAr,{}),(0,n.jsxs)(r.hzk,{textAlign:"center",p:6,"data-testid":g,children:[h?(0,n.jsx)(r.M5Y,{mb:2,children:h}):null,l?(0,n.jsx)(r.xBx,{fontWeight:"medium",pb:0,children:l}):null,o?(0,n.jsx)(r.fef,{children:o}):null,(0,n.jsx)(r.mzw,{children:(0,n.jsxs)(r.MIq,{columns:2,width:"100%",children:[(0,n.jsx)(r.wpx,{onClick:()=>{i&&i(),a()},size:"large",className:"mr-3","data-testid":"cancel-btn",disabled:d,children:u||"Cancel"}),(0,n.jsx)(r.wpx,{type:"primary",size:"large",onClick:s,"data-testid":"continue-btn",loading:d,children:c||"Continue"})]})})]})]})}},46628:function(e,t,a){"use strict";a.d(t,{MA:function(){return l},Vo:function(){return u},t5:function(){return o}});var n=a(24246),r=a(56351);let s=e=>{let{children:t,title:a="Success"}=e;return(0,n.jsxs)(r.xvT,{"data-testid":"toast-success-msg",children:[(0,n.jsxs)("strong",{children:[a,":"]})," ",t]})},i=e=>{let{children:t}=e;return(0,n.jsxs)(r.xvT,{"data-testid":"toast-error-msg",children:[(0,n.jsx)("strong",{children:"Error:"})," ",t]})},l={variant:"subtle",position:"top",description:"",duration:5e3,status:"success",isClosable:!0},o=(e,t)=>{let a=(0,n.jsx)(s,{title:t,children:e});return{...l,description:a}},u=e=>{let t=(0,n.jsx)(i,{children:e});return{...l,description:t,status:"error"}}},17294:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return O}});var n=a(24246),r=a(56351),s=a(27378),i=a(25980),l=a(77213),o=a(77830),u=a(58754),c=a(91613),d=a(34090),f=a(86677),y=a(45007),g=a(59389),h=a(40324),m=a(812),p=a(58452),x=a(46628),b=a(83265),v=a(32885),j=a(21702),w=a(20386);let C=e=>!("system_type"in e),_={url:"",classify:!1,classifyConfirmed:!1},A=g.Ry().shape({url:g.Z_().required().label("Database URL"),classify:g.O7(),classifyConfirmed:g.O7().when(["url","classify"],{is:(e,t)=>e&&t,then:()=>g.O7().equals([!0])})});var D=()=>{let[e,{isLoading:t}]=(0,w.pR)(),[a,{isLoading:s}]=(0,w.IR)(),[l,{isLoading:u}]=(0,v.Du)(),c=t||s||u,g=(0,r.pmc)(),D=(0,f.useRouter)(),L=(0,i.hz)(),S=(0,y.I0)(),k=async t=>{var a;let n=await e({organization_key:b.Av,generate:{config:{connection_string:t.url},target:j.GC.DB,type:j.j.DATASETS}});if("error"in n)return{error:(0,m.e$)(n.error)};let r=(null!==(a=n.data.generate_results)&&void 0!==a?a:[]).filter(C);return r&&r.length>0?{datasets:r}:{error:"Unable to generate a dataset with this connection."}},N=async e=>{let t=await a(e);return"error"in t?{error:(0,m.e$)(t.error)}:{dataset:t.data}},E=async e=>{let{values:t,datasets:a}=e,n=await l({dataset_schemas:a.map(e=>{let{name:t,fides_key:a}=e;return{fides_key:a,name:t}}),schema_config:{organization_key:b.Av,generate:{config:{connection_string:t.url},target:j.GC.DB,type:j.j.DATASETS}}});return"error"in n?{error:(0,m.e$)(n.error)}:{classifyInstances:n.data.classify_instances}},O=async e=>{var t;let a=await k(e);if("error"in a){g((0,x.Vo)(a.error));return}let n=await Promise.all(a.datasets.map(e=>N(e))),r=null!==(t=n.find(e=>"error"in e))&&void 0!==t?t:n[0];if("error"in r){g((0,x.Vo)(r.error));return}if(!e.classify){g((0,x.t5)("Generated ".concat(r.dataset.name," dataset"))),D.push({pathname:o.o5,query:{datasetId:r.dataset.fides_key}});return}let s=await E({values:e,datasets:a.datasets});if("error"in s){g((0,x.Vo)(s.error));return}g((0,x.t5)("Generate and classify are now in progress")),S((0,w.Zl)(r.dataset.fides_key)),D.push("/dataset")};return(0,n.jsx)(d.J9,{initialValues:{..._,classify:L.plus},validationSchema:A,onSubmit:O,validateOnChange:!1,validateOnBlur:!1,children:e=>{let{isSubmitting:t,errors:a,values:s,submitForm:i,resetForm:l,setFieldValue:o}=e;return(0,n.jsxs)(d.l0,{children:[(0,n.jsxs)(r.gCW,{spacing:8,align:"left",children:[(0,n.jsx)(r.xvT,{size:"sm",color:"gray.700",children:"Connect to a database using the connection URL. You may have received this URL from a colleague or your Ethyca developer support engineer."}),(0,n.jsx)(r.xuv,{children:(0,n.jsx)(h.j0,{name:"url",label:"Database URL"})}),L.plus?(0,n.jsx)(h.w8,{name:"classify",label:"Classify dataset",tooltip:"Use Fides Classify to suggest labels based on your data."}):null,(0,n.jsx)(r.xuv,{children:(0,n.jsx)(r.wpx,{type:"primary",htmlType:"submit",loading:t||c,disabled:t||c,"data-testid":"create-dataset-btn",children:"Generate dataset"})})]}),(0,n.jsx)(p.Z,{title:"Generate and classify this dataset",message:"You have chosen to generate and classify this dataset. This process may take several minutes. In the meantime you can continue using Fides. You will receive a notification when the process is complete.",isOpen:void 0!==a.classifyConfirmed,onClose:()=>{l({values:{...s,classifyConfirmed:!1}})},onConfirm:()=>{o("classifyConfirmed",!0),setTimeout(()=>{i()},0)}})]})}})},L=a(66527),S=a(14047),k=a(41207),N=a(39715),E=()=>{let[e]=(0,w.IR)(),[t,a]=(0,s.useState)(!0),[i,l]=(0,s.useState)(!1),[u,c]=(0,s.useState)(!1),d=(0,s.useRef)(null),y=(0,f.useRouter)(),g=(0,r.pmc)(),{errorAlert:h}=(0,S.V)(),[p,b]=(0,s.useState)(void 0),v=e=>{L.ZP.load(e,{json:!0}),b(void 0)},j=async t=>{let a;return"object"==typeof t&&null!=t&&"dataset"in t&&Array.isArray(t.dataset)?[a]=t.dataset:Array.isArray(t)?[a]=t:a=t,e(a)},C=e=>{g((0,x.t5)("Successfully loaded new dataset YAML")),(0,w.Zl)(e.fides_key),y.push({pathname:o.o5,query:{datasetId:e.fides_key}})},_=async()=>{l(!0);let e=d.current.getValue(),t=L.ZP.load(e,{json:!0}),a=await j(t);(0,m.D4)(a)?g((0,x.Vo)((0,m.e$)(a.error))):"data"in a&&C(a.data),l(!1)};return(0,n.jsxs)(r.kCb,{gap:"97px",children:[(0,n.jsxs)(r.xuv,{w:"75%",children:[(0,n.jsx)(r.xuv,{color:"gray.700",fontSize:"14px",mb:4,children:"Get started creating your first dataset by pasting your dataset yaml below! You may have received this yaml from a colleague or your Ethyca developer support engineer."}),(0,n.jsxs)(r.gCW,{align:"stretch",children:[(0,n.jsx)(r.izJ,{color:"gray.100"}),(0,n.jsx)(k.M,{defaultLanguage:"yaml",height:"calc(100vh - 515px)",onChange:e=>{try{c(!0),v(e),a(!!(!e||""===e.trim()))}catch(e){(0,k.F)(e)?b(e):h("Could not parse the supplied YAML")}},onMount:e=>{d.current=e,d.current.focus()},options:{fontFamily:"Menlo",fontSize:13,minimap:{enabled:!0}},theme:"light"}),(0,n.jsx)(r.izJ,{color:"gray.100"}),(0,n.jsx)(r.wpx,{type:"primary",disabled:t||!!p||i,loading:i,onClick:_,htmlType:"submit",className:"mt-6 w-fit",children:"Create dataset"})]})]}),(0,n.jsx)(r.xuv,{children:u&&(t||p)&&(0,n.jsx)(N.Z,{isEmptyState:t,yamlError:p})})]})},O=()=>{let e=(0,i.hz)(),[t,a]=(0,s.useState)(null);return(0,n.jsxs)(l.Z,{title:"Create New Dataset",children:[(0,n.jsx)(u.Z,{heading:"Datasets",breadcrumbItems:[{title:"All datasets",href:o.$m},{title:"Create new"}]}),(0,n.jsxs)(r.Kqy,{spacing:8,children:[(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(r.wpx,{onClick:()=>a("yaml"),"data-testid":"upload-yaml-btn",className:"mr-2",children:"Upload a Dataset YAML"}),(0,n.jsx)(r.wpx,{onClick:()=>a("database"),ghost:"database"===t,disabled:e.flags.dataDiscoveryAndDetection,className:"mr-2","data-testid":"connect-db-btn",children:"Connect to a database"}),e.flags.dataDiscoveryAndDetection?(0,n.jsx)(c.Z,{label:"Creating a dataset via a database connection is disabled when the 'detection & discovery' beta feature is enabled"}):null]}),"database"===t&&(0,n.jsx)(r.xuv,{w:{base:"100%",lg:"50%"},children:(0,n.jsx)(D,{})}),"yaml"===t&&(0,n.jsx)(r.xuv,{w:{base:"100%"},children:(0,n.jsx)(E,{})})]})]})}},19043:function(e,t,a){"use strict";a.d(t,{Bw:function(){return i},D4:function(){return r},Dy:function(){return o},XD:function(){return u},cz:function(){return c},hE:function(){return l},oK:function(){return s}});var n=a(76649);let r=e=>"error"in e,s=e=>(0,n.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,i=e=>(0,n.Ln)({status:"number",data:{}},e),l=e=>(0,n.Ln)({detail:"string"},e),o=e=>(0,n.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),u=e=>(0,n.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,n.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)},76649:function(e,t,a){"use strict";a.d(t,{Ln:function(){return n}});let n=(e,t)=>s(e,t),r=Symbol("SOME"),s=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?r in e?e.some(e=>s(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>s(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,a])=>s(a,t[e]));class i{static narrow(e){return new i(t=>n(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,a=e instanceof i?e.NF:e instanceof Function?e:t=>n(e,t);return new i(e=>t(e)&&a(e))}}new i(e=>!0)}},function(e){e.O(0,[3005,5574,2888,9774,179],function(){return e(e.s=73846)}),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8473],{64902:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset",function(){return a(91949)}])},79806:function(e,t,a){"use strict";a.d(t,{Gn:function(){return o},zR:function(){return l}});var s=a(24246),i=a(56351),n=a(56358);let l=e=>{let{title:t}=e;return(0,s.jsx)(i.OXI,{py:0,display:"flex",alignItems:"flex-start",children:(0,s.jsx)(i.xvT,{mr:"2",color:"gray.700",fontSize:"lg",lineHeight:1.8,children:t})})},o=e=>{let{onDelete:t,onEditYaml:a,formId:l,isSaving:o}=e;return(0,s.jsxs)(i.zeN,{justifyContent:"space-between",children:[t?(0,s.jsx)(i.wpx,{"aria-label":"delete",icon:(0,s.jsx)(n.q,{fontSize:"small"}),onClick:t,"data-testid":"delete-btn"}):null,(0,s.jsxs)("div",{className:"flex gap-2",children:[a&&(0,s.jsx)(i.wpx,{onClick:a,"data-testid":"edit-yaml-btn",children:"Edit YAML"}),(0,s.jsx)(i.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",form:l,loading:o,children:"Save"})]})]})};t.ZP=e=>{let{header:t,description:a,isOpen:n,onClose:l,children:o,footer:d}=e;return(0,s.jsxs)(i.dys,{placement:"right",isOpen:n,onClose:l,size:"md",children:[(0,s.jsx)(i.P1B,{}),(0,s.jsxs)(i.scA,{"data-testid":"edit-drawer-content",py:2,children:[(0,s.jsxs)(i.xuv,{display:"flex",justifyContent:"space-between",alignItems:"top",mr:2,py:2,gap:2,children:[(0,s.jsx)(i.xuv,{flex:1,minH:8,children:t}),(0,s.jsx)(i.xuv,{display:"flex",justifyContent:"flex-end",mr:2,children:(0,s.jsx)(i.wpx,{"aria-label":"Close editor",onClick:l,"data-testid":"close-drawer-btn",icon:(0,s.jsx)(i.Two,{fontSize:"smaller"})})})]}),(0,s.jsxs)(i.Ng0,{pt:1,children:[a?(0,s.jsx)(i.xvT,{fontSize:"sm",mb:4,color:"gray.600",children:a}):null,o]}),d]})]})}},56358:function(e,t,a){"use strict";a.d(t,{q:function(){return i}});var s=a(24246);let i=(0,a(56351).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,s.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},8133:function(e,t,a){"use strict";var s=a(24246),i=a(56351);t.Z=e=>{let{title:t,children:a,isOpen:n,onClose:l,...o}=e;return(0,s.jsxs)(i.u_l,{isOpen:n,onClose:l,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...o,children:[(0,s.jsx)(i.ZAr,{}),(0,s.jsxs)(i.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",children:[(0,s.jsx)(i.xBx,{p:0,children:(0,s.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,s.jsx)(i.X6q,{as:"h3",size:"sm",children:t})})}),(0,s.jsx)(i.fef,{pb:4,overflow:"auto",children:a})]})]})}},56026:function(e,t,a){"use strict";a.d(t,{QL:function(){return n},du:function(){return i},tz:function(){return s}});let s={name:{tooltip:"A UI-friendly label for the Dataset."},description:{tooltip:"A human-readable description of the Dataset."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to all collections in the Dataset."}},i={description:{tooltip:"A human-readable description of the collection."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to all fields in the collection."}},n={description:{tooltip:"A human-readable description of the field."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to this field."}}},91949:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return L}});var s=a(24246),i=a(92222),n=a(59003),l=a(56351),o=a(79894),d=a.n(o),r=a(86677),c=a(27378),u=a(45007),p=a(32885),x=a(21702);let h=e=>{let{resourceType:t,fidesKeys:a,skip:s}=e,[i,n]=(0,c.useState)(!0),l=(0,p.Wm)({resource_type:t,fides_keys:a},{skip:s,pollingInterval:i?3e3:void 0}),o=!!l.data&&l.data.every(e=>e.status===x.Wg.COMPLETE||e.status===x.Wg.FAILED||e.status===x.Wg.REVIEWED);return(0,c.useEffect)(()=>{o&&n(!1)},[o]),{...l,isClassificationFinished:o}};var f=a(25980),m=a(77213),g=a(77830),j=a(58754),C=a(14481),y=a(20386),b=a(79806),v=a(812),w=a(46628),k=a(8133),_=a(84306),S=a(66527),z=a(41207),A=a(39715),D=a(41966),R=e=>{let{data:t=[],isSubmitting:a=!1,onCancel:i,onSubmit:n,disabled:o,isLoading:d,onChange:r}=e,u=(0,c.useRef)(null),{errorAlert:p}=(0,_.V)(),x=t.length>0?S.ZP.dump(t):void 0,[h,f]=(0,c.useState)(void 0),[m,g]=(0,c.useState)(!1),[j,C]=(0,c.useState)(!x),{data:y}=(0,D.NR)(),[b,v]=(0,c.useState)([]),w=e=>{S.ZP.load(e,{json:!0}),f(void 0)},k=()=>{if(y&&y.length){let e=u.current.getValue();v(y.filter(t=>e.includes("fides_key: ".concat(t.fides_key,"\n"))).map(e=>e.fides_key))}},R=o||j||!m||!!h||a;return(0,s.jsxs)(l.kCb,{gap:"97px",children:[(0,s.jsxs)(l.gCW,{align:"stretch",w:"800px",children:[(0,s.jsx)(z.M,{defaultLanguage:"yaml",defaultValue:x,height:"calc(100vh - 526px)",onChange:e=>{try{g(!0),w(e),C(!e||""===e.trim());let t=S.ZP.load(e||"",{json:!0});Array.isArray(t)?r(t[0]):r(t),k()}catch(e){(0,z.F)(e)?f(e):p("Could not parse the supplied YAML")}},onMount:(e,t)=>{u.current=e,u.current.focus()},options:{fontFamily:"Menlo",fontSize:13,minimap:{enabled:!1},readOnly:o},theme:"light"}),b.length>0?(0,s.jsxs)(l.xvT,{children:["You are about to overwrite the dataset",b.length>1?"s":""," ",b.map((e,t)=>{let a=t===b.length-1;return(0,s.jsxs)(c.Fragment,{children:[(0,s.jsx)(l.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:e}),a?".":", "]},e)})]}):null,(0,s.jsx)(l.mzw,{children:(0,s.jsxs)("div",{className:"flex w-full justify-end gap-4",children:[i&&(0,s.jsx)(l.wpx,{onClick:i,"data-testid":"cancel-btn",disabled:d,children:"Cancel"}),(0,s.jsx)(l.wpx,{type:"primary",onClick:()=>{null==n||n(),null==i||i()},"data-testid":"continue-btn",disabled:R,loading:a||d,children:"Confirm"})]})})]}),m&&(j||h)&&(0,s.jsx)(A.Z,{isEmptyState:j,yamlError:h})]})},E=e=>{let{isOpen:t,onClose:a,title:i,isLoading:n,returnFocusOnClose:o,isDatasetSelected:d,dataset:r,onChange:c,onSubmit:u}=e;return(0,s.jsx)(k.Z,{isOpen:t,onClose:a,size:"3xl",returnFocusOnClose:null==o||o,isCentered:!0,title:null!=i?i:"Edit Dataset",children:(0,s.jsx)(l.xuv,{"data-testid":"yaml-editor-section",children:(0,s.jsx)(R,{data:r?[r]:[],onSubmit:u,isSubmitting:!1,disabled:d,onChange:c,isLoading:n,onCancel:a})})})},V=a(34090),H=a(40324),T=a(56026);let M="edit-field-drawer";var Z=e=>{var t,a;let{values:i,onSubmit:n}=e,o={name:null!==(t=i.name)&&void 0!==t?t:"",description:null!==(a=i.description)&&void 0!==a?a:"",data_categories:i.data_categories};return(0,s.jsx)(V.J9,{initialValues:o,onSubmit:e=>{n({...e,data_categories:i.data_categories||[]})},children:(0,s.jsx)(V.l0,{id:M,children:(0,s.jsxs)(l.Kqy,{spacing:"3",children:[(0,s.jsx)(H.j0,{name:"name",label:"Name",tooltip:T.tz.name.tooltip,"data-testid":"name-input",variant:"block"}),(0,s.jsx)(H.j0,{name:"description",label:"Description",tooltip:T.tz.description.tooltip,"data-testid":"description-input",variant:"block"})]})})})},O=e=>{let{dataset:t,isOpen:a,onClose:i}=e,[n,{isLoading:o}]=(0,y.TG)(),[d]=(0,y.QY)(),u=(0,r.useRouter)(),p=(0,l.pmc)(),{isOpen:x,onOpen:h,onClose:f}=(0,l.qY0)(),{isOpen:m,onOpen:g,onClose:j}=(0,l.qY0)(),[C,k]=(0,c.useState)(void 0),_=async e=>{let a={...t,...e};try{let e=await n(a);(0,v.D4)(e)?p((0,w.Vo)((0,v.e$)(e.error))):p((0,w.t5)("Successfully modified dataset"))}catch(e){p((0,w.Vo)(e))}i()},S=async()=>{let{fides_key:e}=t,a=await d(e);(0,v.D4)(a)?p((0,w.Vo)((0,v.e$)(a.error))):p((0,w.t5)("Successfully deleted dataset")),(0,y.Zl)(void 0),u.push("/dataset"),i(),f()};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(b.ZP,{isOpen:a,onClose:i,description:"A Dataset takes a database schema (tables and columns) and adds Fides privacy categorizations. Provide additional context to this dataset by filling out the fields below.",header:(0,s.jsx)(b.zR,{title:"Edit: ".concat(null==t?void 0:t.name)}),footer:(0,s.jsx)(b.Gn,{onClose:i,onDelete:h,onEditYaml:()=>g(),formId:M}),children:[(0,s.jsx)(E,{isOpen:m,onClose:j,onChange:k,onSubmit:()=>_(C),title:"Edit dataset YAML",isLoading:o,isDatasetSelected:!1,dataset:t}),(0,s.jsx)(Z,{values:t,onSubmit:_})]}),(0,s.jsx)(l.cVQ,{isOpen:x,onClose:f,onConfirm:S,title:"Delete Dataset",message:(0,s.jsxs)(l.xvT,{children:["You are about to permanently delete the dataset named"," ",(0,s.jsx)(l.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==t?void 0:t.name}),". Are you sure you would like to continue?"]})})]})};let P=(0,i.Cl)(),I={items:[],total:0,page:1,size:25,pages:1},N=()=>(0,s.jsx)(l.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,s.jsxs)(l.gCW,{children:[(0,s.jsx)(l.xvT,{fontSize:"md",fontWeight:"600",children:"No datasets found."}),(0,s.jsx)(l.xvT,{fontSize:"sm",children:'Click "Create new dataset" to add your first dataset to Fides.'})]})});var L=()=>{let e=(0,u.I0)(),t=(0,r.useRouter)(),[a,o]=(0,c.useState)(!1),[p,b]=(0,c.useState)(),{PAGE_SIZES:v,pageSize:w,setPageSize:k,onPreviousPageClick:_,isPreviousPageDisabled:S,onNextPageClick:z,isNextPageDisabled:A,startRange:D,endRange:R,pageIndex:E,setTotalPages:V,resetPageIndexToDefault:H}=(0,C.oi)(),[T,M]=(0,c.useState)(),Z=(0,c.useCallback)(e=>{H(),M(e)},[H,M]),{data:L,isLoading:W,isFetching:F}=(0,y.rt)({page:E,size:w,search:T,exclude_saas_datasets:!0}),{items:Y,total:q,pages:G}=(0,c.useMemo)(()=>null!=L?L:I,[L]);(0,c.useEffect)(()=>{V(G)},[G,V]);let B=(0,c.useCallback)(a=>{e((0,y.Zl)(a.fides_key)),t.push({pathname:g.o5,query:{datasetId:encodeURIComponent(a.fides_key)}})},[e,t]),Q=(0,f.hz)();h({resourceType:x.j.DATASETS,skip:!Q.plus});let U=(0,c.useMemo)(()=>[P.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(C.G3,{value:e.getValue(),fontWeight:"semibold"}),header:e=>(0,s.jsx)(C.Rr,{value:"Dataset Name",...e}),size:180}),P.accessor(e=>e.fides_key,{id:"fides_key",cell:e=>(0,s.jsx)(C.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(C.Rr,{value:"Fides Key",...e}),size:150}),P.accessor(e=>e.description,{id:"description",cell:e=>(0,s.jsx)(C.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,s.jsx)(C.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),P.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,a=t.original;return(0,s.jsx)(l.Ugi,{spacing:0,"data-testid":"dataset-".concat(a.fides_key),children:(0,s.jsx)(l.wpx,{size:"small",icon:(0,s.jsx)(l.dY8,{}),onClick:()=>{b(a),o(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})].filter(Boolean),[]),X=(0,n.b7)({getCoreRowModel:(0,i.sC)(),getFilteredRowModel:(0,i.vL)(),getSortedRowModel:(0,i.tj)(),columns:U,data:Y,columnResizeMode:"onChange"});return(0,s.jsx)(m.Z,{title:"Datasets",children:(0,s.jsxs)(l.xuv,{"data-testid":"system-management",children:[(0,s.jsx)(j.Z,{heading:"Datasets",breadcrumbItems:[{title:"All datasets"}],rightContent:(0,s.jsx)(d(),{href:"/dataset/new",passHref:!0,legacyBehavior:!0,children:(0,s.jsx)(l.wpx,{"data-testid":"create-dataset-btn",children:"+ Add dataset"})})}),W?(0,s.jsx)(C.I4,{rowHeight:36,numRows:15}):(0,s.jsxs)(l.xuv,{"data-testid":"dataset-table",children:[(0,s.jsx)(C.Q$,{children:(0,s.jsx)(C.HO,{globalFilter:T,setGlobalFilter:Z,placeholder:"Search",testid:"dataset-search"})}),(0,s.jsx)(C.ZK,{tableInstance:X,emptyTableNotice:(0,s.jsx)(N,{}),onRowClick:B})]}),(0,s.jsx)(C.s8,{totalRows:q||0,pageSizes:v,setPageSize:k,onPreviousPageClick:_,isPreviousPageDisabled:S||F,onNextPageClick:z,isNextPageDisabled:A||F,startRange:D,endRange:R}),(0,s.jsx)(O,{dataset:p,isOpen:a,onClose:()=>{b(void 0),o(!1)}})]})})}}},function(e){e.O(0,[8033,2780,3005,4481,5574,2888,9774,179],function(){return e(e.s=64902)}),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1500],{50697:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/integrations/[id]",function(){return n(327)}])},67991:function(e,t,n){"use strict";n.d(t,{Od:function(){return o},QZ:function(){return a}});var i=n(27378);let a=e=>{let{items:t,selected:n,onChange:i}=e,a=t.every(e=>n.includes(e.id))&&!!t.length;return{allSelected:a,someSelected:t.some(e=>n.includes(e.id))&&!!t.length,handleToggleAll:()=>{a?i([]):i(t.map(e=>e.id))},handleToggleSelection:e=>{n.includes(e)?i(n.filter(t=>t!==e)):i([...n,e])}}},o=e=>{let{initialSelected:t,initialExcluded:n,initialAllSelected:a,itemCount:o}=e,[s,l]=(0,i.useState)(t),[r,c]=(0,i.useState)(n),[d,u]=(0,i.useState)(a||s.length===o),m=!!s.length||!!r.length;return{selected:s,excluded:r,allSelected:d,someSelected:m,handleToggleAll:()=>{d?(c([]),r.length||u(!1)):(l([]),u(!0))},handleToggleItemSelected:e=>{if(d)c(r.includes(e)?r.filter(t=>t!==e):[...r,e]);else{let t=s.includes(e)?s.filter(t=>t!==e):[...s,e];l(t),t.length===o&&u(!0)}}}}},79494:function(e,t,n){"use strict";var i=n(24246),a=n(56351);t.Z=e=>{let{title:t,icon:n,type:o,...s}=e;return(0,i.jsx)(a.wpx,{size:"small",type:o,"data-testid":"action-".concat(t),icon:n,iconPosition:"start",...s,children:t})}},327:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return el}});var i=n(24246),a=n(56351),o=n(86677),s=n(7617),l=n(77213),r=n(77830),c=n(58754),d=n(94725),u=n(45216),m=n(7621),x=n(92222),g=n(59003),h=n(27378),p=n(18225);let f=(0,a.IUT)({displayName:"MonitorIcon",viewBox:"0 0 12 12",path:(0,i.jsx)("path",{d:"M1.33333 2.21875C1.15 2.21875 1 2.37344 1 2.5625V5.65625H3.66667C3.84167 5.65625 4.00417 5.75078 4.09583 5.90762L4.62708 6.8207L5.88542 4.22324C5.96667 4.05566 6.13125 3.94609 6.3125 3.93965C6.49375 3.9332 6.66667 4.02773 6.76042 4.18887L7.61458 5.65625H8.83333C9.11042 5.65625 9.33333 5.88613 9.33333 6.17188C9.33333 6.45762 9.11042 6.6875 8.83333 6.6875H7.33333C7.15833 6.6875 6.99583 6.59297 6.90417 6.43613L6.37292 5.52305L5.11458 8.12051C5.03333 8.28809 4.86875 8.39766 4.6875 8.4041C4.50625 8.41055 4.33333 8.31602 4.23958 8.15488L3.38542 6.6875H1V9.4375C1 9.62656 1.15 9.78125 1.33333 9.78125H10.6667C10.85 9.78125 11 9.62656 11 9.4375V2.5625C11 2.37344 10.85 2.21875 10.6667 2.21875H1.33333ZM0 2.5625C0 1.8041 0.597917 1.1875 1.33333 1.1875H10.6667C11.4021 1.1875 12 1.8041 12 2.5625V9.4375C12 10.1959 11.4021 10.8125 10.6667 10.8125H1.33333C0.597917 10.8125 0 10.1959 0 9.4375V2.5625Z",fill:"currentColor"})});var j=n(14481),y=n(72625),_=n(70675),b=n(812),v=e=>{let{defaultSuccessMsg:t,defaultErrorMsg:n}=e,i=(0,a.pmc)();return{toastResult:e=>{(0,b.D4)(e)?i({status:"error",description:(0,b.e$)(e.error,n)}):i({status:"success",description:t})}}},C=n(8133),S=n(46628),k=n(67991),w=n(91613);let R=(0,x.Cl)();var T=e=>{let{items:t,totalItemCount:n,selected:o,excluded:s,allSelected:l,someSelected:r,moreLoading:c,handleToggleSelection:d,handleToggleAll:u,onMoreClick:m}=e,f=t.map(e=>({id:e,isSelected:o.includes(e),isExcluded:s.includes(e)})),y=(0,h.useMemo)(()=>[R.display({id:"select",cell:e=>{let{row:t}=e;return(0,i.jsx)(j.k,{isChecked:t.original.isSelected||l&&!t.original.isExcluded,onChange:()=>d(t.original.id),dataTestId:"".concat(t.original.id,"-checkbox")})},header:()=>(0,i.jsx)(j.k,{isChecked:l,isIndeterminate:r,onChange:u,dataTestId:"select-all-checkbox"}),size:1}),R.accessor(e=>e.id,{id:"id",cell:e=>(0,i.jsx)(j.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(j.Rr,{value:"Scope",...e})})],[d,u,l,r]),_=(0,g.b7)({getCoreRowModel:(0,x.sC)(),getRowId:e=>e.id,manualPagination:!0,data:f,columns:y,columnResizeMode:"onChange"});return(0,i.jsx)(a.kCb,{w:"full",direction:"column",maxH:"lg",children:(0,i.jsx)(j.ZK,{tableInstance:_,onRowClick:e=>d(e.id),footer:!!m&&(0,i.jsx)(j.vr,{totalColumns:2,children:(0,i.jsx)(a.kCb,{justify:"center",children:c?(0,i.jsx)(p.Z,{size:"xs"}):(0,i.jsxs)(a.kCb,{align:"center",children:[(0,i.jsxs)(a.xvT,{fontSize:"xs",mr:4,children:["Showing ",t.length," of ",n]}),(0,i.jsx)(a.wpx,{onClick:m,size:"small","data-testid":"load-more-btn",children:"Load more..."})]})})})})})};let E={items:[],total:1,page:1,size:50,pages:0};var q=(e,t)=>{let[n,i]=(0,h.useState)(2),{data:a,isLoading:o}=(0,_.oN)({page:1,size:25,connection_config_key:e}),s=(0,h.useRef)(o),{items:l,total:r}=null!=a?a:E,c=!!(null==a?void 0:a.pages)&&n>a.pages,[d,u]=(0,h.useState)(l);(0,h.useEffect)(()=>{s.current=o,u(l)},[o,l]),(0,h.useEffect)(()=>{let e=setTimeout(()=>{s.current&&t&&t()},5e3);return()=>clearTimeout(e)},[]);let[m,{isLoading:x,isFetching:g}]=(0,_.j3)(),p=x||g||o,f=async()=>{var t,a;if(c)return;let o=await m({connection_config_key:e,size:25,page:n+1});o.isError||(i(n+1),u([...d,...null!==(a=null===(t=o.data)||void 0===t?void 0:t.items)&&void 0!==a?a:[]]))};return{databases:d,totalDatabases:r,fetchMore:f,initialIsLoading:o,isLoading:p,reachedEnd:c}},M=e=>{var t;let{monitor:n,isEditing:o,isSubmitting:s,integrationKey:l,onSubmit:r,onClose:c}=e,d=(0,a.pmc)(),{databases:u,totalDatabases:m,fetchMore:x,reachedEnd:g,isLoading:h,initialIsLoading:f}=q(l,()=>{r({...n,databases:[]}),d({...S.MA,status:"info",description:"Loading resources is taking longer than expected. The monitor has been saved and is tracking all available resources. You can return later to limit its scope if needed"}),c()}),j=null!==(t=null==n?void 0:n.databases)&&void 0!==t?t:[],{selected:y,excluded:_,allSelected:b,someSelected:v,handleToggleItemSelected:C,handleToggleAll:R}=(0,k.Od)({initialSelected:j,initialExcluded:[],initialAllSelected:o&&!j.length,itemCount:m}),E=!b&&0===y.length;return f?(0,i.jsx)(p.Z,{my:12}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(a.kCb,{p:4,direction:"column",children:[(0,i.jsxs)(a.kCb,{direction:"row",mb:4,gap:1,align:"center",children:[(0,i.jsx)(a.xvT,{fontSize:"sm",children:"Select projects to monitor"}),(0,i.jsx)(w.Z,{label:"Selecting a project will monitor all current and future datasets within that project."})]}),(0,i.jsx)(T,{items:u,totalItemCount:m,selected:y,excluded:_,allSelected:b,someSelected:v,moreLoading:h,handleToggleSelection:C,handleToggleAll:R,onMoreClick:g?void 0:x})]}),(0,i.jsxs)("div",{className:"mt-4 flex w-full justify-between",children:[(0,i.jsx)(a.wpx,{onClick:c,children:"Cancel"}),(0,i.jsx)(a.ua7,{label:"Select one or more projects to save",isDisabled:!E,children:(0,i.jsx)(a.wpx,{onClick:()=>{r({...n,excluded_databases:_,databases:b?[]:y})},loading:s,type:"primary","data-testid":"save-btn",disabled:E,children:"Save"})})]})]})},L=n(19508),D=n(96063),N=n(34090),A=n(59389),Z=n(97181),O=n(40324),z=n(21702),I=e=>{var t,n;let{monitor:s,integrationOption:l,isSubmitting:r,databasesAvailable:c,onClose:d,onAdvance:u,onSubmit:m}=e,x=!!s,{query:g}=(0,o.useRouter)(),h=Array.isArray(g.id)?g.id[0]:g.id,p=A.Ry().shape({name:A.Z_().required().label("Name"),execution_frequency:A.Z_().nullable().label("Execution frequency"),execution_start_date:A.hT().nullable().label("Execution start date")}),f=(null==s?void 0:s.execution_start_date)?(0,L.D)(s.execution_start_date):Date.now(),j={name:null!==(t=null==s?void 0:s.name)&&void 0!==t?t:"",execution_start_date:(0,D.WU)(f,"yyyy-MM-dd'T'HH:mm"),execution_frequency:null!==(n=null==s?void 0:s.execution_frequency)&&void 0!==n?n:z.hV.MONTHLY},y=(0,b.MM)(z.hV);return(0,i.jsx)(N.J9,{initialValues:j,enableReinitialize:!0,onSubmit:e=>{let t=e.execution_frequency!==z.hV.NOT_SCHEDULED?{execution_frequency:e.execution_frequency,execution_start_date:new Date(e.execution_start_date).toISOString()}:{execution_frequency:z.hV.NOT_SCHEDULED,execution_start_date:void 0},n=x?{...s,...t,name:e.name}:{...t,name:e.name,connection_config_key:h,classify_params:{num_samples:25,num_threads:1}};l.identifier===z.Rj.DYNAMODB&&(n.datasource_params={single_dataset:!1}),c?u(n):m(n)},validationSchema:p,children:e=>{let{values:t,isValid:n,resetForm:o}=e;return(0,i.jsx)(N.l0,{children:(0,i.jsxs)(a.gCW,{alignItems:"start",spacing:6,mt:4,children:[(0,i.jsx)(O.j0,{name:"name",id:"name",label:"Name",isRequired:!0,variant:"stacked"}),(0,i.jsx)(Z.d,{name:"execution_frequency",id:"execution_frequency",tooltip:"Interval to run the monitor automatically after the start date",options:y,label:"Automatic execution frequency",layout:"stacked"}),(0,i.jsx)(O.YL,{name:"execution_start_date",label:"Automatic execution start time",disabled:t.execution_frequency===z.hV.NOT_SCHEDULED,id:"execution_start_date"}),(0,i.jsxs)("div",{className:"flex w-full justify-between",children:[(0,i.jsx)(a.wpx,{onClick:()=>{o(),d()},children:"Cancel"}),(0,i.jsx)(a.wpx,{htmlType:"submit",type:"primary",disabled:!n,loading:r,"data-testid":"next-btn",children:c?"Next":"Save"})]})]})})}})},V=n(8411),H=n(3968),P=n(64781),U=n(60325);let W=A.Ry().shape({name:A.Z_().required().label("Name"),execution_frequency:A.Z_().nullable().label("Execution frequency"),execution_start_date:A.hT().nullable().label("Execution start date"),datasource_params:A.Ry().shape({locations:A.IX().label("Locations"),exclude_domains:A.IX().label("Exclude domains"),sitemap_url:A.Z_().nullable().url().label("Sitemap URL")})});var Y=e=>{var t,n,s;let{monitor:l,url:r,onClose:c,onSubmit:d}=e,{query:u}=(0,o.useRouter)(),m=Array.isArray(u.id)?u.id[0]:u.id,x=(null==l?void 0:l.execution_start_date)?(0,L.D)(l.execution_start_date):Date.now(),{data:g,isLoading:h}=(0,P.gT)(),p=[...(0,U.TK)(null!==(t=null==g?void 0:g.locations)&&void 0!==t?t:[]),...(0,U.TK)(null!==(n=null==g?void 0:g.location_groups)&&void 0!==n?n:[])].map(e=>({value:e,label:V.Z8[e]})),f={name:(null==l?void 0:l.name)||"",execution_frequency:(null==l?void 0:l.execution_frequency)||z.hV.MONTHLY,execution_start_date:(0,D.WU)(x,"yyyy-MM-dd'T'HH:mm"),url:r,connection_config_key:m,datasource_params:null!==(s=null==l?void 0:l.datasource_params)&&void 0!==s?s:{locations:[]}},j=async e=>{let t=e.execution_frequency!==z.hV.NOT_SCHEDULED?{execution_frequency:e.execution_frequency,execution_start_date:new Date(e.execution_start_date).toISOString()}:{execution_frequency:z.hV.NOT_SCHEDULED,execution_start_date:void 0};d({...l,...e,...t,key:(null==l?void 0:l.key)||(0,H.E)(e.name),classify_params:(null==l?void 0:l.classify_params)||{},datasource_params:e.datasource_params||{},connection_config_key:m})};return(0,i.jsxs)(a.jqI,{vertical:!0,className:"pt-4",children:[(0,i.jsx)(a.xuv,{p:4,mb:4,border:"1px solid",borderColor:"gray.200",bgColor:"gray.50",borderRadius:"md",children:(0,i.jsx)(a.xvT,{fontSize:"sm",children:"This monitor allows you to simulate and verify user consent actions, such as 'accept,' 'reject,' or 'opt-out,' on consent experiences. For each detected activity, the monitor will record whether it occurred before or after the configured user actions, ensuring compliance with user consent choices."})}),(0,i.jsx)(N.J9,{initialValues:f,enableReinitialize:!0,onSubmit:j,validationSchema:W,children:e=>{let{values:t,resetForm:n}=e;return(0,i.jsx)(N.l0,{children:(0,i.jsxs)(a.jqI,{vertical:!0,gap:"middle",children:[(0,i.jsx)(O.j0,{name:"name",id:"name",label:"Name",isRequired:!0,variant:"stacked"}),(0,i.jsx)(O.j0,{name:"datasource_params.sitemap_url",id:"sitemap_url",label:"Sitemap URL",variant:"stacked"}),(0,i.jsx)(Z.d,{mode:"tags",name:"datasource_params.exclude_domains",placeholder:"Enter domains to exclude",id:"exclude_domains",label:"Exclude domains",options:[],open:!1,layout:"stacked"}),(0,i.jsx)(O.j0,{name:"url",id:"url",label:"URL",isRequired:!0,disabled:!0,variant:"stacked"}),(0,i.jsx)(Z.d,{mode:"multiple",isRequired:!0,name:"datasource_params.locations",id:"locations",label:"Locations",loading:h,options:p,optionFilterProp:"label",tooltip:"Specify the region(s) to include in the scan. The monitor will scan the same URL across these locations to identify tracking technologies, such as cookies served by ad tech vendors.",layout:"stacked"}),(0,i.jsx)(Z.d,{name:"execution_frequency",id:"execution_frequency",options:(0,b.MM)(z.hV),label:"Automatic execution frequency",layout:"stacked"}),(0,i.jsx)(O.YL,{name:"execution_start_date",label:"Automatic execution start time",disabled:t.execution_frequency===z.hV.NOT_SCHEDULED,id:"execution_start_date",tooltip:"Set the start time for the scan. For optimal performance and minimal disruption, schedule scans during periods of low traffic."}),(0,i.jsxs)(a.jqI,{className:"mt-2 justify-between",children:[(0,i.jsx)(a.wpx,{onClick:()=>{n(),c()},children:"Cancel"}),(0,i.jsx)(a.wpx,{type:"primary",htmlType:"submit","data-testid":"save-btn",children:"Save"})]})]})})}})]})},F=n(31883),K=e=>{let{isOpen:t,onClose:n,formStep:o,onAdvance:s,monitor:l,isEditing:r,integration:c,integrationOption:d}=e,[u,{isLoading:m}]=(0,_.Fy)(),{data:x}=(0,_.oN)({page:1,size:25,connection_config_key:c.key}),g=!!x&&!!x.total,h=(0,a.pmc)(),{toastResult:f}=v({defaultSuccessMsg:"Monitor ".concat(r?"updated":"created"," successfully"),defaultErrorMsg:"A problem occurred while ".concat(r?"updating":"creating"," this monitor")}),j=async e=>{let t;let i=setTimeout(()=>{t||(h({...S.MA,status:"info",description:"Saving this monitor is taking longer than expected. Fides will continue processing it in the background, and you can check back later to view the updates."}),n())},5e3);(t=await u(e))&&(clearTimeout(i),f(t),(0,F.D4)(t)||n())};return d.identifier===z.Rj.WEBSITE?(0,i.jsx)(C.Z,{title:(null==l?void 0:l.name)?"Configure ".concat(l.name):"Configure website monitor",isOpen:t,onClose:n,children:(0,i.jsx)(Y,{monitor:l,url:c.secrets.url,onClose:n,onSubmit:j})}):(0,i.jsxs)(C.Z,{title:(null==l?void 0:l.name)?"Configure ".concat(l.name):"Configure discovery monitor",isOpen:t,onClose:n,children:[0===o&&(0,i.jsx)(I,{monitor:l,onClose:n,onAdvance:s,onSubmit:j,isSubmitting:m,databasesAvailable:g,integrationOption:d}),1===o&&(l?(0,i.jsx)(M,{monitor:l,isEditing:r,isSubmitting:m,onSubmit:j,onClose:n,integrationKey:c.key}):(0,i.jsx)(p.Z,{}))]})},B=n(58452),G=n(79494),X=e=>{let{monitorId:t,onEditClick:n}=e,[o]=(0,_.Sb)(),{toastResult:s}=v({defaultErrorMsg:"A problem occurred deleting this monitor",defaultSuccessMsg:"Monitor deleted successfully"}),[l,{isLoading:r}]=(0,_.V9)(),{toastResult:c}=v({defaultErrorMsg:"A problem occurred initiating monitor execution",defaultSuccessMsg:"Monitor execution successfully started"}),d=async()=>{s(await o({monitor_config_id:t}))},{isOpen:u,onOpen:m,onClose:x}=(0,a.qY0)(),g=async()=>{c(await l({monitor_config_id:t}))};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(B.Z,{isOpen:u,onClose:x,onConfirm:d,title:"Delete monitor",message:"Are you sure you want to delete this discovery monitor?",continueButtonText:"Delete",isCentered:!0}),(0,i.jsxs)("div",{className:"flex gap-2",children:[(0,i.jsx)(a.ua7,{label:"Edit",children:(0,i.jsx)(a.wpx,{onClick:n,size:"small",icon:(0,i.jsx)(a.dY8,{}),"data-testid":"edit-monitor-btn","aria-label":"Edit monitor"})}),(0,i.jsx)(a.ua7,{label:"Delete",children:(0,i.jsx)(a.wpx,{onClick:m,size:"small",icon:(0,i.jsx)(a.pJl,{}),"aria-label":"Delete monitor","data-testid":"delete-monitor-btn"})}),(0,i.jsx)(G.Z,{onClick:g,title:"Scan",loading:r})]})]})};let J=e=>{let{row:t,getValue:n}=e,[a]=(0,_.Fy)(),o=async e=>a({...t.original,enabled:e}),s=n();return(0,i.jsx)(y.S1,{enabled:s,onToggle:o,title:"Disabling monitor",message:"You are about to disable this monitor. If you continue, it will no longer scan automatically."})},$={items:[],total:0,page:1,size:50,pages:0},Q=(0,x.Cl)(),ee=e=>{let{onAddClick:t}=e;return(0,i.jsx)(a.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:(0,i.jsxs)(a.gCW,{children:[(0,i.jsx)(a.xvT,{fontSize:"md",fontWeight:"600",children:"No monitors"}),(0,i.jsx)(a.xvT,{fontSize:"sm",children:'You have not configured any data discovery monitors. Click "Add monitor" to configure data discovery now.'}),(0,i.jsx)(a.wpx,{onClick:t,type:"primary",children:"Add monitor"})]})})};var et=e=>{let{integration:t,integrationOption:n}=e,{PAGE_SIZES:o,pageSize:s,setPageSize:l,onPreviousPageClick:r,isPreviousPageDisabled:c,onNextPageClick:d,isNextPageDisabled:u,startRange:m,endRange:b,pageIndex:v,setTotalPages:C}=(0,j.oi)(),{isLoading:S,isFetching:k,data:w}=(0,_.Fu)({page:v,size:s,connection_config_key:t.key}),R=(0,a.qY0)(),[T,E]=(0,h.useState)(void 0),[q,M]=(0,h.useState)(!1),[L,D]=(0,h.useState)(0),N=e=>{E(e),M(!0),R.onOpen()},A=null!=w?w:$,{items:Z,total:O,pages:I}=(0,h.useMemo)(()=>A,[A]);(0,h.useEffect)(()=>{C(I)},[I,C]);let V=(0,h.useMemo)(()=>[Q.accessor(e=>e.name,{id:"name",cell:e=>(0,i.jsx)(j.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(j.Rr,{value:"Name",...e})}),Q.accessor(e=>e.databases,{id:"projects",cell:e=>0===e.getValue().length?(0,i.jsx)(j.G3,{value:"All projects"}):(0,i.jsx)(j.WP,{suffix:"Projects",value:e.getValue(),...e,cellState:{isExpanded:!0}}),header:e=>(0,i.jsx)(j.Rr,{value:"Scope",...e})}),Q.accessor(e=>e.execution_frequency,{id:"frequency",cell:e=>{var t;return(0,i.jsx)(j.G3,{value:null!==(t=e.getValue())&&void 0!==t?t:"Not scheduled"})},header:e=>(0,i.jsx)(j.Rr,{value:"Scan frequency",...e})}),Q.accessor(e=>e.last_monitored,{id:"last_monitored",cell:e=>(0,i.jsx)(y.Cy,{time:e.getValue()}),header:e=>(0,i.jsx)(j.Rr,{value:"Last scan",...e})}),Q.accessor(e=>e.enabled,{id:"status",cell:J,header:e=>(0,i.jsx)(j.Rr,{value:"Status",...e}),size:0,meta:{disableRowClick:!0}}),Q.display({id:"action",cell:e=>(0,i.jsx)(X,{onEditClick:()=>N(e.row.original),monitorId:e.row.original.key}),header:"Actions",meta:{disableRowClick:!0}})],[]),H=(0,g.b7)({getCoreRowModel:(0,x.sC)(),getGroupedRowModel:(0,x.qe)(),getExpandedRowModel:(0,x.rV)(),getRowId:e=>e.name,manualPagination:!0,data:Z,columns:V,columnResizeMode:"onChange"});return S?(0,i.jsx)(p.Z,{}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.xvT,{maxW:"720px",mb:6,fontSize:"sm","data-testid":"monitor-description",children:(null==n?void 0:n.identifier)===z.Rj.WEBSITE?"Configure your website monitor to identify active ad tech vendors and tracking technologies across your site. This monitor will analyze selected pages for vendor activity, compliance with privacy requirements, and data collection practices. Set your preferences below to customize the monitor frequency and scan locations.":"A data discovery monitor observes configured systems for data model changes to proactively discover and classify data risks. Monitors can observe part or all of a project, dataset, table, or API for changes and each can be assigned to a different data steward."}),(0,i.jsxs)(j.Q$,{children:[(0,i.jsx)(a.LZC,{}),(0,i.jsx)(a.wpx,{onClick:R.onOpen,icon:(0,i.jsx)(f,{}),iconPosition:"end","data-testid":"add-monitor-btn",children:"Add monitor"}),(0,i.jsx)(K,{isOpen:R.isOpen,onClose:()=>{E(void 0),M(!1),D(0),R.onClose()},formStep:L,onAdvance:e=>{E(e),D(1)},monitor:T,isEditing:q,integration:t,integrationOption:n})]}),(0,i.jsx)(j.ZK,{tableInstance:H,onRowClick:N,emptyTableNotice:(0,i.jsx)(ee,{onAddClick:R.onOpen})}),(0,i.jsx)(j.s8,{totalRows:O||0,pageSizes:o,setPageSize:l,onPreviousPageClick:r,isPreviousPageDisabled:c||k,onNextPageClick:d,isNextPageDisabled:u||k,startRange:m,endRange:b})]})},en=n(15987),ei=n(64176),ea=e=>{let{isOpen:t,onClose:n,connection:a}=e,o=(0,ei.Z)(a.connection_type);return(0,i.jsx)(C.Z,{title:"Manage integration secret",isOpen:t,onClose:n,children:(0,i.jsx)(en.Z,{connection:a,connectionOption:o,onCancel:n})})},eo=n(41553),es=n(75595),el=()=>{var e,t;let{query:n}=(0,o.useRouter)(),x=Array.isArray(n.id)?n.id[0]:n.id,{data:g,isLoading:h}=(0,d.jA)(null!=x?x:""),p=(0,ei.Z)(null==g?void 0:g.connection_type),{testConnection:f,isLoading:j,testData:y}=(0,u.Z)(g),{onOpen:_,isOpen:b,onClose:v}=(0,a.qY0)(),{overview:C,instructions:S}=(0,m.ZP)(null==g?void 0:g.connection_type),k=(0,o.useRouter)();g&&!m.jq.includes(g.connection_type)&&k.push(r.KH);let w=[{label:"Connection",content:(0,i.jsxs)(a.xuv,{maxW:"720px",children:[(0,i.jsxs)(a.kCb,{borderRadius:"md",outline:"1px solid",outlineColor:"gray.100",align:"center",p:3,children:[(0,i.jsx)(a.kCb,{flexDirection:"column",children:(0,i.jsx)(eo.Z,{testData:y})}),(0,i.jsx)(a.LZC,{}),(0,i.jsxs)("div",{className:"flex gap-4",children:[(0,i.jsx)(a.wpx,{onClick:f,loading:j,"data-testid":"test-connection-btn",children:"Test connection"}),(0,i.jsx)(a.wpx,{onClick:_,"data-testid":"manage-btn",children:"Manage"})]})]}),(0,i.jsx)(ea,{isOpen:b,onClose:v,connection:g}),C,S]})},{label:"Data discovery",content:(0,i.jsx)(et,{integration:g,integrationOption:p})}];return(0,i.jsx)(l.Z,{title:"Integrations",children:(0,i.jsxs)(c.Z,{heading:"Integrations",breadcrumbItems:[{title:"All integrations",href:r.KH},{title:null!==(t=null!==(e=null==g?void 0:g.name)&&void 0!==e?e:null==g?void 0:g.key)&&void 0!==t?t:""}],children:[(0,i.jsx)(es.Z,{integration:g,showDeleteButton:!0}),h?(0,i.jsx)(a.$jN,{}):!!g&&(0,i.jsx)(s.Z,{data:w,isLazy:!0})]})})}}},function(e){e.O(0,[8033,2780,2858,2866,9278,9255,4481,5834,5973,2888,9774,179],function(){return e(e.s=50697)}),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[710],{9387:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/integrations",function(){return t(22406)}])},97181:function(e,n,t){"use strict";t.d(n,{d:function(){return c}});var i=t(24246),r=t(56351),l=t(34090),o=t(27378),a=t(91613),s=t(40324);let c=e=>{let{name:n,label:t,labelProps:c,tooltip:d,isRequired:u,layout:g="inline",...f}=e,[x,m,{setValue:h}]=(0,l.U$)(n),p=!!(m.touched&&m.error),[v,j]=(0,o.useState)("");x.value||"tags"!==f.mode&&"multiple"!==f.mode||(x.value=[]),"tags"===f.mode&&"string"==typeof x.value&&(x.value=[x.value]);let C="tags"===f.mode?(e,n)=>e?e.value!==v||x.value.includes(v)?f.optionRender?f.optionRender(e,n):e.label:'Create "'.concat(v,'"'):void 0:f.optionRender||void 0,y=e=>{j(e),f.onSearch&&f.onSearch(e)},b=(e,n)=>{h(e),f.onChange&&f.onChange(e,n)};return"inline"===g?(0,i.jsx)(r.NIc,{isInvalid:p,isRequired:u,children:(0,i.jsxs)(r.rjZ,{templateColumns:t?"1fr 3fr":"1fr",children:[t?(0,i.jsx)(s.__,{htmlFor:f.id||n,...c,children:t}):null,(0,i.jsxs)(r.jqI,{align:"center",children:[(0,i.jsxs)(r.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,i.jsx)(r.WPr,{...x,id:f.id||n,"data-testid":"controlled-select-".concat(x.name),...f,optionRender:C,onSearch:"tags"===f.mode?y:void 0,onChange:b,value:x.value||void 0}),(0,i.jsx)(s.Bc,{isInvalid:p,message:m.error,fieldName:x.name})]}),d?(0,i.jsx)(a.Z,{label:d}):null]})]})}):(0,i.jsx)(r.NIc,{isInvalid:p,isRequired:u,children:(0,i.jsxs)(r.gCW,{alignItems:"start",children:[(0,i.jsxs)(r.jqI,{align:"center",children:[t?(0,i.jsx)(s.__,{htmlFor:f.id||n,fontSize:"xs",my:0,mr:1,...c,children:t}):null,d?(0,i.jsx)(a.Z,{label:d}):null]}),(0,i.jsx)(r.WPr,{...x,id:f.id||n,"data-testid":"controlled-select-".concat(x.name),...f,optionRender:C,onSearch:"tags"===f.mode?y:void 0,onChange:b,value:x.value||void 0}),(0,i.jsx)(s.Bc,{isInvalid:p,message:m.error,fieldName:x.name})]})})}},812:function(e,n,t){"use strict";t.d(n,{D4:function(){return l.D4},MM:function(){return g},Ot:function(){return c},c6:function(){return r},cj:function(){return x},e$:function(){return a},fn:function(){return s},iC:function(){return f},nU:function(){return u},tB:function(){return d}});var i,r,l=t(19043);let o="An unexpected error occurred. Please try again.",a=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;if((0,l.Bw)(e)){if((0,l.hE)(e.data))return e.data.detail;if((0,l.cz)(e.data)){var t;let n=null===(t=e.data.detail)||void 0===t?void 0:t[0];return"".concat(null==n?void 0:n.msg,": ").concat(null==n?void 0:n.loc)}if(409===e.status&&(0,l.Dy)(e.data)||404===e.status&&(0,l.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return n};function s(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 n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:o};if((0,l.oK)(e))return{status:e.originalStatus,message:e.data};if((0,l.Bw)(e)){let{status:t}=e;return{status:t,message:a(e,n.message)}}return n},g=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(i=r||(r={})).GVL="gvl",i.AC="gacp",i.COMPASS="compass";let f={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},x=e=>{let n=e.split(".")[0];return"gacp"===n?"gacp":"gvl"===n?"gvl":"compass"}},22406:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return L}});var i,r,l,o,a=t(24246),s=t(56351),c=t(27378),d=t(7617),u=t(18225),g=t(77213),f=t(58754),x=t(14207),m=t(8133),h=t(15987),p=t(75595),v=e=>{let{integrationType:n,onConfigure:t,onCancel:i}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p.Z,{integration:null==n?void 0:n.placeholder,onConfigureClick:t}),null==n?void 0:n.overview,(0,a.jsxs)(s.kCb,{children:[(0,a.jsx)(s.LZC,{}),(0,a.jsx)(s.wpx,{onClick:i,children:"Cancel"})]})]})},j=t(25980),C=t(7621);(i=l||(l={})).ALL="All",i.DATABASE="Database",i.DATA_CATALOG="Data Catalog",i.DATA_WAREHOUSE="Data Warehouse",i.WEBSITE="Website";var y=e=>{var n;let t=Object.values(l),[i,r]=(0,c.useState)(0),o=t[i],[a,s]=(0,c.useState)(!1),d="All"!==o,u=null!==(n=null==e?void 0:e.filter(e=>!d||e.category===o))&&void 0!==n?n:[];return{tabs:t,tabIndex:i,anyFiltersApplied:d,isFiltering:a,onChangeFilter:e=>{s(!0),r(e),setTimeout(()=>s(!1),100)},filteredTypes:u}},b=e=>{let{onCancel:n,onDetailClick:t,onConfigureClick:i}=e,{tabIndex:r,onChangeFilter:l,isFiltering:o,filteredTypes:c,tabs:g}=y(C.FO),{flags:{datahub:f}}=(0,j.Vb)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.mQc,{index:r,onChange:l,mb:4,children:(0,a.jsx)(s.tdY,{children:g.map(e=>(0,a.jsx)(d.q,{label:e},e))})}),o?(0,a.jsx)(u.Z,{}):(0,a.jsx)(s.kCb,{direction:"column",children:c.map(e=>f||"datahub"!==e.placeholder.connection_type?(0,a.jsx)(p.Z,{integration:e.placeholder,onConfigureClick:()=>i(e),otherButtons:(0,a.jsx)(s.wpx,{onClick:()=>t(e),children:"Details"})},e.placeholder.key):null)}),(0,a.jsxs)(s.kCb,{children:[(0,a.jsx)(s.LZC,{}),(0,a.jsx)(s.wpx,{onClick:n,children:"Cancel"})]})]})},_=t(64176);(r=o||(o={})).LIST_VIEW="list-view",r.DETAIL="detail",r.FORM="form";var A=e=>{let{isOpen:n,onClose:t}=e,[i,r]=(0,c.useState)("list-view"),[l,o]=(0,c.useState)(),s=(0,_.Z)(null==l?void 0:l.placeholder.connection_type),d=()=>{r("list-view"),o(void 0),t()},u=l?"".concat(l.placeholder.name," Integration"):"Add integration";return(0,a.jsxs)(m.Z,{size:"2xl",isOpen:n,onClose:d,title:u,children:["list-view"===i&&(0,a.jsx)(b,{onCancel:d,onDetailClick:e=>{r("detail"),o(e)},onConfigureClick:e=>{r("form"),o(e)}}),"detail"===i&&(0,a.jsx)(v,{integrationType:l,onConfigure:()=>r("form"),onCancel:d}),"form"===i&&(0,a.jsx)(h.Z,{connectionOption:s,onCancel:d})]})},k=t(86677),w=t(77830),I=e=>{let{isFiltered:n,onOpenAddModal:t}=e;return(0,a.jsxs)(s.kCb,{direction:"column",alignItems:"center","data-testid":"empty-state",children:[(0,a.jsx)(s.xvT,{color:"gray.700",fontWeight:"semibold",fontSize:"md",children:"No integrations"}),(0,a.jsx)(s.xvT,{color:"gray.700",fontSize:"sm",marginTop:"8px",children:n?"No integrations match your filters":"You have not configured any integrations"}),(0,a.jsx)(s.xvT,{color:"gray.700",fontSize:"sm",children:'Click "Add integration" to connect and configure systems now.'}),(0,a.jsx)(s.wpx,{type:"primary",onClick:t,className:"mt-4",children:"Add integration"})]})},S=e=>{let{integrations:n,isFiltered:t,onOpenAddModal:i}=e,r=(0,k.useRouter)();return(0,a.jsx)(s.xuv,{marginTop:"24px",children:n.length?n.map(e=>(0,a.jsx)(p.Z,{integration:e,showTestNotice:!0,configureButtonLabel:"Manage",onConfigureClick:()=>r.push("".concat(w.KH,"/").concat(e.key))},e.key)):(0,a.jsx)(I,{onOpenAddModal:i,isFiltered:t})})},L=()=>{var e,n;let{data:t,isLoading:i}=(0,x.AZ)({connection_type:C.jq}),{onOpen:r,isOpen:l,onClose:o}=(0,s.qY0)(),{tabIndex:c,onChangeFilter:m,anyFiltersApplied:h,isFiltering:p,filteredTypes:v,tabs:j}=y(null==t?void 0:null===(e=t.items)||void 0===e?void 0:e.map(e=>(0,C.ZP)(e.connection_type))),b=null!==(n=null==t?void 0:t.items.filter(e=>v.some(n=>n.placeholder.connection_type===e.connection_type)))&&void 0!==n?n:[];return(0,a.jsxs)(g.Z,{title:"Integrations",children:[(0,a.jsx)(f.Z,{heading:"Integrations",breadcrumbItems:[{title:"All integrations"}]}),(0,a.jsxs)(s.xuv,{"data-testid":"integration-tabs",display:"flex",children:[(0,a.jsx)(s.mQc,{index:c,onChange:m,w:"full",children:(0,a.jsx)(s.tdY,{children:j.map(e=>(0,a.jsx)(d.q,{label:e},e))})}),(0,a.jsx)(s.xuv,{borderBottom:"2px solid",borderColor:"gray.200",height:"fit-content",pr:"2",pb:"2",children:(0,a.jsx)(s.wpx,{onClick:r,"data-testid":"add-integration-btn",icon:(0,a.jsx)(s.xPt,{}),iconPosition:"end",children:"Add Integration"})})]}),i||p?(0,a.jsx)(u.Z,{}):(0,a.jsx)(S,{integrations:b,onOpenAddModal:r,isFiltered:h}),(0,a.jsx)(A,{isOpen:l,onClose:o})]})}},19043:function(e,n,t){"use strict";t.d(n,{Bw:function(){return o},D4:function(){return r},Dy:function(){return s},XD:function(){return c},cz:function(){return d},hE:function(){return a},oK:function(){return l}});var i=t(76649);let r=e=>"error"in e,l=e=>(0,i.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,o=e=>(0,i.Ln)({status:"number",data:{}},e),a=e=>(0,i.Ln)({detail:"string"},e),s=e=>(0,i.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,i.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),d=e=>(0,i.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)}},function(e){e.O(0,[2858,2866,9278,6834,5973,2888,9774,179],function(){return e(e.s=9387)}),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2815],{79349:function(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},52033:function(e,t,n){var i=n(26194),r=n(26789)(i);e.exports=r},23545:function(e,t,n){var i=n(97141),r=n(72889);e.exports=function e(t,n,s,a,o){var l=-1,c=t.length;for(s||(s=r),o||(o=[]);++l<c;){var u=t[l];n>0&&s(u)?n>1?e(u,n-1,s,a,o):i(o,u):a||(o[o.length]=u)}return o}},49819:function(e,t,n){var i=n(18911)();e.exports=i},26194:function(e,t,n){var i=n(49819),r=n(50098);e.exports=function(e,t){return e&&i(e,t,r)}},67375:function(e,t,n){var i=n(52033),r=n(80068);e.exports=function(e,t){var n=-1,s=r(e)?Array(e.length):[];return i(e,function(e,i,r){s[++n]=t(e,i,r)}),s}},98497:function(e,t,n){var i=n(66070),r=n(79867),s=n(89278),a=n(67375),o=n(73303),l=n(39334),c=n(96348),u=n(31137),d=n(19785);e.exports=function(e,t,n){t=t.length?i(t,function(e){return d(e)?function(t){return r(t,1===e.length?e[0]:e)}:e}):[u];var p=-1;return t=i(t,l(s)),o(a(e,function(e,n,r){return{criteria:i(t,function(t){return t(e)}),index:++p,value:e}}),function(e,t){return c(e,t,n)})}},1197:function(e,t,n){var i=n(31137),r=n(11871),s=n(63132);e.exports=function(e,t){return s(r(e,t,i),e+"")}},54459:function(e,t,n){var i=n(551),r=n(42630),s=n(31137),a=r?function(e,t){return r(e,"toString",{configurable:!0,enumerable:!1,value:i(t),writable:!0})}:s;e.exports=a},73303:function(e){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},17845:function(e,t,n){var i=n(55193);e.exports=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,s=e==e,a=i(e),o=void 0!==t,l=null===t,c=t==t,u=i(t);if(!l&&!u&&!a&&e>t||a&&o&&c&&!l&&!u||r&&o&&c||!n&&c||!s)return 1;if(!r&&!a&&!u&&e<t||u&&n&&s&&!r&&!a||l&&n&&s||!o&&s||!c)return -1}return 0}},96348:function(e,t,n){var i=n(17845);e.exports=function(e,t,n){for(var r=-1,s=e.criteria,a=t.criteria,o=s.length,l=n.length;++r<o;){var c=i(s[r],a[r]);if(c){if(r>=l)return c;return c*("desc"==n[r]?-1:1)}}return e.index-t.index}},26789:function(e,t,n){var i=n(80068);e.exports=function(e,t){return function(n,r){if(null==n)return n;if(!i(n))return e(n,r);for(var s=n.length,a=t?s:-1,o=Object(n);(t?a--:++a<s)&&!1!==r(o[a],a,o););return n}}},18911:function(e){e.exports=function(e){return function(t,n,i){for(var r=-1,s=Object(t),a=i(t),o=a.length;o--;){var l=a[e?o:++r];if(!1===n(s[l],l,s))break}return t}}},42630:function(e,t,n){var i=n(81822),r=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=r},72889:function(e,t,n){var i=n(96539),r=n(2900),s=n(19785),a=i?i.isConcatSpreadable:void 0;e.exports=function(e){return s(e)||r(e)||!!(a&&e&&e[a])}},57535:function(e,t,n){var i=n(85638),r=n(80068),s=n(42383),a=n(11611);e.exports=function(e,t,n){if(!a(n))return!1;var o=typeof t;return("number"==o?!!(r(n)&&s(t,n.length)):"string"==o&&t in n)&&i(n[t],e)}},11871:function(e,t,n){var i=n(79349),r=Math.max;e.exports=function(e,t,n){return t=r(void 0===t?e.length-1:t,0),function(){for(var s=arguments,a=-1,o=r(s.length-t,0),l=Array(o);++a<o;)l[a]=s[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=s[a];return c[t]=n(l),i(e,this,c)}}},63132:function(e,t,n){var i=n(54459),r=n(49591)(i);e.exports=r},49591:function(e){var t=Date.now;e.exports=function(e){var n=0,i=0;return function(){var r=t(),s=16-(r-i);if(i=r,s>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},551:function(e){e.exports=function(e){return function(){return e}}},95099:function(e,t,n){var i=n(23545),r=n(98497),s=n(1197),a=n(57535),o=s(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),r(e,i(t,1),[])});e.exports=o},24081:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/messaging",function(){return n(18504)}])},35287:function(e,t,n){"use strict";var i=n(24246),r=n(56351),s=n(88038),a=n.n(s);n(27378),t.Z=e=>{let{children:t,title:n,mainProps:s}=e;return(0,i.jsxs)(r.kCb,{"data-testid":n,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,i.jsxs)(a(),{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.jsx)(r.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...s,children:t})]})}},87361:function(e,t,n){"use strict";var i=n(24246),r=n(56351);t.Z=e=>{let{title:t,text:n,onClose:s}=e;return(0,i.jsxs)(r.Ugi,{backgroundColor:"gray.50",border:"1px solid",borderRadius:"md",justifyContent:"space-between",py:4,pr:6,pl:3,"data-testid":"empty-state",gap:2,position:"relative",children:[s&&(0,i.jsx)(r.Two,{boxSize:5,position:"absolute",right:3,top:3,zIndex:1,cursor:"pointer",p:1,onClick:s}),(0,i.jsx)(r.iid,{alignSelf:"start",color:"minos",mt:.5,flexGrow:0}),(0,i.jsxs)(r.kCb,{direction:"column",gap:2,flexGrow:1,children:[(0,i.jsx)(r.X6q,{fontSize:"md",children:t}),(0,i.jsx)(r.xvT,{fontSize:"sm",color:"gray.600",lineHeight:"5",children:n})]})]})}},58754:function(e,t,n){"use strict";var i=n(24246),r=n(56351),s=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:a=!0,children:o,rightContent:l,style:c,...u}=e;return(0,i.jsxs)("div",{...u,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,i.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(r.X6q,{className:n||o?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,l&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,i.jsx)(s.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return c}});var i=n(24246),r=n(56351),s=n(79894),a=n.n(s),o=n(27378);let{Text:l}=r.AntTypography,c=e=>{let{items:t,...n}=e,s=(0,o.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let s=n===t.length-1,o={...e},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,i.jsx)(l,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:o.title})),c)?o.title=(0,i.jsx)(r.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,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,i.jsx)(a(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,i.jsx)(r.zrq,{items:s,...n})}},67810:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}}),(i=r||(r={})).PRIVACY_REQUEST_REVIEW_APPROVE="privacy_request_review_approve",i.PRIVACY_REQUEST_REVIEW_DENY="privacy_request_review_deny",i.PRIVACY_REQUEST_RECEIPT="privacy_request_receipt",i.PRIVACY_REQUEST_COMPLETE_ACCESS="privacy_request_complete_access",i.PRIVACY_REQUEST_COMPLETE_DELETION="privacy_request_complete_deletion",i.SUBJECT_IDENTITY_VERIFICATION="subject_identity_verification";var i,r,s={[r.PRIVACY_REQUEST_COMPLETE_ACCESS]:"Access request completed",[r.PRIVACY_REQUEST_COMPLETE_DELETION]:"Erasure request completed",[r.PRIVACY_REQUEST_RECEIPT]:"Privacy request received",[r.PRIVACY_REQUEST_REVIEW_APPROVE]:"Privacy request approved",[r.PRIVACY_REQUEST_REVIEW_DENY]:"Privacy request denied",[r.SUBJECT_IDENTITY_VERIFICATION]:"Subject identity verification"}},5058:function(e,t,n){"use strict";n.d(t,{Vw:function(){return s},ms:function(){return i},pS:function(){return r},vm:function(){return a}});let{useGetSummaryMessagingTemplatesQuery:i,usePutMessagingTemplateByIdMutation:r,useCreateMessagingTemplateByTypeMutation:s,usePatchMessagingTemplateByIdMutation:a}=n(78780).u.injectEndpoints({endpoints:e=>({getSummaryMessagingTemplates:e.query({query:e=>({method:"GET",url:"plus/messaging/templates/summary",params:e}),providesTags:()=>["Property-Specific Messaging Templates"]}),putMessagingTemplateById:e.mutation({query:e=>{let{templateId:t,template:n}=e;return{url:"plus/messaging/templates/".concat(t),method:"PUT",body:n}},invalidatesTags:()=>["Property-Specific Messaging Templates"]}),patchMessagingTemplateById:e.mutation({query:e=>{let{templateId:t,template:n}=e;return{url:"plus/messaging/templates/".concat(t),method:"PATCH",body:n}},invalidatesTags:()=>["Property-Specific Messaging Templates"]}),createMessagingTemplateByType:e.mutation({query:e=>{let{templateType:t,template:n}=e;return{url:"plus/messaging/templates/".concat(t),method:"POST",body:n}},invalidatesTags:()=>["Property-Specific Messaging Templates"]})})})},18504:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return M}});var i=n(24246),r=n(92222),s=n(59003),a=n(56351),o=n(95099),l=n.n(o),c=n(86677),u=n(27378),d=n(35287),p=n(71795),g=n(87361),m=n(77830),f=n(58754),x=n(91613),h=n(14481),v=n(42904),j=n(67810),y=e=>{let{isOpen:t,onClose:n,onAccept:r}=e,[s,o]=(0,u.useState)(void 0),l=Object.keys(j.Z).map(e=>({value:e,label:j.Z[e]}));return(0,i.jsxs)(a.u_l,{isOpen:t,onClose:n,size:"2xl",isCentered:!0,children:[(0,i.jsx)(a.ZAr,{}),(0,i.jsxs)(a.hzk,{"data-testid":"add-messaging-template-modal",children:[(0,i.jsx)(a.xBx,{borderBottomWidth:1,fontWeight:"bold",children:"Select message template"}),(0,i.jsxs)(a.fef,{children:[(0,i.jsx)(a.xvT,{color:"gray.700",fontWeight:"medium",fontSize:"sm",marginBottom:3,marginTop:1,children:"Add a new email message by selecting a template below and clicking accept."}),(0,i.jsx)(a.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"medium",marginBottom:2,children:"Choose template:"}),(0,i.jsx)(a.xuv,{"data-testid":"template-type-selector",children:(0,i.jsx)(a.WPr,{options:l,onChange:e=>{o(e)},className:"w-full"})})]}),(0,i.jsx)(a.mzw,{justifyContent:"flex-start",children:(0,i.jsxs)("div",{className:"flex w-full gap-4",children:[(0,i.jsx)(a.wpx,{onClick:n,"data-testid":"cancel-btn",className:"grow",children:"Cancel"}),(0,i.jsx)(a.wpx,{onClick:()=>r(s),type:"primary","data-testid":"confirm-btn",disabled:!s,className:"grow",children:"Next"})]})})]})]})},b=n(5058),_=n(812),E=n(46628),C=n(31883),T=()=>{let e=(0,a.pmc)(),[t]=(0,b.vm)();return{toggleIsTemplateEnabled:(0,u.useCallback)(async n=>{let{isEnabled:i,templateId:r}=n,s=await t({templateId:r,template:{is_enabled:i}});if((0,C.D4)(s)){e((0,E.Vo)((0,_.e$)(s.error)));return}e((0,E.t5)("Messaging template ".concat(i?"enabled":"disabled")))},[t,e])}},w=n(99716),R=n(64826);let P=(0,r.Cl)(),S={items:[],total:0,page:1,size:50,pages:1},I=()=>(0,i.jsx)(a.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,i.jsxs)(a.gCW,{children:[(0,i.jsx)(a.xvT,{fontSize:"md",fontWeight:"600",children:"It looks like it’s your first time here!"}),(0,i.jsxs)(a.xvT,{fontSize:"sm",children:["Add new email templates with the ",'"Add message +"'," button.",(0,i.jsx)("br",{})]})]})}),k=()=>{let{isLoading:e,data:t}=(0,R.gz)({page:1,size:100}),n=null==t?void 0:t.items.filter(e=>!e.messaging_templates||0===e.messaging_templates.length),r=!!(!e&&(null==n?void 0:n.length)),s="missing-messages-notice-".concat(null==n?void 0:n.map(e=>e.id).join("-")),[o,l]=(0,p._)("notices.dismissedMessageNoticeId",""),c=s===o;return r&&!c?(0,i.jsx)(a.xuv,{mb:6,"data-testid":"notice-properties-without-messaging-templates",children:(0,i.jsx)(g.Z,{title:"Not all properties have messages configured.",text:(0,i.jsxs)(a.xvT,{as:"span",children:["You have properties that do not have messages configured. Users who submit privacy requests for these properties may not receive the necessary emails regarding their requests."," ",(0,i.jsx)(a.xuv,{as:"span",children:(0,i.jsx)(x.Z,{label:null==n?void 0:n.map(e=>e.name).join(", ")})})]}),onClose:()=>{l(s)}})}):null},A=()=>{let{data:e}=(0,w.tB)({api_set:!1});return(null==e?void 0:e.notifications.enable_property_specific_messaging)?null:(0,i.jsx)(a.xuv,{mb:6,"data-testid":"notice-properties-without-messaging-templates",children:(0,i.jsx)(g.Z,{title:"Basic messaging enabled",text:(0,i.jsxs)(a.xvT,{as:"span",children:["In basic messaging mode, you can edit the content of your messages from this screen. Please note that in basic messaging, the “Enable” toggle does not apply. Fides also supports property specific messaging mode. Read our"," ",(0,i.jsx)(a.rUS,{href:"https://fid.es/property-specific-messaging",target:"_blank",rel:"nofollow",textDecoration:"underline",children:"docs"})," ","for more information about property specific mode or contact"," ",(0,i.jsx)(a.rUS,{href:"mailto:support@ethyca.com",textDecoration:"underline",children:"Ethyca support"})," ","to enable this mode on your Fides instance."]})})})};var M=()=>{let e=(0,c.useRouter)(),{toggleIsTemplateEnabled:t}=T(),{PAGE_SIZES:n,pageSize:o,setPageSize:p,onPreviousPageClick:g,isPreviousPageDisabled:x,onNextPageClick:_,isNextPageDisabled:E,startRange:C,endRange:w,pageIndex:R,setTotalPages:M}=(0,h.oi)(),{data:N,isLoading:z,isFetching:q}=(0,b.ms)({page:R,size:o}),{items:V,total:O,pages:U}=(0,u.useMemo)(()=>null!=N?N:S,[N]);(0,u.useEffect)(()=>{M(U)},[U,M]);let[W,B]=(0,u.useState)(!1),Y=(0,u.useMemo)(()=>[P.accessor(e=>e.type,{id:"message",cell:e=>(0,i.jsx)(h.G3,{value:j.Z[e.getValue()]}),header:e=>(0,i.jsx)(h.Rr,{value:"Message",...e}),size:150}),P.accessor(e=>(e.properties||[]).map(e=>e.name),{id:"properties",cell:e=>(0,i.jsx)(h.WP,{suffix:"properties",value:e.getValue(),...e}),header:e=>(0,i.jsx)(h.Rr,{value:"Properties",...e}),meta:{showHeaderMenu:!0},size:250}),P.accessor(e=>e.is_enabled,{id:"is_enabled",cell:e=>(0,i.jsx)(a.kCb,{align:"center",justifyContent:"flex-start",w:"full",h:"full",children:(0,i.jsx)(a.rAg,{checked:e.getValue(),onChange:n=>{t({isEnabled:n,templateId:e.row.original.id})}})}),header:e=>(0,i.jsx)(h.Rr,{value:"Enable",...e}),size:200,meta:{disableRowClick:!0}})],[t]),D=(0,u.useMemo)(()=>l()(V,"id"),[V]),Z=(0,s.b7)({getCoreRowModel:(0,r.sC)(),getFilteredRowModel:(0,r.vL)(),getSortedRowModel:(0,r.tj)(),columns:Y,data:D,columnResizeMode:"onChange"});return(0,i.jsxs)(d.Z,{title:"Messaging",children:[(0,i.jsx)(f.Z,{heading:"Messaging"}),(0,i.jsx)(A,{}),(0,i.jsx)(k,{}),(0,i.jsx)(h.Q$,{children:(0,i.jsx)(a.Ugi,{alignItems:"center",spacing:4,marginLeft:"auto",children:(0,i.jsx)(a.wpx,{type:"primary","data-testid":"add-message-btn",onClick:()=>B(!0),children:"Add message +"})})}),z?(0,i.jsx)(h.I4,{rowHeight:36,numRows:15}):(0,i.jsx)(h.ZK,{tableInstance:Z,onRowClick:t=>{e.push({pathname:m.ax,query:{id:t.id}})},emptyTableNotice:(0,i.jsx)(I,{})}),(0,i.jsx)(v.s8,{totalRows:O||0,pageSizes:n,setPageSize:p,onPreviousPageClick:g,isPreviousPageDisabled:x||q,onNextPageClick:_,isNextPageDisabled:E||q,startRange:C,endRange:w}),(0,i.jsx)(y,{isOpen:W,onClose:()=>B(!1),onAccept:t=>{e.push({pathname:m.sM,query:{templateType:t}})}})]})}},31883:function(e,t,n){"use strict";n.d(t,{Bw:function(){return i.Bw},D4:function(){return i.D4}});var i=n(19043)}},function(e){e.O(0,[8033,2780,2858,2866,9278,4481,2888,9774,179],function(){return e(e.s=24081)}),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8593],{13687:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/privacy-requests/configure/messaging",function(){return i(50019)}])},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return m}});var n=i(24246),s=i(56351),r=i(88038),l=i.n(r),a=i(86677);i(27378);var o=i(25980),c=i(90867),u=i(77830),d=()=>{let e=(0,a.useRouter)();return(0,n.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(s.xuv,{children:[(0,n.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(s.wpx,{onClick:()=>{e.push(u.fz)},children:"Configure"})]}),(0,n.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=e=>{let{children:t,title:i,padded:r=!0,mainProps:u}=e,m=(0,o.hz)(),p=(0,a.useRouter)(),x="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,h=!(m.flags.privacyRequestsConfiguration&&x),{data:g}=(0,c.JE)(void 0,{skip:h}),{data:f}=(0,c.PW)(void 0,{skip:h}),y=m.flags.privacyRequestsConfiguration&&(!g||!f)&&x;return(0,n.jsxs)(s.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(l(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(s.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[y?(0,n.jsx)(d,{}):null,t]})]})}},58754:function(e,t,i){"use strict";var n=i(24246),s=i(56351),r=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:l=!0,children:a,rightContent:o,style:c,...u}=e;return(0,n.jsxs)("div",{...u,style:l?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,n.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(s.X6q,{className:i||a?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,o&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,n.jsx)(r.m,{className:a?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),a]})}},812:function(e,t,i){"use strict";i.d(t,{D4:function(){return r.D4},MM:function(){return m},Ot:function(){return c},c6:function(){return s},cj:function(){return x},e$:function(){return a},fn:function(){return o},iC:function(){return p},nU:function(){return d},tB:function(){return u}});var n,s,r=i(19043);let l="An unexpected error occurred. Please try again.",a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;if((0,r.Bw)(e)){if((0,r.hE)(e.data))return e.data.detail;if((0,r.cz)(e.data)){var i;let t=null===(i=e.data.detail)||void 0===i?void 0:i[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 u(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:l};if((0,r.oK)(e))return{status:e.originalStatus,message:e.data};if((0,r.Bw)(e)){let{status:i}=e;return{status:i,message:a(e,t.message)}}return t},m=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(n=s||(s={})).GVL="gvl",n.AC="gacp",n.COMPASS="compass";let p={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},x=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},14047:function(e,t,i){"use strict";i.d(t,{H:function(){return r},V:function(){return n.V}});var n=i(84306),s=i(812);let r=()=>{let{errorAlert:e}=(0,n.V)();return{handleError:t=>{let i="An unexpected error occurred. Please try again.";(0,s.Ot)(t)?i=t.data.detail:(0,s.tB)(t)&&(i=t.data.detail[0].msg),e(i)}}}},84306:function(e,t,i){"use strict";i.d(t,{V:function(){return r}});var n=i(24246),s=i(56351);let r=()=>{let e=(0,s.pmc)();return{errorAlert:(t,i,r)=>{let l={...r,position:(null==r?void 0:r.position)||"top",render:e=>{let{onClose:r}=e;return(0,n.jsxs)(s.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,n.jsx)(s.zMQ,{}),(0,n.jsxs)(s.xuv,{children:[i&&(0,n.jsx)(s.CdC,{children:i}),(0,n.jsx)(s.XaZ,{children:t})]}),(0,n.jsx)(s.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,l):e(l)},successAlert:(t,i,r)=>{let l={...r,position:(null==r?void 0:r.position)||"top",render:e=>{let{onClose:r}=e;return(0,n.jsxs)(s.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,n.jsx)(s.zMQ,{}),(0,n.jsxs)(s.xuv,{children:[i&&(0,n.jsx)(s.CdC,{children:i}),(0,n.jsx)(s.XaZ,{children:t})]}),(0,n.jsx)(s.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,l):e(l)}}}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return c}});var n=i(24246),s=i(56351),r=i(79894),l=i.n(r),a=i(27378);let{Text:o}=s.AntTypography,c=e=>{let{items:t,...i}=e,r=(0,a.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let r=i===t.length-1,a={...e},c=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,n.jsx)(o,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:a.title})),c)?a.title=(0,n.jsx)(s.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)(l(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,n.jsx)(s.zrq,{items:r,...i})}},71784:function(e,t,i){"use strict";i.d(t,{DE:function(){return o},I3:function(){return s},kN:function(){return l},qX:function(){return a},rE:function(){return r}});var n=i(21702);let s=[...new Map([[n.q2.APPROVED,"Approved"],[n.q2.CANCELED,"Canceled"],[n.q2.COMPLETE,"Completed"],[n.q2.DENIED,"Denied"],[n.q2.ERROR,"Error"],[n.q2.IN_PROCESSING,"In Progress"],[n.q2.PENDING,"New"],[n.q2.PAUSED,"Paused"],[n.q2.IDENTITY_UNVERIFIED,"Unverified"],[n.q2.REQUIRES_INPUT,"Requires input"]])].map(e=>{let[t,i]=e;return{label:i,value:t}}),r=new Map([[n.Us.ACCESS,"Access"],[n.Us.ERASURE,"Erasure"],[n.Us.CONSENT,"Consent"],[n.Us.UPDATE,"Update"]]),l=[...r].map(e=>{let[t,i]=e;return{label:i,value:t}}),a={mailgun:"mailgun",twilio_email:"twilio_email",twilio_text:"twilio_text"},o={local:"local",s3:"s3"}},50019:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return v}});var n=i(24246),s=i(56351),r=i(27378),l=i(812),a=i(14047),o=i(77213),c=i(77830),u=i(58754),d=i(71784),m=i(90867),p=i(34090),x=i(40324),h=e=>{let{messagingDetails:t}=e,{successAlert:i}=(0,a.V)(),{handleError:r}=(0,a.H)(),[o]=(0,m.SU)(),c=t.service_type===d.qX.twilio_email||t.service_type===d.qX.mailgun,u=t.service_type===d.qX.twilio_text,h=async e=>{if(c){let t=await o({email:e.email});(0,l.D4)(t)?r(t.error):i("Test message successfully sent.")}if(u){let t=await o({phone_number:e.phone});(0,l.D4)(t)?r(t.error):i("Test message successfully sent.")}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.izJ,{mt:10}),(0,n.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,mb:5,children:"Test connection"}),(0,n.jsx)(s.Kqy,{children:(0,n.jsx)(p.J9,{initialValues:{email:"",phone:""},onSubmit:h,children:e=>{let{isSubmitting:t,resetForm:i}=e;return(0,n.jsxs)(p.l0,{children:[c?(0,n.jsx)(x.j0,{name:"email",label:"Email",placeholder:"youremail@domain.com",isRequired:!0}):null,u?(0,n.jsx)(x.j0,{name:"phone",label:"Phone",placeholder:"+10000000000",isRequired:!0}):null,(0,n.jsxs)(s.xuv,{mt:10,children:[(0,n.jsx)(s.wpx,{onClick:()=>i(),className:"mr-2",children:"Cancel"}),(0,n.jsx)(s.wpx,{disabled:t,htmlType:"submit",type:"primary","data-testid":"save-btn",children:"Save"})]})]})}})})]})},g=()=>{var e;let{successAlert:t}=(0,a.V)(),[i,o]=(0,r.useState)(""),{handleError:c}=(0,a.H)(),{data:u}=(0,m.S3)({type:d.qX.mailgun}),[g]=(0,m.h9)(),[f]=(0,m.iI)(),y=async e=>{let i=await g({service_type:d.qX.mailgun,details:{is_eu_domain:"false",domain:e.domain}});(0,l.D4)(i)?c(i.error):(t("Mailgun email successfully updated. You can now enter your security key."),o("apiKey"))},j=async e=>{let i=await f({details:{mailgun_api_key:e.api_key},service_type:d.qX.mailgun});(0,l.D4)(i)?c(i.error):(t("Mailgun security key successfully updated."),o("testConnection"))},v={domain:null!==(e=null==u?void 0:u.details.domain)&&void 0!==e?e:""};return(0,n.jsxs)(s.xuv,{children:[(0,n.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"Mailgun messaging configuration"}),(0,n.jsx)(s.Kqy,{children:(0,n.jsx)(p.J9,{initialValues:v,onSubmit:y,enableReinitialize:!0,children:e=>{let{isSubmitting:t,handleReset:i}=e;return(0,n.jsxs)(p.l0,{children:[(0,n.jsx)(s.Kqy,{mt:5,spacing:5,children:(0,n.jsx)(x.j0,{name:"domain",label:"Domain",placeholder:"Enter domain","data-testid":"option-twilio-domain",isRequired:!0})}),(0,n.jsxs)(s.xuv,{mt:10,children:[(0,n.jsx)(s.wpx,{onClick:i,className:"mr-2",children:"Cancel"}),(0,n.jsx)(s.wpx,{htmlType:"submit",disabled:t,type:"primary","data-testid":"save-btn",children:"Save"})]})]})}})}),"apiKey"===i||"testConnection"===i?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.izJ,{mt:10}),(0,n.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"Security key"}),(0,n.jsx)(s.Kqy,{children:(0,n.jsx)(p.J9,{initialValues:{api_key:""},onSubmit:j,children:e=>{let{isSubmitting:t,handleReset:i}=e;return(0,n.jsxs)(p.l0,{children:[(0,n.jsx)(x.j0,{name:"api_key",label:"API key",type:"password",isRequired:!0}),(0,n.jsxs)(s.xuv,{mt:10,children:[(0,n.jsx)(s.wpx,{onClick:i,className:"mr-2",children:"Cancel"}),(0,n.jsx)(s.wpx,{disabled:t,htmlType:"submit",type:"primary","data-testid":"save-btn",children:"Save"})]})]})}})})]}):null,"testConnection"===i?(0,n.jsx)(h,{messagingDetails:u||{service_type:d.qX.mailgun}}):null]})},f=()=>{var e;let[t,i]=(0,r.useState)(""),{successAlert:o}=(0,a.V)(),{handleError:c}=(0,a.H)(),{data:u}=(0,m.S3)({type:d.qX.twilio_email}),[g]=(0,m.h9)(),[f]=(0,m.iI)(),y=async e=>{let t=await g({service_type:d.qX.twilio_email,details:{twilio_email_from:e.email}});(0,l.D4)(t)?c(t.error):(o("Twilio email successfully updated. You can now enter your security key."),i("configureTwilioEmailSecrets"))},j=async e=>{let t=await f({details:{twilio_api_key:e.api_key},service_type:d.qX.twilio_email});(0,l.D4)(t)?c(t.error):(o("Twilio email secrets successfully updated."),i("testConnection"))},v={email:null!==(e=null==u?void 0:u.details.twilio_email_from)&&void 0!==e?e:""};return(0,n.jsxs)(s.xuv,{children:[(0,n.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"Twilio Email messaging configuration"}),(0,n.jsx)(s.Kqy,{children:(0,n.jsx)(p.J9,{initialValues:v,onSubmit:y,enableReinitialize:!0,children:e=>{let{isSubmitting:t,handleReset:i}=e;return(0,n.jsxs)(p.l0,{children:[(0,n.jsx)(s.Kqy,{mt:5,spacing:5,children:(0,n.jsx)(x.j0,{name:"email",label:"Email",placeholder:"Enter email",isRequired:!0})}),(0,n.jsxs)(s.xuv,{mt:10,children:[(0,n.jsx)(s.wpx,{onClick:()=>i(),className:"mr-2",children:"Cancel"}),(0,n.jsx)(s.wpx,{disabled:t,htmlType:"submit",type:"primary","data-testid":"save-btn",children:"Save"})]})]})}})}),"configureTwilioEmailSecrets"===t||"testConnection"===t?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.izJ,{mt:10}),(0,n.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"Security key"}),(0,n.jsx)(s.Kqy,{children:(0,n.jsx)(p.J9,{initialValues:{api_key:""},onSubmit:j,children:e=>{let{isSubmitting:t,handleReset:i}=e;return(0,n.jsxs)(p.l0,{children:[(0,n.jsx)(s.Kqy,{mt:5,spacing:5,children:(0,n.jsx)(x.j0,{name:"api_key",label:"API key",type:"password",isRequired:!0})}),(0,n.jsxs)(s.xuv,{mt:10,children:[(0,n.jsx)(s.wpx,{onClick:()=>i(),className:"mr-2",children:"Cancel"}),(0,n.jsx)(s.wpx,{disabled:t,htmlType:"submit",type:"primary","data-testid":"save-btn",children:"Save"})]})]})}})})]}):null,"testConnection"===t?(0,n.jsx)(h,{messagingDetails:u||{service_type:d.qX.twilio_email}}):null]})},y=()=>{let{successAlert:e}=(0,a.V)(),{handleError:t}=(0,a.H)(),[i,o]=(0,r.useState)(""),{data:c}=(0,m.S3)({type:"twilio_text"}),[u]=(0,m.iI)(),g=async i=>{let n=await u({details:{twilio_account_sid:i.account_sid,twilio_auth_token:i.auth_token,twilio_messaging_service_sid:i.messaging_service_sid,twilio_sender_phone_number:i.phone},service_type:d.qX.twilio_text});(0,l.D4)(n)?t(n.error):(e("Twilio text secrets successfully updated."),o("testConnection"))};return(0,n.jsxs)(s.xuv,{children:[(0,n.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"Twilio SMS messaging configuration"}),(0,n.jsx)(s.Kqy,{children:(0,n.jsx)(p.J9,{initialValues:{account_sid:"",auth_token:"",messaging_service_sid:"",phone:""},onSubmit:g,enableReinitialize:!0,children:e=>{let{isSubmitting:t,handleReset:i}=e;return(0,n.jsxs)(p.l0,{children:[(0,n.jsxs)(s.Kqy,{mt:5,spacing:5,children:[(0,n.jsx)(x.j0,{name:"account_sid",label:"Account SID",placeholder:"Enter account SID",isRequired:!0}),(0,n.jsx)(x.j0,{name:"auth_token",label:"Auth token",placeholder:"Enter auth token",type:"password",isRequired:!0}),(0,n.jsx)(x.j0,{name:"messaging_service_sid",label:"Messaging Service SID",placeholder:"Enter messaging service SID"}),(0,n.jsx)(x.j0,{name:"phone",label:"Phone Number",placeholder:"Enter phone number"})]}),(0,n.jsxs)(s.xuv,{mt:10,children:[(0,n.jsx)(s.wpx,{onClick:()=>i(),className:"mr-2",children:"Cancel"}),(0,n.jsx)(s.wpx,{disabled:t,htmlType:"submit",type:"primary","data-testid":"save-btn",children:"Save"})]})]})}})}),"testConnection"===i?(0,n.jsx)(h,{messagingDetails:c||{service_type:d.qX.twilio_text}}):null]})},j=()=>{let{successAlert:e}=(0,a.V)(),{handleError:t}=(0,a.H)(),[i,p]=(0,r.useState)(""),[x]=(0,m.h9)(),[h]=(0,m.L)(),{data:j}=(0,m.JE)();(0,r.useEffect)(()=>{j&&p(null==j?void 0:j.service_type)},[j]);let v=async i=>{let{value:n}=i.target,s=await h({notifications:{notification_service_type:n,send_request_completion_notification:!0,send_request_receipt_notification:!0,send_request_review_notification:!0},execution:{subject_identity_verification_required:!0}});if((0,l.D4)(s))t(s.error);else if(n!==d.qX.twilio_text)p(n);else{let i=await x({service_type:d.qX.twilio_text});(0,l.D4)(i)?t(i.error):(e("Messaging provider saved successfully."),p(n))}};return(0,n.jsxs)(o.Z,{title:"Configure Privacy Requests - Messaging",children:[(0,n.jsx)(u.Z,{heading:"Privacy Requests",breadcrumbItems:[{title:"All requests",href:c.Jw},{title:"Configure requests",href:c.fz},{title:"Messaging"}]}),(0,n.jsx)(s.X6q,{mb:5,fontSize:"md",fontWeight:"semibold",children:"Configure your messaging provider"}),(0,n.jsxs)(s.xuv,{display:"flex",flexDirection:"column",width:"50%",children:[(0,n.jsxs)(s.xuv,{children:["Fides requires a messsaging provider for sending processing notices to privacy request subjects, and allows for Subject Identity Verification in privacy requests. Please follow the"," ",(0,n.jsx)(s.xvT,{as:"span",color:"complimentary.500",children:"documentation"})," ","to setup a messaging service that Fides supports. Ensure you have completed the setup for the preferred messaging provider and have the details handy prior to the following steps."]}),(0,n.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",mt:10,children:"Choose service type to configure"}),(0,n.jsx)(s.y02.Group,{onChange:v,value:i,"data-testid":"privacy-requests-messaging-provider-selection",className:"p-3",children:(0,n.jsxs)(s.jqI,{children:[(0,n.jsx)(s.y02,{value:d.qX.mailgun,"data-testid":"option-mailgun",children:"Mailgun Email"},d.qX.mailgun),(0,n.jsx)(s.y02,{value:d.qX.twilio_email,"data-testid":"option-twilio-email",children:"Twilio Email"},d.qX.twilio_email),(0,n.jsx)(s.y02,{value:d.qX.twilio_text,"data-testid":"option-twilio-sms",children:"Twilio SMS"},d.qX.twilio_text)]})}),i===d.qX.mailgun?(0,n.jsx)(g,{}):null,i===d.qX.twilio_email?(0,n.jsx)(f,{}):null,i===d.qX.twilio_text?(0,n.jsx)(y,{}):null]})]})},v=()=>(0,n.jsx)(j,{})},19043:function(e,t,i){"use strict";i.d(t,{Bw:function(){return l},D4:function(){return s},Dy:function(){return o},XD:function(){return c},cz:function(){return u},hE:function(){return a},oK:function(){return r}});var n=i(76649);let s=e=>"error"in e,r=e=>(0,n.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,l=e=>(0,n.Ln)({status:"number",data:{}},e),a=e=>(0,n.Ln)({detail:"string"},e),o=e=>(0,n.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,n.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),u=e=>(0,n.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)},76649:function(e,t,i){"use strict";i.d(t,{Ln:function(){return n}});let n=(e,t)=>r(e,t),s=Symbol("SOME"),r=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?s 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,i])=>r(i,t[e]));class l{static narrow(e){return new l(t=>n(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,i=e instanceof l?e.NF:e instanceof Function?e:t=>n(e,t);return new l(e=>t(e)&&i(e))}}new l(e=>!0)}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=13687)}),_N_E=e.O()}]);